
:root {
  --rojo: #E8323A;
  --rojo-2: #C9232C;
  --rojo-3: #FDE8E9;
  --amarillo: #FFD60A;
  --amarillo-2: #FFE65C;
  --amarillo-3: #FFF7CC;
  --azul: #00A3EF;
  --azul-3: #E0F4FE;
  --cian: #00CFDB;
  --rosa: #FF4FC4;
  --rosa-3: #FFE6F7;
  --naranja: #FF9E5E;
  --verde: #1FB46B;
  --verde-3: #DDF6E9;
  --fondo: #FFF7F3;
  --panel: #FFFFFF;
  --linea: #F1E2DC;
  --linea-2: #E6D2CA;
  --tinta: #2A1B20;
  --tinta-2: #6E5B60;
  --tinta-3: #A6959A;
  --radio: 16px;
  --sombra: 0 1px 2px rgba(80, 20, 30, .06), 0 4px 16px rgba(80, 20, 30, .06);
  --sombra-2: 0 10px 40px rgba(80, 20, 30, .18);
  --titulo: 'Fredoka', 'Segoe UI', system-ui, sans-serif;
  --texto: 'Nunito', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --petalos: linear-gradient(90deg, var(--rosa), var(--azul) 50%, var(--amarillo));
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--texto); color: var(--tinta); background: var(--fondo); font-size: 15px; -webkit-font-smoothing: antialiased; }
.hidden { display: none !important; }
h1, h2, h3, h4 { font-family: var(--titulo); font-weight: 600; margin: 0; letter-spacing: .2px; }
input, select, textarea, button { font: inherit; color: inherit; }
::selection { background: var(--amarillo-2); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 12px; padding: 10px 16px; cursor: pointer; font-weight: 600;
  background: var(--panel); color: var(--tinta); box-shadow: inset 0 0 0 1.5px var(--linea-2);
  transition: transform .08s, background .15s, box-shadow .15s; white-space: nowrap;
}
.btn:hover { background: #FFF1EC; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: var(--rojo); color: #fff; box-shadow: 0 2px 0 var(--rojo-2); }
.btn.primary:hover { background: var(--rojo-2); }
.btn.yellow { background: var(--amarillo); color: var(--tinta); box-shadow: 0 2px 0 #E0B800; }
.btn.yellow:hover { background: #FFCB00; }
.btn.blue { background: var(--azul); color: #fff; box-shadow: 0 2px 0 #0086C7; }
.btn.blue:hover { background: #0093D8; }
.btn.green { background: var(--verde); color: #fff; box-shadow: 0 2px 0 #148F53; }
.btn.danger { background: var(--panel); color: var(--rojo); box-shadow: inset 0 0 0 1.5px #F5B9BC; }
.btn.danger:hover { background: var(--rojo-3); }
.btn.ghost { background: transparent; box-shadow: none; }
.btn.ghost:hover { background: rgba(0,0,0,.05); }
.btn.ghost-light { background: rgba(255,255,255,.14); color: #fff; box-shadow: none; }
.btn.ghost-light:hover { background: rgba(255,255,255,.25); }
.btn.link { background: none; box-shadow: none; color: var(--tinta-2); padding: 6px; }
.btn.sm { padding: 6px 11px; font-size: 13px; border-radius: 10px; }
.btn.lg { padding: 14px 22px; font-size: 17px; border-radius: 14px; }
.btn.icon { padding: 7px; width: 34px; height: 34px; }
.btn kbd { font-size: 11px; opacity: .75; }
kbd { font-family: var(--texto); font-size: 11px; padding: 1px 6px; border-radius: 6px; background: rgba(0,0,0,.08); font-weight: 600; }

/* ---------- Formularios ---------- */
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field > span { font-size: 12.5px; font-weight: 600; color: var(--tinta-2); }
.input, select.input, textarea.input {
  width: 100%; border: 1.5px solid var(--linea-2); background: #fff; border-radius: 11px;
  padding: 9px 12px; outline: none; transition: border-color .15s, box-shadow .15s;
}
.input:focus { border-color: var(--azul); box-shadow: 0 0 0 4px rgba(0,163,239,.15); }
textarea.input { resize: vertical; min-height: 70px; }
.input.big { font-size: 22px; padding: 12px 14px; font-weight: 700; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 500; user-select: none; }
.check input { width: 18px; height: 18px; accent-color: var(--rojo); }
.grid-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.grid-form .full { grid-column: 1 / -1; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.hint { font-size: 12.5px; color: var(--tinta-3); }
.search { position: relative; }
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--tinta-3); pointer-events: none; }
.search .input { padding-left: 40px; }

/* ---------- Ingreso ---------- */
.login {
  position: fixed; inset: 0; display: grid; place-items: center; padding: 20px;
  background: var(--rojo);
  background-image: radial-gradient(circle at 12% 18%, rgba(255,255,255,.10) 0 90px, transparent 91px),
    radial-gradient(circle at 88% 82%, rgba(255,214,10,.22) 0 140px, transparent 141px),
    radial-gradient(circle at 85% 12%, rgba(0,163,239,.20) 0 70px, transparent 71px),
    radial-gradient(circle at 10% 90%, rgba(255,79,196,.22) 0 110px, transparent 111px);
}
.login-card { width: min(440px, 100%); text-align: center; color: #fff; }
.login-logo img { width: 280px; max-width: 80%; filter: drop-shadow(0 6px 16px rgba(0,0,0,.18)); }
.login-sub { font-family: var(--titulo); letter-spacing: .5px; margin: 6px 0 26px; opacity: .92; }
.login-users { display: grid; gap: 10px; }
.login-user {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 16px; border: 0; cursor: pointer;
  background: #fff; color: var(--tinta); text-align: left; box-shadow: 0 4px 0 rgba(0,0,0,.12); transition: transform .1s;
}
.login-user:hover { transform: translateY(-2px); }
.login-user b { font-family: var(--titulo); font-weight: 600; font-size: 18px; display: block; }
.login-user small { color: var(--tinta-3); }
.avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-family: var(--titulo); font-size: 18px; color: #fff; flex-shrink: 0; }
.login-who .avatar { box-shadow: 0 0 0 3px #fff; }
.login-who { display: flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--titulo); font-size: 20px; margin-bottom: 16px; }
.pin-dots { display: flex; justify-content: center; gap: 12px; margin-bottom: 20px; height: 18px; }
.pin-dots i { width: 16px; height: 16px; border-radius: 50%; background: rgba(255,255,255,.3); }
.pin-dots i.on { background: var(--amarillo); }
.pinpad { display: grid; grid-template-columns: repeat(3, 78px); gap: 12px; justify-content: center; }
.pinpad button { height: 64px; border-radius: 18px; border: 0; background: rgba(255,255,255,.95); color: var(--tinta); font-family: var(--titulo); font-size: 26px; cursor: pointer; box-shadow: 0 3px 0 rgba(0,0,0,.14); }
.pinpad button:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0,0,0,.14); }
.pinpad button.alt { background: rgba(255,255,255,.18); color: #fff; font-size: 16px; font-family: var(--texto); font-weight: 600; }
.login-error { min-height: 22px; margin-top: 14px; font-weight: 600; color: var(--amarillo-2); }
.shake { animation: shake .35s; }
@keyframes shake { 20%,60% { transform: translateX(-8px); } 40%,80% { transform: translateX(8px); } }

/* ---------- Estructura ---------- */
.app { display: grid; grid-template-columns: 228px 1fr; height: 100vh; }
.side { background: var(--rojo); color: #fff; display: flex; flex-direction: column; padding: 18px 14px; position: relative; overflow: hidden; }
.side::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--petalos); }
.side-logo { padding: 4px 10px 18px; }
.side-logo img { width: 100%; display: block; filter: drop-shadow(0 3px 8px rgba(0,0,0,.15)); }
#nav { display: flex; flex-direction: column; gap: 3px; flex: 1; overflow-y: auto; }
.nav-item {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 13px; color: rgba(255,255,255,.92);
  text-decoration: none; font-weight: 600; cursor: pointer; border: 0; background: none; text-align: left; transition: background .15s;
}
.nav-item:hover { background: rgba(255,255,255,.12); }
.nav-item.active { background: #fff; color: var(--rojo); box-shadow: 0 3px 0 rgba(0,0,0,.1); }
.nav-item svg { flex-shrink: 0; }
.nav-item .badge { margin-left: auto; background: var(--amarillo); color: var(--tinta); font-size: 11px; padding: 1px 7px; border-radius: 99px; font-weight: 700; }
.nav-item kbd { margin-left: auto; background: rgba(255,255,255,.18); color: inherit; }
.nav-item.active kbd { background: var(--rojo-3); }
.side-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 6px 10px; border-top: 1px solid rgba(255,255,255,.2); margin-top: 10px; }
.side-user { font-size: 13px; line-height: 1.25; }
.side-user b { display: block; font-size: 14px; }

.main { display: flex; flex-direction: column; min-width: 0; height: 100vh; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 26px; background: var(--panel); border-bottom: 1px solid var(--linea); }
.top h1 { font-size: 26px; color: var(--rojo); }
.top-right { display: flex; align-items: center; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 7px; border: 0; border-radius: 99px; padding: 7px 13px; font-weight: 600; font-size: 13px; cursor: pointer; background: var(--verde-3); color: #11744A; }
.chip.closed { background: var(--rojo-3); color: var(--rojo-2); }
.chip.soft { background: var(--amarillo-3); color: #7A6200; cursor: default; }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.clock { font-family: var(--titulo); font-size: 18px; color: var(--tinta-2); min-width: 54px; text-align: right; }
.view { flex: 1; overflow: auto; padding: 22px 26px 40px; }
.view.pos-view { padding: 0; overflow: hidden; }

/* ---------- Tarjetas ---------- */
.card { background: var(--panel); border-radius: var(--radio); box-shadow: var(--sombra); border: 1px solid var(--linea); }
.card-pad { padding: 18px 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--linea); }
.card-head h3 { font-size: 18px; }
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar .grow { flex: 1; min-width: 220px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; gap: 10px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.spacer { flex: 1; }
.muted { color: var(--tinta-2); }
.faint { color: var(--tinta-3); }
.small { font-size: 13px; }
.right { text-align: right; }
.center { text-align: center; }
.mono { font-variant-numeric: tabular-nums; }
.ok { color: var(--verde); }
.bad { color: var(--rojo); }
.two-col { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px; align-items: start; }

/* KPIs */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi { padding: 16px 18px; border-radius: var(--radio); background: var(--panel); border: 1px solid var(--linea); box-shadow: var(--sombra); position: relative; overflow: hidden; }
.kpi::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--c, var(--rojo)); }
.kpi small { display: block; color: var(--tinta-2); font-weight: 600; font-size: 12.5px; margin-bottom: 6px; }
.kpi b { font-family: var(--titulo); font-weight: 600; font-size: 26px; }
.kpi span { display: block; font-size: 12.5px; color: var(--tinta-3); margin-top: 3px; }

/* Tablas */
.table-wrap { overflow: auto; }
table.t { width: 100%; border-collapse: collapse; }
.t th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--tinta-3); font-weight: 700; padding: 10px 14px; border-bottom: 1.5px solid var(--linea); background: #FFFBF9; position: sticky; top: 0; z-index: 1; }
.t td { padding: 10px 14px; border-bottom: 1px solid var(--linea); vertical-align: middle; }
.t tbody tr:hover td { background: #FFF8F5; }
.t tr.click { cursor: pointer; }
.t td.num, .t th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.t tr.anulada td { color: var(--tinta-3); text-decoration: line-through; }
.t .actions { white-space: nowrap; text-align: right; }
.empty { padding: 40px 20px; text-align: center; color: var(--tinta-3); }
.empty b { display: block; font-family: var(--titulo); font-weight: 600; font-size: 18px; color: var(--tinta-2); margin-bottom: 4px; }

.tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; background: #F4ECE9; color: var(--tinta-2); white-space: nowrap; }
.tag .sw { width: 9px; height: 9px; border-radius: 50%; }
.tag.red { background: var(--rojo-3); color: var(--rojo-2); }
.tag.green { background: var(--verde-3); color: #11744A; }
.tag.yellow { background: var(--amarillo-3); color: #7A6200; }
.tag.blue { background: var(--azul-3); color: #006FA3; }
.tag.pink { background: var(--rosa-3); color: #B0228A; }

.tabs { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.tab { border: 0; background: transparent; padding: 9px 15px; border-radius: 11px; font-weight: 600; cursor: pointer; color: var(--tinta-2); }
.tab:hover { background: rgba(0,0,0,.04); }
.tab.active { background: var(--tinta); color: #fff; }

/* ---------- Punto de venta ---------- */
.pos { display: grid; grid-template-columns: minmax(0, 1fr) 420px; height: 100%; }
.pos-left { display: flex; flex-direction: column; min-width: 0; padding: 18px 20px 0; gap: 12px; }
.pos-search { display: flex; gap: 10px; }
.pos-search .search { flex: 1; }
.pos-search .input { font-size: 17px; padding-top: 12px; padding-bottom: 12px; border-radius: 14px; }
.cats { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.cat {
  border: 0; border-radius: 99px; padding: 8px 15px; cursor: pointer; font-weight: 600; white-space: nowrap;
  background: #fff; box-shadow: inset 0 0 0 1.5px var(--linea-2); display: inline-flex; align-items: center; gap: 7px;
}
.cat .sw { width: 10px; height: 10px; border-radius: 50%; }
.cat.active { background: var(--tinta); color: #fff; box-shadow: none; }
.prod-grid { flex: 1; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 12px; align-content: start; padding: 2px 2px 20px; }
.pcard {
  position: relative; text-align: left; border: 0; cursor: pointer; background: #fff; border-radius: 16px; padding: 14px 14px 12px;
  box-shadow: var(--sombra); outline: 1px solid var(--linea); display: flex; flex-direction: column; gap: 6px; min-height: 118px;
  transition: transform .1s, box-shadow .15s;
}
.pcard::before { content: ''; position: absolute; left: 14px; right: 14px; top: 0; height: 4px; border-radius: 0 0 4px 4px; background: var(--c, var(--linea-2)); }
.pcard:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(80,20,30,.12); }
.pcard:active { transform: translateY(0); }
.pcard .pn { font-weight: 600; line-height: 1.25; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pcard .pp { font-family: var(--titulo); font-size: 20px; color: var(--rojo); }
.pcard .ps { font-size: 12px; color: var(--tinta-3); display: flex; justify-content: space-between; }
.pcard .ps .low { color: var(--rojo); font-weight: 700; }
.pcard .fav { position: absolute; right: 9px; top: 9px; color: var(--amarillo); }
.pcard.flash { animation: flash .35s; }
@keyframes flash { 0% { box-shadow: 0 0 0 0 rgba(255,214,10,.9); } 100% { box-shadow: 0 0 0 14px rgba(255,214,10,0); } }

.cart { display: flex; flex-direction: column; background: #fff; border-left: 1px solid var(--linea); min-height: 0; }
.cart-head { padding: 14px 18px; border-bottom: 1px solid var(--linea); display: flex; align-items: center; gap: 10px; }
.cart-head h3 { font-size: 19px; }
.cart-client { padding: 10px 18px; border-bottom: 1px solid var(--linea); display: flex; align-items: center; gap: 8px; font-size: 14px; }
.cart-client .who { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-lines { flex: 1; overflow-y: auto; }
.cline { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 11px 18px; border-bottom: 1px dashed var(--linea); }
.cline.sel { background: var(--amarillo-3); }
.cline .cn { font-weight: 600; line-height: 1.25; cursor: pointer; }
.cline .ct { font-family: var(--titulo); font-size: 17px; text-align: right; }
.cline .cd { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--tinta-2); }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--linea-2); border-radius: 10px; overflow: hidden; }
.qty button { width: 28px; height: 28px; border: 0; background: #FFF6F2; cursor: pointer; font-size: 17px; font-weight: 700; color: var(--tinta-2); }
.qty button:hover { background: var(--amarillo-3); }
.qty input { width: 52px; border: 0; text-align: center; font-weight: 700; outline: none; height: 28px; }
.cart-empty { display: grid; place-items: center; text-align: center; height: 100%; color: var(--tinta-3); padding: 30px; }
.cart-empty .petals { width: 90px; opacity: .9; margin-bottom: 10px; }
.cart-foot { border-top: 1px solid var(--linea); padding: 14px 18px 18px; background: #FFFBF9; }
.tot-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--tinta-2); padding: 2px 0; }
.tot-big { display: flex; justify-content: space-between; align-items: baseline; margin: 8px 0 12px; }
.tot-big span { font-family: var(--titulo); font-size: 20px; }
.tot-big b { font-family: var(--titulo); font-weight: 600; font-size: 40px; color: var(--rojo); line-height: 1; }
.cart-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.btn-cobrar { width: 100%; font-family: var(--titulo); font-weight: 600; font-size: 24px; padding: 15px; border-radius: 16px; letter-spacing: .5px; }

/* Cobro */
.pay-total { text-align: center; padding: 6px 0 16px; }
.pay-total small { font-weight: 600; color: var(--tinta-2); }
.pay-total b { display: block; font-family: var(--titulo); font-weight: 600; font-size: 54px; color: var(--rojo); line-height: 1.05; }
.medios { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin-bottom: 16px; }
.medio { border: 0; border-radius: 14px; padding: 14px 8px; cursor: pointer; background: #fff; box-shadow: inset 0 0 0 1.5px var(--linea-2); display: flex; flex-direction: column; align-items: center; gap: 6px; font-weight: 700; }
.medio:hover { background: #FFF6F2; }
.medio.active { box-shadow: inset 0 0 0 2.5px var(--c); background: color-mix(in srgb, var(--c) 10%, #fff); }
.medio svg { color: var(--c); }
.billetes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.billetes button { flex: 1; min-width: 64px; }
.vuelto { margin-top: 16px; padding: 16px; border-radius: 14px; background: var(--verde-3); display: flex; justify-content: space-between; align-items: center; }
.vuelto span { font-weight: 700; color: #11744A; }
.vuelto b { font-family: var(--titulo); font-weight: 600; font-size: 34px; color: #11744A; }
.vuelto.falta { background: var(--rojo-3); }
.vuelto.falta span, .vuelto.falta b { color: var(--rojo-2); }
.pagos-list { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.pago-line { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; background: #FFF6F2; }
.pago-line b { margin-left: auto; }

/* ---------- Modales ---------- */
.modal-back { position: fixed; inset: 0; background: rgba(42, 27, 32, .45); display: grid; place-items: center; padding: 20px; z-index: 50; animation: fade .15s; }
.modal { background: #fff; border-radius: 22px; box-shadow: var(--sombra-2); width: min(560px, 100%); max-height: calc(100vh - 40px); display: flex; flex-direction: column; animation: pop .18s ease-out; overflow: hidden; }
.modal.wide { width: min(860px, 100%); }
.modal.xwide { width: min(1100px, 100%); }
.modal-head { padding: 18px 22px 14px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--linea); position: relative; }
.modal-head::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--petalos); }
.modal-head h2 { font-size: 21px; flex: 1; }
.modal-body { padding: 18px 22px; overflow-y: auto; }
.modal-foot { padding: 14px 22px; border-top: 1px solid var(--linea); display: flex; justify-content: flex-end; gap: 10px; background: #FFFBF9; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { transform: translateY(10px) scale(.98); opacity: 0; } }

/* Toasts */
.toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 100; align-items: center; }
.toast { background: var(--tinta); color: #fff; padding: 12px 18px; border-radius: 14px; box-shadow: var(--sombra-2); font-weight: 600; animation: pop .2s; max-width: 520px; }
.toast.error { background: var(--rojo); }
.toast.ok { background: var(--verde); }

/* Gráficos simples */
.bars { display: flex; align-items: flex-end; gap: 6px; height: 200px; padding: 10px 4px 0; }
.bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
.bar i { display: block; width: 100%; max-width: 46px; border-radius: 8px 8px 3px 3px; background: var(--rojo); min-height: 2px; position: relative; }
.bar i:hover { background: var(--rojo-2); }
.bar small { font-size: 11px; color: var(--tinta-3); margin-top: 6px; white-space: nowrap; }
.hbar { display: grid; grid-template-columns: minmax(90px, 160px) 1fr auto; gap: 10px; align-items: center; padding: 6px 0; font-size: 14px; }
.hbar .track { height: 12px; background: #F6EDEA; border-radius: 99px; overflow: hidden; }
.hbar .track i { display: block; height: 100%; border-radius: 99px; background: var(--c, var(--azul)); }
.hbar .lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Detalle de venta / ticket preview */
.ticket-prev { font-family: 'Consolas', monospace; font-size: 13px; background: #FFFDF5; border: 1px dashed var(--linea-2); border-radius: 12px; padding: 16px; }
.alert { padding: 12px 16px; border-radius: 12px; background: var(--amarillo-3); color: #6B5600; font-weight: 500; display: flex; gap: 10px; align-items: flex-start; }
.alert.red { background: var(--rojo-3); color: var(--rojo-2); }
.alert.blue { background: var(--azul-3); color: #005C88; }

.color-dots { display: flex; gap: 8px; flex-wrap: wrap; }
.color-dots button { width: 30px; height: 30px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1.5px var(--linea-2); cursor: pointer; }
.color-dots button.on { box-shadow: 0 0 0 2.5px var(--tinta); }

.ac-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); background: #fff; border-radius: 12px; box-shadow: var(--sombra-2); z-index: 20; max-height: 280px; overflow-y: auto; border: 1px solid var(--linea); }
.ac-list button { display: flex; width: 100%; text-align: left; gap: 10px; padding: 10px 14px; border: 0; background: none; cursor: pointer; }
.ac-list button:hover, .ac-list button.hl { background: var(--amarillo-3); }

@media (max-width: 1180px) {
  .pos { grid-template-columns: minmax(0, 1fr) 360px; }
  .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .app { grid-template-columns: 74px 1fr; }
  .side-logo { padding: 0 0 12px; }
  .nav-item span, .nav-item kbd, .side-user { display: none; }
  .nav-item { justify-content: center; padding: 12px; }
  .side-foot { flex-direction: column; }
  .pos { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .cart { max-height: 50vh; }
}
.chip.memory { background: var(--azul-3); color: #006FA3; }
.chip.memory:hover { background: #CDEBFB; }
.chip.sucursal { background: var(--rojo-3); color: var(--rojo-2); }
.chip.sucursal:hover { background: #FBD3D5; }
.install-btn { margin-top: 22px; background: rgba(255,255,255,.16); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.55); }
.install-btn:hover { background: rgba(255,255,255,.28); }
.install-hint { margin: 18px 0 0; font-size: 13px; opacity: .85; }
