/* Cantinho da Mel · Reservas — Grupo Marcondes */
:root {
  --ink: #0F1733; --ink-2: #18224A; --ink-3: #2A3768;
  --honey: #E9A42B; --honey-2: #F2B53A; --honey-h: #DD951A; --honey-deep: #C98A12; --honey-d: #9A6408; --honey-bg: #FCEBC4;
  --honey-ink: #1A1203; --honey-ink-2: #3E2802; --honey-text: #5C3B04;
  --ground: #F6F2E8; --ground-2: #FBF8F1; --card: #FFFFFF; --line: #E6DFCE; --line-2: #F0EADC; --line-strong: #D8CFBA;
  --text: #0F1733; --muted: #5B6275; --muted-2: #6B7183; --soft: #444B5E; --faint: #8A90A0;
  --on-ink: #C9CFDF; --on-ink-2: #B9C0D4; --on-ink-3: #9AA3BC;
  --ok: #1E6B3A; --ok-bg: #E7F5EC; --bad: #A3261B; --bad-bg: #FDECEA; --bad-line: #EBC3BE; --warn: #7A4E05; --warn-bg: #FCEBC4;
  --shadow-1: 0 1px 2px rgba(15,23,51,.06), 0 8px 24px -12px rgba(15,23,51,.14);
  --info: #1F4E99; --info-bg: #E6EEFB;
  --block: #E7E9EE; --block-ink: #5E6476; --pause: #F1EADA; --pause-ink: #6E5F3A;
  --r: 16px; --r-lg: 24px;
  --font: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: Outfit, Inter, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--ground); font-size: 15px; line-height: 1.5; }
