/* ============================================================
   MMAC Indumentaria — Sistema de gestión
   Paleta cálida con dorado de marca. Claro + oscuro.
   ============================================================ */

:root {
  --gold-1: #E8CF9A;
  --gold-2: #C9A75C;
  --gold-3: #A98436;
  --gold-soft: rgba(201, 167, 92, 0.14);
  --gold-line: rgba(201, 167, 92, 0.32);

  --bg: #F7F4EE;
  --bg-2: #EFEAE1;
  --panel: #FFFFFF;
  --panel-2: #FBF9F5;
  --text: #221E18;
  --text-2: #6B6257;
  --text-3: #9A9086;
  --border: #E4DDD0;
  --border-2: #D6CCBA;

  --sidebar-bg: #1C1811;
  --sidebar-text: #CFC5B4;
  --sidebar-active: rgba(201, 167, 92, 0.16);

  --ok: #2F8A5B;
  --ok-soft: rgba(47, 138, 91, 0.12);
  --warn: #C4831C;
  --warn-soft: rgba(196, 131, 28, 0.14);
  --danger: #C0453D;
  --danger-soft: rgba(192, 69, 61, 0.12);
  --info: #3A6EA5;
  --info-soft: rgba(58, 110, 165, 0.12);

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(34, 30, 24, .06), 0 8px 24px rgba(34, 30, 24, .07);
  --shadow-lg: 0 12px 48px rgba(34, 30, 24, .18);
  --sidebar-w: 246px;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
}

[data-theme="dark"] {
  --bg: #14110D;
  --bg-2: #1A1610;
  --panel: #1E1A14;
  --panel-2: #241F18;
  --text: #F0EAE0;
  --text-2: #ADA394;
  --text-3: #7E7466;
  --border: #2E2820;
  --border-2: #3C342A;

  --sidebar-bg: #100E0A;
  --sidebar-text: #BFB5A4;
  --sidebar-active: rgba(201, 167, 92, 0.2);

  --ok: #4FB07C;
  --ok-soft: rgba(79, 176, 124, 0.14);
  --warn: #E0A94A;
  --warn-soft: rgba(224, 169, 74, 0.14);
  --danger: #E0685F;
  --danger-soft: rgba(224, 104, 95, 0.14);
  --info: #6FA3DA;
  --info-soft: rgba(111, 163, 218, 0.14);

  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
  --shadow-lg: 0 16px 56px rgba(0,0,0,.55);
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.01em; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

.gold-text {
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2) 45%, var(--gold-3));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------------- Layout ---------------- */
.app { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  flex: 0 0 var(--sidebar-w);
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
  border-right: 1px solid rgba(201,167,92,.15);
  z-index: 40;
}

.sidebar-brand {
  padding: 22px 20px 18px;
  border-bottom: 1px solid rgba(201,167,92,.15);
  text-align: center;
}
.sidebar-brand .logo-word {
  font-family: var(--font-display);
  font-size: 34px; line-height: 1;
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2) 50%, var(--gold-3));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.sidebar-brand .logo-sub {
  font-family: var(--font-display);
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-2); margin-top: 4px; opacity: .9;
}

