/* Acabamento premium compartilhado entre as telas internas do D2Agenda. */
:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-2: #f0f2f5;
  --surface-soft: #fafafa;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: #e2e2e5;
  --shadow: 0 20px 55px rgba(0, 0, 0, .07);
  --premium-glass: rgba(255, 255, 255, .84);
  --premium-sidebar: #ffffff;
  --premium-sidebar-text: #58677a;
  --premium-radius: 24px;
}

[data-theme="dark"] {
  --bg: #0d1420;
  --surface: #141e2d;
  --surface-2: #1b2738;
  --surface-soft: #101925;
  --text: #f5f7fa;
  --muted: #a5b0c0;
  --line: #2b394d;
  --shadow: 0 24px 64px rgba(0, 0, 0, .3);
  --premium-glass: rgba(13, 20, 32, .84);
  --premium-sidebar: #080e18;
  --premium-sidebar-text: #a9b6ca;
}

html { background: var(--bg); }
body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% -8%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 28%),
    radial-gradient(circle at 96% 6%, color-mix(in srgb, var(--accent) 5%, transparent), transparent 24%),
    var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  letter-spacing: -.006em;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image: radial-gradient(color-mix(in srgb, var(--text) 5%, transparent) .6px, transparent .6px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.24), transparent 35%);
}

body.has-tenant-bg::before {
  background-size: cover, contain;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  opacity: .1;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: 66px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  background: var(--premium-glass);
  box-shadow: none;
  backdrop-filter: saturate(170%) blur(18px);
}

.brand { gap: 10px; }
.brand-logo,
.app-brand-logo {
  padding: 2px;
  overflow: visible;
  border: 0;
  border-radius: 13px;
  background: transparent;
  box-shadow: none;
}
.brand-logo img,
.app-brand-logo img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.brand-name { color: var(--text); font-weight: 760; letter-spacing: -.025em; }
.topbar nav { gap: 8px; }
.topbar nav > a:not(.button),
.staff-user-name { color: var(--muted); }
.header-settings {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text) !important;
  transition: transform .18s ease, background-color .18s ease;
}
.header-settings:hover { background: color-mix(in srgb, var(--accent) 10%, var(--surface)); color: var(--accent) !important; transform: rotate(16deg); }
.header-settings svg { width: 19px; height: 19px; }

.container { width: min(1460px, calc(100% - 32px)); padding-top: 24px; }
h1, h2, h3 { color: var(--text); letter-spacing: -.035em; }
h1 { font-weight: 760; }
.eyebrow { color: var(--accent); letter-spacing: .075em; }
.helper, small { color: var(--muted); }

.card,
.visual-card,
.owner-panel,
.auth.card,
.booking-form {
  border: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
  border-radius: var(--premium-radius);
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  box-shadow: 0 16px 45px rgba(15, 23, 42, .045);
}
[data-theme="dark"] .card,
[data-theme="dark"] .visual-card,
[data-theme="dark"] .owner-panel,
[data-theme="dark"] .auth.card,
[data-theme="dark"] .booking-form { box-shadow: 0 20px 54px rgba(0, 0, 0, .2); }

button,
.button,
input[type="submit"] {
  border-radius: 999px;
  border-color: transparent;
  box-shadow: none;
  font-weight: 730;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
button:hover,
.button:hover { transform: translateY(-1px); box-shadow: 0 9px 22px color-mix(in srgb, var(--accent) 17%, transparent); }
button.secondary,
.button.secondary {
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
}
button.danger,
.button.danger { background: #ff6b81; color: #fff; }

input,
select,
textarea {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  box-shadow: none;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  outline: 3px solid color-mix(in srgb, var(--accent) 13%, transparent);
  box-shadow: none;
}
label > span,
.field-title { color: var(--muted); font-size: .78rem; font-weight: 700; }

.alert { border: 1px solid color-mix(in srgb, currentColor 16%, var(--line)); border-radius: 16px; box-shadow: none; }
.badge { border-radius: 999px; font-weight: 720; }
.footer { border-top: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 72%, var(--bg)); }
.theme-toggle { border-color: var(--line); background-color: var(--surface-2); box-shadow: none; }
.page-loading { backdrop-filter: blur(14px); }
.page-loading > div { border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); }

