/* Donde Te Dije — light theme, liquid glass, magenta claro y contenido */
:root {
  --bg: #f6f4f8;
  --surface: rgba(255, 255, 255, .58);
  --surface-strong: rgba(255, 255, 255, .78);
  --glass-border: rgba(255, 255, 255, .68);
  --border: rgba(30, 26, 36, .08);
  --border-strong: rgba(30, 26, 36, .14);
  --text: #26222b;
  --text-2: #6f6a77;
  --text-3: #a09aa8;
  --accent: #e668a7;
  --accent-hover: #d94f96;
  --accent-soft: rgba(230, 104, 167, .10);
  --accent-border: rgba(230, 104, 167, .28);
  --ok: #199d6f;
  --ok-soft: rgba(25, 157, 111, .10);
  --warn: #b06000;
  --warn-soft: rgba(176, 96, 0, .10);
  --danger: #c62838;
  --danger-soft: rgba(198, 40, 56, .09);
  --info: #3a67c0;
  --info-soft: rgba(58, 103, 192, .10);
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(28, 26, 31, .04), 0 8px 24px -12px rgba(28, 26, 31, .10);
  --shadow-lg: 0 18px 50px -12px rgba(28, 26, 31, .22);
  --blur: saturate(1.6) blur(18px);
  --sidebar-w: 216px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background:
    radial-gradient(680px 420px at 12% -6%, rgba(230, 104, 167, .07), transparent 60%),
    radial-gradient(720px 480px at 105% 12%, rgba(140, 120, 220, .06), transparent 60%),
    radial-gradient(600px 500px at 55% 115%, rgba(230, 104, 167, .05), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

.icon {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor;
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0; display: inline-block; vertical-align: middle;
}
.icon.sm { width: 14px; height: 14px; }
.icon.lg { width: 24px; height: 24px; }

/* ---------- layout ---------- */
.app { display: flex; min-height: 100dvh; }

.sidebar {
  width: var(--sidebar-w);
  background: var(--surface);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  position: fixed; inset: 0 auto 0 0;
  padding: 16px 10px;
  z-index: 40;
}
.brand { display: flex; align-items: center; gap: 9px; padding: 2px 8px 15px; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--accent-soft); color: var(--accent);
  border: 1px solid var(--accent-border);
  display: grid; place-items: center;
}
.brand-mark .icon { width: 16px; height: 16px; }
.brand-text { min-width: 0; }
.brand-text strong { display: block; font-size: 13px; letter-spacing: -.01em; }
.brand-text small { color: var(--text-3); font-size: 10.5px; text-transform: capitalize; }

.nav { display: flex; flex-direction: column; gap: 1px; flex: 1; overflow-y: auto; }
.nav-link {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 10px; border-radius: var(--radius-sm);
  color: var(--text-2); font-weight: 500; font-size: 12.5px;
  border: 1px solid transparent;
  transition: background .12s, color .12s, border-color .12s;
}
.nav-link .icon { width: 16px; height: 16px; }
.nav-link:hover { background: rgba(255, 255, 255, .5); color: var(--text); }
.nav-link.active {
  background: var(--surface-strong);
  border-color: var(--glass-border);
  color: var(--text);
  box-shadow: var(--shadow);
}
.nav-link.active .icon { color: var(--accent); }
.nav-link.logout { color: var(--text-3); margin-top: 6px; }
.nav-link.logout:hover { color: var(--danger); background: var(--danger-soft); }

.main {
  flex: 1;
  min-width: 0;
  margin-left: var(--sidebar-w);
  padding: 22px 26px 54px;
  max-width: 1240px;
}

.tabbar { display: none; }

/* ---------- header de página ---------- */
.page-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 16px; flex-wrap: wrap;
}
.page-head h1 { font-size: 17px; letter-spacing: -.02em; font-weight: 700; }
.page-head .sub { color: var(--text-3); font-size: 11.5px; margin-top: 1px; }
.head-actions { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }

/* ---------- componentes ---------- */
.card {
  background: var(--surface);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-pad { padding: 14px; }
.card h3 { font-size: 12px; font-weight: 650; margin-bottom: 10px; letter-spacing: .01em; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 6px 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, .55);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  color: var(--text);
  font-weight: 550; font-size: 12px; cursor: pointer;
  transition: background .12s, border-color .12s, opacity .12s;
  white-space: nowrap;
}
.btn:hover { background: rgba(255, 255, 255, .85); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn .icon { width: 15px; height: 15px; }
.btn-primary { background: var(--accent); border-color: transparent; color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-soft { background: var(--accent-soft); border-color: var(--accent-border); color: var(--accent-hover); }
.btn-soft:hover { background: rgba(230, 104, 167, .18); }
.btn-ok { background: var(--ok); border-color: transparent; color: #fff; }
.btn-ok:hover { background: #128a60; }
.btn-danger-soft { background: var(--danger-soft); border-color: rgba(198, 40, 56, .22); color: var(--danger); }
.btn-danger-soft:hover { background: rgba(198, 40, 56, .16); }
.btn-ghost { border-color: transparent; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; color: var(--text-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, .6); color: var(--text); }
.btn-block { width: 100%; }
.btn-lg { padding: 10px 15px; font-size: 13px; border-radius: 11px; }
.btn-sm { padding: 4px 9px; font-size: 11.5px; }
.btn-icon { padding: 6px; }

.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.field > span { font-size: 11px; font-weight: 600; color: var(--text-2); }
.field input, .field select, .field textarea, .input {
  padding: 7px 10px; border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .6);
  font-size: 12.5px;
  outline: none; width: 100%;
  transition: border-color .12s, box-shadow .12s, background .12s;
}
.field input:focus, .field select:focus, .field textarea:focus, .input:focus {
  border-color: var(--accent-border); background: rgba(255, 255, 255, .9);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field textarea { resize: vertical; min-height: 58px; }
.field-row { display: flex; gap: 9px; }
.field-row .field { flex: 1; min-width: 0; }

.search-box { position: relative; }
.search-box .icon {
  position: absolute; left: 9px; top: 50%; transform: translateY(-50%);
  color: var(--text-3); width: 15px; height: 15px; pointer-events: none;
}
.search-box input { padding-left: 30px; min-width: 200px; }

.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 99px;
  font-size: 10.5px; font-weight: 650; letter-spacing: .01em;
  background: rgba(255, 255, 255, .55); color: var(--text-2);
  border: 1px solid var(--border);
}
.badge .icon { width: 11px; height: 11px; }
.badge.magenta { background: var(--accent-soft); color: var(--accent-hover); border-color: var(--accent-border); }
.badge.ok { background: var(--ok-soft); color: var(--ok); border-color: rgba(25, 157, 111, .22); }
.badge.warn { background: var(--warn-soft); color: var(--warn); border-color: rgba(176, 96, 0, .2); }
.badge.danger { background: var(--danger-soft); color: var(--danger); border-color: rgba(198, 40, 56, .2); }
.badge.info { background: var(--info-soft); color: var(--info); border-color: rgba(58, 103, 192, .2); }

.st-pendiente { background: var(--warn-soft); color: var(--warn); border-color: rgba(176, 96, 0, .2); }
.st-confirmada { background: var(--info-soft); color: var(--info); border-color: rgba(58, 103, 192, .2); }
.st-preparando { background: var(--accent-soft); color: var(--accent-hover); border-color: var(--accent-border); }
.st-lista { background: rgba(122, 43, 191, .09); color: #7a2bbf; border-color: rgba(122, 43, 191, .2); }
.st-en_ruta { background: var(--info-soft); color: var(--info); border-color: rgba(58, 103, 192, .2); }
.st-entregada { background: var(--ok-soft); color: var(--ok); border-color: rgba(25, 157, 111, .22); }
.st-cancelada { background: var(--danger-soft); color: var(--danger); border-color: rgba(198, 40, 56, .2); }

.muted { color: var(--text-3); }
.small { font-size: 11.5px; }
.mono { font-variant-numeric: tabular-nums; }
.right { text-align: right; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.row { display: flex; align-items: center; gap: 8px; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; }
.mt { margin-top: 12px; }
.mb { margin-bottom: 12px; }

/* tabs de filtro */
.chips { display: flex; gap: 5px; flex-wrap: wrap; }
.chip {
  padding: 4.5px 11px; border-radius: 99px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, .5);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  font-size: 11.5px; font-weight: 550; color: var(--text-2); cursor: pointer;
  transition: all .12s;
}
.chip:hover { background: rgba(255, 255, 255, .85); color: var(--text); }
.chip.active { background: var(--text); border-color: var(--text); color: #fff; }
.chip .count { opacity: .7; font-size: 10px; margin-left: 3px; }

/* tablas */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 12px; }
.table th {
  text-align: left; padding: 8px 12px; font-size: 10px;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--text-3); border-bottom: 1px solid var(--border);
  font-weight: 650; white-space: nowrap;
}
.table td { padding: 8px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table tbody tr { transition: background .1s; }
.table tbody tr:hover { background: rgba(255, 255, 255, .5); }
.table tr.clickable { cursor: pointer; }

/* stats */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.stat { padding: 12px 14px; }
.stat .label { font-size: 10.5px; color: var(--text-3); font-weight: 600; display: flex; align-items: center; gap: 5px; }
.stat .label .icon { width: 13px; height: 13px; }
.stat .value { font-size: 19px; font-weight: 700; letter-spacing: -.02em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.stat .delta { font-size: 10.5px; color: var(--text-3); margin-top: 1px; }
.stat.accent .value { color: var(--accent-hover); }

/* grids de tarjetas */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.grid-2 > *, .grid-3 > *, .cards-grid > *, .pos-layout > *, .stat-grid > *, .kds-grid > * { min-width: 0; }

.week-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.week-grid > * { min-width: 0; }
.week-day { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px; }
.week-day.today { border-color: var(--accent-border); background: var(--accent-soft); }
.week-day-head { font-weight: 650; font-size: 12.5px; margin-bottom: 8px; }
@media (max-width: 900px) { .week-grid { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); } }

/* orden card (cocina / listas) */
.order-card { display: flex; flex-direction: column; gap: 8px; padding: 12px; }
.order-card .items { display: flex; flex-direction: column; gap: 3px; font-size: 12px; }
.order-card .items .qty { color: var(--accent-hover); font-weight: 700; min-width: 24px; display: inline-block; }
.order-card .item-note { color: var(--warn); font-size: 11px; padding-left: 24px; }
.timer { font-variant-numeric: tabular-nums; font-weight: 650; font-size: 12px; }
.timer.late { color: var(--danger); }
.timer.warn { color: var(--warn); }

/* modal */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(38, 34, 43, .3);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  display: none; align-items: flex-end; justify-content: center;
  z-index: 90; padding: 0;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: rgba(252, 251, 253, .82);
  -webkit-backdrop-filter: saturate(1.6) blur(26px); backdrop-filter: saturate(1.6) blur(26px);
  border: 1px solid var(--glass-border);
  width: 100%; max-width: 600px;
  border-radius: 18px 18px 0 0; max-height: 92dvh;
  display: flex; flex-direction: column;
  animation: slideUp .18s ease;
}
@keyframes slideUp { from { transform: translateY(30px); opacity: .6; } to { transform: none; opacity: 1; } }
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 17px; border-bottom: 1px solid var(--border);
}
.modal-head h2 { font-size: 14px; }
.modal-body { padding: 15px 17px; overflow-y: auto; }
.modal-body .card { background: rgba(255, 255, 255, .5); }
.modal-foot { padding: 12px 17px; border-top: 1px solid var(--border); display: flex; gap: 7px; justify-content: flex-end; flex-wrap: wrap; }
@media (min-width: 720px) {
  .modal-backdrop { align-items: center; padding: 24px; }
  .modal { border-radius: 16px; box-shadow: var(--shadow-lg); }
}

/* toasts */
.toasts { position: fixed; top: 14px; right: 14px; z-index: 200; display: flex; flex-direction: column; gap: 7px; }
.toast {
  background: rgba(38, 34, 43, .82);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  color: #fff;
  padding: 9px 14px; border-radius: 10px; font-size: 12px;
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 8px;
  animation: slideUp .18s ease; max-width: 320px;
}
.toast.ok { background: rgba(25, 157, 111, .88); }
.toast.error { background: rgba(198, 40, 56, .88); }
.toast .icon { width: 15px; height: 15px; }

/* timeline */
.timeline { display: flex; flex-direction: column; gap: 0; }
.tl-item { display: flex; gap: 11px; position: relative; padding-bottom: 12px; }
.tl-item::before {
  content: ""; position: absolute; left: 6px; top: 16px; bottom: 0;
  width: 1.5px; background: var(--border-strong);
}
.tl-item:last-child::before { display: none; }
.tl-dot {
  width: 13px; height: 13px; border-radius: 50%;
  background: rgba(255, 255, 255, .8); border: 2px solid var(--accent);
  flex-shrink: 0; margin-top: 2px; z-index: 1;
}
.tl-body { font-size: 12px; }
.tl-body .when { color: var(--text-3); font-size: 10.5px; }

/* login */
.login-body {
  min-height: 100dvh; display: grid; place-items: center;
  background:
    radial-gradient(560px 400px at 18% 8%, rgba(230, 104, 167, .10), transparent 60%),
    radial-gradient(620px 460px at 88% 82%, rgba(140, 120, 220, .09), transparent 60%),
    var(--bg);
  padding: 20px;
  font-size: 13px;
}
.login-card {
  background: var(--surface);
  -webkit-backdrop-filter: saturate(1.6) blur(26px); backdrop-filter: saturate(1.6) blur(26px);
  border: 1px solid var(--glass-border);
  border-radius: 18px; box-shadow: var(--shadow-lg);
  padding: 30px 26px; width: 100%; max-width: 350px; text-align: center;
}
.login-logo {
  width: 50px; height: 50px; border-radius: 14px; margin: 0 auto 12px;
  background: var(--accent-soft); color: var(--accent);
  border: 1px solid var(--accent-border);
  display: grid; place-items: center;
}
.login-logo .icon { width: 25px; height: 25px; }
.login-card h1 { font-size: 17px; letter-spacing: -.02em; }
.login-card .muted { margin: 3px 0 18px; font-size: 11.5px; }
.login-card form { text-align: left; }
.alert {
  background: var(--danger-soft); color: var(--danger);
  border: 1px solid rgba(198, 40, 56, .2); border-radius: var(--radius-sm);
  padding: 8px 12px; font-size: 12px; margin-bottom: 12px;
}

/* nueva orden (POS) */
.pos-layout { display: grid; grid-template-columns: 1fr 330px; gap: 14px; align-items: start; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(138px, 1fr)); gap: 8px; }
.product-tile {
  padding: 10px; text-align: left; cursor: pointer;
  border: 1px solid var(--glass-border); border-radius: var(--radius-sm);
  background: var(--surface);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  box-shadow: var(--shadow);
  transition: border-color .12s, transform .08s, background .12s;
}
.product-tile:hover { border-color: var(--accent-border); background: rgba(255, 255, 255, .85); }
.product-tile:active { transform: scale(.97); }
.product-tile .p-name { font-weight: 600; font-size: 12px; }
.product-tile .p-desc { font-size: 10.5px; color: var(--text-3); margin: 1px 0 5px; min-height: 13px; }
.product-tile .p-price { color: var(--text-2); font-weight: 700; font-size: 12px; }
.cart-panel { position: sticky; top: 18px; }
.cart-items { display: flex; flex-direction: column; }
.cart-item { display: flex; align-items: flex-start; gap: 7px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.cart-item:last-child { border-bottom: none; }
.qty-controls { display: flex; align-items: center; gap: 2px; }
.qty-controls button {
  width: 23px; height: 23px; border-radius: 6px;
  border: 1px solid var(--border-strong); background: rgba(255, 255, 255, .6);
  cursor: pointer; font-weight: 700; font-size: 13px; line-height: 1;
  display: grid; place-items: center; color: var(--text-2);
}
.qty-controls button:hover { border-color: var(--accent-border); color: var(--accent-hover); }
.qty-controls .q { min-width: 21px; text-align: center; font-weight: 650; font-size: 12px; }
.totals-row { display: flex; justify-content: space-between; padding: 3px 0; font-size: 12px; }
.totals-row.total { font-size: 14.5px; font-weight: 750; padding-top: 7px; border-top: 1px solid var(--border); margin-top: 5px; }
.type-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.type-btn {
  padding: 9px 6px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, .5);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  cursor: pointer; font-weight: 600; font-size: 11px; color: var(--text-2);
  transition: all .12s;
}
.type-btn .icon { width: 16px; height: 16px; }
.type-btn.active { border-color: var(--accent-border); color: var(--accent-hover); background: var(--accent-soft); }

/* menú del día en POS */
.daily-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.daily-tile {
  padding: 16px 12px; text-align: center; cursor: pointer;
  border: 1px solid var(--glass-border); border-radius: var(--radius);
  background: var(--surface);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  transition: border-color .12s, transform .08s, background .12s;
}
.daily-tile:hover { border-color: var(--accent-border); background: rgba(255, 255, 255, .85); }
.daily-tile:active { transform: scale(.98); }
.daily-tile .icon.lg { color: var(--accent); margin-bottom: 2px; }
.daily-tile strong { font-size: 14px; }
.daily-tile .d-price { font-size: 15px; font-weight: 750; color: var(--accent-hover); margin-top: 3px; }

.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.pick-tile {
  padding: 13px 10px; border-radius: var(--radius-sm); text-align: center;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, .55);
  cursor: pointer; font-weight: 600; font-size: 12.5px; color: var(--text-2);
  transition: all .1s;
}
.pick-tile:hover { border-color: var(--accent-border); color: var(--text); }
.pick-tile.sel {
  border-color: var(--accent); background: var(--accent-soft);
  color: var(--accent-hover); box-shadow: 0 0 0 3px var(--accent-soft);
}