.nav { padding: 12px 10px; overflow-y: auto; flex: 1; }
.nav-section {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .13em;
  color: rgba(207,197,180,.42); padding: 14px 12px 6px; font-weight: 600;
}
.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  color: var(--sidebar-text); cursor: pointer; font-size: 13.5px;
  transition: background .15s, color .15s; margin-bottom: 2px;
  border: 1px solid transparent;
}
.nav-item:hover { background: rgba(255,255,255,.05); color: #fff; }
.nav-item.active {
  background: var(--sidebar-active); color: var(--gold-1);
  border-color: rgba(201,167,92,.28); font-weight: 500;
}
.nav-item svg { width: 17px; height: 17px; flex: 0 0 17px; opacity: .85; }
.nav-item .badge {
  margin-left: auto; background: var(--danger); color: #fff;
  font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 20px;
}

.sidebar-foot { padding: 12px; border-top: 1px solid rgba(201,167,92,.15); }
.user-chip {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px;
  border-radius: var(--radius-sm); background: rgba(255,255,255,.04);
}
.user-chip .avatar {
  width: 32px; height: 32px; border-radius: 50%; flex: 0 0 32px;
  background: linear-gradient(135deg, var(--gold-2), var(--gold-3));
  color: #1C1811; display: grid; place-items: center; font-weight: 700; font-size: 13px;
}
.user-chip .meta { min-width: 0; }
.user-chip .name { font-size: 12.5px; color: #EDE5D8; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-chip .role { font-size: 10.5px; color: rgba(207,197,180,.55); text-transform: capitalize; }
.icon-btn-ghost {
  margin-left: auto; background: none; border: none; color: rgba(207,197,180,.7);
  cursor: pointer; padding: 6px; border-radius: 8px; display: grid; place-items: center;
}
.icon-btn-ghost:hover { background: rgba(255,255,255,.07); color: #fff; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  height: 62px; flex: 0 0 62px;
  background: var(--panel); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 14px; padding: 0 22px;
  position: sticky; top: 0; z-index: 30;
}
.topbar h1 { font-size: 18px; font-weight: 600; }
.topbar .spacer { flex: 1; }
.topbar-sub { font-size: 12px; color: var(--text-3); }

.content { padding: 22px; flex: 1; max-width: 1500px; width: 100%; }

/* ---------------- Componentes ---------------- */
.card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.card-pad { padding: 18px; }
.card-head {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 15px 18px; border-bottom: 1px solid var(--border);
}
.card-head h3 { font-size: 14.5px; }
.card-head .spacer { flex: 1; }

.grid { display: grid; gap: 16px; }
/* Sin esto, un hijo con contenido ancho estira la columna y desborda la pantalla. */
.grid > *, .pos > * { min-width: 0; }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row-tight { display: flex; gap: 6px; align-items: center; }
.spacer { flex: 1; }
.stack { display: flex; flex-direction: column; gap: 14px; }

/* KPIs */
.kpi { padding: 16px 18px; }
.kpi .kpi-label { font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--text-3); font-weight: 600; }
.kpi .kpi-value { font-size: 25px; font-weight: 650; margin-top: 6px; letter-spacing: -.02em; }
.kpi .kpi-foot { font-size: 12px; color: var(--text-2); margin-top: 4px; }
.kpi.accent { border-color: var(--gold-line); background: linear-gradient(160deg, var(--gold-soft), transparent 70%), var(--panel); }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 15px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-2); background: var(--panel);
  color: var(--text); font-size: 13.5px; font-weight: 500; cursor: pointer;
  transition: background .15s, border-color .15s, transform .05s;
  white-space: nowrap;
}
.btn:hover { background: var(--panel-2); border-color: var(--gold-line); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn svg { width: 16px; height: 16px; }
.btn-primary {
  background: linear-gradient(135deg, var(--gold-2), var(--gold-3));
  border-color: var(--gold-3); color: #1C1811; font-weight: 600;
}
.btn-primary:hover { filter: brightness(1.07); background: linear-gradient(135deg, var(--gold-2), var(--gold-3)); }
.btn-dark { background: var(--sidebar-bg); color: #EDE5D8; border-color: var(--sidebar-bg); }
.btn-danger { color: var(--danger); border-color: var(--danger-soft); background: var(--danger-soft); }
.btn-danger:hover { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-ok { color: var(--ok); border-color: var(--ok-soft); background: var(--ok-soft); }
.btn-sm { padding: 6px 11px; font-size: 12.5px; border-radius: 8px; }
.btn-lg { padding: 13px 22px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-icon { padding: 8px; }

/* Formularios */
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field label { font-size: 12px; font-weight: 600; color: var(--text-2); }
.field .hint { font-size: 11.5px; color: var(--text-3); }
.input, .select, .textarea {
  width: 100%; padding: 9px 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-2); background: var(--panel);
  transition: border-color .15s, box-shadow .15s; outline: none;
}
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--gold-2); box-shadow: 0 0 0 3px var(--gold-soft);
}
.textarea { resize: vertical; min-height: 74px; }
.input-lg { padding: 13px 15px; font-size: 16px; }
.input-code { font-family: 'SF Mono', ui-monospace, Menlo, Consolas, monospace; letter-spacing: .12em; text-transform: uppercase; }
/* El espaciado entre letras corría el texto sobre el cursor y la primera letra del
   placeholder se veía montada. El texto de ayuda va con tipografía normal. */
.input-code::placeholder {
  font-family: var(--font);
  letter-spacing: normal;
  text-transform: none;
}
.checkbox { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; }
.checkbox input { width: 16px; height: 16px; accent-color: var(--gold-2); }

.search-wrap { position: relative; flex: 1; min-width: 180px; }
.search-wrap svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--text-3); pointer-events: none; }
.search-wrap .input { padding-left: 34px; }