/* Painel do estabelecimento e Master */
.owner-shell { gap: 18px; }
.owner-tabs {
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 22px;
  background:
    radial-gradient(circle at 0 0, color-mix(in srgb, var(--accent) 15%, transparent), transparent 34%),
    var(--premium-sidebar);
  box-shadow: 0 24px 65px rgba(15, 23, 42, .18);
}
.owner-tabs a,
.owner-menu-section,
.owner-collapse-toggle {
  border: 1px solid transparent;
  border-radius: 13px;
  background: transparent;
  color: var(--premium-sidebar-text);
  box-shadow: none;
}
.owner-tabs a:hover,
.owner-tabs a.active,
.owner-tabs a[aria-current="page"] {
  border-color: color-mix(in srgb, var(--accent) 18%, var(--line));
  background: color-mix(in srgb, var(--accent) 9%, var(--surface));
  color: var(--text);
  box-shadow: inset 3px 0 0 var(--accent);
  transform: none;
}
.owner-tabs .menu-icon { color: color-mix(in srgb, var(--accent) 75%, #fff 25%); }
.owner-tabs .owner-collapse-toggle:hover { background: var(--surface-2); color: var(--text); transform: none; box-shadow: none; }
[data-theme="dark"] .owner-tabs a:hover,
[data-theme="dark"] .owner-tabs a.active,
[data-theme="dark"] .owner-tabs a[aria-current="page"] {
  border-color: rgba(255,255,255,.08);
  background: rgba(255,255,255,.1);
  color: #fff;
}
[data-theme="dark"] .owner-tabs .owner-collapse-toggle:hover { background: rgba(255,255,255,.08); color: #fff; }
.owner-menu-group { display: grid; gap: 3px; }
.owner-menu-section {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 43px;
  padding: .62rem .72rem;
  cursor: pointer;
  font: inherit;
  text-align: left;
}
.owner-menu-section:hover,
.owner-menu-section.is-open { background: color-mix(in srgb, var(--accent) 7%, var(--surface)); color: var(--text); transform: none; box-shadow: none; }
[data-theme="dark"] .owner-menu-section:hover,
[data-theme="dark"] .owner-menu-section.is-open { background: rgba(255,255,255,.08); color: #fff; }
.owner-menu-section .menu-icon { display: grid; place-items: center; flex: 0 0 24px; margin-right: 10px; }
.owner-menu-section .menu-icon svg { width: 20px; height: 20px; }
.owner-menu-section > i { margin-left: auto; color: var(--muted); font-style: normal; font-size: 1.25rem; transition: transform .18s ease; }
.owner-menu-section.is-open > i { transform: rotate(90deg); }
.owner-submenu {
  display: grid;
  gap: 2px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-4px);
  transition: max-height .25s ease, opacity .18s ease, transform .18s ease;
}
.owner-menu-section.is-open + .owner-submenu {
  max-height: 360px;
  opacity: 1;
  transform: none;
}
.owner-submenu a { min-height: 38px; padding-block: .48rem; padding-left: 1.2rem; font-size: .8rem; }
.owner-submenu a .menu-icon { transform: scale(.84); }
@media (hover: hover) and (min-width: 901px) {
  .owner-menu-group:hover > .owner-submenu { max-height: 360px; opacity: 1; transform: none; }
  .owner-menu-group:hover > .owner-menu-section > i { transform: rotate(90deg); }
}
.owner-content { min-width: 0; }
.owner-panel { padding: clamp(18px, 2.4vw, 28px); }
.owner-menu-toggle { border-radius: 16px; }
.plan-strip { border-radius: 18px; }

.metrics article,
.client-insights article {
  border: 1px solid var(--line);
  border-radius: 19px;
  background:
    radial-gradient(circle at 100% 0, color-mix(in srgb, var(--accent) 9%, transparent), transparent 44%),
    var(--surface);
  box-shadow: none;
}
.items > div,
.registry-section,
.finance-flow > div:not(.flow-minus):not(.flow-equals) {
  border-color: var(--line);
  border-radius: 17px;
  background: color-mix(in srgb, var(--surface) 91%, var(--bg) 9%);
}
.filter-drawer,
.report-filter-card,
.agenda-filter {
  border-color: var(--line);
  background: color-mix(in srgb, var(--surface) 93%, var(--bg) 7%);
  box-shadow: none;
}
.filter-drawer > summary,
.compact-drawer > summary { border-radius: 14px; }
.fullscreen-editor { display: grid; place-items: center; padding: 18px; background: color-mix(in srgb, #0f172a 58%, transparent); backdrop-filter: blur(16px); }
.fullscreen-editor-card { width: min(940px, 100%); max-height: calc(100vh - 36px); margin: 0; overflow: auto; border-color: var(--line); border-radius: 28px; background: var(--surface); box-shadow: 0 35px 100px rgba(0,0,0,.26); animation: premium-editor-in .22s ease both; }
.fullscreen-editor-head { position: sticky; top: calc(clamp(18px, 3vw, 28px) * -1); z-index: 3; padding-block: 4px 14px; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(12px); }
.fullscreen-editor-head > div small { margin-bottom: 2px; color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; }
.fullscreen-editor-head .button { min-height: 38px; }
@keyframes premium-editor-in { from { opacity: 0; transform: translateY(14px) scale(.985); } }

.owner-agenda-item {
  border-color: var(--line);
  border-left-color: var(--staff-color, var(--accent));
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(15, 23, 42, .045);
}
.owner-agenda-item > time { border: 1px solid color-mix(in srgb, var(--staff-color, var(--accent)) 20%, var(--line)); }
.owner-agenda-actions .cancel-box summary { border-radius: 999px; }
.owner-agenda-actions .cancel-box[open] summary { box-shadow: inset 0 0 0 1px currentColor; }

/* As ações da agenda abrem como modal e não aumentam a altura do card. */
body:has(.owner-agenda-actions details[open]) { overflow: hidden; }
.owner-agenda-actions .cancel-box[open]::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 78;
  background: rgba(8, 14, 24, .58);
  backdrop-filter: blur(12px);
  animation: premium-fade-in .18s ease both;
}
.owner-agenda-actions .cancel-box[open] > form {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;
  z-index: 80;
  display: grid;
  width: min(460px, calc(100vw - 28px));
  max-height: min(680px, calc(100vh - 32px));
  margin: 0 !important;
  padding: 22px !important;
  overflow: auto;
  border: 1px solid var(--line) !important;
  border-radius: 26px !important;
  background: var(--surface) !important;
  color: var(--text);
  box-shadow: 0 35px 110px rgba(0, 0, 0, .34) !important;
  transform: translate(-50%, -50%);
  animation: premium-modal-in .22s ease both;
}
.agenda-action-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 8px; }
.agenda-action-modal-head small { margin-bottom: 3px; color: var(--muted); font-size: .72rem; }
.agenda-action-modal-head strong { display: block; color: var(--text); font-size: 1.25rem; letter-spacing: -.035em; }
.agenda-action-close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  min-height: 34px;
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text);
  font-size: 1.15rem;
  line-height: 1;
}
.agenda-action-modal-footer { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 5px; }
.agenda-action-modal-footer button { width: 100%; min-height: 42px; padding-inline: .7rem; font-size: .78rem; }
@keyframes premium-fade-in { from { opacity: 0; } }
@keyframes premium-modal-in { from { opacity: 0; transform: translate(-50%, calc(-50% + 12px)) scale(.98); } }

/* Funcionário */
.staff-screen .heading { align-items: center; margin-bottom: 22px; padding: clamp(18px, 3vw, 28px); border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: 0 14px 40px rgba(15,23,42,.045); }
.staff-screen .schedule { gap: 10px; }
.staff-screen .schedule-item { border-color: var(--line); border-radius: 20px; background: var(--surface); box-shadow: 0 9px 28px rgba(15,23,42,.045); }
.staff-screen .schedule-item > time { border-radius: 14px; background: color-mix(in srgb, var(--accent) 10%, var(--surface-2)); color: var(--accent-dark); }
.staff-actions { gap: 7px; }
.staff-actions form { gap: 6px; }

/* Cliente */
body.client-screen,
[data-theme="dark"] body.client-screen,
body.client-screen.client-theme-dark {
  background:
    radial-gradient(circle at 50% -12%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 33%),
    var(--bg);
  color: var(--text);
}
body.client-screen .topbar { border-bottom-color: var(--line); background: var(--premium-glass); box-shadow: none; }
body.client-screen .brand-name { max-width: min(48vw, 360px); font-size: clamp(1.05rem, 2vw, 1.28rem); font-weight: 780; }
body.client-screen.has-tenant-bg::before { display: none; }
body.client-screen.has-tenant-bg {
  background-color: var(--bg);
  background-image: linear-gradient(135deg, color-mix(in srgb, var(--bg) 44%, transparent), color-mix(in srgb, var(--surface) 36%, transparent)), var(--tenant-bg-image);
  background-size: cover, contain;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  background-attachment: fixed, fixed;
}
body.client-screen .brand-name,
body.client-screen nav a,
body.client-screen .booking-intro h1,
body.client-screen .booking-intro .eyebrow,
body.client-screen .auth h1,
body.client-screen .auth h2,
body.client-screen .booking-form h2,
body.client-screen .booking-form h3,
body.client-screen .choice-card strong,
body.client-screen .review-box strong { color: var(--text); }
body.client-screen .booking-intro { margin-bottom: 26px; }
body.client-screen .booking-intro h1 { opacity: 1; text-shadow: none; letter-spacing: -.045em; }
body.client-screen .booking-form,
body.client-screen .auth.card { border-color: var(--line); background: color-mix(in srgb, var(--surface) 93%, transparent); box-shadow: 0 24px 65px rgba(15,23,42,.08); backdrop-filter: blur(14px); }
body.client-screen .auth p,
body.client-screen .booking-note,
body.client-screen .helper,
body.client-screen label,
body.client-screen .choice-card small { color: var(--muted); }
body.client-screen input,
body.client-screen select,
body.client-screen textarea { border-color: var(--line); background: var(--surface); color: var(--text); }
body.client-screen .choice-card,
body.client-screen .product-choice-card,
body.client-screen .review-box {
  border-color: var(--line);
  border-radius: 19px;
  background: color-mix(in srgb, var(--surface) 92%, var(--bg) 8%);
  color: var(--text);
  box-shadow: none;
}
body.client-screen .choice-card:hover,
body.client-screen .choice-card:has(input:checked),
body.client-screen .product-choice-card:hover,
body.client-screen .product-choice-card:has(input:checked) {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 7%, var(--surface));
  box-shadow: 0 12px 28px color-mix(in srgb, var(--accent) 10%, transparent);
}
body.client-screen .slots span,
body.client-screen .slot-disabled { border-radius: 13px; }
body.client-screen .footer { border-top-color: var(--line); background: color-mix(in srgb, var(--surface) 75%, var(--bg)); color: var(--muted); }