/* cocina */
.kds-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.kds-card { border-left: 3px solid var(--accent-border); }
.kds-card.late-card { border-left-color: var(--danger); }

/* driver */
.driver-order { border-left: 3px solid var(--accent-border); }
.driver-order.enroute { border-left-color: rgba(58, 103, 192, .5); }
.gps-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); display: inline-block; }
.gps-dot.on { background: var(--ok); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(25,157,111,.35);} 50% { box-shadow: 0 0 0 5px rgba(25,157,111,0);} }
.big-actions { display: grid; gap: 8px; }
.big-actions .btn { padding: 11px; font-size: 13px; }

/* barras (charts svg) — cada barra vive en un .bar-track que reserva su
   propio alto vía flexbox, así el % de .bar nunca se calcula contra el
   alto total de la columna (eso es lo que causaba el desborde) */
.bars { display: flex; gap: 4px; height: 96px; }
.bars .bar-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.bars .bar-track { flex: 1; position: relative; }
.bars .bar {
  width: 100%; background: rgba(38, 34, 43, .08); border-radius: 4px 4px 0 0;
  position: absolute; left: 0; bottom: 0; min-height: 2px; transition: height .3s;
}
.bars .bar.hot { background: var(--accent); opacity: .75; }
.bars .bar-label {
  font-size: 9.5px; color: var(--text-3); text-align: center; flex-shrink: 0;
}

