/* SD Shop POS — estilo urbano: negro + dorado + neón azul */
@font-face { font-family: 'Anton'; src: url('../fonts/anton-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --bg: #07070a; --bg2: #0d0d13; --panel: #13131b; --panel2: #1a1a24; --line: #2b2b38; --line2: #3a3a4a;
  --text: #f5f1e8; --mute: #a29fae;
  --gold: #e2b93b; --gold2: #f7d77a; --gold-d: #8f6f12;
  --blue: #2d7bff; --cyan: #27d3ff;
  --red: #ff4560; --green: #2fe39a; --amber: #ffb020;
  --display: 'Anton', 'Bebas Neue', Impact, 'Haettenschweiler', 'Arial Narrow Bold', sans-serif;
  --body: 'Inter', system-ui, 'Segoe UI', Roboto, sans-serif;
  --r: 12px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; font-family: var(--body); font-size: 15px; line-height: 1.45; color: var(--text); background: var(--bg);
  background-image: radial-gradient(900px 500px at 8% -10%, rgba(45,123,255,.16), transparent 60%), radial-gradient(800px 500px at 100% 110%, rgba(226,185,59,.10), transparent 60%), linear-gradient(rgba(7,7,10,.45), rgba(7,7,10,.45)), url('../icons/bg-tape.jpg');
  background-size: auto, auto, auto, cover; background-attachment: fixed; -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
h1, h2, .tot-big, .kpi b, .pay-total b, .tk-name { font-family: var(--display); letter-spacing: .03em; text-transform: uppercase; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.muted { color: var(--mute); } .muted em, em { font-style: normal; color: var(--mute); font-size: .85em; }
small { font-size: .8em; }
.pos { color: var(--green); } .neg { color: var(--red); } .warnc { color: var(--amber); }
.ic { flex: none; vertical-align: -4px; }
.sub { font-family: var(--display); font-size: 18px; letter-spacing: .05em; text-transform: uppercase; color: var(--gold); margin: 22px 0 10px; }
.msg { margin: 0; font-size: 16px; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; justify-content: center; border: 2px solid var(--line2); background: var(--panel2); padding: 10px 18px; border-radius: 10px; font-weight: 700; cursor: pointer; transition: transform .08s, box-shadow .08s, border-color .15s; min-height: 44px; }
.btn:hover { border-color: var(--gold); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn.primary { background: linear-gradient(180deg, var(--gold2), var(--gold)); color: #130f02; border-color: #000; box-shadow: 4px 4px 0 var(--gold-d); }
.btn.primary:hover { transform: translate(-1px,-1px); box-shadow: 5px 5px 0 var(--gold-d); }
.btn.primary:active { transform: translate(3px,3px); box-shadow: 1px 1px 0 var(--gold-d); }
.btn.ghost { background: transparent; }
.btn.danger { background: var(--red); border-color: #000; color: #fff; box-shadow: 4px 4px 0 #7a1c2b; }
.btn.sm { padding: 6px 12px; min-height: 34px; font-size: 13px; }
.btn.xl { width: 100%; font-family: var(--display); font-size: 26px; letter-spacing: .06em; padding: 14px; min-height: 64px; font-weight: 400; }
.link { background: none; border: 0; color: var(--cyan); cursor: pointer; padding: 0 4px; font-weight: 600; text-decoration: underline; }
.icon-btn { background: transparent; border: 0; color: var(--mute); width: 36px; height: 36px; border-radius: 8px; cursor: pointer; display: inline-grid; place-items: center; }
.icon-btn:hover { color: var(--gold); background: var(--panel2); }

/* ---------- Formularios ---------- */
.fld { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--mute); font-weight: 600; margin-bottom: 12px; }
.fld input, .fld select, .fld textarea, .toolbar select, .cat-row input, .cat-row select, .size-add input, .rq, .sz-row input {
  background: var(--bg2); border: 2px solid var(--line); border-radius: 10px; padding: 10px 12px; color: var(--text); min-height: 44px; width: 100%; }
.fld input:focus, .fld select:focus, .fld textarea:focus, .searchbar:focus-within, .sz-row input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(45,123,255,.25); outline: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 14px; } .span2 { grid-column: span 2; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; color: var(--text); }
.check input { width: 18px; height: 18px; accent-color: var(--gold); }
.seg { display: inline-flex; background: var(--bg2); border: 2px solid var(--line); border-radius: 10px; padding: 3px; gap: 2px; margin-bottom: 12px; }
.seg button { background: none; border: 0; padding: 8px 14px; border-radius: 7px; font-weight: 600; cursor: pointer; color: var(--mute); min-height: 36px; }
.seg button.on { background: var(--gold); color: #130f02; }
.toolbar .seg { margin-bottom: 0; }
.searchbar { display: flex; align-items: center; gap: 8px; background: var(--bg2); border: 2px solid var(--line); border-radius: 12px; padding: 0 12px; flex: 1; min-width: 220px; color: var(--mute); }
.searchbar input { background: none; border: 0; outline: 0; padding: 12px 0; width: 100%; min-height: 44px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.chip { background: var(--panel); border: 2px solid var(--line); color: var(--text); border-radius: 999px; padding: 7px 14px; font-weight: 600; font-size: 13px; cursor: pointer; min-height: 36px; }
.chip:hover { border-color: var(--gold); } .chip.on { background: var(--gold); color: #130f02; border-color: #000; }

/* ---------- Shell ---------- */
.shell { display: grid; grid-template-columns: 92px 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; background: #050507; border-right: 2px solid var(--line); display: flex; flex-direction: column; align-items: stretch; padding: 12px 8px; gap: 4px; }
.side-logo { display: block; margin: 4px 6px 12px; filter: drop-shadow(0 0 10px rgba(45,123,255,.45)); }
.side-logo img { display: block; width: 100%; height: auto; }
.nav-ic { width: 36px; height: 36px; object-fit: contain; opacity: .55; transition: opacity .15s, filter .15s, transform .15s; }
.nav:hover .nav-ic { opacity: .9; } .nav.on .nav-ic { opacity: 1; filter: drop-shadow(0 0 7px rgba(45,123,255,.8)); transform: scale(1.06); }
.side-sp { flex: 1; }
.nav { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: 12px; color: var(--mute); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: none; border: 2px solid transparent; cursor: pointer; }
.nav:hover { color: var(--text); background: var(--panel); }
.nav.on { color: var(--gold); background: var(--panel); border-color: var(--gold-d); box-shadow: 0 0 18px rgba(45,123,255,.25), inset 0 0 0 1px rgba(45,123,255,.35); }
.main-col { min-width: 0; display: flex; flex-direction: column; }
.ticker { background: var(--gold); color: #0a0a0a; overflow: hidden; white-space: nowrap; font-family: var(--display); letter-spacing: .12em; font-size: 14px; border-bottom: 2px solid #000; transform: rotate(0); }
.ticker-t { display: inline-flex; gap: 22px; padding: 5px 0; animation: tick 40s linear infinite; } .ticker-t i { font-style: normal; opacity: .6; }
@keyframes tick { to { transform: translateX(-50%); } }
.top { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; gap: 16px; flex-wrap: wrap; }
.top-l { display: flex; flex-direction: column; } .hello { font-family: var(--display); font-size: 22px; letter-spacing: .04em; text-transform: uppercase; } .hello b { color: var(--gold); font-weight: 400; } .date { color: var(--mute); font-size: 13px; }
.top-r { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.who { display: flex; align-items: center; gap: 10px; } .who b { display: block; line-height: 1.1; } .who small { color: var(--mute); }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--gold2), var(--gold-d)); color: #130f02; display: grid; place-items: center; font-family: var(--display); font-size: 17px; border: 2px solid #000; flex: none; }
.avatar.sm { width: 36px; height: 36px; font-size: 14px; }
.net { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; border: 2px solid var(--line); color: var(--mute); }
.net.off { color: var(--amber); border-color: var(--amber); }
.pill { display: inline-flex; align-items: center; gap: 8px; background: var(--panel2); border: 2px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.cashpill { cursor: pointer; } .cashpill i { width: 9px; height: 9px; border-radius: 50%; background: var(--red); }
.cashpill.open { border-color: var(--green); color: var(--green); } .cashpill.open i { background: var(--green); box-shadow: 0 0 10px var(--green); }
.banner { margin: 0 24px; padding: 10px 14px; border: 2px dashed var(--amber); color: var(--amber); border-radius: 10px; font-size: 13px; }
.view { padding: 8px 24px 40px; flex: 1; min-width: 0; }
.page-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 4px 0 14px; }
.page-h h1 { font-size: 34px; color: var(--gold); }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.toolbar select { width: auto; min-width: 150px; }

/* ---------- KPI / paneles ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi { background: var(--panel); border: 2px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.kpi span { color: var(--mute); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.kpi b { font-size: 28px; line-height: 1.1; font-weight: 400; } .kpi em { font-size: 12px; }
.kpi.hl { border-color: var(--blue); box-shadow: 0 0 22px rgba(45,123,255,.22); }
.kpi.gold { border-color: var(--gold); } .kpi.gold b { color: var(--gold2); }
.kpi.warn b { color: var(--amber); } .kpi.bad b { color: var(--red); }
.panel { background: var(--panel); border: 2px solid var(--line); border-radius: var(--r); padding: 18px; margin-bottom: 16px; }
.panel h3 { font-family: var(--display); font-size: 20px; letter-spacing: .05em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; align-items: start; }
.hero-card { display: flex; gap: 28px; align-items: center; background: var(--panel); border: 2px solid var(--gold-d); border-radius: 16px; padding: 28px; flex-wrap: wrap; }
.hero-crest { width: 120px; filter: drop-shadow(0 0 14px rgba(45,123,255,.45)); }
.hero-card h2 { font-size: 34px; margin-bottom: 6px; color: var(--gold2); }
.tot-row { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 999px; border: 1.5px solid var(--line2); color: var(--mute); text-transform: uppercase; letter-spacing: .05em; }
.tag.ok { color: var(--green); border-color: var(--green); } .tag.warn { color: var(--amber); border-color: var(--amber); } .tag.bad { color: var(--red); border-color: var(--red); } .tag.gold { color: var(--gold); border-color: var(--gold); }
.empty { text-align: center; color: var(--mute); padding: 36px 12px; } .empty-t { font-family: var(--display); font-size: 22px; letter-spacing: .05em; color: var(--text); text-transform: uppercase; margin-bottom: 4px; }
.held { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.warnmsg { color: var(--amber); display: flex; gap: 8px; align-items: center; }

/* ---------- Tablas ---------- */
.table-wrap { overflow-x: auto; border: 2px solid var(--line); border-radius: var(--r); background: var(--panel); }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--mute); padding: 12px 14px; border-bottom: 2px solid var(--line); white-space: nowrap; }
.tbl td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tfoot td { border-top: 2px solid var(--line2); border-bottom: 0; background: var(--bg2); }
.tbl .r, .tbl th.r { text-align: right; } .tbl tr.click { cursor: pointer; } .tbl tr.click:hover td, .tbl tbody tr:hover td { background: rgba(45,123,255,.07); }
.tbl.compact td, .tbl.compact th { padding: 8px 10px; }
.thumb { width: 56px; } .thumb img, .mono.sm { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; display: grid; }
.sz { display: flex; flex-wrap: wrap; gap: 5px; }
.sz-i { display: inline-flex; align-items: center; gap: 6px; background: var(--bg2); border: 1.5px solid var(--line2); border-radius: 7px; padding: 2px 8px 2px 4px; font-weight: 700; font-size: 13px; }
.sz-i i { font-style: normal; background: var(--line2); border-radius: 4px; padding: 0 5px; font-size: 11px; color: var(--mute); }
.sz-i.low { border-color: var(--amber); color: var(--amber); } .sz-i.zero { border-color: var(--red); color: var(--red); opacity: .75; text-decoration: line-through; }
.mono { display: grid; place-items: center; width: 100%; height: 100%; font-family: var(--display); letter-spacing: .06em; color: hsl(var(--h, 40) 70% 70%); background: linear-gradient(135deg, hsl(var(--h, 40) 35% 14%), #0b0b10); }
.mono.sm { font-size: 14px; }

/* ---------- POS ---------- */
.pos-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 18px; align-items: start; }
.pos-cat .searchbar { margin-bottom: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 14px; }
.card { background: var(--panel); border: 2px solid var(--line); border-radius: 14px; overflow: hidden; padding: 0; text-align: left; cursor: pointer; transition: transform .1s, box-shadow .1s, border-color .15s; }
.card:hover { border-color: var(--gold); transform: translate(-2px,-2px); box-shadow: 5px 5px 0 var(--gold-d), 0 0 22px rgba(45,123,255,.3); }
.card:active { transform: translate(2px,2px); box-shadow: none; }
.card.soldout { opacity: .45; cursor: not-allowed; }
.card-img { position: relative; aspect-ratio: 1; background: var(--bg2); } .card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-img img { background: #000; } .card-img .mono { font-size: 26px; text-align: center; padding: 0 10px; line-height: 1.05; word-break: break-word; }
.badge { position: absolute; top: 8px; right: 8px; background: rgba(0,0,0,.75); border: 1.5px solid var(--line2); border-radius: 999px; padding: 2px 9px; font-size: 11px; font-weight: 700; }
.badge.low { border-color: var(--amber); color: var(--amber); } .badge.out { border-color: var(--red); color: var(--red); }
.card-b { padding: 10px 12px 12px; } .card-brand { font-size: 11px; color: var(--gold); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.card-n { font-weight: 600; line-height: 1.25; min-height: 2.5em; margin: 2px 0 6px; } .card-p { font-family: var(--display); font-size: 22px; letter-spacing: .03em; color: var(--gold2); }
.pos-cart { position: sticky; top: 8px; background: var(--panel); border: 2px solid var(--gold-d); border-radius: 16px; display: flex; flex-direction: column; max-height: calc(100vh - 110px); box-shadow: 0 0 34px rgba(45,123,255,.18); }
.cart-h { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 2px solid var(--line); } .cart-h h2 { font-size: 24px; color: var(--gold); }
.cart-lines { overflow-y: auto; flex: 1; min-height: 120px; padding: 4px 12px; }
.line { display: grid; grid-template-columns: 1fr auto auto 32px; gap: 8px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.line-n { font-weight: 600; line-height: 1.2; } .line-s { color: var(--mute); font-size: 12px; } .line-t { font-weight: 700; min-width: 70px; text-align: right; }
.stepper { display: inline-flex; align-items: center; gap: 2px; background: var(--bg2); border: 2px solid var(--line); border-radius: 9px; } .stepper span { min-width: 24px; text-align: center; font-weight: 700; }
.stepper button { background: none; border: 0; width: 34px; height: 34px; cursor: pointer; color: var(--text); display: grid; place-items: center; border-radius: 7px; } .stepper button:hover { background: var(--line); }
.cart-f { padding: 12px 16px 16px; border-top: 2px solid var(--line); background: var(--bg2); border-radius: 0 0 14px 14px; }
.tot-big { display: flex; justify-content: space-between; align-items: baseline; font-size: 34px; color: var(--gold2); padding: 6px 0 10px; }
.cart-btns { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; margin-bottom: 10px; } .cart-btns .btn { padding: 8px 10px; min-height: 40px; font-size: 13px; }
.sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; margin-top: 12px; }
.size { display: flex; flex-direction: column; align-items: center; background: var(--bg2); border: 2px solid var(--line2); border-radius: 12px; padding: 12px 4px; cursor: pointer; }
.size b { font-family: var(--display); font-size: 26px; font-weight: 400; } .size small { color: var(--mute); }
.size:hover:not(:disabled) { border-color: var(--gold); background: var(--panel2); } .size.low small { color: var(--amber); } .size.none { opacity: .35; cursor: not-allowed; text-decoration: line-through; }
.pay-total { display: flex; justify-content: space-between; align-items: center; background: #000; border: 2px solid var(--gold); border-radius: 12px; padding: 12px 18px; margin-bottom: 14px; } .pay-total span { font-size: 12px; letter-spacing: .1em; color: var(--mute); font-weight: 700; } .pay-total b { font-size: 40px; font-weight: 400; color: var(--gold2); }
.pay-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; } .pay-res { min-height: 28px; margin: 12px 0; font-size: 18px; font-weight: 600; }

/* ---------- Gráficas ---------- */
.bars { display: flex; align-items: flex-end; gap: 6px; height: 200px; padding-top: 18px; }
.bar { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; position: relative; }
.bar-f { width: 100%; max-width: 46px; background: linear-gradient(180deg, var(--gold2), var(--gold-d)); border-radius: 6px 6px 0 0; border: 1.5px solid #000; }
.bar-v { font-size: 11px; font-weight: 700; color: var(--text); } .bar-l { font-size: 10px; color: var(--mute); white-space: nowrap; }
.hbar { margin-bottom: 10px; } .hbar-t { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; } .hbar-b { background: var(--bg2); border-radius: 6px; height: 10px; overflow: hidden; margin-top: 4px; } .hbar-b i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--cyan)); }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }

/* ---------- Usuarios / editor ---------- */
.users { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-top: 12px; }
.ucard { display: flex; align-items: center; gap: 14px; background: var(--panel); border: 2px solid var(--line); border-radius: 14px; padding: 14px; } .ucard.off { opacity: .5; } .ucard-i { flex: 1; min-width: 0; }
.perms { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; } .perm { background: var(--bg2); border: 2px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.size-edit { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; } .sz-row { display: flex; align-items: center; gap: 8px; background: var(--bg2); border: 2px solid var(--line); border-radius: 10px; padding: 4px 4px 4px 12px; font-weight: 600; } .sz-row span { flex: 1; white-space: nowrap; } .sz-row input { width: 76px; min-height: 38px; padding: 6px 8px; } .sz-row { flex-wrap: wrap; } .sz-row .sz-fac { flex: 1 1 100%; width: auto; order: 5; font-size: 13px; margin: 0 4px 4px 0; }
.size-add { display: flex; gap: 8px; margin-top: 10px; max-width: 360px; }
.photo-row { display: flex; gap: 12px; align-items: center; } .ph { width: 84px; height: 84px; border-radius: 10px; background: var(--bg2); border: 2px dashed var(--line2); display: grid; place-items: center; overflow: hidden; color: var(--mute); font-size: 12px; flex: none; } .ph img { width: 100%; height: 100%; object-fit: cover; }
.cat-row { display: grid; grid-template-columns: 1fr 140px; gap: 8px; margin-bottom: 8px; }
.audit { max-height: 420px; overflow-y: auto; }

/* ---------- Modal / toast ---------- */
.modal-back { position: fixed; inset: 0; background: rgba(0,0,0,.72); backdrop-filter: blur(3px); display: grid; place-items: center; z-index: 50; padding: 16px; animation: fade .15s; }
.modal { background: var(--panel); border: 2px solid var(--gold-d); border-radius: 16px; width: 100%; max-height: calc(100vh - 32px); display: flex; flex-direction: column; box-shadow: 0 20px 80px #000, 0 0 40px rgba(45,123,255,.2); animation: pop .18s; }
.modal.sm { max-width: 400px; } .modal.md { max-width: 560px; } .modal.lg { max-width: 820px; }
.modal-h { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 2px solid var(--line); } .modal-h h3 { font-family: var(--display); font-size: 24px; letter-spacing: .05em; text-transform: uppercase; color: var(--gold); }
.modal-b { padding: 18px; overflow-y: auto; } .modal-f { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 18px; border-top: 2px solid var(--line); flex-wrap: wrap; }
@keyframes fade { from { opacity: 0; } } @keyframes pop { from { transform: scale(.96) translateY(8px); opacity: 0; } }
#toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 99; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { background: #000; border: 2px solid var(--green); color: var(--text); padding: 10px 18px; border-radius: 999px; font-weight: 600; animation: pop .2s; box-shadow: 0 8px 30px #000; } .toast.err { border-color: var(--red); } .toast.warn { border-color: var(--amber); } .toast.out { opacity: 0; transition: opacity .3s; }

/* ---------- Login ---------- */
.login-mode { background-image: linear-gradient(rgba(7,7,10,.25), rgba(7,7,10,.5)), url('../icons/login-bg.jpg'); background-size: cover; background-position: center; }
.login { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 24px; padding: 24px 6vw; max-width: 1200px; margin: 0 auto; }
.login-brand { text-align: center; } .login-logo { width: min(440px, 86%); mix-blend-mode: lighten; -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 58%, transparent 72%); mask-image: radial-gradient(circle at 50% 50%, #000 58%, transparent 72%); } .tagline { font-family: var(--display); letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin-top: 14px; }
.login-box { background: rgba(19,19,27,.9); backdrop-filter: blur(6px); border: 2px solid var(--line); border-radius: 18px; padding: 26px; max-width: 440px; width: 100%; justify-self: center; } .login-box h2 { font-size: 26px; margin-bottom: 16px; display: flex; justify-content: space-between; align-items: baseline; }
.login-users { display: grid; gap: 10px; } .lu { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px; text-align: left; background: var(--bg2); border: 2px solid var(--line); border-radius: 12px; padding: 10px 14px; cursor: pointer; } .lu:hover { border-color: var(--gold); box-shadow: 4px 4px 0 var(--gold-d); } .lu small { color: var(--mute); }
.pindots { display: flex; gap: 12px; justify-content: center; margin: 6px 0 8px; } .pindots i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line2); } .pindots i.on { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 10px var(--gold); }
.padmsg { min-height: 22px; text-align: center; color: var(--red); font-weight: 700; }
.pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; } .pad button { background: var(--bg2); border: 2px solid var(--line2); border-radius: 14px; height: 64px; font-family: var(--display); font-size: 28px; cursor: pointer; color: var(--text); } .pad button:hover { border-color: var(--gold); } .pad button:active { transform: scale(.96); } .pad .go { background: var(--gold); color: #130f02; border-color: #000; } .pad .alt { color: var(--mute); }
.hint { font-size: 12px; color: var(--mute); margin: 16px 0 0; border-top: 1px dashed var(--line); padding-top: 12px; }
.shake { animation: shake .35s; } @keyframes shake { 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }

/* ---------- Ticket ---------- */
.ticket-wrap { display: flex; justify-content: center; }
.ticket { background: #fff; color: #111; font-family: 'Courier New', monospace; font-size: 12.5px; width: 302px; padding: 16px 14px; border-radius: 4px; }
.ticket .tk-head { text-align: center; } .tk-logo { width: 150px; } .tk-name { font-size: 22px; margin-top: 2px; }
.tk-sep { border-top: 1px dashed #555; margin: 8px 0; } .tk-row { display: flex; justify-content: space-between; gap: 8px; } .tk-total { font-weight: 700; font-size: 15px; } .tk-title { text-align: center; font-weight: 700; letter-spacing: .15em; } .tk-item { margin-bottom: 5px; } .tk-foot { text-align: center; font-size: 11px; }
#printArea { display: none; }
@media print {
  body.printing > *:not(#printArea) { display: none !important; }
  body.printing #printArea { display: block; } body.printing { background: #fff !important; }
  .ticket { width: 72mm; box-shadow: none; padding: 0; font-size: 11px; }
  @page { margin: 4mm; }
}

.cart-fab { display: none; }
/* ---------- Responsive ---------- */
@media (max-width: 1100px) { .pos-wrap { grid-template-columns: minmax(0,1fr) 340px; } }
@media (max-width: 860px) {
  .cart-fab { display: flex; align-items: center; gap: 8px; position: fixed; left: 50%; transform: translateX(-50%); bottom: 78px; z-index: 30; background: var(--gold); color: #130f02; border: 2px solid #000; border-radius: 999px; padding: 12px 20px; font-weight: 700; box-shadow: 4px 4px 0 var(--gold-d), 0 0 24px rgba(0,0,0,.6); cursor: pointer; white-space: nowrap; }
  .cart-fab[hidden] { display: none; }
  .shell { grid-template-columns: 1fr; padding-bottom: 72px; }
  .side { position: fixed; bottom: 0; top: auto; left: 0; right: 0; height: 66px; flex-direction: row; padding: 4px; z-index: 40; border-right: 0; border-top: 2px solid var(--line); overflow-x: auto; }
  .side-logo, .side-sp { display: none; } .nav { flex: 1; min-width: 62px; padding: 6px 2px; font-size: 10px; }
  .pos-wrap { grid-template-columns: 1fr; } .pos-cart { position: static; max-height: none; }
  .view { padding: 8px 14px 30px; } .top { padding: 10px 14px; } .banner { margin: 0 14px; }
  .login { grid-template-columns: 1fr; padding: 16px; } .login-logo { width: 200px; }
  .form-grid { grid-template-columns: 1fr; } .span2 { grid-column: auto; } .pay-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) { .nav span { display: none; } .nav.on span { display: block; } .nav { flex: 1 1 0; } .nav.on { flex: 1.8 1 0; } }
@media (prefers-reduced-motion: reduce) { .ticker-t { animation: none; } * { transition: none !important; animation-duration: .01s !important; } }

/* Inventario como tarjetas en celular */
@media (max-width: 860px) {
  .v-inventory .table-wrap { border: 0; background: none; }
  .v-inventory #tbl, .v-inventory #tbl tbody { display: block; }
  .v-inventory #tbl thead, .v-inventory .c-cat, .v-inventory .c-mar { display: none; }
  .v-inventory #tbl tr { display: grid; grid-template-columns: 48px minmax(0,1fr) auto; gap: 8px 12px; align-items: center; padding: 12px; margin-bottom: 10px; background: var(--panel); border: 2px solid var(--line); border-radius: 12px; }
  .v-inventory #tbl td { padding: 0; border: 0; }
  .v-inventory .c-thumb { grid-row: span 2; width: auto; } .v-inventory .c-thumb img, .v-inventory .c-thumb .mono { width: 48px; height: 48px; }
  .v-inventory .c-prod { grid-column: 2; }
  .v-inventory .c-price { grid-column: 3; text-align: right; font-weight: 700; color: var(--gold2); }
  .v-inventory .c-tot { grid-column: 2; grid-row: 2; text-align: left; } .v-inventory .c-tot b::after { content: ' pzas'; font-weight: 400; color: var(--mute); }
  .v-inventory .c-edit { grid-column: 3; grid-row: 2; }
  .v-inventory .c-sz { grid-column: 1 / -1; }
  .nav { letter-spacing: .01em; font-size: 9px; min-width: 0; padding: 4px 0; gap: 2px; } .nav-ic { width: 28px; height: 28px; }
}

/* Stickers, estados vacíos y cinta */
.stk { position: absolute; left: 6px; top: 8px; width: 38%; max-width: 110px; height: auto !important; object-fit: contain !important; background: none !important; transform: rotate(-6deg); filter: drop-shadow(0 3px 6px rgba(0,0,0,.6)); pointer-events: none; }
.card.soldout { opacity: 1; } .card.soldout .card-img > img:first-child, .card.soldout .mono, .card.soldout .card-b { opacity: .4; }
.empty-art { margin: 0; text-align: center; padding: 10px 0; } .empty-art img { width: 100%; max-width: 400px; height: auto; border-radius: 12px; display: block; margin: 0 auto; } .empty-art figcaption { color: var(--mute); margin-top: 8px; font-size: 13px; }
.hero-art { width: min(380px, 100%); height: auto; border-radius: 12px; }
.login-foot { grid-column: 1 / -1; text-align: center; padding-bottom: 12px; } .login-foot p { color: var(--mute); font-size: 12px; margin: 10px 0 0; }
.tape-img { width: min(100%, 780px); height: auto; border-radius: 6px; transform: rotate(-1deg); box-shadow: 0 10px 40px rgba(0,0,0,.6); }

/* ---------- Etiquetas con código de barras ---------- */
.lbl { width: 50mm; height: 25mm; box-sizing: border-box; padding: 1.4mm 2mm; display: flex; flex-direction: column; justify-content: space-between; background: #fff; color: #000; font-family: Arial, Helvetica, sans-serif; overflow: hidden; break-after: page; }
.lbl-t { font-size: 7pt; font-weight: 700; line-height: 1.1; max-height: 2.2em; overflow: hidden; text-transform: uppercase; }
.lbl-r { display: flex; justify-content: space-between; align-items: baseline; font-size: 8.5pt; font-weight: 700; }
.lbl-bc svg { display: block; width: 100%; height: 8.5mm; } .lbl-c { font-size: 6pt; text-align: center; letter-spacing: .12em; line-height: 1; }
.lbl-sheet { display: grid; grid-template-columns: repeat(3, 50mm); gap: 2mm 3mm; } .lbl-sheet .lbl { break-after: auto; outline: .2mm dashed #999; }
.lbl-prev { margin: 12px 0 4px; display: flex; justify-content: center; } .lbl-prev .lbl { border-radius: 4px; break-after: auto; height: 25mm; transform: scale(1.4); transform-origin: top center; margin-bottom: 10mm; }
.lbl-rows { display: grid; gap: 6px; margin: 8px 0 12px; } .lbl-row { display: flex; justify-content: space-between; align-items: center; background: var(--bg2); border: 2px solid var(--line); border-radius: 10px; padding: 4px 6px 4px 12px; } .lbl-row input { width: 80px; min-height: 36px; padding: 6px 8px; background: var(--bg); color: var(--text); border: 2px solid var(--line2); border-radius: 8px; }
.pick-list { display: grid; gap: 6px; margin-top: 10px; max-height: 50vh; overflow: auto; } .pick { display: flex; justify-content: space-between; gap: 10px; text-align: left; background: var(--bg2); border: 2px solid var(--line); border-radius: 10px; padding: 10px 12px; color: var(--text); cursor: pointer; } .pick:hover { border-color: var(--gold); }

.sz-own { flex: 1 1 100%; color: var(--mute); font-size: 11px; margin: -2px 0 4px; } .sz-own b { color: var(--gold); letter-spacing: .05em; }

/* Firma Shinobi Dev: en celular se sube para no tapar el botón "Ver carrito" ni la barra inferior */
@media (max-width: 700px) { .sdx-flota { bottom: 142px !important; } }


/* ---- Etapa 1.0 ---- */
.color-h { grid-column: 1 / -1; margin: 10px 0 2px; font-family: var(--display); font-weight: 400; letter-spacing: .06em; font-size: 17px; color: var(--gold); }
.modal-b .sub.color-h { margin: 14px 0 0; }
.color-chip { display: inline-flex; align-items: center; gap: 6px; cursor: default; padding-right: 8px; }
.chip-x { background: none; border: 0; color: inherit; font-size: 18px; line-height: 1; cursor: pointer; padding: 0 2px; }
.sz-i em { font-style: normal; font-size: 11px; color: var(--mute); font-weight: 600; }
.dbfail { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,.92); display: grid; place-items: center; padding: 20px; }
.dbfail-b { background: var(--panel); border: 3px solid var(--red); border-radius: 18px; padding: 28px; max-width: 520px; width: 100%; text-align: center; }
.dbfail-b h2 { font-family: var(--display); font-weight: 400; font-size: 30px; color: var(--red); margin: 0 0 10px; }
.dbfail-m { font-weight: 700; color: var(--amber); } .dbfail-a { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 16px 0; }
.eq-line { font-size: 18px; margin: 0 0 10px; } .eq-v { font-family: var(--display); font-weight: 400; font-size: 30px; color: var(--gold); letter-spacing: .02em; }
.eq-bar { height: 14px; margin-bottom: 10px; } .tbl tr.off { opacity: .55; }
.m-colors { font-size: 12px; color: var(--mute); margin-top: 4px; }

/* Con la sección Gastos el menú lateral tiene 8 botones: en pantallas bajas se compacta y, si aún no cabe, se desplaza (sin barra) para que "Bloquear" siempre se alcance */
.side { overflow-y: auto; scrollbar-width: none; } .side::-webkit-scrollbar { display: none; }
@media (min-width: 701px) and (max-height: 860px) {
  .nav { padding: 5px 4px; gap: 1px; } .nav-ic { width: 30px; height: 30px; } .side-logo { margin: 0 12px 6px; } .side { padding: 8px 8px; gap: 3px; }
}