/* Vitrine pública do estabelecimento */
.establishment-profile-shell {
  width: min(1180px, 100%);
  margin: 12px auto 44px;
}
.establishment-profile-hero {
  display: grid;
  grid-template-columns: minmax(320px, .92fr) minmax(380px, 1.08fr);
  min-height: 470px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
  border-radius: 34px;
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  box-shadow: 0 34px 90px rgba(15, 23, 42, .13);
  backdrop-filter: blur(18px);
}
.establishment-profile-cover {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 255, 255, .28), transparent 26%),
    linear-gradient(145deg, color-mix(in srgb, var(--accent) 88%, #0b1220), color-mix(in srgb, var(--accent-dark) 64%, #111827));
  isolation: isolate;
}
.establishment-profile-cover::before,
.establishment-profile-cover::after { content: ""; position: absolute; pointer-events: none; }
.establishment-profile-cover::before {
  inset: 0;
  z-index: -2;
  background-image: var(--profile-cover, none);
  background-size: cover;
  background-position: center;
  transform: scale(1.015);
}
.establishment-profile-cover::after {
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(8, 15, 28, .04) 18%, rgba(8, 15, 28, .52) 100%);
}
.establishment-profile-cover:not(.has-profile-cover)::after {
  background:
    radial-gradient(circle at 76% 23%, rgba(255, 255, 255, .22), transparent 18%),
    linear-gradient(180deg, transparent, rgba(5, 12, 24, .46));
}
.establishment-profile-cover-content {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(24px, 4vw, 38px);
}
.establishment-profile-logo {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .56);
  border-radius: 27px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .24);
  backdrop-filter: blur(14px);
}
.establishment-profile-logo img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.establishment-profile-logo.profile-logo-fallback { color: var(--accent-dark); }
.establishment-profile-logo.profile-logo-fallback svg { width: 34px; height: 34px; }
.establishment-profile-days {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: rgba(6, 13, 25, .4);
  color: #fff;
  font-size: .77rem;
  font-weight: 750;
  white-space: nowrap;
  backdrop-filter: blur(12px);
}
.establishment-profile-days i,
.accessibility-status i { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, .14); }
.establishment-profile-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 6vw, 70px);
}
.establishment-profile-kicker {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 28px;
  padding: 5px 11px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
  color: var(--accent-dark);
  font-size: .7rem;
  font-weight: 820;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.establishment-profile-copy h1 {
  max-width: 660px;
  margin: 17px 0 13px;
  color: var(--text);
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  line-height: .98;
  letter-spacing: -.065em;
}
.establishment-profile-bio {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(.98rem, 1.45vw, 1.13rem);
  line-height: 1.72;
}
.establishment-profile-phone {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 11px;
  margin-top: 22px;
  color: var(--text);
}
.establishment-profile-phone > svg { width: 21px; height: 21px; color: var(--accent); }
.establishment-profile-phone span { display: grid; gap: 1px; }
.establishment-profile-phone small { color: var(--muted); font-size: .68rem; }
.establishment-profile-phone strong { font-size: .9rem; }
.establishment-profile-cta { display: flex; align-items: center; gap: 16px; margin-top: 29px; }
.establishment-profile-cta > small { max-width: 180px; color: var(--muted); font-size: .73rem; line-height: 1.4; }
.profile-start-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  padding-inline: 23px;
  border-radius: 17px;
  box-shadow: 0 15px 32px color-mix(in srgb, var(--accent) 24%, transparent);
}
.profile-start-button svg { width: 19px; height: 19px; transition: transform .18s ease; }
.profile-start-button:hover svg { transform: translateX(3px); }
.establishment-profile-grid {
  display: grid;
  grid-template-columns: 1.25fr .85fr .9fr;
  gap: 14px;
  margin-top: 14px;
}
.establishment-profile-card {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 25px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: 0 18px 46px rgba(15, 23, 42, .065);
  backdrop-filter: blur(15px);
}
.establishment-profile-card header { display: flex; align-items: center; gap: 12px; margin-bottom: 19px; }
.establishment-profile-card header small { display: block; margin-bottom: 2px; color: var(--muted); font-size: .66rem; font-weight: 730; letter-spacing: .06em; text-transform: uppercase; }
.establishment-profile-card h2 { margin: 0; color: var(--text); font-size: 1.06rem; letter-spacing: -.025em; }
.establishment-profile-card-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 10%, var(--surface-2));
  color: var(--accent-dark);
}
.establishment-profile-card-icon svg { width: 21px; height: 21px; }
.establishment-hours-list { display: grid; grid-template-columns: 1fr; gap: 7px; }
.establishment-hours-list p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 9px 10px;
  border-radius: 11px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: .72rem;
}
.establishment-hours-list p span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.establishment-hours-list p strong { color: var(--text); font-size: .72rem; white-space: nowrap; }
.establishment-hours-list p.is-closed { opacity: .64; }
.establishment-accessibility-card,
.establishment-location-card { display: flex; flex-direction: column; }
.establishment-accessibility-card > p,
.establishment-location-text { margin: 14px 0 0; color: var(--muted); font-size: .82rem; line-height: 1.55; }
.accessibility-status {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  padding: 8px 11px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: .72rem;
  font-weight: 760;
}
.accessibility-status i { background: #94a3b8; box-shadow: 0 0 0 4px rgba(148, 163, 184, .13); }
.establishment-accessibility-card.is-available .accessibility-status { background: rgba(16, 185, 129, .1); color: #078259; }
.establishment-accessibility-card.is-available .accessibility-status i { background: #10b981; box-shadow: 0 0 0 4px rgba(16, 185, 129, .14); }
.establishment-location-text { margin-top: 0; overflow-wrap: anywhere; }
.establishment-maps-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; width: 100%; margin-top: auto; padding: 11px 13px; border-radius: 14px; }
.establishment-maps-button svg { width: 18px; height: 18px; }

/* Cadastro da vitrine nas configurações */
.public-profile-settings-intro {
  margin: 2px 0 12px;
  padding: 20px 22px;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
  border-radius: 20px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 8%, var(--surface)), var(--surface));
}
.public-profile-settings-intro h3 { margin: 4px 0; color: var(--text); font-size: 1.22rem; letter-spacing: -.035em; }
.public-profile-settings-intro p { margin: 0; color: var(--muted); font-size: .84rem; }
.form-grid label small { display: block; margin-top: 6px; color: var(--muted); font-size: .72rem; line-height: 1.4; }
.location-current-button { align-self: end; justify-self: start; margin: 0 0 14px; }
.public-accessibility-setting { align-self: center; margin-bottom: 14px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface-2); }