/* Tablas */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
table.tbl th {
  text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--text-3); font-weight: 600; padding: 10px 12px;
  border-bottom: 1px solid var(--border); white-space: nowrap; background: var(--panel);
  position: sticky; top: 0; z-index: 1;
}
table.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.tbl tbody tr:hover { background: var(--panel-2); }
table.tbl tbody tr:last-child td { border-bottom: none; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.muted { color: var(--text-3); }
.small { font-size: 12px; }
.strong { font-weight: 600; }

/* Teclas del teclado */
.kbd {
  display: inline-block;
  font-family: 'SF Mono', ui-monospace, Menlo, Consolas, monospace;
  font-size: 11.5px; font-weight: 600; line-height: 1;
  padding: 4px 7px; border-radius: 6px;
  background: var(--panel-2); color: var(--text-2);
  border: 1px solid var(--border-2);
  box-shadow: 0 1.5px 0 var(--border-2);
  white-space: nowrap;
}
.kbd-sm { font-size: 10.5px; padding: 2px 5px; box-shadow: 0 1px 0 var(--border-2); }
.kbd-dup { border-color: var(--danger); color: var(--danger); }
.kbd-on-dark {
  background: rgba(0,0,0,.16); color: inherit;
  border-color: rgba(0,0,0,.2); box-shadow: none; margin-left: 6px;
}
.pay-btn .kbd { display: block; margin: 4px auto 0; }
.pay-btn.active .kbd { border-color: var(--gold-line); }

.code-chip {
  display: inline-block; font-family: 'SF Mono', ui-monospace, Menlo, Consolas, monospace;
  font-size: 12px; letter-spacing: .09em; font-weight: 600;
  padding: 3px 8px; border-radius: 6px;
  background: var(--gold-soft); color: var(--gold-3); border: 1px solid var(--gold-line);
}
[data-theme="dark"] .code-chip { color: var(--gold-1); }

.tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 20px;
  background: var(--bg-2); color: var(--text-2); border: 1px solid var(--border);
}
.tag-ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.tag-warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.tag-danger { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.tag-info { background: var(--info-soft); color: var(--info); border-color: transparent; }

/* Modal */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(20,17,13,.55);
  backdrop-filter: blur(3px); z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 18px;
  animation: fade .14s ease;
}
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }
.modal {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 18px; box-shadow: var(--shadow-lg);
  width: 100%; max-width: 560px; max-height: 92vh;
  display: flex; flex-direction: column; overflow: hidden;
  animation: pop .16s cubic-bezier(.2,.9,.3,1.1);
}
@keyframes pop { from { transform: translateY(12px) scale(.98); opacity: 0 } to { transform: none; opacity: 1 } }
.modal-lg { max-width: 860px; }
.modal-sm { max-width: 420px; }
.modal-head { padding: 17px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; }
.modal-head h3 { font-size: 16px; }
.modal-body { padding: 20px; overflow-y: auto; }
.modal-foot { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; gap: 10px; justify-content: flex-end; background: var(--panel-2); }

/* Toasts */
.toasts { position: fixed; bottom: 20px; right: 20px; z-index: 200; display: flex; flex-direction: column; gap: 9px; max-width: 380px; }
.toast {
  background: var(--panel); border: 1px solid var(--border); border-left: 3px solid var(--gold-2);
  border-radius: 12px; padding: 12px 15px; box-shadow: var(--shadow-lg);
  font-size: 13.5px; animation: slideIn .2s ease;
}
@keyframes slideIn { from { transform: translateX(28px); opacity: 0 } to { transform: none; opacity: 1 } }
.toast.ok { border-left-color: var(--ok); }
.toast.error { border-left-color: var(--danger); }
.toast.warn { border-left-color: var(--warn); }
.toast .t-title { font-weight: 600; margin-bottom: 2px; }

