/* Nauta HUB — design system v1 (clássico + moderno). Sem fontes externas (CSP). */
:root {
  --bg: #f8f5ef; --surface: #ffffff; --surface-2: #f2eee6;
  --text: #17242b; --muted: #667075; --border: #e6e0d4;
  --primary: #1d5c63; --primary-ink: #ffffff; --primary-soft: #dcebec;
  --gold: #b98440; --gold-soft: #f4e7d0;
  --danger: #b3372f; --danger-soft: #f8dedb; --ok: #2b7a52; --ok-soft: #dff1e7; --warn: #a8660b; --warn-soft: #fbecd2;
  --m-ponto: #1d5c63; --m-ponto-soft: #dcebec; --m-salao: #a94f67; --m-salao-soft: #f6e1e7; --m-gestao: #b98440; --m-gestao-soft: #f4e7d0;
  --radius: 14px; --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(23,36,43,.05), 0 8px 24px rgba(23,36,43,.05);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1619; --surface: #162126; --surface-2: #1c2a30; --text: #eef1ee; --muted: #9db0b3; --border: #263539;
    --primary: #5fb3ba; --primary-ink: #0b1a1d; --primary-soft: #1b3a3e; --gold: #d9a661; --gold-soft: #3a2f1c;
    --danger: #f08a82; --danger-soft: #3b1d1a; --ok: #5cc590; --ok-soft: #173326; --warn: #e6b05a; --warn-soft: #3a2c12;
    --m-ponto: #5fb3ba; --m-ponto-soft: #1b3a3e; --m-salao: #e48aa2; --m-salao-soft: #3b1f29; --m-gestao: #d9a661; --m-gestao-soft: #3a2f1c;
    --shadow: none;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--sans); min-height: 100vh; }
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(1.65rem, 3vw, 2.2rem); line-height: 1.15; margin: 0 0 .5rem; }
h2 { font-size: 1.3rem; margin: 0 0 .75rem; }
h3 { font-size: 1.08rem; margin: 0 0 .35rem; }
p { margin: 0 0 .75rem; }
a { color: var(--primary); }
code { background: var(--surface-2); padding: .1rem .35rem; border-radius: 6px; border: 1px solid var(--border); font-size: .9em; }
.muted { color: var(--muted); } .small { font-size: .875rem; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 700; color: var(--gold); margin: 0 0 .25rem; }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: 0 1.15rem;
  border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text);
  font: 600 .95rem var(--sans); text-align: center; text-decoration: none; cursor: pointer; transition: transform .12s, box-shadow .12s, background .12s; }
.btn:hover { transform: translateY(-1px); background: var(--surface-2); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.btn-primary:hover { background: var(--primary); box-shadow: 0 6px 16px rgba(29,92,99,.28); }
.btn-ghost { background: transparent; }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger-outline { color: var(--danger); border-color: var(--danger); background: transparent; }
.btn-block { display: flex; width: 100%; margin-top: .5rem; min-height: 52px; }
.actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1rem; }
.links { margin: 1.25rem 0 0; text-align: center; }

/* Campos */
label { display: block; font-weight: 600; font-size: .9rem; margin: 1rem 0 .35rem; }
label small { font-weight: 400; color: var(--muted); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel], select, textarea {
  width: 100%; min-height: 46px; padding: .55rem .9rem; font: inherit; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--primary-soft); border-color: var(--primary); }
.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; margin: 1rem 0; }
.check input { margin-top: .3rem; }
.captcha { margin: 1rem 0; min-height: 0; }