/* Login e páginas públicas */
.login-screen,
.layout-public { background: radial-gradient(circle at 50% -10%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 34%), var(--bg); }
.login-screen .auth { border-color: var(--line); border-radius: 28px; background: var(--surface); box-shadow: 0 28px 80px rgba(15,23,42,.1); }
.login-screen .auth h1,
.login-screen .auth h2 { letter-spacing: -.045em; }
.google-login { border-color: var(--line); border-radius: 999px; background: var(--surface); color: var(--text); }

@media (max-width: 820px) {
  .container { width: min(100% - 18px, 1460px); padding-top: 14px; }
  .topbar { min-height: 60px; padding-inline: 10px; }
  .owner-tabs { border-radius: 0 22px 22px 0; transition: none; }
  .owner-submenu { transition: none; }
  .owner-menu-toggle { margin-top: 6px; }
  .owner-panel { padding: 16px; border-radius: 21px; }
  .staff-screen .heading { align-items: stretch; padding: 16px; }
  .establishment-profile-shell { margin-top: 2px; }
  .establishment-profile-hero { grid-template-columns: 1fr; border-radius: 28px; }
  .establishment-profile-cover { min-height: 310px; }
  body.client-screen.has-tenant-bg {
    background-image: linear-gradient(180deg, color-mix(in srgb, var(--bg) 31%, transparent), color-mix(in srgb, var(--bg) 50%, transparent)), var(--tenant-bg-image);
    background-size: cover, cover;
    background-position: center top, center top;
    background-attachment: scroll, scroll;
  }
  .establishment-profile-cover.has-profile-cover::after { background: linear-gradient(180deg, rgba(8, 15, 28, .02) 28%, rgba(8, 15, 28, .42) 100%); }
  .establishment-profile-copy { padding: 34px; }
  .establishment-profile-grid { grid-template-columns: 1fr 1fr; }
  .establishment-hours-card { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .brand-name { max-width: 34vw; }
  .topbar nav { gap: 4px; }
  .topbar nav > a,
  .staff-user-name { font-size: .72rem; }
  .card,
  .visual-card,
  .owner-panel,
  .auth.card,
  .booking-form { border-radius: 20px; }
  .agenda-action-modal-footer { grid-template-columns: 1fr; }
  .owner-agenda-actions .cancel-box[open] > form { width: calc(100vw - 20px); padding: 18px !important; border-radius: 22px !important; animation: none; }
  .owner-agenda-side { display: grid !important; grid-area: side !important; grid-template-columns: 1fr; align-items: stretch !important; width: 100%; }
  .owner-agenda-side .owner-agenda-meta { width: 100%; justify-content: space-between; }
  .owner-agenda-actions { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; width: 100%; gap: 7px !important; }
  .owner-agenda-actions .cancel-box { width: 100%; min-width: 0; }
  .owner-agenda-actions .cancel-box summary { width: 100%; min-width: 0; min-height: 32px; overflow: hidden; text-overflow: ellipsis; }
  .owner-agenda-actions .cancel-box[open] { grid-column: auto; }
  body.client-screen .brand-name { max-width: 46vw; font-size: 1.03rem; }
  .establishment-profile-shell { margin-top: 0; margin-bottom: 16px; }
  .establishment-profile-hero { min-height: 0; border-radius: 21px; }
  .establishment-profile-cover { min-height: 118px; }
  .establishment-profile-cover-content { align-items: center; padding: 14px 16px; }
  .establishment-profile-logo { width: 52px; height: 52px; border-radius: 17px; }
  .establishment-profile-logo.profile-logo-fallback svg { width: 24px; height: 24px; }
  .establishment-profile-days { padding: 6px 9px; font-size: .62rem; }
  .establishment-profile-copy { padding: 16px 18px 18px; }
  .establishment-profile-kicker { min-height: 23px; padding: 4px 9px; font-size: .6rem; }
  .establishment-profile-copy h1 { margin: 10px 0 7px; font-size: clamp(1.85rem, 9.5vw, 2.35rem); line-height: 1; }
  .establishment-profile-bio { display: -webkit-box; overflow: hidden; font-size: .78rem; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .establishment-profile-phone { gap: 8px; margin-top: 10px; }
  .establishment-profile-phone > svg { width: 17px; height: 17px; }
  .establishment-profile-phone small { font-size: .59rem; }
  .establishment-profile-phone strong { font-size: .76rem; }
  .establishment-profile-cta { display: block; margin-top: 13px; }
  .establishment-profile-cta > small { display: none; }
  .profile-start-button { width: 100%; min-height: 45px; border-radius: 14px; font-size: .82rem; }
  .establishment-profile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
  .establishment-hours-card { grid-column: 1 / -1; }
  .establishment-profile-card { padding: 13px; border-radius: 18px; }
  .establishment-profile-card header { gap: 8px; margin-bottom: 10px; }
  .establishment-profile-card header small { font-size: .53rem; }
  .establishment-profile-card h2 { font-size: .84rem; }
  .establishment-profile-card-icon { width: 34px; height: 34px; border-radius: 11px; }
  .establishment-profile-card-icon svg { width: 18px; height: 18px; }
  .establishment-hours-list p { padding: 8px 9px; font-size: .67rem; }
  .establishment-hours-list p strong { font-size: .67rem; }
  .establishment-accessibility-card > p { display: none; }
  .accessibility-status { gap: 6px; padding: 7px 8px; font-size: .62rem; white-space: nowrap; }
  .establishment-location-text { display: -webkit-box; margin: 0; overflow: hidden; font-size: .66rem; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  body.client-screen.has-tenant-bg .establishment-profile-hero,
  body.client-screen.has-tenant-bg .establishment-profile-card { background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(12px); }
  .establishment-maps-button { gap: 5px; min-height: 32px; margin-top: 9px; padding: 6px 7px; border-radius: 10px; font-size: .62rem; }
  .establishment-maps-button svg { width: 14px; height: 14px; }
  .location-current-button { width: 100%; justify-self: stretch; }
  .fullscreen-editor { padding: 10px; }
  .fullscreen-editor-card { max-height: calc(100vh - 20px); border-radius: 22px; animation: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.print-only { display: none !important; }

@media print {
  @page { size: A4 landscape; margin: 8mm; }

  html,
  body.owner-screen {
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    background: #fff !important;
    color: #111827 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  body.owner-screen .topbar,
  body.owner-screen .footer,
  body.owner-screen .owner-menu-toggle,
  body.owner-screen .owner-tabs,
  body.owner-screen .plan-strip,
  body.owner-screen .install-prompt,
  body.owner-screen .floating-support,
  body.owner-screen .logo-modal,
  body.owner-screen .no-print { display: none !important; }
  body.owner-screen .container {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  body.owner-screen .owner-shell,
  body.owner-screen .owner-content,
  body.owner-screen .report-mobile-body {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  body.owner-screen .owner-panel { display: none !important; }
  body.owner-screen #relatorios {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
  }
  body.owner-screen #relatorios .report-dashboard-head { display: none !important; }
  body.owner-screen #relatorios .print-only.report-print-header {
    display: flex !important;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10mm;
    margin: 0 0 5mm;
    padding: 0 0 4mm;
    border-bottom: 1.2pt solid #cbd5e1;
    color: #111827;
  }
  .report-print-header span { color: #2563eb; font-size: 8pt; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
  .report-print-header h1 { margin: 1.5mm 0 0; color: #0f172a; font-size: 21pt; line-height: 1; letter-spacing: -.035em; }
  .report-print-header > div:last-child { display: grid; gap: 1mm; min-width: 76mm; }
  .report-print-header p { display: flex; justify-content: space-between; gap: 8mm; margin: 0; color: #475569; font-size: 8pt; }
  .report-print-header p strong { color: #0f172a; }

  body.owner-screen #relatorios .report-kpis {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 3mm !important;
    margin: 0 0 4mm !important;
    break-inside: avoid;
  }
  body.owner-screen #relatorios .report-kpi {
    min-height: 24mm;
    padding: 3.5mm !important;
    gap: 3mm !important;
    overflow: visible !important;
    border: .8pt solid #cbd5e1 !important;
    border-radius: 4mm !important;
    background: #fff !important;
    box-shadow: none !important;
    break-inside: avoid;
  }
  body.owner-screen #relatorios .report-kpi-icon { width: 10mm; height: 10mm; border-radius: 3mm; }
  body.owner-screen #relatorios .report-kpi small,
  body.owner-screen #relatorios .report-kpi em { color: #64748b !important; font-size: 7pt !important; }
  body.owner-screen #relatorios .report-kpi strong { overflow: visible; color: #0f172a !important; font-size: 13pt !important; white-space: nowrap; }

  body.owner-screen #relatorios .report-main-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 2fr) minmax(58mm, .72fr) !important;
    gap: 4mm !important;
    margin: 0 !important;
    break-inside: avoid;
  }
  body.owner-screen #relatorios .visual-card {
    padding: 4mm !important;
    overflow: visible !important;
    border: .8pt solid #cbd5e1 !important;
    border-radius: 4mm !important;
    background: #fff !important;
    color: #111827 !important;
    box-shadow: none !important;
    break-inside: avoid;
  }
  body.owner-screen #relatorios .report-card-head h3,
  body.owner-screen #relatorios .report-margin-card h3 { color: #0f172a !important; font-size: 11pt !important; }
  body.owner-screen #relatorios .eyebrow { color: #2563eb !important; font-size: 7pt !important; }
  body.owner-screen #relatorios .report-evolution-tools > strong { color: #047857 !important; font-size: 10pt !important; }
  body.owner-screen #relatorios .revenue-chart {
    display: flex !important;
    align-items: end !important;
    gap: 1mm !important;
    height: 48mm !important;
    margin-top: 3mm !important;
    padding-top: 3mm !important;
    overflow: hidden !important;
    border-bottom: .8pt solid #cbd5e1 !important;
  }
  body.owner-screen #relatorios .revenue-column {
    min-width: 0 !important;
    height: 100% !important;
    flex: 1 1 0 !important;
    grid-template-rows: 5mm minmax(0, 1fr) 6mm !important;
  }
  body.owner-screen #relatorios .revenue-column > span { max-width: 100%; color: #475569 !important; font-size: 5.5pt !important; }
  body.owner-screen #relatorios .revenue-column > i { width: min(5mm, 74%) !important; min-height: 1.5mm; background: #2563eb !important; box-shadow: none !important; }
  body.owner-screen #relatorios .revenue-column > small { color: #475569 !important; font-size: 5.5pt !important; }
  body.owner-screen #relatorios .report-margin-card { display: block !important; text-align: center !important; }
  body.owner-screen #relatorios .margin-ring {
    display: grid !important;
    width: 34mm !important;
    height: 34mm !important;
    margin: 3mm auto !important;
    background: conic-gradient(#10b981 calc(var(--ring-value) * 1%), #e2e8f0 0) !important;
    box-shadow: none !important;
  }
  body.owner-screen #relatorios .margin-ring::before { width: 25mm !important; height: 25mm !important; background: #fff !important; }
  body.owner-screen #relatorios .margin-ring strong { color: #0f172a !important; font-size: 15pt !important; }
  body.owner-screen #relatorios .margin-ring span { color: #64748b !important; font-size: 6pt !important; }
  body.owner-screen #relatorios .margin-breakdown { gap: 1mm !important; }
  body.owner-screen #relatorios .margin-breakdown p { padding-top: 1.5mm !important; color: #64748b !important; font-size: 7pt !important; }
  body.owner-screen #relatorios .margin-breakdown strong { color: #0f172a !important; }

  body.owner-screen #relatorios .report-staff-card {
    display: block !important;
    margin: 0 0 4mm !important;
    break-before: page;
    page-break-before: always;
  }
  body.owner-screen #relatorios .report-table-wrap { margin-top: 2mm !important; overflow: visible !important; }
  body.owner-screen #relatorios .report-table { display: table !important; width: 100% !important; color: #111827 !important; white-space: normal !important; border-collapse: collapse; }
  body.owner-screen #relatorios .report-table thead { display: table-header-group; }
  body.owner-screen #relatorios .report-table tr { break-inside: avoid; }
  body.owner-screen #relatorios .report-table th { padding: 2mm !important; border-bottom: 1pt solid #94a3b8; color: #475569 !important; font-size: 7pt !important; text-align: left; }
  body.owner-screen #relatorios .report-table td { padding: 2.2mm 2mm !important; border-bottom: .6pt solid #e2e8f0; color: #0f172a !important; font-size: 8pt !important; }
  body.owner-screen #relatorios .staff-rank-name { min-width: 0 !important; }
  body.owner-screen #relatorios .staff-rank-name > b { width: 7mm; height: 7mm; border-radius: 2mm; }
  body.owner-screen #relatorios .staff-rank-name i { display: none !important; }

  body.owner-screen #relatorios .report-detail-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 4mm !important;
    margin: 0 !important;
    break-inside: auto;
  }
  body.owner-screen #relatorios .report-detail-grid .visual-card { min-height: 0 !important; }
  body.owner-screen #relatorios .chart-row { padding: 2mm 0 3mm !important; color: #0f172a !important; break-inside: avoid; }
  body.owner-screen #relatorios .chart-row span,
  body.owner-screen #relatorios .chart-row strong { color: #0f172a !important; font-size: 8pt !important; }
  body.owner-screen #relatorios .chart-row i { background: #2563eb !important; }
  body.owner-screen #relatorios a { color: inherit !important; text-decoration: none !important; }
}