/* Estados vacíos y carga */
.empty { text-align: center; padding: 46px 20px; color: var(--text-3); }
.empty svg { width: 40px; height: 40px; opacity: .35; margin-bottom: 12px; }
.empty h4 { color: var(--text-2); font-size: 14.5px; margin-bottom: 5px; }
.skeleton { background: linear-gradient(90deg, var(--bg-2) 25%, var(--border) 50%, var(--bg-2) 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 8px; }
@keyframes sk { from { background-position: 200% 0 } to { background-position: -200% 0 } }
.spinner { width: 17px; height: 17px; border: 2px solid var(--border-2); border-top-color: var(--gold-2); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg) } }

/* ---------------- Punto de venta ---------------- */
.pos { display: grid; grid-template-columns: 1fr 400px; gap: 16px; align-items: start; }
.pos-scan { padding: 16px; }
.pos-scan .scan-row { display: flex; gap: 10px; }
.pos-scan .input { font-size: 17px; padding: 14px 16px; }

.cart-item {
  display: grid; grid-template-columns: 1fr auto; gap: 6px 12px;
  padding: 11px 0; border-bottom: 1px solid var(--border);
}
.cart-item:last-child { border-bottom: none; }
.cart-item .ci-name { font-weight: 550; font-size: 13.5px; }
.cart-item .ci-meta { font-size: 11.5px; color: var(--text-3); margin-top: 2px; }
.cart-item .ci-total { font-weight: 650; font-variant-numeric: tabular-nums; }
.qty-ctrl { display: inline-flex; align-items: center; border: 1px solid var(--border-2); border-radius: 8px; overflow: hidden; }
.qty-ctrl button { width: 28px; height: 28px; border: none; background: var(--panel-2); cursor: pointer; font-size: 15px; line-height: 1; color: var(--text-2); }
.qty-ctrl button:hover { background: var(--gold-soft); color: var(--gold-3); }
.qty-ctrl input { width: 46px; border: none; text-align: center; background: transparent; padding: 4px; font-variant-numeric: tabular-nums; }

.totals-row { display: flex; justify-content: space-between; padding: 5px 0; font-size: 13.5px; }
.totals-row.grand { font-size: 21px; font-weight: 700; padding-top: 12px; margin-top: 8px; border-top: 1px dashed var(--border-2); }

.pay-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.pay-btn {
  padding: 11px 6px; border-radius: 10px; border: 1px solid var(--border-2);
  background: var(--panel); cursor: pointer; font-size: 12px; text-align: center; font-weight: 500;
}
.pay-btn.active { border-color: var(--gold-2); background: var(--gold-soft); color: var(--gold-3); font-weight: 650; }
[data-theme="dark"] .pay-btn.active { color: var(--gold-1); }

.result-list { max-height: 320px; overflow-y: auto; }
.result-item { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; cursor: pointer; }
.result-item:hover { background: var(--gold-soft); }
.result-item .ri-name { font-weight: 550; font-size: 13.5px; }
.result-item .ri-meta { font-size: 11.5px; color: var(--text-3); }

/* Escáner de cámara */
#scanner-video { width: 100%; border-radius: 12px; background: #000; max-height: 62vh; object-fit: cover; }
.scan-frame { position: relative; }
.scan-frame::after {
  content: ''; position: absolute; inset: 16% 8%; border: 2px solid var(--gold-2);
  border-radius: 12px; box-shadow: 0 0 0 100vmax rgba(0,0,0,.35); pointer-events: none;
}

