/* ==========================================================================
   HONNIC · Sistema de diseño 3.0
   Una sola fuente de tokens, tipografía y componentes para Cliente, Caja,
   Mensajero, Administración y Login. Cada rol añade solo su propio layout.
   ========================================================================== */

@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url(../fonts/inter-400.woff) format("woff"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url(../fonts/inter-500.woff) format("woff"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url(../fonts/inter-600.woff) format("woff"); }
@font-face { font-family: "Poppins"; font-weight: 300; font-display: swap; src: url(../fonts/poppins-300.woff) format("woff"); }
@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: url(../fonts/poppins-400.woff) format("woff"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap; src: url(../fonts/poppins-500.woff) format("woff"); }

:root {
  /* Marca */
  --carbon: #1E1916;      /* carbón: texto principal y superficies oscuras */
  --carbon-2: #2A231F;
  --carbon-3: #3A312B;
  --paper: #F7F4EF;       /* fondo cálido */
  --surface: #FFFFFF;
  --surface-2: #FBF9F6;
  --line: #E6DED4;
  --line-strong: #D3C7BA;
  --muted: #6B6158;
  --faint: #998E84;
  --brasa: #A8322A;       /* acento gastronómico (marca) */
  --brasa-deep: #7E2119;
  --brasa-soft: #F6E7E3;
  --mostaza: #B9772A;     /* complemento discreto */

  /* Colores operacionales (no dependen del tema de marca) */
  --st-nuevo: #D9480F;     --st-nuevo-bg: #FFF0E8;
  --st-tomado: #6741D9;    --st-tomado-bg: #F1EDFD;
  --st-preparando: #9A5300;--st-preparando-bg: #FFF4E0;
  --st-listo: #2B8A3E;     --st-listo-bg: #EAF6EC;
  --st-asignado: #0C8599;  --st-asignado-bg: #E5F6F8;
  --st-encamino: #1971C2;  --st-encamino-bg: #E7F1FB;
  --st-entregado: #5C636A; --st-entregado-bg: #EEF0F2;
  --st-cancelado: #868E96; --st-cancelado-bg: #F1F3F5;
  --st-incidencia: #C92A2A;--st-incidencia-bg: #FDECEC;
  --ok: #2B8A3E; --warn: #B76E00; --danger: #C92A2A; --info: #1971C2;

  /* Tipografía */
  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Poppins", "Inter", system-ui, sans-serif;
  --t-xs: .8125rem; --t-sm: .875rem; --t-base: 1rem; --t-md: 1.0625rem; --t-lg: 1.25rem; --t-xl: 1.5rem; --t-2xl: 2rem; --t-3xl: 2.625rem;

  /* Espacio, radios y sombras */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px; --s8: 32px; --s10: 40px;
  --r-sm: 8px; --r-md: 10px; --r-lg: 14px; --r-xl: 20px; --r-pill: 999px;
  --shadow-1: 0 1px 2px rgba(30, 25, 22, .06);
  --shadow-2: 0 6px 18px -8px rgba(30, 25, 22, .18);
  --shadow-3: 0 24px 60px -20px rgba(30, 25, 22, .35);
  --ring: 0 0 0 3px rgba(168, 50, 42, .28);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-ui); font-size: var(--t-base); line-height: 1.5; color: var(--carbon);
  background: var(--paper); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--brasa); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.25; margin: 0; letter-spacing: -.01em; }
h1 { font-size: var(--t-2xl); } h2 { font-size: var(--t-xl); } h3 { font-size: var(--t-lg); } h4 { font-size: var(--t-md); }
p { margin: 0; }
.num, .price { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: var(--t-sm); }
.xs { font-size: var(--t-xs); }
.display { font-family: var(--font-display); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--r-sm); }

.ic { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.2em; }
.ic-lg { width: 1.5em; height: 1.5em; }

