:root {
    --ink: #222222;
    --muted: #717171;
    --line: #dddddd;
    --paper: #ffffff;
    --canvas: #f7f7f7;
    --accent: #0080ff;
    --accent-dark: #0066cc;
    --soft: #f2f2f2;
    --success: #e8f5ed;
    --danger: #fff0f0;
    --shadow: 0 2px 8px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
    --radius: 16px;
}
* { box-sizing: border-box; }
/* O atributo HTML `hidden` some por padrão via CSS do próprio navegador
   (display:none), mas qualquer regra nossa com `display` explícito na
   MESMA especificidade (ex.: .btn{display:inline-flex}) escrita depois no
   arquivo vence essa regra do navegador — daí elementos com `hidden`
   (como o botão "Salvar" de perfil, escondido até trocar pra Funcionário)
   continuavam aparecendo. Regra global, sempre por cima. */
[hidden] { display: none !important; }
html { overflow-x: hidden; }
body { overflow-x: hidden; max-width: 100vw; margin: 0; background: var(--canvas); color: var(--ink); font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
.topbar { min-height: 88px; background: var(--paper); border-bottom: 1px solid #eeeeee; display: flex; align-items: center; justify-content: space-between; padding: 0 max(24px, calc((100% - 1180px) / 2)); position: sticky; top: 0; z-index: 10; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-size: 21px; font-weight: 800; letter-spacing: -.45px; }
.brand-logo { display: block; width: 133px; height: 46px; object-fit: contain; object-position: left center; }
.brand span { color: var(--ink); font-weight: 500; }
.logout { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--ink); text-decoration: none; }
.logout:hover { background: #f7f7f7; color: var(--accent); }
.logout .ui-icon { width: 20px; height: 20px; }
.container { max-width: 1180px; margin: 0 auto; padding: 38px 24px 72px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 28px; }
.page-head h1 { margin: 0 0 5px; font-size: 32px; line-height: 1.15; letter-spacing: -.8px; }
.page-head p { margin: 0; }
.muted { color: var(--muted); }
.ui-icon { width: 18px; height: 18px; display: inline-block; flex: 0 0 auto; vertical-align: -4px; object-fit: contain; }
.btn:not(.secondary) .ui-icon, .ticket-summary .ui-icon { filter: brightness(0) invert(1); }
.step.complete .ui-icon { filter: brightness(0) invert(1); }
.danger-icon .ui-icon { filter: invert(25%) sepia(77%) saturate(1767%) hue-rotate(326deg) brightness(82%) contrast(92%); }
.btn .ui-icon { width: 16px; height: 16px; vertical-align: 0; }
.back-link { display: inline-flex; align-items: center; gap: 7px; border: 1px solid #d5d5d5; border-radius: 999px; padding: 8px 14px; background: #fff; color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 700; margin-bottom: 14px; width: fit-content; transition: background .15s ease, border-color .15s ease; }
.back-link:hover { background: #f7f7f7; border-color: #222; color: var(--ink); }
.text-link:hover { color: var(--accent); }
.text-link { color: var(--ink); text-decoration: underline; font-weight: 700; font-size: 13px; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.card, .panel { background: var(--paper); border: 1px solid #e7e7e7; border-radius: var(--radius); box-shadow: var(--shadow); }
.card { padding: 20px; }
.stat { font-size: 30px; line-height: 1.1; font-weight: 750; letter-spacing: -.5px; }
.stat-label { color: var(--muted); font-size: 13px; margin-top: 7px; }
.panel { margin-top: 20px; padding: 24px; }
.panel h2 { font-size: 20px; margin: 0 0 18px; letter-spacing: -.25px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.section-heading-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; flex: 0 0 auto; }
.section-heading h2 { margin: 0; }
.progress-count { color: var(--accent); font-size: 14px; font-weight: 800; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid #222; border-radius: 999px; padding: 12px 20px; background: #222; color: #fff; text-decoration: none; cursor: pointer; font: inherit; font-weight: 700; transition: background .15s ease, transform .15s ease, box-shadow .15s ease; }
.btn:hover { background: #000; border-color: #000; box-shadow: 0 3px 8px rgba(0,0,0,.16); }
.btn:active { transform: translateY(1px); }
.btn.secondary { background: #fff; border-color: #d5d5d5; color: var(--ink); }
.btn.secondary:hover { background: #f7f7f7; border-color: #222; box-shadow: none; }
.btn.small { padding: 8px 11px; font-size: 13px; }
.btn.danger { background: #c5223d; border-color: #c5223d; }
table { display: block; max-width: 100%; overflow-x: auto; border-collapse: separate; border-spacing: 0; width: 100%; background: #fff; }
th, td { text-align: left; padding: 15px 12px; border-bottom: 1px solid #eeeeee; vertical-align: top; }
th { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fcfcfc; }
.actions { display: flex; flex-wrap: wrap; gap: 7px; min-width: 220px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 18px; }
.payment-grid { grid-template-columns: minmax(0, 1.25fr) minmax(150px, .8fr) minmax(150px, .8fr); align-items: end; }
.full { grid-column: 1 / -1; }
label { display: block; font-weight: 700; font-size: 13px; margin-bottom: 7px; }
input, select, textarea { width: 100%; border: 1px solid #bdbdbd; border-radius: 9px; padding: 12px 13px; background: #fff; color: var(--ink); font: inherit; outline: none; }
input[type="date"] { padding-right: 13px; }
input:focus, select:focus, textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 2px rgba(34,34,34,.08); }
textarea { min-height: 110px; resize: vertical; }
a:focus-visible, button:focus-visible, .btn:focus-visible, [role="button"]:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.icon-action:focus-visible, .counter button:focus-visible, .logout:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(255,56,92,.35); }
.agenda-day:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; padding-top: 20px; border-top: 1px solid #eeeeee; }
.notice { padding: 14px 16px; border-radius: 10px; background: var(--success); margin: 16px 0; border: 1px solid #cce8d5; }
.notice.toast { position: fixed; top: 92px; right: 24px; z-index: 50; width: min(420px, calc(100vw - 32px)); margin: 0; box-shadow: 0 12px 35px rgba(0,0,0,.16); animation: toast-in .22s ease-out; }
.notice.toast-hide { opacity: 0; transform: translateY(-8px); transition: opacity .3s ease, transform .3s ease; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.error { background: var(--danger); border-color: #f2c8c8; color: #8b1e2d; }
.notice.warning { background: #fff4dc; border-color: #f0deae; color: #875c05; }
.login { max-width: 440px; margin: 70px auto; }
/* Logo reduzida em dois passos: 265px -> 185px (-30%) -> 150px. */
.login-logo { display: block; width: min(150px, 46%); height: auto; margin: 0 auto 24px; object-fit: contain; }
/* Fundo da tela de login: a foto (login-bg.jpg, na raiz do site) preenche a
   tela toda, com um véu escuro por cima pra garantir a leitura do card em
   qualquer foto. Enquanto o arquivo não existir, essa camada simplesmente não
   pinta e fica o degradê de baixo — a tela continua apresentável. */
.login-view {
    min-height: 100vh;
    min-height: 100dvh;
    background-color: #16211c;
    background-image:
        linear-gradient(rgba(12, 20, 16, .16), rgba(12, 20, 16, .30)),
        url('login-bg.jpg'),
        linear-gradient(160deg, #24352c 0%, #16211c 55%, #0f1714 100%);
    background-repeat: no-repeat;
    background-size: cover, cover, cover;
    background-position: center, center, center;
}
.login-view .container { display: flex; align-items: center; width: 100%; max-width: none; min-height: 100vh; min-height: 100dvh; padding: 40px 24px; }
.login-view .login {
    width: min(430px, 100%);
    margin: 0 auto;
    padding: 40px 38px 34px;
    border: 0;
    border-radius: 22px;
    background: #fff;
    text-align: center;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .34), 0 2px 8px rgba(0, 0, 0, .12);
}
/* Título e subtítulo respiram juntos como um bloco só: quase nada entre eles
   e o espaço maior vai pra baixo, separando o bloco do formulário. */
.login-view .login h1 { margin: 0 0 5px; font-size: 25px; letter-spacing: -.5px; }
.login-view .login > p.muted { margin: 0 0 30px; font-size: 14px; }
.login-view .login form { text-align: left; }
/* Checkbox "lembrar de mim" — o <label> genérico do sistema é bold e em
   bloco (feito pra rótulo acima de campo), então essa reseta pra uma linha
   normal com a caixinha ao lado, no mesmo espírito do .check-field. */
.login-view .login .remember-me-field { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; font-weight: 500; font-size: 13.5px; color: var(--ink); cursor: pointer; }
.login-view .login .remember-me-field input { width: auto; margin: 0; }
.login h1 { margin-top: 0; }
.login .btn { width: 100%; }
.readonly { background: #f5f5f5; color: #696969; }
.copy-box { background: #f7f7f7; border: 1px solid var(--line); padding: 15px; border-radius: 10px; white-space: pre-wrap; }
.empty { text-align: center; padding: 38px; color: var(--muted); }
.reservation-list { display: grid; gap: 12px; }
.reservation-control { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 0; padding: 10px; }
.task-panel { margin-top: 0; }
.dashboard-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.dashboard-content { min-width: 0; }
.task-empty { margin: 0; }
.task-list { display: grid; gap: 8px; }
.task-item { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; color: var(--ink); text-decoration: none; transition: background .15s ease; }
.task-item:hover { background: #f7f7f7; }
.task-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #e5f2ff; color: var(--accent); }
.task-icon .ui-icon { width: 18px; height: 18px; }
.task-item strong, .task-item small { display: block; }
.task-item small { margin-top: 2px; color: var(--muted); font-size: 12px; }
.task-arrow { margin-left: auto; color: var(--muted); font-size: 24px; }
.reservation-tabs { display: flex; gap: 4px; padding: 4px; border: 1px solid #e5e5e5; border-radius: 999px; background: #fff; }
.reservation-tab { padding: 10px 13px; border-radius: 999px; color: var(--muted); text-decoration: none; font-size: 12px; font-weight: 700; transition: background .22s ease, color .22s ease; }
.reservation-tab.active { background: #222; color: #fff; }
.reservation-filters { display: flex; align-items: center; gap: 8px; flex: 1; justify-content: flex-end; }
.reservation-filters input { width: min(260px, 100%); padding: 10px 12px; border-radius: 999px; }
.reservation-filters input[type="month"] { width: 150px; }
.more-menu { display: none; }
.reservation-meta span:nth-child(2), .reservation-meta span:nth-child(3) { display: none; }
.reservation-row { position: relative; display: flex; align-items: stretch; border: 1px solid #e4e4e4; border-radius: 13px; background: #fff; transition: border-color .15s ease, box-shadow .15s ease; }
.reservation-row:hover { border-color: #bdbdbd; box-shadow: 0 3px 10px rgba(0,0,0,.06); }
.reservation-main { flex: 1; min-width: 0; padding: 18px 20px; color: var(--ink); text-decoration: none; }
.reservation-title { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 17px; }
.reservation-code { color: var(--muted); font-size: 12px; font-weight: 500; }
.reservation-meta { display: flex; flex-wrap: wrap; gap: 20px; color: var(--muted); font-size: 13px; }
.reservation-status { display: flex; align-items: center; gap: 7px; margin-top: 12px; font-size: 12px; color: var(--muted); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.more-menu { position: relative; margin: 13px 14px 0 0; align-self: flex-start; }
.more-menu summary { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); cursor: pointer; list-style: none; font-weight: 800; letter-spacing: 2px; background: #f7f7f7; }
.more-menu summary::-webkit-details-marker { display: none; }
.more-menu summary:hover { background: #f2f2f2; }
.menu-card { position: absolute; right: 0; top: 43px; z-index: 5; min-width: 205px; padding: 7px; background: #fff; border: 1px solid #e4e4e4; border-radius: 12px; box-shadow: 0 8px 25px rgba(0,0,0,.14); }
.menu-card a, .menu-card button { display: block; width: 100%; padding: 10px 11px; border: 0; border-radius: 7px; background: transparent; color: var(--ink); text-align: left; text-decoration: none; font: inherit; font-size: 13px; cursor: pointer; }
.menu-card a:hover, .menu-card button:hover { background: #f7f7f7; }
.menu-card button { color: var(--accent-dark); }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); gap: 20px; }
.detail-layout .panel:first-child { grid-row: span 2; }
.steps { display: grid; gap: 0; }
.step { position: relative; display: flex; gap: 13px; min-height: 62px; }
.step:not(:last-child)::before { content: ''; position: absolute; left: 12px; top: 27px; bottom: -4px; width: 2px; background: #e5e5e5; }
.step-dot { position: relative; z-index: 1; flex: 0 0 26px; width: 26px; height: 26px; display: grid; place-items: center; border: 2px solid #d5d5d5; border-radius: 50%; background: #fff; color: #fff; font-size: 13px; font-weight: 800; }
.step.complete .step-dot { border-color: var(--accent); background: var(--accent); }
.step strong, .step span { display: block; }
.step strong { font-size: 14px; }
.step div > span { margin-top: 2px; color: var(--muted); font-size: 12px; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.detail-grid > div { position: relative; min-width: 0; padding: 13px 14px 13px 46px; border: 1px solid #eeeeee; border-radius: 13px; background: #fcfcfc; }
.detail-grid > div::before { content: ''; position: absolute; left: 14px; top: 14px; display: block; width: 22px; height: 22px; background: center / 21px 21px no-repeat; filter: invert(42%) sepia(92%) saturate(2951%) hue-rotate(328deg) brightness(103%) contrast(102%); }
.detail-grid > div:nth-child(1)::before { background-image: url('icons/user.svg'); }
.detail-grid > div:nth-child(2)::before { background-image: url('icons/phone.svg'); }
.detail-grid > div:nth-child(3)::before, .detail-grid > div:nth-child(4)::before { background-image: url('icons/calendar.svg'); }
.detail-grid > div:nth-child(5)::before { background-image: url('icons/cash.svg'); }
.detail-grid > div:nth-child(6)::before { background-image: url('icons/users.svg'); }
.detail-grid span, .detail-note span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 3px; }
.detail-grid span .ui-icon, .receipt-section h2 .ui-icon { display: inline-block; width: 15px; height: 15px; margin-right: 5px; vertical-align: -3px; color: var(--accent); }
.detail-grid strong { font-size: 14px; }
.payment-summary-item { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.payment-summary-item > span, .payment-summary-item > strong, .payment-summary-item > small { flex-basis: 100%; }
.payment-summary-item > .btn { flex: 0 0 auto; margin-top: 2px; }
.detail-note { margin-top: 22px; padding-top: 18px; border-top: 1px solid #eeeeee; font-size: 14px; }
.action-stack { display: grid; gap: 10px; }
.danger-zone { display: flex; align-items: center; justify-content: space-between; gap: 18px; border-color: #f0d4d4; }
.danger-zone h2 { margin-bottom: 5px; }
.danger-zone p { margin: 0; }
.drawer-backdrop { position: fixed; inset: 0; z-index: 30; display: none; background: rgba(0,0,0,.38); }
.drawer-backdrop.open { display: block; }
.drawer { position: absolute; top: 0; right: 0; width: min(680px, 94vw); height: 100%; overflow-y: auto; padding: 30px 28px 46px; background: var(--canvas); box-shadow: -8px 0 28px rgba(0,0,0,.18); animation: drawer-in .18s ease-out; }
.drawer-close { position: absolute; top: 18px; right: 18px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #fff; color: var(--ink); font-size: 27px; line-height: 1; cursor: pointer; box-shadow: var(--shadow); }
.drawer-close:hover { background: #f1f1f1; }
.drawer-form { padding-top: 22px; }
.drawer-form .page-head { padding-right: 40px; }
.drawer-form .page-head .btn.secondary { display: none; }
.drawer-form .panel { margin-top: 0; }
.drawer-loading { padding: 70px 20px; text-align: center; color: var(--muted); }
@keyframes drawer-in { from { transform: translateX(25px); opacity: .7; } to { transform: translateX(0); opacity: 1; } }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } .actions { min-width: 180px; } .detail-layout { grid-template-columns: 1fr; } .detail-layout .panel:first-child { grid-row: auto; } }
@media (max-width: 900px) { .payment-grid { grid-template-columns: 1fr 1fr; } .payment-grid > div:first-child { grid-column: 1 / -1; } }
@media (max-width: 680px) { .topbar { min-height: 72px; padding: 0 18px; } .brand { font-size: 18px; gap: 8px; } .brand-logo { width: 104px; height: 36px; } .brand span { display: none; } .container { padding: 26px 16px 52px; } .login-view .container { min-height: 100dvh; padding: 22px 16px; } .login-view .login { padding: 26px 20px 22px; border-radius: 18px; } .login-logo { width: min(118px, 38%); margin-bottom: 16px; } .login-view .login h1 { font-size: 21px; } .login-view .login > p.muted { margin-bottom: 22px; font-size: 13px; } .page-head { align-items: stretch; flex-direction: column; margin-bottom: 22px; } .page-head h1 { font-size: 28px; } .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } .card { padding: 15px; } .stat { font-size: 25px; } .panel { padding: 18px 15px; border-radius: 13px; } .form-grid, .payment-grid { grid-template-columns: 1fr; gap: 16px; } .payment-grid > div:first-child { grid-column: auto; } .full { grid-column: auto; } .form-actions { flex-direction: column; } .form-actions .btn { width: 100%; } table { display: block; overflow-x: auto; white-space: nowrap; } th, td { padding: 13px 10px; } .reservation-main { padding: 16px; } .reservation-title { align-items: flex-start; flex-direction: column; gap: 2px; } .reservation-meta { display: grid; gap: 4px; } .section-heading { align-items: flex-start; flex-direction: column; } .detail-grid { grid-template-columns: 1fr; gap: 14px; } .danger-zone { align-items: stretch; flex-direction: column; } .danger-zone .btn { width: 100%; } .drawer { width: 100%; padding: 22px 15px 36px; } }
.eyebrow { display: block; color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 5px; }
.optional { color: var(--muted); font-size: 12px; font-weight: 400; }
.form-intro { padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid #eeeeee; }
.form-intro h2 { margin: 0 0 5px; font-size: 22px; }
.form-intro p { margin: 0; color: var(--muted); }
.form-section { margin-top: 28px; padding-top: 26px; border-top: 1px solid #eeeeee; }
.form-section h3 { margin: 0 0 3px; font-size: 17px; }
.form-section p { margin: 0 0 16px; }
.time-locked input { background: #f4f4f4; color: #717171; cursor: not-allowed; }
.time-locked > span { display: block; color: var(--muted); font-size: 11px; margin-top: 4px; }
.counter-grid { display: grid; gap: 10px; }
.counter-item { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 14px 0; border-bottom: 1px solid #eeeeee; }
.counter-item:last-child { border-bottom: 0; }
.counter-item strong, .counter-item span { display: block; }
.counter-item span { color: var(--muted); font-size: 12px; margin-top: 2px; }
.counter { display: flex; align-items: center; gap: 8px; }
.counter button { width: 34px; height: 34px; border: 1px solid #bdbdbd; border-radius: 50%; background: #fff; color: var(--ink); font-size: 20px; line-height: 1; cursor: pointer; transition: background .15s ease, border-color .15s ease, transform .15s ease; }
.counter button:hover { border-color: var(--ink); background: #f7f7f7; }
.counter button:active { transform: scale(.94); }
.counter button:disabled { opacity: .35; cursor: not-allowed; border-color: #e0e0e0; background: #f5f5f5; color: #b0b0b0; }
.counter button:disabled:hover { border-color: #e0e0e0; background: #f5f5f5; transform: none; }
.counter input { width: 36px; padding: 5px 0; border: 0; background: transparent; text-align: center; font-weight: 700; }
.money-field { position: relative; }
.money-field > span { position: absolute; left: 13px; top: 12px; color: var(--muted); font-weight: 700; }
.money-field input { padding-left: 38px; }
.hero-summary { margin-top: 0; }
.hero-summary h2 { margin: 0; font-size: 24px; }
.action-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.action-bar h2 { margin: 0; font-size: 18px; }
.action-bar-buttons { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.copy-link { display: flex; gap: 7px; min-width: min(440px, 100%); }
.copy-link input { min-width: 0; background: #f7f7f7; }
.reservation-right .copy-link { display: grid; grid-template-columns: 1fr; gap: 10px; min-width: 0; width: 100%; }
.reservation-right .copy-link .btn { width: 100%; }
.hero-summary .text-link { display: inline-flex; align-items: center; gap: 7px; padding: 10px 14px; border: 1px solid #d5d5d5; border-radius: 999px; text-decoration: none; white-space: nowrap; }
.hero-summary .text-link::before { content: ''; width: 17px; height: 17px; background: url('icons/file.svg') center / contain no-repeat; }
.hero-summary .text-link:hover { border-color: #222; color: var(--ink); background: #f7f7f7; }
.detail-tabs { display: flex; gap: 6px; padding: 5px; border: 1px solid #e5e5e5; border-radius: 999px; background: #fff; }
.detail-tab { flex: 1; min-height: 42px; padding: 9px 14px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.detail-tab.active { background: #222; color: #fff; }
.detail-tab span { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; margin-left: 4px; padding: 0 5px; border-radius: 999px; background: rgba(255,255,255,.18); font-size: 11px; }
.detail-tab:not(.active) span { background: #f1f1f1; color: var(--ink); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: tab-in .18s ease-out; }
.message-list { display: grid; gap: 10px; }
.message-item { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 14px; border: 1px solid #e8e8e8; border-radius: 13px; background: #fafafa; }
.message-item strong, .message-item span { display: block; }
.message-item span { margin-top: 3px; color: var(--muted); font-size: 12px; }
@keyframes tab-in { from { opacity: .35; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.guest-shell { max-width: 850px; margin: 0 auto; }
.guest-hero { padding: 22px 4px 25px; }
.guest-hero h1 { margin: 0 0 8px; font-size: 38px; letter-spacing: -1px; }
.guest-hero p { color: var(--muted); font-size: 17px; margin: 0; }
.guest-summary { margin-top: 0; border-top: 3px solid var(--accent); }
.summary-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.summary-heading h2 { margin: 0; font-size: 24px; }
.summary-badge, .step-pill { display: inline-flex; align-items: center; border-radius: 99px; padding: 6px 10px; background: #e9f6ed; color: #287642; font-size: 12px; font-weight: 800; }
.guest-summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.guest-summary-grid span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.guest-summary-grid strong { font-size: 14px; }
.guest-cpf-field { min-width: 0; }
.guest-cpf-field input { max-width: 360px; }
.guest-cpf-status { display: inline-flex; align-items: center; min-height: 32px; margin-top: 10px; padding: 6px 12px; border-radius: 999px; background: #f2f2f0; color: #62665b; font-size: 13px; font-weight: 500; }
.guest-cpf-status[data-state="returning"] { background: #dff3e4; color: #137a38; }
.guest-cpf-status[data-state="invalid"] { background: #fff0f0; color: #a73535; }
.guest-history-context { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 16px; }
.guest-history-context .status-pill { gap: 6px; }
.guest-history-context .ui-icon { width: 14px; height: 14px; }
.guest-history-context small { color: var(--muted); font-size: 12px; }
.guest-form { display: grid; gap: 18px; margin-top: 18px; }
.guest-section { margin-top: 0; }
.guest-section .section-heading { align-items: flex-start; }
.guest-section .section-heading h2 { margin-bottom: 3px; }
.guest-section .section-heading p { margin: 0; }
.upload-drop { position: relative; display: flex; min-height: 150px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 24px; border: 1.5px dashed #bdbdbd; border-radius: 13px; background: #fafafa; text-align: center; cursor: pointer; transition: border-color .15s ease, background .15s ease, transform .15s ease; }
.upload-drop:hover, .upload-drop.dragging { border-color: var(--accent); background: #fff5f6; transform: translateY(-1px); }
.upload-drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.upload-drop strong { font-size: 14px; }
.upload-drop small, .file-name { color: var(--muted); font-size: 12px; }
.file-name { color: var(--accent); font-weight: 700; }
.upload-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #e5f2ff; color: var(--accent); font-size: 22px; font-weight: 700; }
.companion-card { margin-bottom: 12px; padding: 18px; border: 1px solid #e4e4e4; border-radius: 13px; background: #fafafa; animation: drawer-in .18s ease-out; }
.companion-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.remove-companion { border: 0; background: transparent; color: var(--accent); cursor: pointer; font-weight: 700; }
.privacy-check { display: flex; align-items: flex-start; gap: 10px; margin-top: 22px; font-weight: 500; line-height: 1.4; }
.privacy-check input { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 1px; accent-color: var(--accent); }
.submit-btn { min-width: 230px; }
.locked-summary { margin-top: 18px; border-top: 3px solid #2d8a4b; }
.locked-person-list { display: grid; gap: 10px; }
.locked-person { display: grid; grid-template-columns: 1.25fr 1fr 1fr 1.15fr; gap: 18px; padding: 16px; border: 1px solid #e5e5e5; border-radius: 12px; background: #fafafa; }
.locked-person span, .locked-details span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 3px; }
.locked-person strong, .locked-details strong { font-size: 13px; }
.locked-details { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 18px; padding-top: 18px; border-top: 1px solid #eeeeee; }
.locked-notice { margin-bottom: 0; margin-top: 22px; }
@media (max-width: 680px) { .guest-hero h1 { font-size: 31px; } .guest-summary-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; } .summary-heading { flex-direction: column; } .action-bar { align-items: stretch; flex-direction: column; } .action-bar-buttons, .copy-link { width: 100%; min-width: 0; } .copy-link { flex-direction: column; } .copy-link .btn, .action-bar-buttons > .btn { width: 100%; } }
@media (max-width: 680px) { .locked-person { grid-template-columns: 1fr 1fr; gap: 14px; } .locked-details { grid-template-columns: 1fr; } }
.page-head-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.icon-action { width: 42px; height: 42px; display: inline-grid; place-items: center; border: 1px solid #cfe4fb; border-radius: 50%; background: #fff; color: var(--accent-dark); font-size: 20px; cursor: pointer; }
.icon-action:hover { background: #e5f2ff; border-color: var(--accent); }
.icon-action.danger-icon, .icon-action.user-delete { border-color: #f0c9cf; color: #c5223d; }
.icon-action.danger-icon:hover, .icon-action.user-delete:hover { background: #fff0f0; border-color: #c5223d; }
.icon-action.small { width: 34px; height: 34px; }
.icon-flip { transform: scaleX(-1); }
.delete-form { display: none; }
.guest-data-panel { margin-top: 20px; }
.compact-empty { padding: 18px; }
.guest-data-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; }
.guest-data-stack { display: grid; gap: 14px; }
.guest-data-block { padding: 18px; border: 1px solid #e8e8e8; border-radius: 13px; background: #fafafa; }
.guest-data-block h3 { margin: 0 0 14px; font-size: 16px; }
.guest-person-row { display: flex; align-items: flex-start; gap: 11px; padding: 12px 0; border-top: 1px solid #e8e8e8; }
.person-avatar { flex: 0 0 34px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #e5f2ff; color: var(--accent); font-weight: 800; }
.guest-person-row strong, .guest-person-row span { display: block; }
.guest-person-row span { color: var(--muted); font-size: 12px; margin-top: 3px; }
.guest-person-copy { min-width: 0; flex: 1; }
.document-thumb { display: grid; place-items: center; flex: 0 0 58px; width: 58px; height: 58px; overflow: hidden; padding: 0; border: 1px solid #dedede; border-radius: 10px; background: #fff; color: var(--ink); cursor: zoom-in; }
.document-thumb:hover { border-color: var(--ink); box-shadow: 0 3px 12px rgba(0,0,0,.12); }
.document-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.document-thumb .ui-icon { width: 24px; height: 24px; }
.document-thumb small { margin: 0; font-size: 10px; font-weight: 800; }
.document-missing { align-self: center; color: var(--muted); font-size: 11px; white-space: nowrap; }
.service-block { background: #fff9fa; border-color: #f4d4da; }
.service-item, .receipt-service { display: flex; align-items: center; gap: 12px; }
.service-item strong, .service-item span, .receipt-service strong, .receipt-service span { display: block; }
.service-item span:last-child { margin-top: 2px; color: var(--muted); font-size: 12px; }
.service-icon { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%; background: #e5f2ff; color: var(--accent); }
.service-icon { position: relative; line-height: 0; }
.service-icon .ui-icon { position: absolute; inset: 0; width: 19px; height: 19px; margin: auto; display: block; object-fit: contain; }
.phone-field { display: flex; gap: 8px; }
.phone-field select { flex: 0 0 142px; }
.phone-field input { min-width: 0; flex: 1; }
.topbar-actions { display: flex; align-items: center; gap: 14px; }
.topbar-link { color: var(--ink); font-size: 14px; font-weight: 700; text-decoration: none; }
.field-help { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; }
.field-help.error { color: #c5223d; font-weight: 650; }
.shake-error { animation: shake-error .32s linear; }
@keyframes shake-error { 0%,100% { transform: translateX(0); } 20%,60% { transform: translateX(-5px); } 40%,80% { transform: translateX(5px); } }
@media (prefers-reduced-motion: reduce) { .shake-error { animation: none; } }
@media (prefers-reduced-motion: reduce) { .notice.toast, .drawer, .tab-panel.active, .companion-card, .reservation-list { animation: none; } .notice.toast-hide { transition: none; } }
.user-list { display: grid; gap: 12px; }
.user-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.user-row:last-child { border-bottom: 0; }
.user-row > div > strong, .user-row > div > span { display: block; }
.user-row > div > span { margin-top: 3px; color: var(--muted); font-size: 13px; }
.user-row-actions { display: flex; align-items: center; gap: 8px; }
.user-row-actions form { display: flex; gap: 8px; align-items: center; }
.user-row-actions input[type="password"] { width: 130px; }
.change-log-list { display: grid; gap: 10px; }
.price-breakdown-detail { margin: 4px 0 14px; padding-top: 10px; border-top: 1px solid #eee; }
.price-breakdown-detail .compact-list + .compact-list { margin-top: 10px; }
.price-breakdown-detail .change-log-entry { padding: 6px 0; }
.change-log-entry { display: grid; grid-template-columns: minmax(120px, .8fr) minmax(0, 2fr) auto; gap: 12px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.change-log-entry:last-child { border-bottom: 0; }
.change-log-entry span, .change-log-entry small { color: var(--muted); }
a.change-log-entry { color: var(--ink); text-decoration: none; cursor: pointer; }
a.change-log-entry:hover strong { text-decoration: underline; }
.viewer-mode .more-menu, .viewer-mode .step-action, .viewer-mode .message-panel, .viewer-mode .link-panel, .viewer-mode .task-panel { display: none; }
@media (max-width: 680px) { .user-row, .user-row-actions, .user-row-actions form { align-items: stretch; flex-direction: column; } .user-row-actions input[type="password"] { width: 100%; } .topbar-actions { gap: 10px; } }
.document-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 28px; background: rgba(0,0,0,.84); }
.document-modal[hidden] { display: none; }
.document-modal-content { position: relative; display: grid; width: min(1100px, 100%); max-height: 100%; place-items: center; }
.document-modal img, .document-modal iframe { display: block; max-width: 100%; max-height: calc(100vh - 56px); border: 0; border-radius: 12px; background: #fff; }
.document-modal img { object-fit: contain; }
.document-modal iframe { width: min(100%, 900px); height: calc(100vh - 90px); }
.document-modal-close { position: absolute; top: -12px; right: -12px; z-index: 1; display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: #fff; color: #222; cursor: pointer; }
.preference-list { display: grid; gap: 14px; }
.preference-list span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 3px; }
.preference-list strong { font-size: 14px; }
.step-dot { display: grid; place-items: center; text-align: center; line-height: 1; font-family: Arial, sans-serif; }
.step-dot { position: relative; overflow: hidden; padding: 0; line-height: 0; }
.step-dot .ui-icon { position: absolute; left: 50%; top: 50%; display: block; width: 17px; height: 17px; margin: 0; transform: translate(-50%, -50%); vertical-align: middle; object-position: center; }
.step.complete .step-dot { display: grid; place-items: center; }
.reservation-columns { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(330px, .92fr); align-items: start; gap: 20px; }
.reservation-left, .reservation-right { display: grid; gap: 20px; min-width: 0; }
.reservation-right .action-bar { display: block; }
.reservation-right .action-bar-buttons { display: grid; margin-top: 16px; justify-content: stretch; }
.reservation-right .copy-link { min-width: 0; }
@media (max-width: 900px) { .guest-data-grid { grid-template-columns: 1fr; } .reservation-columns { grid-template-columns: 1fr; } }
/* Reserva aberta dentro do painel lateral da Agenda (iframe embed=1): o
   painel agora é largo o bastante (2/3 da tela) pra caber duas colunas —
   então não força mais coluna única aqui; quem decide é o @media acima,
   que já olha a largura do documento (a do iframe, quando embutido). */
body.embedded-view .container { padding: 18px 16px 28px; }
/* Nome, status, código e os botões de ação (editar, reagendar, copiar link,
   cancelar...) ficam fixos no topo do painel lateral enquanto só o resto da
   reserva rola por baixo. "position: sticky" sozinho não é confiável aqui
   (depende do elemento rolante certo ser o ancestral mais próximo) — em vez
   disso, só nesta página (?action=view&embed=1), o próprio render() marca o
   <main class="container"> com ".reservation-embed-shell" (app/functions.php),
   que vira uma coluna flex de altura cheia: o .page-head fica fixo
   (flex: none) e tudo depois dele entra num wrapper à parte
   (.embedded-scroll) que é o único que rola. Não depende de ":has()" — só
   de uma classe fixa vinda do PHP, então funciona em qualquer navegador. */
/* Esse recorte de altura fixa + rolagem interna só faz sentido no desktop,
   onde o painel lateral é uma caixa de altura fixa (ver @media abaixo). No
   celular o painel acompanha o scroll da página toda e o iframe precisa
   crescer livremente pra caber o conteúdo (ver comentário e resize() em
   agenda.php) — por isso essas regras ficam presas ao mesmo breakpoint
   (min-width:1121px) que o JS usa pra decidir o modo. Aplicá-las sem media
   query travava o iframe numa altura mínima no celular. */
@media (min-width: 1121px) {
    .reservation-embed-shell {
        display: flex;
        flex-direction: column;
        height: 100vh;
        height: 100dvh;
        min-height: 0;
        padding: 0 !important;
        overflow: hidden;
    }
    .reservation-embed-shell .page-head {
        flex: none;
        z-index: 5;
        margin: 0;
        padding: 18px 16px 14px;
        background: #fff;
        border-bottom: 1px solid #ececec;
        align-items: flex-start;
    }
    .reservation-embed-shell .embedded-scroll {
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        padding: 18px 16px 28px;
    }
    /* Reserva espaço à direita do cabeçalho para o botão de fechar (X)
       flutuante do painel pai, que só fica sobreposto por cima do iframe
       no modo desktop (ver .is-full-mode mais abaixo). */
    .reservation-embed-shell .page-head { padding-right: 68px; }
}
/* Drawer do Financeiro (?embed=1&shell=drawer): mesmo recorte de cabeçalho
   fixo + rolagem interna do painel da Agenda, mas ligado a partir de 900px —
   a largura real deste painel (min 940px no desktop) e também o ponto em que
   a reserva passa a caber nas duas colunas. Sem isso o cabeçalho subia junto
   com o scroll e o botão de fechar passava por cima do conteúdo. */
@media (min-width: 900px) {
    .reservation-embed-drawer {
        display: flex;
        flex-direction: column;
        height: 100vh;
        height: 100dvh;
        min-height: 0;
        padding: 0 !important;
        overflow: hidden;
    }
    .reservation-embed-drawer .page-head {
        flex: none;
        z-index: 5;
        margin: 0;
        padding: 18px 16px 14px;
        padding-right: 68px;
        background: #fff;
        border-bottom: 1px solid #ececec;
        align-items: flex-start;
    }
    .reservation-embed-drawer .embedded-scroll {
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        padding: 18px 16px 28px;
    }
}
/* Abaixo de 900px o drawer ocupa a tela inteira e rola normalmente — aqui só
   garante que o título não fique escondido atrás do botão de fechar. */
@media (max-width: 899px) {
    .reservation-embed-drawer .page-head { padding-right: 56px; }
}
@media (max-width: 680px) { .page-head-actions { width: 100%; justify-content: space-between; } .guest-data-grid { gap: 12px; } .guest-data-block { padding: 15px; } }
@media (max-width: 680px) { .detail-tabs { width: 100%; } .detail-tab { padding-inline: 8px; font-size: 12px; } .message-item { align-items: stretch; flex-direction: column; } .message-item .btn { width: 100%; } .hero-summary .text-link { align-self: flex-start; } }
@media (max-width: 680px) { .receipt-preferences { grid-template-columns: 1fr; } .receipt-guest-row { padding: 10px; } }
@media (max-width: 680px) { .receipt-policies { grid-template-columns: 1fr; gap: 14px; } }
@media (max-width: 680px) { .reservation-control { align-items: stretch; flex-direction: column; } .reservation-tabs { justify-content: center; } .reservation-filters { display: grid; grid-template-columns: 1fr 1fr; justify-content: stretch; } .reservation-filters input, .reservation-filters input[type="month"], .reservation-filters .btn { width: 100%; } .reservation-filters input:first-of-type { grid-column: 1 / -1; } }
@media (max-width: 680px) { .page-head { align-items: stretch; flex-direction: column; } .page-head-actions .btn { flex: 1; } .page-head-actions .icon-action { flex: 0 0 42px; } .detail-grid { grid-template-columns: 1fr; } .detail-grid > div { padding-left: 44px; } }
.ticket-summary { position: relative; overflow: hidden; padding: 25px 28px 18px; border: 0; border-radius: 20px; background: linear-gradient(135deg, #0080ff 0%, #0057b3 100%); color: #fff; box-shadow: 0 10px 26px rgba(0, 87, 179, .22); }
.ticket-summary::before, .ticket-summary::after { content: ''; position: absolute; top: 56%; width: 25px; height: 25px; border-radius: 50%; background: var(--canvas); transform: translateY(-50%); }
.ticket-summary::before { left: -13px; }
.ticket-summary::after { right: -13px; }
.ticket-summary .eyebrow, .ticket-summary .guest-summary-grid span { color: rgba(255,255,255,.78); }
.ticket-summary .summary-heading { display: none; }
.ticket-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.ticket-top h2 { margin: 0 0 3px; color: #fff; font-size: 27px; letter-spacing: -.5px; }
.ticket-code { color: rgba(255,255,255,.75); font-size: 12px; letter-spacing: .08em; }
.ticket-summary .summary-badge { background: rgba(255,255,255,.18); color: #fff; border: 1px solid rgba(255,255,255,.35); }
.ticket-route { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; margin: 23px 0; padding: 17px 0; border-top: 1px dashed rgba(255,255,255,.42); border-bottom: 1px dashed rgba(255,255,255,.42); }
.ticket-route > div { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.ticket-route strong { color: #fff; white-space: nowrap; }
.ticket-mark { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; }
.ticket-mark .ui-icon { width: 17px; height: 17px; }
.ticket-route-line { display: flex; align-items: center; gap: 7px; }
.ticket-route-line span { flex: 1; height: 1px; background: rgba(255,255,255,.55); }
.ticket-route-line i { font-style: normal; font-size: 16px; }
.ticket-divider { height: 1px; margin: 23px 0 19px; border-top: 1px dashed rgba(255,255,255,.48); }
.ticket-summary .guest-summary-grid { grid-template-columns: repeat(3, 1fr); gap: 18px 25px; }
.ticket-summary .guest-summary-grid strong { color: #fff; }
.receipt-ticket .guest-summary-grid > div { min-width: 0; }
.receipt-guest-list { display: grid; gap: 10px; }
.receipt-guest-row { display: flex; align-items: flex-start; gap: 12px; padding: 12px; border: 1px solid #eeeeee; border-radius: 12px; background: #fafafa; }
.receipt-guest-row strong, .receipt-guest-row span { display: block; }
.receipt-guest-row span { margin-top: 3px; color: var(--muted); font-size: 12px; }
.receipt-document-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; color: var(--ink); font-size: 12px; font-weight: 700; }
.receipt-document-link .ui-icon { width: 15px; height: 15px; }
.receipt-preferences { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid #eeeeee; }
.receipt-preferences span, .receipt-preferences strong { display: block; }
.receipt-preferences span { color: var(--muted); font-size: 12px; margin-bottom: 3px; }
.receipt-preferences strong { font-size: 13px; }
.receipt-service { margin-top: 14px; padding-top: 14px; border-top: 1px solid #eeeeee; }
.resource-list { display: grid; gap: 8px; }
.resource-list a { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; color: var(--ink); text-decoration: none; }
.resource-list a:hover { background: #f7f7f7; }
.resource-list strong, .resource-list small, .receipt-policies strong, .receipt-policies span { display: block; }
.resource-list small, .receipt-policies span { margin-top: 2px; color: var(--muted); font-size: 12px; }
.resource-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #e5f2ff; color: var(--accent); }
.resource-icon .ui-icon { width: 18px; height: 18px; }
.receipt-policies { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.receipt-policies strong { font-size: 13px; }
.receipt-policies .policy-full { grid-column: 1 / -1; }
.ticket-icon { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 4px; color: #fff; font-size: 10px; font-weight: 800; font-style: normal; vertical-align: -5px; }
.ticket-icon .ui-icon { width: 18px; height: 18px; }
.ticket-top .summary-badge .ui-icon { width: 14px; height: 14px; margin-right: 3px; vertical-align: -3px; }
.ticket-route-line .ui-icon { width: 16px; height: 16px; color: rgba(255,255,255,.85); }
.ticket-footer { display: flex; justify-content: space-between; gap: 10px; margin-top: 23px; padding-top: 13px; border-top: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.78); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
@media (max-width: 680px) { .ticket-summary { padding: 22px 20px 16px; } .ticket-top h2 { font-size: 23px; } .ticket-summary .guest-summary-grid { grid-template-columns: repeat(2, 1fr); gap: 15px 12px; } .ticket-route { gap: 8px; } .ticket-route > div { font-size: 11px; } .ticket-route-line { min-width: 35px; } }
.receipt-logo { display: block; width: 112px; height: 72px; margin-left: auto; object-fit: contain; object-position: right center; border-radius: 8px; background: #fff; }
.ticket-top { position: relative; padding-right: 126px; }
.ticket-top .receipt-logo { position: absolute; top: 0; right: 0; }
.ticket-top .summary-badge { position: absolute; right: 144px; top: 0; }
.message-tab-label { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-size: 13px; font-weight: 700; }
.message-tab-label .ui-icon { width: 16px; height: 16px; }
.stages-panel, .message-panel, .link-panel { min-width: 0; }
.step-dot .ui-icon { width: 18px !important; height: 18px !important; min-width: 18px; min-height: 18px; left: 50%; top: 50%; transform: translate(-50%, -50%) !important; }
.step-dot { width: 38px; height: 38px; flex-basis: 38px; align-items: center; justify-content: center; }
.step:not(:last-child)::before { left: 18px; top: 38px; }
.step { gap: 15px; min-height: 76px; align-items: flex-start; }
.step > div { padding-top: 6px; }
.more-menu { display: none !important; }
.dashboard-layout { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
.dashboard-content { min-width: 0; }
.dashboard-layout > .dashboard-content { grid-column: 1; }
.task-panel { grid-column: 2; grid-row: 1; }
.form-intro h2::before { content: ''; display: inline-block; width: 22px; height: 22px; margin-right: 8px; vertical-align: -2px; background: url('icons/calendar.svg?v=4') center / contain no-repeat; }
.form-section h3 { display: flex; align-items: center; gap: 8px; }
.form-section h3 .ui-icon { width: 20px; height: 20px; }

/* Interface inspirada no fluxo de reservas: lista lateral e conteúdo principal. */
.container:has(.dashboard-reference) { max-width: 1440px; padding-top: 0; }
.dashboard-reference { min-height: calc(100vh - 79px); display: grid; grid-template-columns: 390px minmax(0, 1fr); margin: 0 -24px -72px; }
.dashboard-rail { position: sticky; top: calc(79px + 20px); align-self: start; box-sizing: border-box; height: calc(100vh - 79px - 40px); min-width: 0; overflow-y: auto; padding: 26px 22px 40px; margin: 20px 0 20px 20px; border: 1px solid #ececec; border-radius: var(--radius); background: #fff; box-shadow: 0 14px 34px rgba(0, 0, 0, .09); }
.app-shell .dashboard-rail { top: calc(72px + 20px); height: calc(100vh - 72px - 40px); }
.rail-heading, .overview-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.rail-heading h1, .overview-heading h1 { margin: 0; font-size: 30px; letter-spacing: -.7px; }
.rail-add { color: var(--ink); border-color: transparent; background: #f5f5f5; text-decoration: none; font-size: 25px; }
.rail-add:hover { border-color: #ddd; background: #eee; }
.dashboard-rail .reservation-tabs { width: max-content; margin-top: 26px; }
.rail-filters { display: grid; gap: 10px; margin: 18px 0 30px; }
.search-field { position: relative; margin: 0; }
.search-field .ui-icon { position: absolute; left: 14px; top: 50%; z-index: 1; width: 17px; height: 17px; transform: translateY(-50%); opacity: .65; }
.search-field input { padding-left: 42px; border-radius: 999px; background: #f7f7f7; }
.search-field input { padding-right: 43px; }
.search-clear { position: absolute; right: 8px; top: 50%; display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; transform: translateY(-50%); }
.search-clear:hover { background: #e9e9e9; }
.search-clear .ui-icon { position: static; width: 16px; height: 16px; transform: none; opacity: 1; }
.search-clear.is-hidden { display: none; }
.rail-filter-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.rail-filter-row input { border-radius: 999px; }
.rail-list-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.rail-list-heading span { color: var(--muted); font-size: 13px; }
.rail-reservation-list { display: grid; gap: 8px; }
.rail-reservation { display: block; padding: 14px; border: 1px solid transparent; border-radius: 16px; color: var(--ink); text-decoration: none; transition: border-color .16s ease, background .16s ease, transform .16s ease; }
.rail-reservation:hover { background: #f7f7f7; transform: translateY(-1px); }
.rail-reservation.selected { border-color: #222; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.rail-reservation-date { margin-bottom: 9px; font-size: 11px; font-weight: 700; }
.rail-reservation-body { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.rail-reservation-body strong, .rail-reservation-body small { display: block; }
.rail-reservation-body small { margin-top: 2px; color: var(--muted); font-size: 12px; }
.rail-reservation-body .person-avatar { width: 40px; height: 40px; flex-basis: 40px; }
.rail-empty { padding: 28px 12px; }
.dashboard-overview { width: min(790px, calc(100% - 48px)); margin: 0 auto; padding: 48px 0 80px; }
.overview-heading { margin-bottom: 28px; }
.overview-heading p { margin: 5px 0 0; }
.overview-stats { display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; border: 1px solid #e7e7e7; border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.overview-stats > div { padding: 18px; border-right: 1px solid #ececec; }
.overview-stats > div:last-child { border-right: 0; }
.overview-stats strong, .overview-stats span { display: block; }
.overview-stats strong { font-size: 25px; line-height: 1; }
.overview-stats span { margin-top: 7px; color: var(--muted); font-size: 12px; }
.overview-tasks, .all-stays-card { margin-top: 18px; }
.overview-empty { display: flex; align-items: center; gap: 12px; padding: 15px; border-radius: 14px; background: #f7f7f7; }
.overview-empty > .ui-icon { width: 22px; height: 22px; }
.overview-empty strong, .overview-empty small { display: block; }
.overview-empty small { color: var(--muted); }
.next-stay-identity { display: flex; align-items: center; gap: 16px; }
.next-stay-identity h2 { margin: 0 0 2px; font-size: 25px; }
.next-stay-identity p { margin: 0; color: var(--muted); }
.large-avatar { display: grid; place-items: center; flex: 0 0 66px; width: 66px; height: 66px; border-radius: 50%; background: #f1eaff; color: #6a46b8; font-size: 24px; font-weight: 800; }
.stay-dates { display: grid; grid-template-columns: 1fr 1fr; margin: 24px 0 18px; padding: 18px 0; border-top: 1px solid #eee; border-bottom: 1px solid #eee; }
.stay-dates > div { padding: 0 18px; }
.stay-dates > div:first-child { padding-left: 0; border-right: 1px solid #eee; }
.stay-dates span, .stay-dates strong, .stay-dates small { display: block; }
.stay-dates span, .stay-dates small { color: var(--muted); font-size: 12px; }
.stay-dates strong { margin: 3px 0; }
.manage-reservation { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 14px; background: #f7f7f7; color: var(--ink); text-decoration: none; }
.manage-reservation:hover { background: #f1f1f1; }
.manage-reservation > .ui-icon { width: 20px; height: 20px; }
.manage-reservation strong, .manage-reservation small { display: block; }
.manage-reservation small { color: var(--muted); font-size: 12px; }
.all-stays-list { display: grid; gap: 8px; }
.compact-stay { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 11px; border: 1px solid transparent; border-radius: 14px; color: var(--ink); text-decoration: none; }
.compact-stay:hover { border-color: #dedede; background: #fafafa; }
.compact-stay .large-avatar { flex-basis: 42px; width: 42px; height: 42px; font-size: 16px; }
.compact-stay-copy, .compact-stay-dates { min-width: 0; }
.compact-stay-copy strong, .compact-stay-copy small, .compact-stay-dates strong, .compact-stay-dates small { display: block; }
.compact-stay-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.compact-stay-copy small, .compact-stay-dates small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.compact-stay-dates { text-align: right; }
.compact-stay-dates strong { font-size: 12px; }
.reservation-detail-panel { min-height: calc(100vh - 130px); }
.reservation-detail-panel > .back-link { margin: 0 0 14px; border: 0; background: transparent; cursor: pointer; }
.reservation-details-content { min-height: calc(100vh - 185px); }
.detail-loading { color: var(--muted); }
.embedded-view .topbar { display: none; }
.embedded-view .container { max-width: none; padding: 24px; }

/* Ações globais no topo e painéis laterais. */
.topbar-icon-button { position: relative; display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; background: #f7f7f7; color: var(--ink); cursor: pointer; transition: transform .18s ease, background .18s ease; }
.topbar-icon-button:hover { background: #ededed; transform: scale(1.04); }
.topbar-icon-button .ui-icon { width: 20px; height: 20px; }
.topbar-badge { position: absolute; top: -4px; right: -4px; display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; border: 2px solid #fff; border-radius: 999px; background: var(--accent); color: #fff; font-size: 10px; font-weight: 800; line-height: 1; }
/* Sessão Master (seção 3.1 da especificação de papéis): indicador fixo pra não
   confundir com a sessão de Sócio Administrador quando o mesmo usuário tem as duas. */
.master-session-badge { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; background: #1a1a1a; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.topbar-drawer { position: fixed; top: calc(72px + 20px); right: 20px; bottom: 20px; z-index: 90; width: min(390px, calc(100vw - 40px)); padding: 28px 24px; overflow-y: auto; background: #fff; border-radius: var(--radius); box-shadow: 0 16px 48px rgba(0, 0, 0, .22); transform: translateX(calc(100% + 40px)); transition: transform .25s ease; }
.topbar-drawer.open { transform: translateX(0); }
.topbar-drawer.cleaning-drawer { width: min(480px, calc(100vw - 40px)); display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.cleaning-drawer .drawer-head { flex: 0 0 auto; padding: 26px 24px 18px; }
.cleaning-drawer-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 0 24px 20px; }
.cleaning-drawer-footer { flex: 0 0 auto; padding: 14px 24px; border-top: 1px solid var(--line); background: #fff; box-shadow: 0 -6px 14px rgba(0,0,0,.04); }
.cleaning-drawer-footer .btn { margin: 0; }
.cleaning-drawer .stock-count-grid > div { grid-template-columns: 1fr 90px; }
.cleaning-drawer .stock-count-grid select { grid-column: 1/-1; }
.cleaning-drawer .cleaning-checklist { grid-template-columns: 1fr; }
.cleaning-picker-list { display: grid; gap: 8px; margin: 12px 0 22px; }
.cleaning-picker-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 12px 14px; border: 1px solid #e4e4e4; border-radius: 12px; background: #fff; font: inherit; text-align: left; cursor: pointer; }
.cleaning-picker-item:hover { border-color: var(--accent); background: #e5f2ff; }
.cleaning-picker-item span { color: var(--muted); font-size: 12px; }
.cleaning-drawer-summary { display: grid; gap: 8px; margin: 18px 0; }
.drawer-summary-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid #eee; border-radius: 14px; background: #fafafa; }
.drawer-summary-row .ui-icon { width: 22px; height: 22px; flex: 0 0 22px; opacity: .75; }
.drawer-summary-row span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.drawer-summary-row small { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .03em; }
.drawer-summary-row strong { font-size: 15px; }
.cleaning-drawer-services { margin-bottom: 18px; }
.cleaning-drawer-services h3 { margin: 0 0 8px; font-size: 14px; }
.cleaning-drawer-services ul { margin: 0; padding-left: 18px; font-size: 13px; }
.cleaning-drawer-services li { margin-bottom: 4px; }
.cleaning-drawer-tabs { display: flex; gap: 4px; margin: 20px 0 16px; padding: 3px; border: 1px solid #e5e5e5; border-radius: 999px; background: #f5f5f5; }
.cleaning-tab-btn { flex: 1; padding: 9px 12px; border: 0; border-radius: 999px; background: transparent; color: #6b6b6b; font-size: 13px; font-weight: 750; cursor: pointer; }
.cleaning-tab-btn.active { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.cleaning-tab-panel h3 { margin: 0 0 10px; font-size: 15px; }
.cleaning-tab-panel .stock-count-grid { margin-top: 0; }
.topbar-drawer-backdrop { position: fixed; top: 72px; right: 0; bottom: 0; left: 0; z-index: 80; background: rgba(0, 0, 0, .32); }
.drawer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 4px 0 0; font-size: 24px; }
.drawer-close-button { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: #f7f7f7; color: var(--ink); font-size: 26px; line-height: 1; cursor: pointer; }
.topbar-task-list { display: grid; gap: 10px; margin-top: 18px; }
.topbar-task-list a { display: grid; grid-template-columns: 42px minmax(0,1fr); align-items: center; gap: 12px; padding: 15px; border: 1px solid #e6e6e6; border-radius: 14px; color: var(--ink); text-decoration: none; transition: background .18s ease, border-color .18s ease; }
.topbar-task-list a:hover { border-color: #cfcfcf; background: #fafafa; }
.topbar-task-list span { color: var(--muted); font-size: 13px; }
.topbar-task-list .topbar-task-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #f2f2f0; color: #242424; }
.topbar-task-list .topbar-task-icon .ui-icon { display: block; width: 22px; height: 22px; object-fit: contain; }
.topbar-task-list .task-icon-login { background: #e9f3e8; }
.topbar-task-list .task-icon-logout { background: #f8ece9; }
.topbar-task-list .task-icon-star { background: #f5f0df; }
.topbar-task-list .task-icon-id, .topbar-task-list .task-icon-users { background: #ecf0e7; }
.topbar-task-list .topbar-task-copy { display: grid; gap: 4px; min-width: 0; }
.topbar-task-list .topbar-task-copy strong, .topbar-task-list .topbar-task-copy span { overflow-wrap: anywhere; }
.settings-menu { display: grid; gap: 8px; margin-top: 18px; }
.settings-menu a { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 14px; border-radius: 12px; color: var(--ink); font-weight: 700; text-decoration: none; }
.settings-menu a:hover { background: #f7f7f7; }
.settings-menu .ui-icon { width: 19px; height: 19px; }

/* Gestão de usuários em colunas, sem comprimir os controles de acesso. */
.users-layout { display: grid; grid-template-columns: minmax(300px, .8fr) minmax(0, 1.2fr); align-items: start; gap: 22px; }
.users-layout .reservation-form, .users-layout .users-panel { max-width: none; margin: 0; }
.users-layout .reservation-form > .form-grid { margin-top: 0; }

/* A primeira seção de pagamento é a versão anterior do formulário. */
.reservation-form > .form-section:has(input[name="adults"]) + .form-section:has(select[name="payment_method"]),
.reservation-form > .form-section:has(select[name="payment_method"]):has(+ .form-section select[name="payment_method"]) { display: none; }

@media (max-width: 900px) { .users-layout { grid-template-columns: 1fr; } }
@media (max-width: 680px) { .topbar-drawer { padding: 24px 18px; } }

/* Gestão compacta, mas com áreas de ação bem separadas. */
.settings-trigger { background: #fff; border: 1px solid #d8d8d8; }
.settings-trigger:hover { background: #f5f5f5; border-color: #222; }
.settings-trigger .ui-icon { width: 21px; height: 21px; }
.settings-drawer { display: flex; flex-direction: column; width: min(1120px, calc(100vw - 40px)); padding-bottom: 0; }
.settings-layout { display: grid; grid-template-columns: 190px minmax(0,1fr); column-gap: 16px; flex: 1; min-height: 0; margin-top: 18px; border-top: 1px solid #ecece9; }
.settings-tabs { display: flex; flex-direction: column; gap: 5px; min-width: 0; padding: 18px 12px 18px 0; border-right: 1px solid #ecece9; overflow-y: auto; }
.settings-tabs button { display: flex; align-items: center; justify-content: flex-start; gap: 11px; width: 100%; min-height: 45px; padding: 10px 12px; border: 0; border-radius: 12px; background: transparent; color: #666; font: inherit; font-size: 13px; font-weight: 600; text-align: left; cursor: pointer; }
.settings-tabs button:hover { color: #222; background: #f4f4f2; }
.settings-tabs button.active { color: #222; background: #f0f2ec; font-weight: 700; }
.settings-tabs .ui-icon { flex: none; width: 18px; height: 18px; }
.settings-access-message { margin-top: 24px; }
.settings-users-frame { display: block; width: 100%; height: 100%; min-height: 0; border: 0; background: #fff; }
.settings-page { width: 100%; max-width: 1480px; }
.settings-page-layout { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 28px; align-items: start; margin-top: 28px; }
.settings-page-menu { position: sticky; top: 96px; display: grid; gap: 6px; padding: 12px; border-radius: 20px; background: #fff; box-shadow: 0 8px 28px rgba(31,37,26,.08); }
.settings-page-menu a { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 11px 14px; border-radius: 12px; color: #555; text-decoration: none; font-size: 14px; font-weight: 600; }
.settings-page-menu a:hover { background: #f5f6f2; color: #222; }
.settings-page-menu a.active { background: #eef2e9; color: #303a26; font-weight: 700; }
.settings-page-menu .ui-icon { flex: none; width: 19px; height: 19px; }
.settings-page-content { min-width: 0; min-height: calc(100vh - 205px); background: #fff; }
.settings-page-content iframe { display: block; width: 100%; height: max(780px, calc(100vh - 205px)); border: 0; background: #fff; }
@media (max-width: 760px) { .settings-page-layout { grid-template-columns: 1fr; gap: 16px; } .settings-page-menu { position: static; grid-template-columns: repeat(2,minmax(0,1fr)); } .settings-page-menu a { min-width: 0; padding: 10px; font-size: 12px; } .settings-page-content iframe { height: max(820px, calc(100vh - 260px)); } }
.settings-footer { display: flex; justify-content: flex-end; padding: 16px 0 22px; border-top: 1px solid var(--line); }
.settings-footer a { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 15px; border-radius: 12px; background: #222; color: #fff; font-weight: 800; text-decoration: none; }
.settings-footer .ui-icon { width: 18px; height: 18px; filter: brightness(0) invert(1); }
.embedded-view .container { max-width: none; padding: 4px 2px 20px; }
.embedded-view .module-page { width: 100%; margin: 0; transform: none; }
.embedded-view .module-section:first-of-type { margin-top: 0; }
.embedded-view .users-layout { grid-template-columns: minmax(250px, .72fr) minmax(0, 1.28fr); gap: 16px; }
.embedded-view .reservation-form > .form-grid, .embedded-view .users-panel { padding: 18px; border-radius: 16px; box-shadow: none; }
.users-layout .users-panel { padding: 24px; }
.user-list { gap: 0; }
.user-row { display: grid; grid-template-columns: minmax(175px, .65fr) minmax(0, 1.35fr); align-items: start; gap: 18px; padding: 18px 0; }
.user-row > div > strong { font-size: 16px; }
.user-row-actions { display: grid; gap: 9px; }
.user-row-actions form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.user-row-actions form:first-child select, .user-row-actions form:nth-child(2) input { width: 100%; min-width: 0; }
.user-row-actions form:last-child { grid-template-columns: auto; justify-content: end; }
.user-row-actions .btn { min-height: 40px; padding-inline: 13px; white-space: nowrap; }
.user-row-actions form:last-child .btn { color: #a61d2d; border-color: #efb5bd; background: #fff8f8; }
.whatsapp-action { flex: 0 0 42px; width: 42px; height: 42px; padding: 0; border: 0; background: #25d366; }
.whatsapp-action:hover { background: #1fbe5b; }
.whatsapp-action .ui-icon { width: 21px; height: 21px; }
.guest-data-panel .section-heading > .icon-action { flex: 0 0 42px; }
.section-title-with-icon { display: flex; align-items: center; gap: 9px; }
.section-title-with-icon .ui-icon { width: 21px; height: 21px; flex: 0 0 21px; }
.user-identity small { display: flex; align-items: center; gap: 6px; margin-top: 7px; color: var(--muted); font-size: 12px; }
.user-status { width: 8px; height: 8px; border-radius: 50%; background: #a8a8a8; }
.user-status.active { background: #39a852; }
.user-delete { color: #b42335 !important; border-color: #f3b8c0 !important; background: #fff8f8 !important; }
.user-delete:hover { background: #fff0f1 !important; border-color: #e56c7b !important; }
@media (max-width: 760px) { .settings-drawer { width: calc(100vw - 24px); } .settings-layout { grid-template-columns: 56px minmax(0,1fr); column-gap: 8px; } .settings-tabs { padding-right: 7px; } .settings-tabs button { justify-content: center; padding: 10px; } .settings-tabs button span { display: none; } .embedded-view .users-layout, .user-row { grid-template-columns: 1fr; } .user-row-actions form { grid-template-columns: 1fr auto; } }

/* Equipe: leitura rápida e ações compactas, inspiradas em uma lista de membros. */
.user-create-panel .form-intro h2 { display: flex; align-items: center; gap: 10px; }
.user-create-panel .form-intro h2 .ui-icon { width: 24px; height: 24px; }
.user-team-heading { align-items: center; }
.text-action { display: inline-flex; align-items: center; gap: 7px; padding: 8px 10px; border: 0; border-radius: 10px; background: transparent; color: #d62c4f; font: inherit; font-weight: 800; cursor: pointer; }
.text-action:hover { background: #fff1f4; }
.text-action .ui-icon { width: 18px; height: 18px; }
.user-list { display: block; margin: 4px -2px 0; }
.user-row { display: grid; grid-template-columns: minmax(180px, 1.5fr) auto minmax(120px, .8fr) 38px 38px 38px; align-items: center; gap: 10px; min-height: 82px; padding: 14px 2px; border-bottom: 1px solid #e7e7e7; }
.user-row:last-child { border-bottom: 0; }
.user-identity { display: flex; align-items: center; min-width: 0; gap: 12px; }
.user-avatar { display: grid; flex: 0 0 40px; place-items: center; width: 40px; height: 40px; border: 1px solid #e2e2e2; border-radius: 50%; background: #f3f5f7; color: #50545a; font-weight: 800; }
.user-identity > div { min-width: 0; }
.user-identity strong, .user-identity span:not(.user-avatar) { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-identity strong { font-size: 15px; line-height: 1.25; }
.user-identity strong em { display: inline-block; margin-left: 4px; color: var(--muted); font-size: 12px; font-style: normal; font-weight: 600; }
.user-identity span:not(.user-avatar) { margin-top: 3px; color: var(--muted); font-size: 13px; }
.user-status-chip { display: inline-flex; align-items: center; justify-content: center; min-width: 63px; min-height: 29px; padding: 4px 9px; border-radius: 7px; background: #f0f1f2; color: #62666b; font-size: 12px; font-weight: 800; }
.user-status-chip.active { background: #e8f7ee; color: #187141; }
.user-role-form { min-width: 0; margin: 0; }
.user-role-form select { width: 100%; min-height: 42px; padding: 0 30px 0 11px; border: 0; border-radius: 8px; background-color: #f5f7fb; color: #215fbd; font-weight: 800; }
.user-role-form select:hover, .user-role-form select:focus { background-color: #edf2fd; }
.user-password-menu { position: relative; }
.user-password-menu summary, .user-row-spacer { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; }
.user-password-menu summary { list-style: none; border: 1px solid #dedede; background: #fff; cursor: pointer; }
.user-password-menu summary::-webkit-details-marker { display: none; }
.user-password-menu summary:hover, .user-password-menu[open] summary { border-color: #9a9a9a; background: #f8f8f8; }
.user-password-menu summary .ui-icon { width: 19px; height: 19px; }
.user-password-menu form { position: absolute; z-index: 20; top: 50px; right: 0; display: grid; gap: 9px; width: 238px; padding: 14px; border: 1px solid #dedede; border-radius: 14px; background: #fff; box-shadow: 0 12px 28px rgba(0,0,0,.16); }
.user-password-menu label { display: grid; gap: 5px; color: var(--ink); font-size: 12px; font-weight: 800; }
.user-password-menu input { width: 100%; min-height: 40px; }
.user-password-menu .btn { min-height: 38px; padding-inline: 12px; }
.user-delete-form { margin: 0; }
.user-delete.icon-action { width: 42px; height: 42px; padding: 0; border: 0 !important; background: transparent !important; }
.user-delete.icon-action:hover { background: #fff0f1 !important; }
.user-delete .ui-icon { width: 19px; height: 19px; }
@media (max-width: 760px) {
  .embedded-view .users-layout { grid-template-columns: 1fr; }
  .user-row { grid-template-columns: minmax(0, 1fr) auto 42px 42px; gap: 10px; }
  .user-role-form { grid-column: 1 / -1; grid-row: 2; }
  .user-role-form select { width: 100%; }
}
@media (max-width: 430px) {
  .user-row { grid-template-columns: minmax(0, 1fr) auto 42px; }
  .user-delete-form, .user-row-spacer { display: none; }
}

/* Cadastro de acesso somente quando solicitado, para priorizar a equipe existente. */
.users-layout-team { display: block; }
.users-layout-team .users-panel { width: 100%; }
.add-user-button { flex: 0 0 42px; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; background: #222; color: #fff; box-shadow: none; }
.add-user-button:hover { background: #000; transform: translateY(-1px); }
.add-user-button .ui-icon { width: 20px; height: 20px; filter: brightness(0) invert(1); }
.user-modal { width: min(620px, calc(100vw - 32px)); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); margin: auto; padding: 0; overflow: auto; border: 0; border-radius: 20px; background: #fff; box-shadow: 0 24px 70px rgba(0,0,0,.28); }
.user-modal::backdrop { background: rgba(0,0,0,.42); backdrop-filter: blur(2px); }
.user-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 24px 24px 18px; border-bottom: 1px solid #e7e7e7; }
.user-modal-head h2 { margin: 5px 0 4px; font-size: 27px; }
.user-modal-head p { margin: 0; }
.user-modal-head .icon-action { flex: 0 0 40px; width: 40px; height: 40px; padding: 0; border: 0; background: #f6f6f6; }
.user-modal-head .icon-action:hover { background: #ededed; }
.user-modal-head .ui-icon { width: 19px; height: 19px; }
.user-create-form { padding: 22px 24px 24px; }
.user-create-form .modal-actions { display: flex; justify-content: flex-end; padding-top: 6px; }
.user-modal.confirm-modal { width: min(430px, calc(100vw - 32px)); }
.confirm-modal .modal-actions { padding: 0 24px 24px; gap: 10px; }
.confirm-modal .modal-actions .btn { flex: 1; }
.user-create-form .btn { min-width: 165px; }
@media (max-width: 520px) {
  .user-modal-head, .user-create-form { padding-left: 18px; padding-right: 18px; }
  .user-modal-head h2 { font-size: 23px; }
  .user-create-form .modal-actions .btn { width: 100%; }
}

/* Edição em blocos claros, como cartões de gerenciamento. */
.reservation-form { max-width: 900px; margin: 0 auto; padding: 0; border: 0; background: transparent; box-shadow: none; }
.reservation-form .form-intro { padding: 8px 2px 20px; border: 0; }
.reservation-form > .form-grid, .reservation-form > .form-section { margin-top: 14px; padding: 24px; border: 1px solid #e7e7e7; border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.reservation-form > .form-section { padding-top: 24px; }
.reservation-form > .form-actions { position: sticky; bottom: 14px; z-index: 5; margin-top: 16px; padding: 12px; border: 1px solid #e5e5e5; border-radius: 999px; background: rgba(255,255,255,.94); box-shadow: 0 8px 28px rgba(0,0,0,.12); backdrop-filter: blur(12px); }
.reservation-form > .form-actions .btn { min-width: 210px; }
.reservation-form input, .reservation-form select, .reservation-form textarea, .guest-form input, .guest-form select, .guest-form textarea { min-height: 48px; border-color: #c9c9c9; border-radius: 12px; }
.reservation-form input:hover, .reservation-form select:hover, .guest-form input:hover, .guest-form select:hover { border-color: #888; }
.reservation-form .form-section h3::before, .guest-section h2::before { content: ''; display: inline-block; width: 21px; height: 21px; margin-right: 8px; vertical-align: -4px; background: center / contain no-repeat; }
.reservation-form .form-section:has(input[name="adults"]) h3::before { background-image: url('icons/users.svg?v=4'); }
.reservation-form .form-section:has(select[name="payment_method"]) h3::before { background-image: url('icons/cash.svg?v=4'); }
.guest-section:has(input[name="primary_document_number"]) h2::before { background-image: url('icons/user.svg?v=4'); }
.guest-section:has(#companions) h2::before { background-image: url('icons/users.svg?v=4'); }
.guest-section:has(input[name="estimated_arrival"]) h2::before { background-image: url('icons/calendar.svg?v=4'); }

/* Formulário público com resumo e etapas mais leves. */
.guest-shell { max-width: 940px; }
.guest-hero { max-width: 700px; margin: 0 auto; text-align: center; }
.reference-summary { border-top: 0; padding: 24px; }
.reference-summary .ticket-top { padding: 0; }
.reference-summary .ticket-top h2 { color: var(--ink); }
.reference-summary .ticket-code { color: var(--muted); }
.reference-summary .guest-summary-grid { grid-template-columns: repeat(3, 1fr); margin-top: 22px; padding-top: 20px; border-top: 1px solid #eee; }
.reference-summary .guest-summary-grid > div { padding: 10px 12px; border-radius: 12px; background: #f7f7f7; }
.reference-summary .guest-summary-grid span { color: var(--muted); }
.reference-summary .guest-summary-grid strong { color: var(--ink); }
.reference-summary .ticket-icon .ui-icon, .reference-summary .summary-badge .ui-icon { filter: none; }
.reference-summary .ticket-footer { margin-top: 18px; border-top-color: #eee; color: var(--muted); }
.guest-form { gap: 14px; }
.guest-section { border-radius: 18px; }
.guest-section .step-pill { background: #f2f2f2; color: var(--ink); }
.upload-drop { min-height: 175px; border-radius: 16px; }

/* Próxima ação dentro do fluxo. */
.step { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; column-gap: 15px; }
.step-copy { min-width: 0; padding-top: 6px; }
.step-action { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; align-self: start; padding-top: 0; }
.step-action form { margin: 0; }
.step.current { margin: 2px -10px 10px; padding: 10px; border-radius: 14px; background: #fff6f7; }
.step.current:not(:last-child)::before { left: 28px; top: 48px; bottom: -14px; }
.step-schedule { display: inline-flex !important; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 999px; background: #f3f3f3; color: var(--muted) !important; white-space: nowrap; font-size: 11px !important; font-weight: 700; }
.step-schedule .ui-icon { position: static; width: 14px; height: 14px; transform: none !important; }

.receipt-logo { width: 112px; height: 76px; border-radius: 0; background: transparent; filter: brightness(0) invert(1); mix-blend-mode: screen; }
.ticket-top { padding-right: 128px; }
.ticket-top .summary-badge { top: 0; right: 132px; }

@media (max-width: 980px) {
    .dashboard-reference { grid-template-columns: 330px minmax(0, 1fr); }
    .overview-stats { grid-template-columns: 1fr 1fr; }
    .overview-stats > div:nth-child(2) { border-right: 0; }
    .overview-stats > div:nth-child(-n+2) { border-bottom: 1px solid #ececec; }
}
@media (max-width: 760px) {
    .container:has(.dashboard-reference) { padding: 0; }
    .dashboard-reference { display: block; min-height: auto; margin: 0; }
    .dashboard-rail, .app-shell .dashboard-rail { position: static; top: auto; height: auto; padding: 20px 16px; overflow: visible; margin: 12px; border: 1px solid #ececec; border-radius: var(--radius); box-shadow: 0 8px 22px rgba(0, 0, 0, .07); }
    .dashboard-overview { width: auto; padding: 28px 16px 60px; border-top: 8px solid #f3f3f3; }
    .rail-reservation.selected { border-color: #ddd; }
    .overview-heading { align-items: flex-start; }
    .overview-heading .btn { display: none; }
    .reference-summary .guest-summary-grid { grid-template-columns: 1fr 1fr; }
    .step { grid-template-columns: 38px minmax(0, 1fr); }
    .step-action { grid-column: 2; padding: 7px 0 16px; }
    .step-action form { width: 100%; }
    .step-action .btn { width: 100%; }
}
@media (max-width: 520px) {
    .overview-stats { grid-template-columns: 1fr 1fr; }
    .reference-summary .guest-summary-grid { grid-template-columns: 1fr; }
    .receipt-logo { width: 94px; height: 70px; }
    .ticket-top { padding-right: 104px; }
    .ticket-top .summary-badge { position: static; margin-top: 10px; }
    .compact-stay { grid-template-columns: 42px minmax(0, 1fr) auto; }
    .compact-stay-dates { display: none; }
}

/* Ajustes de preenchimento e retorno do formulário. */
.reservation-form input[type="date"], .guest-form input[type="date"] { background-image: none; padding-right: 13px; }
.readonly-review { min-height: 48px; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid #e2e2e2; border-radius: 12px; background: #f7f7f7; }
.readonly-review .ui-icon { width: 18px; height: 18px; }
.readonly-review strong { font-size: 17px; }
.pet-responsibility { padding: 14px; border: 1px solid #f1cbd2; border-radius: 14px; background: #fff7f8; }
.guest-success-message { display: flex; align-items: flex-start; gap: 14px; padding: 18px; }
.guest-success-message p { margin: 4px 0 0; }
.guest-success-icon { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; background: #287642; }
.guest-success-icon .ui-icon { width: 19px; height: 19px; filter: brightness(0) invert(1); }
.guest-review-message { display: flex; align-items: flex-start; gap: 12px; margin-top: 18px; padding: 15px; border-radius: 14px; background: #f7f7f7; }
.guest-review-message > .ui-icon { width: 20px; height: 20px; margin-top: 2px; }
.guest-review-message strong, .guest-review-message span { display: block; }
.guest-review-message span { margin-top: 3px; color: var(--muted); font-size: 13px; }

/* Detalhes da reserva: ações discretas e resumo de leitura rápida. */
.page-head-actions .icon-action { border-color: #dedede; color: var(--ink); }
.page-head-actions .icon-action:hover { border-color: #9e9e9e; background: #f6f6f6; }
.page-head-actions .danger-icon { border-color: #d92946; background: #d92946; color: #fff; }
.page-head-actions .danger-icon:hover { border-color: #b91f3a; background: #b91f3a; }
.page-head-actions .danger-icon .ui-icon { filter: brightness(0) invert(1); }
.whatsapp-action { border: 0; border-radius: 50%; background: #25d366; color: #fff; }
.whatsapp-action:hover { border-color: transparent; background: #1fbe5b; }
.whatsapp-action .ui-icon { filter: brightness(0) invert(1); }
.hero-summary .compact-detail-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; }
.hero-summary .compact-detail-list > div { min-height: 46px; padding: 3px 0 3px 33px; border: 0; border-radius: 0; background: transparent; }
.hero-summary .compact-detail-list > div::before { left: 0; top: 6px; width: 21px; height: 21px; background-size: 19px 19px; }
.hero-summary .compact-detail-list span { margin-bottom: 0; font-size: 11px; }
.hero-summary .compact-detail-list strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.step-schedule { background: #0066cc !important; color: #fff !important; }
.step-schedule .ui-icon { filter: brightness(0) invert(1); }
.reservation-right .stages-panel { margin-top: 0; }
.hero-summary .compact-detail-list strong { overflow: visible; text-overflow: clip; white-space: normal; font-weight: 500; line-height: 1.35; }
@media (max-width: 680px) {
  .hero-summary .compact-detail-list { grid-template-columns: 1fr; gap: 6px; }
  .hero-summary .compact-detail-list > div { padding-left: 33px; }
}

/* Aproveita a largura da edição sem deslocar os títulos dos campos. */
.reservation-form .form-section h3.section-title-with-icon::before { content: none !important; display: none !important; width: 0 !important; height: 0 !important; margin: 0 !important; padding: 0 !important; }
.stay-and-guests-grid { margin-top: 14px; }
.stay-and-guests-grid.has-complementary-info { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 14px; }
.stay-and-guests-grid .form-section { min-width: 0; margin: 0; padding: 24px; border: 1px solid #e7e7e7; border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.stay-and-guests-grid .form-section > div:first-child, .stay-and-guests-grid .form-section h3 { margin-left: 0; padding-left: 0; }
.stay-and-guests-grid .section-title-with-icon { justify-content: flex-start; }
.stay-and-guests-grid .counter-grid { margin-top: 21px; }
@media (max-width: 680px) { .stay-and-guests-grid.has-complementary-info { grid-template-columns: 1fr; } }

/* Gestão de usuários: superfície branca e controles em pílulas sólidas. */
body.embedded-view, body:has(.users-layout), .embedded-view .container { background: #fff; }
.user-avatar { line-height: 1; text-align: center; padding-bottom: 1px; }
.user-avatar { display: flex !important; align-items: center !important; justify-content: center !important; padding: 0 !important; line-height: 1 !important; }
.user-status-chip { border-radius: 999px; }
.user-status-chip.active { background: #16a34a; color: #fff; }
.user-status-chip.inactive { background: #68707a; color: #fff; }
.user-role-form select { min-width: 0; padding: 0 52px 0 16px; border: 1px solid #d4d4d4; border-radius: 999px; appearance: none; background: #fff url('icons/chevron-down.svg') no-repeat right 20px center / 18px 18px; color: var(--ink); text-align: left; text-align-last: left; }
.user-role-form select:hover, .user-role-form select:focus { border-color: #8f8f8f; background-color: #fafafa; color: var(--ink); }
/* Equipe agora tem 3 ícones por linha (editar dados, redefinir senha,
   desativar) — antes só existiam 2, e essa definição não tinha uma terceira
   coluna pra dar espaço ao novo botão de editar, empurrando tudo e
   quebrando a linha em duas. */
.user-row { grid-template-columns: minmax(175px, 1.4fr) auto minmax(120px, .78fr) 46px 46px 38px; }
.user-password-menu { align-self: center; width: 38px; margin-left: 8px; }
.user-password-menu summary { border: 0; background: #f2f2f2; color: #222; width: 38px; height: 38px; }
.user-password-menu summary:hover, .user-password-menu[open] summary { border-color: transparent; background: #e6e6e6; }
.user-password-menu summary .ui-icon { width: 18px; height: 18px; }
.user-password-menu form { width: 272px; }
.user-row-spacer { width: 38px; height: 38px; }
.user-delete.icon-action { width: 38px; height: 38px; border: 0 !important; background: #d92946 !important; color: #fff !important; }
.user-delete.icon-action:hover { background: #b91f3a !important; }
.user-delete.icon-action .ui-icon { filter: brightness(0) invert(1); }
@media (max-width: 760px) { .user-row { grid-template-columns: minmax(0, 1fr) auto 46px 46px 38px; } .user-role-form { grid-column: 1 / -1; grid-row: 2; } }
@media (max-width: 430px) { .user-row { grid-template-columns: minmax(0, 1fr) auto 38px; } .user-delete-form, .user-row-spacer, .user-row .user-password-menu:first-of-type { display: none; } }
.password-strength { display: grid; gap: 6px; color: var(--muted); font-size: 11px; font-weight: 700; }
.password-strength i { display: block; height: 5px; overflow: hidden; border-radius: 999px; background: #e4e4e4; }
.password-strength i b { display: block; width: 0; height: 100%; border-radius: inherit; background: #b3263f; transition: width .18s ease, background .18s ease; }
.password-strength[data-strength="1"] i b { width: 25%; }
.password-strength[data-strength="2"] i b { width: 50%; background: #d78316; }
.password-strength[data-strength="3"] i b { width: 75%; background: #2774c8; }
.password-strength[data-strength="4"] i b { width: 100%; background: #20834a; }
.caps-warning { display: block; color: #b42335; font-size: 11px; font-weight: 800; }
.user-create-form .password-strength { margin-top: -8px; }

/* Central operacional v18 */
.topbar { max-width: none; padding-inline: max(20px, calc((100% - 1480px) / 2)); }
.main-nav { display: flex; align-items: center; gap: 3px; margin: 0 auto; }
.main-nav a { display: inline-flex; align-items: center; gap: 7px; padding: 9px 11px; border-radius: 999px; color: #5f6368; text-decoration: none; font-size: 13px; font-weight: 650; transition: .16s ease; }
.main-nav a:hover { background: #f3f3f3; color: #222; }
.main-nav .ui-icon { width: 16px; height: 16px; }
.module-page, .module-shell { width: min(1440px, calc(100vw - 48px)); margin-inline: 50%; transform: translateX(-50%); }
.module-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.module-head h1 { margin: 2px 0 4px; font-size: clamp(29px, 3vw, 40px); line-height: 1.1; letter-spacing: -1.2px; }
.module-head p { margin: 0; }
.module-head-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.module-head-actions form { margin: 0; }

/* Menu "mais opções" (três pontinhos) do cabeçalho de módulo. Usa <details>,
   então abre e fecha sem depender de JavaScript — o script só cuida de fechar
   ao clicar fora ou no Esc. O painel reaproveita o .menu-card. */
.head-more { position: relative; }
.head-more summary {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
    list-style: none;
}
.head-more summary::-webkit-details-marker { display: none; }
.head-more summary:hover { background: #f5f5f5; }
.head-more[open] summary { background: #f0f0f0; border-color: #cfcfcf; }
/* 288px é a largura medida no navegador pra que o rótulo mais longo
   ("Auditoria de datas de pagamento") caiba em uma linha só, junto do ícone. */
.head-more .menu-card { top: 49px; min-width: 288px; text-align: left; }
/* Cada item tem um ícone à esquerda. O alinhamento é pelo topo (align-items
   flex-start) porque rótulos longos quebram em duas linhas e o ícone deve
   ficar junto da primeira, não centralizado entre as duas. */
.head-more .menu-card a, .head-more .menu-card button { display: flex; align-items: flex-start; gap: 10px; line-height: 1.35; }
.head-more .menu-card a .ui-icon, .head-more .menu-card button .ui-icon { margin-top: 1px; opacity: .75; }
/* Rótulo de grupo dentro do menu: separa auditorias, conciliação e
   manutenção sem virar uma lista única e longa. */
.menu-card-label {
    display: block;
    padding: 9px 11px 4px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.menu-card-label:not(:first-child) { margin-top: 3px; border-top: 1px solid #f0f0f0; padding-top: 10px; }
.menu-card a.menu-card-alert { color: #b3263f; }

/* A partir de 760px a barra de ações passa a alinhar à esquerda (ver
   .module-head-actions mais abaixo). Ancorado à direita, o painel do menu
   sairia pela borda esquerda da tela e ficaria cortado — aqui ele passa a
   abrir pra direita, com largura limitada ao que sobra de tela. */
@media (max-width: 760px) {
    .head-more .menu-card {
        right: auto;
        left: 0;
        min-width: 0;
        width: min(288px, calc(100vw - 80px));
    }
}
.module-head-actions input, .module-head-actions select { min-width: 145px; }
/* Seletor de período do Financeiro: dois <select> nativos (mês e ano) lado a
   lado, no mesmo padrão do seletor de ano dos Indicadores. O min-width acima
   é pensado pra campos de texto e deixaria os dois largos demais, então aqui
   cada um pede só o que precisa. */
.finance-period { display: flex; align-items: center; gap: 8px; margin: 0; }
.finance-period select { width: auto; min-width: 0; }
.finance-period select[name="m"] { min-width: 132px; }
.finance-period select[name="y"] { min-width: 92px; }
.module-section { margin-top: 18px; padding: 26px; }
.module-section h2 { margin-bottom: 0; }
.subtabs { position: sticky; top: 88px; z-index: 8; display: flex; gap: 6px; margin-bottom: 18px; padding: 7px; border: 1px solid #e6e6e6; border-radius: 999px; background: rgba(255,255,255,.94); box-shadow: 0 6px 20px rgba(0,0,0,.05); backdrop-filter: blur(12px); }
.subtabs a { padding: 8px 15px; border-radius: 999px; color: #555; font-size: 13px; font-weight: 700; text-decoration: none; }
.subtabs a:hover { background: #f2f2f2; color: #222; }
.rotate-180 { transform: rotate(180deg); }
.full-btn { width: 100%; }
.title-with-status { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.title-with-status h1 { margin: 0; }
.status-pill { display: inline-flex; align-items: center; width: fit-content; padding: 5px 9px; border-radius: 999px; background: #f0f0f0; color: #555; font-size: 11px; font-weight: 800; white-space: nowrap; }
.status-pill.success { background: #e8f6ed; color: #176b3a; }
.status-pill.warning { background: #fff4dc; color: #875c05; }
.status-pill.danger { background: #ffedf0; color: #a71d35; }
.status-pill.info { background: #e5f2ff; color: #0058b8; }
.status-pill.neutral { background: #eeeeee; color: #555; }
.status-pill.rescheduled { background: #586345; color: #fff; }
.change-review-anchor:empty, .change-review-anchor:has(> .reservation-change-review[hidden]) { display: none; }
.reservation-change-review[hidden], .reservation-change-review [hidden] { display: none !important; }
.reservation-change-review { margin: 12px 0 18px; padding: 18px 22px; border: 0; border-radius: 20px; background: #fff; box-shadow: 0 8px 28px rgba(31,37,26,.10); }
.reservation-form .reservation-change-review { margin-top: 12px; padding-top: 18px; border-top: 0; }
.change-review-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 14px; }
.change-review-head h3 { margin: 0; font-size: 18px; }
.change-review-head p { margin: 0; color: var(--muted); font-size: 13px; font-weight: 400; }
.change-review-controls { display: flex; align-items: end; flex-wrap: wrap; gap: 14px 22px; }
.change-review-amount { flex: 0 1 250px; min-width: 180px; }
.change-review-amount input { width: 100%; }
.change-review-amount .optional { font-weight: 400; color: var(--muted); }
.change-confirm-check { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin: 0; font-weight: 400; cursor: pointer; }
.change-confirm-check input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: #586345; }
label:has(> input[type="checkbox"]) { align-items: center; font-weight: 400; }
label > input[type="checkbox"] { flex: none; margin: 0; vertical-align: middle; }
@media (max-width: 680px) { .reservation-form .reservation-change-review { padding: 16px; border-radius: 18px; } .change-review-amount { flex-basis: 100%; } }
.modal-backdrop[hidden] { display: none !important; }
.modal-backdrop { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 24px; background: rgba(0,0,0,.48); overflow-y: auto; }
.modal-card { position: relative; width: min(690px, 100%); max-height: calc(100vh - 48px); overflow-y: auto; padding: 30px; border-radius: 22px; background: #fff; box-shadow: 0 26px 80px rgba(0,0,0,.28); }
.modal-card.compact-modal { width: min(500px, 100%); }
.modal-card.wide-modal { width: min(920px, 100%); }
.modal-card h2 { margin: 3px 0 20px; font-size: 25px; }
.modal-x { position: absolute; top: 18px; right: 18px; display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #f2f2f2; color: #222; text-decoration: none; font-size: 24px; cursor: pointer; }
.modal-actions { display: flex; justify-content: flex-end; margin-top: 20px; }
.check-field { display: flex; align-items: center; gap: 9px; padding-top: 28px; }
.check-field input { width: auto; }
.suffix-field { display: flex; align-items: center; overflow: hidden; border: 1px solid #bdbdbd; border-radius: 9px; background: #fff; }
.suffix-field input { border: 0; border-radius: 0; box-shadow: none; }
.suffix-field span { padding: 0 12px; color: #666; font-size: 13px; white-space: nowrap; }

/* Agenda */
.calendar-module { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 26px; }
.module-main { min-width: 0; }
.simulator-panel { min-width: 0; border-left: 1px solid #e2e2e2; padding-left: 26px; }
.simulator-sticky { position: sticky; top: 116px; }
.simulator-sticky h2 { margin: 2px 0 4px; font-size: 24px; }
.simulator-sticky > p { margin-top: 0; }
.simulator-form { display: grid; gap: 15px; margin-top: 20px; }
.date-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.service-picker { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; }
.service-picker legend { margin-bottom: 7px; font-size: 13px; font-weight: 750; }
.service-picker label { display: flex; align-items: center; gap: 10px; margin: 0; padding: 10px 11px; border: 1px solid #e4e4e4; border-radius: 12px; cursor: pointer; }
.service-picker label:has(input:checked) { border-color: #222; background: #fafafa; }
.service-picker input { width: auto; }
.service-picker span { display: flex; flex: 1; align-items: center; justify-content: space-between; gap: 12px; }
.service-picker small { color: #666; }
.simulation-result { display: grid; gap: 15px; margin-top: 18px; padding-top: 18px; border-top: 1px solid #e2e2e2; }
.availability-result { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 13px; background: #eaf7ee; color: #176b3a; }
.has-conflict .availability-result { background: #ffedf0; color: #a71d35; }
.availability-result strong, .availability-result small { display: block; }
.availability-result small { opacity: .78; }
.price-breakdown { display: grid; gap: 8px; }
.price-breakdown > div { display: flex; justify-content: space-between; gap: 15px; }
.price-breakdown .total { margin-top: 5px; padding-top: 11px; border-top: 1px solid #ddd; font-size: 18px; }
.payment-comparison { display: grid; gap: 7px; padding: 13px; border-radius: 13px; background: #f5f5f5; }
.payment-comparison div { display: flex; justify-content: space-between; gap: 12px; }
.payment-comparison span { color: #666; font-size: 12px; }
.installment-options { border: 1px solid #e1e1e1; border-radius: 13px; overflow: hidden; }
.installment-options summary { padding: 12px; font-weight: 750; cursor: pointer; }
.installment-options > div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; border-top: 1px solid #eee; font-size: 12px; }
.installment-options small { color: #777; }
.calendar-legend { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 13px; color: #666; font-size: 12px; }
.calendar-legend span { display: inline-flex; align-items: center; gap: 6px; }
.calendar-legend i, .chart-legend i, .channel-list i { width: 9px; height: 9px; border-radius: 50%; background: #222; }
.legend-airbnb, .airbnb-dot { background: #ff385c !important; }
.legend-block { background: #8c8c8c !important; }
.legend-today { border: 2px solid #ff385c; background: #fff !important; }
.booking-calendar { overflow: hidden; border: 1px solid #dedede; border-radius: 20px; background: #fff; box-shadow: 0 5px 25px rgba(0,0,0,.05); }
.calendar-weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); }
.calendar-weekdays { border-bottom: 1px solid #e5e5e5; background: #fafafa; }
.calendar-weekdays span { padding: 13px 8px; text-align: center; color: #737373; font-size: 12px; font-weight: 700; }
.calendar-day { position: relative; min-height: 125px; overflow: hidden; padding: 12px 9px; border: 0; border-right: 1px solid #e6e6e6; border-bottom: 1px solid #e6e6e6; background: #fff; color: #222; text-align: left; cursor: pointer; }
.calendar-day:nth-child(7n) { border-right: 0; }
.calendar-day:hover { background: #fafafa; box-shadow: inset 0 0 0 2px #222; z-index: 2; }
.calendar-day.outside { background: #fafafa; color: #aaa; }
.calendar-day.today .day-number { display: grid; place-items: center; width: 27px; height: 27px; margin: -4px 0 0 -4px; border-radius: 50%; background: #ff385c; color: #fff; }
.day-number { font-size: 14px; font-weight: 750; }
.day-price { position: absolute; bottom: 10px; left: 10px; color: #595959; font-size: 13px; }
.day-events { display: grid; gap: 4px; margin-top: 27px; }
.calendar-event { display: block; width: calc(100% + 19px); min-height: 30px; margin-left: -9px; padding: 6px 8px; background: #222; color: #fff; white-space: nowrap; }
.calendar-event.airbnb { background: #ff385c; }
.calendar-event.block { background: #929292; }
.calendar-event.event-start { width: calc(100% + 9px); margin-left: 0; border-radius: 16px 0 0 16px; padding-left: 12px; }
.calendar-event.event-end { width: 100%; border-radius: 0 16px 16px 0; }
.calendar-event.event-start.event-end { border-radius: 16px; }
.calendar-event b { display: block; overflow: hidden; text-overflow: ellipsis; font-size: 11px; }

/* Preços, tabelas e serviços */
.data-table { overflow-x: auto; }
.data-row { display: grid; grid-template-columns: minmax(180px,1.3fr) minmax(145px,1fr) repeat(2,minmax(120px,.8fr)) 85px 44px; align-items: center; min-width: 840px; gap: 14px; padding: 14px 5px; border-bottom: 1px solid #ededed; }
.data-row:last-child { border-bottom: 0; }
.data-row span strong, .data-row span small { display: block; }
.data-row span small { margin-top: 2px; color: #777; }
.data-head { padding-top: 0; color: #777; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
/* Regras de diária: "Semana" e "Fim de semana" viraram uma coluna só
   ("Diárias", com os dois valores empilhados) pra não precisar de scroll
   horizontal dentro da largura da gaveta de configurações. */
.pricing-rules-table .data-row { grid-template-columns: minmax(150px,1.25fr) minmax(120px,1fr) minmax(140px,.95fr) 78px 40px; min-width: 0; gap: 10px; }
.pricing-rules-table .data-row span small { display: inline; margin: 0 0 0 4px; }
.service-cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.service-card { overflow: hidden; border: 1px solid #e4e4e4; border-radius: 16px; background: #fff; }
.service-card.is-disabled { opacity: .58; }
.service-card > div:last-child { padding: 16px; }
.service-card h3 { margin: 3px 0 6px; font-size: 18px; }
.service-card p { min-height: 42px; margin: 0 0 11px; color: #707070; font-size: 13px; }
.service-card .text-link { display: block; margin-top: 12px; }
.service-image { display: grid; place-items: center; width: 100%; aspect-ratio: 16/8; object-fit: cover; background: #f1f1f1; }
.service-gallery { position: relative; overflow: hidden; }.service-gallery .gallery-hidden { display: none; }.service-zoom { position: absolute; right: 10px; bottom: 10px; display: grid; width: 34px; height: 34px; place-items: center; border: 0; border-radius: 50%; background: rgba(20,20,20,.78); color: #fff; font-size: 23px; cursor: pointer; }.gallery-count { position: absolute; bottom: 12px; left: 12px; padding: 4px 8px; border-radius: 9px; background: rgba(20,20,20,.72); color: #fff; font-size: 11px; }.service-lightbox { position: fixed; z-index: 99; inset: 0; display: grid; place-items: center; padding: 50px; background: rgba(0,0,0,.9); }.service-lightbox[hidden] { display: none; }.service-lightbox img { max-width: min(900px,90vw); max-height: 82vh; border-radius: 12px; object-fit: contain; }.service-lightbox .modal-x { position: absolute; top: 20px; right: 26px; color: #fff; }.gallery-nav { position: absolute; top: 50%; border: 0; background: transparent; color: #fff; font-size: 56px; cursor: pointer; }.gallery-nav.prev { left: 22px; }.gallery-nav.next { right: 22px; }
.cleaning-workspace { display:grid; grid-template-columns:minmax(300px,.9fr) minmax(420px,1.4fr); gap:20px; align-items:start; }.cleaning-calendar { display:grid; grid-template-columns:repeat(7,1fr); gap:6px; }.cleaning-calendar-day { min-height:48px; padding:7px; border:1px solid #e4e4e4; border-radius:10px; }.cleaning-calendar-day strong { font-size:13px; }.cleaning-calendar-day span { display:block; width:8px; height:8px; margin-top:5px; border-radius:50%; background:#0080ff; }@media(max-width:900px){.cleaning-workspace{grid-template-columns:1fr}}
.cleaning-calendar-day:not(.has-cleaning) { background:#f7f7f7; border-color:#ededed; cursor:default; }
.cleaning-calendar-day:not(.has-cleaning) strong { color:#bdbdbd; }
.cleaning-calendar-day.is-today:not(.has-cleaning) { background:#fff; border-color:#ff385c; }
.cleaning-calendar-day.is-today:not(.has-cleaning) strong { color:#ff385c; }
.section-heading .cleaning-calendar-nav { flex:0 1 auto; }
.cleaning-calendar-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cleaning-calendar-month-label { min-width: 128px; font-size: 13px; text-align: center; }
.cleaning-today-link { margin-left: 2px; white-space: nowrap; }
button.cleaning-calendar-day { display: flex; flex-direction: column; align-items: flex-start; width: 100%; margin: 0; background: #fff; font: inherit; text-align: left; cursor: pointer; transition: border-color .15s ease, background .15s ease, transform .15s ease; }
button.cleaning-calendar-day:hover { border-color: var(--accent); background: #e5f2ff; transform: translateY(-1px); }
button.cleaning-calendar-day:active { transform: translateY(0); }
.cleaning-calendar-day.is-today { border-color: #ff385c; }
@media (prefers-reduced-motion: reduce) { button.cleaning-calendar-day:hover { transform: none; } }
.service-placeholder .ui-icon { width: 30px; height: 30px; }
.settings-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
.section-subtitle { margin: 26px 0 12px; }
.rate-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.rate-card { display: grid; gap: 8px; margin: 0; padding: 12px; border: 1px solid #e4e4e4; border-radius: 13px; }
.rate-card > span { display: flex; gap: 7px; align-items: center; }
.rate-card input[type=checkbox] { width: auto; }

/* Financeiro */
.finance-stats, .kpi-grid, .operation-summary { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 13px; }
.finance-stats article, .kpi-grid article, .operation-summary article { padding: 20px; border: 1px solid #e5e5e5; border-radius: 16px; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.04); }
.finance-stats span, .finance-stats small, .kpi-grid span, .kpi-grid small, .operation-summary span { display: block; color: #707070; }
.finance-stats strong, .kpi-grid strong, .operation-summary strong { display: block; margin: 3px 0; font-size: 25px; letter-spacing: -.5px; }
.finance-stats small, .kpi-grid small { font-size: 11px; }
.finance-stats .negative strong { color: #b3263f; }
.finance-stats .positive strong { color: #1f7845; }
.finance-stats.compact article { padding: 15px 18px; }
.finance-stats.compact strong { font-size: 21px; }
/* Rótulo dos dois subgrupos de totalizadores do Financeiro (caixa vs.
   competência) — mesma seção, mesma hierarquia de cartão, só o texto
   acima deixa claro qual base cada linha usa. */
.finance-stats-group-label { margin: 0 0 10px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: #8a8a8a; }
.finance-stats-group-label span { text-transform: none; font-weight: 400; letter-spacing: 0; }
.finance-stats + .finance-stats-group-label { margin-top: 22px; }
/* Rótulo de qual parcela um recebimento cobre (Entrada, Saldo, Parcela
   2/2...) na lista "Recebidos do mês" — mais destacado que o resto da
   linha secundária pra ficar fácil de identificar de relance. */
.payment-tag { font-weight: 600; color: #3a3a3a; }
/* Dashboard resumido da página principal (seção 2.5 da arquitetura) — 5 métricas. */
.dashboard-stats.finance-stats { grid-template-columns: repeat(5,minmax(0,1fr)); margin: 0 0 20px; }
@media (max-width: 900px) { .dashboard-stats.finance-stats { grid-template-columns: repeat(2,minmax(0,1fr)); } }
.dashboard-columns { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 900px) { .dashboard-columns { grid-template-columns: 1fr; } }
.dashboard-columns .field-help { margin: 4px 0 8px; font-weight: 700; color: var(--ink); text-transform: uppercase; font-size: 11px; letter-spacing: .02em; }
.dashboard-columns .transaction-list { margin-bottom: 16px; }
.dashboard-columns .transaction-list:last-child { margin-bottom: 0; }
.finance-month-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; padding: 12px 16px; border: 1px solid #e7e7e7; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); flex-wrap: wrap; }
.finance-month-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.finance-month-label { min-width: 128px; font-size: 13px; text-align: center; }
.finance-today-link { margin-left: 2px; white-space: nowrap; }
.finance-month-jump { display: flex; align-items: center; gap: 8px; margin: 0; }
.finance-month-jump label { font-size: 12px; color: #707070; }
.audit-summary .data-row { grid-template-columns: minmax(160px,1.2fr) minmax(130px,.9fr) 90px 130px repeat(3,70px); min-width: 900px; }
.audit-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.audit-tabs { display: flex; gap: 4px; padding: 4px; border: 1px solid #e6e6e6; border-radius: 999px; background: #f7f7f7; }
.audit-tabs .tab-btn { display: flex; align-items: center; gap: 6px; padding: 8px 14px; border: 0; background: transparent; border-radius: 999px; color: #666; font-size: 13px; font-weight: 700; font-family: inherit; cursor: pointer; }
.audit-tabs .tab-btn:hover { color: #222; }
.audit-tabs .tab-btn.active { background: #fff; color: #171717; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.audit-tabs .tab-btn .tab-count { font-size: 11px; font-weight: 700; color: #999; background: #ececec; border-radius: 999px; padding: 1px 7px; }
.audit-tabs .tab-btn.active .tab-count { background: #f0f0f0; color: #555; }
.audit-filter-compact { display: flex; align-items: center; gap: 8px; margin: 0; }
.audit-filter-compact select { max-width: 190px; }
.finance-revenue-panel { margin-bottom: 18px; }
.finance-columns, .operation-columns, .insights-columns, .integration-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.transaction-list { display: grid; }
.transaction-list > a, .expense-line { display: grid; grid-template-columns: 38px minmax(0,1fr) auto auto; align-items: center; gap: 11px; padding: 12px 0; border-bottom: 1px solid #eee; color: #222; text-decoration: none; }
.transaction-list > :last-child { border-bottom: 0; }
.transaction-list strong, .transaction-list small { display: block; }
.transaction-list small { color: #747474; font-size: 11px; }
.transaction-icon, .stock-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #eaf7ee; }
.transaction-icon.income .ui-icon { transform: rotate(-90deg); }
.transaction-icon.expense { background: #ffedf0; }
.transaction-icon.expense .ui-icon { transform: rotate(90deg); }
.transaction-icon.neutral { background: #eef2f7; }
/* Hospedagens / check-ins: azul, a cor de informação do sistema (a mesma dos
   rótulos de seção). Sem rotação — ao contrário de .income, que gira o ícone. */
.transaction-icon.stay { background: #e6f1ff; }
/* Em telas estreitas (drawer do Financeiro em tela cheia no celular), a linha
   de parcela tem colunas demais pra caber: valor e botão descem pra segunda
   linha em vez de espremer/estourar a largura do painel. Escopo restrito ao
   painel de parcelas — as outras listas do Financeiro seguem como estavam. */
@media (max-width: 560px) {
    .payments-panel .transaction-list > a,
    .payments-panel .expense-line {
        grid-template-columns: 38px minmax(0, 1fr);
        row-gap: 6px;
    }
    .payments-panel .transaction-value,
    .payments-panel .expense-actions {
        grid-column: 2;
        text-align: left;
    }
}
.transaction-value { text-align: right; }
.transaction-value.remaining { padding-left: 11px; border-left: 1px solid #eee; }
.transaction-value.remaining.has-balance strong { color: #b3263f; font-size: 14px; }
.transaction-value.remaining.is-settled strong { color: #1f7845; font-size: 12px; font-weight: 600; }
.status-text.overdue { color: #b3263f; }
.status-text.paid { color: #1f7845; }
.expense-actions { display: flex; gap: 5px; }

/* Operação */
.expense-stock-panel { padding: 20px; border-radius: 22px; background: #f8f8f6; display: grid; gap: 10px; }
.expense-stock-panel > strong { font-size: 17px; }
.expense-stock-panel .field-help { margin: 0; }
.expense-stock-picker { display: flex; gap: 10px; align-items: center; }
.expense-stock-picker select { min-width: 0; flex: 1; }
.expense-stock-picker .btn { flex: none; }
.expense-stock-lines { display: grid; gap: 10px; min-width: 0; }
.expense-stock-new-row, .expense-stock-saved-row { display: grid; grid-template-columns: minmax(120px,1fr) minmax(90px,130px) minmax(110px,150px) auto auto; align-items: center; gap: 10px; padding: 12px; background: #fff; border-radius: 16px; }
.expense-stock-new-row input { min-width: 0; width: 100%; }
.expense-stock-new-row .check-field { white-space: nowrap; }
.expense-stock-saved-row { grid-template-columns: minmax(0,1fr) auto; }
.expense-stock-saved-row small { display: block; color: #777; font-weight: 400; }
.stock-expenses-month { display: grid; gap: 16px; }
.stock-expenses-month .section-heading { gap: 16px; align-items: flex-start; }
.stock-expenses-month .section-heading p { margin: 4px 0 0; }
.stock-expenses-nav { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.stock-expenses-list { display: grid; gap: 0; }
.stock-expenses-list article { display: flex; justify-content: space-between; gap: 20px; padding: 15px 0; border-top: 1px solid #eee; }
.stock-expenses-list article > div { min-width: 0; }
.stock-expenses-list strong, .stock-expenses-list small { display: block; }
.stock-expenses-list small { color: #777; font-weight: 400; }
.stock-expenses-list article > div:last-child { text-align: right; white-space: nowrap; }
@media (max-width: 720px) { .expense-stock-picker { flex-wrap: wrap; } .expense-stock-picker select, .expense-stock-picker .btn { width: 100%; } .expense-stock-new-row { grid-template-columns: minmax(0,1fr) minmax(0,1fr) auto; } .expense-stock-new-row > strong { grid-column: 1/-1; } .expense-stock-new-row .check-field { grid-column: 1/3; } .stock-expenses-month .section-heading { flex-wrap: wrap; } .stock-expenses-list article { flex-wrap: wrap; } .stock-expenses-list article > div:last-child { text-align: left; } }
.operation-summary { grid-template-columns: repeat(3,minmax(0,1fr)); }
.operation-main-section { width: 100%; }
.cleaning-list, .stock-list { display: grid; gap: 8px; }
.cleaning-card { display: grid; grid-template-columns: 58px minmax(0,1fr) auto; align-items: center; gap: 13px; padding: 13px; border: 1px solid #e6e6e6; border-radius: 15px; }
.cleaning-card.completed { opacity: .68; }
.cleaning-date { display: grid; place-items: center; padding: 7px; border-radius: 12px; background: #f4f4f4; }
.cleaning-date strong { font-size: 22px; line-height: 1; }
.cleaning-date span { color: #777; font-size: 10px; font-weight: 800; }
.cleaning-info h3 { margin: 5px 0 1px; }
.cleaning-info p { margin: 0; color: #707070; font-size: 12px; }
.stock-line { display: grid; grid-template-columns: 38px minmax(0,1fr) auto auto; align-items: center; gap: 11px; padding: 11px; border: 1px solid transparent; border-radius: 13px; }
.stock-line.low { border-color: #f1d7a5; background: #fffaf0; }
.stock-line.out { border-color: #f3b6c0; background: #fff3f5; }
.stock-line strong, .stock-line small { display: block; }
.stock-line small { color: #777; font-size: 11px; }
.stock-quantity { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; }
.stock-actions { display: flex; align-items: center; gap: 6px; }
.stock-purchase-action { white-space: nowrap; }
.stock-purchase-action .ui-icon { width: 16px; height: 16px; filter: brightness(0) invert(1); }
.stock-finance-status { color: #666; font-size: 11px; font-weight: 400; white-space: nowrap; }
.stock-stepper { display: flex; align-items: center; gap: 4px; }
.stock-step-form { display: inline-flex; }
.stock-step-btn { width: 26px; height: 26px; padding: 0; display: grid; place-items: center; border: 1px solid #e0e0e0; border-radius: 50%; background: #fff; color: #333; font-size: 15px; font-weight: 700; line-height: 1; cursor: pointer; transition: background .15s ease, border-color .15s ease; }
.stock-step-btn:hover { background: #f5f5f5; border-color: #ccc; }
.stock-step-btn:disabled { opacity: .35; cursor: not-allowed; }
.overview-empty.small { padding: 12px; }
.overview-empty.small > .ui-icon { width: 18px; height: 18px; }
/* Itens em falta — barras de déficit: só os itens baixo/zerado, ordenados do
   mais crítico pro menos, com a barra representando o quanto falta (não o
   quanto tem) pra ficar mais fácil de ver o que precisa de atenção primeiro.
   Substituiu os antigos .stock-chart-panel (todos os itens misturados) e
   .urgent-stock-panel (só os zerados, sem quantidade) por um painel único. */
.stock-deficit-panel .section-heading { margin-bottom: 12px; }
.stock-deficit-list { display: grid; gap: 8px; }
.stock-deficit-row { display: grid; grid-template-columns: 36px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 11px; border: 1px solid #eeeeee; border-radius: 13px; }
.stock-deficit-row.out { border-color: #f3b6c0; background: #fff6f7; }
.stock-deficit-row.low { border-color: #f4dfae; background: #fffaf0; }
.stock-deficit-info { display: grid; gap: 7px; min-width: 0; }
.stock-deficit-info strong { overflow: hidden; color: #333; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.stock-deficit-track { position: relative; height: 8px; border-radius: 999px; background: #f0f0f0; overflow: hidden; }
.stock-deficit-fill { position: absolute; inset: 0 auto 0 0; height: 100%; border-radius: 999px; background: #d69a1f; transition: width .2s ease; }
.stock-deficit-fill.out { background: #d13a52; }
.stock-deficit-value { display: grid; justify-items: end; gap: 4px; text-align: right; }
.stock-deficit-value small { color: #777; font-size: 11px; white-space: nowrap; }
.stock-count-grid { display: grid; gap: 8px; max-height: 390px; overflow-y: auto; margin: 12px 0 18px; }
.stock-count-grid > div { display: grid; grid-template-columns: minmax(160px,1fr) 110px 150px; align-items: center; gap: 8px; padding: 8px; border: 1px solid #eee; border-radius: 12px; }
.stock-count-grid strong, .stock-count-grid small { display: block; }
.stock-count-grid small { color: #777; }
.cleaning-checklist { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.cleaning-checklist label { display: flex; gap: 9px; padding: 11px; border: 1px solid #e4e4e4; border-radius: 12px; }
.cleaning-checklist input { width: auto; }

/* Indicadores e integrações */
.kpi-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
.insights-page > .insights-columns, .insights-page > .module-section { width: 100%; }
.insights-columns { align-items: stretch; margin-top: 18px; }
.insights-columns > .module-section { height: 100%; margin-top: 0; }
.bar-chart { display: grid; grid-template-columns: repeat(12,1fr); align-items: end; height: 260px; gap: 6px; padding-top: 20px; border-bottom: 1px solid #ddd; }
.bar-column { display: grid; align-self: stretch; grid-template-rows: 1fr 24px; gap: 5px; text-align: center; color: #777; font-size: 10px; }
.bars { display: flex; align-items: end; justify-content: center; gap: 3px; height: 100%; }
.bars i { width: 35%; min-height: 2px; border-radius: 5px 5px 0 0; background: #222; }
.bars .expense-bar { background: #ff385c; }
.bars .occupancy-bar { width: 60%; background: var(--accent); }
.occupancy-dot { background: var(--accent) !important; }
/* Tooltip CSS-only em hover, reutilizável em qualquer barra de gráfico — usado
   hoje na Sazonalidade (Indicadores). */
.has-tip { position: relative; cursor: default; }
.has-tip::after { content: attr(data-tip); position: absolute; bottom: 100%; left: 50%; transform: translate(-50%,-6px); background: #222; color: #fff; font-size: 11px; font-weight: 600; line-height: 1.3; white-space: nowrap; padding: 5px 9px; border-radius: 6px; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .12s ease, transform .12s ease; z-index: 6; }
.has-tip::before { content: ''; position: absolute; bottom: 100%; left: 50%; transform: translate(-50%,2px); border: 5px solid transparent; border-top-color: #222; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .12s ease; z-index: 6; }
.has-tip:hover::after, .has-tip:hover::before { opacity: 1; visibility: visible; transform: translate(-50%,-10px); }
.has-tip:hover::before { transform: translate(-50%,-1px); }
.bars .weekday-bar { width: 55%; background: #4a3aa7; }
.weekday-dot { background: #4a3aa7 !important; }
.weekday-bar-chart { grid-template-columns: repeat(7,1fr); }
.insights-columns-3 { grid-template-columns: repeat(3,minmax(0,1fr)); }
.chart-legend { display: flex; gap: 16px; margin-top: 14px; color: #666; font-size: 11px; }
/* Ocupação média por ano (gráfico de linhas, mês a mês) — Indicadores */
.occupancy-trend-chart { width: 100%; }
.occupancy-trend-chart svg { display: block; width: 100%; height: 280px; }
.occ-gridline { stroke: #e5e5e5; stroke-width: 1; }
.occ-axis-label { fill: #999; font-size: 10px; }
.occ-line { fill: none; stroke: var(--occ-color); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.occ-point { fill: var(--occ-color); stroke: #fff; stroke-width: 1.5; vector-effect: non-scaling-stroke; transition: r .12s ease; }
.occ-point:hover { r: 6; }
.occ-legend { flex-wrap: wrap; row-gap: 8px; }
.occ-legend span { display: inline-flex; align-items: center; gap: 6px; }
.occ-legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.expense-dot { background: #ff385c !important; }
/* Gráfico de rosca (SVG) — usado em "Métodos de pagamento" e "Canais de
   reserva", em Indicadores. Tooltip nativo via <title> dentro de cada fatia
   (ver render_donut() em indicadores.php). */
.donut-panel .section-heading { margin-bottom: 4px; }
.donut-chart { display: grid; place-items: center; width: 190px; height: 190px; margin: 10px auto 4px; position: relative; }
.donut-chart svg { width: 100%; height: 100%; }
.donut-track { fill: none; stroke: #eee; stroke-width: 18; }
.donut-segment { fill: none; stroke-width: 18; cursor: default; }
.donut-center-label { font-size: 17px; font-weight: 800; fill: var(--ink); }
.donut-center-sub { font-size: 8px; fill: #777; text-transform: uppercase; letter-spacing: .06em; }
.donut-legend { flex-wrap: wrap; justify-content: center; row-gap: 8px; margin-top: 10px; }
.channel-list { display: grid; gap: 9px; }
.channel-list > div { display: flex; justify-content: space-between; gap: 10px; }
.channel-list span { display: inline-flex; align-items: center; gap: 7px; }
.month-performance .data-row { grid-template-columns: 100px repeat(2,100px) repeat(3,minmax(130px,1fr)); }
.closing-pattern > .muted { margin: 6px 0 18px; font-size: 13px; }
.closing-day-grid { display: grid; grid-template-columns: repeat(8,minmax(0,1fr)); gap: 7px; }
.closing-day { position: relative; display: grid; place-items: center; min-height: 49px; overflow: hidden; border: 1px solid #e5e5e5; border-radius: 11px; background: #fafafa; }
.closing-day::before { content: ''; position: absolute; inset: 0; background: rgba(34,34,34,var(--intensity)); opacity: .9; }
.closing-day span, .closing-day strong { position: relative; z-index: 1; display: block; line-height: 1.05; }
.closing-day span { color: #777; font-size: 10px; }
.closing-day strong { margin-top: 3px; font-size: 15px; }
.closing-day.has-bookings span, .closing-day.has-bookings strong { color: #fff; }
.top-closing-days { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.top-closing-days span { display: inline-flex; align-items: baseline; gap: 5px; padding: 7px 10px; border-radius: 999px; background: #f1f1f1; color: #666; font-size: 11px; }
.top-closing-days strong { color: #222; }
.integration-grid .panel { margin-top: 0; }
.integration-number { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 15px; border-radius: 50%; background: #222; color: #fff; font-weight: 800; }
.inline-sync { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid #eee; }
.inline-sync small { color: #777; }
.sync-warning { display: flex; align-items: flex-start; gap: 12px; }
.sync-warning strong, .sync-warning span { display: block; }
.sync-warning span { margin-top: 3px; }
.refund-panel { margin-top: 18px; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.refund-panel > div { display: grid; gap: 3px; }
.refund-panel small { color: #777; }
.refund-panel form { display: flex; align-items: center; gap: 10px; }
.refund-panel input { min-width: 250px; }

@media (max-width: 1120px) {
  .main-nav a span { display: none; }
  .main-nav a { padding: 10px; }
  .calendar-module { grid-template-columns: 1fr; }
  .simulator-panel { border: 0; padding: 0; }
  .simulator-sticky { position: static; }
  .service-cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .settings-grid, .rate-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .topbar { min-height: 72px; padding: 0 14px; }
  .brand-logo { width: 108px; }
  .topbar-actions { gap: 2px; }
  .main-nav { position: fixed; z-index: 30; right: 10px; bottom: 10px; left: 10px; justify-content: space-around; padding: 7px; border: 1px solid #dedede; border-radius: 22px; background: rgba(255,255,255,.96); box-shadow: 0 8px 30px rgba(0,0,0,.18); backdrop-filter: blur(14px); }
  .main-nav a { display: grid; justify-items: center; gap: 2px; min-width: 44px; padding: 6px; }
  .main-nav a span { display: block; font-size: 9px; }
  .main-nav .ui-icon { width: 19px; height: 19px; }
  .container { padding: 25px 14px 100px; }
  .module-page, .module-shell { width: 100%; margin: 0; transform: none; }
  .module-head { align-items: flex-start; flex-direction: column; }
  .module-head-actions { width: 100%; justify-content: flex-start; }
  .booking-calendar { overflow-x: auto; }
  .calendar-weekdays, .calendar-grid { min-width: 720px; }
  .calendar-day { min-height: 105px; }
  .finance-stats, .kpi-grid, .operation-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .finance-columns, .operation-columns, .insights-columns, .integration-grid { grid-template-columns: 1fr; }
  .service-cards { grid-template-columns: 1fr; }
  .modal-backdrop { padding: 10px; }
  .modal-card { padding: 24px 18px; }
  .cleaning-card { grid-template-columns: 52px minmax(0,1fr) auto; }
  .stock-count-grid > div { grid-template-columns: 1fr 90px; }
  .stock-count-grid select { grid-column: 1/-1; appearance: none; -webkit-appearance: none; min-height: 46px; margin-top: 2px; padding: 11px 34px 11px 13px; border-radius: 10px; background: #fff url('icons/chevron-down.svg') no-repeat right 13px center / 16px 16px; font-size: 15px; }
  .cleaning-checklist { grid-template-columns: 1fr; }
  .stock-line { grid-template-columns: 36px minmax(0,1fr); row-gap: 8px; }
  .stock-quantity { grid-column: 1/-1; flex-direction: row; align-items: center; justify-content: space-between; text-align: left; }
  .stock-actions { grid-column: 1/-1; justify-content: flex-end; }
  .stock-deficit-row { grid-template-columns: 32px minmax(0,1fr); row-gap: 8px; }
  .stock-deficit-value { display: flex; grid-column: 1/-1; align-items: center; gap: 8px; }
  .refund-panel, .refund-panel form { align-items: stretch; flex-direction: column; }
  .refund-panel input { min-width: 0; width: 100%; }
}
@media (max-width: 480px) {
  .brand-logo { width: 92px; }
  .main-nav a span { display: none; }
  .date-pair, .settings-grid, .rate-grid { grid-template-columns: 1fr; }
  .finance-stats, .kpi-grid, .operation-summary { grid-template-columns: 1fr; }
}

/* Estrutura do painel: navegação lateral recolhível */
.app-shell { --sidebar-width: 252px; }
.app-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 70; display: flex; flex-direction: column; width: var(--sidebar-width); padding: 22px 14px 16px; border-right: 1px solid #e8e8e8; background: #fff; transition: width .22s ease, transform .22s ease; }
.sidebar-brand-row { display: flex; align-items: center; justify-content: space-between; min-height: 54px; padding: 0 4px 23px; border-bottom: 1px solid #efefef; }
.sidebar-brand { display: block; min-width: 0; }
.sidebar-logo { display: block; width: 151px; height: 42px; object-fit: contain; object-position: center; }
/* Logo centralizada no eixo do menu. O botão de recolher sai do fluxo e
   encosta à direita — se ficasse no fluxo (a linha é flex), ele empurraria a
   logo pra esquerda, que era o desalinhamento visível. Vale só no modo
   expandido: no recolhido o botão é o único item da linha e se centraliza
   sozinho (ver .sidebar-collapsed mais abaixo). */
body:not(.sidebar-collapsed) .sidebar-brand-row { position: relative; justify-content: center; }
/* top/bottom + margin auto centraliza o botão na FAIXA DA LOGO, descontando o
   padding-bottom de 23px da linha — com "top: 50%" ele cairia 11px abaixo da
   logo, porque 50% contaria esse padding junto. */
body:not(.sidebar-collapsed) .sidebar-collapse { position: absolute; right: 0; top: 0; bottom: 23px; height: 34px; margin-block: auto; }
.sidebar-collapse, .sidebar-mobile-toggle { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid #e6e6e6; border-radius: 50%; background: #fff; color: #383838; cursor: pointer; }
.sidebar-collapse:hover, .sidebar-mobile-toggle:hover { border-color: #c7c7c7; background: #f7f7f7; }
.sidebar-collapse .ui-icon { width: 17px; height: 17px; }
.side-nav { display: grid; gap: 5px; padding-top: 23px; }
.side-nav a, .side-nav-button { display: flex; align-items: center; gap: 13px; min-height: 46px; padding: 0 13px; border: 0; border-radius: 12px; background: transparent; color: #565656; font: inherit; font-size: 14px; font-weight: 700; text-align: left; text-decoration: none; cursor: pointer; white-space: nowrap; }
.side-nav a:hover, .side-nav-button:hover { background: #f5f5f5; color: #242424; }
.side-nav a.active { background: #e5f2ff; color: #0066cc; }
.side-nav .ui-icon, .side-nav-button .ui-icon { width: 20px; height: 20px; }
.side-nav-bottom { display: grid; gap: 5px; margin-top: auto; padding-top: 18px; border-top: 1px solid #efefef; }
.app-shell .topbar { min-height: 72px; margin-left: var(--sidebar-width); padding: 0 34px; border-bottom-color: #e8e8e8; justify-content: flex-end; transition: margin-left .22s ease; }
.sidebar-mobile-toggle { display: none; margin-right: auto; }
.app-shell .container { width: calc(100% - var(--sidebar-width)); max-width: none; margin: 0 0 0 var(--sidebar-width); padding: 30px 34px 72px; transition: margin-left .22s ease, width .22s ease; }
.app-shell .container:has(.dashboard-reference) { max-width: none; }
.app-shell .dashboard-reference { min-height: calc(100vh - 72px); }
.app-shell .module-page, .app-shell .module-shell { width: min(1760px, calc(100vw - var(--sidebar-width) - 68px)); margin-inline: auto; transform: none; }
.app-shell.sidebar-collapsed { --sidebar-width: 76px; }
.sidebar-collapsed .sidebar-brand-row { justify-content: center; padding-inline: 0; }
.sidebar-collapsed .sidebar-brand { display: none; }
.sidebar-collapsed .side-nav a, .sidebar-collapsed .side-nav-button { justify-content: center; padding-inline: 0; }
.sidebar-collapsed .side-nav a > span, .sidebar-collapsed .side-nav-button > span { display: none; }
.sidebar-collapsed .side-nav-bottom { padding-top: 14px; }
.reservation-view-switch { display: inline-flex; gap: 3px; margin: 10px 0 5px; padding: 3px; border: 1px solid #e5e5e5; border-radius: 999px; background: #fff; }
.reservation-view-switch a { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 11px; border-radius: 999px; color: #6b6b6b; font-size: 12px; font-weight: 750; text-decoration: none; }
.reservation-view-switch a.active { background: #222; color: #fff; }
.reservation-view-switch .ui-icon { width: 15px; height: 15px; }
.reservation-view-switch a.active .ui-icon { filter: brightness(0) invert(1); }
.reservation-view-switch.compact { margin: 9px 0 0; }
.reservation-view-switch-wrap { display: flex; justify-content: center; width: 100%; margin: 0 auto 22px; }
.reservation-view-switch-wrap .reservation-view-switch { margin: 0; }
.reservation-view-switch-wrap.near-calendar { justify-content: flex-start; margin: 14px 0 18px; }
.dashboard-rail .reservation-view-switch-wrap.near-calendar { margin: 4px 0 20px; }
.inline-reschedule-fields { margin: 10px 0 2px; padding: 20px; border: 1px solid #f0c8d1; border-radius: 16px; background: #fff8fa; }
.inline-reschedule-fields .form-intro { margin-bottom: 16px; }
.inline-reschedule-fields .form-intro h3 { margin: 3px 0; font-size: 19px; }
.page-head-actions a[href*="action=reschedule"] { display: none; }

.sidebar-mobile-backdrop { display: none; }
@media (max-width: 760px) {
  .app-shell { --sidebar-width: 0px; }
  .app-sidebar { width: 264px; transform: translateX(-105%); box-shadow: 12px 0 34px rgba(0,0,0,.14); }
  .app-shell.sidebar-mobile-open .app-sidebar { transform: translateX(0); }
  .sidebar-mobile-backdrop { position: fixed; inset: 0; z-index: 195; display: block; background: rgba(0,0,0,.4); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
  .app-shell.sidebar-mobile-open .sidebar-mobile-backdrop { opacity: 1; pointer-events: auto; }
  .app-shell .topbar { min-height: 64px; margin-left: 0; padding: 0 14px; }
  .topbar-drawer { top: calc(64px + 12px); right: 12px; bottom: 12px; width: min(390px, calc(100vw - 24px)); }
  .topbar-drawer-backdrop { top: 64px; }
  .sidebar-mobile-toggle { display: grid; }
  .app-shell .container { width: 100%; margin-left: 0; padding: 22px 14px 86px; }
  .app-shell .module-page, .app-shell .module-shell { width: 100%; }
  .app-shell .dashboard-reference { min-height: auto; }
  .sidebar-collapse { display: none; }
}

/* Agenda contínua — referência Airbnb */
.agenda-airbnb-shell { display: grid; grid-template-columns: minmax(0,1fr) 360px; gap: 0; align-items: start; max-width: 1760px; }
.agenda-airbnb-shell.has-side-panel { grid-template-columns: minmax(0,1fr) 360px 390px; }
.agenda-calendar-column { min-width: 0; padding: 0 20px 70px 8px; }
.agenda-side-panel { display: none; border-left: 1px solid #dedede; background: #fff; }
.agenda-airbnb-shell.has-side-panel .agenda-side-panel { display: block; }
.agenda-side-sticky { padding: 38px 32px; }
/* Agora fora do .module-shell (que tem max-width e fica centralizado): o
   cabeçalho quebra a largura do .container com margem negativa, ocupando
   100% da tela, do menu lateral até a borda direita — colado no topbar,
   sem espaço vazio, mesmo com o container centralizando o resto do
   conteúdo abaixo dele. */
.agenda-header-sticky { position: sticky; top: 72px; z-index: 15; width: calc(100% + 68px); margin: -30px -34px 20px; padding: 20px 34px 6px; background: rgba(255,255,255,.90); backdrop-filter: blur(12px); box-shadow: 0 10px 18px -14px rgba(0,0,0,.28); }
.agenda-header-sticky .agenda-topline { margin-bottom: 14px; }
.agenda-header-sticky .agenda-legend,.agenda-header-sticky .year-tabs { margin-bottom: 14px; }
.agenda-header-sticky .reservation-view-switch-wrap.near-calendar { margin: 0 0 14px; }
.agenda-topline { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin: 10px 10px 30px; }
.agenda-topline h1 { margin: 5px 0 8px; font-size: clamp(28px,3vw,42px); letter-spacing: -.045em; }
.agenda-totals { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 20px; }
.agenda-totals div { display: grid; gap: 1px; }
.agenda-totals strong { font-size: 22px; font-weight: 650; }
.agenda-totals span { color: #717171; font-size: 12px; }
.agenda-actions { display: flex; gap: 9px; flex-wrap: wrap; justify-content: flex-end; }
.agenda-legend { display: flex; gap: 16px; flex-wrap: wrap; margin: 0; color: #6b6b6b; font-size: 12px; }
.agenda-legend span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.agenda-legend i { display: block; width: 9px; height: 9px; border-radius: 50%; }
.agenda-legend .legend-direct { background: #242424; }.agenda-legend .legend-airbnb { background: #ff385c; }.agenda-legend .legend-block { background: #979797; }.agenda-legend .legend-note { background: #c5223d; }.agenda-legend .legend-today { background: #fff; border: 2px solid #ff385c; }
.agenda-scroll-calendar { max-width: 1220px; margin: 0 auto; padding: 28px 30px 36px; border-radius: 22px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 10px 30px rgba(0,0,0,.05); }
.agenda-scroll-hint { display: none; }
.agenda-month { margin: 0 0 58px; scroll-margin-top: 98px; }
.agenda-month-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0 10px 22px; flex-wrap: wrap; }
.agenda-month-head h2 { margin: 0; font-size: clamp(28px,3vw,40px); letter-spacing: -.045em; text-transform: lowercase; }
.agenda-weekdays,.agenda-month-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 8px; }
.agenda-month-grid { --agenda-grid-gap: 8px; --agenda-turnover-gap: 2px; }
.agenda-weekdays { margin-bottom: 8px; }
.agenda-weekdays span { padding: 0 8px; color: #767676; font-size: 12px; text-align: center; }
.agenda-empty-day { min-height: 132px; }
.agenda-day { position: relative; display: flex; flex-direction: column; align-items: flex-start; min-height: 132px; padding: 14px 14px 10px; overflow: visible; border: 1px solid #dddddd; border-radius: 20px; background: #fff; color: #222; text-align: left; cursor: pointer; transition: border-color .16s ease,background .16s ease,transform .16s ease,box-shadow .16s ease; }
.agenda-day:disabled, .agenda-day.is-past:not(.is-occupied) { cursor: not-allowed; opacity: .44; }
.agenda-day:hover:not(.is-occupied) { z-index: 2; border-color: #222; box-shadow: 0 6px 16px rgba(0,0,0,.08); transform: translateY(-1px); }
.agenda-day.is-occupied { z-index: 4; background: #f2f2f2; cursor: pointer; }.agenda-day.is-occupied:hover { z-index: 5; border-color: #777; }
.agenda-day-number { position: relative; z-index: 2; font-size: 16px; font-weight: 400; }.agenda-day-price { margin-top: auto; font-size: 16px; font-weight: 400; }
.agenda-day.is-today .agenda-day-number { display: grid; place-items: center; width: 30px; height: 30px; margin: -4px 0 0 -4px; border-radius: 50%; background: #ff385c; color: #fff; }
.agenda-day.is-selected-start,.agenda-day.is-selected-end,.agenda-day.is-in-range { z-index: 6; border-color: #111; background: #222; color: #fff; box-shadow: inset 0 0 0 1px #111; }.agenda-day.is-selected-start .agenda-day-price,.agenda-day.is-selected-end .agenda-day-price,.agenda-day.is-in-range .agenda-day-price { color: #fff; }
/* Cada estadia é UM elemento só (por trecho de linha/semana em que aparece),
   posicionado via grid-row/grid-column (definidos inline pelo PHP) como
   filho direto de .agenda-month-grid — não mais um pedacinho por dia dentro
   de cada botão. Isso é o que faz a pílula ficar realmente contínua, com
   sombra e cor únicas, em vez de uma fileira de retângulos colados. */
.agenda-event { position: relative; z-index: 7; align-self: end; height: 40px; margin-bottom: 13px; display: flex; align-items: center; padding: 8px 14px; overflow: hidden; background: #232323; color: #fff; white-space: nowrap; box-shadow: 0 5px 14px rgba(0,0,0,.13); border-radius: 999px; cursor: pointer; }
/* Nos dias de entrega, o recuo até o meio da célula vem por margem calculada
   no PHP (estilo inline), que sobrepõe estas margens de folga. */
.agenda-event.starts { margin-left: 2px; }
.agenda-event.ends { margin-right: 2px; }
.agenda-event.airbnb { background: #ff385c; }
.agenda-event.block { background: #989898; }
.agenda-event.is-past-segment { background: #d5d5d5; color: #606060; box-shadow: none; }
.agenda-event.is-current-stay { background: var(--accent) !important; color: #fff !important; opacity: 1 !important; border: 1px solid var(--accent) !important; box-shadow: 0 5px 14px rgba(0,0,0,.13) !important; }
.agenda-event.is-current-stay .agenda-event-avatar { background: #fff; color: var(--accent); }
.agenda-event.is-finished-stay { background: #d5d5d5 !important; color: #606060 !important; opacity: 1 !important; box-shadow: none !important; }
.agenda-event b { display: inline-flex; align-items: center; overflow: hidden; text-overflow: ellipsis; font-size: 11px; font-weight: 600; line-height: 16px; }
.agenda-event.note { height: auto; min-height: 25px; margin-bottom: 39px; padding: 5px 9px; border-radius: 9px !important; background: #c5223d; color: #fff; box-shadow: none; }
.agenda-quote-result > .availability-result { display: none; }
.agenda-calendar-column .agenda-topline h1 { white-space: nowrap; }.agenda-totals { display:none; }.agenda-topline { align-items:flex-start; }.agenda-legend { justify-content:flex-end; }.reservation-view-switch { min-height:52px; }.reservation-view-switch a { min-height:48px; padding:0 22px; font-size:15px; transition:background .2s ease,color .2s ease,transform .2s ease; }.reservation-view-switch a.active { transform:translateY(-1px); }
.agenda-load-more { margin: 4px 0 40px; padding: 20px; color: #7a7a7a; text-align: center; font-size: 13px; }
.agenda-year-divider { margin: 6px 10px 26px; padding-top: 14px; border-top: 1px solid #e4e4e4; }
.agenda-year-divider span { font-size: 13px; font-weight: 700; letter-spacing: .04em; color: #9a9a9a; text-transform: uppercase; }
.agenda-year-divider[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.year-tabs { display: flex; gap: 4px; padding: 4px; margin: 0 0 18px; border: 1px solid #e5e5e5; border-radius: 999px; background: #fff; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.year-tabs::-webkit-scrollbar { display: none; }
.year-tab { flex: 0 0 auto; padding: 9px 16px; border-radius: 999px; color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 700; white-space: nowrap; }
.year-tab.active { background: #222; color: #fff; }
@media (max-width:760px){ .reservation-view-switch-wrap.near-calendar{ flex-wrap: wrap; } }
@media (max-width:760px){ .agenda-header-sticky{ top: 64px; width: calc(100% + 28px); margin: -22px -14px 16px; padding: 16px 14px 6px; } }

/* Reservas — cabeçalho único (calendário + visão geral) */
.reservas-topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin: 10px 10px 22px; }
.reservas-topbar .eyebrow { display: block; margin-bottom: 4px; }
.reservas-title-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.reservas-title-row h1 { margin: 5px 0 0; font-size: clamp(28px,3vw,42px); letter-spacing: -.045em; }
.reservas-year-pill { display: inline-block; flex: 0 0 auto; }
.reservas-year-select { appearance: none; -webkit-appearance: none; width: auto; flex: 0 0 auto; padding: 6px 28px 6px 14px; border: 1px solid #e2e2e2; border-radius: 999px; background: #fff url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="6"><path d="M1 1l4 4 4-4" fill="none" stroke="%23222" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"/></svg>') no-repeat right 11px center; background-size: 10px 6px; color: #222; font-size: 14px; font-weight: 700; line-height: 1.2; cursor: pointer; }
.reservas-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: nowrap; justify-content: flex-end; }
.reservas-search { display: flex; align-items: center; gap: 8px; flex: 0 1 260px; min-width: 0; padding: 0 6px 0 16px; height: 42px; border: 1px solid #e2e2e2; border-radius: 999px; background: #fff; }
.reservas-search input:focus,.reservas-search input:focus-visible { border-color: transparent; box-shadow: none; outline: none; }
.reservas-search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.reservas-search input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 14px; color: #222; outline: none; }
.reservas-search input::placeholder { color: #9a9a9a; }
.reservas-search button { display: grid; place-items: center; flex: 0 0 auto; width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: #767676; cursor: pointer; }
.reservas-search button:hover { background: #f2f2f2; }
.reservas-search .ui-icon { width: 16px; height: 16px; }
.reservas-icon-btn { display: grid; place-items: center; flex: 0 0 auto; width: 42px; height: 42px; border: 1px solid #e2e2e2; border-radius: 50%; background: #fff; color: #222; cursor: pointer; text-decoration: none; }
.reservas-icon-btn:hover { border-color: #999; }
.reservas-add-action { flex: 0 0 auto; min-height: 42px; padding: 0 16px; white-space: nowrap; font-size: 14px; }
.reservas-floating-add { position: fixed; z-index: 18; top: 88px; right: 34px; box-shadow: 0 8px 22px rgba(0,0,0,.18); }
.reservas-floating-add[hidden] { display: none; }
@media (max-width: 760px) { .reservas-floating-add { top: auto; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); } }
.reservas-toolbar .agenda-more-actions { flex: 0 0 auto; }
.reservas-toolbar .agenda-more-actions > summary { width: 42px; height: 42px; }

/* Dia do calendário — número riscado nos dias passados vazios */
.agenda-day.is-past:not(.is-occupied) .agenda-day-number { text-decoration: line-through; color: #9a9a9a; }
.agenda-event-avatar { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; margin-right: 6px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 9px; font-weight: 700; vertical-align: middle; }
.agenda-event b { display: inline-flex; align-items: center; }

/* Visão geral — próximas hospedagens (coluna fixa ao lado do calendário) */
.reservas-overview { display: flex; flex-direction: column; min-width: 0; min-height: 0; margin: 0 24px 70px 0; padding: 26px 22px; border-radius: 22px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 10px 30px rgba(0,0,0,.05); align-self: start; position: sticky; top: calc(var(--agenda-header-offset, 190px) + 20px); max-height: calc(100vh - var(--agenda-header-offset, 190px) - 44px); }
.reservas-overview .eyebrow { display: block; flex: 0 0 auto; margin-bottom: 4px; }
.reservas-overview h2 { flex: 0 0 auto; margin: 4px 0 16px; font-size: 22px; letter-spacing: -.03em; }
.reservas-overview .reservation-tabs { flex: 0 0 auto; margin-bottom: 16px; }
.reservas-overview-list { flex: 1 1 auto; display: grid; align-content: start; gap: 2px; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-right: 4px; margin-right: -4px; transition: opacity .15s ease; }

/* Skeletons genéricos — troca de ano, busca e abas do painel usam blocos
   cinza "pulsando" no formato do conteúdo real em vez de deixar a tela
   parada ou só esmaecer, pra navegação parecer mais fluida. */
@keyframes skeleton-pulse { 0%,100% { opacity: .55; } 50% { opacity: 1; } }
.skeleton-block { border-radius: 8px; background: #ececec; animation: skeleton-pulse 1.1s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .skeleton-block { animation: none; opacity: .75; } }
.reservas-overview-skeleton-item { display: flex; align-items: center; gap: 12px; padding: 10px 6px; }
.reservas-overview-skeleton-item .skeleton-block:first-child { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; }
.reservas-overview-skeleton-copy { flex: 1; display: grid; gap: 6px; }
.reservas-overview-skeleton-copy .skeleton-block:nth-child(1) { width: 40%; height: 10px; }
.reservas-overview-skeleton-copy .skeleton-block:nth-child(2) { width: 70%; height: 13px; }
.reservas-overview-skeleton-copy .skeleton-block:nth-child(3) { width: 50%; height: 10px; }
.reservas-overview-skeleton-month { width: 90px; height: 10px; margin: 18px 4px 12px; }
.reservas-overview-skeleton-month:first-child { margin-top: 4px; }
.agenda-calendar-skeleton { padding: 28px 30px 36px; }
.agenda-calendar-skeleton .skeleton-block.title { width: 220px; height: 40px; margin-bottom: 22px; }
.agenda-calendar-skeleton-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 4px; }
.agenda-calendar-skeleton-grid .skeleton-block { height: 116px; border-radius: 17px; }
.reservas-overview-month { margin: 18px 4px 8px; color: #9a9a9a; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.reservas-overview-month:first-child { margin-top: 4px; }
.reservas-overview-item { display: flex; align-items: center; gap: 12px; padding: 10px 6px; border-radius: 14px; color: inherit; text-decoration: none; }
.reservas-overview-item:hover { background: #f7f7f7; }
.reservas-overview-avatar { display: grid; place-items: center; flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; background: #232323; color: #fff; font-size: 12px; font-weight: 700; }
.reservas-overview-copy { display: grid; gap: 1px; min-width: 0; flex: 1; }
.reservas-overview-copy strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reservas-overview-copy small { color: #8a8a8a; font-size: 12px; }
.reservas-overview-daterange { color: #9a9a9a !important; }
.reservas-overview-empty { padding: 20px 6px; color: #8a8a8a; font-size: 13px; }
@media (max-width:1120px) { .reservas-overview { position: static; max-height: none; margin: 20px 14px 60px; } .reservas-overview-list { overflow-y: visible; } }
@media (max-width:760px) { .reservas-topbar { flex-direction: column; align-items: stretch; } .reservas-toolbar { justify-content: flex-start; } .reservas-search { flex: 1 1 auto; } }
.agenda-side-card { display: grid; gap: 15px; }.agenda-side-card[hidden],.agenda-quote-result[hidden] { display: none !important; }.agenda-side-card h2 { margin: 0; font-size: 27px; letter-spacing: -.035em; }.agenda-side-card .muted { margin: -5px 0 3px; }
.agenda-side-full-panel { padding: 0; gap: 0; min-height: 200px; }
.agenda-full-frame { display: block; width: 100%; min-height: 200px; border: 0; }
#quotePanel.is-loading { opacity: .55; pointer-events: none; transition: opacity .15s ease; }
@media (prefers-reduced-motion: reduce) { #quotePanel.is-loading { transition: none; } }
.agenda-date-summary { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; border: 1px solid #ddd; border-radius: 15px; }.agenda-date-summary>div { display: grid; gap: 4px; padding: 14px; }.agenda-date-summary>div+div { border-left: 1px solid #ddd; }.agenda-date-summary span,.agenda-detail-list span { color: #777; font-size: 11px; }.agenda-date-summary strong { font-size: 14px; }
.text-button { justify-self: start; padding: 0; border: 0; background: transparent; color: #333; font-size: 12px; font-weight: 700; text-decoration: underline; cursor: pointer; }
.agenda-services { margin: 3px 0 0; }.agenda-quote-result { display: grid; gap: 15px; padding-top: 4px; }.agenda-quote-result.has-conflict .availability-result { border-color: #e64c63; background: #fff1f3; }
.agenda-quote-result > .availability-result { display: none; }
.rail-reservation.needs-completion small { color: #a36a00; font-weight: 700; }
.agenda-guest-picker { display: grid; gap: 0; margin: 3px 0 0; padding: 0; border: 0; }
.agenda-guest-picker legend { margin-bottom: 7px; font-size: 14px; font-weight: 700; }
.agenda-guest-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; padding: 12px 0; border-bottom: 1px solid #eeeeee; }
.agenda-guest-copy { display: grid; gap: 2px; min-width: 0; flex: 1; }
.agenda-guest-copy strong { font-size: 13px; font-weight: 650; }
.agenda-guest-copy small { color: #777; font-size: 11px; font-weight: 400; }
.agenda-guest-controls { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex: 0 0 auto; }
.agenda-guest-controls button { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 0; border: 1px solid #d7d7d2; border-radius: 50%; background: #fff; color: #242424; font: inherit; font-size: 23px; line-height: 1; cursor: pointer; touch-action: manipulation; }
.agenda-guest-controls button img { display: block; width: 20px; height: 20px; }
.agenda-guest-controls button:hover:not(:disabled) { border-color: #565b3f; background: #f5f4f0; }
.agenda-guest-controls button:disabled { opacity: .35; cursor: not-allowed; }
.agenda-guest-controls output { min-width: 22px; color: #242424; font-size: 15px; font-weight: 600; text-align: center; font-variant-numeric: tabular-nums; }
.agenda-guest-picker p { margin: 9px 0 2px; color: #717171; font-size: 11px; }
.agenda-detail-list { display: grid; gap: 0; border-top: 1px solid #e3e3e3; }.agenda-detail-list>div { display: grid; gap: 3px; padding: 12px 0; border-bottom: 1px solid #e3e3e3; }.agenda-detail-list strong { font-size: 14px; }

/* Refinos da agenda: calendário contínuo e painel de atendimento */
.agenda-more-actions { position: relative; }
.agenda-more-actions > summary { display: grid; place-items: center; width: 42px; height: 42px; list-style: none; border: 1px solid #ddd; border-radius: 50%; background: #fff; color: #222; font-size: 20px; line-height: 1; cursor: pointer; }
.agenda-more-actions > summary::-webkit-details-marker { display: none; }
.agenda-more-actions[open] > summary { border-color: #222; background: #f7f7f7; }
.agenda-more-actions-menu { position: absolute; z-index: 30; top: 50px; right: 0; display: grid; min-width: 210px; gap: 3px; padding: 8px; border: 1px solid #e2e2e2; border-radius: 15px; background: #fff; box-shadow: 0 14px 36px rgba(0,0,0,.15); }
.agenda-more-actions-menu .btn { justify-content: flex-start; width: 100%; min-height: 40px; border: 0; background: transparent; color: #303030; box-shadow: none; }
.agenda-more-actions-menu .btn:hover { background: #f7f7f7; }
.agenda-airbnb-shell.has-side-panel { grid-template-columns: minmax(0,1fr) 360px 410px; }
.agenda-airbnb-shell.has-side-panel .agenda-side-sticky { padding: 30px 28px 24px; }
/* Detalhe aberto a partir da lista "Visão geral" (Próximas/Finalizadas):
   ela fecha (fica [hidden] via JS) e o painel de detalhe ocupa esse espaço
   liberado, ficando mais largo — uma "visão expandida" — em vez de dividir
   a tela em três colunas com a lista ainda visível. */
@media (min-width: 1121px) { .agenda-airbnb-shell.has-side-panel.overview-detail-mode { grid-template-columns: minmax(0,1fr) 620px; } }
.agenda-side-card { min-height: 100%; }
.agenda-side-card h2 { font-size: 26px; }
.agenda-reservation-voucher { position: relative; align-content: start; padding: 2px 0 24px; }
.agenda-reservation-voucher::before { content: ''; height: 7px; margin-bottom: 6px; border-radius: 999px; background: #0080ff; }
.agenda-reservation-status { justify-self: start; padding: 5px 9px; border-radius: 999px; background: #e5f2ff; color: var(--accent-dark); font-size: 11px; font-weight: 800; }
/* Cabeçalho fixo do painel lateral (fica sempre em fluxo normal, acima dos
   cartões), com os botões de editar e fechar — assim eles nunca sobrepõem a
   faixa vermelha do voucher de reserva, que é desenhada abaixo deles. */
.agenda-side-head { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.agenda-detail-edit, .agenda-sidebar-close { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid #e1e1e1; border-radius: 50%; color: #222; font-size: 20px; text-decoration: none; background: #fff; cursor: pointer; }
.agenda-detail-edit:hover, .agenda-sidebar-close:hover { border-color: #222; background: #f7f7f7; }
.agenda-detail-edit .ui-icon, .agenda-sidebar-close .ui-icon { width: 18px; height: 18px; }
.agenda-detail-edit[hidden] { display: none; }
#quoteSubmit { display: none; }
.agenda-services-accordion { margin: 2px 0 0; border: 1px solid #e2e2e2; border-radius: 14px; background: #fff; }
.agenda-services-accordion > summary { padding: 13px 14px; color: #252525; font-size: 13px; font-weight: 750; cursor: pointer; }
.agenda-services-accordion[open] > summary { border-bottom: 1px solid #e9e9e9; }
.agenda-services-accordion .agenda-services { margin: 0; padding: 2px 14px 10px; border: 0; }
.agenda-quote-tabs { display: grid; grid-template-columns: 1fr 1.45fr; gap: 3px; padding: 3px; border: 1px solid #e1e1e1; border-radius: 11px; background: #f7f7f7; }
.agenda-quote-tabs button { min-height: 36px; border: 0; border-radius: 8px; background: transparent; color: #777; font: inherit; font-size: 12px; font-weight: 750; cursor: pointer; }
.agenda-quote-tabs button.active { background: #fff; color: #222; box-shadow: 0 1px 5px rgba(0,0,0,.12); }
.agenda-whatsapp-panel { display: grid; gap: 10px; }
.agenda-whatsapp-panel[hidden] { display: none !important; }
.agenda-book-cta { position: sticky; bottom: 0; z-index: 5; margin-top: auto; box-shadow: 0 -14px 20px rgba(255,255,255,.94); }
.agenda-note-description { margin: 0; color: #444; font-size: 14px; line-height: 1.5; white-space: pre-line; }
.agenda-note-panel-actions { display: flex; gap: 8px; margin-top: 4px; }
.agenda-note-panel-actions .btn { flex: 1; }
.agenda-note-panel-actions .danger-note { color: #c51f45; }
#noteEditBody, #noteDeleteBody { display: grid; gap: 14px; }
#noteDeleteBody p { margin: 0; color: #444; font-size: 14px; line-height: 1.5; }
.agenda-note-field { display: grid; gap: 4px; color: #4b3500; font-size: 12px; font-weight: 700; }
.agenda-note-field input, .agenda-note-field textarea { border: 1px solid #e7bd61; border-radius: 9px; padding: 8px 10px; background: #fff; color: var(--ink); font: inherit; font-size: 13px; resize: vertical; }
.agenda-note-field input:focus, .agenda-note-field textarea:focus { outline: none; border-color: #a97300; box-shadow: 0 0 0 2px rgba(169,115,0,.15); }
.agenda-note-confirm-text { margin: 0; color: #4b3500; font-size: 13px; line-height: 1.45; }
.agenda-holiday-marker { position: absolute; z-index: 3; top: 39px; left: 19px; width: 7px; height: 7px; border-radius: 50%; background: #19a44a; box-shadow: 0 0 0 2px #fff; }
.agenda-day.has-holiday .agenda-day-number { padding-right: 0; }
.reservation-view-switch { padding: 4px; border-radius: 16px; box-shadow: 0 5px 17px rgba(0,0,0,.04); }
.reservation-view-switch a { min-width: 148px; justify-content: center; border-radius: 12px; transition: transform .22s ease, background .22s ease, color .22s ease, box-shadow .22s ease; }
.reservation-view-switch a:hover { transform: translateY(-1px); background: #f3f3f3; color: #222; }
.reservation-view-switch a.active { box-shadow: 0 5px 12px rgba(0,0,0,.17); }
.reservation-list { animation: reservation-list-in .24s ease both; }
@keyframes reservation-list-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.agenda-more-actions > summary { font-size: 0; }
.agenda-more-actions > summary .ui-icon { width: 20px; height: 20px; }
.agenda-airbnb-shell.has-side-panel .agenda-side-panel { border-left: 1px solid #e3e3e3; box-shadow: -18px 0 36px rgba(0,0,0,.10); }
/* Fundo escurecido atrás do painel lateral flutuante (mesmo padrão visual das
   gavetas de Configurações/Tarefas e do checklist de preparação de limpeza),
   só ativo no desktop — ver @media(min-width:1121px) mais abaixo. */
.agenda-side-backdrop { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.32); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.agenda-side-backdrop.is-quote-backdrop { pointer-events: auto; background: rgba(0,0,0,.6); }
@media (max-width: 1120px) { .agenda-side-backdrop { display: none !important; } }
.agenda-airbnb-shell.has-side-panel .agenda-side-sticky { position: relative; padding: 30px 28px 28px; background: #fff; }
.agenda-side-panel { transition: opacity .16s ease, transform .2s cubic-bezier(.2,.8,.2,1); }
.agenda-side-panel.is-switching { opacity: .12; transform: translateX(18px); }
.agenda-reservation-voucher { gap: 13px; min-height: 100%; padding: 24px 20px 30px; border: 1px solid #d8e6f2; border-radius: 18px; background: linear-gradient(180deg,#fff 0%,#fff 58%,#eff6ff 58%,#eff6ff 100%); box-shadow: 0 12px 32px rgba(0,64,128,.08); }
.agenda-reservation-voucher::before { height: 9px; margin: -24px -20px 6px; border-radius: 18px 18px 0 0; background: #0080ff; }
.agenda-reservation-voucher::after { content: ''; height: 1px; margin: 3px -20px 0; background: repeating-linear-gradient(90deg,#e9b4c0 0 7px,transparent 7px 13px); order: 4; }
.agenda-reservation-voucher #detailType { color: #a82c49; font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.agenda-reservation-voucher #detailTitle { font-size: 28px; letter-spacing: -.045em; }
.agenda-reservation-voucher .agenda-detail-list { border-top: 0; }
.agenda-reservation-voucher .agenda-detail-list > div { grid-template-columns: minmax(84px,.8fr) 1.4fr; align-items: center; gap: 12px; padding: 12px 0; }
.agenda-reservation-voucher .agenda-detail-list > div span { color: #8d6a72; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.agenda-reservation-voucher .agenda-detail-list > div strong { color: #34252a; font-size: 13px; text-align: right; }
.agenda-reservation-voucher .full-btn { order: 5; }
.agenda-reservation-status { order: 2; }
.agenda-quote-tabs { order: -3; width: 100%; margin: -4px 0 7px; }
.agenda-side-card .agenda-quote-tabs + h2 { margin-top: 2px; }
@media (max-width:1120px) { .agenda-airbnb-shell.has-side-panel .agenda-side-panel { position: static; width: auto; height: auto; margin: 0; box-shadow: none; } .agenda-sidebar-close, .agenda-detail-edit { display:none; } }
@media (max-width:1120px){.agenda-airbnb-shell,.agenda-airbnb-shell.has-side-panel{grid-template-columns:1fr}.agenda-side-panel{position:static;min-height:0;border-top:1px solid #dedede;border-left:0}.agenda-side-sticky{position:static;max-width:700px;margin:auto;padding:28px 14px 120px}.agenda-calendar-column{padding:26px 14px}.agenda-scroll-calendar{max-width:none}.agenda-empty-day,.agenda-day{min-height:112px}}
@media (max-width:760px){.agenda-month-head{align-items:flex-start;flex-direction:column;gap:10px;margin-left:0}.agenda-month{overflow-x:auto;padding-bottom:6px}.agenda-month-head h2{margin-left:0;font-size:30px}.agenda-weekdays,.agenda-month-grid{min-width:700px}.agenda-weekdays{padding:0 2px}.agenda-day{min-height:110px;border-radius:17px}.agenda-empty-day{min-height:110px}.agenda-event{bottom:10px}.agenda-side-panel{margin-inline:-14px}.agenda-side-sticky{padding-inline:20px}.agenda-scroll-calendar{padding:20px 14px 26px;border-radius:16px}}
/* Correção mobile: título da agenda quebrava/cortava a palavra sem reticências e a legenda ficava mal alinhada
   (herdava padding-right:56px pensado para o layout de desktop, onde a legenda fica ao lado do botão de ações). */
@media (max-width:760px){
    .agenda-calendar-column .agenda-topline h1{white-space:normal;overflow-wrap:break-word;font-size:clamp(24px,7vw,34px);line-height:1.15;}
    .agenda-legend{justify-content:flex-start;padding-right:0;}
    .agenda-actions{min-width:0;}
    .agenda-scroll-calendar{position:relative;}
    .agenda-month{-webkit-overflow-scrolling:touch;scroll-snap-type:x proximity;background-color:#fff;background-repeat:no-repeat;background-attachment:local,local,scroll,scroll;background-position:left center,right center,left center,right center;background-size:26px 100%,26px 100%,10px 100%,10px 100%;background-image:linear-gradient(to right,#fff 30%,rgba(255,255,255,0)),linear-gradient(to left,#fff 30%,rgba(255,255,255,0)),linear-gradient(to right,rgba(20,20,20,.14),rgba(20,20,20,0) 70%),linear-gradient(to left,rgba(20,20,20,.14),rgba(20,20,20,0) 70%);}
    .agenda-month-grid{scroll-snap-align:start;}
    .agenda-scroll-hint{display:flex;align-items:center;gap:5px;margin:-14px 10px 16px;color:#8a8a8a;font-size:11px;font-weight:650;}
    .agenda-scroll-hint i{display:inline-block;font-style:normal;animation:agenda-scroll-hint-move 1.6s ease-in-out infinite;}
}
@media (max-width:420px){
    .agenda-calendar-column{padding:22px 10px;}
    .agenda-day-number,.agenda-day-price{font-size:14px;}
    .agenda-event b{font-size:10px;line-height:14px;}
    .agenda-more-actions>summary{width:38px;height:38px;}
}
@media (prefers-reduced-motion: reduce){
    .agenda-scroll-hint i{animation:none;}
}
@keyframes agenda-scroll-hint-move{0%,100%{transform:translateX(0);}50%{transform:translateX(4px);}}

/* Calendário mobile: todas as 7 colunas visíveis sem rolagem horizontal, sem o efeito
   de "deslizar" por mês — as datas ocupadas ganham marca dobrada + risco no número. */
@media (max-width:760px){
    .agenda-scroll-hint{display:none!important;}
    .agenda-calendar-column{padding:22px 8px;overflow-x:hidden;}
    .agenda-month{overflow-x:visible!important;padding-bottom:0;background-image:none!important;-webkit-overflow-scrolling:auto;scroll-snap-type:none;}
    .agenda-month-grid{scroll-snap-align:none;}
    .agenda-weekdays,.agenda-month-grid{min-width:0!important;gap:3px;}
    .agenda-month-grid{--agenda-grid-gap:3px;--agenda-turnover-gap:1px;}
    .agenda-weekdays span{padding:0;font-size:10px;}
    .agenda-day{min-height:58px;padding:5px 3px 4px;border-radius:11px;gap:1px;}
    .agenda-empty-day{min-height:58px;}
    .agenda-day-number{font-size:12px;}
    .agenda-day-price{font-size:9px;margin-top:auto;}
    .agenda-day.is-today .agenda-day-number{width:20px;height:20px;margin:-2px 0 0 -2px;font-size:11px;}
    .agenda-event{height:17px;margin-bottom:4px;padding:2px 4px;border-radius:0;}
    .agenda-event.starts{margin-left:1px;border-top-left-radius:8px;border-bottom-left-radius:8px;}
    .agenda-event.ends{margin-right:1px;border-top-right-radius:8px;border-bottom-right-radius:8px;}
    .agenda-event b{max-width:100%;font-size:8.5px;line-height:11px;}
    .agenda-event.note{display:none;}
    .agenda-day.is-occupied{background:#fff;}
    .agenda-day.is-occupied .agenda-day-number{color:#8a8a8a;text-decoration:line-through;text-decoration-color:#9a9a9a;text-decoration-thickness:1.4px;}
    .agenda-day.is-occupied::after{content:'';position:absolute;top:0;right:0;z-index:1;width:0;height:0;border-style:solid;border-width:0 10px 10px 0;border-color:transparent #d6d6d6 transparent transparent;}
    .agenda-holiday-marker{top:27px;left:10px;width:5px;height:5px;}
    /* Menu "mais ações" (botão •••): ancorado à esquerda do botão e limitado à
       largura da tela, para não ficar cortado fora da viewport. */
    .agenda-more-actions-menu{left:0;right:auto;max-width:calc(100vw - 32px);}
}

/* Detalhe de reserva em tela cheia no mobile (toque em data ocupada), com botão "voltar"
   no topo — o orçamento de novas datas continua no painel empilhado, como antes. */
@media (max-width:1120px){
    .agenda-airbnb-shell.has-side-panel .agenda-side-panel.is-detail-mode{position:fixed!important;inset:0!important;z-index:300;width:100%!important;height:100vh!important;height:100dvh!important;margin:0!important;background:#fff;border:0;box-shadow:none;overflow-y:auto;transition:none;}
    /* Neutraliza a transição de opacidade/deslocamento herdada do painel de desktop
       (usada ao trocar de reserva na barra lateral): em tela cheia no mobile ela
       causava um piscar visível antes de o card aparecer. */
    .agenda-side-panel.is-detail-mode.is-switching{opacity:1!important;transform:none!important;}
    .agenda-side-panel.is-detail-mode .agenda-side-sticky{position:static;max-width:520px;height:auto;min-height:0;margin:0 auto;padding:18px 20px 48px;}
    .agenda-side-panel.is-detail-mode #quotePanel{display:none;}
    .agenda-side-panel.is-detail-mode .agenda-sidebar-close{display:grid!important;position:fixed!important;top:14px;left:14px;right:auto!important;z-index:301;background:#fff;box-shadow:0 2px 10px rgba(0,0,0,.16);}
    .agenda-side-panel.is-detail-mode .agenda-sidebar-close img{content:url('icons/arrow-left.svg?v=4');}
    .agenda-side-panel.is-detail-mode .agenda-detail-edit:not([hidden]){display:grid!important;position:fixed!important;top:14px;right:14px;left:auto!important;z-index:301;background:#fff;box-shadow:0 2px 10px rgba(0,0,0,.16);}
    .agenda-side-panel.is-detail-mode .agenda-side-sticky{padding-top:64px;}
}

/* Correções de empilhamento e comportamento dos painéis */
.app-shell .topbar { z-index: 200; }
.topbar-drawer { z-index: 1001; }
.topbar-drawer-backdrop { z-index: 1000; }
.app-sidebar { top: 0; bottom: 0; z-index: 201; height: 100vh; height: 100dvh; overflow-y: auto; }
.agenda-airbnb-shell.has-side-panel .agenda-side-panel { z-index: 1001; box-sizing: border-box; overflow-y: auto; overscroll-behavior: contain; }
.agenda-airbnb-shell.has-side-panel .agenda-side-sticky { box-sizing: border-box; height: auto; min-height: 100%; overflow: visible; }
.agenda-side-panel .agenda-event { z-index: auto; }
#detailLink, #newQuote { display: none !important; }
.agenda-side-card [hidden] { display: none !important; }
.agenda-event[data-event-key] { cursor: pointer; }

@media (min-width: 1121px) {
    /* Painel lateral como cartão flutuante de cantos arredondados, com
       margem para todos os lados (em vez de encostado na borda da tela) —
       mesmo formato do componente de checklist de preparação. */
    .agenda-airbnb-shell.has-side-panel .agenda-side-panel {
        position: fixed !important;
        top: 20px !important;
        right: 20px !important;
        bottom: 20px !important;
        left: auto !important;
        align-self: auto !important;
        width: 66.6667vw !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        margin: 0 !important;
        border-left: 0;
        border-radius: var(--radius);
        box-shadow: 0 16px 48px rgba(0,0,0,.22);
    }
    .agenda-airbnb-shell.has-side-panel .agenda-side-sticky {
        height: auto !important;
        min-height: 100% !important;
    }
    /* Painel de orçamento (clique numa data livre, sem reserva por trás):
       bem mais estreito que o painel de reserva/detalhe completo — 1/5 da
       largura da tela, em vez de 2/3. */
    .agenda-airbnb-shell.has-side-panel .agenda-side-panel:not(.is-full-mode):not(.is-detail-mode) {
        width: calc(20vw + 80px) !important;
        min-width: 400px !important;
    }
    .agenda-side-head { margin-bottom: 18px; }
    .agenda-quote-result:has(.agenda-book-cta:not([hidden])) { padding-bottom: 78px; }
    .agenda-book-cta {
        position: fixed;
        right: 48px;
        bottom: 38px;
        z-index: 105;
        width: 354px;
        margin: 0;
    }
    /* O painel lateral aqui é um cartão flutuante (position:fixed, acima),
       não faz parte do fluxo do grid — então abrir/fechar ele não precisa
       (e não deve) redistribuir as colunas do calendário/"Visão geral" por
       baixo. Mantém sempre as mesmas 2 colunas, com ou sem painel aberto. */
    .agenda-airbnb-shell.has-side-panel,
    .agenda-airbnb-shell.has-side-panel.overview-detail-mode {
        grid-template-columns: minmax(0,1fr) 360px;
    }
    /* Reserva completa aberta no painel (showFull/is-full-mode): o painel
       vira uma caixa de altura fixa e é o IFRAME que rola por dentro — é
       o que permite o cabeçalho da reserva (nome, status, código e os
       botões de ação, dentro do iframe) ficar fixo no topo enquanto o
       resto do conteúdo passa por baixo, sem descer com o scroll. */
    .agenda-side-panel.is-full-mode {
        overflow-y: hidden !important;
        overflow-x: hidden !important;
        position: relative;
    }
    .agenda-side-panel.is-full-mode .agenda-side-sticky {
        display: flex;
        flex-direction: column;
        height: 100% !important;
        min-height: 0 !important;
        overflow: hidden;
        padding: 0 !important;
    }
    .agenda-side-panel.is-full-mode .agenda-side-full-panel {
        flex: 1;
        display: flex;
        flex-direction: column;
        min-height: 0;
    }
    .agenda-side-panel.is-full-mode .agenda-full-frame {
        flex: 1;
        height: 100%;
        min-height: 0;
    }
    /* O botão de fechar (X) mora no documento pai (agenda.php), o botão de
       excluir/cancelar mora dentro do iframe (index.php) — são documentos
       diferentes, então não dá pra virarem irmãos de verdade na mesma
       linha de DOM. Em vez disso, sobrepõe o X flutuando bem colado ao
       lado do botão de excluir (vermelho), no mesmo tamanho dele, no canto
       superior direito do painel — que já reserva espaço para o X via
       "padding-right" no .page-head (ver .reservation-embed-shell acima). */
    .agenda-side-panel.is-full-mode .agenda-side-head {
        position: absolute;
        top: 18px;
        right: 16px;
        z-index: 20;
        margin: 0;
    }
    .agenda-side-panel.is-full-mode .agenda-side-head .agenda-sidebar-close {
        width: 42px;
        height: 42px;
    }
}

/* Painel "Gerenciar pagamentos" (Master) — index.php, view de reserva */
.payment-ledger-row {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr auto auto;
    gap: 8px;
    align-items: end;
    padding: 10px 0;
    border-top: 1px solid var(--border-color, #e5e5e5);
}
.payment-ledger-row:first-of-type { border-top: none; }
.payment-ledger-row label {
    display: block;
    font-size: 11px;
    color: var(--muted-color, #777);
    margin-bottom: 2px;
}
.payment-ledger-row input,
.payment-ledger-row select {
    width: 100%;
}
.payment-ledger-row .btn.small { white-space: nowrap; }
.payment-ledger-add {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 2px dashed var(--border-color, #e5e5e5);
}
.payment-ledger-generate {
    margin-top: 16px;
    padding: 12px;
    border-radius: 8px;
    background: var(--surface-muted, #f6f6f6);
}
@media (max-width: 720px) {
    .payment-ledger-row { grid-template-columns: 1fr 1fr; }
}

/* Edição da reserva: "Pagamento confirmado" à esquerda e "Gerenciar
   pagamentos" à direita, lado a lado. O painel fica com metade da largura,
   então a linha da parcela deixa de ser uma régua de 7 colunas e passa a
   empilhar em pares — senão os campos ficam estreitos demais pra ler.
   Os <form> do painel NÃO moram aqui dentro (formulário dentro de formulário
   é descartado pelo navegador): os campos se ligam a eles pelo atributo
   form= e as cascas ficam depois do </form> da reserva. */
.payment-and-ledger { display: grid; gap: 20px; align-items: start; }
.payment-and-ledger > .form-section { margin: 0; }
/* O painel mora dentro do cartão do formulário da reserva — então ele perde o
   próprio fundo/borda/sombra e vira uma seção, igual à coluna da esquerda.
   Cartão dentro de cartão fazia os dois lados parecerem coisas diferentes. */
.payment-and-ledger .payments-panel {
    margin: 0;
    padding: 26px 0 0;
    background: transparent;
    border: 0;
    border-top: 1px solid #eeeeee;
    border-radius: 0;
    box-shadow: none;
}
.payment-and-ledger .payments-panel h2 { font-size: 17px; }

/* O container padrão tem 1180px, o que daria ~556px por coluna — estreito
   demais pros dois grids (o de "Pagamento confirmado" tem 3 colunas fixas e o
   da parcela, 7). Então a página de edição com o painel ao lado ganha um
   container mais largo, e as duas colunas só aparecem quando há espaço real:
   abaixo de 1280px elas empilham e cada uma volta a ocupar a largura inteira. */
.container.has-payment-ledger { max-width: 1440px; }

/* A linha da parcela se adapta à largura disponível em vez de ter um número
   fixo de colunas: cabem quantos campos couberem com pelo menos 190px cada
   (3 colunas ao lado do "Pagamento confirmado", mais quando empilhado, 2 no
   celular). A Descrição sempre ocupa a linha inteira. */
.payment-and-ledger .payment-ledger-row {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    column-gap: 10px;
    row-gap: 8px;
}
.payment-and-ledger .payment-ledger-row > div:first-child { grid-column: 1 / -1; }
/* "Forma" ocupa duas colunas: os rótulos do select são longos ("PIX parcelado
   50%/50%") e numa coluna só o texto escolhido aparecia cortado. */
.payment-and-ledger .payment-ledger-row > div:nth-child(6) { grid-column: span 2; }
.payment-and-ledger .payment-ledger-row .expense-actions { justify-content: flex-start; }

@media (min-width: 1280px) {
    /* O formulário da reserva é limitado a 900px (linha de leitura confortável
       pra uma coluna só). Com o painel ao lado isso deixaria cada coluna com
       440px — então o teto sobe apenas enquanto elas estão lado a lado. */
    .has-payment-ledger .reservation-form { max-width: 1320px; }
    .has-payment-ledger .payment-and-ledger { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    /* Em meia largura, "Pagamento confirmado" passa de 3 pra 2 colunas —
       senão rótulos como "Método de pagamento *" quebram em duas linhas. */
    .has-payment-ledger .payment-and-ledger .payment-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 16px 14px;
    }
    .has-payment-ledger .payment-and-ledger .payment-grid > div:first-child { grid-column: auto; }
    .has-payment-ledger .payment-and-ledger .payment-ledger-generate .form-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 12px 10px;
    }
    /* Divisor sutil entre as duas colunas. */
    .has-payment-ledger .payment-and-ledger .payments-panel {
        padding-left: 24px;
        border-left: 1px solid #eeeeee;
    }
}

/* Drawer de reserva embutida — financeiro.php ("A receber no mês",
   "Recebimentos no período", "Check-ins do mês"): abre a própria reserva
   num painel lateral pra revisão rápida, sem sair da tela financeira. */
.finance-reservation-drawer { position: fixed; inset: 0; z-index: 500; }
.finance-reservation-drawer-backdrop { position: absolute; inset: 0; background: rgba(20,20,20,.42); }
.finance-reservation-drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(1040px, 100%);
    background: #fff;
    box-shadow: -18px 0 36px rgba(0,0,0,.14);
    display: flex;
    flex-direction: column;
    animation: financeDrawerIn .18s ease;
}
/* No desktop o drawer vira um cartão flutuante largo (mesmo formato do painel
   lateral da Agenda: 2/3 da tela, cantos arredondados, margem nas bordas). A
   largura mínima de 940px é o que garante que a reserva abra nas DUAS colunas
   por dentro do iframe — abaixo de 900px o .reservation-columns colapsa pra
   coluna única e o conteúdo fica espremido. */
@media (min-width: 1121px) {
    .finance-reservation-drawer-panel {
        top: 20px;
        right: 20px;
        bottom: 20px;
        width: min(66.6667vw, calc(100% - 40px));
        min-width: 940px;
        border-radius: var(--radius);
        box-shadow: 0 16px 48px rgba(0,0,0,.22);
        overflow: hidden;
    }
}
@keyframes financeDrawerIn { from { transform: translateX(24px); opacity: .4; } to { transform: translateX(0); opacity: 1; } }
/* Fica à DIREITA, igual ao X do painel da Agenda: é desse lado que o
   .reservation-embed-shell .page-head reserva espaço (padding-right: 68px).
   Na esquerda ele cobria o nome do hóspede no topo da reserva. */
.finance-reservation-drawer-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,.16);
    display: grid;
    place-items: center;
    cursor: pointer;
}
.finance-reservation-drawer-frame { flex: 1; width: 100%; height: 100%; border: 0; }
body.has-reservation-drawer { overflow: hidden; }
@media (max-width: 760px) {
    .finance-reservation-drawer-panel { width: 100%; }
}

/* ---- Gestão de limpeza + avaliações (v18.19.128) ---- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.small-muted { font-size: 13px; margin: 4px 0 10px; }
/* Estrelas de 1 a 5: radios em ordem 5→1 com row-reverse, assim o
   seletor "~" pinta a estrela escolhida e todas à esquerda dela. */
.star-field, .choice-field { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
.star-field legend, .choice-field legend { padding: 0; margin-bottom: 4px; font-weight: 700; font-size: 14px; color: var(--ink); }
.star-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { margin: 0; padding: 2px 3px; font-size: 32px; line-height: 1; color: #d9d9d9; cursor: pointer; transition: color .12s ease, transform .12s ease; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: #f5a623; }
.star-input input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.star-input label:active { transform: scale(.92); }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice-row label { display: inline-flex; align-items: center; gap: 7px; margin: 0; padding: 9px 13px; border: 1px solid #e3e3e3; border-radius: 999px; font-weight: 600; font-size: 14px; cursor: pointer; }
.choice-row label:has(input:checked) { border-color: var(--accent); background: #e5f2ff; color: var(--accent-dark); }
.choice-row input { width: auto; margin: 0; accent-color: var(--accent); }
.stars-display { color: #f5a623; letter-spacing: 1px; font-size: 15px; white-space: nowrap; }
.stars-display .stars-off { color: #dcdcdc; }
.cleaning-status-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 12px 0; padding: 10px 12px; border: 1px solid #ececec; border-radius: 12px; background: #fafafa; font-size: 13px; color: #555; }
.cleaning-status-bar #cleaningStatusText { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cleaning-status-bar form { margin: 0; }
.tab-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: 4px; padding: 0 5px; border-radius: 999px; background: #ffedf0; color: #a71d35; font-size: 11px; font-weight: 800; }
.eval-summary { display: grid; gap: 6px; margin: 8px 0 4px; }
.eval-summary > div { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; }
.eval-summary > div span:first-child { color: #555; }
.eval-summary p { margin: 4px 0 0; padding: 8px 10px; border-radius: 8px; background: #f6f6f6; font-size: 13px; }
.cleaning-completed-extra h3 { margin: 16px 0 6px; font-size: 14px; }
.incident-mini { padding: 10px 0; border-bottom: 1px solid #eee; }
.incident-mini:last-child { border-bottom: 0; }
.incident-mini p { margin: 6px 0 4px; font-size: 14px; }
.incident-mini small { color: #777; }
.incident-form-grid { margin-top: 8px; }
.incidents-panel { border-left: 4px solid #e0485f; }
.incident-list { display: grid; }
.incident-row { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: start; gap: 12px; padding: 12px 0; border-bottom: 1px solid #eee; }
.incident-row:last-child { border-bottom: 0; }
.incident-info strong { display: block; }
.incident-info p { margin: 4px 0; font-size: 14px; }
.incident-info small { color: #777; }
.incident-resolve { display: flex; gap: 8px; align-items: center; margin: 0; }
.incident-resolve input { width: 210px; }
@media (max-width: 680px) {
  .incident-row { grid-template-columns: 1fr; }
  .incident-resolve { flex-direction: column; align-items: stretch; }
  .incident-resolve input { width: 100%; }
}

/* Página pública de avaliação da estadia (avaliacao.php) */
.review-shell { max-width: 620px; margin: 0 auto; }
.review-shell .panel { margin-top: 18px; }
.review-shell h1 { margin: 6px 0 8px; font-size: 28px; letter-spacing: -.4px; }
.review-favorites { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.review-favorites label { margin: 0; }
.review-thanks { text-align: center; padding: 34px 20px; }
.review-thanks .stars-display { font-size: 28px; }
@media (max-width: 680px) { .review-favorites { grid-template-columns: 1fr; } }

/* Avaliações na página da reserva */
.review-panel .eval-summary { margin-top: 4px; }
.review-panel h3 { margin: 14px 0 4px; font-size: 14px; }
.review-link-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
/* 4 abas no painel de limpeza: sem quebrar o contador e cabendo no celular */
.cleaning-tab-btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; }
@media (max-width: 680px) {
  .cleaning-drawer-tabs { gap: 2px; }
  .cleaning-tab-btn { padding: 9px 4px; font-size: 12px; min-width: 0; }
  .cleaning-tab-btn .tab-count { margin-left: 3px; min-width: 16px; height: 16px; padding: 0 4px; }
}

/* Comprovante já anexado, no detalhe da despesa (Financeiro) */
.receipt-preview { display: flex; align-items: center; gap: 14px; margin: 6px 0 10px; padding: 10px; border: 1px solid #e6e6e6; border-radius: 12px; background: #fafafa; }
.receipt-preview img { display: block; width: 84px; height: 84px; object-fit: cover; border-radius: 8px; background: #eee; }
.receipt-preview-file { display: inline-flex; align-items: center; gap: 6px; padding: 10px 12px; border-radius: 8px; background: #fff; border: 1px solid #e6e6e6; color: var(--ink); font-weight: 700; font-size: 13px; }
.receipt-preview .text-link { display: inline-flex; align-items: center; gap: 6px; }
.receipt-preview .ui-icon { width: 16px; height: 16px; flex: 0 0 16px; }
.receipt-preview + input[type="file"] { margin-top: 2px; }
/* Botão "Excluir comprovante" dentro do preview — some quando não há
   comprovante (o preview inteiro fica hidden) e fica sempre por último. */
.receipt-preview { flex-wrap: wrap; }
.receipt-preview #expenseReceiptDelete, .receipt-preview button.icon-action { margin-left: auto; color: #b3263f; }

/* Área de arrastar-e-soltar do comprovante (financeiro.php, operacao.php).
   É um <label for="..."> em volta do <input type="file">: o clique já abre o
   seletor de arquivo nativamente, sem precisar de JS pra isso — o JS
   (ver app/functions.php > render()) só cuida do drag-and-drop em si. */
.drop-zone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; margin-top: 2px; padding: 18px 14px; border: 1.5px dashed #c7c7c7; border-radius: 12px; background: #fafafa; text-align: center; cursor: pointer; transition: background .15s, border-color .15s; }
.drop-zone:hover { background: #f2f2f2; border-color: #a8a8a8; }
.drop-zone.is-dragover { background: #eef5ff; border-color: var(--accent, #2f6fed); }
.drop-zone input[type="file"] { display: none; }
.drop-zone-text { color: var(--muted); font-size: 13px; line-height: 1.4; }
.drop-zone-text strong { color: var(--ink); }

/* Modal "Fornecedores" (financeiro.php): lista com renomear + ativar/desativar. */
.supplier-add-form { display: flex; gap: 8px; margin: 10px 0 14px; }
.supplier-add-form input { flex: 1; }
.supplier-list { display: flex; flex-direction: column; gap: 6px; max-height: 340px; overflow-y: auto; }
.supplier-row { display: flex; align-items: center; gap: 6px; padding: 4px; border-radius: 10px; }
.supplier-row form { display: flex; align-items: center; gap: 4px; }
.supplier-rename-form { flex: 1; }
.supplier-rename-form input { padding: 8px 10px; }
.supplier-row.is-inactive { opacity: .55; }
.supplier-row.is-inactive input { background: #f2f2f2; }

/* O orçamento é o conteúdo do drawer, não um segundo cartão dentro dele.
   Fieldsets e grids precisam poder encolher sem vazar pela lateral. */
.agenda-side-panel #quotePanel {
    box-sizing: border-box;
    overflow-anchor: none;
    width: 100%;
    min-width: 0;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    align-content: start;
}
.agenda-side-panel #quotePanel > *,
.agenda-side-panel #quotePanel .agenda-quote-form,
.agenda-side-panel #quotePanel .agenda-quote-result,
.agenda-side-panel #quotePanel fieldset,
.agenda-side-panel #quotePanel details {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
}
.agenda-side-panel #quotePanel .agenda-quote-form,
.agenda-side-panel #quotePanel .agenda-quote-result {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}
.agenda-side-panel #quotePanel .agenda-date-summary {
    min-width: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.agenda-side-panel #quotePanel .agenda-date-summary > div {
    min-width: 0;
}
.agenda-side-panel #quotePanel .agenda-date-summary strong {
    overflow-wrap: anywhere;
}
.agenda-side-panel #quotePanel.is-loading {
    opacity: 1;
    pointer-events: auto;
}
.agenda-side-panel #quotePanel.is-loading #quoteResult { position: relative; }
.agenda-side-panel #quotePanel.is-loading #quoteResult > * { visibility: hidden; }
.agenda-side-panel #quotePanel.is-loading #quoteResult::before {
    content: 'Atualizando orçamento…';
    position: absolute;
    inset: 0;
    display: grid;
    place-items: start center;
    padding-top: 24px;
    color: #696961;
    font-size: 13px;
}
.agenda-side-panel #quotePanel .agenda-quote-result.is-invalid {
    align-content: start;
}
.agenda-side-panel #quotePanel .agenda-quote-tabs button:disabled {
    opacity: .4;
    cursor: not-allowed;
}
.agenda-side-panel #quotePanel .price-breakdown > div,
.agenda-side-panel #quotePanel .payment-comparison > div {
    min-width: 0;
    flex-wrap: wrap;
}
.agenda-side-panel #quotePanel .price-breakdown strong,
.agenda-side-panel #quotePanel .payment-comparison strong {
    overflow-wrap: anywhere;
}
.agenda-side-panel #quotePanel .agenda-book-cta {
    position: sticky;
    right: auto;
    bottom: 0;
    width: 100%;
    max-width: none;
    margin: 0;
}
.agenda-side-panel #quotePanel .agenda-quote-result:has(.agenda-book-cta:not([hidden])) {
    padding-bottom: 0;
}
@media (min-width: 1121px) {
    .agenda-airbnb-shell.has-side-panel .agenda-side-panel:not(.is-full-mode):not(.is-detail-mode) {
        width: min(520px, calc(100vw - 40px)) !important;
        min-width: 0 !important;
    }
}

/* Calendário de datas do orçamento: componente próprio, integrado ao drawer. */
.agenda-side-panel #quotePanel .agenda-date-picker-anchor { position: relative; min-width: 0; }
.agenda-side-panel #quotePanel .agenda-quote-form { overflow: visible; }
.agenda-selection-hint {
    position: fixed;
    z-index: 220;
    right: 28px;
    bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: min(460px,calc(100vw - 32px));
    padding: 13px 17px;
    border-radius: 18px;
    background: #242424;
    color: #fff;
    box-shadow: 0 12px 32px rgba(0,0,0,.2);
    font-size: 13px;
    line-height: 1.35;
}
.agenda-selection-hint[hidden] { display: none !important; }
.agenda-selection-hint.is-error { background: #b72943; }
.agenda-selection-hint .ui-icon { flex: none; width: 19px; height: 19px; filter: brightness(0) invert(1); }
.agenda-side-panel #quotePanel .agenda-date-summary > div { padding: 0; }
.agenda-side-panel #quotePanel .agenda-date-trigger {
    position: relative;
    display: grid;
    gap: 4px;
    width: 100%;
    min-height: 76px;
    padding: 14px 42px 14px 16px;
    border: 0;
    border-radius: 0;
    background: #fff;
    color: #242424;
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.agenda-side-panel #quotePanel .agenda-date-trigger:hover,
.agenda-side-panel #quotePanel .agenda-date-trigger[aria-expanded="true"] { background: #f6f7f1; }
.agenda-side-panel #quotePanel .agenda-date-trigger:focus-visible { outline: 2px solid #596244; outline-offset: -3px; }
.agenda-side-panel #quotePanel .agenda-date-trigger span { font-size: 12px; }
.agenda-side-panel #quotePanel .agenda-date-trigger strong { font-size: 14px; font-weight: 650; }
.agenda-side-panel #quotePanel .agenda-date-trigger img { position: absolute; top: 50%; right: 14px; width: 18px; height: 18px; transform: translateY(-50%); }
.agenda-side-panel #quotePanel .agenda-inline-calendar {
    position: absolute;
    z-index: 30;
    top: calc(100% + 8px);
    left: 50%;
    width: min(100%, 350px);
    max-height: min(420px, calc(100dvh - 32px));
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(-50%);
    box-sizing: border-box;
    display: grid;
    gap: 10px;
    min-width: 0;
    padding: 14px;
    border: 0;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(30,30,25,.18), 0 0 0 1px rgba(0,0,0,.04);
}
.agenda-picker-heading { position: relative; display: flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 34px; text-align: center; }
.agenda-picker-heading > div { display: grid; gap: 4px; min-width: 0; }
.agenda-picker-heading strong { font-size: 16px; font-weight: 700; letter-spacing: -.025em; }
.agenda-picker-heading small { color: #74746f; font-size: 12px; }
.agenda-picker-heading .agenda-picker-prompt:focus { outline: none; }
.agenda-picker-close,
.agenda-picker-navigation button { display: grid; flex: none; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: #fff; cursor: pointer; }
.agenda-picker-close { position: absolute; top: 2px; right: 0; }
.agenda-picker-close:hover,
.agenda-picker-navigation button:hover:not(:disabled) { background: #f4f4f2; }
.agenda-picker-close img,
.agenda-picker-navigation img { width: 17px; height: 17px; }
.agenda-picker-navigation button[data-picker-nav="next"] img { transform: rotate(180deg); }
.agenda-picker-navigation button:disabled { opacity: .3; cursor: not-allowed; }
.agenda-picker-navigation { display: grid; grid-template-columns: 30px minmax(0,1fr) 30px; align-items: center; gap: 8px; }
.agenda-picker-navigation strong { font-size: 15px; font-weight: 650; text-align: center; text-transform: capitalize; }
.agenda-picker-weekdays,
.agenda-picker-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 4px; min-width: 0; }
.agenda-picker-weekdays span { color: #868680; font-size: 11px; font-weight: 600; text-align: center; }
.agenda-picker-day,
.agenda-picker-blank { display: grid; place-items: center; min-width: 0; width: 100%; aspect-ratio: 1; border: 0; border-radius: 50%; background: #fff; color: #18733f; font: inherit; font-size: 14px; font-weight: 600; }
.agenda-picker-day { cursor: pointer; transition: background .15s ease, transform .15s ease, box-shadow .15s ease; }
.agenda-picker-day:hover:not(:disabled):not(.is-start):not(.is-end) { background: #fff; transform: none; box-shadow: inset 0 0 0 1px #cbd3c5; }
.agenda-picker-day.is-occupied { background: #fff; color: #4f554f; }
.agenda-picker-day.is-turnover { box-shadow: none; }
.agenda-picker-day:disabled { cursor: not-allowed; opacity: .75; }
.agenda-picker-day.is-start,
.agenda-picker-day.is-end { background: #242424; color: #fff; opacity: 1; }
.agenda-picker-day.is-in-range { border-radius: 50%; background: #fff; color: #18733f; }
.agenda-picker-day.is-occupied:not(.is-start):not(.is-end):not(.is-past) { color: #4f554f; opacity: 1; }
.agenda-picker-day.is-past:not(.is-start):not(.is-end) { color: #bdc1ba; opacity: 1; }
.agenda-picker-day:focus-visible,
.agenda-picker-close:focus-visible,
.agenda-picker-navigation button:focus-visible { outline: 2px solid #596244; outline-offset: 2px; }
.agenda-picker-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 12px; padding-top: 10px; border-top: 1px solid #efefec; }
.agenda-picker-legend span { display: flex; align-items: center; gap: 6px; color: #696d64; font-size: 11px; }
.agenda-picker-legend i { display: block; width: 11px; height: 11px; border-radius: 50%; }
.agenda-picker-legend .is-free { background: #caebd0; }
.agenda-picker-legend .is-past { background: #d9dcd6; }
.agenda-picker-legend .is-busy { background: #4f554f; }
.agenda-picker-legend .is-selected { background: #242424; }
.agenda-picker-help { margin: -8px 0 0; color: #71736d; font-size: 11px; line-height: 1.5; text-align: center; }
.agenda-side-panel #quotePanel:has(#quoteDatePicker:not([hidden])) .agenda-book-cta { visibility: hidden; pointer-events: none; }
@media (max-width: 560px) {
    .agenda-selection-hint { right: 12px; bottom: 12px; left: 12px; max-width: none; }
    .agenda-side-panel #quotePanel .agenda-inline-calendar { gap: 10px; padding: 14px 10px; }
    .agenda-picker-day { font-size: 12px; }
}

/* Padrão de seleção de data em todos os formulários; a agenda principal não muda. */
html.custom-date-pickers-enabled body input[type="date"]:not(:disabled) {
    background-image: url('/icons/calendar.svg');
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 18px 18px;
    padding-right: 45px;
    cursor: pointer;
}
.custom-date-pickers-enabled input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0;
    pointer-events: none;
}
.cabanas-date-picker {
    position: fixed;
    z-index: 10000;
    display: grid;
    gap: 10px;
    box-sizing: border-box;
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 14px;
    border: 0;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(30,30,25,.18), 0 0 0 1px rgba(0,0,0,.04);
}
.cabanas-date-picker[hidden] { display: none !important; }
.cabanas-date-picker .agenda-picker-heading { min-height: 32px; }
.cabanas-date-picker .agenda-picker-heading strong { font-size: 15px; }
.cabanas-date-picker .agenda-picker-navigation strong { font-size: 14px; }
.cabanas-date-picker .agenda-picker-day { color: #444840; }
.cabanas-date-picker.has-availability .agenda-picker-day.is-available:not(.is-start):not(.is-end) { color: #18733f; }
.cabanas-date-picker.has-availability .agenda-picker-day.is-occupied:not(.is-start):not(.is-end):not(.is-past) { color: #4f554f; }
.cabanas-date-picker .agenda-picker-day:disabled:not(.is-start):not(.is-end):not(.is-past) { opacity: 1; }
.cabanas-date-picker .agenda-picker-day.is-past:not(.is-start):not(.is-end) { color: #bdc1ba; opacity: 1; }
.agenda-picker-day.has-holiday { position: relative; }
.agenda-picker-day .calendar-holiday-dot { position: absolute; bottom: 5%; left: 50%; width: 5px; height: 5px; border-radius: 50%; background: #19a44a; transform: translateX(-50%); }
.agenda-picker-day.is-start .calendar-holiday-dot,
.agenda-picker-day.is-end .calendar-holiday-dot { background: #65e28c; }
@media (max-width: 560px) {
    .cabanas-date-picker { padding: 12px; gap: 8px; }
}

/* Despesas: edição em um único painel lateral, sem modal dentro de modal. */
.finance-expense-drawer[hidden] { display: none !important; }
.finance-expense-drawer { position: fixed; inset: 0; z-index: 1200; display: flex; justify-content: flex-end; }
.finance-expense-backdrop { position: absolute; inset: 0; background: rgba(25,25,25,.42); backdrop-filter: blur(5px); }
.finance-expense-panel { position: relative; display: flex; flex-direction: column; width: min(650px,100%); height: 100dvh; min-height: 0; background: #fff; box-shadow: -18px 0 60px rgba(0,0,0,.16); }
.has-expense-drawer { overflow: hidden; }
.finance-expense-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 28px 32px 20px; border-bottom: 1px solid #eeeeea; }
.finance-expense-head h2 { margin: 7px 0 4px; font-size: clamp(25px,2.4vw,33px); }
.finance-expense-head .muted { margin: 0; font-size: 13px; line-height: 1.5; }
.finance-expense-close { display: grid; flex: none; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; background: #f5f5f3; cursor: pointer; }
.finance-expense-close .ui-icon { width: 19px; height: 19px; }
.finance-expense-form { display: flex; flex: 1; flex-direction: column; min-height: 0; }
.finance-expense-form [hidden] { display: none !important; }
.finance-expense-form > .form-grid { flex: 1; align-content: start; min-height: 0; overflow-y: auto; padding: 24px 32px 32px; }
.finance-expense-form label { margin-bottom: 7px; }
.finance-expense-form .field-help { display: block; margin-top: 6px; }
.finance-expense-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 32px; border-top: 1px solid #eeeeea; background: #fff; }
.finance-expense-form .drop-zone { display: block; margin: 0; }
.expense-file-list { display: grid; gap: 8px; margin-top: 10px; }
.expense-file-list > strong { color: #66665f; font-size: 12px; font-weight: 600; }
.expense-file-list:empty { display: none; }
.expense-file { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 6px; border-radius: 12px; background: #f6f6f4; color: #242424; font-size: 13px; }
.expense-file-view { display: flex; flex: 1; align-items: center; gap: 10px; min-width: 0; padding: 3px 5px; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.expense-file-view img { flex: none; width: 34px; height: 34px; border-radius: 6px; object-fit: cover; }
.expense-file-view span { overflow-wrap: anywhere; }
.expense-file-remove { display: grid; flex: none; place-items: center; width: 38px; height: 38px; padding: 9px; border: 0; border-radius: 50%; background: #fff; cursor: pointer; }
.expense-file-remove img { display: block; width: 19px; height: 19px; }
.expense-file-remove:hover { background: #ffe8ec; }
.expense-file-view:hover { color: #e3224d; }
.finance-expense-form .expense-file-error { color: #a7243e; font-weight: 600; }
.expense-receipts-inline { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.expense-receipts-inline button { display: inline-flex; align-items: center; gap: 5px; max-width: 180px; padding: 5px 9px; border: 0; border-radius: 999px; background: #f3f3f1; color: #353535; font: inherit; font-size: 11px; cursor: pointer; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.expense-receipts-inline button:hover { background: #eaeae6; }
.expense-receipts-inline button img { width: 13px; height: 13px; }
.expense-receipts-inline .ui-icon { flex: none; width: 13px; height: 13px; }
.expense-receipt-viewer[hidden] { display: none !important; }
.expense-receipt-viewer { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; padding: 24px; }
.expense-receipt-viewer-backdrop { position: absolute; inset: 0; background: rgba(20,20,20,.75); backdrop-filter: blur(6px); }
.expense-receipt-viewer-panel { position: relative; display: flex; flex-direction: column; width: min(1100px,100%); max-height: calc(100dvh - 48px); border-radius: 20px; background: #fff; box-shadow: 0 24px 80px rgba(0,0,0,.27); overflow: hidden; }
.expense-receipt-viewer-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 20px; border-bottom: 1px solid #eaeae6; }
.expense-receipt-viewer-head > div { display: grid; gap: 3px; min-width: 0; }
.expense-receipt-viewer-head strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.expense-receipt-viewer-head small { color: #777; }
.expense-receipt-viewer-close,.expense-receipt-viewer-nav { display: grid; flex: none; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; background: #f3f3f1; cursor: pointer; }
.expense-receipt-viewer-close .ui-icon,.expense-receipt-viewer-nav .ui-icon { width: 20px; height: 20px; }
.expense-receipt-viewer-nav.next .ui-icon { transform: rotate(180deg); }
.expense-receipt-viewer-nav[hidden] { visibility: hidden; }
.expense-receipt-viewer-stage { display: flex; align-items: center; gap: 12px; min-height: 0; padding: 16px; }
.expense-receipt-viewer-content { display: grid; flex: 1; place-items: center; min-width: 0; min-height: 0; }
.expense-receipt-viewer-content img { display: block; max-width: 100%; max-height: calc(100dvh - 170px); object-fit: contain; }
.expense-receipt-viewer-content iframe { width: 100%; height: calc(100dvh - 170px); border: 0; }
.has-expense-viewer { overflow: hidden; }
@media (max-width: 640px) { .expense-receipt-viewer { padding: 8px; } .expense-receipt-viewer-panel { max-height: calc(100dvh - 16px); border-radius: 14px; } .expense-receipt-viewer-stage { gap: 4px; padding: 8px; } .expense-receipt-viewer-nav { width: 34px; height: 34px; } .expense-receipt-viewer-content img { max-height: calc(100dvh - 145px); } .expense-receipt-viewer-content iframe { height: calc(100dvh - 145px); } }
.expense-history-indicator { display: block; margin-top: 3px; color: #5d654c; }
.expense-history { padding: 15px; border-radius: 14px; background: #f7f7f5; }
.expense-history > strong { display: block; margin-bottom: 7px; font-size: 13px; }
.expense-history p { margin: 6px 0; color: #686863; font-size: 12px; }
.reservation-feedback-panel { min-width: 0; }
.reservation-feedback-panel.feedback-edit { max-width: 900px; margin: 0 auto 18px; }
.reservation-feedback-panel .section-heading { align-items: center; }
.reservation-feedback-panel .section-heading > .ui-icon { width: 24px; height: 24px; flex: none; }
.reservation-feedback-group { padding: 16px 0; border-top: 1px solid #eee; }
.reservation-feedback-panel .section-heading + .reservation-feedback-group { padding-top: 8px; border-top: 0; }
.reservation-feedback-group:last-child { padding-bottom: 0; }
.reservation-feedback-group h3 { display: flex; align-items: center; gap: 9px; margin: 0 0 12px; font-size: 15px; line-height: 1.3; }
.reservation-feedback-group h3 .ui-icon { width: 20px; height: 20px; flex: none; }
.reservation-feedback-group h3 .status-pill { margin-left: auto; }
.reservation-feedback-ratings { display: grid; gap: 10px; }
.reservation-feedback-ratings > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; font-size: 13px; }
.reservation-feedback-ratings > div > span:first-child { min-width: 0; color: #666; }
.reservation-feedback-ratings .stars-display { font-size: 18px; letter-spacing: 1px; }
.reservation-feedback-on-time { margin: 13px 0 0; font-size: 13px; color: #666; }
.reservation-feedback-on-time strong { color: #222; }
.reservation-feedback-note { margin: 12px 0; padding: 12px 14px; border-radius: 12px; background: #f6f6f4; }
.reservation-feedback-note strong { font-size: 12px; }
.reservation-feedback-note p { margin: 5px 0 0; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.reservation-feedback-incidents .incident-mini { padding: 12px 0; }
.reservation-feedback-incidents .incident-mini > div { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.reservation-feedback-incidents .incident-mini p { overflow-wrap: anywhere; }
.reservation-feedback-resolution { padding: 9px 11px; border-radius: 10px; background: #f6f6f4; }
.cleaning-completed-extra:not([hidden]) { margin: 14px 0 18px; padding: 16px; border-radius: 16px; background: #f7f7f5; }
.cleaning-completed-extra > h3:first-child { margin-top: 0; }
.cleaning-private-review { margin-top: 16px; padding-top: 16px; border-top: 1px solid #e2e2dd; }
.cleaning-private-review h3 { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.cleaning-private-review h3 .status-pill { font-size: 10px; }
.cleaning-private-review .eval-summary { margin-top: 10px; }
.cleaning-private-review .eval-summary p { overflow-wrap: anywhere; }
@media (min-width: 720px) { .reservation-feedback-panel.feedback-edit .reservation-feedback-ratings { grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 28px; } }
@media (max-width: 640px) {
    .finance-expense-head { padding: 20px 20px 16px; }
    .finance-expense-form > .form-grid { grid-template-columns: 1fr; padding: 20px; gap: 16px; }
    .finance-expense-form .full { grid-column: auto; }
    .finance-expense-actions { padding: 12px 20px; }
    .finance-expense-actions .btn { flex: 1; }
}

/* No celular/tablet, o orçamento flutua sobre a agenda. O calendário permanece
   no lugar e somente o conteúdo do painel rola. */
@media (max-width: 1120px) {
    body.agenda-quote-open { overflow: hidden; }
    .agenda-airbnb-shell.has-side-panel .agenda-side-panel.is-quote-mode {
        position: fixed !important;
        inset: 0 !important;
        z-index: 1001;
        width: 100% !important;
        height: 100vh !important;
        height: 100dvh !important;
        min-height: 0 !important;
        margin: 0 !important;
        border: 0;
        border-radius: 0;
        background: #fff;
        box-shadow: none;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        transition: none;
    }
    .agenda-side-panel.is-quote-mode.is-switching { opacity: 1; transform: none; }
    .agenda-airbnb-shell.has-side-panel .agenda-side-panel.is-quote-mode .agenda-side-sticky {
        position: static;
        width: 100%;
        max-width: 600px;
        min-height: 0;
        height: auto;
        margin: 0 auto;
        padding: max(16px, env(safe-area-inset-top)) 20px calc(36px + env(safe-area-inset-bottom));
    }
    .agenda-side-panel.is-quote-mode .agenda-side-head { margin-bottom: 8px; }
    .agenda-side-panel.is-quote-mode .agenda-sidebar-close { display: grid !important; width: 44px; height: 44px; }
}

/* Períodos especiais usam a mesma linguagem leve dos painéis de preços. */
.special-period-modal > .muted { margin: 0 0 22px; line-height: 1.5; }
.special-period-modal .form-grid > [hidden] { display: none !important; }
.special-period-modal .special-split-check,
.special-period-modal .check-field.full { padding-top: 0; font-weight: 400; line-height: 1.4; }
.special-period-modal .check-field input { flex: none; margin: 0; }
.agenda-applied-special { display: grid; gap: 5px; padding: 13px 16px; border-radius: 14px; background: #f2f4ed; color: #343b29; font-size: 13px; }
.agenda-applied-special strong { font-size: 14px; }
.agenda-nightly-breakdown { padding: 12px 15px; border: 1px solid #e8e9e5; border-radius: 14px; background: #fff; font-size: 13px; }
.agenda-nightly-breakdown summary { cursor: pointer; font-weight: 600; }
.agenda-nightly-breakdown > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid #f0f0ed; }
.agenda-nightly-breakdown > div:first-of-type { margin-top: 10px; }
.agenda-nightly-breakdown > div span { min-width: 0; }
.agenda-nightly-breakdown > div small { display: block; margin-top: 2px; color: #6d7068; overflow-wrap: anywhere; }
.agenda-nightly-breakdown > div strong { flex: none; font-weight: 600; }

/* Ofertas e combos: os mesmos campos, pílulas e cartões das configurações. */
.offers-page .module-section { margin-bottom: 24px; }
.offers-page .section-heading { align-items: center; }
.offer-list-row { display: grid; grid-template-columns: minmax(0,1fr) auto auto 44px; align-items: center; gap: 16px; padding: 17px 0; border-bottom: 1px solid #ecece8; }
.offer-list-row > div { min-width: 0; display: grid; gap: 4px; }
.offer-list-row small, .offer-cap small { color: #73766f; line-height: 1.4; }
.offer-list-row .status-pill { border-radius: 999px; }
.offer-editor { margin-top: 24px; padding: 22px; border-radius: 22px; background: #f8f8f6; }
.offer-editor h3 { margin: 0 0 18px; }
.offer-editor .check-field { display: flex; align-items: center; gap: 10px; font-weight: 400; }
.offer-editor .check-field input { flex: none; margin: 0; }
.offer-combo-services { margin: 0; }
.offer-cap { display: flex; align-items: center; gap: 20px; padding-top: 22px; margin-top: 24px; border-top: 1px solid #ecece8; }
.offer-cap > div:first-of-type { display: grid; gap: 4px; flex: 1; }
.offer-cap .suffix-field { width: 105px; }
.quote-combos { display: grid; gap: 8px; margin: 14px 0; padding: 0; border: 0; }
.quote-combos legend { margin-bottom: 10px; font-weight: 600; }
.quote-combos label { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border: 1px solid #e8e9e5; border-radius: 16px; font-weight: 400; cursor: pointer; }
.quote-combos label:has(input:checked) { background: #f1f3ec; border-color: #586047; }
.quote-combos input { flex: none; margin: 0; }
.quote-combos label span { display: grid; gap: 2px; }
.quote-combos small { color: #73766f; }
.reservation-combo-picker { display: grid; gap: 8px; }
.reservation-combo-picker select { width: 100%; }
#offerPreview:not([hidden]) { padding: 14px 18px; border-radius: 14px; background: #f1f3ec; color: #384129; line-height: 1.5; }
.return-discount-choice:not([hidden]) { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-weight: 400; line-height: 1.45; }
.return-discount-choice input { flex: none; margin: 0; }
.return-discount-choice span { font-weight: 400; }
#offerPreview.needs-payment-review { background: #fff5ee; color: #7a3a1e; }
.booking-offer-summary { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.booking-offer-summary span { font-weight: 400; }
@media (max-width: 700px) { .offer-list-row { grid-template-columns: minmax(0,1fr) auto 40px; gap: 10px; } .offer-list-row .status-pill { grid-column: 1; justify-self: start; } .offer-cap { flex-wrap: wrap; } .offer-cap > div:first-of-type { flex-basis: 100%; } .offer-editor { padding: 16px; } }
