/* Layout: barra lateral + área principal; la caja (TPV) usa mosaico de productos + carrito + resumen fijo a la derecha.
   Tema claro fijo greige piedra (estilo Maredal), por decisión del cliente. */
:root{
  --bg:#EFECE7; --surface:#FBFAF8; --surface-2:#F1EDE7; --line:#D6CFC4; --fg:#2E2A26; --muted:#7B7369;
  --accent:#4F4840; --accent-fg:#FBFAF8; --accent-soft:#E8E2D9; --brass:#9A8160;
  --ok:#4E7A5A; --ok-soft:#E3EDE4; --warn:#9C6B22; --warn-soft:#F4E9D6; --bad:#A3473C; --bad-soft:#F4E1DD; --info:#5A6E86; --info-soft:#E4E9EF;
  --t1:#ECE6DD; --t2:#E4E6DF; --t3:#EFE5D8; --t4:#EDE2DE; --t5:#E6E3EA; --t6:#E2E6E4;
  --shadow:0 12px 32px rgba(60,50,40,.12);
  --f-display:"Cormorant Garamond", "Didot", Georgia, serif;
  --f-body:"Jost", "Avenir Next", system-ui, sans-serif;
  --r:10px; color-scheme:light;
}
html,body{height:100%}
body{background:var(--bg); color:var(--fg); font-family:var(--f-body); font-size:14px; line-height:1.45}
*{box-sizing:border-box}
button,input,select,textarea{font:inherit; color:inherit}
input[type=checkbox],input[type=radio]{-webkit-appearance:none; appearance:none; width:19px !important; min-width:19px; height:19px !important; flex:none; margin:0; padding:0 !important; border:1.5px solid #9C9389; background:#fff; border-radius:5px; cursor:pointer; display:inline-grid; place-content:center; vertical-align:middle}
input[type=radio]{border-radius:50%}
input[type=checkbox]:checked{background:var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; border-color:var(--accent)}
input[type=radio]:checked{border-color:var(--accent); background:radial-gradient(circle, var(--accent) 0 45%, #fff 50%)}
input[type=checkbox]:disabled,input[type=radio]:disabled{opacity:.45; cursor:not-allowed}
input[type=checkbox]:hover,input[type=radio]:hover{border-color:var(--accent)}
a{color:var(--accent); text-underline-offset:2px}
::selection{background:var(--accent-soft)}
input:focus,select:focus,textarea:focus{outline:none; border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-soft)}
*{-webkit-tap-highlight-color:transparent}
[hidden]{display:none!important}
.num{font-variant-numeric:tabular-nums; white-space:nowrap}
.app{display:grid; grid-template-columns:224px minmax(0,1fr); height:100%}
nav.side{background:#E6E1D9; border-right:1px solid var(--line); padding:20px 12px; overflow-y:auto; display:flex; flex-direction:column; gap:14px}
.brand{font-family:var(--f-display); font-weight:600; font-size:24px; letter-spacing:.06em; padding:0 8px; display:flex; align-items:baseline; gap:6px}
.brand{white-space:nowrap; overflow:hidden}
.brand small{font-family:var(--f-body); font-size:11px; font-weight:600; color:var(--brass); letter-spacing:.08em; text-transform:uppercase}
.quick{display:flex; flex-direction:column; gap:6px}
.quick .btn{justify-content:center}
.quick .btn.primary{padding:11px; font-size:15px; border-radius:10px}
.navgroup{display:flex; flex-direction:column; gap:3px; padding-top:12px; border-top:1px solid #D2CBC0}
.navgroup h6{margin:0 0 6px; padding:0 10px; font-size:11px; letter-spacing:.12em; text-transform:uppercase; color:#6E665C; font-weight:600}
.navbtn{display:flex; align-items:center; justify-content:space-between; gap:8px; width:100%; border:0; background:none; padding:9px 10px; border-radius:8px; cursor:pointer; text-align:left; color:#2E2A26; font-weight:500; font-size:15px}
.navbtn:hover{background:#F3F0EB}
.navbtn[aria-current="page"]{background:var(--accent); color:var(--accent-fg); font-weight:600}
.navbtn[aria-current="page"] .count{background:var(--accent-fg); color:var(--accent)}
.navbtn .count{font-size:11px; font-weight:700; background:var(--warn-soft); color:var(--warn); border-radius:20px; padding:0 7px; line-height:18px}
main{overflow-y:auto; padding-block:22px 60px; padding-inline:28px; min-width:0}
.head{display:flex; flex-wrap:wrap; align-items:flex-end; justify-content:space-between; gap:12px; margin-bottom:18px}
.head h1{font-family:var(--f-display); font-weight:600; font-size:34px; letter-spacing:-.015em; margin:0; text-wrap:balance}
.head p{margin:2px 0 0; color:var(--muted)}
.tools{display:flex; flex-wrap:wrap; gap:8px; align-items:center}
.btn{display:inline-flex; align-items:center; gap:6px; border:1px solid var(--line); background:var(--surface); padding:8px 13px; border-radius:8px; cursor:pointer; font-weight:600; white-space:nowrap; text-decoration:none; color:var(--fg)}
.btn:hover{border-color:var(--muted)}
.btn.primary{background:var(--accent); color:var(--accent-fg); border-color:var(--accent)}
/* Botones de alta con color propio: venta verde eco, presupuesto latón, pedido Mapfre terracota */
.btn.c-venta{background:#4F7A4A; border-color:#4F7A4A; color:#fff}
.btn.c-presu{background:#9A8160; border-color:#9A8160; color:#fff}
.btn.c-seguro{background:#B5654A; border-color:#B5654A; color:#fff}
.btn.c-venta:hover,.btn.c-presu:hover,.btn.c-seguro:hover{filter:brightness(1.08); border-color:transparent}
.btn.primary:hover{filter:brightness(1.08)}
.btn.danger{color:var(--bad); border-color:var(--bad-soft)}
.btn.ghost{background:none; border-color:transparent; color:var(--accent)}
.btn.sm{padding:5px 10px; font-size:13px}
.btn.wa{background:#2F7D57; border-color:#2F7D57; color:#fff}
.btn:disabled{opacity:.5; cursor:not-allowed}
:focus-visible{outline:2px solid var(--accent); outline-offset:2px}
input,select,textarea{background:var(--surface); border:1px solid var(--line); border-radius:7px; padding:7px 9px; min-width:0; width:100%}
textarea{resize:vertical; min-height:60px}
.search{max-width:260px}
.datef{display:inline-flex; align-items:center; gap:6px; font-size:12.5px; color:var(--muted); font-weight:600}
.datef input{width:auto}
.chip{display:inline-flex; align-items:center; gap:4px; font-size:12px; font-weight:650; padding:1px 8px; border-radius:20px; background:var(--surface-2); color:var(--muted); white-space:nowrap}
.chip.ok{background:var(--ok-soft); color:var(--ok)} .chip.warn{background:var(--warn-soft); color:var(--warn)}
.chip.bad{background:var(--bad-soft); color:var(--bad)} .chip.info{background:var(--info-soft); color:var(--info)}
.chip.accent{background:var(--accent-soft); color:var(--accent)}
.chip.pro{background:#B8643F; color:#fff} .chip.proplus{background:#141414; color:#fff}
.tag{font-size:11.5px; padding:0 7px; border:1px solid var(--line); border-radius:20px; color:var(--muted)}
.loc{display:inline-flex; align-items:baseline; gap:6px; font-size:14px; font-weight:600; padding:0 2px 1px; border-bottom:3px solid var(--c,#999); white-space:nowrap; line-height:1.3}
.loc small{font-size:11.5px; font-weight:500; color:var(--muted)}
.muted{color:var(--muted)} .small{font-size:12.5px}
.interno{font-size:12px; color:var(--brass); font-weight:600}
.panel{background:var(--surface); border:1px solid var(--line); border-radius:var(--r)}
.panel > h3{margin:0; padding:14px 16px 0; font-size:13px; font-weight:700; letter-spacing:.02em; display:flex; justify-content:space-between; gap:8px; align-items:center}
.panel .pbody{padding:12px 16px 16px}
.kpis{display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin-bottom:16px}
.kpi{padding:14px 16px}
.kpi .lab{font-size:12px; color:var(--muted); font-weight:600}
.kpi .val{font-family:var(--f-display); font-weight:600; font-size:30px; letter-spacing:-.01em; margin-top:2px}
.kpi .sub{font-size:12px; color:var(--muted)}
.grid2{display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,1fr); gap:16px}
.grid3{display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px}
.stack{display:flex; flex-direction:column; gap:16px}
.tablewrap{overflow-x:auto}
table{width:100%; border-collapse:collapse}
th{font-size:11.5px; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); text-align:left; font-weight:650; padding:10px 12px; border-bottom:1px solid var(--line); white-space:nowrap}
td{padding:10px 12px; border-bottom:1px solid var(--line); vertical-align:middle}
tr:last-child td{border-bottom:0}
td.r,th.r{text-align:right}
tr.row{cursor:pointer} tr.row:hover td{background:var(--surface-2)}
.list{display:flex; flex-direction:column}
.li{display:flex; align-items:center; justify-content:space-between; gap:10px; padding:9px 0; border-bottom:1px solid var(--line); cursor:pointer}
.li:last-child{border-bottom:0}
.li .t{font-weight:600} .li .s{font-size:12.5px; color:var(--muted)}
.li > div:first-child{min-width:0}
.empty{padding:28px 16px; text-align:center; color:var(--muted)}
.empty b{display:block; color:var(--fg); margin-bottom:4px}
.banner{display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px; padding:10px 14px; border-radius:var(--r); background:var(--warn-soft); color:var(--warn); margin-bottom:16px; font-weight:600}
.banner.info{background:var(--info-soft); color:var(--info)}
.segs{display:inline-flex; background:var(--surface-2); border-radius:8px; padding:3px; gap:2px; flex-wrap:wrap}
.segs button{border:0; background:none; padding:5px 10px; border-radius:6px; cursor:pointer; font-weight:600; color:var(--muted); font-size:13px}
.segs button[aria-pressed="true"]{background:var(--surface); color:var(--fg); box-shadow:0 1px 2px rgba(0,0,0,.12)}
.bar{height:8px; border-radius:4px; background:var(--surface-2); overflow:hidden}
.bar > span{display:block; height:100%; background:var(--accent)}
.bar.done > span{background:var(--ok)}
/* Embudo */
.kanban{display:grid; grid-auto-flow:column; grid-auto-columns:minmax(230px,1fr); gap:12px; overflow-x:auto; padding-bottom:8px}
.col{background:var(--surface-2); border-radius:var(--r); padding:10px; display:flex; flex-direction:column; gap:8px; min-height:200px}
.col.over{outline:2px dashed var(--accent)}
.col h4{margin:0; font-size:12.5px; display:flex; justify-content:space-between; gap:6px}
.card{background:var(--surface); border:1px solid var(--line); border-radius:8px; padding:10px; cursor:grab; display:flex; flex-direction:column; gap:4px}
.card .t{font-weight:650}
/* Caja / TPV */
.tpv{display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,1fr); gap:16px; align-items:start}
.cartsec{position:sticky; top:0}
.pasos{display:flex; align-items:center; gap:8px; margin-bottom:16px; flex-wrap:wrap}
.paso{display:flex; align-items:center; gap:9px; border:1px solid var(--line); background:var(--surface); border-radius:999px; padding:6px 16px 6px 6px; cursor:pointer; font-weight:500; color:var(--muted); font-size:14.5px}
.paso b{width:28px; height:28px; border-radius:50%; display:grid; place-items:center; background:var(--surface-2); color:var(--fg); font-weight:600}
.paso[aria-current="step"]{border-color:var(--accent); color:var(--fg)} .paso[aria-current="step"] b{background:var(--accent); color:var(--accent-fg)}
.paso-sep{width:22px; height:1px; background:var(--line)}
.pasobody{max-width:860px; margin-inline:auto; display:flex; flex-direction:column; gap:12px}
#tpv:has(.pasobody) + .tpvbar{max-width:860px; margin-inline:auto}
.tpvbar{position:sticky; bottom:0; z-index:3; margin-top:16px; background:var(--surface); border:1px solid var(--line); border-radius:14px; padding:12px 16px; display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:12px; box-shadow:var(--shadow)}
.tpvbar b{font-family:var(--f-display); font-size:32px; font-weight:600}
.tpvbar .cta{width:auto; padding:13px 22px}
.cobrahoy{background:#4F7A4A; color:#fff; border-radius:12px; padding:8px 16px}
.cobrahoy .small{opacity:.85; font-weight:500}
.grand.cobrahoy{padding:14px 16px} .grand.cobrahoy b{font-size:36px}
.tpv-main{display:flex; flex-direction:column; gap:14px; min-width:0}
.tpv-side{position:sticky; top:0; display:flex; flex-direction:column; gap:12px}
.sec{background:var(--surface); border:1px solid var(--line); border-radius:14px; padding:14px; display:flex; flex-direction:column; gap:10px}
.sec h4{margin:0; font-size:11.5px; text-transform:uppercase; letter-spacing:.08em; color:var(--muted); font-weight:700}
.sec h4 em{font-style:normal; text-transform:none; letter-spacing:0; font-weight:500}
.bigsearch{font-size:16px; padding:12px 14px; border-radius:12px; background:var(--surface-2); border-color:transparent}
.pills{display:flex; flex-wrap:wrap; gap:6px}
.pill{border:1px solid var(--line); background:var(--surface); border-radius:999px; padding:6px 12px; cursor:pointer; font-weight:600; font-size:13px; color:var(--fg)}
.pill:hover{border-color:var(--muted)}
.pill[aria-pressed="true"]{background:var(--accent); color:var(--accent-fg); border-color:var(--accent)}
.pill:disabled{opacity:.35; cursor:not-allowed; text-decoration:line-through}
.tiles{display:grid; grid-template-columns:repeat(auto-fill,minmax(190px,1fr)); gap:8px}
.tile{background:var(--tint,var(--surface)) !important; border-color:transparent !important}
.tile{position:relative; text-align:left; border:1px solid var(--line); background:var(--surface); border-radius:14px; padding:10px; cursor:pointer; display:flex; flex-direction:column; gap:5px; transition:transform .12s, box-shadow .12s; color:var(--fg)}
.tile:hover{transform:translateY(-2px); box-shadow:var(--shadow)}
.tile .mono{aspect-ratio:2/1; border-radius:9px; display:grid; place-items:center; font-family:var(--f-display); font-size:28px; font-weight:600; background:var(--tint,var(--t6)); color:var(--fg); letter-spacing:-.02em}
.tile .tn{font-weight:650; line-height:1.25}
.tile .tb{display:flex; justify-content:space-between; align-items:center; gap:6px; margin-top:auto}
.tile .tb b{font-size:15px}
.tile .incart{position:absolute; top:6px; right:6px; background:var(--accent); color:var(--accent-fg); border-radius:999px; min-width:24px; height:24px; display:grid; place-items:center; font-size:12px; font-weight:700; padding:0 6px}
.tile.libre{border:1.5px dashed var(--accent); background:var(--accent-soft); color:var(--accent); justify-content:center; align-items:center; text-align:center; min-height:120px}
.tile.libre b{font-size:16px}
.cart{display:flex; flex-direction:column; gap:8px}
.cl{border:1px solid var(--line); background:var(--surface); border-radius:12px; padding:10px 12px; display:flex; flex-direction:column; gap:8px}
.cl.pedir{border-left:4px solid var(--warn)}
.cl.compact{display:grid; grid-template-columns:minmax(0,1fr) auto 100px auto; gap:12px; align-items:center; padding:8px 12px}
.cl.compact .t{font-weight:600}
@media (max-width:760px){ .cl.compact{grid-template-columns:minmax(0,1fr) auto} }
.cl-main{display:grid; grid-template-columns:auto minmax(80px,1fr) 78px minmax(80px,auto) 30px; gap:8px; align-items:end}
.cl-main > label:first-child{grid-column:1/-1}
.cl-main label.mini{display:flex; flex-direction:column; gap:2px; font-size:11px; color:var(--muted); font-weight:600}
.c-nombre{font-weight:600; font-size:15px}
.qty{display:inline-flex; align-items:center; border:1px solid var(--line); border-radius:8px; overflow:hidden; height:36px}
.qty button{border:0; background:var(--surface-2); width:32px; height:100%; cursor:pointer; font-size:17px; color:var(--fg)}
.qty input{width:46px; border:0; border-radius:0; text-align:center; padding:6px 2px}
.cl-tot{text-align:right; font-weight:700; font-size:15px; padding-bottom:7px}
.cl-meta{display:flex; flex-wrap:wrap; gap:6px; align-items:center; font-size:12px}
.cl-int{display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; padding:10px; background:var(--surface-2); border-radius:9px}
.cl-int .wide{grid-column:span 2}
.cl-int .full{grid-column:1/-1}
.linkbtn{border:0; background:none; color:var(--accent); font-weight:650; cursor:pointer; padding:0; font-size:12.5px}
.opts{display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px}
.opt{border:1.5px solid var(--line); border-radius:12px; padding:10px; background:var(--surface); cursor:pointer; display:flex; flex-direction:column; gap:3px; align-items:flex-start; text-align:left; font-weight:650; font-size:13px; color:var(--fg)}
.opt svg{width:24px; height:24px; stroke:currentColor; fill:none; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round}
.opt small{font-weight:500; color:var(--muted)}
.opt[aria-pressed="true"]{border-color:var(--accent); background:var(--accent-soft); color:var(--accent)}
.days{display:flex; gap:6px; overflow-x:auto; padding-bottom:4px}
.day{flex:none; width:62px; border:1px solid var(--line); border-radius:10px; padding:6px 4px; text-align:center; background:var(--surface); cursor:pointer; color:var(--fg)}
.day b{display:block; font-size:22px; font-weight:600; font-family:var(--f-display); line-height:1.1}
.day span{font-size:10.5px; color:var(--muted); text-transform:uppercase; font-weight:600}
.day[aria-pressed="true"]{background:var(--accent); color:var(--accent-fg); border-color:var(--accent)}
.day[aria-pressed="true"] span{color:inherit}
.grand{display:flex; justify-content:space-between; align-items:baseline; gap:10px}
.grand b{font-family:var(--f-display); font-size:34px; font-weight:600; letter-spacing:-.01em}
.grand.sm b{font-size:19px}
.grand.pend b,.grand.pend span{color:var(--bad)}
.cta{width:100%; justify-content:center; padding:15px; font-size:16px; border-radius:12px}
/* Diálogo */
dialog{border:0; padding:0; border-radius:14px; background:var(--surface); color:var(--fg); box-shadow:var(--shadow); width:min(640px, calc(100vw - 24px)); max-height:calc(100vh - 32px); max-height:calc(100dvh - 32px); overscroll-behavior:contain}
dialog.wide{width:min(980px, calc(100vw - 24px))}
dialog::backdrop{background:rgba(10,16,13,.45)}
.mhead{display:flex; justify-content:space-between; align-items:flex-start; gap:12px; padding:18px 20px 10px; position:sticky; top:0; background:var(--surface); z-index:2; border-bottom:1px solid var(--line)}
.mhead h2{font-family:var(--f-display); font-weight:600; font-size:25px; margin:0}
.mbody{padding:16px 20px 20px; display:flex; flex-direction:column; gap:14px}
.mfoot{display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; padding:12px 20px; border-top:1px solid var(--line); position:sticky; bottom:0; background:var(--surface)}
.menu-wrap{position:relative}
.menu.down{top:calc(100% + 6px); bottom:auto; left:auto; right:0; z-index:30}
.filtros{display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin:-6px 0 10px}
.filtros + .filtros{margin-top:0}
.filtros .search{flex:1 1 220px}
.menu{position:absolute; bottom:calc(100% + 6px); left:0; min-width:230px; background:var(--surface); border:1px solid var(--line); border-radius:10px; box-shadow:var(--shadow); padding:6px; display:flex; flex-direction:column; z-index:5}
.menu button{border:0; background:none; text-align:left; padding:9px 10px; border-radius:7px; cursor:pointer; font-weight:500; color:var(--fg)}
.menu button:hover{background:var(--surface-2)}
.menu button.danger{color:var(--bad)}
.menu hr{border:0; border-top:1px solid var(--line); margin:4px 0}
.x{border:0; background:var(--surface-2); width:30px; height:30px; border-radius:50%; cursor:pointer; font-size:16px; flex:none}
.fields{display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 12px}
.fields.three{grid-template-columns:repeat(3,minmax(0,1fr))}
.f{display:flex; flex-direction:column; gap:4px; font-size:12.5px; font-weight:600; color:var(--muted)}
.f.full{grid-column:1/-1}
label.chk{display:flex; align-items:center; gap:8px; font-weight:500; color:var(--fg); font-size:13.5px}
label.chk input{width:auto}
fieldset{border:1px solid var(--line); border-radius:var(--r); padding:12px; margin:0; display:flex; flex-direction:column; gap:10px}
legend{font-weight:700; font-size:12.5px; padding:0 6px}
.icon-btn{border:0; background:none; color:var(--muted); cursor:pointer; font-size:18px; width:30px; height:30px; border-radius:6px}
.icon-btn:hover{background:var(--bad-soft); color:var(--bad)}
.totals{display:grid; grid-template-columns:auto auto; justify-content:end; gap:3px 18px; text-align:right}
.totals .big{font-family:var(--f-display); font-weight:650; font-size:20px}
.totals .pend{color:var(--bad); font-weight:700}
.steps{display:flex; gap:6px; flex-wrap:wrap}
.step{font-size:12px; font-weight:650; padding:4px 10px; border-radius:20px; background:var(--surface-2); color:var(--muted)}
.step.done{background:var(--accent-soft); color:var(--accent)}
.step.now{background:var(--accent); color:var(--accent-fg)}
.kv{display:grid; grid-template-columns:max-content minmax(0,1fr); gap:4px 14px; margin:0}
.kv dt{color:var(--muted); font-weight:600; font-size:12.5px} .kv dd{margin:0}
.mail{white-space:pre-wrap; background:var(--surface-2); border-radius:8px; padding:14px; font-size:13.5px; line-height:1.55; overflow-x:auto}
.confirm{background:var(--bad-soft); color:var(--bad); padding:12px; border-radius:8px; display:flex; flex-wrap:wrap; gap:10px; align-items:center; justify-content:space-between; font-weight:600}
.toasts{position:fixed; right:16px; bottom:calc(16px + env(safe-area-inset-bottom,0px)); display:flex; flex-direction:column; gap:8px; z-index:50; max-width:min(380px, calc(100vw - 32px))}
.toast{background:var(--fg); color:var(--bg); padding:10px 14px; border-radius:9px; box-shadow:var(--shadow); font-weight:500}
.toast.warn{background:var(--bad); color:#fff} .toast.bad{background:var(--bad); color:#fff}
svg.chart text{fill:var(--muted); font-size:11px; font-family:var(--f-body)}
svg.chart .grid{stroke:var(--line)}
svg.chart .b1{fill:var(--accent)} svg.chart .b2{fill:var(--brass)}
.legend{display:flex; gap:14px; font-size:12px; color:var(--muted)}
.legend i{display:inline-block; width:10px; height:10px; border-radius:2px; margin-right:5px; vertical-align:-1px}
.only-new,.only-alm,.only-tag{display:contents}
/* Selector de cliente */
.cpick{position:relative}
.cp-row{display:flex; flex-wrap:wrap; gap:6px; align-items:center}
.cp-row .cp-q{flex:1 1 200px}
.cp-list{position:absolute; left:0; right:0; top:100%; z-index:5; margin-top:4px; background:var(--surface); border:1px solid var(--line); border-radius:8px; box-shadow:var(--shadow); max-height:290px; overflow-y:auto; padding:4px}
.cp-item{display:flex; justify-content:space-between; gap:10px; width:100%; text-align:left; border:0; background:none; padding:8px 10px; border-radius:6px; cursor:pointer; color:var(--fg)}
.cp-item:hover,.cp-item:focus-visible{background:var(--surface-2); outline:none}
.cp-item small{color:var(--muted)}
.cp-sel{font-size:12.5px; font-weight:600; color:var(--accent)}
/* Almacén */
.aisles{display:grid; grid-template-columns:repeat(auto-fit,minmax(320px,1fr)); gap:16px}
.aisle{background:var(--surface); border:1px solid var(--line); border-radius:14px; overflow:hidden}
.aisle-h{padding:10px 14px; color:#fff; font-weight:700; display:flex; justify-content:space-between; gap:8px}
.aisle-g{display:grid; grid-template-columns:62px minmax(0,1fr) minmax(0,1fr); font-size:12.5px}
.aisle-g > div{padding:6px 8px; border-bottom:1px solid var(--line); min-height:36px; display:flex; flex-wrap:wrap; gap:4px; align-items:center}
.aisle-g .rl{color:var(--muted); font-weight:700; background:var(--surface-2)}
.aisle-g .hd{font-weight:700; color:var(--muted); text-transform:uppercase; font-size:11px; letter-spacing:.06em; background:var(--surface-2)}
.box{border:1px solid var(--line); border-bottom:3px solid var(--c,#999); background:var(--surface); border-radius:6px; padding:2px 8px; cursor:pointer; font-weight:600; font-size:13px; color:var(--fg)}
.box:hover{border-color:var(--accent)}
.box.hit{background:var(--warn-soft); border-color:var(--warn)}
/* Ticket y documentos: tarjeta limpia tipo ticket electrónico */
.tk{font-family:"Jost","Helvetica Neue",Arial,sans-serif; font-size:13px; line-height:1.45; background:#fff; color:#141414; width:min(380px,100%); margin:0 auto; padding:26px 22px; border:1.5px solid #141414; border-radius:26px}
.tk.doc{width:min(720px,100%); border-radius:14px; border-width:1px}
.tk .logo{font-family:"Bodoni Moda","Didot",serif; font-size:46px; text-align:center; letter-spacing:.02em; line-height:1; margin-bottom:14px}
.tk .r{display:flex; justify-content:space-between; gap:8px}
.tk .mut{color:#6b6b6b}
.tk .big{font-size:20px; letter-spacing:.02em}
.tk .it{border-bottom:1px solid #9a9a9a; padding:12px 0}
.tk .it .nm{text-transform:uppercase; margin-bottom:8px}
.tk .sm{font-size:11.5px; text-transform:uppercase}
.tk .c{text-align:center}
.tk .qr{display:flex; justify-content:center; margin:16px 0}
.tk .qr svg{width:150px; height:150px}
.tk .bc svg{width:100%; height:60px}
.tk .tkb{padding:12px 0; border-bottom:1px solid #9a9a9a; display:flex; flex-direction:column; gap:4px}
.tk .tktot{font-size:17px; font-weight:600; margin-top:4px}
.tk .tklab{font-size:11px; letter-spacing:.14em; text-transform:uppercase; color:#6b6b6b; margin-bottom:2px}
.tk .tkpend{margin-top:12px; border:2px solid #141414; border-radius:10px; padding:10px 12px; display:flex; justify-content:space-between; align-items:center; gap:8px; font-size:12px; letter-spacing:.06em}
.tk .tkpend b{font-size:18px; letter-spacing:0}
.tk .tkpaid{margin-top:12px; text-align:center; font-size:12px; letter-spacing:.12em; text-transform:uppercase}
.tk .legal{font-size:11px; font-style:italic; text-align:center; color:#444; margin-top:12px}
.tk table{font-size:12.5px} .tk th{color:#6b6b6b}
.doc2{background:#fff; color:#1d1b19; font-family:"Jost",Arial,sans-serif; font-size:13px; line-height:1.5; width:100%; max-width:794px; margin:0 auto; padding:56px 60px 44px; box-sizing:border-box}
.doc2.pp .kind b{white-space:nowrap}
.doc2.pp .pp-hola{display:flex; justify-content:space-between; align-items:flex-end; gap:20px; margin:26px 0 10px}
.doc2.pp .pp-cli{font-size:17px}
.doc2.pp .pp-mut{color:#8a8178; font-size:12.5px}
.doc2.pp .pp-intro{font-size:14px; color:#4a4540; margin:6px 0 22px; max-width:560px}
.doc2.pp .pp-col{display:grid; gap:16px}
.doc2.pp .pp-dos{display:grid; grid-template-columns:1fr 1fr; gap:14px; align-items:start}
.doc2.pp .pp-card{border:1px solid #E8E3DC; border-radius:14px; padding:16px 18px 12px; break-inside:avoid}
.doc2.pp .pp-card header{display:flex; justify-content:space-between; align-items:baseline; gap:10px; padding-bottom:10px; margin-bottom:4px; border-bottom:1px solid #EFEBE5}
.doc2.pp .pp-n{font-family:"Bodoni Moda","Didot",serif; font-size:21px}
.doc2.pp .pp-tot{font-family:"Bodoni Moda","Didot",serif; font-size:21px; white-space:nowrap}
.doc2.pp .pp-it{display:grid; grid-template-columns:48px minmax(0,1fr) auto; gap:12px; align-items:center; padding:9px 0; border-bottom:1px solid #F4F1EC}
.doc2.pp .pp-it:last-of-type{border-bottom:0}
.doc2.pp .pp-it img,.doc2.pp .pp-ph{width:48px; height:48px; border-radius:9px; object-fit:cover; background:#F4F1EC; display:grid; place-items:center; font-family:"Bodoni Moda","Didot",serif; font-size:20px; color:#8a8178}
.doc2.pp .pp-nm{font-size:14px; line-height:1.3}
.doc2.pp .pp-sb{font-size:11.5px; color:#8a8178; margin-top:2px}
.doc2.pp .pp-pr{font-size:13.5px; white-space:nowrap}
.doc2.pp .pp-iva{text-align:right; font-size:10.5px; color:#8a8178; letter-spacing:.06em; margin-top:6px}
.doc2.pp .pp-nota{margin-top:18px; padding:14px 16px; background:#F7F5F1; border-radius:12px; font-size:12.5px; white-space:pre-wrap}
.doc2.pp .pp-cta{display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap; margin-top:22px; padding:16px 20px; background:#1d1b19; color:#fff; border-radius:14px}
.doc2.pp .pp-cta b{display:block; font-family:"Bodoni Moda","Didot",serif; font-weight:500; font-size:19px}
.doc2.pp .pp-cta span{font-size:12.5px; opacity:.85}
.doc2.pp .pp-val{font-size:11.5px; opacity:.75}
.doc2 .top{display:flex; justify-content:space-between; align-items:flex-end; gap:20px; padding-bottom:22px; border-bottom:1px solid #1d1b19}
.doc2 .brand2{font-family:"Bodoni Moda","Didot",serif; font-size:44px; line-height:.9; letter-spacing:.04em}
.doc2 .kind{text-align:right; letter-spacing:.18em; font-size:12px; text-transform:uppercase}
.doc2 .kind b{display:block; font-family:"Bodoni Moda","Didot",serif; letter-spacing:.02em; font-size:22px; text-transform:none; font-weight:500; margin-top:4px}
.doc2 .meta{display:grid; grid-template-columns:1.3fr 1fr; gap:24px; margin:26px 0 30px}
.doc2 .lab{font-size:10.5px; letter-spacing:.16em; text-transform:uppercase; color:#8a8178; margin-bottom:4px}
.doc2 .kvs{display:grid; grid-template-columns:auto 1fr; gap:3px 14px; justify-content:end; text-align:right}
.doc2 .kvs span:nth-child(odd){color:#8a8178}
.doc2 table{width:100%; border-collapse:collapse; table-layout:fixed}
.doc2 th{font-size:10.5px; letter-spacing:.14em; text-transform:uppercase; color:#8a8178; font-weight:500; text-align:left; padding:0 0 10px; border-bottom:1px solid #d9d3ca}
.doc2 td{padding:12px 0; border-bottom:1px solid #ece7e0; vertical-align:top}
.doc2 .n{text-align:right; font-variant-numeric:tabular-nums}
.doc2 .tot{width:280px; margin:22px 0 0 auto; display:grid; grid-template-columns:1fr auto; gap:6px 16px}
.doc2 .tot .g{border-top:1px solid #1d1b19; padding-top:10px; font-family:"Bodoni Moda","Didot",serif; font-size:22px}
.doc2 .note{margin-top:30px; padding:16px 18px; background:#f4f1ec; font-size:12.5px}
.doc2 .foot{margin-top:40px; padding-top:14px; border-top:1px solid #d9d3ca; display:flex; justify-content:space-between; gap:12px; font-size:11px; color:#8a8178}
.paypage{background:#F4F1EC; padding:28px 18px; display:flex; flex-direction:column; align-items:center; gap:16px; font-family:"Jost",Arial,sans-serif; color:#1d1b19}
.paypage .card{background:#fff; width:min(440px,100%); border-radius:16px; padding:24px; display:flex; flex-direction:column; gap:12px; box-shadow:0 8px 30px rgba(0,0,0,.08)}
.paypage .brand2{font-family:"Bodoni Moda","Didot",serif; font-size:34px; text-align:center}
.paypage .big{font-family:"Bodoni Moda","Didot",serif; font-size:36px; text-align:center}
.paypage .way{display:flex; justify-content:space-between; align-items:center; gap:10px; border:1px solid #ddd5ca; border-radius:12px; padding:14px 16px; background:#fff; cursor:pointer; font:inherit; color:inherit; text-align:left}
.paypage .way[aria-pressed="true"]{border-color:#1d1b19; box-shadow:inset 0 0 0 1px #1d1b19}
.paypage .way small{color:#8a8178}
.mailcard{background:#fff; color:#141414; font-family:"Jost",Arial,sans-serif; padding:28px; border-radius:10px; display:flex; flex-direction:column; gap:14px}
.mailcard .logo{font-family:"Bodoni Moda","Didot",serif; font-size:44px; text-align:center}
.mailcard h3{font-weight:400; text-align:center; font-size:22px; margin:6px 0; letter-spacing:.02em}
.mailcard .soc{display:flex; justify-content:center; gap:22px; flex-wrap:wrap; font-size:12px; text-transform:uppercase; border-bottom:1px solid #ddd; padding-bottom:14px}
.app.full{grid-template-columns:minmax(0,1fr)} .app.full nav.side{display:none}
@media (max-width: 1100px){ .tpv{grid-template-columns:minmax(0,1fr)} .cartsec{position:static} }
@media (max-width: 1100px){ .kpis{grid-template-columns:repeat(2,minmax(0,1fr))} .grid2,.grid3{grid-template-columns:minmax(0,1fr)} }
@media (max-width: 760px){
  main{padding-inline:16px}
  .fields,.fields.three{grid-template-columns:minmax(0,1fr)}
  .cl-main{grid-template-columns:auto minmax(70px,1fr) 64px auto 30px}
  .cl-int{grid-template-columns:repeat(2,minmax(0,1fr))}
  .head h1{font-size:23px}
  .search{max-width:none}
  .tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
}
/* Barra superior con ☰ en pantallas estrechas (iPad vertical, móvil): el menú se abre como cajón */
.topbar,.scrim{display:none}
/* Terminal de venta a pantalla completa */
.app.full main{padding:0; display:flex; flex-direction:column}
.app.full .topbar{display:none}
.term-top{display:flex; align-items:center; gap:12px; padding:10px 16px; background:var(--surface); border-bottom:1px solid var(--line); position:sticky; top:0; z-index:20; flex-wrap:wrap}
.term-top .brand{font-size:20px; padding:0}
.term-num{white-space:nowrap}
.term-body{padding:14px 16px 96px; flex:1}
.term-nav{position:fixed; left:0; right:0; bottom:0; display:flex; justify-content:center; gap:6px; background:var(--surface); border-top:1px solid var(--line); padding:6px 10px calc(6px + env(safe-area-inset-bottom,0px)); z-index:25}
.term-nav button{position:relative; flex:0 1 130px; display:flex; flex-direction:column; align-items:center; gap:2px; font-size:12px; font-weight:600; border:0; background:none; padding:6px; border-radius:10px; color:var(--muted); cursor:pointer}
.term-nav button[aria-current="page"]{color:var(--fg); background:var(--surface-2)}
.term-nav .count{position:absolute; top:2px; right:calc(50% - 26px); font-size:10px; background:var(--warn); color:#fff; border-radius:20px; padding:0 6px; line-height:16px}
.term-key{padding:0 14px}
.app.full .pos-right{top:64px; max-height:calc(100dvh - 160px)}
/* En pantalla ancha el terminal ocupa todo el alto: productos con scroll propio y ticket de arriba abajo, como un TPV */
@media (min-width: 701px){
  .app.full .term-body:has(.pos){padding-bottom:84px; height:calc(100dvh - 58px); overflow:hidden; display:flex}
  .app.full .pos{flex:1; height:100%; align-items:stretch}
  .app.full .pos-left{overflow:auto; height:100%}
  .app.full .pos-left > *{flex-shrink:0}
  .app.full .pos-right{position:static; height:100%; max-height:none}
}
.tec-display{font-size:40px; font-weight:700; letter-spacing:-.02em; padding:6px 0}
.tec{display:grid; grid-template-columns:repeat(3,96px); gap:8px}
.tec button{height:64px; font-size:24px; font-weight:600; border:1px solid var(--line); border-radius:12px; background:var(--surface); cursor:pointer}
.tec button:active{background:var(--surface-2)}
.term-btn{padding:14px!important; font-size:16px!important}
/* ===== Terminal minimalista: blanco, líneas finas, sin colores de relleno ===== */
.app.full, .app.full main{background:#fff}
.app.full .term-top{border-bottom:1px solid #EEEBE6; padding:10px 20px; min-height:58px}
.app.full .term-top .brand{font-size:18px; letter-spacing:.12em}
.app.full .term-top .segs{background:none; gap:2px}
.app.full .term-top .segs button{background:none; border-radius:8px; padding:6px 12px; color:var(--muted); font-weight:600}
.app.full .term-top .segs button[aria-pressed="true"]{background:#F2F0EC; color:var(--fg)}
.app.full .term-top .btn{border-color:transparent; background:none; font-weight:500; color:var(--muted)}
.app.full .term-top .btn:hover{background:#F2F0EC; color:var(--fg)}
.app.full .term-body{padding:0 0 70px}
.app.full .pos{gap:0}
@media (min-width: 1101px){ .app.full .pos{grid-template-columns:minmax(0,1fr) clamp(420px, 32vw, 600px)} }
@media (min-width: 701px){ .app.full .pos-right .cl.compact{grid-template-columns:minmax(0,1fr)!important; grid-auto-flow:column; grid-auto-columns:auto} .app.full .pos-right .cl.compact.cl-rm{grid-auto-flow:row} }
.app.full .pos-left{border:0; border-radius:0; padding:18px 22px; gap:14px; background:#fff}
.app.full .pos-right{border:0; border-left:1px solid #EEEBE6; border-radius:0; background:#fff}
.app.full .pos-top{border-bottom:0; padding:18px 20px 6px}
.app.full .pos-top b{font-size:15px}
.app.full .pos-top .btn{border-color:transparent; color:var(--muted); background:none}
.app.full .pos-lines{padding:0 20px}
.app.full .pos-foot{border-top:1px solid #EEEBE6; padding:14px 20px 18px; border-radius:0}
.app.full .bigsearch{background:#F5F4F1; border:0; border-radius:10px; font-size:15px; padding:12px 14px}
.app.full .cattabs{gap:18px; border-bottom:1px solid #EEEBE6; padding-bottom:0}
.app.full .cattab{border:0; border-radius:0; background:none; padding:8px 0 10px; color:var(--muted); font-weight:600; border-bottom:2px solid transparent}
.app.full .cattab[aria-pressed="true"]{background:none; color:var(--fg); border-bottom-color:var(--fg)}
.app.full .pos .tiles{grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:12px}
.app.full .tile{background:#fff!important; border:1px solid #EEEBE6!important; border-radius:12px; padding:0; overflow:hidden; gap:0; box-shadow:none}
.app.full .tile:hover{border-color:#CFC9C0!important}
.app.full .tile .mono{aspect-ratio:4/3; border-radius:0; background:#F5F4F1!important; color:#B9B2A8; font-size:26px; font-weight:500}
.app.full .tile .tfoto{border-radius:0; aspect-ratio:4/3}
.app.full .tile .tn{padding:10px 12px 0; font-weight:600; font-size:14px}
.app.full .tile > .small{padding:2px 12px 0}
.app.full .tile .tb{padding:6px 12px 12px}
.app.full .tile .tb .chip{background:none!important; padding:0; font-weight:500; color:var(--muted)}
.app.full .tile .tb .chip.bad{color:var(--bad)} .app.full .tile .tb .chip.warn{color:var(--warn)}
.app.full .tile .incart{top:8px; right:8px; background:var(--fg)}
.app.full .btn.ghost{color:var(--muted); font-weight:500}
.app.full .cart{gap:0}
.app.full .cl.compact{grid-template-columns:28px minmax(0,1fr) auto 26px!important; border:0; border-bottom:1px solid #F0EDE8; border-radius:0; background:none; padding:12px 0; gap:10px; cursor:pointer}
.app.full .cl.compact .q{font-weight:700; color:var(--muted)}
.app.full .cl.compact .t{font-weight:600}
.app.full .cl.compact .icon-btn{opacity:.35} .app.full .cl.compact:hover .icon-btn{opacity:1}
.app.full .pos-chip{background:none; border-color:#EEEBE6}
.app.full .pos-foot .totals{font-size:13px}
.app.full .pos-cobrar{background:var(--fg)!important; border-color:var(--fg)!important; color:#fff; border-radius:10px}
.app.full .pos-cobrar[disabled]{background:#E7E3DD!important; border-color:#E7E3DD!important; color:#fff}
.app.full .term-key{border-color:#EEEBE6; background:#fff}
.app.full .term-nav{border-top:1px solid #EEEBE6; background:#fff}
.app.full .term-nav button[aria-current="page"]{background:none; color:var(--fg)}
.app.full .term-nav button[aria-current="page"] svg{stroke-width:2.2}
.app.full .panel{border-color:#EEEBE6; box-shadow:none}
.term-key{flex:none; width:58px; justify-content:center; border-radius:12px}
.cobro-su{max-width:560px; margin:0 auto; width:100%; display:flex; flex-direction:column; gap:14px}
.cb-head{text-align:center; padding:4px 0 2px}
.cb-imp{font-size:46px; font-weight:700; letter-spacing:-.03em; line-height:1.15}
.cb-tit{display:flex; align-items:center; justify-content:center; gap:8px; margin:6px 0 0; font-size:18px}
.cb-adel{display:flex; align-items:center; justify-content:center; gap:10px; flex-wrap:wrap}
.cb-list{display:flex; flex-direction:column; gap:10px}
.cb-m{display:flex; align-items:center; gap:14px; width:100%; padding:17px 18px; border:1px solid var(--line); border-radius:12px; background:var(--surface); font-size:17px; font-weight:600; cursor:pointer; text-align:left; color:var(--fg)}
.cb-m:hover{border-color:var(--fg); background:var(--surface-2)}
.cb-m svg{flex:none; color:var(--muted)} .cb-m > .muted{margin-left:auto; font-size:20px}
.cb-more summary{cursor:pointer; text-align:center; font-size:13px; color:var(--muted)}
.cb-opts{display:flex; flex-direction:column; gap:10px; padding-top:14px; border-top:1px solid var(--line)}
.cb-opts .pos-chip{align-self:flex-start}
.cb-sub{display:flex; flex-direction:column; gap:12px}
.cb-icon svg{width:46px; height:46px; color:var(--fg)}
.cb-cambio{font-size:30px; font-weight:700; text-align:center; color:var(--ok); min-height:40px}
.cb-bill{font-size:16px; padding:10px 16px}
.cb-row{display:grid; grid-template-columns:auto minmax(0,1fr) 140px auto; gap:10px; align-items:center; padding:10px 12px; border:1px solid var(--line); border-radius:12px; background:var(--surface)}
.cb-row select{font-size:16px; font-weight:600; border:0; background:transparent; padding:6px 0}
.cb-amt{font-size:20px; font-weight:700; text-align:right; padding:8px 10px}
.cb-ri{color:var(--muted); display:flex}
.cb-efrow{display:flex; flex-wrap:wrap; gap:8px 14px; align-items:center; justify-content:flex-end; padding:0 6px 4px}
.cb-efrow #cbCambio{color:var(--ok); font-size:18px}
.cb-falta{text-align:center; font-size:18px}
.app.full .cl.compact{grid-template-columns:minmax(0,1fr) auto auto 26px!important}
.app.full .cl.compact.cl-rm{grid-template-columns:minmax(0,1fr) auto!important; background:var(--bad-soft); border-radius:10px; padding:10px 12px; cursor:default}
.cd{gap:16px}
.crumb{font-size:12px; color:var(--muted); margin-bottom:2px}
html[data-estilo="moderno"] .filtros select{width:auto; border-radius:999px; padding:7px 30px 7px 14px; font-weight:600; font-size:13px; background-color:#fff; border-color:#E4E0D9}
html[data-estilo="moderno"] .filtros .search{margin-left:auto; flex:0 1 300px; border-radius:999px; padding:8px 14px 8px 34px; background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237A746C' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") 12px center no-repeat; border:1px solid #E4E0D9}
.kebab{font-size:20px; color:var(--muted)} .kebab:hover{background:var(--surface-2)!important; color:var(--fg)!important}
.cat-av{width:34px; height:34px; border-radius:8px; border:1px solid var(--line); display:grid; place-items:center; font-weight:700; flex:none}
.dot{display:inline-block; width:10px; height:10px; border-radius:50%; vertical-align:middle}

.rg-grid{display:grid; grid-template-columns:minmax(0,1fr) 290px; gap:24px; align-items:start}
.rg-main{display:flex; flex-direction:column; gap:20px}
.rg-h{margin:0 0 8px; font-size:14px; text-transform:none; letter-spacing:0}
.amt-tiles{display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px}
.amt-tile{position:relative; border:1px solid var(--line); border-radius:12px; padding:14px 8px; text-align:center; cursor:pointer; font-size:18px; font-weight:700; background:#fff}
.amt-tile input[type=radio]{position:absolute; opacity:0; pointer-events:none}
.amt-tile:has(input[type=radio]:checked){background:var(--fg); color:#fff; border-color:var(--fg)}
.amt-otro{display:flex; align-items:center; justify-content:center; gap:6px; font-size:15px} .amt-otro input[type=number]{width:70px; padding:4px 6px; font-size:15px; font-weight:700}
.opt-cards{display:grid; gap:8px}
.opt-card{display:flex; gap:12px; align-items:flex-start; border:1px solid var(--line); border-radius:12px; padding:12px 14px; cursor:pointer}
.opt-card:has(input:checked){border-color:var(--fg); background:#FAFAF8}
.rg-prog{display:none; gap:8px; margin-top:8px; flex-wrap:wrap} .opt-card:has(input:checked) .rg-prog{display:flex} .rg-prog input{width:auto; flex:1; min-width:150px}
.rg-met{display:grid; grid-template-columns:repeat(auto-fit,minmax(110px,1fr)); gap:8px}
.rg-m{display:flex; flex-direction:column; align-items:center; gap:6px; padding:14px 8px; border:1px solid var(--line); border-radius:12px; background:#fff; cursor:pointer; font-weight:600; color:var(--fg)}
.rg-m svg{color:var(--muted)} .rg-m[aria-pressed="true"]{background:var(--fg); color:#fff; border-color:var(--fg)} .rg-m[aria-pressed="true"] svg{color:#fff}
.rg-side{position:sticky; top:0}
.rg-card{background:linear-gradient(145deg,#1D1C1A,#3A3631); color:#fff; border-radius:16px; padding:22px 20px; aspect-ratio:1.55/1; display:flex; flex-direction:column; justify-content:center; align-items:center; text-align:center; gap:4px; box-shadow:0 14px 30px rgba(20,18,15,.25)}
.rg-brand{font-family:"Cormorant Garamond",Georgia,serif; font-size:22px; letter-spacing:.18em} .rg-tit{font-size:10px; letter-spacing:.3em; opacity:.7}
.rg-para{font-size:14px; margin-top:6px} .rg-imp{font-size:34px; font-weight:700; letter-spacing:-.02em} .rg-msg{font-size:12px; font-style:italic; opacity:.85} .rg-de{font-size:11px; opacity:.7}
@media (max-width: 760px){ .rg-grid{grid-template-columns:1fr} .rg-side{order:-1; position:static} .amt-tiles{grid-template-columns:repeat(3,minmax(0,1fr))} }
.compra{font-size:12px; margin-top:4px; padding:4px 8px; background:#F5F4F1; border-radius:6px; line-height:1.5}
.compra a{font-weight:600}
.cash-hero{text-align:center; padding:18px 10px 8px}
.cash-imp{font-size:48px; font-weight:700; letter-spacing:-.03em; line-height:1.1; margin:4px 0}
.act-tiles{display:grid; grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); gap:12px; margin:16px 0 22px}
.agenda{display:grid; grid-template-columns:repeat(var(--n),minmax(0,1fr)); gap:10px; align-items:start}
.ag-dia{background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:8px; min-height:220px; display:flex; flex-direction:column; gap:6px}
.ag-dia.hoy{border-color:var(--fg); box-shadow:0 0 0 1px var(--fg)}
.ag-h{font-size:13px; text-transform:capitalize; padding:2px 2px 6px; border-bottom:1px solid var(--line)}
.ag-ev{all:unset; cursor:pointer; display:flex; flex-direction:column; gap:2px; padding:7px 8px; border-radius:8px; background:var(--surface-2); border-left:3px solid var(--c); font-size:12.5px; line-height:1.3}
.ag-ev:hover{background:var(--bg)} .ag-t{font-weight:600; color:var(--c); font-size:11.5px} .ag-q{font-size:11px; color:var(--muted)}
@media (max-width: 900px){ .agenda{grid-template-columns:1fr} .ag-dia{min-height:0} }
.ff-grid{display:grid; grid-template-columns:repeat(auto-fill,minmax(110px,1fr)); gap:10px; margin-bottom:12px}
.ff-it{position:relative; display:flex; flex-direction:column; gap:4px; align-items:center; border:1px solid var(--line); border-radius:10px; padding:6px}
.ff-it img,.ff-pdf{width:100%; height:110px; object-fit:cover; border-radius:7px; background:var(--surface-2); display:grid; place-items:center; font-weight:700; color:var(--muted)}
.ff-it .icon-btn{position:absolute; top:4px; right:4px; background:#fff}
.app.reparto{grid-template-columns:minmax(0,1fr)} .app.reparto .side,.app.reparto .topbar,.app.reparto .scrim{display:none!important}
.rep-shell{max-width:560px; margin:0 auto; padding:16px}
.rep-top{display:flex; align-items:center; gap:10px; margin-bottom:14px} .rep-top b{font-family:"Bodoni Moda",serif; font-size:20px; letter-spacing:.06em} .rep-top button{margin-left:auto}
.rep-scan{width:100%; justify-content:center; font-size:18px; padding:20px}
.rep-card{max-width:340px; margin:12vh auto; text-align:center; background:var(--surface); border:1px solid var(--line); border-radius:16px; padding:26px}
.dropzone{display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; min-height:260px; border:2px dashed var(--line,#ddd); border-radius:16px; cursor:pointer; text-align:center; padding:24px; color:var(--fg); background:var(--surface-2,#faf9f7); transition:background .15s, border-color .15s}
.dropzone:hover,.dropzone.dropping{border-color:var(--fg); background:var(--surface,#fff)}
.dropzone b{font-size:18px}
.dropping{outline:2px dashed var(--accent,#222)!important; outline-offset:3px; background:var(--surface-2)!important}
.act-tile{display:flex; align-items:center; gap:14px; text-align:left; border:1px solid var(--line); background:#fff; border-radius:14px; padding:16px; cursor:pointer; color:var(--fg); font:inherit}
.act-tile:hover{border-color:var(--fg)}
.act-tile .small{color:var(--muted)}
.act-i{width:44px; height:44px; border-radius:12px; background:#F2F0EC; display:grid; place-items:center; flex:none}
.act-tile.main{background:var(--fg); border-color:var(--fg); color:#fff}
.act-tile.main .small{color:rgba(255,255,255,.7)} .act-tile.main .act-i{background:rgba(255,255,255,.14)}
.cj-add{display:flex; flex-direction:column; gap:8px; margin-top:6px; padding-top:12px; border-top:1px solid var(--line)}
.inv-th{width:42px; height:42px; border-radius:8px; object-fit:cover; display:grid; place-items:center}
.inv-ph{background:var(--surface-2); color:#AFA79C}
.prod-top{display:flex; gap:16px; align-items:flex-start}
.prod-foto{position:relative; width:110px; height:110px; flex:none; border:1px solid var(--line); border-radius:12px; cursor:pointer; display:grid; place-items:center; overflow:visible; background:var(--surface-2)}
.prod-foto img,.prod-foto .inv-ph{width:100%; height:100%; object-fit:cover; border-radius:12px; display:grid; place-items:center}
.prod-foto-add{position:absolute; right:-8px; bottom:-8px; width:32px; height:32px; border-radius:10px; background:var(--fg); color:#fff; display:grid; place-items:center; font-size:20px}
.nav-i{display:flex; align-items:center; gap:10px} .nav-i svg{flex:none; opacity:.8}
.navbtn[aria-current="page"] .nav-i svg{opacity:1}
.eq-row{display:flex; align-items:center; gap:14px; cursor:pointer} .eq-row:hover{border-color:var(--muted)}
.eq-av{width:38px; height:38px; border-radius:50%; background:var(--surface-2); display:grid; place-items:center; font-weight:700; flex:none}
.cd-head h2{display:flex; align-items:center; gap:8px; flex-wrap:wrap}
.cd-card{border:1px solid var(--line); border-radius:12px; padding:16px 18px; background:var(--surface)}
.cd-card h4{margin:0 0 10px; font-size:15px; text-transform:none; letter-spacing:0}
.cd-grid{display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px 20px}
.cd-l{font-weight:650; font-size:13px; margin-bottom:4px; display:block}
.cd-v{word-break:break-word}
.cd-kpis{display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px}
.cd-kpis > div{border:1px solid var(--line); border-radius:12px; padding:12px 16px; display:flex; flex-direction:column; gap:2px}
.cd-kpis b{font-size:20px}
.cd-notas-h{display:flex; justify-content:space-between; align-items:center; margin-bottom:6px}
.cd-notas-h .icon-btn:hover{background:var(--surface-2); color:var(--fg)}
.cd-tabs{display:flex; gap:20px; border-bottom:1px solid var(--line); margin-top:4px}
.cd-tabs button{border:0; background:none; padding:8px 0 10px; font-weight:600; color:var(--muted); border-bottom:2px solid transparent; cursor:pointer; font-size:14px}
.cd-tabs button[aria-pressed="true"]{color:var(--fg); border-bottom-color:var(--fg)}
.cd-empty{padding:34px 10px; text-align:center; color:var(--muted)}
.tablewrap.clean th{text-transform:none; letter-spacing:0; font-size:13px}
@media (max-width: 700px){ .cd-grid,.cd-kpis{grid-template-columns:1fr 1fr} }
.mini-qty{display:flex; align-items:center; gap:2px; border:1px solid #EEEBE6; border-radius:999px; padding:2px}
.mini-qty button{width:28px; height:28px; border:0; border-radius:50%; background:none; font-size:17px; cursor:pointer; color:var(--fg)}
.mini-qty button:hover{background:#F2F0EC} .mini-qty b{min-width:20px; text-align:center}
.coger-w{margin-top:6px; cursor:pointer} .coger{display:flex; flex-wrap:wrap; gap:6px; align-items:center}
.pos-extra{display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:12px; margin-top:4px}
.pos-add{display:flex; align-items:center; gap:14px; text-align:left; border:1px dashed #D9D3CA; background:#fff; border-radius:12px; padding:14px 16px; cursor:pointer; color:var(--fg); font:inherit}
.pos-add:hover{border-style:solid; border-color:var(--fg)}
.pos-add-i{width:36px; height:36px; border-radius:50%; background:#F2F0EC; display:grid; place-items:center; font-size:22px; flex:none}
.art-su{gap:16px}
.art-grid{display:grid; grid-template-columns:1.3fr 1.2fr .8fr .7fr; gap:12px; align-items:end}
.art-precio{font-size:22px; font-weight:700}
.art-qty{display:flex; align-items:center; gap:6px} .art-qty input{text-align:center; font-size:18px; font-weight:700; width:70px; flex:1}
.art-qty button{width:42px; height:42px; border-radius:10px; border:1px solid var(--line); background:#fff; font-size:20px; cursor:pointer; flex:none}
.art-toggle{display:flex; gap:12px; align-items:flex-start; padding:14px 16px; border:1px solid var(--line); border-radius:12px; cursor:pointer}
.art-toggle:has(input:checked){border-color:var(--warn); background:var(--warn-soft)}
.art-pedir{padding:0 2px}
.art-total{display:flex; justify-content:space-between; align-items:baseline; border-top:1px solid var(--line); padding-top:12px}
.art-total b{font-size:26px; letter-spacing:-.02em}
@media (max-width: 700px){ .art-grid{grid-template-columns:1fr 1fr} }
#cbFoot .cb-ok{flex:1; padding:16px; font-size:18px; justify-content:center}
@media (max-width: 700px){ .hide-sm,.term-top .brand,.term-num,.term-fs{display:none!important} .term-top{gap:8px; padding:8px 12px} .term-body{padding:10px 10px 96px} .term-nav button{font-size:11px} }
/* Caja estilo terminal: productos a la izquierda, ticket fijo a la derecha con el botón Cobrar */
.pos-head{margin-bottom:12px} .pos-head h1{font-size:24px}
.pos{display:grid; grid-template-columns:minmax(0,1fr) 400px; gap:16px; align-items:start}
.pos-left{background:var(--surface); border:1px solid var(--line); border-radius:var(--r); padding:14px; display:flex; flex-direction:column; gap:12px; min-width:0}
.pos-right{position:sticky; top:0; background:var(--surface); border:1px solid var(--line); border-radius:var(--r); display:flex; flex-direction:column; max-height:calc(100dvh - 130px); min-width:0}
.pos-top{display:flex; justify-content:space-between; align-items:center; padding:12px 14px; border-bottom:1px solid var(--line)}
.pos-lines{overflow:auto; flex:1; padding:8px 10px; min-height:120px}
.pos-lines .empty{padding:24px 8px; text-align:center}
.pos-foot{border-top:1px solid var(--line); padding:12px 14px 14px; display:flex; flex-direction:column; gap:10px; background:var(--surface); border-radius:0 0 var(--r) var(--r)}
.pos-chips{display:flex; flex-wrap:wrap; gap:6px}
.pos-chip{border:1px solid var(--line); background:var(--surface-2); border-radius:999px; padding:6px 11px; font-size:13px; cursor:pointer; color:var(--fg); max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.pos-chip:hover{border-color:var(--muted)} .pos-chip .muted{margin-right:4px; font-size:12px}
.pos-cobrar{width:100%; padding:16px 18px; font-size:18px; border-radius:12px; display:flex; justify-content:space-between; align-items:center}
.pos-cobrar b{font-size:22px}
.cattabs{display:flex; gap:6px; overflow-x:auto; padding-bottom:2px; scrollbar-width:thin}
.cattab{border:1px solid var(--line); background:var(--surface); border-radius:999px; padding:7px 14px; cursor:pointer; white-space:nowrap; font-weight:600; font-size:13px; color:var(--fg)}
.cattab[aria-pressed="true"]{background:var(--accent); color:var(--accent-fg); border-color:var(--accent)}
.pos .tiles{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}
.pos .tile .mono{aspect-ratio:3/2; font-size:30px}
.tile .tfoto{width:100%; aspect-ratio:3/2; object-fit:cover; border-radius:9px}
.pos-right .cl-main{grid-template-columns:repeat(3,minmax(0,1fr)) auto auto!important}
.pos-right .cl-main > label:first-child{grid-column:1/-1}
.pos-right .cl-int{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.pos-right .cl.compact{grid-template-columns:minmax(0,1fr) auto!important}
@media (max-width: 1100px){ .pos{grid-template-columns:minmax(0,1fr) 330px} .pos .tiles{grid-template-columns:repeat(auto-fill,minmax(130px,1fr))} .pos-right{max-height:calc(100dvh - 90px)} }
@media (max-width: 700px){
  .pos{grid-template-columns:minmax(0,1fr)}
  .pos-right{position:static; max-height:none}
  .pos-foot{position:fixed; left:0; right:0; bottom:58px; border-radius:0; box-shadow:0 -8px 24px rgba(20,18,15,.12); z-index:30; padding-bottom:calc(12px + env(safe-area-inset-bottom,0px))}
  main:has(.pos){padding-bottom:170px}
  .pos-foot .totals{display:none} .pos-chip{padding:4px 9px; font-size:12px} .pos-cobrar{padding:13px 16px}
  .app.full .term-body:has(.pos){padding-bottom:calc(var(--posfoot, 200px) + 80px)}
  .app.full .term-top{position:static}
}
main{overflow-x:hidden}
/* Móvil: ventanas a pantalla completa con scroll propio y botones que pueden partir línea (nada se sale por los lados) */
@media (max-width: 760px){
  dialog,dialog.wide{width:100vw; max-width:100vw; height:100dvh; max-height:100dvh; margin:0; border-radius:0}
  .btn{white-space:normal}
  .btn[data-act=splitOn],.btn[data-act=rgSplitOn]{text-align:left}
  .mhead{padding:14px 16px 8px} .mbody{padding:14px 16px 18px} .mfoot{padding:10px 16px}
  .tpvbar{padding:8px 12px; gap:8px; flex-wrap:nowrap; border-radius:12px}
  .tpvbar b{font-size:22px} .tpvbar .small{font-size:11px}
  .tpvbar .cobrahoy{display:none}
  .tpvbar .cta{padding:10px 14px; font-size:14px}
  .tpvbar .btn{white-space:nowrap}
  .tpvbar .tools{gap:8px!important; flex-wrap:nowrap}
  #autoGuardado,[data-act=tpvFull]{display:none}
}
/* Dentro de la app de Claude en móvil/iPad la barra superior de la app flota encima: bajamos lo que va fijo arriba */
html.embed-touch{--embed-top:84px}
html.embed-touch dialog{margin-top:var(--embed-top); max-height:calc(100dvh - var(--embed-top) - 10px)}
@media (max-width: 760px){ html.embed-touch dialog,html.embed-touch dialog.wide{height:calc(100dvh - var(--embed-top)); max-height:calc(100dvh - var(--embed-top))} }
html.embed-touch nav.side{padding-top:calc(var(--embed-top) + 6px)}
@media (max-width: 1100px){
  .app{grid-template-columns:minmax(0,1fr); grid-template-rows:auto minmax(0,1fr)}
  .topbar{display:flex; align-items:center; gap:10px; padding:10px 16px; background:var(--surface); border-bottom:1px solid var(--line); z-index:40}
  .topbar .brand{font-size:20px; padding:0; flex:1}
  .topbar .icon-btn:hover{background:var(--surface-2); color:var(--fg)}
  nav.side{position:fixed; top:0; bottom:0; left:0; width:270px; z-index:70; transform:translateX(-105%); transition:transform .22s ease; box-shadow:var(--shadow)}
  .app.navopen nav.side{transform:none}
  .app.navopen .scrim{display:block; position:fixed; inset:0; background:rgba(30,25,20,.35); z-index:60}
  main{padding-inline:18px}
}
.app.full .topbar{display:none}
main{scroll-padding-bottom:130px}
.searchbtn{justify-content:flex-start!important; color:var(--muted); font-weight:500; background:var(--surface)}
.searchbtn kbd{margin-left:auto; font:inherit; font-size:11px; border:1px solid var(--line); border-radius:4px; padding:0 5px}
.navmas{display:flex; align-items:center; justify-content:space-between; width:100%; border:0; background:none; cursor:pointer; padding:0 10px; margin:0 0 6px; font-size:11px; letter-spacing:.12em; text-transform:uppercase; color:#6E665C; font-weight:600}
.modotienda{margin-top:auto; font-size:12px; color:var(--muted); padding:8px 10px; border:1px dashed var(--line); border-radius:8px}
.dengrid{display:grid; grid-template-columns:1fr 1fr; gap:18px}
.dengrid h5{margin:0 0 6px; font-size:11px; letter-spacing:.1em; text-transform:uppercase; color:var(--muted)}
.den{display:grid; grid-template-columns:62px 80px 1fr; gap:8px; align-items:center; padding:3px 0}
.den span{font-weight:600} .den input{padding:5px 8px} .den b{text-align:right; font-size:13px; color:var(--muted)}
@media (max-width:560px){ .dengrid{grid-template-columns:1fr} }
.li-inf{border-radius:8px; padding-inline:6px!important; margin-inline:-6px}
.li-inf:hover{background:var(--surface-2)}
.grp + .grp{margin-top:14px; padding-top:12px; border-top:1px solid var(--line)}
.grp-h{display:flex; justify-content:space-between; align-items:center; gap:8px; margin-bottom:4px; font-weight:650}
.grp-h .count{font-size:11px; font-weight:700; background:var(--surface-2); border-radius:20px; padding:0 8px; line-height:20px; color:var(--muted)}
.gres h5{margin:14px 0 4px; font-size:11px; letter-spacing:.1em; text-transform:uppercase; color:var(--muted)}
.gres .li{cursor:pointer}
/* Estilo moderno (por defecto): blancos limpios, una sola tipografía sans, negro carbón; la marca sigue en serif */
html[data-estilo="moderno"]{--bg:#F6F5F2; --surface:#FFFFFF; --surface-2:#F2F0EC; --line:#E5E1DA; --fg:#1D1C1A; --muted:#736E67; --accent:#1D1C1A; --accent-fg:#FFFFFF; --accent-soft:#ECE9E4; --brass:#8C7A62;
  --shadow:0 10px 30px rgba(20,18,15,.10); --f-display:"Inter", system-ui, sans-serif; --f-body:"Inter", system-ui, sans-serif; --r:12px}
html[data-estilo="moderno"] body{font-size:14px; letter-spacing:-.003em}
html[data-estilo="moderno"] nav.side{background:#FBFAF8}
html[data-estilo="moderno"] .navgroup{border-top-color:var(--line)}
html[data-estilo="moderno"] .navbtn{color:var(--fg); font-size:14px; padding:8px 10px}
html[data-estilo="moderno"] .navbtn:hover{background:var(--surface-2)}
html[data-estilo="moderno"] .navbtn[aria-current="page"]{background:var(--accent); color:var(--accent-fg)}
html[data-estilo="moderno"] .brand{font-family:"Cormorant Garamond", Georgia, serif}
html[data-estilo="moderno"] .head h1{font-weight:650; font-size:27px; letter-spacing:-.03em}
html[data-estilo="moderno"] .kpi .val,html[data-estilo="moderno"] .grand b,html[data-estilo="moderno"] .tpvbar b{font-weight:650; letter-spacing:-.03em}
html[data-estilo="moderno"] .kpi .val{font-size:26px}
html[data-estilo="moderno"] .mhead h2{font-weight:650; font-size:20px; letter-spacing:-.02em}
html[data-estilo="moderno"] .panel{box-shadow:0 1px 2px rgba(20,18,15,.04)}
html[data-estilo="moderno"] .btn{border-radius:9px; font-weight:600}
html[data-estilo="moderno"] th{letter-spacing:.04em}
/* ===== Todo el CRM con la estética del terminal: blanco, letra más pequeña, líneas finas, negro de acento ===== */
html[data-estilo="moderno"]{--bg:#FFFFFF; --surface:#FFFFFF; --surface-2:#F5F4F1; --line:#ECE9E4; --muted:#7A746C}
html[data-estilo="moderno"] body{font-size:13.5px}
html[data-estilo="moderno"] nav.side{background:#FAFAF8; border-right:1px solid #EEEBE6; padding:18px 12px; gap:12px}
html[data-estilo="moderno"] .navgroup{border-top:0; padding-top:4px; gap:1px}
html[data-estilo="moderno"] .navgroup h6,html[data-estilo="moderno"] .navmas{font-size:10.5px; letter-spacing:.1em; color:#9B948A; margin-bottom:4px}
html[data-estilo="moderno"] .navbtn{font-size:13.5px; font-weight:500; padding:7px 10px; border-radius:8px; color:#3A3632}
html[data-estilo="moderno"] .navbtn:hover{background:#F2F0EC}
html[data-estilo="moderno"] .navbtn[aria-current="page"]{background:#EFEDE8; color:var(--fg); font-weight:650}
html[data-estilo="moderno"] .navbtn[aria-current="page"] .count{background:var(--fg); color:#fff}
html[data-estilo="moderno"] .navbtn .count{background:#F2F0EC; color:var(--muted)}
html[data-estilo="moderno"] .searchbtn{background:#fff; border-color:#ECE9E4}
html[data-estilo="moderno"] main{padding-block:24px 60px; padding-inline:32px}
html[data-estilo="moderno"] .head{margin-bottom:16px}
html[data-estilo="moderno"] .head h1{font-size:22px; font-weight:700; letter-spacing:-.02em}
html[data-estilo="moderno"] .head p{font-size:13px}
html[data-estilo="moderno"] .panel{border-color:#ECE9E4; box-shadow:none; border-radius:12px}
html[data-estilo="moderno"] .panel h3{font-size:14px; font-weight:650; border-bottom-color:#F2F0EC}
html[data-estilo="moderno"] .kpi{padding:14px 16px}
html[data-estilo="moderno"] .kpi .lab{font-size:12px; font-weight:500}
html[data-estilo="moderno"] .kpi .val{font-size:22px; font-weight:700}
html[data-estilo="moderno"] th{font-size:12px; text-transform:none; letter-spacing:0; font-weight:600; color:#8A837A; padding:10px 14px; border-bottom-color:#ECE9E4}
html[data-estilo="moderno"] td{padding:11px 14px; border-bottom-color:#F2F0EC; font-size:13.5px}
html[data-estilo="moderno"] tr.row:hover td{background:#FAFAF8}
html[data-estilo="moderno"] .li{border-bottom-color:#F2F0EC; padding:10px 0}
html[data-estilo="moderno"] .li .t{font-weight:600} html[data-estilo="moderno"] .li .s{font-size:12.5px}
html[data-estilo="moderno"] .chip{font-weight:600; font-size:11.5px; background:#F2F0EC; padding:1px 8px}
html[data-estilo="moderno"] .btn{padding:7px 12px; font-size:13px; border-color:#E4E0D9; border-radius:8px}
html[data-estilo="moderno"] .btn.sm{padding:4px 9px; font-size:12.5px}
html[data-estilo="moderno"] .btn.primary{background:var(--fg); border-color:var(--fg)}
html[data-estilo="moderno"] .btn.ghost{color:var(--muted)}
html[data-estilo="moderno"] .segs{background:none; padding:0; gap:2px}
html[data-estilo="moderno"] .segs button{padding:6px 11px; border-radius:8px; font-weight:600}
html[data-estilo="moderno"] .segs button[aria-pressed="true"]{background:#EFEDE8; box-shadow:none; color:var(--fg)}
html[data-estilo="moderno"] .pill{border-color:#E4E0D9; font-size:12.5px; padding:5px 11px}
html[data-estilo="moderno"] .pill[aria-pressed="true"]{background:var(--fg); border-color:var(--fg)}
html[data-estilo="moderno"] input,html[data-estilo="moderno"] select,html[data-estilo="moderno"] textarea{border-color:#E4E0D9; border-radius:8px; font-size:13.5px}
html[data-estilo="moderno"] .search{background:#F5F4F1; border-color:transparent}
html[data-estilo="moderno"] .banner{background:#FBF6EC; color:#8A5F1E; border:1px solid #F1E6CF; font-weight:500; font-size:13px}
html[data-estilo="moderno"] .banner.info{background:#F4F6F8; color:#4E6178; border-color:#E3E8EE}
html[data-estilo="moderno"] fieldset{border-color:#ECE9E4} html[data-estilo="moderno"] legend{font-size:12px}
html[data-estilo="moderno"] .f{font-size:12.5px; color:#5E5850}
html[data-estilo="moderno"] dialog{border-radius:16px; box-shadow:0 24px 60px rgba(20,18,15,.18)}
html[data-estilo="moderno"] .mhead{border-bottom-color:#F2F0EC} html[data-estilo="moderno"] .mhead h2{font-size:18px}
html[data-estilo="moderno"] .mfoot{border-top-color:#F2F0EC}
html[data-estilo="moderno"] .grand b{font-size:26px}
html[data-estilo="moderno"] .empty{font-size:13px}
html[data-estilo="moderno"] .quick .btn{font-size:13.5px}
html[data-estilo="moderno"] .topbar{background:#fff; border-bottom-color:#EEEBE6}
html[data-estilo="moderno"] .btn.c-venta{background:var(--fg); border-color:var(--fg); color:#fff}
html[data-estilo="moderno"] .btn.c-presu,html[data-estilo="moderno"] .btn.c-seguro{background:#fff; color:var(--fg); border-color:#E4E0D9}
html[data-estilo="moderno"] .pos-cobrar.c-presu,html[data-estilo="moderno"] .pos-cobrar.c-seguro{background:var(--fg)!important; color:#fff!important}
@media (prefers-reduced-motion: reduce){ *{transition:none!important; animation:none!important} }
.preg-ov{position:fixed;inset:0;background:rgba(20,18,16,.35);display:flex;align-items:center;justify-content:center;z-index:9999;padding:16px}
.preg{background:var(--card,#fff);color:var(--ink,#1d1b19);border-radius:14px;padding:18px 18px 14px;max-width:420px;width:100%;box-shadow:0 12px 40px rgba(0,0,0,.25)}.preg p{margin:0 0 14px;white-space:pre-line;line-height:1.45}.preg .tools{display:flex;gap:8px;justify-content:flex-end}

/* ===== Ajustes para la versión Laravel (el resto es la hoja del prototipo tal cual) ===== */
a.navbtn,a.btn,a.linkbtn,a.box,a.loc,a.li,a.cd-card,a.pill,a.icon-btn,a.x{text-decoration:none;color:inherit}
a.navbtn{color:var(--fg)}a.navbtn[aria-current="page"]{color:var(--accent-fg)}
a.btn.primary{color:var(--accent-fg)}
.navbtn.pronto{opacity:.55}
form.inline{display:inline;margin:0}
.dlg-page{background:var(--surface);border-radius:16px;box-shadow:0 24px 60px rgba(20,18,15,.10);max-width:980px;margin:0 auto 24px;border:1px solid var(--line)}
.dlg-page.narrow{max-width:640px}
.dlg-page .mhead{position:static;border-radius:16px 16px 0 0}
.dlg-page .mfoot{border-radius:0 0 16px 16px}
.field-err{color:var(--bad);font-size:12.5px}
body:has(>.acceso-wrap){margin:0}
.acceso-wrap{min-height:100vh;min-height:100dvh;display:flex;align-items:center;justify-content:center;padding:24px 16px;background:var(--bg)}
.acceso{width:100%;max-width:400px}
.acceso .brand{justify-content:center;margin:4px 0 2px}
.personas{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}
.persona{display:flex;flex-direction:column;align-items:center;gap:6px;padding:10px 12px;border:1px solid var(--line);border-radius:12px;cursor:pointer;min-width:96px;background:var(--surface);font-size:13px;font-weight:500}
.persona input{position:absolute;opacity:0;pointer-events:none}
.persona:has(input:checked){border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}
.persona:has(input:focus-visible){outline:2px solid var(--accent);outline-offset:2px}
.teclado{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.teclado button{min-height:54px;border:1px solid var(--line);border-radius:12px;background:var(--surface);font-size:20px;cursor:pointer}
.teclado button:active{background:var(--surface-2)}
.teclado .ok{background:var(--accent);color:var(--accent-fg);border-color:var(--accent);font-size:15px;font-weight:600}
.pinbox{font-size:26px;letter-spacing:.5em;text-align:center}
@media (max-height:800px){.acceso-wrap{align-items:flex-start;padding-top:8px;padding-bottom:8px}}
.fases li{margin:6px 0}.fases li.hecha{color:var(--ok)}
.menu[hidden]{display:none}
.menu a{padding:9px 10px;border-radius:7px;font-weight:500;color:var(--fg);text-decoration:none}
.menu a:hover,.menu button:hover{background:var(--surface-2)}
.menu form{display:contents}
.menu button.danger{color:var(--bad)}
/* Desplegables como en el prototipo (allí los dibuja la base de claude.ai): borde redondeado y flecha fina */
select{-webkit-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%232E2A26' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;background-size:12px;padding-right:34px!important;cursor:pointer}
select[multiple]{background-image:none;padding-right:9px!important}
html[data-estilo="moderno"] .filtros select{padding:9px 36px 9px 16px!important;font-size:14px}
.cd-tabs a{padding:8px 0 10px;font-weight:600;color:var(--muted);border-bottom:2px solid transparent;font-size:14px;text-decoration:none}
.cd-tabs a[aria-pressed="true"]{color:var(--fg);border-bottom-color:var(--fg)}
a.x,button.x{display:inline-grid;place-items:center;padding:0;line-height:1}
.x:focus:not(:focus-visible){outline:none;box-shadow:none}
.x{font-size:18px}