/* ---------- Marca ---------- */
.wordmark { display: inline-flex; flex-direction: column; line-height: 1; text-decoration: none; color: inherit; }
.wordmark b { font-family: var(--font-display); font-weight: 500; font-size: 1.35rem; letter-spacing: .14em; }
.wordmark span { font-size: .6875rem; color: var(--muted); letter-spacing: .02em; margin-top: 3px; }
.wordmark b::first-letter { color: var(--brasa); }

/* ---------- Botones ---------- */
.btn {
  --bg: var(--surface); --fg: var(--carbon); --bd: var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 44px; padding: 10px var(--s4); border-radius: var(--r-md); border: 1px solid var(--bd);
  background: var(--bg); color: var(--fg); font-weight: 600; font-size: var(--t-sm); line-height: 1.1;
  text-decoration: none; white-space: normal; text-align: center; overflow-wrap: anywhere; user-select: none;
  transition: background .15s var(--ease), border-color .15s var(--ease), transform .08s var(--ease), opacity .15s;
}
.btn:hover { border-color: var(--carbon-3); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; }
.btn.primary { --bg: var(--brasa); --fg: #fff; --bd: var(--brasa); }
.btn.primary:hover { --bg: var(--brasa-deep); --bd: var(--brasa-deep); }
.btn.dark { --bg: var(--carbon); --fg: #fff; --bd: var(--carbon); }
.btn.dark:hover { --bg: var(--carbon-3); }
.btn.ghost { --bg: transparent; --bd: transparent; }
.btn.ghost:hover { --bg: rgba(30, 25, 22, .06); }
.btn.danger { --fg: var(--danger); --bd: #efc4c4; }
.btn.danger.solid { --bg: var(--danger); --fg: #fff; --bd: var(--danger); }
.btn.sm { min-height: 34px; padding: 0 var(--s3); font-size: var(--t-xs); border-radius: var(--r-sm); }
.btn.lg { min-height: 52px; padding: 0 var(--s6); font-size: var(--t-base); border-radius: var(--r-lg); }
.btn.block { width: 100%; }
.btn.icon { padding: 0; width: 44px; flex-shrink: 0; }
.btn.icon.sm { width: 34px; }
.btn .spinner { width: 16px; height: 16px; }
.btn.is-busy { pointer-events: none; opacity: .75; }
.btn.st { --fg: #fff; }
.btn.st-tomado { --bg: var(--st-tomado); --bd: var(--st-tomado); --fg: #fff; }
.btn.st-preparando { --bg: var(--st-preparando); --bd: var(--st-preparando); --fg: #fff; }
.btn.st-listo { --bg: var(--st-listo); --bd: var(--st-listo); --fg: #fff; }
.btn.st-asignado { --bg: var(--st-asignado); --bd: var(--st-asignado); --fg: #fff; }
.btn.st-encamino { --bg: var(--st-encamino); --bd: var(--st-encamino); --fg: #fff; }
.btn.st-nuevo { --bg: var(--st-nuevo); --bd: var(--st-nuevo); --fg: #fff; }

/* ---------- Formularios ---------- */
.field { display: grid; gap: 6px; min-width: 0; }
.field > label, .label { font-size: var(--t-sm); font-weight: 500; color: var(--carbon-3); }
.field .hint { font-size: var(--t-xs); color: var(--muted); }
.field .err { font-size: var(--t-xs); color: var(--danger); }
.input, .select, .textarea {
  width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; border-radius: var(--r-md); border: 1px solid var(--line-strong);
  background: var(--surface); outline: none; transition: border-color .15s, box-shadow .15s;
}
.textarea { min-height: 80px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--brasa); box-shadow: var(--ring); }
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--danger); }
.input-group { position: relative; display: flex; align-items: center; }
.input-group .input { padding-right: 44px; }
.input-group .btn { position: absolute; right: 2px; }
.input-prefix { position: relative; }
.input-prefix span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.input-prefix .input { padding-left: 26px; }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: var(--t-sm); }
.check input { width: 18px; height: 18px; accent-color: var(--brasa); }
.row { display: flex; gap: var(--s3); align-items: center; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.stack { display: grid; gap: var(--s4); }
.stack-sm { display: grid; gap: var(--s2); }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s3); }
@media (max-width: 560px) { .grid-2 { grid-template-columns: 1fr; } }

/* Controles nativos coherentes en todas las vistas. */
input[type=file] { max-width: 100%; min-width: 0; font: inherit; font-size: var(--t-sm); color: var(--muted); }
input[type=file]::file-selector-button { font: inherit; font-weight: 500; color: var(--carbon); background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: 10px 12px; margin-right: 10px; cursor: pointer; }
input[type=file]:focus-visible { box-shadow: var(--ring); }
input[type=checkbox], input[type=radio] { accent-color: var(--brasa); }
.input[type=number] { font-variant-numeric: tabular-nums; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 200; transform: translateY(-160%); padding: 10px 16px; background: var(--surface); color: var(--carbon); border-radius: var(--r-sm); }
.skip-link:focus { transform: none; }
@media (pointer: coarse) { .btn.sm { min-height: 44px; } .btn.icon.sm { width: 44px; } }

/* Selector segmentado (opciones grandes) */
.segmented { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; background: #EFE9E2; border-radius: var(--r-md); }
.segmented button { min-width: 0; border: 0; background: transparent; border-radius: 9px; min-height: 40px; font-weight: 600; font-size: var(--t-sm); color: var(--muted); display: inline-flex; gap: 8px; align-items: center; justify-content: center; }
.segmented button[aria-pressed="true"] { background: var(--surface); color: var(--carbon); box-shadow: var(--shadow-1); }

/* Fichas de selección (opciones de producto, pagos) */
.choice { display: flex; align-items: center; gap: var(--s3); padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--surface); cursor: pointer; transition: border-color .12s, background .12s; }
.choice:hover { border-color: var(--carbon-3); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice .mark { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-strong); flex: none; display: grid; place-items: center; transition: .12s; }
.choice.multi .mark { border-radius: 6px; }
.choice:has(input:checked) { border-color: var(--brasa); background: var(--brasa-soft); }
.choice:has(input:checked) .mark { border-color: var(--brasa); background: var(--brasa); box-shadow: inset 0 0 0 3px var(--brasa-soft); }
.choice.multi:has(input:checked) .mark { box-shadow: none; background: var(--brasa) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/14px no-repeat; }
.choice:has(input:focus-visible) { box-shadow: var(--ring); }
.choice:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.choice .grow small { display: block; color: var(--muted); font-size: var(--t-xs); }
.choice .delta { font-weight: 600; font-size: var(--t-sm); white-space: nowrap; }

/* Cantidad */
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--r-pill); background: var(--surface); }
.stepper button { width: 38px; height: 38px; border: 0; background: transparent; border-radius: 50%; display: grid; place-items: center; }
.stepper button:hover { background: rgba(30, 25, 22, .06); }
.stepper output { min-width: 28px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.stepper.sm button { width: 30px; height: 30px; }

/* ---------- Superficies ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.panel { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s5); }
.divider { height: 1px; background: var(--line); border: 0; margin: var(--s3) 0; }

/* Insignias */
.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: var(--r-pill); font-size: var(--t-xs); font-weight: 600; background: #EFE9E2; color: var(--carbon-3); white-space: nowrap; }
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.ok { background: var(--st-listo-bg); color: var(--st-listo); }
.badge.warn { background: #FFF4E0; color: var(--warn); }
.badge.danger { background: var(--st-incidencia-bg); color: var(--danger); }
.badge.info { background: var(--st-encamino-bg); color: var(--info); }
.badge.dark { background: var(--carbon); color: #fff; }
.st-badge { --c: var(--muted); --b: #EFE9E2; background: var(--b); color: var(--c); }
[data-status="NUEVO"] { --c: var(--st-nuevo); --b: var(--st-nuevo-bg); }
[data-status="TOMADO"] { --c: var(--st-tomado); --b: var(--st-tomado-bg); }
[data-status="PREPARANDO"] { --c: var(--st-preparando); --b: var(--st-preparando-bg); }
[data-status="LISTO"] { --c: var(--st-listo); --b: var(--st-listo-bg); }
[data-status="ASIGNADO"] { --c: var(--st-asignado); --b: var(--st-asignado-bg); }
[data-status="EN_CAMINO"] { --c: var(--st-encamino); --b: var(--st-encamino-bg); }
[data-status="ENTREGADO"] { --c: var(--st-entregado); --b: var(--st-entregado-bg); }
[data-status="CANCELADO"] { --c: var(--st-cancelado); --b: var(--st-cancelado-bg); }

/* Conexión */
.conn { display: inline-flex; align-items: center; gap: 7px; font-size: var(--t-xs); font-weight: 600; padding: 5px 10px; border-radius: var(--r-pill); background: rgba(43, 138, 62, .12); color: var(--ok); }
.conn::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.conn.offline { background: rgba(201, 42, 42, .12); color: var(--danger); }
.conn.offline::before { animation: blink 1.2s infinite; }
.conn.syncing { background: rgba(183, 110, 0, .14); color: var(--warn); }
.on-dark .conn { background: rgba(105, 219, 124, .14); color: #8CE99A; }
.on-dark .conn.offline { background: rgba(255, 135, 135, .16); color: #FFA8A8; }
.on-dark .conn.syncing { background: rgba(255, 212, 59, .14); color: #FFD43B; }
@keyframes blink { 50% { opacity: .25; } }

/* ---------- Diálogos y hojas ---------- */
.overlay { position: fixed; inset: 0; z-index: 80; background: rgba(30, 25, 22, .45); display: flex; align-items: center; justify-content: center; padding: var(--s4); animation: fade .16s var(--ease); }
.dialog { width: min(520px, 100%); max-height: min(88dvh, 860px); display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--shadow-3); animation: pop .2s var(--ease); overflow: hidden; }
.dialog.wide { width: min(760px, 100%); }
.dialog-head { display: flex; align-items: flex-start; gap: var(--s3); padding: var(--s5) var(--s5) var(--s3); }
.dialog-head h2 { font-size: var(--t-lg); }
.dialog-head p { color: var(--muted); font-size: var(--t-sm); margin-top: 4px; }
.dialog-body { padding: 0 var(--s5) var(--s4); overflow: auto; }
.dialog-foot { display: flex; flex-wrap: wrap; gap: var(--s2); justify-content: flex-end; padding: var(--s3) var(--s5) var(--s5); border-top: 1px solid var(--line); background: var(--surface-2); }
@media (max-width: 640px) {
  .overlay.sheet-mobile { align-items: flex-end; padding: 0; }
  .overlay.sheet-mobile .dialog { width: 100%; max-height: 92dvh; border-radius: var(--r-xl) var(--r-xl) 0 0; animation: rise .22s var(--ease); }
  .dialog-foot { padding-bottom: max(var(--s5), env(safe-area-inset-bottom)); }
}
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
@keyframes rise { from { transform: translateY(40px); opacity: .6; } }

/* Toasts */
.toasts { position: fixed; z-index: 120; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); transform: translateX(-50%); display: grid; gap: 8px; width: min(440px, calc(100% - 24px)); pointer-events: none; }
.toast { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-md); background: var(--carbon); color: #fff; box-shadow: var(--shadow-3); font-size: var(--t-sm); animation: pop .2s var(--ease); pointer-events: auto; }
.toast.ok .ic { color: #8CE99A; } .toast.error { background: #8E1F1F; } .toast.warn .ic { color: #FFD43B; }
.toast button { margin-left: auto; background: none; border: 0; color: #fff; opacity: .7; padding: 0 2px; }

/* Estados vacíos y carga */
.empty { display: grid; justify-items: center; gap: 8px; text-align: center; padding: var(--s8) var(--s4); color: var(--muted); }
.empty .ic { width: 34px; height: 34px; color: var(--faint); stroke-width: 1.6; }
.empty h3 { color: var(--carbon); font-size: var(--t-md); }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, #EFE9E2 25%, #F7F3EE 50%, #EFE9E2 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: var(--r-md); }
@keyframes shimmer { to { background-position: -200% 0; } }
.notice { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-md); background: #FFF4E0; color: #6E4500; font-size: var(--t-sm); }
.notice.info { background: var(--st-encamino-bg); color: #164A80; }
.notice.danger { background: var(--st-incidencia-bg); color: #7A1A1A; }
.notice.ok { background: var(--st-listo-bg); color: #1D5C2A; }

/* Tablas simples (administración) */
.table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
.table th { text-align: left; font-weight: 500; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--surface-2); }
.table-wrap { max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; }

/* Interruptor */
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: var(--t-sm); }
.switch input { appearance: none; width: 40px; height: 24px; border-radius: 99px; background: var(--line-strong); position: relative; transition: background .15s; cursor: pointer; margin: 0; flex: none; }
.switch input::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-1); transition: transform .15s var(--ease); }
.switch input:checked { background: var(--st-listo); }
.switch input:checked::after { transform: translateX(16px); }
.switch input:focus-visible { box-shadow: var(--ring); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
/* Mensajes de WhatsApp (Caja) */
.msg-card.suggested { border-color: #1F9D55; box-shadow: inset 0 0 0 1px #1F9D55; }
.msg-card.done { opacity: .7; }
.wa-mini { background: #DCF8C6; border-radius: 10px; padding: 8px 10px; font-size: 13px; line-height: 1.4; max-height: 260px; overflow: auto; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; word-break: break-word; }
.wa-mini.tall { max-height: 320px; }
.msg-card { border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 12px; display: grid; gap: 8px; }
.msg-card pre { margin: 0; white-space: pre-wrap; font: inherit; font-size: var(--t-xs); color: var(--carbon-3); max-height: 140px; overflow: auto; }
/* Logo administrable */
.brand-logo { display: inline-flex; align-items: center; height: 40px; }
.brand-logo img { max-height: 100%; max-width: 170px; object-fit: contain; display: block; }
.brand-logo.plate { background: #fff; border-radius: 12px; padding: 4px 10px; height: 46px; }
.wordmark.has-logo { gap: 6px; }
.wordmark .brand-sub { font-size: .6875rem; opacity: .7; }

/* v3.2 — cierre de caja y clientes */
.cash-h { font-size: var(--t-md); font-weight: 600; margin: 0 0 8px; }
.cash-table td { padding: 9px 4px; }
.cash-table td.num { text-align: right; white-space: nowrap; }
.cash-table tr.cash-total td { border-top: 2px solid var(--line); font-weight: 600; }
.cash-mess { display: grid; gap: 8px; }
.cash-mess-row, .cash-move { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-md); }
.cash-mess-row .num, .cash-move .num { text-align: right; white-space: nowrap; }
.cash-move { margin-bottom: 6px; }
.cash-add { display: grid; grid-template-columns: 150px 130px 1fr auto; gap: 8px; margin-top: 8px; }
.cash-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.cash-count { background: var(--surface-2); border-radius: var(--r-lg); padding: 14px; }
.cash-result { display: flex; gap: 8px; align-items: center; margin: 12px 0 4px; padding: 12px 14px; border-radius: var(--r-md); background: var(--surface); border: 1px dashed var(--line); font-size: var(--t-md); }
.cash-result.ok { background: var(--st-listo-bg); color: #1D5C2A; border-style: solid; border-color: transparent; }
.cash-result.warn { background: #FFF4E0; color: #6E4500; border-style: solid; border-color: transparent; }
.cash-result.danger { background: var(--st-incidencia-bg); color: #7A1A1A; border-style: solid; border-color: transparent; }
.cust-badge { vertical-align: middle; }
.cust-badge .ic { width: 12px; height: 12px; }
.oc-note.oc-cnote { background: var(--st-listo-bg); color: #1D5C2A; }
.oc-cnote .ic { width: 13px; height: 13px; vertical-align: -2px; }
@media (max-width: 640px) { .cash-add, .cash-grid { grid-template-columns: 1fr; } }