.empty {
  text-align: center; color: var(--text-3); padding: 34px 14px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 12px;
}
.empty .icon { width: 30px; height: 30px; opacity: .45; }

.list-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 12.5px; }
.list-row:last-child { border-bottom: none; }

/* ---------- responsive / mobile PWA ---------- */
@media (max-width: 900px) {
  .pos-layout { grid-template-columns: 1fr; }
  .cart-panel { position: static; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .sidebar { display: none; }
  .main { margin-left: 0; padding: 14px 12px calc(78px + env(safe-area-inset-bottom)); }
  .page-head h1 { font-size: 16px; }
  .tabbar {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0;
    background: var(--surface-strong);
    -webkit-backdrop-filter: saturate(1.6) blur(24px); backdrop-filter: saturate(1.6) blur(24px);
    border-top: 1px solid var(--glass-border);
    padding: 5px 4px calc(5px + env(safe-area-inset-bottom));
    z-index: 50;
  }
  .tab-link {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 4px 2px; font-size: 9px; font-weight: 600; color: var(--text-3);
    border-radius: 8px; background: none; border: none; cursor: pointer; font-family: inherit;
  }
  .tab-link .icon { width: 19px; height: 19px; }
  .tab-link.active { color: var(--accent-hover); }
  .search-box input { min-width: 0; width: 100%; }
  .stat .value { font-size: 17px; }
  .toasts { left: 14px; right: 14px; top: 10px; }
  .toast { max-width: none; }
}

/* ---------- ticket / impresión ---------- */
.ticket { display: none; }
@media print {
  body * { visibility: hidden; }
  .ticket, .ticket * { visibility: visible; }
  .ticket {
    display: block; position: absolute; inset: 0 auto auto 0;
    width: 72mm; font-family: "Courier New", monospace; font-size: 11px;
    color: #000; padding: 4mm;
  }
  .ticket h2 { text-align: center; font-size: 14px; }
  .ticket .t-center { text-align: center; }
  .ticket .t-line { border-top: 1px dashed #000; margin: 6px 0; }
  .ticket .t-row { display: flex; justify-content: space-between; }
  .ticket table { width: 100%; border-collapse: collapse; }
  .ticket td { padding: 1px 0; vertical-align: top; }
}