/* Etiquetas / códigos de barras */
.label-sheet { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.label-card {
  border: 1px dashed var(--border-2); border-radius: 8px; padding: 8px;
  text-align: center; background: #fff; color: #000;
}
.label-card .l-name { font-size: 10.5px; font-weight: 600; height: 26px; overflow: hidden; line-height: 1.2; }
.label-card .l-price { font-size: 15px; font-weight: 700; margin-top: 2px; }
.label-card .l-code { font-family: ui-monospace, Menlo, monospace; font-size: 11px; letter-spacing: .14em; font-weight: 700; }
.label-card svg { max-width: 100%; height: auto; }

/* Gráficos simples */
.bars { display: flex; align-items: stretch; gap: 8px; height: 150px; padding-top: 8px; }
.bar-col {
  flex: 1; height: 100%; min-width: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  align-items: center; gap: 6px;
}
.bar {
  width: 100%; border-radius: 6px 6px 2px 2px; min-height: 3px;
  background: linear-gradient(180deg, var(--gold-2), var(--gold-3)); transition: height .3s;
}
.bar-label { font-size: 10.5px; color: var(--text-3); white-space: nowrap; }
.bar-value { font-size: 10.5px; font-weight: 600; color: var(--text-2); }

.progress { height: 7px; background: var(--bg-2); border-radius: 6px; overflow: hidden; }
.progress > div { height: 100%; background: linear-gradient(90deg, var(--gold-2), var(--gold-3)); border-radius: 6px; }

/* Barra móvil */
.mobile-nav { display: none; }
.mobile-header { display: none; }

/* Impresión de ticket */
.ticket {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 12px;
  color: #000; background: #fff; padding: 12px; width: 100%;
}
.ticket .t-center { text-align: center; }
.ticket .t-line { border-top: 1px dashed #000; margin: 7px 0; }
.ticket table { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.ticket td { padding: 1px 0; vertical-align: top; }

@media print {
  body * { visibility: hidden !important; }
  #print-area, #print-area * { visibility: visible !important; }
  #print-area { position: absolute; inset: 0; width: 100%; padding: 0; background: #fff; }
  .label-card { break-inside: avoid; border-color: #bbb; }
  @page { margin: 8mm; }
}

/* ---------------- Responsive ---------------- */
@media (max-width: 1180px) {
  .pos { grid-template-columns: 1fr 340px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 900px) {
  html, body { overflow-x: hidden; }
  .sidebar { display: none; }
  .topbar { display: none; }

  .mobile-header {
    display: flex; align-items: center; gap: 12px;
    height: 56px; padding: 0 16px; background: var(--sidebar-bg);
    position: sticky; top: 0; z-index: 30; color: #EDE5D8;
  }
  .mobile-header .logo-word { font-family: var(--font-display); font-size: 22px; }
  .mobile-header .m-title { font-size: 14px; font-weight: 600; opacity: .9; }

  .content { padding: 14px; padding-bottom: 84px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .pos { grid-template-columns: 1fr; }

  .mobile-nav {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
    background: var(--panel); border-top: 1px solid var(--border);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 20px rgba(0,0,0,.08);
  }
  .mobile-nav .mn-item {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 7px 2px; border-radius: 10px; font-size: 10px; color: var(--text-3);
    cursor: pointer; border: none; background: none;
  }
  .mobile-nav .mn-item svg { width: 20px; height: 20px; }
  .mobile-nav .mn-item.active { color: var(--gold-3); background: var(--gold-soft); }
  [data-theme="dark"] .mobile-nav .mn-item.active { color: var(--gold-1); }

  .modal { max-width: 100%; max-height: 94vh; border-radius: 16px 16px 0 0; align-self: flex-end; }
  .modal-backdrop { padding: 0; align-items: flex-end; }
  .toasts { left: 12px; right: 12px; bottom: 76px; max-width: none; }

  table.tbl { font-size: 12.5px; }
  table.tbl th, table.tbl td { padding: 9px 8px; }
  .hide-mobile { display: none !important; }
  .btn { padding: 10px 14px; }
  .btn-lg { padding: 12px 16px; font-size: 14.5px; }
  .pos-scan .input-lg { font-size: 16px; }
  .search-wrap { min-width: 120px; }
}

@media (max-width: 480px) {
  .pay-methods { grid-template-columns: repeat(2, 1fr); }
  .content { padding: 12px; padding-bottom: 84px; }
}
