/* SmartContab POS — sistema visual
   Marca: azul marino del escudo + dorado del check. El dorado se reserva para Cobrar / Abrir POS.
   La pieza protagonista es el ticket del POS: papel con borde dentado. */
:root {
  --bg: #ECEEF2;
  --surface: #FFFFFF;
  --surface-2: #F4F6F7;
  --ink: #13232A;
  --muted: #5D6E75;
  --line: #D3DBDF;
  --rail: #0A1D3E;
  --primary: #0B2A5B;
  --primary-2: #143A7A;
  --primary-soft: #E2E8F3;
  --accent: #D4A840;
  --accent-ink: #231800;
  --danger: #B23A2E;
  --danger-soft: #F7E1DE;
  --ok: #2E7D50;
  --ok-soft: #DDEFE3;
  --warn: #9A6412;
  --warn-soft: #FBEFD6;
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 14px;
  --shadow: 0 1px 2px rgba(19, 35, 42, .08), 0 6px 20px -8px rgba(19, 35, 42, .18);
  --font: "Manrope", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 500 14px/1.45 var(--font); font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--primary); }
#printFrame { position: fixed; width: 0; height: 0; border: 0; right: 0; bottom: 0; visibility: hidden; }
:focus-visible { outline: 2px solid var(--primary-2); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Layout */
.shell { display: grid; grid-template-columns: 84px 1fr; height: 100vh; }
.rail { background: var(--rail); color: #CFE3E2; display: flex; flex-direction: column; align-items: stretch; padding: 12px 8px; gap: 4px; }
.rail .logo { display: grid; place-items: center; height: 48px; margin-bottom: 10px; }
.rail a {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: var(--r);
  color: inherit; text-decoration: none; font-size: 11.5px; font-weight: 600; position: relative;
}
.rail a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.rail a.on { background: var(--primary-2); color: #fff; }
.rail a svg { width: 22px; height: 22px; }
.rail .badge { position: absolute; top: 5px; right: 12px; background: var(--accent); color: var(--accent-ink); border-radius: 99px; font-size: 10px; padding: 0 5px; font-weight: 800; }
.rail .spacer { flex: 1; }
.main { overflow: auto; display: flex; flex-direction: column; min-width: 0; }
.topbar { display: flex; align-items: center; gap: 12px; padding: 14px 24px; }
.topbar h1 { font-size: 20px; margin: 0; font-weight: 800; letter-spacing: -.01em; }
.topbar .grow { flex: 1; }
.env { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; }
.env.simulacion { background: var(--warn-soft); color: var(--warn); }
.env.demo { background: var(--primary-soft); color: var(--primary); }
.env.produccion { background: var(--ok-soft); color: var(--ok); }
.page { padding: 0 24px 24px; }

/* ---------- Controles */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 14px;
  border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 700; white-space: nowrap;
}
.btn:hover { border-color: #AFBDC3; }
.btn svg { width: 18px; height: 18px; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.primary:hover { background: var(--primary-2); }
.btn.accent { background: var(--accent); border-color: #B8902E; color: var(--accent-ink); }
.btn.danger { color: var(--danger); }
.btn.danger.solid { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: rgba(19, 35, 42, .06); }
.btn.sm { height: 30px; padding: 0 10px; font-size: 13px; }
.btn.icon { width: 38px; padding: 0; }
.btn.sm.icon { width: 30px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field > span { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.field small { color: var(--muted); font-size: 12px; }
.input, select.input, textarea.input {
  height: 38px; padding: 0 11px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); width: 100%;
}
textarea.input { height: auto; padding: 8px 11px; min-height: 70px; }
.input:focus { border-color: var(--primary-2); outline: none; box-shadow: 0 0 0 3px rgba(15, 113, 120, .15); }
.check { display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; }
.check input { width: 18px; height: 18px; accent-color: var(--primary); }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.span2 { grid-column: span 2; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.muted { color: var(--muted); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 6px 12px; border-radius: 4px; font-weight: 700; cursor: pointer; color: var(--muted); }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .1); }

/* ---------- Paneles y tablas */
.panel { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.panel-h { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.panel-h h2 { margin: 0; font-size: 15px; font-weight: 800; }
.panel-b { padding: 16px; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .search { flex: 1; min-width: 220px; max-width: 420px; }
.tbl-wrap { overflow: auto; }
table.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--surface-2); position: sticky; top: 0; white-space: nowrap; }
.tbl td { padding: 10px 12px; border-bottom: 1px solid #E7ECEE; vertical-align: middle; }
.tbl tr.click { cursor: pointer; }
.tbl tr.click:hover td { background: #F6F9F9; }
.tbl .acts { text-align: right; white-space: nowrap; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: 12px; font-weight: 700; background: var(--surface-2); color: var(--muted); }
.tag.ok { background: var(--ok-soft); color: var(--ok); }
.tag.err { background: var(--danger-soft); color: var(--danger); }
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.tag.info { background: var(--primary-soft); color: var(--primary); }
.empty { padding: 40px 16px; text-align: center; color: var(--muted); }
.stock-low { color: var(--danger); font-weight: 800; }

/* ---------- POS */
.pos { display: grid; grid-template-columns: minmax(0, 1fr) 430px; gap: 20px; padding: 0 24px 24px; height: calc(100vh - 66px); }
.pos-left { display: flex; flex-direction: column; gap: 14px; min-height: 0; }
.scan { position: relative; }
.scan .input { height: 54px; font-size: 18px; padding-left: 50px; border-radius: var(--r); border-width: 2px; }
.scan svg { position: absolute; left: 16px; top: 16px; width: 22px; height: 22px; color: var(--muted); }
.scan-drop { position: absolute; z-index: 20; left: 0; right: 0; top: 58px; background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); max-height: 360px; overflow: auto; border: 1px solid var(--line); }
.scan-drop button { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; width: 100%; text-align: left; padding: 10px 14px; border: 0; border-bottom: 1px solid #EEF1F2; background: transparent; cursor: pointer; }
.scan-drop button:hover, .scan-drop button.sel { background: var(--primary-soft); }
.scan-drop .n { font-weight: 700; }
.scan-drop .m { font-size: 12px; color: var(--muted); }
.scan-drop .p { grid-row: span 2; align-self: center; font-weight: 800; }
.cats { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: 6px 13px; font-weight: 700; cursor: pointer; font-size: 13px; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; overflow: auto; align-content: start; padding: 2px; flex: 1; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 6px; min-height: 96px; }
.tile:hover { border-color: var(--primary-2); }
.tile:active { transform: scale(.98); }
.tile .n { font-weight: 700; line-height: 1.25; flex: 1; }
.tile .f { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; color: var(--muted); }
.tile .f b { font-size: 15px; color: var(--ink); }
.tile.out { opacity: .6; }
.pos-quick { display: flex; gap: 8px; flex-wrap: wrap; }

/* El ticket — papel con borde dentado */
.receipt { display: flex; flex-direction: column; min-height: 0; filter: drop-shadow(0 8px 18px rgba(19, 35, 42, .16)); }
.receipt-paper { background: var(--surface); border-radius: var(--r-lg) var(--r-lg) 0 0; display: flex; flex-direction: column; min-height: 0; flex: 1; }
.receipt-edge { height: 12px; background:
  linear-gradient(-45deg, transparent 8px, var(--surface) 0) 0 0 / 16px 12px repeat-x,
  linear-gradient(45deg, transparent 8px, var(--surface) 0) 0 0 / 16px 12px repeat-x; }
.rc-client { padding: 14px 16px 12px; border-bottom: 1px dashed #C5D0D4; display: flex; align-items: center; gap: 10px; }
.rc-client .who { flex: 1; min-width: 0; }
.rc-client .who b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-client .who small { color: var(--muted); }
.rc-lines { flex: 1; overflow: auto; padding: 4px 0; }
.rc-line { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 10px 16px; border-bottom: 1px solid #EEF1F2; }
.rc-line.sel { background: #F1F7F7; }
.rc-line .d { font-weight: 700; line-height: 1.25; }
.rc-line .t { font-weight: 800; text-align: right; }
.rc-line .meta { font-size: 12.5px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.rc-line .ctl { grid-column: 1 / -1; display: flex; gap: 6px; align-items: center; margin-top: 6px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.qty button { width: 30px; height: 30px; border: 0; background: var(--surface-2); cursor: pointer; font-weight: 800; font-size: 16px; }
.qty input { width: 58px; height: 30px; border: 0; text-align: center; font-weight: 700; }
.rc-empty { display: grid; place-items: center; text-align: center; color: var(--muted); padding: 40px 20px; height: 100%; }
.rc-empty svg { width: 46px; height: 46px; opacity: .45; margin-bottom: 8px; }
.rc-totals { padding: 12px 16px 6px; border-top: 1px dashed #C5D0D4; }
.rc-totals .r { display: flex; justify-content: space-between; color: var(--muted); font-weight: 600; padding: 2px 0; }
.rc-total { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 0 4px; }
.rc-total span { font-weight: 800; }
.rc-total b { font-size: 34px; font-weight: 800; letter-spacing: -.02em; }
.rc-actions { display: grid; grid-template-columns: auto 1fr; gap: 8px; padding: 6px 16px 16px; }
.btn.cobrar { height: 56px; font-size: 18px; }
.kbd { font-size: 11px; font-weight: 700; padding: 1px 5px; border-radius: 4px; background: rgba(0, 0, 0, .12); }

/* ---------- Modal */
.modal-bg { position: fixed; inset: 0; background: rgba(10, 30, 34, .45); display: grid; place-items: center; z-index: 100; padding: 20px; animation: fade .12s ease-out; }
.modal { background: var(--surface); border-radius: var(--r-lg); width: min(560px, 100%); max-height: calc(100vh - 40px); display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); animation: pop .16s ease-out; }
.modal.lg { width: min(820px, 100%); }
.modal.xl { width: min(1000px, 100%); }
.modal-h { display: flex; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); gap: 10px; }
.modal-h h3 { margin: 0; font-size: 17px; font-weight: 800; flex: 1; }
.modal-b { padding: 20px; overflow: auto; }
.modal-f { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--line); }
@keyframes fade { from { opacity: 0 } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98) } }

/* Cobro */
.pay-total { text-align: center; padding: 6px 0 16px; }
.pay-total small { color: var(--muted); font-weight: 700; }
.pay-total b { display: block; font-size: 44px; font-weight: 800; letter-spacing: -.02em; }
.pay-methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin-bottom: 14px; }
.pay-methods button { height: 48px; border: 2px solid var(--line); background: var(--surface); border-radius: var(--r); font-weight: 800; cursor: pointer; }
.pay-methods button.on { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.pay-lines { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.pay-line { display: flex; align-items: center; gap: 10px; background: var(--surface-2); border-radius: var(--r-sm); padding: 8px 10px; }
.pay-line span { flex: 1; font-weight: 700; }
.pay-amount .input { height: 56px; font-size: 26px; font-weight: 800; text-align: right; }
.bills { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.change { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; padding: 12px 14px; border-radius: var(--r); background: var(--ok-soft); color: var(--ok); font-weight: 800; }
.change b { font-size: 26px; }
.change.due { background: var(--warn-soft); color: var(--warn); }

/* Tarjetas de indicador (reportes) */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi { background: var(--surface); border-radius: var(--r); padding: 14px 16px; border-left: 4px solid var(--primary); box-shadow: var(--shadow); }
.kpi small { color: var(--muted); font-weight: 700; }
.kpi b { display: block; font-size: 24px; font-weight: 800; margin-top: 2px; }
.kpi.neg { border-left-color: var(--danger); }
.kpi.acc { border-left-color: var(--accent); }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 150px; padding: 8px 0 0; }
.bars div { flex: 1; background: var(--primary); border-radius: 3px 3px 0 0; min-height: 2px; position: relative; }
.bars div:hover { background: var(--primary-2); }
.bars div span { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); font-size: 11px; white-space: nowrap; background: var(--ink); color: #fff; padding: 2px 6px; border-radius: 4px; display: none; }
.bars div:hover span { display: block; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Toast */
.toasts { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 200; }
.toast { background: var(--ink); color: #fff; padding: 12px 16px; border-radius: var(--r); box-shadow: var(--shadow); max-width: 420px; font-weight: 600; animation: pop .16s ease-out; }
.toast.err { background: var(--danger); }
.toast.ok { background: var(--ok); }

/* Login */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login-art { background: var(--rail); color: #CFE3E2; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.login-art h1 { color: #fff; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.08; margin: 0 0 14px; font-weight: 800; letter-spacing: -.02em; max-width: 14ch; }
.login-art p { max-width: 44ch; margin: 0; font-size: 15px; }
.login-strip { position: absolute; right: 48px; bottom: -20px; width: 230px; background: #fff; color: var(--ink); padding: 18px 18px 30px; font-size: 12px; transform: rotate(-4deg); border-radius: 4px 4px 0 0; box-shadow: 0 20px 40px rgba(0, 0, 0, .3); }
.login-strip .l { display: flex; justify-content: space-between; padding: 2px 0; }
.login-strip hr { border: 0; border-top: 1px dashed #999; margin: 8px 0; }
.login-form { display: grid; place-items: center; padding: 32px; }
.login-form form { width: min(360px, 100%); display: flex; flex-direction: column; gap: 14px; }
.login-form h2 { margin: 0 0 6px; font-size: 24px; font-weight: 800; }

@media (max-width: 1100px) {
  .pos { grid-template-columns: 1fr 380px; }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .rail { order: 2; flex-direction: row; overflow-x: auto; padding: 6px; }
  .rail .logo, .rail .spacer { display: none; }
  .rail a { min-width: 70px; }
  .pos { grid-template-columns: 1fr; height: auto; }
  .login { grid-template-columns: 1fr; }
  .login-art { display: none; }
  .g3, .g4 { grid-template-columns: 1fr 1fr; }
  .two { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ===================== v2 · Inicio (dashboard) ===================== */
.dash { display: grid; gap: 16px; max-width: 1280px; }
.dash-hero { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; background: var(--rail); color: #fff;
  border-radius: var(--r-lg); padding: 22px 24px; position: relative; overflow: hidden; }
.dash-hero::after { content: ""; position: absolute; right: -40px; top: -60px; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(212,168,64,.18), transparent 65%); pointer-events: none; }
.dash-hero h2 { margin: 0 0 4px; font-size: 22px; font-weight: 800; }
.dash-hero p { margin: 0; opacity: .8; }
.dash-hero .big { display: block; font-size: 38px; font-weight: 800; letter-spacing: -.02em; margin-top: 8px; }
.btn-pos { height: 76px; padding: 0 30px; font-size: 20px; font-weight: 800; border-radius: var(--r-lg); gap: 12px;
  box-shadow: 0 8px 22px -8px rgba(212,168,64,.7); position: relative; z-index: 1; }
.btn-pos svg { width: 30px; height: 30px; }
.dash-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; }
@media (max-width: 1000px) { .dash-grid, .dash-hero { grid-template-columns: 1fr; } }
.pay-rows { display: grid; gap: 4px; }
.pay-row { display: grid; grid-template-columns: 38px 1fr auto; gap: 12px; align-items: center; padding: 10px 4px; border-bottom: 1px dashed var(--line); }
.pay-row:last-child { border-bottom: 0; }
.pay-ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #fff; }
.pay-row b { font-size: 17px; font-weight: 800; }
.pay-row .meter { height: 6px; background: var(--surface-2); border-radius: 99px; margin-top: 5px; overflow: hidden; }
.pay-row .meter i { display: block; height: 100%; border-radius: 99px; }
.pay-row small { color: var(--muted); font-weight: 600; }
.pay-total { display: flex; justify-content: space-between; padding: 12px 4px 2px; border-top: 2px solid var(--ink); margin-top: 6px; font-weight: 800; font-size: 16px; }
.mini-list { list-style: none; margin: 0; padding: 0; }
.mini-list li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--surface-2); }
.mini-list li:last-child { border-bottom: 0; }
.lic-banner { display: flex; align-items: center; gap: 10px; padding: 10px 24px; font-weight: 700; font-size: 13px; }
.lic-banner.warn { background: var(--warn-soft); color: var(--warn); }
.lic-banner.err { background: var(--danger); color: #fff; }
.lic-banner.info { background: var(--primary-soft); color: var(--primary); }
.lic-pill { font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 99px; background: var(--warn-soft); color: var(--warn); }

/* ===================== v2 · Asistente de configuración ===================== */
.wiz { min-height: 100vh; display: grid; place-items: center; padding: 30px 16px; }
.wiz-card { width: min(760px, 100%); background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
.wiz-top { background: var(--rail); color: #fff; padding: 20px 26px; }
.wiz-top h1 { margin: 0; font-size: 20px; font-weight: 800; }
.wiz-top p { margin: 4px 0 0; opacity: .75; }
.wiz-steps { display: flex; gap: 8px; margin-top: 16px; }
.wiz-steps span { flex: 1; font-size: 12px; font-weight: 700; opacity: .55; padding-top: 8px; border-top: 3px solid rgba(255,255,255,.25); }
.wiz-steps span.on { opacity: 1; border-top-color: var(--accent); }
.wiz-steps span.done { opacity: .9; border-top-color: #E7CD85; }
.wiz-body { padding: 22px 26px; display: grid; gap: 14px; }
.wiz-foot { display: flex; gap: 10px; justify-content: space-between; padding: 14px 26px; border-top: 1px solid var(--line); background: var(--surface-2); }
.env-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.env-opt { border: 2px solid var(--line); border-radius: var(--r); padding: 12px; cursor: pointer; display: grid; gap: 3px; }
.env-opt input { display: none; }
.env-opt b { font-size: 14px; }
.env-opt small { color: var(--muted); }
.env-opt.on { border-color: var(--primary); background: var(--primary-soft); }
.env-opt.off { opacity: .45; cursor: not-allowed; }
.test-box { border-radius: var(--r); padding: 12px 14px; font-weight: 600; }
.test-box.ok { background: var(--ok-soft); color: var(--ok); }
.test-box.err { background: var(--danger-soft); color: var(--danger); }
@media (max-width: 640px) { .env-opts { grid-template-columns: 1fr; } }

/* ===================== v2 · Panel de licencias ===================== */
.sa-top { display: flex; align-items: center; gap: 14px; padding: 14px 24px; background: var(--rail); color: #fff; }
.sa-top .brand { font-weight: 800; font-size: 17px; display: flex; gap: 10px; align-items: center; }
.sa-top .brand em { font-style: normal; font-weight: 600; opacity: .6; }
.sa-wrap { padding: 20px 24px 40px; max-width: 1320px; margin: 0 auto; display: grid; gap: 16px; }
.cmd { font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; background: var(--ink); color: #D8F3EC; padding: 10px 12px; border-radius: var(--r-sm);
  display: flex; gap: 10px; align-items: center; word-break: break-all; }
.cmd code { flex: 1; }
.dias { font-weight: 800; }
.dias.bad { color: var(--danger); } .dias.low { color: var(--warn); } .dias.good { color: var(--ok); }
a.btn { text-decoration: none; }
.cmd .btn { background: #fff; color: var(--ink); border-color: #fff; flex-shrink: 0; }

/* ===================== v2.1 · Marca SmartContab ===================== */
.brand-shield { width: 46px; height: 46px; border-radius: 12px; background: #fff; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.brand-shield img { width: 34px; height: 34px; object-fit: contain; }
.login-logo { display: block; width: min(260px, 70%); height: auto; margin: 0 auto 18px; }
.art-brand { display: flex; align-items: center; gap: 12px; color: #fff; font-weight: 800; font-size: 18px; letter-spacing: .01em; }
.art-brand .brand-shield { width: 42px; height: 42px; }
.art-brand small { display: block; font-weight: 600; font-size: 11px; color: var(--accent); letter-spacing: .22em; }
.sa-top .brand-shield { width: 36px; height: 36px; border-radius: 9px; }
.sa-top .brand-shield img { width: 27px; height: 27px; }
.wiz-top .logo-row { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