img { max-width: 100%; }
a { color: var(--ink); }
a:hover { color: var(--honey-d); }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.015em; margin: 0; line-height: 1.15; }
p { margin: 0; }
p, li, .small, .sub { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
.ic { flex: none; }
:focus-visible { outline: 3px solid var(--honey); outline-offset: 2px; border-radius: 6px; }

/* ---------- Botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 12px;
  border: 1px solid transparent; font: 600 15px var(--font); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn-primary { background: var(--honey); color: var(--honey-ink); }
.btn-primary:hover { background: var(--honey-h); color: var(--honey-ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); color: #fff; }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--line-strong); color: var(--ink); }
.btn-danger { background: var(--card); color: var(--bad); border-color: var(--bad-line); }
.btn-danger:hover { background: var(--bad-bg); color: var(--bad); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn[disabled] { background: var(--block); color: var(--faint); cursor: not-allowed; border-color: transparent; }
.linkbtn { background: none; border: 0; padding: 6px 0; font: 600 14px var(--font); color: var(--honey-2); cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.iconbtn { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }

/* ---------- Alertas e pílulas ---------- */
.alert { padding: 14px 16px; border-radius: 12px; margin-bottom: 18px; font-weight: 500; }
.alert-ok { background: var(--ok-bg); color: var(--ok); }
.alert-erro { background: var(--bad-bg); color: var(--bad); }
.alert-info { background: var(--info-bg); color: var(--info); }
.alert-aviso { background: var(--warn-bg); color: var(--warn); }
.pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.pill-ok { background: var(--ok-bg); color: var(--ok); }
.pill-bad { background: var(--bad-bg); color: var(--bad); }
.pill-warn { background: var(--warn-bg); color: var(--warn); }
.pill-info { background: var(--info-bg); color: var(--info); }
.pill-muted { background: var(--block); color: var(--block-ink); }
.pill-dark { background: var(--ink); color: #fff; }
.badge { margin-left: auto; background: var(--honey); color: var(--honey-ink); font-size: 12px; font-weight: 700; min-width: 22px; height: 22px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }

/* ---------- Cartões e grades ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow-1); }
.card + .card { margin-top: 20px; }
.card-h { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.card-h h2 { font-size: 20px; }
.card-dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.card-dark .muted { color: var(--on-ink-2); }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 16px; margin-bottom: 22px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 4px; box-shadow: var(--shadow-1); }
.kpi .lbl { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--muted-2); text-transform: uppercase; }
.kpi .val { font-family: var(--display); font-size: clamp(24px, 2.4vw, 30px); font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; }
.kpi .sub { font-size: 13px; color: var(--muted); }
.kpi.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.kpi.dark .lbl { color: var(--on-ink-2); }
.kpi.dark .sub { color: var(--honey-2); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.row-between { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.right { text-align: right; }
.mt { margin-top: 20px; }
.hr { height: 1px; background: var(--line-2); margin: 16px 0; border: 0; }
.money-pos { color: var(--ok); font-weight: 700; white-space: nowrap; }
.money-neg { color: var(--soft); font-weight: 600; white-space: nowrap; }
.empty { padding: 28px; text-align: center; color: var(--muted); border: 1.5px dashed var(--line); border-radius: var(--r); }
/* Dentro de um cartão, o vazio é só texto: nada de caixa dentro de caixa */
.card .empty { border: 0; border-radius: 0; padding: 12px 0 4px; text-align: left; }

/* ---------- Tabelas ---------- */
.table-wrap { overflow-x: auto; margin: 0 -4px; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); font-weight: 700; padding: 10px 12px; white-space: nowrap; }
table.t td { padding: 13px 12px; border-top: 1px solid var(--line-2); vertical-align: middle; }
table.t tr:hover td { background: var(--ground-2); }
table.t .num { text-align: right; white-space: nowrap; }

/* ---------- Formulários ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .lbl-strong { font-size: 14px; font-weight: 600; }
.field .hint { font-size: 13px; color: var(--muted); }
input[type=text], input[type=password], input[type=email], input[type=tel], input[type=number], input[type=date], input[type=url], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: #fff;
  font: 400 15px var(--font); color: var(--ink); }
textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--honey); box-shadow: 0 0 0 3px rgba(233,164,43,.25); }
.form-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }

/* ---------- Estrutura do app ---------- */
.shell { display: flex; min-height: 100vh; }
.side { width: 272px; flex: none; background: var(--ink); color: #fff; display: flex; flex-direction: column; padding: 22px 16px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; padding: 0 6px 18px; }
.brand:hover { color: #fff; }
.brand strong { display: block; font-family: var(--display); font-size: 17px; }
.brand small { display: block; color: var(--on-ink-3); font-size: 12px; }
.seal { width: 48px; height: 48px; border-radius: 50%; background: var(--ground-2); display: flex; align-items: center; justify-content: center; flex: none; }
.seal img { width: 44px; height: 44px; object-fit: contain; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--on-ink); text-decoration: none; font-weight: 500; font-size: 14px; }
.side-nav a:hover { background: var(--ink-2); color: #fff; }
.side-nav a.on { background: #fff; color: var(--ink); font-weight: 600; }
.side-label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); font-weight: 700; padding: 18px 12px 6px; }
.side-foot { margin-top: auto; padding-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.me { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; padding: 10px; background: var(--ink-2); border-radius: 14px; }
.me:hover { color: #fff; background: var(--ink-3); }
.me strong { display: block; font-size: 14px; }
.me small { display: block; font-size: 12px; color: var(--on-ink-3); }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--honey); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex: none; }
.side-foot form { padding: 0 10px; }
.side-partners { display: flex; align-items: center; gap: 10px; padding: 12px 10px 0; border-top: 1px solid var(--ink-3); color: var(--on-ink-3); }
.side-partners .lg-ferreira { width: 46px; }
.side-partners .lg-vectra { width: 110px; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 14px; padding: 22px 36px 6px; }
.topbar h1 { font-size: 30px; flex: 1; min-width: 0; }
.menu-btn { display: none; }
.saldo-chip { display: inline-flex; flex-direction: column; align-items: flex-end; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 7px 14px; line-height: 1.2; }
.saldo-chip span { font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--muted-2); text-transform: uppercase; }
.saldo-chip strong { font-family: var(--display); font-size: 18px; }
.content { padding: 20px 36px 40px; flex: 1; }
.app-foot { padding: 20px 36px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 13px; }

@media (max-width: 960px) {
  .side { position: fixed; z-index: 50; left: 0; top: 0; transform: translateX(-100%); transition: transform .2s ease, box-shadow .2s ease; }
  .side.open { transform: none; box-shadow: 20px 0 60px rgba(15,23,51,.35); }
  .menu-btn { display: inline-flex; }
  .topbar { padding: 16px 16px 4px; }
  .topbar h1 { font-size: 22px; }
  .content { padding: 14px 16px 32px; }
  .app-foot { padding: 18px 16px; }
  .card { padding: 18px; }
}
.scrim { position: fixed; inset: 0; background: rgba(15,23,51,.45); z-index: 40; }

/* ---------- Calendário ---------- */
.cal-wrap { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.cal-main { flex: 999 1 560px; min-width: 0; }
.cal-side { flex: 1 1 320px; min-width: 0; position: sticky; top: 16px; display: flex; flex-direction: column; gap: 16px; }
.month-tabs { display: flex; flex-wrap: wrap; gap: 6px; background: var(--card); border: 1px solid var(--line); padding: 5px; border-radius: 14px; }
.month-tabs a { padding: 9px 14px; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: 14px; color: var(--muted); }
.month-tabs a.on { background: var(--ink); color: #fff; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 10px; }
.cal-head h2 { font-size: 24px; }
.cal-dow, .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.cal-dow span { text-align: center; font-size: 12px; font-weight: 700; color: var(--muted-2); letter-spacing: .06em; padding-bottom: 4px; }
.cal-dow span.we { color: var(--honey-d); }
.day { position: relative; min-height: 70px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-weight: 600; font-size: 17px; user-select: none; }
.day small { font-size: 11px; font-weight: 600; }
.day input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.day.livre { background: #fff; border: 1px solid var(--line); cursor: pointer; }
.day.livre small { color: var(--muted); }
.day.livre.we small { color: var(--honey-d); }
.day.livre:hover { border-color: var(--honey); }
.day.livre:has(input:checked) { background: var(--honey); border-color: var(--honey-deep); color: var(--honey-ink); box-shadow: 0 6px 14px -6px rgba(201,138,18,.7); }
.day.livre:has(input:checked) small { color: var(--honey-ink-2); }
.day.livre:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 2px; }
.day.reservada { background: var(--ink); color: #fff; text-decoration: none; }
.day.reservada small { color: var(--honey-2); }
.day.reservada:hover { color: #fff; background: var(--ink-2); }
.day.bloqueada { background: var(--block); color: var(--block-ink); }
.day.pausa { background: var(--pause); color: var(--pause-ink); }
.day.fora, .day.passada { color: var(--faint); }
.day.passada { background: var(--ground-2); }
.day.vazio { visibility: hidden; }
.legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-2); font-size: 13px; color: var(--muted); }
.legend i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-right: 6px; }
.sel-list { max-height: 210px; overflow-y: auto; display: flex; flex-direction: column; }
.sel-list div { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--line-2); font-size: 14px; }
.total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; border-top: 1px solid var(--line-2); }
.total strong { font-family: var(--display); font-size: 28px; }
.bar { height: 8px; border-radius: 999px; background: var(--ink-3); overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--honey); border-radius: 999px; }
@media (max-width: 560px) { .day { min-height: 56px; font-size: 15px; } .day small { font-size: 12px; } .day .cur { display: none; } .cal-dow, .cal-grid { gap: 4px; } .cal-main { padding: 12px; } }

