@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Identidade unificada: Poppins + paleta neutra. Acento AZUL na recepção;
   vermelho fica no Modo Cliente/Totem (totem-dark.css em body.cliente/.totem). */
:root {
  --sidebar-w: 210px;
  --bg: #F4F4F5;
  --surface: #FFFFFF;
  --sidebar: #18181B;
  --sidebar-muted: #71717A;
  --sidebar-text: #A1A1AA;
  --border: #E4E4E7;
  --text: #111111;
  --muted: #71717A;
  --blue: #3b82f6;        /* acento/links da RECEPÇÃO (azul) — vermelho fica só no Modo Cliente/Totem */
  --green: #16a34a;
  --red: #ef4444;
  --amber: #D97706;
  --r: 12px;
}

/* Trava o efeito "rubber-band" no celular: bounce elástico do iOS e o glow +
   pull-to-refresh do Android ao rolar além do topo/fim. A tela fica firme, com
   cara de app nativo. Sem efeito no desktop. (overflow-x já é tratado no
   totem/cliente; aqui só o eixo vertical.) */
html, body { overscroll-behavior: none; }

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  background: var(--bg);
  color: var(--text);
  display: block;
  min-height: 100vh;
}

/* ── TOPBAR ──────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px 28px;
  background: var(--surface); border-bottom: 1px solid var(--border);
}
.topbar .brand { font-size: 16px; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 10px; }
.brand-logo { height: 30px; width: auto; mix-blend-mode: multiply; }   /* logo pequeno no header */
.tb-right { display: flex; align-items: center; gap: 14px; }
.tb-status { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.tb-user { font-size: 12px; font-weight: 700; color: var(--text); }
/* modo totem: esconde tudo que é só da recepção */
body.totem .recep-only { display: none !important; }
body.totem .topbar { justify-content: center; }
/* tela de login (overlay) */
.login-screen { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #18181B, #000000); padding: 20px; }
.login-screen.hidden { display: none; }
/* MODO QR (check-in no celular do hóspede): nunca mostra o login da staff (evita o flash). */
body.qr-mode .login-screen { display: none !important; }
.login-card { background: #fff; border-radius: 16px; padding: 30px; width: 100%; max-width: 360px;
  box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.login-brand { font-size: 22px; font-weight: 800; color: var(--text); }
.login-logo { width: 150px; height: auto; display: block; margin: 0 auto 14px; mix-blend-mode: multiply; }   /* logo médio no login */
.login-sub { color: var(--muted); font-size: 14px; margin: 4px 0 18px; }
.login-err { color: var(--red, #ef4444); font-size: 13px; margin-top: 10px; min-height: 16px; text-align: center; }
.more-wrap { position: relative; }
.more-menu {
  display: none; position: absolute; right: 0; top: 38px; z-index: 200;
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,.12); min-width: 190px; padding: 6px;
}
.more-menu.open { display: block; }
.more-menu a {
  display: block; padding: 9px 12px; border-radius: 6px; font-size: 13px;
  color: var(--text); cursor: pointer; user-select: none;
}
.more-menu a:hover { background: var(--bg); }

/* ── SIDEBAR ─────────────────────────────────────────────── */
aside {
  width: var(--sidebar-w);
  background: var(--sidebar);
  min-height: 100vh;
  position: fixed;
  top: 0; left: 0;
  display: flex;
  flex-direction: column;
}

.sb-logo {
  padding: 20px 16px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.sb-logo .name { color: #FAFAFA; font-size: 15px; font-weight: 600; }
.sb-logo .sub  { color: var(--sidebar-text); font-size: 11px; margin-top: 3px; }

.sb-status {
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 11px;
  display: flex; align-items: center; gap: 6px;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); flex-shrink: 0; }
.dot.ok  { background: var(--green); }
.dot.err { background: var(--red); }
.sb-status span { color: var(--sidebar-text); }

nav { padding: 10px 8px; flex: 1; }
nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 6px;
  color: var(--sidebar-text); text-decoration: none;
  font-size: 13px; margin-bottom: 2px; cursor: pointer;
  transition: background .12s, color .12s; user-select: none;
}
nav a:hover  { background: rgba(255,255,255,0.06); color: #D4D4D8; }
nav a.active { background: rgba(255,255,255,0.1);  color: #FAFAFA; }
nav a .ico   { font-size: 15px; width: 20px; text-align: center; }

.sb-footer {
  padding: 12px 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 11px;
}
.sb-footer strong { color: #A1A1AA; display: block; margin-bottom: 2px; }
.sb-footer span   { color: #52525B; }

/* ── MAIN ────────────────────────────────────────────────── */
main {
  margin: 0 auto; padding: 28px 32px; max-width: 1100px;
}

.page { display: none; max-width: 1080px; margin: 0 auto; }
.page.active { display: block; }

h1 { font-size: 20px; font-weight: 600; margin-bottom: 4px; }
.page-sub { color: var(--muted); font-size: 13px; margin-bottom: 24px; }

/* ── CARD ────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 20px; margin-bottom: 16px;
}
.card-title {
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .5px;
  color: var(--muted); margin-bottom: 16px;
}

/* ── FORM ────────────────────────────────────────────────── */
.row2  { display: grid; grid-template-columns: 1fr 1fr;     gap: 12px; margin-bottom: 12px; }
.row3  { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.row4  { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 12px; }
.row1  { display: grid; grid-template-columns: 1fr;         gap: 12px; margin-bottom: 12px; }
@media (max-width: 720px) { .row4 { grid-template-columns: 1fr 1fr; } .row3 { grid-template-columns: 1fr 1fr; } }
.fg { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fg label { font-size: 12px; font-weight: 500; color: var(--muted); }
.fg input, .fg select {
  padding: 8px 10px; border: 1px solid var(--border); border-radius: 6px;
  font-size: 13px; color: var(--text); background: var(--surface);
  font-family: inherit; transition: border .1s;
  width: 100%; min-width: 0;   /* encolhe no grid — evita scroll horizontal */
}
/* telefone: DDI (país) + número lado a lado */
.ge-phone-row { display: flex; gap: 8px; align-items: stretch; }
.ge-ddi-wrap { position: relative; flex: 0 0 auto; }
.ge-ddi-btn {
  display: flex; align-items: center; gap: 5px; height: 100%; min-height: 36px;
  padding: 8px 10px; border: 1px solid var(--border); border-radius: 6px;
  background: var(--surface); color: var(--text); font: inherit; cursor: pointer; white-space: nowrap;
}
.ge-ddi-caret { color: var(--muted); font-size: 11px; }
.ge-ddi-pop {
  position: absolute; top: calc(100% + 4px); left: 0; z-index: 60;
  width: 260px; max-width: 78vw; background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; box-shadow: 0 12px 30px rgba(0,0,0,.18); padding: 8px;
  display: flex; flex-direction: column; max-height: 300px;
}
.ge-ddi-search {
  width: 100%; padding: 8px 10px; border: 1px solid var(--border); border-radius: 6px;
  font: inherit; margin-bottom: 6px; background: var(--surface); color: var(--text);
}
.ge-ddi-items { overflow-y: auto; max-height: 240px; }
.ge-ddi-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%;
  padding: 9px 10px; border: none; background: none; border-radius: 6px; cursor: pointer;
  font: inherit; color: var(--text); text-align: left;
}
.ge-ddi-item:hover { background: var(--bg); }
.ge-ddi-item.on { background: rgba(229,62,62,.08); font-weight: 700; }
.ge-ddi-item-code { color: var(--muted); font-size: 12px; white-space: nowrap; }
.fg input:focus, .fg select:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59,130,246,.1);
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 6px;
  font-size: 13px; font-weight: 500; cursor: pointer;
  border: 1px solid transparent; font-family: inherit; transition: .1s;
}
.btn-primary { background: var(--blue);  color: #fff; border-color: var(--blue); }
.btn-primary:hover { background: #2563eb; }
.btn-success { background: var(--green); color: #fff; border-color: var(--green); }
.btn-success:hover { background: #059669; }
.btn-ghost {
  background: transparent; color: var(--muted);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--bg); color: var(--text); }
.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-danger { background: var(--red); color: #fff; border-color: var(--red); }
.btn-danger:hover { background: #dc2626; }

/* segmented control */
.seg { display: inline-flex; background: var(--bg); border: 1px solid var(--border); border-radius: 7px; padding: 3px; gap: 3px; }
.seg-btn {
  border: none; background: transparent; color: var(--muted);
  padding: 6px 16px; border-radius: 5px; font-size: 13px; font-weight: 500;
  cursor: pointer; font-family: inherit; transition: .12s;
}
.seg-btn.active { background: var(--surface); color: var(--blue); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-row { display: flex; gap: 8px; align-items: center; margin-top: 16px; flex-wrap: wrap; }

/* ── NOVA RESERVA (UX) ───────────────────────────────────── */
.card-title.step { display: flex; align-items: center; gap: 9px; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%; flex: 0 0 auto;
  background: var(--blue); color: #fff; font-size: 11px; font-weight: 700;
}
.nr-hint-box {
  display: flex; align-items: flex-start; gap: 8px;
  background: #FAFAFA; border: 1px solid var(--border); border-radius: 7px;
  padding: 9px 11px; margin-top: 10px; font-size: 12px; color: var(--muted); line-height: 1.45;
}
.nr-hint-box .ico { font-size: 13px; line-height: 1.3; flex: 0 0 auto; }
/* caixa de prévia do valor (ex.: Editar reserva) — mesmo visual das caixas de info */
.re-preview-box {
  font-size: 13px; color: var(--text); line-height: 1.5;
  background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
  padding: 11px 13px; margin-top: 10px;
}
/* aviso discreto do PIX na maquininha (Débito › Scan › PIX) — usa tokens, serve
   recepção e totem sem poluir a tela */
.pix-hint {
  margin-top: 12px; font-size: 12px; line-height: 1.45; color: var(--muted);
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
  padding: 9px 12px; text-align: center;
}
.pix-hint b { color: var(--text); font-weight: 700; }
.input-prefix { position: relative; display: flex; align-items: center; }
.input-prefix .pfx {
  position: absolute; left: 11px; font-size: 13px; color: var(--muted);
  font-weight: 600; pointer-events: none;
}
.input-prefix input { padding-left: 30px !important; width: 100%; }
.nights-pill {
  display: inline-flex; align-items: center; gap: 5px;
  background: #eff6ff; color: var(--blue); border: 1px solid #bfdbfe;
  border-radius: 999px; padding: 4px 12px; font-size: 12px; font-weight: 700;
}
.nights-pill.bad { background: #fef2f2; color: var(--red); border-color: #fecaca; }
.nr-summary {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
  background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
  padding: 13px 16px; margin: 6px 0 16px;
}
.nr-summary .lab { font-size: 11px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); margin-bottom: 6px; }
.nr-summary .tot { font-size: 20px; font-weight: 800; color: var(--text); }
.btn-block { width: 100%; justify-content: center; padding: 12px; font-size: 14.5px; font-weight: 600; }

/* ── RESERVATION CARDS ───────────────────────────────────── */
.resv-list { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.resv-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 14px 18px;
  display: grid; grid-template-columns: 1fr auto;
  gap: 12px; align-items: center; transition: border .1s;
}
.resv-card:hover { border-color: var(--blue); }
.resv-name { font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.resv-meta { display: flex; gap: 14px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }

.badge {
  display: inline-flex; align-items: center;
  padding: 2px 8px; border-radius: 12px;
  font-size: 11px; font-weight: 500;
}
.b-reserved  { background: #eff6ff; color: #3b82f6; }
.b-duein     { background: #ecfdf5; color: #10b981; }
.b-inhouse   { background: #fef3c7; color: #d97706; }
.b-cancelled { background: #fef2f2; color: #ef4444; }
.b-out       { background: #FAFAFA; color: #A1A1AA; }
.b-default   { background: #F4F4F5; color: #71717A; }

/* ── RESERVAS (busca) ────────────────────────────────────── */
.rv-filters { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px 16px; }
@media (max-width: 1100px) { .rv-filters { grid-template-columns: repeat(2, 1fr); } }
.rv-count { font-size: 13px; color: var(--muted); margin: 18px 0 10px; }
.rv-pg { display: flex; justify-content: center; gap: 6px; padding: 16px; flex-wrap: wrap; }
.rv-pg button { min-width: 34px; height: 34px; padding: 0 9px; border: 1px solid var(--border); background: var(--surface); border-radius: 6px; font-size: 13px; cursor: pointer; color: var(--text); }
.rv-pg button:hover:not(:disabled):not(.gap) { border-color: var(--blue); }
.rv-pg button.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.rv-pg button:disabled { opacity: .4; cursor: default; }
.rv-pg .gap { border: none; background: none; cursor: default; }
.rv-revert { background: none; border: none; color: var(--red); cursor: pointer; font-size: 13px;
  padding: 2px 7px; border-radius: 6px; margin-left: 8px; opacity: .55; }
.rv-revert:hover { opacity: 1; background: #fef2f2; }
.revert-warn { background: #fff7ed; border: 2px solid #fdba74; border-radius: 12px; padding: 20px; text-align: center; color: #9a3412; }
.revert-warn .amt { display: inline-block; background: #b91c1c; color: #fff; font-weight: 800; font-size: 18px; padding: 4px 14px; border-radius: 10px; margin: 6px 0; }

/* ── RESULT BOX ──────────────────────────────────────────── */
.result-box {
  border-radius: var(--r); padding: 20px;
  margin-top: 16px; border: 1px solid;
}
.result-box.ok  { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.result-box.err { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.result-box.inf { background: #f0f9ff; border-color: #bae6fd; color: #075985; }
.result-title   { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.result-body    { font-size: 13px; line-height: 1.6; }
.result-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px; margin-top: 14px;
}
.ri { background: rgba(255,255,255,.6); border-radius: 6px; padding: 8px 12px; }
.ri .lbl { font-size: 11px; font-weight: 500; opacity: .7; margin-bottom: 2px; }
.ri .val { font-size: 15px; font-weight: 700; }

/* ── EMPTY STATE ─────────────────────────────────────────── */
.empty {
  text-align: center; padding: 40px 24px; color: var(--muted);
}
.empty .ico { font-size: 32px; margin-bottom: 10px; }
.empty p    { font-size: 13px; }

/* ── TABLE ───────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th {
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .5px; color: var(--muted);
  padding: 10px 12px; text-align: left;
  border-bottom: 1px solid var(--border);
}
td { padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: 13px; vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: #FAFAFA; }

/* ── TOAST ───────────────────────────────────────────────── */
#toasts {
  position: fixed; top: 18px; right: 20px;
  z-index: 999; display: flex; flex-direction: column; gap: 8px;
}
.toast {
  padding: 11px 16px; border-radius: var(--r);
  font-size: 13px; font-weight: 500; color: #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,.15);
  animation: pop .18s ease;
}
.toast.ok  { background: var(--green); }
.toast.err { background: var(--red); }
.toast.inf { background: var(--blue); }
@keyframes pop { from { transform: translateX(16px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ── SPINNER ─────────────────────────────────────────────── */
.spin {
  display: inline-block; width: 13px; height: 13px;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff; border-radius: 50%;
  animation: rot .6s linear infinite;
}
@keyframes rot { to { transform: rotate(360deg); } }

/* ── DEBUG LOG ───────────────────────────────────────────── */
.dc {
  border: 1px solid var(--border); border-radius: 6px;
  margin-bottom: 8px; overflow: hidden; background: var(--surface);
}
.dc-head {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px; cursor: pointer;
  border-left: 3px solid var(--border);
}
.dc-head:hover { background: var(--bg); }
.dc.ok  .dc-head { border-left-color: var(--green); }
.dc.err .dc-head { border-left-color: var(--red); }
.dc-method { font-weight: 700; font-size: 12px; min-width: 46px; }
.dc-method.GET    { color: var(--blue); }
.dc-method.POST   { color: var(--green); }
.dc-method.DELETE { color: var(--red); }
.dc-url  { flex: 1; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-stat { font-weight: 700; font-size: 12px; }
.dc-stat.s2 { color: var(--green); }
.dc-stat.s4, .dc-stat.s5 { color: var(--red); }
.dc-dur  { font-size: 11px; color: var(--muted); }
.dc-body {
  display: none; padding: 12px 14px;
  background: #FAFAFA; border-top: 1px solid var(--border);
}
.dc.open .dc-body { display: block; }
.dc-body h5 {
  font-size: 10px; text-transform: uppercase;
  letter-spacing: .5px; color: var(--muted);
  margin: 10px 0 4px;
}
.dc-body h5:first-child { margin-top: 0; }
.dc-body pre {
  font-size: 11px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 4px;
  padding: 8px; overflow: auto; max-height: 180px;
  white-space: pre-wrap; word-break: break-word;
  font-family: "JetBrains Mono", Menlo, Consolas, monospace;
  color: var(--text);
}

/* ── GUEST LINK + MODAL ──────────────────────────────────── */
.guest-link { color: var(--blue); cursor: pointer; font-weight: 500; }
.guest-link:hover { text-decoration: underline; }

.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  display: none; align-items: center; justify-content: center;
  z-index: 1000; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--surface); border-radius: 10px;
  max-width: 660px; width: 100%; max-height: 86vh; overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0,0,0,.3);
}
.modal-head {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 22px; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: var(--surface);
}
.modal-head h3 { font-size: 17px; font-weight: 600; }
.modal-close {
  margin-left: auto; cursor: pointer; border: none; background: var(--bg);
  width: 30px; height: 30px; border-radius: 6px; font-size: 17px; color: var(--muted);
}
.modal-close:hover { background: #E4E4E7; color: var(--text); }
.modal-body { padding: 18px 22px; }
.modal-section { margin-bottom: 20px; }
.modal-section h4 {
  font-size: 11px; text-transform: uppercase; letter-spacing: .5px;
  color: var(--muted); margin-bottom: 10px; padding-bottom: 5px;
  border-bottom: 1px dashed var(--border);
}
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 7px 14px; font-size: 13px; }
.kv .k { color: var(--muted); }
.kv .v { color: var(--text); font-weight: 500; word-break: break-word; }
.kv .v.empty { color: #D4D4D8; font-weight: 400; }

/* ── DETALHE DA RESERVA (modal de check-in) ──────────────── */
.modal-wide { max-width: 1040px !important; background: var(--bg) !important; }
.modal-wide .modal-head { border-bottom: none; background: transparent; padding: 10px 14px 0; }
.modal-wide .modal-body { padding: 6px 22px 22px; }
.rv-detail .card { padding: 18px 22px; margin-bottom: 16px; }
.rv-detail .card-head { display: flex; justify-content: space-between; align-items: center; font-size: 16px; font-weight: 600; margin-bottom: 16px; }
.person-badge { font-size: 14px; color: var(--blue); display: inline-flex; align-items: center; gap: 5px; font-weight: 600; }
.fld-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px 22px; }
@media (max-width: 820px) { .fld-grid { grid-template-columns: repeat(2, 1fr); } }
.fld .fld-k { font-size: 12px; color: var(--muted); margin-bottom: 3px; }
.fld .fld-v { font-size: 14px; color: var(--text); }
.fld .fld-v.empty { color: #D4D4D8; }
.fld-select { font-size: 14px; color: var(--text); border: 1px solid var(--border);
  border-radius: 6px; padding: 5px 8px; background: var(--surface); font-family: inherit;
  max-width: 220px; cursor: pointer; margin-top: -2px; }
.fld-select:focus { outline: none; border-color: var(--blue); }
.gm-guest-list { list-style: none; padding-left: 0; margin: 2px 0; }
.gm-guest-list li { padding: 6px 0; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.gm-num { color: var(--muted); font-weight: 600; min-width: 18px; }
.gm-icon { font-size: 15px; }
/* sinal de cadastro completo / incompleto */
.cad-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700;
  padding: 2px 9px; border-radius: 20px; white-space: nowrap; vertical-align: middle; }
.cad-badge.ok   { background: #dcfce7; color: #166534; }
.cad-badge.warn { background: #fef9c3; color: #854d0e; }
.cad-warn-box { background: #fef9c3; border: 1px solid #fde68a; color: #854d0e; border-radius: 10px;
  padding: 10px 12px; font-size: 13px; line-height: 1.45; }
/* aviso informativo (não bloqueia o fluxo) — ex.: acompanhante com cadastro incompleto */
.cad-note-box { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; border-radius: 10px;
  padding: 10px 12px; font-size: 13px; line-height: 1.45; }
/* tarja: menores vão à recepção (informativa, não bloqueia o check-in) */
.cl-minor-note { background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; border-radius: 10px;
  padding: 8px 12px; font-size: 12.5px; line-height: 1.4; text-align: center; margin-top: 10px; }
/* Cadastro amigável (SÓ no totem/cliente): pergunta conversacional + subtexto acolhedor.
   Na recepção fica o rótulo normal; nada é removido. */
.ge-ask, .ge-hint, .ge-welcome { display: none; }
:is(body.totem, body.cliente) #guest-edit-modal .ge-plain { display: none; }
:is(body.totem, body.cliente) #guest-edit-modal .ge-ask { display: block; font-weight: 600; }
:is(body.totem, body.cliente) #guest-edit-modal .ge-hint {
  display: block; font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.4;
}
:is(body.totem, body.cliente) #guest-edit-modal .ge-welcome {
  display: block; background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af;
  border-radius: 12px; padding: 12px 14px; font-size: 14px; line-height: 1.5; margin-bottom: 14px;
}
/* Cadastro CONVERSACIONAL (só no totem/cliente): uma pergunta por vez.
   A classe .ge-wizard só é adicionada no totem/cliente (geWizActive). A recepção
   nunca recebe a classe -> continua com o formulário completo numa tela só. */
#guest-edit-modal.ge-wizard .modal { max-width: 640px !important; }
#guest-edit-modal.ge-wizard .modal-body { max-width: 560px; margin: 0 auto; }
#guest-edit-modal.ge-wizard .ge-section { display: none; }          /* some os títulos de seção */
#guest-edit-modal.ge-wizard .row2,
#guest-edit-modal.ge-wizard .row3 { display: block; }               /* desfaz o grid: 1 campo por vez */
#guest-edit-modal.ge-wizard .fg { display: none; }
#guest-edit-modal.ge-wizard .fg.ge-wiz-on { display: block; animation: geWizIn .22s ease; }
#guest-edit-modal.ge-wizard .btn-row { display: none; }             /* esconde o "Salvar" da recepção */
#guest-edit-modal.ge-wizard .ge-ask { font-size: 20px; line-height: 1.35; }
#guest-edit-modal.ge-wizard .fg.ge-wiz-on input,
#guest-edit-modal.ge-wizard .fg.ge-wiz-on select {
  font-size: 17px; padding: 14px; margin-top: 10px; width: 100%; box-sizing: border-box;
}
@keyframes geWizIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.ge-wiz-progress { margin-bottom: 16px; }
.ge-wiz-count { font-size: 12px; color: var(--muted); font-weight: 600; margin-bottom: 6px; letter-spacing: .02em; }
.ge-wiz-bar { height: 6px; background: var(--border); border-radius: 999px; overflow: hidden; }
.ge-wiz-bar > span { display: block; height: 100%; width: 0; background: var(--blue); border-radius: 999px; transition: width .3s ease; }
#guest-edit-modal.ge-wizard #ge-missing { display: none !important; }   /* a conversa já guia */
.ge-wiz-helper { text-align: center; margin-top: 10px; }
.ge-wiz-nudge { color: var(--red, #dc2626); font-size: 13px; min-height: 18px; margin-top: 10px; text-align: center; }
.ge-wiz-nav { gap: 10px; justify-content: space-between; align-items: center; margin-top: 14px; }
.ge-wiz-nav .btn { flex: 1; padding: 14px; font-size: 15px; justify-content: center; }
.ge-wiz-nav #ge-wiz-back { flex: 0 0 auto; min-width: 104px; }
/* rodapé FIXO: o botão (Continuar / Tudo certo) fica sempre visível, sem precisar rolar
   até o fim — vale principalmente no passo de endereço, que é mais alto. */
#guest-edit-modal.ge-wizard #ge-wiz-nav {
  position: sticky; bottom: 0; z-index: 2; margin-top: 6px;
  padding: 12px 0 2px; background: var(--surface); border-top: 1px solid var(--border);
}
#guest-edit-modal.ge-wizard .ge-wiz-nudge { background: var(--surface); }
/* campo que só existe no cadastro conversacional (ex.: nome único) — oculto na recepção */
.ge-wiz-only { display: none; }
/* título de um passo AGRUPADO (ex.: Endereço) — mesmo peso visual da pergunta grande */
.ge-wiz-steptitle { font-size: 20px; font-weight: 600; color: var(--text); line-height: 1.35; margin: 2px 0 6px; }
.ge-wiz-stephint { font-size: 13px; color: var(--muted); line-height: 1.4; margin: 0 0 16px; }
/* passo AGRUPADO (endereço): mantém a identidade das outras telas — inputs grandes, só
   com um rótulo curto por campo (a pergunta vira o título do passo acima). */
#guest-edit-modal.ge-wizard.ge-wiz-grp .fg.ge-wiz-on .ge-ask { display: none; }
#guest-edit-modal.ge-wizard.ge-wiz-grp .fg.ge-wiz-on .ge-plain { display: block; font-weight: 600; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
#guest-edit-modal.ge-wizard.ge-wiz-grp .fg.ge-wiz-on .ge-hint { display: none; }
#guest-edit-modal.ge-wizard.ge-wiz-grp .fg.ge-wiz-on { margin-bottom: 0; }
/* modo EDIÇÃO do endereço: inputs compactos (ocupa menos espaço) */
#guest-edit-modal.ge-wizard.ge-wiz-grp .fg.ge-wiz-on input,
#guest-edit-modal.ge-wizard.ge-wiz-grp .fg.ge-wiz-on select { font-size: 14px; padding: 10px; margin-top: 2px; }
/* realce do campo que falta (ex.: número) na tela de endereço */
#guest-edit-modal.ge-wizard .ge-wiz-need { border-color: var(--blue) !important; box-shadow: 0 0 0 3px rgba(59,130,246,.15); }
/* resumo do endereço: perguntas (Número/Complemento) menores p/ não poluir */
#guest-edit-modal.ge-wizard.ge-wiz-addrmin .fg.ge-wiz-on .ge-ask { font-size: 15px; font-weight: 600; }
#guest-edit-modal.ge-wizard.ge-wiz-addrmin .fg.ge-wiz-on .ge-hint { font-size: 11px; }
/* cartão-resumo do endereço (modo recolhido: resumo + só o número) */
.ge-wiz-addr-summary { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; }
.ge-wiz-addr-summary .ge-addr-label { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; margin-bottom: 6px; }
.ge-wiz-addr-summary .ge-addr-l1 { font-size: 15px; font-weight: 600; color: var(--text); line-height: 1.3; }
.ge-wiz-addr-summary .ge-addr-l2, .ge-wiz-addr-summary .ge-addr-l3 { font-size: 13px; color: var(--muted); margin-top: 2px; line-height: 1.3; }
.ge-wiz-addr-edit { font-size: 13px; margin: -6px 0 14px; display: block; }
/* endereço em GRADE 2 colunas: reduz a altura do passo (menos scroll) e fica tão limpo
   quanto as telas de 1 pergunta. O espaçamento fica por conta do gap/row. */
#guest-edit-modal.ge-wizard.ge-wiz-grp .row2,
#guest-edit-modal.ge-wizard.ge-wiz-grp .row3 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }

/* lista de seleção "quem faz check-in" (modal dos sharers) */
.cl-pick-list { display: flex; flex-direction: column; gap: 8px; }
.cl-pick-row { display: flex; align-items: center; gap: 10px; cursor: pointer;
  border: 1.5px solid var(--border); border-radius: 12px; padding: 12px 14px;
  font-size: 15px; background: var(--surface); }
.cl-pick-row input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--blue); flex: 0 0 auto; }
.cl-pick-row:has(input:disabled) { cursor: default; }
/* botões de adicionar (destaque) */
.add-btn { display: inline-flex; align-items: center; gap: 7px; padding: 11px 18px; border: 1.5px dashed var(--blue);
  background: #eff6ff; color: var(--blue); border-radius: 11px; font-weight: 700; font-size: 14px; cursor: pointer;
  font-family: inherit; transition: .15s; }
.add-btn:hover { background: #dbeafe; box-shadow: 0 4px 12px rgba(59,130,246,.18); transform: translateY(-1px); }
.add-btn .pl { font-size: 17px; line-height: 1; }
.cci-section { font-size: 13px; font-weight: 700; color: var(--text); margin: 16px 0 4px; }
.cci-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.cci-row:last-of-type { border-bottom: 0; }
.cci-row input[type=checkbox] { width: 18px; height: 18px; cursor: pointer; }
.link-btn { background: none; border: none; color: var(--blue); cursor: pointer; font-size: 14px; padding: 0; font-weight: 500; }
.link-btn:hover { text-decoration: underline; }
.rv-actions { display: grid; grid-template-columns: 1fr 1fr 1.6fr; gap: 14px; }
@media (max-width: 640px) { .rv-actions { grid-template-columns: 1fr; } }
.rv-actions .btn { padding: 13px; font-size: 14px; justify-content: center; }
.ge-section { font-size: 14px; font-weight: 600; color: var(--text); margin: 18px 0 10px; }
.ge-section:first-child { margin-top: 4px; }

/* ficha do hóspede: aviso do que falta preencher + destaque nos campos vazios */
.ge-missing-banner {
  display: flex; align-items: center; gap: 8px;
  background: #fffbeb; border: 1px solid #fde68a; color: #b45309;
  border-radius: 7px; padding: 9px 12px; font-size: 13px; margin-bottom: 14px;
}
.fg input.field-missing, .fg select.field-missing {
  border-color: var(--amber); background: #fffbeb;
}

/* contador da sessão do Modo Cliente (canto inferior direito) */
/* Totem: oculta o badge "Sessão termina em" (a expiração/reset continua ativa) */
body.totem #cl-session-timer { display: none !important; }

#cl-session-timer {
  position: fixed; bottom: 18px; right: 18px; z-index: 2500;
  display: flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: 9px 16px;
  font-size: 13px; font-weight: 600; color: var(--text);
  box-shadow: 0 6px 20px rgba(0,0,0,.16);
}
#cl-session-timer b { font-variant-numeric: tabular-nums; color: var(--text); }
#cl-session-timer .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 0 rgba(16,185,129,.5); animation: clSessPulse 2s infinite;
}
@keyframes clSessPulse {
  0%   { box-shadow: 0 0 0 0 rgba(16,185,129,.5); }
  70%  { box-shadow: 0 0 0 7px rgba(16,185,129,0); }
  100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}
/* últimos segundos: fica vermelho e pulsa mais forte */
#cl-session-timer.low { border-color: #fecaca; background: #fef2f2; color: var(--red); }
#cl-session-timer.low b { color: var(--red); }
#cl-session-timer.low .dot { background: var(--red); animation: clSessPulseLow 1s infinite; }
@keyframes clSessPulseLow {
  0%   { box-shadow: 0 0 0 0 rgba(239,68,68,.6); }
  70%  { box-shadow: 0 0 0 8px rgba(239,68,68,0); }
  100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
}
#sign-pad { border: 1px dashed var(--border); border-radius: 8px; background: #fff;
  touch-action: none; width: 100%; max-width: 560px; height: 200px; display: block; cursor: crosshair; }

/* ── TELA DE BOAS-VINDAS (etapa 0) ── */
.cl-welcome { position: relative; display: flex; align-items: center; justify-content: center; min-height: 68vh; width: 100%; }
/* seletor discreto de idioma no canto da tela de boas-vindas (só bandeiras) */
.lang-switch { position: absolute; top: 8px; right: 8px; display: flex; gap: 6px; z-index: 5; }
.lang-switch-btn { padding: 3px; border: 2px solid transparent; border-radius: 7px; background: none;
  cursor: pointer; line-height: 0; opacity: .4; transition: opacity .12s, border-color .12s, transform .12s; }
.lang-switch-btn:hover { opacity: .85; }
.lang-switch-btn:active { transform: scale(.94); }
.lang-switch-btn.on { opacity: 1; border-color: var(--blue); }
.lang-switch-btn svg.flag { width: 28px; height: 19px; border-radius: 3px; display: block;
  box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
/* coluna flex: cada filho (logo, título, botões) SEMPRE na própria linha — evita os
   botões "Iniciar" e "Já fiz check-in" ficarem lado a lado quando o texto do idioma
   é curto o bastante p/ caber na mesma linha. */
.welcome-card { display: flex; flex-direction: column; align-items: center; text-align: center;
  max-width: 480px; padding: 10px; }
.welcome-ico { width: 104px; height: 104px; border-radius: 30px; margin: 0 auto 24px;
  background: linear-gradient(135deg, #3b82f6, #2563eb); color: #fff; display: flex; align-items: center;
  justify-content: center; box-shadow: 0 16px 44px rgba(59,130,246,.42); }
.welcome-logo { width: 230px; height: auto; display: block; margin: 0 auto 18px;
  mix-blend-mode: multiply; }   /* tira o fundo branco do PNG sobre o fundo claro */
.welcome-card h1 { font-size: 34px; font-weight: 800; margin: 0 0 8px; letter-spacing: -.5px; }
.welcome-card .ws { color: var(--muted); font-size: 16.5px; line-height: 1.5; margin: 0 0 30px; }
.welcome-btn { display: inline-flex; align-items: center; gap: 12px; background: var(--blue); color: #fff;
  border: none; font-family: inherit; font-size: 21px; font-weight: 800; padding: 20px 46px; border-radius: 18px;
  cursor: pointer; box-shadow: 0 12px 34px rgba(59,130,246,.42); transition: transform .12s;
  animation: wpulse 2.2s ease-in-out infinite; }
.welcome-btn:hover { transform: translateY(-2px); }
.welcome-btn:active { transform: scale(.98); }
.welcome-btn .ar { font-size: 26px; line-height: 1; }
@keyframes wpulse { 0%,100% { box-shadow: 0 12px 30px rgba(59,130,246,.34); } 50% { box-shadow: 0 14px 46px rgba(59,130,246,.62); } }
.welcome-hint { margin-top: 18px; color: var(--muted); font-size: 13px; }

/* Tela de escolha de idioma (1ª tela do totem) */
.lang-titles { color: var(--muted); font-size: 15px; line-height: 1.7; margin: 2px 0 24px; }
.lang-grid { display: grid; grid-template-columns: 1fr; gap: 14px; max-width: 400px; margin: 0 auto; }
.lang-opt { display: flex; align-items: center; gap: 16px; width: 100%; padding: 16px 20px; font: inherit;
  border: 2px solid var(--border); border-radius: 16px; background: var(--surface); color: var(--text);
  cursor: pointer; text-align: left; transition: transform .12s, border-color .12s, box-shadow .12s; }
.lang-opt:hover { border-color: var(--blue); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(2,6,23,.12); }
.lang-opt:active { transform: scale(.99); }
.lang-opt .lang-flag { display: inline-flex; line-height: 0; }
.lang-opt .lang-flag svg.flag { width: 42px; height: 29px; border-radius: 5px; display: block;
  box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.lang-opt .lang-name { display: block; font-size: 19px; font-weight: 800; }
.lang-opt .lang-sub { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.lang-opt .lang-arrow { font-size: 24px; color: var(--muted); margin-left: auto; }
/* botão discreto "gerar nova chave" na tela de boas-vindas */
/* opção "Já fiz check-in · Gerar chave": discreta (fonte pequena) porém SEMPRE em vermelho
   p/ destacar; o hover só reforça com um leve fundo vermelho. */
.kr-welcome-link { margin-top: 22px; display: inline-flex; align-items: center; gap: 8px; background: none;
  border: none; color: var(--red, #dc2626); font: inherit; font-size: 14px; cursor: pointer; padding: 9px 16px;
  border-radius: 10px; transition: background .12s; }
.kr-welcome-link:hover { color: var(--red, #dc2626); background: rgba(220,38,38,.08); }
.kr-welcome-link svg { width: 18px; height: 18px; }
/* voltar discreto para a tela inicial (na tela "Localize sua reserva") */
.cl-back-home { display: block; margin: 18px auto 0; background: none; border: none; color: var(--muted);
  font: inherit; font-size: 13px; cursor: pointer; padding: 6px 12px; border-radius: 8px; }
.cl-back-home:hover { color: var(--text); background: rgba(0,0,0,.04); }

/* botões arredondados e mais "touch" no Modo Cliente (e nos modais do cliente) */
#page-cliente .btn,
#cl-add-modal .btn, #cl-share-modal .btn, #cl-session-warn .btn {
  border-radius: 999px; font-weight: 700;
}
#page-cliente .btn { padding: 12px 26px; font-size: 14.5px; }
#page-cliente .btn-lg { padding: 16px 38px; font-size: 16px; }
#page-cliente .btn-sm { padding: 8px 18px; font-size: 13px; }
#page-cliente .btn-primary { box-shadow: 0 6px 16px rgba(59,130,246,.28); }
#page-cliente .btn-primary:hover { box-shadow: 0 8px 22px rgba(59,130,246,.4); transform: translateY(-1px); }
#page-cliente .add-btn { border-radius: 999px; padding: 12px 22px; }
#page-cliente .floor-opt { border-radius: 16px; }
#page-cliente .cap-opt { border-radius: 18px; }

/* ── WIZARD MODO CLIENTE ──────────────────────────────────── */
/* centraliza toda a coluna do wizard (contador, trilha e painel) */
#page-cliente.active { display: flex; flex-direction: column; align-items: center; }
#page-cliente .stepper { width: 100%; }
#page-cliente #cl-step { width: 100%; }   /* painéis internos centralizam via margin:auto */
.step-counter { display: inline-block; background: var(--blue); color: #fff; font-size: 13px;
  font-weight: 700; padding: 6px 16px; border-radius: 20px; margin-bottom: 20px; letter-spacing: .3px; }
.stepper { display: flex; align-items: flex-start; justify-content: space-between; margin: 0 0 28px; max-width: 720px; }
.step { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; }
.step .dot { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-weight: 800; font-size: 16px; background: #e5e9f0; color: #A1A1AA; transition: .25s; z-index: 1; }
.step .lbl { font-size: 12px; color: var(--muted); margin-top: 8px; font-weight: 600; max-width: 100px; line-height: 1.3; }
.step::before { content: ''; position: absolute; top: 20px; left: -50%; width: 100%; height: 4px;
  background: #e5e9f0; z-index: 0; border-radius: 2px; }
.step:first-child::before { display: none; }
.step.done::before, .step.active::before { background: var(--green); }
.step.done .dot { background: var(--green); color: #fff; }
.step.done .lbl { color: var(--green); }
.step.active .dot { background: linear-gradient(135deg, #3b82f6, #2563eb); color: #fff;
  box-shadow: 0 0 0 6px rgba(59,130,246,.20); transform: scale(1.12); animation: stepPulse 1.6s ease-in-out infinite; }
.step.active .lbl { color: var(--blue); font-weight: 800; }
@keyframes stepPulse { 0%,100% { box-shadow: 0 0 0 6px rgba(59,130,246,.18); } 50% { box-shadow: 0 0 0 12px rgba(59,130,246,.05); } }
/* Totem com 8 passos: compacta o stepper p/ caber sem quebrar (visual profissional). */
#page-cliente .stepper { max-width: 760px; }
#page-cliente .step .dot { width: 34px; height: 34px; font-size: 14px; }
#page-cliente .step .lbl { font-size: 10.5px; max-width: 72px; margin-top: 6px; }
#page-cliente .step::before { top: 16px; height: 3px; }
#page-cliente .step.active .dot { transform: scale(1.1); box-shadow: 0 0 0 5px rgba(59,130,246,.20); }
/* Barra de progresso ÚNICA (sem passos/esferas/títulos): só enche conforme avança, para
   não passar a impressão de "muita coisa" no check-in. */
.cl-progress { width: 100%; max-width: 760px; height: 7px; background: var(--border); border-radius: 999px; overflow: hidden; margin: 0 auto; }
.cl-progress-fill { height: 100%; width: 0; background: var(--green); border-radius: 999px; transition: width .45s cubic-bezier(.4,0,.2,1); }
.cl-panel { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 24px; max-width: 720px; }
.cl-panel h2 { font-size: 20px; font-weight: 700; margin: 0 0 4px; }
.cl-big { text-align: center; }
.cl-big .ico { font-size: 50px; line-height: 1; margin-bottom: 6px; }
.btn-lg { padding: 13px 24px; font-size: 15px; }
.floor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.floor-opt { padding: 16px 10px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface);
  cursor: pointer; font-size: 15px; font-weight: 700; color: var(--text); display: flex; flex-direction: column;
  align-items: center; gap: 3px; transition: .15s; font-family: inherit; }
.floor-opt small { font-weight: 400; color: var(--muted); font-size: 11px; }
.floor-opt:hover { border-color: var(--blue); box-shadow: 0 6px 18px rgba(0,0,0,.07); transform: translateY(-1px); }
.floor-opt.sel { border-color: var(--blue); background: #eff6ff; box-shadow: 0 0 0 1px var(--blue) inset; }
/* ── CAPTURA DOC/SELFIE (Regula) — visual de produto ── */
.cap-wrap { max-width: 440px; margin: 0 auto; }
.cap-head { text-align: center; margin-bottom: 16px; }
.cap-head h2 { font-size: 19px; font-weight: 700; margin: 0 0 4px; }
.cap-head p { color: var(--muted); font-size: 13px; line-height: 1.45; }
.cap-seg { display: flex; gap: 6px; justify-content: center; margin-bottom: 22px; }
.cap-seg i { width: 30px; height: 4px; border-radius: 2px; background: var(--border); transition: background .25s; }
.cap-seg i.on { background: var(--blue); }
.cap-stage { display: flex; flex-direction: column; align-items: center; }

.cap-view { position: relative; width: 100%; aspect-ratio: 4 / 3; background: #0b1220; border-radius: 16px;
  overflow: hidden; display: flex; align-items: center; justify-content: center; }
.cap-view.round { aspect-ratio: 1 / 1; max-width: 260px; border-radius: 50%; }
/* indicador da auto-captura da selfie (status + contagem) */
.cap-auto { text-align: center; min-height: 20px; margin: 10px 0 2px; font-size: 14px; font-weight: 600; color: var(--muted); }
.cap-auto.ok { color: var(--green, #16a34a); }
.cap-auto.counting { font-size: 26px; font-weight: 800; color: var(--blue); }
.cap-view video, .cap-view img { width: 100%; height: 100%; object-fit: cover; }
.cap-view.contain img { object-fit: contain; background: #0b1220; }
.cap-view .ph { color: #7c8aa0; font-size: 12.5px; display: flex; flex-direction: column; align-items: center;
  gap: 10px; text-align: center; padding: 0 16px; }

/* cantos de scanner (documento) */
.cap-frame { position: absolute; inset: 14px; pointer-events: none; }
.cap-frame::before, .cap-frame::after, .cap-frame i::before, .cap-frame i::after {
  content: ''; position: absolute; width: 26px; height: 26px; border: 2.5px solid rgba(255,255,255,.92); }
.cap-frame::before { top: 0; left: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 9px; }
.cap-frame::after  { top: 0; right: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 9px; }
.cap-frame i::before { bottom: 0; left: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 9px; }
.cap-frame i::after  { bottom: 0; right: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 9px; }
/* anel da selfie */
.cap-ring { position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 3px rgba(255,255,255,.9); pointer-events: none; }

/* ações + obturador */
.cap-actions { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 18px; min-height: 66px; }
.shutter { width: 64px; height: 64px; border-radius: 50%; border: none; background: var(--blue); cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px rgba(59,130,246,.38); transition: transform .12s; }
.shutter:hover { transform: scale(1.06); }
.shutter:active { transform: scale(.96); }
.shutter::after { content: ''; width: 52px; height: 52px; border-radius: 50%; border: 3px solid #fff; }
.cap-link { background: none; border: none; color: var(--muted); font-size: 12.5px; cursor: pointer; font-family: inherit; }
.cap-link:hover { color: var(--text); text-decoration: underline; }
.cap-subactions { display: flex; gap: 18px; margin-top: 6px; }
.cap-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 24px; }

/* opções documento (câmera x QR) */
.cap-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; }
.cap-opt { border: 1px solid var(--border); border-radius: 14px; padding: 22px 14px; background: var(--surface);
  cursor: pointer; text-align: center; transition: .15s; display: flex; flex-direction: column; align-items: center;
  gap: 10px; font-family: inherit; color: var(--text); }
.cap-opt:hover { border-color: var(--blue); box-shadow: 0 6px 18px rgba(0,0,0,.07); transform: translateY(-1px); }
.cap-opt .ic { width: 44px; height: 44px; border-radius: 13px; background: #eff6ff; color: var(--blue);
  display: flex; align-items: center; justify-content: center; }
.cap-opt b { font-size: 14px; font-weight: 600; }
.cap-opt small { color: var(--muted); font-size: 11.5px; }

/* resultado da validação */
.verify-card { border-radius: 14px; padding: 22px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.verify-card .vi { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.verify-card.ok  { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.verify-card.ok  .vi { background: #dcfce7; }
.verify-card.err { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.verify-card.err .vi { background: #fef3c7; }
.verify-card b { font-size: 16px; font-weight: 700; }
.verify-card .vsub { font-size: 12.5px; opacity: .85; }

/* ── refinamento dos demais passos do wizard ── */
.cap-ico { width: 54px; height: 54px; border-radius: 16px; background: #eff6ff; color: var(--blue);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.cl-summary { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 18px; }
.cl-chip { background: #FAFAFA; border: 1px solid var(--border); border-radius: 10px; padding: 7px 13px; font-size: 13px; }
.cl-chip span { color: var(--muted); margin-right: 4px; }
.cl-chip b { color: var(--text); font-weight: 700; }
/* assinatura */
.sign-wrap { position: relative; width: 100%; max-width: 480px; margin: 0 auto; }
.sign-wrap canvas { border: 1px solid var(--border); border-radius: 14px; background: #fff; touch-action: none;
  width: 100%; height: 200px; display: block; cursor: crosshair; }
.sign-base { position: absolute; left: 28px; right: 28px; bottom: 46px; border-bottom: 1.5px dashed #D4D4D8; pointer-events: none; }
.sign-hint { position: absolute; left: 0; right: 0; bottom: 24px; text-align: center; color: #D4D4D8;
  font-size: 12px; pointer-events: none; }
.sign-clear { position: absolute; top: 10px; right: 12px; background: none; border: none; color: var(--muted);
  font-size: 12px; cursor: pointer; font-family: inherit; }
.sign-clear:hover { color: var(--text); text-decoration: underline; }

/* ── LISTAS MINIMALISTAS (acompanhante / compartilhamento) ── */
.mini-list { display: flex; flex-direction: column; }
.mini-row { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 2px; border-bottom: 1px solid var(--border); font-size: 14px; }
.mini-row:last-child { border-bottom: none; }
.mini-name { font-weight: 500; color: var(--text); }
.mini-idx { color: var(--muted); font-weight: 600; font-size: 13px; margin-right: 2px; }
.mini-meta { font-size: 12px; color: var(--muted); margin-left: 8px; font-weight: 400; }
.mini-x { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 14px;
  padding: 4px 8px; border-radius: 6px; }
.mini-x:hover { background: var(--bg); color: var(--red); }
.mini-empty { font-size: 13px; color: var(--muted); padding: 8px 0; }
.mini-add { display: flex; gap: 8px; margin-top: 12px; }
.mini-add input { flex: 1; padding: 9px 11px; border: 1px solid var(--border); border-radius: 7px;
  font-size: 13px; font-family: inherit; color: var(--text); }
.mini-add input:focus { outline: none; border-color: var(--blue); }
.chip { font-size: 11px; padding: 1px 8px; border-radius: 10px; border: 1px solid var(--border);
  color: var(--muted); margin-left: 6px; }
.chip.green { color: var(--green); border-color: #a7f3d0; }
.chip.blue  { color: #2563eb; border-color: #bfdbfe; }
.card-head .link-btn { margin-left: auto; font-size: 13px; }
.card-sub { font-size: 12px; color: var(--muted); margin: -6px 0 10px; }

/* ── Checkinômetro (dashboard) ─────────────────────────────────────────────── */
.ck-top { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; justify-content: center; }
.ck-gauge { flex: 0 0 auto; }
.ck-side { flex: 1 1 240px; min-width: 220px; }
.ck-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ck-card { background: var(--surface, #fafafa); border: 1px solid var(--border); border-radius: 12px; padding: 14px 12px; text-align: center; }
.ck-card-v { font-size: 26px; font-weight: 800; line-height: 1; }
.ck-card-l { font-size: 12px; color: var(--muted); margin-top: 6px; font-weight: 600; }
.ck-note { margin-top: 14px; font-size: 12.5px; background: #fffbeb; border: 1px solid #fde68a; color: #b45309; padding: 10px 12px; border-radius: 10px; }
.ck-users-sub { font-size: 12px; color: var(--muted); margin: -2px 0 10px; }
.ck-user-tag { font-size: 10px; font-weight: 700; color: #16a34a; background: rgba(22,163,74,.12); padding: 1px 7px; border-radius: 999px; margin-left: 6px; vertical-align: middle; }
.ck-user-app .ck-user-name { color: #16a34a; }
.ck-user { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.ck-user:last-child { border-bottom: 0; }
.ck-user-name { flex: 0 0 200px; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: 13px; }
.ck-user-bar { flex: 1 1 auto; height: 12px; background: var(--border); border-radius: 999px; overflow: hidden; }
.ck-user-fill { height: 100%; background: linear-gradient(90deg, #3b82f6, #16a34a); border-radius: 999px; }
.ck-user-n { flex: 0 0 42px; text-align: right; font-weight: 800; font-size: 15px; }
@media (max-width: 520px) { .ck-cards { grid-template-columns: 1fr; } .ck-user-name { flex-basis: 120px; max-width: 120px; } }
.ck-backfill { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border); }
.ck-backfill .ck-bf-label { font-size: 12px; color: var(--muted); font-weight: 600; }
.ck-backfill input[type=date] { width: auto; }

/* serviço DEDICADO do painel: some o chrome de hotel único (modos, menu "Mais") —
   a tela é só o painel de TODOS os hotéis, sem contexto de um hotel específico. */
body.panorama-only .seg,
body.panorama-only .more-wrap { display: none !important; }

/* X discreto p/ remover o café da manhã adicionado (revisão) */
.cl-bf-x { border: none; background: transparent; color: #166534; font-size: 15px;
  cursor: pointer; opacity: .55; padding: 3px 7px; border-radius: 7px; line-height: 1; }
.cl-bf-x:hover { opacity: 1; background: rgba(22,101,52,.12); }

/* Operador (recepcionista): cadastro (documento+selfie) + liberação no totem */
.op-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 720px) { .op-grid { grid-template-columns: 1fr; } }
.op-card { padding: 16px; }
.op-card-h { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 12px; }
.op-card-ic { display: inline-flex; color: var(--blue, #2563eb); }
.op-view { width: 100%; aspect-ratio: 4/3; background: #0b0b0c; border-radius: 12px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.op-view.round { aspect-ratio: 1/1; max-width: 300px; margin: 0 auto; border-radius: 16px; }
.op-view video, .op-view img { width: 100%; height: 100%; object-fit: cover; display: block; }
.op-ph { color: #d4d4d8; font-size: 13px; text-align: center; padding: 20px; }
.op-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
/* status do operador logado */
.op-status { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--border); }
.op-status.ok { background: #f0fdf4; border-color: #bbf7d0; }
.op-status.pend { background: #fffbeb; border-color: #fde68a; }
.op-status-ic { font-size: 24px; line-height: 1; }
.op-status b { font-size: 15px; }
.op-status-sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
.op-save-row { display: flex; align-items: center; gap: 14px; margin-top: 18px; flex-wrap: wrap; }
.op-muted { color: var(--muted); font-size: 13px; }
/* cadastro em 2 etapas (CPF -> fotos) */
.op-wizard { margin-top: 16px; }
.op-step-badge { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px;
  border-radius: 50%; background: var(--blue, #2563eb); color: #fff; font-weight: 800; font-size: 14px; }
.op-step-badge.done { background: #16a34a; }
/* campo CPF do recepcionista */
.op-field { display: flex; flex-direction: column; gap: 6px; }
.op-label { font-size: 13px; font-weight: 700; color: var(--text); }
.op-cpf-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.op-input { max-width: 240px; padding: 11px 13px; font-size: 16px; letter-spacing: .5px;
  border: 1.5px solid var(--border); border-radius: 12px; background: var(--card, #fff); color: var(--text); }
.op-input:focus { outline: none; border-color: var(--blue, #2563eb); box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
.op-err { color: var(--red, #dc2626); font-size: 13px; }
.op-cpf-ok { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px;
  background: #f0fdf4; border: 1.5px solid #bbf7d0; flex-wrap: wrap; }
.op-cpf-ok > button { margin-left: auto; }
/* ── Classificação de Reservas Faturadas / GCO (recepção) ── */
.gco-muted { color: var(--muted); font-size: 13px; }
.gco-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.gco-label { font-size: 13px; font-weight: 700; color: var(--text); }
.gco-input { padding: 10px 12px; font-size: 15px; border: 1.5px solid var(--border); border-radius: 10px;
  background: var(--card, #fff); color: var(--text); }
.gco-input:focus { outline: none; border-color: var(--blue, #2563eb); box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
.gco-run { padding: 14px 16px; }
.gco-run-row { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.gco-run-sum { font-size: 14px; color: var(--text); margin-bottom: 6px; }
.gco-section { margin-top: 26px; }
.gco-section-h { display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 800; color: var(--text); margin-bottom: 10px; }
.gco-table th, .gco-table td { vertical-align: top; }
.gco-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.gco-on { background: #f0fdf4; color: #166534; border: 1.5px solid #bbf7d0; }
.gco-off { background: #f3f4f6; color: #6b7280; border: 1.5px solid #e5e7eb; }
.gco-auto { background: #eff6ff; color: #1e40af; border: 1.5px solid #bfdbfe; }
.gco-type { background: #eef2ff; color: #3730a3; border: 1.5px solid #c7d2fe; }
.gco-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.gco-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px;
  background: #eef2ff; color: #3730a3; border: 1.5px solid #c7d2fe; font-size: 13px; font-weight: 700; }
.gco-chip-x { border: none; background: none; color: inherit; cursor: pointer; font-size: 13px; line-height: 1; padding: 0; }
.gco-chip-sm { display: inline-block; padding: 2px 8px; border-radius: 999px; background: #eef2ff; color: #3730a3;
  font-size: 12px; font-weight: 700; margin: 0 2px 2px 0; }
.gco-warn { padding: 10px 14px; border-radius: 10px; background: #fffbeb; border: 1.5px solid #fde68a;
  color: #b45309; font-weight: 700; margin-bottom: 14px; }
.gco-log-row { padding: 8px 10px; border-bottom: 1px solid var(--border); font-size: 13px; }
.gco-results { border: 1.5px solid var(--border); border-radius: 10px; margin-top: 8px; overflow: hidden; }
.gco-res-row { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 12px; border-bottom: 1px solid var(--border); }
.gco-res-row:last-child { border-bottom: none; }
.gco-detail { padding: 10px 12px; margin: 8px 0; border-radius: 10px; background: #f0fdf4; border: 1.5px solid #bbf7d0; }
.gco-selected { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px; border-radius: 10px; background: #eef2ff; border: 1.5px solid #c7d2fe; }
.gco-quick-btn { padding: 5px 12px; border-radius: 999px; border: 1.5px solid var(--border);
  background: var(--card, #fff); color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer; }
.gco-quick-btn:hover { border-color: var(--blue, #2563eb); color: var(--blue, #2563eb); }
/* seções (cadastrados / auditoria) */
.op-section { margin-top: 26px; }
.op-section-h { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 10px; }
.op-count { display: inline-block; background: var(--border, #e2e8f0); color: var(--text); border-radius: 999px; padding: 1px 9px; font-size: 12px; margin-left: 6px; }
.op-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.op-table th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 6px 10px; border-bottom: 1px solid var(--border); }
.op-table td { padding: 9px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
/* QR de upload do documento */
.op-qr { display: flex; flex-direction: column; align-items: center; gap: 10px; background: #fff; width: 100%; height: 100%; justify-content: center; }
.op-qr img { width: 180px; height: 180px; }
.op-qr-cap { font-size: 12.5px; color: #475569; display: flex; align-items: center; gap: 8px; }
/* "chame o recepcionista" (tela de erro) + gatilho DISCRETO que habilita o botão */
.cap-op-hint { margin-top: 18px; font-size: 13.5px; color: var(--muted); }
.cap-op-wrap { margin-top: 8px; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 26px; }
.cap-op-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--border, #e2e8f0); opacity: .45; cursor: pointer; }
.cap-op-dot:hover { opacity: .9; }

/* Tela "Quarto atribuído" (totem, entre a escolha do andar e a assinatura da FNRH) */
.cl-room-big { margin: 8px 0 22px; padding: 28px 20px; border-radius: 18px;
  background: linear-gradient(135deg,#eef2ff,#f0fdf4); border: 1.5px solid #bbf7d0; }
.cl-room-big-num { font-size: 64px; font-weight: 800; color: #166534; letter-spacing: -1px; line-height: 1; }
.cl-room-big-floor { margin-top: 8px; font-size: 17px; font-weight: 600; color: var(--muted); }

/* abas do panorama (Velocímetros / Ao longo do tempo) */
.cka-tabs { display: flex; gap: 6px; margin-bottom: 14px; border-bottom: 1px solid var(--border); }
.cka-tab { appearance: none; background: none; border: 0; border-bottom: 2px solid transparent; padding: 9px 14px; font-size: 14px; font-weight: 700; color: var(--muted); cursor: pointer; margin-bottom: -1px; }
.cka-tab:hover { color: var(--text); }
.cka-tab.active { color: #2563eb; border-bottom-color: #2563eb; }

/* série temporal: legenda das linhas por hotel (topo, centralizada) */
.cks-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; margin: 0 0 8px; }
.cks-leg { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--text); }
.cks-dot { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }

/* série temporal: tooltip interativo no hover + guia vertical */
.cks-chartwrap { position: relative; }
.cks-guide { position: absolute; top: 0; bottom: 22px; width: 1px; background: var(--border); pointer-events: none; display: none; }
.cks-tip { position: absolute; display: none; pointer-events: none; z-index: 5; min-width: 150px; max-width: 220px;
  background: var(--surface, #fff); border: 1px solid var(--border); border-radius: 10px; padding: 9px 11px;
  box-shadow: 0 6px 20px rgba(0,0,0,.14); font-size: 12.5px; }
.cks-tip-day { font-weight: 800; color: var(--text); margin-bottom: 6px; }
.cks-tip-row { display: flex; align-items: center; gap: 7px; padding: 2px 0; }
.cks-tip-dot { width: 9px; height: 9px; border-radius: 2px; flex: 0 0 auto; }
.cks-tip-nm { color: var(--muted); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 92px; }
.cks-tip-v { margin-left: auto; color: var(--text); font-weight: 600; white-space: nowrap; }

/* panorama (rota /panorama): barra (data + atualizar) e grade de velocímetros */
.ck-all-bar { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.ck-all-bar .fg { margin: 0; }
.ck-all-bar input[type=date] { width: auto; }
.ck-updated { font-size: 12px; color: var(--muted); font-weight: 600; align-self: center; }
.cka-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px 12px; }
.cka-cell { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 6px 4px; }
.cka-name { font-size: 14px; font-weight: 700; color: var(--text); text-align: center; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cka-cell .ck-gauge { width: 100%; height: auto; max-width: 240px; }
.cka-cell.cka-down { opacity: .65; justify-content: center; min-height: 150px; }
.cka-off { font-size: 12.5px; color: var(--muted); font-weight: 600; text-align: center; }
.ck-bf-status { font-size: 12px; color: var(--muted); }

/* ── Dispositivos ──────────────────────────────────────────────────────────── */
.dv-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.dv-table th { text-align: left; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.dv-table td { padding: 8px 10px; border-bottom: 1px solid var(--border); }
.dv-table tr:last-child td { border-bottom: 0; }
.dv-actions { text-align: right; white-space: nowrap; }
.dv-src { font-size: 11px; color: var(--muted); background: var(--surface, #fafafa); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; margin-left: 4px; }
.dv-opt { font-size: 11px; color: var(--muted); }

/* ── Conferência de chegadas (recepção) ── */
.cf-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.cf-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--border); }
.cf-table td { padding: 9px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.cf-table tr.cf-row-ok td { background: #f0fdf4; }
.cf-comments { max-width: 260px; }
.cf-muted { font-size: 11px; color: var(--muted); }
.cf-ptype { font-size: 10px; color: var(--muted); border: 1px solid var(--border); border-radius: 6px; padding: 0 4px; margin-left: 2px; }
.cf-badge { display: inline-block; font-size: 11px; font-weight: 700; border-radius: 6px; padding: 2px 8px; }
.cf-badge.cf-gco { background: #dbeafe; color: #1e40af; }
.cf-badge.cf-oth { background: #f4f4f5; color: #52525b; }
.cf-tag { font-size: 12px; font-weight: 600; border-radius: 8px; padding: 5px 10px; border: 1px solid var(--border); cursor: pointer; white-space: nowrap; }
.cf-tag:disabled { opacity: .5; cursor: not-allowed; }
.cf-tag.cf-pend { background: var(--surface, #fff); color: var(--text); }
.cf-tag.cf-ok { background: #dcfce7; color: #166534; border-color: #bbf7d0; }

/* Conferência: checkbox por linha + estado "reconferir" */
.cf-check { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; font-size: 12px; font-weight: 600; color: var(--text); }
.cf-check input { width: 18px; height: 18px; accent-color: #16a34a; cursor: pointer; }
.cf-recheck { color: #b45309; font-weight: 700; }
.cf-table tr.cf-row-rec td { background: #fffbeb; }

/* Conferência: expandir comentários (linha de detalhe full-width) */
.cf-cmt-tog { background: none; border: none; color: #2563eb; font-size: 11px; font-weight: 600; cursor: pointer; padding: 0 2px; text-decoration: underline; white-space: nowrap; }
.cf-table tr.cf-detail > td { background: #f8fafc; border-bottom: 1px solid var(--border); padding: 0; }
.cf-detail-box { padding: 12px 16px; }
.cf-detail-h { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 8px; }
.cf-cmt-item { margin-bottom: 8px; line-height: 1.5; font-size: 13px; white-space: pre-wrap; word-break: break-word; }
.cf-cmt-item:last-child { margin-bottom: 0; }

/* Conferência: aviso explicativo sobre o Sim/Não (GCO) */
.cf-hint { margin: 10px 2px 14px; padding: 11px 14px; border-radius: 10px;
  background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; font-size: 13.5px; line-height: 1.5; }

/* Conferência: "O hóspede deve pagar?" (Sim/Não segmentado) */
.cf-pay { display: inline-flex; border: 1px solid var(--border); border-radius: 9px; overflow: hidden; }
.cf-pay-btn { border: none; background: var(--surface, #fff); color: var(--text); font-size: 14px; font-weight: 700; padding: 9px 22px; cursor: pointer; transition: background .12s, color .12s; }
.cf-pay-btn + .cf-pay-btn { border-left: 1px solid var(--border); }
.cf-pay-yes:hover { background: #f4f4f5; color: #3f3f46; }
.cf-pay-no:hover  { background: #dcfce7; color: #166534; }
.cf-pay-yes.on { background: #e4e4e7; color: #3f3f46; }
.cf-pay-no.on  { background: #16a34a; color: #fff; }   /* Não = faturado à empresa (GCO) -> verde */

/* Conferência: coluna Balance */
.cf-bal { white-space: nowrap; }
.cf-bal-badge { display: inline-block; font-size: 11px; font-weight: 700; border-radius: 6px; padding: 2px 8px; margin-bottom: 3px; }
.cf-bal-paid { background: #dcfce7; color: #166534; }
.cf-bal-part { background: #fef3c7; color: #92400e; }
.cf-bal-due  { background: #fee2e2; color: #991b1b; }