/* Cartões, avisos, etiquetas */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); }
.alert { padding: .8rem 1rem; border-radius: var(--radius-sm); margin: 0 0 1rem; border: 1px solid; }
.alert ul { margin: 0; padding-left: 1.1rem; }
.alert-error { color: var(--danger); border-color: var(--danger); background: var(--danger-soft); }
.alert-success { color: var(--ok); border-color: var(--ok); background: var(--ok-soft); }
.badge { display: inline-block; font-size: .75rem; font-weight: 600; padding: .12rem .6rem; border-radius: 999px; vertical-align: middle; border: 1px solid; }
.badge-ok { color: var(--ok); border-color: var(--ok); background: var(--ok-soft); }
.badge-warn { color: var(--warn); border-color: var(--warn); background: var(--warn-soft); }
.badge-off { color: var(--muted); border-color: var(--border); background: var(--surface-2); }
.block { margin: 2rem 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.list { display: grid; gap: .75rem; }
.row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.row .grow { flex: 1 1 260px; }
.module, .plan { display: flex; flex-direction: column; gap: .5rem; align-items: flex-start; }
.module { position: relative; overflow: hidden; transition: transform .15s, box-shadow .15s; --acc: var(--primary); --acc-soft: var(--primary-soft); }
.module:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(23,36,43,.1); }
.module::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--acc); }
.module .mod-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--acc-soft); color: var(--acc); display: grid; place-items: center; font-size: 1.3rem; }
.m-ponto { --acc: var(--m-ponto); --acc-soft: var(--m-ponto-soft); }
.m-salao { --acc: var(--m-salao); --acc-soft: var(--m-salao-soft); }
.m-gestao { --acc: var(--m-gestao); --acc-soft: var(--m-gestao-soft); }
.chips, .prices { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.chips li { background: var(--surface-2); border-radius: 999px; padding: .1rem .7rem; font-size: .85rem; }
.prices { flex-direction: column; gap: .15rem; }
.mods { list-style: none; margin: .75rem 0 0; padding: 0; border-top: 1px solid var(--border); }
.mods li { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; padding: .55rem 0; border-bottom: 1px solid var(--border); }
.mods li:last-child { border-bottom: 0; }
.mods li.is-off .mod-name { color: var(--muted); text-decoration: line-through; }
.link-danger { color: var(--danger); font-size: .9rem; }
.status-code { font-family: var(--serif); font-size: 3.5rem; font-weight: 600; margin: 0; color: var(--gold); }

/* Indicadores e tabelas (Console) */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; margin: 1rem 0 2rem; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem; display: flex; flex-direction: column; gap: .15rem; box-shadow: var(--shadow); }
.kpi-n { font-family: var(--serif); font-size: 1.9rem; font-weight: 600; line-height: 1.1; }
.kpi-l { font-weight: 600; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 1.5rem; }
.table { width: 100%; border-collapse: collapse; margin: 0 0 1.5rem; font-size: .95rem; }
.table th, .table td { text-align: left; padding: .6rem .6rem; border-bottom: 1px solid var(--border); }
.table thead th { color: var(--muted); font-weight: 700; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.steps { padding-left: 1.2rem; } .steps li { margin-bottom: .8rem; }
.secret { background: var(--surface-2); border: 1px dashed var(--border); border-radius: var(--radius-sm); padding: .6rem .8rem; margin: .5rem 0; font-size: 1.15rem; letter-spacing: .08em; word-break: break-all; }
.codes { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .5rem; }
.codes li { background: var(--surface-2); border-radius: var(--radius-sm); padding: .5rem .7rem; text-align: center; font-size: 1.05rem; letter-spacing: .06em; }

/* Logo */
.logo { display: flex; align-items: center; gap: .6rem; font-family: var(--serif); font-size: 1.35rem; font-weight: 700; color: var(--text); text-decoration: none; }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--primary); color: var(--primary-ink); display: grid; place-items: center; font-size: 1.1rem; }
.logo small { font-family: var(--sans); font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }

/* Aplicativo logado: barra lateral */
.app { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.side { background: var(--surface); border-right: 1px solid var(--border); padding: 1.25rem 1rem; display: flex; flex-direction: column; gap: 1.25rem; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side .logo { padding: 0 .5rem; }
.company { background: var(--surface-2); border-radius: var(--radius-sm); padding: .65rem .8rem; }
.company small { display: block; color: var(--muted); font-size: .72rem; }
.company b { font-family: var(--serif); }
.nav { display: flex; flex-direction: column; gap: .15rem; }
.nav small { color: var(--muted); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; padding: .6rem .8rem .25rem; }
.nav a { display: flex; align-items: center; gap: .7rem; padding: .62rem .8rem; border-radius: var(--radius-sm); color: var(--text); text-decoration: none; font-weight: 500; }
.nav a:hover { background: var(--surface-2); }
.nav a[aria-current=page] { background: var(--primary-soft); color: var(--primary); font-weight: 700; }
.ico { width: 20px; text-align: center; opacity: .85; }
.side-foot { margin-top: auto; font-size: .85rem; color: var(--muted); }
.side-foot form { margin: .35rem 0 0; }
.main { padding: 1.75rem clamp(1rem, 3vw, 2.5rem) 3rem; max-width: 1180px; width: 100%; }
.footer { color: var(--muted); font-size: .85rem; padding: 1.5rem 0 0; }
.tabbar { display: none; }
.console .side .logo-mark { background: var(--gold); }

/* Entrada (páginas sem login) */
.entry { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.entry-art { background: linear-gradient(160deg, #123f45, #1d5c63 55%, #2c7a80); color: #fff; padding: clamp(1.5rem, 4vw, 3.5rem); display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.entry-art::after { content: ""; position: absolute; width: 520px; height: 520px; right: -180px; bottom: -200px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); box-shadow: 0 0 0 60px rgba(255,255,255,.03), 0 0 0 120px rgba(255,255,255,.025); }
.entry-art .logo { color: #fff; } .entry-art .logo-mark { background: rgba(255,255,255,.16); }
.entry-art h2 { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.12; max-width: 14ch; margin: 0 0 .75rem; }
.entry-art p { opacity: .85; max-width: 38ch; }
.entry-art .eyebrow { color: #e9c98f; }
.entry-form { display: grid; place-items: center; padding: 2rem 1.25rem; }
.entry-box { width: 100%; max-width: 420px; }
.entry-box .card.auth { box-shadow: none; border: 0; background: transparent; padding: 0; max-width: none; margin: 0; }

@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .side { display: none; }
  .tabbar { display: flex; position: fixed; bottom: 0; left: 0; right: 0; background: var(--surface); border-top: 1px solid var(--border); padding: .3rem .25rem calc(.3rem + env(safe-area-inset-bottom)); z-index: 5; }
  .tabbar a { flex: 1; text-align: center; padding: .4rem .2rem; font-size: .72rem; color: var(--muted); text-decoration: none; font-weight: 600; }
  .tabbar a[aria-current=page] { color: var(--primary); }
  .tabbar .ico { display: block; font-size: 1.25rem; width: auto; }
  .main { padding-bottom: 6rem; }
  .entry { grid-template-columns: 1fr; } .entry-art { min-height: 200px; } .entry-art p, .entry-art .eyebrow { display: none; }
}
.company-logo { display: block; max-width: 100%; max-height: 64px; object-fit: contain; margin: 0 0 .5rem; }
.logo-preview { max-width: 240px; max-height: 120px; object-fit: contain; background: var(--surface-2, #f1ece4); border: 1px solid var(--border); border-radius: 12px; padding: .6rem; }
.topbar { display: none; }
@media (max-width: 900px) {
  .topbar { display: flex; align-items: center; gap: .65rem; padding: .6rem 1rem; background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 4; }
  .topbar img { max-height: 36px; max-width: 150px; object-fit: contain; }
  .topbar .logo-mark { flex: none; }
  .topbar b { font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (max-width: 560px) { .cols { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Sair na barra inferior (celular) */
.tab-out { flex: 1; margin: 0; }
.tab-out .btn { width: 100%; min-height: 0; border: 0; padding: .4rem .2rem; font-size: .72rem; color: var(--muted); border-radius: 0; background: transparent; display: block; }
.tab-out .ico { display: block; font-size: 1.25rem; width: auto; }

a.module { color: var(--text); text-decoration: none; }
.block-head { margin-bottom: 1.5rem; }

/* Console: páginas de gestão */
.head-row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-start; justify-content: space-between; margin-bottom: 1rem; }
.head-row .block-head { margin-bottom: 0; }
.form-narrow { max-width: 520px; }
.sub { margin: 1.25rem 0 .5rem; }
.actions form { margin: 0; }
details.more { margin-top: .75rem; }
details.more summary { cursor: pointer; color: var(--primary); font-weight: 600; }
.nav form { margin: 0; }
.nav .linklike { display: flex; align-items: center; gap: .7rem; width: 100%; padding: .62rem .8rem; border: 0; background: transparent; color: var(--text); font: inherit; font-weight: 500; border-radius: var(--radius-sm); cursor: pointer; text-align: left; }
.nav .linklike:hover { background: var(--surface-2); }

/* Ponto */
.acc { color: var(--acc, var(--gold)); }
.m-ponto { --acc: var(--m-ponto); --acc-soft: var(--m-ponto-soft); }
.subnav { display: flex; flex-wrap: wrap; gap: .25rem; margin: 0 0 1.25rem; border-bottom: 1px solid var(--border); }
.subnav a { padding: .6rem .9rem; color: var(--muted); text-decoration: none; font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.subnav a:hover { color: var(--text); }
.subnav a[aria-current=page] { color: var(--acc, var(--primary)); border-bottom-color: var(--acc, var(--primary)); }
.empty h2 { margin-bottom: .5rem; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--acc-soft, var(--primary-soft)); color: var(--acc, var(--primary)); display: inline-grid; place-items: center; font-weight: 700; flex: none; }
.marks { list-style: none; margin: .75rem 0 0; padding: 0; border-top: 1px solid var(--border); }
.marks li { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; padding: .5rem 0; border-bottom: 1px solid var(--border); }
.marks li:last-child { border-bottom: 0; }
.marks .time { font-variant-numeric: tabular-nums; font-weight: 700; min-width: 3.2rem; }
details.inline { margin: 0 0 0 auto; }
.inline-form { display: grid; gap: .25rem; max-width: 460px; }
.pair { display: flex; align-items: center; gap: .5rem; }
.pair input { width: 5.5rem; }
.dias { display: flex; flex-wrap: wrap; gap: .4rem; }
.check.dia { margin: 0; padding: .35rem .7rem; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); }
.pin-big { font-family: var(--serif); font-size: 3.5rem; letter-spacing: .35em; text-align: center; margin: 1rem 0; color: var(--acc, var(--primary)); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Quiosque (tela cheia, toque) */
.kiosk { display: grid; place-items: start center; padding: 1.5rem 1rem 3rem; }
.kiosk-box { width: 100%; max-width: 560px; text-align: center; }
.kiosk-box h1 { font-size: clamp(2rem, 6vw, 2.8rem); }
.names { border: 0; padding: 0; margin: 1rem 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; }
.name-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: .4rem; margin: 0; padding: 1rem .5rem; border: 2px solid var(--border); border-radius: var(--radius); background: var(--surface); cursor: pointer; font-weight: 600; }
.name-card input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.name-card:has(input:checked) { border-color: var(--acc); background: var(--acc-soft); }
.name-card:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }
.pin-input { text-align: center; font-size: 2rem; letter-spacing: .6em; min-height: 64px; }
.kiosk-foot { margin-top: 2rem; }
.kiosk-box.ok .check-big { font-size: 5rem; line-height: 1; color: var(--ok); margin: .5rem 0; }
.kiosk-box .big { font-size: 1.4rem; }

/* Relatório do Ponto */
.filtro { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: end; margin-bottom: 1rem; }
.filtro label { margin: 0; flex: 1 1 200px; }
.filtro select, .filtro input { margin-top: .35rem; }
.filtro .btn { flex: 0 0 auto; }
.sheet-head h2 { margin-bottom: .25rem; }
.table-wrap { overflow-x: auto; }
.sheet-table td, .sheet-table th { white-space: nowrap; }
.sheet-table .row-folga td { background: var(--surface-2); color: var(--muted); }
.sheet-table .row-falta td { background: var(--danger-soft); }
.sheet-table .row-futuro td { color: var(--muted); }
.totals { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .6rem; margin: 1rem 0; }
.totals div { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .6rem .8rem; display: flex; flex-direction: column; }
.totals span { font-size: .8rem; color: var(--muted); }
.totals strong { font-family: var(--serif); font-size: 1.25rem; }
.totals .destaque { background: var(--acc-soft, var(--primary-soft)); }
.signatures { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-top: 3rem; text-align: center; }
.signatures .line { display: block; border-top: 1px solid var(--text); margin-bottom: .35rem; }
@media print {
  @page { size: A4 portrait; margin: 12mm; }
  body { background: #fff; color: #000; }
  .side, .tabbar, .no-print, .footer, .alert { display: none !important; }
  .app { display: block; }
  .main { padding: 0; max-width: none; }
  .card { box-shadow: none; border: 0; padding: 0; }
  .sheet-table { font-size: 9pt; }
  .sheet-table td, .sheet-table th { padding: 2px 4px; }
  .sheet-table .row-folga td, .sheet-table .row-falta td { background: #eee !important; color: #000; }
  .totals { grid-template-columns: repeat(3, 1fr); }
  .totals .destaque { background: #eee; }
}

/* Equipe */
.mod-pick { display: flex; flex-wrap: wrap; gap: .4rem .6rem; align-items: center; margin: .75rem 0; }
.mod-pick .btn { min-height: 38px; }
.senha-big { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 2.2rem; letter-spacing: .25em; text-align: center; margin: 1rem 0; color: var(--acc, var(--primary)); word-break: break-all; }
fieldset.cel { border: 1px dashed var(--border); border-radius: var(--radius-sm); padding: .5rem 1rem 1rem; margin: 1rem 0; }
fieldset.cel legend { padding: 0 .4rem; font-weight: 600; }
.pair.coords { align-items: start; }
.pair.coords label { flex: 1; margin: .75rem 0 0; }
.link-box { word-break: break-all; font-family: ui-monospace, Consolas, monospace; font-size: .9rem; background: var(--surface-2); padding: .6rem .8rem; border-radius: var(--radius-sm); }

/* Nauta Salão */
.m-salao { --acc: var(--m-salao); --acc-soft: var(--m-salao-soft); }
.time-big { display: flex; flex-direction: column; font-family: var(--serif); font-size: 1.5rem; font-weight: 600; min-width: 4.2rem; line-height: 1.1; color: var(--acc, var(--primary)); }
.time-big small { font-family: var(--sans); font-size: .75rem; font-weight: 500; color: var(--muted); }
.dot { display: inline-block; width: .7rem; height: .7rem; border-radius: 50%; background: var(--border); margin-right: .35rem; vertical-align: middle; }
.ag-cancelado, .ag-falta { opacity: .65; }
.ag.ag-atendimento { border-left: 4px solid var(--warn); }
.ag.ag-concluido { border-left: 4px solid var(--ok); }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .75rem; }
.grid3 label { margin-top: .75rem; }
.form-wide { max-width: 860px; margin-top: 1.5rem; }
.plain { list-style: none; margin: 0; padding: 0; }
.plain li { padding: .3rem 0; }
form.inline { display: inline; margin: 0; }
.linkbtn { background: none; border: 0; padding: 0; margin-left: .5rem; color: var(--primary); text-decoration: underline; cursor: pointer; font: inherit; }
.inline-form-row { display: flex; gap: .5rem; align-items: center; margin: 0; }
.inline-form-row select { min-height: 44px; width: auto; }
.blk { margin-bottom: 1rem; border-color: var(--warn); }
.picker { position: relative; }
.picker-list { list-style: none; margin: .25rem 0 0; padding: 0; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); max-height: 260px; overflow-y: auto; box-shadow: var(--shadow); }
.picker-list button { width: 100%; text-align: left; padding: .65rem .9rem; background: none; border: 0; border-bottom: 1px solid var(--border); font: inherit; color: var(--text); cursor: pointer; min-height: 44px; }
.picker-list button:hover, .picker-list button:focus-visible { background: var(--acc-soft, var(--surface-2)); }
.picker-vazio { padding: .65rem .9rem; color: var(--muted); }
.picker-sel { margin-top: .4rem; }
.prof-row { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: center; padding: .35rem 0; border-bottom: 1px solid var(--border); }
.prof-row .check { margin: 0; flex: 1 1 200px; }
.prof-row .pct { margin: 0; flex: 0 0 140px; font-size: .8rem; }
.meios { border: 0; padding: 0; margin: .5rem 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .5rem; }
.meios legend { font-weight: 600; margin-bottom: .35rem; }
.meio { display: flex; align-items: center; gap: .5rem; margin: 0; padding: .7rem .9rem; border: 2px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; font-weight: 600; }
.meio:has(input:checked) { border-color: var(--acc, var(--primary)); background: var(--acc-soft, var(--primary-soft)); }
.big-total { font-size: 1.3rem; }
.card.acesso { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: end; }
.card.acesso label { margin: 0; flex: 0 1 190px; }
.pager { display: flex; gap: 1rem; align-items: center; justify-content: center; margin: 1.25rem 0; }
.comissao h2 { display: flex; align-items: center; }

/* Catálogo de módulos */
.mod-catalog { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); margin: 1rem 0; }
.mod-card { --acc: var(--primary); --acc-soft: var(--primary-soft); border-top: 4px solid var(--acc); }
.mod-card .mod-card-head { display: flex; gap: .9rem; align-items: flex-start; margin-bottom: .75rem; }
.mod-card h2 { margin-bottom: .25rem; }
.mod-card h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 1rem 0 .35rem; font-family: var(--sans); }
.mod-card ul { margin: 0; padding-left: 1.1rem; }
.mod-card li { margin-bottom: .35rem; }
.mod-card .lead { font-size: 1.02rem; margin: 0; }
.mod-card .mod-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--acc-soft); color: var(--acc); display: grid; place-items: center; font-size: 1.3rem; flex: none; }
ul.tick { list-style: none; padding-left: 0; } ul.tick li { padding-left: 1.4rem; position: relative; } ul.tick li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }

/* Console: uso dos módulos */
.uso-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.uso { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .8rem 1rem; }
.uso h3 { margin-bottom: .5rem; }
.uso dl { margin: 0; } .uso dl div { display: flex; justify-content: space-between; gap: 1rem; padding: .25rem 0; border-bottom: 1px solid var(--border); }
.uso dt { color: var(--muted); font-size: .9rem; } .uso dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Nauta Gestão */
.m-gestao { --acc: var(--m-gestao); --acc-soft: var(--m-gestao-soft); }
.meta { margin: 0 0 1.25rem; } .meta progress { width: 100%; height: 14px; accent-color: var(--acc); }
fieldset.nichos { border: 0; padding: 0; margin: 0 0 1rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .6rem; }
fieldset.nichos legend { font-weight: 600; margin-bottom: .5rem; }
.nicho { position: relative; display: flex; align-items: center; gap: .6rem; margin: 0; padding: .8rem 1rem; border: 2px solid var(--border); border-radius: var(--radius); background: var(--surface); cursor: pointer; font-weight: 600; }
.nicho input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.nicho:has(input:checked) { border-color: var(--acc); background: var(--acc-soft); }
.nicho:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }
.nicho-ico { font-size: 1.5rem; }
.itens-pedido input, .itens-pedido select { min-height: 40px; }
.itens-pedido td { padding: .3rem .3rem; }
.row-feita { opacity: .65; }
.qtd-estoque { font-variant-numeric: tabular-nums; white-space: nowrap; }
.resultado { border-top: 4px solid var(--acc, var(--primary)); margin-bottom: 1.25rem; }

/* Celular: o conteúdo nunca alarga a página; tabelas largas rolam dentro do próprio quadro. */
.main { min-width: 0; }
.card { max-width: 100%; }

/* ===== Console: painel moderno, usuários e links de senha (v1.13) ===== */
.dash-head { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; justify-content: space-between; margin-bottom: 1rem; }
.dash-head h1 { margin-bottom: .15rem; } .dash-head p { margin-bottom: 0; }
.dash-busca { display: flex; gap: .5rem; flex: 1 1 280px; max-width: 420px; }
.dash-busca input { flex: 1; min-width: 0; margin: 0; }

.atalhos { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: .75rem; margin: 0 0 1.25rem; }
.atalho-form { margin: 0; display: contents; }
.atalho { display: flex; align-items: center; gap: .75rem; width: 100%; text-align: left; font: inherit; color: var(--text); text-decoration: none; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: .7rem .85rem; box-shadow: var(--shadow); transition: transform .15s, border-color .15s; }
.atalho:hover { transform: translateY(-2px); border-color: var(--primary); }
.atalho:focus-visible { outline: 3px solid var(--primary-soft); border-color: var(--primary); }
.atalho b { display: block; font-size: .95rem; line-height: 1.2; } .atalho small { color: var(--muted); font-size: .78rem; }
.atalho-ico { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 11px; background: var(--primary-soft); color: var(--primary); font-size: 1.15rem; }

.kpis-6 { grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); margin-bottom: 1.25rem; }
.kpi { position: relative; padding-right: 3.6rem; }
.kpi-ico { position: absolute; top: .9rem; right: .9rem; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; font-size: 1.1rem; font-weight: 700; }
.kpi-a { background: var(--primary-soft); color: var(--primary); } .kpi-b { background: var(--m-salao-soft); color: var(--m-salao); }
.kpi-c { background: var(--ok-soft); color: var(--ok); } .kpi-d { background: var(--gold-soft); color: var(--gold); }
.kpi-e { background: var(--warn-soft); color: var(--warn); } .kpi-f { background: var(--surface-2); color: var(--text); }
.trend-up { color: var(--ok); font-weight: 600; } .trend-down { color: var(--danger); font-weight: 600; }

.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.panel { min-width: 0; margin: 0; } .panel h2 { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; font-size: 1.12rem; }
.panel h2 small { font-family: var(--sans); font-weight: 500; font-size: .8rem; }
.panel-wide { grid-column: span 2; } .mais { margin-left: auto; font-family: var(--sans); font-size: .85rem; font-weight: 600; }
@media (max-width: 760px) { .panel-wide { grid-column: auto; } }

.chart { width: 100%; height: auto; display: block; } .hbars { width: 100%; height: auto; display: block; margin-bottom: .75rem; }
.chart-axis { stroke: var(--border); stroke-width: 1; }
.chart-bar { fill: var(--primary); } .chart-zero { fill: var(--border); }
.chart-line { stroke: var(--primary); stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; } .chart-area { fill: var(--primary-soft); opacity: .8; }
.chart-txt, .chart-lbl, .chart-val { fill: var(--muted); font: 15px var(--sans); } .chart-lbl { fill: var(--text); font-size: 14px; } .chart-val { fill: var(--text); font-weight: 700; }
.donut-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; } .donut { width: 150px; height: 150px; flex: none; }
.donut-ring { stroke: var(--surface-2); } .donut-n { fill: var(--text); font: 700 7px var(--sans); }
.seg-1 { stroke: var(--ok); } .seg-2 { stroke: var(--gold); } .seg-3 { stroke: var(--danger); } .seg-4 { stroke: var(--primary); } .seg-5 { stroke: var(--muted); }
.legend { list-style: none; margin: 0; padding: 0; font-size: .86rem; display: grid; gap: .25rem; flex: 1; min-width: 150px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: .45rem; }
.seg-bg-1 { background: var(--ok); } .seg-bg-2 { background: var(--gold); } .seg-bg-3 { background: var(--danger); } .seg-bg-4 { background: var(--primary); } .seg-bg-5 { background: var(--muted); }

.avisos { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.aviso a { display: block; text-decoration: none; color: var(--text); border: 1px solid var(--border); border-left-width: 4px; border-radius: var(--radius-sm); padding: .55rem .75rem; background: var(--surface); }
.aviso a:hover { background: var(--surface-2); } .aviso b { display: block; font-size: .93rem; } .aviso small { color: var(--muted); }
.aviso-critico a { border-left-color: var(--danger); } .aviso-aviso a { border-left-color: var(--warn); } .aviso-info a { border-left-color: var(--primary); }
.aviso-tag { float: right; font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; color: var(--muted); }
.aviso-critico .aviso-tag { color: var(--danger); } .aviso-aviso .aviso-tag { color: var(--warn); }
.aviso-ok { color: var(--ok); font-weight: 600; background: var(--ok-soft); padding: .8rem 1rem; border-radius: var(--radius-sm); }

.subnav-label { font-size: .7rem; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin: .9rem 0 .15rem; }
.subnav-label + .subnav { margin-top: 0; }
@media (max-width: 760px) {
  .subnav { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none; gap: 0; margin-bottom: .75rem; }
  .subnav::-webkit-scrollbar { display: none; }
  .subnav a { white-space: nowrap; flex: none; padding: .6rem .8rem; font-size: .92rem; }
  .tabbar a, .tab-out .btn { white-space: nowrap; font-size: .68rem; line-height: 1.25; }
  .tabbar .tab-out { display: flex; }
  .tabbar .ico, .tab-out .ico { height: 1.6rem; line-height: 1.6rem; overflow: hidden; }
  .tab-out .btn { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; line-height: inherit; font-weight: 600; }
}
.subnav .count { background: var(--surface-2); border-radius: 999px; padding: 0 .5rem; font-size: .78rem; margin-left: .25rem; }
.filtros { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1rem; } .filtros input, .filtros select { margin: 0; flex: 1 1 200px; min-width: 0; }
.acoes { display: flex; flex-wrap: wrap; gap: .4rem; } .acoes form { margin: 0; }
.btn-sm { min-height: 0; padding: .3rem .65rem; font-size: .82rem; }
.pager { display: flex; align-items: center; justify-content: center; gap: 1rem; margin: 1rem 0; }
.link-panel { max-width: 720px; } .copy-row { display: flex; gap: .5rem; margin-bottom: .5rem; } .copy-row input { flex: 1; min-width: 0; margin: 0; font-family: ui-monospace, Consolas, monospace; font-size: .85rem; }

/* ===== Mostrar senha e bloqueio de tela (v1.14) ===== */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 5.2rem; }
.pw-toggle { position: absolute; right: .35rem; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--primary); font: inherit; font-size: .82rem; font-weight: 700; cursor: pointer; padding: .35rem .55rem; border-radius: var(--radius-sm); }
.pw-toggle:hover { background: var(--primary-soft); }
.pw-toggle:focus-visible { outline: 3px solid var(--primary-soft); }
.custom-time[hidden] { display: none; }

.lock-page { display: grid; place-items: center; padding: 1rem; }
.lock-overlay { position: fixed; inset: 0; z-index: 1000; background: var(--bg); display: grid; place-items: center; padding: 1rem; overflow-y: auto; }
.lock-card { width: min(380px, 100%); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.6rem 1.4rem; text-align: center; display: grid; gap: .6rem; }
.lock-card h1, .lock-card h2 { margin: 0; } .lock-card form { text-align: left; display: grid; gap: .5rem; margin: 0; }
.lock-card .logo-mark { margin: 0 auto; }
.lock-avatar { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font: 700 1.6rem var(--serif); }
[hidden] { display: none !important; }
body.travada { overflow: hidden; }
.custom-time { align-items: flex-end; }
.custom-time label { display: flex; flex-direction: column; gap: .2rem; font-size: .85rem; margin: 0; }

/* ===== Planos, preços e combo (v1.15) ===== */
.pub { background: var(--bg); }
.pub-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem clamp(1rem, 4vw, 2.5rem); border-bottom: 1px solid var(--border); background: var(--surface); }
.pub-bar nav { display: flex; align-items: center; gap: 1rem; } .pub-bar nav a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 600; }
.pub-main { max-width: 1080px; margin: 0 auto; padding: 2rem clamp(1rem, 4vw, 2rem) 3rem; }
.pub-head h1 { max-width: 22ch; } .pub-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0 1rem; }
.pub-foot { text-align: center; padding: 1rem; border-top: 1px solid var(--border); }
.preco-grande { font: 600 2rem/1.1 var(--serif); margin: .5rem 0 .1rem; } .preco-grande small, .preco-linha small, .calc-preco small { font: 500 .85rem var(--sans); color: var(--muted); }
.preco-linha { margin: .25rem 0 0; } .ok-text { color: var(--ok); font-weight: 600; }
.calc { margin: 1.5rem 0; } .calc form { display: grid; gap: .6rem; }
.check.inline { display: inline-flex; margin-right: 1rem; }
.calc-mods { display: grid; gap: .5rem; }
.calc-mod { display: flex; align-items: center; gap: .75rem; padding: .7rem .9rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; }
.calc-mod:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); } .calc-mod.is-off { opacity: .55; cursor: not-allowed; }
.calc-mod input { width: 1.2rem; height: 1.2rem; margin: 0; } .calc-preco { font-weight: 700; font-variant-numeric: tabular-nums; }
.calc-total { margin: 1rem 0 .25rem; padding-top: .75rem; border-top: 1px dashed var(--border); } .calc-total div { display: flex; justify-content: space-between; gap: 1rem; padding: .25rem 0; }
.calc-total dt { color: var(--muted); } .calc-total dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.calc-desc dd, .calc-desc dt { color: var(--ok); } .calc-fim { border-top: 1px solid var(--border); margin-top: .35rem; padding-top: .6rem !important; }
.calc-fim dt { color: var(--text); font-weight: 700; } .calc-fim dd { font: 600 1.6rem/1.1 var(--serif); }
.pair-money { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; } .pair-money label { margin: 0; }
.plan-edit form { display: grid; gap: .6rem; margin-top: .75rem; }
.calc-per { display: inline-flex; gap: .25rem; padding: .25rem; background: var(--surface-2); border-radius: 999px; width: fit-content; }
.calc-per-op { display: inline-flex; align-items: center; gap: .4rem; margin: 0; padding: .35rem .9rem; border-radius: 999px; cursor: pointer; font-weight: 600; }
.calc-per-op:has(input:checked) { background: var(--primary); color: var(--primary-ink); }
.calc-per-op input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.calc-per-op:focus-within { outline: 3px solid var(--primary-soft); }
.calc-mod .grow { flex: 1; }
.aviso-gratis { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem .8rem; margin: 0 0 1rem; padding: .6rem .9rem; border: 1px solid var(--border); border-left: 4px solid var(--gold); border-radius: var(--radius-sm); background: var(--gold-soft); font-size: .9rem; }
.aviso-gratis a { font-weight: 700; white-space: nowrap; }
.tag-gratis { margin: .4rem 0 0; }
.console-foot { margin-top: 2rem; padding-top: .8rem; border-top: 1px solid var(--border); color: var(--muted); font-size: .8rem; text-align: center; }