/* ---------- Reservar ---------- */
[hidden] { display: none !important; }
.res-top { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.legend .lg-livre { background: var(--card); border: 1px solid var(--line-strong); }
.legend .lg-sel { background: var(--honey); }
.legend .lg-res { background: var(--ink); }
.legend .lg-blq { background: var(--block); }
.legend .lg-pausa { background: var(--pause); }
.day.bloqueada { text-decoration: none; }
.sel-card h2 { font-size: 20px; }
.sel-list .stay { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line-2); }
.sel-list .stay > div { display: block; padding: 0; border: 0; min-width: 0; }
.stay strong { white-space: nowrap; }
.stay span { display: block; font-size: 13px; color: var(--muted); }
.we-warn { background: var(--honey-bg); color: var(--honey-text); border-radius: 12px; padding: 10px 12px; font-size: 13px; line-height: 1.45; }
.sel-break { gap: 6px; }
.total span { font-weight: 600; }
.sel-saldo { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.sel-saldo strong { font: 700 18px var(--display); white-space: nowrap; }
.sel-saldo .pos { color: var(--ok); }
.sel-saldo .neg { color: var(--bad); }
#over { margin: 0; }
.btn-tall { min-height: 52px; }
.sel-bar { display: none; }
/* Abaixo de ~1248px o resumo cai para baixo do calendário: a barra fixa leva total e botão junto */
@media (max-width: 1247px) {
  .sel-bar:not([hidden]) { display: flex; align-items: center; gap: 12px; position: sticky; bottom: 12px; z-index: 30;
    margin-top: 16px; padding: 12px 16px; background: var(--ink); color: #fff;
    border-radius: 18px; box-shadow: 0 -10px 30px -12px rgba(15,23,51,.45); }
  .sel-bar-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
  .sel-bar-txt strong { font: 700 20px var(--display); white-space: nowrap; }
  .sel-bar-txt span { font-size: 13px; color: var(--on-ink-2); text-wrap: pretty; }
  .sel-bar .btn { flex: none; }
  .sel-bar .btn[disabled] { background: var(--ink-3); color: var(--on-ink-2); }
}
@media (max-width: 960px) {
  .month-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
  .month-tabs a { flex: none; }
  .sel-bar:not([hidden]) { bottom: 0; margin: 16px -16px -32px; padding-bottom: calc(12px + env(safe-area-inset-bottom)); border-radius: 18px 18px 0 0; }
}

/* Dias bloqueados viram pedido; dia escolhido ganha marca além da cor */
.day.bloqueada small, .day.pausa small { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.day.bloqueada:hover, .day.pausa:hover { box-shadow: inset 0 0 0 1px var(--block-ink); }
.day.pausa { text-decoration: none; }
.day.pedindo { outline: 3px solid var(--honey); outline-offset: 2px; }
.day.livre:has(input:checked)::after { content: ""; position: absolute; top: 8px; right: 8px; width: 8px; height: 4px;
  border-left: 2px solid var(--honey-ink-2); border-bottom: 2px solid var(--honey-ink-2); transform: rotate(-45deg); }
.pedir-card { margin-bottom: 18px; border-color: var(--honey); scroll-margin-top: 16px; }
.pedir-card:focus { outline: none; }
.pedir-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.pedir-head h2 { font-size: 20px; margin-bottom: 4px; }
.pedir-head .iconbtn { flex: none; }
@media (max-width: 560px) { .day.livre:has(input:checked)::after { display: none; } }
.month-tabs .tab-n { display: inline-block; min-width: 20px; margin-left: 6px; padding: 1px 6px; border-radius: 999px; background: var(--honey); color: var(--honey-ink); font-size: 12px; line-height: 18px; text-align: center; }
.sel-head { display: flex; align-items: baseline; gap: 10px; }
.sel-head h2 { margin-right: auto; }
.sel-head .linkbtn { color: var(--honey-d); padding: 4px 0; text-decoration: underline; text-underline-offset: 3px; }
.stay span.nw, .sel-bar-txt span.nw { display: inline; white-space: nowrap; font-size: inherit; color: inherit; }
.sel-note { font-size: 12px; line-height: 1.45; color: var(--muted); margin-top: 2px; }
.explain svg { flex: none; }
#resumo { scroll-margin-top: 16px; }
@media (min-width: 721px) and (max-width: 1247px) {
  .cal-side { position: static; flex-basis: 100%; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: start; }
}
/* ---------- Tabelas no celular ----------
   O app.js marca cada célula com o nome da coluna (data-label). Abaixo de 640px a linha vira cartão:
   1ª coluna com nome em destaque, depois "rótulo · valor", campos (cama) na largura toda. Sem JS, a tabela só rola. */
@media (max-width: 640px) {
  .table-wrap:has(.t-stack) { overflow: visible; margin: 0; }
  table.t-stack, table.t-stack tbody { display: block; }
  table.t-stack thead { display: none; }
  table.t-stack tr { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 14px 0; border-top: 1px solid var(--line-2); }
  table.t-stack tbody tr:first-child { border-top: 0; padding-top: 4px; }
  table.t-stack tr:hover td { background: none; }
  table.t-stack td { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex: 1 1 100%; min-width: 0; padding: 0; border: 0; text-align: right; overflow-wrap: anywhere; }
  table.t-stack td::before { content: attr(data-label); flex: none; max-width: 45%; text-align: left; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted-2); }
  table.t-stack td.td-lead { display: block; flex: 1 1 0; text-align: left; font-size: 15px; }
  table.t-stack td.td-lead::before, table.t-stack td.td-bare::before, table.t-stack td.td-full::before { content: none; }
  table.t-stack td.td-bare { flex: 0 0 auto; width: auto !important; display: block; }
  table.t-stack td.td-bare:last-child:not(:first-child) { margin-left: auto; }
  table.t-stack td.td-full { display: block; text-align: left; }
  table.t-stack td.td-field { display: flex; flex-direction: column; align-items: stretch; gap: 6px; text-align: left; min-width: 0 !important; }
  table.t-stack td.td-field select, table.t-stack td.td-field input { width: 100%; min-height: 44px; }
  table.t-stack td .pill { white-space: nowrap; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpis > .kpi.dark:first-child, .kpis > .kpi:only-child { grid-column: 1 / -1; }
  /* Sem buraco na grade: o último que sobraria sozinho ocupa a linha toda */
  .kpis:has(> .kpi.dark:first-child) > .kpi:last-child:nth-child(even), .kpis:not(:has(> .kpi.dark:first-child)) > .kpi:last-child:nth-child(odd) { grid-column: 1 / -1; }
  table.t-stack td.td-empty { display: none; }
  .kpi { padding: 14px 16px; border-radius: 18px; }
  .kpi .val { font-size: 20px !important; }
  .kpi .sub { font-size: 12px; }
}
/* ---------- Quartos ---------- */
.rooms { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.room { border: 1px solid var(--line); border-radius: 18px; padding: 16px; background: #fff; }
.room h3 { font-size: 17px; display: flex; justify-content: space-between; align-items: baseline; }
.room h3 small { font: 500 12px var(--font); color: var(--muted); }
.bed { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px dashed var(--line-2); font-size: 14px; }
.bed:first-of-type { border-top: 0; }
.bed .who { font-weight: 600; text-align: right; }
.bed .free { color: var(--muted); font-weight: 500; }

/* ---------- Extrato ---------- */
.flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 0; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: #fff; box-shadow: var(--shadow-1); }
.flow > div { padding: 18px 20px; border-right: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 4px; }
.flow > div:last-child { border-right: 0; background: var(--ink); color: #fff; }
.flow .lbl { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); }
.flow > div:last-child .lbl { color: var(--honey-2); }
.flow .v { font-family: var(--display); font-size: clamp(19px, 2vw, 24px); font-weight: 700; white-space: nowrap; }
.explain { background: var(--honey-bg); color: var(--honey-text); border-radius: 18px; padding: 18px 20px; display: flex; gap: 14px; align-items: flex-start; }
.explain strong { display: block; font-size: 16px; margin-bottom: 2px; color: var(--honey-ink-2); }

/* ---------- Página pública ---------- */
.pub { background: var(--ground-2); }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }
.pub-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; }
.pub-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.pub-brand img { width: 60px; height: 60px; object-fit: contain; }
.pub-brand strong { display: block; font-family: var(--display); font-size: 19px; color: var(--ink); }
.pub-brand small { display: block; color: var(--muted); font-size: 12px; }
.pub-links { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; font-weight: 500; }
.pub-links a { text-decoration: none; }
.hero { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding: 40px 0 72px; }
.hero-txt { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero-seal { width: 140px; height: 140px; object-fit: contain; }
.eyebrow { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; background: var(--honey-bg); color: var(--warn); font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 999px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--honey-h); }
.hero h1 { font-size: clamp(38px, 5.4vw, 62px); line-height: 1.03; font-weight: 700; letter-spacing: -0.025em; }
.hero h1 em { font-style: normal; color: var(--honey-d); }
.lead { font-size: 18px; line-height: 1.6; color: var(--soft); max-width: 560px; }
.partner-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; padding-top: 22px; border-top: 1px solid var(--line); }
.partner-row span { font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--muted-2); }
.partner-row img { width: 170px; }
.hero-card { flex: 1 1 400px; min-width: 0; }
.mock { background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 26px; box-shadow: 0 30px 60px -30px rgba(15,23,51,.25); }
.mock .cal-grid .day { min-height: 46px; font-size: 15px; }
.mock-saldo { margin: -44px -10px 0 auto; width: max-content; position: relative; background: var(--ink); color: #fff; border-radius: 24px; padding: 18px 22px; box-shadow: 0 24px 50px -20px rgba(15,23,51,.55); }
.mock-saldo small { display: block; font-size: 12px; color: var(--on-ink-2); font-weight: 600; letter-spacing: .06em; }
.mock-saldo strong { display: block; font-family: var(--display); font-size: 30px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.stats div { background: #fff; padding: 24px 26px; }
.stats strong { display: block; font-family: var(--display); font-size: 32px; }
.stats span { color: var(--muted); font-size: 14px; }
.sec { padding: 96px 0 24px; }
.sec-k { font-size: 13px; font-weight: 700; letter-spacing: .12em; color: var(--honey-d); text-transform: uppercase; }
.sec h2 { font-size: clamp(30px, 3.6vw, 44px); margin: 0; }
.steps { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); margin-top: 36px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 30px; display: flex; flex-direction: column; gap: 12px; }
.step b { width: 46px; height: 46px; border-radius: 14px; background: var(--honey-bg); color: var(--warn); font: 800 20px var(--display); display: flex; align-items: center; justify-content: center; }
.step h3 { font-size: 21px; }
.step p { color: var(--soft); }
.prices { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.prices > div { flex: 1 1 280px; min-width: 0; }
.price { border-radius: 28px; padding: 34px; display: flex; flex-direction: column; gap: 8px; background: #fff; border: 1px solid var(--line); }
.price.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.price .k { font-weight: 600; color: var(--muted); }
.price.dark .k { color: var(--honey-2); }
.price .v { font: 800 clamp(40px, 4.6vw, 56px)/1.05 var(--display); letter-spacing: -0.03em; white-space: nowrap; }
.price .u { color: var(--muted); }
.price.dark .u { color: var(--on-ink-2); }
.gallery { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.gallery img { width: 100%; height: 220px; object-fit: cover; border-radius: 18px; }
.facade { display: block; width: 100%; height: clamp(260px, 34vw, 440px); object-fit: cover; object-position: 60% 50%; border-radius: 28px; box-shadow: 0 30px 60px -34px rgba(15,23,51,.45); }
.ph { min-height: 380px; border-radius: 28px; background: #EFE7D3; border: 2px dashed #D8C9A4; display: flex; align-items: center; justify-content: center; color: #7A6A44; font-weight: 600; text-align: center; padding: 20px; }
.roomlist { border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: #fff; }
.roomlist div { display: flex; justify-content: space-between; gap: 12px; padding: 15px 22px; border-top: 1px solid var(--line-2); }
.roomlist div:first-child { border-top: 0; }
.dark-sec { background: var(--ink); color: #fff; margin-top: 96px; }
.dark-sec .sec-k { color: var(--honey-2); }
.dark-sec p { color: var(--on-ink); }
.owner { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding: 88px 0 64px; }
.owner-logos { flex: 0 1 300px; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.owner-logos .div { display: flex; align-items: center; gap: 12px; width: 100%; font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--on-ink-3); }
.owner-logos .div::before, .owner-logos .div::after { content: ""; flex: 1; height: 1px; background: var(--ink-3); }
.person { display: inline-flex; align-items: center; gap: 14px; background: var(--ink-2); border-radius: 18px; padding: 14px 20px; }
.person b { display: block; }
.person small { color: var(--on-ink-2); }
.dev { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding: 56px 0 80px; border-top: 1px solid var(--ink-3); }
.dev img { width: 300px; }
.feat { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; flex: 1 1 360px; }
.feat div { background: var(--ink-2); border-radius: 18px; padding: 20px; }
.feat b { color: var(--honey-2); display: block; font-size: 14px; margin-bottom: 4px; }
.feat span { color: var(--on-ink); font-size: 14px; }
.pub-foot { border-top: 1px solid var(--ink-3); padding: 22px 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; color: var(--on-ink-3); font-size: 14px; }
.pub-foot a { color: var(--honey-2); }

/* ---------- Login ---------- */
.login { min-height: 100vh; display: flex; flex-wrap: wrap; }
.login-art { flex: 1 1 480px; background: linear-gradient(180deg, rgba(15,23,51,.88), rgba(15,23,51,.95)), url(../img/chacara-fachada.webp) center / cover var(--ink); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.login-art h1 { font-size: clamp(36px, 4vw, 50px); }
.login-art p { color: var(--on-ink); font-size: 17px; }
.login-seal { width: 160px; height: 160px; border-radius: 50%; background: var(--ground-2); display: flex; align-items: center; justify-content: center; }
.login-seal img { width: 142px; height: 142px; object-fit: contain; }
.login-credits { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; color: var(--on-ink-3); font-size: 13px; }
.login-credits .sep { width: 1px; height: 36px; background: var(--ink-3); }
.login-form { flex: 1 1 440px; display: flex; align-items: center; justify-content: center; padding: 48px 24px; background: var(--ground-2); }
.login-form form { width: 100%; max-width: 410px; display: flex; flex-direction: column; gap: 18px; }
@media (max-width: 640px) { .login-art { padding: 28px 20px; } .login-seal { width: 110px; height: 110px; } .login-seal img { width: 96px; height: 96px; } }

/* ---------- Impressão (relatório em PDF) ---------- */
.print-only { display: none; }
@media print {
  @page { margin: 14mm; }
  body { background: #fff; font-size: 12px; }
  .side, .topbar, .app-foot, .no-print, .alert { display: none !important; }
  .content { padding: 0; }
  .card, .kpi, .flow { border-color: #ccc; break-inside: avoid; box-shadow: none; }
  .sel-bar { display: none !important; }
  .print-only { display: block; }
  .kpi.dark, .flow > div:last-child, .card-dark { background: #fff !important; color: #000 !important; border: 1px solid #000; }
  a { color: #000; text-decoration: none; }
}
.report-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-bottom: 14px; border-bottom: 2px solid var(--ink); margin-bottom: 18px; }
.report-head img { height: 54px; }