.cfg { margin-bottom: 1.25rem; } .cfg form { display: grid; gap: .7rem; } .cfg h3 { margin: .6rem 0 0; font-size: 1.05rem; } .cfg h3.sub { margin-top: 1rem; }
.cfg textarea { width: 100%; font: inherit; }
.cfg-nav { position: sticky; top: 0; background: var(--bg); z-index: 3; }

.plan-form fieldset { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .6rem .9rem; margin: 0; } .plan-form legend { font-weight: 700; padding: 0 .4rem; }
.plan-form .empresas-lista { max-height: 14rem; overflow-y: auto; display: grid; gap: .3rem; }
.plan-copy { margin-top: .5rem; }

.ofertas { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .6rem .9rem; margin: .5rem 0; display: grid; gap: .5rem; } .ofertas legend { font-weight: 700; padding: 0 .4rem; }
.oferta { display: flex; align-items: center; gap: .7rem; padding: .6rem .7rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; margin: 0; }
.oferta:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); } .oferta input { width: 1.15rem; height: 1.15rem; margin: 0; } .oferta .grow { flex: 1; } .oferta small { display: block; }
.oferta-preco { font-weight: 700; white-space: nowrap; } .oferta-preco small { display: inline; font-weight: 500; color: var(--muted); }

.teste { border-left: 4px solid var(--ok); } .teste-off { border-left-color: var(--muted); } input.mini { width: 4.5rem; min-height: 0; padding: .25rem .4rem; margin-right: .3rem; }

/* promoção no cadastro e em /planos */
.promo-box { border: 1px solid var(--border); border-left: 4px solid #ffd400; border-radius: 12px; background: var(--surface); padding: .8rem 1rem; margin: 0 0 1rem; }
.promo-box .promo-titulo { margin: 0; font-weight: 600; } .promo-box details { margin-top: .4rem; } .promo-box details p { margin: .4rem 0 0; color: var(--muted); }
.promo-tag { display: inline-block; background: #e10600; color: #fff; font: 800 .72rem/1 system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; padding: .3rem .5rem; border-radius: 4px; margin-right: .5rem; }
.promo-ate { color: var(--muted); font-size: .85rem; }
.promo-box.promo-bf { background: #0b0b0b; color: #fff; border-color: #ffd400; border-left-width: 4px; }
.promo-box.promo-bf .promo-titulo { color: #ffd400; } .promo-box.promo-bf .promo-ate, .promo-box.promo-bf details p { color: #cfcfcf; } .promo-box.promo-bf summary { color: #fff; }
.entry-back { margin: 0 0 1.2rem; font-size: .9rem; } .entry-back a { text-decoration: none; font-weight: 600; } .entry-back a:hover { text-decoration: underline; }
