
/* Layout: app móvil de una columna (máx. 720px), tarjetas suaves sobre fondo frío y barra de pestañas flotante abajo.
   Tokens: bg / surface / field (campos) / fg / muted / line / accent (verde petróleo, único acento) + semánticos warn, bad, ok. */
:root{--sat:env(safe-area-inset-top,0px);--navb:max(10px,calc(env(safe-area-inset-bottom,0px) - 12px));
  --fs:1;
  --bg:#f3f5f4; --surface:#ffffff; --field:rgba(100,115,108,.13); --fg:#0b0f0e; --muted:#58645f; --line:#e2e6e4;
  --accent:#15803d; --accent-fg:#ffffff; --accent-soft:#dcefe3; --accent-2:#0f5f2e;
  --warn:#94570a; --warn-soft:#fdf0d6; --bad:#b3261e; --bad-soft:#fde6e3; --ok:#1a7a3f; --ok-soft:#dcf3e4;
  --shadow:0 1px 2px rgba(0,0,0,.05),0 10px 28px -14px rgba(0,0,0,.16);
  --shadow-up:0 -1px 0 rgba(0,0,0,.04),0 14px 34px -10px rgba(0,0,0,.28);
  --scrim:rgba(10,15,12,.13);
  --gk:1; --glass:rgba(255,255,255,min(1,max(.1,calc(.56*var(--gk))))); --glass-strong:rgba(255,255,255,min(1,max(.4,calc(.72*var(--gk))))); --glass-edge:rgba(255,255,255,.85);
  --glass-hi:inset 0 1.5px 0 rgba(255,255,255,.95),inset 0 -1px 0 rgba(255,255,255,.35),inset 0 0 14px rgba(255,255,255,.28);
  --glass-drop:0 1px 2px rgba(0,0,0,.06),0 14px 34px -12px rgba(0,0,0,.20);
  --blur:blur(22px) saturate(1.9); --lens:rgba(255,255,255,.34);
  --blob1:rgba(255,255,255,.95); --blob2:rgba(255,255,255,.75); --blob3:rgba(255,255,255,.6);
  --ga1:rgba(255,255,255,.95); --ga2:rgba(255,255,255,.7); --ga3:rgba(255,255,255,.55);
  --f-display:'DM Sans','Segoe UI',system-ui,sans-serif;
  --f-body:'DM Sans','Segoe UI',system-ui,sans-serif;
  --r-lg:22px; --r-md:14px; --r-sm:10px;
}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){
  --bg:#000000; --surface:#111111; --ga1:color-mix(in srgb,var(--accent) 30%,transparent); --ga2:color-mix(in srgb,var(--accent) 17%,transparent); --ga3:color-mix(in srgb,var(--accent) 11%,transparent); --field:rgba(140,160,150,.14); --fg:#eef2f0; --muted:#95a39d; --line:#222a27;
  --accent:#22b358; --accent-fg:#04140a; --accent-soft:#0f2a1a; --accent-2:#4ade80;
  --warn:#f2b862; --warn-soft:#3a2c12; --bad:#ff9088; --bad-soft:#3e1b19; --ok:#72d996; --ok-soft:#153522;
  --shadow:0 0 0 1px rgba(255,255,255,.04);
  --shadow-up:0 0 0 1px rgba(255,255,255,.07),0 14px 34px -10px rgba(0,0,0,.6);
  --scrim:rgba(0,4,2,.55);
  --glass:rgba(22,29,26,min(1,max(.1,calc(.55*var(--gk))))); --glass-strong:rgba(26,34,31,min(1,max(.4,calc(.70*var(--gk))))); --glass-edge:rgba(255,255,255,.16);
  --glass-hi:inset 0 1.5px 0 rgba(255,255,255,.22),inset 0 -1px 0 rgba(255,255,255,.05),inset 0 0 14px rgba(255,255,255,.04);
  --glass-drop:0 1px 2px rgba(0,0,0,.3),0 16px 36px -12px rgba(0,0,0,.55);
  --lens:rgba(255,255,255,.13);
  --blob1:rgba(34,197,94,.20); --blob2:rgba(90,110,100,.18); --blob3:rgba(21,128,61,.14);
  color-scheme:dark}}
:root[data-theme="dark"]{
  --bg:#000000; --surface:#111111; --ga1:color-mix(in srgb,var(--accent) 30%,transparent); --ga2:color-mix(in srgb,var(--accent) 17%,transparent); --ga3:color-mix(in srgb,var(--accent) 11%,transparent); --field:rgba(140,160,150,.14); --fg:#eef2f0; --muted:#95a39d; --line:#222a27;
  --accent:#22b358; --accent-fg:#04140a; --accent-soft:#0f2a1a; --accent-2:#4ade80;
  --warn:#f2b862; --warn-soft:#3a2c12; --bad:#ff9088; --bad-soft:#3e1b19; --ok:#72d996; --ok-soft:#153522;
  --shadow:0 0 0 1px rgba(255,255,255,.04);
  --shadow-up:0 0 0 1px rgba(255,255,255,.07),0 14px 34px -10px rgba(0,0,0,.6);
  --scrim:rgba(0,4,2,.55);
  --glass:rgba(22,29,26,min(1,max(.1,calc(.55*var(--gk))))); --glass-strong:rgba(26,34,31,min(1,max(.4,calc(.70*var(--gk))))); --glass-edge:rgba(255,255,255,.16);
  --glass-hi:inset 0 1.5px 0 rgba(255,255,255,.22),inset 0 -1px 0 rgba(255,255,255,.05),inset 0 0 14px rgba(255,255,255,.04);
  --glass-drop:0 1px 2px rgba(0,0,0,.3),0 16px 36px -12px rgba(0,0,0,.55);
  --lens:rgba(255,255,255,.13);
  --blob1:rgba(34,197,94,.20); --blob2:rgba(90,110,100,.18); --blob3:rgba(21,128,61,.14);
  color-scheme:dark}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;overscroll-behavior-y:none} /* v708 (punto 4): sin el rebote elástico vertical al llegar al principio o al final de la página (iPhone con iOS 16 o más, Android y computador); solo el vertical: el gesto de volver con el borde no se toca */
body::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background:none}
body{margin:0;background:var(--bg);color:var(--fg);font-family:var(--f-body);font-size:.9rem;line-height:1.45;padding-inline:16px;padding-block:0 108px;-webkit-font-smoothing:antialiased}
.wrap{max-width:720px;margin-inline:auto;min-width:0}
h1,h2,h3{font-family:var(--f-display);margin:0;text-wrap:balance;letter-spacing:-.015em}
button,input,select,textarea{font:inherit;color:inherit}
.num{font-variant-numeric:tabular-nums;font-feature-settings:"tnum" 1;font-weight:600;letter-spacing:-.01em}

/* encabezado */
header.top{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"biz out";position:relative;align-items:center;column-gap:12px;row-gap:6px;padding-block:calc(18px + var(--sat)) 6px}
.bizlabel{grid-area:biz}.head-r{grid-area:out}
header.top h1{font-size:1.2rem}
.bizlabel{font-family:var(--f-display);font-weight:800;font-size:1.2rem;letter-spacing:-.02em;overflow-wrap:anywhere;min-width:0;line-height:1.15}
.head-r{position:relative}
.head-r .pill{background:var(--glass);-webkit-backdrop-filter:var(--blur);backdrop-filter:var(--blur);border:1px solid var(--glass-edge);color:var(--muted);box-shadow:var(--glass-hi);font-weight:600;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.bizname{background:var(--field);border:0;border-radius:var(--r-sm);font-family:var(--f-display);font-weight:700;font-size:1.2rem;width:100%;min-width:0;padding:6px 10px;color:var(--fg)}
.note{background:var(--warn-soft);color:var(--warn);border-radius:var(--r-md);padding:10px 12px;font-size:.9rem;margin-block:8px}
.note button{margin-left:8px}

/* tarjetas y secciones */
.card{background:var(--glass);-webkit-backdrop-filter:var(--blur);backdrop-filter:var(--blur);border:1px solid var(--glass-edge);border-radius:var(--r-lg);padding:18px;display:flex;flex-direction:column;gap:14px;margin-block:14px;box-shadow:var(--glass-hi),var(--glass-drop)}
.card h2{font-size:1rem;font-weight:700}
.item .card{box-shadow:none;background:var(--field);border-color:transparent;-webkit-backdrop-filter:none;backdrop-filter:none;border-radius:var(--r-md);padding:14px}
.row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.grow{flex:1 1 140px;min-width:0}
.hint{color:var(--muted);font-size:.9rem}
.sep{border:0;border-top:1px solid var(--line);margin:4px 0;width:100%}
.empty{color:var(--muted);text-align:center;padding:22px 8px;background:var(--field);border-radius:var(--r-md);font-size:.9rem}
.err{color:var(--bad);font-size:.9rem;min-height:1.2em}

/* campos */
label.f,div.f{display:flex;flex-direction:column;gap:6px;font-size:.8rem;color:var(--muted);font-weight:600;letter-spacing:.01em}
/* Campos lado a lado: si un título se parte en dos líneas, las cajas siguen alineadas abajo (el título queda arriba) */
.row>label.f,.row>div.f{align-self:stretch}
.row>label.f>input:not([type=checkbox]):not([type=radio]),.row>label.f>select,.row>label.f>textarea{margin-top:auto}
input,select,textarea{background:var(--field);border:1px solid var(--glass-edge);box-shadow:inset 0 1px 2px rgba(0,0,0,.06);border-radius:var(--r-md);padding:12px 14px;width:100%;min-width:0;color:var(--fg);transition:border-color .15s,box-shadow .15s,background .15s}
input::placeholder{color:var(--muted);opacity:.75}
input:focus,select:focus,textarea:focus{outline:0;border-color:var(--accent);background:var(--glass-strong);box-shadow:0 0 0 4px var(--accent-soft)}
button:focus-visible,a:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
input[type=search]{-webkit-appearance:none;appearance:none}

/* botones */
.btn{border:1px solid var(--glass-edge);background:var(--glass-strong);box-shadow:var(--glass-hi),0 2px 8px -2px rgba(0,0,0,.14);border-radius:var(--r-md);padding:11px 16px;cursor:pointer;font-weight:700;min-height:46px;transition:transform .12s,filter .15s,background .15s}
.btn:hover{filter:brightness(.97)}
.btn:active{transform:scale(.975)}
.btn.primary{background:var(--accent);color:var(--accent-fg);border-color:rgba(255,255,255,.35);box-shadow:inset 0 1.5px 0 rgba(255,255,255,.5),0 10px 20px -8px color-mix(in srgb,var(--accent) 75%,transparent)}
.btn.danger{background:var(--bad-soft);color:var(--bad);border-color:transparent}
.btn.small{padding:7px 12px;min-height:36px;font-size:.9rem;border-radius:12px}
.btn:disabled{opacity:.45;cursor:not-allowed;transform:none;box-shadow:none}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){:root{--glass:var(--surface);--glass-strong:var(--surface)}}
a.btn{text-decoration:none;display:inline-flex;align-items:center;justify-content:center;color:inherit}
a.btn.primary{color:var(--accent-fg)}

/* listas */
.list{display:flex;flex-direction:column}
.item{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:12px 0;border-top:1px solid var(--line);min-width:0}
.item:first-child{border-top:0}
.item .main{min-width:0;flex:1}
.item .t{font-weight:700;overflow-wrap:break-word}
.item .s{color:var(--muted);font-size:.9rem}
.pill{display:inline-block;border-radius:99px;padding:3px 10px;font-size:.7rem;font-weight:700;background:var(--accent-soft);color:var(--accent);white-space:nowrap}
.pill.low{background:var(--warn-soft);color:var(--warn)}
.pill.out{background:var(--bad-soft);color:var(--bad)}
.pill.ok{background:var(--ok-soft);color:var(--ok)}
.qty{display:flex;align-items:center;gap:2px;background:var(--field);border:1px solid var(--glass-edge);border-radius:99px;padding:3px}
.qty button{width:34px;height:34px;border-radius:50%;border:1px solid var(--glass-edge);background:var(--glass-strong);cursor:pointer;font-weight:800;font-size:1rem;box-shadow:var(--glass-hi),0 2px 6px -2px rgba(0,0,0,.2);line-height:1}
.qty span{min-width:26px;text-align:center}
.totals{display:flex;flex-direction:column;gap:8px;border-top:1px dashed var(--line);padding-top:12px}
.totals .r{display:flex;justify-content:space-between;gap:8px;color:var(--muted)}
.totals .r .num{color:var(--fg)}
.totals .big{align-items:baseline;color:var(--fg)}
.totals .big span:first-child{font-size:.9rem;font-weight:700;line-height:1.25}
.totals .big .num{font-family:var(--f-display);font-size:1.5rem;font-weight:800;letter-spacing:-.02em;white-space:nowrap}

/* indicadores */
.tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.tile{background:var(--glass);-webkit-backdrop-filter:var(--blur);backdrop-filter:var(--blur);border:1px solid var(--glass-edge);border-radius:var(--r-lg);padding:16px;box-shadow:var(--glass-hi),var(--glass-drop);min-width:0}
.tile .k{color:var(--muted);font-size:.8rem;font-weight:600}
.tile .v{font-family:var(--f-display);font-size:1.5rem;font-weight:800;overflow-wrap:anywhere;letter-spacing:-.02em;margin-top:2px}
.tile .v.num{font-weight:800}
.tile .hint{margin-top:4px}
.tiles .tile:first-child{grid-column:1/-1;background:var(--accent);color:var(--accent-fg);border-color:rgba(255,255,255,.35)}
.tiles .tile:first-child .k,.tiles .tile:first-child .hint{color:inherit;opacity:.85}
.tiles .tile:first-child .v{font-size:2rem}

/* comprobante */
.receipt{white-space:pre-wrap;background:var(--field);border-radius:var(--r-md);padding:14px;font-family:var(--f-body);font-size:.8rem;line-height:1.5;overflow-wrap:anywhere;border:1.5px dashed var(--line)}

/* barra de pestañas de cristal con cápsula que se desliza */
nav.tabs{position:fixed;left:12px;right:12px;bottom:var(--navb);max-width:696px;margin-inline:auto;background:var(--glass);-webkit-backdrop-filter:blur(30px) saturate(2.1);backdrop-filter:blur(30px) saturate(2.1);border:1px solid var(--glass-edge);border-radius:32px;box-shadow:var(--glass-hi),0 18px 40px -12px rgba(0,0,0,.32);display:flex;justify-content:space-between;padding:6px;gap:0;z-index:10}
nav.tabs .ind{position:absolute;left:0;top:6px;height:52px;width:0;border-radius:26px;background:var(--glass-strong);border:1px solid var(--glass-edge);box-shadow:var(--glass-hi),0 6px 16px -6px rgba(0,0,0,.35);pointer-events:none;opacity:0}
nav.tabs .ind.on{opacity:1}
nav.tabs button{position:relative;z-index:1;flex:1 1 0;min-width:0;border:0;background:transparent;border-radius:26px;padding:8px 2px 7px;font-weight:700;font-size:.7rem;letter-spacing:.005em;color:var(--muted);cursor:pointer;min-height:52px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;transition:color .2s}
nav.tabs button svg{width:22px;height:22px;fill:currentColor;stroke:none;flex-shrink:0}
nav.tabs button span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
nav.tabs button[aria-selected="true"]{color:var(--accent)}
nav.tabs.many{padding:5px}nav.tabs.many button{font-size:.7rem;letter-spacing:0;padding-inline:0}

/* avisos */
.toast{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(82px + var(--navb));background:color-mix(in srgb,var(--fg) 86%,transparent);-webkit-backdrop-filter:blur(16px) saturate(1.6);backdrop-filter:blur(16px) saturate(1.6);color:var(--bg);padding:11px 18px;border-radius:16px;font-weight:600;font-size:.9rem;z-index:400;max-width:calc(100vw - 32px);box-shadow:0 12px 30px -10px rgba(0,0,0,.45)}
@media (prefers-reduced-motion:no-preference){
  .toast{animation:pop .2s ease-out}@keyframes pop{from{opacity:0;transform:translate(-50%,8px)}}
  section[role=tabpanel]:not([hidden]){animation:fade .24s ease-out}@keyframes fade{from{opacity:0;transform:translateY(6px)}}
  section[role=tabpanel][data-dir="r"]:not([hidden]){animation:inr .34s cubic-bezier(.2,.8,.2,1)}
  section[role=tabpanel][data-dir="l"]:not([hidden]){animation:inl .34s cubic-bezier(.2,.8,.2,1)}
  @keyframes inr{from{opacity:0;transform:translateX(38px)}}@keyframes inl{from{opacity:0;transform:translateX(-38px)}}
  nav.tabs .ind{transition:translate .5s cubic-bezier(.3,1.3,.5,1),scale .4s cubic-bezier(.3,1.4,.5,1),width .45s cubic-bezier(.3,1.25,.5,1),opacity .2s,background .25s,box-shadow .25s}
  nav.tabs .ind.drag{transition:translate 0s,scale .3s cubic-bezier(.3,1.5,.5,1),width .15s,background .25s,box-shadow .25s}
  nav.tabs button{transition:color .2s,transform .28s cubic-bezier(.3,1.5,.5,1)}
  .modal{animation:scrim .18s ease-out}.dlg{animation:sheet .22s cubic-bezier(.2,.8,.2,1)}
  @keyframes scrim{from{opacity:0}}@keyframes sheet{from{opacity:0;transform:translateY(16px)}}
}

/* acceso */
.auth{min-height:100dvh;display:flex;align-items:center;justify-content:center;padding-block:24px;background:none}
.auth .card{width:100%;max-width:390px;margin:0;padding:24px;gap:16px}
.auth h1{font-size:1.5rem;font-weight:800}
.pinbox{letter-spacing:.5em;text-align:center;font-family:var(--f-display);font-size:1.5rem;font-weight:700}

/* fotos */
.thumb{width:48px;height:48px;border-radius:12px;object-fit:cover;background:var(--field);flex-shrink:0;display:block}
.thumb.big{width:76px;height:76px;border-radius:16px}
.thumb.big[alt="Logo"]{object-fit:contain;background:transparent}
.thumb.ph{display:flex;align-items:center;justify-content:center;color:var(--accent);font-family:var(--f-display);font-weight:800;font-size:1.2rem;background:var(--accent-soft)}
.thumb.big.ph{font-size:1.5rem}

/* ventanas emergentes: hoja inferior en el celular */
.modal{position:fixed;inset:0;z-index:50;background:var(--scrim);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);display:flex;align-items:center;justify-content:center;padding:16px}
.dlg{background:var(--glass-strong);-webkit-backdrop-filter:blur(34px) saturate(2);backdrop-filter:blur(34px) saturate(2);border:1px solid var(--glass-edge);color:var(--fg);border-radius:30px;padding:22px;width:min(100%,400px);display:flex;flex-direction:column;gap:12px;box-shadow:var(--glass-hi),0 24px 60px -12px rgba(0,0,0,.45)}
.dlg h2{margin:0;font-size:1.2rem;font-weight:800}
.dlg.scan{width:min(100%,440px)}
.scanwrap{position:relative;border-radius:var(--r-md);overflow:hidden;background:#000}
.scanwrap video{display:block}
.scanframe{position:absolute;left:12%;right:12%;top:26%;bottom:26%;border:3px dashed #fff;border-radius:14px;box-shadow:0 0 0 2px rgba(0,0,0,.55),0 0 0 9999px rgba(0,0,0,.28);pointer-events:none}
/* v708 (punto 16): al leer un código el marco del visor se pone verde (rojo si falla, amarillo si hay aviso) y el visor se tiñe un momento. Va DENTRO del visor: el aro de la ventana (box-shadow) quedaba tapado por el diseño y no se veía. */
.dlg.scan.scanok .scanframe{border-style:solid;border-color:#34C759;box-shadow:0 0 0 2px rgba(0,0,0,.55),0 0 0 9999px rgba(52,199,89,.32),0 0 22px 4px rgba(52,199,89,.75)}
.dlg.scan.scanerr .scanframe{border-style:solid;border-color:#FF3B30;box-shadow:0 0 0 2px rgba(0,0,0,.55),0 0 0 9999px rgba(255,59,48,.32),0 0 22px 4px rgba(255,59,48,.75)}
.dlg.scan.scanwarn .scanframe{border-style:solid;border-color:#FFCC00;box-shadow:0 0 0 2px rgba(0,0,0,.55),0 0 0 9999px rgba(255,204,0,.30),0 0 22px 4px rgba(255,204,0,.75)}
.dlg.scan.scanok .scanwrap{outline:4px solid #34C759;outline-offset:-4px}.dlg.scan.scanerr .scanwrap{outline:4px solid #FF3B30;outline-offset:-4px}.dlg.scan.scanwarn .scanwrap{outline:4px solid #FFCC00;outline-offset:-4px}
.scancount{position:absolute;left:10px;top:10px;background:rgba(0,0,0,.7);color:#fff;font-weight:700;font-size:.9rem;padding:4px 10px;border-radius:99px;text-shadow:0 1px 2px #000}
.scantorch{position:absolute;right:10px;bottom:10px;border:1px solid rgba(255,255,255,.7);background:rgba(0,0,0,.65);color:#fff;font-weight:700;font-size:.9rem;padding:7px 12px;border-radius:99px;cursor:pointer}
.scantorch[aria-pressed="true"]{background:#FFCC00;color:#111;border-color:#FFCC00}
.dlg.scan.scanok{box-shadow:0 0 0 4px #34C759,var(--glass-hi),0 24px 60px -12px rgba(0,0,0,.45)}
.dlg.scan.scanerr{box-shadow:0 0 0 4px #FF3B30,var(--glass-hi),0 24px 60px -12px rgba(0,0,0,.45)}
.dlg.scan.scanwarn{box-shadow:0 0 0 4px #FFCC00,var(--glass-hi),0 24px 60px -12px rgba(0,0,0,.45)}
.dlg.scan video{width:100%;aspect-ratio:4/3;max-width:100%;object-fit:cover;background:#000;border-radius:var(--r-md)}
@media (max-width:520px){
  .modal{align-items:flex-end;padding:0}
  .dlg,.dlg.scan{width:100%;border-radius:30px 30px 0 0;padding:22px 20px calc(22px + env(safe-area-inset-bottom,0px))}
}

.btn.small.x{min-width:36px;padding-inline:0;font-size:.8rem}
#vdone a.btn.primary{flex:1 1 100%}
.pinbox{font-size:1.2rem}

body{overflow-x:hidden}

/* arrastrar la barra: la cápsula se levanta como una lente de cristal */
nav.tabs{touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;cursor:grab}
nav.tabs .ind{translate:0 0;scale:1}
nav.tabs .ind.drag{background:var(--lens);border-color:rgba(255,255,255,.9);-webkit-backdrop-filter:brightness(1.22) saturate(2.4);backdrop-filter:brightness(1.22) saturate(2.4);box-shadow:var(--glass-hi),0 0 0 1px rgba(255,255,255,.35),0 18px 34px -8px rgba(0,0,0,.45)}
nav.tabs.lift{cursor:grabbing}
nav.tabs.lift button.hot{color:var(--accent);transform:scale(1.13)}

/* personalización */
textarea{resize:vertical;min-height:72px}
.bizlabel{display:flex;align-items:center;gap:10px}
.logo{height:36px;width:auto;max-width:96px;object-fit:contain;border-radius:9px;background:transparent;flex:none}
.logo.big{height:64px;max-width:200px;align-self:center;margin-bottom:4px}
/* Logo oscuro en modo oscuro: se invierte igual que el crédito "Diseñado por" (la marca html[data-logo-dark] la pone app.js al medir el logo) */
@media (prefers-color-scheme:dark){html[data-logo-dark]:not([data-theme="light"]) .logo{filter:invert(1) hue-rotate(180deg)}}
html[data-theme="dark"][data-logo-dark] .logo{filter:invert(1) hue-rotate(180deg)}
/* v510: en modo oscuro el logo del negocio se veía negro sobre negro. Menú lateral: se voltea como el del encabezado.
   Tarjeta de Ajustes: cuadro blanco con el logo original, igual que la vista previa del editor del logo. */
@media (prefers-color-scheme:dark){html[data-logo-dark]:not([data-theme="light"]) img.navlogo{filter:invert(1) hue-rotate(180deg)}html:not([data-theme="light"]) img.ajlogo{background:#fff}}
html[data-theme="dark"][data-logo-dark] img.navlogo{filter:invert(1) hue-rotate(180deg)}
html[data-theme="dark"] img.ajlogo{background:#fff}
label.chk{display:flex;align-items:center;gap:10px;font-size:.9rem;font-weight:500;color:var(--fg);padding:6px 2px;cursor:pointer}
label.chk input{width:20px;height:20px;flex:none;padding:0;accent-color:var(--accent)}
.swatches{display:flex;gap:12px;flex-wrap:wrap;padding:4px 0}
.swatches.locked{opacity:.45;pointer-events:none} /* v549: en Básico el color es el de Mi Cuadra */
.swatch{width:36px;height:36px;border-radius:50%;border:2px solid var(--glass-edge);background:var(--sw);cursor:pointer;padding:0;box-shadow:var(--glass-drop)}
.swatch[aria-pressed="true"]{outline:3px solid var(--fg);outline-offset:2px}
[hidden]{display:none!important}

/* pantalla de carga y crédito */
#splash{position:fixed;inset:0;z-index:200;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:22px;background:var(--bg);transition:opacity .3s ease;opacity:1}
#splash.off{opacity:0;pointer-events:none}
.orb{position:relative;width:74px;height:74px;display:grid;place-items:center}
.orb i{position:absolute;inset:0;border-radius:50%;border:3px solid transparent;border-top-color:var(--accent);animation:orbspin 1.1s linear infinite}
.orb i:nth-child(2){inset:10px;border-top-color:var(--accent-2);animation-duration:1.5s;animation-direction:reverse;opacity:.8}
.orb-logo{position:absolute;inset:19px;width:36px;height:36px;border-radius:11px;box-shadow:0 4px 14px color-mix(in srgb,var(--accent) 35%,transparent);animation:logopulse 1.6s ease-in-out infinite}
.splash-t{font-family:var(--f-display);font-weight:700;color:var(--muted);letter-spacing:.02em}
@keyframes orbspin{to{transform:rotate(360deg)}}
@keyframes orbpulse{50%{transform:scale(.7);opacity:.7}}
@keyframes logopulse{50%{transform:scale(.9)}}
@media (prefers-reduced-motion:reduce){.orb i:not(:nth-child(3)){animation:none;border-color:var(--accent-soft)}}
.credit{text-align:center;font-size:.7rem;color:var(--muted);opacity:.85;letter-spacing:.03em;padding:14px 0 4px}
.auth{flex-direction:column;gap:6px}
.auth>.card{width:100%}

.dlg.ticketdlg{width:min(100%,440px);align-items:stretch}.tprev{background:#e7e7e2;border-radius:var(--r-md,16px);padding:12px;display:flex;justify-content:center;max-height:60dvh;overflow:auto}.tprev iframe{background:#fff;border:0;box-shadow:0 2px 10px rgba(0,0,0,.25);flex:none}

.item.inv{flex-wrap:wrap;align-items:flex-start;row-gap:10px}
.item.inv>.row{flex:1 1 100%}
.item.inv .t{font-size:1rem;line-height:1.25}
.chips{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0 2px}
.chip{border:1px solid var(--line);background:var(--field);color:var(--fg);border-radius:8px;padding:2px 8px;font-size:.8rem;font-weight:600}
.item.inv>.row{gap:8px}.item.inv>.row .btn{flex:1 1 40%;padding-inline:8px}
h3.sub{margin:18px 0 4px;font-size:.9rem}

/* ---- interfaz más despejada ---- */
.card{padding:20px;gap:16px;margin-block:16px}
label.f,div.f{gap:7px}
.hint{line-height:1.5}
.seg{display:flex;gap:4px;padding:4px;margin-block:14px 0;background:var(--field);border-radius:14px}
.seg button{flex:1;min-width:0;border:0;background:transparent;color:var(--muted);font:inherit;font-weight:700;font-size:.9rem;padding:10px 6px;border-radius:11px;cursor:pointer}
.seg button.on{background:var(--surface);color:var(--fg);box-shadow:0 1px 4px rgba(20,30,50,.12)}
#vpprice{margin-bottom:14px}
.card.fold>h2{display:flex;align-items:center;justify-content:space-between;gap:10px;cursor:pointer;user-select:none;margin:-4px 0}
.card.fold>h2::after{content:"";flex:none;width:9px;height:9px;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:rotate(45deg) translateY(-2px);transition:transform .2s}
.card.fold.closed>h2::after{transform:rotate(-45deg)}
.card.fold.closed:not(.sf-open)>*:not(h2){display:none}
.card.fold.closed:not(.sf-open){gap:0}
.card[hidden]{display:none}
.item.inv{padding-block:16px}

.credit .by{display:inline-flex;align-items:center;gap:6px}
.credit img{height:60px;width:auto;display:block}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .credit img{filter:invert(1) hue-rotate(180deg)}}
:root[data-theme="dark"] .credit img{filter:invert(1) hue-rotate(180deg)}

.sbar{position:static;display:flex;gap:10px;flex-wrap:wrap;align-items:flex-end;padding:10px 0;margin-top:10px}
.sbar .f{margin:0;min-width:0}.sbar .grow{flex:1 1 220px}

details.more{margin-top:2px}
details.more>summary{cursor:pointer;color:var(--accent);font-weight:600;font-size:.9rem;padding:6px 0;list-style:none}
details.more>summary::-webkit-details-marker{display:none}
details.more>summary::before{content:'+ ';font-weight:800}
details.more[open]>summary::before{content:'– '}
details.more>.row,details.more>.f{margin-top:8px}

#vpick{max-height:min(46vh,400px);overflow-y:auto;overscroll-behavior:contain;margin-inline:-4px;padding-inline:4px}
#tab-vender{padding-bottom:84px}
.vbar{position:fixed;left:12px;right:12px;bottom:calc(74px + var(--navb));max-width:696px;margin-inline:auto;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px 10px 18px;border-radius:22px;background:var(--surface);border:1px solid var(--line);box-shadow:0 10px 30px -10px rgba(10,20,40,.35)}
.vbar[hidden]{display:none}
.vbar .vbi{display:flex;flex-direction:column;min-width:0}
.vbar .vbi b{font-size:1.2rem}
.vbar .btn{flex:none;min-width:120px}

.qpick{max-height:min(40vh,320px);overflow-y:auto;overscroll-behavior:contain}
.qedit{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:6px}
.qedit label{display:flex;align-items:center;gap:4px;font-size:.8rem;color:var(--muted)}
.qedit input{width:92px;min-width:0;padding:6px 8px}
.qedit label:first-child input{width:52px}

.psearch{margin-bottom:6px}
.pshint{display:block;margin-top:4px;min-height:0}
.pshint:empty{display:none}
label.f>select[size]{height:auto;padding:4px}

.kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:10px;margin-block:12px}
.kpis>div{background:var(--field);border-radius:var(--r-md);padding:10px 12px;min-width:0}
.kpis b{display:block;font-size:1rem;overflow-wrap:anywhere}
.hbars{display:flex;flex-direction:column;gap:10px}
.hbl{display:flex;justify-content:space-between;gap:10px;font-size:.9rem}
.hbn{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hbt{height:8px;border-radius:6px;background:var(--field);margin-top:4px;overflow:hidden}
.hbf{height:100%;background:var(--accent);border-radius:6px}

.linkbtn{background:none;border:0;color:var(--accent-2);font:inherit;font-size:.9rem;font-weight:600;padding:8px;cursor:pointer;text-decoration:underline}
.reccode{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;background:var(--accent-soft);border-radius:var(--r-md);padding:12px 14px;font-size:1.2rem;letter-spacing:.06em}
.warn{color:#b45309;font-weight:600}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .warn{color:#fbbf24}}
:root[data-theme="dark"] .warn{color:#fbbf24}

.pedit{display:flex;align-items:center;flex-wrap:wrap;gap:4px}
.pe{width:7.5em;min-width:0;padding:6px 8px;border-radius:10px;font-variant-numeric:tabular-nums}

/* Botón flotante de nueva venta */
.fab{position:fixed;right:16px;bottom:calc(78px + var(--navb));z-index:15;width:54px;height:54px;border-radius:50%;border:1px solid var(--glass-edge);background:var(--accent);color:var(--accent-ink,#fff);box-shadow:0 12px 26px -8px rgba(0,0,0,.45);display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0}
.fab svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round}
.fab b{position:absolute;top:-4px;right:-4px;min-width:20px;height:20px;border-radius:10px;background:var(--bg,#fff);color:var(--accent);border:2px solid var(--accent);font-size:.7rem;display:flex;align-items:center;justify-content:center;padding:0 4px}
.fab[hidden]{display:none}
/* Inicio */
.quick{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}
.quick .btn{min-height:48px}
/* Tablet horizontal: productos a la izquierda y carrito a la derecha */
@media (min-width:900px){
  #app[data-tab="vender"] .wrap{max-width:1180px}
  #app[data-tab="vender"] #tab-vender:not([hidden]){display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 16px;align-items:start}
  #app[data-tab="vender"] #tab-vender>.card:nth-of-type(2){position:sticky;top:12px;max-height:calc(100vh - 100px);overflow:hidden;display:flex;flex-direction:column;gap:12px}
  #app[data-tab="vender"] .cart-scroll{overflow-y:auto;overflow-x:hidden;min-height:0;flex:1 1 auto;padding-right:4px}
  #app[data-tab="vender"] .cart-foot{flex:none;border-top:1px solid var(--line);padding-top:12px}
  #app[data-tab="vender"] #tab-vender>.card:first-of-type{position:sticky;top:12px}
  /* v688: con ventas en espera las tarjetas no se quedan fijas: tapaban la lista de abajo al desplazar */
  #app[data-tab="vender"] #tab-vender:has(>#vholds:not(:empty))>.card:first-of-type,#app[data-tab="vender"] #tab-vender:has(>#vholds:not(:empty))>.card:nth-of-type(2){position:static;max-height:none}
  #app[data-tab="vender"] #tab-vender>#vdone{grid-column:1/-1}
  #app[data-tab="vender"] #vpick{max-height:calc(100vh - 290px);overflow-y:auto}
  #app[data-tab="vender"] .vbar{display:none!important}
  #app[data-tab="vender"] .fab{display:none}
}

.moregrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:12px}
.morebtn{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:84px;padding:10px 4px;border-radius:22px;border:1px solid var(--glass-edge);background:var(--glass);color:var(--fg);font:inherit;font-weight:700;font-size:.8rem;cursor:pointer}
.morebtn svg{width:26px;height:26px;fill:currentColor;stroke:none}
.morebtn svg.ln{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.morebtn.on{color:var(--accent);border-color:var(--accent)}

.gsbar{display:flex;align-items:center;gap:10px;width:100%;margin-top:12px;padding:0 16px;min-height:52px;border-radius:26px;border:1px solid var(--glass-edge);background:var(--glass);-webkit-backdrop-filter:var(--blur);backdrop-filter:var(--blur);box-shadow:var(--glass-hi);color:var(--muted);font:inherit;font-weight:600;text-align:left;cursor:pointer}
.gsbar svg{width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.gsbar span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gsbar kbd{font:inherit;font-size:.7rem;padding:2px 7px;border-radius:8px;border:1px solid var(--glass-edge);color:var(--muted)}
@media (hover:none){.gsbar kbd{display:none}}
#gsmodal{align-items:flex-start;padding-top:max(16px,var(--sat))}
#gsmodal .dlg{width:100%;max-width:560px;max-height:calc(100vh - 32px);display:flex;flex-direction:column;gap:10px;overflow:hidden}
#gsres{overflow-y:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:6px}
#gsres h3{margin:8px 0 2px;font-size:.8rem;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}
.gsrow{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;text-align:left;padding:10px 12px;border-radius:16px;border:1px solid var(--glass-edge);background:var(--glass);color:var(--fg);font:inherit;cursor:pointer}
.gsrow:hover,.gsrow:focus-visible{border-color:var(--accent)}
.gsrow .gt{font-weight:700;overflow-wrap:anywhere}.gsrow .gs{font-size:.8rem;color:var(--muted);overflow-wrap:anywhere}
.gsrow .gr{font-weight:700;white-space:nowrap}

.toast.undo{display:flex;align-items:center;gap:14px;pointer-events:auto;max-width:min(92vw,460px)}
.toast .undobtn{flex:none;border:0;border-radius:12px;padding:7px 14px;font:inherit;font-weight:800;background:var(--accent);color:var(--accent-fg);cursor:pointer;min-height:36px}

html{font-size:calc(100% * var(--fs,1))}
.seg{display:flex;gap:8px;flex-wrap:wrap}.seg .btn{flex:1 1 0}
html[data-big] .btn{min-height:52px;padding-inline:18px}
html[data-big] .btn.small{min-height:46px}
html[data-big] input,html[data-big] select,html[data-big] textarea{min-height:52px}
html[data-big] .chk{min-height:44px}
html[data-big] nav.tabs button{min-height:60px}
html[data-hc]{--muted:#3d4a60;--line:#8a97ad;--glass-edge:rgba(40,60,100,.38)}
@media (prefers-color-scheme:dark){html[data-hc]:not([data-theme="light"]){--muted:#c3cee0;--line:#52647f;--glass-edge:rgba(200,215,245,.4)}}
html[data-hc] .hint,html[data-hc] .tile .k,html[data-hc] .s{color:var(--muted)}

.logo.hero{height:auto;max-height:120px;max-width:min(260px,80%);align-self:center;margin-bottom:6px;object-fit:contain}
.welcome{margin:-4px 0 2px;text-align:center;color:var(--muted);font-size:1rem;text-wrap:balance}
.swatch.custom{position:relative;overflow:hidden;display:inline-block}
.swatch.custom input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;border:0;padding:0}
.swatch.custom[data-pressed="true"]{outline:3px solid var(--fg);outline-offset:2px}

.goal{display:flex;flex-direction:column;gap:6px;padding:6px 0}
.goalt{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;font-weight:600}
.bar{height:12px;border-radius:99px;background:var(--accent-soft);overflow:hidden}
.bar i{display:block;height:100%;background:var(--accent);border-radius:99px} /* v591: sin animar el ancho (solo transform y opacity) */

.vgroup .vopt{cursor:pointer;min-height:36px;padding:4px 10px}
.vgroup .vopt.on{border-color:var(--accent);background:var(--accent-soft);color:var(--accent-2)}
.vgroup .vopt:disabled{opacity:.45;cursor:not-allowed}

.asearch{display:flex;align-items:center;gap:10px;margin-top:12px;padding:0 12px 0 16px;min-height:50px;border-radius:26px;border:1px solid var(--glass-edge);background:var(--glass);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}
.asearch svg{width:20px;height:20px;flex:none;fill:none;stroke:var(--muted);stroke-width:2;stroke-linecap:round}
.asearch input{flex:1;min-width:0;border:0;background:transparent;font:inherit;color:var(--fg);padding:12px 0;outline:none;box-shadow:none}
#ascount{margin:8px 4px 0}
.card.fold.sf-off{display:none}
.sf-hit{outline:2px solid var(--accent);outline-offset:2px;border-radius:8px;background:color-mix(in srgb,var(--accent) 14%,transparent)} /* v557: antes var(--accent-soft) quedaba claro con letra clara en modo oscuro */

/* ===== Estilo de pantalla: solo "mostrador" (v530: el estilo Clásico/vidrio se eliminó). ===== */
html:root[data-style="mostrador"]{--blur:none;--lens:transparent;--blob1:transparent;--blob2:transparent;--blob3:transparent;--glass-hi:none;--shadow:none}
html:root[data-style="mostrador"]{--r-lg:16px;--r-md:12px;--r-sm:8px}
/* v548: en modo claro el fondo y las cajas de texto salen del color del negocio, muy suave (con Verde queda el verde crema de v547) */
html:root[data-style="mostrador"]:not([data-theme="light"]){--bg:#000000;--surface:#111111;--field:#1f232c;--fg:#eceef2;--muted:#9aa3b2;--line:#2a2f3a;--glass:#171a21;--glass-strong:#1f232c;--glass-edge:#2a2f3a;--glass-drop:none;--shadow-up:0 0 0 1px #2a2f3a,0 14px 34px -10px rgba(0,0,0,.7);--scrim:rgba(0,0,0,.6);--warn:#f2b862;--warn-soft:#3a2c12;--bad:#ff9a85;--bad-soft:#3b1d17;--ok:#72d996;--ok-soft:#153522;color-scheme:dark}
html:root[data-style="mostrador"][data-theme="light"]{--bg:color-mix(in srgb,var(--accent) 9%,#fff);--surface:#fff;--field:color-mix(in srgb,var(--accent) 12%,#fff);--fg:#14161c;--muted:#5a6372;--line:#d9dde5;--glass:#fff;--glass-strong:#fff;--glass-edge:#d9dde5;--glass-drop:none;color-scheme:light}
/* piezas comunes: planas, sin brillos de vidrio */
html[data-style="mostrador"] .btn{box-shadow:none;background:var(--glass-strong)}
html[data-style="mostrador"] .btn.primary{background:var(--accent);color:var(--accent-fg);border-color:transparent;box-shadow:none}
html[data-style="mostrador"] .card,html[data-style="mostrador"] .tile{border-color:var(--line)}
html[data-style="mostrador"] .num,html[data-style="mostrador"] .tile .v{font-variant-numeric:tabular-nums;letter-spacing:-.03em}
/* tarjeta principal de Inicio */
html[data-style="mostrador"] .tiles .tile:first-child{background:var(--surface);color:var(--fg);border-color:var(--line)}
html[data-style="mostrador"] .tiles .tile:first-child .v{color:var(--accent);font-size:2.6rem}
html[data-style="mostrador"] .tiles .tile:first-child .k{letter-spacing:.08em;font-size:.7rem;font-weight:700}
/* barra de pestañas */
html[data-style="mostrador"] nav.tabs{background:var(--surface);border:1px solid var(--line);border-radius:22px;box-shadow:var(--shadow-up);-webkit-backdrop-filter:none;backdrop-filter:none}
html[data-style="mostrador"] nav.tabs .ind{background:var(--accent-soft);border-color:transparent;box-shadow:none;border-radius:16px}
/* barra de cobro y campos */
html[data-style="mostrador"] .vbar{-webkit-backdrop-filter:none;backdrop-filter:none}
html[data-style="mostrador"] .vbar{background:var(--accent);color:var(--accent-fg);border-color:transparent;border-radius:20px}
html[data-style="mostrador"] .vbar .btn{background:#fff;color:var(--accent);border-color:transparent;box-shadow:0 1px 2px rgba(0,0,0,.18)}
@media (prefers-color-scheme:dark){html[data-style="mostrador"]:not([data-theme="light"]) .vbar .btn{color:var(--accent-fg)}}
html[data-style="mostrador"][data-theme="dark"] .vbar .btn{color:var(--accent-fg)}
html[data-style="mostrador"] .seg button.on{background:var(--accent);color:var(--accent-fg)}
html[data-style="mostrador"] body{background:var(--bg)}
html[data-style="mostrador"] body::before{display:none}
html[data-style="mostrador"] .vbar .vbi,html[data-style="mostrador"] .vbar .vbi *{color:inherit}

/* cuenta: círculo con la inicial y menú */
.avatar{width:44px;height:44px;border-radius:50%;border:0;background:var(--accent);color:var(--accent-fg);font-family:var(--f-display);font-weight:800;font-size:1.2rem;cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:var(--shadow)}
.avatar:focus-visible{outline:3px solid var(--accent-soft);outline-offset:2px}
.umenu{position:absolute;right:0;top:calc(100% + 8px);z-index:60;min-width:200px;max-width:80vw;background:var(--surface);color:var(--fg);border:1px solid var(--line);border-radius:var(--r-md);box-shadow:var(--shadow-up);padding:6px;display:flex;flex-direction:column;gap:2px}
.umenu[hidden]{display:none}
.umenu.fromnav{position:fixed;right:auto;z-index:90}
.uwho{padding:10px 12px 8px;border-bottom:1px solid var(--line);margin-bottom:4px;overflow-wrap:anywhere}
.uwho b{display:block;font-size:1rem}.uwho span{display:block;font-size:.8rem;color:var(--muted);font-weight:600}
.uitem{border:0;background:none;text-align:left;padding:12px;border-radius:var(--r-sm);font-weight:600;cursor:pointer;min-height:44px;color:var(--fg)}
.uitem:hover,.uitem:focus-visible{background:var(--accent-soft)}.uitem.out{color:var(--bad)}

/* Entrada con teclado numérico y puntos del PIN */
.auth.pad .card{display:flex;flex-direction:column;gap:14px}
.auth.pad .ahero{display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px}
.auth.pad .ahero h1,.auth.pad .ahero p{margin:0}
.auth.pad .asheet{display:flex;flex-direction:column;gap:14px}
.auth.pad .asheet>.credit{padding-top:4px}
.pinfield{position:absolute;opacity:0;width:1px;height:1px;overflow:hidden;pointer-events:none;margin:0;padding:0}
.pindots{display:flex;gap:14px;justify-content:center;align-items:center;min-height:26px}
.pindots i{width:16px;height:16px;border-radius:50%;border:2px solid var(--line);background:transparent;transition:background .12s,border-color .12s}
.pindots i.on{background:var(--accent);border-color:var(--accent)}
.pinpad{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.padk{height:60px;border-radius:var(--r-md);border:1px solid var(--line);background:var(--field);color:var(--fg);font-family:var(--f-display);font-size:1.5rem;font-weight:700;cursor:pointer;display:flex;align-items:center;justify-content:center;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.padk:active{background:var(--accent-soft)}
.padk:focus-visible{outline:3px solid var(--accent-soft);outline-offset:2px}
.padk.del{border-color:transparent;background:none;color:var(--muted)}
.padk.pkk.pk-wait,.padk.pkk.pk-ok{opacity:1;cursor:default}
.padk.pkk.pk-wait{color:var(--accent)}
.padk.pkk.pk-wait svg{animation:pkpulse 1.1s ease-in-out infinite}
.padk.pkk.pk-ok{color:var(--ok)}
.padk.pkk.pk-ok svg path{stroke-dasharray:24;stroke-dashoffset:24;animation:pkdraw .3s ease-out forwards}
@keyframes pkpulse{0%,100%{transform:scale(1);opacity:1}50%{transform:scale(.8);opacity:.5}}
@keyframes pkdraw{to{stroke-dashoffset:0}}
@media (prefers-reduced-motion:reduce){.padk.pkk.pk-wait svg{animation:pkpulse 2.4s ease-in-out infinite}.padk.pkk.pk-ok svg path{animation:none;stroke-dashoffset:0}}
.auth.pad #abtn{min-height:56px;font-size:1.2rem}
/* Mostrador */
html[data-style="mostrador"] .pindots i{border-radius:5px;width:18px;height:18px}
html[data-style="mostrador"] .padk{border-radius:16px}
html[data-style="mostrador"] .auth.pad .ahero h1{font-size:2rem}
html[data-style="mostrador"]:not([data-theme="light"]) .credit img{filter:invert(1) hue-rotate(180deg)}

/* revisión: cifras que no se parten, títulos plegables fáciles de tocar y contraste del texto gris */
.tile .v.num,.kpis b,.kpis .num{white-space:nowrap;overflow:hidden;overflow-wrap:normal;text-overflow:clip}
.card.fold>h2{min-height:44px;margin:-8px 0}
html:root[data-style="mostrador"][data-theme="light"]{--muted:#4f5868}
html:root[data-style="mostrador"][data-theme="light"] .pill{color:var(--fg)}
/* crédito: «Vencido» (fondo negro) y «Vence hoy» (fondo del color del negocio) conservan su texto claro */
html:root[data-style="mostrador"][data-theme="light"] .fstate.late .pill{color:#fff}
html:root[data-style="mostrador"][data-theme="light"] .fstate.today .pill{color:var(--accent-fg)}
/* entrada: sin el espacio extra de la barra inferior y ajustada a celulares pequeños */
body:has(#auth:not([hidden])){padding-bottom:0}
@media (max-height:720px){
  .padk{height:48px;font-size:1.2rem}.pinpad{gap:8px}
  .auth.pad .card,.auth.pad .asheet{gap:8px}
  .auth.pad .logo.hero{max-height:56px}
  .auth.pad .ahero h1{font-size:1.5rem}
  .auth.pad .asheet>.credit{padding-top:0}.auth.pad .credit img{height:40px}
  .auth.pad #abtn{min-height:48px}
}
@media (max-height:620px){.auth.pad .credit img{height:30px}.auth.pad .asheet>.credit{font-size:.7rem}.auth.pad .ahero h1{font-size:1.2rem}.padk{height:44px}}

/* Auditoría v87: el botón flotante ya no tapa el final de las listas; etiquetas mínimas legibles */
#app:not([data-tab="vender"]) .wrap{padding-bottom:calc(138px + var(--navb))}
html[data-style="mostrador"] .tiles .tile:first-child .k{font-size:.8rem}
nav.tabs.many button{font-size:.7rem}

/* Pantalla de carga por pasos */
#splash{gap:14px}
.sp-logo{width:60px;height:60px;border-radius:17px;box-shadow:0 8px 26px color-mix(in srgb,var(--accent) 38%,transparent);animation:logopulse 1.8s ease-in-out infinite}
/* v708 (punto 9): con un color de negocio negro u oscuro el cuadro negro del logo de Mi Cuadra se perdía en el fondo; se pasa a tono claro (cuadro claro, trazo oscuro, el verde se conserva). --mc-oscuro lo pone applyTheme (1 = fondo oscuro). */
.sp-name{font-family:var(--f-display);font-weight:800;font-size:1.2rem;letter-spacing:.01em;margin-bottom:6px}
.sp-steps{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:11px;width:min(260px,70vw);font-size:.9rem}
.sp-steps li{display:flex;align-items:center;gap:11px;color:var(--muted);opacity:.5;transition:opacity .25s,color .25s}
.sp-steps li.on,.sp-steps li.done{opacity:1}
.sp-steps li.on{color:var(--fg)}
.sp-steps li.done{color:var(--muted)}
.sp-steps b{width:18px;height:18px;border-radius:50%;border:2px solid color-mix(in srgb,var(--muted) 45%,transparent);flex:none;position:relative;box-sizing:border-box;transition:background .2s,border-color .2s}
.sp-steps li.on b{border-color:var(--accent-soft,#ccc);border-top-color:var(--accent);animation:orbspin .8s linear infinite}
.sp-steps li.done b{background:var(--accent);border-color:var(--accent)}
.sp-steps li.done b::after{content:"";position:absolute;left:4px;top:1px;width:5px;height:8px;border:solid var(--accent-ink,#fff);border-width:0 2px 2px 0;transform:rotate(45deg)}
#splash .splash-t{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
@media (prefers-reduced-motion:reduce){.sp-steps li.on b{animation:none;border-color:var(--accent)}.sp-logo{animation:none}}

/* Personalizar barra e Inicio */
.homeoff{display:none!important}
.persrow{display:flex;align-items:center;gap:8px;padding:8px 0;border-bottom:1px solid var(--line,rgba(128,128,128,.25))}
.persrow:last-child{border-bottom:0}
.persrow .pn{flex:1;min-width:0;font-weight:600}
.persrow .btn.small{min-width:40px;min-height:40px;padding:0}
.persrow .pchk{margin:0;flex:none;white-space:nowrap}

.sp-logo.img{object-fit:contain;background:#fff;padding:6px;box-sizing:border-box}
.sp-by{font-size:.7rem;color:var(--muted);letter-spacing:.04em;margin-top:6px;display:flex;align-items:center;gap:7px;font-weight:700;color:var(--fg)}
.sp-by[hidden]{display:none}
/* Logo de Cuadra abajo de la carga: el claro en modo claro y el oscuro en modo oscuro */
.sp-cq{width:22px;height:22px;border-radius:6px;flex:none;box-shadow:0 1px 4px rgba(0,0,0,.14)}
.sp-cq.dk{display:none}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .sp-cq.lt{display:none}:root:not([data-theme="light"]) .sp-cq.dk{display:block}}
:root[data-theme="dark"] .sp-cq.lt{display:none}
:root[data-theme="dark"] .sp-cq.dk{display:block}

/* Limpieza: menú «Más» por producto, filtro y subpestañas de Inventario */
.pmenu{display:inline-block;position:relative;max-width:100%}
.pmenu>summary{list-style:none;cursor:pointer;display:inline-flex;align-items:center}
.pmenu>summary::-webkit-details-marker{display:none}
.pmenu[open]>summary{background:var(--accent-soft,rgba(128,128,128,.15))}
.pmlist{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px;flex-basis:100%;max-width:100%}
.item .row:has(.pmenu){align-items:flex-start}
.item .row:has(.pmenu[open]) .pmenu{flex-basis:100%}
#invseg{overflow-x:auto;scrollbar-width:none}
#invseg::-webkit-scrollbar{display:none}
#invseg button{white-space:nowrap;flex:1 0 auto;padding-inline:9px;font-size:.9rem}
#isbar .f[hidden]{display:none}

/* Limpieza de Inicio */
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.gchk{display:inline-block;width:18px;height:18px;border-radius:50%;border:2px solid var(--muted);vertical-align:-3px;margin-right:9px;box-sizing:border-box;position:relative}
.gchk.done{background:var(--accent);border-color:var(--accent)}
.gchk.done::after{content:"";position:absolute;left:4px;top:1px;width:5px;height:8px;border:solid var(--accent-ink,#fff);border-width:0 2px 2px 0;transform:rotate(45deg)}
.tiles .tile:last-child:nth-child(even){grid-column:1/-1}
.quick .btn:last-child:nth-child(odd){grid-column:1/-1}

/* Ajustes en secciones */
.sec-off{display:none!important}
.ajhub{display:flex;flex-direction:column;gap:10px;margin-top:12px}
.ajrow{display:flex;align-items:center;gap:14px;width:100%;text-align:left;padding:14px;border-radius:16px;border:1px solid var(--line);background:var(--surface,var(--field));color:var(--fg);font:inherit;cursor:pointer;min-height:64px}
.ajrow[hidden]{display:none}
.ajic{width:40px;height:40px;border-radius:12px;background:var(--accent-soft,rgba(128,128,128,.15));color:var(--accent);display:grid;place-items:center;flex:none}
.ajic svg{width:20px;height:20px;fill:currentColor;stroke:none}
.ajtx{flex:1;min-width:0}.ajtx b{display:block;font-size:1rem}.ajtx span{display:block;color:var(--muted);font-size:.9rem;line-height:1.35;margin-top:2px}
.ajchev{color:var(--muted);font-size:1.2rem;flex:none}
.ajbar{display:flex;align-items:center;gap:12px;margin-top:12px}
.ajbar[hidden]{display:none}
.ajbar h2{margin:0;font-size:1.2rem}
.ajbar .btn{min-height:40px}
.ajhub[hidden]{display:none}

#cntstart{margin-top:12px}

/* Escritorio: menú lateral, contenido ancho y listas en dos columnas */
@media (min-width:1100px){
  body{padding-inline:24px 24px;padding-left:260px;padding-block:0 32px}
  nav.tabs{left:16px;right:auto;top:16px;bottom:16px;width:208px;max-width:none;margin:0;flex-direction:column;justify-content:flex-start;gap:4px;padding:10px;border-radius:26px}
  nav.tabs button{flex:none;flex-direction:row;justify-content:flex-start;gap:12px;padding:0 14px;min-height:48px;font-size:.9rem;border-radius:18px}
  nav.tabs button svg{width:22px;height:22px}
  nav.tabs .ind{border-radius:18px}
  nav.tabs.many{padding:10px}nav.tabs.many button{font-size:.9rem;padding:0 14px}
  nav.tabs{overflow-y:auto}
  .wrap,#app[data-tab="vender"] .wrap{max-width:1240px;margin-inline:0 auto}
  #app:not([data-tab="vender"]) .wrap{padding-bottom:32px}
  .toast{bottom:32px}
  .vbar{display:none!important}
  .fab{right:32px;bottom:32px}
  #hlist{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:28px}
  #hlist>.empty{grid-column:1/-1}
  #tab-inicio:not([hidden]){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px;align-items:start}
  #tab-inicio>.gsbar,#tab-inicio>#iguide,#tab-inicio>#isumcard,#tab-inicio>.empty{grid-column:1/-1}
  #tab-inicio>.card{margin-top:0}
  #tab-caja:not([hidden]),#tab-agenda:not([hidden]),#tab-fiado:not([hidden]),#tab-cotizar:not([hidden]),#tab-servicio:not([hidden]){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px;align-items:start;padding-top:12px}
  #tab-caja>:not(.card),#tab-agenda>:not(.card),#tab-fiado>:not(.card),#tab-cotizar>:not(.card),#tab-servicio>:not(.card){grid-column:1/-1}
  #tab-caja>.card,#tab-agenda>.card,#tab-fiado>.card,#tab-cotizar>.card,#tab-servicio>.card{margin-block:0 16px}
  #tab-servicio:not([hidden]){grid-template-rows:auto 1fr}
  #tab-servicio>#svform{grid-column:1;grid-row:1/span 2}
  #tab-servicio>#svseg{grid-column:2;grid-row:1;margin-bottom:12px}
  #tab-servicio>.card:not(#svform){grid-column:2;grid-row:2}
  .moregrid{grid-template-columns:repeat(5,minmax(0,1fr))}
  .ajhub:not([hidden]){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .ajhub .ajrow{margin:0}
  .dlg{max-width:560px}
}
@media (min-width:1500px){
  .wrap,#app[data-tab="vender"] .wrap{max-width:1400px}
  #hlist{grid-template-columns:repeat(3,minmax(0,1fr))}
}

/* Celular: las celdas nuevas se ven como siempre */
.thead,.pkd{display:none}
.item.srow{align-items:flex-start;flex-direction:column}
.srow-r{width:100%;justify-content:space-between;flex-wrap:nowrap}
#istock{margin:2px 0 6px;display:grid;grid-template-columns:1fr 1fr;gap:8px}
#istock .chip{cursor:pointer;border:1px solid var(--line);background:var(--field);border-radius:12px;min-height:46px;padding:0 14px;font-size:1rem;display:flex;align-items:center;justify-content:space-between;text-align:left}
#istock .chip i{font-style:normal;font-size:.9rem;color:var(--muted);font-weight:700}
#istock .chip[hidden]{display:none}
#istock .chip.on{background:var(--accent);color:var(--accent-fg);border-color:var(--accent)}
#istock .chip.on i{color:var(--accent-fg)}
@media (min-width:1100px){#istock{grid-template-columns:repeat(5,1fr)}}
/* Botón Filtros y su panel */
.fbtn{display:inline-flex;align-items:center;gap:6px;flex:none;min-height:44px;white-space:nowrap}
.fbtn[hidden],.fpanel[hidden]{display:none}
.fbtn.on{border-color:var(--accent)}
.fcount{background:var(--accent);color:var(--accent-fg);border-radius:999px;min-width:20px;padding:0 6px;font-size:.7rem;line-height:20px;text-align:center}
.fpanel{margin:8px 0 12px;padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.sbar .fpanel{flex:1 1 100%;margin:0}
.fpanel .fl{display:block;font-size:.8rem;color:var(--muted);font-weight:600}
.fpanel .f{margin-top:0}
#ifilt{display:grid;grid-template-columns:1fr 1fr;gap:10px;align-items:end;margin:12px 0 8px}
#ifilt>.f{margin:0;min-width:0}#ifilt>.f>span{font-size:.8rem;color:var(--muted);font-weight:600}
#ifilt .msort{margin:0}
#ifilt .f[hidden]{display:none}
@media (min-width:1100px){#ifilt{grid-template-columns:1fr}}
/* Escritorio: Inventario y Ventas como tabla */
@media (min-width:1100px){
  .sep{display:none}
  .thead{display:grid;align-items:center;column-gap:16px;padding:6px 0 8px;border-bottom:1px solid var(--line);font-size:.7rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
  .thead .r{text-align:right}
  .thead .th{all:unset;cursor:pointer;font:inherit;letter-spacing:inherit;text-transform:inherit;color:inherit;padding:4px 0}
  .thead .th:hover,.thead .th:focus-visible{color:var(--fg)}
  .inv-h,#ilist .item.inv{grid-template-columns:48px minmax(0,1fr) 170px 150px 190px}
  #ilist .item.inv{display:grid;align-items:center;column-gap:16px;padding:12px 0;border-top:0;border-bottom:1px solid var(--line)}
  #ilist .item.inv:hover{background:color-mix(in srgb,var(--fg) 4%,transparent)}
  #ilist .item.inv .main{display:contents}
  #ilist .item.inv>.thumb{grid-column:1;grid-row:1}
  #ilist .item.inv .iid{grid-column:2;grid-row:1;min-width:0}
  #ilist .item.inv .pl{grid-column:3;grid-row:1;display:flex;flex-direction:column;gap:2px}
  #ilist .item.inv .pp{font-size:1rem;font-weight:700;color:var(--fg)}
  #ilist .item.inv .pcost{visibility:hidden;font-size:.8rem;display:flex;flex-wrap:wrap;column-gap:10px}
  #ilist .item.inv:hover .pcost,#ilist .item.inv:focus-within .pcost{visibility:visible}
  #ilist .item.inv .pk{display:none}
  #ilist .item.inv .pkd{display:block}
  #ilist .item.inv .ist{grid-column:4;grid-row:1}
  #ilist .item.inv>.row{grid-column:5;grid-row:1;justify-content:flex-end;flex-wrap:nowrap}
  #ilist .item.inv .main>details,#ilist .item.inv>.costpanel,#ilist .item.inv>div:not(.main):not(.row):not(.thumb){grid-column:1/-1}
  #ilist .item.inv .main>details{grid-row:2}
  /* ventas */
  .sales-h,.item.srow{grid-template-columns:96px minmax(0,1.4fr) 190px 110px 130px 120px 140px}
  .item.srow{display:grid;align-items:center;column-gap:16px;padding:10px 0;border-top:0;border-bottom:1px solid var(--line)}
  .item.srow:hover{background:color-mix(in srgb,var(--fg) 4%,transparent)}
  .item.srow .srow-r,.item.srow .srow-r .main,.item.srow .srow-r .t,.item.srow .srow-r .s{display:contents}
  .item.srow .cn{grid-column:1;grid-row:1;font-weight:700}
  .item.srow .ccol{grid-column:2;grid-row:1;min-width:0}
  .item.srow .cd{grid-column:3;grid-row:1}
  .item.srow .cm{grid-column:4;grid-row:1}
  .item.srow .cs{grid-column:5;grid-row:1}
  .item.srow .csd{display:none}
  .item.srow .ctot{grid-column:6;grid-row:1;text-align:right}
  .item.srow>[data-open]{grid-column:7;grid-row:1;justify-self:end}
  .item.srow>:not(.srow-r):not([data-open]){grid-column:1/-1;grid-row:auto}
  /* v553 · el N° y «Ocultar detalle» en una línea; los botones del detalle en fila a la derecha (antes, cuadros altos en rejilla) */
  .item.srow .cn,.item.srow>[data-open]{white-space:nowrap}
  .item.srow .svgrp>.row.sv-ag{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}
  .item.srow .svgrp>.row.sv-ag>.btn{flex:0 0 auto;flex-direction:row;gap:8px;min-height:42px;padding:8px 18px;font-size:.85rem;white-space:nowrap}
  .item.srow .svgrp>.row.sv-ag>.btn svg{width:18px;height:18px}
  .item.srow .svgrp>.row.sv-ag>.btn.primary{order:1}
}

.cart-scroll,.cart-foot{display:flex;flex-direction:column;gap:16px}
.cart-foot .totals{margin:0}
.cart-scroll>*{flex:none}
@media (min-width:1100px){
  /* tablas genéricas: Clientes, Fiado, Compras */
  .item.trow{display:grid;grid-template-columns:var(--cols);align-items:center;column-gap:16px;padding:10px 0;border-top:0;border-bottom:1px solid var(--line)}
  .item.trow:hover{background:color-mix(in srgb,var(--fg) 4%,transparent)}
  .thead.tcols{grid-template-columns:var(--cols)}
  .item.trow .main,.item.trow .trow-r{display:contents}
  .item.fia .main .s:not(details),.item.pur .main .s:not(details){display:contents}
  .item.trow>:not(.main):not(.trow-r):not(.row):not(.tact):not(.pacts){grid-column:1/-1}
  .cli,.thead.cli-h{--cols:minmax(0,1.2fr) minmax(0,1.3fr) minmax(0,1.6fr) minmax(0,1fr) 170px}
  #clist .thead{--cols:minmax(0,1.2fr) minmax(0,1.3fr) minmax(0,1.6fr) minmax(0,1fr) 170px}
  .item.cli .main>.s:empty{display:block}
  .item.cli>.row{justify-content:flex-end;flex-wrap:nowrap}
  .item.fia,#flist .thead{--cols:minmax(0,1.4fr) minmax(0,1fr) 110px 120px 280px}
  .item.fia{flex-direction:row!important;align-items:center!important}
  .item.fia .tr{text-align:right}
  .item.fia>.tact{justify-content:flex-end;flex-wrap:nowrap}
  .item.fia>.card,.item.fia>.payform{grid-column:1/-1}
  .item.pur,#plist .thead{--cols:minmax(0,1.4fr) 190px 130px minmax(0,1.1fr) 200px}
  #plist .item.pur .pacts{order:1;display:flex;flex-direction:column;gap:6px;align-items:flex-end}
  .item.pur .main>details{order:2;grid-column:1/-1}
  #plist .item.pur .pacts>.row{flex:0 0 auto;flex-wrap:nowrap;justify-content:flex-end}
}

/* celular: Compras y tablas se ven como siempre */
.item.inv .pacts{display:contents}
.item.inv .pacts>.row{flex:1 1 100%;gap:8px}
.item.inv .pacts>.row .btn{flex:1 1 40%;padding-inline:8px}

/* ---------- escritorio: acceso en dos paneles + carga ampliada ---------- */
.amark,.atag,.sp-bar{display:none}
@media (min-width:1100px){
  .auth.pad .pinpad{gap:8px}
    .padk{height:52px;font-size:1.5rem;transition:background .12s,transform .06s}
  .padk:hover{background:var(--accent-soft)}
  .padk:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
  .auth.pad #abtn{min-height:50px}
  .pindots i{width:18px;height:18px}
  .auth.pad .asheet>.credit{padding:0}
  .auth.pad .credit img{height:40px}
  .auth.pad .asheet .linkbtn{padding:4px}

  #splash{gap:20px}
  .sp-logo{width:104px;height:104px;border-radius:28px}
  .sp-name{font-size:2.6rem;margin-bottom:4px}
  .sp-steps{width:300px;font-size:1rem;gap:13px}
  .sp-steps b{width:22px;height:22px}
  .sp-steps li.done b::after{left:5px;top:2px;width:6px;height:10px}
  .sp-bar{display:block;width:300px;height:6px;border-radius:3px;background:color-mix(in srgb,var(--muted) 22%,transparent);overflow:hidden}
  .sp-bar i{display:block;height:100%;width:0;background:var(--accent);border-radius:3px}
  .sp-by{font-size:.9rem;margin-top:10px}
  .sp-cq{width:28px;height:28px;border-radius:8px}
}

/* ---------- escritorio: botón Nueva venta, atajos y ventanas ---------- */
.newsale,.kbhint{display:none}
/* El cuadro de atajos solo cabe en pantallas altas; en pantallas bajas tapa el menú */
@media (min-width:1100px) and (min-height:1000px){
  .kbhint{display:flex;flex-direction:column;gap:7px;position:fixed;z-index:16;left:34px;width:176px;bottom:30px;font-size:.8rem;color:var(--muted)}
  .kbhint div{display:flex;justify-content:space-between;align-items:center}
}
@media (min-width:1100px){
  .fab{display:none!important}
  .head-r{display:flex;align-items:center;gap:12px}
  .newsale{display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:0 16px;font-size:.9rem}
  #app[data-tab="vender"] .newsale{display:none}
  .newsale kbd,.kbhint kbd{font:600 .7rem/1 var(--f-display,inherit);padding:3px 6px;border-radius:6px;border:1px solid color-mix(in srgb,currentColor 35%,transparent);opacity:.8}
  .dlg{width:min(100%,480px)}
  .dlg.scan{width:min(100%,520px)}
}

/* ---------- escritorio: Inicio compacto ---------- */
@media (min-width:1100px){
  #isumcard .tiles{grid-template-columns:repeat(5,minmax(0,1fr))}
  #isumcard .tiles .tile:first-child{grid-column:span 2}
  #isumcard .tiles .tile:last-child:nth-child(even){grid-column:auto}
  #isumcard .tiles .tile:first-child .v{font-size:2.6rem}
  #isumcard .quick{grid-template-columns:repeat(5,minmax(0,1fr))}
  #isumcard .quick .btn:last-child:nth-child(odd){grid-column:auto}
  /* Inicio en pantalla grande: avance y siguiente paso a la izquierda, lista de pasos a la derecha (sin huecos) */
  #iguide:not([hidden]){display:grid;grid-template-columns:minmax(260px,340px) minmax(0,1fr);grid-template-rows:auto auto 1fr auto auto;column-gap:48px;row-gap:16px;align-items:start}
  #iguide>h2{grid-column:1;grid-row:1;margin:0}
  #iguidebody{display:contents}
  #iguidebody>.ajfh{grid-column:1;grid-row:2;flex-direction:column;align-items:flex-start;gap:14px}
  #iguidebody .ajring{width:96px;height:96px}
  #iguidebody .ajring i{width:78px;height:78px;font-size:1.35rem}
  #iguidebody .ajfh b{font-size:1.3rem}
  #iguidebody .ajfh div span{font-size:.9rem;margin-top:4px}
  #iguidebody>.ignext{grid-column:1;grid-row:3;align-self:end;display:flex;flex-direction:column;align-items:flex-start;gap:8px}
  #iguidebody>.ignext>span{color:var(--muted);font-size:.8rem;font-weight:600}
  #iguidebody>.ajchips{grid-column:2;grid-row:1/-1;align-self:center}
  #iguide>#iguidehide{grid-column:1;grid-row:4;justify-self:start;margin:0}
  #iguide>#idemo{grid-column:1;grid-row:5;justify-self:start;margin:0}
}

/* ---------- escritorio: efectos al pasar el mouse ---------- */
@media (min-width:1100px) and (hover:hover){
  nav.tabs button{transition:color .2s,background .22s,transform .22s cubic-bezier(.3,1.4,.5,1),box-shadow .22s}
  nav.tabs button::before{content:"";position:absolute;left:5px;top:50%;width:4px;height:22px;border-radius:3px;background:var(--accent);transform:translateY(-50%) scaleY(0);transition:transform .22s cubic-bezier(.3,1.4,.5,1),opacity .2s;opacity:0}
  nav.tabs button svg{transition:transform .25s cubic-bezier(.3,1.6,.5,1),color .2s}
  nav.tabs button:hover:not([aria-selected="true"]){background:color-mix(in srgb,var(--accent) 11%,transparent);color:var(--fg);transform:translateX(4px)}
  nav.tabs button:hover:not([aria-selected="true"])::before{transform:translateY(-50%) scaleY(1);opacity:1}
  nav.tabs button:hover svg{transform:scale(1.18) rotate(-6deg);color:var(--accent)}
  nav.tabs button:active{transform:scale(.97)}
  nav.tabs button:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
  .newsale,.quick .btn,.avatar{transition:transform .18s cubic-bezier(.3,1.5,.5,1),box-shadow .2s,filter .2s}
  .newsale:hover,.quick .btn:hover{transform:translateY(-2px);box-shadow:0 8px 20px -8px color-mix(in srgb,var(--accent) 60%,transparent);filter:brightness(1.05)}
  .avatar:hover{transform:scale(1.08)}
}

/* ---------- escritorio: Cotizar y Servicio, lista más ancha y filas tipo tabla ---------- */
@media (min-width:1100px){
  #tab-cotizar:not([hidden]),#tab-servicio:not([hidden]){grid-template-columns:minmax(0,5fr) minmax(0,7fr)}
  .item.qrow{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:16px;align-items:center}
  .item.qrow>.row{grid-column:1;min-width:0}
  .item.qrow>[data-qopen]{grid-column:2;grid-row:1;justify-self:end}
  .item.qrow>:not(.row):not([data-qopen]){grid-column:1/-1}
  .item.qrow .num{min-width:110px;text-align:right}
  .item.svrow{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:16px;align-items:center}
  .item.svrow>.main{grid-column:1;min-width:0}
  .item.svrow>[data-svopen]{grid-column:2;grid-row:1;justify-self:end}
  .item.svrow>:not(.main):not([data-svopen]){grid-column:1/-1}
  #qlist .item,#svlist .item{transition:background .18s}
  #qlist .item:hover,#svlist .item:hover{background:color-mix(in srgb,var(--accent) 6%,transparent)}
}

@media (min-width:1100px){
  .thead .expbtn{justify-self:end;white-space:nowrap;text-transform:none;letter-spacing:0;font-size:.8rem;font-weight:700;padding:4px 10px;min-height:30px}
  .thead .th.r{text-align:right}
  .thead .th{transition:color .15s}
}

/* ---------- escritorio: Ajustes con lista a la izquierda y detalle a la derecha ---------- */
@media (min-width:1100px){
  #tab-ajustes:not([hidden]){display:grid;grid-template-columns:280px minmax(0,1fr);gap:0 20px;align-items:start}
  #tab-ajustes>:not(.card):not(.ajhub){grid-column:1/-1}
  #tab-ajustes>.card{grid-column:2;margin-block:12px 4px}
  #tab-ajustes>.ajhub:not([hidden]){grid-column:1;grid-row:span 60;display:flex;flex-direction:column;gap:6px;position:sticky;top:16px;margin-top:12px}
  #tab-ajustes.searching>.card{grid-column:1/-1}
  /* v553 · el título de grupo de las fichas va en la columna derecha; a todo el ancho bajaba las fichas debajo de la lista y la sección se veía vacía */
  #tab-ajustes:not(.searching)>.fglbl{grid-column:2}
  .ajhub .ajrow{min-height:56px;padding:10px 12px;border-radius:14px;border-color:transparent;background:transparent;transition:background .18s,border-color .18s,transform .18s}
  .ajhub .ajrow .ajtx span{display:none}
  .ajhub .ajrow .ajchev{display:none}
  .ajhub .ajrow:hover{background:color-mix(in srgb,var(--accent) 9%,transparent);transform:translateX(3px)}
  .ajhub .ajrow.on{background:var(--accent-soft,rgba(128,128,128,.15));border-color:color-mix(in srgb,var(--accent) 35%,transparent)}
  .ajhub .ajrow.on .ajtx b{color:var(--accent)}
}

/* ---------- celular: ordenar listas y efecto al tocar ---------- */
.msort{display:flex;align-items:flex-end;gap:10px;margin:2px 0 10px}
.msort .f{flex:1;min-width:0;margin:0}
.msort .f span{font-size:.8rem;color:var(--muted);font-weight:600}
.msort .expbtn{flex:none;min-height:44px;white-space:nowrap}
#ilist>.msort .expbtn{display:none}
@media (min-width:1100px){.msort{display:none}}
@media (max-width:1099px){
  nav.tabs button svg{transition:transform .22s cubic-bezier(.3,1.7,.5,1)}
  nav.tabs button:active svg{transform:translateY(-3px) scale(1.18)}
  .quick .btn,.btn.small,.ajrow,.padk{transition:transform .14s ease,background .15s}
  .quick .btn:active,.btn.small:active,.ajrow:active{transform:scale(.96)}
  .moregrid button:active{transform:scale(.95)}
}
@media (prefers-reduced-motion:reduce){nav.tabs button:active svg,.quick .btn:active,.btn.small:active,.ajrow:active{transform:none}}

/* celular: los campos con letra menor de 16px hacen que el iPhone acerque la pantalla al escribir */
@media (max-width:1099px){input,select,textarea,#asearch{font-size:max(16px,1rem)}}

/* código de autorización */
.codebox{text-align:center;letter-spacing:.5em;font-size:max(1.4rem,16px)!important;font-weight:800;font-family:var(--f-display)}
.bigcode{font-family:var(--f-display);font-weight:800;font-size:2.6rem;letter-spacing:.12em;text-align:center;padding:18px 8px;border-radius:var(--r-md);background:var(--accent-soft);color:var(--accent);font-variant-numeric:tabular-nums}
.bigcode.old{opacity:.4;text-decoration:line-through}

/* Menú inferior "Liquid Glass" en celular: vidrio casi transparente y cápsula que amplía lo que hay debajo */
@media (max-width:1099px){
  nav.tabs{
    background:color-mix(in srgb,var(--bg) 30%,transparent);
    -webkit-backdrop-filter:blur(12px) saturate(1.9) brightness(1.04);backdrop-filter:blur(12px) saturate(1.9) brightness(1.04);
    border:1px solid color-mix(in srgb,var(--fg) 16%,transparent);border-radius:34px;
    box-shadow:inset 0 1.5px 0 rgba(255,255,255,.55),inset 0 -1.5px 0 color-mix(in srgb,var(--fg) 10%,transparent),inset 0 0 22px rgba(255,255,255,.07),0 16px 34px -14px rgba(0,0,0,.45)}
  nav.tabs button{text-shadow:0 0 10px color-mix(in srgb,var(--bg) 70%,transparent)}
  nav.tabs .ind{overflow:hidden;background:color-mix(in srgb,var(--surface) 70%,transparent);-webkit-backdrop-filter:none;backdrop-filter:none;
    border:1px solid rgba(255,255,255,.7);border-radius:28px;
    box-shadow:inset 0 1.5px 0 rgba(255,255,255,.9),inset 0 -2px 3px rgba(255,255,255,.35),inset 0 0 0 1px color-mix(in srgb,var(--fg) 6%,transparent),0 10px 20px -8px rgba(0,0,0,.5)}
  nav.tabs .ind::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:none}
  html nav.tabs .ind.drag,html[data-style] nav.tabs .ind.drag{background:color-mix(in srgb,var(--surface) 82%,transparent);-webkit-backdrop-filter:none;backdrop-filter:none}
  nav.tabs .ind.drag{box-shadow:inset 0 1.5px 0 rgba(255,255,255,.95),inset 2px 0 0 rgba(255,60,110,.45),inset -2px 0 0 rgba(40,170,255,.45),inset 0 -2px 3px rgba(255,255,255,.4),0 18px 30px -10px rgba(0,0,0,.55)}
  nav.tabs .mag{position:absolute;left:0;top:0;display:flex;padding:6px;pointer-events:none;color:var(--accent)}
  nav.tabs.many .mag{padding:5px}
  nav.tabs .mag button{position:relative;flex:1 1 0;min-width:0;border:0;background:transparent;border-radius:26px;padding:8px 2px 7px;font-weight:700;font-size:.7rem;color:var(--accent);min-height:52px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;text-shadow:none;transform:scale(1.05)}
  nav.tabs.many .mag button{font-size:.7rem;padding-inline:0}
  nav.tabs .mag button svg{width:22px;height:22px;fill:currentColor;stroke:none;flex-shrink:0}
  nav.tabs .mag button span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  nav.tabs button{color:color-mix(in srgb,var(--fg) 84%,transparent)}
  html nav.tabs:not(.travel) button.under,nav.tabs:not(.travel) button.under{color:transparent!important;text-shadow:none;transform:none}
  nav.tabs:not(.travel) button.under svg{opacity:0}
  html nav.tabs .mag button,nav.tabs .mag button{color:var(--accent)!important;text-shadow:none}
  @media (prefers-reduced-motion:no-preference){
    nav.tabs .mag{transition:translate .5s cubic-bezier(.3,1.3,.5,1)}
    nav.tabs .ind.drag .mag{transition:translate 0s}
  }
}
@media (min-width:1100px){nav.tabs .mag{display:none}}

/* Pulido Liquid Glass (v223): vidrio más firme, borde fino, brillo superior, íconos y texto más marcados.
   La lupa (.mag) lleva los mismos tamaños que los botones para que siga alineada. */
@media (max-width:1099px){
  nav.tabs{background:color-mix(in srgb,var(--bg) 72%,transparent);-webkit-backdrop-filter:blur(40px) saturate(1.8);backdrop-filter:blur(40px) saturate(1.8);border:.5px solid rgba(255,255,255,.5);
    box-shadow:0 8px 32px rgba(0,0,0,.10),0 2px 8px rgba(0,0,0,.06),inset 0 1px 0 rgba(255,255,255,.8),inset 0 -1px 0 rgba(0,0,0,.04);padding:8px 6px}
  :root[data-theme="dark"] nav.tabs{border-color:rgba(255,255,255,.10);box-shadow:0 8px 32px rgba(0,0,0,.4),0 2px 8px rgba(0,0,0,.3),inset 0 1px 0 rgba(255,255,255,.15)}
  @media (prefers-color-scheme:dark){:root:not([data-theme="light"]) nav.tabs{border-color:rgba(255,255,255,.10);box-shadow:0 8px 32px rgba(0,0,0,.4),0 2px 8px rgba(0,0,0,.3),inset 0 1px 0 rgba(255,255,255,.15)}}
  nav.tabs::before{content:"";position:absolute;top:0;left:10%;right:10%;height:1px;background:none;pointer-events:none}
  nav.tabs button,nav.tabs .mag button{font-weight:700;font-size:.7rem;letter-spacing:-.01em;gap:2px}
  nav.tabs.many button,nav.tabs.many .mag button{font-size:.7rem}
  nav.tabs button svg,nav.tabs .mag button svg{width:25px;height:25px;stroke-width:2}
  nav.tabs button[aria-selected="true"] svg,nav.tabs .mag button svg{fill:currentColor;fill-opacity:1}
  nav.tabs .ind{background:color-mix(in srgb,var(--accent) 14%,transparent)}
}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){@media (max-width:1099px){nav.tabs{background:color-mix(in srgb,var(--bg) 95%,transparent)}}}

/* Ventas en espera: ocupa todo el ancho y no cuenta como tarjeta cuando está vacía */
#vholds:empty{display:none}
#vholds .holds{display:grid;gap:12px}
#vholds .hold{display:grid;gap:6px;padding:12px 14px;border:1px solid var(--line);border-radius:14px;background:var(--field)}
#vholds .hold-hd{display:flex;justify-content:space-between;align-items:baseline;gap:10px;font-size:1.02rem}
#vholds .hold-hd b:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#vholds .hold>.hint{margin:0}
#vholds .hold-it{list-style:none;margin:2px 0 4px;padding:0;display:grid;gap:3px;font-size:.9rem}
#vholds .hold-it li{display:flex;justify-content:space-between;gap:10px}
#vholds .hold-it li>span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#vholds .hold-it li.hint{margin:0;display:block}
#vholds .hold-act{display:grid;grid-template-columns:1fr 1fr;gap:10px}
@media (min-width:900px){#app[data-tab="vender"] #tab-vender>#vholds{grid-column:1/-1}}

/* Cantidad a pedir editable en stock bajo */
.lowq{display:flex;align-items:center;gap:6px;font-weight:600;white-space:nowrap}
.lowq input{width:64px;min-height:40px;text-align:center;font-variant-numeric:tabular-nums}

/* Buscador de producto: caja de búsqueda + resultados tocables (el select queda oculto solo como respaldo del valor) */
.psel-h{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none;overflow:hidden}
.pslist{display:flex;flex-direction:column;gap:6px;margin-top:8px}
.pslist:empty{display:none}
.psopt{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:46px;padding:8px 14px;text-align:left;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:inherit;font:inherit;cursor:pointer}
.psopt.on{border-color:var(--accent)}
.psopt .num{color:var(--muted);font-size:.9em;white-space:nowrap}
.pshint.psok{color:var(--accent);font-weight:600}

/* El buscador de producto ocupa todo el ancho; cantidad y demás campos pasan a la línea de abajo, alineados */
.row>.psfield{flex:1 1 100%}

#saparr,#stexts{margin:6px 0 10px}
textarea.autogrow{resize:none;overflow:hidden;min-height:2.6em}
#helpmodal .dlg{width:100%;max-width:560px;height:min(760px,calc(100dvh - 48px));overflow:hidden}
#helpmodal #hhelp{overflow-y:auto;min-height:0;flex:1 1 auto;-webkit-overflow-scrolling:touch}
#helpmodal .hitem{align-items:flex-start}
#helpmodal .hitem .btn{flex:none;align-self:center}
#helpmodal #hcats{flex-wrap:nowrap!important;overflow-x:auto;flex:none;padding-bottom:4px}#helpmodal #hcats .btn{flex:none}
@media (min-width:700px){#helpmodal #hcats{flex-wrap:wrap!important;overflow:visible}}
html[data-style="mostrador"]:not([data-theme="light"]) .auth .linkbtn{color:#4ade80}
/* vidrio solo en la barra de abajo y las ventanas (Mostrador y Color); el resto queda plano y nítido */
html[data-style="mostrador"] nav.tabs{background:color-mix(in srgb,var(--surface) 22%,transparent);-webkit-backdrop-filter:blur(5px) saturate(1.8);backdrop-filter:blur(5px) saturate(1.8)}
html[data-style="mostrador"] .dlg{background:color-mix(in srgb,var(--glass-strong) 30%,transparent);-webkit-backdrop-filter:blur(6px) saturate(1.8);backdrop-filter:blur(6px) saturate(1.8)}
html[data-style="mostrador"] .modal{-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}

/* ventana abierta: el fondo no se desplaza (también en iPhone) */
html.modal-open,html.modal-open body{overflow:hidden;overscroll-behavior:none}
.modal{overscroll-behavior:contain;touch-action:none}
.modal .dlg{touch-action:pan-y;overscroll-behavior:contain}

/* Pantalla de carga: tarjeta de vidrio difuminado sobre resplandores de color */
#splash{background:var(--bg)}
.sp-card{display:flex;flex-direction:column;align-items:center;gap:14px;padding:30px 28px 26px;border-radius:30px;background:color-mix(in srgb,var(--surface) 42%,transparent);-webkit-backdrop-filter:blur(18px) saturate(1.8);backdrop-filter:blur(18px) saturate(1.8);border:1px solid color-mix(in srgb,var(--fg) 12%,transparent);box-shadow:inset 0 1.5px 0 rgba(255,255,255,.35),0 18px 44px -18px rgba(0,0,0,.35)}

/* Pantalla de carga: un paso a la vez, centrado, con puntos de avance */
.sp-card{width:min(280px,78vw);box-sizing:border-box}
.sp-steps{display:grid;justify-items:center;width:100%;height:28px;margin:6px 0 0;font-size:.9rem}
.sp-steps li{grid-area:1/1;justify-content:center;opacity:0;transform:translateY(6px);transition:opacity .25s,transform .25s,color .25s;white-space:nowrap}
.sp-steps li.cur{opacity:1;transform:none;color:var(--fg)}
.sp-dots{display:flex;gap:7px;justify-content:center;padding-top:2px}
.sp-dots i{width:7px;height:7px;border-radius:50%;background:color-mix(in srgb,var(--muted) 35%,transparent);transition:background .25s,transform .25s}
.sp-dots i.on{background:var(--accent);transform:scale(1.15)}
.sp-steps li:not(.cur),.sp-steps li.done:not(.cur),.sp-steps li.on:not(.cur){opacity:0}
.sp-steps li.cur,.sp-steps li.done.cur,.sp-steps li.on.cur{opacity:1}
/* Entrada con PIN / correo: tarjeta de vidrio difuminado sobre resplandores verdes */
@media all{
  body:has(#auth:not([hidden])){background:var(--bg)}
  #auth .auth{background:none}
  #auth .auth .card{background:color-mix(in srgb,var(--surface) 42%,transparent);-webkit-backdrop-filter:blur(18px) saturate(1.8);backdrop-filter:blur(18px) saturate(1.8);border:1px solid color-mix(in srgb,var(--fg) 12%,transparent);border-radius:30px;box-shadow:inset 0 1.5px 0 rgba(255,255,255,.3),0 18px 44px -18px rgba(0,0,0,.35)}
  #auth .auth .padk{background:color-mix(in srgb,var(--field) 55%,transparent);border-color:color-mix(in srgb,var(--fg) 10%,transparent)}
}

/* ===== Superficies "Sólido": colores planos, sin transparencias ni difuminado (opción en Ajustes) ===== */
html:root[data-surface="solido"]{--glass:var(--surface);--glass-strong:var(--surface);--glass-edge:var(--line);--glass-hi:none;--glass-drop:none;--blur:none;--lens:transparent;--blob1:transparent;--blob2:transparent;--blob3:transparent}
html[data-surface="solido"] nav.tabs{background:var(--surface)!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;border:1px solid var(--line)!important}
html[data-surface="solido"] .dlg{background:var(--surface)!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
html[data-surface="solido"] .modal{-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
html[data-surface="solido"] #splash{background:var(--bg)!important}
html[data-surface="solido"] .sp-card{background:var(--surface)!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;border:1px solid var(--line)!important;box-shadow:none!important}
html[data-surface="solido"] body:has(#auth:not([hidden])){background:var(--bg)!important}
html[data-surface="solido"] #auth .auth .card{background:var(--surface)!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;border:1px solid var(--line)!important;box-shadow:none!important}
html[data-surface="solido"] #auth .auth .padk{background:var(--field)!important;border-color:transparent!important}
html[data-surface="solido"] .card,html[data-surface="solido"] .tile,html[data-surface="solido"] .head-r .pill{-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
/* El tipo de letra elegido se respeta también en Mostrador y Color */
.rcfold>summary{cursor:pointer;color:var(--mut);font-size:.9rem;margin:6px 0 8px}
/* Accesorios más vendidos (Vender) */
.qhead{display:flex;align-items:center;gap:8px;margin:6px 0 10px}
.qhead svg{width:20px;height:20px;fill:var(--accent);flex:none}
.qhead b{font-family:var(--f-display);font-size:1rem}
.qhead span{color:var(--muted);font-size:.8rem;margin-left:auto}
.qstrip{display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x proximity;padding:4px 2px 12px;margin:0 -2px;-webkit-overflow-scrolling:touch;scrollbar-width:none}
.qstrip::-webkit-scrollbar{display:none}
.qcard{position:relative;flex:0 0 132px;scroll-snap-align:start;display:flex;flex-direction:column;align-items:stretch;gap:3px;text-align:left;padding:8px;border-radius:var(--r-md);border:1.5px solid var(--line);background:var(--surface);color:var(--fg);font:inherit;cursor:pointer;box-shadow:var(--shadow);transition:transform .12s,border-color .15s,box-shadow .15s}
.qcard:active{transform:scale(.96)}
.qcard .thumb{width:100%;height:100px;border-radius:10px;margin-bottom:4px;object-fit:contain;background:#fff;border:1px solid var(--line);padding:4px;box-sizing:border-box}
.qcard .thumb.ph{font-size:2rem}
.qadd{position:absolute;top:14px;right:14px;width:30px;height:30px;border-radius:50%;background:var(--accent);color:var(--accent-fg);display:flex;align-items:center;justify-content:center;font-weight:800;font-size:1.2rem;line-height:1;box-shadow:0 3px 10px -2px rgba(21,128,61,.55);transition:transform .15s}
.qcard:active .qadd{transform:scale(1.15)}
.qcard.on{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft),var(--shadow)}
.qn{font-size:.9rem;font-weight:600;line-height:1.25;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;min-height:3.75em}
.qp{color:var(--accent);font-weight:800;font-size:.9rem}
.qs{font-size:.7rem;color:var(--muted)}
.qcard:disabled{opacity:.5;cursor:default}
.qcard:disabled .qadd{background:var(--muted)}
.qcard .thumb.ph{background:var(--accent-soft);color:var(--accent);padding:0}
.qrk{position:absolute;top:14px;left:14px;min-width:22px;height:22px;padding:0 6px;border-radius:99px;background:var(--fg);color:var(--bg);font-size:.7rem;font-weight:800;display:flex;align-items:center;justify-content:center;z-index:1}
.qcard:first-child .qrk{background:var(--accent);color:var(--accent-fg)}
/* Pedido sugerido: resumen, pedir a todos los agotados y filas compactas */
.lowsum{background:var(--accent-soft);color:var(--fg);border-radius:var(--r-md);padding:10px 14px;font-size:.9rem}
.lowbulk{display:flex;flex-direction:column;gap:8px}
.lowrow{padding-block:8px}
.lowrow .t{font-size:.9rem}
#lowseg{margin-block:0}
#lowseg button{font-size:.8rem;padding-inline:4px}
#isbar:has(.fpanel:not([hidden])){position:static}
@media (max-width:480px){#ifilt{grid-template-columns:1fr}}

.seg.segw{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;flex:0 0 auto;align-content:start}.seg.segw button{flex:none}
.hasava{position:relative;padding-left:52px;min-height:44px}
.ava{position:absolute;left:0;top:0;width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--accent-soft);color:var(--accent);font-family:var(--f-display);font-weight:800;font-size:1rem;line-height:1;user-select:none}
.ava img{width:100%;height:100%;border-radius:50%;object-fit:cover;display:block}
.avatar img{width:100%;height:100%;border-radius:50%;object-fit:cover;display:block}
.avatar.hasphoto{padding:0;overflow:hidden}
nav.tabs .navwho i.hasphoto{overflow:hidden;padding:0}
nav.tabs .navwho i img{width:100%;height:100%;border-radius:50%;object-fit:cover;display:block}
.photoprev{width:96px;height:96px}.photoprev .ava{position:static;width:96px;height:96px;font-size:2.6rem;overflow:hidden}
.t.tava{display:flex;align-items:center;gap:10px}.t.tava>span:not(.ava){min-width:0;overflow-wrap:anywhere}.t.tava>.ava{position:static;width:32px;height:32px;font-size:.9rem;flex:none}
.supitem .main[data-sview]{cursor:pointer}.supitem .main[data-sview]:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:8px}
.supitem{flex-wrap:wrap}.supitem .main{flex:1 1 100%}.supitem .sacts{display:flex;gap:8px;flex-wrap:wrap}
.supprof .row{flex-wrap:wrap}
.seg.segw4{grid-template-columns:repeat(4,1fr)}
.chip.auto{border-style:dashed;opacity:.85}
.item.off .t{opacity:.6}
.cptabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
.cptabs button{white-space:nowrap}
.cpdates{flex-wrap:nowrap}.cpdates input{min-width:0;width:100%}
.cpdates .f{min-width:0}
.cpact{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:8px;margin:10px 0 8px}
.cpact .btn{min-height:46px;font-size:1rem}
.cpact3{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:10px}
.cpact3 .btn{justify-content:center;text-align:center}
.cpfoot{margin-top:6px;padding-top:12px;border-top:1px solid var(--line);display:flex;justify-content:center}

.odot{display:inline-block;width:9px;height:9px;border-radius:50%;background:var(--ok);margin-right:6px;vertical-align:middle}

/* Animaciones reducidas (Pantalla y accesibilidad): se aplica además del ajuste del sistema */
html[data-calm] *,html[data-calm] *::before,html[data-calm] *::after{animation-duration:.001ms!important;animation-delay:0s!important;animation-iteration-count:1!important;transition-duration:.001ms!important;transition-delay:0s!important;scroll-behavior:auto!important}

/* Ventanas inferiores en celular: barrita de agarre (el gesto de cerrar arrastrando está en app.js) */
.dlg>.grab{display:none}
@media (max-width:520px){
  .dlg,.dlg.scan{position:relative;padding-top:30px}
  .dlg>.grab{display:block;position:absolute;top:0;left:0;right:0;height:30px;touch-action:none;cursor:grab;z-index:2}
  .dlg>.grab::before{content:"";position:absolute;top:9px;left:50%;width:42px;height:5px;margin-left:-21px;border-radius:99px;background:color-mix(in srgb,var(--muted) 55%,transparent)}
}

/* Descuento rápido y check de venta registrada */
.dchips{display:flex;gap:8px;flex-wrap:wrap}
.dchips[hidden]{display:none}
.dchips button{flex:1 1 0;min-width:52px;min-height:44px;padding:0 6px;border-radius:99px;border:1px solid var(--glass-edge);background:var(--field);color:var(--fg);font-weight:700;cursor:pointer}
.dchips button.on{background:var(--accent-soft);color:var(--accent);border-color:var(--accent)}
.okmark{width:30px;height:30px;flex:none;border-radius:50%;background:var(--accent);display:inline-grid;place-items:center}
.okmark svg{width:18px;height:18px;fill:none;stroke:var(--accent-fg);stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
#vdone .row:has(>.okmark){flex-wrap:nowrap;align-items:center;gap:10px}
@media (prefers-reduced-motion:no-preference){
  html:not([data-calm]) .okmark{animation:okpop .38s cubic-bezier(.3,1.6,.5,1)}
  html:not([data-calm]) .okmark svg path{stroke-dasharray:24;stroke-dashoffset:24;animation:okdraw .32s .16s ease-out forwards}
  @keyframes okpop{from{transform:scale(.3);opacity:0}}
  @keyframes okdraw{to{stroke-dashoffset:0}}
}

/* Aviso de conexión */
.netbar{position:sticky;top:calc(6px + var(--sat));z-index:45;max-width:720px;margin:6px auto 0;padding:10px 14px;border-radius:16px;font-weight:700;font-size:.9rem;text-align:center;line-height:1.3;box-shadow:0 8px 24px -10px rgba(0,0,0,.35)}
.netbar[hidden]{display:none}
.netbar.off{background:var(--bad-soft);color:var(--bad);border:1px solid color-mix(in srgb,var(--bad) 35%,transparent)}
.netbar.ok{background:var(--ok-soft);color:var(--ok);border:1px solid color-mix(in srgb,var(--ok) 35%,transparent)}
.netbar.upd{display:flex;align-items:center;gap:10px;text-align:left;background:var(--surface);color:var(--fg);border:1px solid color-mix(in srgb,var(--accent) 45%,transparent)}
.netbar.upd[hidden]{display:none}
.netbar.upd .grow{flex:1}
.netbar.upd .btn{flex:none}

/* Accesibilidad móvil: zonas de toque de al menos 44px en pantallas táctiles (el escritorio no cambia) */
@media (pointer:coarse){
  .btn.small{min-height:44px}
  .btn.small.x{min-width:44px}
  label.chk{min-height:44px}
  details.more>summary,.card.fold>h2{min-height:44px;display:flex;align-items:center}
  details.more>summary{padding-block:0}
  #invseg button,.seg button{min-height:44px}
  .linkbtn{min-height:44px;display:inline-flex;align-items:center}
  .vgroup .vopt{min-height:44px}
  .chip.vopt{min-height:44px}
  details:not(.more)>summary:not(.btn){padding-block:11px}
}

/* Cantidad escribible en el carrito */
.qty input.qin{width:46px;min-width:0;min-height:34px;padding:0;text-align:center;background:transparent;border:0;box-shadow:none;border-radius:8px;font-weight:600}
.qty input.qin:focus{background:var(--glass-strong);box-shadow:0 0 0 2px var(--accent)}

/* Cápsula ovalada tipo iOS en la barra inferior (celular) */
@media (max-width:1099px){html nav.tabs .ind,html[data-style] nav.tabs .ind,nav.tabs .ind::after{border-radius:999px}}

/* Margen lateral para que la cápsula ovalada quepa centrada también en la primera y la última pestaña */
@media (max-width:1099px){nav.tabs,nav.tabs.many{padding-inline:16px}nav.tabs .mag,nav.tabs.many .mag{padding-inline:16px}}
@media (max-width:1099px){nav.tabs .mag button{transform:none}}
@media (max-width:1099px){nav.tabs .mag button{opacity:0;transition:opacity .15s}nav.tabs .mag button.on{opacity:1}}

/* Cambio de pestaña suave: el icono que sale se desvanece mientras entra el siguiente dentro de la gota */
@media (max-width:1099px) and (prefers-reduced-motion:no-preference){
  html:not([data-calm]) nav.tabs .mag{transition:translate .5s cubic-bezier(.3,1.3,.5,1),scale .45s cubic-bezier(.3,1.1,.5,1),transform-origin .5s cubic-bezier(.3,1.3,.5,1)}
  html:not([data-calm]) nav.tabs .ind.drag .mag{transition:translate 0s,scale .3s cubic-bezier(.3,1.1,.5,1),transform-origin 0s}
  html:not([data-calm]) nav.tabs .mag button{transition:opacity .42s ease-in-out}
  html:not([data-calm]) nav.tabs>button{transition:color .42s ease-in-out,transform .25s ease}
  html:not([data-calm]) nav.tabs>button svg{transition:opacity .42s ease-in-out}
}
@media (max-width:1099px) and (prefers-reduced-motion:no-preference){html:not([data-calm]) nav.tabs .ind{transition:translate .55s cubic-bezier(.25,1.15,.4,1),scale .5s cubic-bezier(.3,1.1,.5,1),width .5s cubic-bezier(.25,1.1,.4,1),opacity .2s,background .25s,box-shadow .25s}}
/* Mientras la gota viaja se ven los iconos reales (sin copia dentro del lente) y al llegar se funden */
@media (max-width:1099px){nav.tabs.travel .mag button,nav.tabs.travel .mag button.on{opacity:0}nav.tabs.lift button[aria-selected="true"]:not(.hot){color:var(--muted)}}
/* Al arrastrar, la gota sigue el dedo sin retraso */
@media (max-width:1099px){html:not([data-calm]) nav.tabs .ind.drag{transition:translate 0s,scale .3s cubic-bezier(.3,1.5,.5,1),width 0s,opacity .2s,background .25s,box-shadow .25s}}

/* Aviso de «trabajando» con ruedita */
.toast.working{display:flex;align-items:center;gap:10px}
.toast .spin{width:16px;height:16px;border-radius:50%;border:2px solid currentColor;border-right-color:transparent;flex:none;animation:tspin .8s linear infinite}
@keyframes tspin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.toast .spin{animation-duration:2.4s}}

/* Aviso en vivo en los campos */
input[aria-invalid="true"],select[aria-invalid="true"]{border-color:var(--bad)!important;box-shadow:0 0 0 3px var(--bad-soft)!important}
.fielderr{display:block;color:var(--bad);font-size:.8rem;font-weight:600;margin-top:4px}

/* Sugerencias de clientes en Vender */
.sugwrap{position:relative}
.sug{position:absolute;left:0;right:0;top:100%;z-index:30;margin-top:4px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-md);box-shadow:0 14px 30px -12px rgba(0,0,0,.35);overflow:hidden}
.sug button{display:flex;align-items:center;gap:10px;width:100%;min-height:46px;padding:8px 12px;border:0;background:transparent;color:var(--fg);text-align:left;font:inherit;cursor:pointer}
.sug button+button{border-top:1px solid var(--line)}
.sug button:hover,.sug button:focus-visible{background:var(--accent-soft)}
.sug .av{flex:none;width:30px;height:30px;border-radius:50%;background:var(--accent);color:var(--accent-ink,#fff);display:grid;place-items:center;font-weight:700;font-size:.8rem}
.sug .sn{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}
.sug .sp{flex:none;color:var(--muted);font-size:.8rem}

/* Foto en grande */
#ilist img.thumb,#pphoto img.thumb,#pcatgal img.thumb{cursor:zoom-in}
.lbx{position:fixed;inset:0;z-index:200;background:rgba(0,0,0,.88);display:grid;place-items:center;padding:calc(var(--sat) + 16px) 16px calc(env(safe-area-inset-bottom,0px) + 16px);overflow:auto}
.lbx img{max-width:100%;max-height:82dvh;object-fit:contain;border-radius:12px;background:#fff;touch-action:pinch-zoom;transition:transform .25s ease}
.lbx img.zoom{transform:scale(2.4);cursor:zoom-out}
.lbx-x{position:fixed;top:calc(var(--sat) + 12px);right:14px;width:44px;height:44px;border-radius:50%;border:1px solid rgba(255,255,255,.4);background:rgba(0,0,0,.55);color:#fff;font-size:1.5rem;line-height:1;cursor:pointer}
@media (prefers-reduced-motion:reduce){.lbx img{transition:none}}

/* Rebote del total al agregar un producto */
@media (prefers-reduced-motion:no-preference){html:not([data-calm]) .bump{animation:numbump .34s cubic-bezier(.3,1.5,.5,1)}}
@keyframes numbump{0%{transform:scale(1)}40%{transform:scale(1.14)}100%{transform:scale(1)}}
/* v710 · punto 17: miniatura con la foto del producto que viaja al carrito, y saltico del carrito al llegar */
.flyThumb{position:fixed;border-radius:14px;overflow:hidden;background:var(--field,#fff);box-shadow:0 8px 22px rgba(0,0,0,.28),0 0 0 2px color-mix(in srgb,var(--accent) 55%,transparent);pointer-events:none;z-index:9999;will-change:transform,opacity;transform-origin:center}
.flyThumb img{width:100%;height:100%;object-fit:cover;display:block}
.flyThumb.noimg{display:grid;place-items:center;color:var(--accent)}.flyThumb.noimg svg{width:58%;height:58%}
@media (prefers-reduced-motion:no-preference){html:not([data-calm]) .cartHit{animation:cartHit .4s cubic-bezier(.3,1.5,.5,1)}}
@keyframes cartHit{0%{transform:scale(1)}40%{transform:scale(1.12)}100%{transform:scale(1)}}
/* Mini ilustraciones en los estados vacíos (rellenas) */
.empty::before{content:"";display:block;width:44px;height:44px;margin:0 auto 10px;background:var(--accent);opacity:.8;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M3.5 9.5 4.8 4.6A1 1 0 0 1 5.8 4h12.4a1 1 0 0 1 1 .6l1.3 4.9a2.8 2.8 0 0 1-1.4 2.6V20a1 1 0 0 1-1 1H5.9a1 1 0 0 1-1-1v-7.9a2.8 2.8 0 0 1-1.4-2.6ZM10 21v-5h4v5Z'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M3.5 9.5 4.8 4.6A1 1 0 0 1 5.8 4h12.4a1 1 0 0 1 1 .6l1.3 4.9a2.8 2.8 0 0 1-1.4 2.6V20a1 1 0 0 1-1 1H5.9a1 1 0 0 1-1-1v-7.9a2.8 2.8 0 0 1-1.4-2.6ZM10 21v-5h4v5Z'/%3E%3C/svg%3E") center/contain no-repeat}
#ilist .empty::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M12 2.5 3.5 7.2 12 12l8.5-4.8L12 2.5ZM3.5 8.8v8L11 21v-8.1L3.5 8.8ZM20.5 8.8 13 12.9V21l7.5-4.2v-8Z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M12 2.5 3.5 7.2 12 12l8.5-4.8L12 2.5ZM3.5 8.8v8L11 21v-8.1L3.5 8.8ZM20.5 8.8 13 12.9V21l7.5-4.2v-8Z'/%3E%3C/svg%3E")}
#slist .empty::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M6 2.5h12a1 1 0 0 1 1 1v18.2l-3-2-3 2-3-2-3 2V3.5a1 1 0 0 1 1-1ZM9 7.2h6v1.6H9ZM9 11.2h6v1.6H9Z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M6 2.5h12a1 1 0 0 1 1 1v18.2l-3-2-3 2-3-2-3 2V3.5a1 1 0 0 1 1-1ZM9 7.2h6v1.6H9ZM9 11.2h6v1.6H9Z'/%3E%3C/svg%3E")}
#clist .empty::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M5.6 8a3.4 3.4 0 1 0 6.8 0 3.4 3.4 0 0 0-6.8 0ZM2.5 20c0-3.6 2.9-6 6.5-6s6.5 2.4 6.5 6v.3a.7.7 0 0 1-.7.7H3.2a.7.7 0 0 1-.7-.7ZM14.4 9a2.6 2.6 0 1 0 5.2 0 2.6 2.6 0 0 0-5.2 0ZM16.5 14.2c2.6.2 5 1.8 5 4.8v.3a.7.7 0 0 1-.7.7h-3.3c.4-.7.5-1.5.5-2.4 0-1.2-.4-2.4-1.5-3.4Z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M5.6 8a3.4 3.4 0 1 0 6.8 0 3.4 3.4 0 0 0-6.8 0ZM2.5 20c0-3.6 2.9-6 6.5-6s6.5 2.4 6.5 6v.3a.7.7 0 0 1-.7.7H3.2a.7.7 0 0 1-.7-.7ZM14.4 9a2.6 2.6 0 1 0 5.2 0 2.6 2.6 0 0 0-5.2 0ZM16.5 14.2c2.6.2 5 1.8 5 4.8v.3a.7.7 0 0 1-.7.7h-3.3c.4-.7.5-1.5.5-2.4 0-1.2-.4-2.4-1.5-3.4Z'/%3E%3C/svg%3E")}
/* Deslizar para actualizar */
#ptr{position:fixed;left:50%;top:calc(var(--sat) + 8px);z-index:90;width:38px;height:38px;border-radius:50%;background:var(--surface);border:1px solid var(--line);box-shadow:0 8px 20px -8px rgba(0,0,0,.4);display:grid;place-items:center;opacity:0;transform:translate(-50%,-60px);pointer-events:none;transition:opacity .15s}
#ptr .ptr-i{width:18px;height:18px;border-radius:50%;border:2.5px solid var(--muted);border-right-color:transparent;transition:border-color .15s}
#ptr.go .ptr-i,#ptr.spin .ptr-i{border-color:var(--accent);border-right-color:transparent}
#ptr.spin .ptr-i{animation:tspin .8s linear infinite}
@media (display-mode:standalone){html{overscroll-behavior-y:none}}
.empty.more::before{display:none}
.sug{right:auto;min-width:min(300px,calc(100vw - 32px))}
.sug .sn{min-width:70px}

.supfirst{display:flex;flex-direction:column;gap:6px;align-items:flex-start;padding:14px;margin:8px 0;border:1px dashed var(--accent);border-radius:var(--r-md);background:var(--accent-soft)}
.supfirst span{color:var(--muted);font-size:.9rem}

/* ===== Ajustes (celular): cabecera, guía y grupos de vidrio. En escritorio no cambia nada ===== */
.ajh1,.ajid,.ajfirst,.ajlbl{display:none}
.ajgw,.ajgrp{display:contents}
@media (max-width:1099px){
  #tab-ajustes .ajhub:not([hidden]){display:flex;flex-direction:column;gap:14px;margin-top:8px;position:relative;isolation:isolate}
  #tab-ajustes .ajhub::before{content:"";position:absolute;inset:0 0 auto 0;height:380px;z-index:-1;pointer-events:none;
    background:none}
  .ajh1:not([hidden]){display:block;font-family:var(--f-display);font-weight:800;font-size:2rem;letter-spacing:-.02em;margin:4px 4px 0}
  .ajid,.ajfirst,.ajgrp{background:var(--glass);-webkit-backdrop-filter:var(--blur);backdrop-filter:var(--blur);border:1px solid var(--glass-edge);border-radius:24px;box-shadow:var(--glass-hi),var(--glass-drop)}
  .ajid:not([hidden]){display:flex;align-items:center;gap:14px;padding:14px}
  .ajlogo{flex:none;width:54px;height:54px;border-radius:18px;object-fit:cover;background:var(--surface)}
  .ajlogo.ini{display:grid;place-items:center;color:var(--accent-ink,#fff);font-weight:800;font-size:1.2rem;background:var(--accent);box-shadow:inset 0 1px 0 rgba(255,255,255,.4)}
  .ajidt{min-width:0}.ajidt b{display:block;font-size:1rem;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ajidt span{display:block;color:var(--muted);font-size:.8rem;margin-top:2px}
  .ajfirst:not([hidden]){display:flex;flex-direction:column;gap:12px;padding:16px}
  .ajfh{display:flex;align-items:center;gap:14px}
  .ajfh b{display:block;font-size:1rem;font-weight:700}.ajfh div span{display:block;color:var(--muted);font-size:.8rem;margin-top:2px}
  .ajring{flex:none;width:58px;height:58px;border-radius:50%;background:conic-gradient(var(--accent) var(--p,0%),var(--field) 0);display:grid;place-items:center}
  .ajring i{font-style:normal;width:46px;height:46px;border-radius:50%;background:var(--surface);display:grid;place-items:center;font-weight:800;font-size:.9rem}
  .ajchips{display:flex;flex-direction:column;gap:8px}
  .ajchip{display:flex;align-items:center;gap:10px;width:100%;padding:10px 12px;border:0;border-radius:999px;background:var(--field);color:var(--fg);font:inherit;font-weight:600;text-align:left;min-height:44px}
  button.ajchip{cursor:pointer}
  .ajchip .o{flex:none;width:22px;height:22px;border-radius:50%;display:grid;place-items:center;font-size:.8rem;font-weight:800;border:2px solid var(--muted)}
  .ajchip.ok{color:var(--muted)}.ajchip.ok .o{background:var(--accent);border-color:var(--accent);color:var(--accent-ink,#fff)}
  .ajchip em{margin-left:auto;font-style:normal;color:var(--accent);font-weight:700}
.ignext{display:none}
  .ajhide{align-self:flex-start;border:0;background:transparent;color:var(--muted);font:inherit;font-size:.8rem;text-decoration:underline;padding:4px 2px;cursor:pointer}
  .ajlbl{display:block;font-weight:700;font-size:.7rem;letter-spacing:.07em;text-transform:uppercase;color:var(--muted);margin:2px 8px 6px}
  .ajgw{display:block}.ajgw[hidden]{display:none}
  .ajgrp{display:block;padding:4px 0;overflow:hidden}
  #tab-ajustes .ajgrp .ajrow{position:relative;border:0;border-radius:18px;background:transparent;margin:0 6px;width:calc(100% - 12px);padding:11px 8px;min-height:64px;transition:background .15s}
  #tab-ajustes .ajgrp .ajrow:active{background:color-mix(in srgb,var(--accent) 14%,transparent)}
  #tab-ajustes .ajgrp .ajrow+.ajrow::before{content:"";position:absolute;top:0;left:56px;right:8px;border-top:1px solid var(--glass-edge)}
  /* Íconos como los de la barra inferior: rellenos y neutros; solo se tiñen al seleccionar */
  .ajgrp .ajic{width:32px;height:32px;border-radius:0;background:transparent;box-shadow:none;color:color-mix(in srgb,var(--fg) 70%,transparent);transition:color .18s}
  .ajgrp .ajic svg{width:27px;height:27px}
  #tab-ajustes .ajgrp .ajrow:active .ajic,#tab-ajustes .ajgrp .ajrow:focus-visible .ajic,#tab-ajustes .ajgrp .ajrow.on .ajic{color:var(--accent)}
  .ajgrp .ajtx b{font-weight:700}
  #tab-ajustes .ajgrp .ajrow[data-ajs="cuid"]:active .ajic,#tab-ajustes .ajgrp .ajrow[data-ajs="cuid"]:focus-visible .ajic{color:#e5484d}
  .ajgrp .ajrow[data-ajs="cuid"] .ajtx b{color:#e5484d}
}

/* En Ajustes (celular) el botón de perfil sobra: todo lo de la cuenta está en Ajustes */
@media (max-width:1099px){#app[data-tab="ajustes"] #avatar{display:none}}

/* ===== Liquid Glass: botón de perfil, su menú, «Más secciones» y la guía de Inicio ===== */
.avatar{background:var(--glass);-webkit-backdrop-filter:var(--blur);backdrop-filter:var(--blur);border:1px solid var(--glass-edge);color:var(--accent);box-shadow:var(--glass-hi),var(--glass-drop)}
.umenu{background:var(--glass);-webkit-backdrop-filter:var(--blur);backdrop-filter:var(--blur);border:1px solid var(--glass-edge);border-radius:22px;box-shadow:var(--glass-hi),var(--glass-drop);padding:6px;min-width:240px}
.uwho{border-bottom:1px solid var(--glass-edge)}
.uitem{display:flex;align-items:center;gap:12px;border-radius:14px;transition:background .15s}
.uitem svg.ui{flex:none;width:22px;height:22px;fill:currentColor;color:color-mix(in srgb,var(--fg) 70%,transparent);transition:color .18s}
.uitem:hover,.uitem:focus-visible,.uitem:active{background:color-mix(in srgb,var(--accent) 12%,transparent)}
.uitem:hover svg.ui,.uitem:focus-visible svg.ui,.uitem:active svg.ui{color:var(--accent)}
.uitem.out:hover svg.ui,.uitem.out:focus-visible svg.ui,.uitem.out:active svg.ui{color:var(--bad)}
.morebtn{box-shadow:var(--glass-hi),var(--glass-drop);-webkit-backdrop-filter:var(--blur);backdrop-filter:var(--blur)}
.morebtn svg{color:color-mix(in srgb,var(--fg) 70%,transparent);transition:color .18s}
.morebtn:active svg,.morebtn:focus-visible svg,.morebtn.on svg{color:var(--accent)}
.morebtn.on{color:var(--fg);border-color:var(--glass-edge);background:color-mix(in srgb,var(--accent) 12%,var(--glass))}
/* Anillo y cápsulas (también en «Empieza por aquí» de Inicio) */
.ajfh{display:flex;align-items:center;gap:14px}
.ajfh b{display:block;font-size:1rem;font-weight:700}.ajfh div span{display:block;color:var(--muted);font-size:.8rem;margin-top:2px}
.ajring{flex:none;width:58px;height:58px;border-radius:50%;background:conic-gradient(var(--accent) var(--p,0%),var(--field) 0);display:grid;place-items:center}
.ajring i{font-style:normal;width:46px;height:46px;border-radius:50%;background:var(--surface);display:grid;place-items:center;font-weight:800;font-size:.9rem}
.ajchips{display:flex;flex-direction:column;gap:8px}
.ajchip{display:flex;align-items:center;gap:10px;width:100%;padding:10px 12px;border:0;border-radius:999px;background:var(--field);color:var(--fg);font:inherit;font-weight:600;text-align:left;min-height:44px}
button.ajchip{cursor:pointer}
.ajchip .o{flex:none;width:22px;height:22px;border-radius:50%;display:grid;place-items:center;font-size:.8rem;font-weight:800;border:2px solid var(--muted)}
.ajchip.ok{color:var(--muted)}.ajchip.ok .o{background:var(--accent);border-color:var(--accent);color:var(--accent-ink,#fff)}
.ajchip em{margin-left:auto;font-style:normal;color:var(--accent);font-weight:700}
@media (max-width:1099px){
  #iguide{background:var(--glass);-webkit-backdrop-filter:var(--blur);backdrop-filter:var(--blur);border:1px solid var(--glass-edge);border-radius:24px;box-shadow:var(--glass-hi),var(--glass-drop);padding:16px}
  #iguide>h2{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  #iguidebody{display:flex;flex-direction:column;gap:12px;margin-bottom:10px}
}

/* Botón de perfil: vidrio claro estilo iOS (translúcido, borde fino, sombra suave) */
.avatar{position:relative;overflow:visible;
  background:rgba(255,255,255,min(1,max(.1,calc(.62*var(--gk)))));
  -webkit-backdrop-filter:blur(20px) saturate(1.8);backdrop-filter:blur(20px) saturate(1.8);
  border:1px solid rgba(0,0,0,.11);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.7),inset 0 1px 6px rgba(255,255,255,.9),0 6px 18px -4px rgba(0,0,0,.14),0 1px 3px rgba(0,0,0,.06);
  text-shadow:none}
.avatar::before{display:none}
.avatar:active{transform:scale(.94)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .avatar{background:rgba(255,255,255,min(1,max(.1,calc(.10*var(--gk)))));border-color:rgba(255,255,255,.20);box-shadow:inset 0 0 0 1px rgba(255,255,255,.05),inset 0 1px 6px rgba(255,255,255,.12),0 6px 18px -4px rgba(0,0,0,.55),0 1px 3px rgba(0,0,0,.3)}}
:root[data-theme="dark"] .avatar{background:rgba(255,255,255,min(1,max(.1,calc(.10*var(--gk)))));border-color:rgba(255,255,255,.20);box-shadow:inset 0 0 0 1px rgba(255,255,255,.05),inset 0 1px 6px rgba(255,255,255,.12),0 6px 18px -4px rgba(0,0,0,.55),0 1px 3px rgba(0,0,0,.3)}
.seg.rper button{white-space:normal;line-height:1.15;font-size:.8rem;padding:8px 2px}

/* ===== Liquid Glass en todo el sistema =====
   El estilo «Mostrador» ya no apaga el vidrio: lo controla solo Ajustes → Superficies (Vidrio / Sólido).
   El estilo «Color» conserva su identidad plana. */
html:root[data-style="mostrador"]:not([data-surface="solido"]){--blur:blur(22px) saturate(1.8);--lens:rgba(255,255,255,.12);--blob1:rgba(34,197,94,.16);--blob2:rgba(120,135,128,.12);--blob3:rgba(21,128,61,.10)}
html:root[data-style="mostrador"]:not([data-theme="light"]):not([data-surface="solido"]){--glass:rgba(30,37,34,min(1,max(.1,calc(.58*var(--gk)))));--glass-strong:rgba(36,44,41,min(1,max(.4,calc(.74*var(--gk)))));--glass-edge:rgba(255,255,255,.15);--glass-hi:inset 0 1.5px 0 rgba(255,255,255,.20),inset 0 -1px 0 rgba(255,255,255,.05),inset 0 0 14px rgba(255,255,255,.04);--glass-drop:0 1px 2px rgba(0,0,0,.3),0 14px 30px -12px rgba(0,0,0,.55);--shadow:0 10px 30px -12px rgba(0,0,0,.55)}
html:root[data-style="mostrador"][data-theme="light"]:not([data-surface="solido"]){--glass:rgba(255,255,255,min(1,max(.1,calc(.66*var(--gk)))));--glass-strong:rgba(255,255,255,min(1,max(.4,calc(.82*var(--gk)))));--glass-edge:rgba(0,0,0,.09);--glass-hi:inset 0 0 0 1px rgba(255,255,255,.7),inset 0 1.5px 6px rgba(255,255,255,.95);--glass-drop:0 1px 2px rgba(0,0,0,.05),0 12px 28px -12px rgba(0,0,0,.18);--shadow:0 10px 28px -12px rgba(0,0,0,.16)}
html:root[data-style="mostrador"]:not([data-surface="solido"]) .card,html:root[data-style="mostrador"]:not([data-surface="solido"]) .tile{border-color:var(--glass-edge)}
html:root[data-style="mostrador"]:not([data-surface="solido"]) .btn{background:var(--glass-strong);box-shadow:var(--glass-hi),0 2px 8px -2px rgba(0,0,0,.14)}
html:root[data-style="mostrador"]:not([data-surface="solido"]) .btn.primary{background:var(--accent);box-shadow:inset 0 1.5px 0 rgba(255,255,255,.4),0 8px 18px -8px color-mix(in srgb,var(--accent) 70%,transparent)}
html:root[data-style="mostrador"]:not([data-surface="solido"]) nav.tabs{background:var(--glass-strong);border:1px solid var(--glass-edge);-webkit-backdrop-filter:var(--blur);backdrop-filter:var(--blur);box-shadow:var(--glass-hi),var(--glass-drop)}

/* Botones secundarios: cápsula de vidrio */
html:not([data-surface="solido"]):not([data-style="ninguno"]) .btn:not(.primary):not(.danger):not(.x){border-radius:999px;-webkit-backdrop-filter:var(--blur);backdrop-filter:var(--blur)}
html:not([data-surface="solido"]):not([data-style="ninguno"]) .btn:not(.primary):not(.danger):active{transform:scale(.96)}

/* Botón flotante «+»: vidrio claro como el botón de perfil, con el + en verde */
html:not([data-surface="solido"]):not([data-style="ninguno"]) .fab{background:rgba(255,255,255,min(1,max(.1,calc(.62*var(--gk)))));-webkit-backdrop-filter:blur(20px) saturate(1.8);backdrop-filter:blur(20px) saturate(1.8);border:1px solid rgba(0,0,0,.11);color:var(--accent);text-shadow:none;box-shadow:inset 0 0 0 1px rgba(255,255,255,.7),inset 0 1px 6px rgba(255,255,255,.9),0 8px 22px -6px rgba(0,0,0,.18),0 1px 3px rgba(0,0,0,.08)}
@media (prefers-color-scheme:dark){html:root:not([data-theme="light"]):not([data-surface="solido"]):not([data-style="ninguno"]) .fab{background:rgba(255,255,255,min(1,max(.1,calc(.10*var(--gk)))));border-color:rgba(255,255,255,.20);box-shadow:inset 0 0 0 1px rgba(255,255,255,.05),inset 0 1px 6px rgba(255,255,255,.12),0 8px 22px -6px rgba(0,0,0,.55),0 1px 3px rgba(0,0,0,.3)}}
html:root[data-theme="dark"]:not([data-surface="solido"]):not([data-style="ninguno"]) .fab{background:rgba(255,255,255,min(1,max(.1,calc(.10*var(--gk)))));border-color:rgba(255,255,255,.20);box-shadow:inset 0 0 0 1px rgba(255,255,255,.05),inset 0 1px 6px rgba(255,255,255,.12),0 8px 22px -6px rgba(0,0,0,.55),0 1px 3px rgba(0,0,0,.3)}
html:not([data-surface="solido"]):not([data-style="ninguno"]) .fab:active{transform:scale(.94)}

/* Campos: fondo translúcido y borde fino */
html:not([data-surface="solido"]):not([data-style="ninguno"]) input:not([type=checkbox]):not([type=radio]):not([type=range]),html:not([data-surface="solido"]):not([data-style="ninguno"]) select,html:not([data-surface="solido"]):not([data-style="ninguno"]) textarea{background:color-mix(in srgb,var(--field) 55%,transparent);border-color:var(--glass-edge);box-shadow:inset 0 1px 3px rgba(0,0,0,.10),0 1px 0 rgba(255,255,255,.04)}

/* Botón de perfil: solo con vidrio activo */
html[data-surface="solido"] .avatar{background:var(--surface);-webkit-backdrop-filter:none;backdrop-filter:none;border:1px solid var(--line);box-shadow:none}

/* Botones verdes y rojos: también cápsula, igual que los de vidrio */
html:not([data-surface="solido"]):not([data-style="ninguno"]) .btn.primary,html:not([data-surface="solido"]):not([data-style="ninguno"]) .btn.danger{border-radius:999px}

/* Deslizador de transparencia del vidrio (Ajustes → Superficies) */
.gslide{display:flex;align-items:center;gap:10px;font-size:.8rem;color:var(--muted);font-weight:700}
.gslide input[type=range]{flex:1;min-width:0;width:auto;padding:0;height:28px;background:transparent;border:0;box-shadow:none;accent-color:var(--accent)}
.gslide span{white-space:nowrap}

/* Barra verde del carrito: el botón Cobrar siempre blanco y legible sobre el verde */
html:not([data-style="ninguno"]) .vbar .btn{background:#fff!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;border-color:transparent!important;box-shadow:0 1px 3px rgba(0,0,0,.22)!important}

/* Teclado en pantalla: las ventanas se levantan sobre el teclado y se pueden desplazar */
.modal{bottom:var(--kb,0px)}
/* v505: con el teclado abierto la ventana ocupa exactamente lo que se ve entre arriba y el teclado (el iPhone corre la pantalla) */
html.kb-open .modal{top:var(--vvt,0px);bottom:auto;height:var(--vvh,100%)}
html.kb-open .modal .dlg{max-height:calc(100% - 8px)!important} /* ninguna ventana más alta que lo que se ve (Ayuda y Buscar tenían alto fijo) */
.modal .dlg{max-height:calc(100% - 12px);overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}
@media (max-width:520px){.modal .dlg{padding-bottom:calc(22px + env(safe-area-inset-bottom,0px))}html.kb-open .modal .dlg{padding-bottom:16px;border-radius:30px 30px 0 0}}

/* Campo enfocado dentro de una ventana: la ventana sube y se limita a la mitad de arriba para que el teclado no la tape */
@media (max-width:520px){
  html.mfocus:not(.kb-open) .modal{align-items:flex-start;padding:8px 8px 0}
  html.mfocus:not(.kb-open) .modal .dlg{max-height:44%;border-radius:26px;padding-bottom:16px}
}

/* Pantalla de carga (celular): texto sin encimarse, barra de avance de vidrio, fondo más tranquilo */
.sp-pbar{display:none}
@media (max-width:1099px){
  #splash{background:var(--bg)}
  .sp-steps li{transition:opacity .12s ease,transform .12s ease,color .2s}
  .sp-steps li.cur,.sp-steps li.done.cur,.sp-steps li.on.cur{transition:opacity .22s ease .14s,transform .22s ease .14s,color .2s}
  .sp-dots{display:none}
  .sp-pbar{display:block;width:100%;height:8px;border-radius:999px;margin-top:8px;overflow:hidden;background:color-mix(in srgb,var(--fg) 9%,transparent);box-shadow:inset 0 1px 2px rgba(0,0,0,.14),0 1px 0 rgba(255,255,255,.35)}
  .sp-pbar i{display:block;height:100%;width:0;border-radius:999px;background:var(--accent);box-shadow:inset 0 1px 0 rgba(255,255,255,.5)}
  #splash.ok .sp-logo{animation:none}
}

/* Logo del negocio más grande en la pantalla de carga */
@media (max-width:1099px){
  .sp-card{width:min(300px,82vw)}
  .sp-logo.img{width:148px;height:124px;border-radius:32px;padding:12px;box-shadow:0 10px 30px color-mix(in srgb,var(--accent) 30%,transparent),inset 0 0 0 1px rgba(0,0,0,.05)}
}

/* Logo de la carga: solo el logo, sin recuadro blanco (se invierte en oscuro si el logo es oscuro) */
.sp-logo.img{background:transparent;padding:0;box-shadow:none;border-radius:0}
@media (max-width:1099px){.sp-logo.img{width:190px;height:136px;padding:0;border-radius:0;box-shadow:none;background:transparent;filter:drop-shadow(0 8px 18px color-mix(in srgb,var(--accent) 22%,transparent))}}
@media (prefers-color-scheme:dark){html[data-logo-dark]:not([data-theme="light"]) .sp-logo.img{filter:invert(1) hue-rotate(180deg) drop-shadow(0 8px 18px color-mix(in srgb,var(--accent) 22%,transparent))}}
html[data-theme="dark"][data-logo-dark] .sp-logo.img{filter:invert(1) hue-rotate(180deg) drop-shadow(0 8px 18px color-mix(in srgb,var(--accent) 22%,transparent))}

/* Pantalla de PIN (celular): teclas de vidrio redondas, todo en una pantalla, puntos siempre visibles */
.pindots.shake{animation:pinshake .38s ease}
@keyframes pinshake{20%{transform:translateX(-9px)}40%{transform:translateX(8px)}60%{transform:translateX(-6px)}80%{transform:translateX(4px)}}
@media (prefers-reduced-motion:reduce){.pindots.shake{animation:none}}
@media (max-width:1099px){
  #auth .auth.pad{padding-block:10px}
  #auth .auth.pad .card{padding:18px 18px 12px;gap:8px}
  #auth .auth.pad .asheet{gap:10px}
  #auth .auth.pad .ahero{gap:4px}
  #auth .auth.pad .logo.hero{max-height:84px}
  #auth .auth.pad .ahero h1{font-size:1.5rem}
  .pindots{min-height:22px;gap:12px}
  .pindots i{width:14px;height:14px}
  .auth.pad .pinpad{grid-template-columns:repeat(3,72px);justify-content:space-between;max-width:300px;margin-inline:auto;gap:16px 0}
  #auth .auth .padk{width:72px;height:72px;border-radius:50%;padding:0;background:var(--glass);-webkit-backdrop-filter:var(--blur);backdrop-filter:var(--blur);border:1px solid var(--glass-edge);box-shadow:var(--glass-hi),0 4px 12px -4px rgba(0,0,0,.18);font-size:1.5rem}
  #auth .auth .padk:active{transform:scale(.92);background:color-mix(in srgb,var(--accent) 22%,var(--glass))}
  #auth .auth .padk.del{background:transparent;border-color:transparent;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}
  #auth .auth.pad #abtn{min-height:52px}
  #auth .auth.pad .linkbtn{display:block;margin:0 auto;text-decoration:none;padding:5px 8px;font-size:.8rem;color:var(--muted)}
  #auth .auth.pad #amail{color:var(--accent-2)}
  #auth .auth.pad .asheet>.credit{padding-top:0}
}
html[data-surface="solido"] #auth .auth .padk{border:1px solid var(--line)!important;box-shadow:none!important}

/* Estilo Mostrador: conserva sus formas (teclas y puntos cuadrados con esquina suave), con vidrio */
@media (max-width:1099px){
  html[data-style="mostrador"] .auth.pad .pinpad{grid-template-columns:repeat(3,82px);max-width:274px;gap:10px 0}
  .auth.pad .pinpad,html[data-style="mostrador"] .auth.pad .pinpad{grid-template-columns:repeat(3,max-content);justify-content:center;max-width:300px;margin-inline:auto;column-gap:18px;row-gap:16px}
  html[data-style="mostrador"] #auth .auth .padk{width:82px;height:58px;border-radius:16px;font-size:1.5rem}
  html[data-style="mostrador"] .pindots i{width:16px;height:16px;border-radius:5px}
}

/* ===== Escritorio: menú lateral con grupos, tarjeta de persona y pie ===== */
nav.tabs .navwho,nav.tabs .navft{display:none}
@media (min-width:1100px){
  body{padding-left:288px}
  nav.tabs{width:240px;padding:12px}
  nav.tabs .navwho{display:flex;align-items:center;gap:12px;padding:10px 12px;margin-bottom:6px;border-radius:18px;cursor:pointer;border:1px solid var(--glass-edge);background:var(--glass-strong);flex:none}
  nav.tabs .navwho i{font-style:normal;width:38px;height:38px;border-radius:50%;background:var(--accent);color:var(--accent-fg);display:grid;place-items:center;font-weight:800;flex:none}
  nav.tabs .navwho span{display:flex;flex-direction:column;min-width:0;line-height:1.25}
  nav.tabs .navwho b{font-size:.9rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  nav.tabs .navwho em{font-style:normal;font-size:.8rem;color:var(--muted)}
  nav.tabs button[data-grp]{margin-top:26px}
  nav.tabs button[data-grp]::after{content:attr(data-grp);position:absolute;left:6px;top:-21px;font-size:.7rem;font-weight:800;letter-spacing:.09em;text-transform:uppercase;color:var(--muted);pointer-events:none}
  nav.tabs button[data-grp]:first-of-type{margin-top:26px}
  nav.tabs button[aria-selected="true"]{color:var(--accent);font-weight:800}
  nav.tabs .ind{background:var(--accent-soft);box-shadow:var(--glass-hi)}
  nav.tabs .ind::before{content:"";position:absolute;left:0;top:10px;bottom:10px;width:3px;border-radius:3px;background:var(--accent)}
  nav.tabs .navft{display:block;margin-top:auto;padding:14px 8px 2px;font-size:.7rem;color:var(--muted);text-align:center}
  .card{padding:22px;gap:16px}
}
@media (min-width:1500px){.card{padding:24px;gap:18px}}
@media (min-width:1100px){
  .kbhint{bottom:56px;left:36px;width:172px}
  nav.tabs{padding-bottom:12px}
}
@media (min-width:1100px) and (max-height:899px){.kbhint{display:none}}

/* ===== Escritorio — Bloque 4: tablas ===== */
@media (min-width:1100px){
  .thead{position:sticky;top:0;z-index:3;background:var(--surface);padding:12px 10px 10px;border-radius:12px 12px 0 0;box-shadow:0 1px 0 var(--line),0 6px 10px -8px rgba(0,0,0,.28)}
  #ilist .item.inv,.item.srow,.item.trow{min-height:56px;padding-inline:10px;border-radius:0;transition:background .18s ease}
  #ilist .item.inv{padding-block:10px}
  #ilist .item.inv:hover,.item.srow:hover,.item.trow:hover{background:color-mix(in srgb,var(--accent) 7%,transparent)}
  #ilist .item.inv .pp,.item.srow .ctot,.item.trow .tr,.item.fia .tr,.item.pur .tr,.thead .r{font-variant-numeric:tabular-nums}
  #ilist .item.inv>.row,.item.srow>[data-open],.item.trow>.row,.item.trow>.tact,.item.trow .pacts{opacity:.88;transition:opacity .18s ease}
  #ilist .item.inv:hover>.row,#ilist .item.inv:focus-within>.row,.item.srow:hover>[data-open],.item.trow:hover>.row,.item.trow:hover>.tact,.item.trow:hover .pacts,.item.trow:focus-within>.tact,.item.trow:focus-within .pacts{opacity:1}
}
@media (min-width:1100px){#ilist .thead{top:86px}}
@media (min-width:1100px){
  .cli,.thead.cli-h,#clist .thead{--cols:minmax(0,1.1fr) minmax(0,1.2fr) minmax(0,1.3fr) minmax(0,1.1fr) minmax(0,1fr) 230px}
  .item.cli>.row{flex-wrap:wrap;justify-content:flex-end;gap:6px}
  /* v553 · los textos largos (correo, dirección) bajan de línea dentro de su columna en vez de montarse en la siguiente; botones en 2 × 2 */
  .item.trow .main>.s{min-width:0;overflow-wrap:anywhere}
  .item.cli>.row{display:grid;grid-template-columns:1fr 1fr;align-self:center}
  .item.cli>.row>.btn{width:100%;min-width:0;justify-content:center}
}

/* ===== Escritorio — Bloques 2 y 5: encabezado plano y panel de Inicio ===== */
.ptitle{display:none}
@media (min-width:1100px){
  .ptitle{display:flex;flex-direction:column;gap:2px;grid-area:biz;min-width:0}
  header.top .ptitle h1{font-family:var(--f-display);font-weight:800;font-size:2rem;letter-spacing:-.025em;line-height:1.1;margin:0}
  .ptitle span{font-size:.9rem;color:var(--muted);text-transform:capitalize;text-transform:none}
  .bizlabel{display:none}
  header.top{padding-block:22px 10px;background:none;border:0;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}
  .head-r .avatar{display:none}
  #isumcard .tiles{grid-template-columns:repeat(auto-fit,minmax(190px,1fr))}
  #isumcard .quick{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}
  #isumcard .tiles .tile:first-child .v{font-size:2.6rem}
  #isumcard .tiles .tile .v{font-variant-numeric:tabular-nums}
}

/* ===== Escritorio — Bloques 6, 7, 9, 10, 11, 12, 13, 14 ===== */
@media (min-width:1100px){
  /* 6 y 14: formularios con campos de ancho legible; Ajustes con íconos más grandes */
  #tab-ajustes .card label.f>input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=search]):not([type=color]){max-width:560px}
  .ajhub .ajrow .ajic{width:44px;height:44px;border-radius:14px}
  .ajhub .ajrow .ajic svg{width:24px;height:24px}
  /* 7: ventanas más anchas cuando tienen varios campos */
  .dlg:has(label.f:nth-of-type(3)),.dlg:has(table),.dlg:has(.tiles){max-width:680px}
  .dlg:has(label.f:nth-of-type(6)){max-width:800px}
  /* 9: estados vacíos con más presencia */
  .empty{padding:34px 16px;font-size:1rem;border:1px dashed color-mix(in srgb,var(--fg) 14%,transparent);background:color-mix(in srgb,var(--field) 70%,transparent)}
  /* 10: tipografía */
  body{line-height:1.55;font-size:.9rem}
  .card h2{font-size:1.2rem;letter-spacing:-.01em}
  .card.fold>h2{font-size:1.2rem}
  /* 11.2: sombras más sutiles (el vidrio se mantiene) */
  .card{box-shadow:var(--glass-hi),0 6px 18px -14px rgba(0,0,0,.28)}
  /* 12: transiciones más elegantes */
  .btn,.chip,.seg button,.item,.tile,.ajrow{transition:background-color .22s cubic-bezier(.2,.7,.2,1),box-shadow .22s cubic-bezier(.2,.7,.2,1),transform .22s cubic-bezier(.2,.7,.2,1),filter .22s,opacity .2s,color .2s,border-color .2s}
  .btn:hover:not(:disabled){transform:translateY(-1px)}
  .btn:active:not(:disabled){transform:none}
  section[role="tabpanel"]:not([hidden]){animation:pcfade .28s cubic-bezier(.2,.7,.2,1)}
}
@keyframes pcfade{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){section[role="tabpanel"]:not([hidden]){animation:none}}
/* 13: pantallas grandes */
@media (min-width:1900px){
  .wrap,#app[data-tab="vender"] .wrap{max-width:1560px}
  #hlist{grid-template-columns:repeat(4,minmax(0,1fr))}
  .card{padding:26px}
}
@media (min-width:2400px){
  .wrap,#app[data-tab="vender"] .wrap{max-width:1900px}
  html{font-size:112%}
}
@media (min-width:900px){
  #app[data-tab="vender"] #tab-vender>#vexch{grid-column:1}
  #app[data-tab="vender"] #tab-vender>#vexch:empty{display:none}
  #app[data-tab="vender"] #tab-vender>.cartcard{grid-column:2;grid-row:1/span 2}
  /* v689 · «Venta registrada» en el computador: ventana al centro (antes quedaba arriba a un lado y dejaba un hueco en la pantalla) */
  #app[data-tab="vender"] #tab-vender>#vdone:not(:empty){position:fixed;inset:0;z-index:50;display:flex;align-items:center;justify-content:center;padding:24px;background:var(--scrim);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);overflow-y:auto}
  #app[data-tab="vender"] #tab-vender>#vdone:not(:empty)>.card.dn{width:min(460px,100%);max-height:calc(100vh - 48px);overflow-y:auto;margin:auto;box-shadow:0 24px 60px rgba(0,0,0,.35)}
}
@media (min-width:1100px){#tab-inicio>.card.pcwide,#tab-caja>.card.pcwide,#tab-agenda>.card.pcwide,#tab-fiado>.card.pcwide,#tab-cotizar>.card.pcwide,#tab-servicio>.card.pcwide{grid-column:1/-1}}

/* Selección múltiple en Inventario (solo PC) */
.isel,.isel-h,.iselbar{display:none}
@media (min-width:1100px){
  .isel-h{display:flex;align-items:center;padding-left:2px}
  #ilist .item.inv{position:relative}
  .isel{display:block;width:18px;height:18px;accent-color:var(--accent);cursor:pointer;margin:0}
  #ilist .item.inv>.isel{position:absolute;left:-2px;top:50%;translate:0 -50%;z-index:2;opacity:0;transition:opacity .15s}
  #ilist .item.inv:hover>.isel,#ilist .item.inv>.isel:checked,#ilist .item.inv:focus-within>.isel,#ilist:has(.isel:checked) .item.inv>.isel{opacity:1}
  #ilist .item.inv.picked{background:color-mix(in srgb,var(--accent) 11%,transparent)}
  .iselbar:not([hidden]){display:flex;align-items:center;gap:10px;flex-wrap:wrap;position:fixed;z-index:30;bottom:24px;left:calc(288px + (100vw - 288px)/2);transform:translateX(-50%);padding:10px 14px;border-radius:999px;background:var(--glass-strong);-webkit-backdrop-filter:var(--blur);backdrop-filter:var(--blur);border:1px solid var(--glass-edge);box-shadow:var(--glass-hi),0 14px 34px -10px rgba(0,0,0,.4);max-width:calc(100vw - 340px)}
  .iselbar b{font-size:.9rem;padding:0 6px}
}
@media (min-width:1100px){
  .inv-h,#ilist .item.inv{grid-template-columns:76px minmax(0,1fr) 170px 150px 190px}
  #ilist .item.inv>.thumb{margin-left:28px}
  #ilist .item.inv>.isel{left:10px}
  .iselbar:not([hidden]){width:max-content;flex-wrap:nowrap;white-space:nowrap}
}
@media (min-width:1100px){.iselbar:not([hidden]){background:color-mix(in srgb,var(--surface) 92%,transparent)}}

/* Filas fantasma (carga) */
.skel{display:flex;flex-direction:column;gap:12px;padding:6px 0}
.skrow{display:flex;align-items:center;gap:12px}
.skrow>span{flex:1;display:flex;flex-direction:column;gap:8px}
.skc{width:44px;height:44px;border-radius:12px;flex:none}
.skl{display:block;height:12px;border-radius:6px}.skl.s{height:9px}
.skc,.skl{position:relative;overflow:hidden;background:var(--field)}
/* v591: el brillo se mueve con transform (lo hace la tarjeta gráfica), no con background-position */
.skc::after,.skl::after{content:"";position:absolute;inset:0;background:none;transform:translateX(-100%);animation:skshine 1.3s ease-in-out infinite}
@keyframes skshine{to{transform:translateX(100%)}}
@media (prefers-reduced-motion:reduce){.skc::after,.skl::after{animation:none;opacity:0}}

/* Distintivos del menú lateral (PC) */
nav.tabs .nbadge{display:none}
@media (min-width:1100px){
  nav.tabs button .nbadge{display:inline-block;margin-left:auto;font-style:normal;font-size:.7rem;font-weight:800;line-height:1;padding:5px 8px;border-radius:999px;background:var(--accent);color:var(--accent-fg);font-variant-numeric:tabular-nums;white-space:nowrap}
  nav.tabs button[aria-selected="true"] .nbadge{background:var(--accent);box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 25%,transparent)}
  nav.tabs button[data-tab="caja"] .nbadge{background:var(--accent-soft);color:var(--accent)}
}

.sclist{display:flex;flex-direction:column;gap:6px;max-height:60vh;overflow-y:auto}
.sclist h3{margin:12px 0 2px;font-size:.8rem;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.scrow{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:6px 0;border-bottom:1px solid var(--line)}
.scrow kbd{font:600 .78rem/1 var(--f-display,inherit);padding:4px 8px;border-radius:7px;border:1px solid color-mix(in srgb,currentColor 30%,transparent);white-space:nowrap}

/* Vista compacta de tablas (PC) */
.dens{display:none}
@media (min-width:1100px){
  .head-r .dens:not([hidden]){display:inline-flex;align-items:center;min-height:38px;margin-right:10px}
  html[data-dens="compact"] #ilist .item.inv,html[data-dens="compact"] .item.srow,html[data-dens="compact"] .item.trow{min-height:40px;padding-block:4px}
  html[data-dens="compact"] #ilist .item.inv>.thumb{width:32px;height:32px;font-size:.8rem;border-radius:9px}
  html[data-dens="compact"] #ilist .item.inv .pcost{display:none}
  html[data-dens="compact"] #ilist .item.inv .s{font-size:.8rem;line-height:1.3}
  html[data-dens="compact"] .item.srow,html[data-dens="compact"] .item.trow{font-size:.9rem}
  html[data-dens="compact"] .thead{padding-block:8px 6px}
  html[data-dens="compact"] .item .btn.small{min-height:30px;padding-block:3px}
}

/* ---------- celular y tableta: fila de cliente con los botones debajo del nombre (el nombre no se aplasta) ---------- */
@media (max-width:1099px){
  .item.cli{flex-wrap:wrap;row-gap:10px}
  .item.cli>.main{flex:1 1 100%}
  .item.cli>.row{flex:1 1 100%;flex-wrap:wrap;gap:8px;justify-content:flex-start}
  .item.cli>.row .btn{flex:1 1 30%;justify-content:center;padding-inline:8px}
}

/* ===== Liquid Glass en subsecciones de Ajustes, pestañas, ventanas y catálogo interno (celular) =====
   Mismo lenguaje del menú de Ajustes: resplandor de fondo, título grande, vidrio con brillo superior,
   campos de vidrio, casillas tipo interruptor, segmentos en cápsula. En «Sólido» y en estilo «Color» no cambia el fondo. */
@media (max-width:1099px){
  /* Resplandor ambiente detrás de todas las pantallas (lo que el vidrio difumina) */
  html:not([data-surface="solido"]):not([data-style="ninguno"]) body::before{
    background:none}

  /* Tarjetas: brillo superior (luz reflejada) */
  html:not([data-surface="solido"]):not([data-style="ninguno"]) .card:not(.item .card),
  html:not([data-surface="solido"]):not([data-style="ninguno"]) .tile{
    background-image:none}
  html:not([data-surface="solido"]) .card{border-radius:24px}
  .card>h2{font-weight:750;letter-spacing:-.01em}

  /* Barra de búsqueda y de filtros pegada arriba: vidrio en vez de fondo sólido */

  /* Ajustes → subsección: botón de volver en cápsula y título grande, como el menú */
  #ajbar:not([hidden]){display:flex;flex-direction:column;align-items:flex-start;gap:4px;margin-top:10px}
  #ajbar #ajback{display:inline-flex;align-items:center;gap:2px;min-height:38px;padding:6px 14px 6px 10px;border-radius:999px;font-weight:700}
  #ajbar #ajtitle{font-family:var(--f-display);font-weight:800;font-size:2rem;letter-spacing:-.02em;line-height:1.1;margin:2px 4px 4px}
  .asearch input,.asearch input:focus{border:0!important;background:transparent!important;box-shadow:none!important;border-radius:0}
  .asearch{box-shadow:var(--glass-hi);-webkit-backdrop-filter:var(--blur);backdrop-filter:var(--blur)}

  /* Campos: vidrio hundido */
  .card input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not(#asearch),.card select,.card textarea,.dlg input:not([type=checkbox]):not([type=radio]):not([type=range]),.dlg select,.dlg textarea{
    border-radius:14px;border:1px solid var(--glass-edge);box-shadow:inset 0 1px 3px rgba(0,0,0,.10),inset 0 1px 0 rgba(255,255,255,.06)}

  /* Casillas → interruptor tipo iOS */
  label.chk{justify-content:space-between;gap:14px;flex-direction:row-reverse;padding:8px 2px;line-height:1.3}
  label.chk input[type=checkbox]{-webkit-appearance:none;appearance:none;position:relative;flex:none;width:50px;height:30px;margin:0;border-radius:999px;cursor:pointer;
    background:var(--field);border:1px solid var(--glass-edge);box-shadow:inset 0 1px 3px rgba(0,0,0,.18);transition:background .2s,border-color .2s}
  label.chk input[type=checkbox]::after{content:"";position:absolute;top:2px;left:2px;width:24px;height:24px;border-radius:50%;background:#fff;
    box-shadow:0 1px 3px rgba(0,0,0,.35),0 2px 6px rgba(0,0,0,.18);transition:transform .22s cubic-bezier(.34,1.4,.64,1)}
  label.chk input[type=checkbox]:checked{background:var(--accent);border-color:var(--accent)}
  label.chk input[type=checkbox]:checked::after{transform:translateX(20px)}
  label.chk input[type=checkbox]:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
  label.chk input[type=checkbox]:disabled{opacity:.5}

  /* Segmentos (Productos / Compras / Herramientas, periodos, etc.): cápsula de vidrio */
  html:not([data-surface="solido"]) .seg{background:var(--glass);-webkit-backdrop-filter:var(--blur);backdrop-filter:var(--blur);border:1px solid var(--glass-edge);box-shadow:var(--glass-hi);border-radius:999px;padding:4px}
  html:not([data-surface="solido"]) .seg button{border-radius:999px}
  html:not([data-surface="solido"]) .seg button.on{box-shadow:var(--glass-hi),0 2px 8px -2px color-mix(in srgb,var(--accent) 55%,transparent)}
  html:not([data-surface="solido"]) .seg.rper,html:not([data-surface="solido"]) .seg.segw{border-radius:22px}
  html:not([data-surface="solido"]) .seg.rper button,html:not([data-surface="solido"]) .seg.segw button{border-radius:18px}

  /* Ventanas y hojas: más desenfoque detrás, brillo superior y asa */
  html:not([data-surface="solido"]) .modal{-webkit-backdrop-filter:blur(10px) saturate(1.2);backdrop-filter:blur(10px) saturate(1.2)}
  html:not([data-surface="solido"]):not([data-style="ninguno"]) .dlg{background-image:none;box-shadow:var(--glass-hi),0 -10px 40px -14px rgba(0,0,0,.35),0 24px 60px -12px rgba(0,0,0,.45)}
  .dlg::before{content:"";align-self:center;flex:none;width:38px;height:5px;border-radius:999px;background:color-mix(in srgb,var(--fg) 22%,transparent);margin:-10px 0 4px}
  .dlg.scan::before,.dlg.ticketdlg::before{display:none}

  /* Filas de lista (productos, clientes, ventas) dentro de tarjetas: separadores finos de vidrio */
  .card .item{border-color:var(--glass-edge)}
}

/* ===== Liquid Glass en el escritorio (≥1100px): mismo lenguaje que el celular ===== */
@media (min-width:1100px){
  html:not([data-surface="solido"]):not([data-style="ninguno"]) body::before{
    background:none}
  /* Tarjetas y cifras: brillo superior */
  html:not([data-surface="solido"]):not([data-style="ninguno"]) .card:not(.item .card),
  html:not([data-surface="solido"]):not([data-style="ninguno"]) .tile{background-image:none}
  .card>h2{font-weight:750;letter-spacing:-.01em}
  /* Menú de Ajustes: panel de vidrio */
  html:not([data-surface="solido"]) #tab-ajustes .ajhub:not([hidden]){background:var(--glass);-webkit-backdrop-filter:var(--blur);backdrop-filter:var(--blur);border:1px solid var(--glass-edge);border-radius:24px;box-shadow:var(--glass-hi),var(--glass-drop);padding:8px}
  /* Buscadores y barras pegadas arriba */
  .asearch{box-shadow:var(--glass-hi);-webkit-backdrop-filter:var(--blur);backdrop-filter:var(--blur)}
  .asearch input,.asearch input:focus{border:0!important;background:transparent!important;box-shadow:none!important;border-radius:0}
  html:not([data-surface="solido"]) #ilist .thead,html:not([data-surface="solido"]) .thead{-webkit-backdrop-filter:blur(16px) saturate(1.5);backdrop-filter:blur(16px) saturate(1.5)}
  /* Campos de vidrio hundido */
  .card input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not(#asearch),.card select,.card textarea,.dlg input:not([type=checkbox]):not([type=radio]):not([type=range]),.dlg select,.dlg textarea{
    border-radius:12px;border:1px solid var(--glass-edge);box-shadow:inset 0 1px 3px rgba(0,0,0,.10),inset 0 1px 0 rgba(255,255,255,.06)}
  /* Casillas → interruptor */
  label.chk{justify-content:space-between;gap:14px;flex-direction:row-reverse;padding:7px 2px;line-height:1.3;max-width:640px}
  label.chk input[type=checkbox]{-webkit-appearance:none;appearance:none;position:relative;flex:none;width:44px;height:26px;margin:0;border-radius:999px;cursor:pointer;
    background:var(--field);border:1px solid var(--glass-edge);box-shadow:inset 0 1px 3px rgba(0,0,0,.18);transition:background .2s,border-color .2s}
  label.chk input[type=checkbox]::after{content:"";position:absolute;top:2px;left:2px;width:20px;height:20px;border-radius:50%;background:#fff;
    box-shadow:0 1px 3px rgba(0,0,0,.35),0 2px 6px rgba(0,0,0,.18);transition:transform .22s cubic-bezier(.34,1.4,.64,1)}
  label.chk input[type=checkbox]:checked{background:var(--accent);border-color:var(--accent)}
  label.chk input[type=checkbox]:checked::after{transform:translateX(18px)}
  label.chk input[type=checkbox]:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
  label.chk input[type=checkbox]:disabled{opacity:.5}
  /* Segmentos en cápsula de vidrio */
  html:not([data-surface="solido"]) .seg{background:var(--glass);-webkit-backdrop-filter:var(--blur);backdrop-filter:var(--blur);border:1px solid var(--glass-edge);box-shadow:var(--glass-hi);border-radius:999px;padding:4px}
  html:not([data-surface="solido"]) .seg button{border-radius:999px}
  html:not([data-surface="solido"]) .seg button.on{box-shadow:var(--glass-hi),0 2px 8px -2px color-mix(in srgb,var(--accent) 55%,transparent)}
  html:not([data-surface="solido"]) .seg.rper,html:not([data-surface="solido"]) .seg.segw{border-radius:22px}
  html:not([data-surface="solido"]) .seg.rper button,html:not([data-surface="solido"]) .seg.segw button{border-radius:18px}
  /* Ventanas */
  html:not([data-surface="solido"]) .modal{-webkit-backdrop-filter:blur(10px) saturate(1.2);backdrop-filter:blur(10px) saturate(1.2)}
  html:not([data-surface="solido"]):not([data-style="ninguno"]) .dlg{background-image:none}
  .card .item{border-color:var(--glass-edge)}
  /* Menú lateral: brillo superior */
  html:not([data-surface="solido"]):not([data-style="ninguno"]) nav.tabs{background-image:none}
}

/* Comprobante en pantalla (detalle de la venta): tarjeta de vidrio. El ticket impreso, el PDF y el WhatsApp siguen planos. */
html:not([data-surface="solido"]):not([data-style="ninguno"]) .receipt{background-color:var(--glass);background-image:none;-webkit-backdrop-filter:var(--blur);backdrop-filter:var(--blur);border:1px solid var(--glass-edge);border-radius:22px;box-shadow:var(--glass-hi),var(--glass-drop);padding:18px}

/* Pantalla de carga sin marca guardada: el logo y el nombre de Cuadra no se muestran hasta saber el negocio */
#splash.nobrand .sp-logo,#splash.nobrand .sp-name,#splash.nobrand .sp-by{opacity:0}
#splash .sp-logo,#splash .sp-name,#splash .sp-by{transition:opacity .25s ease}

/* Detalle del proveedor: tarjetas parejas (sin la tarjeta principal grande) y botones de contacto en una fila */
.sptiles .tile:first-child,.sptiles .tile:last-child:nth-child(even){grid-column:auto}
html[data-style="mostrador"] .sptiles .tile:first-child .v{color:inherit;font-size:1.5rem}
.sptiles .tile:first-child .v{font-size:1.5rem}
.cpact3.sp3{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:10px}
#spbody label.f{margin-top:10px}
#spbody .sptabs{grid-template-columns:repeat(3,minmax(0,1fr))}

.vimei{border-top:1px solid var(--line);padding:8px 0}.vimeirow{align-items:center;gap:8px;flex-wrap:nowrap;margin-top:4px}.vimeirow .num{word-break:break-all}

/* Face ID o huella */
.uitem svg.ui.stroke{fill:none;stroke:currentColor}
.pkbtn{display:inline-flex;align-items:center;justify-content:center;gap:10px;width:100%}
.pkbtn[hidden]{display:none}
.pkbtn svg{flex:none}
.pkhero{display:flex;justify-content:center;color:var(--accent);margin-bottom:4px}
.pkhero svg{width:52px;height:52px}
.pkacts{display:flex;flex-direction:column;gap:8px;margin-top:6px}
.pkacts .linkbtn{align-self:center}
.pkstate{display:flex;align-items:center;gap:10px;font-weight:700;padding:10px 0}
.pkstate.on{color:var(--ok)}
.pkhere{display:flex;flex-direction:column;gap:8px;margin-top:6px}
.pkwarn{color:var(--fg);font-weight:600}
.pkh{font-size:1rem;margin:14px 0 4px}

/* ===================== REPORTES (rediseño) ===================== */
:root{--g1:#0f5f2e;--g2:#15803d;--g3:#33a05c;--g4:#5fb582;--prev:#8a9690;--d1:#15803d;--d2:#2563eb;--d3:#d97706;--d4:#7c3aed;--d5:#0891b2;--d6:#db2777}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){--g1:#4ade80;--g2:#22b358;--g3:#198a45;--g4:#12703a;--prev:#6d7b74;--d1:#16a34a;--d2:#3b82f6;--d3:#d97706;--d4:#a855f7;--d5:#0891b2;--d6:#db2777}}
:root[data-theme="dark"]{--g1:#4ade80;--g2:#22b358;--g3:#198a45;--g4:#12703a;--prev:#6d7b74;--d1:#16a34a;--d2:#3b82f6;--d3:#d97706;--d4:#a855f7;--d5:#0891b2;--d6:#db2777}
#tab-reportes{container:rp/inline-size}
.rp svg{display:block}
.r-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.r-head h2{font-size:1.5rem;font-weight:800;letter-spacing:-.025em;line-height:1.1;margin:0}
.r-head .hint{margin-top:4px}
.r-ha{display:flex;gap:8px;flex:none}
.r-ha .btn{display:inline-flex;align-items:center;gap:7px;padding-inline:12px;position:relative}
.r-ha svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.r-ha .dot{position:absolute;top:-3px;right:-3px;min-width:18px;height:18px;border-radius:9px;background:var(--accent);color:var(--accent-fg);font-size:.7rem;font-weight:800;display:grid;place-items:center;padding:0 4px}
.r-exp{position:relative}
@media(max-width:520px){.r-ha .btn{padding:0;width:44px;justify-content:center}.r-ha .btn .t{display:none}.r-ha svg{width:19px;height:19px}}
.r-menu{position:absolute;right:0;top:calc(100% + 8px);z-index:20;min-width:230px;background:color-mix(in srgb,var(--surface) 94%,transparent);-webkit-backdrop-filter:blur(30px) saturate(2);backdrop-filter:blur(30px) saturate(2);border:1px solid var(--glass-edge);border-radius:18px;padding:6px;box-shadow:var(--glass-hi),0 18px 40px -12px rgba(0,0,0,.4)}
.r-menu[hidden]{display:none}
.r-menu button{display:flex;flex-direction:column;align-items:flex-start;gap:2px;width:100%;border:0;background:transparent;color:var(--fg);border-radius:12px;padding:11px 12px;font-weight:600;cursor:pointer;text-align:left}
.r-menu button:hover{background:var(--field)}
.r-menu small{display:block;color:var(--muted);font-weight:500;font-size:.8rem}
.r-chips{display:flex;gap:6px;overflow-x:auto;scroll-snap-type:x proximity;margin:16px -16px 0;padding:4px 16px;scrollbar-width:none;-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 16px,#000 calc(100% - 28px),transparent 100%);mask-image:linear-gradient(90deg,transparent 0,#000 16px,#000 calc(100% - 28px),transparent 100%)}
.r-chips::-webkit-scrollbar{display:none}
.r-chip{flex:none;scroll-snap-align:start;border:1px solid var(--glass-edge);background:var(--glass);-webkit-backdrop-filter:var(--blur);backdrop-filter:var(--blur);box-shadow:var(--glass-hi);color:var(--muted);border-radius:99px;padding:9px 15px;font-weight:700;font-size:.9rem;cursor:pointer;white-space:nowrap}
.r-chip.on{background:var(--accent);color:var(--accent-fg);border-color:rgba(255,255,255,.35);box-shadow:inset 0 1.5px 0 rgba(255,255,255,.5),0 8px 18px -8px color-mix(in srgb,var(--accent) 75%,transparent)}
.r-filt{margin-top:12px;display:flex;flex-direction:column;gap:10px}
.rg{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;margin-top:16px}
.rg>*{min-width:0}
.rg>.card{margin:0}
@container rp (min-width:760px){
  .rg{grid-template-columns:repeat(12,minmax(0,1fr))}
  .a-hero{grid-column:span 5}.a-alert{grid-column:span 7}
  .a-hero:last-child,.a-hero+.a-kpi{grid-column:1/-1}
  .a-kpi,.a-trend,.a-more,.a-full{grid-column:1/-1}
  .a-pay{grid-column:span 5}.a-prod{grid-column:span 7}
  .a-half{grid-column:span 6}
}
.r-hero{position:relative;overflow:hidden;border-radius:var(--r-lg);padding:20px 20px 0;color:var(--accent-fg);border:1px solid rgba(255,255,255,.35);background:var(--accent);box-shadow:var(--glass-hi),0 18px 36px -14px color-mix(in srgb,var(--accent) 70%,transparent);display:flex;flex-direction:column;min-height:236px}
.r-hero .k{font-size:.9rem;font-weight:700;opacity:.88}
.r-hero .big{font-family:var(--f-display);font-weight:800;font-size:clamp(2.3rem,9vw,3rem);letter-spacing:-.035em;line-height:1.05;margin-top:6px;white-space:nowrap}
.r-delta{display:inline-flex;align-items:center;gap:6px;margin-top:12px;align-self:flex-start;background:rgba(255,255,255,.22);border:1px solid rgba(255,255,255,.35);border-radius:99px;padding:5px 11px;font-weight:700;font-size:.8rem}
.r-delta b{font-weight:800}
.r-hero .spark{margin:auto -20px 0;height:78px;position:relative}
.r-hero .spark svg{position:absolute;inset:0}
.r-alerts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.r-al{display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-areas:"i v" "l l";align-items:center;gap:6px 8px;text-align:left;border:1px solid var(--glass-edge);background:var(--field);border-radius:16px;padding:12px;cursor:pointer;min-height:76px;color:var(--fg)}
.r-al svg{grid-area:i;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.r-al.bad svg{color:var(--bad)}.r-al.warn svg{color:var(--warn)}
.r-al span{grid-area:l;font-weight:600;font-size:.8rem;line-height:1.2;color:var(--muted)}
.r-al b{grid-area:v;justify-self:end;font-family:var(--f-display);font-size:1.2rem;font-weight:800;white-space:nowrap}
.r-ok{display:flex;align-items:center;gap:10px;color:var(--muted);font-weight:600}
.r-ok svg{width:22px;height:22px;fill:none;stroke:var(--ok);stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none}
.r-kpis{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
@container rp (min-width:700px){.r-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}}
.r-kpi{background:var(--glass);-webkit-backdrop-filter:var(--blur);backdrop-filter:var(--blur);border:1px solid var(--glass-edge);border-radius:var(--r-lg);padding:15px 15px 12px;box-shadow:var(--glass-hi),var(--glass-drop);display:flex;flex-direction:column;gap:2px;min-width:0}
.r-kpi .k{color:var(--muted);font-size:.8rem;font-weight:600}
.r-kpi .v{font-family:var(--f-display);font-weight:800;font-size:1.5rem;letter-spacing:-.025em;margin-top:3px;white-space:nowrap}
.r-kpi .d{font-size:.8rem;font-weight:700;margin:2px 0 8px}
.r-kpi .d.up{color:var(--ok)}.r-kpi .d.dn{color:var(--bad)}
.r-kpi .d span{color:var(--muted);font-weight:500}
.r-kpi .spark{height:34px;margin-top:auto;position:relative}
.r-kpi .spark svg{position:absolute;inset:0}
.r-ch{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;flex-wrap:wrap}
.r-leg{display:flex;gap:14px;flex-wrap:wrap;font-size:.8rem;color:var(--muted);font-weight:600}
.r-leg i{display:inline-block;width:16px;height:3px;border-radius:2px;margin-right:6px;vertical-align:middle}
.r-plotbox{position:relative;border-radius:18px;background:var(--field);border:1px solid var(--line);box-shadow:none;padding:8px 4px 2px;touch-action:pan-y}
.r-plotbox svg{width:100%;overflow:visible}
.r-tip{position:absolute;pointer-events:none;z-index:5;min-width:158px;background:var(--glass-strong);-webkit-backdrop-filter:blur(24px) saturate(2);backdrop-filter:blur(24px) saturate(2);border:1px solid var(--glass-edge);border-radius:14px;padding:10px 12px;box-shadow:var(--glass-hi),0 14px 30px -10px rgba(0,0,0,.4);font-size:.8rem;opacity:0;transform:translateY(4px);transition:opacity .12s,transform .12s}
.r-tip.on{opacity:1;transform:none}
.r-tip .t{font-weight:800;margin-bottom:6px}
.r-tip .l{display:flex;align-items:center;gap:8px;justify-content:space-between;color:var(--muted)}
.r-tip .l b{color:var(--fg)}
.r-tip .l i{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:7px}
.r-tip .dl{margin-top:6px;padding-top:6px;border-top:1px solid var(--line);font-weight:700}
.r-pay{display:flex;flex-direction:column;align-items:center;gap:14px}
.r-donut{position:relative;width:172px;height:172px;flex:none}
.r-donut svg{width:100%;height:100%}
.r-donut circle.seg{fill:none;stroke-width:22;transition:opacity .15s,stroke-width .15s;cursor:pointer;outline:none}
.r-donut.hov circle.seg{opacity:.35}.r-donut.hov circle.seg.on{opacity:1;stroke-width:25}
.r-dc{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;pointer-events:none;padding:0 30px}
.r-dc small{font-size:.7rem;color:var(--muted);font-weight:700;line-height:1.1;overflow-wrap:anywhere}
.r-dc b{font-family:var(--f-display);font-size:1rem;font-weight:800;letter-spacing:-.02em;line-height:1.15}
.r-lg{display:flex;flex-direction:column;gap:2px;width:100%}
.r-li{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px;align-items:center;padding:8px;border-radius:12px}
.r-li.on{background:var(--field)}
.r-li i{width:12px;height:12px;border-radius:50%}
.r-li .n{font-weight:600;font-size:.9rem}
.r-li .p{font-size:.7rem;color:var(--muted)}
.r-li b{font-size:.8rem;white-space:nowrap}
.r-seg{display:flex;gap:4px;padding:4px;background:var(--field);border-radius:14px}
.r-seg button{flex:1;border:0;background:transparent;color:var(--muted);font-weight:700;font-size:.8rem;padding:8px 6px;border-radius:11px;cursor:pointer}
.r-seg button.on{background:var(--surface);color:var(--fg);box-shadow:0 1px 4px rgba(20,30,50,.14)}
.r-rows{display:flex;flex-direction:column;gap:14px}
.r-row{display:grid;grid-template-columns:auto minmax(0,1fr);gap:12px;align-items:start}
.r-rk{width:26px;height:26px;border-radius:9px;display:grid;place-items:center;background:var(--field);color:var(--muted);font-weight:800;font-size:.8rem;margin-top:1px}
.r-row:first-child .r-rk{background:var(--accent);color:var(--accent-fg)}
.r-av2{width:34px;height:34px;border-radius:12px;display:grid;place-items:center;background:var(--accent-soft);color:var(--accent);font-family:var(--f-display);font-weight:800;font-size:.9rem}
.r-l{display:flex;justify-content:space-between;gap:10px;align-items:baseline}
.r-n{font-weight:700;font-size:.9rem;overflow-wrap:anywhere;min-width:0}
.r-l b{white-space:nowrap;font-size:.9rem}
.r-t{height:10px;border-radius:5px;background:var(--field);margin-top:6px;overflow:hidden}
.r-t i{display:block;height:100%;border-radius:0 5px 5px 0;background:color-mix(in srgb,var(--accent) 52%,var(--surface))}
.r-row:first-child .r-t i{background:var(--accent)}
.r-s{color:var(--muted);font-size:.8rem;margin-top:5px}
.r-acc{border-top:1px solid var(--line)}
.r-acc:first-of-type{border-top:0}
.r-acc summary{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"t c" "v c";gap:2px 10px;align-items:center;padding:14px 2px;cursor:pointer;list-style:none;font-weight:700}
.r-acc summary>span:first-child{grid-area:t}.r-acc summary svg{grid-area:c}
@container rp (min-width:700px){.r-acc summary{grid-template-columns:minmax(0,1fr) auto auto;grid-template-areas:"t v c"}.r-acc summary span.v{text-align:right}}
.r-acc summary::-webkit-details-marker{display:none}
.r-acc summary span.v{grid-area:v;color:var(--muted);font-weight:600;font-size:.8rem}
.r-acc summary svg{width:16px;height:16px;fill:none;stroke:var(--muted);stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;transition:transform .2s}
.r-acc[open] summary svg{transform:rotate(180deg)}
.r-accb{padding:0 2px 16px;display:flex;flex-direction:column;gap:12px}
@media(min-width:1100px){.r-head h2{display:none}}
.a-kpi .hint{margin-top:10px}





/* Mostrador en oscuro: sin brillo de vidrio en tarjetas, botones y cifras; la barra de navegación lo conserva */
@media (prefers-color-scheme:dark){html[data-style="mostrador"]:not([data-theme="light"]){--glass-hi:none}}
@media (prefers-color-scheme:dark){html[data-style="mostrador"]:not([data-theme="light"]) :is(.card,.tile,.dlg,.btn,.fab,.receipt,.sptiles .tile:first-child,.r-hero,.r-kpi,.r-plotbox,.card .card){background-image:none!important;box-shadow:var(--glass-drop,none)!important}}
html[data-style="mostrador"][data-theme="dark"]{--glass-hi:none}
html[data-style="mostrador"][data-theme="dark"] :is(.card,.tile,.dlg,.btn,.fab,.receipt,.sptiles .tile:first-child,.r-hero,.r-kpi,.r-plotbox,.card .card){background-image:none!important;box-shadow:var(--glass-drop,none)!important}

/* v530: solo existe Mostrador (sólido); el selector Vidrio/Sólido se oculta */
.f:has(#ssurf){display:none}

/* Mostrador siempre es sólido: el deslizador de transparencia no aplica y se oculta */
html[data-style="mostrador"] #sglassrow{display:none}

/* Caja de funciones del plan Pro (Ajustes → Funciones del sistema) */
.pro-box{display:flex;flex-direction:column;gap:10px;border:1px solid var(--line,#e3e6ea);border-radius:var(--r-md,12px);padding:14px;background:rgba(127,127,127,.06)}
.pro-box .pro-h{font-weight:700}
.pro-box .btn{align-self:flex-start}

/* Formulario de órdenes de servicio: bloques con título y campos alineados por abajo */
#svform .fsec{display:flex;flex-direction:column;gap:10px;margin-top:14px;padding-top:12px;border-top:1px solid var(--line,rgba(127,127,127,.25))}
#svform .fsec>h3{margin:0;font-size:.72rem;letter-spacing:.08em;text-transform:uppercase;color:var(--accent,var(--muted))}
#svform .row>label.f{justify-content:flex-end}

/* Orden abierta: botones agrupados por lo que hacen */
.svgrp{display:flex;flex-direction:column;gap:6px}
.svgrp>.gt{font-size:.7rem;letter-spacing:.08em;text-transform:uppercase;font-weight:700;color:var(--muted)}
.svgrp>.row{display:flex;flex-wrap:wrap;gap:8px}

/* Campos de una misma fila: misma altura (el select del navegador sale más bajo que el input) */
:where(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]),select){height:50px}

/* Filas que son solo botones: todos del mismo ancho en cada línea; el que queda solo ocupa la línea completa */
.row:not(:has(>:not(.btn))):not([style*="nowrap"])>.btn:not(.x):not(.icon),.svgrp>.row>.btn{flex:1 1 9.5rem;text-align:center}

/* Calendario para elegir fechas */
.dlg.cal{gap:12px}
.calpre{display:flex;flex-wrap:wrap;gap:6px}
.calpre .btn{flex:1 1 auto}
.calnav{display:flex;align-items:center;justify-content:space-between;gap:8px}
.calnav b{font-size:1rem}
.calnav .btn{min-width:44px}
.calgrid{display:grid;grid-template-columns:repeat(7,1fr);gap:4px}
.calh{text-align:center;font-size:.72rem;font-weight:700;color:var(--muted);padding:4px 0}
.calday{aspect-ratio:1;min-height:40px;border:0;border-radius:12px;background:transparent;color:var(--fg);font-weight:600;cursor:pointer;font-variant-numeric:tabular-nums}
.calday:hover{background:var(--accent-soft)}
.calday.mid{background:var(--accent-soft);border-radius:6px}
.calday.today{box-shadow:inset 0 0 0 1.5px var(--accent)}
.calday.on{background:var(--accent);color:var(--accent-fg)}

/* Menú lateral (PC): filas más compactas y discretas, sin botones tipo píldora */
@media (min-width:1100px){
  nav.tabs{gap:2px}
  nav.tabs button{min-height:40px;gap:12px;padding:0 12px;border-radius:10px;font-size:.88rem;font-weight:600;color:var(--muted)}
  nav.tabs button svg{width:19px;height:19px;opacity:.85}
  nav.tabs button:hover{background:color-mix(in srgb,var(--fg,currentColor) 6%,transparent);color:var(--fg,inherit)}
  nav.tabs button[aria-selected="true"],nav.tabs button.on,nav.tabs button.active{color:var(--accent);background:transparent}
  nav.tabs .ind{border-radius:10px;background:color-mix(in srgb,var(--accent) 12%,transparent)!important;box-shadow:none!important}
}

/* Formularios largos en dos columnas (PC ancho) */
@media (min-width:1400px){
  #pform,#cform{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 20px;align-items:start}
  #pform>h2,#pform>.hint,#pform>details,#pform>#pcatbox,#pform>#plosshint,#pform>#pphoto+*,#pform>.row:has(#pphoto),#pform>.row:has(#pprice),#pform>.row:has(#pram),#pform>.row:has(#pbrand),#pform>.row:has(#pstock),#pform>.row:last-of-type,#pform>[id$="err"],#pform>[id$="Err"],#pform>.err,#pform>.sub,#pform>#pcatnewrow,
  #cform>h2,#cform>.hint,#cform>#cbdayrow,#cform>#cpd,#cform>#cxf,#cform>.err,#cform>.row:last-of-type,#cform>.row:has(#cpdexp){grid-column:1/-1}
  #pform>label.f:has(#pname),#cform>label.f:has(#caddr){grid-column:1/-1}
  #pform>*,#cform>*{margin:0}
  /* v553 · las fichas plegables quitan el espacio (gap:0 !important) y los campos quedaban pegados entre sí */
  html #pform.card.fold:not(.closed),html #cform.card.fold:not(.closed){gap:14px 20px!important}
  #cform>#cxf:empty,#cform>.err:empty{display:none}
}
/* Ventanas arrastrables en PC: se mueven tomando el título */
@media (min-width:1100px) and (hover:hover){
  .modal .dlg:not(.scan)>h2:first-child{cursor:grab;user-select:none;touch-action:none}
  .modal .dlg.dragging>h2:first-child{cursor:grabbing}
}

/* Menú lateral plano (PC): sin cápsula, pegado al borde, con línea divisoria */
@media (min-width:1100px){
  nav.tabs{left:0!important;top:0!important;bottom:0!important;width:240px!important;border-radius:0!important;padding:14px 10px!important;
    background:var(--surface,var(--bg))!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;
    border:0!important;border-right:1px solid var(--line,rgba(128,128,128,.22))!important;box-shadow:none!important}
  nav.tabs::before,nav.tabs::after{display:none!important}
  nav.tabs .ind{border-radius:8px!important;background:color-mix(in srgb,var(--accent) 11%,transparent)!important;border:0!important;box-shadow:none!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
  nav.tabs .ind::after,nav.tabs .ind::before{display:none!important}
  nav.tabs button{border-radius:8px!important}
  nav.tabs button:hover{border-radius:8px}
}
@media (min-width:1100px){
  nav.tabs .navwho{border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;border-bottom:1px solid var(--line,rgba(128,128,128,.22))!important;padding:6px 6px 14px!important;margin-bottom:6px}
}

.navbrand{display:none}
@media (min-width:1100px){
  nav.tabs .navbrand{display:flex;align-items:center;gap:10px;padding:2px 8px 12px;min-width:0}
  nav.tabs .navbrand img{width:34px;height:34px;object-fit:contain;border-radius:8px;flex:none}
  nav.tabs .navbrand i{width:34px;height:34px;border-radius:8px;background:var(--fg);color:var(--bg);display:grid;place-items:center;font-style:normal;font-weight:800;flex:none}
  nav.tabs .navbrand b{font-size:1rem;font-weight:800;letter-spacing:-.01em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
}
@media (min-width:1100px) and (hover:hover){
  .thead .rz{position:absolute;top:2px;bottom:2px;right:-10px;width:10px;cursor:col-resize;z-index:2;touch-action:none}
  .thead .rz::after{content:"";position:absolute;top:4px;bottom:4px;left:4px;width:2px;border-radius:2px;background:var(--line);opacity:0;transition:opacity .15s}
  .thead:hover .rz::after,.thead .rz:hover::after{opacity:1}
  .thead .rz:hover::after,html.rzing .thead .rz::after{background:var(--accent);opacity:1}
  html.rzing,html.rzing *{cursor:col-resize!important;user-select:none!important}
}

/* Lista de secciones de Ajustes (PC): filas planas, sin cápsulas ni círculos en los íconos */
@media (min-width:1100px){
  #tab-ajustes>.ajhub:not([hidden]){gap:2px;padding:8px;border-radius:14px}
  .ajhub .ajrow{min-height:42px;padding:0 12px;gap:12px;border-radius:8px;border:0!important;position:relative;transform:none!important}
  .ajhub .ajrow:hover{background:color-mix(in srgb,var(--fg) 6%,transparent)}
  .ajhub .ajrow .ajic{width:22px!important;height:22px!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;border:0!important;flex:none;color:var(--muted)}
  .ajhub .ajrow .ajic svg{width:20px!important;height:20px!important}
  .ajhub .ajrow .ajtx b{font-size:.9rem;font-weight:600;color:var(--fg)}
  .ajhub .ajrow.on{background:color-mix(in srgb,var(--accent) 11%,transparent)!important}
  .ajhub .ajrow.on::before{content:"";position:absolute;left:0;top:9px;bottom:9px;width:3px;border-radius:2px;background:var(--accent)}
  .ajhub .ajrow.on .ajic{color:var(--accent)}
  .ajhub .ajrow.on .ajtx b{color:var(--accent);font-weight:700}
}


/* Ajustes en celular: mismas filas planas que en PC (ícono simple, nombre, barrita verde al tocar) */
@media (max-width:1099px){
  #tab-ajustes .ajgrp{padding:6px}
  #tab-ajustes .ajgrp .ajrow{min-height:46px;padding:0 12px;gap:12px;border-radius:8px;margin:0;width:100%}
  #tab-ajustes .ajgrp .ajrow+.ajrow::before{display:none}
  #tab-ajustes .ajgrp .ajic{width:22px;height:22px}
  #tab-ajustes .ajgrp .ajic svg{width:20px;height:20px}
  #tab-ajustes .ajgrp .ajtx b{font-size:.92rem;font-weight:600}
  #tab-ajustes .ajgrp .ajtx span{display:none}
  #tab-ajustes .ajgrp .ajchev{display:none}
  #tab-ajustes .ajgrp .ajrow:active{background:color-mix(in srgb,var(--accent) 11%,transparent)}
  #tab-ajustes .ajgrp .ajrow:active::after{content:"";position:absolute;left:0;top:9px;bottom:9px;width:3px;border-radius:2px;background:var(--accent)}
  #tab-ajustes .ajgrp .ajrow:active .ajtx b{color:var(--accent)}
}

/* Subsecciones (selectores de pestañas): mismo estilo plano que Ajustes, sin cápsula ni brillo */
html .seg{background:transparent!important;border-radius:0!important;padding:0!important;gap:0!important;box-shadow:none!important;border:0;border-bottom:1px solid var(--line,rgba(128,128,128,.25))!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
html .seg button,html .seg .btn{border-radius:8px 8px 0 0!important;background:transparent!important;box-shadow:none!important;border:0!important;border-bottom:3px solid transparent!important;color:var(--muted)!important;font-weight:600;min-height:44px;position:relative;transform:none!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
html .seg button:hover{background:color-mix(in srgb,var(--fg) 6%,transparent)!important}
html .seg button.on,html .seg button[aria-pressed="true"],html .seg button[aria-selected="true"]{background:color-mix(in srgb,var(--accent) 11%,transparent)!important;color:var(--accent)!important;border-bottom-color:var(--accent)!important;font-weight:700}
html[data-style="mostrador"] .seg button.on{color:var(--accent)!important}

/* Subsecciones de Ajustes: mismo diseño plano que la lista (sin vidrio, sin cápsulas, barra verde) */
html #tab-ajustes #ajback,html #ajbar #ajback{border-radius:8px!important;border:0!important;background:transparent!important;color:var(--accent)!important}
/* Secciones plegables (todo el programa): lista plana, íconos sencillos, sin flecha, barra verde en la abierta */
html .card.fold{background:transparent!important;background-image:none!important;border:0!important;border-bottom:1px solid var(--line)!important;border-radius:0!important;box-shadow:none!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;padding:0 12px 10px!important;margin:0!important;position:relative}
html .card.fold::before{display:none}
html .card.fold:not(.closed)::before{display:block;content:"";position:absolute;left:0;top:12px;height:26px;width:3px;border-radius:2px;background:var(--accent)}
html .card.fold>h2{min-height:50px!important;margin:0 -12px!important;padding:0 12px!important;font-size:.95rem!important;font-weight:600!important;gap:12px;justify-content:flex-start!important;color:var(--fg);border-radius:8px}
html .card.fold>h2::after{display:none!important}
html .card.fold>h2:active{background:color-mix(in srgb,var(--accent) 11%,transparent)}
html .card.fold:not(.closed)>h2{color:var(--accent);font-weight:700!important}
html .card.fold[data-ic]>h2::before{content:"";width:22px;height:22px;flex:none;background:currentColor;-webkit-mask:var(--ic) center/contain no-repeat;mask:var(--ic) center/contain no-repeat}
html .card.fold .btn,html .card.fold .btn.small{border-radius:8px!important}
html .card.fold input,html .card.fold select,html .card.fold textarea{border-radius:8px!important}
html .card.fold .btn:not(.small):not(.ghost):not(.danger){box-shadow:none!important}


/* Reportes: filtros de periodo planos (sin cápsula) */
html .r-chips{gap:2px;border-bottom:1px solid var(--line)}
html .r-chip{border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;color:var(--muted);padding:10px 14px;border-bottom:2px solid transparent!important;margin-bottom:-1px}
html .r-chip.on{background:color-mix(in srgb,var(--accent) 11%,transparent)!important;color:var(--accent)!important;border-bottom-color:var(--accent)!important;font-weight:700}

/* Acciones rápidas al deslizar */
@media (max-width:1099px){
  .item.swopen{position:relative}
  .swact{position:absolute;right:0;top:0;bottom:0;display:flex;align-items:stretch;z-index:5;border-radius:0 10px 10px 0;overflow:hidden;animation:swin .16s ease-out}
  .swact button{min-width:76px;padding:0 14px;border:0;border-left:1px solid color-mix(in srgb,var(--fg) 12%,transparent);background:var(--surface,#161616);color:var(--accent);font-weight:700;font-size:.85rem}
  .swact button:first-child{background:var(--accent);color:var(--accent-fg,#fff);border-left:0}
  @keyframes swin{from{opacity:0;transform:translateX(24px)}to{opacity:1;transform:none}}
}

/* Búsquedas recientes */
.recents{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:6px 0 4px}
.recents .rl{font-size:.75rem;color:var(--muted);font-weight:700;text-transform:uppercase;letter-spacing:.04em}
.recents button{border:1px solid var(--line);background:transparent;color:var(--fg);border-radius:8px;padding:5px 10px;font-size:.85rem;font-weight:600;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.recents .rx{border-color:transparent;color:var(--muted);font-weight:500}

/* Índice A–Z */
.azbar{position:fixed;right:2px;top:50%;transform:translateY(-50%);z-index:30;display:flex;flex-direction:column;align-items:center;padding:4px 3px;border-radius:8px;background:color-mix(in srgb,var(--bg,#000) 70%,transparent);font-size:.72rem;font-weight:700;line-height:1.2;color:var(--accent);touch-action:none;user-select:none;-webkit-user-select:none}
.azbar span{padding:0 3px;min-width:16px;text-align:center}
.azbar[hidden]{display:none}
@media (min-width:1100px){.azbar{display:none!important}}

/* Secciones plegables: mismo diseño que la lista de Ajustes en celular (grupo de vidrio, filas de 46 px, íconos rellenos, barra verde al abrir) */
html .card.fold{background:var(--glass)!important;-webkit-backdrop-filter:var(--blur)!important;backdrop-filter:var(--blur)!important;border:0!important;border-left:1px solid var(--glass-edge)!important;border-right:1px solid var(--glass-edge)!important;border-radius:0!important;box-shadow:none!important;margin:0!important;padding:0 12px 8px!important}
html .card.fold.fg-first{border-top:1px solid var(--glass-edge)!important;border-radius:24px 24px 0 0!important;padding-top:6px!important;box-shadow:var(--glass-hi)!important}
html .card.fold.fg-last{border-bottom:1px solid var(--glass-edge)!important;border-radius:0 0 24px 24px!important;margin-bottom:14px!important;padding-bottom:6px!important}
html .card.fold.fg-first.fg-last{border-radius:24px!important}
html .card.fold::before{left:6px!important;top:12px!important;height:22px!important}
html .card.fold:not(.closed)::before{left:6px;top:12px;height:22px}
html .card.fold>h2{min-height:46px!important;margin:0 -6px!important;padding:0 12px!important;font-size:.92rem!important;font-weight:600!important;color:var(--fg)}
html .card.fold:not(.closed)>h2{background:color-mix(in srgb,var(--accent) 11%,transparent);color:var(--accent)}
html .card.fold[data-ic]>h2::before{width:22px!important;height:22px!important;color:color-mix(in srgb,var(--fg) 70%,transparent)}
html .card.fold:not(.closed)[data-ic]>h2::before{color:var(--accent)}
html .card.fold>*:not(h2){margin-top:6px}
html .card.fold[data-ic="box"]{--ic:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M20 2H4c-1 0-2 .9-2 2v3.01c0 .72.43 1.34 1 1.69V20c0 1.1 1.1 2 2 2h14c.9 0 2-.9 2-2V8.7c.57-.35 1-.97 1-1.69V4c0-1.1-1-2-2-2zm-5 12H9v-2h6v2zm5-7H4V4h16v3z'/></svg>")}
html .card.fold[data-ic="tag"]{--ic:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M21.41 11.58l-9-9C12.05 2.22 11.55 2 11 2H4c-1.1 0-2 .9-2 2v7c0 .55.22 1.05.59 1.42l9 9c.36.36.86.58 1.41.58.55 0 1.05-.22 1.41-.59l7-7c.37-.36.59-.86.59-1.41 0-.55-.23-1.06-.59-1.42zM5.5 7C4.67 7 4 6.33 4 5.5S4.67 4 5.5 4 7 4.67 7 5.5 6.33 7 5.5 7z'/></svg>")}
html .card.fold[data-ic="sl"]{--ic:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M3 17v2h6v-2H3zM3 5v2h10V5H3zm10 16v-2h8v-2h-8v-2h-2v6h2zM7 9v2H3v2h4v2h2V9H7zm14 4v-2H11v2h10zm-6-4h2V7h4V5h-4V3h-2v6z'/></svg>")}
html .card.fold[data-ic="bar"]{--ic:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M3 5h2v14H3zM7 5h1v14H7zM10 5h2v14h-2zM14 5h1v14h-1zM17 5h2v14h-2zM20.5 5h.5v14h-.5z'/></svg>")}
html .card.fold[data-ic="money"]{--ic:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M19 14V6c0-1.1-.9-2-2-2H3c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zm-9-1c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3zm13-6v11c0 1.1-.9 2-2 2H4v-2h17V7h2z'/></svg>")}
html .card.fold[data-ic="list"]{--ic:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M3 13h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm4 4h14v-2H7v2zm0 4h14v-2H7v2zM7 7v2h14V7H7z'/></svg>")}
html .card.fold[data-ic="user"]{--ic:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/></svg>")}
html .card.fold[data-ic="gear"]{--ic:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M19.14 12.94c.04-.3.06-.61.06-.94s-.02-.64-.07-.94l2.03-1.58a.49.49 0 0 0 .12-.61l-1.92-3.32a.49.49 0 0 0-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54a.484.484 0 0 0-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58a.49.49 0 0 0-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z'/></svg>")}
html .card.fold[data-ic="phone"]{--ic:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M17 1.01 7 1c-1.1 0-2 .9-2 2v18c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-1.99-2-1.99zM17 19H7V5h10v14z'/></svg>")}
html .card.fold[data-ic="bell"]{--ic:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2zm6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2z'/></svg>")}
html .card.fold[data-ic="lock"]{--ic:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z'/></svg>")}
html .card.fold[data-ic="file"]{--ic:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z'/></svg>")}
html .card.fold[data-ic="wrench"]{--ic:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M22.7 19l-9.1-9.1c.9-2.3.4-5-1.5-6.9-2-2-5-2.4-7.4-1.3L9 6 6 9 1.6 4.7C.4 7.1.9 10.1 2.9 12.1c1.9 1.9 4.6 2.4 6.9 1.5l9.1 9.1c.4.4 1 .4 1.4 0l2.3-2.3c.5-.4.5-1.1.1-1.4z'/></svg>")}
html .card.fold[data-ic="chart"]{--ic:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M5 9.2h3V19H5zM10.6 5h2.8v14h-2.8zm5.6 8H19v6h-2.8z'/></svg>")}
html .card.fold[data-ic="info"]{--ic:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z'/></svg>")}
html .card.fold[data-ic="trash"]{--ic:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z'/></svg>")}
html .card.fold[data-ic="cal"]{--ic:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M19 4h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V10h14v10z'/></svg>")}
html .card.fold.closed{padding-bottom:0!important}
html .card.fold.closed.fg-last{padding-bottom:6px!important}
html .card.fold{gap:0!important}

/* Grupo de vidrio: sombra y brillo como la lista de Ajustes, sin costuras entre filas */
html .card.fold{box-shadow:var(--glass-drop)!important;clip-path:inset(0 -48px 0 -48px)}
html .card.fold.fg-first{box-shadow:var(--glass-hi),var(--glass-drop)!important;clip-path:inset(-48px -48px 0 -48px)}
html .card.fold.fg-last{clip-path:inset(0 -48px -48px -48px)}
html .card.fold.fg-first.fg-last{clip-path:none}
html .card.fold{box-shadow:0 14px 34px -12px color-mix(in srgb,#000 24%,transparent)!important}
html .card.fold.fg-first{box-shadow:var(--glass-hi),0 14px 34px -12px color-mix(in srgb,#000 24%,transparent)!important}
html .card.fold.fg-first{box-shadow:inset 0 1.5px 0 var(--glass-edge),0 14px 34px -12px color-mix(in srgb,#000 24%,transparent)!important}
/* sin costuras: sin sombras ni recortes por fila */
html .card.fold,html .card.fold.fg-last,html .card.fold.fg-first.fg-last{box-shadow:none!important;clip-path:none!important}
html .card.fold.fg-first{box-shadow:inset 0 1.5px 0 var(--glass-edge)!important;clip-path:none!important}
/* Grupo sin sombras por fila (vidrio y sólido); gana a las reglas de vidrio del tema oscuro */
html:not(#_) .card.fold,html:not(#_) .card.fold.fg-last,html:not(#_) .card.fold.fg-first.fg-last{box-shadow:none!important;clip-path:none!important;background-image:none!important}
html:not(#_) .card.fold.fg-first{box-shadow:inset 0 1.5px 0 var(--glass-edge)!important;clip-path:none!important}
/* Sombra suave del grupo (solo con vidrio): mitad lateral en cada fila, arriba en la primera y abajo en la última */
html:not([data-surface="solido"]):not(#_) .card.fold{box-shadow:0 0 26px -10px color-mix(in srgb,#000 26%,transparent)!important;clip-path:inset(0 -40px 0 -40px)!important}
html:not([data-surface="solido"]):not(#_) .card.fold.fg-first{box-shadow:inset 0 1.5px 0 var(--glass-edge),0 0 26px -10px color-mix(in srgb,#000 26%,transparent)!important;clip-path:inset(-40px -40px 0 -40px)!important}
html:not([data-surface="solido"]):not(#_) .card.fold.fg-last{clip-path:inset(0 -40px -40px -40px)!important}
html:not([data-surface="solido"]):not(#_) .card.fold.fg-first.fg-last{clip-path:none!important}

/* Etiquetas de categoría dentro de una pantalla */
.fglbl{display:block;grid-column:1/-1;font-weight:700;font-size:.7rem;letter-spacing:.07em;text-transform:uppercase;color:var(--muted);margin:16px 8px 6px}
.fglbl[hidden]{display:none}

/* ---- Vista de productos (celular): detalle, lista, mosaico ---- */
.vsw{display:none}
@media (max-width:1099px){
  .vsw{display:inline-flex;gap:0;margin-left:auto;align-self:flex-end;border:1px solid var(--line);border-radius:10px;overflow:hidden}
  .vsw button{width:44px;height:44px;border:0;background:transparent;color:var(--muted);display:flex;align-items:center;justify-content:center;padding:0}
  .vsw button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
  .vsw button[aria-pressed="true"]{background:color-mix(in srgb,var(--accent) 13%,transparent);color:var(--accent)}
  .vsw button+button{border-left:1px solid var(--line)}
  #ilist .thead{display:none}

  /* Detalle (mejorado): foto, nombre, precio y acciones en pocas líneas */
  #ilist.v-detalle .item.inv{display:grid;grid-template-columns:52px minmax(0,1fr) auto;column-gap:12px;row-gap:4px;align-items:start;padding:12px 2px}
  #ilist.v-detalle .item.inv>.isel{display:none}
  #ilist.v-detalle .item.inv>.thumb{grid-column:1;grid-row:1/4;width:52px;height:52px}
  #ilist.v-detalle .item.inv .main{display:contents}
  #ilist.v-detalle .item.inv .iid{grid-column:2;grid-row:1;min-width:0}
  #ilist.v-detalle .item.inv .pl{grid-column:3;grid-row:1;text-align:right}
  #ilist.v-detalle .item.inv .pp{font-size:1.05rem;font-weight:800;color:var(--fg)}
  #ilist.v-detalle .item.inv .pw,#ilist.v-detalle .item.inv .pcost,#ilist.v-detalle .item.inv .pk{display:none}
  #ilist.v-detalle .item.inv .ist{grid-column:2/4;grid-row:2}
  #ilist.v-detalle .item.inv .main>details{grid-column:2/4}
  #ilist.v-detalle .item.inv>.row{grid-column:2/4;grid-row:3;justify-content:flex-end;flex:none;margin-top:2px}
  #ilist.v-detalle .item.inv>.row .btn{flex:0 0 auto;min-height:44px;padding:6px 16px}
  #ilist.v-detalle .item.inv>.costpanel,#ilist.v-detalle .item.inv>div:not(.main):not(.row):not(.thumb){grid-column:1/-1}

  /* Lista: una línea por producto; toca para editar, ⋯ para más acciones */
  #ilist.v-lista .item.inv{display:grid;grid-template-columns:40px minmax(0,1fr) auto 36px;column-gap:10px;row-gap:0;align-items:center;padding:8px 2px;min-height:60px}
  #ilist.v-lista .item.inv>.isel{display:none}
  #ilist.v-lista .item.inv>.thumb{grid-column:1;grid-row:1/3;width:40px;height:40px;border-radius:10px;font-size:1rem}
  #ilist.v-lista .item.inv .main{display:contents}
  #ilist.v-lista .item.inv .iid{grid-column:2;grid-row:1/3;min-width:0}
  #ilist.v-lista .item.inv .iid .t{font-size:.95rem;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  #ilist.v-lista .item.inv .iid .s{font-size:.78rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  #ilist.v-lista .item.inv .iid .pkd{display:none}
  #ilist.v-lista .item.inv .pl{grid-column:3;grid-row:1;text-align:right}
  #ilist.v-lista .item.inv .pp{font-size:.98rem;font-weight:800;color:var(--fg)}
  #ilist.v-lista .item.inv .pw,#ilist.v-lista .item.inv .pcost,#ilist.v-lista .item.inv .pk{display:none}
  #ilist.v-lista .item.inv .ist{grid-column:3;grid-row:2;text-align:right;font-size:.75rem}
  #ilist.v-lista .item.inv .ist .pimei{display:none}
  #ilist.v-lista .item.inv .main>details{display:none}
  #ilist.v-lista .item.inv>.row{grid-column:4;grid-row:1/3;position:relative;justify-content:center;flex:none}
  #ilist.v-lista .item.inv>.costpanel,#ilist.v-lista .item.inv>div:not(.main):not(.row):not(.thumb){grid-column:1/-1}

  /* Mosaico: dos columnas con foto grande */
  #ilist.v-mosaico{display:grid;grid-template-columns:1fr 1fr;gap:10px}
  #ilist.v-mosaico>*:not(.item){grid-column:1/-1}
  #ilist.v-mosaico .item.inv{display:flex;flex-direction:column;align-items:stretch;gap:4px;padding:8px;border:1px solid var(--line);border-radius:14px;position:relative;min-height:0;min-width:0}
  #ilist.v-mosaico .item.inv>.isel{display:none}
  #ilist.v-mosaico .item.inv>.thumb{width:100%;height:96px;border-radius:10px;font-size:2rem}
  #ilist.v-mosaico .item.inv .main{display:flex;flex-direction:column;gap:2px;min-width:0}
  #ilist.v-mosaico .item.inv .iid .t{font-size:.9rem;font-weight:700;line-height:1.2;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  #ilist.v-mosaico .item.inv .iid .s{font-size:.75rem}
  #ilist.v-mosaico .item.inv .iid .pkd,#ilist.v-mosaico .item.inv .main>details{display:none}
  #ilist.v-mosaico .item.inv .pp{font-size:1rem;font-weight:800;color:var(--fg)}
  #ilist.v-mosaico .item.inv .pw,#ilist.v-mosaico .item.inv .pcost,#ilist.v-mosaico .item.inv .pk{display:none}
  #ilist.v-mosaico .item.inv .ist{font-size:.75rem}
  #ilist.v-mosaico .item.inv .ist .pimei{display:none}
  #ilist.v-mosaico .item.inv>.row{position:absolute;top:12px;right:12px;flex:none}
  #ilist.v-mosaico .item.inv>.costpanel{grid-column:1/-1}

  /* ⋯ en lista y mosaico */
  #ilist.v-lista .item.inv>.row .btn[data-edit],#ilist.v-mosaico .item.inv>.row .btn[data-edit]{display:none}
  #ilist.v-lista .pmenu,#ilist.v-mosaico .pmenu{position:relative}
  #ilist.v-lista .pmenu>summary,#ilist.v-mosaico .pmenu>summary{width:34px;height:34px;min-height:0;padding:0;justify-content:center;font-size:0;border-radius:50%;background:color-mix(in srgb,var(--surface) 85%,transparent)}
  #ilist.v-lista .pmenu>summary::after,#ilist.v-mosaico .pmenu>summary::after{content:"\22EF";font-size:1.3rem;line-height:1;color:var(--fg)}
  #ilist.v-lista .pmlist,#ilist.v-mosaico .pmlist{position:absolute;right:0;top:100%;z-index:8;flex-direction:column;flex-wrap:nowrap;min-width:150px;margin-top:4px;padding:6px;background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:0 10px 24px -8px rgba(0,0,0,.3)}
  #ilist.v-lista .pmlist .btn,#ilist.v-mosaico .pmlist .btn{width:100%;justify-content:flex-start}
  #ilist.v-lista .row:has(.pmenu[open]) .pmenu,#ilist.v-mosaico .row:has(.pmenu[open]) .pmenu{flex-basis:auto}
}

/* Lista y mosaico: las variantes (RAM, almacenamiento, color) se ven en una sola línea para distinguir modelos iguales */
@media (max-width:1099px){
  #ilist.v-lista .item.inv .iid .chips,#ilist.v-mosaico .item.inv .iid .chips{display:flex;flex-wrap:nowrap;gap:4px;margin:3px 0 0;overflow:hidden}
  #ilist.v-lista .item.inv .iid .chip,#ilist.v-mosaico .item.inv .iid .chip{flex:none;padding:1px 6px;font-size:.7rem;border-radius:6px}
  #ilist.v-mosaico .item.inv .iid .chips{flex-wrap:wrap}
}

html .card.fold[data-ic="doc"]{--ic:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M19.5 3.5 18 2l-1.5 1.5L15 2l-1.5 1.5L12 2l-1.5 1.5L9 2 7.5 3.5 6 2v14H3v3c0 1.66 1.34 3 3 3h12c1.66 0 3-1.34 3-3V2l-1.5 1.5zM15 20H6c-.55 0-1-.45-1-1v-1h10v2zm4-1c0 .55-.45 1-1 1s-1-.45-1-1v-3H8V5h11v14z'/><path fill='black' d='M9 7h6v2H9zm0 3h6v2H9z'/></svg>")}

/* Clientes y ventas: lista y mosaico (celular) */
@media (max-width:1099px){
  #clist .thead,#slist .thead{display:none}
  /* Clientes · lista */
  #clist.v-lista .item.cli{display:flex;align-items:center;gap:8px;padding:10px 2px;min-height:58px}
  #clist.v-lista .item.cli .main{flex:1;min-width:0}
  #clist.v-lista .item.cli .main>.s{font-size:.78rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  #clist.v-lista .item.cli .main>.s:nth-child(3),#clist.v-lista .item.cli .main>.s:nth-child(5){display:none}
  #clist.v-lista .item.cli>.row{display:none}
  #clist.v-lista .item.cli .t{font-weight:700;font-size:.97rem}
  /* Clientes · mosaico */
  #clist.v-mosaico{display:grid;grid-template-columns:1fr 1fr;gap:10px}
  #clist.v-mosaico>*:not(.item){grid-column:1/-1}
  #clist.v-mosaico .item.cli{display:flex;flex-direction:column;align-items:stretch;padding:12px 10px;border:1px solid var(--line);border-radius:14px;min-width:0;gap:4px;text-align:center}
  #clist.v-mosaico .item.cli .t.tava{flex-direction:column;gap:6px;font-weight:700;font-size:.92rem}
  #clist.v-mosaico .item.cli .t.tava>.ava{width:48px;height:48px;font-size:1.2rem}
  #clist.v-mosaico .item.cli .main>.s{font-size:.75rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  #clist.v-mosaico .item.cli .main>.s:nth-child(3),#clist.v-mosaico .item.cli .main>.s:nth-child(5){display:none}
  #clist.v-mosaico .item.cli>.row{display:none}
  /* Ventas · lista */
  #slist.v-lista .item.srow{padding:8px 2px}
  #slist.v-lista .item.srow>[data-open]{display:none}
  #slist.v-lista .item.srow:has(.receipt)>[data-open]{display:inline-flex}
  #slist.v-lista .item.srow .s{font-size:.76rem}
  /* Ventas · mosaico */
  #slist.v-mosaico{display:grid;grid-template-columns:1fr 1fr;gap:10px}
  #slist.v-mosaico>*:not(.item){grid-column:1/-1}
  #slist.v-mosaico .item.srow{display:flex;flex-direction:column;align-items:stretch;padding:10px;border:1px solid var(--line);border-radius:14px;min-width:0;gap:4px}
  #slist.v-mosaico .item.srow:has(.receipt){grid-column:1/-1}
  #slist.v-mosaico .item.srow .srow-r{flex-direction:column;align-items:stretch;gap:2px}
  #slist.v-mosaico .item.srow .ctot{font-size:1.05rem;text-align:left}
  #slist.v-mosaico .item.srow .s{font-size:.74rem}
  #slist.v-mosaico .item.srow>[data-open]{display:none}
  #slist.v-mosaico .item.srow:has(.receipt)>[data-open]{display:inline-flex}
  .frow .srow-r{align-items:flex-start}
}

/* Facturas: resultado de búsqueda */
.frow{display:flex;flex-direction:column;align-items:stretch;gap:8px}
.frow .frtop{display:flex;align-items:flex-start;gap:10px;justify-content:space-between}
.frow .frtop .main{flex:1;min-width:0}
.frow .frtop .ctot{flex:none;white-space:nowrap}
.frow .fbtns{display:flex;flex-wrap:wrap;gap:8px}
.frow .fbtns .btn{flex:1 1 auto;min-width:0;width:auto}

/* Proveedores, órdenes de servicio y cotizaciones: lista y mosaico (celular) */
@media (max-width:1099px){#pcshare{--pc:1} 
  #suplist .seg+.row .vsw,#svlist~* .vsw{margin-left:0}
  #suplist .row>.vsw,#tab-servicio .row>.vsw{align-self:flex-end}
  /* lista */
  #suplist.v-lista .item.supitem .sacts,#svlist.v-lista .item.svrow>[data-svopen],#qlist.v-lista .item.qrow>[data-qopen]{display:none}
  #svlist.v-lista .item.svrow:has([aria-expanded="true"])>[data-svopen],#qlist.v-lista .item.qrow:has([aria-expanded="true"])>[data-qopen]{display:inline-flex}
  #suplist.v-lista .item.supitem .main>.s:nth-of-type(n+3),#svlist.v-lista .item.svrow .main>.s:nth-of-type(n+3){display:none}
  #suplist.v-lista .item.supitem{padding:8px 2px}
  #suplist.v-lista .item.supitem .main>.s,#svlist.v-lista .item.svrow .main>.s,#qlist.v-lista .item.qrow .s{font-size:.76rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  /* mosaico */
  #suplist.v-mosaico,#svlist.v-mosaico,#qlist.v-mosaico{display:grid;grid-template-columns:1fr 1fr;gap:10px}
  #suplist.v-mosaico>*:not(.item),#svlist.v-mosaico>*:not(.item),#qlist.v-mosaico>*:not(.item){grid-column:1/-1}
  #suplist.v-mosaico .item.supitem,#svlist.v-mosaico .item.svrow,#qlist.v-mosaico .item.qrow{display:flex;flex-direction:column;align-items:stretch;padding:10px;border:1px solid var(--line);border-radius:14px;min-width:0;gap:4px}
  #svlist.v-mosaico .item.svrow:has([aria-expanded="true"]),#qlist.v-mosaico .item.qrow:has([aria-expanded="true"]){grid-column:1/-1}
  #suplist.v-mosaico .item.supitem .sacts,#svlist.v-mosaico .item.svrow>[data-svopen],#qlist.v-mosaico .item.qrow>[data-qopen]{display:none}
  #svlist.v-mosaico .item.svrow:has([aria-expanded="true"])>[data-svopen],#qlist.v-mosaico .item.qrow:has([aria-expanded="true"])>[data-qopen]{display:inline-flex}
  #suplist.v-mosaico .item.supitem .main>.s:nth-of-type(n+3),#svlist.v-mosaico .item.svrow .main>.s:nth-of-type(n+3){display:none}
  #suplist.v-mosaico .item .s,#svlist.v-mosaico .item .s,#qlist.v-mosaico .item .s{font-size:.74rem}
  #qlist.v-mosaico .item.qrow>.row:first-child{flex-direction:column;align-items:stretch;gap:2px}
  #qlist.v-mosaico .item.qrow>.row:first-child .num{text-align:left}
}

/* Variantes agrupadas por modelo (lista y mosaico) */
@media (max-width:1099px){
  #ilist .grp-sub{display:none!important}
  #ilist .grp-sub.grp-show{display:grid!important}
  #ilist.v-mosaico .grp-sub.grp-show{display:flex!important}
  #ilist .grp-sub.grp-show{background:color-mix(in srgb,var(--accent) 6%,transparent)}
  #ilist .grp-head .iid .chips,#ilist .grp-head .ist,#ilist .grp-head .iid .s{display:none!important}
  #ilist .grp-head .gcnt{font-size:.78rem;color:var(--accent);font-weight:700;margin-top:2px}
  #ilist .grp-head .gar{display:inline-block;width:1em}
  #ilist .grp-head>.row{display:none}
}

/* Campos de fecha: no se salen de la pantalla (iPhone) y llevan icono de calendario */
input[type="date"],input[type="month"],input[type="time"],input[type="datetime-local"]{
  -webkit-appearance:none;appearance:none;display:block;box-sizing:border-box;width:100%;min-width:0;max-width:100%;min-height:44px;text-align:left;
  padding-right:40px;background-repeat:no-repeat;background-position:right 12px center;background-size:20px 20px;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322a35a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='5' width='18' height='16' rx='3'/><path d='M3 10h18M8 3v4M16 3v4'/></svg>");
}
html:root input[type="date"],html:root input[type="month"],html:root input[type="time"],html:root input[type="datetime-local"]{background-image:var(--cal-ico,url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322a35a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='5' width='18' height='16' rx='3'/><path d='M3 10h18M8 3v4M16 3v4'/></svg>"))}
input[type="date"]::-webkit-calendar-picker-indicator{display:none!important;pointer-events:none}
input[type="date"]::-webkit-date-and-time-value,input[type="month"]::-webkit-date-and-time-value{text-align:left;min-height:1.2em}
.f,.row>*{min-width:0}
html,body{overflow-x:clip;max-width:100%}

/* Separación entre un grupo de secciones y lo que está arriba */
html .card.fold.fg-first:not(:first-child):not(.fglbl + *){margin-top:14px!important}

/* Sin barra indicadora en las secciones abiertas; la fila abierta ya se distingue por su fondo */
html .card.fold::before,html .card.fold:not(.closed)::before{display:none!important;content:none!important}
/* En pantallas táctiles el toque en un campo de fecha lo recibe Cuadra, no el selector del teléfono */
@media (pointer:coarse){label input[type="date"]{pointer-events:none}}

/* Vidrio: luz de color detrás de todo el contenido para que el vidrio se note también en las subsecciones */
html:not([data-style]) body{
  background-image:none !important;
  background-attachment:fixed!important;background-repeat:no-repeat!important}
html .card.fold.closed:not(.sf-open)>*:not(h2){display:none!important}

@media (min-width:1100px){
  .factbar{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:12px;align-items:end}
  .factbar .f{margin:0}
  #factlist{display:grid;grid-template-columns:repeat(auto-fill,minmax(420px,1fr));gap:12px}
  #factlist .frow{border:1px solid var(--line);border-radius:14px;padding:12px}
  #factlist>*:not(.item){grid-column:1/-1}
}

/* PC: Detalle (la tabla de siempre) o Mosaico en Inventario y Clientes */
@media (min-width:1100px){
  #ivsw,.vsw[data-vk="cli"]{display:inline-flex;gap:0;margin-left:auto;align-self:flex-end;border:1px solid var(--line);border-radius:10px;overflow:hidden}
  #ivsw button,.vsw[data-vk="cli"] button{width:44px;height:44px;border:0;background:transparent;color:var(--muted);display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0}
  #ivsw button svg,.vsw[data-vk="cli"] button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
  #ivsw button[aria-pressed="true"],.vsw[data-vk="cli"] button[aria-pressed="true"]{background:color-mix(in srgb,var(--accent) 13%,transparent);color:var(--accent)}
  #ivsw button+button,.vsw[data-vk="cli"] button+button{border-left:1px solid var(--line)}
  #ivsw [data-iv="lista"],.vsw[data-vk="cli"] [data-vw="lista"]{display:none}
  /* Inventario · mosaico */
  #ilist.v-mosaico,#clist.v-mosaico{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:14px}
  #ilist.v-mosaico>*:not(.item),#clist.v-mosaico>*:not(.item){grid-column:1/-1}
  #ilist.v-mosaico .thead,#clist.v-mosaico .thead{display:none}
  #ilist.v-mosaico .item.inv{display:flex!important;flex-direction:column;align-items:stretch;gap:6px;padding:12px;border:1px solid var(--line);border-radius:16px;position:relative;min-width:0}
  #ilist.v-mosaico .item.inv>.isel{position:absolute;top:18px;left:18px;z-index:2}
  #ilist.v-mosaico .item.inv>.thumb{width:100%;height:120px;border-radius:12px;font-size:2.4rem}
  #ilist.v-mosaico .item.inv .main{display:flex;flex-direction:column;gap:4px;min-width:0}
  #ilist.v-mosaico .item.inv .pl{text-align:left}
  #ilist.v-mosaico .item.inv .pp{font-size:1.1rem;font-weight:800;color:var(--fg)}
  #ilist.v-mosaico .item.inv>.row{display:flex;gap:8px;margin-top:auto}
  /* Clientes · mosaico */
  #clist.v-mosaico .item.cli{display:flex!important;flex-direction:column;align-items:stretch;gap:6px;padding:14px;border:1px solid var(--line);border-radius:16px;min-width:0}
  #clist.v-mosaico .item.cli .main>.s:nth-child(3){display:none}
  #clist.v-mosaico .item.cli>.row{display:flex;flex-wrap:wrap;gap:6px;margin-top:auto}
}
@media (min-width:1100px){
  html #ilist.v-mosaico .item.inv{flex-wrap:nowrap}
  html #ilist.v-mosaico .item.inv>.thumb{margin:0!important;width:100%;box-sizing:border-box;flex:none}
  html #ilist.v-mosaico .item.inv>.row{width:100%;justify-content:flex-start;flex-wrap:wrap;margin-left:0}
}
@media (min-width:1100px){
  html #clist.v-mosaico .item.cli>.row{display:grid;grid-template-columns:1fr 1fr;gap:6px}
  html #clist.v-mosaico .item.cli>.row .btn{width:100%;min-width:0;flex:none}
}

/* Código de recuperación */
.reccode{font-size:26px;font-weight:800;letter-spacing:.08em;text-align:center;padding:16px 10px;margin:10px 0;border-radius:14px;background:var(--card2,rgba(127,127,127,.12));border:1px dashed var(--line,rgba(127,127,127,.4));user-select:all;-webkit-user-select:all;word-break:break-all}

/* Estilo Vidrio v2 (propuesta 2): resplandor verde arriba a la derecha, tarjetas translúcidas con borde fino,
   total en degradé del color del negocio y botón de cobrar claro. Solo con vidrio; el sólido no cambia.
   Todo sale de --accent, así que el color que elija el negocio también cambia el resplandor y el degradé. */
:root{--gv1:color-mix(in srgb,var(--accent) 30%,transparent);--gv2:color-mix(in srgb,var(--accent) 12%,transparent)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){--gv1:color-mix(in srgb,var(--accent) 46%,transparent);--gv2:color-mix(in srgb,var(--accent) 18%,transparent)}}
:root[data-theme="dark"]{--gv1:color-mix(in srgb,var(--accent) 46%,transparent);--gv2:color-mix(in srgb,var(--accent) 18%,transparent)}
html:root:not([data-surface="solido"]):not([data-style="ninguno"]) body::before{
  background:none}
html:not([data-surface="solido"]) .card{border-color:color-mix(in srgb,var(--accent) 14%,var(--glass-edge))}
html:not([data-surface="solido"]) .card h2{font-size:1.05rem;letter-spacing:-.02em}
/* barra de total: degradé verde con texto oscuro, botón claro (en modo claro, botón negro) */
html:not([data-surface="solido"]):not([data-style="ninguno"]) .vbar{background:var(--accent);color:var(--accent-fg);border-color:rgba(255,255,255,.28);box-shadow:inset 0 1.5px 0 rgba(255,255,255,.4),0 16px 34px -12px color-mix(in srgb,var(--accent) 70%,transparent)}
html:not([data-surface="solido"]):not([data-style="ninguno"]) .vbar .vbi,html:not([data-surface="solido"]):not([data-style="ninguno"]) .vbar .vbi *{color:inherit}
html:not([data-surface="solido"]):not([data-style="ninguno"]) .vbar .vbi b{font-size:1.45rem;letter-spacing:-.02em}
html:root:not([data-style="ninguno"]) .vbar .btn,html:root:not([data-style="ninguno"]) .vbar .btn.primary{background:#fff!important;background-image:none!important;color:#0a0a0a!important;border-color:transparent!important}
/* opción elegida en los segmentos: píldora clara (oscuro) o negra (claro), como en la maqueta */
html:not([data-surface="solido"]) .seg button.on{background:var(--fg);color:var(--bg);box-shadow:none}

/* ===== Ajuste de diseño (v380) ===== */
/* 1) Selectores en píldora: reemplazan las pestañas con subrayado (Hoy/Ayer…, Normal/Grande…, Automático/Claro/Oscuro…).
      Opción elegida: píldora clara en oscuro y negra en claro. */
html .seg{background:var(--glass)!important;border:1px solid var(--glass-edge)!important;border-radius:22px!important;padding:4px!important;gap:4px!important;-webkit-backdrop-filter:var(--blur)!important;backdrop-filter:var(--blur)!important;box-shadow:var(--glass-hi)!important}
html .seg button,html .seg .btn{border-radius:18px!important;border:0!important;background:transparent!important;color:var(--muted)!important;box-shadow:none!important;font-weight:700;min-height:44px}
html .seg button:hover{background:color-mix(in srgb,var(--fg) 8%,transparent)!important}
html .seg button.on,html .seg button[aria-pressed="true"],html .seg button[aria-selected="true"],html .seg .btn.on,html[data-style="mostrador"] .seg button.on{background:var(--accent)!important;color:var(--accent-fg)!important;font-weight:800}
html .r-chips{gap:8px;border-bottom:0;padding:4px 16px}
html .r-chip{border:1px solid var(--glass-edge)!important;border-radius:999px!important;background:var(--glass)!important;color:var(--muted)!important;padding:9px 16px;margin-bottom:0;-webkit-backdrop-filter:var(--blur)!important;backdrop-filter:var(--blur)!important}
html .r-chip.on{background:var(--accent)!important;color:var(--accent-fg)!important;border-color:transparent!important;font-weight:800}

/* 2) Tarjetas destacadas (Vendido en Reportes) en oscuro: se había quitado todo el fondo y el texto oscuro
      quedaba sobre negro. Vuelven con el degradé del color del negocio. */
html[data-style="mostrador"]:not([data-theme="light"]):not([data-q]) .r-hero.r-hero{background-image:none!important;background-color:var(--accent)!important}

/* 3) Inventario, vista Detalle: fila ordenada en cuatro renglones
      [foto] nombre · marca ........ precio / etiquetas (RAM, memoria, color) / estado ........ [Editar][⋯] */
@media (max-width:1099px){
  #ilist.v-detalle .item.inv{grid-template-columns:44px minmax(0,1fr) auto;column-gap:12px;row-gap:6px;align-items:center;padding:14px 4px}
  #ilist.v-detalle .item.inv>.thumb{grid-column:1;grid-row:1/3;width:44px;height:44px;border-radius:12px;font-size:1rem;align-self:start}
  #ilist.v-detalle .item.inv .main,#ilist.v-detalle .item.inv .iid{display:contents}
  #ilist.v-detalle .item.inv .iid>.t{grid-column:2;grid-row:1;align-self:end;font-size:1rem;font-weight:700;line-height:1.2;overflow-wrap:anywhere}
  #ilist.v-detalle .item.inv .pl{grid-column:3;grid-row:1;align-self:end;text-align:right;margin:0}
  #ilist.v-detalle .item.inv .iid>.s{grid-column:2/4;grid-row:auto;margin:0;font-size:.82rem;line-height:1.25}
  #ilist.v-detalle .item.inv .iid>.chips{grid-column:1/-1;grid-row:auto;margin:2px 0 0;gap:4px}
  #ilist.v-detalle .item.inv .iid>.chips .chip{padding:1px 8px;font-size:.72rem;border-radius:7px;font-weight:600}
  #ilist.v-detalle .item.inv .ist{grid-column:1/3;grid-row:auto;display:flex;flex-wrap:wrap;gap:4px;align-items:center}
  #ilist.v-detalle .item.inv>.row{grid-column:3;grid-row:auto;flex-wrap:nowrap;gap:6px;margin:0;justify-content:flex-end}
  #ilist.v-detalle .item.inv>.row [data-edit]{font-size:0;width:44px;min-height:44px;padding:0;position:relative}
  #ilist.v-detalle .item.inv>.row [data-edit]::after{content:"";position:absolute;inset:0;margin:auto;width:20px;height:20px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.1 2.1 0 013 3L7 19l-4 1 1-4z'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.1 2.1 0 013 3L7 19l-4 1 1-4z'/%3E%3C/svg%3E") center/contain no-repeat}
  #ilist.v-detalle .item.inv>.row .btn:not([data-edit]){min-height:44px}
  #ilist.v-detalle .item.inv .pmenu>summary{font-size:0;width:44px;padding:0;display:flex;align-items:center;justify-content:center}
  #ilist.v-detalle .item.inv .pmenu>summary::after{content:"\22EF";font-size:1.5rem;line-height:1}
  #ilist.v-detalle .item.inv .main>details{grid-column:1/-1}
  /* v513: el menú «⋯» flota sobre la fila (antes empujaba el nombre y lo dejaba de una letra por renglón) */
  #ilist.v-detalle .item.inv .pmenu{position:relative}
  #ilist.v-detalle .row:has(.pmenu[open]) .pmenu{flex-basis:auto}
  #ilist.v-detalle .pmlist{position:absolute;right:0;top:100%;z-index:8;flex-direction:column;flex-wrap:nowrap;min-width:170px;margin-top:4px;padding:6px;background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:0 10px 24px -8px rgba(0,0,0,.3)}
  #ilist.v-detalle .pmlist .btn{width:100%;justify-content:flex-start}
}

/* Selectores del cuadro «Pantalla y accesibilidad»: opciones del mismo ancho; si son cuatro, dos por renglón */
html #dispmodal .seg{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr)}
html #dispmodal .seg:has(>:nth-child(4)){grid-auto-flow:row;grid-template-columns:repeat(2,minmax(0,1fr))}
html #dispmodal .seg button{white-space:normal;line-height:1.15;padding:8px 6px}

/* Facturas (sección propia) */
.factbar{display:flex;flex-direction:column;gap:12px}
.factbar .f{margin:0}
.fchips{display:flex;flex-wrap:wrap;gap:8px}
.fchips .r-chip{padding:8px 14px}
.fsum{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.fsum>div{display:flex;flex-direction:column;gap:2px;background:var(--field);border-radius:var(--r-md);padding:10px 14px}
.fsum b{font-size:1.25rem}
@media (min-width:1100px){
  .factbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center}
}
.fhead{margin:16px 2px 0}
.fhead h1{font-size:1.5rem;font-weight:800;letter-spacing:-.02em}
.fhead .hint{margin-top:2px}
#factfrom,#factto{font-size:.88rem;padding-right:40px}
@media (min-width:1100px){.fhead{display:none}}

/* Ajustes · Tu negocio y el comprobante (v383): todo a la vista, en grupos */
.sgrp{display:flex;flex-direction:column;gap:12px;padding:16px 0 4px;margin-top:6px;border-top:1px solid var(--glass-edge,rgba(128,128,128,.25))}
.sgrp:first-of-type{border-top:0;padding-top:4px;margin-top:0}
.sgrp>h3{margin:0;font-size:.78rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--mute)}
.sgrp>.hint{margin-top:-6px}
.sgrp>.f,.sgrp>.row{margin:0}
#saparr>.row:first-of-type{align-items:center;gap:14px;padding:12px;border-radius:16px;background:var(--glass);border:1px solid var(--glass-edge)}
#saparr #slogo{flex:0 0 76px;min-height:76px;display:grid;place-items:center} /* v510: el logo mide 76 (.thumb.big); con 64 se montaba sobre los botones */
#saparr #scolors{display:grid;grid-template-columns:repeat(auto-fill,minmax(44px,1fr));gap:10px;margin-top:8px}
#saparr #sstyle{margin-top:8px}
#ssave{margin-top:16px}
#saparr #slogobtn{width:auto;align-self:flex-start}
#saparr>.row:first-of-type .grow{display:flex;flex-direction:column;gap:6px;align-items:flex-start}
#stexts textarea{min-height:72px}
#stexts textarea{field-sizing:content;max-height:none}

/* v482: cliente arriba de las formas de pago */
.vcliw{display:flex;flex-direction:column;gap:12px}
.vclibtn{display:none}
.vclibox{display:flex;flex-direction:column;gap:12px}
@media (max-width:899px){
  #tab-vender.sheetm .vclibtn{display:flex;align-items:center;gap:12px;width:100%;min-height:56px;padding:8px 14px;border-radius:16px;border:1px solid var(--line);background:var(--field);color:var(--fg,inherit);text-align:left;cursor:pointer;font:inherit}
  #tab-vender.sheetm .vcli-av{flex:none;width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--surface);color:var(--muted);font-weight:800}
  #tab-vender.sheetm .vcli-av svg{width:18px;height:18px}
  #tab-vender.sheetm .vcli-av.on{background:var(--accent);color:var(--accent-fg)}
  #tab-vender.sheetm .vcli-t{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.2}
  #tab-vender.sheetm .vcli-t small{color:var(--muted);font-size:.78rem;font-weight:600}
  #tab-vender.sheetm .vcli-t b{font-size:1rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  #tab-vender.sheetm .vcli-go{flex:none;color:var(--accent);font-weight:800;font-size:.9rem}
  #tab-vender.sheetm .vcliw.need .vclibtn{border-color:var(--warn);box-shadow:0 0 0 1px var(--warn) inset}
  #tab-vender.sheetm .vcliw.need .vcli-go{color:var(--warn)}
  #tab-vender.sheetm .vclibox{display:none}
  #tab-vender.sheetm.cli-open .vclibox{display:flex}
}
/* ===== Carrito en hoja (celular) · v277 ===== */
.vpayw,.vextrabtn,.shd #vclose,#vsheetbg{display:none}
.vextra{display:flex;flex-direction:column;gap:16px}
@media (max-width:899px){
  #tab-vender.sheetm>.cartcard{display:none}
  #tab-vender.sheetm.sheet-open>.cartcard{display:flex;flex-direction:column;gap:12px;position:fixed;left:0;right:0;bottom:0;max-height:92dvh;z-index:45;margin:0;border-radius:24px 24px 0 0;padding:16px 16px calc(14px + env(safe-area-inset-bottom,0px));background:var(--surface);border:1px solid var(--line);border-bottom:0;box-shadow:0 -18px 40px -14px rgba(0,0,0,.45);overflow:hidden;animation:vsheetup .22s ease-out}
  @keyframes vsheetup{from{transform:translateY(40px);opacity:0}to{transform:none;opacity:1}}
  #tab-vender.sheetm.sheet-open #vsheetbg{display:block;position:fixed;inset:0;z-index:44;background:rgba(0,0,0,.5)}
  #tab-vender.sheetm .cartcard .shd{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none}
  #tab-vender.sheetm .cartcard .shd h2{margin:0}
  #tab-vender.sheetm .shd #vclose{display:inline-flex}
  #tab-vender.sheetm .cart-scroll{overflow-y:auto;overflow-x:hidden;min-height:0;flex:1 1 auto;padding-right:2px;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}
  #tab-vender.sheetm .cart-foot{flex:none;border-top:1px solid var(--line);padding-top:12px}
  /* líneas compactas */
  #tab-vender.sheetm #vcart{overflow:hidden;position:relative;border-radius:12px}
  #tab-vender.sheetm .item.cl{padding:10px 0;gap:10px;background:var(--surface);position:relative;transition:transform .18s ease;touch-action:pan-y}
  #tab-vender.sheetm .item.cl .main{display:flex;flex-direction:column;gap:2px}
  #tab-vender.sheetm .item.cl .t{font-size:.95rem;line-height:1.25}
  #tab-vender.sheetm .item.cl .rt{display:flex;flex-direction:column;align-items:flex-end;gap:6px;flex:none}
  #tab-vender.sheetm .item.cl .lt{font-size:.95rem}
  #tab-vender.sheetm .item.cl .qty button{width:30px;height:30px}
  #tab-vender.sheetm #vcart.swiping::before{content:"Quitar";position:absolute;left:0;right:0;top:var(--ry,0);height:var(--rh,0);background:#d33 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18M8 6V4h8v2M6 6l1 14h10l1-14M10 11v6M14 11v6'/%3E%3C/svg%3E") no-repeat right 78px center/22px;color:#fff;font-weight:800;font-size:1rem;display:flex;align-items:center;justify-content:flex-end;padding-right:16px;border-radius:12px}
  #tab-vender.sheetm #vcart.swgo::before{background-color:#b71c1c}
  @media (pointer:coarse){#tab-vender.sheetm .item.cl [data-rm]{display:none}}
  #tab-vender.sheetm .vswipe{text-align:center}
  /* cómo paga */
  #tab-vender.sheetm .vpayw{display:flex;flex-direction:column;gap:8px}
  #tab-vender.sheetm .vpay{display:flex;gap:8px;overflow-x:auto;padding:2px 2px 6px;scrollbar-width:none}
  #tab-vender.sheetm .vpay::-webkit-scrollbar{display:none}
  #tab-vender.sheetm .vpill{flex:none;min-height:44px;padding:0 16px;border-radius:99px;border:1px solid var(--glass-edge);background:var(--field);color:var(--fg,inherit);font-weight:700;font-size:.95rem;cursor:pointer;white-space:nowrap}
  #tab-vender.sheetm .vpill.on{background:var(--accent)!important;color:var(--accent-fg)!important;border-color:transparent}
  #tab-vender.sheetm .vpay.shake{animation:vshake .4s}
  @keyframes vshake{0%,100%{transform:none}25%{transform:translateX(-6px)}75%{transform:translateX(6px)}}
  #tab-vender.sheetm #vmethodw{position:absolute;opacity:0;width:1px;height:1px;overflow:hidden;pointer-events:none}
  /* cliente, descuento y notas plegado */
  #tab-vender.sheetm .vextrabtn{display:flex;width:100%;justify-content:center}
  #tab-vender.sheetm .vextra{display:none}
  #tab-vender.sheetm.extra-open .vextra{display:flex}
}

/* v280: pantalla de venta registrada */
.sdlg{display:flex;flex-direction:column;gap:14px;max-width:380px;width:100%}
.sdrow{display:flex;justify-content:space-between;align-items:baseline;gap:12px;color:var(--muted)}
.sdrow b{color:var(--fg);font-size:1.05rem}
.sdrow .sdtot{font-size:1.7rem;font-family:var(--f-display)}
.sdchg{display:flex;flex-direction:column;align-items:center;gap:2px;margin-top:12px;padding:18px 12px;border-radius:var(--r-md);background:var(--accent);color:var(--accent-fg)}
.sdchg span{font-weight:700;font-size:.95rem}
.sdchg b{font-size:2.6rem;font-family:var(--f-display);line-height:1.1}
.sdchg.sdzero{background:var(--field);color:var(--muted)}
.sdchg.sdzero b{font-size:1.6rem}

/* v281: aviso de «Deshacer» ancho, con cuenta regresiva */
.toast.undo{display:flex;align-items:center;gap:10px;position:fixed;left:12px;right:12px;max-width:520px;margin-inline:auto;width:auto;padding:12px 12px 15px;border-radius:16px;overflow:hidden;text-align:left;white-space:normal;transform:none;background:#141b17;color:#f2f5f3;border:1px solid #2a3a31;font-weight:400;font-size:.92rem;animation:upop .2s ease-out}
@keyframes upop{from{opacity:0;transform:translateY(8px)}}
.toast.undo .uck{width:24px;height:24px;flex:none;border-radius:50%;background:var(--accent);display:grid;place-items:center}
.toast.undo .uck svg{width:14px;height:14px;fill:none;stroke:var(--accent-fg);stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.toast.undo .utx{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.toast.undo .utx b{font-weight:700}
.toast.undo .utx small{font-size:.8rem;opacity:.75}
.toast.undo .undobtn{flex:none;min-height:40px;padding:0 14px;border-radius:12px;border:0;background:var(--accent);color:var(--accent-fg);font-weight:800;cursor:pointer;white-space:nowrap}
.toast.undo .ubar{position:absolute;left:0;bottom:0;height:3px;width:100%;background:var(--accent);transform-origin:left;animation:ubar var(--ums,6s) linear forwards}
@keyframes ubar{to{transform:scaleX(0)}}
.sdundo svg{stroke-width:2.4}

/* v282: mientras se registra la venta no se puede tocar el carrito */
#tab-vender.selling .cartcard .cart-scroll{pointer-events:none;opacity:.6}

/* v288 · ventas cruzadas */
.xsell{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:2px 0 8px}
.xsell .xs-t{font-size:.75rem;color:var(--muted);font-weight:700;flex-basis:100%}
.xsell .chip{cursor:pointer;min-height:32px;padding:4px 10px}

/* v289 · pantalla de carga: logo dentro de un anillo que gira (sin barra); el anillo toma el color del negocio y se cierra al terminar */
.sp-ring{position:relative;width:112px;height:112px;display:grid;place-items:center;flex:none}
.sp-ring::before{content:"";position:absolute;inset:0;border-radius:50%;border:2.5px solid color-mix(in srgb,var(--fg) 10%,transparent);border-top-color:var(--accent);animation:orbspin 1.1s linear infinite;transition:border-color .3s}
#splash.ok .sp-ring::before{animation:none;border-color:var(--accent)}
.sp-ring .sp-logo{animation:none!important;box-shadow:none}
.sp-ring .sp-logo:not(.img){width:52px;height:52px;border-radius:14px}
.sp-ring .sp-logo.img{width:76px!important;height:60px!important;padding:0!important;object-fit:contain;filter:none}
@media (prefers-color-scheme:dark){html[data-logo-dark]:not([data-theme="light"]) .sp-ring .sp-logo.img{filter:invert(1) hue-rotate(180deg)}}
html[data-theme="dark"][data-logo-dark] .sp-ring .sp-logo.img{filter:invert(1) hue-rotate(180deg)}
#splash .sp-bar,#splash .sp-dots{display:none!important}
#splash .sp-pbar{display:block!important;width:100%;height:6px;border-radius:999px;margin-top:10px;overflow:hidden;background:color-mix(in srgb,var(--fg) 10%,transparent);box-shadow:none}
#splash .sp-pbar i{display:block;height:100%;width:0;border-radius:999px;background:var(--accent);box-shadow:none}
@media (prefers-reduced-motion:reduce){.sp-ring::before{animation:none;border-color:color-mix(in srgb,var(--accent) 55%,transparent)}}
@media (min-width:1100px){.sp-ring{width:136px;height:136px}.sp-ring .sp-logo.img{width:92px!important;height:72px!important}.sp-ring .sp-logo:not(.img){width:64px;height:64px}}
#splash .sp-steps b{display:none}
#splash .sp-steps li{gap:0}

/* v291 · pantalla de carga: logo que se llena de color + porcentaje (sin tarjeta, sin anillo, sin barra) */
html #splash .sp-card{background:transparent!important;border:0!important;box-shadow:none!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;padding:0!important;width:auto!important;gap:10px}
#splash .sp-pbar,#splash .sp-bar,#splash .sp-dots{display:none!important}
.sp-ring{display:grid;place-items:center;width:auto;height:auto}
.sp-ring::before{display:none}
.sp-ring>.sp-logo{grid-area:1/1}
.sp-ring .sp-logo:not(.img){width:84px;height:84px;border-radius:22px}
.sp-ring .sp-logo.img{width:170px!important;height:118px!important;object-fit:contain}
.sp-ring .sp-logo:not(.sp-fill){filter:grayscale(1) opacity(.26)!important}
.sp-ring .sp-fill{clip-path:inset(calc(100% - var(--sp,0%)) 0 0 0);animation:none}
@media (prefers-color-scheme:dark){html[data-logo-dark]:not([data-theme="light"]) .sp-ring .sp-logo.img:not(.sp-fill){filter:invert(1) hue-rotate(180deg) grayscale(1) opacity(.3)!important}}
html[data-theme="dark"][data-logo-dark] .sp-ring .sp-logo.img:not(.sp-fill){filter:invert(1) hue-rotate(180deg) grayscale(1) opacity(.3)!important}
.sp-pct{display:flex;align-items:baseline;justify-content:center;gap:1px;font-family:var(--f-display);font-variant-numeric:tabular-nums;line-height:1}
.sp-pct b{font-size:1.7rem;font-weight:700;letter-spacing:-.03em}
.sp-pct span{font-size:.85rem;font-weight:700;color:var(--accent)}
#splash.nobrand .sp-pct{opacity:1}
@media (min-width:1100px){.sp-ring .sp-logo.img{width:220px!important;height:150px!important}.sp-ring .sp-logo:not(.img){width:104px;height:104px}.sp-pct b{font-size:2.1rem}}

/* v292 · entrada con PIN: puntos siempre visibles (6 espacios, crecen hasta 8), crédito discreto y enlaces con más aire */
.auth.pad .pindots{min-height:30px;gap:12px}
.auth.pad .pindots i{width:15px;height:15px;border-width:2px;border-color:color-mix(in srgb,var(--fg) 30%,transparent)}
.auth.pad .pindots i.on{border-color:var(--accent)}
#auth .auth.pad .asheet>.credit{padding-top:6px}
#auth .auth.pad .credit img{height:26px}
#auth .auth.pad .asheet .linkbtn{font-size:.92rem;padding:9px 10px}
#auth .auth.pad #amail{font-weight:700;text-decoration:underline}
#auth .auth.pad #aforgot{color:var(--muted);text-decoration:none;font-weight:600}
html[data-style="mostrador"]:not([data-theme="light"]) #auth .auth.pad #amail{color:color-mix(in srgb,var(--accent) 55%,#fff)}
.sp-pct,.sp-pct b,.sp-pct span{color:var(--accent)}

/* v294 · pantalla de venta registrada: total primero, detalle plegado, acciones con íconos */
#vdone .dn{display:flex;flex-direction:column;gap:12px}
.dn-tot{display:flex;flex-direction:column;align-items:center;gap:2px;padding:4px 0}
.dn-tot span{font-size:.8rem;color:var(--muted);font-weight:600}
.dn-tot b{font-family:var(--f-display);font-size:2.2rem;font-weight:800;letter-spacing:-.02em;line-height:1.1}
.dn-tot small{font-size:.82rem;color:var(--muted)}
.dn-lines{background:var(--field);border-radius:12px;padding:10px 12px;display:flex;flex-direction:column;gap:4px;font-size:.9rem}
.dn-lines .r{display:flex;justify-content:space-between;gap:10px}
.dn-profit b{white-space:nowrap}
.dn-profit{display:flex;justify-content:space-between;align-items:center;gap:10px;border-radius:12px;padding:10px 12px;background:var(--ok-soft,color-mix(in srgb,var(--ok,#15803d) 14%,transparent));color:var(--ok,#15803d);font-size:.88rem;font-weight:700}
.dn-profit small{font-weight:600;opacity:.85}
.dn-more{background:none;border:0;color:var(--muted);font:inherit;font-size:.85rem;font-weight:600;padding:6px;cursor:pointer}
.dn-fold{display:flex;flex-direction:column;gap:10px}
.dn-fold[hidden]{display:none}
.dn-ics{display:flex;justify-content:center;gap:18px}
.dn-ic{display:flex;flex-direction:column;align-items:center;gap:6px;background:none;border:0;font:inherit;font-size:.8rem;font-weight:700;color:var(--fg);cursor:pointer;min-width:72px;padding:0}
.dn-ic svg{width:54px;height:54px;padding:15px;box-sizing:border-box;border-radius:18px;background:var(--field);fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transition:transform .12s}
.dn-ic.p svg{background:var(--accent);color:var(--accent-fg,#fff)}
.dn-ic:active svg{transform:scale(.92)}
.dn-new{min-height:52px;font-size:1.05rem}

/* v295 · carrito en hoja con el mismo diseño de «Venta registrada»: total primero, productos en recuadro, enlaces discretos y un solo botón grande */
#vcpill,#vsumtop{display:none}
#tab-vender.sheetm .cartcard .shd h2{display:flex;align-items:center;gap:10px}
#tab-vender.sheetm #vcpill{display:inline-flex}
#tab-vender.sheetm #vsumtop{display:flex;flex:none}
#tab-vender.sheetm #vsumtop b{font-size:2rem}
#tab-vender.sheetm #vcart{background:var(--field);padding:0 12px}
#tab-vender.sheetm .item.cl{background:transparent;padding:10px 0}
#tab-vender.sheetm .item.cl+.item.cl{border-top:1px dashed color-mix(in srgb,var(--fg) 14%,transparent)}
#tab-vender.sheetm .vswipe{font-size:.78rem}
#tab-vender.sheetm .vextrabtn{border:0!important;background:none!important;box-shadow:none!important;color:var(--muted);font-weight:700;font-size:.88rem;min-height:36px}
#tab-vender.sheetm .cart-foot{display:flex;flex-direction:column;gap:8px;border-top:0;padding-top:4px}
#tab-vender.sheetm .cart-foot .rtot,#tab-vender.sheetm .cart-foot .riva{display:none}
#tab-vender.sheetm .cart-foot>.row{display:flex;flex-direction:column-reverse;gap:6px}
#tab-vender.sheetm #vconfirm{width:100%;min-height:54px;font-size:1.1rem}
#tab-vender.sheetm #vhold{border:0;background:none;box-shadow:none;color:var(--muted);font-weight:700;min-height:36px;width:100%}
#tab-vender.sheetm .cart-foot>.row>*{flex:none!important}

/* v296 · formas de pago en cuadrícula de 3 columnas con ícono arriba */
#tab-vender.sheetm .vpay{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;overflow:visible;padding:2px 0 4px}
#tab-vender.sheetm .vpill{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:56px;padding:5px 4px;border-radius:14px;font-size:.8rem;line-height:1.15;text-align:center;white-space:normal;min-width:0}
#tab-vender.sheetm .vpill svg{width:24px;height:24px;flex:none}
#tab-vender.sheetm .vpill span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}

/* v297 · cierre de caja y gastos con el diseño nuevo */
.cj-tot{padding:10px 0 14px}
.cj-rows{border-top:0;padding-top:0;gap:0}
.cj-rows .r{align-items:center;gap:10px;padding:9px 0;border-bottom:1px solid var(--line)}
.cj-rows .r:last-child{border-bottom:0}
.cj-rows .r>span:not(.num){flex:1}
.cj-rows .r .ci,.cj-rows .r .ci svg{width:20px;height:20px;display:block}
.cj-rows .r .ci{color:var(--accent-2);flex:none}
.cj-rows .r.sub{padding-left:30px;font-size:.9rem}
.cj-rows .r.sub svg{width:16px;height:16px;margin-right:2px;color:var(--accent-2);flex:none}
.cj-rows .r.neg .ci{color:#f87171}
#cdiff{text-align:center}
.cchip{display:inline-flex;align-items:center;gap:4px;border-radius:99px;padding:5px 14px;font-size:.85rem;background:var(--accent-soft);color:var(--accent-2)}
.cchip.warn{background:rgba(245,158,11,.16);color:#f59e0b}
#gcard .gamt input{font-size:2rem;text-align:center;font-weight:800;font-family:var(--f-display);padding:12px}
#gcard .glbl{font-size:.8rem;color:var(--muted);font-weight:600;margin:12px 0 6px}
#gcard .gpick{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
#gcard .gpk{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:56px;padding:8px 4px;border-radius:12px;border:1px solid var(--line);background:var(--field);color:var(--muted);font-size:.75rem;font-weight:600;line-height:1.15;text-align:center;cursor:pointer}
#gcard .gpk svg{width:22px;height:22px;flex:none}
#gcard .gpk.on{border-color:var(--accent);background:var(--accent-soft);color:var(--accent-2)}

/* v298 · formas de pago con ícono y motivos rápidos en el resto de pantallas */
.mgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;flex:1 1 100%;width:100%;margin-top:4px}
.mgrid[hidden]{display:none}
.mgrid .gpk{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:56px;padding:8px 4px;border-radius:12px;border:1px solid var(--line);background:var(--field);color:var(--muted);font-size:.75rem;font-weight:600;line-height:1.15;text-align:center;cursor:pointer}
.mgrid .gpk svg{width:22px;height:22px;flex:none}
.mgrid .gpk.on{border-color:var(--accent);background:var(--accent-soft);color:var(--accent-2)}
/* v557 (Juan): en crédito y Plan Separe, el abono inicial arriba a todo el ancho y su forma de pago debajo en 2 × 2 (antes, lado a lado y desordenado) */
#vdeprow{flex-direction:column;align-items:stretch;gap:14px}
#vdeprow>label.f{flex:none;width:100%}
#vdeprow .mgrid{grid-template-columns:repeat(2,minmax(0,1fr))}
#vdeprow .mgrid .gpk{flex-direction:row;justify-content:flex-start;gap:10px;min-height:48px;padding:8px 12px;font-size:.88rem;text-align:left}
#vdeprow .mgrid .gpk span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pd-tot{padding:6px 0 10px}
.mchips{display:flex;flex-wrap:wrap;gap:6px;width:100%;margin-top:2px}
.mchip{border:1px solid var(--line);background:var(--field);color:var(--muted);border-radius:99px;padding:6px 12px;font-size:.8rem;font-weight:600;cursor:pointer}
.mchip:active{background:var(--accent-soft);color:var(--accent-2)}

.quick{grid-template-columns:repeat(3,minmax(0,1fr))}
.quick .btn.qk{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:68px;padding:10px 4px;font-size:.75rem;line-height:1.15;text-align:center}
.quick .btn.qk svg{width:22px;height:22px;flex:none}
.quick .btn:last-child:nth-child(odd){grid-column:auto}
#qtot{border-top:0;padding-top:0}

/* v299 · Fiados con el diseño nuevo (en la tabla de escritorio se conserva igual) */
#ftiles{display:block}
.fi-tot{padding:6px 0 4px}
.fi-chips{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-top:6px}
.fi-bar{height:6px;border-radius:99px;background:var(--line);overflow:hidden;margin-top:8px;width:100%}
.fi-bar i{display:block;height:100%;background:var(--accent);border-radius:99px}
.fi-bart{margin-top:4px}
.item.fia .fi-acts .btn svg{width:18px;height:18px;flex:none}
@media (max-width:1099px){
  .item.fia .fi-acts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;width:100%}
  .item.fia .fi-acts .btn{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:54px;padding:8px 2px;font-size:.72rem;line-height:1.15;text-align:center}
  .item.fia .fi-acts .btn:not(.primary) svg{color:var(--accent-2)}
}
@media (min-width:1100px){
  .item.fia .fi-acts .btn svg,.item.fia .fi-bar,.item.fia .fi-bart{display:none}
}

/* v300 · Servicio técnico: pasos de la orden con ícono */
.sv-steps{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;margin-top:10px;width:100%}
.sv-steps div{display:flex;flex-direction:column;align-items:center;gap:3px;font-size:.66rem;color:var(--muted);text-align:center;line-height:1.1}
.sv-steps svg{width:30px;height:30px;padding:6px;border-radius:50%;background:var(--field);border:1px solid var(--line);flex:none;box-sizing:border-box}
.sv-steps .d{color:var(--accent-2)}
.sv-steps .d svg{background:var(--accent-soft);border-color:var(--accent)}
.sv-steps .n{color:var(--fg);font-weight:700}
.sv-steps .n svg{background:var(--accent);border-color:var(--accent);color:var(--accent-fg)}
.svrow .btn svg{width:18px;height:18px;flex:none;margin-right:6px;vertical-align:-4px}
.svrow .btn{display:inline-flex;align-items:center;justify-content:center}

/* v301 · Ventas y Cotizaciones: ícono de la forma de pago, chip frente a ayer y acciones con ícono */
.vs-chip{margin-top:8px}
.tiles .tile:first-child .vs-chip .cchip{background:rgba(255,255,255,.2);color:inherit}
.spi{display:inline-block;vertical-align:-4px;margin-right:6px;color:var(--accent-2)}
.spi svg{width:18px;height:18px;display:block}
.spi.x{color:var(--bad)}
.srow .row .btn svg,.qrow .row .btn svg{width:16px;height:16px;flex:none;margin-right:5px;vertical-align:-3px}
.srow .row .btn,.qrow .row .btn{display:inline-flex;align-items:center;justify-content:center}

/* v302 · Compras, Reportes, Agenda y Ajustes con el diseño nuevo */
.pur .btn svg,#aglist .row .btn svg{width:16px;height:16px;flex:none;margin-right:5px;vertical-align:-3px}
.pur .btn,#aglist .row .btn{display:inline-flex;align-items:center;justify-content:center}
.rk{display:flex;align-items:center;gap:5px}
.rk svg{width:16px;height:16px;flex:none;color:var(--accent-2)}
.cchip.rpd{padding:2px 9px;font-size:.75rem;font-weight:700}
.cchip.bad{background:var(--bad-soft);color:var(--bad)}
#apsum .dn-tot{padding:4px 0}
#tab-ajustes label.chk{justify-content:space-between;flex-direction:row-reverse;gap:14px;padding:10px 2px;border-bottom:1px solid var(--line)}
#tab-ajustes label.chk:last-child{border-bottom:0}
#tab-ajustes label.chk input[type=checkbox]{-webkit-appearance:none;appearance:none;width:46px;height:28px;border-radius:99px;background:var(--field);border:1px solid var(--line);position:relative;flex:none;cursor:pointer;transition:background .18s,border-color .18s;padding:0}
#tab-ajustes label.chk input[type=checkbox]::after{content:"";position:absolute;top:2px;left:2px;width:22px;height:22px;border-radius:50%;background:var(--muted);transition:transform .18s,background .18s}
#tab-ajustes label.chk input[type=checkbox]:checked{background:var(--accent);border-color:var(--accent)}
#tab-ajustes label.chk input[type=checkbox]:checked::after{transform:translateX(18px);background:var(--accent-fg)}
#tab-ajustes label.chk input[type=checkbox]:disabled{opacity:.45}
#tab-ajustes label.chk input[type=checkbox]:focus-visible{outline:3px solid var(--accent-soft);outline-offset:2px}
/* v303 · Servicio: acciones en cuadrícula icono arriba / texto abajo */
.svgrp>.row.sv-ag{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.svgrp>.row.sv-ag>.btn{flex:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:64px;padding:8px 4px;border-radius:12px;font-size:.75rem;font-weight:600;line-height:1.15;text-align:center;white-space:normal;min-width:0}
.svgrp>.row.sv-ag>.btn svg{width:22px;height:22px}
.svgrp>.row.sv-ag>.btn.danger{color:var(--bad,#b3261e)}
.svgrp>.row:not(.sv-ag)>.btn.primary{flex:1 1 100%}
.svgrp>.row.sv-ag{align-items:stretch}
.svgrp>.row.sv-ag>.btn{align-self:stretch;height:auto;min-height:72px;margin:0}
.svgrp>.row.sv-ag>.btn.primary{grid-column:1/-1;flex-direction:row;min-height:52px;font-size:.95rem;gap:8px}
.svgrp>.row.sv-ag>a.btn[href*="wa.me"]{color:var(--accent-ink,var(--accent,#16a34a))}
/* v306 · Ventas: detalle sin texto de ticket */
.vs-det{display:flex;flex-direction:column;gap:8px}
#slist .svgrp{margin-top:4px}
/* v308 · Inventario */
#isummary .dn-tot{padding:2px 0 6px}
.inv-chips{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;margin:4px 0 8px}
.inv-chips .cchip svg{width:16px;height:16px;flex:none}
.inv-chips .cchip{white-space:nowrap;padding:5px 12px}
.inv-low{display:flex;justify-content:center;margin-bottom:6px}
.inv-low .btn svg,#ilist .row .btn svg{width:16px;height:16px;flex:none;margin-right:5px;vertical-align:-3px}
#invquick{margin:6px 0 10px}
@media(min-width:1100px){#invquick>.row.sv-ag{grid-template-columns:repeat(6,minmax(0,1fr))}}
#isummary .dn-tot b{color:var(--fg)}
/* v309 · Facturas */
#factsum .fa-tot{padding:2px 0 6px}
#factsum .fa-tot b{color:var(--fg)}
/* v526: cada factura solo con «Enviar» (si hay WhatsApp) y «Ver factura»; PDF y Ticket están dentro de la vista previa */
#factlist .frow .fbtns{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:8px}
#factlist .frow .fbtns .btn{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:8px 10px;border-radius:12px;font-size:.9rem;font-weight:600;flex:none}
#factlist .frow .fbtns .btn svg{width:19px;height:19px}
#factlist .frow .t .spi svg{width:18px;height:18px}
/* v310 · Plan Separe */
#fapsum .fa-tot{padding:2px 0 6px}
#fapsum .fa-tot b{color:var(--fg)}
.apcard .ap-bar{height:8px;border-radius:99px;background:var(--line);overflow:hidden;width:100%}
.apcard .ap-bar i{display:block;height:100%;background:var(--accent);border-radius:99px}
.apcard .spi svg{width:18px;height:18px}
.apcard .svgrp{margin-top:4px}
/* v311 · Vender: búsqueda */
.vcats{display:flex;gap:6px;flex-wrap:wrap;margin:6px 0 4px}
.vcats[hidden]{display:none}
.vscanb svg{width:18px;height:18px;margin-right:6px;vertical-align:-4px}
#vpick .item>.btn svg{width:16px;height:16px;flex:none;margin-right:4px;vertical-align:-3px}
.vcats .mchip.on{background:var(--accent);color:var(--accent-fg);border-color:var(--accent)}
/* v312 · Ajustes (celular): cada fila vuelve a mostrar su descripción */
@media (max-width:1099px){
  #tab-ajustes .ajgrp .ajtx span{display:block;font-size:.8rem;line-height:1.3;margin-top:2px;color:var(--muted)}
  #tab-ajustes .ajgrp .ajrow{align-items:center;padding-block:12px}
}
/* v314 · Ajustes: módulos con interruptor y acciones de datos */
.ajtog .ajsw{flex:none;width:46px;height:28px;border-radius:99px;background:var(--line);position:relative;transition:background .18s}
.ajtog .ajsw i{position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:#fff;transition:transform .18s}
.ajtog .ajsw.on{background:var(--accent)}
.ajtog .ajsw.on i{transform:translateX(18px)}
.ajtog .ajic svg{width:20px;height:20px}
#ajdata{margin-top:4px}
@media(min-width:1100px){#ajdataw{display:none}}
/* v316 · Catálogo */
.cat-chips{display:flex;gap:6px;flex-wrap:wrap;margin:6px 0 10px}
.cat-chips[hidden]{display:none}
.cat-chips .mchip.on{background:var(--accent);color:var(--accent-fg);border-color:var(--accent)}
#tab-catalogo .svgrp>.row.sv-ag>a.btn{text-decoration:none}
#catpdf svg{width:18px;height:18px;margin-right:6px;vertical-align:-4px}
/* v318 · Abono: formulario en una columna y cuotas que se pueden cobrar */
.payform .abf{width:100%}
.payform .qpct-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.payform .qpct-row .btn{display:flex;flex-direction:column;align-items:center;gap:2px;min-height:52px;padding:6px 4px}
.payform .qpct-row .btn small{font-size:.72rem;color:var(--muted);font-weight:600}
.payform .mgrid{width:100%}
.cuota-row.tap{cursor:pointer;border-radius:12px;padding:8px 10px;margin:2px -10px;border:1px solid transparent;align-items:center}
.cuota-row.tap:hover,.cuota-row.tap:focus-visible{border-color:var(--line);background:var(--field);outline:none}
.cuota-row.tap.sel{border-color:var(--accent);background:var(--accent-soft)}
.cuota-row .cobr{display:inline-flex;align-items:center;gap:3px;font-style:normal;font-size:.75rem;font-weight:700;color:var(--accent-2);margin-left:6px}
.cuota-row .cobr svg{width:14px;height:14px}
.cuota-row.done{opacity:.7}
.cuota-row.tap.sel{background:color-mix(in srgb,var(--accent) 20%,transparent);color:var(--fg)}
/* v319: iconos de WhatsApp y trazo en filas de Ajustes */
.ajic svg[fill="none"]{fill:none!important;stroke:currentColor!important;stroke-width:1.8}
.btn>svg{width:16px;height:16px;flex:none;margin-right:5px;vertical-align:-3px}

/* v321: la barra inferior deja desplazar la página en vertical; solo el arrastre horizontal mueve la cápsula */
nav.tabs{touch-action:pan-y}
/* v502: sin el recuadro azul de Android al tocar (los botones ya tienen su propio efecto al presionar) */
html{-webkit-tap-highlight-color:transparent}

/* v322: Cotizar con el diseño nuevo (secciones con ícono, buscador con lupa, chips de «más datos») */
.qsec{display:flex;align-items:center;gap:8px;margin:14px 0 4px;color:var(--mute,var(--fg))}
.qsec:first-of-type{margin-top:2px}
.qsec svg{width:18px;height:18px;flex:none;color:var(--accent)}
.qsec b{font-size:.78rem;letter-spacing:.06em;text-transform:uppercase}
.sinp-w{position:relative;display:block}
.sinp-w>svg{position:absolute;left:12px;top:50%;translate:0 -50%;width:18px;height:18px;color:var(--mute,var(--fg));pointer-events:none}
.sinp-w>input{padding-left:38px;width:100%}
#qform details.more>summary{display:inline-flex;align-items:center;gap:6px;border:1px dashed color-mix(in srgb,var(--accent) 55%,transparent);border-radius:999px;padding:8px 14px;min-height:0;font-size:.85rem}
#qform details.more[open]>summary{border-style:solid}
#qpick .item>.btn svg,#qlines .btn svg,#qadd svg,#qsave svg{width:16px;height:16px;flex:none;margin-right:5px;vertical-align:-3px}
#qlines .btn.x svg{margin:0}
#qsave{display:flex;align-items:center;justify-content:center}
#gcard .gpk-add{border-style:dashed;color:var(--accent)}
/* v327: marca de selección sin relleno — barra lateral de color (listas) y subrayado (pestañas) */
html .card.fold:not(.closed)>h2{background:linear-gradient(var(--accent),var(--accent)) no-repeat 3px center/3px 18px!important;color:var(--accent);box-shadow:none;border-radius:0}
html .ajhub .ajrow.on{background:transparent!important;border-color:transparent!important;background-image:linear-gradient(var(--accent),var(--accent))!important;background-repeat:no-repeat!important;background-position:7px center!important;background-size:3px 22px!important;border-radius:12px}
html #invseg{background:transparent!important;box-shadow:none!important;border-radius:0!important;border-bottom:1px solid var(--line);padding:0!important;gap:2px}
html #invseg button{background:transparent!important;box-shadow:none!important;border-radius:0!important;color:var(--muted)!important;border-bottom:2px solid transparent!important;font-weight:600}
html #invseg button.on,html #invseg button[aria-selected="true"]{color:var(--accent)!important;border-bottom:2px solid var(--accent)!important;font-weight:700}
/* v330: formularios largos en ventana que sube desde abajo (Entrada de mercancía, Producto) */
.sheetdlg{width:100%;max-width:560px;max-height:92dvh;max-height:92vh;overflow-y:auto;overflow-x:hidden;touch-action:pan-y;overscroll-behavior:contain;border-radius:26px 26px 0 0;padding:6px 16px calc(18px + env(safe-area-inset-bottom,0px));gap:6px}
@media (min-width:700px){.sheetdlg{border-radius:26px}}
.sheetdlg .sheethd{position:sticky;top:-6px;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 0 8px;margin:0 -16px;padding-inline:16px;background:var(--glass-strong,var(--surface,#fff));-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px)}
.sheetdlg .sheethd .grab{position:absolute;top:6px;left:50%;translate:-50% 0;width:40px;height:4px;border-radius:4px;background:color-mix(in srgb,var(--fg,#000) 25%,transparent)}
.sheetdlg .sheethd h2{margin:0;font-size:1.15rem}
.sheetdlg .sheetx{flex:none;width:34px;height:34px;border-radius:50%;border:0;background:color-mix(in srgb,var(--fg,#000) 10%,transparent);color:var(--fg);font:inherit;font-size:1rem;line-height:34px;padding:0;cursor:pointer}
/* v578: las ventanas largas (producto nuevo, cliente nuevo) iban pegadas al escribir en el iPhone: el desenfoque sobre una ventana que se desplaza se repinta con cada letra. Aquí van con fondo sólido. */
.modal.sheetov{-webkit-backdrop-filter:none;backdrop-filter:none}
.sheetdlg{background:var(--surface,#fff);-webkit-backdrop-filter:none;backdrop-filter:none}
.sheetdlg .sheethd{background:var(--surface,#fff);-webkit-backdrop-filter:none;backdrop-filter:none}
html body .sheetdlg>.card.card.fold{background:transparent!important;border:0!important;outline:0!important;box-shadow:none!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;padding:0!important;margin:0!important;border-radius:0!important}
.sheetdlg>.card>h2{display:none!important}
.sheetdlg>.card.closed:not(.sf-open)>*:not(h2){display:revert!important}
html .card.fold[data-sheet]>h2::after{display:inline-block!important;content:"+ Nueva";width:auto;height:auto;border:0;transform:none;margin-left:auto;color:var(--accent);font-weight:700;font-size:.85rem}

html .card.fold[data-sheet][data-sl]>h2::after{content:attr(data-sl)}

/* v331: filas de búsqueda + filtros + vistas: en pantallas angostas la búsqueda ocupa su línea y los botones de vista no se aplastan */
@media (max-width:480px){
  html body .row:has(>.vsw){flex-wrap:wrap!important}
  html body .row:has(>.vsw)>label.grow{flex:1 1 100%!important;min-width:0}
}
html body .vsw button{min-width:36px;flex:0 0 auto}

/* v331b: barra inferior sin nombres cortados en celulares angostos; botones/selectores chicos */
@media (max-width:380px){
  html body nav.tabs button{font-size:10px!important;padding-left:3px!important;padding-right:3px!important;letter-spacing:-.01em}
  html body #csup,html body .row>label.f select{font-size:16px;padding-left:10px} /* v591: 16 px para que el iPhone no acerque la pantalla */
}
html body #ajfirsthide{min-height:36px;padding:8px 14px}

/* v331c: Cobrar: la caja «Con cuánto paga» no se pega a los montos rápidos */
html body #vcash #vchips{margin-top:10px;gap:10px}
html body #vpay .vpill:last-child:nth-child(3n+1){grid-column:1/-1}
html body #vpay .vpill:last-child:nth-child(3n+2){grid-column:span 2}

/* v331d: montos rápidos de Cobrar en una sola fila deslizable */
html body #vcash #vchips{flex-wrap:nowrap!important;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;padding-bottom:2px}
html body #vcash #vchips::-webkit-scrollbar{display:none}
html body #vcash #vchips>.btn{flex:0 0 auto;white-space:nowrap;min-width:84px}

/* v331d: animación de impresora al registrar una venta */
.prn{position:relative;width:132px;height:104px;margin:2px auto 12px}
.prn-body{position:absolute;left:0;right:0;top:0;height:46px;border-radius:14px;background:var(--fg,#111);box-shadow:0 6px 14px rgba(0,0,0,.18);z-index:2}
.prn-slot{position:absolute;left:14px;right:14px;bottom:9px;height:6px;border-radius:4px;background:var(--bg,#fff);opacity:.9}
.prn-led{position:absolute;right:16px;top:10px;width:8px;height:8px;border-radius:50%;background:var(--accent)}
.prn-out{position:absolute;left:50%;top:38px;width:84px;height:64px;margin-left:-42px;overflow:hidden;z-index:1}
.prn-paper{position:absolute;left:0;right:0;top:0;height:92px;background:#fff;color:#222;border:1px solid rgba(0,0,0,.14);border-radius:0 0 4px 4px;padding:14px 9px 0;display:flex;flex-direction:column;gap:6px;box-shadow:0 2px 6px rgba(0,0,0,.12);
  background-image:none}
.prn-paper u{display:block;height:3px;border-radius:2px;background:var(--accent);width:40%;margin:0 auto 2px;text-decoration:none}
.prn-paper i{display:block;height:3px;border-radius:2px;background:#cfd5d1}
.prn-paper i.s{width:55%}
.prn-paper em{font-style:normal;font-weight:800;font-size:.7rem;text-align:center;margin-top:2px;color:#111}
@media (prefers-reduced-motion:no-preference){
  html:not([data-calm]) .prn.play .prn-paper{animation:prnout 1.5s cubic-bezier(.3,.7,.3,1) both}
  html:not([data-calm]) .prn.play .prn-led{animation:prnled .3s steps(2) 5}
  html:not([data-calm]) .prn.play .prn-body{animation:prnshake .12s linear 6}
  @keyframes prnout{0%{transform:translateY(-92px)}18%{transform:translateY(-92px)}100%{transform:translateY(-28px)}}
  @keyframes prnled{50%{opacity:.2}}
  @keyframes prnshake{25%{transform:translateY(1px)}75%{transform:translateY(-1px)}}
}

/* v331e: Ayuda con el mismo diseño de las ventanas desde abajo: categorías en una fila deslizable y respuestas en tarjetas */
#helpmodal .hcats{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;margin:10px -16px 6px;padding:2px 16px 6px;-webkit-overflow-scrolling:touch}
#helpmodal .hcats::-webkit-scrollbar{display:none}
#helpmodal .hcats .btn{flex:0 0 auto;white-space:nowrap;border-radius:999px}
@media (min-width:700px){#helpmodal .hcats{flex-wrap:wrap;overflow:visible;margin-inline:0;padding-inline:0}}
#helpmodal .sheetdlg{max-height:88dvh;max-height:88vh}
#helpmodal #hhelp{display:flex;flex-direction:column;gap:10px}
html body #helpmodal .hitem{border:1px solid var(--glass-edge,var(--line,rgba(128,128,128,.25)));border-radius:16px;padding:14px;background:color-mix(in srgb,var(--fg,#000) 4%,transparent);gap:12px}
html body #helpmodal .hitem .t{font-size:.98rem}
#helpmodal h3.sub{margin:14px 0 8px;font-size:.78rem;text-transform:uppercase;letter-spacing:.08em;color:var(--muted)}
/* v331f: la ayuda mantiene siempre la misma altura: al cambiar de categoría la ventana ya no se encoge ni «se baja» */
html body #helpmodal .sheetdlg{height:88vh;height:88dvh;max-height:88dvh}

/* v331g: lista de chequeo del equipo (recibir y entregar) */
.chk{display:flex;flex-direction:column;gap:8px}
.chk .chkbar{display:flex;gap:8px;justify-content:flex-end}
.chk .chkrow{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 10px 8px 14px;border:1px solid var(--glass-edge,rgba(128,128,128,.25));border-radius:14px;background:color-mix(in srgb,var(--fg,#000) 4%,transparent)}
.chk .chkn{flex:1 1 auto;min-width:0;font-weight:600;font-size:.93rem;line-height:1.25}
.chk .chkseg{flex:none;display:inline-flex;border:1px solid var(--glass-edge,rgba(128,128,128,.3));border-radius:12px;overflow:hidden}
.chk .chkseg button{min-width:40px;min-height:38px;padding:0 6px;border:0;border-left:1px solid var(--glass-edge,rgba(128,128,128,.3));background:transparent;color:var(--muted);font:inherit;font-weight:800;font-size:1rem;cursor:pointer}
.chk .chkseg button:first-child{border-left:0}
.chk .chkseg.wide button{padding:0 12px;font-size:.85rem;white-space:nowrap}
.chk .chkseg button[aria-pressed=true][data-st=ok]{background:var(--accent);color:var(--accent-fg,#fff)}
.chk .chkseg button[aria-pressed=true][data-st=fail]{background:var(--bad,#c0392b);color:#fff}
.chk .chkseg button[aria-pressed=true][data-st=na],.chk .chkseg button[aria-pressed=true][data-lock]{background:color-mix(in srgb,var(--fg,#000) 22%,transparent);color:var(--fg)}
.chk .chkrow.st-fail{border-color:color-mix(in srgb,var(--bad,#c0392b) 55%,transparent)}
.chk .chklock{flex-wrap:wrap}
details.chkd{margin:2px 0}
details.chkd>summary{cursor:pointer;line-height:1.35}
.chkl{display:flex;flex-direction:column;gap:2px;margin:6px 0 4px;padding:8px 10px;border-radius:12px;background:color-mix(in srgb,var(--fg,#000) 5%,transparent)}
.chkli{display:flex;justify-content:space-between;gap:10px;font-size:.88rem}
.chkli b{font-weight:700;text-align:right}
.chkli.st-fail b{color:var(--bad,#c0392b)}.chkli.st-ok b{color:var(--accent)}

/* v331 fotos del equipo */
.phgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(88px,1fr));gap:8px;margin:6px 0}
.phgrid:empty{display:none}
.phi{position:relative;border-radius:10px;overflow:hidden;background:var(--bg2,#f1f5f9);aspect-ratio:1/1;min-width:0}
.phi img{width:100%;height:100%;object-fit:cover;display:block;cursor:zoom-in}
.phi.big{grid-column:1/-1;aspect-ratio:auto}.phi.big img{height:auto;max-height:70dvh;object-fit:contain;cursor:zoom-out}
.phx{position:absolute;top:4px;right:4px;width:32px;height:32px;min-height:0;padding:0;border-radius:50%;border:0;background:rgba(0,0,0,.6);color:#fff;font-size:15px;line-height:1;cursor:pointer}
.phbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.phbar .hint{margin:0}

/* v448: botón del ojo junto al valor del inventario */
.dn-tot .eyebtn{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;margin:-14px 0 -14px 2px;padding:0;vertical-align:middle;background:transparent;border:0;color:var(--muted);cursor:pointer;border-radius:12px}
.dn-tot .eyebtn svg{width:20px;height:20px}

/* v448: paneles de Anular venta y Devolución ordenados (un campo por fila, botones grandes) */
.retpanel{display:grid;gap:12px;padding:14px;border-radius:18px;text-align:left}
.retpanel .f{margin:0}
.rp-hd{display:flex;gap:10px;align-items:flex-start}
.rp-hd b{display:block;font-size:1.02rem;line-height:1.25}
.rp-ic{flex:none;width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:color-mix(in srgb,var(--accent) 14%,transparent);color:var(--accent)}
.rp-ic.bad{background:var(--bad-soft);color:var(--bad)}
.rp-ic svg{width:20px;height:20px}
.rp-items{display:grid;gap:8px}
.rp-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border:1px solid var(--line);border-radius:14px}
.rp-item.col{flex-direction:column;align-items:flex-start;gap:6px}
.rp-n{flex:1;min-width:0;font-weight:600;overflow-wrap:anywhere}
.rp-n .hint{display:block;margin:0;font-weight:400}
.rp-item input[data-rqi]{width:84px;flex:none;text-align:center;font-size:1.05rem;font-weight:700;min-height:44px}
.rp-exch{display:flex;align-items:flex-start;gap:10px;padding:10px 12px;border:1px solid var(--line);border-radius:14px}
.rp-exch>span{display:grid;gap:2px;min-width:0}
.rp-exch .hint{margin:0}
.rp-two{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.rp-act{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.rp-act.one{grid-template-columns:1fr}
.rp-act .btn{min-height:48px;justify-content:center;font-weight:700}
@media (max-width:360px){.rp-two,.rp-act{grid-template-columns:1fr}}

/* v449: pedido sugerido más corto (acciones arriba, lista por páginas, ayuda y bloque plegados) y barra de Ventas ordenada */
.lowact{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:10px 0}
.lowact .btn{min-height:44px;justify-content:center}
.lowact[hidden],#lowtools[hidden]{display:none}
#lowcard .lowrow{padding-block:6px;gap:8px}
#lowcard .lowrow .t{font-size:.88rem;line-height:1.25}
#lowcard .lowrow .s{font-size:.8rem}
#lowcard .lowq{display:flex;align-items:center;gap:6px;flex:none}
#lowcard .lowq input{width:56px;min-height:40px;text-align:center}
#lowcard details.more{margin-top:10px}
#sfrowb{margin:8px 0}
#sfrowc{align-items:center;margin:2px 0 6px}
/* sin vidrio: la cápsula de la barra inferior también es plana al arrastrar */
html nav.tabs .ind,html nav.tabs .ind.drag{-webkit-backdrop-filter:none!important;backdrop-filter:none!important;background:var(--accent-soft)!important;border-color:transparent!important;box-shadow:none!important}
html nav.tabs{-webkit-backdrop-filter:none!important;backdrop-filter:none!important}

header.top{padding-block-start:calc(16px + var(--sat))} /* v515: antes 16px fijo y en iPhone el nombre y el perfil quedaban debajo de la hora y la batería */
.auth{min-height:70dvh}
/* sin vidrio: fondo liso, sin manchas de color detrás de las tarjetas */
html body::before,html body::after{background:none!important;background-image:none!important}
html:not([data-style]) body,html[data-style] body,html:root body{background-image:none!important}
/* Mi negocio: bloques que se abren y cierran */
.sacc{padding:0!important;margin-top:8px!important;border:1px solid var(--line)!important;border-radius:16px;background:var(--surface);overflow:hidden}
.sacc details>summary{list-style:none;display:flex;align-items:center;gap:12px;padding:12px 14px;cursor:pointer;min-height:60px}
.sacc details>summary::-webkit-details-marker{display:none}
.sacc details>summary::after{content:"";margin-left:auto;width:9px;height:9px;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:rotate(45deg) translateY(-2px);transition:transform .2s;flex:none}
.sacc details[open]>summary::after{transform:rotate(-135deg) translateY(-1px)}
.sai{width:38px;height:38px;border-radius:12px;background:var(--accent-soft);color:var(--accent);display:grid;place-items:center;flex:none;font-style:normal}
.sai svg{width:20px;height:20px}
.sat{display:flex;flex-direction:column;min-width:0}
.sat h3{margin:0!important;font-size:1rem!important;text-transform:none!important;letter-spacing:0!important;color:var(--fg)!important}
.sat small{color:var(--muted);font-weight:600;font-size:.78rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sab{display:flex;flex-direction:column;gap:12px;padding:4px 14px 16px;border-top:1px solid var(--line)}
#ssave{width:100%;margin-top:12px}
/* Escritorio: en Ventas el buscador y Filtros van en la misma fila */
@media (min-width:900px){#sfbar{display:grid;grid-template-columns:1fr auto;column-gap:10px;align-items:center}#sfbar>*{grid-column:1/-1}#sfbar>label.f{grid-column:1;margin:0}#sfbar>#sfrowb{grid-column:2;margin:0}}

/* v462 · Aprobaciones, verificación en dos pasos y dispositivos */
.apwait{display:flex;flex-direction:column;align-items:center;gap:8px;padding:6px 0}
.apwait .orb{width:44px;height:44px}
.apitem .apact{margin-top:8px;flex-wrap:nowrap}
.apitem .appin{width:7.5em;flex:0 1 auto;min-height:36px;padding:6px 10px}
#iapprcard{border-color:var(--accent)}
.seci{display:flex;align-items:center;gap:10px;padding:8px 0;border-top:1px solid var(--line)}
.seci:first-child{border-top:0}
.seci .o{flex:none;width:22px;height:22px;border-radius:50%;display:grid;place-items:center;font-size:.8rem;font-weight:800;border:2px solid var(--muted)}
.seci.ok{color:var(--muted)}.seci.ok .o{background:var(--accent);border-color:var(--accent);color:var(--accent-ink,#fff)}
.tfaqr{width:180px;margin:6px auto;background:#fff;padding:8px;border-radius:12px}
.tfaqr svg{width:100%;height:auto;display:block}
@media (min-width:1100px){#tab-inicio>#iapprcard,#tab-inicio>#iseccard{grid-column:1/-1}}

/* Diseño común de formularios (v464; nació en Entrada de mercancía v463): bloque para agregar, pasos numerados,
   cantidad con − y +, botón «+ Agregar», escanear solo ícono, aviso de lista vacía y listas viejas plegadas */
.stepbox{display:flex;flex-direction:column;gap:12px;padding:14px;border-radius:var(--r-md,14px);background:var(--field);margin-top:2px}
.stepttl{display:flex;align-items:center;gap:8px;font-weight:700;font-size:.95rem;color:var(--fg)}
.stepttl>b{flex:none;width:22px;height:22px;border-radius:50%;display:grid;place-items:center;background:var(--accent);color:var(--accent-fg);font-size:.75rem}
.stepcount{margin-left:auto;font-weight:600;font-size:.8rem;color:var(--muted);text-align:right}
.row.scanrow,.row.qrow{flex-wrap:nowrap}
.row.scanrow{align-items:flex-start}
.row.scanrow>.f{min-width:0}
.row.qrow{align-items:flex-end}
.stepbox .pshint:not(.psok){display:none}
html body .btn.scanbtn{flex:none;display:inline-flex;align-items:center;justify-content:center;padding:0;width:52px;min-width:52px;min-height:50px;align-self:flex-end}
.btn.scanbtn>span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.btn.scanbtn svg{width:24px;height:24px}
.row.scanrow>.btn.scanbtn{align-self:flex-start;margin-top:26px}
.btn.small.scanbtn,label .btn.scanbtn{min-height:44px;width:48px;min-width:48px}
.qstep{display:flex;align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-md,14px);height:46px;overflow:hidden;width:max-content}
.qstep button{width:42px;height:100%;border:0;background:transparent;color:var(--fg);font:inherit;font-size:1.2rem;font-weight:700;cursor:pointer}
.qstep button:active{background:var(--accent-soft)}
html body .qstep input{width:52px;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;text-align:center;padding:0;font-weight:700;font-variant-numeric:tabular-nums;min-height:0;height:100%}
.qstepf{flex:none}
html body .btn.addbtn{border:1px solid var(--accent);color:var(--accent);background:var(--surface);white-space:nowrap;box-shadow:none}
html body .btn.addbtn:disabled{border-color:var(--line);color:var(--muted)}
.list:empty{display:none}
.emptyline{color:var(--muted);font-size:.85rem;text-align:center;padding:14px 10px;border:1.5px dashed var(--line);border-radius:var(--r-md,14px)}
details.foldlist{border-top:1px solid var(--line);padding-top:8px}
details.foldlist>summary{cursor:pointer;font-weight:700;padding:8px 0;list-style:none;display:flex;justify-content:space-between;color:var(--fg)}
details.foldlist>summary::-webkit-details-marker{display:none}
details.foldlist>summary::after{content:'Ver';color:var(--accent);font-weight:700}
details.foldlist[open]>summary::after{content:'Ocultar'}
/* Ventanas que suben desde abajo: dejan libre la parte de arriba (en la app de Claude ahí van sus botones de cerrar y menú) */
@media (max-width:699px){.sheetdlg{max-height:calc(100dvh - 96px)}}
.stepbox input:not([type=checkbox]):not([type=radio]),.stepbox select,.stepbox textarea{background:var(--surface)}
.row.qrow>.btn.addbtn{min-width:0;padding-inline:10px;overflow:hidden;text-overflow:ellipsis}
@media (max-width:380px){.row.qrow{flex-wrap:wrap}.row.qrow>.btn.addbtn{flex:1 1 100%}}

/* v465 — correcciones de diseño (sin cambiar lógica ni datos) */
/* Títulos de sección: texto normal (no mayúsculas), 18 px, peso 700 */
html body .ajlbl,html body .fglbl,html body .svgrp>.gt,html body .sgrp>h3,html body #svform .fsec>h3,html body .sclist h3,html body #helpmodal h3.sub,html body #gsres h3{
  text-transform:none;letter-spacing:0;font-size:18px;font-weight:700;color:var(--fg);line-height:1.3}
html body .ajlbl,html body .fglbl{margin:18px 4px 8px}
/* Vender: categorías en una sola fila que se desliza */
.vcats{flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;-webkit-overflow-scrolling:touch;padding-bottom:2px;margin-inline:-2px;padding-inline:2px;
  -webkit-mask-image:linear-gradient(90deg,#000 88%,transparent);mask-image:linear-gradient(90deg,#000 88%,transparent)}
.vcats::-webkit-scrollbar{display:none}
.vcats>*{flex:none;white-space:nowrap}
/* Ventas: «+ Nueva venta» dentro del contenido (en PC ya está arriba a la derecha) */
.vnewrow{margin-top:12px}
@media (min-width:1100px){.vnewrow{display:none}}
/* Celular: botones de acción de al menos 44 px de alto */
@media (max-width:1099px){
  html body .btn,html body .btn.small,html body a.btn{min-height:44px}
  html body .linkbtn{min-height:44px}
}
@media (max-width:1099px){
  html body .vcats .mchip,html body .r-chip,html body .r-seg button,html body #ajfirsthide{min-height:44px}
  html body .vcats .mchip{display:inline-flex;align-items:center}
}
@media (max-width:1099px){
  html body .qty button,html body #tab-vender.sheetm .item.cl .qty button{width:38px;min-width:38px;height:44px;border-radius:14px}
  html body #tab-vender.sheetm .vextrabtn,html body #tab-vender.sheetm #vhold,html body .vextrabtn,html body #vhold{min-height:44px}
}

/* El separador dentro del texto (i.sep) no lleva la línea de .sep (que es para las divisiones) */
i.sep{border:0;margin:0;width:auto}
@media (max-width:1099px){i.sep{display:inline}}
/* Inventario (v466): buscador a lo ancho con escanear; debajo Filtros a la izquierda y la vista a la derecha */
@media (max-width:1099px){
  #isbar{align-items:flex-end;column-gap:10px;row-gap:10px}
  #isbar>label.grow{flex:1 1 calc(100% - 64px)}
  #isbar>.fbtn{flex:none;margin:0}
  #isbar>.vsw{margin-left:auto}
}
/* Acciones rápidas de Inventario: la última fila se reparte el ancho (sin huecos) */
#invquick>.row.sv-ag{display:flex;flex-wrap:wrap}
#invquick>.row.sv-ag>.btn{flex:1 1 calc(33.333% - 8px);min-width:0}
/* «Agregar producto nuevo»: sin el «+ Nueva» repetido; se ve como los demás botones de agregar */
html .card.fold[data-sheet]#pform>h2::after{display:none!important}
html body #tab-inventario #pform.card.fold.closed{border:1px solid var(--accent)!important}
html body #tab-inventario #pform.card.fold.closed>h2{color:var(--accent)}
#tab-inventario #invquick{margin-top:16px}
/* Impresora en las ventanas de comprobante: no se encoge (el papel no se monta sobre el texto) */
.dlg .prn{flex:none}
/* Una sola rayita de arrastre: si la ventana ya trae la de arrastrar (.grab), no se dibuja la decorativa */
.dlg:has(>.grab)::before{display:none}
/* Comprobante: el recuadro grande en rojo cuando es una diferencia en contra (faltan) */
.sdchg.sdbad{background:var(--bad);color:#fff}
/* Cierres guardados (v469): los botones solo en el cierre vigente, en una rejilla ordenada; el reabierto queda atenuado y sin botones */
#closelist .item.clitem{display:block}
#closelist .clvoid{opacity:.6}
.clacts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:10px}
.clacts>.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;margin:0;min-width:0}
.clacts>.btn svg{width:18px;height:18px;flex:none}
@media (min-width:700px){.clacts{grid-template-columns:repeat(4,max-content)}}
/* Número del carrito en el botón «Vender» (v470; reemplaza al + flotante). En celular, burbuja sobre el ícono */
nav.tabs button .nbadge.ncart{display:inline-block}
@media (max-width:1099px){
  nav.tabs button .nbadge.ncart{position:absolute;top:4px;left:calc(50% + 4px);min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:var(--accent);color:var(--accent-fg);font-style:normal;font-size:.68rem;font-weight:800;line-height:18px;text-align:center;font-variant-numeric:tabular-nums}
}

/* v471: entrada con Face ID o huella primero (si este equipo la tiene) y enlaces en una línea */
.apktop{display:flex;flex-direction:column;gap:8px}.apktop[hidden],#auth .padk.pkk[hidden],#auth #abtn[hidden]{display:none!important}
.auth.pad #apk{min-height:56px;font-size:1.1rem}
.aor{text-align:center;color:var(--muted);font-size:.85rem}
.ahi{margin:0;color:var(--muted);font-size:1rem;font-weight:600}.ahi[hidden]{display:none}
/* v476 · datos privados del cliente ocultos al vendedor */
.privoff{display:none!important}
/* v476 · Entrada con persona + PIN: lista para elegir quién entra */
.wholist{display:grid;gap:8px;margin:4px 0}
.whobtn{display:flex;align-items:center;gap:12px;justify-content:flex-start;min-height:56px;padding:8px 14px;text-align:left;font-weight:600;font-size:1rem}
.whoini{flex:none;width:36px;height:36px;border-radius:10px;display:grid;place-items:center;background:var(--accent-soft);color:var(--accent-2);font-weight:800}
html[data-style="mostrador"] .whobtn{border-radius:16px}
.whonm{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
img.whoini{object-fit:cover;padding:0;background:var(--field)}
.ahiph{width:64px;height:64px;border-radius:50%;display:grid;place-items:center;object-fit:cover;background:var(--accent-soft);color:var(--accent-2);font-weight:800;font-size:1.6rem;margin:2px auto 0;flex:none}
@media (max-height:720px){.ahiph{width:48px;height:48px;font-size:1.2rem}}
#auth .ahi .ahichg{display:inline;margin:0 0 0 6px;font-size:.85rem;font-weight:600;padding:0;min-height:0}
.pkslot{display:flex;justify-content:center;align-items:center}
#auth .padk.pkk{color:var(--accent)}#auth .padk.pkk svg{width:28px;height:28px}
.alinks{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:2px;color:var(--muted)}
#auth .auth .alinks .linkbtn{display:inline-flex;margin:0}

/* v471 · pantalla de carga «ticket que se imprime» (elegida por Juan): logo del negocio a todo color, de él sale un ticket
   que crece con la carga real y termina con un chulito verde. Sin porcentaje. Verde fijo (no el color del negocio). */
#splash .sp-pct{display:none!important}
.sp-ring .sp-fill{display:none!important}
.sp-ring .sp-logo:not(.sp-fill){filter:none!important}
@media (prefers-color-scheme:dark){html[data-logo-dark]:not([data-theme="light"]) .sp-ring .sp-logo.img:not(.sp-fill){filter:invert(1) hue-rotate(180deg)!important}}
html[data-theme="dark"][data-logo-dark] .sp-ring .sp-logo.img:not(.sp-fill){filter:invert(1) hue-rotate(180deg)!important}
.sp-tk{display:flex;flex-direction:column;align-items:center;margin-top:2px;min-height:84px}
.sp-slot{width:112px;height:6px;border-radius:3px;background:var(--fg);position:relative;z-index:2}
.sp-paper{width:88px;height:calc(var(--spn,0) * .78px);max-height:78px;margin-top:-3px;box-sizing:border-box;overflow:hidden;background:var(--surface);border:1px solid var(--line);border-top:0;border-radius:0 0 6px 6px;display:flex;flex-direction:column;align-items:center;gap:6px;padding-top:10px;transition:height .12s linear}
.sp-paper i{display:block;height:4px;border-radius:2px;background:color-mix(in srgb,var(--fg) 18%,transparent);flex:none}
.sp-paper i:nth-child(1){width:60px}.sp-paper i:nth-child(2){width:46px}.sp-paper i:nth-child(3){width:60px}.sp-paper i:nth-child(4){width:34px}
.sp-ok{width:22px;height:22px;flex:none;opacity:0;transform:scale(.6);transition:opacity .2s,transform .25s}
.sp-ok path{fill:none;stroke:#16a34a;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
#splash.ok .sp-ok{opacity:1;transform:none}
#splash.nobrand .sp-tk{opacity:1}
#splash .sp-steps li.cur{color:var(--fg)}
@media (min-width:1100px){.sp-slot{width:140px}.sp-paper{width:110px}}
@media (prefers-reduced-motion:reduce){.sp-paper,.sp-ok{transition:none}}

/* v472 · barra de navegación del celular: mismo alto, más angosta a los lados (32 px) y en forma de cápsula, como iOS o WhatsApp (Juan) */
@media (max-width:1099px){
  html body nav.tabs{left:clamp(16px,calc((100vw - 326px)/2),32px)!important;right:clamp(16px,calc((100vw - 326px)/2),32px)!important;border-radius:999px!important} /* 32 px a los lados; en celulares angostos (360 px) unos 17 px para que «Inventario» quepa */
  html body nav.tabs button span{font-size:10.5px!important;letter-spacing:-.01em}
}

/* v473 · íconos como WhatsApp (Juan): pestaña sin elegir de contorno; la elegida, rellena en verde */
nav.tabs button[role=tab] svg.ic-f{display:none}
nav.tabs button[role=tab][aria-selected="true"] svg.ic-f{display:block}
nav.tabs button[role=tab][aria-selected="true"] svg.ic-l{display:none}
html nav.tabs svg.ic-l,.morebtn svg.ln{fill:none!important;stroke:currentColor!important;stroke-width:1.8!important;stroke-linecap:round;stroke-linejoin:round}
html nav.tabs svg.ic-l .f,.morebtn svg.ln .f{fill:currentColor!important;stroke:none!important}

/* v474 · al deslizar la gota los íconos se van rellenando: el relleno se superpone al contorno con la opacidad --fl */
nav.tabs button .icw{display:block;position:relative;font-style:normal;line-height:0;flex:none}
nav.tabs button .icw svg.ic-f{position:absolute;inset:0}
html nav.tabs.lift button[role=tab] svg.ic-f{display:block!important;opacity:var(--fl,0);transition:opacity .08s linear}
html nav.tabs.lift button[role=tab] svg.ic-l{display:block!important;opacity:calc(1 - var(--fl,0));transition:opacity .08s linear}
html nav.tabs.lift button[role=tab]{color:color-mix(in srgb,var(--accent) calc(var(--fl,0) * 100%),var(--muted))!important}
html nav.tabs button[role=tab][aria-selected="true"] svg.ic-l{display:block!important;visibility:hidden}
html nav.tabs.lift button[role=tab] svg.ic-l{visibility:visible}

/* v475 · fondo sólido (Juan): sin las manchas verdes degradadas detrás de Ajustes */
#tab-ajustes .ajhub::before{display:none!important;background:none!important}
/* v475 · cuadro de iniciales en Ajustes (sin logo): blanco con borde gris y letras verdes, sin degradado (Juan, opción B) */
html .ajlogo.ini{background:var(--surface)!important;color:var(--accent)!important;border:1.5px solid var(--line)!important;box-shadow:none!important}

/* v480 · Ícono oficial de WhatsApp en los botones: verde de WhatsApp (#25D366) y blanco sobre botones verdes. No se recolorea con el tema. */
svg.ic-wa,svg.ic-wa path{fill:#25d366!important;stroke:none!important}
.btn.primary svg.ic-wa,.btn.primary svg.ic-wa path,.dn-ic.p svg.ic-wa,.dn-ic.p svg.ic-wa path,html[data-style="mostrador"] .vbar svg.ic-wa path{fill:var(--accent-fg,#fff)!important}

/* v491: aviso de Plan Separe pagado: hay que entregar lo apartado */
.sepready{border:2px solid var(--accent);border-radius:16px;padding:14px;display:flex;flex-direction:column;gap:8px;background:var(--field)}
.sepready .sr-ttl{display:flex;align-items:center;gap:8px;font-size:1.05rem}
.sepready .sr-ttl svg{width:22px;height:22px;color:var(--accent);flex:none}
.sepready ul{margin:0;padding-left:20px}
.fa-sep{display:flex;align-items:center;justify-content:center;gap:6px;margin-top:6px}
.fa-sep svg{width:16px;height:16px;flex:none}

/* v492b: la tarjeta del total toma el color que el negocio escogió en Ajustes (Juan); se toma en html, antes de que Reportes cambie --accent */
html{--rp-brand:var(--accent);--rp-brand-fg:var(--accent-fg)}
/* ===== v492 · Reportes, diseño A (Juan): panel con colores propios; sigue el modo claro/oscuro del cliente ===== */
#tab-reportes{--rp-bg:#f4f6fb;--rp-card:#ffffff;--rp-line:#e8ebf3;--rp-muted:#6b7280;--rp-fg:#111827;--rp-track:#eef0f6;
  --rp-hero:var(--rp-brand);--rp-hero-line:var(--rp-brand-fg);
  --rp-v:#6366f1;--rp-n:#06b6d4;--rp-t:#8b5cf6;--rp-g:#22c55e;--rp-gn:#f59e0b;--rp-bar:var(--rp-brand);
  --accent:#6366f1;--accent-2:#22d3ee;--accent-fg:#fff;--prev:#a5b4fc}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) #tab-reportes{--rp-bg:#0b1020;--rp-card:#131a2e;--rp-line:#1f2842;--rp-muted:#8b95b5;--rp-fg:#e6e9f2;--rp-track:#1f2842;--rp-n:#22d3ee;--rp-t:#a78bfa;--rp-g:#4ade80;--rp-gn:#fbbf24;--prev:#475094}}
:root[data-theme="dark"] #tab-reportes{--rp-bg:#0b1020;--rp-card:#131a2e;--rp-line:#1f2842;--rp-muted:#8b95b5;--rp-fg:#e6e9f2;--rp-track:#1f2842;--rp-n:#22d3ee;--rp-t:#a78bfa;--rp-g:#4ade80;--rp-gn:#fbbf24;--prev:#475094}
/* En Mostrador la app es oscura salvo que el cliente elija claro: Reportes sigue lo mismo que el resto de la app */
html[data-style="mostrador"]:not([data-theme="light"]) #tab-reportes{--rp-bg:#0b1020;--rp-card:#131a2e;--rp-line:#1f2842;--rp-muted:#8b95b5;--rp-fg:#e6e9f2;--rp-track:#1f2842;--rp-n:#22d3ee;--rp-t:#a78bfa;--rp-g:#4ade80;--rp-gn:#fbbf24;--prev:#475094}
html[data-style="mostrador"]:not([data-theme="light"]):has(#app[data-tab="reportes"]){--rp-page:#0b1020}
html:has(#app[data-tab="reportes"]) body,html:has(#app[data-tab="reportes"]) #app{background:var(--rp-page,#f4f6fb)!important}
html:has(#app[data-tab="reportes"]){--rp-page:#f4f6fb}
@media (prefers-color-scheme:dark){html:not([data-theme="light"]):has(#app[data-tab="reportes"]){--rp-page:#0b1020}}
html[data-theme="dark"]:has(#app[data-tab="reportes"]){--rp-page:#0b1020}
#tab-reportes{color:var(--rp-fg)}
html #tab-reportes :is(.card,.r-kpi,.r-plotbox){background:var(--rp-card)!important;border:1px solid var(--rp-line)!important;box-shadow:0 1px 2px rgba(16,24,40,.05)!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;color:var(--rp-fg)}
html #tab-reportes :is(.hint,.r-kpi .k,.r-kpi .d span,.r-al span){color:var(--rp-muted)!important}
html #tab-reportes .r-kpi{border-radius:18px}
html #tab-reportes .r-kpi .v{color:var(--rp-fg)}
html #tab-reportes .r-hero.r-hero.r-hero{background:var(--rp-hero)!important;background-image:var(--rp-hero)!important;background-color:var(--rp-brand)!important;color:var(--rp-brand-fg)!important;border:0!important;box-shadow:0 14px 34px -16px color-mix(in srgb,var(--rp-brand) 60%,transparent)!important;border-radius:22px}
html #tab-reportes .r-hero :is(.big,.k){color:var(--rp-brand-fg)!important}
html #tab-reportes .r-hero .k{opacity:.82}
html #tab-reportes .r-hero .r-delta{background:color-mix(in srgb,var(--rp-brand-fg) 18%,transparent);border:0;color:var(--rp-brand-fg)}
html #tab-reportes .r-chip.on{background:var(--rp-brand)!important;color:var(--rp-brand-fg)!important} /* v521: el periodo escogido va con el color del negocio (antes morado fijo) */
html #tab-reportes .r-chip:not(.on){background:var(--rp-card)!important;border-color:var(--rp-line)!important;color:var(--rp-muted)!important}
html #tab-reportes .r-t{background:var(--rp-track)}
html #tab-reportes .r-t i{background:var(--rp-bar)!important}
html #tab-reportes .r-rk{background:color-mix(in srgb,#6366f1 14%,transparent);color:#6366f1}
html #tab-reportes .r-al{background:transparent;border-radius:14px}
html #tab-reportes .r-al.bad{background:color-mix(in srgb,#ef4444 12%,var(--rp-card));border-color:transparent}
html #tab-reportes .r-al.warn{background:color-mix(in srgb,#f59e0b 13%,var(--rp-card));border-color:transparent}
html #tab-reportes .r-al.bad b,html #tab-reportes .r-al.bad svg{color:#ef4444}
html #tab-reportes .r-al.warn b,html #tab-reportes .r-al.warn svg{color:#d97706}
html #tab-reportes .r-seg{background:var(--rp-track)}
html #tab-reportes .r-seg button.on{background:var(--rp-card);color:var(--rp-fg)}
@media (max-width:899px){#tab-reportes .rg>.a-alert{order:40}#tab-reportes .rg>.a-more{order:50}}

/* ===== v493 · Crédito (cartera) y Plan Separe (por estado) · v494d: todo con el color que el cliente escoge en Ajustes (--accent) ===== */
#fiapane .fseg{margin-top:12px}
.fsegn{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 6px;border-radius:99px;background:var(--line);color:var(--fg);font-size:.72rem;font-weight:800;margin-left:4px}
.fsegn.rdy{background:var(--accent);color:var(--accent-fg)}
.fcart{background:var(--accent);color:var(--accent-fg);border-radius:22px;padding:18px;display:flex;flex-direction:column;gap:2px}
.fcart .fc-k{color:color-mix(in srgb,var(--accent-fg) 72%,transparent);font-size:.85rem;font-weight:700}.fcart .fc-v{font-size:2.1rem;font-weight:800;letter-spacing:-.02em}.fcart .fc-s{color:color-mix(in srgb,var(--accent-fg) 72%,transparent);font-size:.82rem}
.fcart .fc-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:12px}
.fcart .fc-grid>div{background:color-mix(in srgb,var(--accent-fg) 12%,transparent);border-radius:14px;padding:10px;display:flex;flex-direction:column;gap:2px;min-width:0}
.fcart .fc-grid small{color:color-mix(in srgb,var(--accent-fg) 72%,transparent);font-size:.72rem;font-weight:700}.fcart .fc-grid b{font-size:.95rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.fcart .fc-grid b.g{color:var(--accent-fg);font-weight:900}
#fstchips{margin-top:10px}#fstchips .mchip b{margin-left:4px}
.item.fia .trow-r{gap:10px;align-items:flex-start!important}
.item.fia .fav{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;flex:none;font-weight:800;background:color-mix(in srgb,var(--accent) 14%,transparent);color:var(--accent)}
.fstate{font-size:.78rem;color:var(--muted);display:flex;align-items:center;gap:6px;order:2;margin-top:2px}
.item.fia .main{display:flex;flex-direction:column}.item.fia .main .t{order:1}.item.fia .main .fstate{order:2}.item.fia .main>*:not(.t):not(.fstate){order:3}
.fstate .pill{font-size:.68rem;font-weight:800;padding:2px 8px;border-radius:99px}
.fstate.late .pill{background:#0b0b0b;color:#fff}.fstate.today .pill{background:var(--accent);color:var(--accent-fg)}.fstate.ok .pill{background:color-mix(in srgb,var(--accent) 14%,transparent);color:var(--fg)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .fstate.late .pill{background:#fff;color:#0b0b0b}}
html[data-style="mostrador"]:not([data-theme="light"]) .fstate.late .pill{background:#fff;color:#0b0b0b}
.fap-tiles{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0 4px}
.fap-t{border-radius:18px;padding:14px;background:var(--surface);border:1px solid var(--line);display:flex;flex-direction:column;gap:2px}
.fap-t small{font-size:.78rem;font-weight:700;color:var(--muted)}.fap-t b{font-size:1.4rem;font-weight:800}.fap-t span{font-size:.75rem;color:var(--muted)}
.fap-t.g{background:var(--accent);border-color:var(--accent);color:var(--accent-fg)}.fap-t.g small,.fap-t.g span{color:color-mix(in srgb,var(--accent-fg) 80%,transparent)}
.fap-h{font-size:1rem;font-weight:800;margin:14px 2px 8px}
.apcard{position:relative}
.apcard.rdy{border:2px solid var(--accent)!important}
.fap-ok{position:absolute;top:14px;right:14px}
.fap-ok + .row{padding-right:78px}
.fap-ring{position:absolute;top:12px;right:12px;width:46px;height:46px}
.fap-ring + .row{padding-right:58px}
.fap-ring svg{width:46px;height:46px}.fap-ring circle{fill:none;stroke:var(--line);stroke-width:4}.fap-ring circle.v{stroke:var(--accent);stroke-linecap:round}
.fap-ring b{position:absolute;inset:0;display:grid;place-items:center;font-size:.68rem;font-weight:800}

/* ===== v494 · Servicio, Compras y Cotizaciones con el diseño de Crédito ===== */
.stsum{margin:12px 0 4px}.stsum .stchips{margin-top:10px}.stchips .mchip b{margin-left:4px}
#svseg .segn{display:inline-grid;place-items:center;min-width:18px;height:18px;padding:0 5px;border-radius:99px;background:var(--line);font-size:.7rem;font-weight:800;margin-left:4px}
#svseg .segn:empty{display:none}#svseg .segn.rdy{background:var(--accent);color:var(--accent-fg)}
.item.strdy{border:2px solid var(--accent)!important;border-radius:16px;padding:12px!important;margin:6px 0}
.stacts{gap:8px;flex-wrap:wrap}
/* v494b · Botones de estado (Avisar / Recordar) en una sola fila, debajo de la información */
.item .stacts{display:flex;flex-direction:row;flex-wrap:nowrap}
.item .stacts>.btn{width:auto}
.item .stacts:has(>a.btn){flex:1 1 100%;width:100%;margin-top:8px}
.item .stacts:has(>a.btn)>.btn{flex:1 1 0;min-width:0}
/* v494c · Juan: sin raya al lado y botones del detalle de cotización del mismo tamaño (los principales siguen el color del negocio) */
.qacts{display:grid;grid-template-columns:1fr 1fr;grid-auto-rows:1fr;gap:8px;width:100%;margin-top:8px}
.qacts>.btn{width:100%;height:100%;min-height:48px;margin:0;white-space:normal;text-align:center;justify-content:center}
.qacts>.qvoid{grid-column:1/-1;display:flex;gap:8px;justify-content:center}
.qacts>.qvoid>.btn{flex:0 1 auto}
/* ===== v495 · Botón ocupado: sólido, ruedita, ✓ al guardar y sacudida si falla ===== */
.btn.is-busy,.btn.is-done{opacity:1!important;cursor:progress}.btn.bpos{position:relative}
.btn.is-busy:disabled{opacity:1!important}
.btn.is-busy>*:not(.bover),.btn.is-done>*:not(.bover){visibility:hidden}
.btn.is-busy,.btn.is-done{color:transparent!important}
.btn .bover{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:8px;color:var(--bcol,currentColor);font:inherit;pointer-events:none;white-space:nowrap;overflow:hidden;padding:0 8px;border-radius:inherit}
.btn .bover .bspin{width:16px;height:16px;border-radius:50%;border:2.5px solid currentColor;border-right-color:transparent;flex:none;animation:bspin .7s linear infinite}
@keyframes bspin{to{transform:rotate(360deg)}}
.btn.is-busy .bover .btxt{animation:bfade 1.2s ease-in-out infinite alternate}
@keyframes bfade{from{opacity:1}to{opacity:.65}}
.btn.is-done{pointer-events:none;animation:bpop .32s cubic-bezier(.3,1.6,.5,1)}
@keyframes bpop{0%{transform:scale(1)}40%{transform:scale(1.04)}100%{transform:scale(1)}}
.btn.is-done .bover{animation:bin .2s ease-out}
@keyframes bin{from{opacity:0;transform:translateY(4px)}}
.btn .bchk{width:20px;height:20px;flex:none}
.btn .bchk path{stroke-dasharray:24;stroke-dashoffset:24;animation:bdraw .35s .08s ease-out forwards}
@keyframes bdraw{to{stroke-dashoffset:0}}
.btn.is-fail{animation:bshake .45s ease-in-out}
@keyframes bshake{0%,100%{transform:translateX(0)}20%{transform:translateX(-6px)}40%{transform:translateX(6px)}60%{transform:translateX(-4px)}80%{transform:translateX(3px)}}
@media (prefers-reduced-motion:reduce){.btn.is-done,.btn.is-fail,.btn.is-done .bover{animation:none}.btn .bchk path{animation:none;stroke-dashoffset:0}.btn .bover .bspin{animation-duration:2s}.btn.is-busy .bover .btxt{animation:none}}
.toast.hi{bottom:calc(140px + var(--navb))}
/* v498 · Pago combinado (Juan): cada fila alineada, del mismo alto, con espacio; «Resto» dentro del campo del valor para que se lea la forma de pago */
#vmix .mixrow{display:grid;grid-template-columns:minmax(0,1fr) minmax(136px,.85fr);gap:8px;align-items:stretch;margin:0 0 8px}
#vmix .mixrow.rm{grid-template-columns:minmax(0,1fr) minmax(132px,.85fr) 36px;gap:6px}
#vmix .mixrow>select,#vmix .mixamt>input,#vmix .mixrow>.btn{height:48px;min-height:48px;margin:0;box-sizing:border-box;width:100%}
#vmix .mixrow>select{padding-left:12px;padding-right:28px;text-overflow:ellipsis}
#vmix .mixamt{position:relative;display:block;min-width:0}
#vmix .mixamt>input{padding-left:12px;padding-right:74px}
#vmix .mixfill{position:absolute;right:6px;top:50%;transform:translateY(-50%);height:36px;padding:0 10px;border-radius:11px;border:1px solid var(--line);background:var(--surface);color:var(--fg);font:inherit;font-size:.82rem;font-weight:700;cursor:pointer}
#vmix .mixfill:active{transform:translateY(-50%) scale(.96)}
#vmix .mixrow>.btn.x{padding:0;border-radius:14px;display:flex;align-items:center;justify-content:center}
#vmix .mixadd{width:100%;min-height:44px;margin:2px 0 6px;border-style:dashed}
/* v483 modo oscuro: barra inferior plana, sin brillo (sin línea blanca arriba, sin reflejo interior ni degradado) */
html nav.tabs::before,html nav.tabs .ind::after{display:none!important;content:none!important}
:root[data-theme="dark"] nav.tabs,:root[data-theme="dark"] nav.tabs .ind{background-image:none!important;box-shadow:0 8px 24px -10px rgba(0,0,0,.5)!important;border-color:var(--line)!important}
:root[data-theme="dark"] nav.tabs .ind{box-shadow:none!important;border-color:transparent!important}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) nav.tabs,:root:not([data-theme="light"]) nav.tabs .ind{background-image:none!important;box-shadow:0 8px 24px -10px rgba(0,0,0,.5)!important;border-color:var(--line)!important}:root:not([data-theme="light"]) nav.tabs .ind{box-shadow:none!important;border-color:transparent!important}}
/* v495: barra «Ver carrito» separada de la barra inferior; logo del negocio visible en modo oscuro */
html .vbar{bottom:calc(88px + var(--navb))!important}
:root[data-theme="dark"] #slogo img.thumb{background:#fff;border-radius:14px;padding:4px;box-sizing:border-box}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) #slogo img.thumb{background:#fff;border-radius:14px;padding:4px;box-sizing:border-box}}
/* v505: Ayuda, bloque fijo arriba con el título, el buscador y las categorías */
#helpmodal .hsticky{position:sticky;top:-6px;z-index:3;margin:0 -16px;padding:0 16px 6px;background:var(--glass-strong,var(--surface,#fff));-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px)}
#helpmodal .hsticky .sheethd{position:static;margin:0 -16px;background:none;-webkit-backdrop-filter:none;backdrop-filter:none}
html.kb-open #helpmodal .hsticky>.hint{display:none}
html.kb-open body #helpmodal .sheetdlg{height:calc(100% - 8px)}
/* v509: aviso para instalar la app (Inicio) */
.instcard .insthd{display:flex;gap:12px;align-items:flex-start}
.instcard .instic{width:48px;height:48px;border-radius:12px;flex:none;box-shadow:0 0 0 1px var(--line)}
.instcard h2{margin:0 0 4px}
.instcard .inststeps{margin:12px 0 4px;padding-left:22px;display:grid;gap:8px;line-height:1.4}
.instcard .shareic{vertical-align:-3px;color:var(--accent)}
.instcard .row{margin-top:12px}
/* v510: Servicio → Órdenes: buscador arriba; abajo escanear (ícono), filtros (ícono y contador) y la vista */
#svordcard .row.svtools{align-items:center;flex-wrap:nowrap;gap:8px}
#svordcard .row.svtools>.btn.scanbtn{align-self:center}
#svordcard .row.svtools>.grow{flex:1 1 0;min-width:0}
img.ajlogo{object-fit:contain;padding:6px;box-sizing:border-box} /* v510: el logo completo, sin recortar */
/* v510: en Servicio el botón de filtros va solo con el ícono (como escanear); el número de filtros activos en una burbuja */
#svordcard .svtools .fbtn{position:relative;justify-content:center;padding:0;width:52px;min-width:52px;min-height:50px}
#svordcard .svtools .fbtn>span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
#svordcard .svtools .fbtn svg{width:22px;height:22px}
#svordcard .svtools .fbtn .fcount{position:absolute;top:-6px;right:-6px;min-width:20px;height:20px;padding:0 5px;border-radius:10px;display:grid;place-items:center;font-size:.72rem;background:var(--accent);color:var(--accent-fg)}
#svordcard .svtools .fbtn .fcount[hidden]{display:none}
/* v510: «Limpiar filtros» separado de las fechas (Servicio) */
#fp-svc #svfclear{margin-top:12px}
/* v510: Atajos en el teléfono: cada atajo en su renglón, con aire entre los botones «Copiar enlace» */
.lnkrow{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid var(--line);margin:0}
.lnkrow:last-child{border-bottom:0}
.lnkrow{flex-wrap:nowrap}.lnkrow>span{flex:1 1 auto;min-width:0}.lnkrow>.btn{flex:none}

/* v513: IMEI en el carrito y en el inventario: uno por renglón, con «IMEI 1» / «IMEI 2» */
.imeis{display:flex;flex-direction:column;gap:6px;margin-top:4px}
.imeiu{display:flex;flex-direction:column;gap:1px}
.imeieq{font-size:.75rem;font-weight:700;color:var(--muted)}
.imeil{display:flex;align-items:baseline;gap:6px;flex-wrap:wrap;font-size:.86rem;line-height:1.3}
.imeil>span{color:var(--muted);min-width:4.2em}
.imeil>b{color:var(--fg);font-weight:600;letter-spacing:.01em;overflow-wrap:anywhere}
.cimei .cimeib{display:flex;gap:6px;flex-wrap:wrap;margin-top:6px}
/* v513 · carrito en hoja (celular), diseño C: tarjetas por producto */
#tab-vender.sheetm #vcart{padding:12px}
#tab-vender.sheetm .item.cl.clc{display:block;padding:0;margin:0;background:var(--surface);border:1px solid var(--line);border-radius:18px;overflow:hidden}
#tab-vender.sheetm .item.cl.clc+.item.cl.clc{margin-top:12px;border-top:1px solid var(--line)}
#tab-vender.sheetm .clc .clhd{display:flex;gap:12px;align-items:flex-start;padding:14px 14px 12px}
#tab-vender.sheetm .clc .clhd>.thumb{width:56px;height:56px;border-radius:14px;font-size:1.3rem;flex:none}
#tab-vender.sheetm .clc .main{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px;align-items:flex-start}
#tab-vender.sheetm .clc .t{font-size:1rem;font-weight:700;line-height:1.25}
#tab-vender.sheetm .clc .main>.s{font-size:.82rem}
#tab-vender.sheetm .clc .cltag{margin-top:4px;padding:2px 8px;border-radius:7px;background:var(--accent-soft);color:var(--accent);font-size:.72rem;font-weight:700}
#tab-vender.sheetm .clc .clhd>.x{flex:none;position:static}
#tab-vender.sheetm .clc .cimei{margin:0 14px 12px;padding:10px 12px;border-radius:12px;background:var(--field);color:var(--fg)}
#tab-vender.sheetm .clc .imeis{margin:0}
#tab-vender.sheetm .clc .imeil{justify-content:space-between;flex-wrap:nowrap;font-size:.9rem}
#tab-vender.sheetm .clc .cimeib{display:flex;gap:8px;margin-top:8px}
#tab-vender.sheetm .clc .cimeib .btn{flex:1 1 0;min-height:40px;justify-content:center}
#tab-vender.sheetm .clc .clft{display:flex;align-items:center;gap:10px;padding:10px 14px;border-top:1px solid var(--line);background:color-mix(in srgb,var(--fg) 3%,transparent)}
#tab-vender.sheetm .clc .clft .pedit{flex:1;min-width:0;display:flex;flex-direction:column-reverse;align-items:flex-start;gap:2px;margin:0}
#tab-vender.sheetm .clc .clft .pedit>.num:not(.pe){font-size:.72rem;color:var(--muted)}
#tab-vender.sheetm .clc .clft .pe{width:100%;max-width:104px;min-width:0;min-height:40px;padding:6px 10px}
html body #tab-vender.sheetm .item.cl.clc .qty button{width:36px;min-width:36px;height:40px}
#tab-vender.sheetm .clc .clft .qty .qin{width:40px}
#tab-vender.sheetm .clc .clft .qty{flex:none}
#tab-vender.sheetm .clc .clft .lt{flex:none;font-size:1.05rem;min-width:84px;text-align:right}
/* v513: producto nuevo: botón para escanear cada IMEI junto a su campo */
.imeirow .imeiin{flex-wrap:nowrap;gap:6px;align-items:stretch;margin:0}
.imeirow .imeiin>input{flex:1 1 auto;min-width:0}
.imeirow .imeiin>.scanbtn{flex:none;width:48px;min-width:48px;padding:0;justify-content:center}
.imeirow:has(.f+.f .imeiin),#pserialsbox .imeirow:has(.imeiin){flex-wrap:wrap}
.imeirow:has(.f+.f .imeiin)>.f,#pserialsbox .imeirow:has(.imeiin)>.f{flex:1 1 100%}
.imeirow:has(.f+.f .imeiin)>[data-imeidel]{margin-left:auto}
.imeibox>.imeirow:has(.imeiin)+.imeirow{border-top:1px dashed var(--line);padding-top:8px}
#pserialsbox .imeirow:has(.imeiin)>[data-imeidel]{display:none}

/* v515 · iPhone con iOS 26 instalado como app: a veces el sistema dice que el espacio de arriba (hora, batería) mide 0
   y el encabezado queda debajo. app.js lo detecta y pone --sat a mano (clase sat-fix) */

/* v516 · Inicio diseño D (celular y tableta): «Vendido hoy» en verde; los demás en cuadritos de dos en dos con su dibujito;
   accesos como íconos redondeados con el nombre debajo, de tres en fila. Ningún texto se corta */
.tile .k svg{display:none}
.quick .qki{display:contents;font-style:normal}
@media (max-width:1099px){
  html body #isumcard .tiles{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  html body #isumcard .tiles .tile{padding:12px;border-radius:16px;background:var(--field);border:1px solid var(--line);box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none;color:var(--fg);min-width:0}
  html body #isumcard .tiles .tile .k{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:.8rem;font-weight:600;line-height:1.2;letter-spacing:0;opacity:1}
  html body #isumcard .tiles .tile .k svg{display:block;width:16px;height:16px;flex:none}
  html body #isumcard .tiles .tile .v{font-size:1.25rem;margin-top:6px;line-height:1.15;color:var(--fg)}
  html body #isumcard .tiles .tile.vlong .v{font-size:1.05rem}
  html body #isumcard .tiles .tile .hint{font-size:.75rem;line-height:1.25;margin-top:2px;color:var(--muted);opacity:1}
  html body #isumcard .tiles .tile:first-child{grid-column:1/-1;padding:16px;border-radius:18px;background:var(--accent);border-color:transparent;color:var(--accent-fg,#000)}
  html body #isumcard .tiles .tile:first-child .k,html body #isumcard .tiles .tile:first-child .hint{color:inherit;opacity:.85;font-size:.85rem;letter-spacing:0;font-weight:700}
  html body #isumcard .tiles .tile:first-child .hint{font-weight:500}
  html body #isumcard .tiles .tile:first-child .v{font-size:2.1rem;color:inherit;margin-top:2px}
  html body #isumcard .tiles .tile:last-child:nth-child(odd):not(:first-child){grid-column:auto}
  html body #isumcard .tiles .tile:last-child:nth-child(even){grid-column:1/-1}
  html body #isumcard .quick{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 6px;margin-top:16px}
  html body #isumcard .quick .btn.qk{display:flex;flex-direction:column;align-items:center;gap:6px;min-height:0;height:auto;padding:0;background:none!important;border:0!important;box-shadow:none!important;color:var(--fg);font-size:.8rem;font-weight:600;line-height:1.2;text-align:center;white-space:normal}
  html body #isumcard .quick .btn.qk:last-child:nth-child(odd){grid-column:auto}
  html body #isumcard .quick .qki{display:flex;align-items:center;justify-content:center;width:56px;height:56px;border-radius:18px;background:var(--field);border:1px solid var(--line);color:var(--fg)}
  html body #isumcard .quick .qki svg{width:24px;height:24px;margin:0}
  html body #isumcard .quick .btn.qk.primary .qki{background:var(--accent);color:var(--accent-fg,#000);border-color:transparent}
  html body #isumcard .quick .btn.qk span{overflow-wrap:anywhere}
}

/* v516 · Ver precio: hoja como «Venta registrada»; la etiqueta de precio baja colgada de su cuerdita y se balancea */
.pcmod .pcs h2,.pcmod .pcname h2{margin:0}
.pcmod .pcs h2{margin-bottom:12px}
.pcmod .pcsrow{flex-wrap:nowrap;gap:8px;margin:0}
.pcmod .pcsrow input{min-width:0}
.pcmod .pcs .hint{margin:6px 0 4px}
.pcmod #pclist{max-height:52dvh;overflow:auto}
.pcmod .pcit{width:100%;background:none;border:0;border-bottom:1px solid var(--line);color:var(--fg);font:inherit;text-align:left;padding:12px 2px;display:flex;align-items:center;gap:12px;cursor:pointer}
.pcmod .pcit .main{flex:1;min-width:0}
.pcmod .pcit b{white-space:nowrap}
.pcmod .pcname{text-align:center;margin-bottom:4px}
.pcmod .pcname .hint{margin-top:2px}
.pcmod .pcbtns{gap:8px;flex-wrap:nowrap;margin-top:4px;display:flex}
.pcmod .pcbtns .btn{min-height:50px;justify-content:center}
.pcmod .pccl{width:100%;margin-top:8px;border:0;background:none;box-shadow:none;color:var(--muted);min-height:40px}
.pcmod .pcbig{background:var(--accent)!important;color:var(--accent-fg,#fff)!important}
.pcmod .pcbig span,.pcmod .pcbig b{color:inherit!important}
.pctag{position:relative;width:150px;height:112px;margin:0 auto 8px}
.pctag .pcpin{position:absolute;z-index:1;left:50%;top:0;width:10px;height:10px;margin-left:-5px;border-radius:50%;background:var(--fg)}
.pctag .pcsw{position:absolute;inset:0;transform-origin:75px 5px}
.pctag .pcstr{position:absolute;left:74px;top:5px;width:2px;height:30px;background:var(--muted)}
.pctag .pcbody{position:absolute;left:15px;top:34px;width:120px;height:74px;border-radius:14px;background:#fff;color:#111;border:2px solid var(--accent);box-shadow:0 8px 18px -8px rgba(0,0,0,.35);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px}
.pctag .pchole{width:10px;height:10px;border-radius:50%;border:2px solid #cfd5d1;background:var(--surface)}
.pctag .pcbody b{font-size:1rem;font-weight:800;color:#111;white-space:nowrap}
@media (prefers-reduced-motion:no-preference){
  html:not([data-calm]) .pctag .pcsw{animation:pcswing 1.6s cubic-bezier(.3,.7,.3,1) both}
  html:not([data-calm]) .pctag{animation:pcdrop .45s cubic-bezier(.3,1.4,.5,1) both}
  @keyframes pcdrop{0%{transform:translateY(-40px);opacity:0}100%{transform:none;opacity:1}}
  @keyframes pcswing{0%{transform:rotate(-16deg)}25%{transform:rotate(11deg)}45%{transform:rotate(-7deg)}62%{transform:rotate(4deg)}78%{transform:rotate(-2deg)}100%{transform:rotate(0)}}
}

/* v521 · Barra de abajo más baja, como la de iOS: antes quedaba a 10 px por encima de la raya de inicio del iPhone (~44 px del borde);
   ahora a ~22 px (la mitad del espacio de la raya). Lo que va encima de ella (barra del carrito, botón flotante, avisos) baja lo mismo (--navb) */
html #tab-reportes .empty::before{background:var(--rp-brand)} /* v522: el dibujito de «sin ventas» en Reportes va con el color del negocio */

/* v522 · Vender: productos en cuadritos (dos por fila en el celular, más en pantallas anchas). Las variantes ocupan toda la fila */
#vpick .vgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px;margin-top:4px}
#vpick .vgrid>.item{border:1px solid var(--line);border-radius:18px;background:var(--surface);padding:10px;margin:0}
#vpick .vgrid>.item+.item{border-top:1px solid var(--line)}
#vpick .vgrid>.item.vcard{display:flex;flex-direction:column;align-items:stretch;gap:8px;min-width:0}
#vpick .vgrid>.item.vcard>.thumb{width:100%;height:80px;border-radius:12px;font-size:1.7rem;object-fit:cover;flex:none}
#vpick .vgrid>.item.vcard .main{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}
#vpick .vgrid>.item.vcard .t{font-size:.92rem;font-weight:700;line-height:1.25;overflow-wrap:anywhere}
#vpick .vgrid>.item.vcard .s{display:flex;flex-direction:column;align-items:flex-start;gap:4px}
#vpick .vgrid>.item.vcard .vsep{display:none}
#vpick .vgrid>.item.vcard .vprice{font-size:1.02rem;font-weight:800;color:var(--fg)}
#vpick .vgrid>.item.vcard>[data-add]{width:100%;min-height:42px;justify-content:center;margin:0}
#vpick .vgrid>.item.vcard.vout{opacity:.7}
#vpick .vgrid>.item.vgroup{grid-column:1/-1}

/* v523 · Inicio: «Stock bajo» en naranja (como «Requiere tu atención» del informe) cuando hay productos por pedir */
html body #isumcard .tiles .tile.twarn{background:color-mix(in srgb,#f59e0b 14%,var(--surface));border-color:color-mix(in srgb,#f59e0b 30%,transparent)}
html body #isumcard .tiles .tile.twarn .k,html body #isumcard .tiles .tile.twarn .k svg,html body #isumcard .tiles .tile.twarn .v{color:#d97706}
html body #isumcard .tiles .tile.twarn .hint{color:color-mix(in srgb,#d97706 75%,var(--fg))}
:root[data-theme="dark"] body #isumcard .tiles .tile.twarn :is(.k,.k svg,.v,.hint){color:#fbbf24}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) body #isumcard .tiles .tile.twarn :is(.k,.k svg,.v,.hint){color:#fbbf24}}

/* v524 · Vender: todos los productos con el mismo cuadro de «Más vendidos» (se toca para agregar), tres por fila en el celular.
   La tira de «Más vendidos» ya no se aplasta: los hijos de #vpick no se encogen */
#vpick>*{flex-shrink:0}
#vpick .vgrid{grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:8px}
@media (max-width:599px){#vpick .vgrid{grid-template-columns:repeat(3,minmax(0,1fr))}}
#vpick .vgrid>.qcard.gcard{flex:none;width:auto;min-width:0;padding:6px;margin:0;box-shadow:none}
#vpick .vgrid>.qcard.gcard .thumb{height:auto;aspect-ratio:1/1}
#vpick .vgrid>.qcard.gcard .qn{-webkit-line-clamp:5;display:-webkit-box;font-size:.8rem;min-height:0;overflow-wrap:anywhere} /* v591: nombres muy largos hasta 5 líneas (el nombre completo sale al dejar el dedo) */
#vpick .vgrid>.qcard.gcard .qadd{top:10px;right:10px;width:26px;height:26px;font-size:1rem}
#vpick .vgrid>.qcard.gcard .qs.qlow{color:#d97706;font-weight:700}
#vpick .vgrid>.item.vgroup{grid-column:1/-1;border:1px solid var(--line);border-radius:18px;background:var(--surface);padding:10px;margin:0}
/* v525 · «Ver factura»: vista previa de la factura real (PDF dibujado con pdf.js) y del ticket */
.fxmod .dlg{width:min(560px,100%);display:flex;flex-direction:column;gap:12px}
.fxmod h2{margin:0;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.fxtabs{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;border-radius:12px;background:var(--field)}
.fxtabs button{border:0;background:transparent;color:inherit;font:inherit;font-weight:600;padding:9px 6px;border-radius:9px;cursor:pointer}
.fxtabs button.on{background:var(--surface);color:var(--accent);box-shadow:0 1px 3px rgba(0,0,0,.15)}
.fxview{background:#e6e7e9;border-radius:12px;padding:10px;min-height:240px;max-height:58vh;overflow:auto;-webkit-overflow-scrolling:touch;touch-action:pan-x pan-y;display:flex;flex-direction:column;align-items:center;gap:10px}
.fxpage{width:100%;height:auto;background:#fff;border-radius:2px;box-shadow:0 2px 8px rgba(0,0,0,.18)}
.fxtk{border:0;background:#fff;max-width:100%;min-height:200px;box-shadow:0 2px 8px rgba(0,0,0,.18)}
.fxpdf{border:0;width:100%;height:52vh;background:#fff}
.fxwait{margin:auto;color:#555;font-size:.95rem}
.fxview .empty,.fxview .hint{color:#333}
.fxbtns{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.fxbtns .btn{display:flex;align-items:center;justify-content:center;gap:6px}
.fxbtns .btn svg{width:18px;height:18px}
/* v526 · Facturas: filtros ordenados (buscar, período en una fila, fechas, estado) */
#factcard{gap:14px}
/* v527: mismo diseño de filtros en todas las pantallas (Facturas, Ventas, Crédito, Caja, perfiles, actividad) */
.fgrp{display:flex;flex-direction:column;gap:6px}
.flbl{font-size:.8rem;font-weight:600;color:var(--muted)}
.seg.fbseg{margin:0;display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr)}
.seg.fbseg button{white-space:nowrap;font-size:.8rem;padding:9px 2px;min-height:40px}
.seg.fbseg.fper{display:flex}
.seg.fbseg.fper button{flex:1 1 auto;padding-inline:8px}
.seg.fbseg.fwrap{display:flex;flex-wrap:wrap}
.seg.fbseg.fwrap button{flex:1 1 auto;padding-inline:10px}
.fdates{display:grid;grid-template-columns:1fr 1fr;gap:10px;align-items:end}
.fdates .f{margin:0;font-size:.8rem;font-weight:600;color:var(--muted)}
.fdates input{color:var(--fg);font-weight:500;min-height:44px}
.fbox{display:flex;flex-direction:column;gap:14px}
@media (min-width:1100px){#factcard .factbar{grid-template-columns:minmax(0,1fr) 420px;align-items:end}}
/* v528: «Quitar filtros» igual en todas partes: a todo lo ancho, al final del cuadro de filtros */
.fbox .btn.fclr{width:100%;min-height:44px;justify-content:center}
.fbox .chk{margin:0}
.fbox>.row{margin:0}

/* v536 (Juan): como una app, mantener el dedo (o arrastrar el mouse) no selecciona texto.
   Sí se puede seleccionar y copiar: lo que se escribe, las cifras (.num), los códigos (SKU, IMEI, código de recuperación) y los comprobantes. */
body{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
input,textarea,select,[contenteditable="true"],
.num,.codebox,.reccode,.pk,.vimei,.cimei,.cimeib,.imeis,.imeiu,.pimei,.fxview,.fxview *{-webkit-user-select:text;user-select:text;-webkit-touch-callout:default}

.supops{margin-top:10px}.supops>summary{cursor:pointer;color:var(--muted);font-weight:600;padding:6px 0}

/* v542 (Juan): interruptores nuevos en toda la app. Apagado: pista gris, bolita a la izquierda y un aro «O» a la derecha.
   Encendido: pista del color del negocio, una raya «I» a la izquierda y la bolita a la derecha. Mismas medidas en todas las pantallas. */
label.chk input[type=checkbox],#tab-ajustes label.chk input[type=checkbox]{-webkit-appearance:none;appearance:none;position:relative;flex:none;box-sizing:border-box;width:52px;height:32px;margin:0;padding:0;border-radius:999px;cursor:pointer;
  background:var(--field);background:color-mix(in srgb,var(--muted) 34%,var(--field));border:1px solid color-mix(in srgb,var(--muted) 30%,transparent);box-shadow:inset 0 1px 3px rgba(0,0,0,.22);
  transition:background .22s,border-color .22s}
label.chk input[type=checkbox]::before,#tab-ajustes label.chk input[type=checkbox]::before{content:"";position:absolute;top:50%;right:9px;width:11px;height:11px;box-sizing:border-box;margin-top:-5.5px;border-radius:50%;
  border:2px solid rgba(255,255,255,.62);background:transparent;transition:opacity .22s}
label.chk input[type=checkbox]::after,#tab-ajustes label.chk input[type=checkbox]::after{content:"";position:absolute;top:2px;left:2px;width:26px;height:26px;border-radius:50%;background:#fff;
  box-shadow:0 1px 3px rgba(0,0,0,.35),0 3px 8px rgba(0,0,0,.2);transition:transform .24s cubic-bezier(.34,1.4,.64,1)}
label.chk input[type=checkbox]:checked,#tab-ajustes label.chk input[type=checkbox]:checked{background:var(--accent);
  border-color:color-mix(in srgb,var(--accent) 78%,#000);box-shadow:inset 0 1px 2px rgba(0,0,0,.18)}
label.chk input[type=checkbox]:checked::before,#tab-ajustes label.chk input[type=checkbox]:checked::before{right:auto;left:13px;width:2px;height:11px;margin-top:-5.5px;border:0;border-radius:2px;background:rgba(255,255,255,.95)}
label.chk input[type=checkbox]:checked::after,#tab-ajustes label.chk input[type=checkbox]:checked::after{transform:translateX(20px);background:#fff}
label.chk input[type=checkbox]:focus-visible,#tab-ajustes label.chk input[type=checkbox]:focus-visible{outline:3px solid var(--accent-soft);outline-offset:2px}
label.chk input[type=checkbox]:disabled,#tab-ajustes label.chk input[type=checkbox]:disabled{opacity:.5;cursor:default}
@media (prefers-reduced-motion:reduce){label.chk input[type=checkbox],label.chk input[type=checkbox]::before,label.chk input[type=checkbox]::after{transition:none}}
/* v542: el interruptor de los módulos (Ajustes → Funciones) con el mismo diseño */
.ajtog .ajsw{box-sizing:border-box;width:52px;height:32px;border:1px solid color-mix(in srgb,var(--muted) 30%,transparent);background:var(--field);background:color-mix(in srgb,var(--muted) 34%,var(--field));box-shadow:inset 0 1px 3px rgba(0,0,0,.22);transition:background .22s,border-color .22s}
.ajtog .ajsw::before{content:"";position:absolute;top:50%;right:9px;width:11px;height:11px;box-sizing:border-box;margin-top:-5.5px;border-radius:50%;border:2px solid rgba(255,255,255,.62);transition:opacity .22s}
.ajtog .ajsw i{top:2px;left:2px;width:26px;height:26px;box-shadow:0 1px 3px rgba(0,0,0,.35),0 3px 8px rgba(0,0,0,.2);transition:transform .24s cubic-bezier(.34,1.4,.64,1)}
.ajtog .ajsw.on{background:var(--accent);border-color:color-mix(in srgb,var(--accent) 78%,#000);box-shadow:inset 0 1px 2px rgba(0,0,0,.18)}
.ajtog .ajsw.on::before{right:auto;left:13px;width:2px;height:11px;border:0;border-radius:2px;background:rgba(255,255,255,.95)}
.ajtog .ajsw.on i{transform:translateX(20px)}
@media (prefers-reduced-motion:reduce){.ajtog .ajsw,.ajtog .ajsw::before,.ajtog .ajsw i{transition:none}}
/* v542: las tarjetas plegables fuerzan 8px en todos sus campos; los interruptores siempre son redondos */
html .card.fold label.chk input[type=checkbox],html .sheetdlg label.chk input[type=checkbox]{border-radius:999px!important}

/* ===== v550 · Reportes nuevo (Juan aprobó la mezcla de las maquetas 1 y 3): «Hoy toca» y cuatro temas, en negro, blanco y el color del negocio ===== */
#app #tab-reportes{--accent:var(--rp-brand);--accent-fg:var(--rp-brand-fg);--accent-2:var(--rp-brand);--rp-v:var(--rp-brand);--rp-bar:var(--rp-brand);--rp-card:var(--surface);--rp-line:var(--line);--rp-muted:var(--muted);--rp-fg:var(--fg);--rp-track:var(--field);--rp-bg:var(--bg);--prev:#8a9690;--rx-s2:#6b7f99;--rx-ease:cubic-bezier(.23,1,.32,1)}
@media (prefers-color-scheme:dark){html:not([data-theme="light"]) #app #tab-reportes{--prev:#66716c;--rx-s2:#7a8fa8}}
html[data-theme="dark"] #app #tab-reportes{--prev:#66716c;--rx-s2:#7a8fa8}
html:has(#app[data-tab="reportes"]){--rp-page:var(--bg)!important}
html:has(#app[data-tab="reportes"]) body{background:var(--bg)!important}
#tab-reportes .rx .r-head h2{display:block;font-size:1.75rem}
#tab-reportes .rx .r-head h2+.hint{display:none}
.rx-date{font-weight:600;margin:0 0 2px!important}
@media (min-width:1100px){.rx-date{display:none}} /* en computador la fecha ya sale arriba, junto al título */
.rx-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;margin-top:14px}
.rx-main{min-width:0;container:rxm/inline-size}
.rx-ctl{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:2px 10px}
.rx-ctl h3{font-size:1.15rem;font-weight:800;margin:0}
.rx-ctl .hint{margin:0}
.rx .r-chips{margin-top:8px}
@container rp (min-width:900px){
  .rx-grid{grid-template-columns:minmax(300px,4fr) minmax(0,8fr);align-items:start}
  /* v688: «Hoy toca» ya no se queda fija en el computador (se quedaba pegada y tapaba los reportes) */
  .rx-todo{position:static}
  .rx .r-chips{margin-inline:0;padding-inline:0;-webkit-mask-image:none;mask-image:none;flex-wrap:wrap;overflow:visible}
  .rx-more{display:none!important}
}
/* Hoy toca: tarjeta en tinta (negra en claro, clara en oscuro) */
.rx-todo{background:var(--fg);color:var(--bg);border-radius:var(--r-lg);padding:18px;min-width:0}
.rx-todo[hidden]{display:none}
#tab-reportes .rx-todo .hint{color:color-mix(in srgb,var(--bg) 70%,transparent)!important}
.rx-th{display:flex;align-items:center;justify-content:space-between;gap:10px}
.rx-th h3{font-size:1.15rem;font-weight:800;margin:0}
.rx-prog{height:6px;border-radius:99px;background:color-mix(in srgb,var(--bg) 18%,transparent);margin:12px 0 4px;overflow:hidden}
.rx-prog i{display:block;height:100%;background:var(--accent);border-radius:99px}
.rx-task{display:flex;gap:12px;align-items:flex-start;padding:12px 0;border-top:1px solid color-mix(in srgb,var(--bg) 16%,transparent)}
.rx-prog+.rx-task{border-top:0}
.rx-task .grow{min-width:0}
.rx-task .tt{font-weight:700;overflow-wrap:anywhere}
.rx-task .ts{font-size:.85rem;color:color-mix(in srgb,var(--bg) 70%,transparent);margin-top:1px;overflow-wrap:anywhere}
.rx-task .ta{margin-top:8px;display:flex;gap:8px;flex-wrap:wrap}
.rx-task.done .tt{text-decoration:line-through;opacity:.55}
.rx-ck{width:28px;height:28px;flex:none;margin-top:-1px;border-radius:50%;border:2px solid color-mix(in srgb,var(--bg) 45%,transparent);background:none;display:grid;place-items:center;padding:0;cursor:pointer;transition:background .18s ease,border-color .18s ease,transform .14s var(--rx-ease)}
.rx-ck:active{transform:scale(.92)}
.rx-ck svg{width:15px;height:15px;fill:none;stroke:var(--accent-fg);stroke-width:3;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:20;stroke-dashoffset:20;transition:stroke-dashoffset .26s var(--rx-ease) .06s}
.rx-task.done .rx-ck{background:var(--accent);border-color:var(--accent)}
.rx-task.done .rx-ck svg{stroke-dashoffset:0}
.rx-tag{font-size:.68rem;font-weight:800;letter-spacing:.03em;padding:2px 7px;border-radius:6px;margin-left:6px;vertical-align:1px;white-space:nowrap}
#tab-reportes .rx-tag.bad{background:var(--bad);color:#fff!important}
#tab-reportes .rx-tag.warn{background:#f2b862;color:#2a1c05!important}
#tab-reportes .rx-todo .btn.rx-ghost{background:color-mix(in srgb,var(--bg) 14%,transparent)!important;border-color:transparent!important;color:var(--bg)!important;box-shadow:none!important}
#tab-reportes .rx-todo .btn.rx-wa{background:var(--accent)!important;color:var(--accent-fg)!important;border-color:transparent!important;box-shadow:none!important}
.rx-todo .btn svg{width:16px;height:16px}
.rx-more{width:100%;margin-top:8px}
@container rp (max-width:899px){.rx-todo.lim .rx-task.extra{display:none}}
.rx-alldone{display:flex;align-items:center;gap:12px}
.rx-alldone .grow{flex:1;min-width:0}
.rx-alldone .okc{width:32px;height:32px;border-radius:50%;background:var(--accent);color:var(--accent-fg);display:grid;place-items:center;flex:none}
.rx-alldone .okc svg{width:17px;height:17px}
/* Temas */
.rx-tabs{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px;margin:14px 0}
.rx-tab{border:1px solid var(--line);background:var(--surface);color:var(--fg);border-radius:16px;padding:11px 13px;text-align:left;display:flex;flex-direction:column;gap:3px;min-width:0;cursor:pointer;font:inherit;transition:transform .14s var(--rx-ease),background-color .16s ease,border-color .16s ease}
.rx-tab:active{transform:scale(.97)}
.rx-tab .l{display:flex;align-items:center;gap:7px;font-size:.82rem;font-weight:600;color:var(--muted)}
.rx-tab .l svg{width:17px;height:17px;flex:none}
.rx-tab .n{font-family:var(--f-display);font-weight:800;font-size:1.12rem;letter-spacing:-.02em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rx-tab .n .alert{color:var(--bad)}
.rx-tab[aria-selected="true"] .n .alert{color:inherit}
.rx-tab[aria-selected="true"]{background:var(--fg);border-color:var(--fg);color:var(--bg)}
.rx-tab[aria-selected="true"] .l{color:color-mix(in srgb,var(--bg) 72%,transparent)}
.rx-tab.flash{animation:rxflash .7s var(--rx-ease)}
@keyframes rxflash{0%{box-shadow:0 0 0 0 color-mix(in srgb,var(--accent) 55%,transparent)}100%{box-shadow:0 0 0 12px transparent}}
.rx-pane{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;animation:rxin .24s var(--rx-ease)}
@keyframes rxin{from{opacity:.4;transform:translateY(4px)}}
@container rxm (min-width:640px){.rx-pane{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.rx-w,.rx-pane>.empty{grid-column:1/-1}}
.rx-pane>*{min-width:0;margin:0!important}
.rx-c{display:flex;flex-direction:column;gap:10px}
.rx-c h2{font-size:1.05rem;font-weight:700;margin:0}
.rx-c>.hint{margin:-6px 0 0}
.rx-big{font-family:var(--f-display);font-size:clamp(2.1rem,8vw,3.2rem);font-weight:800;letter-spacing:-.035em;line-height:1.02;white-space:nowrap}
.rx-kv{display:flex;flex-wrap:wrap;gap:6px 18px;color:var(--muted);font-size:.9rem}
.rx-kv b{color:var(--fg);font-weight:700}
.rx-kv b.bad,.rx-tri b.bad{color:var(--bad)}
.rx-kv small{color:var(--muted);font-weight:600}
.rx-dl{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.rx-dl .hint{margin:0}
.rx-pill{display:inline-flex;align-items:center;gap:5px;font-size:.76rem;font-weight:700;border-radius:999px;padding:3px 9px;white-space:nowrap;vertical-align:1px}
.rx-pill svg{width:14px;height:14px}
.rx-pill.up{background:var(--ok-soft);color:var(--ok)}
.rx-pill.dn{background:var(--bad-soft);color:var(--bad)}
.rx-pill.warn{background:var(--warn-soft);color:var(--warn)}
.rx-pill.neu{background:var(--field);color:var(--muted)}
.rx .r-leg i.dash{background:none!important;height:0;border-top:2px dashed var(--prev)}
.rx-touch{font-size:.78rem;margin:0!important}
.rx-sub{font-size:1.02rem;font-weight:700;margin:6px 0 0}
.rx-full{width:100%}
.rx-bar{height:7px;border-radius:99px;background:var(--field);overflow:hidden;margin-top:7px}
.rx-bar i{display:block;height:100%;background:var(--accent);border-radius:99px}
.rx-c .item .s .rx-pill{margin-right:4px}
.rx-c .item .rx-wa{flex:none;width:40px;height:40px;padding:0;justify-content:center}
.rx-c .item .rx-wa span{display:none}
.rx-c .item .rx-wa svg{width:19px;height:19px}
#app #tab-reportes .r-rk{background:var(--field);color:var(--muted)}
#app #tab-reportes .r-row:first-child .r-rk{background:var(--accent);color:var(--accent-fg)}
/* Cuotas de la semana */
.rx-wk{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;align-items:end;height:150px}
.rx-wk button{border:0;background:none;padding:0;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:6px;height:100%;border-radius:10px;cursor:pointer;color:var(--fg);min-width:0;font:inherit}
.rx-wk .col{width:100%;max-width:40px;border-radius:8px 8px 4px 4px;background:var(--accent);min-height:4px;transition:opacity .16s ease}
.rx-wk .col.zero{background:var(--field)}
.rx-wk .col.late{background:var(--bad)}
.rx-wk .dl{font-size:.75rem;color:var(--muted);font-weight:600}
.rx-wk .vl{font-size:.68rem;font-weight:700;white-space:nowrap}
.rx-wk.sel button:not([aria-pressed="true"]) .col{opacity:.3}
.rx-wk button[aria-pressed="true"] .dl,.rx-wk .today .dl{color:var(--fg);font-weight:800}
/* Mejores días y horas */
.rx-hm{display:grid;grid-template-columns:34px repeat(var(--cols),minmax(0,1fr));gap:3px;font-size:.7rem}
.rx-hm .h{color:var(--muted);text-align:center}
.rx-hm .d{color:var(--muted);font-weight:600;align-self:center}
.rx-hm button{border:0;padding:0;aspect-ratio:1/1;border-radius:5px;min-width:0;cursor:pointer;background:color-mix(in srgb,var(--accent) calc(var(--v)*100%),var(--field))}
@container rxm (min-width:640px){.rx-hm button{aspect-ratio:2/1}}
.rx-hm button[aria-pressed="true"]{outline:2px solid var(--fg);outline-offset:1px}
.rx-scale{display:flex;align-items:center;gap:8px;font-size:.75rem;color:var(--muted)}
.rx-scale i{flex:0 0 90px;height:8px;border-radius:99px;background:var(--accent)}
.rx-hmread{min-height:40px;font-size:.88rem}
/* Equipos y accesorios */
.rx-leg{display:flex;flex-wrap:wrap;gap:14px;font-size:.8rem;color:var(--muted)}
.rx-leg span{display:inline-flex;align-items:center;gap:6px}
.rx-leg i{width:10px;height:10px;border-radius:3px;display:inline-block}
.rx-leg i.a,.rx-st .a{background:var(--accent);color:var(--accent-fg)}
.rx-leg i.b,.rx-st .b{background:var(--rx-s2);color:#fff}
.rx-st{display:flex;flex-direction:column;gap:12px}
.rx-st .lab{font-size:.82rem;color:var(--muted);margin-bottom:6px}
.rx-st .bars{display:flex;gap:2px;height:28px}
.rx-st .bars>div{border-radius:6px;display:flex;align-items:center;padding-inline:9px;font-size:.78rem;font-weight:700;min-width:0;white-space:nowrap;overflow:hidden}
/* Metas y cuadres */
.rx-goal .gl{display:flex;justify-content:space-between;gap:10px;font-size:.85rem;margin-bottom:6px}
.rx-goal .gt{position:relative;height:12px;border-radius:99px;background:var(--field)}
.rx-goal .gt i{position:absolute;inset:0 auto 0 0;border-radius:99px;background:var(--accent)}
.rx-goal .gt em{position:absolute;top:-4px;bottom:-4px;width:0;border-left:2px dashed var(--fg)}
.rx-goal .hint{margin-top:6px}
.rx-tri{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.rx-tri>div{background:var(--field);border-radius:14px;padding:10px 12px;min-width:0}
.rx-tri small{display:block;color:var(--muted);font-size:.74rem}
.rx-tri b{display:block;font-family:var(--f-display);font-weight:800;font-size:1.05rem;letter-spacing:-.02em;white-space:nowrap}
@media (prefers-reduced-motion:reduce){.rx-pane,.rx-tab.flash{animation:none}.rx-ck svg,.rx-prog i{transition:none}}

/* v554 · Entrada y carga en computador (opciones 2 y 3 de Juan): mitad izquierda con el color del negocio, su logo, la hora y la fecha;
   a la derecha la persona con su teclado, o la animación de inicio de siempre (logo y ticket que se imprime) mientras carga */
.authside{display:none}
@media (min-width:1100px){
  .authside{display:flex;flex-direction:column;justify-content:space-between;position:fixed;inset:0 auto 0 0;width:50vw;z-index:5;padding:48px 56px;box-sizing:border-box;overflow:hidden;
    background:var(--accent);color:var(--accent-fg);opacity:0;visibility:hidden;transition:opacity .3s,visibility .3s}
  /* en modo oscuro el mismo tono profundo del modo claro (no el brillante de los botones) y letra blanca (Juan, v554) */
  html[data-theme="dark"] .authside{background:var(--accent-deep,#15803d);color:#fff}
  body:has(#auth:not([hidden])) .authside,body:has(#splash:not([hidden]):not(.off)) .authside{opacity:1;visibility:visible}
  body:has(#splash:not([hidden]):not(.off)) .authside{z-index:201}
  .authside::after{content:"";position:absolute;right:-130px;bottom:-130px;width:440px;height:440px;border-radius:50%;border:64px solid color-mix(in srgb,var(--accent-fg) 8%,transparent);pointer-events:none}
  .authside .as-top{display:flex;align-items:center;gap:14px;min-width:0}
  .authside .as-logo{flex:none;width:68px;height:68px;border-radius:18px;background:#fff;display:grid;place-items:center;overflow:hidden;color:var(--accent);font-family:var(--f-display);font-weight:800;font-size:1.8rem}
  .authside .as-logo img{max-width:52px;max-height:52px;object-fit:contain}
  .authside .as-top b{font-family:var(--f-display);font-size:1.5rem;font-weight:800;letter-spacing:-.02em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .authside .as-time{font-family:var(--f-display);font-size:clamp(4rem,7vw,6.2rem);font-weight:800;letter-spacing:-.045em;line-height:1;font-variant-numeric:tabular-nums}
  .authside .as-time small{font-size:.36em;letter-spacing:0;margin-left:10px}
  .authside .as-date{font-size:1.4rem;opacity:.85;margin-top:10px}
  /* v555 · el logo de Mi Cuadra más grande y en cuadro blanco, para que se vea sobre cualquier color (Juan) */
  .authside .as-foot{display:flex;align-items:center;gap:14px;position:relative;z-index:1}
  .authside .as-foot svg{width:52px;height:52px;flex:none;border-radius:14px;box-shadow:0 6px 18px -6px rgba(0,0,0,.35)}
  .authside .as-foot span{display:flex;flex-direction:column;line-height:1.15}
  .authside .as-foot small{font-size:.8rem;opacity:.75;font-weight:600}
  .authside .as-foot b{font-family:var(--f-display);font-size:1.35rem;font-weight:800;letter-spacing:-.02em}
  html:root body:has(#auth:not([hidden])){padding-left:50vw!important;padding-right:0!important;background:var(--surface)!important}
  #splash{padding-left:50vw;box-sizing:border-box}
  html:root body #splash{background:var(--surface)!important}
  #splash>*{zoom:1.3}
  /* lado derecho de la entrada: sin tarjeta; el nombre y el logo ya están a la izquierda */
  #auth .auth{min-height:100dvh;max-width:none;margin:0;padding:32px 24px;box-sizing:border-box;justify-content:center;align-items:center;background:none}
  html:root body #auth .auth .card{max-width:400px;background:none!important;border:0!important;box-shadow:none!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
  #auth .auth.pad .ahero>h1,#auth .auth.pad .ahero>.logo.hero,#auth .auth.pad .ahero>.amark,#auth .auth.pad .ahero>.atag{display:none}
  #auth .auth.pad .ahi{color:var(--fg);font-family:var(--f-display);font-size:1.6rem;font-weight:800;display:flex;flex-direction:column;align-items:center;gap:4px}
  #auth .auth.pad .ahi .ahichg{font-size:.85rem;font-weight:700}
  #auth .auth.pad .ahiph{width:76px;height:76px}
  #auth .auth.pad .pinpad{grid-template-columns:repeat(3,76px);justify-content:center;gap:14px 22px;max-width:none}
  #auth .auth.pad .padk{width:76px;height:76px;border-radius:50%;padding:0;background:var(--surface)!important;border:1px solid var(--line)!important;box-shadow:0 2px 8px -3px rgba(0,0,0,.15)!important}
  #auth .auth.pad .padk.del{background:transparent!important;border-color:transparent!important;box-shadow:none!important}
  #auth .auth.pad .padk:hover{border-color:color-mix(in srgb,var(--accent) 45%,var(--line))!important}
  #auth .auth.pad .padk:active{transform:scale(.94)}
}
/* v553 · Cobrar en efectivo: el campo, los valores rápidos y el aviso con su espacio (antes quedaban pegados) */
#pdcash:not([hidden]){display:flex;flex-direction:column;gap:10px}
#pdcash>.f{margin:0}
#pdquick{display:flex;flex-wrap:wrap;gap:8px;margin:0}
#pdquick:empty{display:none}
#pdquick>.btn{flex:1 1 0;min-width:96px;margin:0}
#pdchg{margin:0}
#pdcash+*{margin-top:4px}

/* v554 · Vender en computador (opción B de Juan): carrito con solo productos y total; «Cobrar» abre una ventana de dos columnas */
#vcocancel{display:none}
@media (min-width:900px){
  #tab-vender.dkm #vcpill{display:inline-flex}
  #tab-vender.dkm .cartcard .shd{display:flex;align-items:center;justify-content:space-between;gap:12px}
  #tab-vender.dkm .cartcard .shd h2{display:flex;align-items:center;gap:10px;margin:0}
  #tab-vender.dkm:not(.sheet-open) :is(#vcliw,#vdrow,#vpayw,#vmethodw,#vrefw,#vcash,#vdeprow,#vplan,#vmix,#vextrabtn,#vextra,#vswipe){display:none!important}
  #tab-vender.dkm:not(.sheet-open) .cart-scroll{gap:0}
  #tab-vender.dkm #vconfirm{min-height:52px;font-size:1.05rem}
  /* ventana «Cobrar» */
  #tab-vender.dkm.sheet-open #vsheetbg{display:block;position:fixed;inset:0;z-index:44;background:rgba(0,0,0,.5);animation:cofade .18s ease-out}
  #app[data-tab="vender"] #tab-vender.dkm.sheet-open>.cartcard{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);width:min(940px,94vw);max-height:92vh;overflow:auto;z-index:45;margin:0;padding:22px 24px;border-radius:24px;background:var(--surface);border:1px solid var(--line);box-shadow:0 30px 70px -20px rgba(0,0,0,.5);display:flex;flex-direction:column;gap:14px;animation:copop .2s ease-out}
  @keyframes cofade{from{opacity:0}}
  @keyframes copop{from{opacity:0;transform:translate(-50%,-48%) scale(.98)}}
  #tab-vender.dkm.sheet-open .shd #vclose{display:inline-flex}
  #tab-vender.dkm.sheet-open #vcpill{display:inline-flex}
  #tab-vender.dkm.sheet-open .cart-scroll{display:none}
  #tab-vender.dkm .co-cols{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;align-items:start}
  #tab-vender.dkm .co-l,#tab-vender.dkm .co-r{display:flex;flex-direction:column;gap:14px;min-width:0}
  #tab-vender.dkm .co-l>.vextra{display:flex;gap:14px}
  #tab-vender.dkm #vsumtop{display:flex;flex-direction:column;align-items:center;gap:2px;padding:16px 12px;border-radius:18px;background:var(--bg);margin:0}
  #tab-vender.dkm #vsumtop span{color:var(--muted);font-weight:600;font-size:.9rem}
  #tab-vender.dkm #vsumtop b{font-size:2.2rem;line-height:1.1}
  #tab-vender.dkm #vsumtop small{color:var(--muted)}
  #tab-vender.dkm .vpayw{display:flex;flex-direction:column;gap:8px}
  #tab-vender.dkm .vpay{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  #tab-vender.dkm .vpill{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:58px;padding:6px 4px;border-radius:14px;border:1px solid var(--line);background:var(--field);color:var(--fg,inherit);font:inherit;font-weight:700;font-size:.82rem;line-height:1.15;text-align:center;cursor:pointer;min-width:0}
  #tab-vender.dkm .vpill svg{width:22px;height:22px;flex:none}
  #tab-vender.dkm .vpill span{overflow-wrap:anywhere}
  #tab-vender.dkm .vpill:hover{border-color:color-mix(in srgb,var(--accent) 45%,var(--line))}
  #tab-vender.dkm .vpill.on{background:var(--accent);color:var(--accent-fg);border-color:transparent}
  #tab-vender.dkm .vpay.shake{animation:vshake .4s}
  #tab-vender.dkm #vmethodw{position:absolute;opacity:0;width:1px;height:1px;overflow:hidden;pointer-events:none}
  #tab-vender.dkm #vcash:not([hidden]){display:flex;flex-direction:column;gap:10px}
  #tab-vender.dkm #vcash>.f{margin:0}
  #tab-vender.dkm #vchips{display:flex;flex-wrap:wrap;gap:8px}
  #tab-vender.dkm #vchips>.btn{flex:1 1 0;min-width:90px}
  #tab-vender.dkm .co-r>.cart-foot{display:flex;flex-direction:column;gap:10px;border-top:0;padding-top:0;margin-top:4px}
  #tab-vender.dkm .co-r>.cart-foot .rtot,#tab-vender.dkm .co-r>.cart-foot .riva{display:none}
  #tab-vender.dkm .co-r>.cart-foot #vtotals:empty{display:none}
  #tab-vender.dkm .co-r>.cart-foot>.row{display:flex;flex-direction:column;gap:8px}
  #tab-vender.dkm .co-r>.cart-foot>.row>*{flex:none!important;width:100%}
  #tab-vender.dkm .co-r #vhold{display:none}
  #tab-vender.dkm .co-r #vcocancel{display:inline-flex;justify-content:center}
  #tab-vender.dkm .co-r #vconfirm{min-height:54px}
}
@keyframes vshake{0%,100%{transform:none}25%{transform:translateX(-6px)}75%{transform:translateX(6px)}}
@media (min-width:900px){
  #tab-vender.dkm:not(.sheet-open) #vsumtop{display:none}
  /* filas del carrito más delgadas en computador */
  #tab-vender.dkm #vcart>.item{padding:8px 0;gap:10px;align-items:center;min-height:0}
  #tab-vender.dkm #vcart>.item .thumb{width:38px;height:38px;flex:none;border-radius:10px;font-size:.9rem}
  #tab-vender.dkm #vcart>.item .main{min-width:0;gap:2px}
  #tab-vender.dkm #vcart>.item .t{font-size:.9rem;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  #tab-vender.dkm #vcart>.item .pedit{display:flex;align-items:center;gap:4px;font-size:.8rem}
  #tab-vender.dkm #vcart>.item .pe{width:92px;min-height:0;height:30px;padding:2px 8px;border-radius:8px;font-size:.85rem}
  #tab-vender.dkm #vcart>.item .qty{flex:none}
  #tab-vender.dkm #vcart>.item .qty button{width:28px;min-width:28px;height:28px;border-radius:8px}
  #tab-vender.dkm #vcart>.item .qty .qin,#tab-vender.dkm #vcart>.item .qty>span{width:34px;min-height:0;height:28px;padding:0;text-align:center;font-size:.88rem}
  #tab-vender.dkm #vcart>.item>.x{width:28px;min-width:28px;height:28px;min-height:0;padding:0}
  #tab-vender.dkm #vcart>.item .cimei{font-size:.75rem}
}
@media (min-width:1100px) and (prefers-color-scheme:dark){html:not([data-theme="light"]) .authside{background:var(--accent-deep,#15803d);color:#fff}}
/* v557 (Juan): al buscar en Ajustes se esconden los títulos de grupo (las secciones que coinciden se reordenan y quedarían sueltos) */
#tab-ajustes.searching>.fglbl{display:none!important}
/* v558 (Juan): «Ver lo que se llevó» en Clientes con saldo: los productos de cada venta a crédito */
.fi-pbtn{align-self:flex-start;margin:-4px 0 2px 52px;padding:4px 0;font-weight:700;color:var(--accent);min-height:36px;text-decoration:none!important}
.fi-sh{display:flex;justify-content:space-between;gap:10px;font-size:.88rem;color:var(--muted)}
.fi-sh b{color:var(--fg)}
.fi-sb{border-top:1px dashed var(--line);padding-top:6px;margin-top:4px}
.fi-prod{width:100%;display:flex;flex-direction:column;gap:10px;margin:2px 0 8px;padding:10px 12px;border-radius:14px;background:var(--field)}
.fi-items{list-style:none;margin:4px 0 0;padding:0;display:flex;flex-direction:column;gap:4px}
.fi-items li{display:flex;justify-content:space-between;gap:12px;font-size:.9rem;min-width:0}
.fi-items li>span:first-child{min-width:0;overflow-wrap:anywhere}
.fi-items li.fi-int{color:var(--muted)}
.payform .fi-items{margin:0 0 6px}
/* v558 (Juan, foto del iPhone): «Ordenar por» y «Exportar a Excel» del mismo alto y alineados; sin hueco bajo «Filtrar por fecha» */
.msort{align-items:flex-end}
.msort select,.msort .expbtn{height:48px;min-height:48px;box-sizing:border-box}
.msort .expbtn{align-self:flex-end;display:inline-flex;align-items:center;margin:0}
#fcredcard details.more+.row{margin-top:2px!important}
/* v558 (Juan): las tarjetas de Inicio abren su pantalla; flechita y leve hundimiento al tocar */
.tile.tgo{cursor:pointer;position:relative;transition:transform .12s ease,box-shadow .12s ease;-webkit-tap-highlight-color:transparent}
.tile.tgo:active{transform:scale(.97)}
.tile.tgo:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.tile.tgo::after{content:'›';position:absolute;top:10px;right:14px;font-size:1.3rem;line-height:1;font-weight:700;opacity:.45}
.tile.tgo .k,html body #isumcard .tiles .tile.tgo .k{padding-right:18px}
/* v558 (Juan, opción B): fila de descuento antes de «¿Cómo paga el cliente?» */
.vdrow{margin:10px 0 4px;padding:12px;border-radius:16px;background:var(--field);display:flex;flex-direction:column;gap:8px}
.vdrow[hidden]{display:none}
.vdrow .vdh{display:flex;justify-content:space-between;align-items:center;font-weight:700;font-size:.9rem}
.vdrow .vdh b{color:var(--accent)}
.vdrow .dchips{margin:0}
.vdrow .dchips button{background:var(--surface)}
.vdrow .dchips button.on{background:var(--accent);color:var(--accent-ink,#fff);border-color:var(--accent)}
.vdrow .dchips button:disabled{opacity:.45;cursor:not-allowed}
.vdrow #vdother .f{margin:0}
/* v560 (Juan): «Puedes bajar hasta $ …» bajo el precio del carrito (vendedor con permiso de cambiar precios) */
.pminh{display:block;width:100%;font-size:.75rem;color:var(--muted);margin-top:2px}
.pminh.bad{color:var(--danger,#c0262d);font-weight:700}

/* v562 · Teclado del PIN con botones redondos también en celular y tablet (Juan; antes cuadrados). El tamaño baja en pantallas bajas. */
@media (max-width:1099px){
  #auth{--pk:72px}
  html body #auth .pinpad{grid-template-columns:repeat(3,var(--pk));justify-content:center;gap:12px 22px;max-width:none;margin-inline:auto}
  html body #auth .padk{width:var(--pk)!important;height:var(--pk)!important;border-radius:50%!important;padding:0}
  html body #auth .pinpad .padk.del{background:transparent!important;border-color:transparent!important;box-shadow:none!important}
}
@media (max-width:1099px) and (max-height:760px){#auth{--pk:58px}html body #auth .pinpad{gap:8px 20px}}
@media (max-width:1099px) and (max-height:680px){#auth{--pk:50px}html body #auth .pinpad{gap:6px 20px}}
@media (max-width:1099px) and (max-height:600px){#auth{--pk:44px}}
@media (max-width:340px){#auth{--pk:62px}html body #auth .pinpad{column-gap:16px}}
/* v562 · Tablet en vertical (opción B de Juan): franja con el color del negocio arriba (nombre, hora, fecha y Mi Cuadra)
   y debajo el PIN o la carga, como el computador pero de arriba a abajo. */
@media (min-width:700px) and (max-width:1099px) and (orientation:portrait){
  #auth{--pk:80px}
  .authside{display:flex;flex-direction:column;justify-content:flex-end;position:fixed;inset:0 0 auto 0;height:36vh;z-index:5;padding:40px 48px 36px;box-sizing:border-box;overflow:hidden;
    background:var(--accent);color:var(--accent-fg);opacity:0;visibility:hidden;transition:opacity .3s,visibility .3s}
  html[data-theme="dark"] .authside{background:var(--accent-deep,#15803d);color:#fff}
  body:has(#auth:not([hidden])) .authside,body:has(#splash:not([hidden]):not(.off)) .authside{opacity:1;visibility:visible}
  body:has(#splash:not([hidden]):not(.off)) .authside{z-index:201}
  .authside::after{content:"";position:absolute;right:-110px;bottom:-150px;width:400px;height:400px;border-radius:50%;border:60px solid color-mix(in srgb,var(--accent-fg) 8%,transparent);pointer-events:none}
  .authside .as-top{position:absolute;left:48px;top:40px;right:300px;display:flex;align-items:center;gap:14px;min-width:0}
  .authside .as-logo{flex:none;width:60px;height:60px;border-radius:16px;background:#fff;display:grid;place-items:center;overflow:hidden;color:var(--accent);font-family:var(--f-display);font-weight:800;font-size:1.6rem}
  .authside .as-logo img{max-width:46px;max-height:46px;object-fit:contain}
  .authside .as-top b{font-family:var(--f-display);font-size:1.4rem;font-weight:800;letter-spacing:-.02em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .authside .as-time{font-family:var(--f-display);font-size:5.4rem;font-weight:800;letter-spacing:-.045em;line-height:1;font-variant-numeric:tabular-nums}
  .authside .as-time small{font-size:.36em;letter-spacing:0;margin-left:10px}
  .authside .as-date{font-size:1.3rem;opacity:.85;margin-top:8px}
  .authside .as-foot{position:absolute;right:48px;top:40px;display:flex;align-items:center;gap:12px;z-index:1}
  .authside .as-foot svg{width:44px;height:44px;flex:none;border-radius:12px;box-shadow:0 6px 18px -6px rgba(0,0,0,.35)}
  .authside .as-foot span{display:flex;flex-direction:column;line-height:1.15}
  .authside .as-foot small{font-size:.75rem;opacity:.75;font-weight:600}
  .authside .as-foot b{font-family:var(--f-display);font-size:1.15rem;font-weight:800;letter-spacing:-.02em}
  html:root body:has(#auth:not([hidden])){padding-top:36vh!important;padding-bottom:0!important;background:var(--surface)!important}
  #splash{padding-top:36vh;box-sizing:border-box}
  html:root body #splash{background:var(--surface)!important}
  #splash>*{zoom:1.3}
  html body #auth .auth{min-height:64vh!important;max-width:none;margin:0;padding:24px;box-sizing:border-box;justify-content:center;align-items:center;background:none}
  html:root body #auth .auth .card{max-width:420px;background:none!important;border:0!important;box-shadow:none!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
  #auth .auth.pad .ahero>h1,#auth .auth.pad .ahero>.logo.hero,#auth .auth.pad .ahero>.amark,#auth .auth.pad .ahero>.atag{display:none}
  #auth .auth.pad .ahi{color:var(--fg);font-family:var(--f-display);font-size:1.6rem;font-weight:800;display:flex;flex-direction:column;align-items:center;gap:4px}
  html body #auth .pinpad{gap:14px 24px}
  html body #auth .padk{background:var(--surface)!important;border:1px solid var(--line)!important;box-shadow:0 2px 8px -3px rgba(0,0,0,.15)!important}
}
/* v562 · Celular (Juan): la misma franja de color arriba, más baja; el PIN debajo sin tarjeta (el nombre ya va en la franja).
   En celulares bajos la franja se encoge y los números también, para que todo quepa. */
@media (max-width:699px){
  :root{--bandh:188px}
  #auth{--pk:64px}
  html body #auth .pinpad{row-gap:10px}
  .authside{display:flex;flex-direction:column;justify-content:flex-end;position:fixed;inset:0 0 auto 0;height:calc(var(--bandh) + env(safe-area-inset-top));z-index:5;padding:calc(18px + env(safe-area-inset-top)) 20px 18px;box-sizing:border-box;overflow:hidden;
    background:var(--accent);color:var(--accent-fg);opacity:0;visibility:hidden;transition:opacity .3s,visibility .3s}
  html[data-theme="dark"] .authside{background:var(--accent-deep,#15803d);color:#fff}
  body:has(#auth:not([hidden])) .authside,body:has(#splash:not([hidden]):not(.off)) .authside{opacity:1;visibility:visible}
  body:has(#splash:not([hidden]):not(.off)) .authside{z-index:201}
  .authside::after{content:"";position:absolute;right:-70px;bottom:-110px;width:230px;height:230px;border-radius:50%;border:38px solid color-mix(in srgb,var(--accent-fg) 8%,transparent);pointer-events:none}
  .authside .as-top{position:absolute;left:20px;top:calc(18px + env(safe-area-inset-top));right:140px;display:flex;align-items:center;gap:10px;min-width:0}
  .authside .as-logo{flex:none;width:40px;height:40px;border-radius:11px;background:#fff;display:grid;place-items:center;overflow:hidden;color:var(--accent);font-family:var(--f-display);font-weight:800;font-size:1.15rem}
  .authside .as-logo img{max-width:30px;max-height:30px;object-fit:contain}
  .authside .as-top b{font-family:var(--f-display);font-size:1.1rem;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .authside .as-time{font-family:var(--f-display);font-size:3.2rem;font-weight:800;letter-spacing:-.045em;line-height:1;font-variant-numeric:tabular-nums}
  .authside .as-time small{font-size:.38em;letter-spacing:0;margin-left:6px}
  .authside .as-date{font-size:1rem;opacity:.85;margin-top:4px}
  .authside .as-foot{position:absolute;right:20px;top:calc(22px + env(safe-area-inset-top));display:flex;align-items:center;gap:8px;z-index:1}
  .authside .as-foot svg{width:30px;height:30px;flex:none;border-radius:8px}
  .authside .as-foot span{display:flex;flex-direction:column;line-height:1.1}
  .authside .as-foot small{font-size:.62rem;opacity:.75;font-weight:600}
  .authside .as-foot b{font-family:var(--f-display);font-size:.85rem;font-weight:800}
  html:root body:has(#auth:not([hidden])){padding-top:calc(var(--bandh) + env(safe-area-inset-top))!important;background:var(--surface)!important}
  #splash{padding-top:calc(var(--bandh) + env(safe-area-inset-top));box-sizing:border-box}
  html:root body #splash{background:var(--surface)!important}
  html body #auth .auth{min-height:calc(100dvh - var(--bandh) - env(safe-area-inset-top))!important;padding:10px 16px 16px;box-sizing:border-box;justify-content:center;background:none}
  html:root body #auth .auth .card{background:none!important;border:0!important;box-shadow:none!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;padding-top:8px}
  #auth .auth.pad .ahero>h1,#auth .auth.pad .ahero>.logo.hero,#auth .auth.pad .ahero>.amark,#auth .auth.pad .ahero>.atag{display:none}
  #auth .auth.pad .ahi{color:var(--fg);font-family:var(--f-display);font-size:1.35rem;font-weight:800}
}
@media (max-width:699px) and (max-height:760px){:root{--bandh:150px}#auth{--pk:52px}html body #auth .pinpad{row-gap:6px}.authside .as-time{font-size:2.6rem}.authside .as-date{font-size:.9rem}}
@media (max-width:699px) and (max-height:680px){:root{--bandh:112px}#auth{--pk:46px}html body #auth .auth .card{gap:8px}.authside{padding-bottom:12px}.authside .as-time{font-size:2.1rem}.authside .as-date{display:none}}
/* v563 · Entrada con franja (celular y tablet en vertical): la pantalla ya no se mueve. Antes, con foto y Face ID, el PIN no cabía:
   la página bajaba y el contenido pasaba por debajo de la franja, y «Diseñado por» quedaba cortado por la barra de inicio del iPhone.
   Ahora la franja y la página quedan quietas; solo el PIN se desplaza si de verdad no cabe, y respeta la barra de abajo. */
@media (max-width:699px),(min-width:700px) and (max-width:1099px) and (orientation:portrait){
  html:has(#auth:not([hidden])),html:root body:has(#auth:not([hidden])){overflow:hidden;overscroll-behavior:none;height:100%}
  html body #auth .auth{height:calc(100dvh - var(--bandh,36vh) - env(safe-area-inset-top));min-height:0!important;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;
    justify-content:flex-start;padding-bottom:calc(16px + env(safe-area-inset-bottom))}
  html body #auth .auth>.card{margin-block:auto}
}
@media (min-width:700px) and (max-width:1099px) and (orientation:portrait){:root{--bandh:32vh}#auth{--pk:76px}
  .authside{height:var(--bandh)}html:root body:has(#auth:not([hidden])){padding-top:var(--bandh)!important}#splash{padding-top:var(--bandh)}html body #auth .auth{height:calc(100dvh - var(--bandh))}}
@media (max-width:699px){
  :root{--bandh:164px}
  #auth{--pk:58px}
  html body #auth .pinpad{row-gap:8px}
  html body #auth .auth{padding-top:4px}
  html:root body #auth .auth .card{padding-top:0;padding-bottom:4px}
  .authside .as-time{font-size:2.8rem}
  #auth .ahiph{width:52px;height:52px;font-size:1.3rem}
  html body #auth .auth .card{gap:10px}
}
@media (max-width:699px) and (max-height:760px){:root{--bandh:128px}#auth{--pk:50px}#auth .ahiph{width:40px;height:40px;font-size:1.1rem}.authside .as-time{font-size:2.2rem}.authside .as-date{font-size:.85rem}
  .authside{padding-bottom:14px}.authside .as-top{top:calc(14px + env(safe-area-inset-top))}.authside .as-logo{width:32px;height:32px;border-radius:9px;font-size:.95rem}.authside .as-logo img{max-width:24px;max-height:24px}.authside .as-top b{font-size:1rem}
  .authside .as-foot{top:calc(16px + env(safe-area-inset-top))}.authside .as-foot svg{width:26px;height:26px}}
@media (max-width:699px) and (max-height:680px){:root{--bandh:100px}#auth{--pk:44px}#auth .ahiph{display:none}.authside .as-time{font-size:1.9rem}html body #auth .pinpad{row-gap:6px}}

/* v567 · Celular (Juan: «que los botones ocupen casi toda la pantalla a los lados»): el margen de los lados pasa
   de 16 a 8 px en toda la app; la barra de abajo no cambia */
@media (max-width:699px){
  body{padding-inline:8px}
  .r-chips{margin-inline:-8px;padding-inline:8px}
}

/* v568 · Celular, lo que faltaba (Juan): la barra de abajo, el carrito y las ventanas que suben desde abajo también
   quedan a 8 px de la orilla, como el resto de la app */
@media (max-width:699px){
  html body nav.tabs{left:8px!important;right:8px!important}
  #tab-vender.sheetm.sheet-open>.cartcard{padding-inline:8px}
}
@media (max-width:520px){
  html body .modal .dlg{padding-inline:8px}
  html body .modal .sdlg{max-width:none} /* v569 · «Venta registrada» tenía tope de 380 px y en iPhone grandes (430 px) quedaba angosta */
  html body .sheetdlg .sheethd,html body #helpmodal .hsticky{margin-inline:-8px;padding-inline:8px}
  html body #helpmodal .hsticky .sheethd{margin-inline:-8px}
  html body #helpmodal .hcats{margin-inline:-8px;padding-inline:8px}
}

/* v569 · Carrito del celular (Juan, opción A): arriba va el cliente (con aviso si debe un crédito o tiene un Plan Separe
   abierto); el total baja, ordenado, justo encima de «Cobrar» */
#tab-vender.sheetm #vsumtop{display:none}
#tab-vender.sheetm .cart-scroll>#vcliw{order:-1}
#tab-vender.sheetm .cart-foot .rtot{display:flex;align-items:baseline;justify-content:space-between}
#tab-vender.sheetm .cart-foot .rtot span:first-child{font-size:1rem;font-weight:700;color:var(--muted)}
#tab-vender.sheetm .cart-foot .rtot .num{font-size:1.9rem;font-weight:800;letter-spacing:-.02em}
#tab-vender.sheetm .cart-foot .riva{display:flex}
#tab-vender.sheetm .cart-foot .totals{display:flex;flex-direction:column;gap:4px}
.vcli-w{display:block;margin-top:2px;font-size:.8rem;font-weight:700;color:var(--warn,#b45309)}
.vcli-w[hidden]{display:none}

/* v572 · Imprimir la hoja del PDF desde la ventana de la app: al imprimir solo salen las hojas preparadas */
.printsheet{display:none}
@media print{
  html.psheet,html.psheet body{margin:0!important;padding:0!important;background:#fff!important;width:auto!important;height:auto!important;overflow:visible!important}
  html.psheet body>*:not(.printsheet.on){display:none!important}
  html.psheet .printsheet.on{display:block!important}
  html.psheet .printsheet img{display:block;width:100%;height:auto;max-height:100vh;object-fit:contain;margin:0 auto;break-inside:avoid;page-break-inside:avoid;break-after:page;page-break-after:always}
  html.psheet .printsheet img:last-child{break-after:auto;page-break-after:auto}
}

/* v574 · Vista previa del ticket (video de Juan: el PDF se deslizaba y el ticket no). El ticket va en un marco: no se encoge
   al alto de la ventana (salía cortado) y no se queda con el toque del dedo, así la ventana se desliza igual que con el PDF */
.fxview>.fxtk{flex:none;pointer-events:none}
.tprev iframe{pointer-events:none}

/* v581: la pantalla de atrás no se dibuja mientras hay una ventana de formulario abierta (conserva su lugar y su tamaño) */
/* v1159 (Juan, iPhone): ya no se esconde la pantalla de atrás al escribir en una hoja (se quitó la regla de v581 que la ocultaba): */ html.sheet-form-open.sheet-typing:not(:has(#jotachat.jpc)).sheet-typing-off #app{visibility:hidden} /* v648 (Juan: «queda un fondo negro sólido arriba»): solo mientras se escribe en la ventana (el problema del iPhone era con el teclado); si no, se ve la pantalla de atrás */

/* v590: pantalla de correo con la persona conocida: «Hola, Juan» grande y centrado, igual que en la del PIN (el nombre del negocio ya sale arriba) */
#elform .ahi{color:var(--fg);font-family:var(--f-display);font-size:1.6rem;font-weight:800;display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center}
#elform .ahi .ahichg{margin:0;font-size:.85rem;font-weight:700}
#elform .ahiph{width:76px;height:76px}

/* v591 · Nombres muy largos (prueba de estrés): en las fichas de Inventario el nombre llega hasta 3 líneas y parte palabras sin espacios */
#ilist:not(.v-lista) .item.inv .iid .t{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
/* v591 · Área táctil mínima de 44 × 44 px (la X del aviso de Inicio medía 38 px de ancho) */
#iupsellx{min-width:44px;min-height:44px}

/* v591 · Legal: enlaces en el menú de la cuenta, visor de textos y aviso de cookies */
.ulegal{display:grid;grid-template-columns:1fr 1fr;gap:4px;margin:4px 0;padding:4px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.ulink{min-height:44px;padding:8px 12px;border:0;border-radius:12px;background:none;color:var(--muted);font:inherit;font-size:.85rem;font-weight:600;text-align:left;cursor:pointer}
.ulink:hover,.ulink:focus-visible{background:color-mix(in srgb,var(--accent) 12%,transparent);color:var(--fg)}
.legaldoc .dlg{max-width:560px;max-height:85dvh;overflow:auto;overscroll-behavior:contain}
.legaldoc .dlg>p.hint{margin:8px 0;line-height:1.5;overflow-wrap:anywhere}
.ldtag{display:inline-block;margin:0 0 8px;padding:4px 10px;border-radius:999px;font-size:.75rem;font-weight:700;background:var(--accent-soft);color:var(--accent)}
.ldtag.warn{background:color-mix(in srgb,#d97706 16%,transparent);color:#b45309}
:root[data-theme="dark"] .ldtag.warn{color:#fbbf24}
.ldnote{padding:8px 12px;border-left:3px solid var(--accent);background:var(--field);border-radius:8px}
.ldpick{display:flex;flex-direction:column;gap:8px;margin:16px 0 8px;padding-top:12px;border-top:1px solid var(--line)}
/* Aviso de cookies: encima de todo (incluso la pantalla de carga) y no se cierra hasta elegir */
.modal.ckgate{z-index:300;align-items:flex-end}
.ckgate .dlg{max-width:520px;width:100%;display:flex;flex-direction:column;gap:12px;padding:24px 20px calc(20px + env(safe-area-inset-bottom,0px))}
.ckgate h2{margin:0}
.ckgate p{margin:0;line-height:1.5}
.ckgate .linkbtn{align-self:flex-start;min-height:44px}
.ckbtns{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.ckbtns .btn{min-height:48px}
@media (min-width:600px){.modal.ckgate{align-items:center}}
@media (prefers-reduced-motion:no-preference){.ckgate .dlg{animation:ckup .28s cubic-bezier(.2,.8,.2,1)}}
@keyframes ckup{from{opacity:0;transform:translateY(16px)}}
.ad18{margin:4px 0}

/* ======================================================================================================
   v592 · CUADRA VIVA, parte 1 (aprobada por Juan, 2026-11-01): colores, letra, tarjetas, barra de abajo y entrada con PIN.
   El verde principal sigue siendo el color que el negocio escoge en Ajustes (--accent); el mango (--pop) marca lo más importante.
   Toda la parte 1 está en esta sección: para volver atrás basta quitarla (y fonts.js y el orden de la barra en syncTabs).
   ====================================================================================================== */
:root{--pop:#ffc23d;--on-pop:#2b1d00;--pop-soft:#fff2cc;
  --f-display:'Bricolage Grotesque','Figtree',system-ui,sans-serif;--f-body:'Figtree',system-ui,sans-serif;
  --r-lg:24px;--r-md:16px;--r-sm:12px;--ease-v:cubic-bezier(.23,1,.32,1)}
/* fondo gris cálido, tarjetas blancas sin borde ni vidrio (claro); casi negro con tarjetas grafito (oscuro) */
html:root[data-style="mostrador"][data-theme="light"],html:root[data-theme="light"]{--bg:#f4f4f1;--surface:#ffffff;--field:#efefeb;--fg:#15171a;--muted:#6c727a;--line:color-mix(in srgb,#15171a 8%,transparent)}
html:root[data-style="mostrador"]:not([data-theme="light"]){--bg:#0b0c0e;--surface:#17191c;--field:#22252a;--fg:#f3f4f5;--muted:#8f959d;--line:color-mix(in srgb,#fff 9%,transparent);--pop-soft:color-mix(in srgb,#ffc23d 18%,#17191c)}
html body::before,html body::after{display:none!important}
html:root body{background:var(--bg)!important;font-family:var(--f-body)}
html:root body :is(h1,h2,h3,.bizlabel,.tile .v,.big){font-family:var(--f-display)}
html:root body .card,html:root body .tile{background:var(--surface)!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;border:0!important;box-shadow:none!important;border-radius:var(--r-lg)!important}
html:root body .btn{border-radius:var(--r-md)}
html:root body .btn.primary{font-weight:700}
html:root body input,html:root body select,html:root body textarea{border-radius:var(--r-sm)}

/* barra de abajo (celular): tarjeta flotante y «Vender» como botón grande en el centro; sin la burbuja */
@media (max-width:1099px){
  html:root body nav.tabs{background:var(--surface)!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;border:0!important;border-radius:26px!important;
    box-shadow:0 12px 30px -12px rgba(0,0,0,.35)!important;overflow:visible!important}
  html:root[data-style="mostrador"]:not([data-theme="light"]) body nav.tabs{border:1px solid var(--line)!important}
  html:root body nav.tabs .ind{display:none!important}
  html:root body nav.tabs button{color:var(--muted)!important;font-family:var(--f-body);font-weight:600;transition:color 160ms var(--ease-v)}
  html:root body nav.tabs button[aria-selected="true"]{color:var(--accent)!important}
  html:root[data-style="mostrador"]:not([data-theme="light"]) body nav.tabs button[aria-selected="true"]{color:var(--pop)!important}
  html:root body nav.tabs button[data-tab="vender"]{overflow:visible}
  html:root body nav.tabs button[data-tab="vender"] .icw{width:56px;height:56px;border-radius:20px;background:var(--accent);display:grid;place-items:center;margin-top:-30px;
    box-shadow:0 10px 22px -8px color-mix(in srgb,var(--accent) 70%,transparent);transition:transform 160ms var(--ease-v),background-color 160ms var(--ease-v)}
  html:root body nav.tabs button[data-tab="vender"] .icw svg{color:#fff!important;fill:none}
  html:root body nav.tabs button[data-tab="vender"] .icw .ic-f{display:none!important}
  html:root body nav.tabs button[data-tab="vender"] .icw .ic-l{display:block!important;opacity:1!important;visibility:visible!important;stroke:#fff!important}
  html:root body nav.tabs button[data-tab="vender"][aria-selected="true"] .icw{background:var(--pop)}
  html:root body nav.tabs button[data-tab="vender"][aria-selected="true"] .icw .ic-l{stroke:var(--on-pop)!important}
  html:root body nav.tabs button[data-tab="vender"]:active .icw{transform:scale(.94)}
  @media (prefers-reduced-motion:reduce){html:root body nav.tabs button[data-tab="vender"]:active .icw{transform:none}}
}

/* entrada con PIN: franja del color del negocio con curva, puntos en mango y teclas grandes en tarjeta */
html:root body .pindots i.on{background:var(--pop)!important;border-color:var(--pop)!important}
html:root body #apad .padk{background:var(--surface)!important;border:0!important;border-radius:50%!important;font-family:var(--f-display)!important;font-weight:700!important;box-shadow:none!important}
html:root body #apad .padk:active{background:var(--pop-soft)!important}
html:root body #apad .padk.del,html:root body #apad .padk.pkk{background:transparent!important}
html:root body #adots i{border-radius:50%!important}
@media (max-width:1099px){
  html:root body .authside{background:var(--accent)!important;border-radius:0 0 40px 40px!important}
}
/* entrada con PIN (ajuste): fondo gris de la app y teclas blancas (en oscuro, grafito) */
@media (max-width:1099px){
  html:root body:has(#auth:not([hidden])){background:var(--bg)!important}
  html:root body #auth .auth,html:root body #auth .asheet,html:root body #auth #authform{background:transparent!important;box-shadow:none!important;border:0!important}
}
html:root body #apad .padk:not(.del):not(.pkk){background:#ffffff!important}
html:root[data-style="mostrador"]:not([data-theme="light"]) body #apad .padk:not(.del):not(.pkk){background:#17191c!important}
@media (max-width:1099px){html:root[data-style="mostrador"]:not([data-theme="light"]) body .authside{background:color-mix(in srgb,var(--accent) 55%,#000)!important}}

/* ======================================================================================================
   v593 · CUADRA VIVA, parte 2: Inicio en el celular (bloque de color, botones grandes, «Hoy toca», últimas ventas)
   ====================================================================================================== */
#vhero,#vacts,#vtoca,.vpic{display:none}
@media (max-width:1099px){#pcshare{--pc:1} 
  /* en Inicio el bloque de color reemplaza el encabezado, el buscador, el resumen viejo y la tarjeta de «Pendiente» */
  html:root body #app[data-tab="inicio"] header.top{display:none!important}
  html:root body #tab-inicio>#gsbtn,html:root body #tab-inicio>#isumcard,html:root body #tab-inicio>#ialertcard{display:none!important}
  html:root body #tab-inicio:not([hidden]){display:flex;flex-direction:column}
  html:root body #tab-inicio>#vhero{order:-3}html:root body #tab-inicio>#vacts{order:-2}html:root body #tab-inicio>#vtoca{order:-1}
  html:root body #tab-inicio>#ilastcard{order:0}
  html:root body #tab-inicio>#iseccard,html:root body #tab-inicio>#iguide,html:root body #tab-inicio>#iupsell,html:root body #tab-inicio>#iinst{order:2}

  #vhero{display:block;position:relative;overflow:hidden;margin:0 -16px;padding:calc(16px + var(--sat)) 20px 76px;background:var(--hdr,var(--accent));color:var(--hdr-ink,var(--accent-ink,#fff));border-radius:0 0 40px 40px}
  html:root[data-style="mostrador"]:not([data-theme="light"]) #vhero{background:var(--hdr,color-mix(in srgb,var(--accent) 55%,#000))}
  #vhero::after{content:"";position:absolute;right:-60px;top:-40px;width:220px;height:220px;border-radius:50%;background:#fff;opacity:.08;pointer-events:none}
  #vhero>*{position:relative;z-index:1}
  .vtop{display:flex;justify-content:space-between;align-items:center}
  .vwho{display:flex;align-items:center;gap:10px;border:0;background:none;color:inherit;padding:0;text-align:left;min-height:44px;cursor:pointer}
  .vav{width:40px;height:40px;border-radius:50%;background:var(--pop);color:var(--on-pop);display:grid;place-items:center;font-family:var(--f-display);font-weight:700;font-size:1.125rem;overflow:hidden;flex:none}
  .vav img{width:100%;height:100%;object-fit:cover}
  .vwt b{display:block;font-family:var(--f-display);font-weight:700;font-size:1.0625rem;line-height:1.2}
  .vwt small{display:block;font-size:.8125rem;opacity:.8}
  .vic{width:44px;height:44px;border-radius:50%;border:0;background:color-mix(in srgb,#fff 15%,transparent);color:#fff;display:grid;place-items:center;cursor:pointer}
  .vic svg{width:22px;height:22px}
  .vsum{display:block;width:100%;border:0;background:none;color:inherit;text-align:left;padding:0;margin-top:22px;cursor:pointer}
  .vlbl{display:block;font-size:.9375rem;opacity:.85}
  .vbig{display:block;font-family:var(--f-display);font-weight:800;font-size:3.25rem;line-height:1;letter-spacing:-.03em;margin-top:6px;white-space:nowrap}
  .vchips{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
  .vchip{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 12px;border-radius:15px;background:var(--pop);color:var(--on-pop);font-weight:700;font-size:.8125rem;white-space:nowrap}
  .vchip svg{width:14px;height:14px;stroke-width:2.6}
  .vchip.ghost{background:color-mix(in srgb,#fff 16%,transparent);color:#fff}

  #vacts{display:flex;justify-content:space-between;margin:-46px 4px 0;position:relative;z-index:2}
  .vact{display:flex;flex-direction:column;align-items:center;gap:8px;width:76px;border:0;background:none;padding:0;cursor:pointer;color:var(--fg)}
  .vact i{width:64px;height:64px;border-radius:22px;background:var(--surface);display:grid;place-items:center;box-shadow:0 8px 20px -10px rgba(0,0,0,.35);transition:transform 160ms var(--ease-v)}
  .vact i svg{width:26px;height:26px;color:var(--accent)}
  html:root[data-style="mostrador"]:not([data-theme="light"]) .vact i svg{color:var(--fg)}
  .vact.main i{background:var(--pop)} .vact.main i svg{color:var(--on-pop)!important}
  .vact span{font-size:.8125rem;font-weight:600;color:var(--muted)}
  .vact:active i{transform:scale(.95)}
  @media (prefers-reduced-motion:reduce){.vact:active i{transform:none}}

  #vtoca{display:block}
  #vtoca[hidden]{display:none}
  #vtoca h2,#ilastcard>h2{font-family:var(--f-display);font-weight:700;font-size:1.25rem;margin:24px 4px 12px}
  .vrail{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;margin:0 -16px;padding:0 16px 4px;scrollbar-width:none;touch-action:pan-x pan-y}
  .vrail::-webkit-scrollbar{display:none}
  .vtc{flex:0 0 220px;scroll-snap-align:start;border-radius:24px;padding:16px;min-height:132px;display:flex;flex-direction:column;justify-content:space-between;gap:12px}
  .vtc.y{background:var(--pop-soft);color:var(--fg)}
  .vtc.g{background:color-mix(in srgb,var(--accent) 16%,var(--surface));color:var(--fg)}
  .vtc.k{background:var(--surface);color:var(--fg)}
  .vtc b{display:block;font-family:var(--f-display);font-weight:700;font-size:1.0625rem;line-height:1.25}
  .vtc small{display:block;font-size:.875rem;color:var(--muted);margin-top:4px}
  .vtc button{align-self:flex-start;min-height:40px;padding:0 18px;border-radius:20px;border:0;background:var(--fg);color:var(--bg);font-weight:700;font-size:.875rem;cursor:pointer}

  /* últimas ventas: tarjeta blanca con ícono del medio de pago */
  html:root body #ilastcard{background:transparent!important;padding:0!important;margin-top:0}
  html:root body #ilastcard>#ilast{background:var(--surface);border-radius:24px;padding:4px 16px}
  html:root body #ilast>.item{display:flex;align-items:center;gap:12px;min-height:64px;padding:10px 0;border:0;border-radius:0;background:none}
  html:root body #ilast>.item+.item{border-top:1px solid var(--line)}
  .vpic{width:42px;height:42px;border-radius:14px;display:grid;place-items:center;flex:none;background:color-mix(in srgb,var(--accent) 14%,var(--surface));color:var(--accent)}
  .vpic svg{width:22px;height:22px}
  html:root body #ilast>.item .num{font-family:var(--f-display);font-weight:700;font-size:1.0625rem}
}
/* parte 2 (ajuste): el bloque de color y la fila de «Hoy toca» llegan al borde; en el celular el margen de los lados es 8 px (v567) */
@media (max-width:599px){
  html:root body #vhero{margin-inline:-8px}
  html:root body .vrail{margin-inline:-8px;padding-inline:8px;scroll-padding-inline:8px}
}

/* ======================================================================================================
   v594 · CUADRA VIVA, parte 3: Vender y Cobrar en el celular (solo cómo se ve; los cálculos y el cobro no cambian)
   ====================================================================================================== */
@media (max-width:1099px){
  html:root body #app[data-tab="vender"] header.top{display:none!important}
  /* bloque de color: título y buscador */
  html:root body #tab-vender .vvcard{background:transparent!important;padding:0!important;margin-top:0!important;gap:0!important}
  html:root body #tab-vender .vvhead{margin:0 -16px;padding:calc(16px + var(--sat)) 20px 24px;background:var(--hdr,var(--accent));color:var(--hdr-ink,var(--accent-ink,#fff));border-radius:0 0 32px 32px;display:flex;flex-direction:column;gap:12px}
  html:root[data-style="mostrador"]:not([data-theme="light"]) body #tab-vender .vvhead{background:var(--hdr,color-mix(in srgb,var(--accent) 55%,#000))}
  html:root body #tab-vender .vvhead h2{font-family:var(--f-display);font-weight:800;font-size:2rem;letter-spacing:-.02em;color:var(--hdr-ink,var(--accent-ink,#fff));margin:0}
  html:root body #tab-vender .vvhead label.f{color:rgba(255,255,255,.85)}
  html:root body #tab-vender .vvhead input{background:#fff!important;color:#15171a!important;border:0!important;border-radius:16px!important;min-height:50px}
  html:root body #tab-vender .vvhead input::placeholder{color:#6c727a}
  html:root body #tab-vender .vvhead .row{align-items:flex-end}
  html:root body #tab-vender .vvhead #vscan{background:var(--pop)!important;color:var(--on-pop)!important;border:0!important;border-radius:16px!important;min-width:50px;min-height:50px}
  /* categorías */
  html:root body #tab-vender #vcats{margin-top:16px}
  html:root body #tab-vender #vcats button,html:root body #tab-vender #vcats .mchip{background:var(--surface)!important;color:var(--fg)!important;border:0!important;border-radius:19px!important;min-height:38px;font-weight:600}
  html:root body #tab-vender #vcats button.on,html:root body #tab-vender #vcats [aria-pressed="true"],html:root body #tab-vender #vcats .mchip.on{background:var(--fg)!important;color:var(--bg)!important}
  /* lista de productos: renglones en tarjeta blanca, dibujo del tipo, precio y stock, botón para agregar */
  html:root body #vpick{margin-top:16px}
  html:root body #vpick .vgrid{grid-template-columns:1fr!important;gap:0!important;background:var(--surface);border-radius:24px;padding:4px 16px;overflow:hidden}
  html:root body #vpick .vgrid>.qcard.gcard{display:grid!important;grid-template-columns:42px auto minmax(0,1fr) 40px;grid-template-areas:"ic n n a" "ic p s a";column-gap:12px!important;align-items:center;
    min-height:64px;padding:10px 0!important;margin:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;text-align:left}
  html:root body #vpick .vgrid>.qcard.gcard+.qcard.gcard{border-top:1px solid var(--line)!important}
  html:root body #vpick .vgrid>.qcard.gcard>.thumb{grid-area:ic;width:42px!important;height:42px!important;aspect-ratio:auto!important;margin:0!important;border-radius:14px!important;padding:0!important;border:0!important}
  html:root body #vpick .vgrid>.qcard.gcard>.thumb.vcat{display:grid!important;place-items:center;background:color-mix(in srgb,var(--fg) 7%,transparent)!important;color:var(--muted)!important}
  html:root body #vpick .vgrid>.qcard.gcard>.thumb.vcat svg{width:22px;height:22px}
  html:root body #vpick .vgrid>.qcard.gcard>.qn{grid-area:n;-webkit-line-clamp:1!important;display:-webkit-box!important;font-family:var(--f-body);font-size:1rem!important;font-weight:600!important;min-height:0!important;padding:0!important;color:var(--fg)}
  html:root body #vpick .vgrid>.qcard.gcard>.qp{grid-area:p;justify-self:start;font-family:var(--f-display);font-size:1rem;font-weight:700!important;color:var(--fg)!important}
  html:root body #vpick .vgrid>.qcard.gcard>.qs{grid-area:s;justify-self:start;margin-left:-2px;font-size:.8125rem;color:var(--muted)}
  html:root body #vpick .vgrid>.qcard.gcard>.qs.qlow{color:var(--warn)!important;font-weight:600}
  html:root body #vpick .vgrid>.qcard.gcard>.qadd{grid-area:a;position:static!important;width:40px!important;height:40px!important;border-radius:14px!important;background:var(--accent)!important;color:var(--accent-ink,#fff)!important;font-family:var(--f-display);font-weight:800;font-size:1rem;display:grid;place-items:center;justify-self:end;align-self:center}
  html:root body #vpick .vgrid>.qcard.gcard:not(.on):not(:disabled)::after{content:"+";grid-area:a;width:40px;height:40px;border-radius:14px;background:color-mix(in srgb,var(--accent) 16%,var(--surface));color:var(--accent);display:grid;place-items:center;font-size:1.5rem;font-weight:500;line-height:1;justify-self:end;align-self:center}
  html:root body #vpick .vgrid>.qcard.gcard.on{box-shadow:none!important;border-color:transparent!important}
  html:root body #vpick .vgrid>.qcard.gcard:disabled{opacity:.5}
  /* barra del carrito: mango con el total y «Cobrar» */
  html:root body #vbar{background:var(--pop)!important;color:var(--on-pop)!important;border:0!important;border-radius:22px!important;box-shadow:0 10px 24px -10px rgba(0,0,0,.4)!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
  html:root body #vbar #vbn{color:var(--on-pop)!important;opacity:.8;font-weight:600}
  html:root body #vbar #vbt{font-family:var(--f-display);font-weight:800;font-size:1.375rem;color:var(--on-pop)!important}
  html:root body #vbar #vgo{background:#15171a!important;color:#fff!important;border:0!important;border-radius:16px!important;min-height:48px;padding-inline:22px}
  /* hoja de cobro */
  html:root body #tab-vender.sheetm.sheet-open>.cartcard{background:var(--bg)!important;border-radius:32px 32px 0 0!important;border:0!important}
  html:root body #tab-vender .cartcard .shd h2{font-family:var(--f-display);font-weight:800;font-size:1.5rem}
  html:root body #tab-vender #vcart>.item{background:var(--surface)!important;border:0!important;border-radius:20px!important}
  html:root body #tab-vender .vclibtn{background:var(--surface)!important;border:0!important;border-radius:20px!important}
  html:root body #tab-vender #vpay{display:grid!important;grid-template-columns:repeat(3,1fr);gap:8px}
  html:root body #tab-vender #vpay .vpill{min-height:48px;border-radius:14px!important;background:var(--surface)!important;color:var(--fg)!important;border:0!important;box-shadow:none!important;font-weight:700}
  html:root body #tab-vender #vpay .vpill[aria-pressed="true"],html:root body #tab-vender #vpay .vpill.on{background:var(--accent)!important;color:var(--accent-ink,#fff)!important}
  html:root body #tab-vender #vgiven{min-height:56px;font-family:var(--f-display);font-weight:800;font-size:1.5rem;background:var(--surface)!important;border:0!important;border-radius:18px!important}
  html:root body #tab-vender #vtotals .r.big{background:color-mix(in srgb,var(--accent) 16%,var(--surface));border-radius:18px;padding:12px 16px;margin-top:6px;align-items:center}
  html:root body #tab-vender #vtotals .r.big .num{font-family:var(--f-display);font-weight:800;font-size:1.75rem}
  html:root body #tab-vender #vconfirm{background:var(--pop)!important;color:var(--on-pop)!important;border:0!important;border-radius:18px!important;min-height:56px;font-size:1.0625rem;font-weight:800}
}
@media (max-width:599px){html:root body #tab-vender .vvhead{margin-inline:-8px}}
/* parte 3: el dibujo del tipo de producto (sin foto) en todas las listas */
html:root body .thumb.ph.vcat{display:grid;place-items:center;background:color-mix(in srgb,var(--fg) 7%,transparent)!important;color:var(--muted)!important}
html:root body .thumb.ph.vcat svg{width:55%;height:55%}
/* parte 3 (ajuste): en Vender el nombre se ve completo (la RAM, el almacenamiento y el color distinguen un celular de otro); baja a otra línea si hace falta */
@media (max-width:1099px){
  html:root body #vpick .vgrid>.qcard.gcard>.qn{-webkit-line-clamp:unset!important;display:block!important;white-space:normal!important;overflow:visible!important;overflow-wrap:anywhere;line-height:1.3}
  html:root body #vpick .vgrid>.qcard.gcard>.qs{white-space:nowrap}
}
/* v594 · arreglo: en Inicio y Vender el encabezado no se ve, pero su menú de la cuenta (Pantalla, Ayuda, PIN, Legal, Salir) tiene que poder abrirse
   (en v593 se escondía el encabezado completo y el menú no salía al tocar la foto del bloque verde) */
@media (max-width:1099px){
  html:root body #app:is([data-tab="inicio"],[data-tab="vender"]) header.top{display:block!important;position:absolute!important;top:0;left:0;right:0;height:0!important;min-height:0!important;padding:0!important;margin:0!important;border:0!important;background:none!important;z-index:70}
  html:root body #app:is([data-tab="inicio"],[data-tab="vender"]) header.top>*:not(.head-r){display:none!important}
  html:root body #app:is([data-tab="inicio"],[data-tab="vender"]) header.top .head-r{position:absolute;right:16px;top:calc(var(--sat) + 60px);height:0}
  html:root body #app:is([data-tab="inicio"],[data-tab="vender"]) header.top .head-r>:not(#umenu){display:none!important}
}
/* En Vender la foto de la cuenta se ve arriba a la derecha, sobre el bloque verde (abre el mismo menú) */
@media (max-width:1099px){
  html:root body #app[data-tab="vender"] header.top .head-r{top:calc(var(--sat) + 16px);right:20px;height:auto}
  html:root body #app[data-tab="vender"] header.top .head-r>#avatar{display:grid!important;width:44px;height:44px;border-radius:50%;background:var(--pop)!important;color:var(--on-pop)!important;border:0!important;font-family:var(--f-display);font-weight:700}
  html:root body #app[data-tab="vender"] header.top #umenu{top:calc(100% + 8px)}
  html:root body #tab-vender .vvhead h2{padding-right:56px}
}
/* tableta (600-1099 px): la app va en una columna centrada; el bloque de color es una tarjeta grande con las cuatro esquinas redondas */
@media (min-width:600px) and (max-width:1099px){
  html:root body #vhero,html:root body #tab-vender .vvhead{margin:calc(12px + var(--sat)) 0 0!important;border-radius:32px!important;padding-top:20px!important}
}
@media (min-width:600px) and (max-width:1099px){
  html:root body #app[data-tab="vender"] header.top .head-r{right:calc(max(0px,(100vw - 720px) / 2) + 32px);top:calc(var(--sat) + 28px)}
}

/* ======================================================================================================
   v595 · CUADRA VIVA, parte 4: encabezado de color en las demás pantallas; Inventario, Ventas y Clientes
   ====================================================================================================== */
@media (max-width:1099px){
  /* encabezado = bloque de color con el título de la pantalla, el negocio y la foto en mango (Inicio y Vender tienen el suyo) */
  html:root body #app:not([data-tab="inicio"]):not([data-tab="vender"]) header.top{background:var(--hdr,var(--accent))!important;color:var(--hdr-ink,var(--accent-ink,#fff))!important;margin:0 -16px 8px;padding:calc(14px + var(--sat)) 20px 22px!important;border-radius:0 0 32px 32px;position:relative}
  html:root[data-style="mostrador"]:not([data-theme="light"]) body #app:not([data-tab="inicio"]):not([data-tab="vender"]) header.top{background:var(--hdr,color-mix(in srgb,var(--accent) 55%,#000))!important}
  html:root body #app:not([data-tab="inicio"]):not([data-tab="vender"]) header.top .bizlabel{display:none!important}
  html:root body #app:not([data-tab="inicio"]):not([data-tab="vender"]) header.top .ptitle{display:flex!important;flex-direction:column;gap:2px;grid-area:biz;min-width:0}
  html:root body #app:not([data-tab="inicio"]):not([data-tab="vender"]) header.top .ptitle h1{font-family:var(--f-display);font-weight:800;font-size:2rem;letter-spacing:-.02em;line-height:1.1;color:var(--hdr-ink,var(--accent-ink,#fff));margin:0}
  html:root body #app:not([data-tab="inicio"]):not([data-tab="vender"]) header.top .ptitle span{font-size:.875rem;color:rgba(255,255,255,.8)}
  html:root body #app:not([data-tab="inicio"]):not([data-tab="vender"]) header.top #avatar{background:var(--pop)!important;color:var(--on-pop)!important;border:0!important;font-family:var(--f-display);font-weight:700}

  /* pestañas internas (Productos/Compras/Herramientas, Clientes/Crédito…): segmento gris con la elegida en blanco */
  html:root body :is(#invseg,#cliseg,#fseg){gap:2px!important;padding:4px!important;background:color-mix(in srgb,var(--fg) 7%,transparent)!important;border:0!important;border-radius:16px!important;box-shadow:none!important}
  html:root body :is(#invseg,#cliseg,#fseg)>button{min-height:40px;border:0!important;border-radius:12px!important;background:transparent!important;color:var(--muted)!important;font-weight:700!important;box-shadow:none!important}
  html:root body :is(#invseg,#cliseg,#fseg)>button:is(.on,[aria-selected="true"],[aria-pressed="true"]){background:var(--surface)!important;color:var(--fg)!important;box-shadow:0 2px 8px -4px rgba(0,0,0,.25)!important;border:0!important}

  /* Inventario: acciones rápidas como tarjetas blancas; «Agregar producto nuevo» lleno; productos en tarjetas sin borde */
  html:root body #tab-inventario .quick .btn,html:root body #tab-inventario .iqa .btn{background:var(--surface)!important;border:0!important;border-radius:20px!important;box-shadow:none!important}
  html:root body #tab-inventario .quick .btn svg,html:root body #tab-inventario .iqa .btn svg{color:var(--accent)}
  html:root body #tab-inventario #iaddbtn,html:root body #tab-inventario .iaddbig{background:var(--accent)!important;color:var(--accent-ink,#fff)!important;border:0!important}
  html:root body #tab-inventario #ilist .item.inv{background:var(--surface)!important;border:0!important;border-radius:20px!important;margin-bottom:8px}
  html:root body #tab-inventario #ilist .item.inv .iid .t{font-weight:700}
  html:root body #tab-inventario #ilist .item.inv .num{font-family:var(--f-display);font-weight:700}

  /* Ventas: «Vendido hoy» como bloque de color; las demás cifras en tarjetas blancas */
  html:root body #vtiles .tile:first-child{background:var(--accent)!important;color:var(--accent-ink,#fff)!important;border-radius:24px!important}
  html:root[data-style="mostrador"]:not([data-theme="light"]) body #vtiles .tile:first-child{background:color-mix(in srgb,var(--accent) 55%,#000)!important}
  html:root body #vtiles .tile:first-child .k,html:root body #vtiles .tile:first-child .hint{color:rgba(255,255,255,.85)!important}
  html:root body #vtiles .tile:first-child .v{color:#fff!important;font-family:var(--f-display);font-weight:800}
  html:root body #vtiles .tile .v{font-family:var(--f-display);font-weight:800}
  html:root body #slist .item{background:var(--surface)!important;border:0!important;border-radius:20px!important;margin-bottom:8px}

  /* Clientes: inicial en mango, botones más compactos */
  html:root body #clist .item.cli{background:var(--surface)!important;border:0!important;border-radius:20px!important;margin-bottom:8px}
  html:root body #clist .item.cli .btn{min-height:40px;border-radius:12px!important}
}
@media (max-width:599px){html:root body #app:not([data-tab="inicio"]):not([data-tab="vender"]) header.top{margin-inline:-8px}}
@media (min-width:600px) and (max-width:1099px){html:root body #app:not([data-tab="inicio"]):not([data-tab="vender"]) header.top{margin:calc(12px + var(--sat)) 0 8px;border-radius:32px;padding-top:18px!important}}
@media (max-width:1099px){
  /* «Agregar producto nuevo» (tarjeta plegada #pform): cerrada se ve como botón lleno del color del negocio */
  html:root body #tab-inventario #pform.card.fold.closed{background:var(--accent)!important;border:0!important}
  html:root body #tab-inventario #pform.card.fold.closed>h2,html:root body #tab-inventario #pform.card.fold.closed>h2::before{color:#fff!important}
  /* títulos de sección sin la raya verde ni el texto verde (el verde queda para actuar) */
  html:root body .card.fold>h2,html:root body .card.fold:not(.closed)>h2{background:none!important;color:var(--fg)!important;box-shadow:none!important;font-family:var(--f-display)}
  html:root body .card.fold::before,html:root body .card.fold:not(.closed)::before{display:none!important;content:none!important}
  html:root body .card.fold[data-ic]>h2::before,html:root body .card.fold:not(.closed)[data-ic]>h2::before{color:var(--accent)!important}
  html:root body #tab-inventario #pform.card.fold.closed[data-ic]>h2::before{color:#fff!important}
}

/* v595 · Menú de la cuenta en el celular (Juan, 2026-11-01: «muy largo y sale del lado contrario»): hoja que sube desde abajo,
   siempre en el mismo lugar, más compacta; lo de atrás se oscurece. Tocar fuera la cierra (como antes). */
@media (max-width:1099px){
  html:root body #umenu:not(.fromnav){position:fixed!important;left:8px!important;right:8px!important;top:auto!important;bottom:calc(8px + env(safe-area-inset-bottom,0px))!important;
    width:auto!important;min-width:0!important;max-width:none!important;max-height:min(80dvh,620px);overflow-y:auto;overscroll-behavior:contain;z-index:300;
    background:var(--surface)!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;border:0!important;border-radius:28px!important;padding:8px 8px 6px!important;
    box-shadow:0 0 0 100vmax rgba(0,0,0,.42),0 -10px 30px -12px rgba(0,0,0,.4)!important}
  html:root body #umenu:not(.fromnav) #rolepill{padding:8px 12px 10px;font-size:.9375rem}
  html:root body #umenu:not(.fromnav) .uitem{min-height:46px;padding:8px 12px;font-size:1rem}
  html:root body #umenu:not(.fromnav) .ulegal{grid-template-columns:repeat(4,1fr);gap:0;margin:2px 0;padding:2px 0}
  html:root body #umenu:not(.fromnav) .ulink{min-height:44px;padding:6px 4px;text-align:center;font-size:.8125rem}
  @media (prefers-reduced-motion:no-preference){html:root body #umenu:not(.fromnav):not([hidden]){animation:umup 220ms cubic-bezier(.23,1,.32,1)}}
}
@keyframes umup{from{transform:translateY(24px);opacity:0}}

/* v595 · «Cobrando…» no se monta sobre «Cobrar»: mientras el botón trabaja, su texto se esconde (estas reglas le ganan al color de Cuadra Viva) */
html:root body :is(#vconfirm,#vgo,#vbar #vgo,#tab-vender #vconfirm).btn:is(.is-busy,.is-done){color:transparent!important}
html:root body #tab-vender #vconfirm.btn:is(.is-busy,.is-done) .bover,html:root body #vbar #vgo.btn:is(.is-busy,.is-done) .bover{color:var(--bcol,currentColor)}

/* v595 · Clientes y Ventas en lista compacta (estilo Cuadra Viva): renglones en una tarjeta blanca, inicial o ícono, cifra a la derecha */
@media (max-width:1099px){
  html:root body #clist.v-lista,html:root body #slist.v-lista{background:var(--surface);border-radius:24px;padding:4px 16px}
  html:root body #clist.v-lista .item.cli,html:root body #slist.v-lista .item.srow{background:transparent!important;border:0!important;border-radius:0!important;margin:0!important;min-height:64px;padding:10px 0!important}
  html:root body #clist.v-lista .item.cli+.item.cli,html:root body #slist.v-lista .item.srow+.item.srow{border-top:1px solid var(--line)!important}
  html:root body #clist.v-lista .item.cli .t,html:root body #slist.v-lista .item.srow .t{font-weight:600!important;font-size:1rem}
  html:root body #slist.v-lista .item.srow .num{font-family:var(--f-display);font-weight:700}
  html:root body #clist.v-lista .cava,html:root body #clist.v-lista .item.cli .ini{background:var(--pop)!important;color:var(--on-pop)!important}
}

/* ======================================================================================================
   v596 · Arreglos de Juan (fotos de su iPhone con v595)
   ====================================================================================================== */
/* Ventas en mosaico: la venta abierta (con su detalle) ocupa todo el ancho; antes la regla buscaba .receipt y el detalle ahora es .vs-det */
#slist.v-mosaico .item.srow:has(.vs-det),#slist.v-mosaico .item.srow:has(.receipt){grid-column:1/-1}
/* Inventario en mosaico: la foto completa (cuadrada, sin recortar), sobre blanco */
@media (max-width:1099px){
  html:root body #ilist.v-mosaico .item.inv>img.thumb{height:auto!important;aspect-ratio:1/1;object-fit:contain!important;background:#fff!important;padding:6px;box-sizing:border-box}
  html:root body #ilist.v-mosaico .item.inv>.thumb.ph{height:auto!important;aspect-ratio:1/1}
}
/* menú de la cuenta (hoja): rayita arriba para cerrarla deslizando hacia abajo */
@media (max-width:1099px){
  html:root body #umenu:not(.fromnav){padding-top:22px!important}
  html:root body #umenu:not(.fromnav)::before{content:"";position:absolute;top:8px;left:50%;width:40px;height:5px;margin-left:-20px;border-radius:3px;background:color-mix(in srgb,var(--fg) 22%,transparent)}
  html:root body #umenu:not(.fromnav){position:fixed!important;touch-action:pan-y}
}
/* barra de abajo: el ícono de la pestaña abierta siempre se ve (sin la burbuja, el relleno quedaba invisible en el iPhone) */
@media (max-width:1099px){
  html:root body nav.tabs button[role=tab][aria-selected="true"]:not([data-tab="vender"]) svg.ic-f{display:block!important;opacity:1!important;visibility:visible!important}
  html:root body nav.tabs button[role=tab][aria-selected="true"]:not([data-tab="vender"]) svg.ic-l{display:block!important;visibility:hidden!important}
  html:root body nav.tabs button[role=tab]:not([aria-selected="true"]):not([data-tab="vender"]) svg.ic-l{display:block!important;opacity:1!important;visibility:visible!important}
  html:root body nav.tabs button[role=tab]:not([aria-selected="true"]):not([data-tab="vender"]) svg.ic-f{display:none!important}
  /* el contenido termina por encima de la barra (el botón de Vender sobresale) */
  html:root body{padding-bottom:calc(140px + env(safe-area-inset-bottom,0px))!important}
}

/* ======================================================================================================
   v597 · Barra con «ola 1» (Juan): sobresale la pantalla abierta, no siempre Vender
   ====================================================================================================== */
.vwave,.vdot{display:none}
@media (max-width:1099px){
  /* Vender vuelve a ser un botón normal de la barra (antes era el botón verde fijo del centro) */
  html:root body nav.tabs button[data-tab="vender"] .icw{width:auto!important;height:auto!important;background:none!important;margin-top:0!important;box-shadow:none!important;border-radius:0!important;display:inline-grid!important}
  html:root body nav.tabs button[data-tab="vender"] .icw .ic-l{stroke:currentColor!important}
  html:root body nav.tabs button[data-tab="vender"] .icw .ic-f{display:none!important}
  html:root body nav.tabs button[data-tab="vender"]:not([aria-selected="true"]) .icw .ic-l{display:block!important;visibility:visible!important;opacity:1!important}
  /* la ola y el círculo viajan con transform hasta la pestaña abierta */
  html:root body nav.tabs{overflow:visible!important}
  html:root body nav.tabs>.vwave{display:block;position:absolute;left:0;top:-24px;width:140px;height:28px;z-index:0;pointer-events:none;transition:transform 520ms cubic-bezier(.34,1.4,.64,1)}
  html:root body nav.tabs>.vwave path{fill:var(--surface)}
  html:root body nav.tabs>.vdot{display:block;position:absolute;left:0;top:-20px;width:52px;height:52px;border-radius:50%;background:var(--accent);z-index:1;pointer-events:none;
    box-shadow:0 8px 18px -6px color-mix(in srgb,var(--accent) 70%,transparent);transition:transform 520ms cubic-bezier(.34,1.4,.64,1),background-color 200ms}
  html:root body nav.tabs[data-wv="vender"]>.vdot{background:var(--pop);box-shadow:0 8px 18px -6px rgba(180,120,0,.55)}
  html:root body nav.tabs.wvfirst>.vwave,html:root body nav.tabs.wvfirst>.vdot{transition:none}
  html:root body nav.tabs:not(.waveon)>:is(.vwave,.vdot){opacity:0}
  html:root body nav.tabs>button[data-tab]{position:relative;z-index:2}
  html:root body nav.tabs>button[data-tab] .icw{transition:transform 520ms cubic-bezier(.34,1.4,.64,1)}
  html:root body nav.tabs.waveon>button[data-tab][aria-selected="true"] .icw{transform:translateY(-27px)}
  html:root body nav.tabs.waveon>button[data-tab][aria-selected="true"] .icw svg{color:#fff!important;stroke:#fff!important}
  html:root body nav.tabs.waveon>button[data-tab="vender"][aria-selected="true"] .icw svg{color:var(--on-pop)!important;stroke:var(--on-pop)!important}
  html:root body nav.tabs.waveon>button[data-tab][aria-selected="true"] svg.ic-f{display:none!important}
  html:root body nav.tabs.waveon>button[data-tab][aria-selected="true"] svg.ic-l{display:block!important;visibility:visible!important;opacity:1!important}
  html:root body nav.tabs>button[data-tab][aria-selected="true"]>span{color:var(--accent)!important;font-weight:700}
  html:root[data-style="mostrador"]:not([data-theme="light"]) body nav.tabs>button[data-tab][aria-selected="true"]>span{color:var(--pop)!important}
  /* «Reducir movimiento» del teléfono: desplazamiento corto y sin rebote (no salto), para que se entienda a qué pantalla pasó */
  @media (prefers-reduced-motion:reduce){html:root body nav.tabs>:is(.vwave,.vdot),html:root body nav.tabs>button[data-tab] .icw{transition-duration:180ms!important;transition-timing-function:ease-out!important}}

  /* ======== Atajos de Inicio, opción B: una sola tarjeta blanca montada sobre el borde del bloque verde ======== */
  html:root body #vhero{padding-bottom:64px}
  html:root body #vacts{display:grid!important;grid-template-columns:repeat(4,1fr);margin:-40px 8px 0!important;padding:16px 4px;background:var(--surface);border-radius:24px;box-shadow:0 14px 30px -18px rgba(0,0,0,.45)}
  html:root[data-style="mostrador"]:not([data-theme="light"]) body #vacts{box-shadow:0 0 0 1px var(--line)}
  html:root body #vacts .vact{width:auto;gap:8px;color:var(--fg)}
  html:root body #vacts .vact+.vact{border-left:1px solid var(--line)}
  html:root body #vacts .vact i{width:48px;height:48px;border-radius:16px;box-shadow:none;background:color-mix(in srgb,var(--accent) 12%,var(--surface))}
  html:root body #vacts .vact i svg{width:24px;height:24px;color:var(--accent)}
  html:root body #vacts .vact.main i{background:var(--pop)}
  html:root body #vacts .vact span{color:var(--fg);font-size:.8125rem}
}
@media (max-width:1099px){
  html:root body nav.tabs>.vwave{filter:drop-shadow(0 -4px 6px rgba(0,0,0,.08))}
  html:root[data-style="mostrador"]:not([data-theme="light"]) body nav.tabs>.vwave{filter:none}
  /* Vender sin abrir: ícono del color de las demás pestañas */
  html:root body nav.tabs>button[data-tab="vender"]:not([aria-selected="true"]) .icw svg{color:var(--muted)!important;stroke:var(--muted)!important}
}

/* v598: la ola y el círculo se animan con la Web Animations API (navWave); sin transición de CSS para que no se crucen */
@media (max-width:1099px){html:root body nav.tabs>:is(.vwave,.vdot),html:root body nav.tabs>button[data-tab] .icw{transition:none!important}}

/* v599 · barra con ola: se ve sobre cualquier fondo (borde fino y sombra), íconos rellenos en la pestaña abierta, y sigue el dedo */
@media (max-width:1099px){
  html:root body nav.tabs>.vwave{filter:drop-shadow(0 -3px 4px rgba(0,0,0,.16)) drop-shadow(0 0 .5px rgba(0,0,0,.25))!important;top:-25px;height:29px}
  html:root body nav.tabs{box-shadow:0 0 0 .5px rgba(0,0,0,.12),0 12px 30px -12px rgba(0,0,0,.35)!important}
  html:root[data-style="mostrador"]:not([data-theme="light"]) body nav.tabs>.vwave{filter:drop-shadow(0 0 .6px rgba(255,255,255,.35))!important}
  html:root[data-style="mostrador"]:not([data-theme="light"]) body nav.tabs{box-shadow:0 0 0 1px rgba(255,255,255,.12),0 12px 30px -12px rgba(0,0,0,.6)!important}
  /* pestaña abierta: ícono relleno (blanco sobre el círculo) */
  html:root body nav.tabs.waveon>button[data-tab][aria-selected="true"] svg.ic-f{display:block!important;visibility:visible!important;opacity:1!important;color:#fff!important;fill:#fff!important;stroke:none!important}
  html:root body nav.tabs.waveon>button[data-tab][aria-selected="true"] svg.ic-l{display:block!important;visibility:hidden!important} /* conserva el espacio: si se quita, el nombre se sube sobre el círculo */
  html:root body nav.tabs.waveon>button[data-tab="vender"][aria-selected="true"] svg.ic-f{color:var(--on-pop)!important;fill:var(--on-pop)!important}
  html:root body nav.tabs.waveon>button[data-tab="vender"][aria-selected="true"] .icw .ic-f{display:block!important}
  /* mientras arrastra: sube el ícono que queda bajo el dedo; el de la pestaña abierta baja */
  html:root body nav.tabs.wvdrag>button[data-tab][aria-selected="true"]:not(.wvhot) .icw{transform:none}
  html:root body nav.tabs.wvdrag>button[data-tab][aria-selected="true"]:not(.wvhot) svg.ic-f{display:none!important}
  html:root body nav.tabs.wvdrag>button[data-tab][aria-selected="true"]:not(.wvhot) svg.ic-l{display:block!important;visibility:visible!important}
  html:root body nav.tabs.wvdrag>button[data-tab][aria-selected="true"]:not(.wvhot) .icw svg{color:var(--muted)!important;stroke:var(--muted)!important}
  html:root body nav.tabs.wvdrag>button.wvhot .icw{transform:translateY(-27px)}
  html:root body nav.tabs.wvdrag>button.wvhot .icw svg{color:#fff!important;stroke:#fff!important}
}

/* ======================================================================================================
   v600 · Barra con ola sin «estática» (skills de animación): el ícono va dentro del círculo y viaja con él;
   los botones de la barra no suben ni cambian de relleno; todos los íconos miden igual (ningún nombre se mueve)
   ====================================================================================================== */
@media (max-width:1099px){
  html:root body nav.tabs>button[data-tab] .icw{width:24px!important;height:24px!important;display:block!important;position:relative;transform:none!important;transition:none!important;background:none!important;margin:0!important;box-shadow:none!important;border-radius:0!important}
  html:root body nav.tabs>button[data-tab] .icw svg{width:24px;height:24px}
  html:root body nav.tabs>button[data-tab] .icw svg.ic-f{display:none!important}
  html:root body nav.tabs>button[data-tab] .icw svg.ic-l{display:block!important;visibility:visible!important;opacity:1!important;color:var(--muted)!important;stroke:var(--muted)!important}
  /* el ícono de la pestaña abierta (o la que está bajo el dedo) lo muestra el círculo; el del botón se esconde sin perder su espacio */
  html:root body nav.tabs.waveon:not(.wvdrag)>button[data-tab][aria-selected="true"] .icw,
  html:root body nav.tabs.wvdrag>button.wvhot .icw{visibility:hidden!important}
  html:root body nav.tabs.wvdrag>button[data-tab][aria-selected="true"]:not(.wvhot) .icw{visibility:visible!important}
  html:root body nav.tabs>button[data-tab]>span{transition:color 150ms ease}
  /* el círculo con su ícono relleno */
  html:root body nav.tabs>.vdot{display:grid!important;place-items:center;transition:background-color 180ms ease!important;will-change:transform}
  html:root body nav.tabs>.vdot svg{width:24px;height:24px;fill:#fff;stroke:none}
  html:root body nav.tabs>.vdot.pop{background:var(--pop)!important;box-shadow:0 8px 18px -6px rgba(180,120,0,.55)!important}
  html:root body nav.tabs>.vdot.pop svg{fill:var(--on-pop)}
  html:root body nav.tabs>.vwave{transition:none!important;will-change:transform}
  html:root body nav.tabs[data-wv]>.vdot:not(.pop){background:var(--accent)}
}
@media (max-width:1099px){
  /* v600 (ajuste): el ícono del botón que muestra el círculo se esconde con opacity (la visibility la volvía a prender otra regla) */
  html:root body nav.tabs.waveon:not(.wvdrag)>button[data-tab][aria-selected="true"] .icw,
  html:root body nav.tabs.wvdrag>button.wvhot .icw{opacity:0!important}
  html:root body nav.tabs.wvdrag>button[data-tab][aria-selected="true"]:not(.wvhot) .icw{opacity:1!important}
  /* sin mezcla de colores entre verde y amarillo (salía verde oliva): cambia en el acto; el fundido del ícono lo suaviza */
  html:root body nav.tabs>.vdot{transition:none!important}
}

/* ======================================================================================================
   v601 · Barra con ola de una sola pieza: la barra no pinta fondo ni sombra; lo hace el dibujo .vbg (barra + ola juntas)
   ====================================================================================================== */
.vbg{display:none}
@media (max-width:1099px){
  html:root body nav.tabs{background:transparent!important;box-shadow:none!important;border:0!important}
  html:root body nav.tabs>.vwave{display:none!important}
  html:root body nav.tabs>.vbg{display:block;position:absolute;left:0;top:-30px;width:100%;height:calc(100% + 30px);overflow:visible;z-index:0;pointer-events:none;
    filter:drop-shadow(0 10px 18px rgba(0,0,0,.16)) drop-shadow(0 0 .5px rgba(0,0,0,.28))}
  html:root body nav.tabs>.vbg path{fill:var(--surface)}
  html:root[data-style="mostrador"]:not([data-theme="light"]) body nav.tabs>.vbg{filter:drop-shadow(0 10px 18px rgba(0,0,0,.55)) drop-shadow(0 0 .6px rgba(255,255,255,.35))}
  html:root body nav.tabs>.vdot{top:-17px!important;transition:none!important}
}

/* ======================================================================================================
   v603 · arreglos de Vender en el celular (Juan, 2026-11-01)
   - La lista de productos ya no va en una caja con altura fija: se ve completa y se baja con la pantalla.
   - «Ventas en espera» pasa debajo del bloque verde (antes quedaba arriba, tapada por el círculo de la persona)
     y no se sale por la derecha.
   ====================================================================================================== */
@media (max-width:1099px){
  html:root body #app[data-tab="vender"] #vpick{max-height:none;overflow:visible}
  html:root body #tab-vender:not([hidden]){display:flex;flex-direction:column}
  html:root body #tab-vender>*{min-width:0}
  /* la tarjeta de Vender se «abre» para poder poner las ventas en espera entre el bloque verde y la lista */
  html:root body #tab-vender>.vvcard{display:contents}
  html:root body #tab-vender>.vvcard>.vvhead{order:0}
  html:root body #tab-vender>#vholds{order:1;margin-top:16px}
  html:root body #tab-vender>.vvcard>:not(.vvhead){order:2}
  html:root body #tab-vender>:not(.vvcard):not(#vholds){order:3}
  html:root body #vholds>.card{background:var(--surface);border:0;border-radius:24px;padding:16px;margin:0;box-shadow:none}
  html:root body #vholds>.card>h2{font-family:var(--f-display);font-size:1.15rem;font-weight:700;margin:0 0 12px;display:flex;align-items:center;gap:8px}
  html:root body #vholds .hold{background:var(--pop-soft);border:0;border-radius:18px;padding:14px;min-width:0;color:#2b1d00}
  html:root[data-theme="dark"] body #vholds .hold,html:root[data-style="mostrador"]:not([data-theme="light"]) body #vholds .hold{background:color-mix(in srgb,var(--pop) 16%,var(--surface));color:var(--fg)}
  html:root body #vholds .hold .hint{color:inherit;opacity:.72}
  html:root body #vholds .hold-hd,html:root body #vholds .hold-it li{min-width:0}
  html:root body #vholds .hold-hd b.num,html:root body #vholds .hold-it li>.num{flex:none;white-space:nowrap}
  html:root body #vholds .hold-act{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  html:root body #vholds .hold-act .btn{min-width:0;min-height:46px;border-radius:14px}
  html:root body #vholds .hold-act .btn.primary{background:var(--pop)!important;color:var(--on-pop)!important;border:0!important}
  html:root body #vholds .hold-act .btn:not(.primary){background:transparent!important;border:1px solid color-mix(in srgb,currentColor 25%,transparent)!important;color:inherit!important}
}

/* ======================================================================================================
   v603 · CUADRA VIVA, parte 5: Caja, Reportes y el menú «Más» en el celular (solo cómo se ve; los cálculos no cambian)
   Reportes sigue la regla de Juan (v550): color del negocio, negro y blanco; amarillo o rojo solo en alertas.
   ====================================================================================================== */
@media (max-width:1099px){
  /* ---- Caja ---- */
  html:root body #tab-caja .fglbl{font-family:var(--f-display);font-size:1.25rem;font-weight:700;letter-spacing:-.01em;text-transform:none;color:var(--fg);margin:24px 4px 12px}
  html:root body #tab-caja .card.fold{border:0!important;box-shadow:none!important;clip-path:none!important;background:var(--surface)!important}
  html:root body #tab-caja .card.fold.fg-first{border-radius:24px 24px 0 0!important}
  html:root body #tab-caja .card.fold.fg-last{border-radius:0 0 24px 24px!important}
  html:root body #tab-caja .card.fold.fg-first.fg-last{border-radius:24px!important}
  html:root body #tab-caja .card.fold:not(.fg-first){margin-top:0!important;border-top:1px solid var(--line)!important}
  html:root body #tab-caja .card.fold:not(.fg-first):not(.fg-last){border-radius:0!important}
  html:root body #tab-caja .card.fold>h2{font-family:var(--f-body);font-weight:700}
  /* lo que debe haber en caja: bloque de color, como el de Inicio */
  html:root body #tab-caja #csum .cj-tot{display:flex;flex-direction:column;align-items:flex-start;gap:4px;text-align:left;background:var(--accent);color:var(--accent-ink,#fff);border-radius:24px;padding:20px;margin:14px 0 8px;position:relative;overflow:hidden}
  html:root[data-style="mostrador"]:not([data-theme="light"]) body #tab-caja #csum .cj-tot,html:root[data-theme="dark"] body #tab-caja #csum .cj-tot{background:color-mix(in srgb,var(--accent) 55%,#000)}
  html:root body #tab-caja #csum .cj-tot::after{content:"";position:absolute;right:-50px;top:-60px;width:170px;height:170px;border-radius:50%;background:#fff;opacity:.08;pointer-events:none}
  html:root body #tab-caja #csum .cj-tot>span{color:rgba(255,255,255,.85)!important;font-size:.95rem}
  html:root body #tab-caja #csum .cj-tot>b{font-family:var(--f-display);font-weight:800;font-size:2.6rem;line-height:1.05;letter-spacing:-.03em;color:#fff!important}
  /* renglones con el ícono en un cuadro redondeado */
  html:root body #tab-caja .cj-rows .r{padding:10px 0;gap:12px}
  html:root body #tab-caja .cj-rows .r>span:not(.num){color:var(--fg)}
  html:root body #tab-caja .cj-rows .r>.num{font-family:var(--f-display);font-weight:700}
  html:root body #tab-caja .cj-rows .r>.ci{width:40px;height:40px;border-radius:14px;display:grid;place-items:center;background:color-mix(in srgb,var(--accent) 14%,var(--surface));color:var(--accent)}
  html:root body #tab-caja .cj-rows .r>.ci svg{width:20px;height:20px}
  html:root body #tab-caja .cj-rows .r.neg>.ci{background:color-mix(in srgb,var(--fg) 7%,transparent);color:var(--muted)}
  html:root body #tab-caja .cj-rows .r.sub{padding-left:52px}
  html:root body #tab-caja .cj-rows .r.sub>.ci{width:20px;height:20px;border-radius:0;background:none;color:var(--muted)}
  html:root body #tab-caja .cj-rows .r.sub>.ci svg{width:18px;height:18px}
  html:root body #tab-caja .cj-rows .r.sub>span:not(.num){color:var(--muted)}
  html:root body #tab-caja #cclose{min-height:52px;border-radius:16px!important;font-family:var(--f-display);font-weight:700;font-size:1.02rem}

  /* ---- Reportes ---- */
  html:root body #tab-reportes .r-head{align-items:center}
  html:root body #tab-reportes #rphello{display:none} /* el saludo ya está en el bloque de color de arriba */
  html:root body #tab-reportes .r-head .btn.small{border:0!important;background:var(--surface)!important;border-radius:14px!important;box-shadow:none!important}
  html:root body #tab-reportes .rx-todo{border-radius:24px}
  html:root body #tab-reportes .rx-ctl h3{font-family:var(--f-display);font-size:1.25rem;font-weight:700}
  html:root body #tab-reportes .r-chip{border:0!important;background:var(--surface)!important;color:var(--fg)!important;border-radius:19px!important;font-weight:600}
  html:root body #tab-reportes .r-chip.on{background:var(--fg)!important;color:var(--bg)!important}
  html:root body #tab-reportes .rx-tab{border:0;border-radius:20px;padding:14px 16px}
  html:root body #tab-reportes .rx-tab[aria-selected="true"]{background:var(--accent);color:var(--accent-ink,#fff)}
  html:root[data-style="mostrador"]:not([data-theme="light"]) body #tab-reportes .rx-tab[aria-selected="true"],html:root[data-theme="dark"] body #tab-reportes .rx-tab[aria-selected="true"]{background:color-mix(in srgb,var(--accent) 55%,#000)}
  html:root body #tab-reportes .rx-tab[aria-selected="true"] .l{color:rgba(255,255,255,.85)}
  html:root body #tab-reportes .rx-tab .n{font-size:1.25rem}
  html:root body #tab-reportes .card.rx-c{border:0!important;box-shadow:none!important;border-radius:24px!important;background:var(--surface)!important}
  html:root body #tab-reportes .card.rx-c h3,html:root body #tab-reportes .card.rx-c>h2{font-family:var(--f-display);font-weight:700}

  /* ---- Menú «Más»: cuadros blancos con el ícono en un cuadro de color ---- */
  html:root body #moremenu .dlg{background:var(--bg)!important}
  html:root body #moremenu .dlg>h2{font-family:var(--f-display);font-weight:700}
  html:root body #moremenu .moregrid{gap:10px}
  html:root body #moremenu .morebtn{min-height:104px;gap:10px;border:0!important;background:var(--surface)!important;box-shadow:none!important;-webkit-backdrop-filter:none;backdrop-filter:none;border-radius:22px;font-size:.9rem;font-weight:600;color:var(--fg)}
  html:root body #moremenu .morebtn>svg{width:44px;height:44px;padding:11px;border-radius:15px;background:color-mix(in srgb,var(--accent) 14%,var(--surface));color:var(--accent);box-sizing:border-box}
  html:root body #moremenu .morebtn.on{background:var(--accent)!important;color:var(--accent-ink,#fff)}
  html:root body #moremenu .morebtn.on>svg{background:rgba(255,255,255,.18);color:#fff}
  html:root body #moremenu [data-moreclose]{border:0!important;background:var(--surface)!important;border-radius:16px;min-height:50px}
}

/* ======================================================================================================
   v603 · SIN BRILLOS (Juan, 2026-11-01: «quítale los brillos que tiene en todos lados, sin brillo en ninguna parte»)
   Colores planos: sin vidrio desenfocado, sin reflejos blancos, sin degradados de luz, sin resplandores de color,
   sin círculos de luz en los bloques de color y sin el destello que recorre las tarjetas mientras cargan.
   Las sombras neutras que separan la barra de abajo y las ventanas se quedan (no son brillo).
   ====================================================================================================== */
html:root:not(#_a):not(#_b){--glass-hi:none;--blur:none;--lens:transparent;--blob1:transparent;--blob2:transparent;--blob3:transparent;
  --ga1:transparent;--ga2:transparent;--ga3:transparent;--gv1:transparent;--gv2:transparent;--glass:var(--surface);--glass-strong:var(--surface);--glass-edge:var(--line)}
html:root:not(#_a):not(#_b) *,html:root:not(#_a):not(#_b) *::before,html:root:not(#_a):not(#_b) *::after{-webkit-backdrop-filter:none!important;backdrop-filter:none!important;text-shadow:none!important}
/* fondos con luces de color */
html:root:not(#_a):not(#_b) body{background-image:none!important}
html:root:not(#_a):not(#_b) body::before{content:none!important}
html:root:not(#_a):not(#_b) #splash,html:root:not(#_a):not(#_b) .auth,html:root:not(#_a):not(#_b) body:has(#auth:not([hidden])){background-image:none!important}
/* reflejos blancos encima de botones, pestañas, ventanas y tarjetas */
html:root:not(#_a):not(#_b) :is(.btn.primary,.r-chip.on,.tile,.dlg,nav.tabs,.receipt,.fab,.vbar,.sp-pbar i,.seg button.on,.ajsw.on,.ajlogo.ini,.card,.item,.morebtn,.qcard,input,select,textarea){background-image:none!important}
html:root:not(#_a):not(#_b) .tiles .tile:first-child{background:var(--accent)!important}
html:root:not(#_a):not(#_b) :is(.r-hero,.rx-hero){background-image:none!important}
html:root:not(#_a):not(#_b) .r-hero{background-color:var(--accent)!important}
html:root:not(#_a):not(#_b) label.chk input[type=checkbox]:checked,html:root:not(#_a):not(#_b) #tab-ajustes label.chk input[type=checkbox]:checked{background-image:none!important;background-color:var(--accent)!important}
html:root:not(#_a):not(#_b) .ajtog .ajsw.on{background:var(--accent)!important}
/* bordes de luz (sombras blancas por dentro) y resplandores de color */
html:root:not(#_a):not(#_b) :is(.btn,.btn.primary,.r-chip,.r-chip.on,.seg button,.avatar,.card,.card.fold,.card.fold.fg-first,.dlg,.tile,.item,.morebtn,.fab,.vbar,input,select,textarea,.newsale,.quick .btn,.nbadge,.sp-logo,.sp-logo.img,.orb-logo,.qcard,.ajsw,label.chk input){box-shadow:none!important}
html:root:not(#_a):not(#_b) nav.tabs{box-shadow:none!important;background-image:none!important}
html:root:not(#_a):not(#_b) nav.tabs::before,html:root:not(#_a):not(#_b) nav.tabs .ind::after{content:none!important}
html:root:not(#_a):not(#_b) nav.tabs .ind{box-shadow:none!important;background-image:none!important}
html:root:not(#_a):not(#_b) .sp-logo.img{filter:none!important}
@media (prefers-color-scheme:dark){html[data-logo-dark]:root:not([data-theme="light"]):not(#_a):not(#_b) .sp-logo.img{filter:invert(1) hue-rotate(180deg)!important}}
html[data-theme="dark"][data-logo-dark]:root:not(#_a):not(#_b) .sp-logo.img{filter:invert(1) hue-rotate(180deg)!important}
html:root:not(#_a):not(#_b) .newsale:hover,html:root:not(#_a):not(#_b) .quick .btn:hover{filter:none!important}
/* círculos de luz en los bloques de color (Inicio, Caja) */
html:root:not(#_a):not(#_b) #vhero::after,html:root:not(#_a):not(#_b) #tab-caja #csum .cj-tot::after{content:none!important}
/* el destello que recorre las tarjetas mientras cargan: quedan quietas */
html:root:not(#_a):not(#_b) .skc::after,html:root:not(#_a):not(#_b) .skl::after{content:none!important;animation:none!important}
/* Cuadra Viva: el círculo de la barra, el botón de agregar en Vender y la barra de cobrar sin resplandor de color */
html:root:not(#_a):not(#_b) nav.tabs .vdot,html:root:not(#_a):not(#_b) #vpick .vgrid>.qcard.gcard>.qadd,html:root:not(#_a):not(#_b) #vbar,html:root:not(#_a):not(#_b) .vbar{box-shadow:none!important}
html:root:not(#_a):not(#_b) nav.tabs button[data-tab="vender"] .icw{box-shadow:none!important}
/* el aro al escribir en un campo se queda: es para saber dónde se está escribiendo, no es brillo */
html:root:not(#_a):not(#_b) :is(input,select,textarea):focus{box-shadow:0 0 0 3px var(--accent-soft)!important}
html:root:not(#_a):not(#_b) .asearch input:focus{box-shadow:none!important}

/* v605 · Compra: equipos que ya están en el inventario sin compra (se tocan para ponerlos en el campo de IMEI) */
.cown{margin:4px 0 12px;padding:12px;border-radius:16px;background:color-mix(in srgb,var(--accent) 10%,var(--surface))}
.cown[hidden]{display:none}
.cown-t{font-size:.875rem;font-weight:600;color:var(--fg);margin-bottom:8px}
.cown-l{display:flex;flex-wrap:wrap;gap:8px}
.cown-b{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:0 12px;border:1px solid color-mix(in srgb,var(--accent) 35%,transparent);border-radius:12px;background:var(--surface);color:var(--fg);font:inherit;font-size:.875rem;cursor:pointer;max-width:100%}
.cown-b span{overflow-wrap:anywhere}
.cown-b svg{width:16px;height:16px;flex:none;color:var(--accent)}
.cown-b.all{background:var(--accent);border-color:var(--accent);color:var(--accent-ink,#fff);font-weight:600}
.cown-b:active{transform:scale(.97)}
/* v605 · Con una ventana abierta la página de atrás queda fija (lo hace app.js) y el dedo no «se pasa» de la ventana a la página */
html.scroll-lock,html.scroll-lock body{overscroll-behavior:none}
.modal,.modal .dlg,.lbx,#umenu,.cartcard{overscroll-behavior:contain}

/* ======================================================================================================
   v605 · SIN AMARILLO (Juan, 2026-11-01: «vamos a quitar ese amarillo… vamos a dejar siempre mis reglas de colores»).
   Colores de Cuadra: negro, blanco y el color del negocio. El «mango» (--pop) pasa a ser tinta: negro en claro, blanco en oscuro.
   Los botones de cobrar y retomar van en el color del negocio; los fondos suaves, en el color del negocio muy claro.
   ====================================================================================================== */
html:root:not(#_a):not(#_b){--pop:#15171a;--on-pop:#ffffff;--pop-soft:color-mix(in srgb,var(--accent) 10%,#fff)}
html:root[data-theme="dark"]:not(#_a):not(#_b){--pop:#ffffff;--on-pop:#15171a;--pop-soft:color-mix(in srgb,var(--accent) 16%,#17191c)}
@media (prefers-color-scheme:dark){html:root:not([data-theme="light"]):not(#_a):not(#_b){--pop:#ffffff;--on-pop:#15171a;--pop-soft:color-mix(in srgb,var(--accent) 16%,#17191c)}}
@media (max-width:1099px){
  /* cobrar: barra de abajo y botón «Cobrar» en el color del negocio */
  html:root:not(#_a):not(#_b) body #vbar{background:var(--accent)!important;color:var(--accent-ink,#fff)!important}
  html:root:not(#_a):not(#_b) body #vbar #vbn,html:root:not(#_a):not(#_b) body #vbar #vbt{color:var(--accent-ink,#fff)!important}
  html:root:not(#_a):not(#_b) body #tab-vender #vconfirm{background:var(--accent)!important;color:var(--accent-ink,#fff)!important}
  /* ventas en espera: fondo verde muy claro y «Retomar» en el color del negocio */
  html:root:not(#_a):not(#_b) body #vholds .hold{background:var(--pop-soft)!important;color:var(--fg)!important}
  html:root:not(#_a):not(#_b) body #vholds .hold-act .btn.primary{background:var(--accent)!important;color:var(--accent-ink,#fff)!important}
  /* Inicio: «Hoy toca» en verde muy claro */
  html:root:not(#_a):not(#_b) .vtc.y{background:var(--pop-soft)}
}

/* ======================================================================================================
   v606 · BOTÓN FLOTANTE EN VEZ DE BARRA (Juan, opción 1 «hoja», botón a la izquierda, sin botón aparte para Vender)
   Solo en celular y tablet; en computador sigue el menú lateral. Colores: tinta (negro en claro, blanco en oscuro) y el color del negocio.
   ====================================================================================================== */
#navfab{display:none}
@media (max-width:1099px){
  html:root body nav.tabs{display:none!important}
  #navfab{display:flex;position:fixed;left:calc(16px + env(safe-area-inset-left,0px));bottom:calc(16px + env(safe-area-inset-bottom,0px));z-index:18;
    align-items:center;gap:10px;height:56px;padding:0 16px 0 16px;border:0;border-radius:28px;background:var(--pop);color:var(--on-pop);
    font:700 1rem/1 var(--f-body);cursor:pointer;-webkit-tap-highlight-color:transparent;box-shadow:0 8px 22px -12px rgba(0,0,0,.55);
    transition:transform 160ms var(--ease-v),opacity 160ms var(--ease-v)}
  #navfab[hidden]{display:none}
  #navfab:active{transform:scale(.96)}
  #navfab:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
  #navfab svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;flex:none}
  #navfab svg.chev{width:18px;height:18px;opacity:.7;transition:transform 220ms var(--ease-v)}
  #navfab[aria-expanded="true"] svg.chev{transform:rotate(180deg)}
  #navfab .nfb,.navsheet .nfb{position:absolute;top:-6px;right:-6px;min-width:22px;height:22px;padding:0 6px;border-radius:11px;background:var(--accent);color:var(--accent-ink,#fff);font:700 .75rem/22px var(--f-body);font-style:normal;text-align:center;border:2px solid var(--bg)}
  /* se esconde cuando hay otra ventana encima, en el cobro, o sin sesión */
  html.vsheet #navfab,body:has(> .modal:not(.navsheet)) #navfab,body:has(#auth:not([hidden])) #navfab,body:has(#app[hidden]) #navfab,body:has(#umenu:not([hidden])) #navfab{opacity:0;pointer-events:none;transform:scale(.9)}
  /* con el botón ya no hay barra: la barra de cobrar y los avisos bajan, y quedan por encima del botón */
  html:root body #vbar,html .vbar{bottom:calc(84px + env(safe-area-inset-bottom,0px))!important}
  .toast{bottom:calc(88px + env(safe-area-inset-bottom,0px))}
  #app:not([data-tab="vender"]) .wrap{padding-bottom:calc(104px + env(safe-area-inset-bottom,0px))}

  /* la hoja «¿A dónde vas?» */
  .navsheet{align-items:flex-end;background:var(--scrim,rgba(10,12,14,.42))}
  html:root body .navsheet>.dlg{width:100%;max-width:560px;margin:0 auto;border-radius:28px 28px 0 0!important;background:var(--surface)!important;border:0!important;
    padding:12px max(16px,env(safe-area-inset-right,0px)) calc(92px + env(safe-area-inset-bottom,0px)) max(16px,env(safe-area-inset-left,0px));
    max-height:86vh;overflow:auto}
  .navsheet .grab{display:block;width:40px;height:5px;border-radius:3px;background:color-mix(in srgb,var(--fg) 18%,transparent);margin:0 auto 12px}
  .navsheet h2{font-family:var(--f-display);font-weight:700;font-size:1.25rem;margin:0 4px 12px}
  .navgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
  .navit{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:92px;padding:10px 6px;border:0;border-radius:20px;
    background:color-mix(in srgb,var(--fg) 5%,var(--surface));color:var(--fg);font:600 .875rem/1.2 var(--f-body);text-align:center;cursor:pointer;-webkit-tap-highlight-color:transparent}
  .navit:active{transform:scale(.97)}
  .navit i{width:44px;height:44px;border-radius:15px;display:grid;place-items:center;background:color-mix(in srgb,var(--accent) 14%,var(--surface));color:var(--accent);font-style:normal}
  .navit svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
  .navit span{overflow-wrap:anywhere}
  .navit.on{box-shadow:inset 0 0 0 2px var(--accent)!important}
  .navit.big{grid-column:1/-1;flex-direction:row;min-height:62px;background:var(--accent);color:var(--accent-ink,#fff);font-size:1.06rem;font-weight:700}
  html:root[data-theme="dark"] .navit.big{background:color-mix(in srgb,var(--accent) 70%,#000)}
  .navit.big i{background:rgba(255,255,255,.18);color:#fff}
  .navit.big.on{box-shadow:inset 0 0 0 2px #fff!important}
  .navit.big .nfb{top:10px;right:12px;border-color:var(--accent)}
  @media (prefers-reduced-motion:reduce){.navsheet,.navsheet>.dlg,#navfab{transition:none}}
}

/* ======================================================================================================
   v607 · ANIMACIÓN DE VENTANAS Y MENÚS (Juan: «sale de forma brusca los menús») y botón de pantallas solo con el ícono
   En celular y tablet las ventanas suben desde abajo con la curva de las hojas del iPhone (rápida al empezar, suave al llegar)
   y el fondo oscuro aparece a la par. La hoja de pantallas y el menú de la cuenta bajan al cerrar. Solo transform y opacity.
   ====================================================================================================== */
/* el fondo oscuro se desvanece solo (la hoja va sólida desde el primer cuadro) */
@keyframes mScrimIn{from{background-color:transparent}}
@keyframes mScrimOut{to{background-color:transparent}}
@keyframes mSheetIn{from{transform:translateY(100%)}}
@keyframes mSheetOut{to{transform:translateY(100%)}}
@keyframes umIn{from{transform:translateY(calc(100% + 24px))}}
@keyframes umOut{to{transform:translateY(calc(100% + 24px));opacity:.6}}
@media (max-width:1099px) and (prefers-reduced-motion:no-preference){
  html:root body .modal{animation:mScrimIn 260ms cubic-bezier(.23,1,.32,1)}
  html:root body .modal>.dlg{animation:mSheetIn 380ms cubic-bezier(.32,.72,0,1)}
  html:root body .modal.out{animation:mScrimOut 240ms cubic-bezier(.32,.72,0,1) forwards;pointer-events:none}
  html:root body .modal.out>.dlg{animation:mSheetOut 240ms cubic-bezier(.32,.72,0,1) forwards}
  html:root body #umenu:not(.fromnav):not([hidden]){animation:umIn 340ms cubic-bezier(.32,.72,0,1)}
  html:root body #umenu.out:not(.fromnav){animation:umOut 200ms cubic-bezier(.32,.72,0,1) forwards;pointer-events:none}
  /* el botón responde al dedo */
  #navfab{transition:transform 160ms cubic-bezier(.23,1,.32,1),opacity 200ms cubic-bezier(.23,1,.32,1)}
}
@media (max-width:1099px){
  /* botón redondo, solo con el ícono de la pantalla abierta */
  html:root body #navfab{width:56px;height:56px;padding:0;justify-content:center;border-radius:50%;gap:0}
  html:root body #navfab svg{width:26px;height:26px}
  html:root body #navfab .nfb{top:-4px;right:-4px}
}
/* v607 · copia que baja al cerrar cualquier ventana: un poco más rápida que la de la hoja */
@media (max-width:1099px) and (prefers-reduced-motion:no-preference){
  html:root body .modal.mghost{animation-duration:180ms!important}
  html:root body .modal.mghost>.dlg{animation-duration:180ms!important}
}
.modal.mghost{pointer-events:none!important}

/* ======================================================================================================
   v608 · Detalles de Juan (fotos del iPhone): botón de pantallas cuadrado redondeado como los accesos directos de Inicio;
   acciones rápidas de Inventario con el estilo de la hoja «¿A dónde vas?»; franja de la hora en el color del encabezado;
   logo del negocio junto a su nombre; una sola barrita en la hoja de pantallas.
   ====================================================================================================== */
@media (max-width:1099px){
  /* 1 · botón: cuadrado con esquinas redondeadas, igual que «Vender» de los accesos directos */
  html:root body #navfab{border-radius:18px}
  /* 5 · hoja de pantallas: una sola barrita (la de las demás ventanas), con zona amplia para el dedo */
  html:root body .navsheet>.dlg{padding-top:30px!important;position:relative}
  html:root body .navsheet .dlg>.grab{display:block;position:absolute;top:0;left:0;right:0;width:auto;height:30px;margin:0;background:none;border-radius:0;cursor:grab;touch-action:none;z-index:2}
  html:root body .navsheet .dlg>.grab::before{content:"";position:absolute;top:9px;left:50%;width:42px;height:5px;margin-left:-21px;border-radius:99px;background:color-mix(in srgb,var(--muted) 55%,transparent)}
  /* 2 · acciones rápidas de Inventario: cuadros grises con el ícono en un cuadro de color, como la hoja de pantallas */
  html:root body #invquick .sv-ag{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
  html:root body #invquick .sv-ag>.btn{display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:92px;padding:10px 6px!important;margin:0!important;
    border:0!important;border-radius:20px!important;background:var(--surface)!important;color:var(--fg)!important;box-shadow:none!important;font:600 .8125rem/1.2 var(--f-body)!important;text-align:center;white-space:normal}
  html:root body #invquick .sv-ag>.btn svg{width:44px!important;height:44px!important;padding:10px;box-sizing:border-box;border-radius:15px;background:color-mix(in srgb,var(--accent) 14%,var(--surface));color:var(--accent);margin:0!important}
  html:root body #invquick .sv-ag>.btn span{overflow-wrap:anywhere}
  /* 3 · la franja de la hora: del color del encabezado (el iPhone difuminaba ahí el fondo claro de la página) */
  body:has(#app:not([hidden])) #sattop{display:block}
  #sattop{display:none;position:fixed;top:0;left:0;right:0;height:var(--sat);background:var(--accent);z-index:45;pointer-events:none}
  html:root[data-style="mostrador"]:not([data-theme="light"]) #sattop{background:color-mix(in srgb,var(--accent) 55%,#000)}
}
/* 4 · logo del negocio junto a su nombre */
.bizlogo{display:inline-block;height:22px;width:auto;max-width:72px;object-fit:contain;vertical-align:-6px;margin-right:6px;padding:2px 4px;border-radius:6px;background:#fff}

/* ======================================================================================================
   v609 (Juan): acciones rápidas de Inventario en UNA sola tarjeta, como los accesos directos de Inicio
   ====================================================================================================== */
@media (max-width:1099px){
  html:root body #invquick .sv-ag{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr));gap:0!important;padding:16px 4px;background:var(--surface);border-radius:24px;box-shadow:0 14px 30px -18px rgba(0,0,0,.45)}
  html:root[data-style="mostrador"]:not([data-theme="light"]) body #invquick .sv-ag{box-shadow:0 0 0 1px var(--line)}
  html:root body #invquick .sv-ag>.btn{min-height:0!important;padding:0 2px!important;gap:8px;border-radius:0!important;background:transparent!important;font:600 .75rem/1.2 var(--f-body)!important;justify-content:flex-start}
  html:root body #invquick .sv-ag>.btn+.btn{border-left:1px solid var(--line)!important}
  html:root body #invquick .sv-ag>.btn svg{width:48px!important;height:48px!important;padding:12px;border-radius:16px;background:color-mix(in srgb,var(--accent) 12%,var(--surface))}
}

/* v610 (Juan): títulos repetidos. En el celular el nombre de la pantalla ya va en el encabezado de color: Facturas y Ajustes no lo repiten */
@media (max-width:1099px){#pcshare{--pc:1} 
  html:root body #tab-facturas .fhead>h1,html:root body #ajh1{display:none!important}
  html:root body #tab-facturas .fhead{margin-top:4px}
}

/* ======================================================================================================
   v611 · ENCABEZADO (Juan, opción 1): arriba el logo del negocio a la izquierda y la foto a la derecha; el título centrado abajo.
   Sin el nombre escrito (el logo lo dice). En Inicio igual: saludo, total y fichas centrados. Si no hay logo, la inicial del negocio.
   ====================================================================================================== */
.hdlogo{display:none}
.biztile{display:grid;place-items:center;width:48px;height:48px;border-radius:14px;background:#fff;padding:5px;flex:none;overflow:hidden}
.biztile img{width:100%;height:100%;object-fit:contain;display:block}
.biztile b{font-family:var(--f-display);font-weight:800;font-size:1.375rem;color:#15171a;line-height:1}
@media (max-width:1099px){
  html:root body #app:not([data-tab="inicio"]):not([data-tab="vender"]) header.top{display:grid!important;grid-template-columns:48px minmax(0,1fr) auto!important;grid-template-areas:"logo . me" "tt tt tt"!important;align-items:center;row-gap:16px!important;padding-bottom:24px!important}
  html:root body #app:not([data-tab="inicio"]):not([data-tab="vender"]) header.top>.hdlogo{display:block;grid-area:logo}
  html:root body #app:not([data-tab="inicio"]):not([data-tab="vender"]) header.top>.head-r{grid-area:me;position:static!important;justify-self:end}
  html:root body #app:not([data-tab="inicio"]):not([data-tab="vender"]) header.top .ptitle{grid-area:tt!important;align-items:center;text-align:center}
  html:root body #app:not([data-tab="inicio"]):not([data-tab="vender"]) header.top .ptitle>span{display:none!important}
  html:root body #app:not([data-tab="inicio"]):not([data-tab="vender"]) header.top .ptitle h1{font-size:2.125rem}
  /* Inicio */
  html:root body #vhero .vtop{align-items:center}
  html:root body #vhero .vav{width:48px;height:48px}
  html:root body #vhero .vhi{text-align:center;font-family:var(--f-display);font-weight:700;font-size:1.125rem;margin-top:14px}
  html:root body #vhero .vsum{text-align:center;margin-top:6px}
  html:root body #vhero .vsum .vlbl,html:root body #vhero .vsum .vbig{display:block;text-align:center}
  html:root body #vhero .vchips{justify-content:center}
}
/* v611 · Vender con el mismo encabezado: logo arriba a la izquierda, foto a la derecha, «Nueva venta» centrado y el buscador debajo */
.vvlogo{display:none}
@media (max-width:1099px){
  html:root body #tab-vender .vvhead>.vvlogo{display:block;height:48px}
  html:root body #tab-vender .vvhead h2{text-align:center;width:100%;align-self:stretch;padding-right:0!important}
  html:root body #app[data-tab="vender"] header.top .head-r{top:calc(var(--sat) + 18px)!important}
  html:root body #app[data-tab="vender"] header.top .head-r>#avatar{width:48px!important;height:48px!important}
}

/* ======================================================================================================
   v612 (Juan): el nombre del negocio junto al logo, y la foto de la persona en cuadro con esquinas redondeadas (como el logo)
   ====================================================================================================== */
.bizbrand{display:flex;align-items:center;gap:12px;min-width:0;cursor:pointer}
.bizbn{font-family:var(--f-display);font-weight:700;font-size:1.0625rem;color:#fff;line-height:1.15;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media (max-width:1099px){
  html:root body #app:not([data-tab="inicio"]):not([data-tab="vender"]) header.top{grid-template-columns:minmax(0,1fr) auto!important;grid-template-areas:"logo me" "tt tt"!important}
  html:root body #app:not([data-tab="inicio"]):not([data-tab="vender"]) header.top>.hdlogo{min-width:0}
  html:root body #tab-vender .vvhead>.vvlogo{padding-right:60px}
  html:root body #vhero .vtop .bizbrand{flex:1;padding-right:12px}
  /* foto en cuadro con esquinas redondeadas, 48 px, como el cuadro del logo */
  html:root body header.top #avatar,html:root body #app header.top .head-r>#avatar{border-radius:14px!important;width:48px!important;height:48px!important;overflow:hidden}
  html:root body header.top #avatar img{border-radius:inherit}
  html:root body #vhero .vav{border-radius:14px!important;width:48px;height:48px}
}

/* ======================================================================================================
   v613 · CUADRA VIVA en las sub-pantallas, parte A: secciones que se abren y cierran (Inventario, Caja, Servicio, Cotizar,
   Agenda, Clientes, Ventas…). Tarjetas blancas unidas por grupo, ícono en un cuadrito de color, «+ Nueva» como ficha,
   títulos de grupo grandes. Lo mismo que se hizo en Caja (v603), ahora en toda la app. Solo celular y tablet.
   ====================================================================================================== */
.fic{display:none}
@media (max-width:1099px){
  html:root body #app section .card.fold{border:0!important;box-shadow:none!important;clip-path:none!important;background:var(--surface)!important;border-radius:24px!important}
  html:root body #app section .card.fold.fg-first:not(.fg-last){border-radius:24px 24px 0 0!important}
  html:root body #app section .card.fold.fg-last:not(.fg-first){border-radius:0 0 24px 24px!important}
  /* las del medio y la última de cada grupo se pegan a la anterior, con una raya fina */
  html:root body #app section .card.fold:not(.fg-first){margin-top:0!important;border-top:1px solid var(--line)!important}
  html:root body #app section .card.fold:not(.fg-first):not(.fg-last){border-radius:0!important}
  html:root body #app section .fglbl{font-family:var(--f-display);font-size:1.25rem;font-weight:700;letter-spacing:-.01em;text-transform:none;color:var(--fg);margin:24px 4px 12px}
  /* el título de la sección: ícono en cuadrito de color, texto en negrilla */
  html:root body #app section .card.fold>h2{min-height:60px!important;gap:14px!important;font-family:var(--f-body)!important;font-weight:700!important;font-size:1rem!important}
  html:root body #app section .card.fold>h2:has(>.fic)::before{display:none!important}
  html:root body #app section .card.fold>h2>.fic{display:grid;place-items:center;width:40px;height:40px;flex:none;border-radius:13px;background:color-mix(in srgb,var(--accent) 14%,var(--surface))}
  html:root body #app section .card.fold>h2>.fic::before{content:"";width:22px;height:22px;background:var(--accent);-webkit-mask:var(--ic) center/contain no-repeat;mask:var(--ic) center/contain no-repeat}
  /* «+ Nueva», «Abrir»: ficha a la derecha */
  html:root body #app section .card.fold[data-sheet][data-sl]>h2::after{content:"Abrir"!important;display:inline-flex!important;align-items:center;margin-left:auto;padding:6px 12px;border-radius:999px;background:color-mix(in srgb,var(--accent) 12%,var(--surface));color:var(--accent);font:700 .8125rem/1 var(--f-body);border:0!important;width:auto!important;height:auto!important;transform:none!important}
  /* botones secundarios dentro de las secciones: grises, sin borde */
  html:root body #app section .card :is(.btn:not(.primary):not(.danger):not(.ok)):not(.dn-ic):not(.cown-b){border:0!important;background:color-mix(in srgb,var(--fg) 6%,var(--surface))!important;box-shadow:none!important;border-radius:14px!important}
  html:root body #app section>:not(.card) :is(.btn:not(.primary):not(.danger)),html:root body #app section>.btn:not(.primary):not(.danger){border:0!important;background:var(--surface)!important;box-shadow:none!important;border-radius:14px!important}
}
@media (max-width:1099px){
  html:root body #app section .card.fold[data-sheet]>h2::after{display:inline-flex!important;align-items:center;margin-left:auto;padding:6px 12px;border-radius:999px;background:color-mix(in srgb,var(--accent) 12%,var(--surface));color:var(--accent);font:700 .8125rem/1 var(--f-body);border:0!important;width:auto!important;height:auto!important;transform:none!important}
}

/* ======================================================================================================
   v614 · CUADRA VIVA, parte B: pantalla principal de Ajustes (perfil, guía, lista y módulos) — celular y tablet
   ====================================================================================================== */
@media (max-width:1099px){
  /* tarjetas sin borde, blancas, esquinas de 24 px */
  html:root body #tab-ajustes :is(.ajid,.ajfirst,.ajgrp){background:var(--surface)!important;border:0!important;box-shadow:none!important;border-radius:24px!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
  /* perfil: logo en cuadro (como el encabezado) y nombre en negrilla */
  html:root body #tab-ajustes .ajid{padding:16px!important;gap:14px}
  html:root body #tab-ajustes .ajid .ajlogo{width:52px!important;height:52px!important;border-radius:16px!important;object-fit:contain;background:#fff;padding:5px;box-shadow:inset 0 0 0 1px var(--line)!important}
  html:root body #tab-ajustes .ajid .ajlogo.ini{background:color-mix(in srgb,var(--accent) 14%,var(--surface))!important;color:var(--accent)!important;box-shadow:none!important;font-family:var(--f-display);font-weight:800}
  html:root body #tab-ajustes .ajid .ajidt b{font-family:var(--f-display);font-weight:700;font-size:1.125rem}
  /* títulos de grupo grandes, como en las demás pantallas */
  html:root body #tab-ajustes .ajlbl{display:block;font-family:var(--f-display);font-size:1.25rem;font-weight:700;letter-spacing:-.01em;text-transform:none;color:var(--fg);margin:24px 4px 12px}
  /* filas: ícono en cuadrito de color, título en negrilla, rayita fina entre filas */
  html:root body #tab-ajustes .ajgrp{padding:4px 0!important}
  html:root body #tab-ajustes .ajgrp .ajrow{margin:0!important;width:100%!important;border-radius:0!important;padding:12px 16px!important;gap:14px!important;min-height:64px;align-items:center!important}
  html:root body #tab-ajustes .ajgrp .ajrow+.ajrow{border-top:1px solid var(--line)!important}
  html:root body #tab-ajustes .ajgrp .ajic,html:root body .ajhub .ajrow .ajic{width:40px!important;height:40px!important;border-radius:13px!important;background:color-mix(in srgb,var(--accent) 14%,var(--surface))!important;color:var(--accent)!important;display:grid!important;place-items:center;flex:none}
  html:root body #tab-ajustes .ajgrp .ajic svg{width:22px;height:22px}
  html:root body #tab-ajustes .ajgrp .ajrow[data-ajs="cuid"] .ajic{background:color-mix(in srgb,var(--bad) 14%,var(--surface))!important;color:var(--bad)!important}
  html:root body #tab-ajustes .ajtx b{font-weight:700;font-size:1rem}
  html:root body #tab-ajustes .ajtx span{color:var(--muted);font-size:.8125rem;line-height:1.35}
  html:root body #tab-ajustes .ajchev{color:var(--muted);font-size:1.25rem}
  /* interruptores de los módulos en el color del negocio */
  html:root body #tab-ajustes .ajtog .ajsw.on{background:var(--accent)!important;border-color:var(--accent)!important}
  /* guía «Deja Mi Cuadra a tu medida»: pasos en filas grises, «Ir ›» como ficha */
  html:root body #tab-ajustes .ajfirst{padding:16px!important}
  html:root body #tab-ajustes .ajfh b{font-family:var(--f-display);font-weight:700;font-size:1.0625rem}
  html:root body #tab-ajustes .ajchip{border:0!important;border-radius:16px!important;background:color-mix(in srgb,var(--fg) 5%,var(--surface))!important;min-height:52px;box-shadow:none!important;font-weight:600}
  html:root body #tab-ajustes .ajchip em{font-style:normal;padding:6px 12px;border-radius:999px;background:color-mix(in srgb,var(--accent) 12%,var(--surface));color:var(--accent);font-weight:700;font-size:.8125rem}
  html:root body #tab-ajustes .ajchip.ok{opacity:.75}
  html:root body #tab-ajustes .ajring{--rc:var(--accent)}
  /* «‹ Ajustes» para volver: ficha */
  html:root body #tab-ajustes :is(#ajback,.ajback){display:inline-flex;align-items:center;gap:4px;padding:6px 12px;border-radius:999px;background:var(--surface);border:0;color:var(--accent);font-weight:700}
}

/* ======================================================================================================
   v615 · CUADRA VIVA, parte C: ventanas y formularios (celular y tablet)
   Títulos grandes, «X» redonda gris, botones secundarios grises sin borde, Ayuda y Buscar sin cajitas con borde.
   ====================================================================================================== */
@media (max-width:1099px){
  html:root body .modal .dlg :is(.sheethd>h2,:scope>h2){font-family:var(--f-display)!important;font-weight:700!important;font-size:1.375rem!important;letter-spacing:-.01em}
  html:root body .modal .sheetx{width:36px!important;height:36px!important;border-radius:50%!important;border:0!important;background:color-mix(in srgb,var(--fg) 8%,var(--surface))!important;color:var(--fg)!important;display:grid;place-items:center;font-size:1rem;box-shadow:none!important}
  /* botones secundarios de las ventanas: grises y sin borde (los principales siguen en el color del negocio) */
  html:root body .modal .dlg .btn:not(.primary):not(.danger):not(.dn-ic):not(.cown-b):not(.r-chip){border:0!important;background:color-mix(in srgb,var(--fg) 7%,var(--surface))!important;color:var(--fg)!important;box-shadow:none!important;border-radius:14px!important}
  html:root body .modal .dlg .btn.danger:not(.primary){border:0!important;background:color-mix(in srgb,var(--bad) 12%,var(--surface))!important;color:var(--bad)!important;box-shadow:none!important;border-radius:14px!important}
  /* las secciones que se abren dentro de una ventana (formularios) van sin tarjeta de por medio */
  html:root body .modal .sheetdlg>.card{border:0!important;box-shadow:none!important;background:transparent!important}
  /* Ayuda: cada pregunta en un bloque gris sin borde */
  html:root body .modal .hitem{border:0!important;border-radius:20px!important;background:color-mix(in srgb,var(--fg) 5%,var(--surface))!important;box-shadow:none!important;margin-bottom:8px}
  html:root body .modal .hitem .t{font-weight:700}
  /* Buscar: filas blancas sin borde, en un solo bloque con rayitas */
  html:root body #gsmodal.modal .dlg{background:var(--bg)!important}
  html:root body #gsmodal.modal .gsrow{border:0!important;border-radius:0!important;background:var(--surface)!important;box-shadow:none!important;margin:0!important;min-height:52px}
  html:root body #gsmodal.modal .gsrow+.gsrow{border-top:1px solid var(--line)!important}
  html:root body #gsmodal.modal .gsrow:first-of-type{border-radius:18px 18px 0 0!important}
  html:root body #gsmodal.modal .gsrow:last-of-type{border-radius:0 0 18px 18px!important}
  html:root body #gsmodal.modal .gsrow:only-of-type{border-radius:18px!important}
  html:root body #gsmodal.modal h3{font-family:var(--f-display);font-weight:700;font-size:1.125rem;margin:16px 4px 8px}
  html:root body #gsmodal.modal input{background:var(--surface)!important}
}
/* v615: con una ventana abierta, el encabezado (capa 70) queda debajo de ella (capa 50); antes la foto se veía encima de Buscar */
html.modal-open header.top{z-index:40!important}
@media (max-width:1099px){html:root body #gsmodal.modal :is(#gsres,#gsres>div,#gsres>section){gap:0!important;row-gap:0!important}}

/* ======================================================================================================
   v616 · CUADRA VIVA, parte D: Catálogo y detalle de Reportes (celular y tablet)
   ====================================================================================================== */
@media (max-width:1099px){
  /* Reportes «Hoy toca»: el botón vuelve a verse (la regla de botones de la parte A lo dejaba blanco sobre blanco) */
  html:root body #app:not(#_z) section .rx-todo .btn.rx-ghost.rx-ghost{background:color-mix(in srgb,var(--bg) 16%,transparent)!important;color:var(--bg)!important;border:0!important}
  html:root body #app:not(#_z) section .rx-todo .btn.rx-wa.rx-wa{background:var(--accent)!important;color:var(--accent-ink,#fff)!important;border:0!important}
  /* títulos de las tarjetas de Reportes y Catálogo con la letra de los encabezados */
  html:root body :is(#tab-reportes,#tab-catalogo) .card :is(h2,h3):not(.sub){font-family:var(--f-display)!important;font-weight:700!important;font-size:1.125rem!important;letter-spacing:-.01em}
  html:root body :is(#tab-reportes,#tab-catalogo) .card{border:0!important;box-shadow:none!important;border-radius:24px!important;background:var(--surface)!important}
  /* pestañas del Catálogo como las demás: riel gris y la elegida en blanco */
  html:root body #catseg{gap:2px!important;padding:4px!important;background:color-mix(in srgb,var(--fg) 7%,transparent)!important;border:0!important;border-radius:16px!important;box-shadow:none!important}
  html:root body #catseg>button{min-height:40px;border:0!important;border-radius:12px!important;background:transparent!important;color:var(--muted)!important;font-weight:700!important;box-shadow:none!important}
  html:root body #catseg>button.on{background:var(--surface)!important;color:var(--fg)!important;box-shadow:0 2px 8px -4px rgba(0,0,0,.25)!important}
  /* Reportes: «Más detalle», filas con la flecha suave */
  html:root body #tab-reportes .r-acc>summary,html:root body #tab-reportes details>summary{font-weight:700}
}
/* v617 · La vista previa del catálogo SÍ se puede tocar (ver productos, hacer un pedido de prueba). La regla de v574
   (.tprev iframe sin toques, para que la ventana del ticket se deslice) también le caía al catálogo, que usa la misma caja. */
.tprev iframe#catframe{pointer-events:auto}
/* v620 · Detalles del iPhone de Juan (fotos del 2026-11-02) */
/* 1. «Cobrando…» salía encima de «Cobrar»: las reglas de color con !important de cada botón le ganaban al texto transparente del botón ocupado */
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f) body .btn:is(.is-busy,.is-done){color:transparent!important;-webkit-text-fill-color:transparent!important}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f) body .btn:is(.is-busy,.is-done)>.bover{color:var(--bcol,#fff)!important;-webkit-text-fill-color:var(--bcol,#fff)!important}
@media (max-width:1099px){
  /* 3. Venta abierta: «Enviar ticket» y «Ver factura» lado a lado; Devolver, Anular… debajo en cuadros */
  html:root body .item.srow .svgrp>.row.sv-ag{grid-template-columns:repeat(6,minmax(0,1fr))}
  /* v626 (Juan): todos los botones de la venta abierta como «Enviar ticket» y «Ver factura»: de a dos por fila, ícono al lado del texto */
  html:root body .item.srow .svgrp>.row.sv-ag>.btn{grid-column:span 3;flex-direction:row;min-height:52px;font-size:.95rem;gap:8px}
  html:root body .item.srow .svgrp>.row.sv-ag>.btn:last-child:nth-child(odd){grid-column:1/-1}
  /* «Anular venta» se ve más: fondo rojo claro y letra roja */
  html:root:not(#_a):not(#_b) body .item.srow .svgrp>.row.sv-ag>.btn.danger{background:color-mix(in srgb,var(--bad,#b3261e) 13%,var(--surface))!important;color:var(--bad,#b3261e)!important;font-weight:700}
  /* 4. Carrito: menos espacio vacío debajo de «Poner en espera» */
  html:root body #tab-vender.sheetm.sheet-open>.cartcard{padding-bottom:max(16px,calc(env(safe-area-inset-bottom,0px) + 8px))!important} /* v1225 (Juan, iPhone 15 Pro Max): los botones de abajo del carrito quedaban pegados a la barra de inicio */
  /* 5. «Ver carrito» al lado del botón flotante, a la misma altura */
  html:root body #vbar,html:root body .vbar{bottom:calc(16px + env(safe-area-inset-bottom,0px))!important;left:calc(84px + env(safe-area-inset-left,0px))!important;right:16px!important;
    min-height:56px;padding:4px 4px 4px 16px!important;border-radius:18px!important;gap:8px}
  html:root body #vbar #vbn{font-size:.75rem;line-height:1.1}
  html:root body #vbar #vbt{font-size:1.15rem!important;line-height:1.1}
  html:root body #vbar #vgo{min-height:48px;padding-inline:16px;border-radius:14px!important;font-size:.9rem}
  /* 6. Hoja «¿A dónde vas?»: el botón flotante queda debajo de la hoja, así que no hace falta dejarle espacio */
  html:root body .navsheet>.dlg{padding-bottom:calc(16px + env(safe-area-inset-bottom,0px))!important}
}
/* 2. Las ventanas nunca suben hasta la hora: ahí el iPhone no deja tocar (la X de «Recibir un equipo») */
html body .modal .dlg.sheetdlg{max-height:calc(100% - var(--sat,0px) - 12px)} /* la regla general .modal .dlg (100% - 12px) le ganaba y la ventana llegaba hasta la hora */
/* v621 · iPhone instalado: las ventanas de abajo llegan al borde (--fixgap lo mide app.js; en los demás equipos vale 0) */
.modal{bottom:var(--kb,0px)} /* v1228 (Juan, iPhone 15 Pro Max): ya no se empuja la ventana hacia abajo con --fixgap (v621): en su teléfono las hojas se pasaban del borde y se cortaban los botones de abajo (Cerrar caja, Cobrar…). La franja que pudiera quedar se tapa con el color de la hoja (más abajo). */
html.kb-open .modal{bottom:auto}
@media (max-width:1099px){
  html:root body #tab-vender.sheetm.sheet-open>.cartcard{bottom:0!important} /* v992: sin --fixgap; en el iPhone de Juan el carrito se pasaba de la pantalla y «Siguiente» quedaba fuera */
  /* con el carrito abierto, el encabezado (foto de la persona) queda debajo del carrito y no tapa «Cerrar» */
  html.vsheet header.top{z-index:40!important}
}
@media (max-width:1099px){
  /* v622 · botón flotante y barra «Ver carrito» más abajo (Juan) */
  html:root body #navfab{bottom:max(12px,calc(env(safe-area-inset-bottom,0px) - 8px))!important}
  html:root body #vbar,html:root body .vbar{bottom:max(12px,calc(env(safe-area-inset-bottom,0px) - 8px))!important}
}
/* v624 · iPhone instalado: la pantalla de atrás se congela sin fijar el body (fijarlo achicaba la app 59 px y dejaba franja abajo) */
html.lock-ov,html.lock-ov body{overflow:hidden!important;overscroll-behavior:none}
/* v626 · Franja clara detrás de la hora (iOS 26): el iPhone difumina ahí el color de fondo de la PÁGINA (html), no el del encabezado.
   En celular y tablet, con la app abierta, el fondo de la página es el color del encabezado y el contenido (body) conserva su fondo. */
@media (max-width:1099px){
  html:root:has(body #app:not([hidden])){background:var(--hdr,var(--accent))}
  html:root[data-style="mostrador"]:not([data-theme="light"]):has(body #app:not([hidden])){background:var(--hdr,color-mix(in srgb,var(--accent) 55%,#000))}
  html:root:has(body #app:not([hidden])) body{min-height:100dvh;box-sizing:border-box}
}
/* v627 · Prueba (Juan): el velo que pone iOS 26 detrás de la hora sale claro en modo claro. Se marca la PÁGINA (html) como de tonos
   oscuros para que el iPhone use su velo oscuro; el contenido (body) sigue claro, así listas, fechas y barras del sistema no cambian.
   Si el iPhone no le hace caso, se quita junto con v626 (fondo de la página en el color del encabezado). (v802 lo intentó desde el primer instante: tampoco funcionó, revertido.) */
@media (max-width:1099px){
  html:root:has(body #app:not([hidden])){color-scheme:dark}
  html:root[data-theme="light"]:has(body #app:not([hidden])) body{color-scheme:light}
  @media (prefers-color-scheme:light){html:root:not([data-theme="dark"]):has(body #app:not([hidden])) body{color-scheme:light}}
}
#clist .cdebt{display:inline-block;padding:1px 9px;border-radius:999px;background:color-mix(in srgb,var(--bad,#b3261e) 12%,var(--surface));color:var(--bad,#b3261e);font-weight:700}
/* v628 · Listas con el diseño aprobado por Juan (maqueta «Mis clientes»): resumen arriba, «⋯» y «+», buscador con lupa,
   Filtros + ordenar + vista, línea «Orden · resultados», filas limpias con «›». Primero Clientes; las demás pantallas después. */
.lhd-acts,.lstats,.lmeta,.lsortbtn{display:none}
@media (max-width:1099px){#pcshare{--pc:1} 
  #clistcard{position:relative}
  #clistcard .lhd-acts{display:flex;gap:8px;position:absolute;top:16px;right:14px;z-index:2}
  #clistcard .lhd-acts .btn{width:44px;height:44px;min-height:0;padding:0;border-radius:14px;display:grid;place-items:center}
  #clistcard .lhd-acts .btn svg{width:22px;height:22px}
  #clistcard .lhd-more{background:var(--field,#efefec)!important;color:var(--fg)!important;border:0!important}
  #clistcard #clicount{display:none}
  #clistcard .lstats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:18px 0 14px}
  .lstats .lst{display:flex;flex-direction:column;align-items:flex-start;gap:2px;background:var(--field,#efefec);border:0;border-radius:16px;padding:12px;font:inherit;color:var(--fg);text-align:left;min-width:0}
  .lstats .lst b{font-family:var(--f-display);font-size:1.3rem;letter-spacing:-.02em;line-height:1.15;overflow-wrap:anywhere}
  .lstats .lst span{color:var(--muted);font-size:.8rem}
  .lstats .lst.bad b{color:var(--bad,#b3261e)}
  /* buscador con lupa y sin el título encima */
  #clistcard .row:has(#csearch){flex-wrap:wrap!important;justify-content:flex-start!important;align-items:center!important;gap:8px}
  #clistcard label.f:has(#csearch){position:relative;font-size:0;gap:0;flex:1 1 100%}
  #clistcard label.f:has(#csearch)::before{content:"";position:absolute;left:14px;top:50%;width:20px;height:20px;transform:translateY(-50%);z-index:1;pointer-events:none;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa3b2' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='m16 16 4.5 4.5'/%3E%3C/svg%3E") center/20px no-repeat}
  html:root body #clistcard #csearch{font-size:1rem;padding-left:46px!important;text-align:left!important}
  #clistcard .lsortbtn{display:grid;place-items:center;width:44px;height:44px;min-height:0;padding:0;border-radius:14px;margin-left:auto}
  #clistcard .lsortbtn svg{width:21px;height:21px}
  #clistcard .cacts,#clistcard #clist>.msort{display:none!important}
  #clistcard .lmeta{display:flex;justify-content:space-between;gap:8px;color:var(--muted);font-size:.8rem;margin:10px 2px 0;padding-bottom:8px;border-bottom:1px solid var(--line)}
  /* filas limpias con «›» (vista lista) */
  #clist.v-lista .item.cli{position:relative;padding-right:30px!important;cursor:pointer}
  #clist.v-lista .item.cli::after{content:"";position:absolute;right:8px;top:50%;width:9px;height:9px;border:solid var(--muted);border-width:2px 2px 0 0;transform:translateY(-50%) rotate(45deg)}
  #clist.v-lista .item.cli .s:empty{display:none}
  #clist.v-lista .item.cli .chip{background:var(--accent-soft,#dcefe3);color:var(--accent);border:0;font-weight:700}
  /* hoja de opciones */
  .optsheet{align-items:flex-end}
  html:root body .optsheet>.dlg{width:100%;max-width:560px;margin:0 auto;border-radius:28px 28px 0 0!important;padding:12px 16px calc(16px + env(safe-area-inset-bottom,0px))}
}
.optsheet h2{font-family:var(--f-display);font-size:1.2rem;margin:0 4px 8px}
.optlist{display:flex;flex-direction:column}
.optit{display:flex;align-items:center;gap:14px;width:100%;padding:12px 6px;border:0;border-top:1px solid var(--line);background:none;color:var(--fg);font:inherit;text-align:left;cursor:pointer}
.optit:first-child{border-top:0}
.optit i{flex:none;width:40px;height:40px;border-radius:12px;background:var(--accent-soft,#dcefe3);color:var(--accent);display:grid;place-items:center}
.optit i svg{width:20px;height:20px}
.optit span{flex:1;min-width:0}
.optit b{display:block;font-size:1rem}
.optit small{display:block;color:var(--muted);font-size:.82rem}
.optit em{font-style:normal;font-weight:800;color:var(--accent)}
.optit.on b{color:var(--accent)}
@media (max-width:1099px){#pcshare{--pc:1} 
  /* v628: en la vista lista de Clientes sale la ficha «Debe» (5.ª línea) y solo las etiquetas que puso el negocio */
  html:root body #clist.v-lista .item.cli .main>.s:nth-child(5){display:block;overflow:visible;margin-top:4px}
  html:root body #clist.v-lista .item.cli .main>.s:nth-child(6){display:block;white-space:normal}
  html:root body #clist.v-lista .item.cli .chip.auto{display:none}
  html:root body #clistcard .row:has(#csearch) .vsw{margin-left:0!important}
}
/* v628 · Detalle del cliente con el diseño aprobado por Juan */
#cpbody .cphd{display:flex;align-items:center;gap:10px;margin:0 0 6px}
#cpbody .cphd h2{flex:1;margin:0;font-family:var(--f-display);font-size:1.2rem}
#cpbody .cpib{width:44px;height:44px;min-height:0;padding:0;border-radius:14px;display:grid;place-items:center;background:var(--field,#efefec)!important;color:var(--fg)!important;border:0!important}
#cpbody .cpib svg{width:22px;height:22px}
#cpbody .cptop{display:flex;flex-direction:column;align-items:center;text-align:center;gap:4px;margin:4px 0 14px}
#cpbody .cptop .ava{position:static;flex:none;width:84px;height:84px;font-size:2rem;border-radius:50%}
#cpbody .cptop h3{margin:8px 0 0;font-family:var(--f-display);font-size:1.45rem;letter-spacing:-.01em}
#cpbody .cpsub{color:var(--muted)}
#cpbody .cpacts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:12px}
#cpbody .cpacts.n2{grid-template-columns:repeat(2,minmax(0,1fr))}
#cpbody .cpacts.n1{grid-template-columns:1fr}
#cpbody .cpa{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:72px;border:0;border-radius:16px;background:var(--field,#efefec);color:var(--fg);font:700 .88rem/1.1 var(--f-body);text-decoration:none;cursor:pointer}
#cpbody .cpa svg{width:22px;height:22px}
#cpbody .cpa.wa{color:#16a34a}
#cpbody .cptwo{display:grid!important;grid-template-columns:1fr 1fr;gap:8px;margin:0 0 12px!important}
#cpbody .cptwo .cpst{background:var(--field,#efefec);border:0;border-radius:16px;padding:12px 14px}
#cpbody .cptwo .cpst .k{color:var(--muted);font-size:.82rem}
#cpbody .cptwo .cpst .v{font-family:var(--f-display);font-size:1.45rem;font-weight:800;letter-spacing:-.02em}
#cpbody .cptwo .cpst.bad .v{color:var(--bad,#b3261e)}
#cpbody .cpcta{display:block;width:100%;min-height:56px;border-radius:18px;font-size:1.05rem;font-weight:800;margin-bottom:12px}
#cpbody .cptabs{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto;scrollbar-width:none;gap:4px;padding:4px;border-radius:16px;background:var(--field,#efefec)}
#cpbody .cptabs::-webkit-scrollbar{display:none}
#cpbody .cptabs button{flex:none;padding:9px 14px;border-radius:12px;font-weight:700;font-size:.85rem}
#cpbody .cpsec{margin:16px 2px 4px;font-family:var(--f-display);font-size:1.05rem}
#cpbody .cpkv{display:flex;justify-content:space-between;gap:12px;padding:10px 2px;border-top:1px solid var(--line)}
#cpbody .cpkv span{color:var(--muted)}
#cpbody .cpkv b{text-align:right;overflow-wrap:anywhere}
#cpbody .cpmv{display:flex;align-items:center;gap:12px;padding:10px 2px;border-top:1px solid var(--line)}
#cpbody .cpmv i{flex:none;width:40px;height:40px;border-radius:12px;background:var(--field,#efefec);display:grid;place-items:center}
#cpbody .cpmv i svg{width:20px;height:20px}
#cpbody .cpmv .main{flex:1;min-width:0}
#cpbody .cpmv .t{font-weight:700}
#cpbody .cpmv .s{color:var(--muted);font-size:.85rem}
#cpbody .cpmv b.ok{color:var(--good,#15803d)}
#cpbody .cptags{margin-top:8px;display:flex;flex-wrap:wrap;gap:6px}
#cpbody .cptabs button{background:transparent!important;color:var(--muted)!important;border:0!important}
#cpbody .cptabs button.on{background:var(--surface)!important;color:var(--fg)!important}
#cpbody .cptabs{background:var(--field,#efefec)!important;border:0!important}
/* v629 · Ventas con el diseño aprobado por Juan (versión 2): número grande arriba, buscador con «⋯» y «+», fichas rápidas,
   ventas agrupadas por día y filas de dos líneas. Solo celular y tablet; el computador sigue igual. */
.vhero2,.vqchips,.vr2,.vday,.vsbtn{display:none}
@media (max-width:1099px){#pcshare{--pc:1} 
  html:root body #app[data-tab="ventas"]:not(#_x):not(#_y) header.top{border-radius:0!important;margin-bottom:0!important;padding-bottom:4px!important}
  html:root body #app[data-tab="ventas"]:not(#_x):not(#_y) header.top .ptitle{display:none!important}
  /* lo que pasó al menú «⋯»: títulos, ordenar y las tarjetas de abajo (se abren desde el menú en una ventana) */
  #tab-ventas>.fglbl,#tab-ventas>#warcard,#tab-ventas>#sellcard,#tab-ventas>#vbkcard,#tab-ventas>#acccard,#tab-ventas #histcard>h2,#tab-ventas #slist>.msort{display:none!important}
  #tab-ventas #histcard{padding-top:12px}
  #tab-ventas .vhero2{display:block;margin:0 -16px 14px;padding:6px 20px 24px;background:var(--hdr,var(--accent));color:var(--hdr-ink,var(--accent-ink,#fff));border-radius:0 0 32px 32px;text-align:center}
  html:root[data-style="mostrador"]:not([data-theme="light"]) #tab-ventas .vhero2{background:var(--hdr,color-mix(in srgb,var(--accent) 55%,#000))}
  #tab-ventas .vhero2 .k{opacity:.85}
  #tab-ventas .vhero2 .vnum{font-family:var(--f-display);font-weight:800;font-size:clamp(2.2rem,11vw,3rem);letter-spacing:-.04em;line-height:1.05;margin:2px 0 12px}
  .vqpills{display:flex;justify-content:center;flex-wrap:wrap;gap:8px}
  .vqpill{border:0;border-radius:999px;padding:6px 12px;font:700 .8rem/1.2 var(--f-body);background:rgba(255,255,255,.18);color:#fff}
  .vqpill.dk{background:#16181c}
  .vqpill.bad{background:#fff;color:#b3261e;cursor:pointer}
  #tab-ventas #vtiles,#tab-ventas .vnewrow,#tab-ventas #sfrowb{display:none!important}
  #tab-ventas .vsrow{display:flex;gap:8px;align-items:center}
  #tab-ventas .vsrow label.f{flex:1;margin:0}
  #tab-ventas .vsbtn{display:grid;place-items:center;flex:none;width:44px;height:44px;min-height:0;padding:0;border-radius:14px}
  #tab-ventas .vsbtn svg{width:22px;height:22px}
  #tab-ventas .vqchips{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;margin:10px 0 4px}
  #tab-ventas .vqchips::-webkit-scrollbar{display:none}
  .vqchip{flex:none;display:inline-flex;align-items:center;gap:6px;border:0;border-radius:999px;padding:8px 14px;font:700 .85rem/1.2 var(--f-body);background:var(--field,#efefec);color:var(--fg);cursor:pointer}
  .vqchip svg{width:16px;height:16px}
  .vqchip.on{background:var(--fg);color:var(--surface)}
  .vqchip b{color:var(--bad,#b3261e)}
  .vqchip.on b{color:inherit}
  /* filas de dos líneas y días (vista lista) */
  #slist.v-lista .vday{display:flex;justify-content:space-between;align-items:baseline;padding:14px 2px 6px;font-size:1rem}
  #slist.v-lista .vday span{color:var(--muted);font-weight:700}
  #slist.v-lista .item.srow:has(>.vr2)>.srow-r{display:none!important}
  #slist.v-lista .vr2{display:flex;align-items:center;gap:12px;cursor:pointer;width:100%}
  .vqdot{flex:none;width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:var(--accent-soft,#dcefe3);color:var(--accent)}
  .vqdot svg{width:20px;height:20px}
  .vqdot.x{background:color-mix(in srgb,var(--bad,#b3261e) 12%,var(--surface));color:var(--bad,#b3261e)}
  .vr2 .vm{flex:1;min-width:0}
  .vr2 .l1{display:flex;justify-content:space-between;gap:10px;align-items:baseline}
  .vr2 .l1 b{font-size:1rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .vr2 .vamt{font-weight:800;white-space:nowrap}
  .vr2 .vamt.x{text-decoration:line-through;color:var(--muted)}
  .vr2 .l2{display:flex;justify-content:space-between;gap:8px;color:var(--muted);font-size:.84rem;margin-top:2px}
  .vr2 .l2>span:first-child{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .vtg{flex:none;border-radius:999px;padding:1px 9px;font-weight:800;font-size:.75rem;white-space:nowrap}
  .vtg.debe{background:color-mix(in srgb,var(--bad,#b3261e) 12%,var(--surface));color:var(--bad,#b3261e)}
  .vtg.anu{background:var(--field,#efefec);color:var(--muted)}
}
@media (max-width:1099px){#pcshare{--pc:1} 
  /* v629 · Buscador como en la maqueta (Ventas y Clientes): lupa a la izquierda, sin borde, fondo gris suave */
  #tab-ventas .vsrow label.f{position:relative;font-size:0;gap:0}
  #tab-ventas .vsrow label.f::before{content:"";position:absolute;left:14px;top:50%;width:20px;height:20px;transform:translateY(-50%);z-index:1;pointer-events:none;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa3b2' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='m16 16 4.5 4.5'/%3E%3C/svg%3E") center/20px no-repeat}
  html:root body #tab-ventas #sfq,html:root body #clistcard #csearch{font-size:1rem;padding-left:46px!important;text-align:left!important;border:0!important;background:var(--field,#efefec)!important;border-radius:14px!important;min-height:48px;box-shadow:none!important}
}
/* v629 · Detalle de la venta con aire de recibo (maqueta aprobada por Juan) */
.vsd2{display:flex;flex-direction:column;gap:12px;margin-top:10px}
.vsd2 .vsd-top{display:flex;flex-direction:column;align-items:center;text-align:center;gap:4px}
.vsd2 .vsd-top .k{color:var(--muted);font-size:.9rem}
.vsd2 .vsd-top>b{font-family:var(--f-display);font-weight:800;font-size:2.4rem;letter-spacing:-.03em;line-height:1.05}
.vsd2 .vsd-top small{color:var(--muted);font-size:.85rem}
.vsd-st{border-radius:999px;padding:4px 12px;font-weight:800;font-size:.8rem;background:var(--accent-soft,#dcefe3);color:var(--accent)}
.vsd-st.debe{background:color-mix(in srgb,var(--bad,#b3261e) 12%,var(--surface));color:var(--bad,#b3261e)}
.vsd-st.anu{background:var(--field,#efefec);color:var(--muted)}
.vsd-cli{display:flex;align-items:center;gap:12px;width:100%;padding:12px;border:0;border-radius:16px;background:var(--field,#efefec);color:var(--fg);font:inherit;text-align:left;cursor:pointer}
.vsd-cli .ava{position:static;flex:none;width:44px;height:44px}
.vsd-cli .m{flex:1;min-width:0;display:flex;flex-direction:column}
.vsd-cli .m small{color:var(--muted)}
.vsd-cli .chev{width:9px;height:9px;border:solid var(--muted);border-width:2px 2px 0 0;transform:rotate(45deg);margin-right:6px}
.vsd-acts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.vsd-acts:has(>.btn:nth-child(2):last-child){grid-template-columns:1fr 1fr}
html:root body .vsd-acts>.btn{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:72px;padding:8px 4px;border:0!important;border-radius:16px!important;background:var(--field,#efefec)!important;color:var(--fg)!important;font-weight:700;font-size:.82rem;white-space:normal;text-align:center}
html:root body .vsd-acts>.btn[data-wa]{color:#16a34a!important}
.vsd-acts>.btn svg{width:22px;height:22px}
.vsd-cta{width:100%;min-height:54px;border-radius:18px;font-size:1.02rem;font-weight:800}
.vsd-rc{background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:6px 16px}
.vsd-rc .dn-lines{background:none!important;padding:0!important;margin:0!important;border:0!important}
.vsd-rc .dn-lines .r{display:flex;justify-content:space-between;gap:10px;padding:9px 0;border-top:1px solid var(--line)}
.vsd-rc .dn-lines .r:first-child{border-top:0}
.vsd-tot,.vsd-row{display:flex;justify-content:space-between;gap:10px;padding:10px 0;border-top:1px solid var(--line)}
.vsd-tot{border-top-width:2px;font-weight:800;font-size:1.02rem}
.vsd-tot.bad{color:var(--bad,#b3261e)}
.vsd-row span{color:var(--muted)}
.vsd-row.ok b{color:var(--good,#15803d)}
@media (max-width:1099px){#pcshare{--pc:1} html:root body #slist .vsd2+*{margin-top:0}}
/* v631 · Inventario con el diseño aprobado por Juan (maqueta): número grande arriba, buscador con escáner, «⋯» y «+»,
   fichas Todos / Stock bajo / Agotados / Filtros, productos por categoría y filas de dos líneas. Celular y tablet. */
.ir2,.igrp{display:none}
@media (max-width:1099px){#pcshare{--pc:1} 
  html:root body #app[data-tab="inventario"]:not(#_x):not(#_y) header.top{border-radius:0!important;margin-bottom:0!important;padding-bottom:4px!important}
  html:root body #app[data-tab="inventario"]:not(#_x):not(#_y) header.top .ptitle{display:none!important}
  #tab-inventario #ihero2{display:block;margin:0 -16px 14px;padding:6px 20px 24px;background:var(--hdr,var(--accent));color:var(--hdr-ink,var(--accent-ink,#fff));border-radius:0 0 32px 32px;text-align:center}
  html:root[data-style="mostrador"]:not([data-theme="light"]) #tab-inventario #ihero2{background:var(--hdr,color-mix(in srgb,var(--accent) 55%,#000))}
  #ihero2 .k{opacity:.9;display:inline-flex;align-items:center;gap:6px}
  #ihero2 .vnum{font-family:var(--f-display);font-weight:800;font-size:clamp(2.2rem,11vw,3rem);letter-spacing:-.04em;line-height:1.05;margin:2px 0 12px}
  #ihero2 .ih-eye{background:none!important;border:0!important;color:var(--hdr-ink,var(--accent-ink,#fff))!important;padding:2px;min-height:0;width:auto;height:auto}
  #ihero2 .ih-eye svg{width:18px;height:18px}
  #tab-inventario #ihero2:not(:empty)~*{}
  body:not(:has(#tab-inventario [data-sub="prod"].on, #invseg [data-sub="prod"][aria-selected="true"])) #ihero2{}
  /* lo que pasó al «⋯» o al «+» */
  #tab-inventario #invquick,#tab-inventario #isummary,#tab-inventario #isortslot,#tab-inventario #listcard>h2{display:none!important}
  #tab-inventario #isbar{display:flex;flex-wrap:nowrap;align-items:center;gap:8px}
  #tab-inventario #isbar>label.f{flex:1;min-width:0;margin:0;position:relative;font-size:0;gap:0}
  #tab-inventario #isbar>label.f::before{content:"";position:absolute;left:14px;top:50%;width:20px;height:20px;transform:translateY(-50%);z-index:1;pointer-events:none;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa3b2' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='m16 16 4.5 4.5'/%3E%3C/svg%3E") center/20px no-repeat}
  html:root body #tab-inventario #isearch{font-size:1rem;padding-left:46px!important;border:0!important;background:var(--field,#efefec)!important;border-radius:14px!important;min-height:48px;box-shadow:none!important}
  #tab-inventario #isbar>.vsbtn{display:grid;place-items:center;flex:none;width:44px;height:44px;min-height:0;padding:0;border-radius:14px}
  #tab-inventario #isbar>.vsbtn svg{width:22px;height:22px}
  #tab-inventario #isbar>[data-fbtn="inv"],#tab-inventario #isbar>#ivsw{display:none!important}
  #tab-inventario #iscan{flex:none;width:44px;height:44px;min-height:0;padding:0;border-radius:14px}
  #tab-inventario #invchips{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;margin:10px 0 4px}
  #tab-inventario #invchips::-webkit-scrollbar{display:none}
  html:root body:not(:has(#invseg [data-sub="prod"].on)) #tab-inventario #invchips{}
  /* categorías y filas de dos líneas */
  #ilist .igrp{display:flex;justify-content:space-between;align-items:baseline;padding:14px 2px 6px;font-size:1rem}
  #ilist .igrp span{color:var(--muted);font-weight:700}
  #ilist .item.inv{position:relative}
  #ilist .item.inv:has(>.ir2)>*:not(.ir2):not(.row):not(.picker){display:none!important}
  /* v631 (Juan): las filas van limpias; Editar y «Más» están en la ficha grande del producto (los botones siguen en la página, ocultos) */
  html:root body #ilist .item.inv:has(>.ir2)>.row{display:none!important}
  html:root body #ilist .item.inv:has(>.ir2)>.row>.btn,html:root body #ilist .item.inv:has(>.ir2)>.row>details>summary.btn{min-height:32px!important;padding:4px 12px!important;font-size:.8rem!important;border-radius:999px!important;background:var(--field,#efefec)!important;border:0!important}
  #ilist .ir2{display:flex;align-items:center;gap:12px;width:100%;cursor:pointer}
  #ilist .ir2>.thumb,#ilist .ir2>.pth,#ilist .ir2>img,#ilist .ir2>span:first-child{flex:none}
  #ilist .ir2 .vm{flex:1;min-width:0}
  #ilist .ir2 .l1{display:flex;justify-content:space-between;gap:10px;align-items:baseline}
  #ilist .ir2 .l1 b{font-size:1rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  #ilist .ir2 .vamt{font-weight:800;white-space:nowrap}
  #ilist .ir2 .l2{display:flex;justify-content:space-between;gap:8px;color:var(--muted);font-size:.84rem;margin-top:3px}
  #ilist .ir2 .l2>span:first-child{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .vtg.ok{background:var(--accent-soft,#dcefe3);color:var(--accent)}
  .vtg.low{background:#fef3c7;color:#92400e}
  html[data-theme="dark"] .vtg.low{background:#33270f;color:#fbbf24}
  @media (prefers-color-scheme:dark){html:not([data-theme="light"]) .vtg.low{background:#33270f;color:#fbbf24}}
}
@media (max-width:1099px){#pcshare{--pc:1} 
  html[data-invsub="compras"] #tab-inventario #ihero2,html[data-invsub="tools"] #tab-inventario #ihero2,
  html[data-invsub="compras"] #tab-inventario #invchips,html[data-invsub="tools"] #tab-inventario #invchips{display:none!important}
  html:root body #tab-inventario #iscan{background:var(--field,#efefec)!important;border:0!important;color:var(--fg)!important}
  html:root body #ilist .item.inv:has(>.ir2){padding:10px 0!important;min-height:0!important}
}
@media (max-width:1099px){#pcshare{--pc:1} html:root body #tab-inventario #isbar>#imenubtn{background:var(--field,#efefec)!important;border:0!important;color:var(--fg)!important}}
@media (max-width:1099px){#pcshare{--pc:1} 
  /* v631: «Agregar producto nuevo» cerrada se esconde (la abre el «+» del buscador); si está abierta en la página, se ve */
  #tab-inventario>#pform.fold.closed{display:none!important}
  /* acciones de cada producto: en fila, pequeñas y legibles */
  html:root body #ilist .item.inv:has(>.ir2)>.row>.btn,html:root body #ilist .item.inv:has(>.ir2)>.row>details>summary.btn{display:inline-flex!important;flex-direction:row!important;align-items:center;gap:6px;width:auto!important;height:auto!important;white-space:nowrap;line-height:1.2}
  html:root body #ilist .item.inv:has(>.ir2)>.row>.btn svg{width:15px!important;height:15px!important}
  html:root body #ilist .item.inv:has(>.ir2)>.row>details>summary.btn::after{display:none!important}
}
@media (max-width:1099px){#pcshare{--pc:1} html:root body #ilist .item.inv:has(>.ir2)>.row>.btn::before,html:root body #ilist .item.inv:has(>.ir2)>.row>.btn::after{content:none!important;display:none!important}}
/* v631 · Ficha del producto en grande */
#pdbody .pdph{display:grid;place-items:center;height:220px;border-radius:24px;background:var(--field,#efefec);margin:4px 0 14px;overflow:hidden}
#pdbody .pdph .thumb{width:100%!important;height:100%!important;max-height:220px;object-fit:contain;border-radius:0!important;background:none!important;font-size:3rem}
#pdbody .pdname{margin:0;font-family:var(--f-display);font-size:1.35rem;line-height:1.2}
#pdbody .pdsub{color:var(--muted);margin:4px 0 12px}
#pdbody .cptwo{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0 0 12px}
#pdbody .cpst{background:var(--field,#efefec);border-radius:16px;padding:12px 14px}
#pdbody .cpst .k{color:var(--muted);font-size:.82rem}
#pdbody .cpst .v{font-family:var(--f-display);font-size:1.45rem;font-weight:800}
#pdbody .cpst.bad .v{color:var(--bad,#b3261e)}
#pdbody .cpst.low{background:#fef3c7}#pdbody .cpst.low .v{color:#92400e}
html[data-theme="dark"] #pdbody .cpst.low{background:#33270f}html[data-theme="dark"] #pdbody .cpst.low .v{color:#fbbf24}
#pdbody .cpacts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:12px}
#pdbody .cpacts.n2{grid-template-columns:1fr 1fr}
#pdbody .cpa{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:72px;border:0;border-radius:16px;background:var(--field,#efefec);color:var(--fg);font:700 .85rem/1.1 var(--f-body);cursor:pointer}
#pdbody .cpa svg{width:22px;height:22px}
#pdbody .cpcta{display:block;width:100%;min-height:54px;border-radius:18px;font-size:1.05rem;font-weight:800;margin-bottom:6px}
#pdbody .cpsec{margin:16px 2px 4px;font-family:var(--f-display);font-size:1.02rem}
#pdbody .cpkv{display:flex;justify-content:space-between;gap:12px;padding:10px 2px;border-top:1px solid var(--line)}
#pdbody .cpkv span{color:var(--muted)}
#pdbody .pdmore{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;margin:16px 0 4px;min-height:46px;border-radius:14px}
#pdbody .cphd{display:flex;align-items:center;gap:10px;margin:2px 0 10px}
#pdbody .cphd h2{flex:1;margin:0;font-family:var(--f-display);font-size:1.2rem}
html:root body #pdbody .cpib{width:44px;height:44px;min-height:0;padding:0;border-radius:14px;display:grid;place-items:center;background:var(--field,#efefec)!important;color:var(--fg)!important;border:0!important;font-size:inherit}
#pdbody .cpib svg{width:22px;height:22px}
#pdbody .cphd{position:relative;z-index:3;padding-top:18px}
/* v632 (Juan): en la ficha del producto la foto va más pequeña y centrada, con aire alrededor, como en la maqueta */
#pdbody .pdph{height:auto;min-height:0;padding:22px;background:var(--field,#efefec)}
html:root body #pdbody .pdph img.thumb{width:auto!important;height:auto!important;max-width:62%!important;max-height:170px!important;object-fit:contain;border-radius:18px!important;background:#fff!important;box-shadow:0 10px 24px -14px rgba(0,0,0,.35)}
html:root body #pdbody .pdph .thumb:not(img){width:96px!important;height:150px!important;border-radius:18px!important}
/* v632 (Juan: «no me gusta el recuadro gris al lado de la foto»): la foto va sola, sin cuadro gris detrás */
html:root body #pdbody .pdph:has(img){background:none!important;padding:0!important;margin:4px 0 14px}
html:root body #pdbody .pdph img.thumb{max-width:100%!important;max-height:240px!important;box-shadow:none!important;border-radius:20px!important}
/* v633 · Servicio técnico con el diseño aprobado por Juan: número grande, buscador con QR, «⋯» y «+», fichas, filas de dos líneas */
.sv2{display:none}
@media (max-width:1099px){#pcshare{--pc:1} 
  html:root body #app[data-tab="servicio"]:not(#_x):not(#_y) header.top{border-radius:0!important;margin-bottom:0!important;padding-bottom:4px!important}
  html:root body #app[data-tab="servicio"]:not(#_x):not(#_y) header.top .ptitle{display:none!important}
  #tab-servicio #svhero2{display:block;margin:0 -16px 14px;padding:6px 20px 24px;background:var(--hdr,var(--accent));color:var(--hdr-ink,var(--accent-ink,#fff));border-radius:0 0 32px 32px;text-align:center}
  html:root[data-style="mostrador"]:not([data-theme="light"]) #tab-servicio #svhero2{background:var(--hdr,color-mix(in srgb,var(--accent) 55%,#000))}
  #svhero2 .k{opacity:.9}
  #svhero2 .vnum{font-family:var(--f-display);font-weight:800;font-size:clamp(2.2rem,11vw,3rem);letter-spacing:-.04em;line-height:1.05;margin:2px 0 12px}
  #svhero2 .vqpill.dk{cursor:pointer}
  #tab-servicio #svsum,#tab-servicio>.fglbl,#tab-servicio #svordcard>h2{display:none!important}
  html:not(.sv-svdashw) #tab-servicio #svdashw,html:not(.sv-svcommw) #tab-servicio #svcommw{display:none!important}
  #tab-servicio .svsrow{display:flex!important;flex-wrap:nowrap!important;align-items:center;gap:8px}
  #tab-servicio .svsrow>label.f{flex:1;min-width:0;margin:0;position:relative}
  #tab-servicio .svsrow>label.f::before{content:"";position:absolute;left:14px;top:50%;width:20px;height:20px;transform:translateY(-50%);z-index:1;pointer-events:none;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa3b2' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='m16 16 4.5 4.5'/%3E%3C/svg%3E") center/20px no-repeat}
  html:root body #tab-servicio #svsearch{font-size:1rem;padding-left:46px!important;border:0!important;background:var(--field,#efefec)!important;border-radius:14px!important;min-height:48px;box-shadow:none!important}
  html:root body #tab-servicio .svsrow>.btn,html:root body #tab-servicio .svsrow>#svqr{display:grid;place-items:center;flex:none;width:44px;height:44px;min-height:0;padding:0;border-radius:14px}
  html:root body #tab-servicio .svsrow>#svqr,html:root body #tab-servicio .svsrow>#svmenubtn{background:var(--field,#efefec)!important;border:0!important;color:var(--fg)!important}
  #tab-servicio .svsrow>.btn svg{width:22px;height:22px}
  #tab-servicio .svtools{display:none!important}
  /* fichas Abiertas / Listas / Esperando / Atrasadas / Cerradas / Todas */
  html:root body #tab-servicio #svseg{display:flex!important;gap:8px;overflow-x:auto;scrollbar-width:none;background:none!important;padding:0!important;margin:10px 0 4px;border:0!important}
  #tab-servicio #svseg::-webkit-scrollbar{display:none}
  html:root body #tab-servicio #svseg>button{flex:none;border:0!important;border-radius:999px!important;padding:8px 14px!important;font:700 .85rem/1.2 var(--f-body)!important;background:var(--field,#efefec)!important;color:var(--fg)!important;box-shadow:none!important;min-height:0}
  html:root body #tab-servicio #svseg>button.on{background:var(--fg)!important;color:var(--surface)!important}
  #tab-servicio #svseg .segn{margin-left:5px;color:var(--bad,#b3261e);font-weight:800}
  #tab-servicio #svseg>button.on .segn{color:inherit}
  #tab-servicio #svseg .segn:empty,#tab-servicio #svseg .segn.z{display:none}
  /* filas */
  #svlist .fap-h{display:flex;justify-content:space-between;font-size:1rem;margin:14px 2px 6px}
  #svlist .item.svrow{cursor:pointer}
  #svlist .sv2{display:flex;align-items:center;gap:12px;width:100%}
  #svlist .sv2 .vm{flex:1;min-width:0}
  #svlist .sv2 .l1{display:flex;justify-content:space-between;gap:10px;align-items:baseline}
  #svlist .sv2 .l1 b{font-size:1rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  #svlist .sv2 .vamt{font-weight:800;white-space:nowrap}
  #svlist .sv2 .l2{display:flex;justify-content:space-between;gap:8px;color:var(--muted);font-size:.84rem;margin-top:3px}
  #svlist .sv2 .l2>span:first-child{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  html:root body #svlist .item.svrow:not(.svopen)>.main,html:root body #svlist .item.svrow:not(.svopen)>.stacts{display:none!important}
  html:root body #svlist .item.svrow.svopen>.main>.t{display:none}
  html:root body #svlist .item.svrow>.main{width:100%}
}
@media (max-width:1099px){#pcshare{--pc:1} 
  html:root body #tab-servicio #svseg{flex-wrap:nowrap!important}
  html:root body #tab-servicio #svseg .segn{background:none!important;padding:0!important;min-width:0!important;width:auto!important;height:auto!important;color:var(--bad,#b3261e)!important;font-size:inherit}
  html:root body #tab-servicio #svseg>button.on .segn{color:inherit!important}
  #tab-servicio>#svform.fold.closed{display:none!important}
  html:root body #svlist .item.svrow.strdy,html:root body #svlist .item.svrow.stlate{border:0!important;box-shadow:none!important;outline:0!important}
}
@media (max-width:1099px){#pcshare{--pc:1} #svlist .sv2 .svtgs{display:inline-flex;gap:4px;flex:none}}
@media (max-width:1099px){#pcshare{--pc:1} html:root body #svlist .item.svrow.svopen>.main>.s{display:block!important;white-space:normal!important}}
@media (max-width:1099px){#pcshare{--pc:1} html:root body #tab-servicio #svseg>[data-fbtn="svc"]{display:inline-flex!important;align-items:center;gap:6px;flex:none;border:0!important;border-radius:999px!important;padding:8px 14px!important;font:700 .85rem/1.2 var(--f-body)!important;background:var(--field,#efefec)!important;color:var(--fg)!important;min-height:0;width:auto;height:auto}
html:root body #tab-servicio #svseg>[data-fbtn="svc"] svg{width:16px;height:16px}}
/* v634 · Facturas con el diseño aprobado: total grande con ojo y fichas de estado arriba, buscador con lupa,
   fichas de período (Hoy, Ayer, 7 días, Este mes, Todo, Fechas) y filas de dos líneas; tocar la fila abre «Ver factura». */
.fr2{display:none}
@media (max-width:1099px){#pcshare{--pc:1} 
  html:root body #app[data-tab="facturas"]:not(#_x):not(#_y) header.top{border-radius:0!important;margin-bottom:0!important;padding-bottom:4px!important}
  html:root body #app[data-tab="facturas"]:not(#_x):not(#_y) header.top .ptitle{display:none!important}
  #tab-facturas #fhero2{display:block;margin:0 -16px 14px;padding:6px 20px 24px;background:var(--hdr,var(--accent));color:var(--hdr-ink,var(--accent-ink,#fff));border-radius:0 0 32px 32px;text-align:center}
  html:root[data-style="mostrador"]:not([data-theme="light"]) #tab-facturas #fhero2{background:var(--hdr,color-mix(in srgb,var(--accent) 55%,#000))}
  #fhero2 .k{opacity:.9;display:inline-flex;align-items:center;gap:6px}
  #fhero2 .vnum{font-family:var(--f-display);font-weight:800;font-size:clamp(2.2rem,11vw,3rem);letter-spacing:-.04em;line-height:1.05;margin:2px 0 12px}
  #fhero2 .ih-eye{background:none!important;border:0!important;color:var(--hdr-ink,var(--accent-ink,#fff))!important;padding:2px;min-height:0;width:auto;height:auto}
  #fhero2 .ih-eye svg{width:18px;height:18px}
  #fhero2 .vqpill{cursor:pointer}
  #fhero2 .vqpill.on{outline:2px solid #fff;outline-offset:1px}
  #tab-facturas .fhead,#tab-facturas #factsum,#tab-facturas .fgrp .flbl{display:none!important}
  html:not(.fact-fopen) #tab-facturas .fdates,#tab-facturas .fgrp:has(#factst){display:none!important}
  html:root body #tab-facturas #factcard{background:none!important;border:0!important;padding:0!important;box-shadow:none!important;margin-bottom:6px}
  #tab-facturas .factbar>label.f{position:relative;margin:0}
  #tab-facturas .factbar>label.f::before{content:"";position:absolute;left:14px;top:50%;width:20px;height:20px;transform:translateY(-50%);z-index:1;pointer-events:none;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa3b2' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='m16 16 4.5 4.5'/%3E%3C/svg%3E") center/20px no-repeat}
  html:root body #tab-facturas #factq{font-size:1rem;padding-left:46px!important;border:0!important;background:var(--field,#efefec)!important;border-radius:14px!important;min-height:48px;box-shadow:none!important}
  html:root body #tab-facturas #factper{display:flex!important;flex-wrap:nowrap!important;gap:8px;overflow-x:auto;scrollbar-width:none;background:none!important;padding:0!important;border:0!important;margin:10px 0 4px}
  #tab-facturas #factper::-webkit-scrollbar{display:none}
  html:root body #tab-facturas #factper>button{flex:none;border:0!important;border-radius:999px!important;padding:8px 14px!important;font:700 .85rem/1.2 var(--f-body)!important;background:var(--field,#efefec)!important;color:var(--fg)!important;box-shadow:none!important;min-height:0;display:inline-flex;align-items:center;gap:6px}
  html:root body #tab-facturas #factper>button[aria-pressed="true"]{background:var(--fg)!important;color:var(--surface)!important}
  #tab-facturas #factper>button svg{width:16px;height:16px}
  html.fact-fopen #tab-facturas #factper>[data-ffil]{background:var(--fg)!important;color:var(--surface)!important}
  /* filas */
  html:root body #factlist .item.frow{display:block;padding:12px 0!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important}
  html:root body #factlist .item.frow+.item.frow{border-top:1px solid var(--line)!important}
  html:root body #factlist .item.frow>.frtop,html:root body #factlist .item.frow>.fbtns{display:none!important}
  #factlist .fr2{display:flex;align-items:center;gap:12px}
  #factlist .fr2 .vm{flex:1;min-width:0;cursor:pointer}
  #factlist .fr2 .l1{display:flex;justify-content:space-between;gap:10px;align-items:baseline}
  #factlist .fr2 .l1 b{font-size:1rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  #factlist .fr2 .vamt{font-weight:800;white-space:nowrap}
  #factlist .fr2 .vamt.x{text-decoration:line-through;color:var(--muted)}
  #factlist .fr2 .l2{display:flex;justify-content:space-between;gap:8px;color:var(--muted);font-size:.84rem;margin-top:3px}
  #factlist .fr2 .l2>span:first-child{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  html:root body #tab-facturas #factres{background:var(--surface)!important;border-radius:24px!important;padding:4px 16px!important}
}
/* v634 · Cotizar con el diseño aprobado: cotizado vigente en grande, fichas de estado, filas de dos líneas y «+» */
.q2,#qaddbtn{display:none}
@media (max-width:1099px){#pcshare{--pc:1} 
  html:root body #app[data-tab="cotizar"]:not(#_x):not(#_y) header.top{border-radius:0!important;margin-bottom:0!important;padding-bottom:4px!important}
  html:root body #app[data-tab="cotizar"]:not(#_x):not(#_y) header.top .ptitle{display:none!important}
  #tab-cotizar #qhero2{display:block;margin:0 -16px 14px;padding:6px 20px 24px;background:var(--hdr,var(--accent));color:var(--hdr-ink,var(--accent-ink,#fff));border-radius:0 0 32px 32px;text-align:center}
  html:root[data-style="mostrador"]:not([data-theme="light"]) #tab-cotizar #qhero2{background:var(--hdr,color-mix(in srgb,var(--accent) 55%,#000))}
  #qhero2 .k{opacity:.9}
  #qhero2 .vnum{font-family:var(--f-display);font-weight:800;font-size:clamp(2.2rem,11vw,3rem);letter-spacing:-.04em;line-height:1.05;margin:2px 0 12px}
  #qhero2 .vqpill{cursor:pointer}
  #tab-cotizar>#qform.fold.closed,#tab-cotizar>.fglbl{display:none!important}
  #tab-cotizar #qlistcard{position:relative}
  html:root body #tab-cotizar #qlistcard>h2{display:flex!important;align-items:center;min-height:44px;margin:0 56px 8px 0;font-family:var(--f-display);font-size:1.15rem}
  html:root body #tab-cotizar #qlistcard>h2>.fic,html:root body #tab-cotizar #qlistcard>h2>i{display:none!important}
  #tab-cotizar #qaddbtn{display:grid;place-items:center;position:absolute;top:12px;right:14px;z-index:2;width:44px;height:44px;min-height:0;padding:0;border-radius:14px}
  #tab-cotizar #qaddbtn svg{width:22px;height:22px}
  #tab-cotizar #qsum .stcard,#tab-cotizar #qsum>:not(.stchips){display:none!important}
  html:root body #tab-cotizar #qsum .stchips{display:flex!important;flex-wrap:nowrap!important;gap:8px;overflow-x:auto;scrollbar-width:none;margin:2px 0 4px}
  #tab-cotizar #qsum .stchips::-webkit-scrollbar{display:none}
  html:root body #tab-cotizar #qsum .mchip{flex:none;border:0!important;border-radius:999px!important;padding:8px 14px!important;font:700 .85rem/1.2 var(--f-body)!important;background:var(--field,#efefec)!important;color:var(--fg)!important}
  html:root body #tab-cotizar #qsum .mchip.on{background:var(--fg)!important;color:var(--surface)!important}
  #tab-cotizar #qsum .mchip b{color:var(--bad,#b3261e);margin-left:2px}
  #tab-cotizar #qsum .mchip.on b{color:inherit}
  #tab-cotizar #qlistcard .vsw{display:none!important}
  #qlist .q2{display:flex;align-items:center;gap:12px;width:100%;cursor:pointer}
  #qlist .q2 .vm{flex:1;min-width:0}
  #qlist .q2 .l1{display:flex;justify-content:space-between;gap:10px;align-items:baseline}
  #qlist .q2 .l1 b{font-size:1rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  #qlist .q2 .vamt{font-weight:800;white-space:nowrap}
  #qlist .q2 .l2{display:flex;justify-content:space-between;gap:8px;color:var(--muted);font-size:.84rem;margin-top:3px}
  html:root body #qlist .item.qrow:not(.qopen)>*:not(.q2){display:none!important}
  html:root body #qlist .item.qrow.qopen>.row:first-of-type{display:none!important}
  html:root body #qlist .item.qrow{border:0!important;box-shadow:none!important;background:none!important;border-radius:0!important;padding:12px 0!important}
  html:root body #qlist .item.qrow+.item.qrow{border-top:1px solid var(--line)!important}
}
/* v634 · Caja con el diseño aprobado: arriba el efectivo en grande con vendido, cobrado y gastos; lo demás igual */
@media (max-width:1099px){#pcshare{--pc:1} 
  html:root body #app[data-tab="caja"]:not(#_x):not(#_y) header.top{border-radius:0!important;margin-bottom:0!important;padding-bottom:4px!important}
  html:root body #app[data-tab="caja"]:not(#_x):not(#_y) header.top .ptitle{display:none!important}
  #tab-caja #chero2{display:block;margin:0 -16px 14px;padding:6px 20px 24px;background:var(--hdr,var(--accent));color:var(--hdr-ink,var(--accent-ink,#fff));border-radius:0 0 32px 32px;text-align:center}
  html:root[data-style="mostrador"]:not([data-theme="light"]) #tab-caja #chero2{background:var(--hdr,color-mix(in srgb,var(--accent) 55%,#000))}
  #chero2 .k{opacity:.9}
  #chero2 .vnum{font-family:var(--f-display);font-weight:800;font-size:clamp(2.2rem,11vw,3rem);letter-spacing:-.04em;line-height:1.05;margin:2px 0 12px}
  #tab-caja #csum>.cj-tot{display:none!important}
}
/* v634 (Juan, opción 2): el nombre de la pantalla va pequeño arriba del número grande */
@media (max-width:1099px){#pcshare{--pc:1} 
  #vhero2::before,#ihero2::before,#svhero2::before,#fhero2::before,#qhero2::before,#chero2::before{display:block;font-family:var(--f-display);font-weight:800;font-size:1.05rem;letter-spacing:-.01em;color:var(--hdr-ink,var(--accent-ink,#fff));margin:2px 0 6px}
  #vhero2::before{content:"Ventas"}#ihero2::before{content:"Inventario"}#svhero2::before{content:"Servicio técnico"}
  #fhero2::before{content:"Facturas"}#qhero2::before{content:"Cotizaciones"}#chero2::before{content:"Caja"}
  #vhero2 .k,#ihero2 .k,#svhero2 .k,#fhero2 .k,#qhero2 .k,#chero2 .k{opacity:.75;font-size:.85rem}
}
/* v635 · Crédito con el diseño aprobado: fichas grises, buscador con lupa y «⋯» (Recordar a varios, filtros, ordenar, exportar) */
@media (max-width:1099px){#pcshare{--pc:1} 
  html:root body #fstchips{display:flex!important;flex-wrap:nowrap!important;gap:8px;overflow-x:auto;scrollbar-width:none;margin:12px 0 10px}
  #fstchips::-webkit-scrollbar{display:none}
  html:root body #fstchips .mchip{flex:none;border:0!important;border-radius:999px!important;padding:8px 14px!important;font:700 .85rem/1.2 var(--f-body)!important;background:var(--field,#efefec)!important;color:var(--fg)!important;box-shadow:none!important}
  html:root body #fstchips .mchip.on{background:var(--fg)!important;color:var(--surface)!important}
  #fstchips .mchip b{color:var(--bad,#b3261e);margin-left:2px}
  #fstchips .mchip.on b{color:inherit}
  #fcredcard>.hint:first-of-type{display:none}
  #fcredcard .fsrow{display:flex;gap:8px;align-items:center}
  #fcredcard .fsrow>label.f{flex:1;min-width:0;margin:0;position:relative;font-size:0;gap:0}
  #fcredcard .fsrow>label.f::before{content:"";position:absolute;left:14px;top:50%;width:20px;height:20px;transform:translateY(-50%);z-index:1;pointer-events:none;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa3b2' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='m16 16 4.5 4.5'/%3E%3C/svg%3E") center/20px no-repeat}
  html:root body #fcredcard #fsearch{font-size:1rem;padding-left:46px!important;border:0!important;background:var(--field,#efefec)!important;border-radius:14px!important;min-height:48px;box-shadow:none!important}
  html:root body #fcredcard #fmenubtn{display:grid;place-items:center;flex:none;width:44px;height:44px;min-height:0;padding:0;border-radius:14px;background:var(--field,#efefec)!important;border:0!important;color:var(--fg)!important}
  #fcredcard #fmenubtn svg{width:22px;height:22px}
  html:not(.fia-fopen) #fcredcard #ffdet,#fcredcard .row:has(>#fmass),#fcredcard #flist>.msort{display:none!important}
}
/* v635 · filas limpias: los botones aparecen al abrir la fila o la tarjeta */
@media (max-width:1099px){#pcshare{--pc:1} 
  #flist .trow.fia{cursor:pointer}
  #flist .trow.fia:not(.fopen) .fi-acts,#flist .trow.fia:not(.fopen) .fi-pbtn,#flist .trow.fia:not(.fopen) .fi-prod{display:none!important}
  #flist .trow.fia.fopen{background:var(--field,#f4f4f1);border-radius:16px;padding:12px!important;margin:6px 0}
  #faplist .apcard{cursor:pointer}
  #faplist .apcard:not(.apo) .apx{display:none!important}
  #faplist .apcard.apo .apx{display:flex;flex-direction:column;gap:8px;margin-top:6px}
}
@media (max-width:1099px){#pcshare{--pc:1} 
  html:root body #fstchips[hidden],html:root body #fiapane .fcred[hidden] #fstchips{display:none!important}
  #faplist .apcard>.row:has(>b>.spi){flex-direction:column!important;align-items:flex-start!important;gap:2px;padding-right:64px!important}
  #faplist .apcard>.row:has(>b>.spi)>.hint{font-size:.85rem}
}
/* v636 · Reportes con el diseño aprobado (maqueta disenos/v636-reportes): número grande arriba según el tema, fechas en fichas
   con «⋯», temas en una barra gris y el tema nuevo Dinero. Solo celular y tablet; el computador conserva su diseño. */
.rx-mh,.rx-morebtn{display:none}
.rx-mr .rx-mi{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;flex:none;background:color-mix(in srgb,var(--accent) 14%,var(--surface));color:var(--accent)}
.rx-mr .rx-mi.out{background:color-mix(in srgb,var(--bad) 12%,var(--surface));color:var(--bad)}
.rx-mr .rx-mi.n{background:var(--field);color:var(--fg)}
.rx-mr .rx-mi svg{width:20px;height:20px}
.rx-mr b.num.bad,.rx-mtot b.bad{color:var(--bad)}
.rx-mtot{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding-top:12px;border-top:2px solid var(--line);font-family:var(--f-display);font-weight:800;font-size:1.1rem}
.rx-note{background:var(--field);border-radius:14px;padding:10px 12px;color:var(--muted);font-size:.82rem}
.rx-tri b.ok{color:var(--ok)}
.rx-tri.rx-two{grid-template-columns:repeat(2,minmax(0,1fr))}
.rx-tri small{white-space:normal}
@media (max-width:1099px){#pcshare{--pc:1} 
  html:root body #app[data-tab="reportes"]:not(#_x):not(#_y) header.top{border-radius:0!important;margin-bottom:0!important;padding-bottom:4px!important}
  html:root body #app[data-tab="reportes"]:not(#_x):not(#_y) header.top .ptitle{display:none!important}
  #tab-reportes #rphero2{display:block;margin:0 -16px 14px;padding:6px 20px 24px;background:var(--hdr,var(--accent));color:var(--hdr-ink,var(--accent-ink,#fff));border-radius:0 0 32px 32px;text-align:center}
  html:root[data-style="mostrador"]:not([data-theme="light"]) #tab-reportes #rphero2{background:var(--hdr,color-mix(in srgb,var(--accent) 55%,#000))}
  #rphero2:empty{display:none!important}
  #rphero2::before{content:"Reportes";display:block;font-family:var(--f-display);font-weight:800;font-size:1.05rem;letter-spacing:-.01em;color:var(--hdr-ink,var(--accent-ink,#fff));margin:2px 0 6px}
  #rphero2 .k{opacity:.75;font-size:.85rem}
  #rphero2 .vnum{font-family:var(--f-display);font-weight:800;font-size:clamp(2.2rem,11vw,3rem);letter-spacing:-.04em;line-height:1.05;margin:2px 0 12px;white-space:nowrap}
  /* orden: fechas, Hoy toca, temas, contenido */
  html:root body #tab-reportes .rp.rx{display:flex;flex-direction:column}
  html:root body #tab-reportes .rx-grid,html:root body #tab-reportes .rx-main{display:contents}
  html:root body #tab-reportes .r-head{display:none!important}
  #tab-reportes .rx-perrow{order:1;display:flex;align-items:center;gap:8px}
  #tab-reportes .rx-ctl{order:2;margin:6px 4px 0}
  #tab-reportes .rx-ctl h3{display:none}
  #tab-reportes #rprange,#tab-reportes #rprerr,#tab-reportes #rpfilbox{order:3}
  #tab-reportes .rx-todo{order:4;margin-top:14px}
  #tab-reportes #rptabs{order:5}
  #tab-reportes #rbody{order:6}
  html:root body #tab-reportes .rx-perrow .r-chips{flex:1;min-width:0;margin:0;padding:4px 0;gap:8px;-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 20px),transparent 100%);mask-image:linear-gradient(90deg,#000 calc(100% - 20px),transparent 100%)}
  html:root body #tab-reportes .r-chip{flex:none;border:0!important;background:var(--field,#efefec)!important;color:var(--fg)!important;border-radius:999px!important;padding:8px 14px!important;min-height:0;font:700 .85rem/1.2 var(--f-body)!important;box-shadow:none!important}
  html:root body #tab-reportes .r-chip.on{background:var(--fg)!important;color:var(--surface)!important}
  #tab-reportes .rx-morebtn{display:grid;place-items:center;position:relative;flex:none;width:44px;height:44px;border:0;border-radius:14px;background:var(--field,#efefec);color:var(--fg);cursor:pointer}
  #tab-reportes .rx-morebtn svg{width:22px;height:22px}
  #tab-reportes .rx-morebtn .dot{position:absolute;top:8px;right:8px;width:8px;height:8px;border-radius:50%;background:var(--accent)}
  #tab-reportes .rx-morebtn .dot[hidden]{display:none}
  /* temas en una barra gris; el escogido en blanco */
  html:root body #tab-reportes .rx-tabs:not(#_x){display:flex;gap:4px;background:var(--field,#efefec);border-radius:16px;padding:4px;margin:16px 0 4px;overflow-x:auto;scrollbar-width:none}
  #tab-reportes .rx-tabs::-webkit-scrollbar{display:none}
  html:root body #tab-reportes .rx-tabs .rx-tab:not(#_x){flex:1 0 auto;align-items:center;justify-content:center;border:0;border-radius:12px;padding:9px 10px;background:transparent;color:var(--muted);box-shadow:none}
  html:root body #tab-reportes .rx-tabs .rx-tab:not(#_x) .l{font-size:.82rem;font-weight:700;color:inherit;gap:0}
  html:root body #tab-reportes .rx-tabs .rx-tab:not(#_x) .l svg,html:root body #tab-reportes .rx-tabs .rx-tab:not(#_x) .n{display:none}
  html:root body #tab-reportes .rx-tabs .rx-tab[aria-selected="true"]:not(#_x){background:var(--surface);color:var(--fg)}
  /* lo que ya está en el bloque de arriba no se repite */
  #tab-reportes .rx-dsk{display:none!important}
  #tab-reportes .rx-dup>.rx-mh{display:block}
  #tab-reportes .rx-dup>.rx-mh+.hint,#tab-reportes .rx-dup>.rx-big,#tab-reportes .rx-dup>.rx-dl{display:none!important}
  #tab-reportes .rx-dup>.rx-kv{display:grid;grid-template-columns:repeat(auto-fit,minmax(96px,1fr));gap:8px}
  #tab-reportes .rx-dup>.rx-kv>span{display:flex;flex-direction:column;gap:2px;background:var(--field,#efefec);border-radius:14px;padding:10px 12px;font-size:.76rem;line-height:1.25}
  #tab-reportes .rx-dup>.rx-kv>span b{font-family:var(--f-display);font-weight:800;font-size:1.02rem;letter-spacing:-.02em;white-space:nowrap}
  #tab-reportes .rx-dup>.rx-kv>span b small{display:block;font-size:.72rem}
}
/* v639 · Detalle de la orden de servicio con el diseño aprobado (ventana en celular y tablet) */
#svdbody .cphd{display:flex;align-items:center;gap:10px;margin:0 0 6px}
#svdbody .cphd h2{flex:1;margin:0;font-family:var(--f-display);font-size:1.2rem}
#svdbody .cpib{width:44px;height:44px;min-height:0;padding:0;display:grid;place-items:center;border:0!important;border-radius:14px!important;background:var(--field,#efefec)!important;color:var(--fg)!important;box-shadow:none!important}
#svdbody .cpib svg{width:22px;height:22px}
#svdbody .svd-dev{margin:8px 0 2px;font-family:var(--f-display);font-size:1.55rem;font-weight:800;letter-spacing:-.02em;line-height:1.15}
#svdbody .svd-sub{color:var(--muted);font-size:.92rem}
#svdbody .svd-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
#svdbody .svd-steps{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;margin:14px 0 14px}
#svdbody .svd-steps>div{display:flex;flex-direction:column;gap:6px;min-width:0}
#svdbody .svd-steps i{display:block;height:6px;border-radius:3px;background:var(--field,#efefec)}
#svdbody .svd-steps .on i{background:var(--accent)}
#svdbody .svd-steps span{font-size:.72rem;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center}
#svdbody .svd-steps .cur span{color:var(--fg);font-weight:700}
#svdbody .svd-cancel{margin:12px 0;padding:10px 12px;border-radius:14px;background:color-mix(in srgb,var(--bad,#b3261e) 12%,var(--surface));color:var(--bad,#b3261e);font-weight:700}
#svdbody .vsd-cli{display:flex;align-items:center;gap:12px;width:100%;margin:0 0 12px;padding:12px;border:0;border-radius:16px;background:var(--field,#efefec);color:var(--fg);text-align:left;font:inherit;cursor:pointer}
#svdbody .vsd-cli .ava{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;flex:none;font-weight:800;background:color-mix(in srgb,var(--accent) 16%,var(--surface));color:var(--accent)}
#svdbody .vsd-cli .m{flex:1;min-width:0;display:flex;flex-direction:column}
#svdbody .vsd-cli .m small{color:var(--muted)}
#svdbody .vsd-cli .svd-chev{width:20px;height:20px;flex:none;color:var(--muted)}
#svdbody{padding-top:22px} /* la rayita de arrastre (30 px) no tapa «‹» ni «⋯» */
#svdbody .cptwo{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0 0 12px}
#svdbody .cpst{background:var(--field,#efefec);border-radius:16px;padding:12px 14px;min-width:0}
#svdbody .cpst .k{color:var(--muted);font-size:.82rem}
#svdbody .cpst .v{font-family:var(--f-display);font-size:1.45rem;font-weight:800;letter-spacing:-.02em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#svdbody .cpst.bad{background:color-mix(in srgb,var(--bad,#b3261e) 11%,var(--surface))}
#svdbody .cpst.bad .v{color:var(--bad,#b3261e)}
#svdbody .cpst.ok .v{color:var(--good,#15803d)}
#svdbody .cpacts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:12px}
#svdbody .cpacts.n2{grid-template-columns:repeat(2,minmax(0,1fr))}
#svdbody .cpacts.n1{grid-template-columns:1fr}
#svdbody .cpa{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:72px;border:0;border-radius:16px;background:var(--field,#efefec);color:var(--fg);font:700 .88rem/1.1 var(--f-body);text-decoration:none;cursor:pointer}
#svdbody .cpa svg{width:22px;height:22px}
#svdbody .cpa.wa{color:#16a34a}
#svdbody .cpcta{display:block;width:100%;min-height:56px;border-radius:18px;font-size:1.05rem;font-weight:800;margin-bottom:6px}
#svdbody .cpsec{margin:18px 2px 4px;font-family:var(--f-display);font-size:1.05rem}
#svdbody .cpkv{display:flex;justify-content:space-between;gap:12px;padding:10px 2px;border-top:1px solid var(--line)}
#svdbody .cpkv span{color:var(--muted)}
#svdbody .cpkv b{text-align:right;overflow-wrap:anywhere}
#svdbody .svd-info .s{color:var(--muted);font-size:.9rem;padding:4px 2px}
#svdbody .svd-lock{margin-top:12px}
#svdbody .svd-appr{align-items:center;flex-wrap:wrap}
#svdbody .svd-form .btn,#svdbody .svwork .btn{border:0!important;background:var(--field,#efefec)!important;color:var(--fg)!important;box-shadow:none!important}
#svdbody .svd-form .btn.primary{background:var(--accent)!important;color:var(--accent-ink,#fff)!important}
#svdbody .svwork{margin-top:10px}
#svdbody .svwork .r{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:8px 2px;border-top:1px solid var(--line)}
#svdbody .svd-del{align-items:center;margin-top:14px;padding:12px;border-radius:14px;background:color-mix(in srgb,var(--bad,#b3261e) 10%,var(--surface))}
.optit.bad i{background:color-mix(in srgb,var(--bad,#b3261e) 12%,var(--surface));color:var(--bad,#b3261e)}
.optit.bad b{color:var(--bad,#b3261e)} /* v639: opciones que borran o cancelan, en rojo */
/* v640 · Caja con el diseño aprobado (maqueta disenos/v640-caja). Solo celular y tablet; el computador sigue igual. */
.cjtop,.cjclosef>h2,.cjmhint,.cjdebe,.cjmchips,.cjmi,.cjmall,.cjcnt{display:none}
.cjclosef>h2{margin:0}
@media (max-width:1099px){#pcshare{--pc:1} 
  #tab-caja.cjv .cjtop{display:block;margin:0 0 4px}
  .cjacts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .cjacts.n2{grid-template-columns:repeat(2,minmax(0,1fr))}
  .cja{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:92px;padding:12px 6px;border:0;border-radius:18px;background:var(--surface);color:var(--fg);font:700 .85rem/1.15 var(--f-body);text-align:center;cursor:pointer}
  .cja svg{width:42px;height:42px;padding:10px;border-radius:14px;background:color-mix(in srgb,var(--accent) 14%,var(--surface));color:var(--accent)}
  .cja.p{background:var(--accent);color:var(--accent-ink,#fff)}
  .cja.p svg{background:rgba(255,255,255,.2);color:#fff}
  html:root[data-style="mostrador"]:not([data-theme="light"]) .cja.p{background:color-mix(in srgb,var(--accent) 55%,#000)}
  .cjdays{display:flex;align-items:center;gap:8px;margin-top:14px}
  .cjchips{display:flex;gap:8px;flex:1;min-width:0;overflow-x:auto;scrollbar-width:none}
  .cjchips::-webkit-scrollbar{display:none}
  html:root body .cjdays .cjmore{display:grid;place-items:center;flex:none;width:44px;height:44px;min-height:0;padding:0;border-radius:14px;background:var(--field,#efefec)!important;border:0!important;color:var(--fg)!important;box-shadow:none!important}
  .cjdays .cjmore svg{width:22px;height:22px}
  .cjsub{color:var(--muted);font-size:.82rem;margin:8px 4px 2px}
  /* lo que pasó a los botones y a «⋯» */
  #tab-caja.cjv>.fglbl,#tab-caja.cjv>#gcard,#tab-caja.cjv>#mvcard,#tab-caja.cjv>#ptcard,#tab-caja.cjv>#mcard,#tab-caja.cjv>#chistcard{display:none!important}
  #tab-caja.cjv #closecard .cjclosef,#tab-caja.cjv #closecard label.f:has(>#cday),#tab-caja.cjv #cabolist,#tab-caja.cjv #csuplist{display:none!important}
  #tab-caja.cjv.cj-pick #closecard label.f:has(>#cday){display:flex!important}
  /* resumen del día */
  html:root body #tab-caja.cjv #closecard>h2,html:root body #tab-caja.cjv #trcard>h2,html:root body #tab-caja.cjv #cjmov>h2{pointer-events:none}
  html:root body #tab-caja.cjv #closecard>h2::after,html:root body #tab-caja.cjv #trcard>h2::after,html:root body #tab-caja.cjv #cjmov>h2::after{display:none!important}
  html:root body #tab-caja.cjv #closecard>h2>.fic,html:root body #tab-caja.cjv #trcard>h2>.fic,html:root body #tab-caja.cjv #cjmov>h2>.fic{display:none!important}
  html:root body #tab-caja.cjv>.card:not(#_x){margin-top:12px!important;border-radius:24px!important;border:0!important;box-shadow:none!important}
  #tab-caja.cjv>#trcard.cj-trnone{display:none!important}
  html:root body #tab-caja.cjv #csum{display:flex;flex-direction:column}
  html:root body #tab-caja.cjv #csum>.cj-rows{order:1}
  html:root body #tab-caja.cjv #csum>.cj-tot.cj-tot{display:flex!important;order:2;flex-direction:row;justify-content:space-between;align-items:baseline;gap:12px;margin:6px 0 0;padding:14px 2px 2px;border-top:2px solid var(--line);border-radius:0;background:none!important;box-shadow:none!important;color:var(--fg)!important}
  html:root body #tab-caja.cjv #csum>.cj-tot::after{display:none}
  html:root body #tab-caja.cjv #csum>.cj-tot>span{font-family:var(--f-display);font-weight:800;font-size:1.05rem!important;color:var(--fg)!important}
  html:root body #tab-caja.cjv #csum>.cj-tot>b{font-size:1.15rem!important;color:var(--fg)!important}
  /* transferencias: cuántas faltan */
  .cjv #trcard>h2 .cjcnt:not([hidden]){display:inline-block;margin-left:8px;border-radius:999px;padding:1px 9px;font:800 .75rem/1.5 var(--f-body);background:color-mix(in srgb,#f2b862 30%,var(--surface));color:#8a5a00;vertical-align:2px}
  /* movimientos del día: fichas y filas con ícono; los filtros completos salen con «Movimientos de todo el mes» */
  #tab-caja.cjv:not(.cj-mfil) #cjmov>.hint,#tab-caja.cjv:not(.cj-mfil) #cjmov #cjmseg,#tab-caja.cjv:not(.cj-mfil) #cjmov>.row,#tab-caja.cjv:not(.cj-mfil) #cjmov>label.f,#tab-caja.cjv:not(.cj-mfil) #cjmov #cjminfo,#tab-caja.cjv #cjmov #cjmexp{display:none!important}
  .cjv #cjmov .cjmchips{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;margin:2px 0 4px}
  .cjv #cjmov .cjmchips::-webkit-scrollbar{display:none}
  .cjv #cjmlist .item.cjmrow{display:flex;align-items:center;gap:12px;padding:11px 0!important;border:0!important;border-top:1px solid var(--line)!important;border-radius:0!important;background:none!important;box-shadow:none!important}
  .cjv #cjmlist .item.cjmrow:first-child{border-top:0!important}
  .cjv #cjmlist .cjmi{display:grid;place-items:center;flex:none;width:40px;height:40px;border-radius:12px;background:color-mix(in srgb,var(--accent) 14%,var(--surface));color:var(--accent)}
  .cjv #cjmlist .cjmi.out{background:color-mix(in srgb,var(--bad,#b3261e) 12%,var(--surface));color:var(--bad,#b3261e)}
  .cjv #cjmlist .cjmi svg{width:20px;height:20px}
  .cjv #cjmlist .cjmrow .main{flex:1;min-width:0}
  .cjv #cjmlist .cjmrow .main .t{font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .cjv #cjmlist .cjmrow>.num{white-space:nowrap;font-weight:800!important}
  .cjv #cjmlist .cjmall{display:block;width:100%;margin-top:10px;border:0!important;border-radius:16px!important;background:var(--field,#efefec)!important;color:var(--fg)!important;box-shadow:none!important;min-height:48px;font-weight:800}
  /* ventana «Cerrar caja» */
  .sheetdlg .cjclosef{display:block}
  .sheetdlg .cjclosef>h2{display:none}
  .sheetdlg .cjclosef .cjmhint{display:block;margin:0 2px 10px}
  .sheetdlg .cjclosef .cjdebe{display:flex;justify-content:space-between;align-items:baseline;padding:14px 16px;border-radius:16px;background:var(--field,#efefec);margin-bottom:6px}
  .sheetdlg .cjclosef .cjdebe span{color:var(--muted);font-weight:700}
  .sheetdlg .cjclosef .cjdebe b{font-family:var(--f-display);font-weight:800;font-size:1.15rem}
  .sheetdlg .cjclosef #ccount{font-family:var(--f-display);font-size:1.7rem!important;font-weight:800;text-align:center;min-height:64px}
  .sheetdlg .cjclosef #cdiff .cchip{display:block;text-align:center;padding:12px;border-radius:14px;font-weight:700}
  .sheetdlg .cjclosef>label.f,.sheetdlg .cjclosef>#cother{margin-top:12px}
  .sheetdlg .cjclosef #cclose{display:block;width:100%;min-height:56px;border-radius:18px!important;font-size:1.05rem;font-weight:800;margin-top:14px}
}
/* v641 · Inicio con el diseño aprobado (maqueta disenos/v641-inicio-ajustes). Solo celular y tablet; el computador sigue igual. */
.vbanners,.ilall,.ilm,.iltg{display:none}
@media (max-width:1099px){#pcshare{--pc:1} 
  html:root body .vchip.owe{border:0;background:#fff;color:var(--bad,#b3261e);font:inherit;font-weight:800;font-size:.8125rem;cursor:pointer}
  /* botones rápidos: cada uno en su tarjeta, «Vender» en verde */
  html:root body #tab-inicio #vacts.vacts2:not(#_x){display:grid!important;grid-template-columns:repeat(var(--n,4),minmax(0,1fr));gap:8px;margin:14px 0 0!important;padding:0!important;background:none!important;box-shadow:none!important;border:0!important;border-radius:0!important}
  html:root body #tab-inicio #vacts.vacts2 .vact:not(#_x){width:auto;min-height:92px;justify-content:center;gap:6px;padding:12px 4px;border:0!important;border-radius:18px;background:var(--surface);box-shadow:none!important}
  html:root body #tab-inicio #vacts.vacts2 .vact:not(#_x)::before,html:root body #tab-inicio #vacts.vacts2 .vact:not(#_x)::after{display:none!important}
  html:root body #tab-inicio #vacts.vacts2 .vact i{width:42px;height:42px;border-radius:14px;background:color-mix(in srgb,var(--accent) 14%,var(--surface))!important;box-shadow:none!important}
  html:root body #tab-inicio #vacts.vacts2 .vact i svg{width:22px;height:22px;color:var(--accent)!important}
  html:root body #tab-inicio #vacts.vacts2 .vact span{font-size:.85rem;font-weight:700;color:var(--fg)}
  html:root body #tab-inicio #vacts.vacts2 .vact.main:not(#_x){background:var(--accent)}
  html:root body #tab-inicio #vacts.vacts2 .vact.main i{background:rgba(255,255,255,.2)!important}
  html:root body #tab-inicio #vacts.vacts2 .vact.main i svg{color:#fff!important}
  html:root body #tab-inicio #vacts.vacts2 .vact.main span{color:#fff}
  html:root[data-style="mostrador"]:not([data-theme="light"]) body #tab-inicio #vacts.vacts2 .vact.main:not(#_x){background:color-mix(in srgb,var(--accent) 55%,#000)}
  /* «Hoy toca» en lista */
  #vtoca .vtlh{display:flex;justify-content:space-between;align-items:baseline;margin:22px 4px 8px}
  html:root body #vtoca .vtlh h2{margin:0!important}
  #vtoca .vtlh span{color:var(--muted);font-size:.85rem}
  #vtoca .vtl{background:var(--surface);border-radius:24px;padding:4px 16px}
  #vtoca .vtlr{display:flex;align-items:center;gap:12px;padding:12px 0;border-top:1px solid var(--line)}
  #vtoca .vtlr:first-child{border-top:0}
  #vtoca .vtlck{flex:none;width:28px;height:28px;border-radius:50%;border:2px solid var(--line);background:none;display:grid;place-items:center;padding:0;cursor:pointer;color:transparent}
  #vtoca .vtlck svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
  #vtoca .vtlr.done .vtlck{background:var(--accent);border-color:var(--accent);color:var(--accent-ink,#fff)}
  #vtoca .vtlr.done .vtlm b{text-decoration:line-through;color:var(--muted)}
  #vtoca .vtlm{flex:1;min-width:0}
  #vtoca .vtlm b{display:block;font-weight:700}
  #vtoca .vtlm span{display:block;color:var(--muted);font-size:.84rem}
  #vtoca .vtltg{font-style:normal;display:inline-block;margin-right:6px;border-radius:999px;padding:1px 8px;font-weight:800;font-size:.72rem}
  #vtoca .vtltg.bad{background:color-mix(in srgb,var(--bad,#b3261e) 12%,var(--surface));color:var(--bad,#b3261e)}
  #vtoca .vtltg.warn{background:color-mix(in srgb,#f2b862 30%,var(--surface));color:#8a5a00}
  html[data-theme="dark"] #vtoca .vtltg.warn{color:#f5b454}
  #vtoca .vtlbtn{flex:none;display:inline-flex;align-items:center;gap:6px;border:0;border-radius:12px;padding:9px 14px;background:var(--field,#efefec);color:var(--fg);font:800 .82rem/1 var(--f-body);text-decoration:none;cursor:pointer}
  #vtoca .vtlbtn.wa{background:var(--accent);color:var(--accent-ink,#fff)}
  #vtoca .vtlbtn svg{width:16px;height:16px}
  /* últimas ventas: cliente arriba y «Debe» en rojo */
  #ilastcard .ild{display:none}
  #ilastcard .ilm{display:inline}
  #ilastcard .ilv{text-align:right;flex:none}
  #ilastcard .iltg{display:inline-block;margin-top:3px;border-radius:999px;padding:1px 8px;font-weight:800;font-size:.72rem;background:color-mix(in srgb,var(--bad,#b3261e) 12%,var(--surface));color:var(--bad,#b3261e)}
  html:root body #ilastcard>h2{display:flex;justify-content:space-between;align-items:baseline}
  #ilastcard .ilall{display:inline;border:0;background:none;padding:0;color:var(--accent);font:700 .88rem/1 var(--f-body);cursor:pointer}
  /* franjas de abajo */
  #tab-inicio>#iseccard,#tab-inicio>#iguide{display:none!important}
  #tab-inicio>.vbanners:not([hidden]){display:grid;gap:10px;margin-top:14px;order:3}
  .vbn{display:flex;align-items:center;gap:12px;width:100%;border:0;border-radius:20px;padding:12px 14px;background:var(--surface);color:var(--fg);font:inherit;text-align:left;cursor:pointer}
  .vbni{flex:none;width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:color-mix(in srgb,var(--accent) 14%,var(--surface));color:var(--accent)}
  .vbni svg{width:20px;height:20px}
  .vbnm{flex:1;min-width:0}
  .vbnm b{display:block;font-weight:800}
  .vbnm small{display:block;color:var(--muted);font-size:.82rem}
  .vbnb{flex:none;border-radius:12px;padding:9px 14px;background:var(--accent);color:var(--accent-ink,#fff);font-weight:800;font-size:.85rem}
  .vbnr{flex:none;width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(var(--accent) var(--p),var(--field,#efefec) 0);position:relative}
  .vbnr::before{content:"";position:absolute;inset:5px;border-radius:50%;background:var(--surface)}
  .vbnr i{position:relative;font-style:normal;font-weight:800;font-size:.75rem}
  .vbnc{flex:none;width:20px;height:20px;fill:none;stroke:var(--muted);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
}
/* v641 · Ajustes con el diseño aprobado: bloque de color con la tarjeta del negocio; sin la guía (ya está en Inicio); filas con «›». Solo celular y tablet. */
@media (max-width:1099px){
  html:root:not(.aj-insec) body #app[data-tab="ajustes"]:not(#_x):not(#_y) header.top{border-radius:0!important;margin-bottom:0!important;padding-bottom:4px!important}
  #tab-ajustes>#ajhero2[hidden]{display:none!important}
  html:root:not(.aj-insec) body #app[data-tab="ajustes"]:not(#_x):not(#_y) header.top .ptitle{display:none!important}
  #tab-ajustes>#ajhero2{display:block;margin:0 -16px 14px;padding:6px 20px 20px;background:var(--hdr,var(--accent));color:var(--hdr-ink,var(--accent-ink,#fff));border-radius:0 0 32px 32px;text-align:center}
  html:root[data-style="mostrador"]:not([data-theme="light"]) #tab-ajustes>#ajhero2{background:var(--hdr,color-mix(in srgb,var(--accent) 55%,#000))}
  #ajhero2::before{content:"Ajustes";display:block;font-family:var(--f-display);font-weight:800;font-size:1.05rem;letter-spacing:-.01em;color:var(--hdr-ink,var(--accent-ink,#fff));margin:2px 0 12px}
  .ajbiz{display:flex;align-items:center;gap:14px;text-align:left;background:rgba(255,255,255,.14);border-radius:20px;padding:14px}
  .ajblogo{width:56px;height:56px;border-radius:16px;flex:none;object-fit:cover;background:#fff}
  .ajblogo.ini{display:grid;place-items:center;color:#111;font-weight:800;font-size:1.25rem}
  .ajbm{flex:1;min-width:0}
  .ajbm b{display:block;font-family:var(--f-display);font-size:1.15rem;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .ajbm small{display:block;opacity:.85;font-size:.85rem}
  .ajbpl{flex:none;background:#16181c;color:#fff;border-radius:999px;padding:5px 12px;font-weight:800;font-size:.78rem}
  html:root body #tab-ajustes #ajid,html:root body #tab-ajustes #ajfirst{display:none!important}
  html:root body #tab-ajustes .ajhub .ajrow:not(.ajtog) .ajchev{display:block!important;font-size:1.35rem;color:var(--muted);margin-left:4px}
}
@media (min-width:1100px){#tab-ajustes>#ajhero2{display:none}}
/* v642 · Inventario → Compras con el diseño aprobado. Solo celular y tablet; el computador sigue igual. */
#cphero2,.cpview{display:none}
@media (max-width:1099px){#pcshare{--pc:1} 
  html:root body #tab-inventario.cpv>#cphero2:not([hidden]){display:block;margin:0 -16px 14px;padding:6px 20px 24px;background:var(--hdr,var(--accent));color:var(--hdr-ink,var(--accent-ink,#fff));border-radius:0 0 32px 32px;text-align:center}
  html:root[data-style="mostrador"]:not([data-theme="light"]) #tab-inventario.cpv>#cphero2{background:var(--hdr,color-mix(in srgb,var(--accent) 55%,#000))}
  #cphero2::before{content:attr(data-t);display:block;font-family:var(--f-display);font-weight:800;font-size:1.05rem;letter-spacing:-.01em;color:var(--hdr-ink,var(--accent-ink,#fff));margin:2px 0 6px}
  #cphero2 .k{opacity:.75;font-size:.85rem}
  #cphero2 .vnum{font-family:var(--f-display);font-weight:800;font-size:clamp(2.2rem,11vw,3rem);letter-spacing:-.04em;line-height:1.05;margin:2px 0 12px;white-space:nowrap}
  html:root body #app[data-tab="inventario"]:has(#tab-inventario.cpv):not(#_x):not(#_y) header.top{border-radius:0!important;margin-bottom:0!important;padding-bottom:4px!important}
  #tab-inventario.cpv>.cpview:not([hidden]){display:block;margin-top:12px}
  html:root body #tab-inventario.cpv>#invseg{display:none!important} /* Juan 2026-11-23: Compras y Proveedores tienen su pantalla propia, sin las pestañas de Inventario */
  #tab-inventario.cpv>#lowcard,#tab-inventario.cpv>#entrycard,#tab-inventario.cpv>#suppcard,#tab-inventario.cpv>#paycard,#tab-inventario.cpv>#suplcard{display:none!important}
  .cpview .cpacts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .cpview .cpcard{background:var(--surface);border-radius:24px;padding:16px;margin-top:12px}
  .cpview .cpcard h3{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin:0 0 6px;font-family:var(--f-display);font-size:1.125rem;font-weight:700}
  .cpview .cplk{border:0;background:none;padding:0;color:var(--accent);font:700 .88rem/1 var(--f-body);cursor:pointer}
  .cpview .cphint{color:var(--muted);font-size:.84rem;margin-bottom:4px}
  .cpview .cpr{display:flex;align-items:center;gap:12px;padding:11px 0;border-top:1px solid var(--line)}
  .cpview .cphint+.cpr,.cpview h3+.cpr{border-top:0}
  .cpview .cpr[role="button"]{cursor:pointer}
  .cpview .cpi{flex:none;width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:color-mix(in srgb,var(--accent) 14%,var(--surface));color:var(--accent)}
  .cpview .cpi.out{background:color-mix(in srgb,var(--bad,#b3261e) 12%,var(--surface));color:var(--bad,#b3261e)}
  .cpview .cpi.n{background:var(--field,#efefec);color:var(--fg)}
  .cpview .cpi svg{width:20px;height:20px}
  .cpview .cpm{flex:1;min-width:0}
  .cpview .cpm b{display:block;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .cpview .cpm span{display:block;color:var(--muted);font-size:.82rem}
  .cpview .cptg{font-style:normal;display:inline-block;margin-right:6px;border-radius:999px;padding:1px 8px;font-weight:800;font-size:.72rem}
  .cpview .cptg.bad{background:color-mix(in srgb,var(--bad,#b3261e) 12%,var(--surface));color:var(--bad,#b3261e)}
  .cpview .cptg.warn{background:color-mix(in srgb,#f2b862 30%,var(--surface));color:#8a5a00}
  html[data-theme="dark"] .cpview .cptg.warn{color:#f5b454}
  .cpview .cpq{flex:none;min-width:44px;text-align:center;padding:7px 10px;border-radius:10px;background:var(--field,#efefec);font-weight:800}
  .cpview .cpv2{flex:none;text-align:right;display:flex;flex-direction:column;align-items:flex-end;gap:6px}
  .cpview .cpv2 b{font-weight:800}
  .cpview .cpbtn{border:0;border-radius:12px;padding:8px 14px;background:var(--field,#efefec);color:var(--fg);font:800 .82rem/1 var(--f-body);cursor:pointer}
  .cpview .cpdebt{flex:none;color:var(--bad,#b3261e);font-weight:800}
  .cpview .cpok{flex:none;color:var(--good,#15803d);font-weight:800}
  .cpview .cpall{display:block;width:100%;margin-top:8px;border:0;border-radius:14px;padding:12px;background:var(--field,#efefec);color:var(--fg);font:800 .9rem/1 var(--f-body);cursor:pointer}
  .cpview .cp2{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}
  html:root body .cpview .cp2 .btn{display:flex;align-items:center;justify-content:center;gap:6px;min-height:48px;border:0!important;border-radius:16px!important;box-shadow:none!important;font-weight:800}
  html:root body .cpview .cp2 .btn:not(.primary):not(#_x){background:var(--field,#efefec)!important;color:var(--fg)!important}
  .cpview .cp2 .btn svg,.cpview .cpcopy svg{width:18px;height:18px}
  .cpview .cpcopy{display:flex;align-items:center;justify-content:center;gap:6px;min-height:48px;border:0;border-radius:16px;background:var(--field,#efefec);color:var(--fg);font:800 .95rem/1 var(--f-body);cursor:pointer}
}
/* v643 · Catálogo con el diseño aprobado (maqueta disenos/v643-catalogo). Solo celular y tablet; el computador sigue igual. */
#cathero2,.cmlink,.cmpub,.cmorders{display:none}
@media (max-width:1099px){#pcshare{--pc:1} 
  html:root body #app[data-tab="catalogo"]:has(#tab-catalogo.cmview):not(#_x):not(#_y) header.top{border-radius:0!important;margin-bottom:0!important;padding-bottom:4px!important}
  html:root body #app[data-tab="catalogo"]:has(#tab-catalogo.cmview):not(#_x):not(#_y) header.top .ptitle{display:none!important}
  #tab-catalogo.cmview>#cathero2:not([hidden]){display:block;margin:0 -16px 14px;padding:6px 20px 24px;background:var(--hdr,var(--accent));color:var(--hdr-ink,var(--accent-ink,#fff));border-radius:0 0 32px 32px;text-align:center}
  html:root[data-style="mostrador"]:not([data-theme="light"]) #tab-catalogo.cmview>#cathero2{background:var(--hdr,color-mix(in srgb,var(--accent) 55%,#000))}
  #cathero2::before{content:"Catálogo";display:block;font-family:var(--f-display);font-weight:800;font-size:1.05rem;letter-spacing:-.01em;color:var(--hdr-ink,var(--accent-ink,#fff));margin:2px 0 6px}
  #cathero2 .k{opacity:.75;font-size:.85rem}
  #cathero2 .vnum{font-family:var(--f-display);font-weight:800;font-size:clamp(2.2rem,11vw,3rem);letter-spacing:-.04em;line-height:1.05;margin:2px 0 12px;white-space:nowrap}
  #cathero2 .vqpill.bad{cursor:pointer}
  /* pestaña Catálogo: tres botones grandes y el enlace */
  html:root body #tab-catalogo.cmview #catv-ver>.svgrp{margin-top:0!important}
  html:root body #tab-catalogo.cmview #catv-ver>.svgrp .sv-ag:not(#_x){display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  html:root body #tab-catalogo.cmview #catv-ver>.svgrp .sv-ag .btn:not(#_x){display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:92px;width:auto;margin:0;padding:12px 4px;border:0!important;border-radius:18px!important;background:var(--surface)!important;color:var(--fg)!important;box-shadow:none!important;font:700 .85rem/1.15 var(--f-body)}
  html:root body #tab-catalogo.cmview #catv-ver>.svgrp .sv-ag .btn:not(#_x) svg{width:42px;height:42px;padding:10px;margin:0!important;border-radius:14px;background:color-mix(in srgb,var(--accent) 14%,var(--surface));color:var(--accent)}
  html:root body #tab-catalogo.cmview #catv-ver>.svgrp .sv-ag .btn.primary:not(#_x){background:var(--accent)!important;color:var(--accent-ink,#fff)!important}
  html:root body #tab-catalogo.cmview #catv-ver>.svgrp .sv-ag>.btn:not(#_x){grid-column:auto!important;flex-direction:column!important}
  #tab-catalogo.cmview #catv-ver>.hint{margin:10px 4px 0!important}
  #tab-catalogo.cmview #catseg{margin-bottom:12px}
  html:root body #tab-catalogo.cmview #catv-ver>.svgrp .sv-ag .btn.primary:not(#_x) svg{background:rgba(255,255,255,.2);color:#fff}
  #tab-catalogo.cmview .cmlink{display:flex;align-items:center;gap:10px;background:var(--surface);border-radius:16px;padding:12px 14px;margin-top:10px;font-size:.88rem}
  #tab-catalogo.cmview .cmlink svg{width:20px;height:20px;flex:none;color:var(--fg)}
  #tab-catalogo.cmview .cmlink b{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--accent)}
  .cmon{flex:none;border-radius:10px;padding:6px 10px;background:color-mix(in srgb,var(--accent) 14%,var(--surface));color:var(--accent);font-weight:800;font-size:.8rem}
  .cmon.off{background:var(--field,#efefec);color:var(--muted)}
  /* pestaña Publicar: dos filas */
  #tab-catalogo.cmview .cmpub{display:grid;gap:10px}
  #tab-catalogo.cmview #catv-pub>.card{display:none!important}
  .cmopt{display:flex;align-items:center;gap:14px;width:100%;border:0;border-radius:20px;padding:16px;background:var(--surface);color:var(--fg);font:inherit;text-align:left;cursor:pointer}
  .cmi{flex:none;width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:color-mix(in srgb,var(--accent) 14%,var(--surface));color:var(--accent)}
  .cmi.out{background:color-mix(in srgb,var(--bad,#b3261e) 12%,var(--surface));color:var(--bad,#b3261e)}
  .cmi svg{width:20px;height:20px}
  .cmm{flex:1;min-width:0}
  .cmm b{display:block;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .cmm small{display:block;color:var(--muted);font-size:.82rem}
  .cmc{flex:none;width:20px;height:20px;fill:none;stroke:var(--muted);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
  /* pestaña Pedidos */
  #tab-catalogo.cmview .cmorders:not([hidden]){display:block}
  #tab-catalogo.cmview #catstatcard,#tab-catalogo.cmview #catordcard{display:none!important}
  html:root body #tab-catalogo.cmview #catseg #catnewn:not([hidden]){display:inline-grid;place-items:center;min-width:18px;height:18px;margin-left:4px;padding:0 5px;border:0;border-radius:999px;background:var(--bad,#b3261e)!important;color:#fff!important;font:800 .68rem/1 var(--f-body);font-size:0!important}
  html:root body #tab-catalogo.cmview #catseg #catnewn::after{content:attr(data-n);font-size:.68rem}
  .cmchips{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;margin:0 0 4px}
  .cmchips::-webkit-scrollbar{display:none}
  .cmday{display:flex;justify-content:space-between;align-items:baseline;margin:16px 4px 8px}
  .cmday b{font-weight:800}
  .cmday span{color:var(--muted);font-weight:700}
  .cmlist{background:var(--surface);border-radius:24px;padding:4px 16px}
  .cmrow{display:flex;align-items:center;gap:12px;padding:12px 0;border-top:1px solid var(--line);cursor:pointer}
  .cmrow:first-child{border-top:0}
  .cmv{flex:none;text-align:right;display:flex;flex-direction:column;align-items:flex-end;gap:4px}
  .cmv b{font-weight:800}
  .cmst{font-style:normal;display:inline-block;border-radius:999px;padding:2px 10px;font-weight:800;font-size:.74rem}
  .cmst.nuevo{background:color-mix(in srgb,var(--bad,#b3261e) 12%,var(--surface));color:var(--bad,#b3261e)}
  .cmst.prep{background:color-mix(in srgb,#f2b862 30%,var(--surface));color:#8a5a00}
  html[data-theme="dark"] .cmst.prep{color:#f5b454}
  .cmst.ok{background:color-mix(in srgb,var(--accent) 14%,var(--surface));color:var(--accent)}
  .cmst.gr{background:var(--field,#efefec);color:var(--muted)}
  .cmempty{color:var(--muted);text-align:center;padding:24px 8px}
}
/* ventana del pedido (celular) */
#cmbody{padding-top:22px}
#cmbody .cphd{display:flex;align-items:center;gap:10px;margin:0 0 6px}
#cmbody .cphd h2{flex:1;margin:0;font-family:var(--f-display);font-size:1.2rem}
#cmbody .cpib{width:44px;height:44px;min-height:0;padding:0;display:grid;place-items:center;border:0!important;border-radius:14px!important;background:var(--field,#efefec)!important;color:var(--fg)!important;box-shadow:none!important}
#cmbody .cpib svg{width:22px;height:22px}
#cmbody .cmtop{text-align:center;margin:12px 0 14px;display:flex;flex-direction:column;align-items:center;gap:6px}
#cmbody .cmtop .k{color:var(--muted)}
#cmbody .cmbig{font-family:var(--f-display);font-size:2.3rem;font-weight:800;letter-spacing:-.03em;line-height:1.05}
#cmbody .cmtop small{color:var(--muted)}
#cmbody .cmcli{display:flex;align-items:center;gap:12px;padding:12px;border-radius:16px;background:var(--field,#efefec);margin-bottom:10px}
#cmbody .cmcli .ava{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;flex:none;font-weight:800;background:color-mix(in srgb,var(--accent) 16%,var(--surface));color:var(--accent)}
#cmbody .cmcli .m{display:flex;flex-direction:column}
#cmbody .cmcli .m small{color:var(--muted)}
#cmbody .cmnote{color:var(--muted);font-size:.88rem;margin:-2px 4px 10px}
#cmbody .cpacts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:10px}
#cmbody .cpacts.n1{grid-template-columns:1fr}
#cmbody .cpa{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:72px;border:0;border-radius:16px;background:var(--field,#efefec);color:var(--fg);font:700 .88rem/1.1 var(--f-body);text-decoration:none;cursor:pointer}
#cmbody .cpa svg{width:22px;height:22px}
#cmbody .cpa.wa{color:#16a34a}
#cmbody .cpcta{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:56px;border-radius:18px;font-size:1.05rem;font-weight:800}
#cmbody .cpcta svg{width:20px;height:20px}
#cmbody .cmcap{color:var(--muted);font-size:.8rem;text-align:center;margin:6px 0 0}
#cmbody .cmdone{text-align:center;padding:12px;border-radius:14px;background:color-mix(in srgb,var(--accent) 14%,var(--surface));color:var(--accent);font-weight:800}
#cmbody .cmsts{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;margin:14px 0}
#cmbody .cmsts::-webkit-scrollbar{display:none}
#cmbody .cmsts .vqchip{flex:none;display:inline-flex;border:0;border-radius:999px;padding:8px 14px;font:700 .85rem/1.2 var(--f-body);background:var(--field,#efefec);color:var(--fg);cursor:pointer}
#cmbody .cmsts .vqchip.on{background:var(--fg);color:var(--surface)}
#cmbody .cmitems{background:var(--field,#efefec);border-radius:16px;padding:2px 14px}
#cmbody .cpkv{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-top:1px solid var(--line)}
#cmbody .cmitems .cpkv:first-child{border-top:0}
#cmbody .cpkv span{color:var(--muted)}
#cmbody .cmtot{display:flex;justify-content:space-between;padding:12px 0;border-top:2px solid var(--line);font-weight:800}
#cmbody .cmnf{margin-top:14px}
#cmbody .cpsec{margin:16px 2px 4px;font-family:var(--f-display);font-size:1.05rem}
/* v644 · Secciones de Ajustes y perfil del proveedor con el diseño aprobado (maqueta disenos/v644-ajustes-proveedor). Solo celular y tablet. */
.ajsub{display:none}
@media (max-width:1099px){
  html.aj-insec body #app[data-tab="ajustes"]:not(#_x):not(#_y) header.top .ptitle{display:none!important}
  html.aj-insec #tab-ajustes>.asearch{display:none!important}
  html:root body #tab-ajustes>#ajbar:not([hidden]){display:flex;align-items:center;gap:12px;margin:4px 0 12px}
  html:root body #tab-ajustes #ajback{display:grid;place-items:center;flex:none;width:44px;height:44px;min-height:0;padding:0;border:0!important;border-radius:14px!important;background:var(--surface)!important;color:var(--fg)!important;box-shadow:none!important}
  #tab-ajustes #ajback svg{width:22px;height:22px}
  html:root body #tab-ajustes #ajtitle{margin:0!important;font-family:var(--f-display);font-size:1.5rem!important;letter-spacing:-.02em;line-height:1.1}
  html:root body #tab-ajustes #ajtitle::after{content:"Ajustes";display:block;font:400 .85rem/1.3 var(--f-body);color:var(--muted);letter-spacing:0}
  html.aj-insec #tab-ajustes>.card.fold>h2 .ajsub{display:block;font:400 .8rem/1.3 var(--f-body);color:var(--muted);margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  html:root body.x,html.aj-insec #tab-ajustes>.card.fold>h2:has(.ajsub){display:grid!important;grid-template-columns:auto minmax(0,1fr) auto;column-gap:14px;align-items:center}
  html.aj-insec #tab-ajustes>.card.fold>h2:has(.ajsub)>.fic{grid-row:1/3}
  html.aj-insec #tab-ajustes>.card.fold>h2:has(.ajsub)>.ajsub{grid-column:2;margin-top:0}
  html.aj-insec #tab-ajustes>.card.fold>h2:has(.ajsub)::after{grid-column:3;grid-row:1/3}
  html:root body #tab-ajustes>#ajbar:not([hidden]){flex-direction:row!important;justify-content:flex-start!important;text-align:left!important}
  /* «Guardar» queda a la vista abajo en la ventana */
  .sheetdlg>.card[data-sec]>button.primary:last-of-type{position:sticky;bottom:0;z-index:2;box-shadow:0 -10px 16px -8px var(--surface)}
  /* perfil del proveedor */
  #spbody .spm .cphd{display:flex;align-items:center;gap:10px;margin:14px 0 6px}
  #spbody .spm .cphd h2{flex:1;margin:0;font-family:var(--f-display);font-size:1.2rem}
  #spbody .spm .cpib{width:44px;height:44px;min-height:0;padding:0;display:grid;place-items:center;border:0!important;border-radius:14px!important;background:var(--field,#efefec)!important;color:var(--fg)!important;box-shadow:none!important}
  #spbody .spm .cpib svg{width:22px;height:22px}
  #spbody .sppf{text-align:center;margin-bottom:12px}
  #spbody .spav{width:84px;height:84px;border-radius:50%;display:grid;place-items:center;margin:4px auto 10px;font-family:var(--f-display);font-weight:800;font-size:2rem;background:color-mix(in srgb,var(--accent) 16%,var(--surface));color:var(--accent)}
  #spbody .sppf h3{margin:0;font-family:var(--f-display);font-size:1.45rem}
  #spbody .spsub{color:var(--muted);margin-top:2px}
  #spbody .cpacts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:12px}
  #spbody .cpa{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:72px;border:0;border-radius:16px;background:var(--field,#efefec);color:var(--fg);font:700 .88rem/1.1 var(--f-body);text-decoration:none;cursor:pointer}
  #spbody .cpa svg{width:22px;height:22px}
  #spbody .cpa.wa{color:#16a34a}
  #spbody .cpa.off{opacity:.45;cursor:default}
  #spbody .cptwo{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0 0 12px}
  #spbody .cpst{background:var(--field,#efefec);border-radius:16px;padding:12px 14px;min-width:0}
  #spbody .cpst .k{color:var(--muted);font-size:.82rem}
  #spbody .cpst .v{font-family:var(--f-display);font-size:1.45rem;font-weight:800;letter-spacing:-.02em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  #spbody .cpst.bad{background:color-mix(in srgb,var(--bad,#b3261e) 11%,var(--surface))}
  #spbody .cpst.bad .v{color:var(--bad,#b3261e)}
  #spbody .cpcta{display:block;width:100%;min-height:56px;border-radius:18px;font-size:1.05rem;font-weight:800;margin-bottom:12px}
  html:root body #spbody .spm .sptabs:not(#_x){display:flex!important;flex-wrap:nowrap!important;gap:4px;overflow-x:auto;scrollbar-width:none;background:var(--field,#efefec)!important;border:0!important;border-radius:16px!important;padding:4px!important}
  #spbody .spm .sptabs::-webkit-scrollbar{display:none}
  html:root body #spbody .spm .sptabs button:not(#_x){flex:none;border:0!important;border-radius:12px!important;padding:9px 12px!important;background:transparent!important;color:var(--muted)!important;font:700 .84rem/1.2 var(--f-body)!important;box-shadow:none!important;min-height:0}
  html:root body #spbody .spm .sptabs button.on:not(#_x){background:var(--surface)!important;color:var(--fg)!important}
  #spbody .cpsec{margin:16px 2px 4px;font-family:var(--f-display);font-size:1.05rem}
  #spbody .cpkv{display:flex;justify-content:space-between;gap:12px;padding:10px 2px;border-top:1px solid var(--line)}
  #spbody .cpsec+.cpkv{border-top:0}
  #spbody .cpkv span{color:var(--muted)}
  #spbody .sprow{display:flex;align-items:center;gap:12px;padding:11px 0;border-top:1px solid var(--line)}
  #spbody .cpsec+.sprow{border-top:0}
  #spbody .sprow .cmi{flex:none;width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:color-mix(in srgb,var(--accent) 14%,var(--surface));color:var(--accent)}
  #spbody .sprow .cmi.n{background:var(--field,#efefec);color:var(--fg)}
  #spbody .sprow .cmi svg{width:20px;height:20px}
  #spbody .sprow .cmm{flex:1;min-width:0}
  #spbody .sprow .cmm b{display:block;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  #spbody .sprow .cmm small{display:block;color:var(--muted);font-size:.82rem}
  #spbody .cptg{font-style:normal;display:inline-block;margin-right:6px;border-radius:999px;padding:1px 8px;font-weight:800;font-size:.72rem}
  #spbody .cptg.bad{background:color-mix(in srgb,var(--bad,#b3261e) 12%,var(--surface));color:var(--bad,#b3261e)}
  #spbody .spall{display:block;width:100%;margin-top:8px;border:0;border-radius:14px;padding:12px;background:var(--field,#efefec);color:var(--fg);font:800 .9rem/1 var(--f-body);cursor:pointer}
  #spbody .spfoot{display:none}
}
/* v645 · Computador con el diseño nuevo (maqueta disenos/v645-pc, aprobada por Juan): la barra lateral queda; cada pantalla
   lleva el bloque verde con el número a la izquierda y los botones grandes a la derecha; el detalle de la venta abre en un panel
   a la derecha. Lo del celular se comparte con los bloques «#pcshare» (ver pcShare en app.js); aquí solo lo propio del computador. */
.pcacts,.pconly,.pcx{display:none}
@media (min-width:1100px){
  html.pc2 body #app:is([data-tab="ventas"],[data-tab="caja"],[data-tab="inicio"]):not(#_x):not(#_y) header.top{display:none!important}
  html.pc2 body :is(#tab-ventas #vhero2,#tab-caja #chero2,#tab-inicio #vhero):not(#_x){display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:28px;align-items:center;margin:0 0 16px!important;padding:22px 26px!important;border-radius:26px!important;text-align:left}
  html.pc2 body :is(#vhero2,#chero2,#vhero)>*,html.pc2 body :is(#vhero2,#chero2)::before{grid-column:1}
  html.pc2 body :is(#vhero2,#chero2,#vhero)>.pcacts{display:grid;grid-column:2;grid-row:1/span 6;grid-template-columns:repeat(2,minmax(170px,1fr));gap:10px}
  html.pc2 body :is(#vhero2,#chero2) .vqpills{justify-content:flex-start}
  html.pc2 body #vhero2 .vqpill.pconly{display:inline-block}
  .pca{display:flex;align-items:center;gap:10px;min-height:50px;border:0;border-radius:16px;padding:12px 16px;background:rgba(255,255,255,.16);color:#fff;font:700 .95rem/1.2 var(--f-body);text-align:left;cursor:pointer;transition:background .15s}
  .pca:hover{background:rgba(255,255,255,.26)}
  .pca.p{background:#fff;color:#14161c}.pca.p:hover{background:#f1f1ee}
  .pca svg{flex:none;width:20px;height:20px}
  .pca kbd{margin-left:auto;font:700 .7rem/1 var(--f-body);border:1px solid currentColor;border-radius:6px;padding:3px 5px;opacity:.55}
  /* Ventas: filas de dos líneas y el detalle en un panel a la derecha */
  html.pc2 body #slist .sales-h,html.pc2 body #slist .item.srow>[data-open]{display:none!important}
  html.pc2 body #slist .item.srow{display:block;padding:4px 10px;margin:0 -10px;border:0;border-radius:14px}
  html.pc2 body #slist .item.srow+.item.srow .vr2{border-top:1px solid var(--line)}
  html.pc2 body #slist .vr2{padding:10px 0}
  html.pc2 body #slist .item.srow:has(>.pcdet){background:var(--accent-soft,#dcefe3)}
  html.pc2 body #tab-ventas:has(.pcdet){padding-right:440px}
  html.pc2 body #slist .item.srow>.pcdet{position:fixed;z-index:40;top:16px;right:16px;bottom:16px;width:410px;display:flex;flex-direction:column;gap:10px;margin:0;overflow-y:auto;padding:14px 18px 22px;border-radius:24px;background:var(--surface);box-shadow:0 24px 60px -24px rgba(0,0,0,.45);cursor:auto}
  html.pc2 body #slist .pcdet>*{width:100%}
  html.pc2 body #slist .pcdet .pcx{display:grid;place-items:center;position:sticky;top:0;align-self:flex-end;width:34px!important;height:34px;margin-bottom:-44px;z-index:2;border:0;border-radius:50%;background:var(--field,#efefec);color:var(--fg);font:inherit;cursor:pointer}
  /* con el panel abierto, los botones del bloque verde bajan a una fila */
  html.pc2 body #tab-ventas:has(.pcdet) #vhero2>.pcacts{grid-column:1;grid-row:auto;display:flex;flex-wrap:wrap;margin-top:14px}
  html.pc2 body #tab-ventas:has(.pcdet) #vhero2 .pca{min-height:42px;padding:9px 14px}
  html.pc2 body :is(#vhero2,#chero2,#vhero) .vqpill{white-space:nowrap}
  /* Caja: los botones grandes ya están en el bloque verde */
  html.pc2 body #tab-caja.cjv #cjtop .cjacts{display:none!important}
  /* Inicio: bloque verde arriba y «Hoy toca» y «Últimas ventas» lado a lado */
  html.pc2 body #tab-inicio:not([hidden]):not(#_x){display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:16px;align-items:start}
  /* v691 (punto 64): en el computador, el buscador «Buscar en todo» vuelve a verse en Inicio, debajo del bloque verde (lo escondía el diseño de v593) */
  html.pc2 body #tab-inicio>#gsbtn{display:flex!important;grid-column:1/-1;grid-row:2;margin:14px 0 12px}
  html.pc2 body #tab-inicio>*{grid-column:1/-1}
  html.pc2 body #tab-inicio>#vhero{grid-row:1}
  html.pc2 body #tab-inicio>#vacts.vacts2:not(#_x):not(#_y),html.pc2 body #vhero .vtop{display:none!important}
  html.pc2 body :is(#tab-ventas #vhero2,#tab-inicio #vhero):not(#_x){margin-top:18px!important}
  html.pc2 body #tab-caja.cjv #cjtop .cjmore{display:none!important}
  html.pc2 body #tab-inicio>#vimei{grid-row:3}
  html.pc2 body #tab-inicio>#vtoca{grid-column:1;grid-row:4}
  html.pc2 body #tab-inicio>#ilastcard{grid-column:2;grid-row:4}
  html.pc2 body #tab-inicio:has(>#vtoca[hidden])>#ilastcard{grid-column:1/-1}
  html.pc2 body #vtoca .vtlh,html.pc2 body #ilastcard>h2{margin-top:4px!important}
  html.pc2 body #vhero .vhi{font-family:var(--f-display);font-weight:800;font-size:1.05rem}
  html.pc2 body #vhero .vsum{margin-top:8px}
}

/* v646 (Juan: «en vez de esas marcas genéricas … el logo de Cuadra desde diferentes ángulos», «más grande, así sea que salga una parte», «en todas las pantallas», «más suave»):
   el logo de Cuadra (cuadro abierto con el chulo) en blanco casi transparente, grande y girado, en todos los bloques de color. */
:root{--cqm1:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-10 -10 84 84'%3E%3Cg transform='rotate(-16 32 32)' fill='none' stroke='%23fff' stroke-opacity='.055' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath stroke-width='5' d='M44 11H22a11 11 0 0 0-11 11v20a11 11 0 0 0 11 11h20a11 11 0 0 0 11-11V32'/%3E%3Cpath stroke-width='6' d='M23 33l9 9 21-25'/%3E%3C/g%3E%3C/svg%3E");--cqm2:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-10 -10 84 84'%3E%3Cg transform='rotate(22 32 32)' fill='none' stroke='%23fff' stroke-opacity='.05' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath stroke-width='5' d='M44 11H22a11 11 0 0 0-11 11v20a11 11 0 0 0 11 11h20a11 11 0 0 0 11-11V32'/%3E%3Cpath stroke-width='6' d='M23 33l9 9 21-25'/%3E%3C/g%3E%3C/svg%3E");--cqm3:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-10 -10 84 84'%3E%3Cg transform='rotate(-34 32 32)' fill='none' stroke='%23fff' stroke-opacity='.05' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath stroke-width='5' d='M44 11H22a11 11 0 0 0-11 11v20a11 11 0 0 0 11 11h20a11 11 0 0 0 11-11V32'/%3E%3Cpath stroke-width='6' d='M23 33l9 9 21-25'/%3E%3C/g%3E%3C/svg%3E")}
.vhero2,#vhero,#tab-vender .vvhead,html:root body .authside:not(#_x){background-image:var(--cqm2),var(--cqm1)!important;background-repeat:no-repeat!important;background-size:420px,260px!important;background-position:right -150px bottom -170px,left -110px bottom -150px!important}
#vhero::after,html:root body .authside::after{display:none!important}
@media (min-width:1100px){
  html.pc2 body :is(#vhero2,#chero2,#vhero){background-size:520px,320px!important;background-position:right 24% bottom -250px,left -130px bottom -190px!important}
}
/* v646 · Pantalla del PIN con el diseño nuevo (maqueta disenos/v646-carga-pin): en el bloque verde el logo y el nombre del negocio
   con la hora pequeña, y debajo la inicial, «Hola, Juan» y «¿No eres Juan?» (#asgreet); teclas de esquinas redondeadas; enlaces en fichas. */
.as-greet{display:none}
html.auth-pad .as-greet:not(:empty){display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px;position:relative;z-index:1}
html.auth-pad .as-greet .ahiph{width:76px;height:76px;border-radius:50%;display:grid;place-items:center;object-fit:cover;background:#16181c;color:#fff;font:800 1.9rem/1 var(--f-display);border:3px solid rgba(255,255,255,.35);box-sizing:border-box}
html.auth-pad .as-greet .ahi{margin:6px 0 0;display:flex;flex-direction:column;align-items:center;gap:10px;color:#fff!important;font:800 1.75rem/1.1 var(--f-display)!important;letter-spacing:-.02em}
html.auth-pad .as-greet .ahichg{font:700 .85rem/1.2 var(--f-body)!important;color:#fff!important;background:rgba(255,255,255,.18)!important;border:0;border-radius:999px;padding:7px 14px!important;text-decoration:none!important;letter-spacing:0;min-height:0}
html.auth-pad .authside>div:nth-child(2) .as-date,html.auth-pad .authside .as-foot{display:none!important}
html.auth-pad body #auth .pinpad .padk:not(.pkk){border-radius:20px!important;border:0!important;box-shadow:none!important;font-size:1.55rem}
html.auth-pad body #auth .pinpad{column-gap:12px}
html.auth-pad body #auth #adots i{width:14px;height:14px;border:0!important;background:var(--line)!important}
html.auth-pad body #auth #adots i.on{background:var(--accent)!important}
html.auth-pad body #auth .alinks{display:flex;justify-content:center;gap:8px;flex-wrap:wrap}
html.auth-pad body #auth .alinks>span{display:none}
html.auth-pad body #auth .auth.pad .alinks .linkbtn:not(#_x){border-radius:999px;padding:9px 15px;background:var(--field,#efefec);color:var(--fg);font-weight:700;text-decoration:none}
html.auth-pad body #auth #ahint{text-align:center;color:var(--muted);margin-bottom:4px!important}
@media (max-width:1099px){
  html.auth-pad{--bandh:318px}
  html.auth-pad .authside{justify-content:flex-end;padding-bottom:26px!important}
  html.auth-pad .authside>div:nth-child(2){position:absolute;right:20px;top:calc(26px + env(safe-area-inset-top));z-index:1}
  html.auth-pad .authside .as-time{font-size:1rem!important;letter-spacing:0;opacity:.92}
  html.auth-pad .authside .as-time small{font-size:1em;margin-left:4px}
  html.auth-pad .authside .as-top{right:120px}
  html.auth-pad body #auth .pinpad{grid-template-columns:repeat(3,calc(var(--pk) * 1.42))!important;justify-content:center}
  html.auth-pad body #auth .pinpad .padk:not(.pkk){width:100%!important;height:var(--pk)!important}
}
@media (max-width:699px) and (max-height:760px){html.auth-pad{--bandh:270px}html.auth-pad .as-greet .ahiph{width:58px;height:58px;font-size:1.5rem}html.auth-pad .as-greet .ahi{font-size:1.45rem!important;gap:8px}}
@media (max-width:699px) and (max-height:680px){html.auth-pad{--bandh:200px}html.auth-pad .as-greet .ahiph{display:none}}
@media (min-width:1100px){
  html.auth-pad .authside .as-greet:not(:empty){align-items:flex-start;text-align:left;margin-top:auto;margin-bottom:auto;order:1}
  html.auth-pad .authside .as-top{order:0}html.auth-pad .authside .as-greet .ahiph{margin:0!important;position:static!important;transform:none!important}
  html.auth-pad .as-greet .ahi{align-items:flex-start;font-size:2.6rem!important}
  html.auth-pad .as-greet .ahiph{width:92px;height:92px;font-size:2.2rem}
  html.auth-pad .authside>div:nth-child(2){position:absolute;right:56px;top:52px;z-index:1}
  html.auth-pad .authside .as-time{font-size:1.15rem!important;letter-spacing:0}
  html.auth-pad .authside .as-time small{font-size:1em;margin-left:4px}
  html.auth-pad .authside .as-foot{display:flex!important;position:static!important;order:2}
  html.auth-pad body #auth .auth.pad #authform{background:var(--surface)!important;border-radius:28px!important;padding:30px 34px!important;box-shadow:none!important}
  html.auth-pad body #auth .pinpad .padk:not(.pkk){background:var(--field,#efefec)!important;width:auto!important;height:64px!important}
  html.auth-pad body #auth .pinpad{grid-template-columns:repeat(3,92px)!important;justify-content:center}
}
/* v646 · Pantalla de carga: todo el fondo verde con el logo de Cuadra; logo del negocio en tarjeta blanca y letras blancas */
html:root:not(#_a):not(#_b) body #splash:not(#_x){background-color:var(--accent)!important;background-image:var(--cqm2),var(--cqm1),var(--cqm3)!important;background-repeat:no-repeat!important;background-size:460px,300px,220px!important;background-position:right -170px top -150px,left -130px bottom -110px,right -60px bottom 18%!important;color:var(--accent-ink,#fff)}
html:root[data-style="mostrador"]:not([data-theme="light"]):not(#_a):not(#_b) body #splash:not(#_x),html:root[data-theme="dark"]:not(#_a):not(#_b) body #splash:not(#_x){background-color:color-mix(in srgb,var(--accent) 55%,#000)!important}
html:root body #splash .sp-card{background:none!important;border:0!important;box-shadow:none!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
html:root body #splash .sp-name,html:root body #splash .splash-t,html:root body #splash .sp-by span{color:#fff!important}
html:root body #splash .splash-t{opacity:.85}
html:root body #splash img.sp-logo{background:#fff;border-radius:26px;padding:14px;box-sizing:border-box;box-shadow:0 18px 40px -18px rgba(0,0,0,.45)}
html:root body #splash .sp-bar,html:root body #splash .sp-pbar{background:rgba(255,255,255,.25)!important}
html:root body #splash .sp-bar i,html:root body #splash .sp-pbar i{background:#fff!important}
html:root body #splash .sp-by .sp-cq.dk{display:none!important}html:root body #splash .sp-by .sp-cq.lt{display:inline-block!important}
@media (max-width:1099px){html:root body #splash:not(#_x){padding-top:0!important}body:has(#splash:not([hidden]):not(.off)) .authside{visibility:hidden!important;opacity:0!important}}
@media (min-width:1100px){html.auth-pad:root body #auth #apad .padk:not(.pkk):not(#_x):not(#_y){background:var(--field,#efefec)!important}}
html:root body #splash .sp-slot{background:rgba(255,255,255,.35)!important}

/* v647 · Inicio: botón «Verificar IMEI» y su ventana (maqueta disenos/v647-imei) */
.vimeib{display:none}
@media (max-width:1099px){html:root body #tab-inicio>#vimei{order:-2}}
html:root body #tab-inicio>#vimei.vimeib:not(#_x){display:flex;align-items:center;gap:12px;width:100%;margin:10px 0 0;padding:12px 14px;border:0;border-radius:18px;background:var(--surface);color:var(--fg);font:inherit;text-align:left;cursor:pointer;box-shadow:inset 0 0 0 2px var(--accent)}
html.pc2 body #tab-inicio>#vimei.vimeib:not(#_x){margin:0 0 16px}
#vimei>i{flex:none;width:42px;height:42px;border-radius:14px;display:grid;place-items:center;background:color-mix(in srgb,var(--accent) 14%,var(--surface));color:var(--accent)}
#vimei>i svg,#vimei>em svg{width:22px;height:22px}
#vimei>span{flex:1;min-width:0}#vimei>span b{display:block;font-weight:800}#vimei>span small{display:block;color:var(--muted);font-size:.84rem}
#vimei>em{flex:none;width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:#16181c;color:#fff}
html[data-theme="dark"] #vimei>em,html[data-style="mostrador"]:not([data-theme="light"]) #vimei>em{background:#eceef2;color:#14161c}
#imeicard .imin{display:flex;gap:8px;margin-top:6px}
#imeicard #imq{flex:1;min-width:0;font:800 1.25rem/1.2 var(--f-display);letter-spacing:.06em;padding:14px;border:0;border-radius:14px;background:var(--field,#efefec);color:var(--fg)}
#imeicard .imscan{flex:none;width:54px;min-height:0;padding:0;border:0!important;border-radius:14px;background:#16181c!important;color:#fff!important;display:grid;place-items:center}
html[data-theme="dark"] #imeicard .imscan,html[data-style="mostrador"]:not([data-theme="light"]) #imeicard .imscan{background:#eceef2!important;color:#14161c!important}
#imeicard .imscan svg{width:24px;height:24px}
#imeicard .imcnt{display:flex;justify-content:space-between;gap:10px;color:var(--muted);font-size:.84rem;margin:6px 4px 0}
#imeicard .imv.ok{color:var(--accent);font-weight:800}#imeicard .imv.bad{color:var(--bad,#b3261e);font-weight:800;text-align:right}
#imeicard .imlbl{margin:18px 4px 6px;font-size:.78rem;letter-spacing:.06em;color:var(--muted);font-weight:800}
#imeicard .imr{border-radius:18px;padding:14px;background:var(--field,#efefec);margin-bottom:8px}
#imeicard .imrt{display:flex;gap:10px;align-items:center}
#imeicard .imrt>i{flex:none;width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:color-mix(in srgb,var(--accent) 14%,var(--surface));color:var(--accent)}
#imeicard .imrt>i svg{width:20px;height:20px}
#imeicard .imrt b{display:block}#imeicard .imrt span{display:block;color:var(--muted);font-size:.84rem}
#imeicard .imtg{display:inline-block;border-radius:999px;padding:2px 10px;font-weight:800;font-size:.76rem;margin-top:8px}
#imeicard .imtg.ok{background:color-mix(in srgb,var(--accent) 14%,var(--surface));color:var(--accent)}
#imeicard .imtg.bad{background:color-mix(in srgb,var(--bad,#b3261e) 12%,var(--surface));color:var(--bad,#b3261e)}
#imeicard .imtg.w{background:color-mix(in srgb,#f2b862 30%,var(--surface));color:#8a5a00}
html[data-theme="dark"] #imeicard .imtg.w{color:#f5b454}
#imeicard .imkv{display:flex;justify-content:space-between;gap:10px;padding:8px 0 0;margin-top:8px;border-top:1px solid var(--line);font-size:.9rem}#imeicard .imkv span{color:var(--muted)}
#imeicard .imbtns{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}
#imeicard .imbtns .btn{border:0!important;border-radius:14px;background:var(--surface)!important;color:var(--fg)!important;font-weight:700;min-height:46px}
#imeicard .imbtns .btn.primary{background:var(--accent)!important;color:var(--accent-ink,#fff)!important}
#imeicard .imgo{display:block;text-align:center;margin-top:12px;border-radius:16px;padding:14px;font-weight:800;text-decoration:none}
#imeicard .imnote{margin:6px 4px 0}

/* v648 · a) Clientes y Agenda no tienen bloque de color propio: el logo de Cuadra va en el encabezado verde */
@media (max-width:1099px){
  html:root body #app:is([data-tab="fiado"],[data-tab="agenda"]):not(#_x):not(#_y) header.top{background-image:var(--cqm2),var(--cqm1)!important;background-repeat:no-repeat!important;background-size:380px,240px!important;background-position:right -150px bottom -200px,left -120px bottom -170px!important}
  /* b) el relleno de 140 px de abajo era de la barra de pestañas que ya no existe: el final de cada pantalla llega solo hasta lo último (el botón redondo de abajo ya tiene su espacio en .wrap) */
  html:root body:not(:has(#app[data-tab="vender"])):not(:has(#auth:not([hidden]))){padding-bottom:0!important}
}
/* v648 · f) Al deslizar entre pantallas en el celular se veía una línea blanca: toda la pantalla entraba corrida 38 px y el bloque
   de color (que llega a las orillas) dejaba ver el fondo. Ahora el bloque de color no se mueve; entran deslizando su contenido y
   lo de debajo. */
@media (max-width:1099px) and (prefers-reduced-motion:no-preference){
  html:root body section[role=tabpanel][data-dir="r"]:not([hidden]),html:root body section[role=tabpanel][data-dir="l"]:not([hidden]){animation:none!important}
  html:root body section[role=tabpanel][data-dir="r"]:not([hidden])>:not(.vhero2):not(#vhero):not(.vvcard),
  html:root body section[role=tabpanel][data-dir="r"]:not([hidden]) :is(.vhero2,#vhero,.vvhead)>*,
  html:root body section[role=tabpanel][data-dir="r"]:not([hidden])>.vvcard>:not(.vvhead){animation:inr .34s cubic-bezier(.2,.8,.2,1)}
  html:root body section[role=tabpanel][data-dir="l"]:not([hidden])>:not(.vhero2):not(#vhero):not(.vvcard),
  html:root body section[role=tabpanel][data-dir="l"]:not([hidden]) :is(.vhero2,#vhero,.vvhead)>*,
  html:root body section[role=tabpanel][data-dir="l"]:not([hidden])>.vvcard>:not(.vvhead){animation:inl .34s cubic-bezier(.2,.8,.2,1)}
  html:root body{background-color:var(--bg)}
}
/* v648 (Juan, captura de la carga): el logo del negocio va en una tarjeta blanca cuadrada del mismo tamaño siempre (antes tomaba la
   forma del logo y quedaba ancha) y sin el ticket que sale debajo; en su lugar, la barra blanca de avance */
html:root:not(#_a):not(#_b) body #splash .sp-ring{width:auto!important;height:auto!important;background:none!important;box-shadow:none!important;border:0!important}
html:root:not(#_a):not(#_b) body #splash .sp-ring::before,html:root:not(#_a):not(#_b) body #splash .sp-ring::after{display:none!important}
html:root:not(#_a):not(#_b) body #splash img.sp-logo:not(.sp-fill){width:128px!important;height:128px!important;object-fit:contain!important;padding:18px!important;border-radius:32px!important;background:#fff!important;box-shadow:0 18px 40px -18px rgba(0,0,0,.5)!important;filter:none!important}
html:root:not(#_a):not(#_b) body #splash img.sp-logo.sp-fill{display:none!important}
html:root:not(#_a):not(#_b) body #splash svg.sp-logo{width:128px!important;height:128px!important}
html:root body #splash .sp-steps{display:none!important}
html:root body #splash .sp-pbar{display:block!important;width:150px;height:5px;border-radius:5px;overflow:hidden;margin:6px auto 0}
html:root body #splash .sp-pbar i{display:block;height:100%;border-radius:5px}
/* v648 · Buscar en todo: título y ✕ arriba (en el iPhone, «Cerrar» abajo quedaba lejos) */
#gsmodal .gshd{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 10px}
#gsmodal .gshd b{font-family:var(--f-display);font-size:1.2rem}
#gsmodal .gsx{flex:none;width:36px;height:36px;border-radius:50%;border:0;background:color-mix(in srgb,var(--fg) 10%,transparent);color:var(--fg);font:inherit;font-size:1rem;line-height:36px;padding:0;cursor:pointer}
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
@media (max-width:1099px){html:root body #gsmodal:not(#_x){align-items:flex-end!important;padding:0!important}html:root body #gsmodal>.dlg:not(#_x){margin:0!important;width:100%;max-height:calc(100dvh - var(--sat,0px) - 24px)!important;border-radius:28px 28px 0 0!important;padding-bottom:calc(16px + env(safe-area-inset-bottom,0px))!important}}
/* v649 · Menú «¿A dónde vas?» con el diseño nuevo (maqueta disenos/v648-ajustes/menu-propuesta.html) */
html:root body .navsheet>.dlg:not(#_x){background:var(--bg)!important}
.navsheet .navhd{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 4px 12px;touch-action:none}
html:root body .navsheet .navhd h2{margin:0!important;font-family:var(--f-display);font-size:1.3rem}
.navsheet .navx{flex:none;width:36px;height:36px;border-radius:50%;border:0;background:var(--field,#efefec);color:var(--fg);font:inherit;font-size:1rem;line-height:36px;padding:0;cursor:pointer}
.navsheet .navsrch{display:flex;align-items:center;gap:10px;width:100%;border:0;border-radius:14px;background:var(--surface);color:var(--muted);padding:13px 14px;font:inherit;text-align:left;cursor:pointer;margin-bottom:12px}
.navsheet .navsrch svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
html:root body .navsheet .navit.big:not(#_x){position:relative;overflow:hidden;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:14px;width:100%;min-height:76px;padding:14px 18px;border-radius:20px;background-color:var(--accent);background-image:var(--cqm2);background-repeat:no-repeat;background-size:230px;background-position:right -70px bottom -95px;color:var(--accent-ink,#fff);text-align:left}
html:root[data-style="mostrador"]:not([data-theme="light"]) body .navsheet .navit.big:not(#_x){background-color:color-mix(in srgb,var(--accent) 55%,#000)}
html:root body .navsheet .navit.big i{width:46px;height:46px;border-radius:14px;background:rgba(255,255,255,.2)!important;color:#fff}
html:root body .navsheet .navit.big>span{font-size:1.15rem;font-weight:800;color:#fff}
.navsheet .navit.big small{display:block;font-weight:600;font-size:.82rem;opacity:.85}
.navsheet .navlbl{margin:16px 6px 8px;font-size:.74rem;letter-spacing:.08em;font-weight:800;color:var(--muted)}
html:root body .navsheet .navgrid:not(#_x){display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}
html:root body .navsheet .navgrid .navit:not(.big):not(#_x){position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-height:96px;padding:14px 6px 12px;border:0;border-radius:18px;background:var(--surface);color:var(--fg);box-shadow:none;outline:0}
html:root body .navsheet .navgrid .navit i{width:42px;height:42px;border-radius:14px;display:grid;place-items:center;background:color-mix(in srgb,var(--accent) 14%,var(--surface));color:var(--accent)}
html:root body .navsheet .navgrid .navit i svg{width:22px;height:22px}
html:root body .navsheet .navgrid .navit>span{font-weight:700;font-size:.86rem;color:var(--fg)}
html:root body .navsheet .navgrid .navit.on:not(#_x){background:color-mix(in srgb,var(--accent) 14%,var(--surface));box-shadow:inset 0 0 0 2px var(--accent)}
html:root body .navsheet .navgrid .navit.on i{background:var(--accent);color:var(--accent-ink,#fff)}
.navsheet .navgrid .navit small{display:block;color:var(--accent);font-size:.7rem;font-weight:800;margin-top:-4px}
.navsheet .navbd{position:absolute;top:8px;right:8px;font-style:normal;font-size:.7rem;font-weight:800;border-radius:999px;padding:2px 7px;background:var(--accent);color:var(--accent-ink,#fff)}
.navsheet .navbd.m{background:color-mix(in srgb,var(--accent) 14%,var(--surface));color:var(--accent)}
.navsheet .navme{display:flex;align-items:center;gap:10px;background:var(--surface);border-radius:18px;padding:10px 12px;margin-top:14px}
.navsheet .navwho2{flex:1;min-width:0;display:flex;align-items:center;gap:12px;border:0;background:none;color:var(--fg);font:inherit;text-align:left;padding:2px;cursor:pointer}
.navsheet .navav{flex:none;width:40px;height:40px;border-radius:50%;background:var(--accent);color:var(--accent-ink,#fff);display:grid;place-items:center;font-weight:800}
.navsheet .navwho2 b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.navsheet .navwho2 small{display:block;color:var(--muted);font-size:.8rem}
.navsheet .navaj{flex:none;display:flex;align-items:center;gap:6px;border:0;border-radius:12px;padding:9px 13px;background:var(--field,#efefec);color:var(--fg);font:800 .84rem/1 var(--f-body);cursor:pointer}
.navsheet .navaj i{display:grid;place-items:center}.navsheet .navaj svg{width:17px;height:17px}
.navsheet .navaj.on{background:color-mix(in srgb,var(--accent) 14%,var(--surface));color:var(--accent)}
.navsheet .navaj svg{fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
/* ======================================================================================================
   v650 · Lista de revisión de Juan, aprobada con la maqueta disenos/v650-lista/propuesta.html («Si me gusta»)
   ====================================================================================================== */
/* i) fondo de toda la app con el color del negocio muy suave (≈95 % más claro); en oscuro, casi negro con un toque del color */
html:root[data-theme="light"]:not(#_a):not(#_b),html:root[data-style="mostrador"][data-theme="light"]:not(#_a):not(#_b){--bg:color-mix(in srgb,var(--accent) 5%,#fff);--field:color-mix(in srgb,var(--accent) 7%,#f1f2f0)}
html:root[data-theme="dark"]:not(#_a):not(#_b),html:root[data-style="mostrador"]:not([data-theme="light"]):not(#_a):not(#_b){--bg:color-mix(in srgb,var(--accent) 5%,#0b0c0e)}
/* k) encabezado: el logo siempre en su cuadro blanco fijo (no se pierde en oscuro ni con logos de fondo de color), más espacio y todo centrado */
html:root body .bizbrand:not(#_x){gap:16px;align-items:center}
html:root body .biztile:not(#_x){background:#fff!important;box-shadow:0 0 0 1px rgba(0,0,0,.06);filter:none!important}
html:root body .biztile img{filter:none!important}
@media (max-width:1099px){html:root body #app header.top:not(#_x){align-items:center!important}html:root body #app header.top .hdlogo{display:flex;align-items:center}}
/* h) Ajustes: sin el logo pequeño de arriba (la tarjeta del negocio ya lo muestra) y el logo de la tarjeta completo, sin recortar */
@media (max-width:1099px){html:root:not(.aj-insec) body #app[data-tab="ajustes"] header.top .hdlogo{display:none!important}}
html:root body #ajhero2 .ajblogo:not(.ini){object-fit:contain!important;padding:6px;box-sizing:border-box;background:#fff}
/* j) «Desarrollado por JC Tech» solo al final de la pantalla principal de Ajustes, como marca de agua abajo a la derecha */
html.aj-insec #tab-ajustes .credit{display:none!important}
html:root body #tab-ajustes>.credit{display:flex;justify-content:flex-end;opacity:.55;transform:scale(.85);transform-origin:right center;margin:18px 0 4px}
/* m) botones de ícono con su nombre (Llamar, WhatsApp, Editar, ticket, factura, imprimir…): sin el cuadro gris, solo el ícono y el nombre */
html:root body :is(#cpbody,#pdbody,#svdbody,#cmbody,#spbody) .cpa:not(#_x),html:root body .vsd-acts>.btn:not(#_x){background:transparent!important;box-shadow:none!important;min-height:64px}
html:root body :is(#cpbody,#pdbody,#svdbody,#cmbody,#spbody) .cpa svg,html:root body .vsd-acts>.btn svg{width:26px!important;height:26px!important;color:var(--accent)}
html:root body :is(#cpbody,#svdbody,#cmbody,#spbody) .cpa.wa svg,html:root body .vsd-acts>.btn[data-wa] svg{color:#16a34a}
html:root body :is(#cpbody,#svdbody,#cmbody,#spbody) .cpa.wa,html:root body .vsd-acts>.btn[data-wa]{color:var(--fg)!important}
html:root body :is(#cpbody,#pdbody,#svdbody,#cmbody,#spbody) .cpa:active,html:root body .vsd-acts>.btn:active{background:var(--field)!important}
/* n) oscuro: el ícono de WhatsApp del botón «Escribir» (Hoy toca) blanco sobre un verde más fuerte */
html:root body #vtoca .vtlbtn.wa svg,html:root body #vtoca .vtlbtn.wa svg *{color:var(--accent-ink,#fff)!important;fill:var(--accent-ink,#fff)!important}
html[data-theme="dark"] body #vtoca .vtlbtn.wa,html[data-style="mostrador"]:not([data-theme="light"]) body #vtoca .vtlbtn.wa{background:color-mix(in srgb,var(--accent) 78%,#000)!important}
/* q) buscadores iguales en toda la app: esquinas casi cuadradas, como los botones */
html:root body :is(#app,.modal) input[type="search"]:not(#_x):not(#_y){border-radius:14px!important}
html:root:not(#_a):not(#_b) body .vsd-acts>.btn:not(#_x){background:transparent!important;box-shadow:none!important}
html:root:not(#_a):not(#_b) body .vsd-acts>.btn:not(#_x):active{background:var(--field)!important}
html:root body #tab-ajustes .asearch:not(#_x){border-radius:14px!important}
html:root:not(#_a):not(#_b) body #ajdata>.btn:not(#_x){background:transparent!important;box-shadow:none!important;border:0!important}
html:root body #ajdata>.btn:not([data-ajd="logout"]) svg{color:var(--accent)}
html:root body #ajdata>.btn svg{width:26px!important;height:26px!important}
/* p) Servicio técnico: escáner, «⋯» y «+» del mismo tamaño y alineados con el buscador */
@media (max-width:1099px){#pcshare{--pc:1} 
  html:root body #tab-servicio .svsrow:not(#_x){align-items:center!important}
  html:root:not(#_a):not(#_b) body #tab-servicio .svsrow>.btn:not(#_x){flex:none;width:48px!important;height:48px!important;min-height:0!important;min-width:0!important;padding:0!important;margin:0!important;border-radius:14px!important;display:grid!important;place-items:center}
  html:root body #tab-servicio .svsrow>.btn>span{display:none!important}
  html:root body #tab-servicio .svsrow>.btn svg{width:22px!important;height:22px!important}
}
/* o) Clientes: aire entre las pestañas y lo de abajo, «Agregar cliente» y «Mis clientes» en tarjetas separadas, y el valor de
   «Por cobrar» en un solo renglón */
@media (max-width:1099px){#pcshare{--pc:1} 
  html:root body #tab-fiado>#cliseg:not(#_x){margin-bottom:12px!important}
  html:root:not(#_a):not(#_b) body #clipane>#cform.card:not(#_x){border-radius:24px!important;margin-bottom:12px!important}
  html:root:not(#_a):not(#_b) body #clipane>#clistcard.card:not(#_x){border-radius:24px!important;margin-top:0!important}
  html:root body #clistcard .lstats .lst b{font-size:clamp(.95rem,4.6vw,1.3rem)!important;white-space:nowrap;overflow-wrap:normal!important}
}
/* v650 (Juan, capturas): 1) los botones de ícono con nombre más juntos (centrados, no repartidos a todo lo ancho);
   2) los botones grandes de Inicio sin fondo: solo el ícono y el nombre; 3) el menú «¿A dónde vas?» igual */
html:root body :is(#cpbody,#pdbody,#svdbody,#cmbody,#spbody) .cpacts:not(#_x),html:root body .vsd-acts:not(#_x){display:flex!important;justify-content:center;gap:clamp(18px,7vw,40px)!important;flex-wrap:wrap}
html:root body :is(#cpbody,#pdbody,#svdbody,#cmbody,#spbody) .cpacts>.cpa:not(#_x),html:root:not(#_a):not(#_b) body .vsd-acts>.btn:not(#_x){flex:0 0 auto;min-width:76px;padding:6px 4px!important}
@media (max-width:1099px){
  html:root body #tab-inicio #vacts.vacts2:not(#_x){display:flex!important;justify-content:center;gap:clamp(14px,5vw,30px)!important;margin:16px 0 4px!important}
  html:root body #tab-inicio #vacts.vacts2 .vact:not(#_x),html:root body #tab-inicio #vacts.vacts2 .vact.main:not(#_x){flex:0 0 auto;min-width:64px;min-height:0;padding:4px 2px!important;background:transparent!important;box-shadow:none!important}
  html:root body #tab-inicio #vacts.vacts2 .vact i,html:root body #tab-inicio #vacts.vacts2 .vact.main i{width:auto!important;height:auto!important;background:transparent!important;box-shadow:none!important}
  html:root body #tab-inicio #vacts.vacts2 .vact i svg,html:root body #tab-inicio #vacts.vacts2 .vact.main i svg{width:30px!important;height:30px!important;color:var(--accent)!important}
  html:root body #tab-inicio #vacts.vacts2 .vact span,html:root body #tab-inicio #vacts.vacts2 .vact.main span{color:var(--fg)!important;font-weight:700}
}
html:root body .navsheet .navgrid .navit:not(.big):not(#_x){background:transparent!important;min-height:78px;padding:8px 4px!important}
html:root body .navsheet .navgrid .navit:not(.big) i{width:auto!important;height:auto!important;background:transparent!important}
html:root body .navsheet .navgrid .navit:not(.big) i svg{width:30px!important;height:30px!important;color:var(--accent)}
html:root body .navsheet .navgrid .navit.on:not(.big):not(#_x){background:transparent!important;box-shadow:none!important}
html:root body .navsheet .navgrid .navit.on:not(.big) i{background:transparent!important;color:var(--accent)}
html:root body .navsheet .navgrid .navit.on:not(.big)>span{color:var(--accent)}
html:root body .navsheet .navgrid:not(#_x){row-gap:4px!important}
html:root body .navsheet .navgrid .navit:not(.big) .navbd{top:2px;right:auto;left:calc(50% + 12px)}html:root body .navsheet .navgrid .navit:not(.big) small{position:absolute;bottom:-4px;left:0;right:0}
html:root body .navsheet .navbd{white-space:nowrap}
/* v650 (Juan: «También cambia el botón vender»): Vender en el menú también sin fondo, solo el ícono y el nombre */
html:root body .navsheet .navit.big:not(#_x),html:root[data-style="mostrador"]:not([data-theme="light"]) body .navsheet .navit.big:not(#_x){background:transparent!important;background-image:none!important;color:var(--fg)!important;min-height:0;padding:10px 6px!important;border-radius:16px}
html:root body .navsheet .navit.big i{width:auto!important;height:auto!important;background:transparent!important;color:var(--accent)!important}
html:root body .navsheet .navit.big i svg{width:30px!important;height:30px!important}
html:root body .navsheet .navit.big>span{color:var(--fg)!important}
html:root body .navsheet .navit.big small{color:var(--muted);opacity:1}
html:root body .navsheet .navit.big.on>span,html:root body .navsheet .navit.big.on small{color:var(--accent)!important}
html:root body .navsheet .navit.big:not(#_x){flex-direction:column!important;justify-content:center!important;align-items:center!important;text-align:center!important;gap:6px!important}
html:root body .navsheet .navit.big>span{font-size:1rem!important}
/* v651 (Juan, captura: «esas 3 fichas no se ven iguales»): en Clientes todas las tarjetas (también «Seguimiento posventa», que solo
   sale cuando hay compras de hace 2 a 7 días) van separadas y con las mismas esquinas redondeadas */
@media (max-width:1099px){#pcshare{--pc:1} 
  html:root:not(#_a):not(#_b) body #clipane>.card:not([hidden]):not(#_x){border-radius:24px!important;margin:0 0 12px!important;border-top:0!important}
  html:root:not(#_a):not(#_b) body #clipane>.card:not([hidden]):not(#_x)::before{display:none!important}
}

/* v652 (Juan: «Sigamos con la opción 1», maqueta disenos/v652-carga-anim): vuelve el ticket que sale debajo del logo mientras carga,
   en blanco sobre el color del negocio; al terminar sale el chulo verde. Su alto sigue el avance real de la carga (--spn). */
html:root body #splash .sp-tk:not(#_x){display:flex!important;flex-direction:column;align-items:center;margin-top:-6px;min-height:100px;opacity:1!important}
html:root body #splash .sp-slot:not(#_x){width:138px;height:8px;border-radius:6px;background:rgba(255,255,255,.3)!important}
html:root body #splash .sp-paper:not(#_x){width:100px;height:calc(var(--spn,0) * .96px);max-height:96px;margin-top:-3px;background:#fff!important;border:0!important;border-radius:0 0 10px 10px;padding:12px 12px 0;gap:6px;box-shadow:0 10px 20px -12px rgba(0,0,0,.4)}
html:root body #splash .sp-paper i{background:#d7dcd9!important}
html:root body #splash .sp-paper i:nth-child(1),html:root body #splash .sp-paper i:nth-child(3){width:66px}html:root body #splash .sp-paper i:nth-child(2){width:48px}html:root body #splash .sp-paper i:nth-child(4){width:36px}
html:root body #splash .sp-ok{width:22px;height:22px;border-radius:50%;background:var(--accent);padding:4px;box-sizing:border-box;margin:4px 0 10px}
html:root body #splash .sp-ok path{stroke:#fff!important;stroke-width:3.2}
html:root body #splash .splash-t{display:block!important;opacity:.85}
html:root body #splash .splash-t:not(#_x){position:static!important;width:auto!important;height:auto!important;overflow:visible!important;clip:auto!important;white-space:normal;color:#fff!important;font-weight:600;letter-spacing:0;order:1;margin-top:-4px}
html:root body #splash .sp-by{order:2}
svg.phf,svg.phf *{fill:currentColor!important;stroke:none!important}
/* v653 (Juan: «Con el ícono y nombre»): en Caja, Cerrar caja, Registrar gasto y Base o retiro también sin cuadro: solo el ícono y el nombre */
@media (max-width:1099px){
  html:root body #tab-caja #cjtop .cjacts:not(#_x){display:flex!important;justify-content:center;gap:clamp(18px,7vw,40px)!important}
  html:root:not(#_a):not(#_b) body #tab-caja #cjtop .cja:not(#_x),html:root:not(#_a):not(#_b) body #tab-caja #cjtop .cja.p:not(#_x){flex:0 0 auto;min-width:76px;min-height:0!important;padding:6px 4px!important;background:transparent!important;box-shadow:none!important;border:0!important;color:var(--fg)!important}
  html:root body #tab-caja #cjtop .cja svg{width:30px!important;height:30px!important;color:var(--accent)!important;background:transparent!important}
  html:root body #tab-caja #cjtop .cja>*:not(svg):not(span){background:transparent!important}
}
@media (max-width:1099px){html:root body #tab-caja #cjtop .cja svg{padding:0!important;border-radius:0!important}}
/* v654 (Juan, captura de Reportes en oscuro): «Hoy toca» de Reportes era una tarjeta invertida (negra en claro, blanca en oscuro);
   ahora es como las demás tarjetas, igual que «Hoy toca» de Inicio */
html:root:not(#_a):not(#_b) body #tab-reportes .rx-todo:not(#_x){background:var(--surface)!important;color:var(--fg)!important}
html:root body #tab-reportes .rx-todo .hint,html:root body #tab-reportes .rx-todo .rx-task .ts{color:var(--muted)!important}
html:root body #tab-reportes .rx-todo .rx-prog{background:var(--line)!important}
html:root body #tab-reportes .rx-todo .rx-task{border-top-color:var(--line)!important}
html:root body #tab-reportes .rx-todo .rx-ck{border-color:var(--line)!important}
html:root body #app:not(#_z) section .rx-todo .btn.rx-ghost.rx-ghost:not(#_y){background:var(--field)!important;color:var(--fg)!important}
html:root body #app:not(#_z) section .rx-todo .btn.rx-wa.rx-wa:not(#_y){background:var(--accent)!important;color:var(--accent-ink,#fff)!important}
html:root body #app section .rx-todo .btn.rx-wa svg,html:root body #app section .rx-todo .btn.rx-wa svg *{color:#fff!important;fill:#fff!important}
html[data-theme="dark"] body #app:not(#_z) section .rx-todo .btn.rx-wa.rx-wa:not(#_y),html[data-style="mostrador"]:not([data-theme="light"]) body #app:not(#_z) section .rx-todo .btn.rx-wa.rx-wa:not(#_y){background:color-mix(in srgb,var(--accent) 78%,#000)!important}
/* v655: dos tonos (Juan: «B»): la parte de relleno suave va al 20 % */
svg.phf [opacity]{opacity:.2!important}
/* v656 · Menú «¿A dónde vas?» (opción 2): tres accesos grandes y rejilla de 4 */
.navsheet .navq{display:grid;grid-template-columns:repeat(var(--qn,3),1fr);gap:8px;margin-bottom:4px}
.navsheet .navq.n2{--qn:2}.navsheet .navq.n1{--qn:1}
html:root body .navsheet .navqb:not(#_x){position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:80px;padding:14px 6px;border:0;border-radius:18px;background:var(--surface);color:var(--fg);font:800 .9rem/1.1 var(--f-body);cursor:pointer}
html:root body .navsheet .navqb svg{width:28px!important;height:28px!important;color:var(--accent)}
html:root body .navsheet .navqb.p:not(#_x){background:var(--accent);color:var(--accent-ink,#fff)}
html:root body .navsheet .navqb.p svg{color:#fff}
html[data-theme="dark"] body .navsheet .navqb.p:not(#_x),html[data-style="mostrador"]:not([data-theme="light"]) body .navsheet .navqb.p:not(#_x){background:color-mix(in srgb,var(--accent) 70%,#000)}
html:root body .navsheet .navqb.on:not(.p){box-shadow:inset 0 0 0 2px var(--accent)}
.navsheet .navqb .nfb{position:absolute;top:8px;right:10px}
.navsheet .navg4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));row-gap:14px;background:var(--surface);border-radius:22px;padding:16px 4px}
html:root body .navsheet .navt:not(#_x){position:relative;display:flex;flex-direction:column;align-items:center;gap:6px;border:0;background:none;padding:0;color:var(--fg);font:700 .78rem/1.15 var(--f-body);text-align:center;cursor:pointer;min-width:0}
.navsheet .navt i{width:50px;height:50px;border-radius:16px;display:grid;place-items:center;background:color-mix(in srgb,var(--accent) 14%,var(--surface));color:var(--accent)}
.navsheet .navt i svg{width:26px!important;height:26px!important}
.navsheet .navt>span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html:root body .navsheet .navt.on i{background:var(--accent);color:var(--accent-ink,#fff)}
html:root body .navsheet .navt.on>span{color:var(--accent)}
.navsheet .navt .navbd{position:absolute;top:-4px;right:auto;left:calc(50% + 14px)}
.navsheet .navme2{display:flex;align-items:center;gap:10px;margin-top:14px;padding:2px 4px}
.navsheet .navme2 .navwho2{flex:1;min-width:0}
.navsheet .navaj2{flex:none;display:flex;align-items:center;gap:6px;border:0;background:none;color:var(--fg);font:800 .86rem/1 var(--f-body);cursor:pointer;padding:8px 4px}
.navsheet .navaj2 svg{width:22px!important;height:22px!important;color:var(--accent)}
.navsheet .navaj2.on{color:var(--accent)}
/* v658 · Menú «¿A dónde vas?» como la opción 1: Vender grande y filas agrupadas con su dato */
html:root body .navsheet .navvend:not(#_x){position:relative;display:flex;align-items:center;gap:14px;width:100%;margin-top:12px;border:0;border-radius:20px;padding:14px 16px;background-color:var(--accent);background-image:var(--cqm2);background-repeat:no-repeat;background-size:220px;background-position:right -70px bottom -100px;color:var(--navvend-ink,#fff);font:inherit;text-align:left;cursor:pointer}
html[data-theme="dark"] body .navsheet .navvend:not(#_x),html[data-style="mostrador"]:not([data-theme="light"]) body .navsheet .navvend:not(#_x){background-color:color-mix(in srgb,var(--accent) 70%,#000)}
.navsheet .navvend i{width:44px;height:44px;border-radius:14px;background:rgba(255,255,255,.2);display:grid;place-items:center;flex:none}
.navsheet .navvend i svg{width:26px!important;height:26px!important;color:var(--navvend-ink,#fff)}
.navsheet .navvend b{display:block;font-size:1.08rem;font-weight:800}.navsheet .navvend small{display:block;font-weight:600;font-size:.82rem;opacity:.85}
.navsheet .navvend .nfb{position:absolute;top:12px;right:14px}
.navsheet .navcard{background:var(--surface);border-radius:22px;padding:2px 14px}
html:root body .navsheet .navr:not(#_x){display:flex;align-items:center;gap:14px;width:100%;padding:11px 0;border:0;border-top:1px solid var(--line);background:none;color:var(--fg);font:inherit;text-align:left;cursor:pointer}
.navsheet .navr:first-child{border-top:0!important}
.navsheet .navr i{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;flex:none;background:color-mix(in srgb,var(--accent) 14%,var(--surface));color:var(--accent)}
.navsheet .navr i svg{width:24px!important;height:24px!important}
.navsheet .navr .m{flex:1;min-width:0}.navsheet .navr .m b{display:block;font-weight:700}
.navsheet .navr .m small{display:block;color:var(--muted);font-size:.82rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.navsheet .navr .chev{color:var(--muted);font-weight:700;font-size:1.1rem}
html:root body .navsheet .navr.on i{background:var(--accent);color:var(--accent-ink,#fff)}
html:root body .navsheet .navr.on .m b{color:var(--accent)}
.navsheet .navr .navbd{position:static}
/* v658 (Juan, captura de Compras): Compra a proveedor, Solo sumar stock y Nuevo proveedor solo con el ícono y el nombre */
@media (max-width:1099px){
  html:root body #cpview .cpacts:not(#_x){display:flex!important;justify-content:center;gap:clamp(14px,6vw,34px)!important}
  html:root:not(#_a):not(#_b) body #cpview .cpacts .cja:not(#_x),html:root:not(#_a):not(#_b) body #cpview .cpacts .cja.p:not(#_x){flex:0 1 auto;min-width:76px;min-height:0!important;padding:6px 2px!important;background:transparent!important;box-shadow:none!important;border:0!important;color:var(--fg)!important;text-align:center}
  html:root body #cpview .cpacts .cja svg{width:30px!important;height:30px!important;padding:0!important;border-radius:0!important;background:transparent!important;color:var(--accent)!important}
}

/* v664 (Juan, maqueta 2 aprobada): tarjeta del Plan Separe con el equipo separado */
.apcard .fap-prod{display:grid;gap:8px;margin:0}
.apcard .fap-pi{display:flex;gap:12px;align-items:center;background:color-mix(in srgb,var(--accent) 9%,var(--card));border-radius:16px;padding:10px 12px}
.apcard .fap-pi .thumb{width:56px;height:56px;border-radius:14px;flex:none;object-fit:cover;background:var(--card)}
.apcard .fap-pi b{display:block;font-size:.98rem;font-weight:700;line-height:1.25}
.apcard .fap-pi small{display:block;color:var(--mut);font-size:.84rem;margin-top:2px;line-height:1.35}
.apcard .fap-money{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;margin:0}
.apcard .fap-money small{display:block;color:var(--mut);font-size:.8rem}
.apcard .fap-money b{display:block;font-size:1.7rem;font-weight:800;letter-spacing:-.02em;color:var(--accent)}
.apcard .fap-pct{text-align:right;color:var(--mut);font-size:.84rem}
.apcard .fap-pct b{display:block;font-size:1.2rem;color:var(--fg);font-weight:800}
/* v666 (Juan): menos espacios en la ficha, ícono del producto centrado y Crédito/Plan Separe en su ventana (celular y tablet) */
#faplist .apcard{gap:10px}
.apcard .fap-pi .thumb.ph{display:grid;place-items:center}
.apcard .fap-pi .thumb svg{width:28px;height:28px;flex:none;display:block}
.fsheet .fsheetbody>.apcard,.fsheet .fsheetbody>.trow.fia{background:none!important;border:0!important;box-shadow:none!important;padding:4px 10px 12px!important;margin:0!important;cursor:default;width:100%}
.fsheet .fsheetbody>.trow.fia{gap:10px}
.fsheet [data-dopen]{display:none!important}
/* v666: el bloque del producto también en Crédito (fuera de .apcard) */
.fi-items.fap-prod{display:grid;gap:8px;margin:0}
.fi-items .fap-pi{display:flex;gap:12px;align-items:center;border-radius:16px;padding:6px 0}
.fi-items .fap-pi .thumb{width:56px;height:56px;border-radius:14px;flex:none;object-fit:cover}
.fi-items .fap-pi .thumb.ph{display:grid;place-items:center}
.fi-items .fap-pi .thumb svg{width:28px;height:28px;flex:none;display:block}
.fi-items .fap-pi b{display:block;font-size:.98rem;font-weight:700;line-height:1.25}
.fi-items .fap-pi small{display:block;color:var(--mut);font-size:.84rem;margin-top:2px;line-height:1.35}

/* v668 (Juan, captura del menú «¿A dónde vas?»: «Me gusta como se ven esos iconos, con su fondo del color del negocio… en toda la app,
   en los accesos directos y también en las acciones rápidas de todas las pantallas»): el ícono va en un cuadro redondeado con el color
   de su ícono muy suave (el del negocio; verde en WhatsApp), como en el menú. Reemplaza el «solo ícono» de v650, v653 y v658. */
html:root:not(#_a):not(#_b) body :is(#tab-inicio #vacts.vacts2 .vact i,#tab-caja #cjtop .cja,#cpview .cpacts .cja,:is(#cpbody,#pdbody,#svdbody,#cmbody,#spbody) .cpa,.vsd-acts>.btn,#ajdata>.btn) svg:not(#_x){
  width:46px!important;height:46px!important;padding:11px!important;box-sizing:border-box!important;border-radius:14px!important;
  background:color-mix(in srgb,currentColor 14%,transparent)!important;flex:none}
html:root:not(#_a):not(#_b) body :is(#tab-inicio #vacts.vacts2 .vact,#tab-caja #cjtop .cja,#cpview .cpacts .cja,:is(#cpbody,#pdbody,#svdbody,#cmbody,#spbody) .cpa,.vsd-acts>.btn,#ajdata>.btn):not(#_x){gap:6px!important}
/* v668 (Juan: «haz que no estén tan separados»): las acciones más juntas */
html:root:not(#_a):not(#_b) body :is(#tab-inicio #vacts.vacts2,#tab-caja #cjtop .cjacts,#cpview .cpacts,:is(#cpbody,#pdbody,#svdbody,#cmbody,#spbody) .cpacts,.vsd-acts):not(#_x){gap:clamp(6px,2.5vw,14px)!important}
html:root:not(#_a):not(#_b) body :is(#tab-inicio #vacts.vacts2 .vact,#tab-caja #cjtop .cja,#cpview .cpacts .cja,:is(#cpbody,#pdbody,#svdbody,#cmbody,#spbody) .cpa,.vsd-acts>.btn):not(#_x){min-width:68px!important}
/* v668 (Juan: «Lo puedes juntar un poco más?»): todavía más juntas */
html:root:not(#_a):not(#_b) body :is(#tab-inicio #vacts.vacts2,#tab-caja #cjtop .cjacts,#cpview .cpacts,:is(#cpbody,#pdbody,#svdbody,#cmbody,#spbody) .cpacts,.vsd-acts):not(#_y):not(#_x){gap:clamp(2px,1.2vw,8px)!important}
html:root:not(#_a):not(#_b) body :is(#tab-inicio #vacts.vacts2 .vact,#tab-caja #cjtop .cja,#cpview .cpacts .cja,:is(#cpbody,#pdbody,#svdbody,#cmbody,#spbody) .cpa,.vsd-acts>.btn):not(#_y):not(#_x){min-width:64px!important}
/* v668 (Juan: «haz lo mismo en todas las subsecciones… Crédito y Plan Separe»): en sus ventanas, las acciones con ícono en cuadro
   y su nombre; «Registrar abono» sigue como botón grande */
html:root:not(#_a):not(#_b) body :is(.fsheet .apcard .svgrp .sv-ag,.fsheet .fi-acts,.fsheet .fi-tacts):not(#_x){display:flex!important;flex-wrap:wrap!important;justify-content:center!important;gap:clamp(2px,1.2vw,8px)!important;width:100%}
html:root:not(#_a):not(#_b) body .fsheet .apcard .svgrp .sv-ag>.btn.primary:not(#_x){flex:1 0 100%!important;order:-1}
html:root:not(#_a):not(#_b) body :is(.fsheet .apcard .svgrp .sv-ag>.btn:not(.primary),.fsheet .fi-acts>.btn,.fsheet .fi-tacts>.btn):not(#_x){
  flex:0 0 auto!important;width:auto!important;min-width:64px;max-width:96px;min-height:0!important;padding:4px 2px!important;background:transparent!important;box-shadow:none!important;border:0!important;
  display:flex!important;flex-direction:column!important;align-items:center!important;gap:6px!important;color:var(--fg)!important;font-weight:600;font-size:.78rem!important;line-height:1.2;text-align:center;white-space:normal}
html:root:not(#_a):not(#_b) body :is(.fsheet .apcard .svgrp .sv-ag>.btn:not(.primary),.fsheet .fi-acts>.btn,.fsheet .fi-tacts>.btn) svg:not(#_x){
  width:46px!important;height:46px!important;padding:11px!important;box-sizing:border-box!important;border-radius:14px!important;color:var(--accent);background:color-mix(in srgb,currentColor 14%,transparent)!important;flex:none}
html:root:not(#_a):not(#_b) body :is(.fsheet .apcard .svgrp .sv-ag>.btn.danger,.fsheet .fi-tacts>.btn.danger) svg:not(#_x){color:#dc2626}
html:root:not(#_a):not(#_b) body :is(.fsheet .apcard .svgrp .sv-ag>[href*="wa.me"],.fsheet .fi-acts>[href*="wa.me"]) svg:not(#_x){color:#16a34a}
html:root:not(#_a):not(#_b) body :is(.fsheet .apcard .svgrp .sv-ag>.btn:not(.primary),.fsheet .fi-acts>.btn,.fsheet .fi-tacts>.btn):active{background:var(--field)!important;border-radius:14px}
/* v668 (Juan: «también haz lo mismo con los iconos de forma de pago en todas las pantallas»): la forma de pago con su ícono en cuadro;
   la escogida lleva el cuadro lleno del color del negocio y el ícono blanco */
html:root:not(#_a):not(#_b) body :is(.mgrid .gpk,#gcard .gpk):not(#_x){background:transparent!important;border:0!important;box-shadow:none!important;min-height:0!important;padding:4px 2px!important;gap:6px!important;color:var(--fg)!important}
html:root:not(#_a):not(#_b) body :is(.mgrid .gpk,#gcard .gpk,.vpill) svg:not(#_x){width:44px!important;height:44px!important;padding:10px!important;box-sizing:border-box!important;border-radius:14px!important;color:var(--accent)!important;background:color-mix(in srgb,var(--accent) 14%,transparent)!important;flex:none}
html:root:not(#_a):not(#_b) body :is(.mgrid .gpk.on,#gcard .gpk.on,.vpill.on) svg:not(#_x){background:var(--accent)!important;color:var(--accent-ink,#fff)!important}
html:root:not(#_a):not(#_b) body :is(.mgrid .gpk.on,#gcard .gpk.on):not(#_x){color:var(--accent)!important;font-weight:700}

/* v668: en las ventanas de Crédito no sale «Ocultar» (la ✕ cierra) */
html:root:not(#_a):not(#_b) body .fsheet .fi-acts>[data-dopen]:not(#_x):not(#_y){display:none!important}
/* v668: acciones de las ventanas alineadas arriba y del mismo ancho (caben 4 por renglón) */
html:root:not(#_a):not(#_b) body :is(.fsheet .apcard .svgrp .sv-ag,.fsheet .fi-acts,.fsheet .fi-tacts):not(#_x):not(#_y){align-items:flex-start!important}
html:root:not(#_a):not(#_b) body :is(.fsheet .apcard .svgrp .sv-ag>.btn:not(.primary),.fsheet .fi-acts>.btn,.fsheet .fi-tacts>.btn):not(#_x):not(#_y){flex:0 0 76px!important;width:76px!important;min-width:0!important;max-width:76px!important}
html:root:not(#_a):not(#_b) body :is(.fsheet .apcard .svgrp .sv-ag>.btn:not(.primary),.fsheet .fi-acts>.btn,.fsheet .fi-tacts>.btn):not(#_x):not(#_y):not(#_z){align-self:flex-start!important;margin:0!important;justify-content:flex-start!important}
/* v668 (Juan: «ordénalos para que no se vean tan separados ni… que pareciera que le faltara algo»): en las ventanas de Crédito y
   Plan Separe la forma de pago va en una sola fila centrada, todas del mismo ancho (si hay más de 4, la siguiente fila también centrada) */
html:root:not(#_a):not(#_b) body .fsheet .mgrid:not(#_x):not(#_y){display:flex!important;flex-wrap:wrap!important;justify-content:center!important;align-items:flex-start!important;gap:4px!important;grid-template-columns:none!important}
html:root:not(#_a):not(#_b) body .fsheet .mgrid .gpk:not(#_x):not(#_y){flex:0 0 76px!important;width:76px!important;min-width:0!important;max-width:76px!important;font-size:.78rem!important;line-height:1.2;text-align:center;justify-content:flex-start!important;grid-column:auto!important}
/* v668 (Juan: «Y si la dejas como estaba antes, pero con los iconos nuevos?»): el carrito conserva sus cajas en 3 columnas; solo cambia
   el ícono, que va en su cuadro. En la escogida (caja del color del negocio) el cuadro es blanco suave y el ícono blanco. */
html:root:not(#_a):not(#_b) body #tab-vender #vpay .vpill svg:not(#_x){width:40px!important;height:40px!important;padding:9px!important}
html:root:not(#_a):not(#_b) body #tab-vender #vpay :is(.vpill.on,.vpill[aria-pressed="true"]) svg:not(#_x):not(#_y){background:rgba(255,255,255,.22)!important;color:#fff!important}
html:root:not(#_a):not(#_b) body #tab-vender #vpay .vpill:not(#_x){padding:8px 4px!important;gap:5px!important}

/* v670 (Juan: maqueta de Crédito y Plan Separe con el diseño de Clientes, «Si me gusta»): celular y tablet. El computador sigue igual. */
.fic2,.fcstats{display:none}
@media (max-width:1099px){#pcshare{--pc:1} 
  /* título de cada tarjeta con su ícono en cuadro, como «Mis clientes» */
  html:root body #fiapane .card>h2:has(>.fic2){display:flex!important;align-items:center;gap:12px;font-size:1.15rem!important;margin:0!important}
  html:root body #fiapane .fic2{display:grid;place-items:center;width:44px;height:44px;flex:none;border-radius:14px;background:color-mix(in srgb,var(--accent) 14%,var(--surface));color:var(--accent)}
  html:root body #fiapane .fic2 svg{width:22px;height:22px}
  /* las cajitas de números, iguales a las de Clientes */
  html:root body #fiapane .lstats{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:14px 0 10px}
  html:root body #fiapane .lstats .lst b{font-size:clamp(.95rem,4.3vw,1.2rem)!important;white-space:nowrap;overflow-wrap:normal!important}
  html:root body #fiapane #ftiles{display:none!important}
  html:root body #fiapane #fcredcard>#fstchips,html:root body #fiapane #fapchips{margin:0 0 10px!important}
  /* Crédito: el estado en color debajo del nombre, sin la etiqueta repetida de cuotas */
  html:root body #flist>.trow.fia .main{display:flex;flex-direction:column}
  html:root body #flist>.trow.fia .main>.t{order:1}
  html:root body #flist>.trow.fia .main>.fstate{order:2;margin:2px 0 0!important}
  html:root body #flist>.trow.fia .main>:not(.t):not(.fstate){order:3}
  html:root body #flist>.trow.fia .main>.t .pill.low{display:none!important}
  html:root:not(#_a) body #flist>.trow.fia .fstate .pill{background:none!important;padding:0!important;border:0!important;font-weight:800;color:var(--accent)!important}
  html:root:not(#_a) body #flist>.trow.fia .fstate.late .pill{color:var(--bad,#dc2626)!important}
  html:root:not(#_a) body #flist>.trow.fia .fstate.today .pill{color:#b45309!important}
  html:root body #flist>.trow.fia .fi-bart{display:none!important}
  /* Plan Separe: la lista va dentro de la tarjeta, en filas separadas por una línea */
  html:root body #fapcard .fapsrow{margin:0 0 4px}
  html:root body #faplist .fap-h{display:none!important}
  html:root:not(#_a):not(#_b) body #faplist>.apcard:not(#_x){background:none!important;border:0!important;box-shadow:none!important;border-radius:0!important;padding:12px 0!important;margin:0!important;border-top:1px solid var(--line)!important;width:100%!important}
  html:root:not(#_a):not(#_b) body #faplist>.apcard:first-of-type:not(#_x){border-top:0!important}
  /* fila compacta: foto del equipo, cliente, equipo, N° y avance, saldo a la derecha */
  html:root body #faplist>.apcard:not(.apo){display:grid!important;grid-template-columns:48px minmax(0,1fr) auto;column-gap:12px;row-gap:2px;align-items:center}
  html:root body #faplist>.apcard:not(.apo) .fap-prod,html:root body #faplist>.apcard:not(.apo) .fap-pi:first-child{display:contents!important}
  html:root body #faplist>.apcard:not(.apo) .fap-pi:not(:first-child){display:none!important}
  html:root body #faplist>.apcard:not(.apo) .fap-pi>.thumb{grid-column:1;grid-row:1/4;width:48px!important;height:48px!important;align-self:start}
  html:root body #faplist>.apcard:not(.apo)>.row{grid-column:2;grid-row:1;display:block!important;padding:0!important}
  html:root body #faplist>.apcard:not(.apo)>.row>b{display:block;font-size:1rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  html:root body #faplist>.apcard:not(.apo)>.row>.hint{display:none!important}
  html:root body #faplist>.apcard:not(.apo) .fap-pi>span{grid-column:2;grid-row:2;min-width:0}
  html:root body #faplist>.apcard:not(.apo) .fap-pi>span b{font-weight:500!important;font-size:.85rem!important;color:var(--muted)!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  html:root body #faplist>.apcard:not(.apo) .fap-pi>span small{display:none!important}
  html:root body #faplist>.apcard:not(.apo) .fap-money{grid-column:3;grid-row:1/3;display:block!important;text-align:right;margin:0!important}
  html:root body #faplist>.apcard:not(.apo) .fap-money>div:first-child small{display:none}
  html:root body #faplist>.apcard:not(.apo) .fap-money b{font-size:1rem!important;color:var(--fg)!important}
  html:root body #faplist>.apcard:not(.apo) .fap-money>div:first-child::after{content:"saldo";display:block;color:var(--muted);font-size:.75rem}
  html:root body #faplist>.apcard.rdy:not(.apo) .fap-money>div:first-child{display:none}
  html:root body #faplist>.apcard:not(.apo) .fap-pct{display:none!important}
  html:root body #faplist>.apcard:not(.apo) .ap-bar{grid-column:2/4;grid-row:3;height:6px!important;margin:6px 0 0!important}
  html:root body #faplist>.apcard:not(.apo)>.hint{grid-column:2/4;grid-row:4;font-size:.8rem!important;margin:2px 0 0!important}
}
@media (max-width:1099px){#pcshare{--pc:1} 
  /* v670: fichas y buscador del Plan Separe iguales a los de Crédito */
  html:root body #fapchips{display:flex!important;flex-wrap:nowrap!important;gap:8px;overflow-x:auto;scrollbar-width:none}
  #fapchips::-webkit-scrollbar{display:none}
  html:root body #fapchips .mchip{flex:none;border:0!important;border-radius:999px!important;padding:8px 14px!important;font:700 .85rem/1.2 var(--f-body)!important;background:var(--field,#efefec)!important;color:var(--fg)!important;box-shadow:none!important}
  html:root body #fapchips .mchip.on{background:var(--fg)!important;color:var(--surface)!important}
  #fapchips .mchip b{margin-left:2px}
  #fapcard .fapsrow{display:flex;gap:8px;align-items:center}
  #fapcard .fapsrow>label.f{flex:1;min-width:0;margin:0;position:relative;font-size:0;gap:0}
  #fapcard .fapsrow>label.f::before{content:"";position:absolute;left:14px;top:50%;width:20px;height:20px;transform:translateY(-50%);z-index:1;pointer-events:none;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa3b2' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='m16 16 4.5 4.5'/%3E%3C/svg%3E") center/20px no-repeat}
  html:root body #fapcard #fapq{font-size:1rem;padding-left:46px!important;border:0!important;background:var(--field,#efefec)!important;border-radius:14px!important;min-height:48px;box-shadow:none!important}
  /* Crédito: fichas más cortas para que quepan las cuatro */
  html:root body #fcredcard>#fstchips .mchip{padding:8px 11px!important;font-size:.8rem!important}
}
/* v670: en Crédito, la foto del producto en lugar de la inicial cuando el cliente tiene un solo producto */
html:root:not(#_a) body #flist .fav.favth{background:none!important;padding:0!important;border-radius:12px!important;overflow:hidden;display:grid;place-items:center}
html:root:not(#_a) body #flist .fav.favth .thumb{width:100%!important;height:100%!important;border-radius:12px!important;margin:0!important}
html:root:not(#_a) body #flist .fav.favth .thumb.ph{display:grid;place-items:center}
html:root:not(#_a) body #flist .fav.favth .thumb svg{width:55%!important;height:55%!important}

/* v671 (Juan, captura del iPhone): 1) el ojo de Inventario y Facturas centrado con el texto, y el valor oculto borroso en vez de círculos;
   2) en la pantalla del PIN, «Desarrollado por JC Tech» no se corta abajo (espacio de la barra de inicio del iPhone) */
html:root body :is(#ihero2,#fhero2) .k{display:flex!important;align-items:center;justify-content:center;gap:6px}
html:root body :is(#ihero2,#fhero2) .ih-eye{display:inline-grid!important;place-items:center;line-height:0;margin:0!important;vertical-align:middle}
html:root body :is(#ihero2,#fhero2) .ih-eye svg{display:block}
.hidval{position:relative;display:inline-block;user-select:none;-webkit-user-select:none;pointer-events:none;vertical-align:baseline}
/* v743 (Juan, 2026-11-11: «ponle una más minimalista» y «ponle mejor los asteriscos»): un valor oculto se muestra como «$ ••••••» (como en los textos de Valor), que aparece con un fundido suave. Ya no hay número tachado ni garabatos. */
.hidval .hv-t{display:inline-block;position:relative;top:.16em;letter-spacing:.08em;animation:hvfade .3s ease-out both}
@keyframes hvfade{from{opacity:0}to{opacity:1}}
@media (prefers-reduced-motion:reduce){.hidval .hv-t{animation:none}}
html:root body #auth .auth.pad .asheet{padding-bottom:calc(env(safe-area-inset-bottom,0px) + 18px)!important}
html:root body #auth .auth.pad .asheet>.credit{flex:none;padding-bottom:2px!important;line-height:1}

/* v675 (Juan: «no se puede poner igual?»): la ventana de Crédito igual a la del Plan Separe */
.fipay .fi-old{display:none}
.fipay .fap-money{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;margin:0}
.fipay .fap-money small{display:block;color:var(--mut,var(--muted));font-size:.8rem}
.fipay .fap-money b{display:block;font-size:1.7rem;font-weight:800;letter-spacing:-.02em;color:var(--accent)}
.fipay .fap-pct{text-align:right;color:var(--mut,var(--muted));font-size:.84rem}
.fipay .fap-pct b{display:block;font-size:1.2rem;color:var(--fg);font-weight:800}
.fipay .ap-bar{height:8px;border-radius:99px;background:var(--line);overflow:hidden;width:100%}
.fipay .ap-bar i{display:block;height:100%;background:var(--accent);border-radius:99px}
.fipay .fi-pays{display:flex;flex-direction:column;gap:6px}
@media (max-width:1099px){#pcshare{--pc:1} 
  html:root:not(#_a) body .fsheet .fsheetbody>.trow.fia{gap:12px}
  html:root:not(#_a) body .fsheet .fsheetbody>.trow.fia .fav,html:root:not(#_a) body .fsheet .fsheetbody>.trow.fia .fi-bar,html:root:not(#_a) body .fsheet .fsheetbody>.trow.fia .fi-bart,html:root:not(#_a) body .fsheet .fsheetbody>.trow.fia .main>.t .pill.low{display:none!important}
  html:root body .fsheet .fsheetbody>.trow.fia .main{display:flex;flex-direction:column}
  html:root body .fsheet .fsheetbody>.trow.fia .main>.t{order:1;font-size:1.05rem;font-weight:700}
  html:root body .fsheet .fsheetbody>.trow.fia .main>.fstate{order:2;margin:2px 0 0!important}
  html:root body .fsheet .fsheetbody>.trow.fia .main>:not(.t):not(.fstate){order:3}
  html:root:not(#_a) body .fsheet .fsheetbody>.trow.fia .fstate .pill{background:none!important;padding:0!important;border:0!important;font-weight:800;color:var(--accent)!important}
  html:root:not(#_a) body .fsheet .fsheetbody>.trow.fia .fstate.late .pill{color:var(--bad,#dc2626)!important}
  html:root:not(#_a) body .fsheet .fsheetbody>.trow.fia .fstate.today .pill{color:#b45309!important}
  /* cada venta dentro de la ventana, sin tarjeta encima de otra, separada por una línea */
  html:root:not(#_a):not(#_b) body .fsheet .fsheetbody>.trow.fia>.fipay:not(#_x){background:none!important;border:0!important;box-shadow:none!important;border-radius:0!important;padding:14px 0 0!important;border-top:1px solid var(--line)!important;gap:10px}
}
@media (max-width:1099px){#pcshare{--pc:1} 
  /* v675: arriba solo el nombre (como el Plan Separe) y las cinco acciones de Crédito en una sola fila */
  html:root:not(#_a) body .fsheet .fsheetbody>.trow.fia .main>.t .pill{display:none!important}
  html:root:not(#_a):not(#_b) body .fsheet .fi-tacts:not(#_x):not(#_y):not(#_z){flex-wrap:nowrap!important;gap:2px!important;justify-content:space-between!important}
  html:root:not(#_a):not(#_b) body .fsheet .fi-tacts>.btn:not(#_x):not(#_y):not(#_z){flex:1 1 0!important;width:auto!important;max-width:76px!important;min-width:0!important}
}
@media (max-width:1099px){#pcshare{--pc:1} html:root:not(#_a):not(#_b) body .fsheet .fipay .btn.primary[data-abonar]:not(#_x){min-height:56px!important;font-size:1.05rem!important;border-radius:16px!important}}

/* v676 (Juan, maqueta disenos/v674-pc aprobada: «Si me gusta todo»): Inventario en el computador nuevo, como Ventas: sin el título de
   arriba, el bloque de color con el valor a la izquierda y los botones grandes a la derecha; lo demás viene del celular (#pcshare) */
@media (min-width:1100px){
  html.pc2 body #app[data-tab="inventario"]:not(#_x):not(#_y) header.top{display:none!important}
  html.pc2 body #tab-inventario #ihero2:not(#_x){display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:28px;align-items:center;margin:18px 0 16px!important;padding:22px 26px!important;border-radius:26px!important;text-align:left}
  html.pc2 body #ihero2>*{grid-column:1}
  html.pc2 body #ihero2 .k{justify-content:flex-start}
  html.pc2 body #ihero2>.pcacts{display:grid;grid-column:2;grid-row:1/span 6;grid-template-columns:repeat(2,minmax(170px,1fr));gap:10px}
  html.pc2 body #ihero2 .vqpills{justify-content:flex-start}
  html.pc2 body #ihero2 .vqpill{white-space:nowrap}
  html.pc2 body #ihero2{background-size:520px,320px!important;background-position:right 24% bottom -250px,left -130px bottom -190px!important}
  html.pc2 body #tab-inventario #ihero2 .vnum{font-size:2.6rem}
  /* filas de la lista más aireadas en pantalla ancha */
  html.pc2 body #ilist .item.inv:has(>.ir2){padding:12px 4px!important}
  html.pc2 body #ilist .ir2>.thumb{width:48px;height:48px}
}
@media (min-width:1100px){
  /* v676: pestañas de Inventario en barra gris (como en el celular) y sin los títulos de columna de la tabla vieja */
  html.pc2 body #invseg:not(#_x){display:inline-flex!important;gap:2px!important;padding:4px!important;background:color-mix(in srgb,var(--fg) 7%,transparent)!important;border:0!important;border-radius:16px!important;box-shadow:none!important;margin-bottom:4px}
  html.pc2 body #invseg>button:not(#_x){flex:none;min-height:40px;padding:0 20px;border:0!important;border-radius:12px!important;background:transparent!important;color:var(--muted)!important;font-weight:700!important;box-shadow:none!important}
  html.pc2 body #invseg>button:is(.on,[aria-selected="true"],[aria-pressed="true"]):not(#_x){background:var(--surface)!important;color:var(--fg)!important;box-shadow:0 2px 8px -4px rgba(0,0,0,.25)!important}
  html.pc2 body #ilist .thead.inv-h{display:none!important}
}

/* v676: Clientes y Crédito y Plan Separe en el computador nuevo (maqueta disenos/v674-pc) */
.clhero2{display:none}
@media (min-width:1100px){
  html.pc2 body #app[data-tab="fiado"]:not(#_x):not(#_y) header.top{display:none!important}
  html.pc2 body #tab-fiado #clhero2:not(:empty){display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:28px;align-items:center;margin:18px 0 16px;padding:22px 26px;border-radius:26px;background:var(--hdr,var(--accent));color:var(--hdr-ink,var(--accent-ink,#fff));text-align:left;position:relative;overflow:hidden}
  html[data-style="mostrador"]:not([data-theme="light"]).pc2 body #tab-fiado #clhero2{background:var(--hdr,color-mix(in srgb,var(--accent) 55%,#000))}
  html.pc2 body #clhero2>*{grid-column:1}
  html.pc2 body #clhero2 .k{font-family:var(--f-display);font-weight:800;font-size:1.05rem}
  html.pc2 body #clhero2 .s{opacity:.85;font-size:.9rem;margin-top:2px}
  html.pc2 body #clhero2 .vnum{font-family:var(--f-display);font-weight:800;font-size:2.6rem;letter-spacing:-.04em;line-height:1.05;margin:2px 0 12px}
  html.pc2 body #clhero2 .vqpills{display:flex;gap:6px;flex-wrap:wrap}
  html.pc2 body #clhero2 .vqpill{font-size:.78rem;font-weight:700;padding:5px 11px;border-radius:99px;background:rgba(255,255,255,.18);color:var(--hdr-ink,#fff);white-space:nowrap}
  html.pc2 body #clhero2 .vqpill.dk{background:#111;color:#fff}
  html.pc2 body #clhero2>.pcacts{display:grid;grid-column:2;grid-row:1/span 6;grid-template-columns:repeat(2,minmax(170px,1fr));gap:10px}
  /* pestañas en barra gris */
  html.pc2 body :is(#cliseg,#fseg):not(#_x){display:inline-flex!important;width:auto;gap:2px!important;padding:4px!important;background:color-mix(in srgb,var(--fg) 7%,transparent)!important;border:0!important;border-radius:16px!important;box-shadow:none!important;margin:0 0 14px}
  html.pc2 body :is(#cliseg,#fseg)>button:not(#_x){flex:none;min-height:40px;padding:0 20px;border:0!important;border-radius:12px!important;background:transparent!important;color:var(--muted)!important;font-weight:700!important;box-shadow:none!important}
  html.pc2 body :is(#cliseg,#fseg)>button:is(.on,[aria-selected="true"],[aria-pressed="true"]):not(#_x){background:var(--surface)!important;color:var(--fg)!important;box-shadow:0 2px 8px -4px rgba(0,0,0,.25)!important}
  /* Crédito y Plan Separe: las dos tarjetas lado a lado (sin las pestañas Crédito / Plan Separe ni el bloque verde viejo) */
  html.pc2 body #fiapane:not([hidden]){display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;align-items:start}
  html.pc2 body #fiapane>*{grid-column:1/-1}
  html.pc2 body #fiapane>#fseg,html.pc2 body #fiapane>#ftiles{display:none!important}
  html.pc2 body #fiapane>#fcredcard{grid-column:1;grid-row:2}
  html.pc2 body #fiapane>#fapcard{grid-column:2;grid-row:2}
  html.pc2 body #fiapane>#fcredcard[hidden],html.pc2 body #fiapane>#fapcard[hidden],html.pc2 body #fiapane>#fhistcard[hidden],html.pc2 body #fiapane>#fsumcard[hidden]{display:block!important}
  html.pc2 body #fiapane>#fhistcard{grid-column:1}
  html.pc2 body #fiapane>#fsumcard{grid-column:2}
}
@media (min-width:1100px){
  /* v676: las cajitas de números, la lista de Crédito en filas (no en tabla) y las etiquetas del bloque a la izquierda */
  html.pc2 body #clhero2 .vqpills{justify-content:flex-start!important}
  html.pc2 body :is(#fiapane,#clipane) .lstats:not(#_x){display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:14px 0 10px}
  html.pc2 body :is(#fiapane,#clipane) .lstats .lst:not(#_x){display:flex;flex-direction:column;align-items:flex-start;gap:2px;background:var(--field,#efefec);border:0;border-radius:16px;padding:12px;color:var(--fg);text-align:left;min-width:0;font:inherit}
  html.pc2 body :is(#fiapane,#clipane) .lstats .lst b{font-family:var(--f-display);font-size:1.2rem!important;letter-spacing:-.02em;white-space:nowrap}
  html.pc2 body :is(#fiapane,#clipane) .lstats .lst span{color:var(--muted);font-size:.8rem}
  html.pc2 body :is(#fiapane,#clipane) .lstats .lst.bad b{color:var(--bad,#b3261e)}
  html.pc2 body #flist .thead,html.pc2 body #flist>.msort{display:none!important}
  html.pc2 body #flist>.item.trow.fia:not(#_x){display:block!important;grid-template-columns:none!important;padding:12px 4px!important;min-height:0;border-bottom:1px solid var(--line)}
  html.pc2 body #flist>.item.trow.fia .trow-r:not(#_x){display:flex!important;align-items:flex-start;gap:12px;width:100%}
  html.pc2 body #flist>.item.trow.fia .main:not(#_x){display:flex!important;flex-direction:column;flex:1;min-width:0}
  html.pc2 body #flist>.item.trow.fia .trow-r>.num{margin-left:auto;white-space:nowrap}
  html.pc2 body #flist .fav{width:42px;height:42px;flex:none}
}
@media (min-width:1100px){
  /* v676: sin espacio de más arriba de las tarjetas; en Clientes, «⋯» y «+» no tapan las cajitas y sin el botón de vista */
  html.pc2 body #fiapane>#fsedebar:empty{display:none!important}
  html.pc2 body #clistcard .lstats:not(#_y){margin-top:30px!important}
  html.pc2 body #clistcard .vsw{display:none!important}
}
@media (min-width:1100px){
  /* v676: Crédito, las tarjetas de abajo en su fila; Clientes, la lista en filas (tocar abre el perfil) */
  html.pc2 body #fiapane>#fhistcard{grid-row:3}
  html.pc2 body #fiapane>#fsumcard{grid-row:3}
  html.pc2 body #clist .thead,html.pc2 body #clistcard .msort{display:none!important}
  html.pc2 body #clist>.item.trow.cli:not(#_x){display:flex!important;grid-template-columns:none!important;align-items:center;gap:14px;padding:12px 4px!important;min-height:0;border-bottom:1px solid var(--line);cursor:pointer}
  html.pc2 body #clist>.item.trow.cli>.main:not(#_x){display:flex!important;flex-wrap:wrap;align-items:center;column-gap:18px;row-gap:3px;flex:1;min-width:0}
  html.pc2 body #clist>.item.trow.cli>.main>.t{flex-basis:100%;display:flex;align-items:center;gap:10px;font-weight:700}
  html.pc2 body #clist>.item.trow.cli>.main>.s{color:var(--muted);font-size:.86rem}
  html.pc2 body #clist>.item.trow.cli>.main>.s:empty{display:none}
  html.pc2 body #clist>.item.trow.cli>.row{display:none!important}
}
@media (min-width:1100px){
  /* v676: en Crédito, el celular y las ventas son una sola línea debajo del nombre (en la tabla vieja eran celdas sueltas) */
  html.pc2 body #flist>.item.trow.fia .main>.s:not(#_x){display:block!important;order:3!important;color:var(--muted);font-size:.86rem}
  html.pc2 body #flist>.item.trow.fia .main>.s .tc{display:inline!important}
}
@media (min-width:1100px){html.pc2 body #flist>.item.trow.fia .main>.s .tc+.tc::before{content:"·";margin:0 6px;color:var(--muted)}}
@media (min-width:1100px){
  /* v676: dentro de la ventana de Crédito, la fila del cliente tampoco es tabla */
  html.pc2 body .fsheet .fsheetbody>.item.trow.fia:not(#_x){display:flex!important;flex-direction:column;align-items:stretch;grid-template-columns:none!important;min-height:0}
  html.pc2 body .fsheet .fsheetbody>.item.trow.fia .trow-r:not(#_x){display:flex!important;align-items:flex-start;gap:12px;width:100%}
  html.pc2 body .fsheet .fsheetbody>.item.trow.fia .main:not(#_x){display:flex!important;flex-direction:column;flex:1;min-width:0}
  html.pc2 body .fsheet .fsheetbody>.item.trow.fia .main>.s:not(#_x){display:block!important;order:3!important;color:var(--muted);font-size:.86rem}
  html.pc2 body .fsheet .fsheetbody>.item.trow.fia .main>.s .tc{display:inline!important}
  html.pc2 body .fsheet .fsheetbody>.item.trow.fia .main>.s .tc+.tc::before{content:"·";margin:0 6px;color:var(--muted)}
  html.pc2 body .fsheet .fsheetbody>.item.trow.fia .trow-r>.num{margin-left:auto;white-space:nowrap}
  html.pc2 body .fsheet .fsheetbody>.item.trow.fia>*{grid-column:auto!important}
}
@media (min-width:1100px){html.pc2 body .fsheet .fsheetbody>.item.trow.fia:not(#_x):not(#_y){flex-direction:column!important;flex-wrap:nowrap!important}}
@media (min-width:1100px){html.pc2 body .fsheet .fi-acts>.btn svg:not(#_x){display:block!important}}

/* v677 (Juan: «Si haz todas esas»): Facturas, Servicio, Cotizar, Reportes, Catálogo y Compras en el computador nuevo, como Inventario:
   sin el título de arriba, el bloque de color con el número a la izquierda y los botones grandes a la derecha */
@media (min-width:1100px){
  html.pc2 body #app:is([data-tab="facturas"],[data-tab="servicio"],[data-tab="cotizar"],[data-tab="reportes"],[data-tab="catalogo"]):not(#_x):not(#_y) header.top{display:none!important}
  html.pc2 body :is(#fhero2,#svhero2,#qhero2,#rphero2,#cathero2,#cphero2):not(#_x):not(#_y){display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:28px;align-items:center;margin:18px 0 16px!important;padding:22px 26px!important;border-radius:26px!important;text-align:left}
  html.pc2 body :is(#fhero2,#svhero2,#qhero2,#rphero2,#cathero2,#cphero2)>*{grid-column:1}
  html.pc2 body :is(#fhero2,#svhero2,#qhero2,#rphero2,#cathero2,#cphero2) .k{justify-content:flex-start}
  html.pc2 body :is(#fhero2,#svhero2,#qhero2,#rphero2,#cathero2,#cphero2)>.pcacts{display:grid;grid-column:2;grid-row:1/span 8;grid-template-columns:repeat(2,minmax(170px,1fr));gap:10px}
  html.pc2 body :is(#fhero2,#svhero2,#qhero2,#rphero2,#cathero2,#cphero2) :is(.vqpills,.vqchips){justify-content:flex-start}
  html.pc2 body :is(#fhero2,#svhero2,#qhero2,#rphero2,#cathero2,#cphero2) .vqpill{white-space:nowrap}
  html.pc2 body :is(#fhero2,#svhero2,#qhero2,#rphero2,#cathero2,#cphero2) .vnum{font-size:2.6rem}
  html.pc2 body :is(#fhero2,#svhero2,#qhero2,#rphero2,#cathero2,#cphero2){background-size:520px,320px!important;background-position:right 24% bottom -250px,left -130px bottom -190px!important}
}
@media (min-width:1100px){
  /* v677: pestañas de Catálogo y Servicio en barra gris, como las demás */
  html.pc2 body #catseg:not(#_x){display:inline-flex!important;width:auto;gap:2px!important;padding:4px!important;background:color-mix(in srgb,var(--fg) 7%,transparent)!important;border:0!important;border-radius:16px!important;box-shadow:none!important;margin:0 0 14px}
  html.pc2 body #catseg>button:not(#_x){flex:none;min-height:40px;padding:0 20px;border:0!important;border-radius:12px!important;background:transparent!important;color:var(--muted)!important;font-weight:700!important;box-shadow:none!important}
  html.pc2 body #catseg>button:is(.on,[aria-selected="true"]):not(#_x){background:var(--surface)!important;color:var(--fg)!important;box-shadow:0 2px 8px -4px rgba(0,0,0,.25)!important}
}
@media (min-width:1100px){
  /* v677: Servicio en una sola columna (el formulario de recibir un equipo abre en su ventana) */
  html.pc2 body #tab-servicio:not([hidden]):not(#_x){display:block!important;grid-template-columns:none!important}
  html.pc2 body #tab-servicio>*{grid-column:auto!important;max-width:none!important;width:auto}
}

/* v679 (Juan: «Pasa ajuste y vender al nuevo diseño»): Ajustes y Vender en el computador nuevo, con el bloque de color arriba;
   debajo siguen su distribución (secciones a la izquierda en Ajustes; productos y carrito lado a lado en Vender) */
.vdhero2,#vdhero2{display:none}
@media (min-width:1100px){
  html.pc2 body #app:is([data-tab="ajustes"],[data-tab="vender"]):not(#_x):not(#_y) header.top{display:none!important}
  /* Ajustes: la tarjeta del negocio en el bloque de color */
  html.pc2 body #tab-ajustes>#ajhero2:not([hidden]):not(#_x){display:grid!important;grid-template-columns:minmax(0,1fr) auto;column-gap:28px;align-items:center;margin:18px 0 16px!important;padding:22px 26px!important;border-radius:26px!important;background:var(--hdr,var(--accent));color:var(--hdr-ink,var(--accent-ink,#fff));text-align:left}
  html[data-style="mostrador"]:not([data-theme="light"]).pc2 body #tab-ajustes>#ajhero2{background:var(--hdr,color-mix(in srgb,var(--accent) 55%,#000))}
  html.pc2 body #tab-ajustes>#ajhero2::before{content:"Ajustes";grid-column:1;display:block;font-family:var(--f-display);font-weight:800;font-size:1.05rem;color:var(--hdr-ink,var(--accent-ink,#fff));margin:0 0 12px}
  html.pc2 body #ajhero2>.ajbiz{grid-column:1;display:flex;align-items:center;gap:14px;background:rgba(255,255,255,.14);border-radius:20px;padding:14px;max-width:560px}
  html.pc2 body #ajhero2 .ajblogo{width:56px;height:56px;border-radius:16px;flex:none;object-fit:cover;background:#fff}
  html.pc2 body #ajhero2 .ajblogo.ini{display:grid;place-items:center;color:#111;font-weight:800;font-size:1.25rem}
  html.pc2 body #ajhero2 .ajbm{flex:1;min-width:0}
  html.pc2 body #ajhero2 .ajbm b{display:block;font-family:var(--f-display);font-size:1.15rem;font-weight:800}
  html.pc2 body #ajhero2 .ajbm small{display:block;opacity:.85;font-size:.85rem}
  html.pc2 body #ajhero2 .ajbpl{flex:none;background:#16181c;color:#fff;border-radius:999px;padding:5px 12px;font-weight:800;font-size:.78rem}
  html.pc2 body #ajhero2>.pcacts{display:grid;grid-column:2;grid-row:1/span 4;grid-template-columns:repeat(2,minmax(170px,1fr));gap:10px}
  /* Vender: el bloque de color de lado a lado, encima de productos y carrito */
  html.pc2 body #tab-vender>#vdhero2{display:grid;grid-column:1/-1;grid-template-columns:minmax(0,1fr) auto;column-gap:28px;align-items:center;margin:18px 0 16px;padding:22px 26px;border-radius:26px;background:var(--hdr,var(--accent));color:var(--hdr-ink,var(--accent-ink,#fff));text-align:left}
  html[data-style="mostrador"]:not([data-theme="light"]).pc2 body #tab-vender>#vdhero2{background:var(--hdr,color-mix(in srgb,var(--accent) 55%,#000))}
  html.pc2 body #vdhero2>*{grid-column:1}
  html.pc2 body #vdhero2 .k{font-family:var(--f-display);font-weight:800;font-size:1.05rem}
  html.pc2 body #vdhero2 .s{opacity:.85;font-size:.9rem;margin-top:2px}
  html.pc2 body #vdhero2 .vnum{font-family:var(--f-display);font-weight:800;font-size:2.6rem;letter-spacing:-.04em;line-height:1.05;margin:2px 0 12px}
  html.pc2 body #vdhero2 .vqpills{display:flex;gap:6px;flex-wrap:wrap}
  html.pc2 body #vdhero2 .vqpill{font-size:.78rem;font-weight:700;padding:5px 11px;border-radius:99px;background:rgba(255,255,255,.18);color:var(--hdr-ink,#fff);white-space:nowrap}
  html.pc2 body #vdhero2 .vqpill.dk{background:#111;color:#fff}
  html.pc2 body #vdhero2>.pcacts{display:grid;grid-column:2;grid-row:1/span 5;grid-template-columns:repeat(2,minmax(170px,1fr));gap:10px}
  /* tarjetas de Vender con las esquinas del diseño nuevo */
  html.pc2 body #tab-vender>.card:not(#_x){border-radius:24px!important;border:0!important}
  html.pc2 body #tab-ajustes>.card:not(#_x){border-radius:24px!important}
}
@media (min-width:1100px){
  /* v679: Vender, el bloque arriba y debajo productos (izquierda) y carrito (derecha) en la misma fila */
  html.pc2 body #tab-vender>#vdhero2:not(#_x){grid-row:1!important}
  html.pc2 body #tab-vender>.vvcard:not(#_x){grid-row:2!important;grid-column:1!important}
  html.pc2 body #tab-vender>.cartcard:not(#_x){grid-row:2!important;grid-column:2!important}
  html.pc2 body :is(#vdhero2,#ajhero2) .vqpills{justify-content:flex-start!important}
}

/* v682 (Juan, video del iPhone): «Buscar en todo» con el teclado abierto. La ventana ocupa justo lo que se ve (--vvh), arriba quedan
   el título y el campo, y solo la lista de resultados se desplaza. Antes el alto fijo (100dvh) la dejaba más alta que lo visible y el campo se salía por arriba. */
@media (max-width:1099px){
  html.kb-open:root body #gsmodal:not(#_x){align-items:flex-start!important;top:var(--vvt,0px)!important;height:var(--vvh,100%)!important;bottom:auto!important}
  html.kb-open:root body #gsmodal>.dlg:not(#_x){height:100%!important;max-height:100%!important;border-radius:0 0 22px 22px!important;padding-top:calc(12px + var(--sat,0px))!important;padding-bottom:12px!important}
  html:root body #gsmodal #gsres{flex:1 1 auto;min-height:0}
  html:root body #gsmodal .gshd,html:root body #gsmodal label.f{flex:none}
}

/* v683: aviso de unidades apartadas en Plan Separe en la ficha del producto */
#app .cpresv,body .cpresv{margin:-4px 2px 8px;text-align:right;color:var(--muted);font-size:.85rem}

/* v684: «Mis clientes» no se cierra: su título no lleva la flecha de abrir y cerrar */
html body #clistcard.card.fold>h2{cursor:default}html body #clistcard.card.fold>h2::after{display:none!important}
/* v685 (Juan: «El botón de los 3 puntos no está alineado con el título»): «⋯» va dentro del título de «Mis clientes» y se centra con él (antes iba a 16 px fijos del borde) */
html body #clistcard>h2>.lhd-acts{display:flex!important;position:static!important;margin-left:auto;gap:8px;top:auto;right:auto}
html body #clistcard>h2>.lhd-acts .btn{width:44px;height:44px;min-height:0;padding:0;border-radius:14px;display:grid;place-items:center}
html body #clistcard>h2>.lhd-acts .btn[hidden]{display:none!important}
/* v686 (Juan: «Organizar bien el botón de filtro en inventario… y los demás»): el panel de Filtros abierto va en su propia línea,
   a todo el ancho, debajo del buscador y sus botones (antes, en Inventario quedaba apretado al lado de la lupa) */
html body :is(.sbar,.row,.vqchips):has(>.fpanel:not([hidden])){flex-wrap:wrap!important}
html body .fpanel:not([hidden]){flex:1 1 100%!important;width:100%;max-width:100%;box-sizing:border-box}
html body :is(.sbar,.row,.vqchips)>.fpanel:not([hidden]){order:99}
/* v686: el panel de Filtros de productos (ahora debajo de las fichas) solo en Productos */
html[data-invsub="compras"] #tab-inventario #fp-inv,html[data-invsub="tools"] #tab-inventario #fp-inv{display:none!important}

/* v687 (Juan: «Hazlo como en el pc y quita los cuadritos»): Clientes en el celular con el número grande arriba (Por cobrar), como las
   demás pantallas; el título pequeño sale del data-t (Clientes o Crédito y Plan Separe). Sin las tres cajitas de «Mis clientes». */
@media (max-width:1099px){
  html:root body #tab-fiado #clmhero:not(:empty){display:block;margin:0 -16px 14px;padding:6px 20px 24px;background:var(--hdr,var(--accent));color:var(--hdr-ink,var(--accent-ink,#fff));border-radius:0 0 32px 32px;text-align:center}
  html:root[data-style="mostrador"]:not([data-theme="light"]) body #tab-fiado #clmhero{background:var(--hdr,color-mix(in srgb,var(--accent) 55%,#000))}
  #clmhero::before{content:attr(data-t);display:block;font-family:var(--f-display);font-weight:800;font-size:1.05rem;letter-spacing:-.01em;color:var(--hdr-ink,var(--accent-ink,#fff));margin:2px 0 6px}
  #clmhero .k{opacity:.75;font-size:.85rem}
  #clmhero .vnum{font-family:var(--f-display);font-weight:800;font-size:clamp(2.2rem,11vw,3rem);letter-spacing:-.04em;line-height:1.05;margin:2px 0 12px}
  html:root body #app[data-tab="fiado"]:not(#_x):not(#_y) header.top{border-radius:0!important;margin-bottom:0!important;padding-bottom:4px!important}
  html:root body #app[data-tab="fiado"]:not(#_x):not(#_y) header.top .ptitle{display:none!important}
  html:root body #clistcard #clistats{display:none!important}
}
html.pc2 #clmhero{display:none!important}

/* v691 (punto 63): «Atajos de teclado» en el menú de la inicial, solo donde hay teclado y mouse */
.umenu .pconly{display:none}
@media (hover:hover) and (pointer:fine) and (min-width:900px){.umenu .pconly{display:flex}}

/* v692 · Menú del usuario en el computador: al lado de la barra, con ícono en cuadro, sin el recuadro de Legal en dos columnas */
html.pc2 body #umenu.fromnav{width:320px;min-width:320px!important;max-width:320px;padding:10px;border-radius:22px;max-height:calc(100vh - 24px);overflow-y:auto;box-shadow:0 18px 50px rgba(0,0,0,.35)}
html.pc2 body #umenu.fromnav .uwho{padding:6px 8px 12px;margin-bottom:6px}
html.pc2 body #umenu.fromnav .uwho b{font-size:1.05rem}
html.pc2 body #umenu.fromnav .uitem{min-height:46px;padding:5px 8px;gap:12px;border-radius:14px;font-size:.95rem;font-weight:600}
html.pc2 body #umenu.fromnav .uitem svg.ui{box-sizing:content-box;width:20px;height:20px;padding:8px;border-radius:12px;background:color-mix(in srgb,var(--accent) 14%,transparent);color:var(--accent)}
html.pc2 body #umenu.fromnav .ulegal{display:flex;flex-wrap:wrap;gap:0 2px;margin:8px 0 6px;padding:8px 0 0;border-bottom:0}
html.pc2 body #umenu.fromnav .ulink{min-height:30px;padding:4px 8px;font-size:.78rem}
html.pc2 body #umenu.fromnav .uitem.out{margin-top:2px;background:color-mix(in srgb,var(--bad) 10%,transparent);color:var(--bad)}
html.pc2 body #umenu.fromnav .uitem.out svg.ui{background:color-mix(in srgb,var(--bad) 16%,transparent);color:var(--bad)}

/* v742 · Menú del perfil ordenado (Juan, 2026-11-11): encabezado con foto (se toca para cambiarla), «Mi cuenta», «Preferencias», «Ayuda», Legal y Salir. En el computador va en una sola columna y sin «Ajustes» (ya está en la barra lateral). */
.umenu .uhead{display:flex;align-items:center;gap:14px;width:100%;padding:12px;border:0;border-bottom:1px solid var(--line);margin-bottom:4px;background:none;color:inherit;font:inherit;text-align:left;cursor:pointer;border-radius:0}
.umenu .uhead:hover,.umenu .uhead:focus-visible{background:color-mix(in srgb,var(--accent) 10%,transparent)}
.umenu .uhead .uwho{flex:1;min-width:0;padding:0;border:0;margin:0}
.umenu .ubig{flex:none;display:grid;place-items:center;width:56px;height:56px;border-radius:50%;overflow:hidden;background:var(--accent);color:var(--on-accent,#fff);font-size:1.4rem;font-weight:800}
.umenu .ubig img{width:100%;height:100%;object-fit:cover;display:block}
.umenu .ucam{flex:none;display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:color-mix(in srgb,var(--accent) 14%,transparent);color:var(--accent)}
.umenu .ucam svg{width:16px;height:16px;fill:currentColor}
.umenu .usec{display:flex;flex-direction:column}
.umenu .ulbl{padding:10px 12px 2px;font-size:.68rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.umenu .usec:has(.uitem:not([hidden]):not(.pconly)) .ulbl{display:block}
html.pc2 body #umenu.fromnav{display:block!important;width:340px;min-width:340px!important;max-width:340px;padding:12px}
html.pc2 body #umenu.fromnav[hidden]{display:none!important}
html.pc2 body #umenu.fromnav .uhead{padding:8px}
html.pc2 body #umenu.fromnav .uitem{min-width:0;font-size:.92rem}
html.pc2 body #umenu.fromnav .uitem.out{width:100%}
html.pc2 .umenu .phoneonly{display:none!important}

/* v693 · (2) «Ganancia (solo la ves tú)»: el valor y el porcentaje de cada fila quedan en dos columnas alineadas */
.mgv{display:inline-grid;grid-template-columns:auto 4.6em;column-gap:.35em;justify-content:end;text-align:right;white-space:nowrap}
.mgv .mgp{text-align:right}
/* v693 · (7) Avisos y respaldo (y las demás secciones) en el computador: línea entre las filas de cada grupo y más aire entre subsecciones */
html:root.pc2 body #app #tab-ajustes>.card.fold:not(.fg-first){border-top:1px solid color-mix(in srgb,var(--fg) 13%,transparent)!important}
html.pc2 body #tab-ajustes>.fglbl{margin-top:28px}
/* v693 · (10) Inicio (computador): «Hoy toca» y «Últimas ventas de hoy» empiezan a la misma altura */
html.pc2 body #tab-inicio>#ilastcard{gap:0}
html.pc2 body #tab-inicio>#ilastcard>#ilasth{margin-bottom:8px}

/* v694 · Ajustes en el computador: los interruptores de «Módulos» van en su propio bloque con título, más chicos y con su descripción (antes eran filas sueltas entre las secciones, con interruptores grandes) */
@media (min-width:1100px){
  html.pc2 body #ajhub #ajmodsw{order:50;display:block!important;margin:16px 0 6px;padding:12px 4px 4px;border-top:1px solid color-mix(in srgb,var(--fg) 12%,transparent)}
  html.pc2 body #ajhub #ajmodsw[hidden]{display:none!important}
  html.pc2 body #ajhub #ajmodsw .ajlbl{display:block!important;padding:0 10px 8px;font-size:.7rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
  html.pc2 body #ajhub #ajmods{display:flex;flex-direction:column;gap:2px}
  html.pc2 body #ajhub #ajmods .ajtog{display:flex;align-items:center;gap:10px;min-height:50px;padding:6px 10px}
  html.pc2 body #ajhub #ajmods .ajtog .ajtx{display:flex;flex-direction:column;min-width:0;flex:1}
  html.pc2 body #ajhub #ajmods .ajtog .ajtx b{font-size:.9rem;font-weight:700}
  html.pc2 body #ajhub #ajmods .ajtog .ajtx span{display:block!important;font-size:.74rem;color:var(--muted);font-weight:500;line-height:1.25;white-space:normal}
  html.pc2 body #ajhub #ajmods .ajtog .ajsw{width:40px;height:24px;border-radius:99px}
  html.pc2 body #ajhub #ajmods .ajtog .ajsw i{top:2px;left:2px;width:18px;height:18px}
  html.pc2 body #ajhub #ajmods .ajtog .ajsw.on i{transform:translateX(16px)}
  html.pc2 body #ajhub #ajmods .ajtog .ajsw::before{display:none}
}

/* v695 · (5) Encabezados verdes de cada pantalla con la misma altura: en el computador todos miden lo mismo; en el celular el de Inicio ya no es más alto que los demás */
@media (min-width:1100px){
  html.pc2 body :is(#vhero,.vhero2,#clhero2,#ajhero2){box-sizing:border-box;min-height:202px}
}
@media (max-width:1099px){
  html:root body #vhero{padding-bottom:18px}
}

/* v696 · (18) todos los campos de dinero llevan el símbolo «$» dentro (el valor ya sale con puntos de miles) */
.mnyw{position:relative;display:block}
.mnyw.inl{display:inline-block}
.mnyw.grow{flex:1 1 auto;min-width:0}
.mnyw::before{content:"$";position:absolute;left:14px;top:50%;transform:translateY(-50%);font-size:var(--mnyfs,1rem);line-height:1;font-weight:700;color:var(--muted);pointer-events:none;z-index:1}
.mnyw>input{padding-left:calc(24px + var(--mnyfs,1rem)*.62)!important}
.mnyw.mnyoff::before{display:none}
.mnyw.mnyoff>input{padding-left:12px!important}
.mnyw.sm{width:112px;flex:none}
.mnyw.sm>input{width:100%!important;max-width:none!important;box-sizing:border-box;padding-left:calc(15px + var(--mnyfs,.85rem)*.62)!important}
.mnyw.sm::before{left:8px}

/* v697 · (28) «Guardar como cotización» del carrito ocupa todo el ancho en el celular, como «Poner en espera» */
@media (max-width:1099px){#vquote{width:100%;min-height:44px}}

/* v697 · el precio con «$» dentro de la fila del carrito (celular) cabe siempre en la misma fila, sin montarse sobre el selector de cantidad: letra y selector un poco más chicos; con precios largos (millones) la letra baja un punto más */
#tab-vender.sheetm .clc .clft .mnyw.sm{width:100%;max-width:104px;min-width:0;flex:0 1 auto}
#tab-vender.sheetm .clc .clft .pedit{min-width:0}
#tab-vender.sheetm .clc .clft{gap:8px}
#tab-vender.sheetm .clc .clft .lt{min-width:0}
@media (max-width:430px){
  #tab-vender.sheetm .clc .clft .mnyw.sm>input{padding-right:6px!important;padding-left:calc(12px + var(--mnyfs,.85rem)*.62)!important;font-size:.8rem}
  #tab-vender.sheetm .clc .clft .mnyw.sm.long>input{font-size:.72rem;letter-spacing:-.1px}
  #tab-vender.sheetm .clc .clft .mnyw.sm.xl>input{font-size:.64rem}
  #tab-vender.sheetm .clc .clft .qty button{width:30px;min-width:30px}
  #tab-vender.sheetm .clc .clft .qty .qin{width:32px}
}
@media (max-width:380px){
  #tab-vender.sheetm .clc .clft .qty button{width:26px;min-width:26px}
  #tab-vender.sheetm .clc .clft .qty .qin{width:26px}
  #tab-vender.sheetm .clc .clft .lt{font-size:.95rem}
}

/* v699 · estado de la caja: «CAJA ABIERTA» en verde, «CAJA CERRADA» en rojo (ficha blanca para que se lea sobre el bloque de color) */
.cjst{font-weight:800!important;letter-spacing:.05em;background:#fff!important;border:0!important;box-shadow:0 1px 3px rgba(0,0,0,.18)}
.cjst.open{color:#15803d!important}
.cjst.closed{color:#b91c1c!important}
.cjst::before{content:"";display:inline-block;width:.55em;height:.55em;border-radius:50%;background:currentColor;margin-right:.45em;vertical-align:.04em}
/* ficha para registrar la base rápido (Inicio) */
.icajacard{margin-top:12px}
.icajacard[hidden]{display:none}
.icajacard h2{margin:0 0 4px}
.icajacard .row{align-items:flex-end;flex-wrap:nowrap;gap:10px;margin-top:10px}
.icajacard .row .btn{flex:none;min-height:50px}
@media (max-width:1099px){html:root body #tab-inicio>#icajacard{order:-3}}
html.pc2 body #tab-inicio>#icajacard{grid-column:1/-1;grid-row:2}
html.pc2 body #tab-inicio>#gsbtn{grid-row:3}
html.pc2 body #tab-inicio>#vimei{grid-row:4}
html.pc2 body #tab-inicio>#vtoca{grid-row:5}
html.pc2 body #tab-inicio>#ilastcard{grid-row:5}
.icajacard .hint{margin:0}
.icajacard #ibaseerr:empty{display:none}
.icajacard{padding-bottom:16px}

/* v700 (punto 44): ✕ de «Hoy toca» (solo celular; en el computador la ficha no estorba) */
#vtoca .vtlx{flex:none;margin-left:10px;width:30px;height:30px;border-radius:50%;border:0;background:var(--surface);color:var(--muted);font-size:.95rem;line-height:1;display:grid;place-items:center;cursor:pointer;padding:0}
#vtoca .vtlh{justify-content:flex-start}
#vtoca .vtlh span{margin-left:auto}
html.pc2 body #vtoca .vtlx{display:none}

/* v700 (punto 35): clave del equipo en la lista de chequeo */
.chklk{display:grid;gap:10px;padding:10px 0 4px}
.chklk[hidden],.chklk [hidden]{display:none!important}
.chkgrid{display:grid;grid-template-columns:repeat(3,56px);gap:14px;justify-content:center;padding:8px 0}
.chkdot{width:56px;height:56px;border-radius:50%;border:2px solid var(--line);background:var(--surface);display:grid;place-items:center;padding:0;cursor:pointer;position:relative;color:var(--text)}
.chkdot i{width:12px;height:12px;border-radius:50%;background:var(--muted);display:block}
.chkdot b{position:absolute;inset:0;display:grid;place-items:center;font:800 1rem/1 var(--f-display)}
.chkdot.on{background:var(--accent);border-color:var(--accent);color:var(--accent-ink,#fff)}
.chkdot.on i{display:none}
.chkpat{display:grid;gap:6px;justify-items:center}
.lkmask{font-weight:800;letter-spacing:.06em}
.chk .chkseg button[aria-pressed=true][data-lkt]{background:var(--accent);color:var(--accent-fg,#fff)}
.chk .chklk>.chkseg{display:flex}.chk .chklk>.chkseg button{flex:1}

/* v701 (punto 59): aviso de caja cerrada en Vender */
.vcajabn{display:flex;align-items:center;gap:12px;justify-content:space-between;margin:0 0 12px;padding:12px 14px;border-radius:16px;background:var(--surface);border:1px solid color-mix(in srgb,#b91c1c 45%,var(--line))}
.vcajabn .vcajat{flex:1;min-width:0;font-size:.92rem;line-height:1.3}
.vcajabn .vcajat b{color:var(--bad,#b91c1c)}
html:root body #tab-vender>#vcajabn{order:1;margin:12px 0 0}
html.pc2 body #tab-vender>#vcajabn{grid-column:1/-1;margin:0 0 12px}
#vacts .vact,#iquick .qk,#navfab{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}

/* v704 (punto 45): filas de Dinero que se abren con el detalle de cada pago */
.rx-md>summary{list-style:none;cursor:pointer}
.rx-md>summary::-webkit-details-marker{display:none}
.rx-md>summary::after{content:'›';margin-left:6px;font-size:1.3rem;line-height:1;color:var(--muted);transition:transform .15s}
.rx-md[open]>summary::after{transform:rotate(90deg)}
.rx-mdl{margin:2px 0 8px 46px;padding:4px 0 0;border-left:2px solid var(--line);padding-left:12px}
.rx-dr{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 0;border-top:1px solid var(--line)}
.rx-dr:first-child{border-top:0}
.rx-dr .main{min-width:0;flex:1}.rx-dr .t{font-weight:600}.rx-dr .s{color:var(--muted);font-size:.82rem}
/* v708 (punto 9): al final del archivo para ganarle a las reglas del anillo del splash (filter:none!important) */
html:root:not(#_a):not(#_b) body #splash .sp-ring svg.sp-logo{filter:invert(var(--mc-oscuro,0)) hue-rotate(calc(180deg*var(--mc-oscuro,0)))!important}
/* punto 15 (Juan, 2026-11-10): hoja «¿Para quién es la venta?» con solo búsqueda y «+ Crear cliente nuevo»; teléfono y datos se piden en el formulario de cliente */
.vcliSheet{display:flex;flex-direction:column;gap:10px}
.vcliSheet .grab{width:44px;height:5px;border-radius:9px;background:var(--line,#ccc);margin:0 auto}
.vcliSheet h3{margin:0;font-size:18px}
#vclibox>.row,#vclibox>details{display:none!important}
/* punto 30 (Juan, 2026-11-10): Inventario con selector «Lista | Mosaico» visible y mosaico rediseñado (foto grande, precio y stock claros). Plano: negro, blanco y el color del negocio. */
html:root body #tab-inventario #ivsw{display:flex!important;gap:8px;justify-content:flex-end;margin:8px 0 2px;border:0;overflow:visible;align-self:auto}
html:root body #tab-inventario #ivsw button{width:auto;height:38px;padding:0 14px;border:1px solid var(--line);border-radius:12px;background:transparent;color:var(--fg);font-weight:700;font-size:.9rem;display:inline-flex;align-items:center;gap:6px}
html:root body #tab-inventario #ivsw button svg{width:18px;height:18px}
html:root body #tab-inventario #ivsw button[aria-pressed="true"]{background:var(--accent);color:var(--accent-fg);border-color:var(--accent)}
html:root body #tab-inventario #ivsw [data-iv="lista"]{display:none}
html:root body #tab-inventario #ivsw [data-iv="detalle"]::after{content:"Lista"}
html:root body #tab-inventario #ivsw [data-iv="mosaico"]::after{content:"Mosaico"}
html:root body #tab-inventario #ilist.v-mosaico{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
@media (min-width:700px){html:root body #tab-inventario #ilist.v-mosaico{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (min-width:1100px){html:root body #tab-inventario #ilist.v-mosaico{grid-template-columns:repeat(4,minmax(0,1fr))}}
html:root body #tab-inventario #ilist.v-mosaico>*:not(.item){grid-column:1/-1}
html:root body #tab-inventario #ilist.v-mosaico .item.inv{display:flex;flex-direction:column;align-items:stretch;padding:0 0 10px;border:1px solid var(--line);border-radius:14px;overflow:hidden;position:relative;min-width:0;background:var(--surface,#fff)}
/* lo que se ve en cada tarjeta es .ir2 (el resto está oculto por el rediseño): foto grande arriba, nombre en dos líneas, precio y stock debajo */
html:root body #tab-inventario #ilist.v-mosaico .item.inv>.ir2{flex-direction:column;align-items:stretch;gap:8px}
html:root body #tab-inventario #ilist.v-mosaico .item.inv>.ir2>.thumb,html:root body #tab-inventario #ilist.v-mosaico .item.inv>.ir2>img{width:100%!important;height:auto!important;aspect-ratio:1/1;border-radius:0}
/* punto 30 (Juan, 2026-11-10): la foto se ve COMPLETA (sin recortar): cuadro cuadrado y la foto entera adentro, sobre fondo blanco */
html:root body #tab-inventario #ilist.v-mosaico .item.inv>.ir2>img.thumb{object-fit:contain;background:#fff;padding:6px;box-sizing:border-box}
html:root body #tab-inventario #ilist.v-mosaico .item.inv>.ir2>.thumb svg{width:44px;height:44px}
html:root body #tab-inventario #ilist.v-mosaico .item.inv>.ir2 .vm{padding:0 10px}
html:root body #tab-inventario #ilist.v-mosaico .item.inv>.ir2 .l1{flex-direction:column;align-items:flex-start;gap:2px}
html:root body #tab-inventario #ilist.v-mosaico .item.inv>.ir2 .l1 b{white-space:normal;font-size:.95rem;line-height:1.2;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
html:root body #tab-inventario #ilist.v-mosaico .item.inv>.ir2 .vamt{font-size:1.05rem}
/* v756 (Juan, 2026-11-12): en tableta y computador el mosaico mete todas las tarjetas que caben (antes 3 o 4 columnas fijas con fotos enormes y solo se veían 2 productos); tarjetas más chicas y categorías más juntas */
@media (min-width:700px){
  html:root body #tab-inventario #ilist.v-mosaico{grid-template-columns:repeat(auto-fill,minmax(148px,1fr));gap:10px}
  html:root body #tab-inventario #ilist.v-mosaico .item.inv>.ir2>.thumb,html:root body #tab-inventario #ilist.v-mosaico .item.inv>.ir2>img{aspect-ratio:4/3}
  html:root body #tab-inventario #ilist.v-mosaico .item.inv>.ir2>.thumb svg{width:36px;height:36px}
  html:root body #tab-inventario #ilist.v-mosaico .item.inv>.ir2 .vm{padding:0 8px}
  html:root body #tab-inventario #ilist.v-mosaico .item.inv>.ir2 .l1 b{font-size:.86rem}
  html:root body #tab-inventario #ilist.v-mosaico .item.inv>.ir2 .vamt{font-size:.95rem}
  html:root body #tab-inventario #ilist.v-mosaico>.igrp{display:none}  /* mosaico continuo: sin separar por categoría (las categorías de arriba filtran) */
  html:root body #tab-inventario #ilist.v-mosaico .item.inv{padding-bottom:8px}
  html:root body #tab-inventario #ilist.v-mosaico .item.inv>.ir2{gap:6px}
}
/* punto 65 (responsivo): entre 600 y 1099 px la cabecera (logo y perfil) y el bloque verde de debajo tenían anchos distintos y hacían un escalón; ahora miden lo mismo. */
@media (min-width:600px) and (max-width:1099px){
  html:root body #app:not([data-tab="inicio"]):not([data-tab="vender"]) :is(#vhero2,#fhero2,#clmhero,#chero2,#rphero2,#ihero2,#qhero2,#ajhero2,#svhero2){margin-inline:0}
  /* la cabecera tiene 12 px de margen arriba en tableta y dejaba ver el fondo verde de la página (pensado para el iPhone) como una franja de ancho completo */
  html:root{background-color:var(--bg)!important}
  /* Vender: el botón del perfil quedaba 12 px más arriba y 12 px más adentro que en las demás pantallas */
  html:root body #app[data-tab="vender"] header.top .head-r{right:calc(max(8px,(100vw - 720px) / 2) + 20px);top:calc(var(--sat) + 30px)!important}
}
/* punto 65: en celulares muy angostos (hasta 360 px) el buscador de Inventario deja ver todo su texto de ayuda */
@media (max-width:360px){
  html:root body #tab-inventario #isbar{gap:6px}
  html:root body #tab-inventario #isbar>.vsbtn{width:40px;height:40px;border-radius:12px}
  html:root body #tab-inventario #isbar>.sbtn,html:root body #tab-inventario #isbar>[id$="scan"]{width:40px;height:40px;min-height:0}
}
@media (max-width:400px){
  html:root body #tab-inventario #isearch{font-size:.8rem;padding-left:34px!important;padding-right:0!important}
  #tab-inventario #isbar>label.f::before{left:9px;width:18px;height:18px;background-size:18px}
}
/* punto 34 (Juan, 2026-11-10): chips de subcategoría en Inventario, debajo de Todos / Stock bajo / Agotados */
#tab-inventario #invsubs,#tab-inventario #invcats{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;margin:4px 0 6px}
#tab-inventario #invsubs::-webkit-scrollbar,#tab-inventario #invcats::-webkit-scrollbar{display:none}
#tab-inventario #invsubs[hidden],#tab-inventario #invcats[hidden]{display:none}
html[data-invsub="compras"] #tab-inventario #invsubs,html[data-invsub="tools"] #tab-inventario #invsubs,html[data-invsub="compras"] #tab-inventario #invcats,html[data-invsub="tools"] #tab-inventario #invcats,html[data-invsub="rep"] #tab-inventario #invcats{display:none!important}
html[data-invsub="rep"] #tab-inventario #invsubs{display:none!important} /* punto 32: Repuestos ya es una pestaña; no hace falta el filtro de subcategorías */
/* punto 57 (parte 2): el vendedor con permiso ve el Inventario sin botones de edición, compras ni herramientas */
html[data-invrole] #tab-inventario #isbar>[data-emptyact="newproduct"],html[data-invrole] #tab-inventario #isbar>#imenubtn,html[data-invrole] #tab-inventario .isel-h,html[data-invrole] #tab-inventario #pdraftbn,html[data-invrole] #elastw{display:none!important}
html:root[data-invsub="ajuste"] body #tab-inventario :is(#ihero2,#invchips,#invsubs,#invcats,#ivsw,#fp-inv,.fglbl){display:none!important}
/* punto 66 · bandeja de avisos: campana de la cabecera y ventana «Avisos» */
.bellbtn{position:relative;width:48px;height:48px;border-radius:14px;border:0;padding:0;cursor:pointer;display:grid;place-items:center;flex:none;background:rgba(255,255,255,.18);color:#fff}
.bellbtn[hidden]{display:none}
.bellbtn svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.bellbtn b{position:absolute;top:-5px;right:-5px;min-width:22px;height:22px;border-radius:11px;background:#fff;color:var(--accent,#178a3e);font-size:.78rem;font-weight:800;display:grid;place-items:center;padding:0 5px;border:2px solid var(--accent,#178a3e);box-sizing:border-box}
.bellbtn b[hidden]{display:none}
.avdlg{display:flex;flex-direction:column}
.avtools{display:flex;gap:8px;align-items:center;margin:4px 0 10px;flex-wrap:wrap}
.avchip{border:0;border-radius:999px;padding:8px 14px;font-weight:700;font-size:.85rem;background:var(--field,#efefec);color:var(--fg);cursor:pointer}
.avchip.on{background:var(--fg);color:var(--surface)}
.avsp{flex:1}
.avlnk{border:0;background:none;color:var(--accent);font-weight:700;font-size:.88rem;cursor:pointer;padding:6px 2px}
.avlnk[hidden]{display:none}
.avlist{overflow:auto;-webkit-overflow-scrolling:touch}
.avday{font-size:.78rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin:12px 4px 6px}
.avit{display:flex;gap:12px;align-items:flex-start;width:100%;text-align:left;border:0;background:var(--surface);border-radius:18px;padding:12px;margin:0 0 8px;position:relative;cursor:pointer;color:var(--fg);font:inherit}
.avic{width:42px;height:42px;border-radius:14px;display:grid;place-items:center;flex:none;background:color-mix(in srgb,var(--accent) 14%,var(--surface));color:var(--accent)}
.avic svg{width:22px;height:22px}
.avic.bad{background:color-mix(in srgb,#b42318 14%,var(--surface));color:#b42318}
.avic.warn{background:color-mix(in srgb,#a15c07 14%,var(--surface));color:#a15c07}
.avtx{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px;padding-right:14px}
.avt{font-weight:800;line-height:1.25}
.avit.read .avt{font-weight:600;color:var(--muted)}
.avb{color:var(--muted);font-size:.88rem}
.avw{font-size:.78rem;color:var(--muted);margin-top:2px}
.avdot{width:10px;height:10px;border-radius:50%;background:var(--accent);position:absolute;top:14px;right:12px}
.avemp{text-align:center;padding:40px 20px;color:var(--muted)}
.avemp i{width:70px;height:70px;border-radius:22px;background:color-mix(in srgb,var(--accent) 14%,var(--surface));color:var(--accent);display:grid;place-items:center;margin:0 auto 12px}
.avemp i svg{width:32px;height:32px}
.avemp b{display:block;color:var(--fg);font-size:1.05rem;margin-bottom:4px}
.avnote{font-size:.8rem;color:var(--muted);text-align:center;margin:10px 0 4px}
.vtr{display:flex;align-items:center;gap:10px}
/* En Vender la cabecera solo muestra la foto de la cuenta: la campana va a su izquierda; en Inicio la campana va dentro del bloque verde */
@media (max-width:1099px){
  html:root body #app[data-tab="vender"] header.top .head-r>#bellbtn:not([hidden]){display:grid!important}
  html:root body #app[data-tab="vender"] header.top .head-r>#jotahd:not([hidden]){display:inline-flex!important}
  html:root body #app[data-tab="vender"] header.top .head-r{display:flex;align-items:center;gap:10px}
  html:root body .vtr>.bellbtn{width:48px;height:48px;border-radius:14px}
}
/* campana en el menú lateral del computador: a la derecha del nombre, con el color del negocio */
nav.tabs .navwho .bellbtn{width:38px;height:38px;border-radius:12px;margin-left:auto;background:color-mix(in srgb,var(--accent) 14%,var(--surface));color:var(--accent)}
nav.tabs .navwho .bellbtn svg{width:20px;height:20px}
nav.tabs .navwho .bellbtn b{top:-6px;right:-6px;background:var(--accent);color:var(--accent-fg,#fff);border-color:var(--surface)}
.avdlg .cphd{display:flex;align-items:center;gap:12px;margin-bottom:6px}
.avdlg .cphd h2{margin:0}
@media (max-width:1099px){
  html:root body #app:not([data-tab="inicio"]):not([data-tab="vender"]) header.top>.head-r{display:flex!important;flex-direction:row;align-items:center;gap:10px}
}
.ltpl{margin:10px 0 4px;padding-top:6px;border-top:1px solid var(--line,#e5e7eb)}
.ltpl .ltplbtns{display:flex;flex-wrap:wrap;gap:12px;margin:10px 0 12px}.ltpl .ltplbtns .btn{flex:0 0 auto;margin:0}.ltpl .f{margin-bottom:10px}
/* v720 (punto 76) comprobantes: filas a lo ancho (miniatura, texto y ojo) y botón a lo ancho */
.vsd-prf{width:100%;box-sizing:border-box;margin:12px 0;padding:14px;border-radius:16px;background:var(--surface);border:1px solid var(--line);color:inherit}
.vsd-prf .prft{margin:0 0 10px;font-size:.95rem}
.prflist{display:flex;flex-direction:column;gap:8px;margin:0 0 10px}
.prfit{display:flex;align-items:center;gap:12px;width:100%;box-sizing:border-box;padding:8px 12px 8px 8px;border:1px solid var(--line);border-radius:14px;background:transparent;color:inherit;text-align:left;cursor:pointer}
.prfit .prfm{flex:1;min-width:0;display:flex;flex-direction:column}
.prfit .prfm small{color:var(--muted);margin-top:2px}
.prfit .prfgo{color:var(--accent);display:grid;place-items:center}
.prfth{flex:0 0 56px;width:56px;height:56px;border-radius:10px;overflow:hidden;background:var(--surface);border:1px solid var(--line);display:block}
.prfth img{width:100%;height:100%;object-fit:cover;display:block}
.prfld{display:block;width:100%;height:100%;background:linear-gradient(90deg,transparent,rgba(127,127,127,.18),transparent);background-size:200% 100%;animation:prfsh 1.2s linear infinite}
@keyframes prfsh{to{background-position:-200% 0}}
@media (prefers-reduced-motion:reduce){.prfld{animation:none}}
.vsd-prf .prfadd{width:100%;display:flex;align-items:center;justify-content:center;gap:8px}
.prfdlg .prfbig{margin:10px 0;max-height:60vh;overflow:auto;text-align:center}
.prfdlg .prfbig img{max-width:100%;height:auto;border-radius:12px}
.prfdlg .row{gap:12px}
.prfpick{margin:8px 0}.prfpick .prfadd{width:100%;display:flex;align-items:center;justify-content:center;gap:8px}.prfpend{display:flex}.prfpend .btn{flex:0 0 auto}.prfchip{margin-left:6px;padding:4px 10px;min-height:0}.prfnone{margin-left:6px}
#prflm .dlg{max-height:80vh;overflow:auto}
.apdue{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:6px 0 2px;width:100%;flex:0 0 100%;grid-column:1/-1;box-sizing:border-box}.apdue .pill{font-weight:700}.apdue.late .hint{color:var(--bad,#b42318)}

/* v735 (Juan, 2026-11-11): en Inventario las filas de botones quedaban desalineadas (alturas de 36 y 32 px, espacios de 4 y 6 px,
   «Lista / Mosaico» suelto a la derecha). Ahora: todos los botones de 36 px, 8 px entre filas y todo alineado a la izquierda. */
html:root body #tab-inventario #ivsw{justify-content:flex-start;margin:10px 0 0}
html:root body #tab-inventario #ivsw button{height:36px}
html:root body #tab-inventario #invchips,html:root body #tab-inventario #invcats,html:root body #tab-inventario #invsubs{margin:8px 0 0;align-items:center}
html:root body #tab-inventario :is(#invchips,#invcats,#invsubs)>.vqchip{height:36px;box-sizing:border-box;display:inline-flex;align-items:center;flex:0 0 auto;white-space:nowrap}

/* v736 (Juan, 2026-11-11, maqueta B+C aprobada): Inventario con tarjetas de categorías (valor al costo) en una fila que se desliza,
   y debajo una fila de selectores: Estado ▾ · Subcategoría ▾ · Lista/Mosaico (íconos). Reemplaza las filas de botones de v734/v735. */
html:root body #tab-inventario #invcats.icards{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;margin:12px 0 0;padding:2px 0;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch}
html:root body #tab-inventario #invcats.icards::-webkit-scrollbar{display:none}
html:root body #tab-inventario #invcats.icards[hidden]{display:none}
html:root body #tab-inventario .icard{flex:0 0 auto;width:136px;display:flex;flex-direction:column;align-items:flex-start;gap:1px;text-align:left;background:var(--surface);color:var(--fg);border:2px solid transparent;border-radius:16px;padding:9px 11px;cursor:pointer;scroll-snap-align:start;font:inherit;box-shadow:0 1px 2px rgba(0,0,0,.05)}
html:root body #tab-inventario .icard .icn{font-weight:800;font-size:.85rem;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html:root body #tab-inventario .icard .icm{font-size:.72rem;color:var(--muted)}
html:root body #tab-inventario .icard .icv{font-weight:800;font-size:.95rem;margin-top:3px}
html:root body #tab-inventario .icard.on{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 16%,var(--surface))} /* se lee en claro y en oscuro */
html:root body #tab-inventario .invctl{display:flex;align-items:center;gap:8px;margin:10px 0 0}
html:root body #tab-inventario .ctlsel{position:relative;flex:0 1 auto;min-width:0;margin:0}
html:root body #tab-inventario .ctlsel[hidden]{display:none}
html:root body #tab-inventario .ctlsel select{appearance:none;-webkit-appearance:none;height:36px;max-width:100%;border:0;border-radius:99px;background:var(--field);color:var(--fg);font-family:inherit;font-weight:700;font-size:.85rem;line-height:1;padding:0 28px 0 13px;text-overflow:ellipsis;cursor:pointer}
html:root body #tab-inventario .ctlsel::after{content:"▾";position:absolute;right:11px;top:50%;transform:translateY(-50%);pointer-events:none;font-size:.7rem;opacity:.7;color:var(--fg)}
html:root body #tab-inventario .ctlsel.on select{background:var(--fg);color:var(--bg)}
html:root body #tab-inventario .ctlsel.on::after{color:var(--bg);opacity:.9}
html:root body #tab-inventario .ctlsel.off select{opacity:.5;cursor:default}
html:root body #tab-inventario #invctl #ivsw{margin:0 0 0 auto;gap:0;border:1px solid var(--line);border-radius:12px;overflow:hidden;flex:0 0 auto;justify-content:flex-end}
html:root body #tab-inventario #invctl #ivsw button{width:40px;height:34px;padding:0;border:0;border-radius:0;justify-content:center}
html:root body #tab-inventario #invctl #ivsw button::after{content:none!important}
html:root body #tab-inventario #invctl #ivsw button+button{border-left:1px solid var(--line)}
html:root body #tab-inventario #invchips,html:root body #tab-inventario #invsubs,html:root body #tab-inventario #fp-inv{display:none!important}
html[data-invsub="compras"] body #tab-inventario #invctl,html[data-invsub="tools"] body #tab-inventario #invctl,html:root[data-invsub="ajuste"] body #tab-inventario #invctl{display:none!important}

/* v739 · Punto 71 (Juan, 2026-11-11, maqueta aprobada): fecha y foto de la factura del proveedor en Compras */
.cpph{margin-top:10px}
.cpph .fl{display:block;font-size:.8rem;color:var(--muted);margin-bottom:4px}
.cpbtns{gap:8px;flex-wrap:nowrap}
.cpbtns .btn{min-height:44px}
.cpthumbs{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}
.cpth{position:relative;width:72px;height:72px;border-radius:12px;overflow:hidden;border:1px solid var(--line);background:var(--field)}
.cpth img{width:100%;height:100%;object-fit:cover;display:block}
.cpth button{position:absolute;right:3px;top:3px;width:24px;height:24px;border-radius:50%;border:0;background:#111;color:#fff;font-size:15px;line-height:1;cursor:pointer;padding:0}
.invgrid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px}
@media(min-width:700px){.invgrid{grid-template-columns:repeat(3,1fr)}}
.invcard{display:flex;flex-direction:column;align-items:stretch;text-align:left;padding:0;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:var(--surface);color:var(--fg);cursor:pointer;font:inherit}
.invcard .invim{height:92px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;background:var(--field);color:var(--muted)}
.invcard .invim svg{width:30px;height:30px}
.invcard .invim i{font-style:normal;font-size:.75rem;font-weight:700}
.invcard .invim.none{font-size:.85rem}
.invcard .invtx{display:flex;flex-direction:column;gap:2px;padding:8px 10px}
.invcard .invtx b{font-size:.9rem}
.invcard .invtx small{color:var(--muted);font-size:.75rem}
.invcard .invtx em{font-style:normal;font-size:.72rem;font-weight:700;color:var(--ok)}
.invcard .invtx em.bad{color:var(--warn)}
/* v739 · Compras: más aire entre la fecha, la etiqueta de deuda y el botón de la factura */
.pur .main>.s{margin-top:8px}
.pur .main>.s:first-of-type{margin-top:4px}
.pur .main>.s>.btn{margin:2px 0}
/* v741 · Ajustes: el título y el resumen de cada fila quedan juntos y centrados con el ícono (antes la fila se estiraba y los separaba) */
@media (max-width:1099px){
  html.aj-insec:root body #tab-ajustes>.card.fold>h2:has(.ajsub){grid-template-rows:auto auto;align-content:center;row-gap:2px!important}
}

/* v744 · Encabezado compacto (Juan, 2026-11-11, opción B): en celular (menos de 600 px; las tabletas quedan como estaban), la franja verde de cada pestaña ocupa ~150 px en vez de ~250. La fila del logo, la campana y la foto es más baja, y el título y el valor van en una sola fila (título y descripción a la izquierda, número a la derecha); las etiquetas quedan debajo, más pequeñas. Solo se toca el encabezado que ya está visible en cada pestaña (los ocultos siguen ocultos). */
@media (max-width:1099px){
  html:root body header.top{padding-block:calc(8px + var(--sat)) 2px!important;row-gap:0!important}
  html:root body header.top .head-r{gap:8px!important}
  html:root body header.top :is(.biztile,.bellbtn,.avatar,.head-r>button){width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;border-radius:12px!important}
  html:root body header.top #avatar,html:root body #app header.top .head-r>#avatar{width:40px!important;height:40px!important;border-radius:12px!important;font-size:1.05rem!important;padding:0!important}
  html:root body header.top .avatar img{width:100%;height:100%;border-radius:inherit;object-fit:cover}
  html:root body header.top .bizbn{font-size:.95rem!important}
  html:root body :is(#tab-ventas>#vhero2,#tab-inventario.cpv>#cphero2,#tab-caja>#chero2,#tab-facturas>#fhero2,#tab-servicio>#svhero2,#tab-cotizar>#qhero2,#tab-fiado>#clmhero,#tab-reportes>#rphero2:not(:empty),#tab-clientes>#clhero2):not([hidden]){display:grid!important;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"t n" "k n" "p p";align-items:center;column-gap:12px;row-gap:0;text-align:left!important;padding:4px 28px 14px!important;margin-bottom:10px!important;min-height:0!important}
  /* Inventario: otras reglas ocultan este encabezado en Compras, Herramientas y Ajustar; ahí no se muestra */
  html:root:not([data-invsub="compras"]):not([data-invsub="tools"]):not([data-invsub="ajuste"]) body #tab-inventario:not(.cpv)>#ihero2:not([hidden]){display:grid!important;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"t n" "k n" "p p";align-items:center;column-gap:12px;row-gap:0;text-align:left!important;padding:4px 28px 14px!important;margin-bottom:10px!important;min-height:0!important}
  html:root body :is(#vhero2,#ihero2,#cphero2,#chero2,#fhero2,#svhero2,#qhero2,#clmhero,#rphero2,#clhero2)::before{grid-area:t;margin:0!important;text-align:left;font-size:1rem!important;line-height:1.2}
  html:root body :is(#vhero2,#ihero2,#cphero2,#chero2,#fhero2,#svhero2,#qhero2,#clmhero,#rphero2,#clhero2) .k{grid-area:k;justify-content:flex-start!important;text-align:left;font-size:.78rem!important;line-height:1.25;margin:0!important}
  html:root body :is(#vhero2,#ihero2,#cphero2,#chero2,#fhero2,#svhero2,#qhero2,#clmhero,#rphero2,#clhero2) .vnum{grid-area:n;font-size:1.75rem!important;line-height:1.1!important;margin:0!important;text-align:right;align-self:center;white-space:nowrap}
  html:root body :is(#vhero2,#ihero2,#cphero2,#chero2,#fhero2,#svhero2,#qhero2,#clmhero,#rphero2,#clhero2) .vqpills{grid-area:p;justify-content:flex-start!important;margin:8px 0 0!important;gap:6px}
  html:root body :is(#vhero2,#ihero2,#cphero2,#chero2,#fhero2,#svhero2,#qhero2,#clmhero,#rphero2,#clhero2) .vqpills .vqpill{padding:4px 10px!important;font-size:.72rem!important}
  /* íconos más chicos (Juan: «algunos íconos son demasiado grandes»): botón flotante de pestañas y atajos de Inicio y Caja */
  html:root body #navfab{width:48px!important;height:48px!important;min-width:48px!important;min-height:48px!important;border-radius:16px!important}
  html:root body #navfab svg{width:22px!important;height:22px!important}
  html:root body #vacts .vact i{width:42px!important;height:42px!important;border-radius:14px!important}
  html:root body #vacts .vact i svg{width:22px!important;height:22px!important}
  /* Inicio: mismo encabezado compacto (Juan pidió que Inicio mida lo mismo que las demás pestañas): saludo y descripción a la izquierda, número a la derecha, etiquetas debajo */
  html:root body #tab-inicio>#vhero{display:grid!important;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"top top" "hi n" "lbl n" "chips chips";align-items:center;column-gap:12px;row-gap:0;text-align:left!important;padding:calc(14px + var(--sat)) 20px 18px!important;min-height:0!important}
  html:root body #vhero .vtop{grid-area:top;margin-bottom:10px!important}
  html:root body #vhero .vtop :is(.biztile,.bellbtn,.avatar,.vtr>button,.vtr button){width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;border-radius:12px!important}
  html:root body #vhero .vtop .bizbn{font-size:.95rem!important}
  html:root body #vhero .vhi{grid-area:hi;text-align:left!important;font-size:1rem!important;margin:0!important;line-height:1.2}
  html:root body #vhero .vsum{display:contents!important}
  html:root body #vhero .vlbl{grid-area:lbl;text-align:left!important;font-size:.78rem!important;margin:0!important}
  html:root body #vhero .vbig{grid-area:n;font-size:1.75rem!important;line-height:1.1!important;margin:0!important;text-align:right;white-space:nowrap}
  html:root body #vhero .vchips{grid-area:chips;justify-content:flex-start!important;margin:8px 0 0!important;gap:6px}
  html:root body #vhero .vchips .vchip{padding:4px 10px!important;font-size:.72rem!important}
  /* Vender: el botón del perfil del mismo tamaño que en las demás pestañas */
  html:root body #app[data-tab="vender"] header.top .head-r>#avatar{width:40px!important;height:40px!important}
  html:root body #app[data-tab="inicio"] header.top .head-r>:is(#avatar,#bellbtn,button){width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;border-radius:12px!important}
  /* Vender: título más chico y a la izquierda, sin la etiqueta visible (el campo conserva su nombre), buscador más bajo */
  html:root body #tab-vender .vvhead{padding:calc(14px + var(--sat)) 20px 14px!important;gap:8px!important}
  html:root body #app[data-tab="vender"] header.top .head-r{top:calc(var(--sat) + 14px)!important;height:40px!important}
  html:root body #tab-vender .vvhead h2{font-size:1.25rem!important;text-align:left!important}
  html:root body #tab-vender .vvhead label.f{font-size:0!important;line-height:0!important}
  html:root body #tab-vender .vvhead input{font-size:1rem!important;min-height:44px!important}
  html:root body #tab-vender .vvhead #vscan{min-width:44px!important;min-height:44px!important}
  html:root body #tab-vender .vvhead .vvlogo :is(.biztile,.bizbrand){--s:40px}
  html:root body #tab-vender .vvhead .vvlogo .biztile{width:40px!important;height:40px!important}
  html:root body #vhero .vtop .vwho .vav{width:40px!important;height:40px!important;border-radius:12px!important;font-size:1.05rem!important}
  /* Ajustes (menú principal): título a la izquierda y tarjeta del negocio más baja */
  html:root body #tab-ajustes>#ajhero2{padding:0 20px 14px!important;text-align:left!important}
  html:root body #ajhero2::before{margin:0 0 8px!important;font-size:1rem!important;text-align:left}
  html:root body #ajhero2 .ajbiz{padding:10px 12px!important}
  html:root body #ajhero2 .ajblogo{width:44px!important;height:44px!important;min-width:44px!important}
}

/* v748 · Encabezado compacto también en tablet y computador (Juan, 2026-11-12: «lo quiero en toda la pantalla»). Tablet vertical (600 a 1099 px): mismas reglas del celular (v744, ahora hasta 1099 px). Computador y tablet horizontal (1100 px o más, html.pc2): el bloque verde baja de ~200 px a ~115 px; título y descripción a la izquierda, el número al lado, las etiquetas debajo y los 4 botones en 2 filas más bajas a la derecha. */
@media (min-width:1100px){
  html.pc2 body :is(#tab-ventas>#vhero2,#tab-caja>#chero2,#tab-facturas>#fhero2,#tab-servicio>#svhero2,#tab-cotizar>#qhero2,#tab-reportes>#rphero2:not(:empty),#tab-clientes>#clhero2,#tab-fiado>#clhero2,#tab-inventario.cpv>#cphero2,#tab-vender>#vdhero2,#tab-inicio>#vhero):not([hidden]):not(#_x),
  html.pc2:not([data-invsub="compras"]):not([data-invsub="tools"]):not([data-invsub="ajuste"]) body #tab-inventario:not(.cpv)>#ihero2:not([hidden]):not(#_x){display:grid!important;grid-template-columns:minmax(0,1fr) auto auto;grid-template-areas:"t n a" "k n a" "p p a";align-items:center;column-gap:24px;row-gap:0;padding:14px 22px!important;margin-bottom:12px!important;min-height:0!important;border-radius:22px!important}
  html.pc2 body :is(#vhero2,#ihero2,#cphero2,#chero2,#fhero2,#svhero2,#qhero2,#rphero2,#clhero2,#vdhero2)::before{grid-area:t!important;margin:0!important;font-size:1.05rem!important;line-height:1.2}
  html.pc2 body :is(#vhero2,#ihero2,#cphero2,#chero2,#fhero2,#svhero2,#qhero2,#rphero2,#clhero2) .k{grid-area:k!important;margin:0!important;font-size:.82rem!important;line-height:1.25}
  html.pc2 body :is(#vhero2,#ihero2,#cphero2,#chero2,#fhero2,#svhero2,#qhero2,#rphero2,#clhero2) .vnum{grid-area:n!important;font-size:2rem!important;line-height:1.1!important;margin:0!important;text-align:right;white-space:nowrap;align-self:center}
  html.pc2 body :is(#vhero2,#ihero2,#cphero2,#chero2,#fhero2,#svhero2,#qhero2,#rphero2,#clhero2) .vqpills{grid-area:p!important;margin:8px 0 0!important;gap:6px}
  html.pc2 body :is(#vhero2,#ihero2,#cphero2,#chero2,#fhero2,#svhero2,#qhero2,#rphero2,#clhero2) .vqpills .vqpill{padding:4px 10px!important;font-size:.72rem!important}
  /* Vender (computador): su bloque tiene otros nombres de clase */
  html.pc2 body #vdhero2 .k{grid-area:k!important;margin:0!important;font-size:.82rem!important}
  html.pc2 body #vdhero2 .s{display:none}
  html.pc2 body #vdhero2 .vnum{grid-area:n!important;font-size:2rem!important;margin:0!important;text-align:right;white-space:nowrap;align-self:center}
  html.pc2 body #vdhero2 .vqpills{grid-area:p!important;margin:8px 0 0!important}
  /* Inicio (computador): saludo, número y etiquetas */
  html.pc2 body #tab-inicio>#vhero:not(#_x):not(#_y){grid-template-areas:"hi n a" "lbl n a" "chips chips a"!important}
  html.pc2 body #vhero .vtop{display:none}
  html.pc2 body #vhero .vhi{grid-area:hi!important;margin:0!important;font-size:1.05rem!important;line-height:1.2}
  html.pc2 body #vhero .vsum{display:contents!important}
  html.pc2 body #vhero .vlbl{grid-area:lbl!important;margin:0!important;font-size:.82rem!important}
  html.pc2 body #vhero .vbig{grid-area:n!important;font-size:2rem!important;line-height:1.1!important;margin:0!important;text-align:right;white-space:nowrap}
  html.pc2 body #vhero .vchips{grid-area:chips!important;margin:8px 0 0!important;gap:6px}
  html.pc2 body #vhero .vchips .vchip{padding:4px 10px!important;font-size:.72rem!important}
  /* los botones del bloque: 2 filas bajas a la derecha */
  html.pc2 body :is(#vhero2,#ihero2,#cphero2,#chero2,#fhero2,#svhero2,#qhero2,#rphero2,#clhero2,#vdhero2,#vhero)>.pcacts{grid-area:a!important;grid-column:3!important;grid-row:1/span 3!important;gap:8px!important;grid-template-columns:repeat(2,minmax(150px,1fr))!important}
  html.pc2 body :is(#vhero2,#ihero2,#cphero2,#chero2,#fhero2,#svhero2,#qhero2,#rphero2,#clhero2,#vdhero2,#vhero)>.pcacts .pca{min-height:40px!important;padding:8px 14px!important;border-radius:13px!important;font-size:.9rem!important}
  html.pc2 body :is(#vhero2,#ihero2,#cphero2,#chero2,#fhero2,#svhero2,#qhero2,#rphero2,#clhero2,#vdhero2,#vhero)>.pcacts .pca svg{width:18px;height:18px}
  /* Ajustes: la tarjeta del negocio y los botones en una fila baja */
  html.pc2 body #tab-ajustes>#ajhero2:not([hidden]):not(#_x){display:grid!important;grid-template-columns:auto minmax(0,1fr) auto!important;grid-template-areas:none!important;column-gap:20px!important;padding:14px 22px!important;margin-bottom:12px!important;min-height:0!important;border-radius:22px!important;align-items:center}
  html.pc2 body #ajhero2::before{grid-column:1!important;grid-row:1!important;margin:0!important;font-size:1.05rem!important}
  html.pc2 body #ajhero2>.ajbiz{grid-column:2!important;grid-row:1!important;padding:8px 12px!important;margin:0!important}
  html.pc2 body #ajhero2 .ajblogo{width:40px!important;height:40px!important;min-width:40px!important}
  html.pc2 body #ajhero2>.pcacts{grid-column:3!important;grid-row:1!important;gap:8px!important;grid-template-columns:repeat(2,minmax(150px,1fr))!important}
  html.pc2 body #ajhero2>.pcacts .pca{min-height:40px!important;padding:8px 14px!important;border-radius:13px!important;font-size:.9rem!important}
}

/* v748 · Tablet vertical: el botón del perfil de Vender queda a la misma altura que en las demás pestañas (la fila de arriba es más alta que en el celular) */
@media (min-width:600px) and (max-width:1099px){
  html:root body #app[data-tab="vender"] header.top .head-r{top:calc(var(--sat) + 30px)!important}
}

/* v748 · Ventas con el panel de detalle abierto (computador): el espacio útil es angosto; el bloque verde se ordena en columna (título y número arriba, etiquetas y los botones debajo, en filas). Hallazgo de la auditoría: sin esto los botones y el número se encimaban. */
@media (min-width:1100px){
  html.pc2 body #tab-ventas:has(.pcdet) #vhero2:not(#_x):not(#_y){grid-template-columns:minmax(0,1fr) auto!important;grid-template-areas:"t n" "k n" "p p" "a a"!important;padding:14px 18px!important}
  html.pc2 body #tab-ventas:has(.pcdet) #vhero2>.pcacts:not(#_x){grid-area:a!important;grid-column:1/-1!important;grid-row:auto!important;display:flex!important;flex-wrap:wrap;gap:8px!important;margin-top:10px}
  html.pc2 body #tab-ventas:has(.pcdet) #vhero2>.pcacts .pca{flex:1 1 130px;min-height:40px!important;padding:8px 12px!important}
}

/* v752 · Crédito: cuando el cliente debe varios productos, la foto del primero lleva una insignia «+N» abajo a la derecha (dentro de la foto) */
html:root:not(#_a) body #flist .fav.favth{position:relative}
html:root:not(#_a) body #flist .fav.favth .favmore{position:absolute;right:0;bottom:0;margin:0;padding:2px 6px 2px 7px;border-radius:9px 0 12px 0;background:var(--accent,#15803d);color:#fff;font:700 .68rem/1.2 var(--f-body,system-ui);font-style:normal;letter-spacing:0;pointer-events:none}

/* v754 · Etiquetas: medidas personalizadas (ancho, alto, separación, mover y escala) */
.lcbox{margin:8px 0 10px;padding:10px 12px;border:1px solid var(--line,#e5e7eb);border-radius:14px;background:var(--field,rgba(0,0,0,.03))}
.lcbox .row{gap:10px;flex-wrap:wrap}.lcbox .f{min-width:140px}
.lcbox #lcalib{margin-top:8px;width:100%}

/* v758 (Juan, 2026-11-12) · Entrada (PIN y registro) y carga con el diseño nuevo en celular y tableta: la franja verde pasa a ser una tarjeta con márgenes
   y esquinas redondeadas, igual que el encabezado de las pantallas internas, sobre el fondo claro de la app. El computador (mitad verde) no cambia. */
@media (max-width:699px),(min-width:700px) and (max-width:1099px) and (orientation:portrait){
  :root{--ag:12px;--axm:16px}
  html:root body .authside{inset:calc(var(--ag) + env(safe-area-inset-top)) var(--axm) auto var(--axm)!important;height:var(--bandh)!important;border-radius:28px!important;padding-top:18px!important}
  .authside .as-top{top:18px!important}
  .authside .as-foot{top:20px!important}
  html:root body:has(#auth:not([hidden])){padding-top:calc(var(--bandh) + var(--ag) + 10px + env(safe-area-inset-top))!important;background:var(--bg)!important}
  html body #auth .auth{height:calc(100dvh - var(--bandh) - var(--ag) - 10px - env(safe-area-inset-top))!important}
  #splash{padding-top:0!important}
}
@media (max-width:699px){.authside .as-foot span{display:none}}
@media (max-width:699px) and (min-height:761px){html.auth-pad{--bandh:292px}}
@media (min-width:700px) and (max-width:1099px) and (orientation:portrait){
  :root{--axm:max(16px,calc((100vw - 720px) / 2));--bandh:25vh}
  html:root body .authside{padding:24px 32px 26px!important}
  .authside .as-top{left:32px!important}
  .authside .as-foot{right:32px!important}
  .authside .as-time{font-size:4.4rem}
}
/* carga: fondo claro y una tarjeta verde con el logo */
@media (max-width:1099px){
  html:root:not(#_a):not(#_b) body #splash:not(#_x):not(#_y){background-color:var(--bg)!important;background-image:none!important;color:var(--fg)}
  html:root:not(#_a):not(#_b) body #splash:not(#_x):not(#_y) .sp-card{background:var(--accent)!important;color:var(--accent-ink,#fff);border-radius:32px!important;padding:36px 32px 30px!important;width:min(calc(100vw - 48px),340px)!important;box-sizing:border-box;display:flex;flex-direction:column;align-items:center;gap:12px!important}
  html:root[data-theme="dark"]:not(#_a):not(#_b) body #splash:not(#_x):not(#_y) .sp-card,html:root[data-style="mostrador"]:not([data-theme="light"]):not(#_a):not(#_b) body #splash:not(#_x):not(#_y) .sp-card{background:color-mix(in srgb,var(--accent) 55%,#000)!important}
  html:root:not(#_a):not(#_b) body #splash:not(#_x):not(#_y) .sp-pbar{width:100%!important}
  html:root body #splash:not(#_x):not(#_y) .splash-t{position:static;width:auto;height:auto;clip:auto;margin-top:2px;color:color-mix(in srgb,var(--fg) 72%,transparent)!important;opacity:1}
}
/* v759: la ficha de caja de Inicio puede traer «Ayer no cerraste la caja» y la base juntas */
.icajacard .icprev+.icbase{margin-top:14px;padding-top:14px;border-top:1px solid var(--line)}
.icajacard .icprev .row{gap:10px}

/* v763 · Etiquetas (herramienta nueva): el papel de la etiqueta siempre es blanco con tinta negra, también en modo oscuro */
.etqpaper{position:relative;width:100%;margin:0 auto;background:#fff;border-radius:5px;box-shadow:0 0 0 1px rgba(0,0,0,.14),0 6px 18px -8px rgba(0,0,0,.45);overflow:hidden}
.etqpaper canvas{display:block;width:100%;height:100%}
.etqpaper .etqsafe{position:absolute;border:1.5px dashed #16a34a;pointer-events:none;border-radius:2px}
.etqpaper .etqsafe[hidden]{display:none}
.etqcardpv{margin:12px 0;padding:16px 12px 10px;border-radius:var(--r-md,16px);background:color-mix(in srgb,var(--fg,#000) 6%,transparent);text-align:center}
.etqcardpv .hint{margin:10px 0 0}
.etqw{color:var(--bad,#b42318);font-weight:600}
.etqshow{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));column-gap:18px;margin-top:4px}
.dlg.etqdlg{width:min(100%,480px);max-height:92dvh;overflow:auto}
.etqstage{padding:22px 14px;border-radius:var(--r-md,16px);background:color-mix(in srgb,var(--fg,#000) 8%,transparent)}
.etqnav{display:flex;align-items:center;justify-content:center;gap:14px;font-size:.9rem;font-weight:600}
.etqnav .btn{min-width:44px;min-height:44px;font-size:1.3rem;padding:0;margin:0}
.etqadj{border:1px solid var(--line);border-radius:14px;padding:0 12px}
.etqadj[open]{padding-bottom:12px}
.etqadj summary{cursor:pointer;font-weight:700;font-size:.92rem;padding:13px 0;min-height:44px}
.etqadj .btn{width:100%;margin-top:8px}
.etqrow{display:flex;align-items:center;gap:8px;margin-top:8px}
.etqrow .etqlbl{flex:1;font-size:.9rem;min-width:0}
.etqrow .etqval{min-width:96px;text-align:center;font-size:.88rem}
.etqadj .etqrow .btn{width:auto;flex:none;min-width:44px;min-height:44px;font-size:1.15rem;padding:0;margin:0}

/* v761 (Juan): en la carga con fondo claro, «Mi Cuadra App» y su logo (debajo de la tarjeta, cuando el negocio tiene su propio logo) salían blancos sobre blanco.
   En modo claro: letra oscura y el logo con cuadro oscuro; en modo oscuro se queda el logo claro y la letra clara. */
@media (max-width:1099px){
  html:root:not(#_a):not(#_b) body #splash:not(#_x):not(#_y) .sp-by span{color:var(--fg)!important}
  html:root:not(#_a):not(#_b) body #splash:not(#_x):not(#_y) .sp-by .sp-cq.lt{display:none!important}
  html:root:not(#_a):not(#_b) body #splash:not(#_x):not(#_y) .sp-by .sp-cq.dk{display:inline-block!important}
  html:root[data-theme="dark"]:not(#_a):not(#_b) body #splash:not(#_x):not(#_y) .sp-by .sp-cq.lt,html:root[data-style="mostrador"]:not([data-theme="light"]):not(#_a):not(#_b) body #splash:not(#_x):not(#_y) .sp-by .sp-cq.lt{display:inline-block!important}
  html:root[data-theme="dark"]:not(#_a):not(#_b) body #splash:not(#_x):not(#_y) .sp-by .sp-cq.dk,html:root[data-style="mostrador"]:not([data-theme="light"]):not(#_a):not(#_b) body #splash:not(#_x):not(#_y) .sp-by .sp-cq.dk{display:none!important}
}

/* v768 (Juan, 2026-11-12) · Entrada «Clara» y carga «Verde total», en celular, tableta y computador (Juan escogió la opción A con la carga de la B).
   Entrada: fondo claro, sin franja ni tarjeta verde; logo y nombre arriba, la foto y el saludo al centro, teclas redondas y el color del negocio solo en lo que se toca.
   Carga: toda la pantalla en el color del negocio, con un aro que se llena alrededor del logo y el porcentaje. */
:root{--avh:calc(100dvh - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));--ecol:min(100vw,470px);--eh:var(--avh);--etop:0px;--pkmax:72px;--avmax:82px;--himax:1.95rem}
html.auth-pad:root{--eh:min(var(--avh),820px);--etop:calc((var(--avh) - var(--eh)) / 2)}
@media (min-width:700px){:root{--ecol:min(100vw,520px)}html.auth-pad:root{--eh:min(var(--avh),900px);--pkmax:84px;--avmax:100px;--himax:2.35rem}}
html:root:not(#_a):not(#_b){--bandh:60px!important}
html.auth-pad:root:not(#_a):not(#_b){--bandh:clamp(176px,calc(var(--eh) * .275),262px)!important}
html:root body .authside:not(#_x):not(#_y){position:fixed!important;inset:calc(env(safe-area-inset-top,0px) + 6px + var(--etop)) 0 auto 0!important;margin-inline:auto!important;width:var(--ecol)!important;height:var(--bandh)!important;
  padding:6px 26px 0!important;background:none!important;background-image:none!important;color:var(--fg)!important;border-radius:0!important;box-shadow:none!important;overflow:visible!important;
  display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:flex-start!important;transform:none!important}
html:root body .authside:not(#_x)::before,html:root body .authside:not(#_x)::after{display:none!important}
html:root body:has(#splash:not([hidden]):not(.off)) .authside:not(#_x):not(#_y){display:none!important}
html:root body .authside .as-top:not(#_x){position:static!important;order:0!important;align-self:stretch;width:auto!important;margin:0 96px 0 0!important;height:40px;flex:none;display:flex!important;align-items:center;gap:10px;box-sizing:border-box;min-width:0;right:auto!important;left:auto!important}
html:root body .authside .as-logo:not(#_x){width:38px!important;height:38px!important;border-radius:11px!important;background:#fff!important;box-shadow:0 0 0 1px var(--line);font-size:1.1rem}
html:root body .authside .as-logo img{max-width:30px!important;max-height:30px!important}
html:root body .authside .as-top b:not(#_x){font:800 1.06rem/1.1 var(--f-display)!important;letter-spacing:-.01em;color:var(--fg)}
html:root body .authside>div:nth-child(2):not(#_x):not(#_y){position:absolute!important;right:26px!important;top:6px!important;left:auto!important;bottom:auto!important;height:40px;display:flex!important;align-items:center;z-index:1}
html:root body .authside .as-time:not(#_x):not(#_y){font:700 .9rem/1 var(--f-body)!important;letter-spacing:0!important;color:var(--muted);opacity:1}
html:root body .authside .as-time small{font-size:1em!important;margin-left:4px!important}
html:root body .authside .as-date:not(#_x),html:root body .authside .as-foot:not(#_x):not(#_y){display:none!important}
/* saludo */
html.auth-pad:root body .authside .as-greet:not(:empty):not(#_x){order:1!important;display:flex!important;flex-direction:column!important;align-items:center!important;text-align:center!important;gap:0;margin:clamp(8px,calc(var(--eh) * .022),22px) 0 0!important;position:static}
html.auth-pad:root body .as-greet .ahiph:not(#_x):not(#_y){display:grid!important;width:clamp(56px,calc(var(--eh) * .1),var(--avmax))!important;height:clamp(56px,calc(var(--eh) * .1),var(--avmax))!important;font-size:1.6rem;border:0!important;margin:0!important;position:static!important;transform:none!important;
  box-shadow:0 0 0 3px var(--bg),0 0 0 5.5px var(--accent)}
html.auth-pad:root body .as-greet .ahi:not(#_x):not(#_y){color:var(--fg)!important;font:800 clamp(1.5rem,calc(var(--eh) * .04),var(--himax))/1.1 var(--f-display)!important;letter-spacing:-.02em;margin:clamp(8px,1.6vh,14px) 0 0!important;gap:4px!important;align-items:center!important;display:flex;flex-direction:column}
html.auth-pad:root body .as-greet .ahichg:not(#_x):not(#_y){background:none!important;color:var(--accent)!important;font:700 .88rem/1.2 var(--f-body)!important;padding:4px 8px!important;border-radius:8px}
/* hoja */
html:root body:has(#auth:not([hidden])):not(#_x){padding-top:calc(var(--bandh) + env(safe-area-inset-top,0px) + 6px + var(--etop))!important;padding-left:0!important;background:var(--bg)!important}
html:root body #auth:not(#_x):not(#_y){width:var(--ecol)!important;max-width:none!important;margin:0 auto!important;left:auto!important;right:auto!important;position:relative!important;padding-left:0!important}
html:root body #auth .auth:not(#_x):not(#_y){height:calc(var(--eh) + env(safe-area-inset-bottom,0px) - var(--bandh) - 6px)!important;padding:0!important;min-height:0!important;width:100%!important;max-width:none!important;margin:0!important}
html.auth-pad:root body #auth:not(#_x){--pk:clamp(50px,calc((var(--eh) - var(--bandh) - 300px) / 4),var(--pkmax))}
html.auth-pad:root body #auth .auth.pad .asheet:not(#_x){gap:8px!important;padding:4px 26px calc(env(safe-area-inset-bottom,0px) + 10px)!important;align-items:center}
html.auth-pad:root body #auth .auth.pad #authform:not(#_x):not(#_y){background:none!important;box-shadow:none!important;border:0!important;padding:0!important;margin:0!important;border-radius:0!important;height:100%;width:100%;max-width:none!important;gap:0!important;justify-content:flex-start!important}
html.auth-pad:root body #auth .auth.pad .ahero:not(#_x):not(#_y){margin:0!important;padding:10px 0 0!important;gap:0!important;min-height:0!important;flex:none}
html.auth-pad:root body #auth .auth.pad .asheet:not(#_x):not(#_y){flex:1 1 auto;min-height:0;width:100%;margin:0!important}
html.auth-pad:root body #auth #ahint:not(#_x){margin:0!important;font-size:.92rem;color:var(--muted);text-align:center}
html.auth-pad:root body #auth #adots:not(#_x){margin:4px 0 6px;height:18px;min-height:0;gap:14px}
html.auth-pad:root body #auth #adots i:not(#_x){width:13px!important;height:13px!important;background:none!important;border:2px solid color-mix(in srgb,var(--fg) 26%,transparent)!important;box-sizing:border-box}
html.auth-pad:root body #auth #adots i.on:not(#_x){background:var(--accent)!important;border-color:var(--accent)!important}
html.auth-pad:root body #auth .pinpad:not(#_x):not(#_y){grid-template-columns:repeat(3,var(--pk))!important;justify-content:center!important;gap:clamp(8px,calc(var(--eh) * .013),14px) clamp(22px,calc(var(--pk) * .4),34px)!important;width:auto!important;margin:0 auto!important}
html.auth-pad:root body #auth #apad .padk:not(#_x):not(#_y){width:var(--pk)!important;height:var(--pk)!important;border-radius:50%!important;font:600 clamp(1.5rem,calc(var(--pk) * .39),2rem)/1 var(--f-display)!important;border:0!important}
html.auth-pad:root body #auth #apad .padk:not(.del):not(.pkk):not(#_x):not(#_y){background:var(--surface,#fff)!important;box-shadow:0 0 0 1px var(--line),0 2px 5px -2px rgba(0,0,0,.14)!important;color:var(--fg)}
html.auth-pad:root body #auth #apad .padk.pkk:not(#_x):not(#_y),html.auth-pad:root body #auth #apad .padk.del:not(#_x):not(#_y){background:none!important;box-shadow:none!important}
html.auth-pad:root body #auth #apad .padk.pkk:not(#_x){color:var(--accent)!important}
html.auth-pad:root body #auth #aerr:empty{display:none}
html.auth-pad:root body #auth .auth.pad #abtn:not(#_x){width:100%;min-height:54px;border-radius:18px!important;margin-top:auto;font:800 1.1rem/1 var(--f-display)}
html.auth-pad:root body #auth .auth.pad .alinks:not(#_x){display:flex;justify-content:center;gap:10px;margin:2px 0 0}
html.auth-pad:root body #auth .auth.pad .alinks>span{display:none}
html.auth-pad:root body #auth .auth.pad .alinks .linkbtn:not(#_x):not(#_y){background:none!important;color:var(--accent)!important;padding:8px 8px!important;font:700 .92rem/1 var(--f-body);text-decoration:none!important;min-height:34px}
html.auth-pad:root body #auth .auth.pad .asheet>.credit:not(#_x){padding:0!important;font-size:.68rem;opacity:.85}
html.auth-pad:root body #auth .auth.pad .asheet>.credit img{height:22px!important}

/* (Carga «Verde total» quitada el 2026-11-23: la pantalla de carga ahora es «A · Logo, barra y pasos», al final de este archivo) */
/* v768 · tableta y computador: el botón «Entrar» va cerca del teclado y del mismo ancho, no estirado al fondo */
@media (min-width:700px){
  html.auth-pad:root{--eh:min(var(--avh),850px)}
  html.auth-pad:root body #auth .auth.pad #abtn:not(#_x):not(#_y){margin-top:26px!important;width:min(100%,calc(var(--pk) * 3 + 2 * 34px + 24px))!important;align-self:center}
}
/* v768 · las demás pantallas de entrada (crear la cuenta, entrar con correo, elegir quién entra): el formulario empieza debajo del encabezado y la página desliza; el encabezado queda fijo con fondo */
html:not(.auth-pad):root body .authside:not(#_x):not(#_y){background:var(--bg)!important;height:calc(var(--bandh) - 6px)!important;z-index:6}
html:not(.auth-pad):root body #auth .auth:not(#_x):not(#_y){height:auto!important;min-height:0!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:flex-start!important;padding:4px 16px calc(env(safe-area-inset-bottom,0px) + 28px)!important;box-sizing:border-box}
html:not(.auth-pad):root body #auth .auth #authform:not(#_x):not(#_y){margin:0 auto!important;position:static!important;transform:none!important;max-height:none!important;overflow:visible!important}
html:not(.auth-pad):root body:has(#auth:not([hidden])):not(#_x){overflow-y:auto!important;height:auto!important;min-height:100dvh}
/* v770 · Reportes → Dinero: barra de porcentaje de cada categoría y de cada cuenta (color del negocio) */
.rx-bar{display:block;height:6px;border-radius:999px;background:var(--field);margin-top:8px;overflow:hidden}
.rx-bar i{display:block;height:100%;border-radius:999px;background:var(--accent)}

/* v773 · Textos completos y botones con zona de toque cómoda (revisado en iPhone 15 Pro Max, 430×932)
   - Nombres y líneas de detalle de las listas se parten en otra línea en vez de terminar en «…».
   - Los botones chicos ganan zona de toque de 40–44 px sin cambiar cómo se ven. */
.vr2 .l1 b,#ilist .ir2 .l1 b,#svlist .sv2 .l1 b,#factlist .fr2 .l1 b,#qlist .q2 .l1 b,
.vr2 .l2>span:first-child,#ilist .ir2 .l2>span:first-child,#svlist .sv2 .l2>span:first-child,#factlist .fr2 .l2>span:first-child,#qlist .q2 .l2>span:first-child,
.cjv #cjmlist .cjmrow .main .t,
html.aj-insec #tab-ajustes>.card.fold>h2 .ajsub{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere;min-width:0}
.vr2 .l1,#ilist .ir2 .l1,#svlist .sv2 .l1,#factlist .fr2 .l1{align-items:flex-start}
.vr2 .l2,#ilist .ir2 .l2,#svlist .sv2 .l2,#factlist .fr2 .l2{align-items:flex-start}
.vqpill{min-height:32px;padding:7px 12px}
.rx-ck,#vtoca .vtlck,#vtoca .vtlx,#ilastcard .ilall,.mchip{position:relative}
.rx-ck::after,#vtoca .vtlck::after,#vtoca .vtlx::after{content:"";position:absolute;inset:-8px}
#ilastcard .ilall::after{content:"";position:absolute;inset:-15px -10px}
.mchip{min-height:36px}
#tab-reportes b.num,#tab-reportes .num{max-width:100%;overflow-wrap:anywhere}
/* v773 · el botón de pantallas se esconde mientras se desliza */
html.fabhide #navfab{opacity:0!important;pointer-events:none!important;transform:translateY(10px)!important}
/* v774 · Inicio más liviano: 3 accesos, buscador a la vista y «Hoy toca» con 2 filas */
#vtoca .vtlr.vtmore{display:none}
#vtoca .vtlmorebtn{display:block;width:100%;margin-top:6px;min-height:44px;border:0;border-radius:14px;background:var(--field,#efefec);color:var(--fg);font:700 .9rem/1 var(--f-body);cursor:pointer}
@media (max-width:1099px){
  html:root body #tab-inicio>#gsbtn{display:flex!important;order:-2;margin:12px 0 0;min-height:52px;color:var(--muted)}
}
/* v774 · Compras: «Pedir N» es un botón (un toque abre «¿Cuántos pedir?»); un solo botón principal y el resto en «Más opciones del pedido» */
#lowcard .lowqb{flex:none;border:0;border-radius:999px;background:var(--field,#efefec);color:var(--fg);padding:0 14px;min-height:44px;min-width:88px;justify-content:center;font:600 .88rem/1 var(--f-body);cursor:pointer}
#lowcard .lowqb b{font-size:1rem;font-weight:800}
#lowcard .lowqb:active{transform:scale(.96)}
#lowcard>#lowact{grid-template-columns:1fr}
#lowcard>#lowact .btn{min-height:52px;font-weight:800}
#lowcard #lowtools{margin-top:4px}
#lowcard #lowtools .lowact2{margin-top:10px}
.lqmod .dlg{max-width:360px}
/* v774 · Productos más liviano: «Categoría ▾» reemplaza las tarjetas (celular), el escáner va dentro del buscador */
@media (max-width:1099px){html:root body #tab-inventario #invcats.icards{display:none!important}}
@media (min-width:1100px){#tab-inventario #icatlbl{display:none!important}}
#tab-inventario #isbar label.f{position:relative}
#tab-inventario #isbar label.f>input#isearch{padding-right:52px}
html:root body #tab-inventario #isbar #iscan{position:absolute;right:4px;top:50%;transform:translateY(-50%);width:44px;height:44px;min-width:44px;padding:0;border:0!important;background:transparent!important;box-shadow:none!important;display:grid;place-items:center;z-index:2}
/* v775 · Vender: «Categoría ▾» en el celular (las fichas quedan en el computador); «N en stock» solo si queda poco */
.vcatsel{position:relative;display:inline-block;margin:12px 0 2px}
.vcatsel[hidden]{display:none}
.vcatsel select{appearance:none;-webkit-appearance:none;height:40px;border:0;border-radius:99px;background:var(--surface);color:var(--fg);font:700 .88rem/1 var(--f-body);padding:0 34px 0 16px;max-width:100%}
.vcatsel::after{content:"▾";position:absolute;right:14px;top:50%;transform:translateY(-50%);pointer-events:none;font-size:.75rem;opacity:.7;color:var(--fg)}
.vcatsel.on select{background:var(--fg);color:var(--bg)}
.vcatsel.on::after{color:var(--bg)}
/* v996: en el celular las categorías son píldoras (antes un menú), ver el bloque final */
@media (min-width:1100px){#tab-vender .vcatsel{display:none!important}}
#tab-vender .vcatsel{align-self:flex-start;width:auto;max-width:100%}
#tab-vender .vcatsel select{width:auto;min-width:130px}
/* v775 · Reportes (celular y tablet): «Hoy toca» en una sola línea y períodos en 4 fichas + «Otro período ▾» */
#tab-reportes .rx-todoline{display:flex;align-items:center;gap:12px;width:100%;min-height:52px;padding:8px 14px;border:0;border-radius:18px;background:var(--surface);color:var(--fg);font:600 .95rem/1.2 var(--f-body);text-align:left;cursor:pointer}
#tab-reportes .rx-todoline .okc{flex:none;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:color-mix(in srgb,var(--accent) 14%,var(--surface));color:var(--accent)}
#tab-reportes .rx-todoline .okc svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
#tab-reportes .rx-todoline .grow{flex:1;min-width:0}
#tab-reportes .rx-todoline em{font-style:normal;font-size:1.4rem;color:var(--muted);line-height:1}
@media (max-width:1099px){#tab-reportes .r-chip.rp-x{display:none!important}}
@media (min-width:1100px){#tab-reportes .r-chip.rp-otro{display:none!important}}
/* v776 · Aligerar tanda 3: Repuestos, Servicio y Ventas */
@media (max-width:1099px){
  html:root[data-invsub="rep"] body #tab-inventario #invctl #ivsw{display:none!important}
  html:root body #tab-servicio #svseg>button{padding-inline:11px!important}
  #svseg .sv-x{display:none!important}
}
@media (min-width:1100px){#svseg .sv-otro{display:none!important}}
#tab-servicio .svsrow>label.f{position:relative}
#tab-servicio #svsearch{padding-right:52px}
html:root body #tab-servicio .svsrow label.f #svqr{position:absolute;right:4px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:44px;height:44px;min-height:0;padding:0;border:0!important;background:transparent!important;box-shadow:none!important;color:var(--fg)!important;z-index:2}
@media (max-width:1099px){html:root body #tab-servicio #svseg [data-fbtn]>span:not(.fcount){display:none}html:root body #tab-servicio #svseg [data-fbtn]{padding-inline:12px!important;min-width:44px}}
/* v777 · Vender en computador y tableta ancha: la fila de fichas se encogía y las cortaba por la mitad (la agrandé en v773) */
html:root body #tab-vender #vcats{flex:none;min-height:0}
@media (min-width:1100px){html:root body #tab-vender #vcats{margin-bottom:10px}}
/* v778 · Pendientes de la revisión de pantallas: zonas de toque, carrito en tableta, acciones del computador */
:is(#ihero2,#fhero2) .ih-eye{position:relative}
:is(#ihero2,#fhero2) .ih-eye::after{content:"";position:absolute;inset:-11px}
html:root body .vchip.owe{min-height:32px}
#vtoca .vtlbtn{min-height:36px}
@media (hover:none),(pointer:coarse){
  #tab-vender.dkm #vcart>.item .qty button{width:38px;min-width:38px;height:38px}
  #tab-vender.dkm #vcart>.item .qty .qin,#tab-vender.dkm #vcart>.item .qty>span{width:40px;height:38px}
  #tab-vender.dkm #vcart>.item .pe{height:38px}
  #tab-vender.dkm #vcart>.item>.x{width:38px;min-width:38px;height:38px}
}
@media (min-width:1100px){html.pc2 body .pcacts>*:last-child:nth-child(odd){grid-column:1/-1}}
/* v778 · nombres largos completos: tarjetas de Vender en computador (hasta 8 líneas) y carrito de la tableta */
@media (min-width:1100px){html:root body #vpick .vgrid>.qcard.gcard .qn{-webkit-line-clamp:8}}
@media (hover:none),(pointer:coarse){#tab-vender.dkm #vcart>.item .t{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}}
/* v778 · pastillas del encabezado: texto centrado (con el alto mínimo de v773 el texto quedaba pegado arriba) y todas del mismo alto */
html:root body .vqpills{align-items:center}
html:root body .vqpill:not(.pconly):not([hidden]){display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:32px;line-height:1.2;text-align:center}
/* v778 · Compras (la pantalla real del celular): nombres de productos y proveedores completos, sin «…» */
.cpview .cpm b{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
/* v778 · Compras real: «Ver pedido ›» y «Ver todas ›» con zona de toque de 44 px, «Abonar» de 36 px */
.cpview .cplk{position:relative}
.cpview .cplk::after{content:"";position:absolute;inset:-15px -10px}
.cpview .cpbtn{min-height:36px}
/* v779 · Compras real → Por pedir: «Pedir N» es un botón (un toque abre «¿Cuántos pedir?») */
.cpview .cpq.cpqb{border:0;color:var(--fg);font:600 .88rem/1 var(--f-body);min-height:44px;min-width:88px;padding:0 14px;border-radius:999px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:5px}
.cpview .cpq.cpqb b{font-size:1rem;font-weight:800}
.cpview .cpq.cpqb:active{transform:scale(.96)}
/* v780 · Filas de compras, pagos y clientes dentro de ventanas (ficha del proveedor, Cuentas por pagar…) en pantallas anchas:
   la tabla de columnas fijas (190 + 130 + 200 px…) no cabe en una ventana de ~600 px y el nombre quedaba con ancho 0 (una letra por línea) */
@media (min-width:1100px){
  .modal .item.trow{display:flex;flex-wrap:wrap;align-items:center;column-gap:12px;grid-template-columns:none;padding:12px 0;border-bottom:0;border-top:1px solid var(--line)}
  .modal .item.trow .main{display:block;flex:1 1 220px;min-width:0}
  .modal .item.trow .trow-r{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
  .modal .item.pur .main .s:not(details),.modal .item.fia .main .s:not(details){display:block}
  .modal .item.trow>:not(.main):not(.trow-r):not(.row):not(.tact):not(.pacts){grid-column:auto}
  .modal .thead.tcols{display:none}
}
@media (min-width:1100px){
  .modal .item.trow .tc{display:inline}
  .modal .item.trow .sep{display:inline}
  .modal .cpact{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}
  .modal .sptabs{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media (min-width:1100px){
  html:root body .modal #spbody .cpact{grid-template-columns:repeat(auto-fit,minmax(130px,1fr));grid-auto-flow:row}
  html:root body .modal #spbody .sptabs{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media (min-width:1100px){
  html:root body .modal .item.pur .pacts,html:root body .modal #plist .item.pur .pacts{order:0;flex:1 1 100%;width:100%;display:flex;flex-direction:column;align-items:stretch;gap:8px;margin-top:6px;opacity:1}
  html:root body .modal .item.pur .pacts>.row,html:root body .modal #plist .item.pur .pacts>.row{flex:1 1 auto;display:flex;flex-wrap:wrap;justify-content:flex-start;gap:8px}
  html:root body .modal .item.pur .pacts>.row .btn{flex:1 1 150px;justify-content:center;width:auto}
}
/* v781 · Clientes y Crédito más livianos (celular y tableta): «+» junto a «⋯» en vez de la tarjeta «Agregar cliente», sin cambio de vista y sin las 3 cifras repetidas del encabezado */
@media (max-width:1099px){
  #cform.fold.closed{display:none!important}
  .modal #cform{display:flex!important}
  #tab-fiado #caddbtn[hidden]{display:inline-flex!important}
  #tab-fiado .vsw[data-vk="cli"]{display:none!important}
  html:root body #tab-fiado .lstats{display:none!important}
}
/* v783 · la campana del menú lateral (tableta y computador) quedaba 5 px corrida a la derecha: heredaba el relleno de los botones del menú */
html:root body nav.tabs .navwho .bellbtn{display:grid;place-items:center;justify-content:center;align-content:center;padding:0;width:38px;height:38px;min-width:38px;min-height:38px}
/* v784 · ✕ del panel de detalle de venta (tableta y computador): zona de toque de 50 px sin cambiar cómo se ve */
html.pc2 body #slist .pcdet .pcx::after{content:"";position:absolute;inset:-8px}
/* v785 · Inventario en mosaico (tableta y todo tamaño): arreglo de un error de v773.
   v773 hizo que los nombres se partieran en vez de terminar en «…»; en el mosaico el nombre tenía tope de 2 líneas con el resto escondido,
   y al quitar lo escondido las líneas de sobra se montaban sobre el precio, y la marca se partía letra por letra en la tarjeta angosta. */
html:root body #tab-inventario #ilist.v-mosaico .item.inv>.ir2 .l1 b{display:block!important;-webkit-line-clamp:unset!important;overflow:visible!important;overflow-wrap:break-word;word-break:normal}
html:root body #tab-inventario #ilist.v-mosaico .item.inv>.ir2 .l2{flex-wrap:wrap;gap:4px 8px;align-items:center}
html:root body #tab-inventario #ilist.v-mosaico .item.inv>.ir2 .l2>span:first-child{overflow-wrap:break-word!important;word-break:normal;flex:1 1 auto;min-width:0}
/* v786 · ventas en espera guardadas en la cuenta */
.holds .hold.busy{opacity:.75}
.holds .hold-busy{color:var(--bad,#b3261e);font-weight:700}
.hold-draft .hold{border-top:0}
.hold-act .btn[disabled]{opacity:.5;cursor:default}
/* v787 · Ajustes (celular y tableta vertical): sin la campana de arriba, que dejaba una fila vacía en el encabezado verde (Juan, 2026-11-13) */
@media (max-width:1099px){
  html:root:not(.aj-insec) body #app[data-tab="ajustes"]:not(#_x):not(#_y):not(#_z) header.top>.head-r{display:none!important}
  html:root:not(.aj-insec) body #app[data-tab="ajustes"]:not(#_x):not(#_y):not(#_z) header.top{min-height:0!important;height:auto!important;padding-block:max(env(safe-area-inset-top,0px),10px) 0!important;row-gap:0!important}
}

/* v788 · Pasar dinero entre cuentas */
.cjacts.n4{grid-template-columns:repeat(4,minmax(0,1fr))}
#ptcard .hint b{font-weight:800}
/* v789 · Caja en el computador: con «Pasar dinero» son 5 botones; 3 columnas para que el bloque verde no crezca (2 filas) */
@media (min-width:1100px){html.pc2 body #tab-caja #chero2>.pcacts:not(#_x){grid-template-columns:repeat(3,minmax(112px,1fr))!important;gap:6px!important}html.pc2 body #tab-caja #chero2>.pcacts>*:last-child:nth-child(odd):not(#_x){grid-column:auto!important}html.pc2 body #tab-caja #chero2>.pcacts .pca:not(#_x){padding:8px 4px!important;font-size:.8rem!important;gap:4px!important}html.pc2 body #tab-caja #chero2:not(#_x){column-gap:12px!important}html.pc2 body #tab-caja #chero2.vhero2:not(#_x):not(#_y){min-height:116px!important;box-sizing:border-box}html.pc2 body #tab-caja #chero2 .vqpills{gap:6px!important}html.pc2 body #tab-caja #chero2 .vqpills>*:not(#_x){padding-left:8px!important;padding-right:8px!important;font-size:.76rem!important}}
/* v789 · Caja entre 1100 y 1279 px: los chips caben en 2 líneas más bajitas para que el bloque verde se acerque a los demás */
@media (min-width:1100px) and (max-width:1279px){html.pc2 body #tab-caja #chero2 .vqpills:not(#_x){gap:4px!important;row-gap:4px!important}html.pc2 body #tab-caja #chero2 .vqpills>*:not(#_x):not(#_y){min-height:26px!important;padding-top:4px!important;padding-bottom:4px!important}html.pc2 body #tab-caja #chero2:not(#_x):not(#_y){padding-top:14px!important;padding-bottom:14px!important}}
/* v790 · Editar y Quitar dentro del renglón del traslado (Movimientos del día) */
.cjtract{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:6px}
.cjtract .btn.small{min-height:36px;padding:6px 14px}
#ptcard #ptcancel{min-height:44px}
/* v792 (Juan): con un color de negocio negro u oscuro el botón «Ver carrito» (casi negro) se perdía en la barra del carrito; ahora pasa a blanco con letra oscura (--mc-oscuro lo pone applyTheme) */
html:root:not(#_a):not(#_b) body #vbar #vgo:not(#_x){background:color-mix(in srgb,#fff calc(var(--mc-oscuro,0)*100%),#15171a)!important;color:color-mix(in srgb,#15171a calc(var(--mc-oscuro,0)*100%),#fff)!important}
/* v796 (Juan): en tablet horizontal y computador «Continuar donde lo dejaste» y las ventas en espera quedaban DEBAJO del catálogo (order:1) y había que deslizar para verlas; ahora van arriba, a lo ancho */
@media (min-width:900px){html:root body #app[data-tab="vender"] #tab-vender>#vholds:not(#_x){grid-row:2!important;grid-column:1/-1!important;margin-top:0;margin-bottom:16px}html:root body #app[data-tab="vender"] #tab-vender:has(>#vholds:not(:empty))>:is(.vvcard,.cartcard):not(#_x){grid-row:3!important}}
/* v797 · Saldo de cada cuenta dentro de «Pasar dinero» */
#ptcard .ptsaldo{margin:6px 0 2px}
#ptcard .ptsaldo .item{padding:8px 0}
#ptcard .ptsaldo .btn.small{min-height:40px}
/* v800 (Juan, 2026-11-14, segunda tanda de botones): zonas de toque de 44 px SIN cambiar cómo se ven. Las fichas y pestañas de 32 a 36 px de alto reciben una zona invisible que sobresale unos píxeles
   (arriba y abajo; a los lados 3 px, menos que el espacio entre fichas). Los títulos desplegables, los selectores y los campos de cantidad sí crecen un poco porque ahí no cabe una zona invisible. */
:is(.vqpill,.vqchip,.r-chip,.vchip.owe,#factper>button,#svseg>button,.btn.fbtn,.sv-otro,.fbseg>button,#ivsw>button,.mchip,.vtlbtn,.cpbtn,.cjtract .btn.small,.chkseg>button,.sheetx,.btn.cpib,.qty>button,.vtlck,.cpall):not(#_x){position:relative}
:is(.vqpill,.vqchip,.r-chip,.vchip.owe,#factper>button,#svseg>button,.btn.fbtn,.sv-otro,.fbseg>button):not(#_x)::after{content:"";position:absolute;inset:-7px -3px}
#ivsw>button:not(#_x){min-width:44px;min-height:44px}
:is(.mchip,.vtlbtn,.cpbtn,.cjtract .btn.small,.cjtract .btn.small.danger,.chkseg>button):not(#_x)::after{content:"";position:absolute;inset:-5px -3px}
:is(.sheetx,.btn.cpib):not(#_x)::after{content:"";position:absolute;inset:-5px}
.qty>button:not(#_x)::after{content:"";position:absolute;inset:-4px -5px}
html:root body .vtlck:not(#_x)::after{content:"";position:absolute;inset:-11px}
.cpall:not(#_x)::after{content:"";position:absolute;inset:-4px 0}
:is(details.more,details.foldlist,details.s)>summary:not(#_x){padding-block:12px}
details.supops>summary:not(#_x){padding-block:12px}
#agprev:not(#_x),#agnext:not(#_x){min-width:44px}
.qty .qin:not(#_x){min-width:44px}
.ctlsel select:not(#_x),.vcatsel select:not(#_x){min-height:44px}
button[data-stab]:not(#_x){position:relative}
button[data-stab]:not(#_x)::after{content:"";position:absolute;inset:-6px -3px}

/* v812 · Etiquetas rediseñada (Juan: «que se vea entendible»): celular en una columna, tableta y computador en tres (productos · vista previa · personalizar) */
.etqcard{container-type:inline-size}
.etqcard .etqlay{display:flex;flex-direction:column;gap:12px;margin-top:6px}
.etqchips{display:flex;flex-wrap:wrap;gap:8px}
.etqchip{border:0;border-radius:999px;padding:8px 14px;background:var(--field);color:var(--fg);font:inherit;font-weight:600;font-size:.85rem;cursor:pointer}
.etqchip.on{background:var(--accent);color:var(--accent-fg)}
.etqlisttl{margin-top:4px}
.etqlines{display:flex;flex-direction:column;gap:8px}
.etqitem{display:flex;gap:12px;align-items:center;padding:10px;border-radius:14px;border:1.5px solid transparent;background:var(--surface);box-shadow:var(--shadow);cursor:pointer}
.etqitem.sel{border-color:var(--accent)}
.etqmini{width:96px;height:auto;flex:none;border-radius:4px;background:#fff;box-shadow:0 0 0 1px rgba(0,0,0,.16)}
.etqitem .main{flex:1;min-width:0}.etqitem .t{font-weight:700}
.etqctl{display:flex;align-items:center;gap:10px;margin-top:6px;flex-wrap:wrap}
.etqctl .btn{margin-left:auto}
.etqstep{display:inline-flex;align-items:center;background:var(--field);border-radius:12px;overflow:hidden}
.etqstep button{border:0;background:none;color:var(--fg);font:inherit;font-size:1.15rem;width:40px;height:38px;cursor:pointer}
.etqstep .num{min-width:30px;text-align:center}
.etqptog{align-self:flex-start}
.etqpbody{display:none;flex-direction:column;gap:8px}
.etqopt.open .etqpbody{display:flex}
.etqptitle{display:none}
.etqbar{display:flex;flex-direction:column;gap:10px;margin-top:14px;padding-top:12px;border-top:1px solid var(--line)}
.etqprn{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:14px;background:var(--accent-soft)}
.etqprn .grow{min-width:0}.etqprn .hint{margin:0}
.etqdot{flex:none;width:10px;height:10px;border-radius:50%;background:var(--accent)}
.etqlinks{display:flex;flex-wrap:wrap;gap:4px 16px;justify-content:center}
.linkbtn{background:none;border:0;color:var(--accent);font:inherit;font-weight:700;padding:8px 4px;cursor:pointer}
.linkbtn:disabled{opacity:.4;cursor:default}
.etqopt2{display:flex;gap:10px;align-items:flex-start;padding:12px;border-radius:14px;background:var(--field);margin:8px 0;cursor:pointer}
.etqopt2.on{outline:2px solid var(--accent)}
.etqopt2>span{flex:1 1 auto;min-width:0;display:block}
.etqmodal .etqopt2 input[type=radio]{flex:none!important;width:20px!important;height:20px!important;min-width:20px!important;max-width:20px!important;margin:2px 0 0!important;padding:0!important;accent-color:var(--accent)}
.etqopt2 .hint{display:block;margin-top:2px}
@container (min-width:560px) and (max-width:759px){
  .etqcard .etqlay{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:'prod mid' 'prod opt';align-items:start;gap:14px}
  .etqprod{grid-area:prod}.etqmid{grid-area:mid}.etqopt{grid-area:opt}
}
@container (min-width:760px){
  .etqcard .etqlay{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr) minmax(0,.95fr);align-items:start;gap:16px}
  .etqptog{display:none}
  .etqopt .etqpbody{display:flex}
  .etqptitle{display:flex}
    .etqbar{flex-direction:row;align-items:center;flex-wrap:wrap}
  .etqbar .etqprn{flex:1 1 280px}
  .etqbar #lprint{width:auto;flex:0 0 auto;padding-inline:28px}
  .etqlinks{justify-content:flex-end}
}

/* v819: el aviso de saldo de «Pasar dinero»: si no cabe, los botones pasan debajo del texto */
.ptsd{flex-wrap:wrap}
.ptsd .main{flex:1 1 220px}
.ptsd>.row{flex:1 1 220px;justify-content:flex-end}

/* v822 (Juan): listas agrupadas (Herramientas, Ajustes...). Las fichas del medio tenían esquinas redondeadas de 16 px y dejaban una muesca en cada unión, sin línea que las separara.
   Ahora las del medio van con esquinas rectas y cada ficha, menos la primera, lleva una línea fina arriba: se leen como una sola lista ordenada. */
html:not(#_) .card.fold.fg-mid{border-radius:0!important}
html:not(#_) .card.fold:not(.fg-first){border-top:1px solid color-mix(in srgb,var(--fg) 9%,transparent)!important}

/* v822: en pantallas anchas, Ajustes fuerza 24 px a todas las fichas (html.pc2 … #tab-ajustes>.card): se respeta el grupo: primera arriba, última abajo, las del medio rectas */
html.pc2 body #tab-ajustes>.card.fold.fg-first:not(.fg-last):not(#_x){border-radius:24px 24px 0 0!important}
html.pc2 body #tab-ajustes>.card.fold.fg-last:not(.fg-first):not(#_x){border-radius:0 0 24px 24px!important}
html.pc2 body #tab-ajustes>.card.fold.fg-mid:not(#_x){border-radius:0!important}
html.pc2 body #tab-ajustes>.card.fold:not(.fg-first):not(#_x){border-top:1px solid color-mix(in srgb,var(--fg) 9%,transparent)!important}

/* v824 · Cobro con datáfono Bold */
.bwbig{display:flex;flex-direction:column;align-items:center;gap:8px;padding:12px 8px;text-align:center}
.bwbig>b{font-size:1.9rem;font-family:var(--f-display);letter-spacing:-.02em}
.bwst{font-weight:700}
.bwring{width:64px;height:64px;border-radius:50%;border:6px solid var(--accent-soft);border-top-color:var(--accent);animation:bwspin 1s linear infinite}
@keyframes bwspin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.bwring{animation:none}}
.bwno{width:64px;height:64px;border-radius:50%;background:var(--bad-soft);color:var(--bad);display:flex;align-items:center;justify-content:center;font-size:2rem;font-weight:800}
.bwmodal .col{display:flex;flex-direction:column;gap:8px}
#boldcard h3{margin:14px 0 0;font-size:1rem}
#boldcard .bkst{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
#boldcard .bkhook{display:flex;gap:8px;align-items:center}
/* v896 (Juan): en «Cobros por resolver» el campo y los dos botones quedaban pegados (la clase .col solo tenía estilo dentro de la ventana de cobro) */
#boldcard .bkpend{flex-direction:column;align-items:stretch;gap:10px}
#boldcard .bkpend .col{display:flex;flex-wrap:wrap;gap:8px;width:100%}
#boldcard .bkpend .col input{flex:1 1 100%;min-width:0}
#boldcard .bkpend .col .btn{flex:1 1 0;min-width:0}
#boldcard .bkhook code{flex:1;min-width:0;overflow-wrap:anywhere;padding:10px 12px;border-radius:12px;background:var(--field);font-size:.8rem}

/* Juan 2026-11-18: inventario en mosaico del celular con 3 por fila, y encabezado «Todos los productos» o de la categoría escogida (sin separar por categorías) */
@media (max-width:699px){
  html:root body #tab-inventario #ilist.v-mosaico{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  html:root body #tab-inventario #ilist.v-mosaico .item.inv{padding:6px;gap:3px;border-radius:12px}
  html:root body #tab-inventario #ilist.v-mosaico .item.inv .iid .t{font-size:.78rem}
  html:root body #tab-inventario #ilist.v-mosaico .item.inv .iid .s{font-size:.68rem}
  html:root body #tab-inventario #ilist.v-mosaico .item.inv .pp{font-size:.85rem}
  html:root body #tab-inventario #ilist.v-mosaico .item.inv .vtg{font-size:.62rem;padding:1px 5px}
  html:root body #tab-inventario #ilist.v-mosaico .item.inv>.row{top:8px;right:8px}
  html:root body #tab-inventario #ilist.v-mosaico .item.inv .pmenu>summary{width:28px;height:28px}
}

/* Vender · selector Lista / Mosaico (Juan, 2026-11-18): solo en celular y tableta; el mosaico muestra 3 por fila */
#vvsw{display:none}
@media (max-width:1099px){
  html:root body #tab-vender #vvsw{display:flex;gap:0;margin:10px 0 0 auto;width:max-content;border:1px solid var(--line);border-radius:12px;overflow:hidden}
  html:root body #tab-vender #vvsw button{width:44px;height:36px;padding:0;border:0;border-radius:0;background:transparent;color:var(--muted);display:flex;align-items:center;justify-content:center}
  html:root body #tab-vender #vvsw button+button{border-left:1px solid var(--line)}
  html:root body #tab-vender #vvsw button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
  html:root body #tab-vender #vvsw button[aria-pressed="true"]{background:var(--accent);color:var(--accent-fg,#fff)}
  html:root body #vpick.vmos .vgrid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;background:transparent;border-radius:0;padding:0;overflow:visible}
  html:root body #vpick.vmos .vgrid>.qcard.gcard{display:flex!important;flex-direction:column;align-items:stretch;gap:4px;padding:6px!important;margin:0!important;min-height:0;border:1px solid var(--line)!important;border-radius:12px!important;background:var(--surface)!important;position:relative;text-align:left}
  html:root body #vpick.vmos .vgrid>.qcard.gcard+.qcard.gcard{border-top:1px solid var(--line)!important}
  html:root body #vpick.vmos .vgrid>.qcard.gcard:not(.on):not(:disabled)::after{display:none}
  html:root body #vpick.vmos .vgrid>.qcard.gcard>.thumb{width:100%!important;height:auto!important;aspect-ratio:1/1!important;border-radius:10px!important}
  html:root body #vpick.vmos .vgrid>.qcard.gcard>.qn{font-size:.78rem!important;-webkit-line-clamp:3!important;font-weight:700!important}
  html:root body #vpick.vmos .vgrid>.qcard.gcard>.qp{font-size:.85rem;font-weight:800!important}
  html:root body #vpick.vmos .vgrid>.qcard.gcard>.qs{font-size:.68rem;margin-left:0}
  html:root body #vpick.vmos .vgrid>.qcard.gcard>.qadd{position:absolute!important;top:10px;right:10px;width:26px!important;height:26px!important;border-radius:50%!important;font-size:.9rem}
}

/* Vender · «Categoría» a la izquierda y Lista / Mosaico a la derecha, en una sola fila (Juan, 2026-11-18) */
@media (max-width:1099px){
  html:root body #tab-vender .vctl{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:12px 0 4px}
  html:root body #tab-vender .vctl .vcatsel{margin:0;flex:0 1 auto;min-width:0}
  html:root body #tab-vender .vctl #vcats{flex:1 1 100%;order:3;margin-top:0}
  html:root body #tab-vender .vctl #vvsw{margin:0 0 0 auto;flex:none}
  html:root body #tab-vender .vctl{flex-wrap:wrap}
}

/* v832 · Formulario de producto más sencillo: lo obligatorio con *, «Más opciones» plegado y «Versiones» (Juan, 2026-11-18) */
#pform .req{color:var(--accent);font-weight:800}
#pform .pnote{margin:0 0 4px}
#pform .pcopied{display:flex;gap:10px;align-items:flex-start;background:color-mix(in srgb,var(--accent) 13%,var(--surface));border:1px solid color-mix(in srgb,var(--accent) 40%,var(--line));border-radius:16px;padding:12px;font-size:.86rem}
#pform .pcopied[hidden]{display:none}
#pform .pcopied b{display:block;font-size:.95rem}
#pform .pcopied .pcok{flex:none;width:26px;height:26px;border-radius:50%;background:var(--accent);color:var(--accent-ink,#fff);display:grid;place-items:center;font-weight:800}
#pform .pvers{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:14px;margin:6px 0}
#pform .pvers[hidden]{display:none}
#pform .pvers>h2{font-size:1.05rem;margin:0 0 4px}
#pform .vrow{display:grid;grid-template-columns:84px minmax(0,1fr);gap:10px;align-items:start;background:color-mix(in srgb,var(--fg) 5%,var(--surface));border-radius:14px;padding:10px;margin:10px 0}
#pform .vph{width:84px;height:84px;border-radius:14px;border:2px dashed var(--line);background:transparent;color:var(--muted);font-size:1.8rem;display:grid;place-items:center;overflow:hidden;padding:0;cursor:pointer}
#pform .vph.on{border:0;background:#fff}
#pform .vph img{width:100%;height:100%;object-fit:contain}
#pform .vfields .row{align-items:flex-end;flex-wrap:nowrap}
#pform .btn.line{width:100%;background:transparent;border:1.5px dashed var(--accent);color:var(--accent);font-weight:700;min-height:46px}
#pform .pmore{border:1px solid var(--line);border-radius:16px;padding:0 14px;background:var(--surface);margin:6px 0}
#pform .pmore>summary{list-style:none;cursor:pointer;display:flex;flex-direction:column;gap:2px;padding:14px 26px 14px 0;font-weight:700;position:relative}
#pform .pmore>summary::-webkit-details-marker{display:none}
#pform .pmore>summary::after{content:"▾";position:absolute;right:2px;top:50%;transform:translateY(-50%);color:var(--muted)}
#pform .pmore[open]>summary::after{content:"▴"}
#pform .pmore>summary small{color:var(--muted);font-weight:500;font-size:.78rem}
#pform .pmore[open]{padding-bottom:12px}
#pform .pmore[open]>summary{margin-bottom:4px}
@media (min-width:1400px){#pform>#pvers,#pform>#pcopied,#pform>#pmore{grid-column:1/-1}}
html:root body #pform .pmore>summary{color:var(--fg);font-size:1rem;padding:14px 26px 14px 0;min-height:0}
html:root body #pform .pmore>summary::before{content:none!important}
html:root body #pform .btn.line{width:100%;background:transparent!important;border:1.5px dashed var(--accent)!important;color:var(--accent)!important;font-weight:700;min-height:46px;box-shadow:none!important}
#pform .req{display:inline}
#pdbody .cpacts.n5{grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
#pdbody .cpacts.n5 .cpa{font-size:.7rem;padding-inline:2px;min-height:68px}

/* Jota (sin IA, Juan 2026-11-18): botón fijo arriba, junto a la campana (antes flotaba), y chat */
.jotahd{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:5px;height:48px;min-width:48px;padding:0 11px;border-radius:14px;border:0;cursor:pointer;flex:none;background:rgba(255,255,255,.18);color:#fff;-webkit-tap-highlight-color:transparent}
.jotahd[hidden]{display:none!important}
.jotahd svg{width:24px;height:24px;display:block;flex:none}
.jotahd b{font:800 .86rem/1 var(--f-body,inherit);letter-spacing:.01em}
.jotahd:focus-visible{outline:2px solid #fff;outline-offset:2px}
/* en los encabezados del celular los botones miden 40 px de alto; Jota se ensancha para llevar su nombre */
html:root body #app header.top .head-r>#jotahd,html:root body #vhero .vtop .vtr>button.jotahd{width:auto!important;min-width:40px!important;height:40px!important;min-height:40px!important;padding:0 10px!important;border-radius:12px!important;gap:5px}
nav.tabs .navwho .jotahd{margin-left:auto;background:color-mix(in srgb,var(--accent) 14%,var(--surface));color:var(--fg);padding:0}
nav.tabs .navwho .jotahd b{display:none}
.jotahd .spk{width:14px;height:14px;margin-left:-2px;flex:none}
nav.tabs .navwho .jotahd .spk{position:absolute;top:1px;right:1px;width:12px;height:12px;margin:0}
nav.tabs .navwho .jotahd svg{width:21px;height:21px}
nav.tabs .navwho .jotahd+.bellbtn{margin-left:6px}
.jchat .jdlg{display:flex;flex-direction:column;height:min(86dvh,760px);height:min(86vh,760px);padding:0;overflow:hidden}
.jchat .jhd{position:relative;flex:none;padding:14px 16px 10px;border-bottom:1px solid var(--line)}
.jchat .jhd .grab{position:absolute;top:6px;left:50%;translate:-50% 0;width:40px;height:4px;border-radius:4px;background:color-mix(in srgb,var(--fg,#000) 25%,transparent)}
.jchat .jhr{display:flex;align-items:center;gap:10px;margin-top:6px}
.jchat .jmk svg{width:34px;height:34px;display:block;color:var(--fg)}
.jchat .jtt{flex:1;min-width:0;display:flex;flex-direction:column}
.jchat .jtt b{font-size:1.1rem}.jchat .jtt small{color:var(--muted);font-size:.78rem}
.jchat .jmsgs{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:14px 16px;display:flex;flex-direction:column;gap:14px}
.jchat .jm.u{align-self:flex-end;max-width:84%;background:color-mix(in srgb,var(--fg) 10%,transparent);border-radius:16px 16px 4px 16px;padding:10px 14px;overflow-wrap:anywhere}
.jchat .jm.j{align-self:stretch;overflow-wrap:anywhere}
.jchat .jm.j .jq{font-weight:800;margin-bottom:4px}
.jchat .jm.j .jt,.jchat .jm.j .jfull{line-height:1.4}
.jchat .jm.j .jfull{white-space:pre-line}
.jchat .jbtns{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.jchat .jchips{display:flex;flex-direction:column;align-items:flex-start;gap:8px;margin-top:10px}
.jchat .jchip{max-width:100%;text-align:left;border:1px solid var(--line);background:var(--surface);color:var(--fg);border-radius:14px;padding:9px 13px;font:600 .88rem/1.25 var(--f-body,inherit);cursor:pointer}
.jchat .jchip:active{background:color-mix(in srgb,var(--accent) 12%,var(--surface))}
.jchat .jin{flex:none;display:flex;gap:8px;padding:10px 16px calc(12px + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:var(--surface)}
.jchat .jin input{flex:1;min-width:0;min-height:46px;border-radius:14px;border:1px solid var(--line);background:var(--field,var(--surface));color:var(--fg);padding:0 14px;font:inherit;font-size:max(16px,1rem)}
/* v874 (Juan: «cada vez que abro el teclado se hace zoom en Jota»): en el iPhone, un campo con letra menor de 16 px hace zoom al tocarlo; este tenía 14,4 px y `font:inherit` anulaba la regla general. Y con el teclado abierto sobra el espacio de la barra inferior del iPhone (el teclado ya la tapa): era la franja blanca entre el campo y el teclado. */
html.kb-open .jchat .jin{padding-bottom:12px}
@media (min-width:1100px){
  .jchat.jpc{background:transparent!important;pointer-events:none;align-items:flex-end;justify-content:flex-end;padding:20px}
  .jchat.jpc .jdlg{pointer-events:auto;width:400px;max-width:400px;height:min(78vh,660px);border-radius:22px;box-shadow:0 18px 50px -12px rgba(0,0,0,.45);border:1px solid var(--line)}
}

/* Avisos (Juan, 2026-11-18, con video): al pasar de «Todos» a «Sin leer» la ventana cambiaba de tamaño y saltaba. Ahora tiene una altura fija: la cabecera y los filtros se quedan quietos y solo la lista se desplaza. */
#avbox .avdlg{height:min(88dvh,780px);height:min(88vh,780px);max-height:none;overflow:hidden;display:flex;flex-direction:column}
#avbox .avdlg .cphd,#avbox .avdlg .avtools{flex:none}
#avbox .avdlg .avlist{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
/* La franja invisible de arrastre (.grab, 30 px arriba de cada ventana) tapaba el centro de la flecha de volver; los botones de la cabecera quedan por encima */
.sheetdlg .cphd button,.dlg .cphd .cpib{position:relative;z-index:3}
html:root body nav.tabs .navwho :is(.jotahd,.bellbtn){width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important} /* menú lateral del computador: caben el nombre, el perfil y los dos botones */
/* Vender: el nombre del negocio no pasa por debajo de Jota, la campana y la foto (se corta con «…») */
@media (max-width:1099px){
  html:root body #tab-vender .vvhead>.vvlogo{padding-right:196px;box-sizing:border-box}
  html:root body #tab-vender .vvlogo .bizbrand{display:flex;align-items:center;max-width:100%;min-width:0}
  html:root body #tab-vender .vvlogo .bizbn{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}
/* menú lateral del computador: si no cabe el perfil junto a Jota y la campana, se corta con «…» y no se encima */
nav.tabs .navwho>span{min-width:0;flex:1 1 auto;overflow:hidden}
nav.tabs .navwho>span>*{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* Jota: «¿Te sirvió?» debajo de cada respuesta */
#jotachat .jfb{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:8px;font-size:.85rem;color:var(--muted)}
#jotachat .jfb.ok{color:var(--fg)}

/* v846 (Juan): Jota también en Ajustes del celular (ahí no hay campana ni encabezado): botón dentro de la tarjeta del negocio, debajo del «Plan» */
#ajhero2 .ajbr{flex:none;display:flex;flex-direction:row;align-items:center;gap:5px}
@media (max-width:1099px){#tab-ajustes>#ajhero2 .ajbiz{gap:10px;padding-right:10px}#tab-ajustes>#ajhero2 .ajbpl{padding:5px 9px}}
html:root body #ajhero2 .ajbr>.jotahd{position:static;width:auto;min-width:0;height:28px;min-height:28px;padding:0 7px;border-radius:10px;gap:3px;background:rgba(255,255,255,.22)}
html:root body #ajhero2 .ajbr>.jotahd svg{width:17px;height:17px}
html:root body #ajhero2 .ajbr>.jotahd .spk{width:12px;height:12px;margin-left:-1px}
@media (min-width:1100px){#ajhero2 .ajbr>.jotahd{display:none!important}}

/* v850: respuesta de Jota con inteligencia artificial (se avisa siempre) */
#jotachat .jai{font-size:.78rem;font-weight:700;color:var(--muted);margin-bottom:4px;display:flex;align-items:center;gap:5px}
#jotachat .jai .spk-i{color:#f5c542;font-size:.95rem;line-height:1}
#jotachat .jiat{white-space:pre-wrap}
#jotachat .jwait{color:var(--muted)}
#jotachat .jfbb{font-size:1.1rem;line-height:1;min-width:44px;padding:6px 10px}
/* Juan (2026-11-20): pulgares «¿Te sirvió?» como iconos de línea, sin fondo, grises y chicos (como en la referencia) */
html:root body #jotachat .jfb{gap:4px;margin-top:4px}
html:root body #jotachat .jfb .jfbb:not(#_x){min-width:0;min-height:0;width:34px;height:34px;padding:0;border:0;background:transparent;box-shadow:none;color:var(--muted);display:inline-grid;place-items:center;border-radius:10px;font-size:0;cursor:pointer}
html:root body #jotachat .jfb .jfbb svg{width:19px;height:19px;display:block}
html:root body #jotachat .jfb .jfbb:not(#_x):active{background:var(--field);color:var(--accent)}
html:root body #jotachat .jfb .jfbb.sel:not(#_x){color:var(--accent);opacity:1}
html:root body #jotachat .jfb .jfbb.sel svg{fill:currentColor}
html:root body #jotachat .jfb .jfbb:disabled:not(.sel){opacity:.45}
#jotachat .jfb .jfbt{flex:1 0 100%;margin-top:2px}
#jotachat .jfb .jcmf{flex:1 0 100%;display:flex;flex-direction:column;align-items:flex-start;gap:6px;margin-top:6px}
#jotachat .jfb .jcmf textarea{width:100%;box-sizing:border-box;resize:none;font:inherit;font-size:max(16px,1rem);color:var(--fg);background:var(--field);border:1px solid var(--line);border-radius:12px;padding:8px 10px}

/* v886 (Juan): uso de la IA del mes en el chat de Jota. v891 (Juan, 2026-11-20): círculo como el de Claude en vez de barra. Verde (color del negocio); amarillo cerca del tope y rojo al llegar (solo alertas) */
.jchat .jusoslot{display:inline-flex;margin-left:auto;margin-right:6px;flex:none}
.jchat .jusoslot[hidden]{display:none}
.jchat .jring{position:relative;width:36px;height:36px;padding:0;border:0;border-radius:50%;background:none;cursor:pointer;flex:none;-webkit-tap-highlight-color:transparent}
.jchat .jring svg{width:100%;height:100%;display:block}
.jchat .jring b{position:absolute;inset:0;display:grid;place-items:center;font-size:.66rem;font-weight:800;color:var(--fg);font-variant-numeric:tabular-nums}
.jchat .jring:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.jchat .jtrk{fill:none;stroke:var(--line);stroke-width:4}
.jchat .jfil{fill:none;stroke:var(--accent);stroke-width:4;stroke-linecap:round;transition:stroke-dashoffset .35s ease}
.jchat .jring.warn .jfil{stroke:#f5c542}
.jchat .jring.full .jfil{stroke:#d64545}
.jchat .juso{flex:none;padding:8px 16px;border-bottom:1px solid var(--line)}
.jchat .juso .jub{font-size:.85rem;color:var(--fg)}
.jchat .juso .jum{margin-top:4px;font-size:.8rem;color:var(--muted)}
@media (prefers-reduced-motion:reduce){.jchat .jfil{transition:none}}
.jchat .juso[hidden]{display:none}

/* v851: carrito que prepara Jota (la persona lo revisa y cobra en Vender) */
#jotachat .jcart{margin:8px 0;padding:10px 12px;border-radius:14px;background:var(--field);display:flex;flex-direction:column;gap:6px}
#jotachat .jcart .jcl{display:flex;justify-content:space-between;gap:10px;font-size:.9rem}
#jotachat .jcart .jcl.tot{font-weight:700;border-top:1px solid var(--line);padding-top:6px}

/* v859 (Juan, video del taller): las filas de filtros que se deslizan de lado (Servicio técnico, Facturas, Reportes) también se podían deslizar unos píxeles hacia arriba y abajo al arrastrar el dedo: la fila se movía sola y quedaba recortada detrás de la tarjeta. Solo se desliza de lado. */
html:root body #svseg,html:root body #factper,html:root body #rper{overflow-y:hidden!important}

/* v871: botón de dictado del chat de Jota */
.jchat .jin .jmic{flex:none;min-width:46px;min-height:46px;padding:0;display:inline-grid;place-items:center;border-radius:14px}
.jchat .jin .jmic[hidden]{display:none}
html:root body .modal.jchat .dlg .jin .btn.jmic.on:not(#_x){background:var(--accent)!important;color:var(--accent-fg,#fff)!important;animation:jmicp 1.2s ease-in-out infinite}
@keyframes jmicp{0%,100%{box-shadow:0 0 0 0 color-mix(in srgb,var(--accent) 45%,transparent)}50%{box-shadow:0 0 0 8px transparent}}
@media (prefers-reduced-motion:reduce){.jchat .jin .jmic.on{animation:none}}
/* v873 (Juan: «el micrófono está muy pequeño y no está centrado en su botón»): botón cuadrado y el icono más grande y centrado (el tema le ponía 16 px y lo corría) */
html:root body .modal.jchat .dlg .jin .btn.jmic:not(#_x){width:50px;min-width:50px;padding:0!important;display:grid!important;place-items:center;justify-content:center}
html:root body .modal.jchat .dlg .jin .btn.jmic svg:not(#_x){width:26px!important;height:26px!important;margin:0!important;display:block;flex:none;justify-self:center;align-self:center}
/* v875 (Juan: «sí, también Inventario»): el buscador y los filtros de categoría y estado de Inventario tenían letra de 12,8 y 13,6 px; en el iPhone, menos de 16 px hace zoom al tocarlos. */
html:root body #tab-inventario #isearch:not(#_x){font-size:max(16px,1rem)}
html:root body #tab-inventario .ctlsel select:not(#_x){font-size:max(16px,1rem)}

/* v876 · CRM Fase 1: pestaña «Avisos» (Clientes) */
#csubavisos{display:flex;align-items:center;justify-content:center;text-align:center;gap:6px}
#csubavisos[hidden]{display:none}
#avipane .mchips{margin:12px 0 0;display:flex;gap:8px;flex-wrap:wrap}
.avcard{margin-top:12px}
.avlbl{font-size:.75rem;font-weight:800;color:var(--muted);text-transform:uppercase;letter-spacing:.04em;margin:12px 0 6px}
.avhor{display:flex;gap:10px;align-items:flex-start;border-radius:14px;padding:10px 12px;font-size:.85rem;background:color-mix(in srgb,var(--ok,#15803d) 14%,var(--surface));color:var(--fg)}
.avhor.no{background:color-mix(in srgb,var(--warn,#b45309) 16%,var(--surface))}
.avi{border-top:1px solid var(--line);padding:12px 0}.avi:first-of-type{border-top:0}
.avn{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.avtag{font-size:.68rem;font-weight:800;border-radius:99px;padding:3px 8px;background:var(--field);color:var(--muted)}
.avtag.bad{background:color-mix(in srgb,var(--danger,#b42318) 16%,var(--surface));color:var(--danger,#b42318)}
.avtag.warn{background:color-mix(in srgb,var(--warn,#b45309) 16%,var(--surface));color:var(--warn,#b45309)}
.avtag.ok{background:color-mix(in srgb,var(--ok,#15803d) 16%,var(--surface));color:var(--ok,#15803d)}
.avmsg{background:var(--field);border-radius:12px;padding:9px 11px;margin-top:8px;font-size:.85rem;line-height:1.4}
.avact{margin-top:10px;gap:8px;flex-wrap:nowrap}
.avrow{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:8px 0;border-top:1px solid var(--line)}
.avrow small{color:var(--muted)}
.avdet summary{cursor:pointer;font-weight:700;margin-top:8px}
.avck{display:flex;gap:10px;align-items:flex-start;margin:8px 0}
.avbox{flex:none;width:22px;height:22px;border-radius:7px;background:var(--ok,#15803d);color:#fff;display:grid;place-items:center;font-weight:900;font-size:.8rem}
.avck.no .avbox{background:var(--warn,#b45309)}
.avaut{padding:10px 0;border-top:1px solid var(--line)}.avaut:first-child{border-top:0}
.avaut .row{gap:8px;flex-wrap:wrap}
.avsheet textarea,#avipane textarea,#avipane select,.avsheet select{font-size:max(16px,1rem)}

/* v881 (Juan): «Agregar otro número / teléfono» no va pegado al campo de arriba */
.imeibox>[data-imeiadd]{margin-top:10px}

/* v883 (Juan): selector de unidades (IMEI / serial): aire entre los botones y cada IMEI del doble SIM en su renglón */
#serlist{display:flex;flex-direction:column;gap:10px}
#serlist .btn{width:100%;min-height:44px}
#serlist .sndual{display:flex;flex-direction:column;gap:4px;align-items:center;width:100%}
#serlist .sndual small{color:var(--muted);font-weight:700;margin-right:6px;font-size:.75rem}
#serlist .btn.primary .sndual small{color:inherit;opacity:.85}
#serlist .snck{margin-right:6px}

/* ======================================================================================================
   v897 · MENÚ DE TRES RAYAS + PANTALLA COMPLETA EN CUADROS (Juan, 2026-11-20; maqueta docs/maquetas-menu, opción 2)
   «A veces no sé dónde está el menú»: el botón flotante pequeño se cambia por un botón de tres rayas (sin la palabra «Menú») a la
   izquierda de cada encabezado, y la hoja «¿A dónde vas?» pasa a ser una pantalla entera con cuadros grandes. En computador sigue el menú lateral.
   ====================================================================================================== */
.navhb{display:none}
@media (max-width:1099px){
  /* ya no hay botón flotante: lo que le dejaba lugar abajo vuelve a ocupar el espacio */
  html:root body #navfab{display:none!important}
  html:root body #vbar,html .vbar{bottom:calc(14px + env(safe-area-inset-bottom,0px))!important}
  .toast{bottom:calc(20px + env(safe-area-inset-bottom,0px))}
  #app:not([data-tab="vender"]) .wrap{padding-bottom:calc(32px + env(safe-area-inset-bottom,0px))}

  /* el botón de las tres rayas */
  .navhb{display:inline-flex;position:relative;align-items:center;justify-content:center;flex:none;width:44px;height:44px;padding:0;border:0;border-radius:14px;
    background:transparent;color:#fff;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:transform 160ms var(--ease-v),opacity 160ms var(--ease-v)}
  .navhb:active{transform:scale(.94);opacity:.7}
  .navhb:focus-visible{outline:3px solid #fff;outline-offset:2px}
  .navhb svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
  .navhb .nfb{position:absolute;top:-2px;right:-4px;min-width:22px;height:22px;padding:0 6px;border-radius:11px;background:#0b1210;color:#fff;font:700 .75rem/22px var(--f-body);font-style:normal;text-align:center;border:2px solid #fff}
  /* junto al logo, en las tres formas de encabezado (Inicio, Vender y las demás) */
  html:root body #vhero .vtop{gap:12px}
  html:root body #tab-vender .vvhead>.vvlogo,html:root body #app:not([data-tab="inicio"]):not([data-tab="vender"]) header.top>.hdlogo{display:flex;align-items:center;gap:12px}
  /* en Vender el logo y el nombre ocupan lo que queda al lado del botón */
  html:root body #tab-vender .vvhead>.vvlogo .bizbrand{flex:none}
  html:root body #tab-vender .vvhead>.vvlogo .bizbn{display:none}
  /* Ajustes no lleva el logo arriba: ahí solo va el botón */
  html:root:not(.aj-insec) body #app[data-tab="ajustes"] header.top>.hdlogo{display:flex!important;align-items:center;grid-area:logo}
  html:root:not(.aj-insec) body #app[data-tab="ajustes"] header.top>.hdlogo .bizbrand{display:none}
  html:root:not(.aj-insec) body #app[data-tab="ajustes"] header.top>.hdlogo{margin-bottom:10px}
  @media (prefers-reduced-motion:reduce){.navhb{transition:none}}

  /* el cajón del menú (v898) está al final de este archivo */
}

/* ======================================================================================================
   v898 · CAJÓN A LA IZQUIERDA (Juan, 2026-11-20: «el menú lateral»; maqueta docs/maquetas-menu/hamburguesa-opcion1)
   El botón de tres rayas abre un panel por la izquierda con la tarjeta del negocio, Vender grande y las pantallas por grupos
   (los mismos del menú del computador). Se cierra con la ✕, tocando afuera o deslizando hacia la izquierda.
   ====================================================================================================== */
@keyframes navDrIn{from{transform:translateX(-100%)}}
@keyframes navDrOut{to{transform:translateX(-100%)}}
@media (max-width:1099px){
  html:root body .navsheet{align-items:stretch;justify-content:flex-start;padding:0!important;background:var(--scrim,rgba(10,12,14,.5))}
  html:root body .navsheet>.dlg.navdrawer{width:min(86vw,340px);max-width:none;height:100%;max-height:none;margin:0 auto 0 0;border-radius:0 28px 28px 0!important;background:var(--surface)!important;
    padding:calc(16px + var(--sat,env(safe-area-inset-top,0px))) 14px calc(20px + env(safe-area-inset-bottom,0px)) max(14px,env(safe-area-inset-left,0px));overflow:auto;box-shadow:12px 0 40px -18px rgba(0,0,0,.5)}
  html:root body .navsheet .dlg>.grab,html:root body .navsheet>.dlg::before{display:none!important}
  html:root body .navsheet .navhd{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 14px;touch-action:auto}
  html:root body .navsheet .navdwho{flex:1;min-width:0;display:flex;align-items:center;gap:12px;border:0;background:none;color:var(--fg);font:inherit;text-align:left;padding:0;cursor:pointer;-webkit-tap-highlight-color:transparent}
  html:root body .navsheet .navdwho .biztile{--s:44px;flex:none}
  html:root body .navsheet .navdwho span{min-width:0}
  html:root body .navsheet .navdwho b{display:block;font-family:var(--f-display);font-size:1.1rem;line-height:1.15;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  html:root body .navsheet .navdwho small{display:block;color:var(--muted);font-size:.8125rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  html:root body .navsheet .navx{flex:none;width:40px;height:40px;border-radius:12px!important;border:0;background:var(--field,#efefec)!important;color:var(--fg)!important;display:inline-flex;align-items:center;justify-content:center;padding:0;line-height:1}
  html:root body .navsheet .navx svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}
  html:root body .navsheet .navvend{margin:0 0 6px}
  html:root body .navsheet .navdg{margin:14px 6px 4px;font-size:.72rem;letter-spacing:.1em;font-weight:800;color:var(--muted);text-transform:uppercase}
  html:root body .navsheet .navdr{position:relative;display:flex!important;align-items:center;gap:12px;width:100%;min-height:52px;padding:8px 10px!important;border:0!important;border-radius:14px!important;background:transparent!important;
    color:var(--fg)!important;font:700 1.0625rem/1.2 var(--f-body)!important;text-align:left!important;cursor:pointer;-webkit-tap-highlight-color:transparent}
  html:root body .navsheet .navdr:active{background:color-mix(in srgb,var(--fg) 6%,transparent)!important}
  html:root body .navsheet .navdr i{flex:none;display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:color-mix(in srgb,var(--accent) 12%,var(--surface));color:var(--accent);font-style:normal}
  html:root body .navsheet .navdr i svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
  html:root body .navsheet .navdr .m{flex:1;min-width:0}
  html:root body .navsheet .navdr .m b{display:block}
  html:root body .navsheet .navdr small{display:block;font-weight:500;font-size:.8125rem;color:var(--muted)}
  html:root body .navsheet .navdr .navbd{position:static;margin-left:auto;font-style:normal;font-size:.75rem;font-weight:700;padding:2px 8px;border-radius:10px;background:var(--accent);color:var(--accent-ink,#fff);white-space:nowrap}
  html:root body .navsheet .navdr.on{background:color-mix(in srgb,var(--accent) 13%,var(--surface))!important;color:var(--accent)!important}
  html:root body .navsheet .navdr.on i{background:var(--accent);color:var(--accent-ink,#fff)}
}
@media (max-width:1099px) and (prefers-reduced-motion:no-preference){
  html:root body .navsheet>.dlg.navdrawer{animation:navDrIn 320ms cubic-bezier(.32,.72,0,1)}
  html:root body .navsheet.out>.dlg.navdrawer{animation:navDrOut 240ms cubic-bezier(.32,.72,0,1) forwards}
}

/* v900 (Juan, «salen varios precios y puede confundir»): en el carrito del celular, «Puedes bajar hasta» solo sale cuando el vendedor toca el precio, lo cambió o está por debajo del mínimo; y el total de la línea solo cuando hay más de 1 unidad */
#tab-vender.sheetm .clc .clft .pminh{display:none}
#tab-vender.sheetm .clc .clft .pedit:focus-within .pminh,#tab-vender.sheetm .clc .clft .pedit.chg .pminh,#tab-vender.sheetm .clc .clft .pminh.bad{display:block}

/* Fase 3 (21): punto verde en el botón de Jota cuando hay una respuesta nueva con el chat cerrado */
.jotahd.jdot::after{content:'';position:absolute;top:4px;right:4px;width:10px;height:10px;border-radius:50%;background:#16a34a;border:2px solid var(--surface,#fff);box-sizing:content-box}

/* Fase 3 (18): destacados de Jota. Rojo solo para alertas y verde para lo bueno (decisión de Juan). */
.jalert{color:var(--bad);font-weight:700}
.jbien{color:var(--ok,#1f7a3a);font-weight:700}

/* Punto 19: mascota de Jota (inventada, liviana). Juan 2026-11-22: «que todas sus reacciones sean animadas».
   Reposo: respira y parpadea. Piensa (jbusy), habla (jhabla), escucha el dictado (jescucha) y reacciones cortas jr-*: hola, feliz, fiesta, triste, duda, cosquillas.
   Con «reducir movimiento» no se mueve, pero sí cambia la cara. */
.jchat .jrc{cursor:pointer;-webkit-tap-highlight-color:transparent}
.jchat .jmk svg.jmascot{width:46px;height:46px;color:var(--fg);overflow:visible}
.jchat .jmk{transition:width .3s ease,opacity .3s ease,margin .3s ease;width:46px;overflow:visible}
.jchat .jhr.jmini .jmk{width:0;opacity:0;margin-right:-10px}
/* junto a cada respuesta (pequeña) y en el saludo (grande). Solo la última se mueve; las anteriores se quedan con la cara de su respuesta. */
.jchat .jm.j.jcon{position:relative;margin-left:44px}
.jchat .jav{display:block;color:var(--fg)}
.jchat .jm.j.jcon>.jav{position:absolute;left:-50px;top:-4px;width:44px;height:44px}
.jchat .jav svg.jmascot{width:100%;height:100%;overflow:visible;display:block}
.jchat .jm.j.jgr{text-align:center}
.jchat .jm.j.jgr>.jav{width:112px;height:112px;margin:14px auto 12px}
.jchat .jm.j.jgr .jchips{text-align:left}
.jchat .jav:not(.jlast) *{animation:none!important}
.jchat .jav:not(.jlast) :is(.jx,.jlag,.jmano){opacity:0!important}
.jchat .jav.jlast :is(.jchis,.jdudas,.jlag){animation-fill-mode:forwards!important}
/* botón de arriba (junto a la campana): la carita respira y parpadea; con respuesta nueva brinca */
.jotahd svg.jmascot{width:30px;height:30px;overflow:visible}
nav.tabs .navwho .jotahd svg.jmascot{width:26px;height:26px}
html:root body #ajhero2 .ajbr>.jotahd svg.jmascot{width:20px;height:20px}
.jotahd .jmascot .jx,.jotahd .jmascot .jmano{display:none}
.jotahd.jdot .jmascot .jsalto{animation:jbrinco .7s ease-out 3}
.jmascot *{transform-box:fill-box}
.jmascot .jbody{transform-origin:50% 92%;animation:jresp 3.4s ease-in-out infinite}
.jmascot .jsalto{transform-origin:50% 100%}
.jmascot .jojo{transform-origin:50% 50%;animation:jparpa 4.6s infinite}
.jmascot .jpup,.jmascot .jmouth,.jmascot .jbo{transform-origin:50% 50%}
.jmascot .jfel,.jmascot .jbtri,.jmascot .jbo,.jmascot .jlag,.jmascot .jcejas,.jmascot .jmej,.jmascot .jx,.jmascot .jmano{opacity:0;transition:opacity .18s}
.jmascot .jceja{fill:none;stroke:#0b3d1f;stroke-width:2.4;stroke-linecap:round;transform-origin:50% 50%}
.jmascot .jmano{transform-origin:0% 100%}
.jmascot .jx{transform-origin:50% 50%}
/* piensa: se mece, mira a los lados y salen tres puntos */
.jchat .jrc.jbusy .jbody{animation:jpiensa 1.1s ease-in-out infinite}
.jchat .jrc.jbusy .jpup{animation:jmira 1.1s ease-in-out infinite}
.jchat .jrc.jbusy .jpuntos{opacity:1}
.jchat .jrc.jbusy .jpuntos circle{animation:jpunto 1s ease-in-out infinite}
.jchat .jrc.jbusy .jpuntos circle:nth-child(2){animation-delay:.15s}
.jchat .jrc.jbusy .jpuntos circle:nth-child(3){animation-delay:.3s}
/* habla: abre y cierra la boca */
.jchat .jrc.jhabla .jmouth{opacity:0}
.jchat .jrc.jhabla .jbo{opacity:1;animation:jhabla .3s ease-in-out infinite}
/* escucha el dictado: se inclina, abre los ojos y salen ondas */
.jchat .jrc.jescucha .jbody{animation:jinclina 1.4s ease-in-out infinite}
.jchat .jrc.jescucha .jojo{animation:none;transform:scale(1.12)}
.jchat .jrc.jescucha .jondas{opacity:1;animation:jonda 1s ease-out infinite}
/* hola: brinca y saluda con la mano */
.jchat .jrc.jr-hola .jsalto{animation:jbrinco .55s ease-out 2}
.jchat .jrc.jr-hola .jmano{opacity:1;animation:jsaluda .4s ease-in-out 4}
.jchat .jrc.jr-hola .jmej{opacity:1}
/* feliz: ojitos felices, cachetes y un brinco */
.jchat .jrc.jr-feliz .jojos,.jchat .jrc.jr-fiesta .jojos{opacity:0}
.jchat .jrc.jr-feliz .jfel,.jchat .jrc.jr-fiesta .jfel,.jchat .jrc.jr-feliz .jmej,.jchat .jrc.jr-fiesta .jmej,.jchat .jrc.jr-cosquillas .jmej{opacity:1}
.jchat .jrc.jr-feliz .jsalto{animation:jbrinco .6s ease-out 2}
.jchat .jrc.jr-feliz .jmouth{animation:jsonrie .6s ease-out 2}
/* fiesta: carrito listo o venta encontrada; salta alto, gira un poco, saluda y salen chispas */
.jchat .jrc.jr-fiesta .jsalto{animation:jfiesta .9s cubic-bezier(.3,1.4,.5,1) 2}
.jchat .jrc.jr-fiesta .jchis{opacity:1;animation:jchispa .9s ease-out 2}
.jchat .jrc.jr-fiesta .jmano{opacity:1;animation:jsaluda .3s ease-in-out 6}
/* triste: se encoge, cejas caídas, boca hacia abajo y una lagrimita */
.jchat .jrc.jr-triste .jbody{animation:jtriste 2.4s ease-in-out 1}
.jchat .jrc.jr-triste .jmouth{opacity:0}
.jchat .jrc.jr-triste .jbtri,.jchat .jrc.jr-triste .jcejas{opacity:1}
.jchat .jrc.jr-triste .jceja{transform:rotate(-14deg)}
.jchat .jrc.jr-triste .jceja.jcd{transform:rotate(14deg)}
.jchat .jrc.jr-triste .jpup{transform:translateY(1.4px)}
.jchat .jrc.jr-triste .jlag{opacity:1;animation:jlagrima 1.2s ease-in 2}
/* duda: ladea la cabeza, sube una ceja y sale un «?» */
.jchat .jrc.jr-duda .jbody{animation:jladea 2s ease-in-out 1}
.jchat .jrc.jr-duda .jcejas{opacity:1}
.jchat .jrc.jr-duda .jceja.jcd{transform:translateY(-2px) rotate(-10deg)}
.jchat .jrc.jr-duda .jpup{animation:jarriba 2s ease-in-out 1}
.jchat .jrc.jr-duda .jdudas{opacity:1;animation:jpregunta 2s ease-out 1}
/* cosquillas: al tocarla se sacude y se ríe */
.jchat .jrc.jr-cosquillas .jbody{animation:jsacude .3s ease-in-out 3}
.jchat .jrc.jr-cosquillas .jojos{opacity:0}
.jchat .jrc.jr-cosquillas .jfel{opacity:1}
.jchat .jrc.jr-cosquillas .jmouth{animation:jsonrie .3s ease-in-out 3}
@keyframes jresp{0%,100%{transform:scale(1)}50%{transform:scale(1.045)}}
@keyframes jparpa{0%,46%,50%,100%{transform:scaleY(1)}48%{transform:scaleY(.1)}}
@keyframes jmira{0%,100%{transform:translateX(-1.6px)}50%{transform:translateX(1.6px)}}
@keyframes jpiensa{0%,100%{transform:rotate(-2deg)}50%{transform:rotate(2deg)}}
@keyframes jpunto{0%,100%{transform:translateY(0);opacity:.35}50%{transform:translateY(-2.5px);opacity:1}}
@keyframes jhabla{0%,100%{transform:scaleY(.55)}50%{transform:scaleY(1.15)}}
@keyframes jinclina{0%,100%{transform:rotate(-6deg)}50%{transform:rotate(-3deg) scale(1.03)}}
@keyframes jonda{0%{opacity:.9;transform:translateX(0)}100%{opacity:0;transform:translateX(-4px)}}
@keyframes jbrinco{0%,100%{transform:translateY(0) scale(1)}15%{transform:translateY(0) scale(1.08,.9)}45%{transform:translateY(-6px) scale(.96,1.05)}75%{transform:translateY(0) scale(1.05,.95)}}
@keyframes jsaluda{0%,100%{transform:rotate(0)}50%{transform:rotate(-28deg)}}
@keyframes jsonrie{0%,100%{transform:scale(1)}50%{transform:scale(1.25,1.1)}}
@keyframes jfiesta{0%,100%{transform:translateY(0) rotate(0) scale(1)}20%{transform:translateY(0) scale(1.1,.88)}55%{transform:translateY(-10px) rotate(-8deg) scale(.95,1.06)}80%{transform:translateY(0) rotate(4deg) scale(1.06,.94)}}
@keyframes jchispa{0%{opacity:0;transform:scale(.4)}35%{opacity:1;transform:scale(1.1)}100%{opacity:0;transform:scale(1.3)}}
@keyframes jtriste{0%{transform:scale(1)}20%,85%{transform:translateY(2px) scale(.97,.93)}100%{transform:scale(1)}}
@keyframes jlagrima{0%{opacity:0;transform:translateY(-2px)}30%{opacity:1}100%{opacity:0;transform:translateY(7px)}}
@keyframes jladea{0%,100%{transform:rotate(0)}25%,75%{transform:rotate(-10deg)}}
@keyframes jarriba{0%,100%{transform:translate(0,0)}25%,75%{transform:translate(1px,-1.6px)}}
@keyframes jpregunta{0%{opacity:0;transform:translateY(4px) scale(.5)}25%{opacity:1;transform:translateY(0) scale(1.15)}40%,80%{opacity:1;transform:scale(1)}100%{opacity:0}}
@keyframes jsacude{0%,100%{transform:rotate(0)}25%{transform:rotate(-7deg)}75%{transform:rotate(7deg)}}
@media (prefers-reduced-motion:reduce){.jmascot,.jmascot *{animation:none!important;transition:none!important}}

/* Punto 18: informes de Jota (gráfica de línea y tabla de mes contra mes) */
.jchat .jinf{margin:8px 0}
.jchat .jgraf{width:100%;height:auto;display:block;margin:6px 0;color:var(--fg)}
.jchat .jtab{width:100%;border-collapse:collapse;margin:6px 0;font-size:.78rem}
.jchat .jtab th,.jchat .jtab td.num{white-space:nowrap}
.jchat .jtab th{font-weight:600;text-align:right;color:var(--muted);padding:3px 4px}
.jchat .jtab td{padding:5px 4px;border-top:1px solid var(--line)}
.jchat .jtab td.num{text-align:right;font-variant-numeric:tabular-nums}

/* Juan (2026-11-22): formato de las respuestas de Jota (respuesta destacada, subtítulos, viñetas, pasos, cifras en tarjetas, ruta y consejo). Acento = color del negocio; rojo y verde solo para alerta y lo bueno. */
#jotachat .jiat,#jotachat .jm.j .jfull{white-space:normal}
.jfmt{line-height:1.45}
.jfmt>:first-child{margin-top:0}
.jfmt>:last-child{margin-bottom:0}
.jfmt p{margin:0 0 8px}
.jfmt p.jlead{font-size:1.04rem;font-weight:650;line-height:1.35;margin-bottom:10px}
.jfmt .jh{display:flex;align-items:center;gap:8px;font-size:.72rem;font-weight:800;letter-spacing:.07em;text-transform:uppercase;color:var(--accent);margin:14px 0 6px}
.jfmt .jh::after{content:'';flex:1;height:1px;background:var(--line)}
.jfmt ul.jul,.jfmt ol.jol{list-style:none;margin:2px 0 10px;padding:0;display:flex;flex-direction:column;gap:7px}
.jfmt ul.jul li{position:relative;padding-left:18px}
.jfmt ul.jul li::before{content:'';position:absolute;left:4px;top:.6em;width:6px;height:6px;border-radius:50%;background:var(--accent)}
.jfmt ol.jol{counter-reset:jp}
.jfmt ol.jol li{counter-increment:jp;position:relative;padding-left:34px;min-height:24px;padding-top:1px}
.jfmt ol.jol li::before{content:counter(jp);position:absolute;left:0;top:0;width:24px;height:24px;border-radius:50%;background:color-mix(in srgb,var(--accent) 14%,transparent);color:var(--accent);font-weight:800;font-size:.8rem;display:grid;place-items:center}
.jfmt .jdatos{display:grid;grid-template-columns:repeat(auto-fit,minmax(118px,1fr));gap:8px;margin:4px 0 12px}
.jfmt .jdato{background:var(--field);border:1px solid var(--line);border-radius:14px;padding:10px 12px;min-width:0}
.jfmt .jdato small{display:block;color:var(--muted);font-size:.74rem;font-weight:600;line-height:1.25}
.jfmt .jdato b{display:block;font-size:1.18rem;font-weight:800;font-variant-numeric:tabular-nums;margin-top:3px;overflow-wrap:anywhere}
.jfmt .jdato.alerta{border-color:color-mix(in srgb,var(--bad) 35%,var(--line))}
.jfmt .jdato.alerta b{color:var(--bad)}
.jfmt .jdato.bien b{color:var(--ok,#1f7a3a)}
.jfmt .jtip{display:flex;gap:9px;align-items:flex-start;background:color-mix(in srgb,var(--accent) 9%,transparent);border-left:3px solid var(--accent);border-radius:4px 12px 12px 4px;padding:9px 12px;margin:10px 0 4px;font-size:.93rem}
.jfmt .jtip>span{line-height:1.3}
.jruta{display:inline-flex;flex-wrap:wrap;align-items:center;gap:3px 4px;vertical-align:baseline}
.jruta>span{background:var(--field);border:1px solid var(--line);border-radius:8px;padding:1px 8px;font-weight:650;font-size:.9em;white-space:nowrap}
.jruta>i,.jarr{color:var(--accent);font-style:normal;font-weight:800}

/* Juan (2026-11-22): el dictado deja claro cuándo escucha. Barra arriba del cuadro de escribir: punto que late, «Te escucho…», texto en vivo, tiempo y «Listo». */
#jotachat .jlisten{display:flex;align-items:center;gap:10px;margin:6px 16px;padding:10px 12px;border-radius:16px;background:color-mix(in srgb,var(--accent) 12%,var(--surface));border:1.5px solid var(--accent)}
#jotachat .jlisten[hidden]{display:none}
#jotachat .jlisten .jldot{flex:none;width:14px;height:14px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 0 color-mix(in srgb,var(--accent) 55%,transparent);animation:jldot 1.1s ease-out infinite}
#jotachat .jlisten .jlbody{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
#jotachat .jlisten .jltit{font-size:.95rem;line-height:1.2}
#jotachat .jlisten .jltx{color:var(--muted);font-size:.82rem;line-height:1.3;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
#jotachat .jlisten.on .jltx{color:var(--fg)}
#jotachat .jlisten .jltm{flex:none;font-variant-numeric:tabular-nums;font-weight:700;font-size:.85rem;color:var(--accent)}
#jotachat .jlisten:not(.on) .jlok,#jotachat .jlisten:not(.on) .jltm{display:none}
#jotachat .jlisten:not(.on) .jldot{animation:none}
#jotachat .jlisten.nada{background:var(--field);border-color:var(--line)}
#jotachat .jlisten.nada .jldot{background:var(--muted)}
@keyframes jldot{0%{box-shadow:0 0 0 0 color-mix(in srgb,var(--accent) 55%,transparent)}80%,100%{box-shadow:0 0 0 10px transparent}}
@media (prefers-reduced-motion:reduce){#jotachat .jlisten .jldot{animation:none}}
/* dictado con Whisper: mientras convierte la voz en texto no hay «Listo» ni tiempo; el punto gira despacio */
#jotachat .jlisten.proc .jlok,#jotachat .jlisten.proc .jltm{display:none}
#jotachat .jlisten.proc .jldot{background:transparent;border:3px solid var(--accent);border-right-color:transparent;box-shadow:none;width:12px;height:12px;animation:jlgira .8s linear infinite}
@keyframes jlgira{to{transform:rotate(360deg)}}

/* Juan (2026-11-22, video de ejemplo): cuadro de escribir de Jota como tarjeta. Texto arriba (crece) y abajo: ✕, onda de la voz, tiempo, ■ y la flecha de enviar. */
.jchat .jin.jcomp{display:block;border-top:0;padding:8px 14px calc(10px + env(safe-area-inset-bottom));background:transparent}
html.kb-open .jchat .jin.jcomp{padding-bottom:10px}
.jchat .jcomp .jcbox{background:var(--surface);border:1px solid var(--line);border-radius:22px;box-shadow:0 2px 14px rgba(0,0,0,.07);padding:10px 10px 8px 14px;display:flex;flex-direction:column;gap:4px}
.jchat .jcomp .jcbox:focus-within{border-color:color-mix(in srgb,var(--accent) 55%,var(--line))}
.jchat .jcomp textarea#jq{display:block;width:100%;box-sizing:border-box;resize:none;border:0;outline:0;background:transparent;color:var(--fg);font:inherit;font-size:max(16px,1rem);line-height:1.35;padding:4px 2px 2px;min-height:28px;max-height:132px;overflow-y:auto}
.jchat .jcomp textarea#jq::placeholder{color:var(--muted)}
.jchat .jcomp.rec textarea#jq::placeholder{color:var(--accent);font-weight:600}
.jchat .jcomp.proc textarea#jq::placeholder{color:var(--muted);font-style:italic}
.jchat .jcmsg{font-size:.82rem;color:var(--muted);padding:0 2px}
.jchat .jcmsg.ok{color:var(--accent);font-weight:600}
.jchat .jcmsg[hidden]{display:none}
.jchat .jcrow{display:flex;align-items:center;gap:8px;min-height:40px}
.jchat .jcsp{flex:1}
.jchat .jcomp .jcb{flex:none;width:38px;height:38px;border-radius:50%;border:0;padding:0;display:grid;place-items:center;cursor:pointer;background:var(--field);color:var(--fg);-webkit-tap-highlight-color:transparent}
.jchat .jcomp .jcb[hidden]{display:none}
.jchat .jcomp .jcb:active{transform:scale(.94)}
.jchat .jcomp .jcsend{width:40px;height:40px;background:var(--accent);color:var(--accent-fg,#fff)}
.jchat .jcomp.proc .jcsend{opacity:.55}
.jchat .jcomp .jcx,.jchat .jcomp .jcstop,.jchat .jcomp .jwave,.jchat .jcomp .jctm{display:none}
.jchat .jcomp.rec .jcx,.jchat .jcomp.proc .jcx,.jchat .jcomp.rec .jcstop{display:grid}
.jchat .jcomp.rec .jwave,.jchat .jcomp.proc .jwave{display:flex}
.jchat .jcomp.rec .jctm{display:block}
.jchat .jcomp.rec .jmic,.jchat .jcomp.proc .jmic{display:none}
.jchat .jcomp.rec .jcsp,.jchat .jcomp.proc .jcsp{display:none}
.jchat .jwave{flex:1;min-width:0;align-items:center;justify-content:center;gap:3px;height:28px;overflow:hidden}
.jchat .jwave i{flex:none;width:3px;height:4px;border-radius:2px;background:var(--accent);opacity:.85;transition:transform .1s linear}
.jchat .jcomp.proc .jwave i{opacity:.35;animation:jwproc 1.2s ease-in-out infinite}
.jchat .jcomp.proc .jwave i:nth-child(3n){animation-delay:.2s}.jchat .jcomp.proc .jwave i:nth-child(3n+1){animation-delay:.4s}
@keyframes jwproc{0%,100%{transform:scaleY(1)}50%{transform:scaleY(2.6)}}
.jchat .jctm{flex:none;font-variant-numeric:tabular-nums;font-size:.85rem;color:var(--muted);min-width:34px;text-align:right}
@media (prefers-reduced-motion:reduce){.jchat .jwave i{transition:none;animation:none!important}}

/* v952 (punto 12, iOS 26; Juan 2026-11-22 «Seguir buscando»): en la app instalada, iOS 26 pone su vidrio borroso sobre la hora y unos 40 pt
   debajo, salvo que el borde de arriba quede tapado por una caja FIJA, de ancho completo, de más de 10 px y con color de fondo sólido (sin
   backdrop-filter, máscara ni pointer-events:none). En ese caso extiende ese color hacia la hora (según el código de WebKit citado por otros
   proyectos, LocalFrameView::fixedContainerEdges; confirmado por uno de ellos en un iPhone con iOS 26). Aquí: una franja de 12 px del color
   del negocio, solo en la app instalada en iPhone/iPad. Para devolverlo: quitar este bloque y el #edgestrip de index.html. */
#edgestrip{display:none}
@supports (-webkit-touch-callout:none){
  @media (display-mode:standalone),(display-mode:fullscreen){
    #edgestrip{display:block;position:fixed;top:0;left:0;right:0;width:100%;height:max(env(safe-area-inset-top),12px);background-color:var(--hdr,var(--accent));z-index:40}
    html[data-style="mostrador"]:not([data-theme="light"]) #edgestrip{background-color:var(--hdr,color-mix(in srgb,var(--accent) 55%,#000))}
  }
}

/* Juan (2026-11-22): con la transparencia del encabezado alta el fondo queda claro; las piezas que tenían blanco fijo (menú, nombre, Jota, campana,
   pastillas claras) toman el color del texto del encabezado y su fondo translúcido pasa de blanco a gris suave. Las pastillas oscuras no cambian. */
html.hdr-claro :is(#vhero,#ihero2,#fhero2,#chero2,#ajhero2,#vhero2,#svhero2,#qhero2,#rphero2,#cphero2,#clhero2,#vdhero2,#cathero2,#clmhero,.vhero2,.vvhead,header.top) :is(.navhb,.bizbn,.jotahd,.bellbtn,.vqpill:not(.dk),.vchip.ghost,.pca:not(.p)){color:var(--hdr-ink)!important}
html.hdr-claro :is(#vhero,#ihero2,#fhero2,#chero2,#ajhero2,#vhero2,#svhero2,#qhero2,#rphero2,#cphero2,#clhero2,#vdhero2,#cathero2,#clmhero,.vhero2,.vvhead,header.top) :is(.jotahd,.bellbtn,.vqpill:not(.dk),.vchip.ghost,.pca:not(.p)){background:rgba(0,0,0,.07)!important}
html.hdr-claro .navhb:focus-visible{outline-color:var(--hdr-ink)}

/* Juan (2026-11-23, captura de Ajustes en el celular: «el espacio vacío en el menú 3 líneas»): la fila de arriba solo tenía las tres rayas (logo, nombre,
   Jota y campana salen en la tarjeta del negocio) y el título «Ajustes» iba en otra línea. Ahora el título sube a la fila de las tres rayas. */
@media (max-width:1099px){
  html:root:not(.aj-insec):not(.pc2) body #app[data-tab="ajustes"] #ajhero2::before{display:none!important}
  html:root:not(.aj-insec):not(.pc2) body #app[data-tab="ajustes"] header.top::after{content:"Ajustes";position:absolute;left:68px;top:max(env(safe-area-inset-top,0px),10px);height:44px;line-height:44px;font-family:var(--f-display);font-weight:800;font-size:1.2rem;letter-spacing:-.01em;color:var(--hdr-ink,var(--accent-ink,#fff));pointer-events:none}
}

/* Juan (2026-11-23, captura de Inicio: «el nombre del negocio se corta», «JC Te…»): en el celular la fila de arriba gana espacio (separaciones y el
   botón de Jota un poco más angostos) y un nombre largo pasa a dos líneas con letra un poco menor, en vez de cortarse con «…». */
@media (max-width:1099px){
  html:root body :is(#vhero .vtop,header.top .hdlogo){gap:8px!important}
  html:root body :is(#vhero .vtr,header.top .head-r){gap:6px!important}
  html:root body #app header.top .head-r>#jotahd,html:root body #vhero .vtop .vtr>button.jotahd{padding:0 8px!important;gap:3px!important}
  html:root body :is(#vhero .vtop,header.top) .bizbrand{gap:8px!important}
  html:root body :is(#vhero .vtop,header.top) .bizbn{white-space:normal!important;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.08;overflow-wrap:normal;word-break:normal;font-size:.92rem!important}
}

/* Juan (2026-11-23): Inicio del celular «3 · Mostrador rápido» (maqueta en disenos/inicio-maquetas/, con los íconos a color).
   Arriba: lo vendido hoy y la caja. Debajo: buscador grande (producto, cliente o IMEI) con escáner, «Vender» grande y Cobrar abono/Caja.
   «Hoy toca» pasa a la campana (con su número); se quitan de Inicio «Verificar IMEI», Ganancia/Te deben y los avisos de abajo.
   La base de caja (solo cuando falta) y las últimas ventas se quedan. El computador no cambia. */
#vmost{display:none}
#tab-inicio .vpic.vemo{display:none}
@media (max-width:1099px){
  html:root body #tab-inicio #vhero .vhi{display:none!important}
  html:root body #tab-inicio #vhero .vchips>:not(.cjst){display:none!important}
  html:root body #tab-inicio #vhero .vsum:not(#_x){display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:0!important;text-align:left!important}
  html:root body #tab-inicio #vhero .vsum .vbig{font-size:2.2rem!important;line-height:1.05!important}
  html:root body #tab-inicio #vhero .vchips:not(#_x){position:absolute;right:16px;bottom:22px;margin:0!important}
  html:root body #tab-inicio #vhero:not(#_x){position:relative}
  html:root body #tab-inicio :is(#gsbtn,#vimei,#vbanners,#vtoca){display:none!important}
  html:root body #tab-inicio>#vmost{order:-3!important;display:flex;align-items:center;gap:8px;height:60px;margin:14px 0 0;padding:0 7px 0 16px;border-radius:20px;background:var(--surface);border:2px solid var(--accent)}
  html:root body #tab-inicio>#vacts{order:-3!important}
  #vmost .vmq{flex:1;min-width:0;height:100%;display:flex;align-items:center;gap:10px;background:none;border:0;padding:0;font:inherit;font-size:1rem;color:var(--muted);text-align:left;cursor:pointer}
  #vmost .vmq span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  #vmost .vmscan{flex:none;width:46px;height:46px;border-radius:14px;border:0;background:#111;color:#fff;display:grid;place-items:center;cursor:pointer}
  #vmost .vmscan svg{width:22px;height:22px;color:#fff}
  :root[data-theme="dark"] #vmost .vmscan{background:#fff;color:#111}:root[data-theme="dark"] #vmost .vmscan svg{color:#111}
  #tab-inicio .vemo{font-style:normal;font-size:1.25rem;line-height:1;font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif}
  html:root body #tab-inicio #vacts.vacts2:not(#_x):not(#_y){display:grid!important;grid-template-columns:1fr 1fr!important;justify-content:stretch!important;margin:12px 0 4px!important}
  html:root:not(#_a):not(#_b) body #tab-inicio #vacts.vacts2:not(#_x):not(#_y):not(#_z){gap:10px!important}
  html:root:not(#_a):not(#_b) body #tab-inicio #vacts.vacts2 .vact:not(#_x):not(#_y):not(#_z){gap:10px!important;min-width:0!important;flex:none!important;width:auto!important;flex-direction:row!important;justify-content:center!important;align-items:center!important;box-shadow:none!important}
  html:root body #tab-inicio #vacts.vacts2 .vact i.vemo:not(#_x):not(#_y){width:auto!important;height:auto!important;background:none!important;font-size:1.3rem}
  html:root body #tab-inicio #vacts.vacts2 .vact.main:not(#_x):not(#_y){grid-column:1/-1!important;min-height:60px!important;border-radius:18px!important;padding:0 16px!important;background:var(--accent)!important}
  html:root body #tab-inicio #vacts.vacts2 .vact.main:not(#_x):not(#_y) span{font-size:1.15rem!important;font-weight:800!important;color:var(--accent-ink,#fff)!important}
  html:root body #tab-inicio #vacts.vacts2 .vact:not(.main):not(#_x):not(#_y){min-height:52px!important;border-radius:16px!important;padding:0 12px!important;border:1px solid var(--line)!important;background:var(--surface)!important}
  html:root body #tab-inicio #vacts.vacts2 .vact:not(.main):not(#_x):not(#_y) span{font-size:1rem!important;font-weight:700!important;color:var(--fg)!important}
  html:root body #tab-inicio #ilast .vpic:not(.vemo){display:none!important}
  html:root body #tab-inicio #ilast .vpic.vemo{display:grid!important;place-items:center;font-size:1.15rem}
  /* «Hoy toca» dentro de la ventana de avisos */
  #avtoca:empty{display:none}
  #avtoca{padding:0 16px 6px}
  #avtoca #vtoca{display:block!important;margin:0}
  /* Caja como hoja pequeña (no en Inicio) */
  html:root body #tab-inicio>#icajacard{display:none!important}
  html:root body #tab-inicio #vhero .cjst.closed{cursor:pointer}
  .cjhoja #icajacard{margin:0;padding:0;box-shadow:none;background:transparent;border:0}
  .cjhoja #icajacard>div:first-child>h2{display:none}
  .cjhoja #icajacard h2{font-size:1.15rem}
}
#icajacard .icl{display:none}
.cjhoja #icajacard .icl{display:flex}
/* Guía de ventanas (Juan 2026-11-23): la ✕ de cerrar siempre arriba a la derecha en el celular */
@media (max-width:1099px){
  .modal .dlg.uxpad{position:relative}
  .modal .dlg.uxpad>.uxx{position:absolute;top:12px;right:12px;z-index:5;width:34px;height:34px;border-radius:50%;border:0;padding:0;display:grid;place-items:center;background:color-mix(in srgb,var(--fg,#000) 10%,transparent);color:var(--fg);font:inherit;font-size:1rem;line-height:1;cursor:pointer}
  .modal .dlg.uxpad>h2:first-of-type,.modal .dlg.uxpad>.uxx+h2,.modal .dlg.uxpad>.uxx+*>h2:first-child{padding-right:44px}
  .modal .cphd>.sheetx.uxr{order:9;margin-left:auto;width:34px;height:34px;min-height:0;border-radius:50%;padding:0;display:grid;place-items:center;font-size:1rem;line-height:1}
}
/* Juan 2026-11-23: barra lateral flotante (celular y tableta). Maquetas en la rama claude/lectura-docs-traspaso-0wrzor, docs/maquetas-menu/barra-v3, -lado, -transparencia. */
@media (max-width:1099px){
  /* arriba: el ícono de la pantalla abierta, en una pastilla, donde estaban las tres rayas */
  #navcur{display:none}
  html:root body .navhb.navcur{width:44px;height:44px;border-radius:14px;background:color-mix(in srgb,var(--hdr-ink,#fff) 18%,transparent);color:var(--hdr-ink,#fff)}
  html:root body .navhb.navcur svg{width:24px;height:24px}
  html.rail-open .navhb.navcur{opacity:0;transition:opacity 120ms}
  html[data-rail="der"] body .navhb.navcur:not(#navcur){display:none!important}
  html[data-rail="der"] body #navcur,html[data-rail="der"]:root body #app:is([data-tab="inicio"],[data-tab="vender"]) header.top .head-r>#navcur{display:inline-flex!important;order:99}
  .navrail.modal{background:rgba(0,0,0,.18)!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;display:block!important;padding:0!important;animation:nrFade 180ms ease-out}
  .navrail .nrail{position:fixed;z-index:2;width:60px;display:flex;flex-direction:column;align-items:center;gap:6px;padding:8px 0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none;
    border-radius:30px;background:var(--nrbg,var(--hdr,var(--accent)));color:var(--nrink,var(--hdr-ink,#fff));box-shadow:0 12px 32px rgba(0,0,0,.22),0 2px 6px rgba(0,0,0,.12);
    transform-origin:top left;animation:nrIn 260ms cubic-bezier(.2,.8,.2,1)}
  .navrail.der .nrail{transform-origin:top right}
  .navrail .nrail::-webkit-scrollbar{display:none}
  .navrail .nri{position:relative;flex:none;width:44px;height:44px;border-radius:14px;border:0;padding:0;display:grid;place-items:center;background:transparent;color:inherit;cursor:pointer;
    -webkit-tap-highlight-color:transparent;transition:transform 140ms cubic-bezier(.2,.8,.2,1),background-color 140ms,color 140ms}
  .navrail .nri svg{width:24px;height:24px}
  .navrail .nri.on{background:#fff;color:var(--accent)}
  .navrail.claro .nri.on{background:color-mix(in srgb,#000 8%,transparent);color:var(--accent)}
  .navrail .nri.nrv{background:var(--accent);color:var(--accent-ink,#fff);box-shadow:inset 0 0 0 2px color-mix(in srgb,#fff 30%,transparent)}
  .navrail .nrsep{flex:none;width:28px;height:2px;border-radius:2px;background:currentColor;opacity:.3;margin:2px 0}
  /* bajo el dedo: crece y se llena; sobre la barra de color fuerte se llena de blanco con el ícono del color del negocio, sobre la barra clara se llena con el color del negocio */
  .navrail .nri.hov,.navrail .nri:active{transform:scale(1.18);background:#fff;color:var(--accent);box-shadow:0 4px 14px rgba(0,0,0,.25)}
  .navrail.claro .nri.hov,.navrail.claro .nri:active{background:var(--accent);color:var(--accent-ink,#fff)}
  .navrail .nri em{position:absolute;top:-3px;right:-4px;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:#0b1210;color:#fff;font:700 .68rem/18px var(--f-body);font-style:normal;border:2px solid #fff}
  .navrail .nrtip{position:fixed;z-index:3;transform:translateY(-50%);padding:6px 10px;border-radius:10px;background:#0b1210;color:#fff;font-weight:700;font-size:.9rem;pointer-events:none;opacity:0;transition:opacity 100ms}
  .navrail .nrtip.v{opacity:1}
  .navrail.out{animation:nrFade 200ms ease-in reverse forwards}
  .navrail.out .nrail{animation:nrIn 200ms ease-in reverse forwards}
  @keyframes nrIn{from{opacity:0;transform:scale(.6) translateY(-12px)}to{opacity:1;transform:none}}
  @keyframes nrFade{from{opacity:0}to{opacity:1}}
  @media (prefers-reduced-motion:reduce){.navrail.modal,.navrail .nrail,.navrail.out,.navrail.out .nrail{animation:none!important}.navrail .nri{transition:none}}
  /* Ajustes → Pantalla: elegir el lado */
  .drail{margin:12px 0}.drail b{display:block;margin-bottom:6px}
  .drail .seg{display:flex;gap:4px;padding:4px;border-radius:14px;background:var(--field,#efefec)}
  .drail .seg label{flex:1;margin:0}.drail .seg input{position:absolute;opacity:0;pointer-events:none}
  .drail .seg span{display:block;text-align:center;padding:9px;border-radius:10px;font-weight:700;color:var(--muted);cursor:pointer}
  .drail .seg input:checked+span{background:var(--surface,#fff);color:var(--accent);box-shadow:0 1px 3px rgba(0,0,0,.12)}
  .drail .seg input:focus-visible+span{outline:2px solid var(--accent)}
}
.drail{display:none}
@media (max-width:1099px){.drail{display:block}}
/* íconos a color en la barra lateral (como en Inicio) */
@media (max-width:1099px){
  .navrail .nri .nre{font-size:1.45rem;line-height:1;font-style:normal;font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif;transition:transform 140ms cubic-bezier(.2,.8,.2,1)}
  /* mejora 2: Vender con el color del negocio (con un aro claro para que se separe de la barra); solo la pantalla actual va en blanco */
  .navrail .nri.nrv{background:var(--accent);box-shadow:0 0 0 2px color-mix(in srgb,#fff 70%,transparent),0 3px 10px rgba(0,0,0,.25)}
  .navrail .nri.nrv.on{background:#fff}
  /* mejora 5: el ícono de arriba también a color */
  html:root body .navhb.navcur .nre{font-size:1.4rem;line-height:1;font-style:normal;font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif}
  /* mejora 3: con nombres (las 3 primeras veces) */
  .navrail.names .nrail{width:auto;min-width:176px;align-items:stretch;padding:8px}
  .navrail.names .nri{width:auto;justify-content:start;display:flex;align-items:center;gap:12px;padding:0 14px 0 10px}
  .navrail.names .nri .nrl{font-weight:700;font-size:1rem;white-space:nowrap}
  .navrail.names .nri em{left:30px;right:auto}
  .navrail.names .nrsep{align-self:center}
  .navrail.names .nri.hov,.navrail.names .nri:active{transform:scale(1.04)}
}
/* fondo de la barra escogido por la persona (Juan 2026-11-23) */
@media (max-width:1099px){
  .navrail[data-bg="blanco"]:not(.claro) .nri.on,.navrail[data-bg="negro"] .nri.on{background:#fff;color:var(--accent)}
  .navrail[data-bg="fuerte"] .nri.nrv{box-shadow:0 0 0 2px #fff,0 3px 10px rgba(0,0,0,.25)}
  .drail .seg4{flex-wrap:wrap}.drail .seg4 label{flex:1 1 40%}
}
/* Ajustes «A · Por tarea» (Juan 2026-11-23): íconos a color */
.ajrow .ajic .ajemo{font-size:1.3rem;line-height:1;font-style:normal;font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif}
#ajhub #ajmodsw{display:none!important}
.sheetdlg #ajmodsw{display:block!important}
.sheetdlg #ajmodsw .ajmodsh{display:none}
.sheetdlg #ajmodsw .ajmodshint{margin:0 0 10px}
/* Ajustes con la barra a la derecha (Juan 2026-11-23, captura: «Ajustes» encima de «JC Tech»): la fila de arriba conserva su alto, el título va a la
   izquierda y el ícono de la pantalla queda a la derecha de esa misma fila. */
@media (max-width:1099px){
  html[data-rail="der"]:root:not(.aj-insec):not(.pc2) body #app[data-tab="ajustes"] header.top::after{left:20px}
  html[data-rail="der"]:root:not(.aj-insec):not(.pc2) body #app[data-tab="ajustes"] header.top>.hdlogo .navhb.navcur:not(#navcur){display:inline-flex!important;visibility:hidden!important}
  html[data-rail="der"]:root:not(.aj-insec):not(.pc2) body #app[data-tab="ajustes"]:not(#_x):not(#_y):not(#_z):not(#_w) header.top>.head-r{display:flex!important;position:absolute;right:20px;top:max(env(safe-area-inset-top,0px),10px);visibility:visible!important}
  html[data-rail="der"]:root:not(.aj-insec):not(.pc2) body #app[data-tab="ajustes"] header.top>.head-r>:not(#navcur){display:none!important}
}
/* fichas de Ajustes con ícono a color (Juan 2026-11-23) */
html:root body #app section .card.fold>h2>.fic.emo{font-size:1.3rem;line-height:1;font-style:normal;font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif;color:initial}
html:root body #app section .card.fold>h2>.fic.emo::before{display:none!important}
/* Juan 2026-11-23 (separar módulos): Crédito y Plan Separe tienen su propia pantalla en el menú; las pestañas internas ya no se muestran */
#cliseg #csubfiado,#fiapane #fseg{display:none!important}
/* «Datos y sesión» de Ajustes con íconos a color (Juan 2026-11-23) */
#ajdata .ajdemo{display:grid;place-items:center;width:46px;height:46px;border-radius:14px;font-style:normal;font-size:1.45rem;line-height:1;font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif;background:color-mix(in srgb,var(--fg,#000) 10%,transparent);flex:none}
#ajdata .btn.danger .ajdemo{background:color-mix(in srgb,var(--bad,#b3261e) 14%,transparent)}


/* Juan 2026-11-23 (maqueta disenos/inicio-iconos/propuesta.png, opción A): Inicio del celular con íconos redondos (los mismos emojis a color dentro de círculos),
   buscador con borde delgado, globito de la campana sin recortar y sin el cuadro gris de «Aún no hay ventas hoy». Solo celular y tableta. */
@media (max-width:1099px){
  html:root body #tab-inicio #vhero .vtop :is(.navhb,.bellbtn,.biztile,.vwho .vav):not(#_x):not(#_y):not(#_z){border-radius:50%!important}
  html:root body #tab-inicio #vhero .vtop .jotahd:not(#_x):not(#_y):not(#_z){border-radius:99px!important}
  html:root body #tab-inicio #vhero .vtop .bellbtn b:not(#_x):not(#_y){top:-2px!important;right:-2px!important}
  html:root body #tab-inicio #vhero .vtop .bizbn:not(#_x):not(#_y){white-space:nowrap!important} /* el nombre del negocio en una sola línea (con «…» si es muy largo) */
  html:root body #tab-inicio #vhero .vtop .bizbrand:not(#_x):not(#_y){gap:8px!important;padding-right:0!important}
  html:root body #tab-inicio #vhero .vtop .jotahd:not(#_x):not(#_y):not(#_z){padding:0 9px!important;gap:4px!important}
  /* la campana a color, como los demás íconos de Inicio */
  html:root body #tab-inicio #vhero .vtop .bellbtn>svg:not(#_x):not(#_y){display:none!important}
  html:root body #tab-inicio #vhero .vtop .bellbtn::before{content:"🔔";font-size:1.25rem;line-height:1;font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif}
  html:root body #tab-inicio>#vmost:not(#_x):not(#_y){border:1.5px solid var(--line)!important}
  html:root body #tab-inicio #vacts.vacts2 .vact i.vemo:not(#_x):not(#_y):not(#_z){width:38px!important;height:38px!important;border-radius:50%!important;display:grid!important;place-items:center;flex:none;font-size:1.15rem!important;background:color-mix(in srgb,var(--fg) 8%,var(--surface))!important;box-shadow:none!important}
  html:root body #tab-inicio #vacts.vacts2 .vact.main i.vemo:not(#_x):not(#_y):not(#_z){background:rgba(255,255,255,.18)!important}
  html:root body #tab-inicio #ilast .iempty{display:flex;margin:0;align-items:center;gap:12px;text-align:left;background:none!important;border:0!important;box-shadow:none!important;padding:6px 4px!important;min-height:0!important;color:var(--muted);font-size:.95rem}
  html:root body #tab-inicio #ilast .iempty i{width:40px;height:40px;border-radius:50%;background:color-mix(in srgb,var(--fg) 8%,var(--surface));display:grid;place-items:center;font-style:normal;font-size:1.1rem;flex:none}
  html:root body #tab-inicio #ilast .iempty b{color:var(--fg)}
}
@media (max-width:1099px){html:root body #ilastcard>#ilast:has(>.iempty):not(#_x){background:none!important;padding:0!important}}

/* Juan 2026-11-23 (maqueta disenos/inicio-ajustes-2/propuesta2.png): Inicio del celular. La caja es un solo ícono 💰 arriba (aro verde = abierta, rojo = cerrada) que abre Caja;
   Jota solo con su muñequito; escáner redondo con borde y a color; carrito 🛒 en círculo blanco. Solo celular y tableta. */
.cjic{display:none}
@media (max-width:1099px){
  html:root body #tab-inicio #vhero .vtop .cjic:not(#_x):not(#_y){display:grid!important;place-items:center;flex:none;width:40px;height:40px;border-radius:50%!important;border:0;padding:0;cursor:pointer;font-size:1.2rem;line-height:1;font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif}
  html:root body #tab-inicio #vhero .vtop .cjic.open:not(#_x){background:#c8efd5;box-shadow:0 0 0 3px #2f9d5a}
  html:root body #tab-inicio #vhero .vtop .cjic.closed:not(#_x){background:#f8d0cd;box-shadow:0 0 0 3px #d33a32}
  html:root body #tab-inicio #vhero .vchips .cjst:not(#_x):not(#_y){display:none!important}
  html:root body #tab-inicio #vhero .vtop .vtr{gap:8px}
  html:root body #tab-inicio #vhero .vtop .jotahd:not(#_x):not(#_y):not(#_z){width:40px!important;min-width:40px!important;padding:0!important;justify-content:center}
  html:root body #tab-inicio #vhero .vtop .jotahd :is(b,.spk):not(#_x):not(#_y){display:none!important}
  html:root body #tab-inicio>#vmost .vmscan:not(#_x):not(#_y){width:46px;height:46px;border-radius:50%!important;background:transparent!important;color:var(--fg)!important;box-shadow:inset 0 0 0 1.5px var(--line)}
  html:root body #tab-inicio>#vmost .vmscan svg:not(#_x):not(#_y){width:26px;height:26px;color:var(--fg)!important}
  html:root body #tab-inicio #vacts.vacts2 .vact.main i.vemo:not(#_x):not(#_y):not(#_z){background:#fff!important}
}
/* Juan 2026-11-23: los botones grandes de Inicio del celular son píldoras completas (como en la maqueta disenos/inicio-iconos/propuesta.png) */
@media (max-width:1099px){
  html:root body #tab-inicio>#vmost:not(#_x):not(#_y):not(#_z){border-radius:999px!important}
  html:root body #tab-inicio #vacts.vacts2 .vact:not(#_x):not(#_y):not(#_z){border-radius:999px!important}
}
@media (max-width:1099px){
  /* Juan 2026-11-23: «Vender» del mismo tamaño que los otros botones (media fila, 52 px) y centrado */
  html:root:not(#_a):not(#_b) body #tab-inicio #vacts.vacts2 .vact.main:not(#_x):not(#_y):not(#_z){width:calc((100% - 10px)/2)!important;justify-self:center;min-height:52px!important;height:52px;padding:0 12px!important}
  html:root body #tab-inicio #vacts.vacts2 .vact.main:not(#_x):not(#_y) span{font-size:1rem!important}
}

/* Juan 2026-11-23 (prototipo de identidad moderna): «¡Caja cuadrada!» — el logo se dibuja y cierra con el chulito; no bloquea la pantalla */
.cuadrook{position:fixed;inset:0;z-index:2147483000;display:grid;place-items:center;align-content:center;gap:12px;pointer-events:none;background:color-mix(in srgb,var(--bg,#fff) 97%,transparent);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);opacity:0;transition:opacity .28s cubic-bezier(.2,0,0,1)}
.cuadrook.on{opacity:1}
.cuadrook .cqmk{width:132px;height:132px;border-radius:42px;background:var(--surface,#fff);display:grid;place-items:center;box-shadow:0 18px 40px -20px rgba(0,0,0,.45);transform:scale(.6);transition:transform .56s cubic-bezier(.34,1.56,.64,1)}
.cuadrook.on .cqmk{transform:scale(1)}
.cuadrook svg{width:92px;height:92px;fill:none;stroke-linecap:round;stroke-linejoin:round}
.cuadrook .sq{stroke:var(--fg,#0b0f0e);stroke-width:6;stroke-dasharray:140;stroke-dashoffset:140}
.cuadrook .ck{stroke:#16a34a;stroke-width:7;stroke-dasharray:140;stroke-dashoffset:140}
.cuadrook.on .sq{animation:cqdraw .55s cubic-bezier(.2,0,0,1) .15s forwards}
.cuadrook.on .ck{animation:cqdraw .45s cubic-bezier(.2,0,0,1) .6s forwards}
@keyframes cqdraw{to{stroke-dashoffset:0}}
.cuadrook b{font-family:var(--f-display,inherit);font-weight:800;font-size:1.8rem;letter-spacing:-.02em;color:var(--fg,#0b0f0e)}
.cuadrook span{color:var(--muted,#5b6561);font-size:.95rem;text-align:center;padding:0 24px}
.cqconf{position:fixed;width:8px;height:12px;border-radius:2px}

/* ===== Juan 2026-11-23: Inicio del celular igual al prototipo de identidad moderna (disenos/identidad-moderna/prototipo.html) ===== */
#ivh,#ivnav{display:none}
@media (max-width:1099px),(min-width:1100px){
  html:root:not(#_a):not(#_b):not(#_c) body #tab-inicio.iv>:is(#vhero,#vmost,#vacts,#gsbtn,#vimei,#vtoca,#icajacard,#igoalcard):not(#_x):not(#_y):not(#_z){display:none!important}
  html:root body #tab-inicio.iv>#ivh{display:block;order:-10}
  #ivh{--ivk:#0b0f0e;--ivglow:color-mix(in srgb,var(--accent,#16a34a) 45%,#22c55e);--ivsh:none;margin:0 4px}
  #ivh .e{font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif;font-style:normal;line-height:1}
  #ivh .ivbar{display:flex;align-items:center;gap:8px;padding:calc(24px + var(--sat,0px)) 2px 12px} /* Juan 2026-11-23: en el iPhone el encabezado quedaba pegado (cortado) bajo la franja de la hora */
  #ivh .ivbiz{display:flex;align-items:center;gap:10px;flex:1;min-width:0}
  #ivh .ivlogo .biztile{width:40px;height:40px;border-radius:50%;overflow:hidden;box-shadow:none}
  #ivh .ivlogo .biztile img{border-radius:50%}
  #ivh .ivbiz b{display:block;font-family:var(--f-display,inherit);font-weight:800;font-size:1.05rem;letter-spacing:-.01em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  #ivh .ivbiz small{display:block;font-size:.72rem;color:var(--muted);font-weight:600;white-space:nowrap}
  #ivh .ivbiz>div{min-width:0}
  #ivh .ivbar>:is(.jotahd,.bellbtn,.ivwho){width:40px;height:40px;min-width:40px;border-radius:50%;padding:0;border:1px solid var(--line);background:var(--surface);color:var(--fg);display:grid;place-items:center;flex:none;transition:transform .16s cubic-bezier(.2,0,0,1)}
  #ivh .ivbar>:is(.jotahd,.bellbtn,.ivwho):active{transform:scale(.92)}
  #ivh .ivbar>.jotahd b,#ivh .ivbar>.jotahd .spk{display:none}
  #ivh .ivbar>.jotahd svg{width:26px;height:26px;animation:ivfloat 3.2s ease-in-out infinite}
  @keyframes ivfloat{50%{transform:translateY(-3px) rotate(-3deg)}}
  #ivh .ivbar>.bellbtn>svg{display:none}
  #ivh .ivbar>.bellbtn::before{content:"🔔";font-size:1.15rem;line-height:1;font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif}
  #ivh .ivbar>.bellbtn b{top:-4px;right:-4px}
  #ivh .ivwho .vav{width:100%;height:100%;border-radius:inherit;display:grid;place-items:center;font-weight:800;overflow:hidden}
  #ivh .ivwho .vav img{width:100%;height:100%;object-fit:cover}
  #ivh .ivrise,#ivh .ivt,#ivh .ivh2,#ivh .ivprods{animation:ivrise .48s cubic-bezier(.05,.7,.1,1) both}
  #ivh .ivbento>:nth-child(1){animation-delay:.06s}#ivh .ivbento>:nth-child(2){animation-delay:.11s}#ivh .ivbento>:nth-child(3){animation-delay:.16s}#ivh .ivh2{animation-delay:.2s}#ivh .ivprods{animation-delay:.25s}
  @keyframes ivrise{from{opacity:0;transform:translateY(14px) scale(.985)}}
  :root[data-theme="dark"] #ivh .ivhero{--ivk:#000;border:1px solid rgba(255,255,255,.14)}
  @media (prefers-color-scheme:dark){:root:not([data-theme="light"]) #ivh .ivhero{--ivk:#000;border:1px solid rgba(255,255,255,.14)}}
  #ivh .ivhero{display:block;width:100%;text-align:left;position:relative;border:1px solid transparent;border-radius:30px;padding:20px 20px 16px;color:#f3f6f4;background:var(--ivk);overflow:hidden;isolation:isolate;cursor:pointer}
  #ivh .ivhero::before,#ivh .ivhero::after{content:none} /* Juan 2026-11-23: sin luces borrosas */
  #ivh .ivlab{display:flex;justify-content:space-between;align-items:center;font-size:.8rem;color:#9fb0a8;font-weight:600}
  #ivh .ivlive{display:inline-flex;align-items:center;gap:6px;font-size:.72rem;font-weight:800;color:#86efac;background:rgba(34,197,94,.14);padding:4px 9px;border-radius:999px}
  #ivh .ivlive i{width:7px;height:7px;border-radius:50%;background:#22c55e;animation:ivpulse 1.6s ease-in-out infinite}
  @keyframes ivpulse{50%{opacity:.3}}
  #ivh .ivbig{display:block;font-family:var(--f-display,inherit);font-weight:800;font-size:2.75rem;letter-spacing:-.045em;line-height:1.04;margin:6px 0 2px;color:#fff;white-space:nowrap}
  #ivh .ivd{display:block;font-size:.82rem;font-weight:700;color:#86efac}#ivh .ivd.down{color:#fca5a5}#ivh .ivd.soft{color:#9fb0a8}
  #ivh .ivspark{width:100%;height:58px;margin-top:10px;display:block;overflow:visible}
  #ivh .ivspark .l{fill:none;stroke:#4ade80;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:1;stroke-dashoffset:1;animation:ivdraw 1.4s cubic-bezier(.2,0,0,1) .25s forwards}
  #ivh .ivspark .a{fill:rgba(34,197,94,.16);opacity:0;animation:ivfade .8s ease .9s forwards}
  #ivh .ivspark circle{fill:#4ade80;opacity:0;animation:ivfade .3s ease 1.5s forwards}
  @keyframes ivdraw{to{stroke-dashoffset:0}}@keyframes ivfade{to{opacity:1}}
  #ivh .ivhrs{display:flex;justify-content:space-between;font-size:.66rem;color:#7f8f88;font-weight:600;margin-top:2px}
  #ivh .ivminis{display:flex;gap:18px;margin-top:10px;font-size:.74rem;color:#9fb0a8;font-weight:600}
  #ivh .ivminis b{display:block;color:#f3f6f4;font-family:var(--f-display,inherit);font-size:1.02rem;font-weight:800}
  #ivh .ivbento{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}
  #ivh .ivt{position:relative;border-radius:24px;background:var(--surface);color:var(--fg);padding:14px;text-align:left;border:1px solid var(--line);box-shadow:none;transition:transform .16s cubic-bezier(.2,0,0,1);overflow:hidden;min-width:0;cursor:pointer;font:inherit}
  #ivh .ivt:active{transform:scale(.965)}
  #ivh .ivt .ic{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;font-size:1.15rem;background:color-mix(in srgb,var(--fg) 6%,var(--surface))}
  #ivh .ivt h3{margin:10px 0 0;font-size:.8rem;color:var(--muted);font-weight:700}
  #ivh .ivt .v{font-family:var(--f-display,inherit);font-weight:800;font-size:1.3rem;letter-spacing:-.02em;margin-top:1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  #ivh .ivt .s{font-size:.74rem;font-weight:700;margin-top:2px;color:var(--muted)}
  #ivh .ivt .s.bad{color:#dc2626}#ivh .ivt .s.ok{color:var(--accent,#16a34a)}
  #ivh .ivt.wide{grid-column:1/-1;display:flex;align-items:center;gap:12px;cursor:default}
  #ivh .ivt.wide h3{margin:0}#ivh .ivt.wide>div{min-width:0}
  #ivh .ivt.wide .go{margin-left:auto;height:40px;padding:0 16px;border-radius:999px;border:0;background:var(--fg);color:var(--bg);font-weight:800;font-size:.84rem;flex:none;cursor:pointer}
  #ivh #ivcaja:empty{display:none}
  /* Juan 2026-11-23: solo el punto: verde que late con la caja abierta, rojo que late con la cerrada; sin fondo ni borde de color. Sin difuminado. */
  #ivh .ivt.wide .ic{position:relative}
  #ivh .ivt.wide .ic::after{content:"";position:absolute;top:-1px;right:-1px;width:12px;height:12px;border-radius:50%;border:2px solid var(--surface);background:#dc2626;animation:ivcajadot 2.2s ease-in-out infinite}
  #ivh .ivt.wide.open .ic::after{background:#22c55e;animation:ivcajadot 2.2s ease-in-out infinite}
  @keyframes ivcajadot{50%{transform:scale(.7);opacity:.55}}
  #ivh .ivring{position:absolute;right:12px;top:12px;width:34px;height:34px}
  #ivh .ivring circle{fill:none;stroke-width:4}#ivh .ivring .t{stroke:color-mix(in srgb,var(--fg) 8%,var(--surface))}
  #ivh .ivring .p{stroke:var(--accent,#16a34a);stroke-linecap:round;stroke-dasharray:88;stroke-dashoffset:88;transform:rotate(-90deg);transform-origin:center;animation:ivring 1.2s cubic-bezier(.2,0,0,1) .5s forwards}
  @keyframes ivring{to{stroke-dashoffset:var(--to,30)}}
  #ivh .ivh2{display:flex;justify-content:space-between;align-items:baseline;margin:20px 4px 10px}
  #ivh .ivh2 b{font-family:var(--f-display,inherit);font-weight:800;font-size:1.12rem;letter-spacing:-.01em}
  #ivh .ivh2 button{border:0;background:none;color:var(--accent,#16a34a);font-weight:800;font-size:.82rem;padding:0;cursor:pointer}
  #ivh .ivprods{display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;margin:0 -16px;padding:2px 16px 8px;scroll-padding-inline:16px;scrollbar-width:none}
  #ivh .ivprods::-webkit-scrollbar{display:none}
  #ivh .ivpr{flex:none;width:132px;scroll-snap-align:start;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:transform .16s cubic-bezier(.2,0,0,1)}
  #ivh .ivpr:active{transform:scale(.96)}
  #ivh .ivpr .im{position:relative;height:118px;border-radius:24px;display:grid;place-items:center;font-size:3rem;overflow:hidden;background:color-mix(in srgb,#fb923c 14%,var(--surface))}
  #ivh .ivpr:nth-child(5n+2) .im{background:color-mix(in srgb,#facc15 16%,var(--surface))}#ivh .ivpr:nth-child(5n+3) .im{background:color-mix(in srgb,#60a5fa 15%,var(--surface))}#ivh .ivpr:nth-child(5n+4) .im{background:color-mix(in srgb,#a78bfa 15%,var(--surface))}#ivh .ivpr:nth-child(5n) .im{background:color-mix(in srgb,#34d399 15%,var(--surface))}
  #ivh .ivpr .im img{width:100%;height:100%;object-fit:cover}
  #ivh .ivpr .add{position:absolute;right:8px;bottom:8px;width:38px;height:38px;border-radius:50%;background:var(--surface);color:var(--accent,#16a34a);font:900 1.4rem/1 var(--f-body,inherit);display:grid;place-items:center;border:1px solid var(--line);box-shadow:none;cursor:pointer;transition:transform .16s cubic-bezier(.2,0,0,1)}
  #ivh .ivpr:active .add{transform:scale(.85)}
  #ivh .ivpr .add.has{background:var(--accent,#16a34a);color:var(--accent-ink,#fff);font-size:.85rem}
  #ivh .ivpr b{display:block;font-size:.82rem;font-weight:800;margin-top:8px;line-height:1.25;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  #ivh .ivpr em{font-style:normal;font-family:var(--f-display,inherit);font-weight:800;font-size:.98rem}
  #ivh .ivpr small{display:block;color:var(--muted);font-size:.72rem;font-weight:600}
  html:root body #tab-inicio.iv #ilastcard>#ilast:not(:has(>.iempty)){border-radius:24px;border:1px solid var(--line);box-shadow:none}
  /* barra de vidrio */
  html.ivnav #ivnav:not([hidden]){display:flex}
  #ivnav{position:fixed;z-index:40;left:max(14px,env(safe-area-inset-left,0px));right:max(14px,env(safe-area-inset-right,0px));bottom:calc(6px + max(0px,env(safe-area-inset-bottom,0px) - 12px));gap:10px;align-items:center;pointer-events:none}
  #ivnav>*{pointer-events:auto}
  #ivnav .ivpill{position:relative;flex:1;height:68px;border-radius:999px;background:var(--surface);border:1px solid var(--line);box-shadow:none;display:grid;grid-template-columns:repeat(var(--n,4),1fr);padding:6px}
  #ivnav .ivind{position:absolute;top:6px;bottom:6px;left:6px;width:calc((100% - 12px)/var(--n,4));border-radius:999px;background:var(--surface);box-shadow:none;border:1px solid var(--line);transition:transform .46s cubic-bezier(.34,1.56,.64,1),opacity .2s}
  #ivnav .ivtab{position:relative;z-index:1;border:0;background:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font:700 .7rem/1 var(--f-body,inherit);color:var(--muted);cursor:pointer;transition:color .28s}
  #ivnav .ivtab svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:transform .28s cubic-bezier(.34,1.56,.64,1)}
  #ivnav .ivtab svg .f{fill:currentColor;stroke:none}
  #ivnav .ivtab.on{color:var(--accent,#16a34a);font-weight:800}#ivnav .ivtab.on svg{transform:translateY(-1px) scale(1.08)}
  /* Juan 2026-11-23: todos los íconos de la barra son emojis a color; la pantalla activa se marca con la píldora, el nombre y un pequeño salto */
  #ivnav .ivtab .ivem{display:block;font-style:normal;font-size:23px;line-height:1;height:23px;font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif;transition:transform .28s cubic-bezier(.34,1.56,.64,1)}
  #ivnav .ivtab:has(.ivem) svg{display:none}
  #ivnav .ivtab.on .ivem{transform:translateY(-1px) scale(1.12)}
  #ivnav .ivorb{position:relative;width:68px;height:68px;border-radius:50%;flex:none;border:1px solid var(--line);background:var(--surface);display:grid;place-items:center;box-shadow:none;cursor:pointer;transition:transform .16s cubic-bezier(.2,0,0,1)} /* Juan 2026-11-23: sin círculo verde */
  #ivnav .ivorb:active{transform:scale(.9)}
  #ivnav .ivorb .ivcart{width:100%;height:100%;display:grid;place-items:center}
  #ivnav .ivorb .ivcart i{font-style:normal;font-size:34px;line-height:1;font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif;animation:ivroll 3.4s ease-in-out infinite;transform-origin:50% 80%}
  @keyframes ivroll{0%,62%,100%{transform:none}70%{transform:translateX(-3px) rotate(-10deg)}78%{transform:translateX(3px) rotate(8deg)}86%{transform:translateX(-2px) rotate(-5deg)}93%{transform:translateX(1px) rotate(2deg)}}
  #ivnav .ivorb .n{position:absolute;top:-4px;right:-4px;min-width:24px;height:24px;border-radius:12px;background:var(--fg);color:var(--bg);font:900 12px/24px var(--f-body,inherit);text-align:center;padding:0 6px;transform:scale(0);transition:transform .38s cubic-bezier(.34,1.56,.64,1)}
  #ivnav .ivorb .n.show{transform:scale(1)}
  #ivnav .ivorb.bump{animation:ivbump .42s cubic-bezier(.34,1.56,.64,1)}
  @keyframes ivbump{30%{transform:scale(1.16) rotate(-6deg)}60%{transform:scale(.96)}}
  html.ivnav body #app{padding-bottom:calc(86px + env(safe-area-inset-bottom,0px))}
  html.ivnav body .toast:not(#_x):not(#_y){bottom:calc(90px + env(safe-area-inset-bottom,0px))!important}
  /* Juan 2026-11-23: en Inicio la franja de la hora es del color de la pantalla (antes quedaba una banda verde pegada sobre el encabezado claro) */
  html:root body:has(#tab-inicio.iv:not([hidden])) :is(#sattop,#edgestrip):not(#_x),html:root body:has(#app[data-tab="ajustes"]) :is(#sattop,#edgestrip):not(#_x){background:var(--surface)!important;background-color:var(--surface)!important} /* #edgestrip es la franja fija de la hora del iPhone (v952) */
  html.ivnav body :is(.toast,.modal,.dlg):not(#_x):not(#_y){-webkit-backdrop-filter:none!important;backdrop-filter:none!important} /* Juan 2026-11-23: sin difuminado */
  html.ivnav body :is(#navfab,.navfab){display:none!important}
}
@media (max-width:1099px) and (prefers-reduced-motion:reduce){#ivh *,#ivh *::before,#ivh *::after,#ivnav *,#ivnav *::before{animation:none!important;transition:none!important}#ivh .ivspark .l,#ivh .ivring .p{stroke-dashoffset:0!important}#ivh .ivspark .a,#ivh .ivspark circle{opacity:1!important}}
html[data-calm] #ivh *,html[data-calm] #ivh *::before,html[data-calm] #ivh *::after,html[data-calm] #ivnav *::before{animation:none!important}
html[data-calm] #ivh .ivspark .l,html[data-calm] #ivh .ivring .p{stroke-dashoffset:0!important}html[data-calm] #ivh .ivspark .a,html[data-calm] #ivh .ivspark circle{opacity:1!important}

/* ===== Juan 2026-11-23: los avisos (toast) son un BOTTOM SHEET: una hoja que sube desde abajo, con asa, ícono según el tipo y sin difuminado.
   Se cierra deslizándola hacia abajo o sola a los pocos segundos. Ver «Ventanas emergentes» en CLAUDE.md. ===== */
html:root body .toast.nsheet:not(#_x):not(#_y){left:12px;right:12px;width:auto;max-width:520px;margin-inline:auto;transform:translateY(var(--dy,0));bottom:calc(82px + var(--navb));display:flex;align-items:center;gap:12px;padding:16px 16px 14px;border-radius:24px;background:var(--surface);color:var(--fg);border:1px solid var(--line);-webkit-backdrop-filter:none;backdrop-filter:none;box-shadow:none;font-weight:700;font-size:.95rem;line-height:1.3;pointer-events:none;position:fixed}
html:root body .toast.nsheet.hi:not(#_x):not(#_y){bottom:calc(140px + var(--navb))}
.toast.nsheet .tgrab{position:absolute;top:0;left:0;right:0;height:26px;pointer-events:auto;touch-action:none;cursor:grab;border-radius:24px 24px 0 0}
.toast.nsheet .tgrab::before{content:"";position:absolute;top:5px;left:50%;width:36px;height:4px;margin-left:-18px;border-radius:2px;background:color-mix(in srgb,var(--fg) 22%,transparent)}
.toast.nsheet .tic{flex:none;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:var(--accent);color:var(--accent-ink,#fff);font-weight:900;font-size:.95rem}
.toast.nsheet.err .tic{background:#dc2626;color:#fff}
.toast.nsheet .ttx{flex:1;min-width:0}
.toast.nsheet.working .spin{width:22px;height:22px;border-width:3px;color:var(--accent)}
.toast.nsheet.drag{transition:none}
@media (prefers-reduced-motion:no-preference){
  html:not([data-calm]) .toast.nsheet{animation:nsup .42s cubic-bezier(.34,1.56,.64,1)}
  html:not([data-calm]) .toast.nsheet.out{animation:nsdown .22s cubic-bezier(.3,0,1,1) forwards}
  html:not([data-calm]) .toast.nsheet:not(.drag){transition:transform .2s cubic-bezier(.2,0,0,1)}
}
@keyframes nsup{from{opacity:0;transform:translateY(60px)}}
@keyframes nsdown{to{opacity:0;transform:translateY(60px)}}
html.ivnav body .toast.nsheet:not(#_x):not(#_y){bottom:calc(90px + env(safe-area-inset-bottom,0px))!important}

/* ===== Juan 2026-11-23: Jota, Avisos y el menú de la cuenta con el estilo de Inicio: emojis a color dentro de círculos ===== */
.uem{display:none}
.e{font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif;font-style:normal;line-height:1}
@media (max-width:1099px){
  /* menú de la cuenta */
  html:root body #umenu .uitem svg.ui:not(#_x){display:none}
  html:root body #umenu .uitem .uem:not(#_x){display:grid;place-items:center;flex:none;width:40px;height:40px;border-radius:50%;font-size:1.2rem;background:color-mix(in srgb,var(--fg) 7%,var(--surface))}
  html:root body #umenu .uitem.out .uem:not(#_x){background:color-mix(in srgb,#dc2626 14%,var(--surface))}
  html:root body #umenu .uitem{gap:14px}
  html:root body #umenu .ucam svg{display:none}
  html:root body #umenu .ucam::before{content:"📷";font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif;font-size:1.2rem;line-height:1}
  html:root body #umenu .ucam{border-radius:50%}
}
/* Avisos */
html:root body .avic:not(#_x){width:42px;height:42px;border-radius:50%}
.avic .e{font-size:1.2rem}
.avemp i.e{font-size:2rem;display:block;margin-bottom:6px}
/* Jota: copiar, me sirvió / no me sirvió y micrófono */
html:root body #jotachat .jfb .jfbb:not(#_x){width:38px;height:38px;border-radius:50%;background:color-mix(in srgb,var(--fg) 7%,var(--surface));font-size:1.15rem}
html:root body #jotachat .jfb .jfbb .e{font-size:1.15rem}
html:root body #jotachat .jfb .jfbb.sel:not(#_x){background:color-mix(in srgb,var(--accent) 20%,var(--surface));box-shadow:inset 0 0 0 2px var(--accent)}
html:root body #jotachat .jfb .jfbb:not(#_x):active{background:color-mix(in srgb,var(--accent) 14%,var(--surface))}
html:root body #jotachat .jcb.jmic:not(#_x){border-radius:50%}
html:root body #jotachat .jcb.jmic .e{font-size:1.3rem}

/* ===== Juan 2026-11-23: las hojas de Jota, Avisos y la cuenta con el mismo estilo de Inicio: fondo de la pantalla, TARJETAS de esquinas redondas con borde fino (sin sombras ni difuminado), títulos en negrita y emojis a color en círculos ===== */
@media (max-width:1099px){
  /* --- menú de la cuenta --- */
  html:root body #umenu:not(#_x){background:var(--bg)!important;border:1px solid var(--line);box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none;padding:12px 12px calc(12px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:10px}
  html:root body #umenu .uhead:not(#_x){background:var(--surface);border:1px solid var(--line);border-radius:24px;padding:14px;box-shadow:none}
  html:root body #umenu .usec:not(#_x){background:var(--surface);border:1px solid var(--line);border-radius:24px;padding:10px 6px 6px;margin:0;box-shadow:none}
  html:root body #umenu .ulbl:not(#_x){padding:0 12px 4px;font-size:.72rem;letter-spacing:.1em}
  html:root body #umenu .usec .uitem+.uitem:not(#_x){border-top:1px solid var(--line);border-radius:0}
  html:root body #umenu .uitem:not(#_x){min-height:56px;padding:8px 10px;font-size:1rem}
  html:root body #umenu .ulegal:not(#_x){display:flex;flex-wrap:wrap;gap:8px;justify-content:center;border:0;padding:0}
  html:root body #umenu .ulegal .ulink:not(#_x){background:var(--surface);border:1px solid var(--line);border-radius:999px;padding:8px 14px;font-size:.85rem;font-weight:700}
  html:root body #umenu #logout:not(#_x){background:var(--surface);border:1px solid var(--line);border-radius:24px;min-height:60px;margin:0}
  html:root body #umenu #logout .uem:not(#_x){background:color-mix(in srgb,#dc2626 14%,var(--surface))}
  /* --- Avisos --- */
  html:root body #avbox .dlg:not(#_x){background:var(--bg)!important}
  html:root body #avbox .avit:not(#_x){background:var(--surface);border:1px solid var(--line);border-radius:24px;padding:12px 14px;margin:0 0 8px;box-shadow:none}
  html:root body #avbox .avday:not(#_x){padding:14px 6px 8px;font-size:.72rem;letter-spacing:.1em}
  html:root body #avbox #avtoca .vtoca:not(#_x){background:var(--surface);border:1px solid var(--line);border-radius:24px;padding:12px 8px;box-shadow:none}
  html:root body #avbox .avnote:not(#_x){text-align:center;padding:10px 6px}
  /* --- Jota --- */
  html:root body #jotachat .dlg:not(#_x){background:var(--bg)!important}
  html:root body #jotachat .jm.j:not(#_x){background:var(--surface);border:1px solid var(--line);border-radius:24px;padding:14px;box-shadow:none}
  html:root body #jotachat .jm.u:not(#_x){background:var(--fg);color:var(--bg);border:0;border-radius:22px 22px 6px 22px;box-shadow:none}
  html:root body #jotachat .jchip:not(#_x){background:var(--surface);border:1px solid var(--line);border-radius:999px;box-shadow:none;font-weight:700}
  /* cuadro de escribir: una sola fila baja; texto a la izquierda, micrófono y enviar a la derecha */
  html:root body #jotachat .jcomp:not(.rec):not(.proc) .jcbox:not(#_x){flex-direction:row;flex-wrap:wrap;align-items:flex-end;gap:8px;padding:8px 8px 8px 16px;border-radius:28px;box-shadow:none}
  html:root body #jotachat .jcomp:not(.rec):not(.proc) .jcbox textarea#jq:not(#_x){flex:1 1 0;width:auto;min-width:0;min-height:40px;padding:9px 2px}
  html:root body #jotachat .jcomp:not(.rec):not(.proc) .jcrow:not(#_x){flex:none;min-height:0;align-self:flex-end}
  html:root body #jotachat .jcomp:not(.rec):not(.proc) .jcsp:not(#_x){display:none}
  html:root body #jotachat .jcomp:not(.rec):not(.proc) .jcmsg:not(#_x){flex:0 0 100%;order:-1}
  html:root body #jotachat .jcomp .jcbox:not(#_x){box-shadow:none}
}

/* Avisos «C · Bandeja con acciones» (Juan, 2026-11-23): cada aviso es una tarjeta con sus botones; sin difuminado ni sombras */
@media (max-width:1099px){
  html:root body #avbox .avcard:not(#_x){background:var(--surface);border:1px solid var(--line);border-radius:24px;padding:12px 14px;margin:0 0 8px;box-shadow:none}
  html:root body #avbox .avcard .avit:not(#_x){background:transparent;border:0;border-radius:0;padding:0;margin:0;box-shadow:none}
  html:root body #avbox .avcard.read:not(#_x){background:color-mix(in srgb,var(--surface) 55%,var(--bg))}
  #avbox .avacts{display:flex;gap:8px;margin:10px 0 0 54px;flex-wrap:wrap}
  #avbox .avacts button,#avbox .avacts .avlt{min-height:36px;padding:0 15px;border:0;border-radius:999px;background:var(--field,#eef1ef);color:var(--fg);font:inherit;font-weight:800;font-size:.82rem}
  #avbox .avacts .avgov{background:var(--fg);color:var(--bg)}
  #avbox .avacts .avgov.pri{background:var(--accent);color:var(--accent-ink,#fff)}
  #avbox .avacts button:active{transform:scale(.97)}
}

/* Menú de la cuenta «B · Lista con estado» (Juan, 2026-11-23): cada opción con su ayuda corta, flechita y el interruptor de Jota */
@media (max-width:1099px){
  html:root body #umenu .uitem:not(#_x){text-align:left}
  #umenu .utx{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px;text-align:left}
  #umenu .utx b{font-weight:800;font-size:1rem;line-height:1.2}
  #umenu .utx small{font-size:.8rem;font-weight:500;color:var(--muted);line-height:1.25}
  #umenu .uitem:not(#gojota)::after{content:"›";margin-left:auto;padding-left:8px;color:var(--muted);font-weight:800;font-size:1.3rem;flex:none}
  #umenu .uitem#gophoto::after,#umenu #logout::after{content:none}
  #umenu .usw{flex:none;position:relative;width:46px;height:28px;border-radius:14px;background:var(--accent);margin-left:auto;transition:background .2s}
  #umenu .usw::after{content:"";position:absolute;top:3px;right:3px;width:22px;height:22px;border-radius:50%;background:#fff;transition:right .2s}
  #umenu .usw.off{background:color-mix(in srgb,var(--fg) 18%,var(--surface))}
  #umenu .usw.off::after{right:21px}
  @media (prefers-reduced-motion:reduce){#umenu .usw,#umenu .usw::after{transition:none}}
}
/* Jota «B · Chat con resultados en tarjetas» */
@media (max-width:1099px){
  html:root body #jotachat .jai:not(#_x){display:inline-flex;font-size:.7rem;font-weight:850;padding:3px 9px;border-radius:999px;background:color-mix(in srgb,var(--accent) 14%,var(--surface));color:var(--accent);margin-bottom:8px}
  html:root body #jotachat .jai .spk-i{color:inherit}
  /* Juan 2026-11-23: varias cifras en UNA sola tarjeta, una fila por dato (nombre a la izquierda, valor a la derecha) */
  html:root body #jotachat .jdatos:not(#_x){display:block;margin:10px 0;padding:2px 14px;background:var(--surface);border:1px solid var(--line);border-radius:22px;box-shadow:none}
  html:root body #jotachat .jdato:not(#_x){display:flex;align-items:baseline;justify-content:space-between;gap:14px;background:none;border:0;border-radius:0;padding:11px 0;box-shadow:none;min-width:0}
  html:root body #jotachat .jdato+.jdato:not(#_x){border-top:1px solid var(--line)}
  html:root body #jotachat .jdato small:not(#_x){flex:0 1 auto;max-width:45%;min-width:0;font-size:.86rem;font-weight:600;color:var(--muted);line-height:1.25}
  html:root body #jotachat .jdato b:not(#_x){flex:1 1 0;min-width:0;text-align:right;font-size:1.02rem;font-weight:800;letter-spacing:-.01em;overflow-wrap:anywhere;margin:0;color:var(--fg)}
  html:root body #jotachat .jdato.alerta b:not(#_x){color:var(--bad,#b42318)}
  html:root body #jotachat .jdato.bien b:not(#_x){color:var(--accent)}
}

/* Avisos C, parte 2: «Hoy toca» con anillo de avance y botones Aprobar / Rechazar / Pedir ahora */
.vtlh .vring,.vtlh .vfalta{display:none}
@media (max-width:1099px){
  #avtoca .vtlh{display:grid!important;grid-template-columns:auto 1fr auto auto;grid-template-areas:"r t x y" "r f x y";align-items:center;column-gap:14px;row-gap:0;padding:4px 6px 10px}
  #avtoca .vtlh h2{grid-area:t;margin:0;font-size:1.25rem}
  #avtoca .vtlh .vfalta{grid-area:f;display:block;font-style:normal;font-size:.86rem;color:var(--muted)}
  #avtoca .vtlh>span{display:none}
  #avtoca .vtlh .vtlx{grid-area:y;margin:0}
  #avtoca .vtlh .vring{grid-area:r;display:grid;place-items:center;width:54px;height:54px;border-radius:50%;background:conic-gradient(var(--accent) calc(var(--p)*1%),color-mix(in srgb,var(--fg) 10%,var(--surface)) 0)}
  #avtoca .vtlh .vring::before{content:"";grid-area:1/1;width:42px;height:42px;border-radius:50%;background:var(--surface)}
  #avtoca .vtlh .vring b{grid-area:1/1;font-size:.78rem;font-weight:800;z-index:1}
  #avbox .avacts .avgov.ok{background:var(--accent);color:var(--accent-ink,#fff)}
  #avbox .avacts .avrej{background:color-mix(in srgb,#dc2626 14%,var(--surface));color:#dc2626}
}

/* Avisos C, ajuste fino (Juan: «no se ve igual»): «Hoy toca» compacto con botón Ver, pastilla «Marcar todo», letras y botones del tamaño de la maqueta */
.vtlh .vtver{display:none}
@media (max-width:1099px){
  #avtoca .vtlh .vtver{grid-area:x;display:inline-flex;align-items:center;height:36px;padding:0 16px;border:0;border-radius:999px;background:var(--field,#eef1ef);color:var(--fg);font:inherit;font-weight:800;font-size:.82rem}
  #avtoca .vtlh .vtlx{display:grid}
  #avtoca .vtl,#avtoca .vtlmorebtn{display:none!important}
  #avtoca.open .vtl{display:block!important}
  #avtoca.open .vtlr.vtmore{display:flex!important}
  html:root body #avbox #avtoca .vtoca:not(#_x){padding:10px 12px}
  #avtoca .vtlh{padding:2px 2px 2px!important}
  #avtoca .vtlh .vring{width:46px;height:46px}
  #avtoca .vtlh .vring::before{width:36px;height:36px}
  #avtoca .vtlh h2{font-size:1.15rem}
  #avtoca .vtlh .vfalta{font-size:.8rem}
  #avbox .avtools{gap:8px;flex-wrap:wrap}
  #avbox .avtools .avsp{display:none}
  #avbox .avtools .avlnk{padding:9px 15px;border-radius:999px;background:var(--surface);border:1px solid var(--line);color:var(--fg);font-weight:800;font-size:.82rem}
  html:root body #avbox .avcard .avt:not(#_x){font-size:.95rem;font-weight:800;line-height:1.25}
  html:root body #avbox .avcard .avb:not(#_x){font-size:.82rem;color:var(--muted);line-height:1.3}
  html:root body #avbox .avcard .avw:not(#_x){display:none}
  html:root body #avbox .avcard .avdot:not(#_x){align-self:flex-start;margin-top:4px}
  #avbox .avacts{margin:10px 0 0 56px}
  #avbox .avacts button,#avbox .avacts .avlt{min-height:34px;padding:0 14px;font-size:.8rem}
  html:root body #avbox .avcard:not(#_x){padding:12px 14px 12px}
  html:root body #avbox .avday:not(#_x){padding:12px 6px 6px}
}

/* ===== Juan 2026-11-23: las 5 pantallas del menú de la cuenta con el estilo de Inicio (Ayuda B, Pantalla A, Código C, PIN A, Foto C). Solo celular. ===== */
.dce,.dsw,.dme,.hce{display:none}
@media (max-width:1099px){
  html body :is(.modal,.dlg,.sheethd,.hsticky,.sheetx,.sheetdlg){-webkit-backdrop-filter:none!important;backdrop-filter:none!important} /* sin difuminado (también el encabezado fijo de las hojas) */
  html:root body :is(#helpmodal,#dispmodal,#photomodal,.modal:has(#acbig),.modal:has(#mypnew),.legaldoc,#ckgate) .dlg:not(#_x){background:var(--bg)!important;box-shadow:none}
  html:root body :is(#helpmodal,#dispmodal,#photomodal,.modal:has(#acbig),.modal:has(#mypnew),.legaldoc,#ckgate) :is(.dlg>h2,.sheethd h2):not(#_x){font-family:var(--f-display,inherit);font-size:1.55rem;font-weight:800;letter-spacing:-.02em}
  html:root body :is(#helpmodal,#dispmodal,#photomodal,.modal:has(#acbig),.modal:has(#mypnew),.legaldoc,#ckgate) .hint:not(#_x){font-size:.88rem;color:var(--muted);line-height:1.4}
  html:root body :is(#dispmodal,#photomodal,.modal:has(#mypnew),#helpmodal) label.f input:not(#_x){background:var(--surface);border:1px solid var(--line);border-radius:20px;min-height:54px;box-shadow:none}
  html:root body :is(#dispmodal,#photomodal,.modal:has(#acbig),.modal:has(#mypnew)) .btn:not(#_x):not(.primary):not(.danger):not(.dtile):not(.dmode){background:var(--field,#eef1ef);border:0;border-radius:999px;color:var(--fg);font-weight:800}
  html:root body :is(#dispmodal,#photomodal,.modal:has(#acbig),.modal:has(#mypnew)) .btn.primary:not(#_x){border-radius:999px;font-weight:800}
  html:root body .modal:has(#acbig) .btn.small,html:root body #dispmodal .btn[data-x]{border-radius:50%}

  /* Ayuda B: temas como casillas */
  #helpmodal .hgrid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
  #helpmodal .hcat{display:flex;flex-direction:column;align-items:flex-start;gap:8px;min-height:112px;padding:14px;border:1px solid var(--line);border-radius:24px;background:var(--surface);color:var(--fg);text-align:left;font:inherit}
  #helpmodal .hce{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:color-mix(in srgb,var(--accent) 14%,var(--surface));font-size:1.35rem}
  #helpmodal .hcat b{font-weight:800;font-size:1rem;line-height:1.2;margin-top:auto}
  #helpmodal .hcat small{font-size:.8rem;color:var(--muted);margin-top:-6px}
  #helpmodal .hjotac{display:flex;align-items:center;gap:12px;width:100%;margin-top:12px;padding:12px 14px;border:1px solid var(--line);border-radius:24px;background:var(--surface);color:var(--fg);text-align:left;font:inherit}
  #helpmodal .hjotac span{flex:1;display:flex;flex-direction:column}#helpmodal .hjotac b{font-weight:800}#helpmodal .hjotac small{font-size:.82rem;color:var(--muted)}
  #helpmodal .hjotac .chev{color:var(--muted);font-size:1.3rem;font-style:normal;font-weight:800}
  #helpmodal .hback{background:var(--surface)!important;border:1px solid var(--line)!important;color:var(--fg)}
  html body #helpmodal .hitem:not(#_x){background:var(--surface);border-radius:22px;box-shadow:none}
  html body #helpmodal .hcats .btn:not(#_x){border-radius:999px}
  html body #helpmodal .hcats .btn.primary:not(#_x){background:var(--fg);color:var(--bg);border-color:var(--fg)}
  html body #helpmodal .hcats .btn:not(.primary):not(#_x){background:var(--surface);border:1px solid var(--line);color:var(--fg)}

  /* Pantalla y accesibilidad A: muestras «Aa», modo en casillas e interruptores con emoji */
  #dispmodal .seg:has([data-fs]){display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:8px;background:none;border:0;padding:0}
  #dispmodal .dtile{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:84px;padding:10px 6px;border-radius:22px;background:var(--surface)!important;border:1px solid var(--line)!important;color:var(--fg)!important;font:inherit;box-shadow:none}
  #dispmodal .dtile .daa{font-style:normal;font-weight:800;line-height:1.1}
  #dispmodal .dtile span{font-size:.8rem;font-weight:800}
  #dispmodal .dtile.primary{background:color-mix(in srgb,var(--accent) 12%,var(--surface))!important;border:2px solid var(--accent)!important}
  #dispmodal .seg:has([data-mode]){display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px;background:none;border:0;padding:0}
  #dispmodal .dmode{display:flex;align-items:center;gap:10px;min-height:56px;padding:8px 12px;border-radius:20px;background:var(--surface)!important;border:1px solid var(--line)!important;color:var(--fg)!important;font:inherit;font-weight:800;text-align:left;box-shadow:none;justify-content:flex-start}
  #dispmodal .dme{display:grid;place-items:center;width:38px;height:38px;flex:none;border-radius:50%;background:var(--field,#eef1ef);font-size:1.15rem}
  #dispmodal .dmode.primary{background:color-mix(in srgb,var(--accent) 12%,var(--surface))!important;border:2px solid var(--accent)!important}
  #dispmodal .dmode.primary .dme{background:var(--surface)}
  #dispmodal .seg:has([data-h]){background:var(--field,#e8ece9);border-radius:999px;padding:4px;gap:4px}
  #dispmodal .seg:has([data-h]) .btn{border-radius:999px;background:none!important;color:var(--fg)!important}
  #dispmodal .seg:has([data-h]) .btn.primary{background:var(--fg)!important;color:var(--bg)!important}
  #dispmodal label.chk.dsw-row{position:relative;display:flex;align-items:center;gap:12px;padding:10px 4px;border-top:1px solid var(--line);margin:0;min-height:60px}
  #dispmodal .dce{display:grid;place-items:center;width:42px;height:42px;flex:none;border-radius:50%;background:color-mix(in srgb,var(--accent) 14%,var(--surface));font-size:1.15rem;order:0}
  #dispmodal .dct{flex:1;order:1;font-weight:700;font-size:.95rem;line-height:1.25}
  #dispmodal label.dsw-row input{position:absolute;opacity:0;width:1px;height:1px}
  #dispmodal .dsw{display:block;order:2;position:relative;flex:none;width:46px;height:28px;border-radius:14px;background:color-mix(in srgb,var(--fg) 18%,var(--surface));transition:background .2s}
  #dispmodal .dsw::after{content:"";position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:#fff;transition:left .2s}
  #dispmodal input:checked~.dsw{background:var(--accent)}
  #dispmodal input:checked~.dsw::after{left:21px}
  #dispmodal input:focus-visible~.dsw{outline:2px solid var(--accent);outline-offset:2px}
  @media (prefers-reduced-motion:reduce){#dispmodal .dsw,#dispmodal .dsw::after{transition:none}}
  #dispmodal .f{font-size:.78rem;font-weight:800;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);margin:14px 4px 6px}

  /* Código de autorización C: tarjeta compacta y aviso de no compartirlo */
  .modal:has(#acbig) .accard{background:var(--surface);border:1px solid var(--line);border-radius:24px;text-align:center;padding:20px 14px;margin:8px 0 10px}
  .modal:has(#acbig) .acchip{display:inline-block;font-size:.72rem;font-weight:850;padding:3px 10px;border-radius:999px;background:color-mix(in srgb,var(--accent) 14%,var(--surface));color:var(--accent);margin:0}
  .modal:has(#acbig) .acchip:empty{display:none}.modal:has(#acbig) .acchip:not(:empty)::before{content:"● "}
  .modal:has(#acbig):has(#acbig.old) .acchip{background:color-mix(in srgb,#dc2626 14%,var(--surface));color:#dc2626}
  .modal:has(#acbig) .bigcode{background:none!important;color:var(--fg)!important;font-size:3rem;padding:10px 0 2px}
  .modal:has(#acbig) .bigcode.old{opacity:.35}
  .modal:has(#acbig) .acsub{font-size:.84rem;color:var(--muted)}
  .modal:has(#acbig) .acwarn{display:flex;gap:12px;align-items:center;padding:12px 14px;border-radius:22px;background:#fdecc8;border:1px solid #f3d28a;color:#5b3a05;margin-bottom:10px}
  .modal:has(#acbig) .acwarn .e{display:grid;place-items:center;width:40px;height:40px;flex:none;border-radius:50%;background:#fff;font-size:1.15rem;font-style:normal}
  .modal:has(#acbig) .acwarn b{display:block;font-weight:800}.modal:has(#acbig) .acwarn span{font-size:.84rem}

  /* Cambiar mi PIN A: reglas con palomita */
  .modal:has(#mypnew) .pinrules{display:flex;flex-direction:column;gap:9px;margin:12px 0 4px;padding:14px;border:1px solid var(--line);border-radius:22px;background:var(--surface)}
  .modal:has(#mypnew) .pr{display:flex;align-items:center;gap:10px;font-size:.88rem;font-weight:600;color:var(--muted)}
  .modal:has(#mypnew) .pr b{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:var(--field,#eef1ef);color:transparent;font-size:.75rem}
  .modal:has(#mypnew) .pr.ok{color:var(--fg)}
  .modal:has(#mypnew) .pr.ok b{background:color-mix(in srgb,var(--accent) 18%,var(--surface));color:var(--accent)}

  /* Foto C: recorte y zoom */
  #photomodal .photoprev.phcrop{width:230px;height:230px;border:2px dashed var(--accent);border-radius:50%;box-sizing:content-box}
  #photomodal .phzrow{display:flex;align-items:center;gap:10px;padding:4px 10px 8px}
  #photomodal .phzrow[hidden]{display:none}
  #photomodal .phzrow input[type=range]{flex:1;accent-color:var(--accent);min-height:0;border:0;background:none;padding:0}
  #photomodal .e{font-style:normal}
}
@media (max-width:1099px){
  html:root body #helpmodal .hsticky:not(#_x){background:var(--bg)!important}
  html:root body #dispmodal .seg:has([data-fs]):not(#_x),html:root body #dispmodal .seg:has([data-mode]):not(#_x){background:none!important;border:0!important;padding:0!important;box-shadow:none!important}
  html:root body #dispmodal label.chk.dsw-row:not(#_x){flex-direction:row!important;justify-content:flex-start!important}
  html:root body #dispmodal .f:not(#_x){margin:16px 4px 8px!important;padding:0}
}

/* Botones de las 5 pantallas del menú de la cuenta (Juan, 2026-11-23, «Negro y borde fino»): el principal en píldora negra como «Cerrar caja» de Inicio; el otro, píldora blanca con borde fino; los dos del mismo tamaño */
@media (max-width:1099px){
  html:root body :is(#helpmodal,#dispmodal,#photomodal,.modal:has(#acbig),.modal:has(#mypnew),.legaldoc,#ckgate) .dlg>.row:has(>.btn.primary){gap:10px;flex-wrap:nowrap}
  html:root body :is(#helpmodal,#dispmodal,#photomodal,.modal:has(#acbig),.modal:has(#mypnew),.legaldoc,#ckgate) .dlg>.row>.btn:not(.small):not(.danger):not(#_x){flex:1 1 0;min-height:50px;border-radius:999px;font-weight:800;font-size:.98rem;box-shadow:none}
  html:root body :is(#helpmodal,#dispmodal,#photomodal,.modal:has(#acbig),.modal:has(#mypnew),.legaldoc,#ckgate) .dlg>.row>.btn.primary:not(#_x){background:var(--fg)!important;color:var(--bg)!important;border:1px solid var(--fg)!important}
  html:root body :is(#helpmodal,#dispmodal,#photomodal,.modal:has(#acbig),.modal:has(#mypnew),.legaldoc,#ckgate) .dlg>.row>.btn:not(.primary):not(.danger):not(.small):not(#_x){background:var(--surface)!important;color:var(--fg)!important;border:1px solid var(--line)!important}
  html:root body :is(#helpmodal,#dispmodal,#photomodal,.modal:has(#acbig),.modal:has(#mypnew),.legaldoc,#ckgate) .dlg>.row>.btn.primary:disabled:not(#_x){opacity:.4}
  html:root body #dispmodal .dlg>.btn[data-dispclose]:not(#_x){min-height:50px;border-radius:999px;background:var(--fg)!important;color:var(--bg)!important;border:1px solid var(--fg)!important;font-weight:800}
  html:root body #helpmodal .dlg>.btn.primary[data-hwa]:not(#_x){min-height:50px;border-radius:999px;background:var(--fg)!important;color:var(--bg)!important;border:1px solid var(--fg)!important;font-weight:800}
}
@media (max-width:1099px){html:root body #photomodal .dlg>.row>.btn.danger:not(#_x){flex:1 1 0;min-height:50px;border-radius:999px;font-weight:800}}

/* Juan 2026-11-23: el botón principal va NEGRO; el secundario (Cancelar, Cerrar) también píldora completamente redonda, blanca con borde fino visible */
@media (max-width:1099px){
  html:root body :is(#helpmodal,#dispmodal,#photomodal,.modal:has(#acbig),.modal:has(#mypnew),.legaldoc,#ckgate) .dlg>.row>.btn:not(.small):not(.danger):not(#_x),
  html:root body #dispmodal .dlg>.btn[data-dispclose]:not(#_x),
  html:root body #helpmodal .dlg>.btn.primary[data-hwa]:not(#_x){border-radius:999px!important;min-height:50px;overflow:hidden}
  html:root body :is(#helpmodal,#dispmodal,#photomodal,.modal:has(#acbig),.modal:has(#mypnew),.legaldoc,#ckgate) .dlg>.row>.btn:not(.primary):not(.danger):not(.small):not(#_x){background:var(--surface)!important;color:var(--fg)!important;border:1.5px solid color-mix(in srgb,var(--fg) 22%,var(--line))!important}
}

/* Juan 2026-11-23: los botones de abajo de las hojas no quedan pegados al borde (en el iPhone quedaban cortados por la barra de abajo) */
@media (max-width:1099px){
  html:root body .modal>.dlg:not(#_x){padding-bottom:calc(30px + env(safe-area-inset-bottom,0px))}
}
/* Face ID o huella con el estilo de Inicio (Juan, 2026-11-23) */
.pke{display:none}
@media (max-width:1099px){
  html:root body #pkmodal .dlg:not(#_x){background:var(--bg)!important;box-shadow:none}
  html:root body #pkmodal .dlg>h2:not(#_x){font-family:var(--f-display,inherit);font-size:1.55rem;font-weight:800;letter-spacing:-.02em}
  html:root body #pkmodal .hint:not(#_x){font-size:.88rem;color:var(--muted);line-height:1.4}
  #pkmodal .pkwarn{display:flex;gap:12px;align-items:center;padding:12px 14px;border-radius:22px;background:#fdecc8;border:1px solid #f3d28a;color:#5b3a05;margin:10px 0;font-size:.86rem;font-weight:600;line-height:1.35}
  #pkmodal .pkwarn .e{display:grid;place-items:center;width:40px;height:40px;flex:none;border-radius:50%;background:#fff;font-size:1.15rem;font-style:normal}
  html:root body #pkmodal .pkstate:not(#_x){display:flex;align-items:center;gap:12px;padding:12px 14px;border:1px solid var(--line);border-radius:24px;background:var(--surface);color:var(--fg);font-weight:800;margin:8px 0}
  #pkmodal .pkstate svg{display:none}
  #pkmodal .pke{display:grid;place-items:center;width:42px;height:42px;flex:none;border-radius:50%;background:color-mix(in srgb,var(--accent) 14%,var(--surface));font-size:1.2rem;font-style:normal}
  #pkmodal .pkstate.on{color:var(--accent)}
  html:root body #pkmodal #pkhere .btn:not(#_x){width:100%;min-height:50px;border-radius:999px;font-weight:800;border:0}
  html:root body #pkmodal #pkhere .btn.danger:not(#_x){background:color-mix(in srgb,#dc2626 14%,var(--surface))!important;color:#dc2626!important}
  html:root body #pkmodal #pkhere .btn.primary:not(#_x){background:var(--fg)!important;color:var(--bg)!important}
  #pkmodal .pkh{font-family:var(--f-display,inherit);font-size:1.1rem;font-weight:800;margin:18px 4px 8px;text-transform:none;letter-spacing:0;color:var(--fg)}
  html:root body #pkmodal #pklist .item:not(#_x){background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:12px 14px;box-shadow:none;margin-bottom:8px}
  html:root body #pkmodal #pklist .t:not(#_x){font-weight:800}
  html:root body #pkmodal #pklist .s:not(#_x){font-size:.8rem;color:var(--muted)}
  html:root body #pkmodal #pklist .btn.small:not(#_x){border-radius:999px;min-height:40px;padding:0 16px;background:var(--field,#eef1ef);border:0;color:var(--fg);font-weight:800}
  html:root body #pkmodal .dlg>.row>.btn:not(#_x){flex:1 1 0;min-height:50px;border-radius:999px!important;font-weight:800;background:var(--surface)!important;color:var(--fg)!important;border:1.5px solid color-mix(in srgb,var(--fg) 22%,var(--line))!important}
}
@media (max-width:1099px){#pkmodal #pklist .empty::before{display:none}html:root body #pkmodal #pklist .empty:not(#_x){background:var(--surface);border:1px solid var(--line);border-radius:22px;color:var(--muted);padding:16px}}
@media (max-width:1099px){html:root body #pkmodal #pkhere .btn:not(#_x){border-radius:999px!important}#pkmodal #pkhere{margin:0}}

/* Juan 2026-11-23: el resto de «Pantalla y accesibilidad» (barra de pantallas, atajos del teléfono y del teclado) y los documentos legales con el estilo de Inicio */
@media (max-width:1099px){
  #dispmodal .drail{background:var(--surface);border:1px solid var(--line);border-radius:24px;padding:14px;margin:10px 0}
  #dispmodal .drail>b{font-weight:800;font-size:1rem}
  html:root body #dispmodal .drail .seg:not(#_x){background:var(--field,#e8ece9);border-radius:999px;padding:4px;gap:4px;box-shadow:none;border:0}
  html:root body #dispmodal .drail .seg span:not(#_x){border-radius:999px;padding:10px 6px;font-weight:800;color:var(--fg);font-size:.86rem}
  html:root body #dispmodal .drail .seg input:checked+span:not(#_x){background:var(--fg);color:var(--bg);box-shadow:none}
  #dispmodal .drail .hint{margin:8px 2px 0}
  #dispmodal h3.sub{font-family:var(--f-display,inherit);font-size:1.15rem;font-weight:800;letter-spacing:-.01em;text-transform:none;color:var(--fg);margin:22px 4px 6px}
  #dispmodal .list{background:var(--surface);border:1px solid var(--line);border-radius:24px;padding:2px 12px;margin-top:8px}
  #dispmodal .lnkrow{display:flex;align-items:center;gap:12px;padding:10px 0;border-top:1px solid var(--line);margin:0;flex-wrap:nowrap}
  #dispmodal .lnkrow:first-child{border-top:0}
  #dispmodal .lnkrow>span{flex:1;font-weight:700;font-size:.92rem;line-height:1.25}
  #dispmodal .lnkrow .dce{display:grid;order:0}
  html:root body #dispmodal .lnkrow .btn.small:not(#_x){border-radius:999px;min-height:38px;padding:0 14px;background:var(--field,#eef1ef);border:0;color:var(--fg);font-weight:800;font-size:.8rem;flex:none}
  html:root body #dispmodal details.more:not(#_x){background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:2px 14px;margin-top:10px}
  #dispmodal details.more>summary{color:var(--fg);font-weight:800;min-height:48px}
  #dispmodal details.more .hint{padding-bottom:10px}

  .legaldoc .ldtag,#ckgate .ldtag{display:inline-block;margin:0 0 10px;padding:4px 12px;border-radius:999px;background:color-mix(in srgb,var(--accent) 14%,var(--surface));color:var(--accent);font-size:.75rem;font-weight:850}
  .legaldoc .ldtag.warn{background:#fdecc8;color:#7a4a05}
  .legaldoc .dlg>.hint{background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:12px 14px;margin:0 0 8px;color:var(--fg);font-size:.9rem}
  .legaldoc .dlg>.hint.ldnote{background:#fdecc8;border-color:#f3d28a;color:#5b3a05}
  .legaldoc .ldpick{background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:12px;margin:8px 0}
  .legaldoc .ldpick .row{gap:10px;flex-wrap:nowrap}
  html:root body .legaldoc .ldpick .btn:not(#_x),html:root body #ckgate .ckbtns .btn:not(#_x){flex:1 1 0;min-height:50px;border-radius:999px}
  html:root body #ckgate .ckbtns .btn.primary:not(#_x){background:var(--fg)!important;color:var(--bg)!important;border:1px solid var(--fg)!important}
  html:root body #ckgate .ckbtns .btn:not(.primary):not(#_x){background:var(--surface)!important;color:var(--fg)!important;border:1.5px solid color-mix(in srgb,var(--fg) 22%,var(--line))!important}
  #ckgate .ckbtns{display:flex;gap:10px}
}
@media (max-width:1099px){html:root body .legaldoc .dlg>.hint:not(#_x){color:var(--fg)}html:root body .legaldoc .dlg>.hint.ldnote:not(#_x){color:#5b3a05}}

/* Ajustes «A · Encabezado de Inicio + grupos en tarjetas» (Juan, 2026-11-23): el bloque verde pasa a título grande y tarjeta negra del negocio; «Datos y sesión» en casillas. Solo celular. */
@media (max-width:1099px){
  html:root body #tab-ajustes>#ajhero2:not(#_x){background:none!important;background-image:none!important;color:var(--fg)!important;border-radius:0!important;box-shadow:none;margin:0 -16px 8px!important;padding:calc(10px + var(--sat,0px)) 16px 0!important;text-align:left}
  html:root:not(#_a):not(#_b) body #tab-ajustes>#ajhero2:not(#_x)::before{content:"Ajustes"!important;display:block!important;color:var(--fg)!important;font-size:2rem!important;font-weight:800;letter-spacing:-.02em;margin:2px 4px 12px!important;text-align:left}
  html:root body #tab-ajustes>#ajhero2 .ajbiz:not(#_x){background:#0b0f0e!important;color:#fff;border-radius:30px;padding:14px 16px;box-shadow:none;border:0}
  html:root[data-theme="dark"] body #tab-ajustes>#ajhero2 .ajbiz:not(#_x){background:#000!important;border:1px solid var(--line)}
  #ajhero2 .ajbm small{color:#9fb0a8;opacity:1}
  #ajhero2 .ajbm b{color:#fff}
  #ajhero2 .ajbpl{background:#fff!important;color:#0b0f0e!important}
  #ajhero2 .ajblogo{border-radius:50%}
  #ajhero2 .ajbr .jotahd{background:#1d2522;border-radius:999px;color:#86efac}
  html:root body #tab-ajustes #ajdata:not(#_x){display:grid;grid-template-columns:repeat(3,1fr);gap:8px;flex-wrap:nowrap}
  html:root:not(#_a):not(#_b) body #tab-ajustes #ajdata>.btn:not(#_x){display:flex!important;flex-direction:column;align-items:center;justify-content:flex-start;gap:8px!important;min-height:104px;padding:14px 6px;border-radius:24px!important;background:var(--surface)!important;border:1px solid var(--line)!important;color:var(--fg)!important;box-shadow:none!important;font-weight:800;font-size:.8rem;line-height:1.2;text-align:center;white-space:normal}
  html:root:not(#_a):not(#_b) body #tab-ajustes #ajdata>.btn.danger:not(#_x){color:#dc2626!important}
  html:root body #tab-ajustes #ajdata .ajdemo:not(#_x){display:grid;place-items:center;width:44px;height:44px;border-radius:50%!important;background:color-mix(in srgb,var(--accent) 14%,var(--surface));font-style:normal;font-size:1.3rem}
  #tab-ajustes #ajdata .btn.danger .ajdemo{background:color-mix(in srgb,#dc2626 14%,var(--surface))}
}

@media (max-width:1099px){
  html:root body #app[data-tab="ajustes"] header.top:not(#_x){display:none!important}
  html:root body #app[data-tab="ajustes"]{--hdr-bg:transparent}
}

/* Entrada con PIN «A · Teclado redondo y botón negro» (Juan, 2026-11-23). Solo celular. */
@media (max-width:1099px){
  html:root:not(#_a):not(#_b) body #auth .auth.pad #abtn:not(#_x){background:var(--fg)!important;color:var(--bg)!important;border:1px solid var(--fg)!important;border-radius:999px!important;min-height:54px;font-weight:800;box-shadow:none!important}
  html:root:not(#_a):not(#_b) body #auth .auth.pad #apk:not(#_x){background:var(--surface)!important;color:var(--fg)!important;border:1.5px solid color-mix(in srgb,var(--fg) 22%,var(--line))!important;border-radius:999px!important;min-height:54px;font-weight:800;box-shadow:none!important}
  html:root:not(#_a):not(#_b) body #auth .auth .padk:not(.del):not(#_x){background:var(--surface)!important;border:1px solid var(--line)!important;box-shadow:none!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
  html:root body #auth .auth.pad #amail:not(#_x),html:root body #auth .auth.pad #aforgot:not(#_x){color:var(--accent);font-weight:800;text-decoration:none}
}

/* Atajos de teclado «A · Tarjetas por grupo» (Juan, 2026-11-23) */
html:root body #scmodal .dlg:not(#_x){background:var(--bg)!important;box-shadow:none;width:min(600px,100%);-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
#scmodal h2{font-family:var(--f-display,inherit);font-size:1.6rem;font-weight:800;letter-spacing:-.02em}
#scmodal .sclist{gap:8px;max-height:64vh}
#scmodal .scg{background:var(--surface);border:1px solid var(--line);border-radius:24px;padding:4px 16px 6px}
html:root body #scmodal .sclist h3:not(#_x){display:flex;align-items:center;gap:10px;margin:8px 0 2px;font-size:1rem;letter-spacing:0;text-transform:none;color:var(--fg);font-weight:800}
#scmodal .scem{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:color-mix(in srgb,var(--accent) 14%,var(--surface));font-style:normal;font-size:1rem}
#scmodal .scrow{padding:10px 0;font-weight:600}
#scmodal .scrow:last-child{border-bottom:0}
#scmodal .scrow kbd{background:var(--field,#eef1ef);border:1px solid var(--line);border-radius:10px;padding:5px 10px;font-weight:800;font-size:.8rem;color:var(--fg)}
html:root body #scmodal .dlg>.btn:not(#_x){width:100%;min-height:50px;border-radius:999px;background:var(--surface)!important;color:var(--fg)!important;border:1.5px solid color-mix(in srgb,var(--fg) 22%,var(--line))!important;font-weight:800;margin-top:10px}

/* ===== Pantalla de carga «A · Logo, barra y pasos» (Juan, 2026-11-23): fondo claro y sólido (sin degradados ni luces), logo en círculo, nombre, barra de avance y los 4 pasos con emoji en una tarjeta. Reemplaza el ticket que se imprime (v471). ===== */
html:root:not(#_a):not(#_b):not(#_c):not(#_d) body #splash:not(#_x):not(#_y):not(#_z){background:var(--bg)!important;background-image:none!important;gap:0}
html:root:not(#_a):not(#_b):not(#_c):not(#_d) body #splash:not(#_x):not(#_y):not(#_z) .sp-card:not(#_w){width:min(380px,90vw)!important;display:flex;flex-direction:column;align-items:stretch;gap:0;background:transparent!important;border:0!important;padding:0!important;box-shadow:none!important}
html:root:not(#_a):not(#_b):not(#_c):not(#_d) body #splash:not(#_x):not(#_y):not(#_z) .sp-tk,html:root:not(#_a):not(#_b):not(#_c):not(#_d) body #splash:not(#_x):not(#_y):not(#_z) .sp-fill,html:root:not(#_a):not(#_b):not(#_c):not(#_d) body #splash:not(#_x):not(#_y):not(#_z) .sp-dots,html:root:not(#_a):not(#_b):not(#_c):not(#_d) body #splash:not(#_x):not(#_y):not(#_z) .sp-bar{display:none!important}
html:root:not(#_a):not(#_b):not(#_c):not(#_d) body #splash:not(#_x):not(#_y):not(#_z) .sp-ring{order:0;align-self:center;width:96px!important;height:96px!important;margin:0 0 14px;display:grid;place-items:center}
html:root:not(#_a):not(#_b):not(#_c):not(#_d) body #splash:not(#_x):not(#_y):not(#_z) .sp-ring::before{display:none!important}
html:root:not(#_a):not(#_b):not(#_c):not(#_d) body #splash:not(#_x):not(#_y):not(#_z) .sp-ring .sp-logo:not(.sp-fill):not(.img):not(#_w){width:96px!important;height:96px!important;border-radius:50%!important;animation:none!important;box-shadow:none!important;filter:none!important}
html:root:not(#_a):not(#_b):not(#_c):not(#_d) body #splash:not(#_x):not(#_y):not(#_z) .sp-ring .sp-logo.img:not(.sp-fill):not(#_w){width:96px!important;height:96px!important;border-radius:50%!important;object-fit:contain;padding:12px!important;box-sizing:border-box;background:#fff;border:1px solid var(--line);box-shadow:none!important}
html:root:not(#_a):not(#_b):not(#_c):not(#_d) body #splash:not(#_x):not(#_y):not(#_z) .sp-name{order:1;text-align:center;font-family:var(--f-display);font-weight:800;font-size:1.7rem;letter-spacing:-.02em;margin:0 0 22px}
html:root:not(#_a):not(#_b):not(#_c):not(#_d) body #splash:not(#_x):not(#_y):not(#_z) .sp-pbar{order:2;display:block!important;width:100%;height:10px;border-radius:5px;background:color-mix(in srgb,var(--fg) 10%,var(--bg));overflow:hidden;margin:0}
html:root:not(#_a):not(#_b):not(#_c):not(#_d) body #splash:not(#_x):not(#_y):not(#_z) .sp-pbar i{background:var(--accent)!important;border-radius:5px}
html:root:not(#_a):not(#_b):not(#_c):not(#_d) body #splash:not(#_x):not(#_y):not(#_z) .sp-pct{order:3;display:flex!important;justify-content:flex-end;margin:6px 2px 16px;font-size:.8rem}
html:root:not(#_a):not(#_b):not(#_c):not(#_d) body #splash:not(#_x):not(#_y):not(#_z) .sp-pct b{font-size:.82rem;font-weight:800;color:var(--muted)!important;letter-spacing:0}
html:root:not(#_a):not(#_b):not(#_c):not(#_d) body #splash:not(#_x):not(#_y):not(#_z) .sp-pct span{font-size:.82rem;font-weight:800;color:var(--muted)!important;margin-left:2px}
html:root:not(#_a):not(#_b):not(#_c):not(#_d) body #splash:not(#_x):not(#_y):not(#_z) .sp-steps{order:4;width:100%!important;gap:0;padding:4px 16px;background:var(--surface);border:1px solid var(--line);border-radius:24px;font-size:.95rem}
html:root:not(#_a):not(#_b):not(#_c):not(#_d) body #splash:not(#_x):not(#_y):not(#_z) .sp-steps li{display:flex;align-items:center;gap:12px;padding:9px 0;font-weight:700;color:var(--fg);opacity:.45}
html:root:not(#_a):not(#_b):not(#_c):not(#_d) body #splash:not(#_x):not(#_y):not(#_z) .sp-steps li.on,html:root:not(#_a):not(#_b):not(#_c):not(#_d) body #splash:not(#_x):not(#_y):not(#_z) .sp-steps li.done{opacity:1}
html:root:not(#_a):not(#_b):not(#_c):not(#_d) body #splash:not(#_x):not(#_y):not(#_z) .sp-steps li::before{content:"";display:grid;place-items:center;width:38px;height:38px;flex:none;border-radius:50%;background:var(--field,#eef1ef);font-size:1.1rem;font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif}
html:root:not(#_a):not(#_b):not(#_c):not(#_d) body #splash:not(#_x):not(#_y):not(#_z) .sp-steps li:nth-child(1)::before{content:"🏪"}
html:root:not(#_a):not(#_b):not(#_c):not(#_d) body #splash:not(#_x):not(#_y):not(#_z) .sp-steps li:nth-child(2)::before{content:"📦"}
html:root:not(#_a):not(#_b):not(#_c):not(#_d) body #splash:not(#_x):not(#_y):not(#_z) .sp-steps li:nth-child(3)::before{content:"🧾"}
html:root:not(#_a):not(#_b):not(#_c):not(#_d) body #splash:not(#_x):not(#_y):not(#_z) .sp-steps li:nth-child(4)::before{content:"✅"}
html:root:not(#_a):not(#_b):not(#_c):not(#_d) body #splash:not(#_x):not(#_y):not(#_z) .sp-steps li.done::before{background:color-mix(in srgb,var(--accent) 14%,var(--surface))}
html:root:not(#_a):not(#_b):not(#_c):not(#_d) body #splash:not(#_x):not(#_y):not(#_z) .sp-steps b:not(#_w){display:block!important;order:3;margin-left:auto;width:24px;height:24px;border-radius:50%;border:3px solid color-mix(in srgb,var(--fg) 12%,transparent);box-sizing:border-box;position:relative;flex:none;background:none}
html:root:not(#_a):not(#_b):not(#_c):not(#_d) body #splash:not(#_x):not(#_y):not(#_z) .sp-steps li:not(.on):not(.done) b{visibility:hidden}
html:root:not(#_a):not(#_b):not(#_c):not(#_d) body #splash:not(#_x):not(#_y):not(#_z) .sp-steps li.on b:not(#_w){border-color:color-mix(in srgb,var(--accent) 25%,transparent);border-top-color:var(--accent);animation:orbspin .8s linear infinite}
html:root:not(#_a):not(#_b):not(#_c):not(#_d) body #splash:not(#_x):not(#_y):not(#_z) .sp-steps li.done b:not(#_w){background:var(--accent);border-color:var(--accent);animation:none}
html:root:not(#_a):not(#_b):not(#_c):not(#_d) body #splash:not(#_x):not(#_y):not(#_z) .sp-steps li.done b::after{left:6px;top:2px}
html:root:not(#_a):not(#_b):not(#_c):not(#_d) body #splash:not(#_x):not(#_y):not(#_z) .sp-by{order:5;justify-content:center;margin-top:18px}
@media (prefers-reduced-motion:reduce){#splash .sp-steps li.on b{animation:none;border-color:var(--accent)}}

html:root:not(#_a):not(#_b):not(#_c):not(#_d) body #splash:not(#_x):not(#_y):not(#_z) .sp-steps{display:flex!important;flex-direction:column}
html:root:not(#_a):not(#_b):not(#_c):not(#_d) body #splash:not(#_x):not(#_y):not(#_z) .sp-name{color:var(--fg)!important}
html:root:not(#_a):not(#_b):not(#_c):not(#_d) body #splash:not(#_x):not(#_y):not(#_z) .splash-t{position:absolute!important;width:1px!important;height:1px!important;clip:rect(0 0 0 0)!important;overflow:hidden!important;margin:0!important;padding:0!important}
html:root:not(#_a):not(#_b):not(#_c):not(#_d) body #splash:not(#_x):not(#_y):not(#_z) .sp-by{display:flex}
html:root:not(#_a):not(#_b):not(#_c):not(#_d) body #splash:not(#_x):not(#_y):not(#_z) .sp-by[hidden]{display:none}
html:root:not(#_a):not(#_b):not(#_c):not(#_d) body #splash:not(#_x):not(#_y):not(#_z) .sp-steps{height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;margin:0!important}
html:root:not(#_a):not(#_b):not(#_c):not(#_d) body #splash:not(#_x):not(#_y):not(#_z) .sp-steps li{min-height:56px;box-sizing:border-box}
html:root:not(#_a):not(#_b):not(#_c):not(#_d) body #splash:not(#_x):not(#_y):not(#_z){inset:0!important;left:0!important;right:0!important;width:100%!important;max-width:none!important;margin:0!important;transform:none!important;padding:0 24px!important;box-sizing:border-box}

/* ===== Fase 0.1 del rediseño (Juan, 2026-11-23, «A · Título y tarjeta negra»): en las demás pantallas del celular el bloque verde pasa a: fila de arriba clara (como Inicio), título grande y tarjeta negra con el dato principal. ===== */
@media (max-width:1099px){
  html:root:not(#_a):not(#_b):not(#_c) body #app:not([data-tab="inicio"]):not([data-tab="vender"]):not([data-tab="ajustes"]) header.top:not(#_x){background:transparent!important;background-image:none!important;color:var(--fg)!important;border-radius:0!important;margin:0 -16px 0!important;padding:calc(8px + var(--sat)) 16px 6px!important;box-shadow:none!important}
  html:root body #app:not([data-tab="inicio"]):not([data-tab="vender"]):not([data-tab="ajustes"]) header.top .bizbrand{color:var(--fg)!important}
  html:root body #app:not([data-tab="inicio"]):not([data-tab="vender"]):not([data-tab="ajustes"]) header.top :is(.navhb,.jotahd,.bellbtn):not(#_x){background:var(--surface)!important;border:1px solid var(--line)!important;color:var(--fg)!important;box-shadow:none!important;border-radius:999px}
  html:root body #app:not([data-tab="inicio"]):not([data-tab="vender"]):not([data-tab="ajustes"]) header.top .bellbtn{border-radius:50%!important}
  html:root body #app:not([data-tab="inicio"]):not([data-tab="vender"]):not([data-tab="ajustes"]) header.top .bellbtn svg{stroke:var(--fg);color:var(--fg)}
  html:root body #app:not([data-tab="inicio"]):not([data-tab="vender"]):not([data-tab="ajustes"]) header.top .jotahd{color:var(--accent)!important}
  /* la tarjeta negra (el «hero» de cada pantalla) con el título grande afuera, encima */
  html:root:not(#_a):not(#_b):not(#_c) body #app:not([data-tab="inicio"]):not([data-tab="vender"]):not([data-tab="ajustes"]) :is(#vhero2,#ihero2,#svhero2,#fhero2,#qhero2,#chero2,#rphero2,#cphero2,#clhero2,#vdhero2,#cathero2,#clmhero):not(#_x){position:relative;background:#0b0f0e!important;background-image:none!important;color:#fff!important;border-radius:30px!important;margin:60px 0 12px!important;padding:16px 18px!important;box-shadow:none!important;text-align:left}
  html:root:not(#_a):not(#_b):not(#_c) body #app[data-tab]:not([data-tab="inicio"]):not([data-tab="vender"]):not([data-tab="ajustes"]) :is(#vhero2,#ihero2,#svhero2,#fhero2,#qhero2,#chero2,#rphero2,#cphero2,#clhero2,#vdhero2,#cathero2,#clmhero):not(#_x)::before{position:absolute!important;top:-50px;left:2px;margin:0!important;font-size:2rem!important;letter-spacing:-.02em;color:var(--fg)!important;line-height:1.1}
  html:root[data-theme="dark"] body #app:not([data-tab="inicio"]):not([data-tab="vender"]):not([data-tab="ajustes"]) :is(#vhero2,#ihero2,#svhero2,#fhero2,#qhero2,#chero2,#rphero2,#cphero2,#clhero2,#vdhero2,#cathero2,#clmhero):not(#_x){border:1px solid var(--line)}
  html:root body #app:not([data-tab="inicio"]):not([data-tab="vender"]):not([data-tab="ajustes"]) :is(#vhero2,#ihero2,#svhero2,#fhero2,#qhero2,#chero2,#rphero2,#cphero2,#clhero2,#vdhero2,#cathero2,#clmhero) .vqpill.dk{background:#1d2522!important}
}
@media (max-width:1099px){
  html:root body #app:not([data-tab="inicio"]):not([data-tab="vender"]):not([data-tab="ajustes"]) header.top :is(.bizbrand,.bizbrand *):not(#_x){color:var(--fg)!important}
}

/* ===== Fase 0.3 y 0.4 del rediseño (Juan, 2026-11-23): formularios «A · Campos en tarjetas redondas» y hojas «A · Resumen arriba y botones abajo». Vale para TODAS las ventanas del celular; cada pantalla se afina después. ===== */
@media (max-width:1099px){
  html:root:not(#_a):not(#_b) body>.modal .dlg:not(#_x){background:var(--bg)!important;box-shadow:none;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;padding-bottom:calc(30px + env(safe-area-inset-bottom,0px))}
  html:root body>.modal .dlg>h2:not(#_x){font-family:var(--f-display,inherit);font-size:1.55rem;font-weight:800;letter-spacing:-.02em}
  html:root body>.modal .dlg .hint:not(#_x){font-size:.88rem;color:var(--muted);line-height:1.4}
  html:root body>.modal .dlg label.f>:is(input,select,textarea):not([type=checkbox]):not([type=radio]):not([type=range]):not(#_x){background:var(--surface);border:1px solid var(--line);border-radius:20px;min-height:54px;padding-inline:16px;box-shadow:none;font-size:1rem}
  html:root body>.modal .dlg label.f:not(#_x){font-size:.8rem;font-weight:700;color:var(--muted)}
  html:root body>.modal .dlg>.row:has(>.btn.primary){gap:10px;flex-wrap:nowrap}
  html:root body>.modal .dlg>.row>.btn:not(.small):not(.danger):not(#_x){flex:1 1 0;min-height:50px;border-radius:999px!important;font-weight:800;box-shadow:none}
  html:root body>.modal .dlg>.row>.btn.primary:not(#_x){background:var(--fg)!important;color:var(--bg)!important;border:1px solid var(--fg)!important}
  html:root body>.modal .dlg>.row>.btn:not(.primary):not(.danger):not(.small):not(#_x){background:var(--surface)!important;color:var(--fg)!important;border:1.5px solid color-mix(in srgb,var(--fg) 22%,var(--line))!important}
  html:root body>.modal .dlg>.row>.btn.danger:not(#_x){background:color-mix(in srgb,#dc2626 14%,var(--surface))!important;color:#dc2626!important;border:0!important;border-radius:999px!important;min-height:50px;flex:1 1 0}
  html:root body>.modal .dlg>.btn.primary:not(#_x){min-height:50px;border-radius:999px!important;background:var(--fg)!important;color:var(--bg)!important;border:1px solid var(--fg)!important;font-weight:800}
}

/* Fase 0.1: los íconos de la fila de arriba, redondos y del mismo tamaño que en Inicio (Juan, 2026-11-23) */
@media (max-width:1099px){
  html:root:not(#_a):not(#_b):not(#_c) body #app:not([data-tab="inicio"]):not([data-tab="vender"]):not([data-tab="ajustes"]) header.top :is(.navhb,.biztile,.jotahd,.bellbtn,.avatar):not(#_x){width:44px!important;height:44px!important;min-width:44px;padding:0!important;border-radius:50%!important;display:grid!important;place-items:center;overflow:hidden}
  html:root:not(#_a):not(#_b):not(#_c) body #app:not([data-tab="inicio"]):not([data-tab="vender"]):not([data-tab="ajustes"]) header.top .jotahd :is(b,.spk,span:not(.jmascot)):not(#_x){display:none!important}
  html:root body #app:not([data-tab="inicio"]):not([data-tab="vender"]):not([data-tab="ajustes"]) header.top .jotahd .jmascot{width:30px;height:34px}
  html:root body #app:not([data-tab="inicio"]):not([data-tab="vender"]):not([data-tab="ajustes"]) header.top .biztile{background:var(--surface)!important;border:1px solid var(--line)!important;color:var(--fg)!important}
  html:root body #app:not([data-tab="inicio"]):not([data-tab="vender"]):not([data-tab="ajustes"]) header.top .head-r{gap:8px}
}
@media (max-width:1099px){html:root:not(#_a):not(#_b):not(#_c) body #app:not([data-tab="inicio"]):not([data-tab="vender"]):not([data-tab="ajustes"]) header.top .bellbtn:not(#_x){overflow:visible!important}}

/* ===== Vender (rediseño, Juan 2026-11-23): principal «A · Lista con categorías», carrito «A», cobro «A», venta hecha «B». Solo celular. ===== */
@media (max-width:1099px){
  html:root:not(#_a):not(#_b):not(#_c) body #tab-vender .vvhead:not(#_x){background:none!important;background-image:none!important;color:var(--fg)!important;border-radius:0!important;box-shadow:none!important;padding:calc(8px + var(--sat)) 16px 4px!important;margin:0 -16px!important;gap:10px}
  html:root:not(#_a):not(#_b):not(#_c) body #tab-vender .vvhead h2:not(#_x){color:var(--fg)!important;font-size:2rem;padding-right:0!important}
  html:root:not(#_a):not(#_b):not(#_c) body #tab-vender .vvhead label.f:not(#_x){font-size:0;color:transparent}
  html:root:not(#_a):not(#_b):not(#_c) body #tab-vender .vvhead input:not(#_x){background:var(--surface)!important;color:var(--fg)!important;border:1px solid var(--line)!important;border-radius:999px!important;min-height:52px;padding-inline:18px;font-size:1rem;box-shadow:none}
  html:root:not(#_a):not(#_b):not(#_c) body #tab-vender .vvhead #vscan:not(#_x){background:var(--fg)!important;color:var(--bg)!important;width:52px;height:52px;min-width:52px;min-height:52px;border-radius:50%!important;padding:0;display:grid;place-items:center}
  html:root body #tab-vender .vvhead #vscan span:not(#_x){display:none}
  html:root body #tab-vender .vvhead .row{align-items:center;gap:8px}
  html:root:not(#_a):not(#_b):not(#_c) body #tab-vender .vvlogo :is(.navhb,.biztile):not(#_x){width:44px!important;height:44px!important;min-width:44px;padding:0!important;border-radius:50%!important;display:grid!important;place-items:center;background:var(--surface)!important;border:1px solid var(--line)!important;color:var(--fg)!important;box-shadow:none!important}
  html:root:not(#_a):not(#_b):not(#_c) body #tab-vender .vvlogo .bizbrand,html:root body #tab-vender .vvlogo .bizbrand *{color:var(--fg)!important}
  html:root:not(#_a):not(#_b):not(#_c) body #app[data-tab="vender"] header.top :is(.jotahd,.bellbtn,.avatar):not(#_x){width:44px!important;height:44px!important;min-width:44px;padding:0!important;border-radius:50%!important;display:grid!important;place-items:center;overflow:hidden;background:var(--surface)!important;border:1px solid var(--line)!important;color:var(--fg)!important}
  html:root:not(#_a):not(#_b):not(#_c) body #app[data-tab="vender"] header.top .avatar:not(#_x){background:var(--fg)!important;color:var(--bg)!important}
  html:root:not(#_a):not(#_b):not(#_c) body #app[data-tab="vender"] header.top .bellbtn:not(#_x){overflow:visible!important}
  html:root:not(#_a):not(#_b):not(#_c) body #app[data-tab="vender"] header.top .jotahd :is(b,.spk,span:not(.jmascot)):not(#_x){display:none!important}
  /* «+» redondo negro; el producto ya agregado, círculo verde con la cantidad */
  html:root:not(#_a):not(#_b):not(#_c) body #vpick .vgrid>.qcard.gcard:not(.on):not(:disabled):not(#_x)::after{border-radius:50%!important;background:var(--fg)!important;color:var(--bg)!important}
  html:root:not(#_a):not(#_b):not(#_c) body #vpick .vgrid>.qcard.gcard>.qadd:not(#_x){border-radius:50%!important}
  html:root:not(#_a):not(#_b):not(#_c) body #vpick .vgrid>.qcard.gcard>.thumb:not(#_x){border-radius:50%!important}
  /* barra del carrito: píldora negra con «Ver carrito» en verde */
  html:root:not(#_a):not(#_b):not(#_c) body #vbar:not(#_x){background:#0b0f0e!important;color:#fff!important;border-radius:999px!important;box-shadow:none!important;padding:8px 8px 8px 22px}
  html:root body #vbar #vbn:not(#_x),html:root body #vbar #vbt:not(#_x){color:#fff!important}
  html:root:not(#_a):not(#_b):not(#_c) body #vbar #vgo:not(#_x){background:var(--accent)!important;color:var(--accent-ink,#fff)!important;border-radius:999px!important;min-height:44px}
}
@media (max-width:1099px){
  /* carrito (hoja): tarjetas, pasos redondos, total negro, botones píldora */
  html:root:not(#_a):not(#_b):not(#_c) body #tab-vender.sheetm.sheet-open>.cartcard:not(#_x){background:var(--bg)!important}
  html:root:not(#_a):not(#_b):not(#_c) body #tab-vender #vcart>.item:not(#_x){background:var(--surface)!important;border:1px solid var(--line)!important;border-radius:24px!important;box-shadow:none!important}
  html:root:not(#_a):not(#_b):not(#_c) body #tab-vender #vcart .clhd .thumb:not(#_x){border-radius:50%!important}
  html:root:not(#_a):not(#_b):not(#_c) body #tab-vender #vcart .clhd .btn.x:not(#_x){border-radius:50%!important;width:36px;height:36px;padding:0;background:color-mix(in srgb,#dc2626 12%,var(--surface))!important;color:#dc2626!important;border:0!important}
  html:root:not(#_a):not(#_b):not(#_c) body #tab-vender #vcart .qty:not(#_x){background:var(--field,#eef1ef)!important;border:0!important;border-radius:999px!important;padding:3px}
  html:root:not(#_a):not(#_b):not(#_c) body #tab-vender #vcart .qty button:not(#_x){width:36px;height:36px;border-radius:50%!important;background:var(--surface)!important;border:1px solid var(--line)!important;color:var(--fg)!important;font-weight:800}
  html:root:not(#_a):not(#_b):not(#_c) body #tab-vender .vclibtn:not(#_x){background:var(--surface)!important;border:1px solid var(--line)!important;border-radius:24px!important;box-shadow:none!important}
  html:root:not(#_a):not(#_b):not(#_c) body #tab-vender .vclibtn .vcli-av:not(#_x){border-radius:50%!important}
  html:root:not(#_a):not(#_b):not(#_c) body #tab-vender #vdrow:not(#_x){background:var(--surface);border:1px solid var(--line);border-radius:24px;padding:12px 14px}
  html:root:not(#_a):not(#_b):not(#_c) body #tab-vender .dchips button:not(#_x){border-radius:999px!important}
  html:root:not(#_a):not(#_b):not(#_c) body #tab-vender #vtotals .r.big:not(#_x){background:#0b0f0e!important;color:#fff!important;border-radius:26px;padding:14px 20px}
  html:root body #tab-vender #vtotals .r.big span:not(#_x){color:#fff!important}
  html:root:not(#_a):not(#_b):not(#_c) body #tab-vender #vconfirm:not(#_x){background:var(--fg)!important;color:var(--bg)!important;border-radius:999px!important;min-height:54px}
  html:root:not(#_a):not(#_b):not(#_c) body #tab-vender :is(#vhold,#vcocancel,#vquote):not(#_x){background:var(--surface)!important;color:var(--fg)!important;border:1.5px solid color-mix(in srgb,var(--fg) 22%,var(--line))!important;border-radius:999px!important;min-height:54px;font-weight:800}
  /* cobro «A · Formas de pago en casillas» */
  html:root:not(#_a):not(#_b):not(#_c) body #tab-vender #vpay:not(#_x){grid-template-columns:1fr 1fr;gap:8px}
  html:root:not(#_a):not(#_b):not(#_c) body #tab-vender #vpay .vpill:not(#_x){display:flex!important;flex-direction:row;align-items:center;justify-content:flex-start;gap:10px;min-height:58px;padding:8px 12px;border-radius:22px!important;background:var(--surface)!important;color:var(--fg)!important;border:1px solid var(--line)!important;text-align:left;font-size:.92rem}
  html:root body #tab-vender #vpay .vpill svg:not(#_x){display:none!important}
  html:root body #tab-vender #vpay .vpill::before{content:"💵";display:grid;place-items:center;width:38px;height:38px;flex:none;border-radius:50%;background:var(--field,#eef1ef);font-size:1.1rem;font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif}
  html:root body #tab-vender #vpay .vpill[data-vp="Transferencia"]::before{content:"🏦"}
  html:root body #tab-vender #vpay .vpill[data-vp="Tarjeta"]::before{content:"💳"}
  html:root body #tab-vender #vpay .vpill[data-vp="Otro"]::before{content:"📲"}
  html:root body #tab-vender #vpay .vpill[data-vp="Fiado"]::before{content:"📒"}
  html:root body #tab-vender #vpay .vpill[data-vp="Apartado"]::before{content:"🔖"}
  html:root body #tab-vender #vpay .vpill[data-vp="Mixto"]::before{content:"➗"}
  html:root:not(#_a):not(#_b):not(#_c) body #tab-vender #vpay .vpill[aria-pressed="true"]:not(#_x),html:root:not(#_a):not(#_b):not(#_c) body #tab-vender #vpay .vpill.on:not(#_x){background:color-mix(in srgb,var(--accent) 12%,var(--surface))!important;color:var(--fg)!important;border:2px solid var(--accent)!important}
  html:root body #tab-vender #vpay .vpill[aria-pressed="true"]::before{background:var(--surface)}
  html:root:not(#_a):not(#_b):not(#_c) body #tab-vender #vgiven:not(#_x){border:1px solid var(--line)!important;border-radius:20px!important}
}
@media (max-width:1099px){
  /* venta hecha «B · Pantalla negra de celebración» */
  html:root:not(#_a):not(#_b):not(#_c) body #vdone:not(:empty):not(#_x){position:fixed!important;inset:0!important;z-index:70;background:#0b0f0e!important;display:block!important;padding:0!important;overflow-y:auto}
  html:root:not(#_a):not(#_b):not(#_c) body #vdone .dn:not(#_x){position:static!important;background:#0b0f0e!important;color:#fff!important;border:0!important;border-radius:0!important;box-shadow:none!important;min-height:100%;max-width:none;width:100%;margin:0;padding:calc(48px + var(--sat)) 22px calc(28px + env(safe-area-inset-bottom,0px))!important;display:flex;flex-direction:column;align-items:stretch;gap:12px;text-align:center}
  html:root body #vdone .dn .sp-tk:not(#_x),html:root body #vdone .dn .prn:not(#_x),html:root body #vdone .dn [class*="tkt"]:not(#_x){display:none!important}
  html:root body #vdone .dn>.row:not(#_x){display:flex;flex-direction:column;align-items:center;gap:8px;justify-content:center}
  html:root body #vdone .dn .okmark:not(#_x){width:110px;height:110px;border-radius:50%;background:#22c55e!important;display:grid;place-items:center;margin:20px auto 6px}
  html:root body #vdone .dn .okmark svg:not(#_x){width:56px;height:56px;stroke:#0b0f0e!important;stroke-width:3;fill:none}
  html:root body #vdone .dn h2:not(#_x){color:#fff!important;font-family:var(--f-display);font-size:1.7rem;font-weight:800;margin:0}
  html:root body #vdone .dn .pill:not(#_x){background:#1d2522!important;color:#86efac!important;border:0!important}
  html:root body #vdone .dn .dn-tot:not(#_x){background:none!important;border:0!important;text-align:center;padding:8px 0 0;display:flex;flex-direction:column;align-items:center;gap:4px}
  html:root body #vdone .dn .dn-tot span:not(#_x),html:root body #vdone .dn .dn-tot small:not(#_x){color:#9fb0a8!important}
  html:root body #vdone .dn .dn-tot b:not(#_x){font-family:var(--f-display);font-size:3.2rem;font-weight:800;letter-spacing:-.03em;color:#4ade80!important}
  html:root body #vdone .dn .totals:not(#_x),html:root body #vdone .dn .dn-lines:not(#_x){background:#141a18!important;border:1px solid #2b3330!important;border-radius:22px;padding:6px 16px;color:#fff}
  html:root body #vdone .dn .totals .r,html:root body #vdone .dn .dn-lines .r{color:#e5ebe8!important;text-align:left}
  html:root body #vdone .dn .r.big:not(#_x){background:none!important;color:#4ade80!important}
  html:root body #vdone .dn .dn-profit:not(#_x){background:#141a18!important;border:1px solid #2b3330!important;border-radius:22px;color:#e5ebe8!important}
  html:root body #vdone .dn .dn-more:not(#_x){color:#9fb0a8!important;background:none!important}
  html:root body #vdone .dn .dn-ics:not(#_x){display:flex;justify-content:center;gap:22px;margin-top:6px}
  html:root body #vdone .dn .dn-ic:not(#_x){display:flex;flex-direction:column;align-items:center;gap:6px;background:none!important;border:0!important;color:#fff!important;font-weight:700;font-size:.78rem;box-shadow:none!important;width:auto;min-height:0}
  html:root body #vdone .dn .dn-ic svg:not(#_x){width:30px!important;height:30px!important;padding:14px;box-sizing:content-box;border-radius:50%;background:#1d2522;color:#fff!important;stroke:#fff}
  html:root body #vdone .dn .dn-ic.p svg:not(#_x){background:#22c55e;stroke:#0b0f0e;color:#0b0f0e!important}
  html:root body #vdone .dn .dn-new:not(#_x){background:#fff!important;color:#0b0f0e!important;border:0!important;border-radius:999px!important;min-height:54px;font-weight:800;margin-top:auto}
}
@media (max-width:1099px){
  html:root body #tab-vender.sheet-open>.vvcard:not(#_x){visibility:hidden}
  html:root:not(#_a):not(#_b):not(#_c) body #tab-vender #vcart:not(#_x){background:none!important;padding:0!important;border:0!important;gap:8px}
  html:root:not(#_a):not(#_b):not(#_c) body #app[data-tab="vender"]:has(#tab-vender.sheet-open) header.top:not(#_x){visibility:hidden}
}

/* Carrito de Vender igual a la maqueta A (Juan: «no se parece»): producto en UNA fila (foto redonda, nombre, precio c/u y contador), cliente con 👤, descuento con 🏷️, «Cobrar» y «En espera» en la misma fila */
@media (max-width:1099px){
  html:root:not(#_a):not(#_b):not(#_c):not(#_d) body #tab-vender #vcart>.item.cl:not(#_x){display:grid!important;grid-template-columns:48px minmax(0,1fr) auto;grid-template-areas:"th n q" "th p q";column-gap:12px;row-gap:2px;align-items:center;padding:12px!important;margin:0 0 8px!important}
  html:root body #tab-vender #vcart>.item.cl .clhd:not(#_x),html:root body #tab-vender #vcart>.item.cl .clft:not(#_x){display:contents!important}
  html:root body #tab-vender #vcart>.item.cl .clhd .thumb:not(#_x){grid-area:th;width:48px!important;height:48px!important;margin:0!important;align-self:center;border-radius:50%!important}
  html:root body #tab-vender #vcart>.item.cl .clhd .main:not(#_x){grid-area:n;min-width:0;padding:0!important}
  html:root body #tab-vender #vcart>.item.cl .clhd .t:not(#_x){font-weight:800;font-size:.95rem;line-height:1.2;white-space:normal}
  html:root body #tab-vender #vcart>.item.cl .clhd .btn.x:not(#_x){display:none!important}
  html:root body #tab-vender #vcart>.item.cl .pedit:not(#_x){grid-area:p;display:flex;align-items:center;gap:6px;background:none!important;border:0!important;padding:0!important;margin:0!important;color:var(--muted);font-size:.82rem;flex-direction:row-reverse;justify-content:flex-end}
  html:root body #tab-vender #vcart>.item.cl .pedit .mnyw:not(#_x){background:none!important;border:0!important;width:auto;min-width:0;padding:0}
  html:root body #tab-vender #vcart>.item.cl .pedit input.pe:not(#_x){background:none!important;border:0!important;padding:0!important;min-height:0!important;height:auto;width:78px;font-size:.82rem!important;color:var(--muted)!important;font-weight:600}
  html:root body #tab-vender #vcart>.item.cl .pedit .num:not(#_x){font-size:.82rem}
  html:root body #tab-vender #vcart>.item.cl .qty:not(#_x){grid-area:q;margin:0!important}
  /* cliente con 👤 */
  html:root body #tab-vender .vclibtn .vcli-av:not(#_x){width:42px;height:42px;display:grid;place-items:center;background:color-mix(in srgb,var(--accent) 14%,var(--surface))!important;flex:none}
  html:root body #tab-vender .vclibtn .vcli-av svg:not(#_x){display:none!important}
  html:root body #tab-vender .vclibtn .vcli-av::before{content:"👤";font-size:1.1rem;font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif}
  html:root body #tab-vender .vclibtn .vcli-go:not(#_x){background:var(--field,#eef1ef);color:var(--fg)!important;border-radius:999px;padding:8px 14px;font-weight:800;font-size:.82rem}
  /* descuento con 🏷️ */
  html:root body #tab-vender #vdrow .vdh:not(#_x){display:flex;align-items:center;gap:12px;font-weight:800;font-size:.95rem;margin-bottom:8px}
  html:root body #tab-vender #vdrow .vdh::before{content:"🏷️";display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:#fdecc8;font-size:1.1rem;font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif}
  html:root body #tab-vender #vdrow .vdh b:not(#_x){margin-left:auto}
  /* botones de abajo en una fila */
  html:root body #tab-vender .cart-foot>.row:not(#_x){display:flex;flex-wrap:nowrap;gap:10px}
  html:root body #tab-vender .cart-foot>.row #vconfirm:not(#_x){flex:1 1 0}
  html:root body #tab-vender .cart-foot>.row :is(#vhold,#vcocancel):not(#_x){flex:0 0 auto;padding-inline:20px}
}
@media (max-width:1099px){
  html:root body #tab-vender #vcart>.item.cl .pedit:not(#_x){flex-direction:row!important}
  html:root body #tab-vender #vcart>.item.cl .pedit .mnyw:not(#_x){display:inline-flex;align-items:center}
  html:root:not(#_a):not(#_b):not(#_c) body #tab-vender .cart-foot>.row:not(#_x){display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important}
  html:root:not(#_a):not(#_b):not(#_c) body #tab-vender .cart-foot>.row>.btn:not(#_x){width:auto!important;margin:0!important}
  html:root:not(#_a):not(#_b):not(#_c) body #tab-vender .cart-foot>.row>#vconfirm:not(#_x){flex:1 1 0!important}
}
@media (max-width:1099px){
  html:root body #tab-vender #vcart>.item.cl .pedit .mnyw:not(#_x){position:relative;width:96px!important;flex:none}
  html:root body #tab-vender #vcart>.item.cl .pedit .mnyw::before{left:0!important;font-size:.82rem!important;color:var(--muted)}
  html:root body #tab-vender #vcart>.item.cl .pedit .mnyw>input.pe:not(#_x){padding-left:14px!important;width:100%}
}
@media (max-width:1099px){html:root body #tab-vender #vcart>.item.cl .pedit:not(#_x){justify-content:flex-start!important;margin-left:0!important;padding-left:0!important;text-align:left}html:root body #tab-vender #vcart>.item.cl .pedit input.pe:not(#_x){text-align:left}}

/* ===== Carrito en 3 pasos (Juan, 2026-11-23): 1 Productos · 2 Cliente y descuento · 3 Cobro. Solo celular; en el computador sigue en una ventana. ===== */
#vsteps,#vnext,#vback{display:none}
@media (max-width:1099px){
  html:root body #tab-vender.sheet-open[data-vstep] #vsteps:not(#_x){display:block;margin:4px 0 10px}
  #vsteps .vsbar{display:flex;gap:6px;margin:0 2px 12px}
  #vsteps .vsbar i{flex:1;height:5px;border-radius:3px;background:color-mix(in srgb,var(--fg) 14%,var(--bg))}
  #vsteps .vsbar i.on{background:var(--fg)}
  #vsteps .vshead{display:flex;align-items:center;gap:12px;padding:0 2px}
  #vsteps .vsem{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:color-mix(in srgb,var(--accent) 14%,var(--surface));font-size:1.2rem;font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif}
  #vsteps .vshead b{display:block;font-family:var(--f-display);font-size:1.25rem;font-weight:800;line-height:1.1}
  #vsteps .vshead small{color:var(--muted);font-size:.85rem}
  /* qué se ve en cada paso */
  html:root body #tab-vender.sheet-open[data-vstep="1"] .cart-scroll>:not(#vcart):not(#vswipe):not(#_x){display:none!important}
  html:root body #tab-vender.sheet-open[data-vstep="2"] .cart-scroll>:not(#vcliw):not(#vdrow):not(#_x){display:none!important}
  html:root body #tab-vender.sheet-open[data-vstep="3"] .cart-scroll>:is(#vcart,#vswipe,#vcliw,#vdrow):not(#_x){display:none!important}
  html:root body #tab-vender.sheet-open[data-vstep="1"] #vsumtop:not(#_x){display:none}
  /* botones de abajo según el paso */
  html:root body #tab-vender.sheet-open[data-vstep] #vback:not(#_x){display:inline-flex;justify-content:center;flex:0 0 auto}
  html:root body #tab-vender.sheet-open[data-vstep="1"] #vnext:not(#_x),html:root body #tab-vender.sheet-open[data-vstep="2"] #vnext:not(#_x){display:inline-flex;justify-content:center;flex:1 1 0}
  html:root body #tab-vender.sheet-open[data-vstep="1"] #vconfirm:not(#_x),html:root body #tab-vender.sheet-open[data-vstep="2"] #vconfirm:not(#_x){display:none!important}
  html:root body #tab-vender.sheet-open[data-vstep="2"] #vhold:not(#_x),html:root body #tab-vender.sheet-open[data-vstep="3"] #vhold:not(#_x){display:none!important}
  html:root:not(#_a):not(#_b):not(#_c) body #tab-vender.sheet-open[data-vstep] #vnext:not(#_x){background:var(--fg)!important;color:var(--bg)!important;border:1px solid var(--fg)!important;border-radius:999px!important;min-height:54px;font-weight:800}
  html:root:not(#_a):not(#_b):not(#_c) body #tab-vender.sheet-open[data-vstep] #vback:not(#_x){background:var(--surface)!important;color:var(--fg)!important;border:1.5px solid color-mix(in srgb,var(--fg) 22%,var(--line))!important;border-radius:999px!important;min-height:54px;font-weight:800;padding-inline:20px}
  html:root body #tab-vender.sheet-open[data-vstep] .cart-foot>.row:not(#_x){display:flex!important;flex-wrap:nowrap!important;gap:10px}
}
@media (max-width:1099px){
  html:root:not(#_a):not(#_b):not(#_c) body #tab-vender.sheet-open[data-vstep] #vnext:not(#_x){flex:1 1 0!important}
  html:root body #tab-vender.sheet-open[data-vstep] #vback[hidden]:not(#_x){display:none!important}
}

/* ===== Ventas (rediseño, Juan 2026-11-23): lista «A · Lista por día en una tarjeta» y detalle «A + B»: total en tarjeta negra, acciones en círculos con emoji. Solo celular. ===== */
@media (max-width:1099px){
  html:root:not(#_a):not(#_b):not(#_c) body #slist .vqdot:not(#_x){width:42px;height:42px;border-radius:50%;background:color-mix(in srgb,var(--accent) 14%,var(--surface))!important;color:inherit}
  html:root body #slist .vqdot svg:not(#_x){display:none!important}
  html:root body #slist .vqdot[data-emo]::before{content:attr(data-emo);font-size:1.15rem;font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif}
  html:root body #slist .vqdot.x:not(#_x){background:color-mix(in srgb,#dc2626 14%,var(--surface))!important}
  /* detalle abierto */
  html:root:not(#_a):not(#_b):not(#_c) body #slist .item.srow:has(.vs-det):not(#_x){display:grid!important;grid-template-columns:repeat(5,1fr);gap:8px 4px;padding:6px 0 12px!important;background:none!important;border:0!important;box-shadow:none!important}
  html:root body #slist .item.srow:has(.vs-det)>*:not(#_x){grid-column:1/-1;order:5}
  html:root body #slist .item.srow:has(.vs-det)>.srow-r:not(#_x){display:none!important}
  html:root body #slist .item.srow:has(.vs-det)>.vr2:not(#_x){order:0;background:var(--surface);border:1px solid var(--line);border-radius:24px;padding:10px 12px}
  html:root body #slist .item.srow:has(.vs-det) :is(.vs-det,.vsd-acts,.svgrp,.svgrp>.row.sv-ag):not(#_x){display:contents!important}
  html:root body #slist .item.srow:has(.vs-det) .vsd-top:not(#_x){grid-column:1/-1;order:1;background:#0b0f0e;color:#fff;border-radius:30px;padding:16px 18px;text-align:left;display:flex;flex-direction:column;gap:2px;position:relative}
  html:root body #slist .item.srow:has(.vs-det) .vsd-top .k:not(#_x),html:root body #slist .item.srow:has(.vs-det) .vsd-top small:not(#_x){color:#9fb0a8!important}
  html:root body #slist .item.srow:has(.vs-det) .vsd-top b:not(#_x){font-family:var(--f-display);font-size:2.3rem;font-weight:800;letter-spacing:-.03em;color:#fff!important}
  html:root body #slist .item.srow:has(.vs-det) .vsd-top .vsd-st:not(#_x){position:absolute;right:16px;top:16px;background:#1d2522!important;color:#86efac!important;border-radius:999px;padding:3px 10px;font-weight:800;font-size:.75rem}
  /* acciones: 5 círculos con emoji */
  html:root body #slist .item.srow:has(.vs-det) :is(.vsd-acts,.sv-ag)>.btn:not(#_x){grid-column:auto;order:2;display:flex!important;flex-direction:column;align-items:center;gap:6px;background:none!important;border:0!important;box-shadow:none!important;color:var(--fg)!important;font-weight:700;font-size:.72rem;padding:0;min-height:0;white-space:normal;text-align:center}
  html:root body #slist .item.srow:has(.vs-det) :is(.vsd-acts,.sv-ag)>.btn svg:not(#_x){display:none!important}
  html:root body #slist .item.srow:has(.vs-det) :is(.vsd-acts,.sv-ag)>.btn::before{display:grid;place-items:center;width:54px;height:54px;border-radius:50%;font-size:1.4rem;background:color-mix(in srgb,var(--accent) 14%,var(--surface));font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif}
  html:root body #slist .item.srow:has(.vs-det) .btn[data-wa]::before{content:"💬"}
  html:root body #slist .item.srow:has(.vs-det) .btn[data-pdf]::before{content:"🧾"}
  html:root body #slist .item.srow:has(.vs-det) .btn[data-ticket]::before{content:"🖨️"}
  html:root body #slist .item.srow:has(.vs-det) .btn[data-ret]::before{content:"↩️"}
  html:root body #slist .item.srow:has(.vs-det) .btn[data-void]::before{content:"🚫";background:color-mix(in srgb,#dc2626 14%,var(--surface))}
  html:root body #slist .item.srow:has(.vs-det) .vsd-rc:not(#_x){order:3;background:var(--surface);border:1px solid var(--line);border-radius:24px;padding:6px 16px}
  html:root body #slist .item.srow:has(.vs-det)>.totals:not(#_x){order:4;background:var(--surface);border:1px solid var(--line);border-radius:24px;padding:10px 16px}
  html:root body #slist .item.srow:has(.vs-det)>button[data-open]:not(#_x){order:9;background:var(--surface)!important;border:1.5px solid color-mix(in srgb,var(--fg) 22%,var(--line))!important;border-radius:999px!important;min-height:46px;font-weight:800;color:var(--fg)!important}
}
@media (max-width:1099px){
  html:root body #slist .item.srow:has(.vs-det) .vsd-rc:not(#_x){grid-column:1/-1!important}
  html:root body #slist .item.srow:has(.vs-det) .vsd-top:not(#_x){align-items:flex-start!important;text-align:left!important}
  html:root body #slist .item.srow:has(.vs-det) :is(.vsd-acts,.sv-ag)>.btn:not(#_x){min-width:0;width:100%!important;justify-self:stretch;align-self:start}
  html:root body #slist .item.srow:has(.vs-det) .vsd-rc .dn-lines .r:not(#_x){display:flex;justify-content:space-between;gap:10px}
}
@media (max-width:1099px){html:root:not(#_a):not(#_b):not(#_c) body #slist .item.srow:has(.vs-det) .sv-ag>.btn.danger:not(#_x){background:none!important;color:#dc2626!important;border-radius:0!important}}

/* Detalle de la venta como PÁGINA APARTE (Juan: «en la maqueta abría en una página aparte»): hoja que sube y cubre la pantalla, con título y ✕. Solo celular. */
@media (max-width:1099px){
  html:root:not(#_a):not(#_b):not(#_c) body #slist .item.srow:has(.vs-det):not(#_x){position:fixed!important;left:0;right:0;bottom:0;top:44px;z-index:95;background:var(--bg)!important;border-radius:30px 30px 0 0!important;border:1px solid var(--line)!important;border-bottom:0!important;overflow-y:auto;overscroll-behavior:contain;padding:64px 16px calc(28px + env(safe-area-inset-bottom,0px))!important;margin:0!important;align-content:start;-webkit-overflow-scrolling:touch}
  html:root body #slist .item.srow:has(.vs-det):not(#_x)::before{content:"Venta N° " attr(data-vn);position:absolute;left:18px;top:14px;font-family:var(--f-display);font-size:1.55rem;font-weight:800;letter-spacing:-.02em;color:var(--fg)}
  html:root body #slist .item.srow:has(.vs-det)>button[data-open]:not(#_x){position:absolute!important;right:14px;top:12px;width:40px!important;height:40px!important;min-height:0!important;padding:0!important;font-size:0!important;border-radius:50%!important;display:grid;place-items:center;order:0;grid-column:auto}
  html:root body #slist .item.srow:has(.vs-det)>button[data-open]::after{content:"✕";font-size:1rem;font-weight:800;color:var(--fg)}
  html:root body:has(#tab-ventas:not([hidden]) #slist .item.srow .vs-det) nav.tabs,html:root:has(#tab-ventas:not([hidden]) #slist .item.srow .vs-det) #ivnav,html:root body:has(#tab-ventas:not([hidden]) #slist .item.srow .vs-det) #ivnav{visibility:hidden}
}

/* Ganancia de la venta con el estilo de Inicio (Juan: «esa parte la veo igual que antes»): tarjeta con 📈, el número grande en verde con su % en píldora y los productos debajo. */
@media (max-width:1099px){
  html:root:not(#_a):not(#_b):not(#_c) body #slist .item.srow:has(.vs-det)>.totals:not(#_x){display:flex!important;flex-direction:column;gap:6px;background:var(--surface);border:1px solid var(--line);border-radius:28px;padding:14px 16px}
  html:root body #slist .item.srow:has(.vs-det)>.totals .hint:not(#_x){order:-2;display:flex;align-items:center;gap:12px;margin:0;font-size:.85rem;color:var(--muted)}
  html:root body #slist .item.srow:has(.vs-det)>.totals .hint::before{content:"📈";display:grid;place-items:center;width:42px;height:42px;flex:none;border-radius:50%;background:#fdecc8;font-size:1.15rem;font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif}
  html:root body #slist .item.srow:has(.vs-det)>.totals .hint strong:not(#_x){font-size:1rem;font-weight:800;color:var(--fg)}
  html:root body #slist .item.srow:has(.vs-det)>.totals .r:has(strong):not(#_x){order:-1;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:6px 2px 8px;border-bottom:1px solid var(--line)}
  html:root body #slist .item.srow:has(.vs-det)>.totals .r:has(strong)>strong:first-child:not(#_x){font-size:.85rem;font-weight:700;color:var(--muted)}
  html:root body #slist .item.srow:has(.vs-det)>.totals .r:has(strong) .mgv:not(#_x){display:flex;align-items:center;gap:8px}
  html:root body #slist .item.srow:has(.vs-det)>.totals .r:has(strong) .mgv>span:first-child:not(#_x){font-family:var(--f-display);font-size:1.7rem;font-weight:800;letter-spacing:-.02em;color:var(--accent)}
  html:root body #slist .item.srow:has(.vs-det)>.totals .mgp:not(#_x){background:color-mix(in srgb,var(--accent) 14%,var(--surface));color:var(--accent);border-radius:999px;padding:3px 10px;font-size:.78rem;font-weight:800}
  html:root body #slist .item.srow:has(.vs-det)>.totals .r:not(:has(strong)):not(#_x){display:flex;justify-content:space-between;gap:10px;font-size:.88rem;color:var(--muted);padding:2px 2px}
  html:root body #slist .item.srow:has(.vs-det)>.totals .r:not(:has(strong)) .mgv:not(#_x){display:flex;gap:8px;color:var(--fg);font-weight:700}
  html:root body #slist .item.srow:has(.vs-det)>.totals>.row:not(#_x){justify-content:stretch;margin-top:4px}
  html:root:not(#_a):not(#_b):not(#_c) body #slist .item.srow:has(.vs-det)>.totals>.row .btn:not(#_x){width:100%;min-height:46px;border-radius:999px!important;background:var(--surface)!important;color:var(--fg)!important;border:1.5px solid color-mix(in srgb,var(--fg) 22%,var(--line))!important;font-weight:800}
}

/* ===== Inventario (rediseño, Juan 2026-11-23): lista A, detalle mezcla A+B, producto nuevo en UNA página «B». Solo celular. ===== */
@media (max-width:1099px){
  /* formulario «Producto nuevo» dentro de la hoja */
  html:root body #pform:not(#_x){background:none!important;border:0!important;box-shadow:none!important;padding:0!important}
  html:root body #pform label.f>:is(input,select,textarea):not([type=checkbox]):not(#_x){background:var(--surface)!important;border:1px solid var(--line)!important;border-radius:20px!important;min-height:54px;padding-inline:16px}
  html:root body #pform .row:last-child:not(#_x){flex-wrap:wrap!important}
  html:root:not(#_a):not(#_b):not(#_c) body #pform[data-pform] #pback:not(#_x){flex:0 0 auto}
  html:root:not(#_a):not(#_b):not(#_c) body #pform[data-pform] #psave:not(#_x){flex:1 1 0;background:var(--fg)!important;color:var(--bg)!important;border:1px solid var(--fg)!important;border-radius:999px!important;min-height:54px}
  html:root:not(#_a):not(#_b):not(#_c) body #pform[data-pform] #psavebuy:not(#_x){flex:1 1 100%;background:var(--surface)!important;color:var(--fg)!important;border:1.5px solid color-mix(in srgb,var(--fg) 22%,var(--line))!important;border-radius:999px!important;min-height:50px}

  /* detalle del producto: mezcla A (tarjeta negra) + B (acciones en círculos) */
  html:root:not(#_a):not(#_b):not(#_c) body #pdbody .pdph:not(#_x){width:120px;height:120px;border-radius:50%!important;margin:6px auto 10px;background:color-mix(in srgb,var(--accent) 10%,var(--surface))}
  html:root body #pdbody .pdph .thumb:not(#_x){border-radius:50%!important}
  html:root body #pdbody .pdname:not(#_x){text-align:center;font-family:var(--f-display);font-size:1.5rem;font-weight:800;letter-spacing:-.02em;margin:0}
  html:root body #pdbody .pdsub:not(#_x){text-align:center;color:var(--muted);margin-bottom:12px}
  html:root:not(#_a):not(#_b):not(#_c) body #pdbody .cptwo:not(#_x){display:grid!important;grid-template-columns:1fr auto;align-items:center;gap:8px;background:#0b0f0e;border-radius:30px;padding:16px 18px;margin-bottom:12px}
  html:root body #pdbody .cptwo .cpst:not(#_x){background:none!important;border:0!important;padding:0!important;color:#fff;border-radius:0}
  html:root body #pdbody .cptwo .cpst .k:not(#_x){color:#9fb0a8!important;font-size:.8rem}
  html:root body #pdbody .cptwo .cpst .v:not(#_x){font-family:var(--f-display);font-weight:800;color:#fff!important;font-size:2.1rem;letter-spacing:-.03em}
  html:root body #pdbody .cptwo .cpst+.cpst:not(#_x){text-align:right}
  html:root body #pdbody .cptwo .cpst+.cpst .v:not(#_x){font-size:1.1rem;background:#1d2522;color:#86efac!important;border-radius:999px;padding:4px 12px;display:inline-block}
  html:root body #pdbody .cptwo .cpst.low+.cpst .v,html:root body #pdbody .cptwo .cpst+.cpst.low .v:not(#_x){color:#fcd34d!important}
  html:root body #pdbody .cptwo .cpst+.cpst.bad .v:not(#_x){color:#fca5a5!important}
  html:root body #pdbody .cpacts:not(#_x){display:grid!important;grid-template-columns:repeat(5,1fr)!important;gap:4px;margin-bottom:12px}
  html:root body #pdbody .cpa:not(#_x){display:flex;flex-direction:column;align-items:center;gap:6px;background:none!important;border:0!important;box-shadow:none!important;min-height:0;padding:0;color:var(--fg)!important;font-weight:700;font-size:.7rem;text-align:center}
  html:root body #pdbody .cpa svg:not(#_x){display:none!important}
  html:root body #pdbody .cpa::before{display:grid;place-items:center;width:54px;height:54px;border-radius:50%;font-size:1.4rem;background:color-mix(in srgb,var(--accent) 14%,var(--surface));font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif}
  html:root body #pdbody .cpa[data-pd="stock"]::before{content:"📦"}
  html:root body #pdbody .cpa[data-pd="edit"]::before{content:"✏️"}
  html:root body #pdbody .cpa[data-pd="variant"]::before{content:"➕"}
  html:root body #pdbody .cpa[data-pd="label"]::before{content:"🏷️"}
  html:root body #pdbody .cpa[data-pd="share"]::before{content:"🔗"}
  html:root:not(#_a):not(#_b):not(#_c) body #pdbody .cpcta:not(#_x){background:var(--fg)!important;color:var(--bg)!important;border:0!important;border-radius:999px!important;min-height:54px;font-weight:800;width:100%;margin-bottom:6px}
  html:root body #pdbody .cpsec:not(#_x){font-family:var(--f-display);font-size:1.05rem;font-weight:800;margin:18px 4px 8px;text-transform:none;letter-spacing:0;color:var(--fg)}
  html:root body #pdbody .cpkv:not(#_x){background:var(--surface);border-left:1px solid var(--line);border-right:1px solid var(--line);border-bottom:1px solid var(--line);padding:12px 16px;display:flex;justify-content:space-between;gap:12px;margin:0}
  html:root body #pdbody .cpsec+.cpkv:not(#_x){border-top:1px solid var(--line);border-radius:22px 22px 0 0}
  html:root body #pdbody .cpkv:not(:has(+.cpkv)):not(#_x){border-radius:0 0 22px 22px}
  html:root body #pdbody .cpsec+.cpkv:not(:has(+.cpkv)):not(#_x){border-radius:22px}
  html:root body #pdbody .cpkv span:not(#_x){color:var(--muted)}
  html:root body #pdbody .cphd .cpib:not(#_x){width:40px;height:40px;border-radius:50%!important;padding:0;background:var(--surface)!important;border:1px solid var(--line)!important}
}
@media (max-width:1099px){
  html:root body #pdbody .cpsec:is(.cpg,.cpc,.cpm):not(#_x){display:flex;align-items:center;gap:12px}
  html:root body #pdbody .cpsec:is(.cpg,.cpc,.cpm)::before{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;font-size:1.05rem;background:#fdecc8;font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif}
  html:root body #pdbody .cpsec.cpg::before{content:"📈"}
  html:root body #pdbody .cpsec.cpc::before{content:"🏷️";background:#efe6ff}
  html:root body #pdbody .cpsec.cpm::before{content:"🕘";background:#e3edff}
  html:root body #pdbody .cpsec.cpg~.cpkv:last-of-type b:not(#_x){color:var(--accent)}
}

/* Ficha «Agregar producto nuevo» con el estilo de Inicio (Juan: «no tiene el rediseño nuevo») */
@media (max-width:1099px){
  html:root body .modal:has(#pform) .dlg.sheetdlg:not(#_x){background:var(--bg)!important;height:92dvh;max-height:92dvh;display:flex;flex-direction:column;padding:0 16px calc(16px + env(safe-area-inset-bottom,0px))!important}
  html:root body .modal:has(#pform) .sheethd:not(#_x){background:none!important;position:static;padding:6px 0 8px;margin:0}
  html:root body .modal:has(#pform) .sheethd h2:not(#_x){font-family:var(--f-display);font-size:1.7rem;font-weight:800;letter-spacing:-.02em}
  html:root body .modal:has(#pform) .sheethd .sheetx:not(#_x){width:40px;height:40px;border-radius:50%!important;background:var(--surface)!important;border:1px solid var(--line)!important}
  html:root body .modal:has(#pform) #pform:not(#_x){flex:1;min-height:0;display:flex;flex-direction:column;gap:10px;overflow-y:auto}
  html:root body #pform[data-pform]>.row:last-child:not(#_x){margin-top:auto;position:sticky;bottom:0;background:var(--bg);padding:8px 0 2px}
  /* foto como tarjeta */
  html:root body #pform>.row:has(#pphoto):not(#_x){background:var(--surface);border:1px solid var(--line);border-radius:26px;padding:12px 14px;align-items:center;gap:14px;flex-wrap:nowrap}
  html:root body #pform #pphoto .thumb,html:root body #pform #pphoto>*:not(#_x){border-radius:50%!important}
  html:root body #pform #pphoto:not(#_x){width:72px;height:72px;flex:none;border-radius:50%;overflow:hidden;background:color-mix(in srgb,var(--accent) 12%,var(--surface))}
  html:root body #pform #pphotocambtn:not(#_x){background:var(--fg)!important;color:var(--bg)!important;border:0!important;border-radius:999px!important;font-weight:800}
  html:root body #pform #pphotobtn:not(#_x){background:var(--surface)!important;color:var(--fg)!important;border:1.5px solid color-mix(in srgb,var(--fg) 22%,var(--line))!important;border-radius:999px!important;font-weight:800}
  html:root body #pform #pphotorm:not(#_x){border-radius:999px!important}
  /* nota y campos */
  html:root body #pform #pnote:not(#_x){background:color-mix(in srgb,var(--accent) 10%,var(--surface));border:1px solid color-mix(in srgb,var(--accent) 25%,var(--line));border-radius:22px;padding:12px 14px;color:var(--fg)}
  html:root body #pform .mnyw>input:not(#_x),html:root body #pform label.f input:not([type=checkbox]):not(#_x),html:root body #pform label.f select:not(#_x),html:root body #pform label.f textarea:not(#_x){background:var(--surface)!important;border:1px solid var(--line)!important;border-radius:20px!important;box-shadow:none!important}
  html:root body #pform label.f:not(#_x){gap:6px;font-weight:700;color:var(--muted);font-size:.8rem}
  html:root body #pform .req{color:var(--accent)}
  /* tarjetas «otras versiones» y «más opciones» */
  html:root body #pform .card.pvers:not(#_x),html:root body #pform .pmore:not(#_x){background:var(--surface);border:1px solid var(--line);border-radius:26px;box-shadow:none;padding:14px 16px}
  html:root body #pform .pvers h2:not(#_x){font-family:var(--f-display);font-size:1.05rem;font-weight:800;display:flex;align-items:center;gap:12px}
  html:root body #pform .pvers h2::before{content:"🧬";display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:#efe6ff;font-size:1.1rem;font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif}
  html:root body #pform .pmore>summary:not(#_x){display:flex;align-items:center;gap:12px;text-align:left;list-style:none}
  html:root body #pform .pmore>summary::before{content:"⚙️";display:grid;place-items:center;width:40px;height:40px;flex:none;border-radius:50%;background:#e3edff;font-size:1.1rem;font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif}
  html:root body #pform .pmore>summary span:not(#_x){display:block;font-weight:800;color:var(--fg);font-size:1rem}
  html:root body #pform .pmore>summary small:not(#_x){display:block;color:var(--muted)}
  html:root body #pform .btn.line:not(#_x){border-radius:999px!important}
  html:root body #pform .chk:not(#_x){background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:10px 14px;margin:0}
}
@media (max-width:1099px){
  html:root body .modal:has(#pform) .sheethd .grab:not(#_x){display:none}
  html:root body #pform .row>.f:not(#_x){min-width:0}
  html:root body #pform details.pmore:not(#_x)>summary::before{content:"⚙️"!important;display:grid;place-items:center;width:40px;height:40px;flex:none;border-radius:50%;background:#e3edff;font-size:1.1rem;font-weight:400;font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif}
  html:root body #pform details.pmore:not(#_x)>summary{display:flex!important;align-items:center;gap:12px;text-align:left;color:var(--fg)}
  html:root body #pform details.pmore>summary>span:not(#_x){flex:1;text-align:left}
  html:root body #pform details.pmore>summary>small:not(#_x){display:none}
}
@media (max-width:1099px){html:root body .modal:has(#pform) .grab:not(#_x){display:none!important}html:root body #pform details.pmore:not(#_x)>summary{flex-direction:row!important}}

@media (max-width:1099px){
  html:root body #pform[data-pform]>#pformtitle:not(#_x){display:none!important}
  html:root body #pform[data-pform]>[data-pg]:not(.pgshow):not(#_x){display:none!important}
  html:root body #pform .pgrow:not(#_x){display:flex;align-items:center;gap:12px;width:100%;padding:12px 14px;background:var(--surface);border:1px solid var(--line);border-radius:24px;text-align:left;color:var(--fg);font:inherit}
  html:root body #pform .pgrow .pgem{display:grid;place-items:center;width:40px;height:40px;flex:none;border-radius:50%;background:color-mix(in srgb,var(--accent) 14%,var(--surface));font-size:1.1rem;font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif}
  html:root body #pform .pgrow .pgtx{flex:1;min-width:0;display:flex;flex-direction:column}
  html:root body #pform .pgrow .pgtx b{font-weight:800;font-size:.98rem}
  html:root body #pform .pgrow .pgtx small{color:var(--muted);font-size:.8rem}
  html:root body #pform .pgrow .pgch{font-style:normal;font-size:1.3rem;font-weight:800;color:var(--muted);transition:transform .2s}
  html:root body #pform .pgrow.open .pgch{transform:rotate(90deg)}
  html:root body #pform.card:not(#_x)>.pgrow.open+*{margin-top:0}
}

/* Inventario: filas de la lista como la maqueta A (círculo, nombre, categoría y SKU, precio y etiqueta de stock a la derecha) y filtros en píldoras. Solo celular. */
@media (max-width:1099px){
  html:root:not(#_a):not(#_b):not(#_c) body #ilist:not(.v-mosaico) .ir2:not(#_x){display:grid;grid-template-columns:46px minmax(0,1fr) auto;grid-template-areas:"th n p" "th s t";column-gap:12px;row-gap:2px;align-items:center}
  html:root body #ilist:not(.v-mosaico) .ir2 :is(.vm,.l1,.l2):not(#_x){display:contents}
  html:root body #ilist:not(.v-mosaico) .ir2>.thumb:not(#_x){grid-area:th;width:46px!important;height:46px!important;border-radius:50%!important;margin:0!important}
  html:root body #ilist:not(.v-mosaico) .ir2 .l1 b:not(#_x){grid-area:n;font-size:.95rem;font-weight:800;min-width:0}
  html:root body #ilist:not(.v-mosaico) .ir2 .l1 .vamt:not(#_x){grid-area:p;justify-self:end;font-family:var(--f-display);font-weight:800;font-size:.95rem}
  html:root body #ilist:not(.v-mosaico) .ir2 .l2>span:first-child:not(#_x){grid-area:s;font-size:.78rem;color:var(--muted);min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  html:root body #ilist:not(.v-mosaico) .ir2 .l2>.vtg:not(#_x){grid-area:t;justify-self:end;font-size:.7rem;padding:2px 9px}
  html:root body #ilist:not(.v-mosaico) .ir2 .l2>.vtg+.vtg:not(#_x){grid-area:t;margin-top:20px}
  /* filtros */
  html:root:not(#_a):not(#_b):not(#_c) body #tab-inventario .vctl select:not(#_x),html:root body #tab-inventario .vctl>label select:not(#_x){border-radius:999px!important;background:var(--surface)!important;border:1px solid var(--line)!important;color:var(--fg);font-weight:800;box-shadow:none}
  html:root body #tab-inventario .vsw:not(#_x){border-radius:999px;overflow:hidden;border:1px solid var(--line);background:var(--surface)}
  html:root body #tab-inventario .vsw button:not(#_x){border-radius:0}
}
@media (max-width:1099px){
  html:root:not(#_a):not(#_b):not(#_c) body #tab-inventario #isbar label.f input:not(#_x){background:var(--surface)!important;border:1px solid var(--line)!important;border-radius:999px!important}
  html:root:not(#_a):not(#_b):not(#_c) body #tab-inventario #isbar .scanbtn:not(#_x),html:root body #tab-inventario #isbar #iscan:not(#_x){background:var(--fg)!important;color:var(--bg)!important;border-radius:50%!important;width:48px;height:48px;border:0!important}
  html:root:not(#_a):not(#_b):not(#_c) body #tab-inventario #isbar .vsbtn:not(#_x){border-radius:50%!important;width:48px;height:48px;padding:0}
}

/* Inventario · Herramientas «A · Grupos en tarjetas»: cada herramienta con su emoji en círculo (Juan, 2026-11-23). Solo celular. */
@media (max-width:1099px){
  html:root:not(#_a):not(#_b):not(#_c) body #tab-inventario .card.fold>h2>.fic:not(#_x){width:42px;height:42px;display:grid;place-items:center;flex:none;border-radius:50%;background:color-mix(in srgb,var(--accent) 14%,var(--surface))!important}
  html:root body #tab-inventario .card.fold>h2>.fic::before:not(#_x){content:none}
  html:root:not(#_a):not(#_b):not(#_c) body #tab-inventario .card.fold:is(#catscard,#combocard,#labelcard,#mincard,#bpcard,#countcard,#movcard,#trashcard,#importcard)>h2>.fic::before{content:var(--emo)!important;background:none!important;-webkit-mask:none!important;mask:none!important;width:auto!important;height:auto!important;font-size:1.2rem;font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif;line-height:1}
  #tab-inventario #catscard{--emo:"🗂️"}#tab-inventario #combocard{--emo:"🎁"}#tab-inventario #labelcard{--emo:"🏷️"}#tab-inventario #mincard{--emo:"📏"}#tab-inventario #bpcard{--emo:"💲"}#tab-inventario #countcard{--emo:"📋"}#tab-inventario #movcard{--emo:"🔁"}#tab-inventario #trashcard{--emo:"🗑️"}#tab-inventario #importcard{--emo:"📥"}
}

/* Hojas de formulario (FSheet) con el estilo de Inicio: fondo de pantalla, título grande, campos y botones redondos; Conteo físico con filas en tarjeta. Solo celular. */
@media (max-width:1099px){
  html:root:not(#_a):not(#_b):not(#_c) body>.modal.sheetov>.dlg.sheetdlg:not(#_x){background:var(--bg)!important}
  html:root body>.modal.sheetov>.dlg.sheetdlg .sheethd:not(#_x){background:none!important}
  html:root body>.modal.sheetov>.dlg.sheetdlg .sheethd h2:not(#_x){font-family:var(--f-display);font-size:1.6rem;font-weight:800;letter-spacing:-.02em}
  html:root body>.modal.sheetov>.dlg.sheetdlg .sheetx:not(#_x){width:40px;height:40px;border-radius:50%!important;background:var(--surface)!important;border:1px solid var(--line)!important}
  html:root body>.modal.sheetov>.dlg.sheetdlg .card:not(#_x){background:none!important;border:0!important;box-shadow:none!important;padding:0!important}
  html:root body>.modal.sheetov>.dlg.sheetdlg input:not([type=checkbox]):not([type=radio]):not([type=file]):not(#_x),html:root body>.modal.sheetov>.dlg.sheetdlg select:not(#_x),html:root body>.modal.sheetov>.dlg.sheetdlg textarea:not(#_x){background:var(--surface)!important;border:1px solid var(--line)!important;border-radius:20px!important;box-shadow:none!important}
  html:root:not(#_a):not(#_b):not(#_c) body>.modal.sheetov>.dlg.sheetdlg .row>.btn:not(.small):not(.danger):not(#_x){min-height:50px;border-radius:999px!important;font-weight:800;box-shadow:none}
  html:root:not(#_a):not(#_b):not(#_c) body>.modal.sheetov>.dlg.sheetdlg .row>.btn.primary:not(#_x){background:var(--fg)!important;color:var(--bg)!important;border:1px solid var(--fg)!important}
  html:root:not(#_a):not(#_b):not(#_c) body>.modal.sheetov>.dlg.sheetdlg .row>.btn:not(.primary):not(.small):not(.danger):not(#_x){background:var(--surface)!important;color:var(--fg)!important;border:1.5px solid color-mix(in srgb,var(--fg) 22%,var(--line))!important}
  html:root body>.modal.sheetov>.dlg.sheetdlg .row>.btn.primary:disabled:not(#_x){opacity:.4}
  /* Conteo físico */
  html:root body #cntbody>.list:not(#_x){background:var(--surface);border:1px solid var(--line);border-radius:26px;padding:2px 14px;gap:0}
  html:root body #cntbody>.list>.item:not(#_x){background:none!important;border:0!important;border-bottom:1px solid var(--line)!important;border-radius:0!important;padding:10px 0!important;display:flex;align-items:center;gap:12px}
  html:root body #cntbody>.list>.item:last-child:not(#_x){border-bottom:0!important}
  html:root body #cntbody>.list>.item input:not(#_x){width:104px!important;text-align:center;font-weight:800;font-size:1rem;min-height:46px;padding-inline:6px!important}
  html:root body #cntbody>.list>.item input::placeholder{font-size:.8rem;font-weight:600}
  html:root body #cntbody>.hint:first-child:not(#_x){background:color-mix(in srgb,var(--accent) 10%,var(--surface));border:1px solid color-mix(in srgb,var(--accent) 25%,var(--line));border-radius:22px;padding:12px 14px;color:var(--fg)}
  html:root body #cntbody #cntsum:not(#_x){background:#0b0f0e;color:#fff;border-radius:999px;padding:10px 16px;text-align:center;margin:10px 0}
  html:root body #cntbody #cntsum b:not(#_x){color:#fff}
}

/* ===== Caja (rediseño, Juan 2026-11-23): cierre del día «A · Resumen en tarjeta y cierre abajo» y menú «A · Grupos en tarjetas». Solo celular. ===== */
@media (max-width:1099px){
  /* cierre: resumen */
  html:root body #closecard #csum .cj-tot:not(#_x){display:none}
  html:root:not(#_a):not(#_b):not(#_c) body #closecard .cj-rows:not(#_x){background:var(--surface);border:1px solid var(--line);border-radius:26px;padding:2px 14px;gap:0}
  html:root body #closecard .cj-rows>.r:not(#_x){display:flex;align-items:center;gap:12px;padding:9px 0;border-bottom:1px solid var(--line);background:none}
  html:root body #closecard .cj-rows>.r:last-child:not(#_x){border-bottom:0}
  html:root body #closecard .cj-rows>.r>.ci:not(#_x){display:grid;place-items:center;width:40px;height:40px;flex:none;border-radius:50%;background:color-mix(in srgb,var(--accent) 14%,var(--surface))!important}
  html:root body #closecard .cj-rows>.r>.ci svg:not(#_x){display:none!important}
  html:root body #closecard .cj-rows>.r>.ci::before{font-size:1.05rem;font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif}
  html:root body #closecard .cj-rows>.r:nth-child(1)>.ci::before{content:"🛒"}
  html:root body #closecard .cj-rows>.r:nth-child(2)>.ci::before{content:"💵"}
  html:root body #closecard .cj-rows>.r:nth-child(4)>.ci::before{content:"💳"}
  html:root body #closecard .cj-rows>.r:nth-child(5)>.ci::before{content:"🏦"}
  html:root body #closecard .cj-rows>.r:nth-child(6)>.ci::before{content:"💵"}
  html:root body #closecard .cj-rows>.r:nth-child(7)>.ci::before{content:"💰"}
  html:root body #closecard .cj-rows>.r:nth-child(8)>.ci::before{content:"🧾"}
  html:root body #closecard .cj-rows>.r:nth-child(9)>.ci::before{content:"🚚"}
  html:root body #closecard .cj-rows>.r.sub:not(#_x){padding-left:20px;color:var(--muted);font-size:.9rem}
  html:root body #closecard .cj-rows>.r.sub>.ci:not(#_x){width:30px;height:30px}
  html:root body #closecard .cj-rows>.r.neg .num:not(#_x){color:#dc2626}
  html:root body #closecard .cj-rows .num:not(#_x){font-family:var(--f-display);font-weight:800}
  /* cierre: formulario */
  html:root body #closecard .cjclosef:not(#_x){display:flex;flex-direction:column;gap:10px;margin-top:12px}
  html:root body #closecard .cjclosef>h2:not(#_x){font-family:var(--f-display);font-size:1.25rem;font-weight:800}
  html:root:not(#_a):not(#_b):not(#_c) body #closecard .cjdebe:not(#_x){background:#0b0f0e;color:#fff;border-radius:26px;padding:12px 18px;display:flex;justify-content:space-between;align-items:center}
  html:root body #closecard .cjdebe b:not(#_x){font-family:var(--f-display);font-size:1.6rem;font-weight:800;color:#fff}
  html:root body #closecard .cjclosef label.f input:not(#_x){background:var(--surface)!important;border:1px solid var(--line)!important;border-radius:20px!important;min-height:54px;box-shadow:none}
  html:root:not(#_a):not(#_b):not(#_c) body #closecard #cclose:not(#_x){background:var(--fg)!important;color:var(--bg)!important;border:1px solid var(--fg)!important;border-radius:999px!important;min-height:54px;font-weight:800}
  html:root body #closecard h3.sub:not(#_x){font-family:var(--f-display);font-size:1.05rem;font-weight:800;text-transform:none;letter-spacing:0;color:var(--fg)}

  /* menú de Caja: emoji en círculo en cada herramienta */
  html:root:not(#_a):not(#_b):not(#_c) body #tab-caja .card.fold:not(#closecard)>h2>.fic:not(#_x){width:42px;height:42px;display:grid;place-items:center;flex:none;border-radius:50%;background:color-mix(in srgb,var(--accent) 14%,var(--surface))!important}
  html:root:not(#_a):not(#_b):not(#_c) body #tab-caja .card.fold:is(#trcard,#mvcard,#cjmov,#gcard,#mcard,#chistcard,#ptcard)>h2>.fic::before{content:var(--emo)!important;background:none!important;-webkit-mask:none!important;mask:none!important;width:auto!important;height:auto!important;font-size:1.2rem;font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif;line-height:1}
  #tab-caja #trcard{--emo:"🏦"}#tab-caja #mvcard{--emo:"💵"}#tab-caja #cjmov{--emo:"📜"}#tab-caja #gcard{--emo:"🧾"}#tab-caja #mcard{--emo:"📊"}#tab-caja #chistcard{--emo:"🕘"}#tab-caja #ptcard{--emo:"🔁"}
  html:root:not(#_a):not(#_b):not(#_c) body #tab-caja #closecard:not(#_x){background:none!important;border:0!important;box-shadow:none!important;padding:0!important}
  html:root:not(#_a):not(#_b):not(#_c) body #tab-caja #closecard>h2:not(#_x){display:none}
}
@media (max-width:1099px){
  html:root body #closecard label.f>input:not(#_x),html:root body #closecard label.f .mnyw>input:not(#_x){background:var(--surface)!important;border:1px solid var(--line)!important;border-radius:20px!important;box-shadow:none!important}
  html:root:not(#_a):not(#_b):not(#_c) body #tab-caja .empty:not(#_x){background:var(--surface)!important;border:1px solid var(--line);border-radius:22px;color:var(--muted)}
  html:root body #closecard .cjclosef .hint:not(#_x){color:var(--muted)}
}

/* Inventario en MOSAICO con el estilo de Inicio: tarjeta con círculo grande, nombre, precio y etiqueta de stock (Juan: «Inventario no tiene el nuevo diseño»). */
@media (max-width:1099px){
  html:root body #ilist.v-mosaico:not(#_x){gap:10px;padding:0}
  html:root body #ilist.v-mosaico .item.inv:not(#_x){flex-direction:column;align-items:stretch;background:var(--surface)!important;border:1px solid var(--line)!important;border-radius:24px!important;padding:12px!important;box-shadow:none!important;min-width:0}
  html:root body #ilist.v-mosaico .ir2:not(#_x){display:flex;flex-direction:column;align-items:flex-start;gap:8px;width:100%;min-width:0}
  html:root body #ilist.v-mosaico .ir2>.thumb:not(#_x){width:100%!important;height:92px!important;border-radius:18px!important;margin:0!important;background:color-mix(in srgb,var(--accent) 10%,var(--surface))!important;object-fit:contain}
  html:root body #ilist.v-mosaico .ir2 .vm:not(#_x){display:flex;flex-direction:column;gap:2px;width:100%;min-width:0}
  html:root body #ilist.v-mosaico .ir2 .l1:not(#_x){display:flex;flex-direction:column;gap:2px;align-items:flex-start}
  html:root body #ilist.v-mosaico .ir2 .l1 b:not(#_x){font-size:.88rem;line-height:1.2;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  html:root body #ilist.v-mosaico .ir2 .l1 .vamt:not(#_x){font-family:var(--f-display);font-weight:800;font-size:1rem}
  html:root body #ilist.v-mosaico .ir2 .l2:not(#_x){display:flex;flex-wrap:wrap;gap:4px}
  html:root body #ilist.v-mosaico .ir2 .l2>span:first-child:not(#_x){display:none}
  html:root body #ilist.v-mosaico .ir2 .vtg:not(#_x){font-size:.7rem;padding:2px 9px}
}
/* Carrito: cualquier bloque extra de la fila (serial/IMEI, avisos) ocupa todo el ancho, no una columna angosta */
@media (max-width:1099px){
  html:root body #tab-vender #vcart>.item.cl>*:not(.clhd):not(.clft):not(#_x){grid-column:1/-1;min-width:0}
  html:root body #tab-vender #vcart>.item.cl .clft>*:not(.pedit):not(.qty):not(#_x){grid-column:1/-1;min-width:0}
  html:root body #tab-vender #vcart .imeis:not(#_x){display:flex;flex-direction:column;gap:4px;width:100%}
  html:root body #tab-vender #vcart .imeil:not(#_x){display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}
  html:root body #tab-vender #vcart .imeil b:not(#_x){overflow-wrap:anywhere}
}

/* ===== Correcciones con el iPhone (Juan, 2026-11-23, v990) ===== */
@media (max-width:1099px){
  /* franja de la hora: del color de las tarjetas en TODAS las pantallas, y la fila de íconos con aire debajo de ella */
  html:root body:has(#app:not([hidden])) :is(#sattop,#edgestrip):not(#_x){background:var(--surface)!important;background-color:var(--surface)!important}
  html:root:not(#_a):not(#_b):not(#_c) body #app:not([data-tab="inicio"]):not([data-tab="vender"]):not([data-tab="ajustes"]) header.top:not(#_x){padding-top:calc(14px + var(--sat,0px))!important}
  html:root:not(#_a):not(#_b):not(#_c) body #tab-vender .vvhead:not(#_x){padding-top:calc(14px + var(--sat,0px))!important}
  html:root body header.top .head-r .navhb{display:none!important}

  /* carrito: hoja que sube hasta casi arriba, con barrita (se cierra deslizando) */
  html:root:not(#_a):not(#_b):not(#_c) body #tab-vender.sheetm.sheet-open>.cartcard:not(#_x){top:calc(var(--sat,0px) + 44px);max-height:none;height:auto;border-radius:30px 30px 0 0!important;border:1px solid var(--line)!important;border-bottom:0!important;padding-top:26px;z-index:96}
  html:root body #tab-vender.sheetm.sheet-open>.cartcard:not(#_x)::before{content:"";position:absolute;top:8px;left:50%;width:40px;height:5px;margin-left:-20px;border-radius:3px;background:color-mix(in srgb,var(--fg) 22%,transparent)}
  html:root body #tab-vender.sheetm.sheet-open>.cartcard .cart-scroll:not(#_x){flex:1 1 auto;min-height:0;overflow-y:auto}
  html.vsheet body::after{content:"";position:fixed;inset:0;background:var(--scrim,rgba(0,0,0,.4));z-index:94;pointer-events:none}

  /* detalle de la venta: barrita arriba y fondo oscurecido como las demás hojas */
  html:root body #slist .item.srow:has(.vs-det):not(#_x)::after{content:"";position:absolute;top:8px;left:50%;width:40px;height:5px;margin-left:-20px;border-radius:3px;background:color-mix(in srgb,var(--fg) 22%,transparent)}
  html:root body:has(#tab-ventas:not([hidden]) #slist .item.srow .vs-det)::after{content:"";position:fixed;inset:0;background:var(--scrim,rgba(0,0,0,.4));z-index:94;pointer-events:none}
  html:root:not(#_a):not(#_b):not(#_c) body #slist .item.srow:has(.vs-det):not(#_x){z-index:96;grid-auto-rows:max-content;align-content:start;align-items:start}
  html:root body #slist .item.srow:has(.vs-det) :is(.vsd-acts,.sv-ag)>.btn:not(#_x){height:auto!important;min-height:86px!important;overflow:visible;align-self:start}
}

/* ===== Inventario completo con el estilo de Inicio (Juan: «¿por qué Inventario no tiene el nuevo diseño?») — pestañas, buscador, filtros y cambio de vista. Solo celular. ===== */
@media (max-width:1099px){
  /* pestañas Productos / Repuestos / Herramientas en píldoras */
  html:root:not(#_a):not(#_b):not(#_c) body #invseg:not(#_x){background:none!important;padding:0!important;gap:8px!important;display:flex!important;border-radius:0!important;overflow-x:auto;scrollbar-width:none}
  html:root:not(#_a):not(#_b):not(#_c) body #invseg>button:not(#_x){flex:0 0 auto;min-height:42px;padding:0 18px;border-radius:999px!important;background:var(--surface)!important;border:1px solid var(--line)!important;color:var(--fg)!important;font-weight:800;box-shadow:none!important}
  html:root:not(#_a):not(#_b):not(#_c) body #invseg>button:is(.on,[aria-selected="true"]):not(#_x){background:var(--fg)!important;color:var(--bg)!important;border-color:var(--fg)!important}
  /* buscador y botones redondos */
  html:root:not(#_a):not(#_b):not(#_c) body #tab-inventario #isbar .vsbtn:not(#_x){width:48px;height:48px;border-radius:50%!important;padding:0;background:var(--surface)!important;color:var(--fg)!important;border:1px solid var(--line)!important}
  html:root:not(#_a):not(#_b):not(#_c) body #tab-inventario #isbar .vsbtn.primary:not(#_x){background:var(--accent)!important;color:var(--accent-ink,#fff)!important;border-color:var(--accent)!important}
  html:root:not(#_a):not(#_b):not(#_c) body #tab-inventario .empty:not(#_x){background:var(--surface)!important;border:1px solid var(--line);border-radius:22px;color:var(--muted)}
  /* filtros en píldoras blancas */
  html:root:not(#_a):not(#_b):not(#_c) body #tab-inventario select:not(#_x){background-color:var(--surface)!important;border:1px solid var(--line)!important;border-radius:999px!important;color:var(--fg);font-weight:800;box-shadow:none;min-height:44px;padding-inline:14px 26px}
  html:root body #tab-inventario #ivsw>button:not(#_x){width:40px!important;height:40px!important}
  /* cambio de vista: dos botones redondos, el activo en negro */
  html:root:not(#_a):not(#_b):not(#_c) body #tab-inventario #ivsw:not(#_x){display:flex;gap:6px;background:none!important;border:0!important;padding:0!important;border-radius:0}
  html:root:not(#_a):not(#_b):not(#_c) body #tab-inventario #ivsw>button:not(#_x){width:44px;height:44px;border-radius:50%!important;background:var(--surface)!important;color:var(--fg)!important;border:1px solid var(--line)!important;padding:0;display:grid;place-items:center}
  html:root:not(#_a):not(#_b):not(#_c) body #tab-inventario #ivsw>button:is([aria-pressed="true"],.on):not(#_x){background:var(--fg)!important;color:var(--bg)!important;border-color:var(--fg)!important}
  /* tarjeta de la lista */
  html:root body #tab-inventario #listcard:not(#_x){border-radius:28px;border:1px solid var(--line);box-shadow:none}
  html:root body #tab-inventario #listcard>h2:not(#_x){font-family:var(--f-display);font-weight:800}
}
/* Herramientas de Inventario abiertas dentro de la pantalla (categorías, combos, etiquetas, mínimos, movimientos, papelera): campos, botones y filas con el estilo de Inicio */
@media (max-width:1099px){
  html:root body #tab-inventario .card.fold:not(.closed) input:not([type=checkbox]):not([type=radio]):not([type=file]):not(#_x),html:root body #tab-inventario .card.fold:not(.closed) select:not(#_x),html:root body #tab-inventario .card.fold:not(.closed) textarea:not(#_x){background:var(--bg)!important;border:1px solid var(--line)!important;border-radius:20px!important;box-shadow:none!important;min-height:48px}
  html:root:not(#_a):not(#_b):not(#_c) body #tab-inventario .card.fold:not(.closed) .btn:not(.primary):not(.danger):not(#_x){background:var(--surface)!important;color:var(--fg)!important;border:1.5px solid color-mix(in srgb,var(--fg) 22%,var(--line))!important;border-radius:999px!important;font-weight:800;box-shadow:none}
  html:root:not(#_a):not(#_b):not(#_c) body #tab-inventario .card.fold:not(.closed) .btn.primary:not(#_x){background:var(--fg)!important;color:var(--bg)!important;border:1px solid var(--fg)!important;border-radius:999px!important;font-weight:800}
  html:root:not(#_a):not(#_b):not(#_c) body #tab-inventario .card.fold:not(.closed) .btn.danger:not(#_x){background:color-mix(in srgb,#dc2626 12%,var(--surface))!important;color:#dc2626!important;border:0!important;border-radius:999px!important}
  html:root body #tab-inventario .card.fold:not(.closed) .list>.item:not(#_x){background:var(--bg);border:1px solid var(--line);border-radius:22px;padding:10px 14px;margin-bottom:8px}
  html:root body #tab-inventario .card.fold:not(.closed) .hint:not(#_x){color:var(--muted)}
}
/* Botón de pantallas repetido a la derecha (opción antigua «barra a la derecha»): en el celular el menú es la barra de abajo */
@media (max-width:1099px){
  html:root:not(#_a):not(#_b):not(#_c):not(#_d) body header.top .head-r .navhb:not(#_x):not(#_y){display:none!important}
  html:root:not(#_a):not(#_b):not(#_c):not(#_d) body header.top .head-r #navcur:not(#_x):not(#_y){display:none!important}
}

/* v992 · Juan 2026-11-23: los íconos de arriba (pantallas, negocio, Jota, campana y foto) en TODAS las pantallas iguales a Inicio:
   círculos de 40 px, 25 px bajo la franja de la hora y 14 px a los lados (antes 44 px, 14 px y 8 px: se veían más grandes y pegados arriba) */
@media (max-width:1099px){
  html:root:not(#_a):not(#_b):not(#_c) body #app:not([data-tab="inicio"]):not([data-tab="vender"]):not([data-tab="ajustes"]) header.top:not(#_x){padding:calc(25px + var(--sat,0px)) 22px 0!important}
  html:root:not(#_a):not(#_b):not(#_c) body #app:not([data-tab="inicio"]):not([data-tab="vender"]):not([data-tab="ajustes"]) header.top :is(.navhb,.biztile,.jotahd,.bellbtn,.avatar):not(#_x){width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important}
  html:root:not(#_a):not(#_b):not(#_c) body #app:not([data-tab="inicio"]):not([data-tab="vender"]):not([data-tab="ajustes"]) header.top .jotahd .jmascot{width:26px;height:30px}
  html:root:not(#_a):not(#_b):not(#_c) body #app[data-tab="vender"] header.top .head-r:not(#_x){top:calc(var(--sat,0px) + 25px)!important;right:14px!important;gap:8px!important}
  html:root:not(#_a):not(#_b):not(#_c) body #app[data-tab="vender"] header.top .head-r>#avatar:not(#_x){width:40px!important;height:40px!important}
  html:root:not(#_a):not(#_b):not(#_c) body #tab-vender .vvhead:not(#_x){padding:calc(25px + var(--sat,0px)) 22px 4px!important}
}
@media (max-width:1099px){
  html:root:not(#_a):not(#_b):not(#_c) body #app[data-tab="vender"] header.top :is(.jotahd,.bellbtn,.avatar):not(#_x){width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important}
  html:root:not(#_a):not(#_b):not(#_c) body #app[data-tab="vender"] header.top .jotahd .jmascot{width:26px;height:30px}
}
@media (max-width:1099px){
  html:root:not(#_a):not(#_b):not(#_c) body #app:not([data-tab="inicio"]):not([data-tab="vender"]):not([data-tab="ajustes"]) header.top .head-r:not(#_x){gap:8px!important}
}
@media (max-width:1099px){
  html:root:not(#_a):not(#_b):not(#_c) body #tab-vender .vvhead .vvlogo:not(#_x){align-items:center;min-height:40px;height:40px;gap:8px;margin-bottom:6px}
  html:root:not(#_a):not(#_b):not(#_c) body #tab-vender .vvhead .vvlogo :is(.navhb,.biztile):not(#_x){width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;margin-top:0!important}
  html:root:not(#_a):not(#_b):not(#_c) body #tab-vender .vvhead .vvlogo .bizbrand:not(#_x){height:40px;margin-top:0}
}

/* v996 · Vender principal (Juan escogió la maqueta A de disenos/vender/principal-nuevo.png, con 3 columnas): sin tarjeta negra; buscador, categorías en píldoras,
   fotos en 3 columnas y la píldora negra «Ver carrito» siempre fija abajo */
.vvhero{display:contents}
.vvhero :is(.vhtop,.vhtot,.vhsub,.vhact){display:none}
@media (max-width:1099px){
  html body #tab-vender .vvhero>h2:not(#_x){display:none}
  html body #tab-vender .vvhero:not(#_x){margin-top:6px}
  html body #tab-vender .vctl:not(#_x){margin-top:10px}
  html body #tab-vender .qhead:not(#_x){margin:18px 4px 10px}
  html body #tab-vender .qhead b:not(#_x){font-family:var(--f-display);font-size:1.25rem;font-weight:800}
  html body #tab-vender .qhead svg:not(#_x){display:none}
  /* categorías en píldoras (antes un menú «Categoría ▾») */
  html body #tab-vender #vcatlbl:not(#_x){display:none!important}
  html:root:not(#_a):not(#_b):not(#_c) body #tab-vender #vcats:not([hidden]):not(#_x){display:flex;margin:0 0 6px;flex:1 1 100%}
  html:root:not(#_a):not(#_b):not(#_c) body #tab-vender #vcats .mchip:not(#_x):not(#_y){background:var(--surface)!important;color:var(--fg)!important;border:1px solid var(--line)!important;border-radius:999px!important;min-height:42px;padding:0 16px;font-weight:800}
  html:root:not(#_a):not(#_b):not(#_c) body #tab-vender #vcats .mchip.on:not(#_x):not(#_y){background:var(--fg)!important;color:var(--bg)!important;border-color:var(--fg)!important}
  html:root:not(#_a):not(#_b):not(#_c) body #tab-vender .vctl:not(#_x){flex-wrap:wrap}
  /* píldora del carrito: siempre a la vista mientras deslizas; «Ver carrito» en blanco */
  html:root:not(#_a):not(#_b):not(#_c) body #vbar #vgo:not(#_x):not(#_y):not(#_z):not(#_w):not(#_v):not(#_u):not(#_t){background:#fff!important;color:#0b0f0e!important}
}

/* v993 · Carrito con pestañas (Juan escogió la C de disenos/vender/carrito-nuevo.png; desde v998 vuelve a ser hoja): título grande con ✕ redondo,
   pestañas Productos · Cliente · Cobro y el total negro abajo */
@media (max-width:1099px){
  /* v998 (Juan): el carrito vuelve a ser una HOJA (sube desde abajo, con barrita, se cierra deslizando o con la ✕) y conserva el resto del diseño */
  html:root:not(#_a):not(#_b):not(#_c) body #tab-vender.sheetm.sheet-open>.cartcard:not(#_x){top:calc(var(--sat,0px) + 44px);padding:26px 16px calc(14px + env(safe-area-inset-bottom,0px))}
  html body #tab-vender.sheet-open>.cartcard .shd:not(#_x){margin:0 0 4px}
  html body #tab-vender.sheet-open>.cartcard .shd h2:not(#_x){font-size:1.9rem}
  html body #tab-vender.sheet-open>.cartcard .shd #vcpill:not(#_x){display:none}
  html:root:not(#_a):not(#_b):not(#_c) body #tab-vender.sheet-open>.cartcard #vclose:not(#_x){font-size:0;width:42px;height:42px;min-width:42px;padding:0;border-radius:50%!important;background:var(--surface)!important;border:1px solid var(--line)!important;position:relative}
  html body #tab-vender.sheet-open>.cartcard #vclose:not(#_x)::before{content:"✕";font-size:15px;font-weight:800;color:var(--fg);position:absolute;inset:0;display:grid;place-items:center}
  html body #tab-vender.sheet-open[data-vstep] #vsteps:not(#_x){display:block;margin:6px 0 12px}
  #vsteps .vtabs{display:flex;gap:4px;padding:4px;border-radius:999px;background:color-mix(in srgb,var(--fg) 8%,var(--bg))}
  #vsteps .vtabs button{flex:1;min-height:42px;border:0;border-radius:999px;background:transparent;color:var(--fg);font-weight:800;font-size:.88rem;padding:0 6px;white-space:nowrap}
  #vsteps .vtabs button.on{background:var(--fg);color:var(--bg)}
}

/* v994 · Juan 2026-11-23: el verde (color del negocio) queda para acciones secundarias, acentos y avisos; los botones PRINCIPALES son negros
   (blancos en oscuro) como en Inicio. Celular; el computador se hace con su rediseño. */
@media (max-width:1099px){
  html:root:not(#_a):not(#_b):not(#_c) body :is(.btn.primary,#vcajabtn,.vsbtn.primary,#vsw .primary,.caddbtn):not(:disabled):not(#_x):not(#_y):not(#_z):not(#_w){background:var(--fg)!important;color:var(--bg)!important;border-color:var(--fg)!important}
  html:root:not(#_a):not(#_b):not(#_c) body #tab-vender #vvsw button[aria-pressed="true"]:not(#_x):not(#_y):not(#_z):not(#_w){background:var(--fg)!important;color:var(--bg)!important}
  html:root:not(#_a):not(#_b):not(#_c) body #tab-vender #vvsw button[aria-pressed="true"] svg:not(#_x){stroke:var(--bg)}
  /* sobre la tarjeta negra el botón principal es blanco */
  html:root:not(#_a):not(#_b):not(#_c) body #tab-vender .vvhero .vhact #vhgo:not(:disabled):not(#_x):not(#_y):not(#_z):not(#_w){background:#fff!important;color:#0b0f0e!important;border:0!important}
}

/* v995 · Vender: íconos de cada cuenta distintos, productos en cuadros como Inicio (no círculos), variantes en píldoras y botones del carrito ordenados */
@media (max-width:1099px){
  html:root body #tab-vender #vpay .vpill[data-emo]::before{content:attr(data-emo)}
  /* fotos de los productos: cuadro con esquinas redondeadas como «Lo que más vendes» de Inicio (antes círculo, cortaba el producto) */
  html:root:not(#_a):not(#_b):not(#_c) body #vpick .vgrid>.qcard.gcard>.thumb:not(#_x):not(#_y){border-radius:18px!important;background:color-mix(in srgb,var(--fg) 5%,var(--surface))}
  html:root:not(#_a):not(#_b):not(#_c) body #vpick .vgrid>.qcard.gcard>.thumb img:not(#_x){border-radius:18px!important;object-fit:contain!important}
  /* productos con variantes: píldoras como las categorías */
  html:root:not(#_a):not(#_b):not(#_c) body #vpick .vgroup .vopt:not(#_x):not(#_y){border-radius:999px!important;background:var(--surface)!important;border:1px solid var(--line)!important;color:var(--fg)!important;font-weight:700;min-height:40px;padding:0 14px}
  html:root:not(#_a):not(#_b):not(#_c) body #vpick .vgroup .vopt.on:not(#_x):not(#_y){background:var(--fg)!important;color:var(--bg)!important;border-color:var(--fg)!important}
  html:root:not(#_a):not(#_b):not(#_c) body #vpick .vgroup:not(#_x){border-radius:24px}
  /* botones de abajo del carrito: el principal ocupa todo el ancho y los secundarios van debajo, parejos */
  html:root:not(#_a):not(#_b):not(#_c) body #tab-vender.sheet-open[data-vstep] .cart-foot>.row:not(#_x):not(#_y):not(#_z){display:flex!important;flex-wrap:wrap!important;gap:8px!important}
  html:root:not(#_a):not(#_b):not(#_c) body #tab-vender.sheet-open[data-vstep] .cart-foot>.row>:is(#vnext,#vconfirm):not(#_x):not(#_y):not(#_z){order:-1;flex:1 1 100%!important;width:100%!important;min-height:54px;align-items:center;justify-content:center;text-align:center;font-size:1.05rem;line-height:1.1;font-weight:800}
  html:root:not(#_a):not(#_b):not(#_c) body #tab-vender.sheet-open[data-vstep] .cart-foot>.row>:is(#vhold,#vquote):not(#_x):not(#_y):not(#_z){flex:1 1 0!important;min-height:46px;font-size:.92rem;padding-inline:10px}
}
@media (max-width:1099px){html:root:not(#_a):not(#_b):not(#_c) body #vbar:not(#_x):not(#_y){border:1px solid color-mix(in srgb,#fff 16%,#0b0f0e)!important}}

/* v997 · Ventas en espera (maqueta C: tarjeta negra que abre una hoja) y encabezado sin logo (maqueta C: módulo y fecha) */
.modbrand{display:none}
.vhs{display:flex;align-items:center;gap:12px;background:#0b0f0e;color:#fff;border-radius:26px;padding:12px 14px;margin:0 0 12px}
.vhs-i{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:#1f2623;font-size:1.3rem;flex:none;font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif}
.vhs-t{flex:1;min-width:0;display:flex;flex-direction:column}.vhs-t b{font-size:1.02rem;color:#fff}.vhs-t small{color:#9aa8a1;font-size:.85rem}
.vhs-b{flex:none;height:40px;padding:0 20px;border:0;border-radius:999px;background:#fff;color:#0b0f0e;font-weight:800;font-size:.95rem}
html[data-theme="dark"] .vhs{border:1px solid #1f2623}
#vholds:empty{display:none}
.vhsheet{display:flex;flex-direction:column;gap:10px;background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important}
.vhsheet[hidden]{display:none}
.vhsheet>h2{display:none}
.vhsheet .holds,.vhsheet .hold-draft{display:flex;flex-direction:column;gap:10px}
.vhsheet .hold{position:relative;display:grid;grid-template-columns:44px 1fr auto;column-gap:12px;align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:24px;padding:12px;margin:0}
.vhsheet .hold::before{content:"⏸️";grid-row:1;grid-column:1;display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:color-mix(in srgb,#f59e0b 22%,var(--surface));font-size:1.2rem;font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif}
.vhsheet .hold-hd{display:contents}
.vhsheet .hold-hd b:first-child{grid-column:2;grid-row:1;font-size:1.02rem;align-self:end}
.vhsheet .hold-hd b.num{grid-column:3;grid-row:1;font-family:var(--f-display);font-size:1.2rem;font-weight:800}
.vhsheet .hold>.hint{grid-column:2/4;grid-row:2;margin:0;font-size:.85rem}
.vhsheet .hold-ti{grid-column:1/-1;grid-row:0;display:none}
.vhsheet .hold-it,.vhsheet .hold-busy{display:none}
.vhsheet .hold>.hold-busy{display:block;grid-column:1/-1}
.vhsheet .hold-act{grid-column:1/-1;display:flex;gap:8px;margin-top:10px}
.vhsheet .hold-act .btn{flex:1;min-height:44px;border-radius:999px;font-weight:800;justify-content:center}
.vhsheet .hold-act .btn.primary{background:var(--fg)!important;color:var(--bg)!important;border:1px solid var(--fg)!important}
.vhsheet .hold-act .btn:not(.primary){background:var(--surface)!important;color:var(--fg)!important;border:1.5px solid color-mix(in srgb,var(--fg) 22%,var(--line))!important}
@media (max-width:1099px){
  html:root body #app:not([data-tab="inicio"]):not([data-tab="ajustes"]) .bizbrand:not(#_x){display:none!important}
  html:root body #app:not([data-tab="inicio"]):not([data-tab="ajustes"]) .modbrand:not(#_x){display:flex;flex-direction:column;justify-content:center;min-width:0;line-height:1.15;margin-left:2px;cursor:default}
  html:root body .modbrand b{font-family:var(--f-display);font-size:1.06rem;font-weight:800;color:var(--fg);white-space:nowrap}
  html:root body .modbrand small{font-size:.78rem;color:var(--muted);white-space:nowrap;text-transform:none}
}

/* v999 · Aviso «Hay una actualización» como hoja corta abajo (maqueta A) y hoja «Actualizar Cuadra» con dos caminos (maqueta B); el computador conserva la barra de arriba */
.upd-i,.upd-x{display:none}
@media (max-width:1099px){
  html:root body #updbar.netbar.upd:not(#_x){position:fixed;top:auto;left:14px;right:14px;bottom:calc(88px + var(--navb,0px) + env(safe-area-inset-bottom,0px));margin:0;z-index:44;padding:12px 12px 12px 14px;gap:12px;border-radius:28px;background:var(--surface);color:var(--fg);border:1px solid var(--line);box-shadow:0 8px 24px rgba(0,0,0,.16);text-align:left}
  html:root body #updbar.netbar.upd[hidden]:not(#_x){display:none}
  html:has(body>.modal) body #updbar.netbar.upd:not(#_x),html.vsheet body #updbar.netbar.upd:not(#_x){visibility:hidden}
  html:has(#tab-vender:not([hidden]) #vbar:not([hidden])) body #updbar.netbar.upd:not(#_x){bottom:calc(152px + var(--navb,0px) + env(safe-area-inset-bottom,0px))}
  #updbar .upd-i{display:grid;place-items:center;flex:none;width:44px;height:44px;border-radius:50%;background:color-mix(in srgb,#16a34a 16%,var(--surface));font-size:1.3rem;font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif}
  #updbar .upd-t{display:flex;flex-direction:column;min-width:0;line-height:1.2}#updbar .upd-t b{font-size:.98rem}#updbar .upd-t small{color:var(--muted);font-weight:500;font-size:.82rem}
  html:root body #updbar #updgo:not(#_x){min-height:40px;padding:0 16px;border-radius:999px;font-weight:800}
  #updbar .upd-x{display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:50%;border:1px solid var(--line);background:var(--surface);color:var(--fg);font-size:.8rem;font-weight:800;padding:0}
}
#updbar .upd-t{flex:1}
.updsheet .updsub{color:var(--muted);font-size:.98rem;line-height:1.4;margin:2px 0 10px}
.updsheet .updrow{display:flex;align-items:center;gap:12px;background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:12px 14px;margin-bottom:8px}
.updsheet .updrow>div{flex:1;min-width:0;display:flex;flex-direction:column}.updsheet .updrow small{color:var(--muted);font-size:.85rem}
.updsheet .updic{display:grid;place-items:center;flex:none;width:42px;height:42px;border-radius:50%;background:var(--c,#eef1ef);font-size:1.2rem;font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif}
.updsheet .updtot{font-family:var(--f-display);font-size:1.15rem;font-weight:800}
.updsheet .updbtns{display:flex;flex-direction:column;gap:8px;margin-top:12px}
.updsheet .updbtns .btn{min-height:52px;border-radius:999px;font-weight:800;justify-content:center;width:100%}
.updsheet .updbtns .btn.primary{background:var(--fg)!important;color:var(--bg)!important;border:1px solid var(--fg)!important}
.updsheet .updbtns .btn:not(.primary){background:var(--surface)!important;color:var(--fg)!important;border:1.5px solid color-mix(in srgb,var(--fg) 22%,var(--line))!important}

/* v1000 · Juan (2026-11-24): botón del escáner dentro del buscador (A) y hoja del escáner con el diseño nuevo (A) */
@media (max-width:1099px){
  html:root:not(#_a):not(#_b):not(#_c) body #tab-vender .vvhead .row:not(#_x){position:relative;flex-wrap:nowrap}
  html:root:not(#_a):not(#_b):not(#_c) body #tab-vender .vvhead #vsearch:not(#_x):not(#_y){padding-right:62px}
  html:root:not(#_a):not(#_b):not(#_c) body #tab-vender .vvhead #vscan:not(#_x):not(#_y):not(#_z){position:absolute;right:7px;top:auto;bottom:6px;transform:none;width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;border-radius:50%!important;padding:0!important;display:grid;place-items:center;background:color-mix(in srgb,var(--fg) 8%,var(--surface))!important;color:var(--fg)!important;border:0!important;box-shadow:none!important}
  html body #tab-vender .vvhead #vscan svg:not(#_x){display:none!important}
  html body #tab-vender .vvhead #vscan::before{content:"📷";font-size:1.15rem;line-height:1;font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif}
}
.scanbar{display:flex;align-items:center;gap:10px;margin:10px 2px 0}
.scanbar .hint{flex:1;margin:0;font-size:.9rem}
html:root body .dlg.scan .scanwrap:not(#_x){border-radius:26px}
html:root body .dlg.scan video:not(#_x){border-radius:26px}
html:root body .dlg.scan .scanbar .scantorch:not(#_x){position:static;flex:none;height:40px;padding:0 14px;border-radius:999px;background:var(--surface);color:var(--fg);border:1px solid var(--line);font-weight:800;font-size:.9rem;text-shadow:none}
html:root body .dlg.scan .scanbar .scantorch[aria-pressed="true"]:not(#_x){background:var(--fg);color:var(--bg);border-color:var(--fg)}
.scanlist{display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:2px 12px;margin-top:10px}
.scanlist[hidden]{display:none}
.scanlist .scrow{display:flex;align-items:center;gap:10px;padding:9px 2px}
.scanlist .scrow+.scrow{border-top:1px solid var(--line)}
.scanlist .scic{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:color-mix(in srgb,#16a34a 16%,var(--surface));font-size:1rem;flex:none;font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif}
.scanlist .sctx{flex:1;min-width:0;font-weight:700;font-size:.92rem;overflow-wrap:anywhere}
.scanlist b{font-family:var(--f-display);font-weight:800}
html:root body .dlg.scan .scanman:not(#_x){display:flex;flex-wrap:nowrap;gap:8px;margin-top:12px}
html:root body .dlg.scan .scanman input:not(#_x){min-height:48px;border-radius:999px;background:var(--surface)!important;border:1px solid var(--line)!important;padding-inline:16px;font-size:.95rem;min-width:0}
html:root body .dlg.scan .scanman .btn:not(#_x){flex:none;min-height:48px;border-radius:999px;background:var(--surface)!important;color:var(--fg)!important;border:1.5px solid color-mix(in srgb,var(--fg) 22%,var(--line))!important;font-weight:800;padding-inline:18px}
html:root body .dlg.scan .scandone:not(#_x){width:100%;min-height:52px;border-radius:999px;background:var(--fg)!important;color:var(--bg)!important;border:1px solid var(--fg)!important;font-weight:800;font-size:1rem;margin-top:12px;justify-content:center}
html:root body .dlg.scan .scancount:not(#_x){display:none}

/* v1000 · Botones de abajo del carrito (Juan escogió la B de disenos/vender/carrito-botones.png): el total y «Siguiente →» van juntos en una sola tarjeta negra
   y «Poner en espera» / «Guardar como cotización» quedan debajo como enlaces */
@media (max-width:1099px){
  html:root:not(#_a):not(#_b):not(#_c) body #tab-vender.sheet-open[data-vstep] .cart-foot:not(#_x):not(#_y):not(#_z){display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:0;border:0;padding-top:4px}
  html:root:not(#_a):not(#_b):not(#_c) body #tab-vender.sheet-open[data-vstep] .cart-foot>#vtotals:not(#_x):not(#_y):not(#_z){grid-area:1/1/2/3;display:flex;flex-direction:column;justify-content:center;background:#0b0f0e;color:#fff;border-radius:30px;padding:14px 178px 14px 20px;min-height:78px;margin:0;gap:2px;z-index:1}
  html body #tab-vender.sheet-open[data-vstep] .cart-foot #vtotals .r:not(#_x){color:#9aa8a1;font-size:.82rem;padding:0;background:transparent;display:flex;justify-content:space-between;gap:8px}
  html body #tab-vender.sheet-open[data-vstep] .cart-foot #vtotals .r .num:not(#_x){color:#fff}
  html:root:not(#_a):not(#_b):not(#_c) body #tab-vender.sheet-open[data-vstep] .cart-foot #vtotals .r.big.rtot:not(#_x):not(#_y){flex-direction:column;align-items:flex-start;gap:0;background:transparent!important;border-radius:0;padding:0;min-height:0;box-shadow:none}
  html body #tab-vender.sheet-open[data-vstep] .cart-foot #vtotals .r.rtot span:first-child:not(#_x){font-size:.82rem;font-weight:600;color:#9aa8a1!important}
  html body #tab-vender.sheet-open[data-vstep] .cart-foot #vtotals .r.rtot .num:not(#_x){font-size:1.75rem;line-height:1.1;font-weight:800;color:#fff!important}
  html:root:not(#_a):not(#_b):not(#_c) body #tab-vender.sheet-open[data-vstep] .cart-foot>.row:not(#_x):not(#_y):not(#_z):not(#_w){display:contents!important}
  html:root:not(#_a):not(#_b):not(#_c) body #tab-vender.sheet-open[data-vstep] .cart-foot>.row>:is(#vnext,#vconfirm):not(#_x):not(#_y):not(#_z):not(#_w):not(#_v){grid-area:1/2;justify-self:end;align-self:center;order:0;flex:none!important;width:auto!important;min-height:50px;margin:0 12px 0 0!important;padding:0 20px;z-index:2;background:#fff!important;color:#0b0f0e!important;border:0!important;border-radius:999px!important;font-size:.98rem}
  html:root:not(#_a):not(#_b):not(#_c) body #tab-vender.sheet-open[data-vstep] .cart-foot>.row>:is(#vhold,#vquote):not(#_x):not(#_y):not(#_z):not(#_w):not(#_v){grid-row:2;grid-column:auto;flex:none!important;width:100%!important;min-height:44px;margin-top:8px;background:transparent!important;border:0!important;box-shadow:none!important;color:var(--fg)!important;font-weight:800;font-size:.92rem;padding:0 6px;display:flex!important;justify-content:center!important;align-items:center;text-align:center}
  html body #tab-vender.sheet-open[data-vstep] .cart-foot:has(#vhold[hidden])>.row>#vquote:not(#_x),html body #tab-vender.sheet-open[data-vstep] .cart-foot:has(#vquote[hidden])>.row>#vhold:not(#_x){grid-column:1/-1}
  html body #tab-vender.sheet-open[data-vstep] .cart-foot>.row>#vhold:not(#_x){font-size:0!important}
  html body #tab-vender.sheet-open[data-vstep] .cart-foot>.row>#vhold::before{content:"⏸️ En espera";font-size:.92rem;white-space:nowrap}
  html body #tab-vender.sheet-open[data-vstep] .cart-foot>.row>#vquote:not(#_x){font-size:0!important}
  html body #tab-vender.sheet-open[data-vstep] .cart-foot>.row>#vquote::before{content:"📄 Cotización";font-size:.92rem;white-space:nowrap}
  html body #tab-vender.sheet-open[data-vstep] .cart-foot>.row>:is(#vback,#vcocancel):not(#_x){display:none!important}
  html[data-theme="dark"] body #tab-vender.sheet-open[data-vstep] .cart-foot>#vtotals:not(#_x){border:1px solid #1f2623}
}
@media (max-width:1099px){
  html:root:not(#_a):not(#_b):not(#_c) body #tab-vender.sheet-open[data-vstep="2"] .cart-foot>.row>#vhold:not(#_x):not(#_y):not(#_z):not(#_w):not(#_v):not(#_u),
  html:root:not(#_a):not(#_b):not(#_c) body #tab-vender.sheet-open[data-vstep="3"] .cart-foot>.row>#vhold:not(#_x):not(#_y):not(#_z):not(#_w):not(#_v):not(#_u),
  html:root:not(#_a):not(#_b):not(#_c) body #tab-vender.sheet-open[data-vstep] .cart-foot>.row>:is(#vhold,#vquote)[hidden]:not(#_x):not(#_y):not(#_z):not(#_w):not(#_v):not(#_u){display:none!important}
}
.cpq{display:flex;align-items:center;gap:10px;background:var(--surface);border:1px solid var(--line);border-radius:999px;padding:0 16px;min-height:52px;margin:2px 0 4px}
.cpq input{flex:1;min-width:0;border:0!important;background:transparent!important;box-shadow:none!important;padding:0;min-height:48px;font-size:1rem}
.cplist{display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line);border-radius:24px;padding:2px 12px;margin-bottom:12px}
.cplist[hidden]{display:none}
.cprow,.cpgen{display:flex;align-items:center;gap:12px;width:100%;text-align:left;background:transparent;border:0;color:var(--fg);padding:10px 2px;font:inherit;cursor:pointer}
.cprow+.cprow{border-top:1px solid var(--line)}
.cpgen{background:var(--surface);border:1px solid var(--line);border-radius:24px;padding:10px 14px}
.cpav{display:grid;place-items:center;flex:none;width:44px;height:44px;border-radius:50%;background:#e3f5e9;font-weight:800;font-size:1.05rem;color:#111;font-family:var(--f-display)}
.cpav.ok{font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif}
.cpt{flex:1;min-width:0;display:flex;flex-direction:column}.cpt b{font-size:1rem}.cpt small{color:var(--muted);font-size:.85rem}
.cpon{font-style:normal;font-size:.72rem;font-weight:800;background:color-mix(in srgb,#16a34a 16%,var(--surface));color:#15803d;padding:3px 9px;border-radius:999px;flex:none}
.cprow .chev{color:var(--muted);font-weight:800;font-size:1.1rem}
.cpbot{position:sticky;bottom:0;padding:14px 0 4px;background:linear-gradient(transparent,var(--bg) 30%)}
.cpbot .btn{width:100%;min-height:52px;border-radius:999px;font-weight:800;font-size:1rem;background:var(--fg)!important;color:var(--bg)!important;border:1px solid var(--fg)!important;justify-content:center}
#clipick.modal{z-index:130}
html:root body .cpq input:not(#_x):not(#_y){border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;padding:0!important;outline:0}

/* v1000 · Cliente nuevo (maqueta C): Persona / Empresa y dos filas que se abren */
.cpers{display:flex;gap:4px;padding:4px;border-radius:999px;background:color-mix(in srgb,var(--fg) 8%,var(--bg));margin:2px 0 12px}
.cpers button{flex:1;min-height:42px;border:0;border-radius:999px;background:transparent;color:var(--fg);font-weight:800;font-size:.92rem}
.cpers button.on{background:var(--fg);color:var(--bg)}
#cdoctw[hidden]{display:none}
.cfold{background:var(--surface);border:1px solid var(--line);border-radius:22px;margin:10px 0;padding:0 14px}
.cfold>summary{display:flex;align-items:center;gap:12px;list-style:none;cursor:pointer;padding:12px 0;min-height:56px}
.cfold>summary::-webkit-details-marker{display:none}
.cfold>summary::after{content:"›";margin-left:auto;color:var(--muted);font-weight:800;font-size:1.2rem;transition:transform .15s}
.cfold[open]>summary::after{transform:rotate(90deg)}
.cfold .cfe{display:grid;place-items:center;flex:none;width:40px;height:40px;border-radius:50%;background:#e3edff;font-size:1.1rem;font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif}
.cfold .cft{display:flex;flex-direction:column}.cfold .cft b{font-size:1rem}.cfold .cft small{color:var(--muted);font-size:.82rem;font-weight:500}
.cfold[open]{padding-bottom:12px}

/* v1001 · Vender: la tira de categorías se movía hacia arriba y abajo al deslizar (tenía scroll vertical propio y quedaba cortada). Ahora no tiene scroll vertical,
   mide lo que mide la píldora y va en la misma fila que el interruptor de lista / mosaico */
@media (max-width:1099px){
  html:root:not(#_a):not(#_b):not(#_c) body #tab-vender .vctl:not(#_x):not(#_y){flex-wrap:nowrap;align-items:center;gap:10px;margin:10px 0 6px}
  html:root:not(#_a):not(#_b):not(#_c) body #tab-vender .vctl #vcats:not([hidden]):not(#_x):not(#_y):not(#_z){order:1;flex:1 1 0;min-width:0;margin:0;overflow-x:auto;overflow-y:hidden;overscroll-behavior:contain;touch-action:pan-x pan-y;min-height:48px;height:48px;padding:2px 0;align-items:center}
  html:root:not(#_a):not(#_b):not(#_c) body #tab-vender .vctl #vcats .mchip:not(#_x):not(#_y){flex:none;height:42px;min-height:42px;margin:0}
  html:root:not(#_a):not(#_b):not(#_c) body #tab-vender .vctl #vvsw:not(#_x):not(#_y){order:2;margin:0 0 0 auto;flex:none}
}

/* v1002 · «Ver carrito» (Juan escogió la A de disenos/vender/ver-carrito.png): en Vender la barra de pantallas también sale y su círculo 🛒 es el carrito, con el número y el total;
   la píldora negra de abajo ya no existe en el celular */
.ivtot{display:none}
@media (max-width:1099px){
  html body #vbar:not(#_x){display:none!important}
  html:has(#app[data-tab="vender"]) #ivnav:not(#_x){bottom:max(22px,calc(6px + max(0px,env(safe-area-inset-bottom,0px) - 12px)))}
  html:has(#app[data-tab="vender"]) body #app:not(#_x){padding-bottom:calc(112px + env(safe-area-inset-bottom,0px))}
  html:has(#app[data-tab="vender"]) #ivnav .ivorb .ivtot:not(:empty){display:block;position:absolute;top:calc(100% + 3px);left:50%;transform:translateX(-50%);white-space:nowrap;font:800 .72rem/1 var(--f-display,inherit);color:var(--fg);pointer-events:none}
}
.scanlist .scth{display:grid;place-items:center;flex:none;width:44px;height:44px;border-radius:14px;overflow:hidden;background:color-mix(in srgb,var(--fg) 6%,var(--surface))}
.scanlist .scth .thumb{width:44px;height:44px;border-radius:14px;object-fit:contain;font-size:1.1rem}

/* v1004 · Juan: el interruptor lista / mosaico con el mismo diseño de píldora en toda la app: dos círculos separados, el activo en negro (como en Inventario) */
@media (max-width:1099px){
  html:root:not(#_a):not(#_b):not(#_c) body .vsw:not(#_x):not(#_y):not(#_z){display:flex;gap:6px;background:none!important;border:0!important;padding:0!important;border-radius:0!important;overflow:visible;box-shadow:none}
  html:root:not(#_a):not(#_b):not(#_c) body .vsw>button:not(#_x):not(#_y):not(#_z){width:44px!important;height:44px!important;min-width:44px;border-radius:50%!important;background:var(--surface)!important;color:var(--fg)!important;border:1px solid var(--line)!important;padding:0!important;display:grid;place-items:center;box-shadow:none}
  html:root:not(#_a):not(#_b):not(#_c) body .vsw>button:is([aria-pressed="true"],.on):not(#_x):not(#_y):not(#_z){background:var(--fg)!important;color:var(--bg)!important;border-color:var(--fg)!important}
  html body .vsw>button svg:not(#_x){width:22px;height:22px;stroke:currentColor}
  html body #tab-vender #vvsw>button[aria-pressed="true"] svg:not(#_x){stroke:var(--bg)}
}
@media (max-width:1099px){html:has(#app[data-tab="vender"]) #ivnav .ivorb .ivtot:not(:empty):not(#_x){background:var(--bg);padding:2px 8px;border-radius:999px}}

/* v1006 · Jota (Juan, captura del iPhone): sobraba un espacio entre el cuadro de escribir y «Mi historial» porque el margen de la barra de abajo del iPhone estaba ANTES del enlace.
   Ahora el margen va al final de la ventana y el enlace queda pegado al cuadro; sin historial no queda ninguna fila vacía */
html:root body .jchat .jin.jcomp:not(#_x){padding-bottom:6px}
html:root body .jchat .jdlg:not(#_x){padding-bottom:env(safe-area-inset-bottom,0px)}
html.kb-open body .jchat .jdlg:not(#_x){padding-bottom:0}
html:root body .jchat .jhistrow:not(#_x){padding:0 0 6px!important}
html:root body .jchat .jhistrow:not(:has(.linkbtn:not([hidden]))):not(#_x){display:none}
html:root body .jchat .jhistrow .linkbtn:not(#_x){min-height:36px;padding:0 10px;display:inline-flex;align-items:center}
html:root body .jchat .jin.jcomp:not(#_x){padding-bottom:2px}

/* v1007 · Jota (Juan): «Mi historial» arriba, junto al nombre (círculo con 🕘), y el cuadro de escribir pegado abajo */
.jchat .jhistb{flex:none;width:40px;height:40px;border-radius:50%;border:1px solid var(--line);background:var(--surface);color:var(--fg);display:grid;place-items:center;padding:0;cursor:pointer}
.jchat .jhistb[hidden]{display:none}
.jchat .jhistb .e{font-style:normal;font-size:1.15rem;line-height:1;font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif}
html:root body .jchat .jin.jcomp:not(#_x){padding-bottom:10px}
html:root body .jchat .jdlg:not(#_x):not(#_y){padding-bottom:calc(8px + env(safe-area-inset-bottom,0px))!important}
html.kb-open body .jchat .jdlg:not(#_x):not(#_y){padding-bottom:8px!important}
html:root body .jchat .jin.jcomp:not(#_x):not(#_y){margin-bottom:0!important}

/* v1008 · Historial de Jota (maqueta B): tarjetas por pregunta, buscador, Exportar y Listo abajo; Borrar en «⋯» */
.jhistdlg{display:flex;flex-direction:column;max-height:92dvh}
.jhistdlg .sheethd{position:relative}
.jhmore{flex:none;width:40px;height:40px;border-radius:50%;border:1px solid var(--line);background:var(--surface);color:var(--fg);font-size:1.3rem;font-weight:800;display:grid;place-items:center;padding:0;line-height:1}
.jhmore[hidden]{display:none}
.jhmenu{position:absolute;right:0;top:100%;z-index:5;background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:6px;box-shadow:0 10px 28px rgba(0,0,0,.18)}
.jhmenu[hidden]{display:none}
.jhmenu button{display:flex;align-items:center;gap:10px;border:0;background:transparent;color:var(--fg);font:inherit;font-weight:800;padding:10px 14px;border-radius:12px;white-space:nowrap;cursor:pointer}
.jhmenu .e,.jhbar .e,.jhempty .e,.jhsearch .e{font-style:normal;font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif}
.jhsub{color:var(--muted);font-size:.9rem;line-height:1.4;margin:2px 0 10px}
.jhsearch{display:flex;align-items:center;gap:10px;background:var(--surface);border:1px solid var(--line);border-radius:999px;padding:0 16px;min-height:50px;margin-bottom:10px}
.jhsearch input{flex:1;min-width:0;border:0!important;background:transparent!important;box-shadow:none!important;padding:0!important;min-height:46px;font-size:1rem;border-radius:0!important}
.jhlist{flex:1 1 auto;min-height:120px;overflow-y:auto;display:flex;flex-direction:column;gap:8px;padding-bottom:6px}
.jhc{display:flex;flex-direction:column;gap:3px;text-align:left;width:100%;background:var(--surface);color:var(--fg);border:1px solid var(--line);border-radius:22px;padding:12px 14px;font:inherit;cursor:pointer}
.jhc[hidden]{display:none}
.jhct{display:flex;justify-content:space-between;align-items:center}
.jhcd{font-size:.78rem;color:var(--muted);font-weight:700}
.jhc .chev{color:var(--muted);font-weight:800;transition:transform .15s}.jhc.open .chev{transform:rotate(90deg)}
.jhcq{font-size:1rem}
.jhca{color:var(--muted);font-size:.9rem;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.jhcfull{display:none;font-size:.92rem;line-height:1.4;margin-top:4px}
.jhc.open .jhca{display:none}.jhc.open .jhcfull{display:block}
.jhempty{display:flex;flex-direction:column;align-items:center;gap:8px;color:var(--muted);text-align:center;padding:26px 10px;font-size:.95rem}
.jhempty .e{font-size:1.8rem}
.jhbar{display:flex;gap:8px;padding:10px 0 2px}
.jhbar .btn{flex:1;min-height:50px;border-radius:999px;font-weight:800;justify-content:center}
.jhbar .btn:not(.primary){background:var(--surface)!important;color:var(--fg)!important;border:1.5px solid color-mix(in srgb,var(--fg) 22%,var(--line))!important}
.jhbar .btn.primary{background:var(--fg)!important;color:var(--bg)!important;border:1px solid var(--fg)!important}
#jhistbox.modal{z-index:140}
html:root:not(#_a):not(#_b):not(#_c) body #jhistbox .jhbar .btn:not(#_x):not(#_y){border-radius:999px!important;min-height:50px}
html:root body .jhsearch input:not(#_x):not(#_y){border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;-webkit-appearance:none;appearance:none;outline:0}
.jhsearch input::-webkit-search-cancel-button{-webkit-appearance:none}

/* v1010 · Crédito / Plan Separe (maqueta C: filas con emoji que abren una hoja) y Pago combinado (maqueta A: barra de progreso y filas en píldora) */
.vcrows[hidden]{display:none}
@media (max-width:1099px){
  html body #tab-vender.sheetm #vdeprow:not(#_x),html body #tab-vender.sheetm #vduew:not(#_x),html body #tab-vender.sheetm #vduehint:not(#_x){display:none!important}
}
@media (min-width:1100px){.vcrows{display:none!important}}
.vcrcard{display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line);border-radius:24px;padding:2px 14px;margin:2px 0 6px}
.vcr{display:flex;align-items:center;gap:12px;width:100%;text-align:left;background:transparent;border:0;color:var(--fg);font:inherit;padding:11px 0;cursor:pointer}
.vcr+.vcr{border-top:1px solid var(--line)}
.vcre{display:grid;place-items:center;flex:none;width:42px;height:42px;border-radius:50%;background:var(--c,#eef1ef);font-size:1.2rem;color:#111;font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif}
.vcrt{flex:1;min-width:0;display:flex;flex-direction:column}.vcrt b{font-size:1rem}.vcrt small{color:var(--muted);font-size:.82rem;line-height:1.25}
.vcrv{font-family:var(--f-display);font-size:1.05rem;font-weight:800;white-space:nowrap}
.cschips{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0 4px}
.cschip{min-height:42px;padding:0 16px;border-radius:999px;border:1px solid var(--line);background:var(--surface);color:var(--fg);font:inherit;font-weight:800;font-size:.9rem;cursor:pointer}
.cslist{display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line);border-radius:24px;padding:2px 14px;margin-top:4px}
.csopt{display:flex;align-items:center;gap:12px;background:transparent;border:0;color:var(--fg);font:inherit;padding:10px 0;text-align:left;cursor:pointer}
.csopt+.csopt{border-top:1px solid var(--line)}.csopt b{flex:1}.cscheck{font-weight:800;color:#15803d}
#credsheet.modal{z-index:140}
/* pago combinado */
.mixprog{background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:12px 14px;margin-bottom:10px}
.mixpt{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:.92rem}
.mixpbd{flex:none;font-size:.78rem;font-weight:800;padding:3px 10px;border-radius:999px;background:#fdecc8;color:#7a4a05}.mixpbd.ok{background:#e3f5e9;color:#15803d}.mixpbd.bad{background:#fde5e3;color:#b91c1c}
.mixpbar{height:10px;border-radius:6px;background:color-mix(in srgb,var(--fg) 10%,var(--bg));margin-top:8px;overflow:hidden}
.mixpbar i{display:block;height:100%;width:0;background:var(--fg);border-radius:6px;transition:width .2s}.mixpbar i.ok{background:#16a34a}.mixpbar i.bad{background:#dc2626}
@media (max-width:1099px){
  html:root body #tab-vender #vmix>.f:not(#_x){display:none}
  html:root body #tab-vender #vmix .mixrow:not(#_x){display:flex;align-items:center;gap:8px;background:var(--surface);border:1px solid var(--line);border-radius:24px;padding:10px 12px;margin-bottom:8px}
  html body #tab-vender #vmix .mixsel{position:relative;flex:1 1 0;min-width:0;display:flex;align-items:center;background:color-mix(in srgb,var(--fg) 6%,var(--bg));border-radius:999px;padding:6px 8px 6px 46px;min-height:44px}
  html body #tab-vender #vmix .mixsel::before{content:attr(data-emo);position:absolute;left:8px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--surface);font-size:1rem;font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif}
  html:root body #tab-vender #vmix .mixsel select:not(#_x){flex:1;min-width:0;border:0!important;background:transparent!important;box-shadow:none!important;padding:0 18px 0 0!important;min-height:36px;font-weight:800;font-size:.95rem;border-radius:0!important}
  html:root body #tab-vender #vmix .mixamt:not(#_x){flex:1 1 0;min-width:0;display:flex;align-items:center;gap:4px;background:var(--surface);border:1px solid var(--line);border-radius:999px;padding:0 6px 0 12px;min-height:44px}
  html:root body #tab-vender #vmix .mixamt input:not(#_x){flex:1;min-width:0;border:0!important;background:transparent!important;box-shadow:none!important;padding:0!important;min-height:40px;font-weight:800;border-radius:0!important}
  html:root body #tab-vender #vmix .mixfill:not(#_x){flex:none;height:32px;padding:0 12px;border-radius:999px;border:0;background:var(--fg);color:var(--bg);font-weight:800;font-size:.78rem}
  html:root body #tab-vender #vmix .mixadd:not(#_x){width:100%;min-height:46px;border-radius:999px!important;background:var(--surface)!important;color:var(--fg)!important;border:1.5px solid color-mix(in srgb,var(--fg) 22%,var(--line))!important;font-weight:800;justify-content:center}
}
/* v1010 · campos y botones sueltos del cobro (referencia, comprobante, efectivo recibido, nota) con el mismo estilo de píldora */
@media (max-width:1099px){
  html:root:not(#_a):not(#_b):not(#_c) body #tab-vender.sheet-open .cart-scroll label.f input:not([type=checkbox]):not([type=radio]):not(#_x):not(#_y),html:root:not(#_a):not(#_b):not(#_c) body #tab-vender.sheet-open .cart-scroll label.f select:not(#_x):not(#_y){background:var(--surface)!important;border:1px solid var(--line)!important;border-radius:999px!important;min-height:50px;padding-inline:18px;box-shadow:none!important}
  html:root:not(#_a):not(#_b):not(#_c) body #tab-vender.sheet-open :is(#vprfw .btn,#vextrabtn,.prfbtn):not(#_x):not(#_y){background:var(--surface)!important;color:var(--fg)!important;border:1.5px solid color-mix(in srgb,var(--fg) 22%,var(--line))!important;border-radius:999px!important;min-height:46px;font-weight:800;box-shadow:none!important}
}
.vcrch{font-size:1.5rem;color:var(--muted);line-height:1}
@media (max-width:1099px){
  html body #tab-vender #vmix .mixamt .mnyw:not(#_x){display:flex;align-items:center;flex:1;min-width:0}
  html body #tab-vender #vmix .mixamt .mnyw::before{position:static;transform:none;margin-right:4px;left:auto;top:auto}
  html body #tab-vender #vmix .mixamt .mnyw>input:not(#_x){padding-left:0!important}
  html body #tab-vender #vmix .mixsel{flex:1.3 1 0}
  html:root body #tab-vender #vmix .mixsel select:not(#_x){font-size:.88rem}
}

/* v1011 · Al tocar «Actualizar» se nota que trabaja: ícono girando, texto por pasos y barra que se llena */
#updbar{overflow:hidden}
.upd-prog{display:none;position:absolute;left:0;right:0;bottom:0;height:5px;background:color-mix(in srgb,var(--fg) 8%,transparent)}
.upd-prog i{display:block;height:100%;width:0;background:#16a34a;border-radius:0 3px 3px 0}
#updbar.updating .upd-prog{display:block}
#updbar.updating .upd-prog i{animation:updfill 1.8s cubic-bezier(.3,.6,.3,1) forwards}
#updbar.updating .upd-i{animation:updspin .9s linear infinite}
#updbar.updating :is(#updgo,#updx){display:none!important}
#updbar.updating .upd-t small{color:var(--muted)}
@keyframes updfill{from{width:6%}to{width:96%}}
@keyframes updspin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){#updbar.updating .upd-i{animation:none}#updbar.updating .upd-prog i{animation-duration:.01s}}

/* v1013 · hojas del cobro a crédito: siempre del mismo alto y en el mismo lugar; abono con teclas propias (el teclado del teléfono tapaba el campo); cuotas con el diseño nuevo */
html:root body .credsheetd:not(#_x){height:min(640px,88dvh);max-height:88dvh!important;display:flex;flex-direction:column;overflow:hidden}
.credsheetd .updbtns{margin-top:auto}
.kpdisp{display:flex;align-items:baseline;justify-content:center;gap:6px;margin:6px 0 4px;color:var(--fg)}
.kpcur{font-family:var(--f-display);font-size:1.6rem;font-weight:800;color:var(--muted)}
.kpdisp b{font-family:var(--f-display);font-size:2.6rem;font-weight:800;letter-spacing:-.02em;line-height:1.1}
.credsheetd .cschips{justify-content:center}
.kpgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:8px 0 6px}
.kpk{min-height:52px;border-radius:999px;border:1px solid var(--line);background:var(--surface);color:var(--fg);font-family:var(--f-display);font-size:1.35rem;font-weight:800;cursor:pointer;-webkit-tap-highlight-color:transparent}
.kpk:active{background:color-mix(in srgb,var(--fg) 10%,var(--surface))}
@media (max-height:700px){.kpk{min-height:44px}.kpdisp b{font-size:2.2rem}}
/* Pagar en cuotas */
@media (max-width:1099px){
  html:root body #tab-vender #vplan:not([hidden]):not(#_x){background:var(--surface);border:1px solid var(--line);border-radius:24px;padding:2px 14px 12px;margin:6px 0}
  html:root body #tab-vender #vplan .chk:not(#_x){display:flex;align-items:center;gap:12px;min-height:58px;margin:0;font-weight:800;font-size:1rem}
  html body #tab-vender #vplan .chk::before{content:"🗓️";display:grid;place-items:center;flex:none;width:42px;height:42px;border-radius:50%;background:#e3edff;font-size:1.2rem;font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif;order:-1}
  html body #tab-vender #vplanbox:not(#_x){border-top:1px solid var(--line);padding-top:10px}
  html body #tab-vender #vplanbox label.f:not(#_x){font-size:.78rem;font-weight:700;color:var(--muted)}
  html:root body #tab-vender #vpsim:not(#_x){background:color-mix(in srgb,var(--fg) 5%,var(--bg));border-radius:18px;padding:12px 14px;font-size:.86rem;line-height:1.5;color:var(--fg);margin-top:6px}
  html body #tab-vender #vpsim::first-line{font-weight:800;font-size:.95rem}
  html body #tab-vender #vpprice:not(#_x){background:color-mix(in srgb,var(--fg) 5%,var(--bg));border-radius:18px;padding:10px 12px;margin:8px 0}
}
@media (max-width:1099px){
  html:root body #tab-vender #vplan .chk:not(#_x){flex-direction:row!important;justify-content:flex-start!important}
  html:root body #tab-vender #vplan .chk>input:not(#_x){order:2;margin-left:auto!important;flex:none}
  html body #tab-vender #vplan .chk::before{order:-1}
}

/* v1014 · cobro del abono en el datáfono: total de la venta y lo que queda debiendo */
.bwinfo{display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:6px 14px;margin:10px 0}
.bwinfo>div{display:flex;justify-content:space-between;gap:8px;padding:6px 0;font-size:.92rem}
.bwinfo>div+div{border-top:1px solid var(--line)}.bwinfo span{color:var(--muted)}
/* v1014 · la ventana «Cobrando en el datáfono» tiene que quedar por encima del carrito (que es una hoja de z-index alto) */
.bwmodal.modal{z-index:150}

/* v1015 · Venta hecha (pantalla negra): «Nueva venta» vuelve a ser blanco (la regla de botones principales de v994 la dejaba negra sobre negro) y los números de «Recibido» y «Vuelto» se leen */
@media (max-width:1099px){
  html:root:not(#_a):not(#_b):not(#_c) body #vdone .dn .dn-new:not(#_x):not(#_y):not(#_z):not(#_w):not(#_v):not(#_u):not(#_t){background:#fff!important;color:#0b0f0e!important;border:0!important}
  html body #vdone .dn .totals .r *:not(#_x){color:inherit!important}
  html body #vdone .dn .totals .r.big,html body #vdone .dn .totals .r.big *:not(#_x){color:#4ade80!important}
  html body #vdone .dn .totals .r:not(.big):not(#_x){color:#e5ebe8!important}
}

/* v1015 · Venta hecha a crédito / Plan Separe / combinado: barra de lo pagado y desglose (maqueta B) */
.dn-pago{display:none}
@media (max-width:1099px){
  html body #vdone .dn .dn-pago:not(#_x){display:block;background:#141a18!important;border:1px solid #2b3330!important;border-radius:22px;padding:12px 16px;margin-top:2px;text-align:left;color:#e5ebe8}
  html body #vdone .dn .dn-pago.dnp-one:not(#_x){padding:4px 16px}
  html body #vdone .dn .dnp-h{display:flex;justify-content:space-between;align-items:center;gap:8px;color:#fff}
  html body #vdone .dn .dnp-b{font-size:.78rem;font-weight:800;padding:3px 10px;border-radius:999px;background:#fdecc8;color:#7a4a05}
  html body #vdone .dn .dnp-b.ok{background:#e3f5e9;color:#15803d}
  html body #vdone .dn .dnp-bar{height:10px;border-radius:6px;background:#2b3330;margin:8px 0;overflow:hidden}
  html body #vdone .dn .dnp-bar i{display:block;height:100%;background:#4ade80;border-radius:6px}
  html body #vdone .dn .dnr{display:flex;justify-content:space-between;gap:8px;padding:8px 0;color:#e5ebe8}
  html body #vdone .dn .dnr span{color:#9fb0a8}
  html body #vdone .dn .dnr b{font-family:var(--f-display);color:#fff}
  html body #vdone .dn .dn-pago .dnr+.dnr{border-top:1px solid #2b3330}
}

/* v1016 · Elegir IMEI / serial (maqueta A) */
.imsheet{display:flex;flex-direction:column;max-height:90dvh}
.imsub{color:var(--muted);font-size:.9rem;margin:2px 0 10px}
.imsearch{display:flex;align-items:center;gap:10px;background:var(--surface);border:1px solid var(--line);border-radius:999px;padding:0 16px;min-height:50px;margin-bottom:10px}
.imsearch input{flex:1;min-width:0;border:0!important;background:transparent!important;box-shadow:none!important;padding:0!important;min-height:46px;font-size:1rem;border-radius:0!important}
html:root body .imsearch input:not(#_x):not(#_y){border:0!important;background:transparent!important;box-shadow:none!important;border-radius:0!important;padding:0!important}
.imsearch .e,.imic{font-style:normal;font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif}
.imlist{flex:1 1 auto;min-height:120px;overflow-y:auto}
.imcard{background:var(--surface);border:1px solid var(--line);border-radius:24px;padding:2px 14px}
.imrow{display:flex;align-items:center;gap:12px;width:100%;text-align:left;background:transparent;border:0;color:var(--fg);font:inherit;padding:10px 0;cursor:pointer}
.imrow+.imrow{border-top:1px solid var(--line)}
.imic{display:grid;place-items:center;flex:none;width:42px;height:42px;border-radius:50%;background:color-mix(in srgb,var(--fg) 7%,var(--surface));font-size:1.15rem}
.imrow.on .imic{background:#e3f5e9}
.imt{flex:1;min-width:0;display:flex;flex-direction:column}.imt b{font-family:var(--f-display);font-size:1rem;letter-spacing:.02em;overflow-wrap:anywhere}.imt small{color:var(--muted);font-size:.82rem}
.imck{display:grid;place-items:center;flex:none;width:30px;height:30px;border-radius:50%;border:2px solid color-mix(in srgb,var(--fg) 22%,var(--line));color:var(--bg);font-weight:800;font-size:.85rem}
.imrow.on .imck{background:var(--fg);border-color:var(--fg)}
.imempty{text-align:center;color:var(--muted);padding:26px 10px}
.imbar{display:flex;flex-direction:column;gap:8px;padding-top:10px}
.imbar .btn{min-height:52px;border-radius:999px;font-weight:800;justify-content:center;width:100%}
.imbar .btn:not(.primary){background:var(--surface)!important;color:var(--fg)!important;border:1.5px solid color-mix(in srgb,var(--fg) 22%,var(--line))!important}
.imbar .btn.primary{background:var(--fg)!important;color:var(--bg)!important;border:1px solid var(--fg)!important}
.imbar .btn.primary:disabled{opacity:.4}
.sndual{display:flex;flex-direction:column;gap:2px}.sndual small{color:var(--muted);font-size:.7rem;font-weight:600}
html:root:not(#_a):not(#_b):not(#_c) body .imbar .btn:not(.primary):not(#_x):not(#_y){background:var(--surface)!important;border:1.5px solid color-mix(in srgb,var(--fg) 22%,var(--line))!important;border-radius:999px!important;min-height:50px}

/* v1016 · Autorización del administrador (maqueta B: espera con cuenta regresiva y tarjeta de lo que se aprueba) */
.apsheet .apsub{color:var(--muted);font-size:.92rem;line-height:1.4;margin:2px 0 6px}
.apinfo{display:flex;align-items:center;gap:12px;background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:12px 14px;margin:8px 0}
.apic{display:grid;place-items:center;flex:none;width:44px;height:44px;border-radius:50%;background:#fdecc8;font-size:1.3rem;font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif}
.apt{display:flex;flex-direction:column;min-width:0}.apt b{font-size:1rem}.apt small{color:var(--muted);font-size:.85rem;overflow-wrap:anywhere}
.apsheet .apwait{display:flex;flex-direction:column;align-items:center;gap:6px;padding:14px 0 6px}
.apsheet .apclock{font-family:var(--f-display);font-size:2.4rem;font-weight:800;letter-spacing:-.02em;line-height:1}
.apsheet .apst{color:var(--muted);font-size:.92rem;text-align:center}
.apbtns{display:flex;flex-direction:column;gap:8px;margin-top:10px}
.apbtns .btn{min-height:52px;border-radius:999px;font-weight:800;justify-content:center;width:100%}
.apbtns .btn.primary{background:var(--fg)!important;color:var(--bg)!important;border:1px solid var(--fg)!important}
.apbtns .btn:not(.primary):not(.apquiet){background:var(--surface)!important;color:var(--fg)!important;border:1.5px solid color-mix(in srgb,var(--fg) 22%,var(--line))!important}
.apbtns .apquiet{background:transparent!important;border:0!important;color:var(--muted)!important;min-height:44px}
.apbtns [hidden]{display:none!important}
#apprdlg.modal{z-index:160}
html:root:not(#_a):not(#_b):not(#_c) body .apbtns .btn:not(.primary):not(.apquiet):not(#_x):not(#_y){background:var(--surface)!important;border:1.5px solid color-mix(in srgb,var(--fg) 22%,var(--line))!important;border-radius:999px!important;min-height:50px}
html:root:not(#_a):not(#_b):not(#_c) body .apbtns .apquiet:not(#_x):not(#_y){background:transparent!important;border:0!important;color:var(--muted)!important;min-height:44px}

/* v1016 · Cobro en efectivo (maqueta A): hoja con teclas propias, fichas de billetes y vuelto en vivo */
@media (max-width:1099px){
  html body #tab-vender.sheetm #vcash>label.f:not(#_x),html body #tab-vender.sheetm #vcash #vchips:not(#_x){display:none!important}
}
@media (min-width:1100px){#vcashrow{display:none!important}}
.cashbox{display:flex;flex-direction:column;align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:24px;padding:12px 16px;margin:2px 0 6px;text-align:center}
.cashbox span{font-size:.82rem;color:var(--muted);font-weight:700}
.cashbox b{font-family:var(--f-display);font-size:2.4rem;font-weight:800;letter-spacing:-.02em;line-height:1.15}
.cashchips{margin:4px 0}
.cschip.on{background:var(--fg);color:var(--bg);border-color:var(--fg)}
.cashchg{display:flex;justify-content:space-between;align-items:center;background:#e3f5e9;color:#15803d;border-radius:20px;padding:10px 16px;margin:4px 0 2px}
.cashchg .num{font-family:var(--f-display);font-size:1.5rem}
.cashchg.bad{background:#fdecc8;color:#7a4a05}
html[data-theme="dark"] .cashchg{background:#12301d;color:#4ade80}html[data-theme="dark"] .cashchg.bad{background:#3a2b0a;color:#fcd34d}
#cashsheet.modal{z-index:140}
.cashd .kpgrid{margin-top:6px}

/* v1016 · Equipo recibido (maqueta B): tarjeta con «Editar» y formulario en una hoja */
@media (max-width:1099px){
  html body #tab-vender.sheetm #vextra #vtrade:not(.intrade):not(#_x){display:none!important}
  .vcrtv{display:flex;flex-direction:column;align-items:flex-end;gap:2px}.vcrtv em{font-style:normal;font-weight:800;font-size:.82rem;color:#15803d}
}
@media (min-width:1100px){#vtcard{display:none!important}}
#tradesheet.modal{z-index:140}
.tradedlg{display:flex;flex-direction:column}
.tradedlg .tdbody{flex:1 1 auto;overflow-y:auto;min-height:0}
.tradedlg #vtrade{border:0;background:transparent;padding:0}
.tradedlg #vtrade>summary{display:none}
.tradedlg #vtrade label.f input,.tradedlg #vtrade label.f select{background:var(--surface)!important;border:1px solid var(--line)!important;border-radius:999px!important;min-height:50px;padding-inline:18px;box-shadow:none!important}
.tradedlg #vtrade .btn{border-radius:999px!important;min-height:44px;background:var(--surface)!important;color:var(--fg)!important;border:1.5px solid color-mix(in srgb,var(--fg) 22%,var(--line))!important}
.tradedlg .updbtns{margin-top:10px}
@media (max-width:1099px){
  html:root:not(#_a):not(#_b):not(#_c) body #tab-vender.sheet-open[data-vstep] .cart-foot #vtotals .r.big:not(.rtot):not(#_x):not(#_y){display:flex;flex-direction:row;justify-content:space-between;align-items:baseline;gap:10px;background:transparent!important;padding:6px 0 0;margin-top:4px;border-top:1px solid #2b3330;border-radius:0;min-height:0}
  html body #tab-vender.sheet-open[data-vstep] .cart-foot #vtotals .r.big:not(.rtot) span:first-child:not(#_x){font-size:.85rem;font-weight:700;color:#9aa8a1!important;white-space:nowrap}
  html body #tab-vender.sheet-open[data-vstep] .cart-foot #vtotals .r.big:not(.rtot) .num:not(#_x){font-size:1.4rem;font-weight:800;color:#fff!important}
}
.tradedlg .updbtns .btn{width:100%;justify-content:center;min-height:52px}
.cashd .updbtns .btn,.credsheetd .updbtns .btn{width:100%;justify-content:center;min-height:52px;border-radius:999px}

/* v1017 · la flechita de las filas que abren una hoja (Forma del abono, Recibir un equipo…): dibujo propio, se ve igual en claro y oscuro */
.vcrch{display:inline-block!important;width:9px;height:16px;font-size:0!important;color:var(--muted);vertical-align:middle;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 16'%3E%3Cpath d='M1.5 1.5L7.5 8l-6 6.5' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 16'%3E%3Cpath d='M1.5 1.5L7.5 8l-6 6.5' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat}

/* v1018 · las ventanas que se abren desde «Venta hecha» (Ver factura, Ticket, comprobante) tienen que quedar por encima de la pantalla negra */
.modal.fxmod,.modal.rcdlg,body>.modal.sdone{z-index:170}

/* v1019 · Vista de Factura | Ticket (maqueta B): papel grande y barra de acciones con círculos */
.modal.fxmod .fxdlg{display:flex;flex-direction:column;max-height:94dvh}
.modal.fxmod .fxtabs{display:flex;gap:4px;padding:4px;border-radius:999px;background:color-mix(in srgb,var(--fg) 8%,var(--bg));margin:2px 0 10px}
.modal.fxmod .fxtabs button{flex:1;min-height:42px;border:0;border-radius:999px;background:transparent;color:var(--fg);font:inherit;font-weight:800;font-size:.92rem;display:flex;align-items:center;justify-content:center;gap:6px;box-shadow:none}
.modal.fxmod .fxtabs button.on{background:var(--fg);color:var(--bg);box-shadow:none}
.modal.fxmod .fxtabs .e,.fxc .e{font-style:normal;font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif}
.modal.fxmod .fxview{flex:1 1 auto;min-height:260px;max-height:none;border-radius:24px;background:color-mix(in srgb,var(--fg) 7%,var(--bg))}
.modal.fxmod .fxrbt{margin-top:8px}
.fxlinks{display:flex;justify-content:center;gap:16px;margin:8px 0 0}
.fxlink{background:transparent;border:0;color:var(--fg);font:inherit;font-weight:800;font-size:.9rem;text-decoration:underline;text-underline-offset:3px;padding:4px 6px}
.fxbar{display:flex;justify-content:space-around;align-items:flex-end;background:var(--surface);border:1px solid var(--line);border-radius:30px;padding:10px 12px;margin-top:10px}
.fxc{display:flex;flex-direction:column;align-items:center;gap:4px;background:transparent;border:0;color:var(--fg);font:inherit;padding:0;cursor:pointer;-webkit-tap-highlight-color:transparent}
.fxc i{display:grid;place-items:center;width:52px;height:52px;border-radius:50%;background:var(--surface);border:1px solid var(--line);font-size:1.4rem}
.fxc.main i{width:58px;height:58px;background:var(--fg);border-color:var(--fg);font-size:1.5rem}
.fxc span{font-size:.74rem;font-weight:800}
html:root body .modal.fxmod .fxc:not(#_x){background:transparent!important;border:0!important;box-shadow:none!important;min-height:0}
#tab-vender ~ .modal.fxmod{z-index:170}

/* v1020 · detalle de «Venta hecha»: «Ganancia» y «Corregir costo» se leen sobre el fondo negro, y el mensaje queda en una tarjeta oscura */
@media (max-width:1099px){
  html body #vdone .dn .dn-fold .hint,html body #vdone .dn .dn-fold .hint strong:not(#_x){color:#e5ebe8!important}
  html:root:not(#_a):not(#_b):not(#_c) body #vdone .dn .dn-fold [data-fixcost]:not(#_x):not(#_y){background:transparent!important;color:#fff!important;border:1.5px solid #3a4440!important;border-radius:999px!important;min-height:44px;padding:0 18px;font-weight:800;width:100%;justify-content:center}
  html:root body #vdone .dn .dn-fold .receipt:not(#_x){background:#141a18!important;color:#e5ebe8!important;border:1px solid #2b3330!important;border-radius:22px;text-align:left!important;padding:12px 14px;font-size:.8rem;line-height:1.5;white-space:pre-wrap}
}

/* v1021 · Detalle de la venta, opción C de Juan (2026-11-24): tarjeta negra con barra de lo pagado y «Registrar abono» adentro; acciones como filas con emoji en círculo y frase corta, dentro de una tarjeta. Solo celular. */
.vsd-bar,.vsd-bl{display:none}
@media (max-width:1099px){
  html:root body #slist .item.srow:has(.vs-det) .vsd-acts:not(#_x):not(#_y):not(#_z){display:block!important;grid-column:1/-1;order:3;background:var(--surface);border:1px solid var(--line);border-radius:24px;padding:2px 14px;margin:0}
  html:root body #slist .item.srow:has(.vs-det) .vsd-acts>.btn:not(#_x):not(#_y):not(#_z){display:grid!important;grid-template-columns:42px 1fr 10px;align-items:center;column-gap:12px;width:100%!important;min-height:64px!important;height:auto!important;padding:10px 0!important;text-align:left;font-size:.95rem;font-weight:800;border-radius:0!important;border-top:1px solid var(--line)!important;position:relative}
  html:root body #slist .item.srow:has(.vs-det) .vsd-acts>.btn:first-child:not(#_x):not(#_y):not(#_z){border-top:0!important}
  html:root body #slist .item.srow:has(.vs-det) .vsd-acts>.btn:not(#_x):not(#_y):not(#_z)::before{width:42px;height:42px;font-size:1.15rem}
  html:root body #slist .item.srow:has(.vs-det) .vsd-cli:not(#_x):not(#_y){grid-column:1/-1;order:0;width:100%;margin:0;background:var(--surface);border:1px solid var(--line);border-radius:24px}
  html:root body #slist .item.srow:has(.vsd-cli)>.vr2:not(#_x):not(#_y){display:none!important}
  html:root body #slist .item.srow:has(.vs-det) .vsd-cli .m b{white-space:nowrap}
  html:root body #slist .item.srow:has(.vs-det) .vsd-acts>.btn::after{content:"";width:8px;height:8px;border:solid var(--muted);border-width:2px 2px 0 0;transform:rotate(45deg);justify-self:end}
  html:root body #slist .item.srow:has(.vs-det) .vsd-acts>.btn span::after{display:block;font-weight:500;font-size:.8rem;color:var(--muted);margin-top:1px}
  html:root body #slist .item.srow:has(.vs-det) .btn[data-wa] span::after{content:"Compartir la imagen"}
  html:root body #slist .item.srow:has(.vs-det) .btn[data-pdf] span::after{content:"Abrir o descargar"}
  html:root body #slist .item.srow:has(.vs-det) .btn[data-ticket] span::after{content:"Ticket de la venta"}
  html:root body #slist .item.srow:has(.vs-det) .btn[data-ret] span::after{content:"Si el cliente regresa algo"}
  html:root body #slist .item.srow:has(.vs-det) .btn[data-void] span::after{content:"Deshace la venta completa"}
  html:root body #slist .item.srow:has(.vs-det) .vsd-acts>.btn.danger:not(#_x):not(#_y):not(#_z){color:#dc2626!important}
  /* abono dentro de la tarjeta negra */
  html:root body #slist .item.srow:has(.vs-det) .vsd-top .vsd-bar:not(#_x){display:block;width:100%;height:10px;border-radius:99px;background:#2a3330;margin:12px 0 6px;overflow:hidden}
  html:root body #slist .item.srow:has(.vs-det) .vsd-bar i{display:block;height:100%;border-radius:99px;background:#fff}
  html:root body #slist .item.srow:has(.vs-det) .vsd-top .vsd-bl:not(#_x){display:flex;justify-content:space-between;width:100%;font-size:.85rem;color:#9fb0a8}
  html:root body #slist .item.srow:has(.vs-det) .vsd-top .vsd-bl b:not(#_x){font-size:.85rem;font-family:var(--f-body);letter-spacing:0;color:#ff8a80!important}
  html:root body #slist .item.srow:has(.vs-det) .vsd-top .vsd-cta:not(#_x):not(#_x):not(#_x):not(#_y):not(#_y):not(#_y):not(#_z):not(#_z):not(#_z):not(#_w):not(#_w):not(#_w):not(#_v):not(#_v):not(#_v){width:100%;margin-top:14px;min-height:50px;border-radius:999px;background:#fff!important;color:#0d1210!important;border:0!important;font-weight:800;box-shadow:none!important}
  html:root body #slist .item.srow:has(.vs-det) .vsd-top .vsd-cta::before{content:"💰 ";font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif}
}

/* v1022 · Filtros de Ventas, opción B de Juan (2026-11-24): en una hoja, atajos de período, fechas en tarjetas y filas con emoji (Estado, Vendedor, Forma de pago) que abren una lista corta; botón «Ver N ventas». Solo celular. */
.vfh2,.vf-rows,.vf-n{display:none}
@media (max-width:899px){
  html:root body .sheetdlg .fpanel:not(#_x):not(#_y){margin:0;padding:0 8px 84px;border:0;background:none;border-radius:0;display:block}
  html:root body .sheetdlg .fpanel .vfh2:not(#_x){display:none!important}
  html:root body .sheetdlg .fpanel .flbl:not(#_x){display:none}
  html:root body .sheetdlg .fpanel .fbox{display:flex;flex-direction:column;gap:10px}
  html:root body .sheetdlg .fpanel .fbox>.fgrp:not(:first-child),html:root body .sheetdlg .fpanel .fbox>label,html:root body .sheetdlg .fpanel .fbox>.fdates:last-of-type:not(:nth-child(2)){display:none!important}
  html:root body .sheetdlg .fpanel .fdates{display:grid;grid-template-columns:1fr 1fr;gap:8px}
  html:root body .sheetdlg .fpanel .fdates .f{background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:8px 14px;font-size:.72rem;font-weight:700;color:var(--muted)}
  html:root body .sheetdlg .fpanel .fdates input:not(#_x):not(#_y):not(#_z){border:0!important;border-radius:0!important;box-shadow:none!important;background:none!important;padding:2px 0!important;min-height:0!important;height:auto!important;font-weight:800;font-size:.95rem;color:var(--fg)}
  html:root body .sheetdlg .fpanel .vf-rows:not(#_x){display:block;background:var(--surface);border:1px solid var(--line);border-radius:24px;padding:2px 14px;margin-top:12px}
  html:root body .sheetdlg .fpanel .vf-row{display:flex;align-items:center;gap:12px;width:100%;padding:12px 0;border:0;border-top:1px solid var(--line);background:none;color:var(--fg);text-align:left;font:inherit}
  html:root body .sheetdlg .fpanel .vf-row:first-child{border-top:0}
  html:root body .sheetdlg .fpanel .vf-row .ci{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;font-size:1.15rem;background:color-mix(in srgb,var(--accent) 14%,var(--surface));flex:none}
  html:root body .sheetdlg .fpanel .vf-row .col1{flex:1;min-width:0;display:flex;flex-direction:column}
  html:root body .sheetdlg .fpanel .vf-row .col1 b{font-weight:800}
  html:root body .sheetdlg .fpanel .vf-row .col1 span{color:var(--muted);font-size:.85rem}
  html:root body .sheetdlg .fpanel .vf-row .vf-go{flex:none;font-size:1.6rem;line-height:1;color:var(--muted);padding-right:4px}
  html:root body .sheetdlg .fpanel .vf-n:not(#_x){display:block;margin:10px 4px 0;font-weight:700;font-size:.85rem;color:var(--accent)}
  html:root body .sheetdlg .sheethd .vf-clear{position:absolute;right:62px;top:14px;border:0;background:none;color:#dc2626;font-weight:800;font-size:.9rem;padding:8px}
  html:root body .sheetdlg .vf-foot{position:sticky;bottom:0;padding:10px 0 14px;background:linear-gradient(transparent,var(--bg) 30%)}
  html:root body .sheetdlg .vf-foot .btn{width:100%;min-height:54px;border-radius:999px;font-size:1rem;font-weight:800}
}

/* v1023 · Íconos propios de Cuadra («A · De línea», Juan 2026-11-24): en Ventas (celular) reemplazan a los emojis: lista, acciones del detalle, «Registrar abono» y filtros. Trazo con el color del texto y un detalle en el color del negocio. */
.oi{display:none;color:var(--fg)}
.oi .m,.oi .d{fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.oi .a{fill:none;stroke:var(--accent);stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.oi.red .m,.oi.red .a,.oi.red .d{stroke:#dc2626}
@keyframes oipop{0%{transform:scale(.5);opacity:0}60%{transform:scale(1.14)}100%{transform:scale(1);opacity:1}}
@keyframes okdraw{from{stroke-dashoffset:30}to{stroke-dashoffset:0}}
@media (max-width:1099px){
  html:root body #slist .vqdot svg.oi:not(#_x):not(#_y){display:block!important;width:26px;height:26px}
  html:root body #slist .vqdot:not(#_x):not(#_y){display:grid;place-items:center}
  html:root body #slist .vqdot[data-emo]::before:not(#_x){content:none}
  html:root body #slist .vqdot[data-emo]::before{content:none!important}
  html:root body #slist .item.srow:has(.vs-det) .vsd-acts>.btn::before{content:none!important;display:none!important}
  html:root body #slist .item.srow:has(.vs-det) .vsd-acts>.btn>svg.oi:not(#_x):not(#_x):not(#_x):not(#_y):not(#_y):not(#_y):not(#_z):not(#_z):not(#_z){display:block!important;width:42px!important;height:42px!important;padding:8px!important;margin:0!important;box-sizing:border-box;border-radius:50%!important;color:var(--fg)!important;background:color-mix(in srgb,var(--accent) 14%,var(--surface))!important;animation:oipop .45s both}
  html:root body #slist .item.srow:has(.vs-det) .vsd-acts>.btn[data-void]>svg.oi:not(#_x):not(#_x):not(#_x):not(#_y):not(#_y):not(#_y):not(#_z):not(#_z):not(#_z):not(#_w){background:color-mix(in srgb,#dc2626 14%,var(--surface))!important}
  html:root body #slist .item.srow:has(.vs-det) .vsd-top .vsd-cta svg.oi:not(#_x):not(#_y){display:inline-block;width:22px;height:22px;vertical-align:-5px;margin-right:8px;color:#0d1210}
  html:root body #slist .item.srow:has(.vs-det) .vsd-top .vsd-cta::before{content:none!important}
  html:root body .sheetdlg .fpanel .vf-row .ci svg.oi:not(#_x):not(#_y){display:block;width:26px;height:26px}
  html:root body #slist .item.srow:has(.vs-det)>.totals .hint::before:not(#_x){content:none}
  html:root body #slist .item.srow:has(.vs-det)>.totals .hint::before{content:"";font-size:0;background:#fdecc8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke-linecap='round' stroke-linejoin='round' stroke-width='3'%3E%3Cpath d='M6 36l12-12 8 8 16-18' stroke='%230b0f0e'/%3E%3Cpath d='M32 14h10v10' stroke='%2316a34a'/%3E%3C/svg%3E") center/24px no-repeat}
  html:root body #vdone .dn .okmark svg path:not(#_x){stroke-dasharray:30;stroke-dashoffset:0;animation:okdraw .5s .25s ease-out both}
}
@media (prefers-reduced-motion:reduce){html:root body #slist .item.srow:has(.vs-det) .vsd-acts>.btn>svg.oi,html:root body #vdone .dn .okmark svg path{animation:none!important}}

/* v1024 · Ventas, pantalla principal «A» y detalle «A» (Juan 2026-11-24): tres cifras en una tarjeta blanca (sin el título grande repetido); ✕ del detalle en círculo sólido; la ganancia con su cuenta completa. Solo celular. */
.vsum,.mgrows,.mgr{display:none}
@media (max-width:1099px){
  #tab-ventas #vhero2 .vsum{display:grid}
  #tab-ventas #vhero2>.k,#tab-ventas #vhero2>.vnum,#tab-ventas #vhero2>.vqpills{display:none!important}
  #tab-ventas>#vhero2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g){display:block!important;background:var(--surface)!important;background-image:none!important;color:var(--fg)!important;border:1px solid var(--line)!important;border-radius:26px!important;padding:14px 4px!important;margin:0 0 12px!important;box-shadow:none!important;min-height:0!important}
  #tab-ventas>#vhero2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e)::before{display:none!important;content:none!important}
  #tab-ventas #vhero2 .vsum{grid-template-columns:repeat(3,minmax(0,1fr));text-align:center}
  #tab-ventas #vhero2 .vsc{display:flex;flex-direction:column;align-items:center;gap:2px;padding:0 4px;border:0;background:none;color:var(--fg);font:inherit;min-width:0}
  #tab-ventas #vhero2 .vsc+.vsc{border-left:1px solid var(--line)}
  #tab-ventas #vhero2 .vsc .vsi{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:color-mix(in srgb,var(--accent) 14%,var(--surface));margin-bottom:4px}
  #tab-ventas #vhero2 .vsc .vsi svg.oi{display:block;width:22px;height:22px}
  #tab-ventas #vhero2 .vsc .vst{font-size:.72rem;font-weight:700;color:var(--muted)}
  #tab-ventas #vhero2 .vsc b{font-family:var(--f-display);font-size:1.05rem;font-weight:800;letter-spacing:-.02em;white-space:nowrap}
  #tab-ventas #vhero2 .vsc small{font-size:.7rem;color:var(--muted)}
  #tab-ventas #vhero2 .vsc.bad b{color:#c62828}
  #tab-ventas #vhero2 .vsc.bad .vsi{background:color-mix(in srgb,#dc2626 14%,var(--surface))}
  #tab-ventas #vhero2 .vsc.bad .vsi svg.oi .m,#tab-ventas #vhero2 .vsc.bad .vsi svg.oi .a,#tab-ventas #vhero2 .vsc.bad .vsi svg.oi .d{stroke:#dc2626}
  /* ✕ del detalle: círculo sólido, más grande */
  html:root body #slist .item.srow:has(.vs-det)>button[data-open]:not(#_x):not(#_y):not(#_z){width:46px!important;height:46px!important;top:10px!important;right:14px!important;background:var(--fg)!important;border:0!important}
  html:root body #slist .item.srow:has(.vs-det)>button[data-open]:not(#_x):not(#_y):not(#_z)::after{color:var(--bg,#fff)!important;font-size:1.15rem}
  /* ganancia con su cuenta */
  html:root body #slist .item.srow:has(.vs-det)>.totals .mgrows:not(#_x){display:block;order:-2;padding:4px 2px 0}
  html:root body #slist .item.srow:has(.vs-det)>.totals .mgr:not(#_x){display:flex;justify-content:space-between;padding:4px 0;font-size:.95rem;color:var(--muted)}
  html:root body #slist .item.srow:has(.vs-det)>.totals .mgr b{color:var(--fg);font-weight:700}
  html:root body #slist .item.srow:has(.vs-det)>.totals .mgr.neg b{color:#c62828}
  html:root body #slist .item.srow:has(.vs-det)>.totals .r:has(strong):not(#_x){order:-1;border-bottom:0;border-top:1px solid var(--line);margin-top:6px;padding:12px 2px 6px}
  html:root body #slist .item.srow:has(.vs-det)>.totals .r:has(strong)>strong:first-child:not(#_x){font-size:1rem;color:var(--fg);font-weight:800}
}

/* v1025 · La ✕ del detalle de la venta, dibujada (gruesa y centrada) en vez de un carácter de texto (Juan 2026-11-24: «¿por qué esa X se ve así?»). */
@media (max-width:1099px){
  html:root body #slist .item.srow:has(.vs-det)>button[data-open]:not(#_x):not(#_y):not(#_z):not(#_w)::after{content:""!important;display:block;width:20px;height:20px;font-size:0!important;background:var(--bg,#fff);-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 6l12 12M18 6L6 18' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 6l12 12M18 6L6 18' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat}
}

/* v1025 · Círculo de la ✕ del detalle: 34 px visibles (Juan 2026-11-24), con 5 px transparentes alrededor para que siga siendo fácil de tocar (44 px). */
@media (max-width:1099px){
  html:root body #slist .item.srow:has(.vs-det)>button[data-open]:not(#_x):not(#_y):not(#_z):not(#_w):not(#_v){box-sizing:border-box!important;width:44px!important;height:44px!important;top:9px!important;right:9px!important;border:5px solid transparent!important;background-clip:padding-box!important}
  html:root body #slist .item.srow:has(.vs-det)>button[data-open]:not(#_x):not(#_y):not(#_z):not(#_w):not(#_v)::after{width:16px!important;height:16px!important}
}

/* v1026 · Sin ✕ en el detalle de la venta (Juan 2026-11-24: «no hace falta, puedo cerrar deslizando la hoja hacia abajo»). El botón sigue en el HTML (el deslizar lo usa) pero no se ve. */
@media (max-width:1099px){
  html:root body #slist .item.srow:has(.vs-det)>button[data-open]:not(#_x):not(#_y):not(#_z):not(#_w):not(#_v):not(#_u){display:none!important}
}

/* v1027 · Lista de Ventas «A · Una tarjeta por venta» (Juan 2026-11-24: «esta parte aún tiene el diseño viejo»): buscador blanco con borde, cada venta en su propia tarjeta y el día como etiqueta suelta. Solo celular. */
@media (max-width:1099px){
  html:root body #tab-ventas #histcard:not(#_x):not(#_y):not(#_z){background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;margin-top:0}
  html:root body #tab-ventas .vsrow label.f input:not(#_x):not(#_y){background:var(--surface)!important;border:1px solid var(--line)!important}
  html:root body #tab-ventas .vqchip:not(#_x):not(#_y){background:var(--surface);border:1px solid var(--line)}
  html:root body #tab-ventas .vqchip.on:not(#_x):not(#_y){background:var(--fg);border-color:var(--fg);color:var(--bg,#fff)}
  html:root body #slist .vday:not(#_x){padding:16px 6px 2px;font-size:1rem}
  html:root body #slist .item.srow:not(:has(.vs-det)):not(#_x):not(#_y){background:var(--surface)!important;border:1px solid var(--line)!important;border-radius:22px!important;padding:10px 12px!important;margin:8px 0 0!important;box-shadow:none!important}
  html:root body #slist .item.srow:not(:has(.vs-det))+.item.srow:not(:has(.vs-det)) .vr2:not(#_x){border-top:0!important}
}
@media (max-width:1099px){
  html:root body #tab-ventas #slist:not(#_x):not(#_y):not(#_z):not(#_w){background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;border-radius:0!important}
}

/* v1027 · Fila del buscador igual que la maqueta: buscador en píldora y los botones «⋯» y «+» en círculos de 46 px (antes eran cuadrados redondeados de otro tamaño). */
@media (max-width:1099px){
  html:root body #tab-ventas .vsrow{gap:8px}
  html:root body #tab-ventas .vsrow label.f input:not(#_x):not(#_y):not(#_z){height:46px!important;min-height:0!important;border-radius:999px!important}
  html:root body #tab-ventas .vsrow .vsbtn:not(#_x):not(#_y):not(#_z):not(#_w){width:46px!important;height:46px!important;min-width:0!important;min-height:0!important;padding:0!important;border-radius:50%!important;display:grid!important;place-items:center;flex:none}
  html:root body #tab-ventas .vsrow #vmenubtn:not(#_x):not(#_y):not(#_z):not(#_w){background:var(--surface)!important;border:1px solid var(--line)!important;color:var(--fg)!important}
  html:root body #tab-ventas .vsrow .vsbtn svg:not(#_x){width:22px;height:22px}
}

/* v1027 · «⋯» y «+» del buscador con íconos propios de Cuadra. */
@media (max-width:1099px){
  html:root body #tab-ventas .vsrow .vsbtn>svg:not(.oi):not(#_x){display:none!important}
  html:root body #tab-ventas .vsrow .vsbtn>svg.oi:not(#_x):not(#_y){display:block!important;width:28px;height:28px;color:var(--fg)}
  html:root body #tab-ventas .vsrow .vsbtn.primary>svg.oi:not(#_x):not(#_y){color:var(--bg,#fff)}
}

/* v1027 · Lupa y embudo con trazo propio de Cuadra (lupa dibujada como máscara del color del texto suave). */
@media (max-width:1099px){
  html:root body #tab-ventas .vqchip.vfil>svg:not(.oi):not(#_x){display:none!important}
  html:root body #tab-ventas .vqchip.vfil>svg.oi:not(#_x):not(#_y){display:block!important;width:18px;height:18px}
  html:root body #tab-ventas .vsrow label.f:not(#_x):not(#_y)::before{background:var(--muted)!important;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Ccircle cx='21' cy='21' r='13' fill='none' stroke='%23000' stroke-width='3.2'/%3E%3Cpath d='M31 31l11 11' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Ccircle cx='21' cy='21' r='13' fill='none' stroke='%23000' stroke-width='3.2'/%3E%3Cpath d='M31 31l11 11' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat}
}

/* v1029 · Campanita con ícono propio duotono (Juan 2026-11-24): cuerpo en el color del texto y badajo verde. */
.bellbtn>svg:not(.oi){display:none!important}
.bellbtn>svg.oi{display:block;width:26px;height:26px;color:var(--fg)}
.bellbtn>svg.oi .m,.bellbtn>svg.oi .a{fill:none}

/* v1030 · Lupa del buscador con ícono propio duotono (svg real, centrado verticalmente en la píldora). */
@media (max-width:1099px){
  html:root body #tab-ventas .vsrow label.f:not(#_x):not(#_y):not(#_z)::before{content:none!important;display:none!important}
  html:root body #tab-ventas .vsrow label.f>svg.oi.vsx:not(#_x):not(#_y){display:block!important;position:absolute;left:14px;top:50%;width:24px;height:24px;transform:translateY(-50%);pointer-events:none;z-index:1;color:var(--muted)}
}

/* v1030 · Íconos de los botones redondos siempre al centro exacto del círculo. */
@media (max-width:1099px){
  html:root body #tab-ventas .vsrow .vsbtn:not(#_x):not(#_y):not(#_z):not(#_w):not(#_v){position:relative}
  html:root body #tab-ventas .vsrow .vsbtn>svg.oi:not(#_x):not(#_y):not(#_z){position:absolute;left:50%;top:50%;margin:0!important;transform:translate(-50%,-50%)}
}
.bellbtn{position:relative}
.bellbtn>svg.oi{position:absolute;left:50%;top:50%;margin:0;transform:translate(-50%,-50%)}

/* v1031 · Devolver «A · Una hoja con todo» (Juan 2026-11-24): hoja que sube sobre el detalle, con − y +, interruptor de cambio, reembolso en casillas con ícono duotono, motivos rápidos y botón «Devolver $ …». En el computador los mismos campos, en la tarjeta de siempre. */
.rp-scrim,.rp-grab,.rp-lbl{display:none}
.rp-step{display:flex;align-items:center;gap:8px;flex:none}
.rp-step button{width:38px;height:38px;border-radius:50%;border:1px solid var(--line);background:var(--surface);color:var(--fg);font:800 1.2rem/1 var(--f-body);cursor:pointer;display:grid;place-items:center;padding:0}
.rp-step button[data-rstep="1"]{background:var(--fg);color:var(--bg,#fff);border-color:var(--fg)}
.rp-item .rp-step input[data-rqi]{width:34px;min-height:0;border:0;background:none;padding:0;text-align:center;font-size:1.25rem;font-weight:800}
.rp-meth{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.rp-meth button{display:flex;flex-direction:column;align-items:center;gap:4px;padding:10px 2px 8px;border:1px solid var(--line);border-radius:18px;background:var(--surface);color:var(--fg);font:700 .72rem/1.1 var(--f-body);cursor:pointer}
.rp-meth button.on{background:var(--fg);border-color:var(--fg);color:var(--bg,#fff)}
.rp-meth .oi{display:block;width:26px;height:26px;color:inherit}
.rp-chips{display:flex;flex-wrap:wrap;gap:6px}
.rp-chips button{border:1px solid var(--line);background:var(--surface);color:var(--fg);border-radius:999px;padding:7px 12px;font:700 .78rem/1.2 var(--f-body);cursor:pointer}
.rp-chips button.on{background:var(--fg);color:var(--bg,#fff);border-color:var(--fg)}
.rp-exch input[data-rexch]{appearance:none;-webkit-appearance:none;flex:none;width:46px;height:28px;border-radius:999px;background:var(--line);position:relative;margin:0;cursor:pointer;transition:background .15s}
.rp-exch input[data-rexch]::after{content:"";position:absolute;left:3px;top:3px;width:22px;height:22px;border-radius:50%;background:#fff;transition:transform .15s}
.rp-exch input[data-rexch]:checked{background:var(--accent)}
.rp-exch input[data-rexch]:checked::after{transform:translateX(18px)}
.rp-exch{justify-content:space-between;align-items:center}
@media (max-width:1099px){
  .rp-ic>svg:not(.oi){display:none!important}
  .rp-ic>svg.oi{display:block;width:26px;height:26px;color:var(--fg)}
  .rp-ic{border-radius:50%!important;width:44px!important;height:44px!important}
  html:root body #slist .rpwrap{position:fixed;inset:0;z-index:130}
  html:root body #slist .rp-scrim{display:block;position:absolute;inset:0;background:var(--scrim,rgba(0,0,0,.4))}
  html:root body #slist .retpanel:not(#_x):not(#_y){position:absolute;left:0;right:0;bottom:0;top:84px;margin:0;overflow-y:auto;border-radius:30px 30px 0 0;border:1px solid var(--line);border-bottom:0;background:var(--bg);padding:20px 16px calc(96px + env(safe-area-inset-bottom,0px));display:flex;flex-direction:column;gap:8px;box-shadow:none}
  html:root body #slist .rp-grab{display:block;position:absolute;top:8px;left:50%;width:40px;height:5px;margin-left:-20px;border-radius:3px;background:color-mix(in srgb,var(--fg) 22%,transparent)}
  html:root body #slist .rp-hd b{font-family:var(--f-display);font-size:1.4rem;letter-spacing:-.02em}
  html:root body #slist .rp-lbl{display:block;font-size:.75rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin:8px 4px 0}
  html:root body #slist .rp-lbl[hidden],html:root body #slist .rp-meth[hidden]{display:none}
  html:root body #slist .rp-item,html:root body #slist .rp-exch{background:var(--surface);border:1px solid var(--line);border-radius:22px}
  html:root body #slist .rp-mot input{background:var(--surface)!important;border:1px solid var(--line)!important;border-radius:999px!important;min-height:46px}
  html:root body #slist .rp-mot{font-size:0;gap:0}
  html:root body #slist .rp-act{position:absolute;left:16px;right:16px;bottom:calc(18px + env(safe-area-inset-bottom,0px))}
  html:root body #slist .rp-act .btn{width:100%;min-height:56px;border-radius:999px!important;font-size:1rem;font-weight:800}
  html:root body #slist .retest{padding:4px 4px 0;font-size:.82rem}
}

@media (max-width:1099px){
  html:root body #slist .retpanel .rp-exch input[data-rexch]:not(#_x):not(#_y){order:2;width:46px!important;height:28px!important;min-height:0!important;padding:0!important;border:0!important}
  html:root body #slist .retpanel .rp-step input[data-rqi]:not(#_x):not(#_y){border:0!important;background:none!important;box-shadow:none!important;width:34px!important;padding:0!important}
  html:root body #slist .retpanel .mchips{display:flex;flex-wrap:wrap;gap:6px;margin:0}
  html:root body #slist .retpanel .mchip:not(#_x){background:var(--surface)!important;border:1px solid var(--line)!important;color:var(--fg)!important;border-radius:999px!important;padding:7px 12px;font:700 .78rem/1.2 var(--f-body)}
}

@media (max-width:1099px){
  html:root body #slist .retpanel .rp-exch:not(#_x):not(#_y){flex-direction:row!important}
  html:root body #slist .retpanel .rp-exch input[data-rexch]:not(#_x):not(#_y){order:0!important;margin-left:auto}
}

/* v1032 · «Venta registrada» se quita sola a los 10 s en el celular: barrita fina arriba que se vacía; reducir movimiento la deja quieta. */
.dn-timer{display:none}
@media (max-width:899px){
  html:root body #vdone .dn .dn-timer{display:block;position:fixed;left:0;top:0;height:4px;width:100%;background:#22c55e;z-index:80;transform-origin:left;animation:dntimer 10s linear forwards}
}
@keyframes dntimer{from{transform:scaleX(1)}to{transform:scaleX(0)}}
@media (prefers-reduced-motion:reduce){html:root body #vdone .dn .dn-timer{animation:none}}

/* v1033 · «Venta registrada» (celular) sigue el modo claro/oscuro (Juan 2026-11-24): en claro es blanca; en oscuro, negra como antes. */
@media (max-width:1099px){
  html:root[data-theme="light"] body #vdone:not(:empty):not(#_1):not(#_2):not(#_3):not(#_4):not(#_5):not(#_6):not(#_7):not(#_8):not(#_9):not(#_10){background:var(--bg)!important}
  html:root[data-theme="light"] body #vdone .dn:not(#_1):not(#_2):not(#_3):not(#_4):not(#_5):not(#_6):not(#_7):not(#_8):not(#_9):not(#_10){background:var(--bg)!important;color:var(--fg)!important}
  html:root[data-theme="light"] body #vdone .dn h2:not(#_1):not(#_2):not(#_3):not(#_4):not(#_5):not(#_6):not(#_7):not(#_8):not(#_9):not(#_10){color:var(--fg)!important}
  html:root[data-theme="light"] body #vdone .dn .pill:not(#_1):not(#_2):not(#_3):not(#_4):not(#_5):not(#_6):not(#_7):not(#_8):not(#_9):not(#_10){background:#dcfce7!important;color:#15803d!important}
  html:root[data-theme="light"] body #vdone .dn .dn-tot span:not(#_1):not(#_2):not(#_3):not(#_4):not(#_5):not(#_6):not(#_7):not(#_8):not(#_9):not(#_10),html:root[data-theme="light"] body #vdone .dn .dn-tot small:not(#_1):not(#_2):not(#_3):not(#_4):not(#_5):not(#_6):not(#_7):not(#_8):not(#_9):not(#_10){color:var(--muted)!important}
  html:root[data-theme="light"] body #vdone .dn .dn-tot b:not(#_1):not(#_2):not(#_3):not(#_4):not(#_5):not(#_6):not(#_7):not(#_8):not(#_9):not(#_10){color:#15803d!important}
  html:root[data-theme="light"] body #vdone .dn .totals:not(#_1):not(#_2):not(#_3):not(#_4):not(#_5):not(#_6):not(#_7):not(#_8):not(#_9):not(#_10),html:root[data-theme="light"] body #vdone .dn .dn-lines:not(#_1):not(#_2):not(#_3):not(#_4):not(#_5):not(#_6):not(#_7):not(#_8):not(#_9):not(#_10),html:root[data-theme="light"] body #vdone .dn .dn-profit:not(#_1):not(#_2):not(#_3):not(#_4):not(#_5):not(#_6):not(#_7):not(#_8):not(#_9):not(#_10),html:root[data-theme="light"] body #vdone .dn .dn-pago:not(#_1):not(#_2):not(#_3):not(#_4):not(#_5):not(#_6):not(#_7):not(#_8):not(#_9):not(#_10),html:root[data-theme="light"] body #vdone .dn .dn-fold .receipt:not(#_1):not(#_2):not(#_3):not(#_4):not(#_5):not(#_6):not(#_7):not(#_8):not(#_9):not(#_10){background:var(--surface)!important;border:1px solid var(--line)!important;color:var(--fg)!important}
  html:root[data-theme="light"] body #vdone .dn .totals .r:not(#_1):not(#_2):not(#_3):not(#_4):not(#_5):not(#_6):not(#_7):not(#_8):not(#_9):not(#_10),html:root[data-theme="light"] body #vdone .dn .totals .r *:not(#_1):not(#_2):not(#_3):not(#_4):not(#_5):not(#_6):not(#_7):not(#_8):not(#_9):not(#_10),html:root[data-theme="light"] body #vdone .dn .dn-lines .r:not(#_1):not(#_2):not(#_3):not(#_4):not(#_5):not(#_6):not(#_7):not(#_8):not(#_9):not(#_10){color:var(--fg)!important}
  html:root[data-theme="light"] body #vdone .dn .totals .r.big:not(#_1):not(#_2):not(#_3):not(#_4):not(#_5):not(#_6):not(#_7):not(#_8):not(#_9):not(#_10),html:root[data-theme="light"] body #vdone .dn .totals .r.big *:not(#_1):not(#_2):not(#_3):not(#_4):not(#_5):not(#_6):not(#_7):not(#_8):not(#_9):not(#_10),html:root[data-theme="light"] body #vdone .dn .r.big:not(#_1):not(#_2):not(#_3):not(#_4):not(#_5):not(#_6):not(#_7):not(#_8):not(#_9):not(#_10){color:#15803d!important;background:none!important}
  html:root[data-theme="light"] body #vdone .dn .dn-more:not(#_1):not(#_2):not(#_3):not(#_4):not(#_5):not(#_6):not(#_7):not(#_8):not(#_9):not(#_10){color:var(--muted)!important}
  html:root[data-theme="light"] body #vdone .dn .dn-ic:not(#_1):not(#_2):not(#_3):not(#_4):not(#_5):not(#_6):not(#_7):not(#_8):not(#_9):not(#_10){color:var(--fg)!important}
  html:root[data-theme="light"] body #vdone .dn .dn-ic svg:not(#_1):not(#_2):not(#_3):not(#_4):not(#_5):not(#_6):not(#_7):not(#_8):not(#_9):not(#_10){background:color-mix(in srgb,var(--accent) 14%,var(--surface))!important;color:var(--fg)!important;stroke:var(--fg)!important}
  html:root[data-theme="light"] body #vdone .dn .dn-ic.p svg:not(#_1):not(#_2):not(#_3):not(#_4):not(#_5):not(#_6):not(#_7):not(#_8):not(#_9):not(#_10){background:#22c55e!important;color:#0b0f0e!important;stroke:#0b0f0e!important}
  html:root[data-theme="light"] body #vdone .dn .dn-new:not(#_1):not(#_2):not(#_3):not(#_4):not(#_5):not(#_6):not(#_7):not(#_8):not(#_9):not(#_10){background:var(--fg)!important;color:var(--bg)!important}
  html:root[data-theme="light"] body #vdone .dn .dnp-h:not(#_1):not(#_2):not(#_3):not(#_4):not(#_5):not(#_6):not(#_7):not(#_8):not(#_9):not(#_10),html:root[data-theme="light"] body #vdone .dn .dnr b:not(#_1):not(#_2):not(#_3):not(#_4):not(#_5):not(#_6):not(#_7):not(#_8):not(#_9):not(#_10){color:var(--fg)!important}
  html:root[data-theme="light"] body #vdone .dn .dnr:not(#_1):not(#_2):not(#_3):not(#_4):not(#_5):not(#_6):not(#_7):not(#_8):not(#_9):not(#_10),html:root[data-theme="light"] body #vdone .dn .dn-pago:not(#_1):not(#_2):not(#_3):not(#_4):not(#_5):not(#_6):not(#_7):not(#_8):not(#_9):not(#_10){color:var(--fg)!important}
  html:root[data-theme="light"] body #vdone .dn .dnr span:not(#_1):not(#_2):not(#_3):not(#_4):not(#_5):not(#_6):not(#_7):not(#_8):not(#_9):not(#_10){color:var(--muted)!important}
  html:root[data-theme="light"] body #vdone .dn .dnp-bar:not(#_1):not(#_2):not(#_3):not(#_4):not(#_5):not(#_6):not(#_7):not(#_8):not(#_9):not(#_10){background:var(--line)!important}
  html:root[data-theme="light"] body #vdone .dn .dnp-bar i:not(#_1):not(#_2):not(#_3):not(#_4):not(#_5):not(#_6):not(#_7):not(#_8):not(#_9):not(#_10){background:#16a34a!important}
  html:root[data-theme="light"] body #vdone .dn .dn-pago .dnr+.dnr:not(#_1):not(#_2):not(#_3):not(#_4):not(#_5):not(#_6):not(#_7):not(#_8):not(#_9):not(#_10){border-top:1px solid var(--line)!important}
  html:root[data-theme="light"] body #vdone .dn .dn-fold .hint:not(#_1):not(#_2):not(#_3):not(#_4):not(#_5):not(#_6):not(#_7):not(#_8):not(#_9):not(#_10),html:root[data-theme="light"] body #vdone .dn .dn-fold .hint strong:not(#_1):not(#_2):not(#_3):not(#_4):not(#_5):not(#_6):not(#_7):not(#_8):not(#_9):not(#_10){color:var(--fg)!important}
  html:root[data-theme="light"] body #vdone .dn .dn-fold [data-fixcost]:not(#_1):not(#_2):not(#_3):not(#_4):not(#_5):not(#_6):not(#_7):not(#_8):not(#_9):not(#_10){color:var(--fg)!important;border-color:var(--line)!important}
}
@media (max-width:1099px) and (prefers-color-scheme:light){
  html:root:not([data-theme="dark"]) body #vdone:not(:empty):not(#_1):not(#_2):not(#_3):not(#_4):not(#_5):not(#_6):not(#_7):not(#_8):not(#_9):not(#_10){background:var(--bg)!important}
  html:root:not([data-theme="dark"]) body #vdone .dn:not(#_1):not(#_2):not(#_3):not(#_4):not(#_5):not(#_6):not(#_7):not(#_8):not(#_9):not(#_10){background:var(--bg)!important;color:var(--fg)!important}
  html:root:not([data-theme="dark"]) body #vdone .dn h2:not(#_1):not(#_2):not(#_3):not(#_4):not(#_5):not(#_6):not(#_7):not(#_8):not(#_9):not(#_10){color:var(--fg)!important}
  html:root:not([data-theme="dark"]) body #vdone .dn .pill:not(#_1):not(#_2):not(#_3):not(#_4):not(#_5):not(#_6):not(#_7):not(#_8):not(#_9):not(#_10){background:#dcfce7!important;color:#15803d!important}
  html:root:not([data-theme="dark"]) body #vdone .dn .dn-tot span:not(#_1):not(#_2):not(#_3):not(#_4):not(#_5):not(#_6):not(#_7):not(#_8):not(#_9):not(#_10),html:root:not([data-theme="dark"]) body #vdone .dn .dn-tot small:not(#_1):not(#_2):not(#_3):not(#_4):not(#_5):not(#_6):not(#_7):not(#_8):not(#_9):not(#_10){color:var(--muted)!important}
  html:root:not([data-theme="dark"]) body #vdone .dn .dn-tot b:not(#_1):not(#_2):not(#_3):not(#_4):not(#_5):not(#_6):not(#_7):not(#_8):not(#_9):not(#_10){color:#15803d!important}
  html:root:not([data-theme="dark"]) body #vdone .dn .totals:not(#_1):not(#_2):not(#_3):not(#_4):not(#_5):not(#_6):not(#_7):not(#_8):not(#_9):not(#_10),html:root:not([data-theme="dark"]) body #vdone .dn .dn-lines:not(#_1):not(#_2):not(#_3):not(#_4):not(#_5):not(#_6):not(#_7):not(#_8):not(#_9):not(#_10),html:root:not([data-theme="dark"]) body #vdone .dn .dn-profit:not(#_1):not(#_2):not(#_3):not(#_4):not(#_5):not(#_6):not(#_7):not(#_8):not(#_9):not(#_10),html:root:not([data-theme="dark"]) body #vdone .dn .dn-pago:not(#_1):not(#_2):not(#_3):not(#_4):not(#_5):not(#_6):not(#_7):not(#_8):not(#_9):not(#_10),html:root:not([data-theme="dark"]) body #vdone .dn .dn-fold .receipt:not(#_1):not(#_2):not(#_3):not(#_4):not(#_5):not(#_6):not(#_7):not(#_8):not(#_9):not(#_10){background:var(--surface)!important;border:1px solid var(--line)!important;color:var(--fg)!important}
  html:root:not([data-theme="dark"]) body #vdone .dn .totals .r:not(#_1):not(#_2):not(#_3):not(#_4):not(#_5):not(#_6):not(#_7):not(#_8):not(#_9):not(#_10),html:root:not([data-theme="dark"]) body #vdone .dn .totals .r *:not(#_1):not(#_2):not(#_3):not(#_4):not(#_5):not(#_6):not(#_7):not(#_8):not(#_9):not(#_10),html:root:not([data-theme="dark"]) body #vdone .dn .dn-lines .r:not(#_1):not(#_2):not(#_3):not(#_4):not(#_5):not(#_6):not(#_7):not(#_8):not(#_9):not(#_10){color:var(--fg)!important}
  html:root:not([data-theme="dark"]) body #vdone .dn .totals .r.big:not(#_1):not(#_2):not(#_3):not(#_4):not(#_5):not(#_6):not(#_7):not(#_8):not(#_9):not(#_10),html:root:not([data-theme="dark"]) body #vdone .dn .totals .r.big *:not(#_1):not(#_2):not(#_3):not(#_4):not(#_5):not(#_6):not(#_7):not(#_8):not(#_9):not(#_10),html:root:not([data-theme="dark"]) body #vdone .dn .r.big:not(#_1):not(#_2):not(#_3):not(#_4):not(#_5):not(#_6):not(#_7):not(#_8):not(#_9):not(#_10){color:#15803d!important;background:none!important}
  html:root:not([data-theme="dark"]) body #vdone .dn .dn-more:not(#_1):not(#_2):not(#_3):not(#_4):not(#_5):not(#_6):not(#_7):not(#_8):not(#_9):not(#_10){color:var(--muted)!important}
  html:root:not([data-theme="dark"]) body #vdone .dn .dn-ic:not(#_1):not(#_2):not(#_3):not(#_4):not(#_5):not(#_6):not(#_7):not(#_8):not(#_9):not(#_10){color:var(--fg)!important}
  html:root:not([data-theme="dark"]) body #vdone .dn .dn-ic svg:not(#_1):not(#_2):not(#_3):not(#_4):not(#_5):not(#_6):not(#_7):not(#_8):not(#_9):not(#_10){background:color-mix(in srgb,var(--accent) 14%,var(--surface))!important;color:var(--fg)!important;stroke:var(--fg)!important}
  html:root:not([data-theme="dark"]) body #vdone .dn .dn-ic.p svg:not(#_1):not(#_2):not(#_3):not(#_4):not(#_5):not(#_6):not(#_7):not(#_8):not(#_9):not(#_10){background:#22c55e!important;color:#0b0f0e!important;stroke:#0b0f0e!important}
  html:root:not([data-theme="dark"]) body #vdone .dn .dn-new:not(#_1):not(#_2):not(#_3):not(#_4):not(#_5):not(#_6):not(#_7):not(#_8):not(#_9):not(#_10){background:var(--fg)!important;color:var(--bg)!important}
  html:root:not([data-theme="dark"]) body #vdone .dn .dnp-h:not(#_1):not(#_2):not(#_3):not(#_4):not(#_5):not(#_6):not(#_7):not(#_8):not(#_9):not(#_10),html:root:not([data-theme="dark"]) body #vdone .dn .dnr b:not(#_1):not(#_2):not(#_3):not(#_4):not(#_5):not(#_6):not(#_7):not(#_8):not(#_9):not(#_10){color:var(--fg)!important}
  html:root:not([data-theme="dark"]) body #vdone .dn .dnr:not(#_1):not(#_2):not(#_3):not(#_4):not(#_5):not(#_6):not(#_7):not(#_8):not(#_9):not(#_10),html:root:not([data-theme="dark"]) body #vdone .dn .dn-pago:not(#_1):not(#_2):not(#_3):not(#_4):not(#_5):not(#_6):not(#_7):not(#_8):not(#_9):not(#_10){color:var(--fg)!important}
  html:root:not([data-theme="dark"]) body #vdone .dn .dnr span:not(#_1):not(#_2):not(#_3):not(#_4):not(#_5):not(#_6):not(#_7):not(#_8):not(#_9):not(#_10){color:var(--muted)!important}
  html:root:not([data-theme="dark"]) body #vdone .dn .dnp-bar:not(#_1):not(#_2):not(#_3):not(#_4):not(#_5):not(#_6):not(#_7):not(#_8):not(#_9):not(#_10){background:var(--line)!important}
  html:root:not([data-theme="dark"]) body #vdone .dn .dnp-bar i:not(#_1):not(#_2):not(#_3):not(#_4):not(#_5):not(#_6):not(#_7):not(#_8):not(#_9):not(#_10){background:#16a34a!important}
  html:root:not([data-theme="dark"]) body #vdone .dn .dn-pago .dnr+.dnr:not(#_1):not(#_2):not(#_3):not(#_4):not(#_5):not(#_6):not(#_7):not(#_8):not(#_9):not(#_10){border-top:1px solid var(--line)!important}
  html:root:not([data-theme="dark"]) body #vdone .dn .dn-fold .hint:not(#_1):not(#_2):not(#_3):not(#_4):not(#_5):not(#_6):not(#_7):not(#_8):not(#_9):not(#_10),html:root:not([data-theme="dark"]) body #vdone .dn .dn-fold .hint strong:not(#_1):not(#_2):not(#_3):not(#_4):not(#_5):not(#_6):not(#_7):not(#_8):not(#_9):not(#_10){color:var(--fg)!important}
  html:root:not([data-theme="dark"]) body #vdone .dn .dn-fold [data-fixcost]:not(#_1):not(#_2):not(#_3):not(#_4):not(#_5):not(#_6):not(#_7):not(#_8):not(#_9):not(#_10){color:var(--fg)!important;border-color:var(--line)!important}
}

/* v1034 · «Ver factura» de Venta registrada con el recibo propio de Cuadra (duotono, centrado en su círculo). */
.dn-ic>svg.oi{display:none}
@media (max-width:1099px){
  html:root body #vdone .dn .dn-ic[data-act="pdf"]>svg:not(.oi):not(#_x){display:none!important}
  html:root body #vdone .dn .dn-ic[data-act="pdf"]>svg.oi:not(#_x):not(#_y):not(#_z):not(#_w){display:block!important;width:30px!important;height:30px!important;padding:14px;box-sizing:content-box;border-radius:50%;background:color-mix(in srgb,var(--accent) 14%,var(--surface))!important;color:var(--fg)!important;stroke:none!important}
  html:root[data-theme="dark"] body #vdone .dn .dn-ic[data-act="pdf"]>svg.oi:not(#_x):not(#_y):not(#_z):not(#_w){background:#1d2522!important;color:#fff!important}
}
@media (max-width:1099px) and (prefers-color-scheme:dark){
  html:root:not([data-theme="light"]) body #vdone .dn .dn-ic[data-act="pdf"]>svg.oi:not(#_x):not(#_y):not(#_z):not(#_w){background:#1d2522!important;color:#fff!important}
}

/* v1035 · Vender (celular) con íconos propios de Cuadra, duotono y centrados (Juan 2026-11-24): pestañas del carrito, formas de pago, cliente, descuento, recibir equipo, escáner, vista lista/mosaico y «En espera». */
@media (max-width:1099px){
  html:root body #vsteps .vtabs button>span>svg.oi:not(#_x){display:inline-block!important;width:20px;height:20px;vertical-align:-4px;color:inherit}
  html:root body #vsteps .vtabs button.on>span>svg.oi .m,html:root body #vsteps .vtabs button.on>span>svg.oi .d{stroke:var(--bg)}
  html:root body #tab-vender #vpay .vpill:not(#_x):not(#_y)::before{content:none!important}
  html:root body #tab-vender #vpay .vpill>svg:not(.oi):not(#_x){display:none!important}
  html:root body #tab-vender #vpay .vpill>svg.oi:not(#_x):not(#_y){display:block!important;flex:none;width:38px!important;height:38px!important;padding:7px;box-sizing:border-box;border-radius:50%;background:var(--field,#eef1ef)}
  html:root body #tab-vender #vpay .vpill.on>svg.oi:not(#_x):not(#_y){background:color-mix(in srgb,var(--fg) 8%,var(--surface))}
  html:root body #tab-vender .vclibtn .vcli-av:not(#_x):not(#_y)::before{content:none!important}
  html:root body #tab-vender .vclibtn .vcli-av>svg:not(.oi):not(#_x){display:none!important}
  html:root body #tab-vender .vclibtn .vcli-av>svg.oi:not(#_x):not(#_y){display:block!important;width:26px;height:26px}
  html:root body #tab-vender #vdrow .vdh:not(#_x):not(#_y)::before{content:none!important}
  html:root body #tab-vender #vdrow .vdh>svg.oi:not(#_x):not(#_y){display:block!important;flex:none;width:42px!important;height:42px!important;padding:8px;box-sizing:border-box;border-radius:50%;background:#fdecc8;color:#0b0f0e}
  html:root body .vcre>svg.oi:not(#_x):not(#_y){display:block!important;width:26px;height:26px;color:#111}
  html:root body #tab-vender .vvhead #vscan:not(#_x):not(#_y)::before{content:none!important}
  html:root body #tab-vender .vvhead #vscan>svg:not(.oi):not(#_x){display:none!important}
  html:root body #tab-vender .vvhead #vscan>svg.oi:not(#_x):not(#_y){display:block!important;width:26px;height:26px}
  html:root body #vvsw [data-vv]>svg:not(.oi):not(#_x){display:none!important}
  html:root body #vvsw [data-vv]>svg.oi:not(#_x):not(#_y){display:block!important;width:22px;height:22px;margin:auto}
  html:root body #vvsw [data-vv].on>svg.oi .m,html:root body #vvsw [data-vv][aria-pressed="true"]>svg.oi .m{stroke:var(--bg)}
  html body #tab-vender.sheet-open[data-vstep] .cart-foot>.row>#vhold:not(#_x)::before{content:none!important}
  html body #tab-vender.sheet-open[data-vstep] .cart-foot>.row>#vhold:not(#_x)::after{content:"En espera";font-size:.92rem;white-space:nowrap}
  html body #tab-vender.sheet-open[data-vstep] .cart-foot>.row>#vhold>svg.oi:not(#_x){display:inline-block!important;width:18px;height:18px;vertical-align:-3px;margin-right:6px}
  html body .vhsheet .hold::before{content:none!important}
  html body .vhsheet .hold>svg.oi:not(#_x):not(#_y){display:block!important;grid-row:1;grid-column:1;width:44px;height:44px;padding:9px;box-sizing:border-box;border-radius:50%;background:color-mix(in srgb,#f59e0b 22%,var(--surface))}
}
.vhs-i>svg.oi{display:block;width:26px;height:26px;color:#fff}
@media (max-width:1099px){
  html:root body #tab-vender .vvhead #vscan:not(#_x):not(#_y):not(#_z){position:relative}
  html:root body #tab-vender .vvhead #vscan>svg.oi:not(#_x):not(#_y):not(#_z){position:absolute;left:50%;top:50%;margin:0;transform:translate(-50%,-50%)}
}

/* v1036 · «Ver detalle» de Venta registrada «A · Dos tarjetas con ícono» (Juan 2026-11-24): la ganancia como en el detalle de Ventas, con su ícono y su cuenta; sin el mensaje en texto. */
.totals .hint>svg.oi{display:none}
.mgsub{font-weight:600;font-size:.82rem;color:var(--muted)}
@media (max-width:1099px){
  html:root body #slist .item.srow:has(.vs-det)>.totals .hint:not(#_x):not(#_y)::before{content:none!important;display:none!important}
  html:root body .totals .hint>svg.oi:not(#_x):not(#_y){display:block!important;flex:none;width:42px;height:42px;padding:8px;box-sizing:border-box;border-radius:50%;background:#fdecc8;color:#0b0f0e}
  html:root body #slist .item.srow:has(.vs-det)>.totals .hint:not(#_x){display:flex;align-items:center;gap:12px}
  html:root body #vdone .dn .dn-fold .totals:not(#_x):not(#_y){display:flex;flex-direction:column;gap:6px;text-align:left;border-radius:28px!important;padding:14px 16px!important}
  html:root body #vdone .dn .dn-fold .totals .hint:not(#_x):not(#_y){display:flex;align-items:center;gap:12px;order:-3;margin:0;font-size:1rem;text-align:left}
  html:root body #vdone .dn .dn-fold .totals .hint strong:not(#_x):not(#_y){font-size:1rem;font-weight:800}
  html:root body #vdone .dn .dn-fold .totals .mgrows:not(#_x):not(#_y){display:block;order:-2;padding:6px 2px 0}
  html:root body #vdone .dn .dn-fold .totals .mgr:not(#_x):not(#_y){display:flex;justify-content:space-between;padding:4px 0;font-size:.95rem}
  html:root body #vdone .dn .dn-fold .totals .mgr span:not(#_x){color:var(--muted)!important}
  html:root body #vdone .dn .dn-fold .totals .mgr.neg b:not(#_x){color:#dc2626!important}
  html:root body #vdone .dn .dn-fold .totals .r:has(strong):not(#_x):not(#_y){order:-1;display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid color-mix(in srgb,currentColor 16%,transparent);margin-top:6px;padding:12px 2px 6px;text-align:left}
  html:root body #vdone .dn .dn-fold .totals .r:has(strong) .mgv:not(#_x):not(#_y){display:flex;align-items:center;gap:8px}
  html:root body #vdone .dn .dn-fold .totals .r:has(strong) .mgv>span:first-child:not(#_x){font-family:var(--f-display);font-size:1.5rem;font-weight:800}
  html:root body #vdone .dn .dn-fold .totals .mgp:not(#_x):not(#_y){background:rgba(74,222,128,.16);color:#4ade80;border-radius:999px;padding:3px 10px;font-size:.78rem;font-weight:800}
  html:root body #vdone .dn .dn-fold .totals>.row:not(#_x):not(#_y){justify-content:stretch;margin-top:4px}
  html:root body #vdone .dn .dn-fold .totals>.row .btn:not(#_x):not(#_y){width:100%;min-height:46px;border-radius:999px!important;font-weight:800}
  html:root body #vdone .dn .dn-fold .totals .hint>svg.oi:not(#_x):not(#_y){color:#0b0f0e}
}

/* v1037 · Anular «A · Hoja con aviso rojo» y Comprobantes «A · Miniaturas» (Juan 2026-11-24). Solo celular. */
.vd-warn{display:flex;gap:10px;align-items:flex-start}
.vd-warn>svg.oi{display:none}
.prfrow{display:contents}
.vsd-prf .prft>svg.oi,.vsd-prf .prft .prfsub{display:none}
.prfadd>svg.oi{display:none}
@media (max-width:1099px){
  /* Anular */
  html:root body #slist .vd-warn:not(#_x){padding:12px 14px;border-radius:22px;background:#fde8e6;border:1px solid #f6c9c4;color:#7a2a24;font-size:.85rem;line-height:1.4}
  html:root body #slist .vd-warn>svg.oi:not(#_x){display:block!important;flex:none;width:26px;height:26px}
  html:root body #slist .vdpanel .rp-ic.bad{background:#fde8e6}
  html:root body #slist .vdpanel .rp-ic>svg.oi:not(#_x){color:#dc2626}
  html:root body #slist .vdpanel .rp-act:not(#_x){display:flex;flex-direction:column;gap:8px}
  html:root body #slist .vdpanel .rp-act .btn.danger:not(#_x):not(#_y){background:#c62828!important;color:#fff!important;border:0!important}
  html:root body #slist .vdpanel .rp-act .btn:not(.danger):not(#_x):not(#_y){background:var(--surface)!important;color:var(--fg)!important;border:1.5px solid color-mix(in srgb,var(--fg) 22%,var(--line))!important;min-height:50px}
  html:root body #slist .vdpanel:not(#_x):not(#_y){padding-bottom:calc(170px + env(safe-area-inset-bottom,0px))}
  /* Comprobantes */
  html:root body #slist .vsd-prf:not(#_x):not(#_y){border-radius:24px;padding:14px 16px}
  html:root body #slist .vsd-prf .prft:not(#_x):not(#_y){display:grid;grid-template-columns:40px 1fr;column-gap:12px;align-items:center;margin:0 0 12px;font-size:1rem}
  html:root body #slist .vsd-prf .prft>svg.oi:not(#_x){display:block!important;grid-row:1/3;width:40px;height:40px;padding:8px;box-sizing:border-box;border-radius:50%;background:color-mix(in srgb,var(--accent) 14%,var(--surface))}
  html:root body #slist .vsd-prf .prft .prfsub:not(#_x){display:block;grid-column:2;font-weight:500;font-size:.82rem;color:var(--muted)}
  html:root body #slist .vsd-prf .prfrow:not(#_x){display:flex;flex-wrap:wrap;gap:10px;align-items:flex-start}
  html:root body #slist .vsd-prf .prfrow>.hint{display:none}
  html:root body #slist .vsd-prf .prflist:not(#_x){display:contents}
  html:root body #slist .vsd-prf .prfit:not(#_x):not(#_y){width:84px;height:84px;padding:0;border-radius:18px;overflow:hidden;position:relative;display:block}
  html:root body #slist .vsd-prf .prfit .prfth:not(#_x){width:100%;height:100%;flex:none;border:0;border-radius:0}
  html:root body #slist .vsd-prf .prfit .prfm:not(#_x),html:root body #slist .vsd-prf .prfit .prfgo:not(#_x){display:none}
  html:root body #slist .vsd-prf .prfadd:not(#_x):not(#_y){width:84px;height:84px;flex-direction:column;gap:2px;padding:0;border-radius:18px;border:2px dashed color-mix(in srgb,var(--fg) 28%,var(--line))!important;background:transparent!important;font-size:.72rem;font-weight:800;line-height:1.1;text-align:center}
  html:root body #slist .vsd-prf .prfadd>svg:not(.oi):not(#_x){display:none!important}
  html:root body #slist .vsd-prf .prfadd>svg.oi:not(#_x){display:block!important;width:28px;height:28px}
  html:root body #slist .vsd-prf .prfadd>span:not(#_x){font-size:.72rem}
}

@media (max-width:1099px){
  html:root body #slist .rp-act .btn.rp-cancel:not(#_x):not(#_y){background:var(--surface)!important;color:var(--fg)!important;border:1.5px solid color-mix(in srgb,var(--fg) 22%,var(--line))!important;min-height:50px;margin-top:8px}
  html:root body #slist .retpanel:not(.vdpanel):not(#_x):not(#_y){padding-bottom:calc(170px + env(safe-area-inset-bottom,0px))}
  html:root body #slist .rp-act.one{display:flex;flex-direction:column}
  html:root body #slist .rp-act .btn.rp-cancel:not(#_x){display:flex}
}
.rp-act .rp-cancel{display:none}
@media (max-width:1099px){
  html:root body #slist .retpanel .rp-exch:not(#_x):not(#_y){padding:12px 16px!important;gap:12px}
}

/* v1040 · Confirmación de «Venta anulada» y comprobantes («Devolución registrada», abonos): hoja «A» de Juan (2026-11-24), en rojo cuando es una anulación. Solo celular. */
.rc-hd{display:none}
.sd-hd{display:flex;align-items:center;gap:12px}
.sd-hd b{display:block;font-family:var(--f-display);font-size:1.25rem;letter-spacing:-.01em}
.sd-hd small{color:var(--muted)}
.sd-ic{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:color-mix(in srgb,var(--accent) 14%,var(--surface));flex:none}
.sd-ic svg.oi{display:block;width:26px;height:26px}
.sd-ic.bad{background:#fde8e6}
.sd-rows{background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:6px 16px}
.sd-rows .sdrow{padding:8px 0}
.sd-big{display:flex;flex-direction:column;align-items:center;gap:2px;padding:16px 12px;border-radius:26px;background:#0b0f0e;color:#fff;text-align:center}
.sd-big span{font-size:.85rem;color:#9fb0a8}
.sd-big b{font-family:var(--f-display);font-size:2.2rem;letter-spacing:-.02em;color:#4ade80}
.sd-big.bad{background:color-mix(in srgb,#dc2626 14%,var(--surface));border:1px solid color-mix(in srgb,#dc2626 32%,var(--line))}
.sd-big.bad span{color:color-mix(in srgb,#dc2626 55%,var(--fg))}.sd-big.bad b{color:color-mix(in srgb,#dc2626 78%,var(--fg))}
.sd-bar{height:5px;border-radius:9px;background:color-mix(in srgb,var(--fg) 12%,transparent);overflow:hidden}
.sd-bar i{display:block;height:100%;background:#dc2626;border-radius:9px;transform-origin:left;animation:sdbar linear forwards}
@keyframes sdbar{from{transform:scaleX(1)}to{transform:scaleX(0)}}
@media (prefers-reduced-motion:reduce){.sd-bar i{animation:none}}
.sd-btns{display:flex;gap:8px}
.sd-btns .btn{min-height:54px;border-radius:999px!important;font-weight:800}
.sd-btns #sdundo{flex:1;background:var(--surface)!important;color:var(--fg)!important;border:1.5px solid color-mix(in srgb,var(--fg) 22%,var(--line))!important}
.sd-btns #sdok{flex:2}
@media (max-width:1099px){
  html:root body .modal.sdone .sd-a>.prn,html:root body .modal.sdone .sd-a>.row:has(.okmark){display:none!important}
  html:root body .modal.sdone .sd-a .rc-hd{display:flex}
  html:root body .modal.sdone .sd-a .sdchg:not(#_x){background:#0b0f0e;color:#fff;border-radius:26px;margin-top:0}
  html:root body .modal.sdone .sd-a .sdchg.sdbad:not(#_x){background:color-mix(in srgb,#dc2626 14%,var(--surface));border:1px solid color-mix(in srgb,#dc2626 32%,var(--line))}
  html:root body .modal.sdone .sd-a .sdchg b:not(#_x){color:#4ade80;font-size:2.2rem}
  html:root body .modal.sdone .sd-a .sdchg.sdbad b:not(#_x){color:color-mix(in srgb,#dc2626 78%,var(--fg))}
  html:root body .modal.sdone .sd-a .sdchg span:not(#_x){color:#9fb0a8}
  html:root body .modal.sdone .sd-a>.btn:not(#_x){min-height:54px;border-radius:999px!important;font-weight:800}
}
@media (max-width:1099px){
  html:root body .modal.sdone .dlg.sd-a:not(#_x):not(#_y){padding:22px 16px calc(22px + env(safe-area-inset-bottom,0px));gap:12px}
}
.sd-big:not(.bad),.modal.sdone .sd-a .sdchg:not(.sdbad){border:1px solid #2b3330}

/* v1041 · Inventario, pantalla principal «A» (Juan 2026-11-24): tres cifras en una tarjeta, pestañas en selector, buscador en píldora con escáner adentro, chips de estado, una tarjeta por producto e íconos propios duotono. Solo celular. */
.ih-eye>svg.oi{display:none}
@media (max-width:1099px){
  html:root body #tab-inventario #ihero2 .ih-eye>svg:not(.oi):not(#_x){display:none!important}
  html:root body #tab-inventario #ihero2 .ih-eye>svg.oi:not(#_x):not(#_y){display:inline-block!important;width:15px;height:15px;vertical-align:-2px}
  html:root body #tab-inventario #ihero2 .ih-eye:not(#_x){background:none!important;border:0!important;padding:0 2px!important;min-height:0!important;width:auto!important;height:auto!important}
  #tab-inventario #ihero2 .vsum{display:grid}
  #tab-inventario #ihero2>.k,#tab-inventario #ihero2>.vnum,#tab-inventario #ihero2>.vqpills{display:none!important}
  #tab-inventario>#ihero2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g){display:block!important;background:var(--surface)!important;background-image:none!important;color:var(--fg)!important;border:1px solid var(--line)!important;border-radius:26px!important;padding:14px 4px!important;margin:0 0 12px!important;box-shadow:none!important;min-height:0!important}
  #tab-inventario>#ihero2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e)::before{display:none!important;content:none!important}
  #tab-inventario #ihero2 .vsum{grid-template-columns:1.35fr 1fr 1fr;text-align:center}
  #tab-inventario #ihero2 .vsc{display:flex;flex-direction:column;align-items:center;gap:2px;padding:0 4px;border:0;background:none;color:var(--fg);font:inherit;min-width:0}
  #tab-inventario #ihero2 .vsc+.vsc{border-left:1px solid var(--line)}
  #tab-inventario #ihero2 .vsc .vsi{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:color-mix(in srgb,var(--accent) 14%,var(--surface));margin-bottom:4px}
  #tab-inventario #ihero2 .vsc .vsi svg.oi{display:block;width:22px;height:22px}
  #tab-inventario #ihero2 .vsc .vst{font-size:.72rem;font-weight:700;color:var(--muted)}
  #tab-inventario #ihero2 .vsc b{font-family:var(--f-display);font-size:1.05rem;font-weight:800;letter-spacing:-.02em;white-space:nowrap}
  /* pestañas en selector */
  html:root body #tab-inventario #invseg:not(#_x):not(#_y){display:flex;gap:2px;padding:4px!important;border-radius:999px!important;background:color-mix(in srgb,var(--fg) 8%,var(--bg))!important;border:0!important;overflow:hidden}
  html:root body #tab-inventario #invseg>button:not(#_x):not(#_y){flex:1;min-height:42px;border:0!important;border-radius:999px!important;background:transparent!important;color:var(--fg)!important;font-weight:800;font-size:.88rem;padding:0 6px;box-shadow:none!important}
  html:root body #tab-inventario #invseg>button.on:not(#_x):not(#_y){background:var(--fg)!important;color:var(--bg)!important}
  /* buscador */
  html:root body #tab-inventario #isbar label.f:not(#_x):not(#_y){position:relative;font-size:0;gap:0}
  html:root body #tab-inventario #isbar label.f::before:not(#_x){content:none!important}
  html:root body #tab-inventario #isbar label.f>svg.oi.vsx:not(#_x):not(#_y){display:block!important;position:absolute;left:14px;top:50%;width:24px;height:24px;transform:translateY(-50%);pointer-events:none;z-index:1;color:var(--muted)}
  html:root body #tab-inventario #isbar #isearch:not(#_x):not(#_y){height:46px!important;min-height:0!important;border-radius:999px!important;background:var(--surface)!important;border:1px solid var(--line)!important;padding-left:46px!important;padding-right:52px!important;font-size:1rem!important}
  html:root body #tab-inventario #isbar #iscan:not(#_x):not(#_y){position:relative;margin-left:-52px;z-index:2;width:44px!important;height:44px!important;min-width:0!important;padding:0!important;border-radius:50%!important;background:none!important;border:0!important;display:grid!important;place-items:center;flex:none}
  html:root body #tab-inventario #isbar #iscan>span,html:root body #tab-inventario #isbar #iscan>svg:not(.oi){display:none!important}
  html:root body #tab-inventario #isbar #iscan>svg.oi:not(#_x){display:block!important;position:absolute;left:50%;top:50%;margin:0;transform:translate(-50%,-50%);width:26px;height:26px;color:var(--fg)}
  html:root body #tab-inventario #isbar .vsbtn:not(#_x):not(#_y){width:46px!important;height:46px!important;min-width:0!important;min-height:0!important;padding:0!important;border-radius:50%!important;position:relative;flex:none}
  html:root body #tab-inventario #isbar .vsbtn>svg:not(.oi):not(#_x){display:none!important}
  html:root body #tab-inventario #isbar .vsbtn>svg.oi:not(#_x):not(#_y){display:block!important;position:absolute;left:50%;top:50%;margin:0;transform:translate(-50%,-50%);width:28px;height:28px;color:var(--fg)}
  html:root body #tab-inventario #isbar .vsbtn.primary>svg.oi:not(#_x){color:var(--bg,#fff)}
  /* chips y filtros */
  html:root body #tab-inventario #invchips:not(#_x):not(#_y){display:flex!important}
  html:root body #tab-inventario #invchips .vqchip:not(#_x){background:var(--surface);border:1px solid var(--line)}
  html:root body #tab-inventario #invchips .vqchip.on:not(#_x){background:var(--fg);border-color:var(--fg);color:var(--bg,#fff)}
  html:root body #tab-inventario .vqchip.vfil>svg:not(.oi):not(#_x){display:none!important}
  html:root body #tab-inventario .vqchip.vfil>svg.oi:not(#_x):not(#_y){display:block!important;width:18px;height:18px}
  html:root body #tab-inventario #invctl .ctlsel:not(#_x){display:none!important}
  html:root body #tab-inventario #invctl:not(#_x){justify-content:flex-end}
  html:root body #tab-inventario #ivsw [data-iv]>svg:not(.oi):not(#_x){display:none!important}
  html:root body #tab-inventario #ivsw [data-iv]>svg.oi:not(#_x):not(#_y){display:block!important;width:22px;height:22px;margin:auto}
  html:root body #tab-inventario #ivsw [data-iv].on>svg.oi .m,html:root body #tab-inventario #ivsw [data-iv][aria-pressed="true"]>svg.oi .m{stroke:var(--bg)}
  /* lista: una tarjeta por producto */
  html:root body #tab-inventario #listcard:not(#_x):not(#_y){background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important}
  html:root body #tab-inventario #listcard>h2,html:root body #tab-inventario #listcard>#isummary,html:root body #tab-inventario #listcard>#icount{display:none!important}
  html:root body #tab-inventario #ilist .vday:not(#_x){padding:14px 6px 2px;font-size:1rem}
  html:root body #tab-inventario #ilist .item.inv:not(#_x):not(#_y){background:var(--surface)!important;border:1px solid var(--line)!important;border-radius:22px!important;padding:10px 12px!important;margin:8px 0 0!important;box-shadow:none!important}
  html:root body #tab-inventario #ilist .ir2 .thumb.vcat:not(#_x):not(#_y){width:46px!important;height:46px!important;border-radius:50%!important;background:color-mix(in srgb,var(--accent) 14%,var(--surface))!important;display:grid;place-items:center}
  html:root body .thumb.vcat>svg:not(.oi):not(#_x){display:none!important}
  html:root body .thumb.vcat>svg.oi:not(#_x):not(#_y){display:block!important;width:28px;height:28px;color:var(--fg)}
}
@media (max-width:1099px){
  html:root body #tab-inventario #isbar label.f:not(#_x):not(#_y):not(#_z){margin:0;display:block;height:46px;flex:1 1 auto}
  html:root body #tab-inventario #isbar #iscan:not(#_x):not(#_y):not(#_z):not(#_w):not(#_v){background:transparent!important;border:0!important;box-shadow:none!important;color:var(--fg)!important}
  html:root body #tab-inventario #isbar .vsbtn.primary>svg.oi:not(#_x):not(#_y):not(#_z){color:var(--bg,#fff)}
  html:root body #tab-inventario #isbar #imenubtn:not(#_x):not(#_y):not(#_z){background:var(--surface)!important;border:1px solid var(--line)!important}
}
@media (max-width:1099px){
  html:root body #tab-inventario #isbar:not(#_x):not(#_y){flex-wrap:nowrap!important;align-items:center;gap:8px}
  html:root body #tab-inventario #isbar label.f:not(#_x):not(#_y):not(#_z):not(#_w){flex:1 1 0%;min-width:0;width:auto}
}
@media (max-width:1099px){
  html:root body #tab-inventario #isbar #iscan:not(#_x):not(#_y):not(#_z):not(#_w):not(#_v){position:absolute!important;margin:0!important;right:1px!important;top:1px!important;bottom:auto!important;left:auto!important;transform:none!important}
}

@media (max-width:1099px){
  html:root body #tab-inventario #invseg:not(#_x):not(#_y):not(#_z):not(#_w):not(#_v):not(#_u){display:flex;gap:2px;padding:4px!important;border-radius:999px!important;background:color-mix(in srgb,var(--fg) 8%,var(--bg))!important;border:0!important;overflow:hidden!important}
  html:root body #tab-inventario #invseg>button:not(#_x):not(#_y):not(#_z):not(#_w):not(#_v):not(#_u){flex:1;min-height:42px;border:0!important;border-radius:999px!important;background:transparent!important;color:var(--fg)!important;font-weight:800;font-size:.88rem;padding:0 6px!important;box-shadow:none!important}
  html:root body #tab-inventario #invseg>button.on:not(#_x):not(#_y):not(#_z):not(#_w):not(#_v):not(#_u){background:var(--fg)!important;color:var(--bg)!important}
}

/* v1041 · Inventario: chips de estado y botones de vista en UNA sola línea (Juan 2026-11-24). Los chips se deslizan de lado; «Filtros» queda solo con su ícono; las vistas van pegadas a la derecha. */
@media (max-width:1099px){
  html:root body #tab-inventario #invchips:not(#_x):not(#_y):not(#_z):not(#_w):not(#_v):not(#_u){flex-wrap:nowrap;overflow-x:auto;padding-right:118px;margin:10px 0 0!important;min-height:44px;align-items:center}
  html:root body #tab-inventario #invctl:not(#_x):not(#_y):not(#_z):not(#_w):not(#_v):not(#_u){display:flex!important;margin-top:-44px!important;height:44px;padding:0;pointer-events:none;justify-content:flex-end;align-items:center}
  html:root body #tab-inventario #invctl #ivsw:not(#_x):not(#_y):not(#_z):not(#_w):not(#_v):not(#_u){pointer-events:auto;gap:4px!important;flex:none}
  html:root body #tab-inventario #invctl #ivsw>button:not(#_x):not(#_y):not(#_z):not(#_w):not(#_v):not(#_u){width:34px!important;height:34px!important;min-height:0!important}
  html:root body #tab-inventario #invchips .vqchip.vfil>span:not(#_x):not(#_y):not(#_z):not(#_w):not(#_v):not(#_u){display:none}
  html:root body #tab-inventario #invchips .vqchip.vfil:not(#_x):not(#_y):not(#_z):not(#_w):not(#_v):not(#_u){width:40px;height:40px;padding:0;justify-content:center;position:relative}
  html:root body #tab-inventario #invchips .vqchip.vfil .fcount:not(#_x):not(#_y):not(#_z):not(#_w):not(#_v):not(#_u){position:absolute;top:-4px;right:-4px}
}

@media (max-width:1099px){
  html:root body #tab-inventario #invchips:not(#_x):not(#_y):not(#_z):not(#_w):not(#_v):not(#_u):not(#_t){padding-right:0!important;margin-right:106px!important;gap:6px;overflow-x:auto}
  html:root body #tab-inventario #invchips .vqchip:not(#_x):not(#_y):not(#_z):not(#_w):not(#_v):not(#_u):not(#_t){padding:8px 11px;font-size:.8rem;height:40px}
  html:root body #tab-inventario #invchips .vqchip.vfil:not(#_x):not(#_y):not(#_z):not(#_w):not(#_v):not(#_u):not(#_t){width:40px;padding:0;order:-1}
  html:root body #tab-inventario #invctl #ivsw:not(#_x):not(#_y):not(#_z):not(#_w):not(#_v):not(#_u):not(#_t){gap:2px!important}
  html:root body #tab-inventario #invctl #ivsw>button:not(#_x):not(#_y):not(#_z):not(#_w):not(#_v):not(#_u):not(#_t){width:32px!important;height:32px!important;border-radius:50%!important}
}

@media (max-width:1099px){
  html:root body #tab-inventario #invctl #ivsw>button:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l){width:32px!important;min-width:32px!important;height:32px!important;padding:0!important}
  html:root body #tab-inventario #invctl #ivsw:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l){width:auto;gap:2px!important}
}

/* v1042 · Inventario: «Lista» compacta (una línea por producto), distinta de «Detalle» (Juan 2026-11-24: «se ven igual»). */
@media (max-width:1099px){
  html:root body #tab-inventario #ilist.v-lista .item.inv:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){display:block!important;padding:9px 14px!important;margin:6px 0 0!important;min-height:0!important;border-radius:16px!important}
  html:root body #tab-inventario #ilist.v-lista .item.inv>.main:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h),html:root body #tab-inventario #ilist.v-lista .item.inv>.thumb:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h),html:root body #tab-inventario #ilist.v-lista .item.inv>.isel:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){display:none!important}
  html:root body #tab-inventario #ilist.v-lista .item.inv .ir2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){display:block}
  html:root body #tab-inventario #ilist.v-lista .item.inv .ir2>.thumb:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){display:none!important}
  html:root body #tab-inventario #ilist.v-lista .item.inv .vm:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){display:flex;align-items:center;justify-content:space-between;gap:10px}
  html:root body #tab-inventario #ilist.v-lista .item.inv .l1:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){flex:1;min-width:0;display:flex;justify-content:space-between;gap:10px;align-items:center}
  html:root body #tab-inventario #ilist.v-lista .item.inv .l1 b:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:.95rem}
  html:root body #tab-inventario #ilist.v-lista .item.inv .l2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){flex:none;margin:0;display:flex}
  html:root body #tab-inventario #ilist.v-lista .item.inv .l2>span:first-child:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){display:none}
}

/* v1042 · Inventario (celular): sin la vista «Lista» (Juan 2026-11-24). */
@media (max-width:1099px){
  html:root body #tab-inventario #ivsw [data-iv="lista"]:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){display:none!important}
  html:root body #tab-inventario #invchips:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i){margin-right:76px!important;padding-right:0!important}
}

/* v1042 · «Ganancia» de Venta registrada, clara a primera vista (Juan 2026-11-24): ícono, título con «Solo la ves tú» y el monto en verde con su porcentaje en píldora. */
.dnpi,.dnpt{display:none}
@media (max-width:1099px){
  html:root body #vdone .dn .dn-profit:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;column-gap:12px;padding:12px 14px;text-align:left}
  html:root body #vdone .dn .dn-profit>span:not(.dnpi):not(.dnpt):not(#_x){display:none}
  html:root body #vdone .dn .dn-profit .dnpi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:#fdecc8}
  html:root body #vdone .dn .dn-profit .dnpi svg.oi{display:block;width:26px;height:26px;color:#0b0f0e}
  html:root body #vdone .dn .dn-profit .dnpt:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){display:flex;flex-direction:column;min-width:0}
  html:root body #vdone .dn .dn-profit .dnpt b:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){font-size:1rem;font-weight:800}
  html:root body #vdone .dn .dn-profit .dnpt small:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){font-size:.78rem;font-weight:500;opacity:.7}
  html:root body #vdone .dn .dn-profit .mgv:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){display:flex;flex-direction:column;align-items:flex-end;gap:3px}
  html:root body #vdone .dn .dn-profit .mgv>span:first-child:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){font-family:var(--f-display);font-size:1.35rem;font-weight:800;letter-spacing:-.02em;color:#15803d}
  html:root body #vdone .dn .dn-profit .mgp:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){background:#dcfce7;color:#15803d;border-radius:999px;padding:2px 9px;font-size:.74rem;font-weight:800}
  html:root[data-theme="dark"] body #vdone .dn .dn-profit .mgv>span:first-child:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){color:#4ade80}
  html:root[data-theme="dark"] body #vdone .dn .dn-profit .mgp:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){background:rgba(74,222,128,.16);color:#4ade80}
}
@media (max-width:1099px) and (prefers-color-scheme:dark){
  html:root:not([data-theme="light"]) body #vdone .dn .dn-profit .mgv>span:first-child:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){color:#4ade80}
  html:root:not([data-theme="light"]) body #vdone .dn .dn-profit .mgp:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){background:rgba(74,222,128,.16);color:#4ade80}
}

/* v1042 · Botones «Deshacer» y «Listo» de la hoja de venta anulada: cápsula completa y con ícono duotono (Juan 2026-11-24). */
.sd-btns .btn>svg.oi{display:none}
@media (max-width:1099px){
  html:root body .modal.sdone .sd-btns>.btn:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){display:flex!important;align-items:center;justify-content:center;gap:8px;border-radius:999px!important;min-height:54px;height:54px}
  html:root body .modal.sdone .sd-btns>.btn>svg:not(.oi):not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){display:none!important}
  html:root body .modal.sdone .sd-btns>.btn>svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){display:block!important;width:24px;height:24px;flex:none}
  html:root body .modal.sdone .sd-btns #sdundo>svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){color:var(--fg)}
  html:root body .modal.sdone .sd-btns #sdok>svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){color:var(--bg,#fff)}
  html:root body .modal.sdone .sd-btns #sdok>svg.oi .m,html:root body .modal.sdone .sd-btns #sdok>svg.oi .d:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){stroke:var(--bg,#fff)}
}

/* v1043 · «Paga con» «A · Tarjeta con billetes» (Juan 2026-11-24): tarjeta con borde verde, atajos de billetes y el vuelto a la vista. Solo celular. */
@media (max-width:1099px){
  html:root body #vcashrow .vcashcard:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){display:flex;flex-direction:column;gap:10px;padding:14px 16px;border-radius:26px;background:color-mix(in srgb,var(--accent) 7%,var(--surface));border:2px solid var(--accent)}
  html:root body #vcashrow .vcc-hd{display:flex;align-items:center;gap:12px}
  html:root body #vcashrow .vcc-hd .vcrt{display:flex;flex-direction:column;min-width:0}
  html:root body #vcashrow .vcc-hd .vcrt b{font-size:1.02rem;font-weight:800}
  html:root body #vcashrow .vcc-hd .vcrt small{color:var(--muted);font-size:.8rem}
  html:root body #vcashrow .vcc-chips{display:flex;flex-wrap:wrap;gap:8px}
  html:root body #vcashrow .vcc-chips .cschip:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){border-radius:999px;padding:9px 14px;font-weight:800;font-size:.85rem;background:var(--surface);border:1px solid var(--line);color:var(--fg)}
  html:root body #vcashrow .vcc-chips .cschip.on:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){background:var(--fg);border-color:var(--fg);color:var(--bg,#fff)}
  html:root body #vcashrow .vcc-chg{display:flex;justify-content:space-between;align-items:center;padding-top:10px;border-top:1px solid var(--line);color:var(--muted)}
  html:root body #vcashrow .vcc-chg b{font-family:var(--f-display);font-size:1.4rem;font-weight:800;color:#15803d}
  html:root body #vcashrow .vcc-chg.bad b{color:#c62828}
  html:root[data-theme="dark"] body #vcashrow .vcc-chg:not(.bad) b{color:#4ade80}
}

/* v1043 · Íconos propios en los botones «Listo», «Cancelar», «Devolver» y «Anular venta» (mismos que «Deshacer»/«Listo» de la hoja de anulación). */
.btn>svg.oi.bi{display:none}
@media (max-width:1099px){
  html:root body :is(.modal.sdone [data-rcok],.modal.sdone [data-rcp],.vf-foot [data-vfgo],.rp-act .rp-cancel,.vdpanel .rp-act [data-no],.retpanel .rp-act [data-doret],.vdpanel .rp-act [data-yes]):not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){display:flex!important;align-items:center;justify-content:center;gap:8px}
  html:root body :is(.modal.sdone [data-rcok],.modal.sdone [data-rcp],.vf-foot [data-vfgo],.rp-act .rp-cancel,.vdpanel .rp-act [data-no],.retpanel .rp-act [data-doret],.vdpanel .rp-act [data-yes])>svg:not(.oi):not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){display:none!important}
  html:root body :is(.modal.sdone [data-rcok],.modal.sdone [data-rcp],.vf-foot [data-vfgo],.rp-act .rp-cancel,.vdpanel .rp-act [data-no],.retpanel .rp-act [data-doret],.vdpanel .rp-act [data-yes])>svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){display:block!important;width:24px;height:24px;flex:none;color:currentColor}
  html:root body :is(.modal.sdone [data-rcok],.vf-foot [data-vfgo],.retpanel .rp-act [data-doret])>svg.oi .m,html:root body :is(.modal.sdone [data-rcok],.vf-foot [data-vfgo],.retpanel .rp-act [data-doret])>svg.oi .d:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){stroke:var(--bg,#fff)}
  html:root body .vdpanel .rp-act [data-yes]>svg.oi .m,html:root body .vdpanel .rp-act [data-yes]>svg.oi .a,html:root body .vdpanel .rp-act [data-yes]>svg.oi .d:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){stroke:#fff}
}


/* v1046 · Una sola tarjeta de «Ganancia» que se abre (Juan 2026-11-24: «¿por qué hay dos ganancias?»): el resumen es el botón; al tocarlo se despliega adentro la cuenta. Sin «Ver detalle». */
.dnpc{display:none}
@media (max-width:1099px){
  html:root body #vdone .dn .dn-profit:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){width:100%;font:inherit;cursor:pointer;text-align:left;grid-template-columns:44px minmax(0,1fr) auto 14px}
  html:root body #vdone .dn .dn-profit .dnpc:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){display:block;width:9px;height:9px;border:solid var(--muted);border-width:2px 2px 0 0;transform:rotate(135deg);justify-self:end;margin-top:-4px;transition:transform .15s}
  html:root body #vdone .dn .dn-profit.open .dnpc:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){transform:rotate(-45deg);margin-top:4px}
  html:root body #vdone .dn .dn-profit.open:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){border-radius:22px 22px 0 0!important;border-bottom-color:transparent!important}
  html:root body #vdone .dn .dn-profit+.dn-more:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){display:none!important} /* v1114 (Codex): «Ver detalle» solo se esconde si existe el botón de ganancia; sin costos queda como único acceso al detalle */
  html:root body #vdone .dn .dn-fold:not([hidden]):not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){margin-top:-8px!important}
  html:root body #vdone .dn .dn-fold .totals:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){border-radius:0 0 22px 22px!important;border-top:0!important;padding-top:0!important}
  html:root body #vdone .dn .dn-fold .totals>.hint:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){display:none!important}
  html:root body #vdone .dn .dn-fold .totals .mgrows:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){border-top:1px solid color-mix(in srgb,currentColor 14%,transparent);padding-top:10px}
}

/* v1047 · Menú «⋯» de Inventario «A · Lista agrupada» (Juan 2026-11-24): grupos con título, filas con ícono propio duotono y flechita. */
.optit i>svg.oi,.optgo{display:none}
.optlbl{font-size:.75rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin:12px 4px 6px}
@media (max-width:1099px){
  html:root body .optsheet .optit i>svg:not(.oi):not(#_x){display:none!important}
  html:root body .optsheet .optit i>svg.oi:not(#_x):not(#_y){display:block!important;width:26px;height:26px;color:var(--fg)}
  html:root body .optsheet .optit i:not(#_x):not(#_y){width:44px;height:44px;border-radius:50%;background:color-mix(in srgb,var(--accent) 14%,var(--surface))}
  html:root body .optsheet .optit i:not(:has(svg.oi)):not(#_x) svg{display:block!important}
  html:root body .optsheet .optgrp:not(#_x){background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:2px 14px}
  html:root body .optsheet .optgrp .optit:not(#_x){padding:10px 0;border-top:1px solid var(--line)}
  html:root body .optsheet .optgrp .optit:first-child:not(#_x){border-top:0}
  html:root body .optsheet .optgo:not(#_x){display:block;width:8px;height:8px;border:solid var(--muted);border-width:2px 2px 0 0;transform:rotate(45deg);margin-right:6px;flex:none}
}

/* v1047 · Hoja del escáner «A · Cámara con marco de esquinas» (Juan 2026-11-24). Solo celular. */
.scankb,.scanline{display:none}
.scan2 .scantorch>svg.oi{display:none}
@keyframes scanmove{0%{top:12%}50%{top:86%}100%{top:12%}}
@media (max-width:1099px){
  html:root body .dlg.scan2 .scanframe:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){border:0;border-radius:0;box-shadow:none;background:
    linear-gradient(#fff,#fff) left top/34px 4px no-repeat,linear-gradient(#fff,#fff) left top/4px 34px no-repeat,
    linear-gradient(#fff,#fff) right top/34px 4px no-repeat,linear-gradient(#fff,#fff) right top/4px 34px no-repeat,
    linear-gradient(#fff,#fff) left bottom/34px 4px no-repeat,linear-gradient(#fff,#fff) left bottom/4px 34px no-repeat,
    linear-gradient(#fff,#fff) right bottom/34px 4px no-repeat,linear-gradient(#fff,#fff) right bottom/4px 34px no-repeat;filter:drop-shadow(0 0 2px rgba(0,0,0,.6))}
  html:root body .dlg.scan2 .scanframe .scanline:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){display:block;position:absolute;left:6px;right:6px;top:50%;height:3px;border-radius:3px;background:#22c55e;box-shadow:0 0 12px #22c55e;animation:scanmove 2.4s ease-in-out infinite}
  html:root body .dlg.scan2.scanok .scanframe,html:root body .dlg.scan2.scanerr .scanframe,html:root body .dlg.scan2.scanwarn .scanframe:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){box-shadow:none}
  html:root body .dlg.scan2 .scantorch:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){position:absolute;right:12px;top:12px;bottom:auto;width:46px;height:46px;min-width:0;padding:0;border-radius:50%;border:0;background:rgba(0,0,0,.5);display:grid;place-items:center;color:#fff}
  html:root body .dlg.scan2 .scantorch[hidden]:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){display:none}
  html:root body .dlg.scan2 .scantorch>svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){display:block!important;width:26px;height:26px;color:#fff}
  html:root body .dlg.scan2 .scantorch>svg.oi .m,html:root body .dlg.scan2 .scantorch>svg.oi .d:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){stroke:#fff}
  html:root body .dlg.scan2 .scantorch[aria-pressed="true"]:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){background:#facc15}
  html:root body .dlg.scan2 .scantorch[aria-pressed="true"]>svg.oi .m:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){stroke:#0b0f0e}
  html:root body .dlg.scan2 .scanbar:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){justify-content:center;margin:12px 2px 0}
  html:root body .dlg.scan2 .scanbar .hint:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){text-align:center;font-size:.85rem;flex:1}
  html:root body .dlg.scan2 .scanman:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){position:relative;display:flex;align-items:center;gap:0;margin-top:12px;padding:5px 5px 5px 14px;border-radius:999px;background:#fff;border:1px solid var(--line)}
  html:root body .dlg.scan2 .scanman .scankb:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){display:grid;place-items:center;flex:none;margin-right:8px}
  html:root body .dlg.scan2 .scanman .scankb svg.oi{display:block;width:24px;height:24px;color:var(--muted)}
  html:root body .dlg.scan2 .scanman input:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){min-height:42px;border:0!important;background:transparent!important;border-radius:0;padding:0!important;box-shadow:none!important}
  html:root body .dlg.scan2 .scanman .btn:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){min-height:42px;border-radius:999px!important;background:#0b0f0e!important;color:#fff!important;border:0!important;padding:0 16px}
  html:root[data-theme="dark"] body .dlg.scan2 .scanman:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){background:var(--surface)}
  html:root[data-theme="dark"] body .dlg.scan2 .scanman .btn:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){background:#fff!important;color:#0b0f0e!important}
  html:root body .dlg.scan2 .scandone:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){display:flex;align-items:center;justify-content:center;gap:8px}
  html:root body .dlg.scan2 .scandone>svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){display:block!important;width:24px;height:24px;flex:none}
  html:root body .dlg.scan2 .scandone>svg.oi .m,html:root body .dlg.scan2 .scandone>svg.oi .d:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){stroke:var(--bg,#fff)}
}
@media (prefers-reduced-motion:reduce){.scanline{animation:none!important}}

/* v1048 · El embudo de Filtros no se pinta de negro cuando hay filtros activos (Juan 2026-11-24): queda blanco con borde de color y su contador. */
@media (max-width:1099px){
  html:root body #tab-inventario #invchips .vqchip.vfil.on:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k),html:root body #tab-ventas .vqchip.vfil.on:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k){background:var(--surface)!important;color:var(--fg)!important;border:2px solid var(--accent)!important}
  html:root body :is(#tab-inventario #invchips,#tab-ventas) .vqchip.vfil.on>svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k){color:var(--fg)}
  html:root body :is(#tab-inventario #invchips,#tab-ventas) .vqchip.vfil.on>svg.oi .m,html:root body :is(#tab-inventario #invchips,#tab-ventas) .vqchip.vfil.on>svg.oi .d:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k){stroke:var(--fg)}
}

/* v1049 · Hoja de verificación «Mostrar el valor…» «A · Ícono, Face ID y campo del código» (Juan 2026-11-25): candado, botón de Face ID, campo del código en píldora y botones en cápsula con ícono. Solo celular. */
.ownpin .op-hd .op-ic,.op-btns svg.oi{display:none}
@media (max-width:1099px){
  html:root body .dlg.ownpin .op-hd:not(#_x){display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px}
  html:root body .dlg.ownpin .op-hd h2:not(#_x){font-size:1.35rem;margin:0}
  html:root body .dlg.ownpin .op-hd .hint:not(#_x){margin:0 0 6px}
  html:root body .dlg.ownpin .op-ic:not(#_x){display:grid;place-items:center;width:64px;height:64px;border-radius:50%;background:color-mix(in srgb,var(--accent) 14%,var(--surface))}
  html:root body .dlg.ownpin .op-ic svg.oi{display:block;width:38px;height:38px;color:var(--fg)}
  html:root body .dlg.ownpin .pkbtn:not(#_x){min-height:56px;border-radius:999px!important;font-size:1rem;font-weight:800}
  html:root body .dlg.ownpin .pkbtn>svg:not(.oi):not(#_x){display:none!important}
  html:root body .dlg.ownpin .pkbtn>svg.oi:not(#_x){display:block!important;width:26px;height:26px}
  html:root body .dlg.ownpin .pkbtn>svg.oi .m,html:root body .dlg.ownpin .pkbtn>svg.oi .d:not(#_x){stroke:var(--bg,#fff)}
  html:root body .dlg.ownpin .op-or:not(#_x){text-align:center;color:var(--muted);font-size:.82rem;margin:-2px 0}
  html:root body .dlg.ownpin .op-f input:not(#_x):not(#_y){min-height:50px;border-radius:999px!important;background:var(--surface)!important;border:1px solid var(--line)!important;padding:0 18px!important}
  html:root body .dlg.ownpin .op-btns:not(#_x){display:flex;gap:8px}
  html:root body .dlg.ownpin .op-btns .btn:not(#_x):not(#_y){display:flex;align-items:center;justify-content:center;gap:8px;min-height:54px;border-radius:999px!important;font-weight:800;background:var(--surface)!important;color:var(--fg)!important;border:1.5px solid color-mix(in srgb,var(--fg) 22%,var(--line))!important}
  html:root body .dlg.ownpin .op-btns #apinx:not(#_x){flex:1}
  html:root body .dlg.ownpin .op-btns #apinok:not(#_x){flex:1.3}
  html:root body .dlg.ownpin .op-btns .btn.primary:not(#_x):not(#_y){background:var(--fg)!important;color:var(--bg)!important;border-color:var(--fg)!important}
  html:root body .dlg.ownpin .op-btns svg.oi:not(#_x){display:block!important;width:24px;height:24px;flex:none}
  html:root body .dlg.ownpin .op-btns .btn.primary svg.oi .m,html:root body .dlg.ownpin .op-btns .btn.primary svg.oi .d:not(#_x){stroke:var(--bg,#fff)}
}

/* v1051 · Hoja de Filtros de Inventario «A · Casillas con ícono y conteo» (Juan 2026-11-25): estado en casillas con ícono y número; Categoría y Ordenar como filas con ícono; botón «Ver N productos». Solo celular. */
.stic,.fic{display:none}
@media (max-width:1099px){
  html:root body .sheetdlg #fp-inv .fl:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){display:block;font-size:.75rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin:10px 4px 6px}
  html:root body .sheetdlg #fp-inv #istock:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;overflow:visible}
  html:root body .sheetdlg #fp-inv #istock .chip:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:86px;padding:10px 4px;border-radius:20px;background:var(--surface)!important;border:1px solid var(--line)!important;color:var(--fg)!important;font-size:.78rem;font-weight:700;line-height:1.15;text-align:center;white-space:normal}
  html:root body .sheetdlg #fp-inv #istock .chip .stic:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){display:grid;place-items:center;height:30px;font-style:normal}
  html:root body .sheetdlg #fp-inv #istock .chip .stic svg.oi{display:block;width:26px;height:26px;color:inherit}
  html:root body .sheetdlg #fp-inv #istock .chip i:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){font-style:normal;font-size:.75rem;opacity:.7;font-weight:800}
  html:root body .sheetdlg #fp-inv #istock .chip.on:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){background:var(--fg)!important;border-color:var(--fg)!important;color:var(--bg)!important}
  html:root body .sheetdlg #fp-inv #istock .chip.on .stic svg.oi .m,html:root body .sheetdlg #fp-inv #istock .chip.on .stic svg.oi .d:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){stroke:var(--bg)}
  html:root body .sheetdlg #fp-inv #istock .chip[hidden]:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){display:none}
  html:root body .sheetdlg #fp-inv #ifilt:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){display:flex;flex-direction:column;gap:0;margin-top:12px;background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:2px 14px}
  html:root body .sheetdlg #fp-inv #ifilt label.f,html:root body .sheetdlg #fp-inv #isortslot label.f:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){position:relative;display:flex;flex-direction:column;justify-content:center;margin:0;padding:10px 0 10px 56px;min-height:64px}
  html:root body .sheetdlg #fp-inv #isortslot label.f:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){border-top:1px solid var(--line)}
  html:root body .sheetdlg #fp-inv #ifilt label.f>span:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){font-size:.95rem;font-weight:800;color:var(--fg)}
  html:root body .sheetdlg #fp-inv #isortslot label.f>span:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){font-size:.95rem;font-weight:800;color:var(--fg)}
  html:root body .sheetdlg #fp-inv #ifilt label.f>svg.fic,html:root body .sheetdlg #fp-inv #isortslot label.f>svg.fic:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){display:block;position:absolute;left:0;top:50%;transform:translateY(-50%);width:44px;height:44px;padding:9px;box-sizing:border-box;border-radius:50%;background:color-mix(in srgb,var(--accent) 14%,var(--surface));color:var(--fg)}
  html:root body .sheetdlg #fp-inv #ifilt select,html:root body .sheetdlg #fp-inv #isortslot select:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){border:0!important;background:transparent!important;padding:0 24px 0 0!important;min-height:0!important;height:auto!important;color:var(--muted)!important;font-size:.85rem!important;font-weight:500;border-radius:0!important;box-shadow:none!important}
  html:root body .sheetdlg #fp-inv .msort:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){margin:0;padding:0}
  html:root body .sheetdlg #fp-inv #isortslot .msort .btn:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){display:none}
}
@media (max-width:1099px){
  html:root body .sheetdlg #fp-inv #isortslot:not(#_x):not(#_y){display:block;width:100%}
  html:root body .sheetdlg #fp-inv #isortslot .msort:not(#_x):not(#_y){display:block;width:100%;border:0;background:none}
  html:root body .sheetdlg #fp-inv :is(#ifilt>label.f,#isortslot label.f):not(#_x):not(#_y){align-items:flex-start;text-align:left;width:100%;box-sizing:border-box}
  html:root body .sheetdlg #fp-inv :is(#ifilt>label.f,#isortslot label.f)>select:not(#_x):not(#_y){width:100%;text-align:left}
}
/* v1051 · Error mío (v1041): la fila de chips de estado se veía debajo de «Herramientas» y de «Compras»; se vuelve a esconder ahí. */
@media (max-width:1099px){
  html:is([data-invsub="tools"],[data-invsub="compras"],[data-invsub="ajuste"]) body #tab-inventario :is(#invchips,#invctl,#isbar):not(#_x):not(#_y):not(#_z):not(#_w):not(#_v):not(#_u):not(#_t){display:none!important}
}

/* v1052 · Detalle del producto «A · Tarjeta negra con precio y stock» (Juan 2026-11-25): íconos propios duotono en lugar de emojis, «Vender» fijo abajo y secciones con ícono. Solo celular. */
#pdbody svg.oi{display:none}
@media (max-width:1099px){
  html:root body #pdbody :is(.cpib,.cpa,.cpcta,.cpsec)>svg:not(.oi):not(#_x){display:none!important}
  html:root body #pdbody .cphd .cpib>svg.oi:not(#_x){display:block!important;width:22px;height:22px;margin:auto;color:var(--fg)}
  html:root body #pdbody .cpa::before:not(#_x){content:none!important}
  html:root body #pdbody .cpa::before{content:none!important;display:none!important}
  html:root body #pdbody .cpa>svg.oi:not(#_x):not(#_y){display:block!important;width:54px;height:54px;padding:12px;box-sizing:border-box;border-radius:50%;background:color-mix(in srgb,var(--accent) 14%,var(--surface));color:var(--fg)}
  html:root body #pdbody .cpcta:not(#_x):not(#_y):not(#_z){position:sticky;bottom:calc(10px + env(safe-area-inset-bottom,0px));z-index:3;display:flex;align-items:center;justify-content:center;gap:8px;box-shadow:0 0 0 8px var(--bg)}
  html:root body #pdbody .cpcta>svg.oi:not(#_x):not(#_y){display:block!important;width:24px;height:24px;flex:none}
  html:root body #pdbody .cpcta>svg.oi .m,html:root body #pdbody .cpcta>svg.oi .d:not(#_x){stroke:var(--bg,#fff)}
  html:root body #pdbody .cpsec:is(.cpg,.cpc,.cpm)::before:not(#_x){content:none!important}
  html:root body #pdbody .cpsec:is(.cpg,.cpc,.cpm)::before{content:none!important;display:none!important}
  html:root body #pdbody .cpsec:is(.cpg,.cpc,.cpm)>svg.oi:not(#_x):not(#_y){display:block!important;flex:none;width:38px;height:38px;padding:7px;box-sizing:border-box;border-radius:50%;background:#fdecc8;color:#0b0f0e}
  html:root body #pdbody .cpsec.cpc>svg.oi:not(#_x){background:#efe6ff}
  html:root body #pdbody .cpsec.cpm>svg.oi:not(#_x){background:#e3edff}
  html:root body #pdbody .cpsec small{font-weight:500;color:var(--muted);font-size:.8rem}
}
@media (max-width:1099px){
  html:root body #pdbody .cpa>svg.oi:not(#_x):not(#_y):not(#_z):not(#_w){border-radius:50%!important}
  html:root body #pdbody .pdph .thumb:not(#_x):not(#_y):not(#_z){display:grid!important;place-items:center;width:100%!important;height:100%!important}
  html:root body #pdbody .pdph .thumb>svg.oi:not(#_x):not(#_y):not(#_z){width:58px!important;height:58px!important;margin:0!important}
}

@media (max-width:1099px){
  html:root body #pdbody .cpa>svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m):not(#_n):not(#_o):not(#_p){border-radius:50%!important}
}

/* v1053 · Agregar producto «A · Foto arriba y campos con ícono» (Juan 2026-11-25): círculo grande de foto, campos con ícono, filas duotono y botones en cápsula con ícono. Solo celular. */
.pgem>svg.oi,#pform label.f>svg.fic,#pform .pmore>summary>svg.oi,#psave>svg.oi,#psavebuy>svg.oi{display:none}
@media (max-width:1099px){
  html:root body #pform .pgrow[data-pgt="foto"]:not(.pghero):not(#_x):not(#_y){display:none!important}
  html:root body #pform .pghero:not(#_x):not(#_y){display:flex!important;flex-direction:column;align-items:center;gap:6px;border:0!important;background:none!important;padding:4px 0 2px!important}
  html:root body #pform .pghero .pgcirc{display:grid;place-items:center;width:88px;height:88px;border-radius:50%;border:2px dashed color-mix(in srgb,var(--fg) 28%,var(--line));background:var(--surface);overflow:hidden}
  html:root body #pform .pghero .pgcirc svg.oi{display:block;width:42px;height:42px;color:var(--fg)}
  html:root body #pform .pghero .pgcirc img{width:100%;height:100%;object-fit:cover}
  html:root body #pform .pghero b{font-size:.85rem;font-weight:800}
  html:root body #pform .pgrow .pgem svg.oi:not(#_x){display:block!important;width:26px;height:26px;color:var(--fg)}
  html:root body #pform label.f:has(>svg.fic):not(#_x):not(#_y){position:relative}
  html:root body #pform label.f>svg.fic:not(#_x):not(#_y){display:block!important;position:absolute;left:14px;bottom:13px;width:22px;height:22px;pointer-events:none;color:var(--muted);z-index:1}
  html:root body #pform label.f:has(>svg.fic) :is(input,select):not(#_x):not(#_y):not(#_z){padding-left:44px!important}
  html:root body #pform :is(#pname,#pprice,#pcost,#pstock,#pcat):not(#_x):not(#_y){border-radius:999px!important}
  html:root body #pform .pmore>summary:not(#_x):not(#_y){display:grid;grid-template-columns:42px 1fr;column-gap:12px;align-items:center}
  html:root body #pform .pmore>summary>svg.oi:not(#_x):not(#_y){display:block!important;grid-row:1/3;width:42px;height:42px;padding:8px;box-sizing:border-box;border-radius:50%;background:color-mix(in srgb,var(--accent) 14%,var(--surface));color:var(--fg)}
  html:root body :is(#psave,#psavebuy):not(#_x):not(#_y){display:flex!important;align-items:center;justify-content:center;gap:8px;border-radius:999px!important;min-height:54px}
  html:root body :is(#psave,#psavebuy)>svg.oi:not(#_x):not(#_y){display:block!important;width:24px;height:24px;flex:none}
  html:root body #psave>svg.oi .m,html:root body #psave>svg.oi .d:not(#_x){stroke:var(--bg,#fff)}
}
@media (max-width:1099px){
  html:root body #pform details.pmore>summary:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m):not(#_n):not(#_o):not(#_p)::before{content:none!important;display:none!important}
  html:root body #pform details.pmore>summary:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m):not(#_n):not(#_o):not(#_p){padding-left:0!important}
}

/* v1054 · Detalle del producto «A · Foto grande, precio en texto» (Juan 2026-11-25): la foto ocupa todo el ancho con el stock como etiqueta encima; nombre y precio como texto (sin bloque negro). */
#pdbody .pdstock svg.oi{display:none}
#pdbody .pdhead{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin:0 2px 14px}
#pdbody .pdht{min-width:0;flex:1}
#pdbody .pdhead .pdsub{margin:3px 0 0}
#pdbody .pdprice{font-family:var(--f-display);font-size:1.7rem;font-weight:800;letter-spacing:-.02em;white-space:nowrap}
@media (max-width:1099px){
  html:root body #pdbody .pdph:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){position:relative;display:grid;place-items:center;aspect-ratio:16/11;max-height:240px;width:100%;height:auto!important;min-height:0;padding:0!important;margin:4px 0 12px!important;border-radius:26px!important;background:var(--surface)!important;border:1px solid var(--line);overflow:hidden}
  html:root body #pdbody .pdph:has(img.thumb):not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){background:#fff!important}
  html:root body #pdbody .pdph img.thumb:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){position:absolute!important;inset:0;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:contain!important;border-radius:0!important}
  html:root body #pdbody .pdph .thumb:not(img):not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){width:100%!important;height:100%!important;border-radius:0!important;background:none!important}
  html:root body #pdbody .pdph .thumb>svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){width:96px!important;height:96px!important}
  html:root body #pdbody .pdph>.pdstock:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){position:absolute;left:12px;bottom:12px;display:flex;align-items:center;gap:6px;padding:7px 14px;border-radius:999px;background:#0b0f0e;border:1px solid #2f3a36;color:#4ade80;font-weight:800;font-size:.85rem}
  html:root body #pdbody .pdhead .pdname:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h),html:root body #pdbody .pdhead .pdsub:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){text-align:left}
  html:root body #pdbody .pdstock>svg.oi:not(#_x):not(#_y){display:block!important;width:16px;height:16px}
  html:root body #pdbody .pdstock>svg.oi .m,html:root body #pdbody .pdstock>svg.oi .d:not(#_x){stroke:#fff}
  html:root body #pdbody .pdstock.low:not(#_x){color:#fbbf24}
  html:root body #pdbody .pdstock.bad:not(#_x){color:#fca5a5}
}
@media (min-width:1100px){
  #pdbody .pdstock{display:inline-flex;margin:0 0 10px;padding:5px 12px;border-radius:999px;background:var(--field,#efefec);font-weight:800;font-size:.85rem}
  #pdbody .pdstock.bad{color:var(--bad,#b3261e)}
  #pdbody .pdph{position:relative}
}

/* v1056 · Juan 2026-11-25: en el celular las hojas se cierran solo deslizando hacia abajo (o tocando afuera); sin ✕. Botones de «Editar producto» del mismo tamaño. */
@media (max-width:1099px){
  html:root body .modal:not(#jotachat) :is(.sheetx,.uxx):not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f){display:none!important}
  html:root body .modal .sheethd:not(#_a):not(#_b):not(#_c):not(#_d){padding-right:16px}
  html:root body #pform>.row:last-child:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f){display:grid!important;grid-template-columns:1fr 1fr;gap:10px}
  html:root body #pform>.row:last-child>.btn:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not([hidden]){display:flex!important;align-items:center;justify-content:center;gap:8px;width:100%!important;min-width:0;min-height:54px;padding:0 10px;border-radius:999px!important;white-space:nowrap;font-size:.92rem;line-height:1.1}
  html:root body #pform>.row:last-child>#psave:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l){grid-column:auto;flex:none}
}

/* v1057 · Solo sumar stock «A · Buscador arriba y lista con contadores» (Juan 2026-11-25): buscador y escáner en píldora, lista con contador − 3 + y cuánto quedará, y el botón «Sumar N unidades» fijo abajo. Solo celular. */
#entrycard .eic>svg,#esave>svg.oi,#escan>svg.oi{display:none}
@media (max-width:1099px){
  html:root body #entrycard >.hint:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f){font-size:.85rem;color:var(--muted);margin:0 0 10px}
  html:root body #entrycard .stepbox:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f){background:none!important;padding:0!important;margin:0;gap:10px}
  html:root body #entrycard .stepttl:first-child:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f){display:none}
  html:root body #entrycard .stepttl>b:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f){display:none}
  html:root body #entrycard .stepttl:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f){justify-content:space-between;font-size:1rem;margin-top:8px}
  html:root body #entrycard .stepcount:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f){margin-left:auto;font-weight:500;color:var(--muted);font-size:.85rem}
  html:root body #entrycard .scanrow:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f){display:flex;gap:8px;align-items:center;flex-wrap:nowrap}
  html:root body #entrycard .psfield>span:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f){display:none}
  html:root body #entrycard .psfield .psearch:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f){min-height:52px;border-radius:999px!important;padding-left:46px!important;background:var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23788480' 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") no-repeat 16px center/22px!important;border:1px solid var(--line)!important;margin:0}
  html:root body #entrycard #escan:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f){flex:none;width:52px;height:52px;min-width:0;padding:0;border-radius:50%!important;background:var(--fg)!important;border:0!important;display:grid;place-items:center}
  html:root body #entrycard #escan>span,#entrycard #escan>svg:not(.oi):not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f){display:none!important}
  html:root body #entrycard #escan>svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f){display:block!important;width:28px;height:28px}
  html:root body #entrycard #escan>svg.oi .m,html:root body #entrycard #escan>svg.oi .d:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f){stroke:var(--bg,#fff)}
  html:root body #entrycard .qrow:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f){display:flex;gap:8px;align-items:center}
  html:root body #entrycard .qrow .qstepf>span:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f){display:none}
  html:root body #entrycard #eadd:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f){min-height:52px;border-radius:999px!important;font-weight:800;background:var(--surface)!important;border:1.5px solid color-mix(in srgb,var(--fg) 22%,var(--line))!important}
  html:root body #entrycard #elines .item.eline:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f){display:flex;align-items:center;gap:12px;padding:10px 0;border:0;border-top:1px solid var(--line);border-radius:0;background:none}
  html:root body #entrycard .eic:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f){flex:none;width:46px;height:46px;border-radius:50%;display:grid;place-items:center;background:color-mix(in srgb,var(--accent) 14%,var(--surface))}
  html:root body #entrycard .eic>svg:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f){display:block!important;width:26px;height:26px;color:var(--fg)}
  html:root body #entrycard .eline .main:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f){flex:1;min-width:0}
  html:root body #entrycard .eqs:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f){display:flex;align-items:center;gap:4px;background:color-mix(in srgb,var(--fg) 6%,var(--surface));border-radius:999px;padding:3px}
  html:root body #entrycard .eqs button:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f){width:34px;height:34px;border-radius:50%;border:0;background:var(--surface);color:var(--fg);font-size:1.1rem;font-weight:800;padding:0}
  html:root body #entrycard .eqs b:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f){min-width:26px;text-align:center}
  html:root body #entrycard #enote:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f){min-height:50px;border-radius:999px!important;padding-inline:16px}
  html:root body #entrycard #esave:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f){position:sticky;bottom:calc(10px + env(safe-area-inset-bottom,0px));z-index:3;display:flex!important;align-items:center;justify-content:center;gap:8px;min-height:56px;border-radius:999px!important;font-weight:800;box-shadow:0 0 0 8px var(--bg)}
  html:root body #entrycard #esave>svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f){display:block!important;width:24px;height:24px;flex:none}
  html:root body #entrycard #esave>svg.oi .m,html:root body #entrycard #esave>svg.oi .d:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f){stroke:var(--bg,#fff)}
}
@media (max-width:1099px){
  html:root body #entrycard .psfield:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e){font-size:0}
  html:root body #entrycard .psfield .psearch:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f){font-size:1rem}
}
@media (max-width:1099px){
  html:root body #entrycard .scanrow:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e){align-items:flex-start}
  html:root body #entrycard .scanrow .psfield:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e){margin:0}
}
@media (max-width:1099px){
  html:root body #entrycard #escan:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){margin:0!important;align-self:flex-start}
  html:root body #entrycard .scanrow .psfield:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f){gap:0;padding:0}
}

/* v1058 · «¿Tiene otras versiones?» con ícono propio de Cuadra (antes un emoji de colores). Solo celular. */
#pform .pvers>h2>svg.oi{display:none}
@media (max-width:1099px){
  html:root body #pform .pvers>h2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h)::before{content:none!important;display:none!important}
  html:root body #pform .pvers>h2>svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){display:block!important;flex:none;width:42px;height:42px;padding:8px;box-sizing:border-box;border-radius:50%;background:color-mix(in srgb,var(--accent) 14%,var(--surface));color:var(--fg)}
  html:root body #pform .pvers>h2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){display:flex;align-items:center;gap:12px}
}

/* v1059 · Barra de abajo «A · menú · Pregúntale a Jota o busca · Vender» (Juan 2026-11-25) y menú «Más» con íconos propios. Sin difuminado ni sombras: borde fino y colores sólidos. */
.optfoot{display:flex;gap:10px;margin-top:12px;border-top:1px solid var(--line);padding-top:12px}
.optbig{flex:1;border:0;background:none;display:flex;flex-direction:column;align-items:center;gap:5px;font:inherit;color:var(--fg);cursor:pointer}
.optbig i{width:56px;height:56px;border-radius:50%;display:grid;place-items:center;background:color-mix(in srgb,var(--accent) 14%,var(--surface))}
.optbig i svg{width:30px;height:30px}
.optbig b{font-size:.8rem}
.optbig.bad i{background:#fbe4e1}.optbig.bad b{color:#b3261e}
html[data-theme="dark"] .optbig.bad i{background:#3a1c19}
.gsjota .gr svg{width:26px;height:26px}
@media (max-width:1099px){
  html:root body .optsheet.massheet>.dlg:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f){max-height:88vh;overflow:auto}
  html:root body #ivnav .ivmenu:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f){flex:none;width:60px;height:60px;border-radius:50%;border:1px solid var(--line);background:var(--surface);display:grid;place-items:center;padding:0;cursor:pointer;color:var(--fg)}
  html:root body #ivnav .ivmenu>svg:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f){width:30px;height:30px}
  html:root body #ivnav .ivfield:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f){flex:1;min-width:0;height:60px;border-radius:999px;border:1px solid var(--line);background:var(--surface);display:flex;align-items:center;gap:10px;padding:0 16px;font:700 .95rem var(--f-body,inherit);color:var(--muted);text-align:left;cursor:pointer}
  html:root body #ivnav .ivfield>svg:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f){width:28px;height:28px;flex:none}
  html:root body #ivnav .ivfield>span:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f){min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  html:root body #ivnav .ivorb:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f){width:60px;height:60px;background:var(--fg);border-color:var(--fg)}
  html:root body #ivnav .ivorb .ivcart>svg:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f){width:30px;height:30px}
  html:root body #ivnav .ivorb svg.oi .m,html:root body #ivnav .ivorb svg.oi .d:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f){stroke:var(--bg,#fff)}
  html:root body .nre.oit>svg:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f){display:block;width:1.15em;height:1.15em}
}
@media (max-width:1099px){
  html:root body #ivnav :is(.ivmenu,.ivfield)>svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f),html:root body #ivnav .ivorb .ivcart>svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f){display:block!important}
  html:root body .optsheet.massheet .optfoot:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f){position:sticky;bottom:calc(-16px - env(safe-area-inset-bottom,0px));background:var(--bg);padding-bottom:calc(10px + env(safe-area-inset-bottom,0px));margin-bottom:-6px}
}
.optbig i>svg.oi{display:block}
.gsjota .gr>svg.oi{display:block}
@media (max-width:1099px){
  html:root body .optsheet.massheet>.dlg:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){display:flex;flex-direction:column;max-height:88vh;overflow:hidden}
  html:root body .optsheet.massheet .optlist:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){overflow:auto;flex:1 1 auto;min-height:0}
  html:root body .optsheet.massheet .optfoot:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){position:static;flex:none;margin-bottom:0;padding-bottom:0;background:none}
  html:root body #ivnav .ivmenu:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h),html:root body #ivnav .ivorb:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){width:56px;height:56px}
  html:root body #ivnav .ivfield:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){height:56px;gap:8px;padding:0 14px;font-size:.88rem}
}

/* v1059 · el ícono de pantalla del encabezado ya no abre nada: solo muestra dónde estás */
html.ivnav .navhb{pointer-events:none}

/* v1060 · Buscar en todo «C · Jota primero». Solo celular; el computador conserva su ✕ y «Cerrar». */
#gsmodal .gsic>svg.oi{display:block}
#gsmodal .gsjh>i>svg.oi{display:block}
.gsgrab{display:none}
  html:root body #gsmodal label.f:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){margin:0}
  html:root body #gsmodal #gsq:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){min-height:54px;border-radius:999px!important;border:1.5px solid var(--fg)!important;padding-inline:18px;font-weight:700}
  html:root body #gsmodal .gsjc:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){background:#0b0f0e;color:#fff;border-radius:26px;padding:16px;margin:4px 0 0}
  html:root body #gsmodal .gsjh:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){display:flex;align-items:center;gap:10px}
  html:root body #gsmodal .gsjh>i:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){flex:none;width:44px;height:44px;border-radius:50%;background:#1f2a26;display:grid;place-items:center}
  html:root body #gsmodal .gsjh>i>svg:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){width:26px;height:26px}
  html:root body #gsmodal .gsjh .m,html:root body #gsmodal .gsjh .d:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){stroke:#fff}
  html:root body #gsmodal .gsjh b:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){display:block;font-family:var(--f-display);font-size:1.05rem}
  html:root body #gsmodal .gsjh small:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){display:block;color:#9aa8a1;font-size:.78rem}
  html:root body #gsmodal .gsjgo:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){margin-top:12px;width:100%;min-height:46px;border-radius:999px;border:0;background:#4ade80;color:#0b0f0e;font:800 .95rem var(--f-body,inherit)}
  html:root body #gsmodal .gsjs:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
  html:root body #gsmodal .gsjchip:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){border:1px solid #2f3a36;border-radius:999px;padding:7px 13px;background:none;color:#fff;font:700 .78rem var(--f-body,inherit);text-align:left}
  html:root body #gsmodal .gslist:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:2px 14px;display:flex;flex-direction:column}
  html:root body #gsmodal .gslist .gsrow:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){display:flex;align-items:center;gap:12px;padding:10px 0!important;min-height:0;border:0!important;border-top:1px solid var(--line)!important;border-radius:0!important;background:none!important}
  html:root body #gsmodal .gslist .gsrow:first-child:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){border-top:0!important}
  html:root body #gsmodal .gsic:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){flex:none;width:46px;height:46px;border-radius:50%;display:grid;place-items:center;background:color-mix(in srgb,var(--accent) 14%,var(--surface))}
  html:root body #gsmodal .gsic>svg:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){width:26px;height:26px;color:var(--fg)}
  html:root body #gsmodal .gsm:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){flex:1;min-width:0}
  html:root body #gsmodal .gsm .gt:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){overflow-wrap:anywhere}
  html:root body #gsmodal .gsrow .optgo:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){display:block;width:8px;height:8px;border:solid var(--muted);border-width:2px 2px 0 0;transform:rotate(45deg);margin-right:6px;flex:none}
@media (max-width:1099px){
  html:root body #gsmodal .gshd:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){display:none}
  html:root body #gsmodal .gsgrab:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){display:none;width:42px;height:5px;border-radius:99px;background:color-mix(in srgb,var(--muted) 55%,transparent);margin:0 auto 4px;flex:none}
  html:root body #gsmodal .dlg>.btn:last-child:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){display:none}
}
html[data-theme="dark"] body #gsmodal .gsjc:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){border:1px solid #2f3a36}

/* v1061 · Barra de abajo que se encoge al bajar y vuelve al subir (--ivp: 0 normal · 1 chica). */
@media (max-width:1099px){
  html:root body #ivnav:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k){--ivp:0;--ivc:calc(56px - 12px*var(--ivp));justify-content:center;gap:calc(10px - 2px*var(--ivp))}
  html:root body #ivnav .ivmenu:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k),html:root body #ivnav .ivorb:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k){width:var(--ivc);height:var(--ivc)}
  html:root body #ivnav .ivfield:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k){flex:none;height:var(--ivc);width:calc((100% - 20px - 2*var(--ivc))*(1 - var(--ivp)) + var(--ivc)*var(--ivp));padding:0 0 0 calc(14px - 6px*var(--ivp))}
  html:root body #ivnav .ivfield>span:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k){opacity:max(0,calc(1 - var(--ivp)*2.4))}
  html:root body #ivnav :is(.ivmenu,.ivfield,.ivorb)>svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k){transition:none}
  html:root body #ivnav .ivmenu>svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k),html:root body #ivnav .ivorb .ivcart>svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k){width:calc(30px - 6px*var(--ivp));height:calc(30px - 6px*var(--ivp))}
  html:root body #ivnav .ivfield>svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k){width:calc(28px - 4px*var(--ivp));height:calc(28px - 4px*var(--ivp))}
}

/* v1062 · íconos de la barra con transform (más suave que cambiar su tamaño en cada cuadro) */
@media (max-width:1099px){
  html:root body #ivnav .ivmenu>svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k),html:root body #ivnav .ivorb .ivcart>svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k){width:30px;height:30px;transform:scale(calc(1 - .2*var(--ivp)));will-change:transform}
  html:root body #ivnav .ivfield>svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k){width:28px;height:28px;transform:scale(calc(1 - .143*var(--ivp)));will-change:transform}
  html:root body #ivnav .ivfield>span:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k){will-change:opacity}
}

/* v1063 · Detalle del producto: «•••» pasa abajo, como la sexta acción («Más»); seis acciones en una fila. */
@media (max-width:1099px){
  html:root body #pdbody .cpacts:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k){display:flex!important;flex-wrap:nowrap!important;justify-content:space-between!important;gap:0!important}
  html:root body #pdbody .cpacts>.cpa:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k){flex:1 1 0!important;min-width:0!important;padding:6px 0!important}
  html:root body #pdbody .cpacts>.cpa>span:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k){font-size:.68rem;line-height:1.15;text-align:center;overflow-wrap:anywhere}
  html:root body #pdbody .cpacts>.cpa>svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k){width:50px;height:50px;padding:11px}
}

/* v1065 · Detalle del producto «C · Dos botones y lista corta». */
#pdbody .pdbar{display:flex;gap:8px;margin:0 0 12px}
#pdbody .pdedit>svg.oi,#pdbody .pdrow i>svg.oi{display:block}
#pdbody .pdstock em{font-style:normal;margin-left:2px;color:#4ade80}
#pdbody button.pdstock{cursor:pointer;font-family:inherit}
@media (max-width:1099px){
  html:root body #pdbody .pdbar:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l){position:sticky;bottom:calc(10px + env(safe-area-inset-bottom,0px));z-index:3;box-shadow:0 0 0 8px var(--bg)}
  html:root body #pdbody .pdbar .cpcta:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l){position:static;flex:1.3;box-shadow:none;min-height:54px;margin:0}
  html:root body #pdbody .pdbar:not(:has(.cpcta)) .pdedit:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l){flex:1}
  html:root body #pdbody .pdedit:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l){flex:1;min-height:54px;border-radius:999px;border:1.5px solid color-mix(in srgb,var(--fg) 22%,var(--line));background:var(--surface);color:var(--fg);display:flex;align-items:center;justify-content:center;gap:8px;font-weight:800}
  html:root body #pdbody .pdedit>svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l){width:22px;height:22px}
  html:root body #pdbody .pdcard:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l){background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:2px 14px;margin:12px 0 0}
  html:root body #pdbody .pdcard .cpkv:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l){display:flex;justify-content:space-between;gap:12px;padding:11px 0;border:0;border-top:1px solid var(--line);border-radius:0;background:none}
  html:root body #pdbody .pdcard .cpkv:first-child:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l){border-top:0}
  html:root body #pdbody .pdcard .cpkv.good b:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l){color:#15803d}
  html:root body #pdbody .pdnote:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l){color:var(--muted);font-size:.78rem;margin:6px 4px 0}
  html:root body #pdbody .pdlist:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l){margin-top:10px}
  html:root body #pdbody .pdrow:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l){display:flex;align-items:center;gap:12px;width:100%;padding:9px 0;border:0;border-top:1px solid var(--line);border-radius:0;background:none;font:inherit;color:var(--fg);text-align:left;cursor:pointer}
  html:root body #pdbody .pdrow i:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l){flex:none;width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:color-mix(in srgb,var(--accent) 14%,var(--surface))}
  html:root body #pdbody .pdrow i>svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l){width:26px;height:26px;color:var(--fg)}
  html:root body #pdbody .pdrow b:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l){flex:1;font-weight:700}
  html:root body #pdbody .pdrow .optgo:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l){display:block;width:8px;height:8px;border:solid var(--muted);border-width:2px 2px 0 0;transform:rotate(45deg);margin-right:6px;flex:none}
  html:root body #pdbody .cpsec:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l){margin:14px 4px 6px;font-size:.95rem}
}
@media (max-width:1099px){
  html:root body #pdbody .pdedit:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l){background:var(--surface)!important;border:1.5px solid color-mix(in srgb,var(--fg) 22%,var(--line))!important}
}

/* v1067 · Inventario: la fila Todos · Stock bajo N · Agotados N ya no se mueve de lado al bajar la pantalla (en el iPhone le sobraban unos píxeles y el dedo la arrastraba). */
@media (max-width:1099px){
  html:root body #tab-inventario #invchips:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g){overflow-x:hidden!important;touch-action:pan-y;gap:5px!important}
  html:root body #tab-inventario #invchips>.vqchip:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g){padding-inline:9px;gap:4px}
}

.gsnone{color:var(--muted);text-align:center;padding:18px 12px;font-size:.92rem;line-height:1.4}

/* v1068 · Herramientas de Inventario «C». Solo celular y tablet. */
.tlview{display:none}
@media (max-width:1099px){
  html:root body #tab-inventario.tlv>.tlview:not([hidden]):not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i){display:block;margin-top:4px}
  html:root body #tab-inventario.tlv>:is(#catscard,#combocard,#labelcard,#mincard,#bpcard,#countcard,#movcard,#trashcard,#importcard,.fglbl):not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i){display:none!important}
  html:root body .tlview .tlmain:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i){display:flex;background:var(--surface);border:1px solid var(--line);border-radius:24px;padding:14px 4px}
  html:root body .tlview .tlbig:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i){flex:1 1 0;min-width:0;border:0;background:none;display:flex;flex-direction:column;align-items:center;gap:6px;font:inherit;color:var(--fg);cursor:pointer;padding:0}
  html:root body .tlview .tlbig i:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i){width:60px;height:60px;border-radius:50%;display:grid;place-items:center;background:color-mix(in srgb,var(--accent) 14%,var(--surface))}
  html:root body .tlview .tlbig i>svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i){display:block;width:32px;height:32px}
  html:root body .tlview .tlbig b:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i){font-size:.72rem;line-height:1.1;text-align:center;font-weight:700}
  html:root body .tlview .optlbl:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i){margin:16px 4px 6px}
  html:root body .tlview .tllist:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i){background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:2px 14px}
  html:root body .tlview .tlrow:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i){display:flex;align-items:center;gap:12px;width:100%;padding:10px 0;border:0;border-top:1px solid var(--line);border-radius:0;background:none;font:inherit;color:var(--fg);text-align:left;cursor:pointer}
  html:root body .tlview .tlrow:first-child:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i){border-top:0}
  html:root body .tlview .tlrow i:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i){flex:none;width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:color-mix(in srgb,var(--accent) 14%,var(--surface))}
  html:root body .tlview .tlrow i>svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i){display:block;width:26px;height:26px}
  html:root body .tlview .tlrow span:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i){flex:1;min-width:0}
  html:root body .tlview .tlrow b:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i){display:block;font-weight:700}
  html:root body .tlview .tlrow small:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i){display:block;color:var(--muted);font-size:.8rem}
  html:root body .tlview .tlrow .optgo:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i){display:block;width:8px;height:8px;border:solid var(--muted);border-width:2px 2px 0 0;transform:rotate(45deg);margin-right:6px;flex:none}
}

/* v1069/v1070 · Etiquetas «C · Tres pasos» (Productos · Diseño · Imprimir). Solo celular; el computador conserva todo junto.
   v1070 (Juan, iPhone): la hoja ya no usa botones pegajosos; es una columna de alto fijo: arriba título y pasos, en medio lo que se desliza y abajo un pie como el del carrito (cuántas etiquetas · paso · botón en píldora). */
.etqsteps,.etqfoot{display:none}
#labelcard .etqprn>svg.oi,#lprint>svg.oi,.etqlinks .linkbtn>svg.oi{display:none}
@media (max-width:1099px){
  html:root body .modal.etqsheet>.dlg.sheetdlg:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;flex-direction:column;height:92dvh;max-height:92dvh;overflow:hidden;padding-bottom:0}
  html:root body .modal.etqsheet #labelcard:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;flex-direction:column;flex:1 1 auto;min-height:0;overflow:hidden;container-type:normal;padding-bottom:0}
  html:root body .modal #labelcard>:is(h2,.hint,.etqsteps):not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:none}
  html:root body .modal #labelcard .etqsteps:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;background:var(--field,#e4eae7);border-radius:999px;padding:4px;margin:6px 0 12px}
  html:root body .modal #labelcard .etqsteps>button:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:1;border:0;background:none;border-radius:999px;padding:9px 0;font:800 .78rem var(--f-body,inherit);color:var(--muted)}
  html:root body .modal #labelcard .etqsteps>button.on:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:var(--fg);color:var(--bg)}
  html:root body .modal #labelcard .etqscroll:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;touch-action:pan-y;padding-bottom:14px}
  html:root body .modal #labelcard[data-etqstep="1"] :is(.etqmid,.etqopt,.etqbar):not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:none!important}
  html:root body .modal #labelcard[data-etqstep="2"] :is(.etqprod,.etqbar):not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:none!important}
  html:root body .modal #labelcard[data-etqstep="3"] :is(.etqprod,.etqopt):not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:none!important}
  html:root body .modal #labelcard[data-etqstep="2"] .etqpbody:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block!important;max-height:none!important;opacity:1!important}
  html:root body .modal #labelcard[data-etqstep="2"] #letqptog:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:none!important}
  html:root body .modal #labelcard .etqfoot:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;flex:none;align-items:center;gap:12px;padding:10px 0 calc(12px + env(safe-area-inset-bottom,0px));border-top:1px solid var(--line);background:var(--bg)}
  html:root body .modal #labelcard .efi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:1;min-width:0}
  html:root body .modal #labelcard .efi b:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block;font-size:1.05rem}
  html:root body .modal #labelcard .efi small:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block;color:var(--muted);font-size:.8rem}
  html:root body .modal #labelcard #letqgo:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:none;min-height:50px;padding-inline:30px;border-radius:999px!important;font-weight:800;font-size:1rem}
  html:root body .modal #labelcard #lprint:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:none!important}
  html:root body .modal #labelcard .etqbar:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){border-top:0;margin-top:0;padding-top:0}
  html:root body .modal #labelcard .etqprn:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;align-items:center;gap:12px;background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:10px 14px;margin-top:6px}
  html:root body .modal #labelcard .etqdot:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:none}
  html:root body .modal #labelcard .etqprn>svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block;flex:none;width:46px;height:46px;padding:10px;border-radius:50%;background:color-mix(in srgb,var(--accent) 14%,var(--surface))}
  html:root body .modal #labelcard .etqlinks:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:2px 14px;margin-top:10px}
  html:root body .modal #labelcard .etqlinks .linkbtn:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;align-items:center;gap:12px;width:100%;padding:10px 0;border:0;border-top:1px solid var(--line);background:none;color:var(--fg);font:700 1rem var(--f-body,inherit);text-align:left;text-decoration:none}
  html:root body .modal #labelcard .etqlinks .linkbtn:first-child:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){border-top:0}
  html:root body .modal #labelcard .etqlinks .linkbtn>svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block;flex:none;width:46px;height:46px;padding:10px;border-radius:50%;background:color-mix(in srgb,var(--accent) 14%,var(--surface))}
}

/* v1071 · REGLA DE JUAN (2026-11-25): todos los botones son píldoras. Excepciones: botones que son tarjetas o casillas (por ejemplo los de «Datos» en Ajustes), filas de lista y campos. */
html:root body .btn:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#ajdata>.btn){border-radius:999px!important}
html:root body .qstep:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j),html:root body .etqstep:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){border-radius:999px!important}
html:root body :is(.qstep,.etqstep)>button:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){border-radius:50%!important}
/* v1071 · Etiquetas con el teclado abierto: se esconden la ayuda y el pie para que se vea lo que se escoge */
html.kb-open:root body .modal.etqsheet #labelcard>.hint:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:none}
html.kb-open:root body .modal.etqsheet #labelcard .etqfoot:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:none}
html.kb-open:root body .modal.etqsheet #labelcard>h2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){margin:0 0 4px;font-size:1.1rem}
html.kb-open:root body .modal.etqsheet #labelcard .etqsteps:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){margin:2px 0 8px}
html.kb-open:root body .modal.etqsheet #labelcard .etqscroll:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){padding-bottom:40vh}

/* v1072 · Conteo físico «A · Lista con contador y resumen fijo». */
.cnti>svg.oi,#cntscan>svg.oi{display:none}
.cdb{display:inline-block;border-radius:999px;padding:3px 10px;font-weight:800;font-size:.72rem}
.cdb.ok{background:#e3f4ea;color:#15803d}.cdb.bad{background:#fbe4e1;color:#b3261e}.cdb.warn{background:#fdf2d0;color:#92400e}
html[data-theme="dark"] .cdb.ok{background:#12301f;color:#4ade80}html[data-theme="dark"] .cdb.bad{background:#3a1c19;color:#fca5a5}html[data-theme="dark"] .cdb.warn{background:#33270f;color:#fbbf24}
.cntfoot{display:flex;align-items:center;gap:12px;padding:10px 0 4px;border-top:1px solid var(--line)}
.cntfoot .efi{flex:1;min-width:0}.cntfoot .efi b{display:block}.cntfoot .efi small{display:block;color:var(--muted);font-size:.8rem}
@media (max-width:1099px){
  html:root body .modal.cntsheet>.dlg.sheetdlg:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;flex-direction:column;height:92dvh;max-height:92dvh;overflow:hidden;padding-bottom:0}
  html:root body .modal.cntsheet #countcard:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;flex-direction:column;flex:1 1 auto;min-height:0;overflow:hidden;padding-bottom:0}
  html:root body .modal.cntsheet #cntbody:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;flex-direction:column;flex:1 1 auto;min-height:0}
  html:root body .modal #countcard>h2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:none}
  html:root body .modal #countcard .cnthd:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:none;margin:4px 0 6px}
  html:root body .modal #countcard .cntq input:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){min-height:50px;border-radius:999px!important;border:1px solid var(--line)!important;background:var(--surface)!important;padding-inline:18px;font-weight:600}
  html:root body .modal #countcard #cntscan:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:none;width:50px;height:50px;min-width:0;padding:0;border-radius:50%!important;background:var(--fg)!important;border:0!important;display:grid;place-items:center}
  html:root body .modal #countcard #cntscan>span,html:root body .modal #countcard #cntscan>svg:not(.oi):not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:none!important}
  html:root body .modal #countcard #cntscan>svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block!important;width:26px;height:26px}
  html:root body .modal #countcard #cntscan>svg.oi .m,html:root body .modal #countcard #cntscan>svg.oi .d:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){stroke:var(--bg,#fff)}
  html:root body .modal #countcard .cntchips:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
  html:root body .modal #countcard .cntscroll:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;touch-action:pan-y;padding-bottom:14px}
  html:root body .modal #countcard #cntrows:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:2px 14px;gap:0}
  html:root body .modal #countcard .cntrow:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;align-items:center;gap:12px;padding:10px 0!important;background:none!important;border:0!important;border-top:1px solid var(--line)!important;border-radius:0!important}
  html:root body .modal #countcard .cntrow:first-child:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){border-top:0!important}
  html:root body .modal #countcard .cnti:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:none;width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:color-mix(in srgb,var(--accent) 14%,var(--surface))}
  html:root body .modal #countcard .cnti>svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block;width:26px;height:26px}
  html:root body .modal #countcard .cntrow .main:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:1;min-width:0}
  html:root body .modal #countcard .cdw:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){margin-top:4px}
  html:root body .modal #countcard .cntrow input:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){width:84px;flex:none;min-height:46px;border-radius:999px!important;text-align:center;font-weight:800;font-size:1.05rem;border:1.5px solid var(--line)!important;background:var(--surface)!important;padding-inline:6px!important}
  html:root body .modal #countcard .cntrow input::placeholder:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){font-weight:600}
  html:root body .modal #countcard #cntbig:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:none;max-height:22vh;overflow:auto;margin:0 0 6px}
  html:root body .modal #countcard #cntbig:empty:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:none}
  html:root body .modal #countcard .cntfoot:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:none;padding:10px 0 calc(12px + env(safe-area-inset-bottom,0px));background:var(--bg)}
  html:root body .modal #countcard .cntfoot .btn.primary:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:none;min-height:50px;padding-inline:30px;font-weight:800;font-size:1rem}
  html.kb-open:root body .modal #countcard .cntfoot:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:none}
  html.kb-open:root body .modal #countcard .cntintro:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:none}
}

@media (max-width:1099px){
  html:root body .modal #countcard .cntq input:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){padding-left:46px!important;background:var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23788480' 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") no-repeat 16px center/22px!important}
}
/* v1073 · Conteo: texto corto y botones de IMEI separados del campo. */
#countcard .cntimeibtns>.btn>svg.oi{display:block;width:20px;height:20px}
.cntintro p{margin:0 0 8px}
.cntintro .cntnote{color:var(--muted);font-size:.88rem}
@media (max-width:1099px){
  html:root body .modal #countcard .cntintro:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:none;border:0;padding:4px 2px 6px;color:var(--fg);font-size:.98rem;line-height:1.4}
  html:root body .modal #countcard .cntimeibtns:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 6px}
  html:root body .modal #countcard .cntimeibtns>.btn:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:inline-flex;align-items:center;gap:8px}
  html:root body .modal #countcard #cntimeirep:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){margin-top:12px}
  html:root body .modal #countcard .f:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){margin-top:10px}
}
/* v1074 · Escáner de las hojas: el ícono queda exactamente en el centro del círculo (se mide) y el aviso de «sin resultados» sin la casita del diseño anterior. */
@media (max-width:1099px){
  html:root body .modal :is(#cntscan,#escan,#lscan):not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k){position:relative}
  html:root body .modal :is(#cntscan,#escan,#lscan)>svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k){position:absolute!important;left:50%!important;top:50%!important;margin:0!important;transform:translate(-50%,-50%)!important}
}
.cntnone{color:var(--muted);text-align:center;padding:22px 12px;font-size:.95rem;line-height:1.4}
/* v1075 · Conteo y Etiquetas: menos espacio entre el título de la hoja y lo que sigue. */
@media (max-width:1099px){
  html:root body .modal:is(.cntsheet,.etqsheet)>.dlg>.card:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k){margin-top:0!important}
  html:root body .modal #countcard .cnthd:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k){margin:0 0 6px}
  html:root body .modal.cntsheet .scanrow:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k){margin-top:0}
}
@media (max-width:1099px){
  html:root body .modal #countcard .cnthd label.f.cntq:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k){margin:0}
  html:root body .modal #countcard .cnthd label.f.cntq>input:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k){margin-top:0}
  html:root body .modal.cntsheet #cntbody:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k){margin-top:0}
}
@media (max-width:1099px){
  html:root body .modal #countcard .cnthd .scanrow:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k){align-items:center}
  html:root body .modal #countcard #cntscan:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k){margin:0!important}
}

/* v1076 · Precios en bloque «B · Tres pasos: Cuáles · Cuánto · Revisar». Solo celular; el computador conserva todo junto. */
.bpsteps,.bpfoot,.bpcount,.bpquick,.bpsum,.bplist{display:none}
.bpr>i>svg.oi{display:none}
@media (max-width:1099px){
  html:root body .modal.bpsheet>.dlg.sheetdlg:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;flex-direction:column;height:92dvh;max-height:92dvh;overflow:hidden;padding-bottom:0}
  html:root body .modal.bpsheet>.dlg>.card:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){margin-top:0!important;display:flex;flex-direction:column;flex:1 1 auto;min-height:0;overflow:hidden;padding-bottom:0}
  html:root body .modal #bpcard>:is(h2,.hint,.bpsteps):not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:none}
  html:root body .modal #bpcard>.hint:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){margin:0 0 6px}
  html:root body .modal #bpcard .bpsteps:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;background:var(--field,#e4eae7);border-radius:999px;padding:4px;margin:6px 0 12px}
  html:root body .modal #bpcard .bpsteps>button:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:1;border:0;background:none;border-radius:999px;padding:9px 0;font:800 .78rem var(--f-body,inherit);color:var(--muted)}
  html:root body .modal #bpcard .bpsteps>button.on:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:var(--fg);color:var(--bg)}
  html:root body .modal #bpcard .bpscroll:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;touch-action:pan-y;padding-bottom:14px}
  html:root body .modal #bpcard[data-bpstep="1"] :is(.bpb,.bpc):not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:none!important}
  html:root body .modal #bpcard[data-bpstep="2"] :is(.bpa,.bpc):not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:none!important}
  html:root body .modal #bpcard[data-bpstep="3"] :is(.bpa,.bpb):not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:none!important}
  html:root body .modal #bpcard .bpcount:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block;margin:10px 4px 0;color:var(--muted);font-weight:700}
  html:root body .modal #bpcard .bpquick:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 4px}
  html:root body .modal #bpcard .bpquick>button:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){border:1px solid var(--line);background:var(--surface);color:var(--fg);border-radius:999px;padding:9px 16px;font:800 .9rem var(--f-body,inherit)}
  html:root body .modal #bpcard .bpsum:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block}
  html:root body .modal #bpcard .bpcards:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;gap:8px;margin-bottom:8px}
  html:root body .modal #bpcard .bpcd:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:1;background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:10px 12px}
  html:root body .modal #bpcard .bpcd.dark:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:1.2;background:#0b0f0e;color:#fff;border-color:#0b0f0e}
  html:root body .modal #bpcard .bpcd>span:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block;color:var(--muted);font-size:.78rem}
  html:root body .modal #bpcard .bpcd.dark>span:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){color:#9aa8a1}
  html:root body .modal #bpcard .bpcd>b:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block;font-family:var(--f-display);font-size:1.4rem}
  html:root body .modal #bpcard .bpcd>b.pos:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){color:#15803d}
  html:root body .modal #bpcard .bpcd>b.neg:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){color:#b3261e}
  html:root body .modal #bpcard .bpwarn:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:#fdf2d0;color:#4a3a05;border-radius:18px;padding:10px 14px;font-size:.85rem;margin-bottom:8px;line-height:1.35}
  html:root body .modal #bpcard .bpwarn.bad:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:#fbe4e1;color:#7a1b13}
  html:root body .modal #bpcard #bpprev:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:none}
  html:root body .modal #bpcard .bplist:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block}
  html:root body .modal #bpcard .bplc:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:2px 14px}
  html:root body .modal #bpcard .bpr:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;align-items:center;gap:10px;padding:9px 0;border-top:1px solid var(--line)}
  html:root body .modal #bpcard .bpr:first-child:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){border-top:0}
  html:root body .modal #bpcard .bpr>i:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:none;width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:color-mix(in srgb,var(--accent) 14%,var(--surface))}
  html:root body .modal #bpcard .bpr>i>svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block;width:24px;height:24px}
  html:root body .modal #bpcard .bpr>b:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.92rem}
  html:root body .modal #bpcard .bpr>s:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){color:var(--muted);font-size:.78rem}
  html:root body .modal #bpcard .bpr>em:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){font-style:normal;font-weight:800;color:#15803d}
  html:root body .modal #bpcard .bpmore,html:root body .modal #bpcard .bpnone:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){color:var(--muted);text-align:center;padding:12px 4px;font-size:.9rem}
  html:root body .modal #bpcard #bpbtns:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){margin-top:10px}
  html:root body .modal #bpcard #bpbtns>:is(#bpgo,[data-bpyes],button:disabled:not([data-bpno])):not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:none!important}
  html:root body .modal #bpcard #bpbtns>[data-bpno]:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){width:100%}
  html:root body .modal #bpcard #bpbtns:empty:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:none}
  html:root body .modal #bpcard .bpfoot:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;flex:none;align-items:center;gap:12px;padding:10px 0 calc(12px + env(safe-area-inset-bottom,0px));border-top:1px solid var(--line);background:var(--bg)}
  html:root body .modal #bpcard .bpfoot .efi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:1;min-width:0}
  html:root body .modal #bpcard .bpfoot .efi b:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block;font-size:1.05rem}
  html:root body .modal #bpcard .bpfoot .efi small:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block;color:var(--muted);font-size:.8rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  html:root body .modal #bpcard #bpnext:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:none;min-height:50px;padding-inline:30px;font-weight:800;font-size:1rem}
  html.kb-open:root body .modal #bpcard .bpfoot:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:none}
  html.kb-open:root body .modal #bpcard>.hint:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:none}
}
html[data-theme="dark"] .bpwarn{background:#33270f!important;color:#fbbf24!important}
html[data-theme="dark"] .bpwarn.bad{background:#3a1c19!important;color:#fca5a5!important}

/* v1077 · Mínimos de stock «A · Resumen y lista de lo que se cambiará». Solo celular; el computador conserva el texto y el botón. */
.minsum,.minlist{display:none}
.minfoot{display:flex;align-items:center;gap:12px;margin-top:10px}
.minfoot .efi{display:none}
.minr>i>svg.oi,.mindone>span>svg.oi{display:none}
@media (max-width:1099px){
  html:root body .modal.minsheet>.dlg.sheetdlg:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;flex-direction:column;height:92dvh;max-height:92dvh;overflow:hidden;padding-bottom:0}
  html:root body .modal.minsheet>.dlg>.card:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){margin-top:0!important;display:flex;flex-direction:column;flex:1 1 auto;min-height:0;overflow:hidden;padding-bottom:0}
  html:root body .modal #mincard>:is(h2,.minhint):not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:none}
  html:root body .modal #mincard>.minhint:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){margin:0 0 6px}
  html:root body .modal #mincard .minscroll:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;touch-action:pan-y;padding-bottom:14px}
  html:root body .modal #mincard #mininfo:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:none}
  html:root body .modal #mincard .minsum,html:root body .modal #mincard .minlist:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block}
  html:root body .modal #mincard .mincards:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;gap:8px;margin:4px 0 0}
  html:root body .modal #mincard .mincd:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:1;background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:10px 12px}
  html:root body .modal #mincard .mincd.dark:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:#0b0f0e;color:#fff;border-color:#0b0f0e}
  html:root body .modal #mincard .mincd>span:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block;color:var(--muted);font-size:.78rem}
  html:root body .modal #mincard .mincd.dark>span:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){color:#9aa8a1}
  html:root body .modal #mincard .mincd>b:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block;font-family:var(--f-display);font-size:1.6rem}
  html:root body .modal #mincard .mincd>b>small:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){font-size:.8rem;color:var(--muted);font-family:var(--f-body,inherit)}
  html:root body .modal #mincard .minsum .optlbl:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){margin:14px 4px 6px}
  html:root body .modal #mincard .mindone:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){text-align:center;padding:30px 12px}
  html:root body .modal #mincard .mindone>span:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:grid;place-items:center;width:84px;height:84px;border-radius:50%;margin:0 auto 12px;background:color-mix(in srgb,var(--accent) 14%,var(--surface))}
  html:root body .modal #mincard .mindone>span>svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block;width:48px;height:48px}
  html:root body .modal #mincard .mindone>b:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block;font-family:var(--f-display);font-size:1.15rem}
  html:root body .modal #mincard .mindone>small:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block;color:var(--muted);margin-top:4px}
  html:root body .modal #mincard .minlc:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:2px 14px}
  html:root body .modal #mincard .minr:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;align-items:center;gap:12px;padding:9px 0;border-top:1px solid var(--line)}
  html:root body .modal #mincard .minr:first-child:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){border-top:0}
  html:root body .modal #mincard .minr>i:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:none;width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:color-mix(in srgb,var(--accent) 14%,var(--surface))}
  html:root body .modal #mincard .minr>i>svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block;width:24px;height:24px}
  html:root body .modal #mincard .minr .main:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:1;min-width:0}
  html:root body .modal #mincard .minr .main>b:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  html:root body .modal #mincard .minr .main>small:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block;color:var(--muted);font-size:.78rem}
  html:root body .modal #mincard .minp:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:#e3f4ea;color:#15803d;border-radius:999px;padding:4px 12px;font-weight:800;font-size:.78rem;white-space:nowrap}
  html:root body .modal #mincard .minp.low:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:#fdf2d0;color:#92400e}
  html:root body .modal #mincard .minmore:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){color:var(--muted);text-align:center;padding:12px 4px;font-size:.9rem}
  html:root body .modal #mincard .minfoot:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:none;margin:0;padding:10px 0 calc(12px + env(safe-area-inset-bottom,0px));border-top:1px solid var(--line);background:var(--bg)}
  html:root body .modal #mincard .minfoot .efi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block;flex:1;min-width:0}
  html:root body .modal #mincard .minfoot .efi b:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block;font-size:1.05rem}
  html:root body .modal #mincard .minfoot .efi small:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block;color:var(--muted);font-size:.8rem}
  html:root body .modal #mincard #mingo:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:none;min-height:50px;padding-inline:26px;font-weight:800;font-size:1rem}
}
html[data-theme="dark"] .minp{background:#12301f!important;color:#4ade80!important}
html[data-theme="dark"] .minp.low{background:#33270f!important;color:#fbbf24!important}

/* v1078 · Categorías «B · Campo para agregar arriba y botón Renombrar». Solo celular; el computador conserva su diseño. */
.cati>svg.oi{display:none}
.catnone{color:var(--muted);text-align:center;padding:22px 12px;font-size:.95rem;line-height:1.4}
@media (max-width:1099px){
  html:root body .modal.catsheet>.dlg>.card:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){margin-top:0!important}
  html:root body .modal #catscard>.cathint0:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){margin:0 0 8px}
  html:root body .modal #catscard #catsbody:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;flex-direction:column;gap:0}
  html:root body .modal #catscard .catadd:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;gap:8px;align-items:center;flex-wrap:nowrap;margin:0}
  html:root body .modal #catscard .catadd label.f:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){margin:0;flex:1;min-width:0}
  html:root body .modal #catscard .catadd label.f>input:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){min-height:52px;margin-top:0;border-radius:999px!important;border:1px solid var(--line)!important;background:var(--surface)!important;padding-inline:18px}
  html:root body .modal #catscard .catadd .addbtn:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:none;align-self:center!important;min-height:52px;padding-inline:20px;background:var(--fg)!important;color:var(--bg)!important;border:0!important;font-weight:800}
  html:root body .modal #catscard .catadd label.f>span:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:none}
  html:root body .modal #catscard #cataddErr:empty:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:none}
  html:root body .modal #catscard #catsbody>.item:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:var(--surface)!important;border:0!important;border-radius:0!important;margin:0!important;padding:10px 14px!important;display:flex;align-items:center;gap:12px;border-top:1px solid var(--line)!important}
  html:root body .modal #catscard #catsbody>.item:first-of-type:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){border-top:0!important}
  html:root body .modal #catscard #catsbody>.catrow:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){padding:10px 14px!important}
  html:root body .modal #catscard #catsbody>.catadd+#cataddErr+.item:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){border-radius:22px 22px 0 0!important;margin-top:12px!important;border-top:1px solid var(--line)!important}
  html:root body .modal #catscard #catsbody>.item:last-of-type:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){border-radius:0 0 22px 22px!important}
  html:root body .modal #catscard #catsbody>.catadd+#cataddErr+.item:last-of-type:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){border-radius:22px!important}
  html:root body .modal #catscard .cati:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:none;width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:color-mix(in srgb,var(--accent) 14%,var(--surface))}
  html:root body .modal #catscard .cati>svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block;width:26px;height:26px}
  html:root body .modal #catscard .catrow .main:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:1;min-width:0}
  html:root body .modal #catscard .catrow .t:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){font-weight:700}
  html:root body .modal #catscard .catrow .s:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){color:var(--muted);font-size:.8rem}
  html:root body .modal #catscard [data-catedit]:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:none;min-height:40px;padding-inline:16px;background:var(--surface)!important;border:1.5px solid color-mix(in srgb,var(--fg) 22%,var(--line))!important;color:var(--fg)!important;font-weight:800}
  html:root body .modal #catscard #catsbody>.item .row:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex-wrap:wrap;gap:8px;margin-top:8px}
  html:root body .modal #catscard #catsbody>.item .main:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){min-width:0}
  html:root body .modal #catscard #catsbody>.item:not(.catrow):not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex-direction:column;align-items:stretch}
  html:root body .modal #catscard #catsbody>.hint:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){margin:12px 4px 0;color:var(--muted)}
}
@media (max-width:1099px){
  html:root body .modal #catscard .catadd label.f:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k){font-size:0;gap:0}
  html:root body .modal #catscard .catadd label.f>input:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k){font-size:1rem}
}

/* v1079 · Combos «A · Lista de combos con interruptor y «Nuevo combo» fijo». Solo celular; el computador conserva todo junto. */
.cbtop,.cbfoot,.cbtap,.cbsw{display:none}
.cbi>svg.oi{display:none}
.cbnone{color:var(--muted);text-align:center;padding:22px 12px;font-size:.95rem;line-height:1.4}
.cbdelzone:empty{display:none}
@media (max-width:1099px){
  html:root body .modal.cbsheet>.dlg.sheetdlg:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;flex-direction:column;height:92dvh;max-height:92dvh;overflow:hidden;padding-bottom:0}
  html:root body .modal.cbsheet>.dlg>.card:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){margin-top:0!important;display:flex;flex-direction:column;flex:1 1 auto;min-height:0;overflow:hidden;padding-bottom:0}
  html:root body .modal #combocard>:is(h2,.cbhint0,.cbtop):not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:none}
  html:root body .modal #combocard>.cbhint0:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){margin:0 0 8px}
  html:root body .modal #combocard[data-cbm="form"]>.cbhint0:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:none}
  html:root body .modal #combocard .cbtop:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:none;align-items:center;gap:8px;margin:2px 0 10px}
  html:root body .modal #combocard[data-cbm="form"] .cbtop:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex}
  html:root body .modal #combocard #cbback:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:none;min-height:40px;padding-inline:14px;background:var(--surface)!important;border:1.5px solid color-mix(in srgb,var(--fg) 22%,var(--line))!important;color:var(--fg)!important;font-weight:800}
  html:root body .modal #combocard .cbsteps:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;flex:1;background:var(--field,#e4eae7);border-radius:999px;padding:4px}
  html:root body .modal #combocard .cbsteps>button:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:1;border:0;background:none;border-radius:999px;padding:8px 0;font:800 .78rem var(--f-body,inherit);color:var(--muted)}
  html:root body .modal #combocard .cbsteps>button.on:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:var(--fg);color:var(--bg)}
  html:root body .modal #combocard .cbscroll:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;touch-action:pan-y;padding-bottom:14px}
  html:root body .modal #combocard[data-cbm="list"] :is(.cbf1,.cbf2):not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:none!important}
  html:root body .modal #combocard[data-cbm="form"] .cbl:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:none!important}
  html:root body .modal #combocard[data-cbm="form"][data-cbs="1"] .cbf2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:none!important}
  html:root body .modal #combocard[data-cbm="form"][data-cbs="2"] .cbf1:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:none!important}
  html:root body .modal #combocard .cbsaverow:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:none}
  html:root body .modal #combocard .cbdelzone:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){margin-top:14px;display:block}
  html:root body .modal #combocard .cbdelzone .btn:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){min-height:46px}
  html:root body .modal #combocard .cbdq:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){font-weight:700;margin-bottom:8px}
  html:root body .modal #combocard #cblist:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:2px 14px;gap:0}
  html:root body .modal #combocard #cblist:has(.cbnone):not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:none;border:0}
  html:root body .modal #combocard .cbrow:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;align-items:flex-start;gap:12px;padding:12px 0!important;background:none!important;border:0!important;border-top:1px solid var(--line)!important;border-radius:0!important}
  html:root body .modal #combocard .cbrow:first-child:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){border-top:0!important}
  html:root body .modal #combocard .cbrow>.main,html:root body .modal #combocard .cbrow>.cbbtns:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:none!important}
  html:root body .modal #combocard .cbtap:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;flex:1;min-width:0;gap:12px;border:0;background:none;padding:0;text-align:left;font:inherit;color:var(--fg);align-items:flex-start}
  html:root body .modal #combocard .cbi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:none;width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:color-mix(in srgb,var(--accent) 14%,var(--surface))}
  html:root body .modal #combocard .cbi>svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block;width:26px;height:26px}
  html:root body .modal #combocard .cbm:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:1;min-width:0;display:block}
  html:root body .modal #combocard .cbm>b:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block}
  html:root body .modal #combocard .cbm>small:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block;color:var(--muted);font-size:.8rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  html:root body .modal #combocard .cbpr:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:4px}
  html:root body .modal #combocard .cbpr>b:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){font-size:1.02rem}
  html:root body .modal #combocard .cbpr>em:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){font-style:normal;background:#e3f4ea;color:#15803d;border-radius:999px;padding:3px 10px;font-weight:800;font-size:.74rem}
  html:root body .modal #combocard .cbpr .pill:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){border-radius:999px;font-size:.72rem}
  html:root body .modal #combocard .cbrow.off .cbm>b:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){color:var(--muted)}
  html:root body .modal #combocard .cbsw:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block;flex:none;position:relative;width:48px;height:28px;border-radius:999px;border:0;padding:0;background:#c6cdc9;margin-top:8px}
  html:root body .modal #combocard .cbsw.on:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:#16a34a}
  html:root body .modal #combocard .cbsw>i:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:#fff;transition:transform .18s}
  html:root body .modal #combocard .cbsw.on>i:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){transform:translateX(20px)}
  html:root body .modal #combocard .cbfoot:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;flex:none;align-items:center;gap:12px;padding:10px 0 calc(12px + env(safe-area-inset-bottom,0px));border-top:1px solid var(--line);background:var(--bg)}
  html:root body .modal #combocard .cbfoot .efi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:1;min-width:0}
  html:root body .modal #combocard .cbfoot .efi b:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block;font-size:1.05rem}
  html:root body .modal #combocard .cbfoot .efi small:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block;color:var(--muted);font-size:.8rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  html:root body .modal #combocard #cbgo:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:none;min-height:50px;padding-inline:24px;font-weight:800;font-size:1rem}
  html.kb-open:root body .modal #combocard .cbfoot:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:none}
}
html[data-theme="dark"] .cbpr>em{background:#12301f!important;color:#4ade80!important}
/* v1080 · Combos: el producto se busca escribiendo (sin lista desplegable). */
@media (max-width:1099px){
  html:root body .modal #combocard .psearch:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){min-height:52px;border-radius:999px!important;border:1px solid var(--line)!important;background:var(--surface)!important;padding-inline:18px}
  html:root body .modal #combocard .pslist:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;flex-direction:column;gap:0;background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:2px 12px;margin-top:6px}
  html:root body .modal #combocard .pslist:empty:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:none}
  html:root body .modal #combocard .psopt:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;justify-content:space-between;gap:10px;width:100%;padding:11px 4px;border:0;border-top:1px solid var(--line);border-radius:0;background:none;color:var(--fg);font:inherit;text-align:left}
  html:root body .modal #combocard .psopt:first-child:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){border-top:0}
}

/* v1081 · Combos: escanear el producto (mismo botón redondo del escáner, ícono centrado). */
#combocard #cbscan>svg.oi{display:none}
@media (max-width:1099px){
  html:root body .modal #combocard .scanrow:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;gap:8px;align-items:center;flex-wrap:nowrap}
  html:root body .modal #combocard #cbscan:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){position:relative;flex:none;width:52px;height:52px;min-width:0;padding:0;margin:0!important;border-radius:50%!important;background:var(--fg)!important;border:0!important;display:grid;place-items:center;align-self:flex-start;margin-top:26px!important}
  html:root body .modal #combocard #cbscan>span,html:root body .modal #combocard #cbscan>svg:not(.oi):not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:none!important}
  html:root body .modal #combocard #cbscan>svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block!important;position:absolute!important;left:50%!important;top:50%!important;margin:0!important;transform:translate(-50%,-50%)!important;width:28px;height:28px}
  html:root body .modal #combocard #cbscan>svg.oi .m,html:root body .modal #combocard #cbscan>svg.oi .d:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){stroke:var(--bg,#fff)}
  html:root body .modal #combocard .scanrow>.psfield:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:1;min-width:0}
}

/* v1082 · Movimientos «A · Fichas de tipo y lista agrupada por día». Solo celular; el computador conserva su lista. */
.mvchips,.mvday,.mvi,.mvhr,.mvend{display:none}
.mvnone{color:var(--muted);text-align:center;padding:22px 12px;font-size:.95rem}
.mvd{font-weight:600}.mvd.pos{color:var(--ok)}.mvd.neg{color:var(--bad)}.mvd.zero{color:var(--muted)}
.mvi>svg.oi{display:none}
@media (max-width:1099px){
  html:root body .modal.movsheet>.dlg.sheetdlg:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;flex-direction:column;height:92dvh;max-height:92dvh;overflow:hidden;padding-bottom:0}
  html:root body .modal.movsheet>.dlg>.card:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){margin-top:0!important;display:flex;flex-direction:column;flex:1 1 auto;min-height:0;overflow:hidden;padding-bottom:0}
  html:root body .modal #movcard>h2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:none}
  html:root body .modal #movcard .mvsel:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:none}
  html:root body .modal #movcard .mvchips:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;flex-wrap:wrap;gap:8px;flex:none;margin:2px 0 6px}
  html:root body .modal #movcard .mvchips>button:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){border:1px solid var(--line);background:var(--surface);color:var(--fg);border-radius:999px;padding:8px 15px;font:800 .82rem var(--f-body,inherit)}
  html:root body .modal #movcard .mvchips>button.on:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:var(--fg);color:var(--bg);border-color:var(--fg)}
  html:root body .modal #movcard .mvscroll:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;touch-action:pan-y;padding-bottom:calc(14px + env(safe-area-inset-bottom,0px))}
  html:root body .modal #movcard #mlist:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block;gap:0}
  html:root body .modal #movcard .mvday:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block;font-size:.72rem;font-weight:800;color:var(--muted);letter-spacing:.05em;text-transform:uppercase;margin:14px 4px 6px}
  html:root body .modal #movcard .mvday:first-child:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){margin-top:6px}
  html:root body .modal #movcard .mvrow:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;align-items:center;gap:12px;padding:10px 14px!important;background:var(--surface)!important;border:0!important;border-radius:0!important;margin:0!important;border-top:1px solid var(--line)!important}
  html:root body .modal #movcard .mvday+.mvrow:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){border-top:0!important;border-radius:22px 22px 0 0!important}
  html:root body .modal #movcard .mvrow:has(+.mvday),html:root body .modal #movcard .mvrow:last-child:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){border-radius:0 0 22px 22px!important}
  html:root body .modal #movcard .mvday+.mvrow:has(+.mvday),html:root body .modal #movcard .mvday+.mvrow:last-child:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){border-radius:22px!important}
  html:root body .modal #movcard .mvi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:none;display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:color-mix(in srgb,var(--accent) 14%,var(--surface))}
  html:root body .modal #movcard .mvi>svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block;width:24px;height:24px}
  html:root body .modal #movcard .mvrow .main:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:1;min-width:0}
  html:root body .modal #movcard .mvrow .t:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  html:root body .modal #movcard .mvrow .s:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){color:var(--muted);font-size:.78rem;line-height:1.3}
  html:root body .modal #movcard .mvdt:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:none}
  html:root body .modal #movcard .mvhr:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:inline}
  html:root body .modal #movcard .mvd:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:none;min-width:44px;text-align:center;border-radius:999px;padding:5px 12px;font-weight:800;font-size:.9rem}
  html:root body .modal #movcard .mvd.pos:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:#e3f4ea;color:#15803d}
  html:root body .modal #movcard .mvd.neg:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:#fbe4e1;color:#b3261e}
  html:root body .modal #movcard .mvd.zero:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:var(--field,#eef3f0);color:var(--muted)}
  html:root body .modal #movcard #mmore:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:none!important}
  html:root body .modal #movcard .mvend:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block;text-align:center;color:var(--muted);font-size:.85rem;padding:14px 0}
  html:root body .modal #movcard .mvend[hidden]:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:none}
}
html[data-theme="dark"] .mvd.pos{background:#12301f!important;color:#4ade80!important}
html[data-theme="dark"] .mvd.neg{background:#3a1c19!important;color:#fca5a5!important}

/* v1083 · Autorizaciones (maqueta C/C de Juan, 2026-11-25): tarjeta corta del administrador + hoja para revisar; el vendedor ve una cuenta regresiva y sigue solo al aprobarse */
#iapprcard .list{display:flex;flex-direction:column;gap:10px;margin-top:6px}
.apcard{display:grid;grid-template-columns:auto 1fr;gap:10px 12px;align-items:center;background:#0b0b0b;color:#fff;border:1px solid #2a2a2a;border-radius:26px;padding:14px}
.apcard .apic{background:#1b1b1b;width:46px;height:46px}
.apcard .apmain{display:flex;flex-direction:column;min-width:0}.apcard .apmain b{font-size:1.02rem;line-height:1.25}
.apcard .apmain small{color:#b9b9b9;font-size:.84rem;margin-top:2px}.apcard .apmain small i{font-style:normal;font-variant-numeric:tabular-nums}
.apcard .apact{grid-column:1/-1;display:flex;gap:8px;margin:0}
.apcard .apact .btn{flex:1;min-height:46px;border-radius:999px;font-weight:800;justify-content:center}
.apcard .err{grid-column:1/-1}
html:root:not(#_a):not(#_b):not(#_c) body .apcard .apact .btn.primary:not(#_x):not(#_y){background:var(--accent)!important;color:#fff!important;border:0!important}
html:root:not(#_a):not(#_b):not(#_c) body .apcard .apact .btn.danger:not(#_x):not(#_y){background:#2a1313!important;color:#ff8d8d!important;border:1px solid #5a2222!important}
.apic .oi{width:26px;height:26px;display:block}
.apic .oi .m{fill:none;stroke:var(--fg);stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.apic .oi .a{fill:none;stroke:var(--accent);stroke-width:3.4;stroke-linecap:round;stroke-linejoin:round}
.apcard .apic .oi .m{stroke:#fff}
.apinfo .apic{background:var(--accent-soft,#e8f6ee)}
html:root:not(#_a):not(#_b):not(#_c) body .apinfo .apic:not(#_x){background:color-mix(in srgb,var(--accent) 14%,var(--surface))}
.aplist{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:22px;background:var(--surface);margin:8px 0;overflow:hidden}
.aprow{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 10px;padding:12px 14px}.aprow+.aprow{border-top:1px solid var(--line)}
.aprow span{flex:1;min-width:0;font-weight:700;overflow-wrap:anywhere}.aprow b{font-variant-numeric:tabular-nums}.aprow small{flex-basis:100%;color:var(--muted);text-align:right}
.apfis{display:flex;gap:8px;margin:8px 0}
.apfi{flex:1;min-width:0;border:1px solid var(--line);background:var(--surface);border-radius:18px;padding:9px 11px;display:flex;flex-direction:column}
.apfi small{color:var(--muted);font-size:.74rem;font-weight:700}.apfi b{font-size:1rem;font-variant-numeric:tabular-nums;white-space:nowrap}
.apfi.bad{border-color:#e0a1a1;background:#fdeeee}.apfi.bad b,.apfi.bad small{color:#b3261e}
.apfi.good b{color:var(--accent)}
:root[data-theme=dark] .apfi.bad,html.dark .apfi.bad{background:#2a1313;border-color:#5a2222}
.apwhy{background:#fdf1cf;color:#5c4400;border-radius:18px;padding:10px 14px;margin:8px 0;font-weight:600;line-height:1.35}.apwhy small{display:block;font-weight:800;opacity:.7;margin-bottom:2px}
.apdpin{margin:10px 0 0}.apdpin input{border-radius:999px}
.apring{position:relative;width:132px;height:132px;display:grid;place-items:center}
.apring>svg{position:absolute;inset:0;width:100%;height:100%;transform:rotate(-90deg)}
.apring circle{fill:none;stroke-width:7}.apring .bg{stroke:var(--line)}
.apring .fg{stroke:var(--accent);stroke-linecap:round;stroke-dasharray:100;stroke-dashoffset:0;transition:stroke-dashoffset 1.5s linear,stroke .3s}
.apring.ok .fg{stroke:var(--accent);stroke-dashoffset:0!important}.apring.no .fg{stroke:#d33;stroke-dashoffset:0!important}
.apring .apclock{font-size:2rem}
.apmark{position:absolute;inset:0;display:grid;place-items:center}.apmark:empty{display:none}
.apmark .oi{width:54px;height:54px}.apring.ok .apmark .oi .m{stroke:var(--accent)}.apring.no .apmark .oi .m{stroke:#d33}
.apring.ok .apst,.apring.no .apst{display:none}
.apwait .apst{font-weight:700}
.apdigs{position:relative;display:flex;justify-content:center;gap:8px;margin:10px 0 4px}
.apdigs i{width:46px;height:56px;border:1.5px solid var(--line);background:var(--surface);border-radius:16px;display:grid;place-items:center;font:800 1.5rem var(--f-display,inherit);font-style:normal}
.apdigs i.on{border-color:var(--accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 22%,transparent)}
.apdigs input{position:absolute;inset:0;width:100%;height:100%;opacity:0;font-size:16px;border:0;background:transparent}
#aprevdlg.modal,#apcodedlg.modal{z-index:160}
.apmark .oi .m,.apmark .oi .a{fill:none;stroke-width:3.4;stroke-linecap:round;stroke-linejoin:round}
.apring.ok .apmark .oi .m,.apring.ok .apmark .oi .a{stroke:var(--accent)}.apring.no .apmark .oi .m,.apring.no .apmark .oi .a{stroke:#d33}
.apring .apmark .oi{width:60px;height:60px}
.apt small i{font-style:normal;font-variant-numeric:tabular-nums}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e) body #iapprcard .apcard .apact .btn.primary:not(#_x):not(#_y):not(#_z){background:var(--accent)!important;color:#fff!important;border:0!important}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e) body #aprevdlg .apdpin .appin:not(#_x):not(#_y){width:100%!important;min-height:50px}

.apcard .err:empty{display:none}
.apmark .oi .a{stroke-width:4.2}
.apring .apmark svg.oi{display:block!important}

/* v1084 · Papelera «C · Buscador y grupos por urgencia» (Juan, 2026-11-25) */
.trsearch{display:flex;align-items:center;gap:10px;height:50px;border-radius:999px;background:var(--surface);border:1px solid var(--line);padding:0 16px;margin:8px 0 2px}
.trsearch .oi{width:22px;height:22px;flex:none}
.trsearch input{flex:1;min-width:0;border:0!important;background:transparent!important;outline:0;box-shadow:none!important;padding:0!important;font-size:1rem;min-height:0!important}
.trday{font-size:.72rem;font-weight:800;color:var(--muted);letter-spacing:.05em;text-transform:uppercase;margin:14px 4px 6px}.trday.soon{color:var(--bad)}
.trgrp{background:var(--surface);border:1px solid var(--line);border-radius:22px;overflow:hidden}
.trrow{display:flex;align-items:center;gap:8px;padding:0 10px 0 0}.trrow+.trrow{border-top:1px solid var(--line)}
.trtap{flex:1;min-width:0;display:flex;align-items:center;gap:12px;padding:10px 4px 10px 12px;background:transparent;border:0;text-align:left;color:inherit;font:inherit}
.tri{flex:none;display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:color-mix(in srgb,var(--accent) 14%,var(--surface))}
.tri .oi,.trok .oi,.trfoot .oi{width:24px;height:24px;display:block}
.trtap .main{display:flex;flex-direction:column;min-width:0}.trtap .t{font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.trtap .s{color:var(--muted);font-size:.8rem}.trtap .s.soon{color:var(--bad);font-weight:800}
.trok{flex:none;width:44px;height:44px;border-radius:50%;border:0;display:grid;place-items:center;background:color-mix(in srgb,var(--accent) 18%,var(--surface));padding:0}
.trfoot{padding-top:10px}.trfoot .btn{width:100%;min-height:50px;border-radius:999px;justify-content:center;gap:8px;font-weight:800}
.trfoot[hidden],.trsearch[hidden]{display:none!important}
.trshow{display:block}
@media (max-width:1099px){
  html:root body .modal.trsheet>.dlg.sheetdlg:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;flex-direction:column;height:92dvh;max-height:92dvh;overflow:hidden;padding-bottom:0}
  html:root body .modal.trsheet>.dlg>.card:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){margin-top:0!important;display:flex;flex-direction:column;flex:1 1 auto;min-height:0;overflow:hidden;padding-bottom:0}
  html:root body .modal #trashcard>h2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:none}
  html:root body .modal #trashcard>.hint:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:none;margin:0 0 4px}
  html:root body .modal #trashcard .trsearch,html:root body .modal #trashcard .trfoot:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:none}
  html:root body .modal #trashcard .trscroll:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;touch-action:pan-y}
  html:root body .modal #trashcard .trfoot:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){padding-bottom:calc(14px + env(safe-area-inset-bottom,0px))}
  html:root.kb-open body .modal #trashcard .trfoot:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:none}
  html:root body .modal #trashcard #trashbody:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block}
}
html:root body #trfoot .btn.danger:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:var(--surface)!important;color:var(--bad)!important;border:1.5px solid color-mix(in srgb,var(--bad) 40%,var(--line))!important}
html:root body .apbtns .btn.danger:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:color-mix(in srgb,var(--bad) 12%,var(--surface))!important;color:var(--bad)!important;border:1.5px solid color-mix(in srgb,var(--bad) 35%,var(--line))!important;border-radius:999px!important;min-height:50px}
.apbtns .btn .oi{width:22px;height:22px;display:block}.apbtns .btn{gap:8px}

/* v1084 · ajustes: íconos de los botones y buscador */
html:root body #trfoot .btn:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j),html:root body .apbtns .btn:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:inline-flex!important;align-items:center;justify-content:center;gap:8px;flex-direction:row}
html:root body #trfoot .btn svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j),html:root body .apbtns .btn svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){position:static!important;transform:none!important;margin:0!important;inset:auto!important;width:22px;height:22px;flex:none;display:block!important}
html:root body #trfoot .btn span:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j),html:root body .apbtns .btn span:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){position:static!important;transform:none!important}
html:root body #trashcard .trsearch:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;align-items:center}
html:root body #trashcard .trsearch>svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){position:static!important;transform:none!important;width:22px;height:22px;flex:none;display:block!important}
html:root body #trashcard .trsearch input:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){border:0!important;background:transparent!important;box-shadow:none!important;outline:0!important;border-radius:0!important;height:auto!important;padding:0!important;margin:0!important}
html:root body #trashcard .trsearch input::-webkit-search-cancel-button{display:none}
html:root body .apbtns .btn.primary svg.oi .m,html:root body .apbtns .btn.primary svg.oi .a:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){stroke:currentColor!important}
html:root body .apbtns .btn.primary svg.oi .a:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){stroke:var(--accent)!important}
html:root body #trm-ok.btn.primary svg.oi .m:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m):not(#_n):not(#_o):not(#_p){stroke:var(--bg)!important}
html:root body #trm-ok.btn.primary svg.oi .a:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m):not(#_n):not(#_o):not(#_p){stroke:var(--accent)!important}

/* v1085 · Importar «A · Tres pasos» (Juan, 2026-11-25) */
.imhead{display:none}
.imtpl{display:flex;align-items:center;gap:12px;border:1px solid var(--line);background:var(--surface);border-radius:22px;padding:12px 14px;margin:8px 0}
.imic{flex:none;display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:color-mix(in srgb,var(--accent) 14%,var(--surface))}.imic.big{width:58px;height:58px}
.imic .oi{width:26px;height:26px;display:block}.imic.big .oi{width:30px;height:30px}
.imtx{display:flex;flex-direction:column;flex:1;min-width:0}.imtx small{color:var(--muted);font-size:.82rem;line-height:1.3}
.imdrop{width:100%;display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;border:2px dashed color-mix(in srgb,var(--fg) 28%,var(--line));background:var(--surface);color:var(--fg);border-radius:26px;padding:26px 16px;margin:6px 0;font:inherit}
.imdrop b{font-size:1.02rem;overflow-wrap:anywhere}.imdrop small{color:var(--muted);font-size:.84rem}
.imrow{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0}
.imfis{display:flex;gap:8px;margin:6px 0 8px}
.imfi{flex:1;min-width:0;border:1px solid var(--line);background:var(--surface);border-radius:20px;padding:10px 12px;display:flex;flex-direction:column}
.imfi small{color:var(--muted);font-size:.76rem;font-weight:700}.imfi b{font-family:var(--f-display);font-size:1.5rem;line-height:1.1}
.imfi.good{background:color-mix(in srgb,var(--accent) 12%,var(--surface))}.imfi.good b{color:var(--accent)}
.imfi.bad{border-color:#e0a1a1;background:color-mix(in srgb,var(--bad) 10%,var(--surface))}.imfi.bad b{color:var(--bad)}
.imfoot{display:flex;gap:8px;padding-top:10px}.imfoot .btn{min-height:50px;border-radius:999px;font-weight:800;justify-content:center}
.imacts{display:flex;gap:8px;width:100%}.imacts .btn{min-height:50px;border-radius:999px;font-weight:800;justify-content:center}
.imacts[hidden],.imfoot [hidden]{display:none!important}
@media (max-width:1099px){.imsheet [data-ims]{display:none}
.imsheet #importcard[data-imstep="1"] [data-ims="1"],.imsheet #importcard[data-imstep="2"] [data-ims="2"],.imsheet #importcard[data-imstep="3"] [data-ims="3"]{display:block}
}
@media (max-width:1099px){
  html:root body .modal.imsheet>.dlg.sheetdlg:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;flex-direction:column;height:92dvh;max-height:92dvh;overflow:hidden;padding-bottom:0}
  html:root body .modal.imsheet>.dlg>.card:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){margin-top:0!important;display:flex;flex-direction:column;flex:1 1 auto;min-height:0;overflow:hidden;padding-bottom:0}
  html:root body .modal #importcard>h2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:none}
  html:root body .modal #importcard .imhead:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block;flex:none;margin-bottom:6px}
  html:root body .modal #importcard .imsub:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){color:var(--muted);font-size:.9rem;font-weight:700;margin:0 0 8px}
  html:root body .modal #importcard .imdots:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;gap:6px}
  html:root body .modal #importcard .imdots i:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:1;height:5px;border-radius:3px;background:var(--line)}
  html:root body .modal #importcard .imdots i.on:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:var(--accent)}
  html:root body .modal #importcard .imscroll:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;touch-action:pan-y}
  html:root body .modal #importcard .imfoot:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:none;padding-bottom:calc(14px + env(safe-area-inset-bottom,0px))}
  html:root.kb-open body .modal #importcard .imfoot:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:none}
}
@media (min-width:1100px){#importcard #imnext,#importcard #imback{display:none!important}#importcard .imacts[hidden]{display:flex!important}}
html:root body #importcard .imdrop:not(#_x):not(#_y){border-radius:26px!important}
html:root body #importcard .imfoot .btn.primary:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j),html:root body #importcard .imacts .btn.primary:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:var(--fg)!important;color:var(--bg)!important;border:1px solid var(--fg)!important}
html:root body #importcard .imacts [data-iok]:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:var(--accent)!important;color:#fff!important;border:0!important}
html:root body .modal #importcard .imacts .btn[data-iok]:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m):not(#_n){background:var(--accent)!important;color:#fff!important;border:0!important}

/* v1086 · Repuestos «B · Para pedir arriba» (Juan, 2026-11-25) */
.repneed{background:#fdf1cf!important;border:1px solid #f0dc9a!important;color:#3d2e00;border-radius:26px!important;padding:14px!important;margin:0 0 12px!important}
.repneed[hidden]{display:none!important}
.rnrow{display:flex;gap:12px;align-items:center}
.rnic{flex:none;display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:#fff}
.rnic .oi{width:22px;height:22px;display:block}.rnic .oi .m,.rnic .oi .a,.rnic .oi .d{stroke:#3d2e00}
.rntx{display:flex;flex-direction:column;min-width:0}.rntx b{font-size:1rem}.rntx small{font-size:.84rem;line-height:1.3;opacity:.8;overflow-wrap:anywhere}
.rnbtn{margin-top:10px;width:100%;min-height:46px;border-radius:999px;justify-content:center;gap:8px;font-weight:800}
html:root body #repneed .rnbtn:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:inline-flex!important;align-items:center;justify-content:center;background:#0b0f0e!important;color:#fff!important;border:1px solid #0b0f0e!important}
html:root body #repneed .rnbtn svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){position:static!important;transform:none!important;width:22px;height:22px;margin:0!important;display:block!important}
html:root body #repneed .rnbtn svg.oi .m:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j),html:root body #repneed .rnbtn svg.oi .d:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){stroke:#fff!important}
html:root body #repneed .rnbtn svg.oi .a:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){stroke:var(--accent)!important}
html:root body #tab-inventario #repneed.card:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m):not(#_n){background:#fdf1cf!important;border:1px solid #f0dc9a!important;color:#3d2e00!important}
html:root body #tab-inventario #repneed .rntx b:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m):not(#_n),html:root body #tab-inventario #repneed .rntx small:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m):not(#_n){color:#3d2e00!important}

/* v1087 · Cerrar caja «B · Tres pasos» (Juan, 2026-11-25) */
.cshead,.csfoot #csback,.csfoot #csnext,.csleftq,.cslbl{display:none}
.csrows{display:flex;flex-direction:column;border:1px solid var(--line);background:var(--surface);border-radius:22px;overflow:hidden;margin:8px 0 12px}
.csr{display:flex;align-items:center;gap:12px;padding:10px 14px}.csr+.csr{border-top:1px solid var(--line)}
.csi{flex:none;display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:color-mix(in srgb,var(--accent) 14%,var(--surface))}.csi .oi{width:22px;height:22px;display:block}
.cst{flex:1;min-width:0;display:flex;flex-direction:column;font-weight:700}.cst small{color:var(--muted);font-size:.78rem;font-weight:500}
.csleftq{gap:8px;flex-wrap:wrap;margin:6px 0 8px}.csleftq .btn{border-radius:999px;min-height:44px;font-weight:800}
.csleftq .btn.on{background:var(--fg)!important;color:var(--bg)!important;border-color:var(--fg)!important}
.cslbl{font-weight:800;margin:4px 2px}
.csfoot{display:flex;gap:8px;margin-top:10px}.csfoot .btn{min-height:52px;border-radius:999px;justify-content:center;font-weight:800}
.csfoot [hidden]{display:none!important}
.modal.cssheet [data-css]{display:none}
.modal.cssheet .cjclosef[data-csstep="1"] [data-css="1"],.modal.cssheet .cjclosef[data-csstep="2"] [data-css="2"],.modal.cssheet .cjclosef[data-csstep="3"] [data-css="3"]{display:block}
.modal.cssheet .cjclosef[data-csstep="3"] .csleftq{display:flex}.modal.cssheet .cjclosef[data-csstep="3"] .cslbl{display:block}
@media (max-width:1099px){
  html:root body .modal.cssheet>.dlg.sheetdlg:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;flex-direction:column;height:92dvh;max-height:92dvh;overflow:hidden;padding-bottom:0}
  html:root body .modal.cssheet>.dlg>.cjclosef:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){margin-top:0!important;display:flex;flex-direction:column;flex:1 1 auto;min-height:0;overflow:hidden;padding-bottom:0}
  html:root body .modal.cssheet .cjclosef .cshead:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block;flex:none;margin-bottom:6px}
  html:root body .modal.cssheet .cjclosef .cssub:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){color:var(--muted);font-size:.9rem;font-weight:700;margin:0 0 8px}
  html:root body .modal.cssheet .cjclosef .csdots:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;gap:6px}
  html:root body .modal.cssheet .cjclosef .csdots i:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:1;height:5px;border-radius:3px;background:var(--line)}
  html:root body .modal.cssheet .cjclosef .csdots i.on:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:var(--accent)}
  html:root body .modal.cssheet .cjclosef .csscroll:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;touch-action:pan-y}
  html:root body .modal.cssheet .cjclosef .csfoot:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:none;padding-bottom:calc(14px + env(safe-area-inset-bottom,0px))}
  html:root body .modal.cssheet .cjclosef .cjmhint:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:none}
  html:root body .modal.cssheet .cjclosef .cjdebe:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:#0b0f0e!important;color:#fff!important;border-radius:26px!important;padding:14px 18px!important;margin-bottom:10px}
  html:root body .modal.cssheet .cjclosef .cjdebe span:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){color:#bdbdbd}
  html:root body .modal.cssheet .cjclosef .cjdebe b:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){font-size:1.9rem!important;color:#fff}
  html:root body .modal.cssheet .cjclosef #cclose:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){margin-top:0;border-radius:999px!important}
  html:root.kb-open body .modal.cssheet .cjclosef .csfoot:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:none}
}
html:root body .modal.cssheet .cjclosef .csfoot .btn.primary:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:var(--fg)!important;color:var(--bg)!important;border:1px solid var(--fg)!important}
html:root body .modal.cssheet .cjclosef .csfoot #csback:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:var(--surface)!important;color:var(--fg)!important;border:1.5px solid color-mix(in srgb,var(--fg) 22%,var(--line))!important}
html:root body .modal.cssheet .cjclosef #cdiff .cchip:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){border-radius:20px}
html:root body .modal.cssheet .cjclosef .csfoot #csback:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j),html:root body .modal.cssheet .cjclosef .csfoot #csnext:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:inline-flex}
html:root body .modal.cssheet .cjclosef .csfoot [hidden]:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:none!important}

/* v1088 · Gastos del día «C · Con foto de la factura» (Juan, 2026-11-25) */
.gfoto{display:flex;align-items:center;gap:12px;width:100%;text-align:left;border:2px dashed color-mix(in srgb,var(--fg) 28%,var(--line));background:var(--surface);color:var(--fg);border-radius:22px;padding:14px 16px;margin-top:10px;font:inherit}
.gfoto.on{border-style:solid;border-color:var(--accent)}
.gfic,.gfimg{flex:none;display:grid;place-items:center;width:46px;height:46px;border-radius:14px;background:color-mix(in srgb,var(--accent) 14%,var(--surface));overflow:hidden}
.gfic .oi{width:26px;height:26px;display:block}.gfimg img{width:100%;height:100%;object-fit:cover}
.gftx{display:flex;flex-direction:column;flex:1;min-width:0}.gftx small{color:var(--muted);font-size:.82rem;font-weight:500}
.gfoto.on .btn{min-height:40px;border-radius:999px}
.gsfoot{display:flex;gap:8px;align-items:flex-end;margin-top:10px}
.gsfoot .btn{min-height:52px;border-radius:999px;justify-content:center;font-weight:800}
#glist [data-gfoto] .oi{width:18px;height:18px;display:block}#glist [data-gfoto]{display:inline-flex;align-items:center;gap:5px}
@media (max-width:1099px){
  html:root body .modal.gssheet>.dlg.sheetdlg:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;flex-direction:column;height:92dvh;max-height:92dvh;overflow:hidden;padding-bottom:0}
  html:root body .modal.gssheet>.dlg>.card:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){margin-top:0!important;display:flex;flex-direction:column;flex:1 1 auto;min-height:0;overflow:hidden;padding-bottom:0}
  html:root body .modal #gcard>h2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:none}
  html:root body .modal #gcard .gsscroll:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;touch-action:pan-y;padding-bottom:10px}
  html:root body .modal #gcard .gsfoot:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:none;padding-bottom:calc(14px + env(safe-area-inset-bottom,0px))}
  html:root.kb-open body .modal #gcard .gsfoot:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:none}
  /* categorías y formas de pago: píldoras en filas, no cuadrícula alta */
  html:root body .modal #gcard .gpick:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;flex-wrap:wrap;gap:8px}
  html:root body .modal #gcard .gpk:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:inline-flex;flex-direction:row;align-items:center;gap:7px;width:auto;min-height:44px!important;padding:8px 14px!important;border:1px solid var(--line)!important;background:var(--surface)!important;border-radius:999px!important;font-weight:800;font-size:.86rem}
  html:root body .modal #gcard .gpk svg:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){width:20px!important;height:20px!important;padding:0!important;border-radius:0!important;background:transparent!important;flex:none}
  html:root body .modal #gcard .gpk.on:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:var(--fg)!important;color:var(--bg)!important;border-color:var(--fg)!important}
  html:root body .modal #gcard .gpk.on svg:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){color:var(--bg)}
  html:root body .modal #gcard .gpk-add:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){border-style:dashed!important;color:var(--accent)!important;background:transparent!important}
  html:root body .modal #gcard .glbl:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){font-size:.72rem;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:var(--muted);margin:12px 4px 6px}
}
html:root body #gcard .gsfoot #gadd:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:var(--fg)!important;color:var(--bg)!important;border:1px solid var(--fg)!important}
html:root body .modal #gcard .gpk.on svg *:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m):not(#_n){stroke:var(--bg)!important}

html:root body .modal #gcard #glist::before{content:"Gastos de hoy";display:block;font-size:.72rem;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:var(--muted);margin:16px 4px 6px}

/* v1089 · Avisos «C + A» (Juan, 2026-11-25): lo normal se confirma en el botón; los avisos salen ARRIBA en una tira corta que no recibe toques, así nunca tapa lo de abajo */
html:root body .toast.nsheet:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m){top:calc(10px + env(safe-area-inset-top,0px))!important;bottom:auto!important;left:12px;right:12px;margin-inline:auto;max-width:520px;padding:10px 16px!important;border-radius:999px!important;gap:10px;z-index:400;pointer-events:none;transform:none;font-size:.95rem}
html:root body .toast.nsheet.hi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m){top:calc(10px + env(safe-area-inset-top,0px))!important;bottom:auto!important}
html.ivnav body .toast.nsheet:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m){top:calc(10px + env(safe-area-inset-top,0px))!important;bottom:auto!important}
html:root body .toast.nsheet .tic:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m){width:26px;height:26px;font-size:.85rem}
html:root body .toast.nsheet .ttx:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m){overflow-wrap:anywhere;line-height:1.25}
@media (prefers-reduced-motion:no-preference){
  html:not([data-calm]) .toast.nsheet{animation:nsdown2 .32s cubic-bezier(.34,1.4,.64,1)}
  html:not([data-calm]) .toast.nsheet.out{animation:nsup2 .2s cubic-bezier(.3,0,1,1) forwards}
}
@keyframes nsdown2{from{opacity:0;transform:translateY(-40px)}}
@keyframes nsup2{to{opacity:0;transform:translateY(-40px)}}
/* el botón confirma en verde con ✓ */
html:root body .btn.is-done:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m){background:var(--accent)!important;border-color:var(--accent)!important}
html:root body .btn.is-done>.bover:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m){color:#fff!important;-webkit-text-fill-color:#fff!important}

/* v1090 · Base y movimientos de efectivo «A · Cuatro fichas de tipo» (Juan, 2026-11-25) */
.mvssub{display:none}
.mvkinds{display:flex;gap:8px;margin:4px 0 6px}
.mvk{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;gap:4px;padding:10px 4px;border-radius:22px;border:1px solid var(--line);background:var(--surface);color:var(--fg);font:inherit}
.mvk b{font-size:.78rem;font-weight:800}
.mvki{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:color-mix(in srgb,var(--accent) 14%,var(--surface))}.mvki .oi{width:22px;height:22px;display:block}
.mvk.on{background:var(--fg);color:var(--bg);border-color:var(--fg)}.mvk.on .mvki{background:color-mix(in srgb,var(--bg) 14%,transparent)}
.mvk.on .mvki .oi .m,.mvk.on .mvki .oi .d{stroke:var(--bg)}
.mvsfoot{display:flex;gap:8px;margin-top:10px}.mvsfoot .btn{min-height:52px;border-radius:999px;justify-content:center;font-weight:800}
@media (min-width:1100px){.mvkinds{display:none}.mvktype[hidden]{display:block!important}}
@media (max-width:1099px){
  html:root body .modal.mvssheet>.dlg.sheetdlg:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;flex-direction:column;height:92dvh;max-height:92dvh;overflow:hidden;padding-bottom:0}
  html:root body .modal.mvssheet>.dlg>.card:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){margin-top:0!important;display:flex;flex-direction:column;flex:1 1 auto;min-height:0;overflow:hidden;padding-bottom:0}
  html:root body .modal #mvcard>h2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j),html:root body .modal #mvcard>.hint:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:none}
  html:root body .modal #mvcard .mvssub:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block;flex:none;color:var(--muted);font-size:.85rem;margin:0 2px 6px}
  html:root body .modal #mvcard .mvsscroll:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;touch-action:pan-y;padding-bottom:10px}
  html:root body .modal #mvcard .mvsfoot:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:none;padding-bottom:calc(14px + env(safe-area-inset-bottom,0px))}
  html:root.kb-open body .modal #mvcard .mvsfoot:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:none}
  html:root body .modal #mvcard .mvamt input:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){font-family:var(--f-display);font-size:2rem!important;font-weight:800;text-align:center;min-height:64px;border-radius:24px!important}
  html:root body .modal #mvcard #mvnonerow .btn:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){width:100%;justify-content:center;font-weight:800} /* v1235 (Juan): «Abrir caja sin efectivo» es un botón de verdad (secundaria con ícono), no un texto suelto */
  html:root body .modal #mvcard #mvlist::before{content:"Movimientos de hoy";display:block;font-size:.72rem;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:var(--muted);margin:16px 4px 6px}
}
html:root body #mvcard .mvsfoot #mvadd:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:var(--fg)!important;color:var(--bg)!important;border:1px solid var(--fg)!important}

/* v1091 · Caja, pantalla principal «A · Todo de hoy en una pantalla» (Juan, 2026-11-25). Solo celular. */
@media (max-width:1099px){
  html:root body #tab-caja #chero2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j)::before{display:none}
  html:root body #tab-caja #chero2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){margin:0 0 12px!important;padding:16px 18px!important;border-radius:30px!important;text-align:left!important;background:#0b0f0e!important;color:#fff!important}
  html:root body #tab-caja #chero2 .k:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){opacity:.7;font-size:.85rem}
  html:root body #tab-caja #chero2 .vnum:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){font-size:clamp(2.1rem,10vw,2.6rem);margin:2px 0 10px!important}
  html:root body #tab-caja #chero2 .vqpills:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){justify-content:flex-start;gap:6px}
  html:root body #tab-caja #chero2 .vqpill:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:#222a27!important;color:#fff!important;border:0!important}
  html:root body #tab-caja #chero2 .vqpill.cjst:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:#fff!important;color:#15803d!important;font-weight:800}
  /* acciones en círculos con ícono propio */
  html:root body #tab-caja #cjtop .cja svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block!important;width:54px!important;height:54px!important;padding:13px!important;box-sizing:border-box;border-radius:50%!important;background:color-mix(in srgb,var(--accent) 14%,var(--surface))!important;color:var(--fg)!important}
  html:root body #tab-caja #cjtop .cja:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){min-width:70px}
  html:root body #tab-caja #cjtop .cja>span:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){font-weight:800;font-size:.78rem}
  /* Hoy · Ayer · Otro día en un solo grupo */
  html:root body #tab-caja #cjtop .cjchips:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;flex:1;min-width:0;gap:0;background:var(--surface);border:1px solid var(--line);border-radius:999px;padding:4px}
  html:root body #tab-caja #cjtop .cjchips .vqchip:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:1;justify-content:center;border:0!important;background:transparent!important;border-radius:999px!important;font-weight:800;min-height:38px;white-space:nowrap}
  html:root body #tab-caja #cjtop .cjchips .vqchip.on:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:var(--fg)!important;color:var(--bg)!important}
  /* aviso de transferencias por confirmar */
  html:root body #tab-caja #cjtop .cjwarn:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;align-items:center;gap:12px;width:100%;text-align:left;background:#fdf1cf;border:1px solid #f0dc9a;border-radius:24px;padding:12px 14px;margin:8px 0;color:#3d2e00;font:inherit}
  html:root body #tab-caja #cjtop .cjwic:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:none;display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#fff}
  html:root body #tab-caja #cjtop .cjwic .oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){width:22px;height:22px;display:block}
  html:root body #tab-caja #cjtop .cjwic .oi .m:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j),html:root body #tab-caja #cjtop .cjwic .oi .a:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){stroke:#3d2e00}
  html:root body #tab-caja #cjtop .cjwtx:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:1;min-width:0;display:flex;flex-direction:column}
  html:root body #tab-caja #cjtop .cjwtx small:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){opacity:.8;font-size:.82rem}
  html:root body #tab-caja #cjtop .cjwbtn:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:none;background:#0b0f0e;color:#fff;border-radius:999px;padding:9px 18px;font-weight:800}
  html:root body #tab-caja.cjv>#trcard:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:none!important}
  /* resumen del día con íconos propios */
  html:root body #closecard .cj-rows>.r>.ci.cio:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j)::before{content:none!important}
  html:root body #closecard .cj-rows>.r>.ci.cio svg:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block!important;width:22px;height:22px}
  html:root body #closecard .cj-rows>.r>.ci.cio svg .m:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j),html:root body #closecard .cj-rows>.r>.ci.cio svg .d:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){stroke:var(--fg)}
}
@media (max-width:1099px){html:root body #tab-caja #chero2 .vnum:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block;text-align:left;float:none}}

/* v1092 · filas de gastos y movimientos: título, detalle en líneas y botones juntos (Juan, 2026-11-25) */
.xrow{display:block!important}
.xtop{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.xtx{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.xt{font-weight:800;line-height:1.25;overflow-wrap:anywhere}
.xs{color:var(--muted);font-size:.82rem;line-height:1.3}
.xamt{flex:none;font-weight:800;white-space:nowrap}
.xacts{display:flex;align-items:center;gap:8px;margin-top:10px}
.xacts .xsp{flex:1}.xacts .xq{flex:1;font-weight:700;font-size:.9rem}
.xacts .btn{min-height:40px;border-radius:999px;font-weight:800}
html:root body #glist .xrow:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j),html:root body #mvlist .xrow:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:12px 14px;margin:0 0 8px}

/* v1093 · Caja «C · Tarjeta por forma de pago» (Juan, 2026-11-25). Solo celular. */
.cjpays{display:none}
@media (max-width:1099px){
  html:root body #tab-caja.cjv #closecard .cjpays:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;gap:10px;overflow-x:auto;-webkit-overflow-scrolling:touch;scroll-snap-type:x proximity;margin:8px -16px 0;padding:2px 16px 6px;scrollbar-width:none}
  html:root body #tab-caja.cjv #closecard .cjpays::-webkit-scrollbar{display:none}
  html:root body #tab-caja.cjv #closecard .cjpc:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:none;width:158px;scroll-snap-align:start;display:flex;flex-direction:column;gap:2px;background:var(--surface);border:1px solid var(--line);border-radius:24px;padding:12px 14px}
  html:root body #tab-caja.cjv #closecard .cjpi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:color-mix(in srgb,var(--accent) 14%,var(--surface));margin-bottom:6px}
  html:root body #tab-caja.cjv #closecard .cjpi .oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){width:22px;height:22px;display:block}
  html:root body #tab-caja.cjv #closecard .cjpn:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){font-weight:800}
  html:root body #tab-caja.cjv #closecard .cjpv:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){font-family:var(--f-display);font-size:1.3rem;font-weight:800;line-height:1.15}
  html:root body #tab-caja.cjv #closecard .cjpc small:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){color:var(--muted);font-size:.78rem}
  html:root body #tab-caja.cjv #closecard #csum:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:none}
  /* movimientos del día: ícono propio, título corto */
  html:root body #tab-caja.cjv #cjmov .cjmi .oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){width:22px;height:22px;display:block}
  html:root body #tab-caja.cjv #cjmov .cjmi .oi .m:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j),html:root body #tab-caja.cjv #cjmov .cjmi .oi .d:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){stroke:var(--fg)}
}
@media (max-width:1099px){html:root body #tab-caja.cjv #cjmlist .cjmi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){border-radius:50%}}

.cjptitle{display:none}
@media (max-width:1099px){html:root body #tab-caja.cjv #closecard .cjptitle:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block;font-family:var(--f-display);font-size:1.15rem;font-weight:800;margin:12px 4px 0}}

/* v1094 · Tarjeta negra de Caja como la maqueta: «Efectivo que debe haber» + CAJA ABIERTA arriba, importe grande, fichas debajo (Juan, 2026-11-25) */
@media (max-width:1099px){
  html:root body #tab-caja #chero2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:grid!important;grid-template-columns:1fr auto;grid-template-areas:"k st" "num num" "pills pills";align-items:center;row-gap:2px;column-gap:10px}
  html:root body #tab-caja #chero2>.k:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){grid-area:k;margin:0}
  html:root body #tab-caja #chero2>.cjst:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){grid-area:st;justify-self:end;background:#fff!important;color:#15803d!important;font-weight:800;font-size:.72rem;letter-spacing:.04em;border:0!important;border-radius:999px;padding:5px 10px}
  html:root body #tab-caja #chero2>.vnum:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){grid-area:num;margin:0 0 8px!important;text-align:left!important;justify-self:start}
  html:root body #tab-caja #chero2>.vqpills:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){grid-area:pills}
  /* nada se mueve: filas de fichas que se deslizan de lado sin vaivén vertical */
  html:root body #tab-caja .cjmchips:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j),html:root body #tab-caja .cjpays:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){overflow-y:hidden!important;overscroll-behavior-x:contain}
}

/* v1094 · el día se cambia con una píldora de fecha larga (con el calendario nativo debajo) y «Otro día» con ícono propio */
@media (max-width:1099px){
  html:root body #tab-caja.cjv .cjdaylbl:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:none!important}
  html:root body #tab-caja #cjtop .cjsub.cjdate:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){position:relative;display:flex;align-items:center;gap:8px;margin:8px 0 0;padding:10px 14px;background:var(--surface);border:1px solid var(--line);border-radius:999px;color:var(--fg);font-weight:700;font-size:.92rem}
  html:root body #tab-caja #cjtop .cjdate .oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){width:20px;height:20px;flex:none;display:block}
  html:root body #tab-caja #cjtop .cjdate em:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){font-style:normal;color:var(--muted);font-weight:600}
  html:root body #tab-caja #cjtop .cjdate .cjdpick:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){position:absolute;inset:0;width:100%;height:100%;opacity:0;font-size:16px;border:0;background:transparent}
  html:root body #tab-caja #cjtop .cjchips .vqchip .oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){width:18px;height:18px;display:inline-block;vertical-align:-4px;margin-right:6px}
}
@media (max-width:1099px){
  html:root body #tab-caja #cjmov .cjmchips:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k){height:auto!important;max-height:none!important;min-height:0!important;align-items:center;padding:2px 0 4px}
  html:root body #tab-caja #cjtop .cjchips:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k){overflow:hidden!important}
}
@media (max-width:1099px){html:root body #tab-caja #cjmov .cjmchips:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k){padding:2px 0 8px}}

/* v1095 · punto de estado de la caja en el ícono de arriba (Juan, 2026-11-25) */
.navhb{position:relative}
.navhb .cjdot{position:absolute;top:6px;right:6px;width:12px;height:12px;border-radius:50%;border:2px solid var(--bg);box-sizing:content-box;pointer-events:none}
.navhb .cjdot.open{background:#16a34a}
.navhb .cjdot.closed{background:#dc2626}
@media (prefers-reduced-motion:no-preference){.navhb .cjdot.open{animation:cjpulse 1.8s ease-out infinite}}
@keyframes cjpulse{0%{box-shadow:0 0 0 0 rgba(22,163,74,.55)}70%{box-shadow:0 0 0 8px rgba(22,163,74,0)}100%{box-shadow:0 0 0 0 rgba(22,163,74,0)}}

/* v1097 · Todos los movimientos «A · Chips, filtros y lista por día» (Juan, 2026-11-25) */
.modal.cjmsheet>.dlg.sheetdlg:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;flex-direction:column;height:92dvh;max-height:92dvh;overflow:hidden;padding-bottom:0}
.cjmsheet .cmshead{display:flex;align-items:center;justify-content:space-between;gap:10px;flex:none;margin:0 2px 6px}
.cjmsheet .cmssub{color:var(--muted);font-size:.88rem}
.cjmsheet .cmscsv{display:inline-flex;align-items:center;gap:6px;min-height:40px;border-radius:999px;padding:0 14px;font-weight:800;background:var(--surface);border:1px solid var(--line);color:var(--fg)}
.cjmsheet .cmscsv .oi{width:18px;height:18px;display:block}
.cjmsheet .cmsseg{flex:none;display:flex;background:var(--surface);border:1px solid var(--line);border-radius:999px;padding:4px;margin:0 0 8px;gap:0}
.cjmsheet .cmsseg button{flex:1;border:0;background:transparent;border-radius:999px;min-height:38px;font-weight:800;color:var(--fg)}
.cjmsheet .cmsseg button.on{background:var(--fg);color:var(--bg)}
.cjmsheet .cmssearch{flex:none;display:flex;align-items:center;gap:10px;height:48px;border-radius:999px;background:var(--surface);border:1px solid var(--line);padding:0 16px;margin:0 0 8px}
.cjmsheet .cmssearch .oi{width:22px;height:22px;flex:none;display:block}
.cjmsheet .cmssearch input{flex:1;min-width:0;border:0!important;background:transparent!important;outline:0;box-shadow:none!important;padding:0!important;font-size:1rem;min-height:0!important}
.cjmsheet .cmssearch input::-webkit-search-cancel-button{display:none}
.cjmsheet .cmschips{flex:none;display:flex;gap:8px;margin:0 0 8px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;padding-bottom:2px}
.cjmsheet .cmschips::-webkit-scrollbar{display:none}
.cjmsheet .cmschips button{flex:none;display:inline-flex;align-items:center;gap:6px;min-height:40px;border-radius:999px;padding:0 15px;font-weight:800;font-size:.86rem;background:var(--surface);border:1px solid var(--line);color:var(--fg)}
.cjmsheet .cmschips button.on{background:var(--fg);color:var(--bg);border-color:var(--fg)}
.cjmsheet .cmschips .oi{width:18px;height:18px;display:block}
.cjmsheet .cmschips b{display:inline-grid;place-items:center;min-width:18px;height:18px;border-radius:9px;background:var(--accent);color:#fff;font-size:.7rem;padding:0 4px}
.cjmsheet .cmsfp{flex:none;display:flex;flex-direction:column;gap:6px;background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:12px;margin:0 0 8px}
.cjmsheet .cmsfp[hidden]{display:none}
.cjmsheet .cmsfp .btn{border-radius:999px;min-height:42px;font-weight:800;justify-content:center}
.cjmsheet .cmsfis{flex:none;display:flex;gap:8px;margin:0 0 4px}
.cjmsheet .cmsfi{flex:1;border-radius:20px;padding:9px 12px;border:1px solid var(--line);background:var(--surface);display:flex;flex-direction:column}
.cjmsheet .cmsfi small{color:var(--muted);font-size:.76rem}.cjmsheet .cmsfi b{font-family:var(--f-display);font-size:1.15rem}
.cjmsheet .cmsfi.in{background:color-mix(in srgb,var(--accent) 12%,var(--surface))}.cjmsheet .cmsfi.in b{color:var(--accent)}
.cjmsheet .cmsfi.out b{color:var(--bad,#b3261e)}
.cjmsheet .cmsscroll{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;touch-action:pan-y;padding-bottom:calc(14px + env(safe-area-inset-bottom,0px))}
.cjmsheet .cmsday{font-size:.72rem;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:var(--muted);margin:14px 4px 6px}
.cjmsheet .cmsrow{display:flex;align-items:center;gap:12px;padding:10px 12px;background:var(--surface);border:1px solid var(--line);border-bottom:0}
.cjmsheet .cmsday+.cmsrow{border-radius:20px 20px 0 0}
.cjmsheet .cmsrow:last-child,.cjmsheet .cmsrow:has(+.cmsday){border-bottom:1px solid var(--line);border-radius:0 0 20px 20px}
.cjmsheet .cmsday+.cmsrow:last-child,.cjmsheet .cmsday+.cmsrow:has(+.cmsday){border-radius:20px}
.cjmsheet .cmsrow .cjmi{display:grid;place-items:center;flex:none;width:40px;height:40px;border-radius:50%;background:color-mix(in srgb,var(--accent) 14%,var(--surface))}
.cjmsheet .cmsrow .cjmi.out{background:color-mix(in srgb,var(--bad,#b3261e) 12%,var(--surface))}
.cjmsheet .cmsrow .cjmi .oi{width:22px;height:22px;display:block}.cjmsheet .cmsrow .cjmi .oi .m,.cjmsheet .cmsrow .cjmi .oi .d{stroke:var(--fg)}
.cjmsheet .cmsrow .main{flex:1;min-width:0}.cjmsheet .cmsrow .t{font-weight:700;overflow-wrap:anywhere}.cjmsheet .cmsrow .s{color:var(--muted);font-size:.8rem;line-height:1.3}
.cjmsheet .cmsv{flex:none;white-space:nowrap}.cjmsheet .cmsv.pos{color:var(--ok,#15803d)}.cjmsheet .cmsv.neg{color:var(--bad,#b3261e)}
.cjmsheet .cjtract{display:flex;align-items:center;gap:8px;margin-top:8px}.cjmsheet .cjtract .hint{flex:1;margin:0}.cjmsheet .cjtract .btn{min-height:38px;border-radius:999px;font-weight:800}
.cjmsheet .mvend{text-align:center;color:var(--muted);font-size:.85rem;padding:14px 0}
html:root body .cjmsheet .mvend:not([hidden]):not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block}
html:root body .cjmsheet .cmsseg button:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j),html:root body .cjmsheet .cmschips button:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j),html:root body .cjmsheet .cmscsv:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j),html:root body .cjmsheet .cmsfp .btn:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){border-radius:999px!important}
html:root body .cjmsheet .cmssearch input:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l){border:0!important;background:transparent!important;box-shadow:none!important;outline:0!important;border-radius:0!important;height:auto!important;padding:0!important;margin:0!important}
html:root body .cjmsheet .cmsseg button.on:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l){background:var(--fg)!important;color:var(--bg)!important}
html:root body .cjmsheet .cmschips button.on svg.oi .m:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l),html:root body .cjmsheet .cmschips button.on svg.oi .a:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l),html:root body .cjmsheet .cmschips button.on svg.oi .d:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l){stroke:var(--bg)!important}
html:root body .cjmsheet .cmscsv svg.oi .m:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l){stroke:var(--fg)}

/* v1098 · Pasar dinero entre cuentas «A · De → A con fichas» (Juan, 2026-11-25) */
.ptssub,.ptaccs,.ptarrow,.ptl{display:none}
.ptsfoot{display:flex;gap:8px;margin-top:10px}.ptsfoot .btn{min-height:52px;border-radius:999px;justify-content:center;font-weight:800}
@media (max-width:1099px){
  html:root body .modal.ptssheet>.dlg.sheetdlg:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;flex-direction:column;height:92dvh;max-height:92dvh;overflow:hidden;padding-bottom:0}
  html:root body .modal.ptssheet>.dlg>.card:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){margin-top:0!important;display:flex;flex-direction:column;flex:1 1 auto;min-height:0;overflow:hidden;padding-bottom:0}
  html:root body .modal #ptcard>h2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j),html:root body .modal #ptcard>.hint:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:none}
  html:root body .modal #ptcard .ptssub:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block;flex:none;color:var(--muted);font-size:.85rem;margin:0 2px 4px}
  html:root body .modal #ptcard .ptsscroll:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;touch-action:pan-y;padding-bottom:10px}
  html:root body .modal #ptcard .ptsfoot:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:none;padding-bottom:calc(14px + env(safe-area-inset-bottom,0px))}
  html:root.kb-open body .modal #ptcard .ptsfoot:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:none}
  html:root body .modal #ptcard .ptl:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block;font-size:.72rem;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:var(--muted);margin:12px 4px 6px}
  html:root body .modal #ptcard .ptaccs:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;gap:8px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;padding-bottom:2px}
  html:root body .modal #ptcard .ptaccs::-webkit-scrollbar{display:none}
  html:root body .modal #ptcard .pta:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:1 0 82px;min-width:82px;display:flex;flex-direction:column;align-items:center;gap:2px;padding:10px 6px;border-radius:22px;border:1px solid var(--line);background:var(--surface);color:var(--fg);font:inherit;text-align:center}
  html:root body .modal #ptcard .pta b:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){font-size:.78rem;font-weight:800;overflow-wrap:anywhere}
  html:root body .modal #ptcard .pta small:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){font-size:.72rem;opacity:.7}
  html:root body .modal #ptcard .ptai:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:color-mix(in srgb,var(--accent) 14%,var(--surface));margin-bottom:2px}
  html:root body .modal #ptcard .ptai .oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){width:22px;height:22px;display:block}
  html:root body .modal #ptcard .pta.on:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:var(--fg);color:var(--bg);border-color:var(--fg)}
  html:root body .modal #ptcard .pta.on .ptai:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:color-mix(in srgb,var(--bg) 14%,transparent)}
  html:root body .modal #ptcard .pta.on .ptai .oi .m:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j),html:root body .modal #ptcard .pta.on .ptai .oi .d:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){stroke:var(--bg)}
  html:root body .modal #ptcard .ptarrow:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block;height:30px;position:relative}
  html:root body .modal #ptcard .ptarrow::before:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){content:"";position:absolute;left:50%;top:6px;width:2px;height:16px;margin-left:-1px;background:var(--accent);border-radius:1px}
  html:root body .modal #ptcard .ptarrow::after:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){content:"";position:absolute;left:50%;top:15px;width:9px;height:9px;margin-left:-4.5px;border-right:2.5px solid var(--accent);border-bottom:2.5px solid var(--accent);transform:rotate(45deg)}
  html:root body .modal #ptcard .ptsel:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:none}
  html:root body .modal #ptcard .ptamt input:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){font-family:var(--f-display);font-size:2rem!important;font-weight:800;text-align:center;min-height:64px;border-radius:24px!important}
  html:root body .modal #ptcard #ptlist::before:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){content:none}
  html:root body .modal #ptcard #ptlist .item:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;padding:12px 14px;background:var(--surface);border:1px solid var(--line);border-radius:20px;margin:0 0 8px}
  html:root body .modal #ptcard #ptlist .item .btn:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){min-height:40px;border-radius:999px;font-weight:800}
  html:root body .modal #ptcard .ptsaldo .item:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){border-radius:20px}
}
html:root body #ptcard .ptsfoot #ptadd:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:var(--fg)!important;color:var(--bg)!important;border:1px solid var(--fg)!important}
@media (min-width:1100px){#ptcard .ptsfoot{margin-top:8px}.ptsel{display:flex}}
@media (max-width:1099px){
  html:root body .modal #ptcard .pta:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:1 0 98px;min-width:98px}
  html:root body .modal #ptcard .pta b:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){font-size:.76rem;overflow-wrap:normal;word-break:normal;white-space:nowrap}
  html:root body .modal #ptcard #ptlist .item .main:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:1 1 60%;min-width:0}
  html:root body .modal #ptcard #ptlist .item .num:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:none}
}

/* v1099 · esqueleto del diseño nuevo mientras Caja carga (antes se veía el diseño viejo) */
.cjskel{display:none}
@media (max-width:1099px){
  html:root body #tab-caja.cjload>:not(#cjskel):not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:none!important}
  html:root body #tab-caja.cjload>#cjskel:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block;padding:0 0 12px}
  .cjskel .sk{display:block;border-radius:26px;background:color-mix(in srgb,var(--fg) 8%,var(--surface))}
  .cjskel .skh{height:150px;border-radius:30px;margin:0 0 14px}
  .cjskel .skr{display:flex;justify-content:space-around;margin:0 0 14px}
  .cjskel .skr i{display:block;width:54px;height:54px;border-radius:50%;background:color-mix(in srgb,var(--fg) 8%,var(--surface))}
  .cjskel .skb{height:48px;border-radius:999px;margin:0 0 14px}
  .cjskel .skc{height:96px;margin:0 0 10px}
  @media (prefers-reduced-motion:no-preference){.cjskel .sk,.cjskel .skr i{animation:cjsk 1.2s ease-in-out infinite alternate}}
}
@keyframes cjsk{from{opacity:.55}to{opacity:1}}
@media (max-width:1099px){html:root body #tab-caja #cjskel .sk:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){width:100%!important;max-width:none!important}html:root body #tab-caja #cjskel .skr i:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){width:54px!important}}

/* v1100 · Resumen del mes «A · Ganancia primero con gráfica» (Juan, 2026-11-25) */
.modal.cjmonthsheet>.dlg.sheetdlg:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;flex-direction:column;height:92dvh;max-height:92dvh;overflow:hidden;padding-bottom:0}
.cjmonthsheet .cmonnav{flex:none;display:flex;align-items:center;justify-content:space-between;background:var(--surface);border:1px solid var(--line);border-radius:999px;padding:6px;margin:4px 0 10px}
.cjmonthsheet .cmonb{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;border:0;background:color-mix(in srgb,var(--accent) 14%,var(--surface));padding:0}
.cjmonthsheet .cmonb:disabled{opacity:.35}.cjmonthsheet .cmonb .oi{width:20px;height:20px;display:block}
.cjmonthsheet .cmonnav b{font-size:.98rem}
.cjmonthsheet .cmonbody{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;touch-action:pan-y;padding-bottom:calc(14px + env(safe-area-inset-bottom,0px))}
.cjmonthsheet .cmhero{background:#0b0f0e;color:#fff;border-radius:28px;padding:14px 18px;margin:0 0 10px;display:flex;flex-direction:column}
.cjmonthsheet .cmhero small{opacity:.7;font-size:.85rem}.cjmonthsheet .cmhero b{font-family:var(--f-display);font-size:2.1rem;line-height:1.1}.cjmonthsheet .cmhero span{opacity:.7;font-size:.8rem}
.cjmonthsheet .cmfis{display:flex;gap:8px}
.cjmonthsheet .cmfi{flex:1;min-width:0;display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:10px 12px}
.cjmonthsheet .cmfic{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:color-mix(in srgb,var(--accent) 14%,var(--surface));margin-bottom:6px}.cjmonthsheet .cmfic .oi{width:18px;height:18px;display:block}
.cjmonthsheet .cmfi small{color:var(--muted);font-size:.76rem}.cjmonthsheet .cmfi b{font-family:var(--f-display);font-size:1.02rem}.cjmonthsheet .cmfi b.neg{color:var(--bad,#b3261e)}
.cjmonthsheet .cmhint{margin:6px 4px}
.cjmonthsheet .cmlbl{display:flex;justify-content:space-between;align-items:baseline;font-size:.72rem;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:var(--muted);margin:16px 4px 6px}.cjmonthsheet .cmlbl span{font-weight:600;text-transform:none;letter-spacing:0;font-size:.8rem}
.cjmonthsheet .cmchart{background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:10px 12px 8px}
.cjmonthsheet .cmbars{display:flex;align-items:flex-end;gap:2px;height:80px}
.cjmonthsheet .cmbars i{flex:1;border-radius:3px 3px 0 0;background:color-mix(in srgb,var(--accent) 35%,var(--surface))}.cjmonthsheet .cmbars i.none{background:var(--line)}.cjmonthsheet .cmbars i.best{background:var(--accent)}
.cjmonthsheet .cmaxis{display:flex;justify-content:space-between;color:var(--muted);font-size:.7rem;margin-top:4px}
.cjmonthsheet .cmrows{background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:0 14px;margin-top:10px}
.cjmonthsheet .cmr{display:flex;justify-content:space-between;gap:10px;padding:11px 0}.cjmonthsheet .cmr+.cmr{border-top:1px solid var(--line)}.cjmonthsheet .cmr span{color:var(--muted)}.cjmonthsheet .cmr b.neg{color:var(--bad,#b3261e)}.cjmonthsheet .cmr b.ok{color:var(--accent)}
.cjmonthsheet .cmload{height:90px;border-radius:24px;margin:0 0 10px;background:color-mix(in srgb,var(--fg) 8%,var(--surface))}
html:root body .cjmonthsheet .cmonb svg.oi .a:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){stroke:var(--fg)}

/* v1101 · «⋯» con ícono propio de Cuadra */
html:root body .lhd-more svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j),html:root body .cjmore svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){width:26px!important;height:26px!important;display:block!important;padding:0!important}
html:root body .lhd-more svg.oi .m:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j),html:root body .cjmore svg.oi .m:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){fill:currentColor;stroke:none}
html:root body .lhd-more svg.oi .a:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j),html:root body .cjmore svg.oi .a:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){fill:var(--accent);stroke:none}

/* v1102 · Historial de cierres «C · Para revisar primero» (Juan, 2026-11-25) */
.modal.cjhistsheet>.dlg.sheetdlg:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;flex-direction:column;height:92dvh;max-height:92dvh;overflow:hidden;padding-bottom:0}
.cjhistsheet .chhead{display:flex;align-items:center;justify-content:space-between;gap:10px;flex:none;margin:0 2px 6px}
.cjhistsheet .chsub{color:var(--muted);font-size:.88rem}
.cjhistsheet .chcsv{display:inline-flex;align-items:center;gap:6px;min-height:40px;border-radius:999px;padding:0 14px;font-weight:800;background:var(--surface);border:1px solid var(--line);color:var(--fg)}
.cjhistsheet .chcsv .oi{width:18px;height:18px;display:block}.cjhistsheet .chcsv[hidden]{display:none}
.cjhistsheet .chseg{flex:none;display:flex;background:var(--surface);border:1px solid var(--line);border-radius:999px;padding:4px;margin:0 0 8px;gap:0}
.cjhistsheet .chseg button{flex:1;border:0;background:transparent;border-radius:999px;min-height:38px;font-weight:800;color:var(--fg);font-size:.8rem;padding:0 2px}
.cjhistsheet .chotro{flex:none;display:flex;gap:8px;margin:0 0 8px}.cjhistsheet .chotro[hidden]{display:none}
.cjhistsheet .chchips{flex:none;display:flex;gap:8px;margin:0 0 8px}
.cjhistsheet .chchips button{display:inline-flex;align-items:center;gap:6px;min-height:40px;border-radius:999px;padding:0 15px;font-weight:800;font-size:.86rem;background:var(--surface);border:1px solid var(--line);color:var(--fg)}
.cjhistsheet .chchips button.on{background:var(--fg);color:var(--bg);border-color:var(--fg)}.cjhistsheet .chchips .oi{width:18px;height:18px;display:block}
.cjhistsheet .chchips b{display:inline-grid;place-items:center;min-width:18px;height:18px;border-radius:9px;background:var(--accent);color:#fff;font-size:.7rem;padding:0 4px}
.cjhistsheet .chfp{flex:none;display:flex;flex-direction:column;gap:6px;background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:12px;margin:0 0 8px}.cjhistsheet .chfp[hidden]{display:none}
.cjhistsheet .chscroll{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;touch-action:pan-y;padding-bottom:calc(14px + env(safe-area-inset-bottom,0px))}
.cjhistsheet .chlbl{font-size:.72rem;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:var(--muted);margin:14px 4px 6px}.cjhistsheet .chlbl.bad{color:var(--bad,#b3261e)}
.cjhistsheet .chcard{background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:12px 14px;margin:0 0 8px}
.cjhistsheet .chcard.bad{border-color:color-mix(in srgb,var(--bad,#b3261e) 40%,var(--line));background:color-mix(in srgb,var(--bad,#b3261e) 8%,var(--surface))}
.cjhistsheet .chtop{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}.cjhistsheet .chtop b{display:block;font-size:.98rem}.cjhistsheet .chtop small{color:var(--muted);font-size:.8rem}
.cjhistsheet .chp{flex:none;border-radius:999px;padding:4px 11px;font-size:.76rem;font-weight:800;white-space:nowrap}
.cjhistsheet .chp.ok{background:color-mix(in srgb,var(--accent) 16%,var(--surface));color:var(--accent)}.cjhistsheet .chp.bad{background:color-mix(in srgb,var(--bad,#b3261e) 16%,var(--surface));color:var(--bad,#b3261e)}
.cjhistsheet .chmeta{color:var(--muted);font-size:.84rem;margin-top:6px}.cjhistsheet .chmeta b{color:var(--fg)}
.cjhistsheet .chnote{font-size:.86rem;margin-top:6px}
.cjhistsheet .chacts{display:flex;gap:8px;margin-top:10px}
.cjhistsheet .chacts .btn{display:inline-flex;align-items:center;gap:6px;min-height:40px;border-radius:999px;font-weight:800}.cjhistsheet .chacts .oi{width:18px;height:18px;display:block}
.cjhistsheet .chrows{background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:0 12px}
.cjhistsheet .chrow+.chrow{border-top:1px solid var(--line)}
.cjhistsheet .chrt{display:flex;align-items:center;gap:12px;width:100%;padding:11px 0;background:transparent;border:0;text-align:left;color:inherit;font:inherit}
.cjhistsheet .chri{flex:none;display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:color-mix(in srgb,var(--accent) 14%,var(--surface))}.cjhistsheet .chri .oi{width:20px;height:20px;display:block}
.cjhistsheet .chrx{flex:1;min-width:0;display:flex;flex-direction:column}.cjhistsheet .chrx small{color:var(--muted);font-size:.8rem}
.cjhistsheet .chrmore{padding:0 0 12px 48px}.cjhistsheet .chrmore[hidden]{display:none}
.cjhistsheet .chgood{display:flex;align-items:center;gap:10px;background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:12px 14px;color:var(--muted);margin-top:8px}.cjhistsheet .chgood .oi{width:24px;height:24px;flex:none}
.cjhistsheet .chload{height:96px;border-radius:24px;margin:0 0 10px;background:color-mix(in srgb,var(--fg) 8%,var(--surface))}
html:root body .cjhistsheet .chseg button.on:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:var(--fg)!important;color:var(--bg)!important}
html:root body .cjhistsheet .chseg button:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j),html:root body .cjhistsheet .chchips button:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j),html:root body .cjhistsheet .chcsv:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){border-radius:999px!important}
html:root body .cjhistsheet .chchips button.on svg.oi .m:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j),html:root body .cjhistsheet .chchips button.on svg.oi .a:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j),html:root body .cjhistsheet .chchips button.on svg.oi .d:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){stroke:#fff!important}

/* v1103 · Transferencias por confirmar «C · Conciliar con el banco» (Juan, 2026-11-25) */
.modal.cjtrsheet>.dlg.sheetdlg:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;flex-direction:column;height:92dvh;max-height:92dvh;overflow:hidden;padding-bottom:0}
.cjtrsheet .trssub{flex:none;color:var(--muted);font-size:.88rem;margin:0 2px 6px}
.cjtrsheet .trsseg{flex:none;display:flex;background:var(--surface);border:1px solid var(--line);border-radius:999px;padding:4px;margin:0 0 8px;gap:0}
.cjtrsheet .trsseg button{flex:1;border:0;background:transparent;border-radius:999px;min-height:38px;font-weight:800;color:var(--fg)}
.cjtrsheet .trsscroll{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;touch-action:pan-y;padding-bottom:calc(14px + env(safe-area-inset-bottom,0px))}
.cjtrsheet .trsgrp{display:flex;align-items:center;gap:10px;margin:12px 2px 6px}.cjtrsheet .trsgrp b:first-of-type{flex:1}.cjtrsheet .trsgrp small{color:var(--muted);font-size:.8rem}
.cjtrsheet .trsgi{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:color-mix(in srgb,var(--accent) 14%,var(--surface))}.cjtrsheet .trsgi .oi{width:20px;height:20px;display:block}
.cjtrsheet .trsrows{background:var(--surface);border:1px solid var(--line);border-radius:22px;overflow:hidden}
.cjtrsheet .trsrow{padding:0 12px}.cjtrsheet .trsrow+.trsrow{border-top:1px solid var(--line)}
.cjtrsheet .trst{display:flex;align-items:center;gap:10px;width:100%;padding:10px 0 4px;background:transparent;border:0;text-align:left;color:inherit;font:inherit}
.cjtrsheet .trsi{flex:none;display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#fdecc8}.cjtrsheet .trsrow.ok .trsi{background:color-mix(in srgb,var(--accent) 16%,var(--surface))}
.cjtrsheet .trsi .oi{width:19px;height:19px;display:block}.cjtrsheet .trsi .oi .m,.cjtrsheet .trsi .oi .a{stroke:var(--fg)}
.cjtrsheet .trsrow:not(.ok) .trsi .oi .m,.cjtrsheet .trsrow:not(.ok) .trsi .oi .a{stroke:#3d2e00}
.cjtrsheet .trsx{flex:1;min-width:0;display:flex;flex-direction:column}.cjtrsheet .trsx b{overflow-wrap:anywhere}.cjtrsheet .trsx small{color:var(--muted);font-size:.78rem;line-height:1.3}
.cjtrsheet .trsv{flex:none}
.cjtrsheet .trsprf{display:inline-flex;align-items:center;gap:6px;min-height:36px;border-radius:999px;font-weight:800;margin:0 0 10px 44px}.cjtrsheet .trsprf .oi{width:18px;height:18px;display:block}
.cjtrsheet .trsnone{display:block;color:var(--muted);font-size:.78rem;margin:0 0 10px 44px}
.cjtrsheet .trsgood{display:flex;align-items:center;gap:10px;background:color-mix(in srgb,var(--accent) 12%,var(--surface));border-radius:22px;padding:12px 14px}.cjtrsheet .trsgood .oi{width:24px;height:24px;display:block}.cjtrsheet .trsgood b{color:var(--fg)}
html:root body .cjtrsheet .trsseg button.on:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:var(--fg)!important;color:var(--bg)!important}
html:root body .cjtrsheet .trsseg button:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j),html:root body .cjtrsheet .trsprf:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){border-radius:999px!important}

/* v1104 · confirmar la transferencia al vender: interruptor en el cobro y tarjeta en «Venta registrada» */
@media (max-width:1099px){
  html:root body .vconfw:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g){display:flex;align-items:center;gap:12px;padding:12px 14px;margin:10px 0;border:1.5px solid var(--line);border-radius:18px;background:var(--surface)}
  html:root body .vconfw[hidden]:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g){display:none}
  html:root body .vcfi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g),html:root body .dntri:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g){flex:none;width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:var(--accent-soft,rgba(22,163,74,.12))}
  html:root body .vcfi svg:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g),html:root body .dntri svg:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g){width:22px;height:22px}
  html:root body .vcft:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g),html:root body .dntrt:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g){flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
  html:root body .vcft small:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g),html:root body .dntrt small:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g){color:var(--muted);font-size:12.5px}
  html:root body .vconfw .cbsw:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g){display:block;flex:none;position:relative;width:48px;height:28px;border-radius:999px;border:0;padding:0;background:#c6cdc9}
  html:root body .vconfw .cbsw.on:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g){background:#16a34a}
  html:root body .vconfw .cbsw>i:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g){position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:#fff;transition:transform .18s}
  html:root body .vconfw .cbsw.on>i:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g){transform:translateX(20px)}
  html:root body .dntr:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g){margin:12px 0;padding:12px 14px;border:1.5px solid var(--line);border-radius:18px;background:var(--surface);display:flex;flex-direction:column;gap:12px}
  html:root body .dntr[hidden]:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g){display:none}
  html:root body .dntrh:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g){display:flex;align-items:center;gap:12px}
  html:root body .dntrb:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g){display:flex;gap:8px}
  html:root body .dntrb .btn:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g){flex:1;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;gap:6px}
  html:root body .dntrb .btn svg:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g){width:18px;height:18px}
  html:root body .vcfi svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g),html:root body .dntri svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g){display:block;width:22px;height:22px}
  html:root body .dntrb .btn svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g){display:block;width:20px;height:20px}
}

/* v1105 · Ajustes → Formas de pago: «Confirmar que llegó» por cuenta */
html:root body #mplist .mpconf:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g){display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:0 12px;border-radius:999px;border:1.5px solid var(--line);background:var(--surface);color:var(--muted);font:inherit;font-size:13px;font-weight:600;margin-right:6px;cursor:pointer}
html:root body #mplist .mpconf svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g){display:block;width:16px;height:16px;opacity:.45}
html:root body #mplist .mpconf.on:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g){border-color:#16a34a;background:rgba(22,163,74,.12);color:var(--fg)}
html:root body #mplist .mpconf.on svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g){opacity:1}
@media (max-width:1099px){
  html:root body .dntr:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g){text-align:left;color:var(--fg)}
  html:root body .dntri:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g){background:color-mix(in srgb,var(--accent,#16a34a) 16%,var(--surface));color:var(--fg)}
  html:root body .dntrt b:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g){color:var(--fg);font-size:15.5px;font-weight:800;line-height:1.2}
  html:root body .dntrt small:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g){color:var(--muted);font-size:13px;line-height:1.3}
  html:root body .dntrb .btn:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g){min-height:48px;font-weight:700}
  html:root body .dntrb .btn:not(.primary):not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g){background:var(--surface);color:var(--fg);border:1.5px solid var(--line)}
}

/* v1108 · la lista «Forma del abono» se desplaza si no cabe (celular chico con muchas formas de pago) */
html:root body .credsheetd .cslist:not(#_a):not(#_b){min-height:0;overflow-y:auto;touch-action:pan-y}

/* v1109 · las hojas del cobro (crédito, abono, efectivo) se desplazan si no caben (celular de lado): el botón «Cobrar» siempre se alcanza */
html:root body .credsheetd:not(#_a):not(#_b){overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y}

/* v1110 · hoja Revisar: el producto que queda en pérdida se marca */
html:root body #aprevdlg .aprow.loss small:last-child:not(#_a):not(#_b){color:#dc2626;font-weight:700}

/* v1113 (Codex) · los botones ocultos de las hojas de autorización siguen ocultos (la regla de display ganaba a [hidden]) */
html:root body .apbtns .btn[hidden]:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m):not(#_n),html:root body #trfoot .btn[hidden]:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m):not(#_n){display:none!important}

/* v1118 (Codex) · las preguntas de sí o no (askYesNo) van por encima de cualquier hoja: carrito (96), historial de Jota (140), etc. */
html:root body > .modal.yn:not(#_a):not(#_b){z-index:200}

/* v1118 (Codex) · los botones del encabezado que están ocultos (Jota apagado, campana del técnico) siguen ocultos: la regla de display del rediseño le ganaba a [hidden] */
html:root body [hidden]:is(.jotahd,.bellbtn,.avatar,.ivwho):not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l){display:none!important}

/* v1126 (Juan, 2026-11-26): hoja «Ayer no cerraste la caja» y «Registra la base» con el diseño de Inicio (tarjetas con ícono en círculo y botones con ícono); flechas en Cerrar caja */
html:root body #icajacard .icav{display:block;background:var(--surface);border:1px solid var(--line);border-radius:24px;padding:16px}
html:root body #icajacard .icav+.icav{margin-top:12px;padding-top:16px;border-top:1px solid var(--line)}
html:root body #icajacard .icavh{display:flex;align-items:flex-start;gap:14px}
html:root body #icajacard .icavi{flex:none;width:44px;height:44px;border-radius:50%;background:var(--field,color-mix(in srgb,var(--fg) 8%,var(--surface)));display:grid;place-items:center}
html:root body #icajacard .icavi>svg.oi{display:block;width:26px;height:26px;color:var(--fg)}
html:root body #icajacard .icavt{min-width:0}
html:root body #icajacard .icav h2{font-size:1.1rem;line-height:1.25;margin:2px 0 4px}
html:root body #icajacard .icav .hint{font-size:.9rem;line-height:1.4}
html:root body #icajacard .icav .row .btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:50px;font-weight:800}
html:root body #icajacard .icav .row .btn>svg.oi{display:block;flex:none;width:22px;height:22px}
html:root body #icajacard .icprev .row .btn.primary,html:root body #icajacard .icbase .row .btn.primary{background:var(--fg);color:var(--bg);border-color:var(--fg)}
html:root body #icajacard .icprev .row .btn:not(.primary){flex:1}
html:root body .cjhoja #icajacard .icav{border-radius:24px}
html:root body .modal.cssheet .cjclosef .csfoot .btn{display:inline-flex;align-items:center;justify-content:center;gap:8px}
html:root body .modal.cssheet .cjclosef .csfoot .btn>svg.oi{display:block;flex:none;width:22px;height:22px}
html:root body .modal.cssheet .cjclosef .csfoot #csback>svg.oi .m{stroke:currentColor}
html:root body #icajacard .icav .row .btn.primary>svg.oi,html:root body .modal.cssheet .cjclosef .csfoot .btn.primary>svg.oi{color:var(--bg)}
html:root body #icajacard .icav .row .btn:not(.primary)>svg.oi{color:var(--fg)}

/* v1126 (Juan, 2026-11-26): sistema de botones por función. Avanzar (bfa), Confirmar (bfc), Atrás (bfb), Ahora no (bfn), Secundaria (bfs), Peligro (bfp); siempre con ícono duotono propio. Sobre una barra negra (.bbar, como el total del carrito) la acción es una píldora blanca. */
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h) body .btn:has(>svg.oi.bfi):not(#vnext):not(#vback):not(#csnext):not(#csback){display:inline-flex;align-items:center;justify-content:center;gap:8px}
/* v1126 (Codex): estos cuatro se muestran u ocultan por su propia regla (pasos del carrito y de Cerrar caja); aquí solo se alinea el ícono, sin tocar su display */
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h) body :is(#vnext,#vback,#csnext,#csback):has(>svg.oi.bfi){align-items:center;gap:8px}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h) body .btn>svg.oi.bfi{display:block;flex:none;width:22px;height:22px;color:inherit}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h) body .btn.bfa,html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h) body .btn.bfc{background:var(--fg)!important;color:var(--bg)!important;border:1px solid var(--fg)!important;font-weight:800}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h) body .btn.bfb,html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h) body .btn.bfs{background:var(--surface)!important;color:var(--fg)!important;border:1.5px solid color-mix(in srgb,var(--fg) 22%,var(--line))!important;font-weight:800}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h) body .btn.bfn{background:transparent!important;color:var(--muted)!important;border:0!important;box-shadow:none!important;font-weight:800}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h) body .btn.bfp{background:color-mix(in srgb,#dc2626 14%,var(--surface))!important;color:#b91c1c!important;border:1px solid color-mix(in srgb,#dc2626 30%,var(--surface))!important;font-weight:800}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h) body .bbar{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#0b0f0e;color:#fff;border:1px solid rgba(255,255,255,.1);border-radius:28px;padding:10px 10px 10px 18px}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h) body .bbar .bbi{min-width:0}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h) body .bbar .bbi small{display:block;font-size:.78rem;font-weight:600;color:#aeb7b3;white-space:nowrap}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h) body .bbar .bbi b{display:block;font-size:1.3rem;font-weight:900;line-height:1.15;white-space:nowrap;color:#fff}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h) body .bbar .btn:is(.bfa,.bfc,.bfb,.bfs,.bfn,.bfp,.primary,.btn){flex:none;background:#fff!important;color:#0b0f0e!important;border:0!important;height:50px;min-height:50px;padding:0 16px;font-weight:800;font-size:.95rem}
/* Cerrar caja: pie con «Atrás» y la barra negra */
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h) body .modal.cssheet .cjclosef .csfoot{align-items:center;gap:8px}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h) body .modal.cssheet .cjclosef .csfoot #csback{flex:none;min-height:52px;padding:0 16px}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h) body .modal.cssheet .cjclosef .csfoot .csbar{flex:1;min-width:0}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h) body .modal.cssheet .cjclosef .csfoot .csbar .btn{background:#fff!important;color:#0b0f0e!important;border:0!important;min-height:50px}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h) body .modal.cssheet .cjclosef .csfoot .csbar .btn[hidden]{display:none!important}
/* Hoja «Caja pendiente»: los avisos arriba y UNA sola barra negra abajo (opción B) */
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h) body #icajacard .icfoot{position:sticky;bottom:0;margin-top:14px;padding:10px 0 4px;background:var(--bg)}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h) body #icajacard .icfoot .row{margin-top:6px}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h) body #icajacard .icfoot .btn.bfn{width:100%}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h) body #icajacard .icav .row .btn.bfc{flex:none;min-height:50px}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h) body #icajacard .icav .row .btn.bfs{min-height:50px}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h) body #icajacard .icav .row .btn.bfn{min-height:46px}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h) body .vbar .btn>svg.oi.bfi{color:#0a0a0a}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h) body .modal.cssheet .cjclosef .csfoot .csbar .btn{flex:none!important;width:auto!important;max-width:none;padding:0 14px}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h) body .modal.cssheet .cjclosef .csfoot .csbar .bbi b{font-size:1.12rem}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h) body .modal.cssheet .cjclosef[data-csstep="3"] .csfoot .csbar .bbi b{font-size:1rem}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h) body .modal.cssheet .cjclosef .csfoot .csbar .btn{font-size:.9rem;padding:0 12px;gap:6px}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h) body .modal.cssheet .cjclosef .csfoot .csbar{padding-left:14px}
/* v1126 (Juan): en Cerrar caja el recuadro vacío no lleva la casita de fondo */
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h) body .modal.cssheet .cjclosef .empty::before{display:none!important;content:none!important}
/* v1126 (Juan): en teléfonos angostos el pie de Cerrar caja no monta la píldora sobre el monto: «Atrás» queda solo con la flecha y, en el paso 3, la barra muestra solo la píldora */
@media (max-width:380px){
  html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h) body .modal.cssheet .cjclosef .csfoot #csback{padding:0;width:52px;min-width:52px}
  html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h) body .modal.cssheet .cjclosef .csfoot #csback>span{display:none}
  html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h) body .modal.cssheet .cjclosef[data-csstep="3"] .csfoot .csbar .bbi{display:none}
  html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h) body .modal.cssheet .cjclosef[data-csstep="3"] .csfoot .csbar{padding:8px;justify-content:center}
  html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h) body .modal.cssheet .cjclosef[data-csstep="3"] .csfoot .csbar .btn{width:100%!important}
}
/* v1126 etapa 2: botones pequeños con su ícono más chico */
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h) body .btn.small>svg.oi.bfi{width:18px;height:18px}

/* v1126 (Juan, 2026-11-26): Inicio sin emojis · opción C «ícono grande sin círculo»: íconos duotono propios en las tarjetas, la caja, la campana y los productos sin foto; «Cerrar caja →» con el sistema de botones */
html:root body #ivh .ivt .ic{width:40px;height:40px;border-radius:0;background:transparent;font-size:0;display:grid;place-items:center start}
html:root body #ivh .ivt .ic>svg.oi{display:block;width:38px;height:38px;color:var(--fg)}
html:root body #ivh .ivpr .im>.e{font-size:0}
html:root body #ivh .ivpr .im>.e>svg.oi{display:block;width:44px;height:44px;color:var(--fg)}
html:root body #ivh .ivt.wide .go{display:inline-flex;align-items:center;gap:6px}
html:root body #ivh .ivt.wide .go>svg.oi{display:block;width:20px;height:20px;color:inherit;flex:none}
html:root body #tab-inicio #vhero .vtop .bellbtn::before{content:none!important}
html:root body #tab-inicio #vhero .vtop .bellbtn>svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e){display:block!important;width:26px;height:26px;color:var(--fg)}
html:root body #tab-inicio #vhero .vtop .bellbtn>svg:not(.oi):not(#_a):not(#_b):not(#_c):not(#_d):not(#_e){display:none!important}
html:root body #ivh .ivbar>.bellbtn::before{content:none!important}
html:root body #ivh .ivbar>.bellbtn>svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e){display:block!important;width:26px;height:26px;color:var(--fg)}
html:root body #ivh .ivbar>.bellbtn>svg:not(.oi):not(#_a):not(#_b):not(#_c):not(#_d):not(#_e){display:none!important}
html:root body #tab-inicio #vhero .vtop .cjic>svg.oi{display:block;width:24px;height:24px;color:var(--fg)}
html:root body #ilast .vpic.vemo>svg.oi{display:block;width:24px;height:24px;color:var(--fg)}
html:root body #ilast .iempty>i>svg.oi{display:block;width:30px;height:30px;color:var(--fg)}

/* v1126 (Juan, 2026-11-26): íconos de Jota duotono (sin emojis) y el aviso de repuestos separado de las pestañas */
html:root body #jotachat .jfb .jfbb>i>svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e),html:root body #jotachat .jhistb>i>svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e),html:root body #jotachat .jmic>i>svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e){display:block!important;width:22px;height:22px;color:var(--fg)}
html:root body #jotachat .jfb .jfbb.sel>i>svg.oi .m{stroke:var(--accent)}
html:root body #jotachat .jfb .jfbb.sel>i>svg.oi .a{fill:color-mix(in srgb,var(--accent) 30%,transparent)}
html:root body #jotachat .jfb .jfbb>i{font-size:0;display:grid;place-items:center}
html:root body #jotachat .jhistb>i,html:root body #jotachat .jmic>i{font-size:0;display:grid;place-items:center}
html:root body #jotachat .jtip>span>svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e){display:block!important;width:24px;height:24px;color:var(--fg)}
html:root body .modal.jchat .jtip>span{font-size:0;display:grid;place-items:center}
html:root body .jhistdlg .jhsearch>.e>svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e),html:root body .jhistdlg .jhempty>.e>svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e),html:root body .jhistdlg .jhbar .btn>.e>svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e),html:root body .jhistdlg .jhmenu button>i>svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e){display:block!important;width:22px;height:22px;color:var(--fg)}
html:root body .jhistdlg .jhempty>.e{font-size:0;display:grid;place-items:center}
html:root body #tab-inventario #repneed.card:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e){margin-top:14px!important}

/* v1127 (Juan, maqueta A de disenos/jota/historial): historial de Jota con tarjetas agrupadas por día, ícono centrado y esqueletos mientras carga. */
html:root body #jhistbox .jhday:not(#_a):not(#_b){font-size:.82rem;font-weight:800;color:var(--muted);margin:8px 4px 0}
html:root body #jhistbox .jhday[hidden]:not(#_a):not(#_b){display:none}
html:root body #jhistbox .jhc:not(#_a):not(#_b){flex-direction:row;align-items:center;gap:12px;min-width:0}
html:root body #jhistbox .jhci:not(#_a):not(#_b){flex:none;width:42px;height:42px;border-radius:50%;background:color-mix(in srgb,var(--fg) 7%,var(--surface));display:grid;place-items:center;color:var(--fg)}
html:root body #jhistbox .jhci>i:not(#_a):not(#_b){display:grid;place-items:center;width:24px;height:24px;font-size:0;line-height:0}
html:root body #jhistbox .jhci>i>svg.oi:not(#_a):not(#_b){display:block;width:24px;height:24px}
html:root body #jhistbox .jhcx:not(#_a):not(#_b){flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
html:root body #jhistbox .jhct:not(#_a):not(#_b){display:flex;justify-content:space-between;align-items:baseline;gap:8px}
html:root body #jhistbox .jhcd:not(#_a):not(#_b){white-space:nowrap;flex:none}
html:root body #jhistbox .jhsk:not(#_a):not(#_b){flex-direction:column;align-items:stretch;gap:0;cursor:default;padding:14px}
html:root body #jhistbox .jhln:not(#_a):not(#_b){display:block;height:12px;border-radius:6px;background:color-mix(in srgb,var(--fg) 9%,var(--surface));margin:6px 0}
html:root body #jhistbox .jhln.a:not(#_a):not(#_b){width:34%}html:root body #jhistbox .jhln.b:not(#_a):not(#_b){width:82%;height:15px}html:root body #jhistbox .jhln.c:not(#_a):not(#_b){width:94%}
@media (prefers-reduced-motion:no-preference){html:root body #jhistbox .jhln:not(#_a):not(#_b){animation:jhpulse 1.2s ease-in-out infinite}@keyframes jhpulse{50%{opacity:.5}}}
/* v1127 (Juan): el «⋯» del historial de Jota pasa al ícono duotono «puntos» de Cuadra, centrado en su círculo */
html:root body #jhistbox .jhmore>i:not(#_a):not(#_b){display:grid;place-items:center;width:34px;height:34px;font-size:0;line-height:0;color:var(--fg)}
html:root body #jhistbox .jhmore>i>svg.oi:not(#_a):not(#_b){display:block;width:34px;height:34px}
/* v1128 (Juan): todos los botones «⋯» (más opciones) usan el ícono duotono de Cuadra «masop» (tres puntos rellenos, el último verde) */
html:root body svg.oi.mop:not(#_a):not(#_b):not(#_c){display:block;flex:none;width:30px;height:30px;color:inherit;margin:auto}
html:root body :is(.lhd-more,.cpib,.rx-morebtn,#jhmore)>svg.oi.mop:not(#_a):not(#_b):not(#_c){width:30px;height:30px}
/* v1128: el ícono «masop» manda sobre las reglas viejas de .lhd-more/.cjmore (que lo dejaban invisible: sin trazo) */
html:root body svg.oi.mop:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l){width:30px!important;height:30px!important;display:block!important}
html:root body svg.oi.mop .m:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l){fill:none!important;stroke:currentColor!important;stroke-width:8px!important;stroke-linecap:round!important}
html:root body svg.oi.mop .a:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l){fill:none!important;stroke:var(--accent,#15803d)!important;stroke-width:8px!important;stroke-linecap:round!important}

/* v1129 (Juan, 2026-11-26): sin emojis en los menús de Inicio (Avisos y perfil): íconos duotono de Cuadra, centrados en su círculo. */
html:root body #umenu .uem:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i){font-size:0;line-height:0}
html:root body #umenu .uem>svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i),html:root body #umenu .ucam>svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i){display:block;flex:none;width:24px;height:24px;color:var(--fg)}
html:root body #umenu .ucam:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i){display:grid;place-items:center;width:36px;height:36px}
html:root body #umenu .ucam>svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i){width:22px;height:22px}
html:root body #umenu .ucam:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i)::before{content:none!important}
html:root body #umenu .uitem .ui:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i){display:none}
html:root body .avic .e:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i){font-size:0;line-height:0;display:grid;place-items:center}
html:root body .avic .e>svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i){display:block;width:24px;height:24px;color:var(--fg)}
/* v1129 (Juan): las alertas (agotado, descuento, Separe por vencer, anulación) NO van en ámbar ni rojo: mismo verde y negro que los demás avisos */
html:root body .avic:is(.bad,.warn):not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i){background:color-mix(in srgb,var(--accent) 14%,var(--surface));color:var(--fg)}
html:root body .avic:is(.bad,.warn) .e>svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i){color:var(--fg)}
html:root body .avemp .e:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i){font-size:0;line-height:0;display:grid;place-items:center}
html:root body .avemp .e>svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i){display:block;width:40px;height:40px;color:var(--fg)}
/* v1129 (Juan, 2026-11-26, «fondo suave solo en lo urgente»): agotado/stock bajo con fondo ámbar suave y venta anulada con fondo rojo suave, como la alerta de Repuestos en Inventario; el ícono y el texto siguen en negro/blanco. Descuento y Separe por vencer van en verde y negro. */
html:root body #avbox .avcard.urg-a:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i){background:color-mix(in srgb,#f5b301 17%,var(--surface));border-color:color-mix(in srgb,#f5b301 38%,var(--surface))}
html:root body #avbox .avcard.urg-r:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i){background:color-mix(in srgb,#dc2626 11%,var(--surface));border-color:color-mix(in srgb,#dc2626 30%,var(--surface))}
html:root body #avbox .avcard.urg-a.read:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i),html:root body #avbox .avcard.urg-r.read:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i){opacity:.82}

/* ===== v1130 (Juan, 2026-11-26, maqueta A de disenos/entrada): entrada con logo y nombre arriba y una hoja blanca abajo; teclado más junto; campos con ícono; carga con una sola línea de estado y sin emojis. En computador se mantiene el diseño de dos columnas. ===== */
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h) body #auth .ficon{display:flex;flex-direction:column;gap:5px;margin:0}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h) body #auth .ficon .fl{font-size:.82rem;font-weight:800;color:var(--muted);margin:0 4px}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h) body #auth .ficon .fw{display:flex;align-items:center;gap:10px;min-height:52px;border-radius:999px;border:1.5px solid color-mix(in srgb,var(--fg) 18%,var(--line));background:var(--surface);padding:0 8px 0 18px}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h) body #auth .ficon .fw:focus-within{border-color:var(--accent)}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h) body #auth .ficon .fw>svg.oi{display:block;flex:none;width:22px;height:22px;color:var(--fg)}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h) body #auth .ficon .fw input{flex:1;min-width:0;border:0!important;background:transparent!important;box-shadow:none!important;outline:0;padding:0!important;min-height:48px;font-size:1rem;border-radius:0!important}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h) body #auth .ficon .feye{flex:none;width:44px;height:44px;border-radius:50%;border:0;background:transparent;color:var(--fg);display:grid;place-items:center;padding:0;cursor:pointer}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h) body #auth .ficon .feye svg.oi{display:block;width:22px;height:22px}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h) body #auth .asheet .hint{margin:0;font-size:.82rem;color:var(--muted)}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h) body #auth .pinpad{grid-template-columns:repeat(3,var(--pk,72px))!important;justify-content:center!important;gap:12px 12px!important;max-width:none}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h) body #auth .padk{width:var(--pk,72px)!important;height:var(--pk,72px)!important;border-radius:50%!important;background:var(--surface)!important;border:1px solid var(--line)!important;box-shadow:none!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;font-size:1.65rem;font-weight:800;color:var(--fg)}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h) body #auth .padk.del,html:root body #auth .padk.pkk{background:transparent!important;border-color:transparent!important}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h) body #auth .padk svg.oi{display:block;width:28px;height:28px;color:var(--fg)}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h) body #auth .pindots{gap:14px;margin:4px 0 8px}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h) body #auth .pindots i{width:14px;height:14px;border:2px solid color-mix(in srgb,var(--fg) 28%,transparent)}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h) body #auth .pindots i.on{background:var(--fg);border-color:var(--fg)}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h) body #auth .btn:has(>svg.oi.bfi){display:inline-flex;align-items:center;justify-content:center;gap:8px;width:100%}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h) body #auth .alinks{display:flex;justify-content:center;align-items:center;gap:6px;flex-wrap:wrap}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h) body #auth .auth.pad .linkbtn{color:var(--accent-2,var(--accent));font-weight:800;text-decoration:none;font-size:.92rem}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h) body #auth .ahi{display:flex;flex-direction:column;align-items:center;gap:2px;font-size:1.7rem;font-weight:900;letter-spacing:-.02em;margin:0}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h) body #auth .ahiph{width:84px;height:84px}
@media (max-width:1099px){
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h) body:has(#auth:not([hidden])){padding:0!important;background:var(--bg)!important}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h) body:has(#auth:not([hidden])) .authside,html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h) body:has(#splash:not([hidden]):not(.off)) .authside{display:none!important}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h) body #auth .auth.pad{min-height:100dvh!important;max-width:none;width:100%;margin:0;padding:0!important;display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;background:none;box-sizing:border-box}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h) body #auth .auth.pad .card{flex:1;display:flex;flex-direction:column;gap:0;width:100%;max-width:none;padding:0!important;background:none!important;border:0!important;box-shadow:none!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h) body #auth .auth.pad .ahero{padding:calc(34px + env(safe-area-inset-top)) 22px 18px;gap:6px}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h) body #auth .auth.pad .ahero>h1,html:root body #auth .auth.pad .ahero>.logo.hero,html:root body #auth .auth.pad .ahero>.amark,html:root body #auth .auth.pad .ahero>.atag{display:block!important}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h) body #auth .auth.pad .ahero>.amark{width:72px;height:72px;margin:0 auto 4px}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h) body #auth .auth.pad .ahero>.logo.hero{max-height:72px;width:auto;margin:0 auto 4px}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h) body #auth .auth.pad .ahero>h1{font-size:1.7rem;font-weight:900;letter-spacing:-.02em;text-align:center}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h) body #auth .auth.pad .ahero>.atag,html:root body #auth .auth.pad .ahero>.hint,html:root body #auth .auth.pad .ahero>p.welcome{text-align:center;color:var(--muted);font-size:.92rem;margin:0;max-width:340px;margin-inline:auto}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h) body #auth .auth.pad .asheet{flex:1;background:var(--surface);border:1px solid var(--line);border-bottom:0;border-radius:30px 30px 0 0;padding:22px 18px calc(10px + env(safe-area-inset-bottom));gap:12px;box-sizing:border-box}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h) body #auth .auth.pad .asheet>.credit{margin-top:auto;padding:6px 0 0}
}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h) body #splash .sp-steps{display:block!important;position:relative;height:30px!important;min-height:0!important;margin:14px 0 0!important;padding:0!important;background:none!important;border:0!important;border-radius:0!important;width:100%!important;font-size:.95rem}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h) body #splash .sp-steps li{position:absolute;inset:0;display:none!important;align-items:center;justify-content:center;gap:8px;min-height:0!important;padding:0!important;font-weight:700;color:var(--muted)!important;opacity:1!important;transform:none!important}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h) body #splash .sp-steps li.cur{display:flex!important}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h) body #splash .sp-steps li::before,html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h) body #splash .sp-steps li b{content:none!important;display:none!important}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h) body #splash .sp-steps li .spi{display:grid;place-items:center;width:22px;height:22px;flex:none;color:var(--fg)}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h) body #splash .sp-steps li .spi>svg.oi{display:block;width:22px;height:22px}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h) body #splash .sp-pbar{height:6px!important;border-radius:3px!important;margin-top:16px!important}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h) body #splash .sp-pbar i{border-radius:3px!important}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h) body #splash .sp-pct{display:none!important}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h) body #splash .sp-name{margin-bottom:6px!important}
@media (max-width:1099px){
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h) body #splash{padding-top:0!important}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h) body #splash .sp-ring{margin-bottom:12px}
}

html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h) body #auth .auth.pad.wk .ahero>h1,html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h) body #auth .auth.pad.wk .ahero>.logo.hero,html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h) body #auth .auth.pad.wk .ahero>.amark,html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h) body #auth .auth.pad.wk .ahero>.atag,html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h) body #auth .auth.pad.wk .ahero>p.welcome{display:none!important}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h) body #auth span.ahiph{display:grid;place-items:center;width:84px;height:84px;border-radius:50%;background:var(--fg);color:var(--bg);font-size:2.1rem;font-weight:900;box-shadow:0 0 0 4px var(--accent);margin:0 auto 6px}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h) body #auth img.ahiph{width:84px;height:84px;border-radius:50%;object-fit:cover;box-shadow:0 0 0 4px var(--accent)}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h) body #splash .sp-pbar{background:color-mix(in srgb,var(--fg) 14%,var(--bg))!important}
@media (max-width:1099px){
/* v1131 (Juan, 2026-11-26): sin la ficha blanca; los campos y botones quedan directamente sobre el fondo */
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j) body #auth .auth.pad .asheet{background:transparent!important;border:0!important;border-radius:0!important;padding:8px 18px calc(10px + env(safe-area-inset-bottom,0px))!important;box-shadow:none!important}
}

/* ===== v1132 (Juan, 2026-11-26): la carga vuelve al círculo alrededor del logo que se va llenando con el avance real (se quita la barra ancha). ===== */
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j) body #splash .sp-pbar{display:none!important}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j) body #splash .sp-ring{position:relative;width:132px!important;height:132px!important;margin:0 0 14px!important;display:grid;place-items:center}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j) body #splash .sp-ring .sp-logo:not(.sp-fill):not(.img){width:92px!important;height:92px!important;border-radius:50%!important}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j) body #splash .sp-ring .sp-logo.img:not(.sp-fill){width:92px!important;height:92px!important;border-radius:50%!important;padding:12px!important}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j) body #splash .sp-ring>.sp-prog{position:absolute;inset:0;width:100%;height:100%;transform:rotate(-90deg);display:block;overflow:visible;pointer-events:none}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j) body #splash .sp-prog circle{fill:none;stroke-width:5.5;stroke-linecap:round}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j) body #splash .sp-prog .t{stroke:color-mix(in srgb,var(--fg) 14%,var(--bg))}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j) body #splash .sp-prog .f{stroke:var(--accent);stroke-dasharray:345.575;stroke-dashoffset:calc(345.575px * (1 - var(--spn,0) / 100));transition:stroke-dashoffset .25s linear}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j) body #splash.ok .sp-prog .f{stroke-dashoffset:0}
@media (prefers-reduced-motion:reduce){html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j) body #splash .sp-prog .f{transition:none}}

/* ===== v1133 (Juan, 2026-11-26, maqueta A1 de disenos/mas): menú «Más» con las pantallas en cuadros de 3 por fila, agrupadas, con el aviso sobre el ícono; abajo la tarjeta de la cuenta con «Salir». ===== */
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j) body .optsheet.optgrid .optgrp.optgrid3{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;background:none;border:0;border-radius:0;padding:0;box-shadow:none}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j) body .optsheet.optgrid .optlbl{font-size:.72rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin:10px 6px 6px}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j) body .optsheet.optgrid .optit.optile{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:5px;width:auto;min-width:0;padding:8px 4px 7px;border:1px solid var(--line);border-radius:20px;background:var(--surface);text-align:center}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j) body .optsheet.optgrid .optit.optile:first-child{border-top:1px solid var(--line)}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j) body .optsheet.optgrid .optit.optile.on{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j) body .optsheet.optgrid .optit.optile>i{position:relative;display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:var(--field,#e6eeea);color:var(--fg)}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j) body .optsheet.optgrid .optit.optile>i>svg.oi{display:block!important;width:24px;height:24px;color:var(--fg)}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j) body .optsheet.optgrid .optit.optile>i>svg:not(.oi){display:none!important}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j) body .optsheet.optgrid .optit.optile>b{display:block;font-size:.8rem;font-weight:800;line-height:1.15;color:var(--fg)}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j) body .optsheet.optgrid .optit.optile.on>b{color:var(--fg)}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j) body .optsheet.optgrid .optit.optile .optbd{position:absolute;top:-3px;right:-5px;min-width:20px;height:20px;padding:0 5px;border-radius:10px;background:var(--fg);color:var(--bg);font-style:normal;font-size:.7rem;font-weight:800;display:grid;place-items:center;border:2px solid var(--surface);box-sizing:content-box}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j) body .optsheet.optgrid .optacc{display:flex;align-items:center;gap:10px;margin-top:10px;padding:10px 12px;background:var(--surface);border:1px solid var(--line);border-radius:22px}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j) body .optsheet.optgrid .optme{flex:1;min-width:0;display:flex;align-items:center;gap:12px;background:none;border:0;padding:0;text-align:left;color:var(--fg);font:inherit;cursor:pointer}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j) body .optsheet.optgrid .optme b{display:block;font-size:.95rem;font-weight:900}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j) body .optsheet.optgrid .optme small{display:block;font-size:.78rem;color:var(--muted)}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j) body .optsheet.optgrid .optav{flex:none;width:42px;height:42px;border-radius:50%;background:var(--fg);color:var(--bg);display:grid;place-items:center;font-weight:900;font-size:1.05rem}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j) body .optsheet.optgrid .optout{flex:none;display:inline-flex;align-items:center;gap:6px;height:40px;padding:0 14px;border-radius:999px;border:0;background:color-mix(in srgb,#dc2626 13%,var(--surface));color:#b42318;font:inherit;font-weight:800;font-size:.9rem;cursor:pointer}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j) body .optsheet.optgrid .optout>i{display:grid;place-items:center;width:20px;height:20px}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j) body .optsheet.optgrid .optout>i>svg.oi{display:block!important;width:20px;height:20px}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j) body .optsheet.optgrid .optout>i>svg.oi .m,html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j) body .optsheet.optgrid .optout>i>svg.oi .a{stroke:#b42318!important}

/* ===== v1134 (Juan, 2026-11-26): 1) el aviso de actualización va dentro de la barra de abajo (maqueta C de disenos/actualizacion); 2) la barra de abajo queda a la misma altura en todas las pantallas (en Vender ya no sube). ===== */
@media (max-width:1099px){
html.ivnav #updbar{display:none!important}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l) body #ivnav .ivfield.upd{background:var(--fg)!important;border-color:var(--fg)!important;color:var(--bg)!important;position:relative;overflow:hidden;gap:8px;padding:0 8px 0 8px!important;cursor:pointer}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l) body #ivnav .ivfield.upd .ivupi{flex:none;display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:color-mix(in srgb,var(--bg) 14%,var(--fg));color:var(--bg)}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l) body #ivnav .ivfield.upd .ivupi>svg.oi{display:block!important;width:22px!important;height:22px!important;color:var(--bg)}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l) body #ivnav .ivfield.upd .ivupi>svg.oi .m{stroke:var(--bg)!important}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l) body #ivnav .ivfield.upd .ivupt{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:800;font-size:.84rem;text-align:left;color:var(--bg);opacity:max(0,calc(1 - var(--ivp,0)*2.4))}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l) body #ivnav .ivfield.upd .ivupx{flex:none;display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:color-mix(in srgb,var(--bg) 14%,var(--fg));color:var(--bg);opacity:max(0,calc(1 - var(--ivp,0)*2.4))}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l) body #ivnav .ivfield.upd .ivupx>svg.oi{display:block!important;width:20px!important;height:20px!important}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l) body #ivnav .ivfield.upd .ivupx>svg.oi .m{stroke:var(--bg)!important}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l) body #ivnav .ivfield.upd .ivupg{position:absolute;left:16px;right:16px;bottom:7px;height:4px;border-radius:2px;background:color-mix(in srgb,var(--bg) 22%,var(--fg));overflow:hidden}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l) body #ivnav .ivfield.upd .ivupg i{display:block;height:100%;width:0;border-radius:2px;background:var(--accent,#22c55e);animation:ivupg 1.8s linear forwards}
}
@keyframes ivupg{to{width:100%}}
@keyframes ivupspin{to{transform:rotate(360deg)}}
@media (max-width:1099px) and (prefers-reduced-motion:no-preference){html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l) body #ivnav .ivfield.upd .ivupi.spin>svg.oi{animation:ivupspin 1.1s linear infinite}}
@media (max-width:1099px){
html:has(#app[data-tab="vender"]) #ivnav:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l){bottom:calc(6px + max(0px,env(safe-area-inset-bottom,0px) - 12px))}
html:has(#app[data-tab="vender"]) #ivnav .ivorb .ivtot:not(:empty):not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l){top:auto;bottom:calc(100% + 4px)}
}

/* ===== v1135 (Juan, 2026-11-26, maqueta B de disenos/buscador): en celular y tableta las pestañas de Inventario (Productos · Repuestos · Herramientas) son tres tarjetas con ícono, sin la banda gris; la activa con borde verde. ===== */
@media (max-width:1099px){
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l) body #tab-inventario #invseg{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:8px;padding:0!important;background:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;overflow:visible;margin:4px 0 6px}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l) body #tab-inventario #invseg>button{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:5px;min-height:0;height:auto;padding:8px 4px 7px;border:1px solid var(--line)!important;border-radius:22px!important;background:var(--surface)!important;color:var(--fg)!important;font-weight:800;font-size:.8rem;line-height:1.15;box-shadow:none!important;white-space:nowrap}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l) body #tab-inventario #invseg>button.on{border-color:var(--accent)!important;box-shadow:inset 0 0 0 1px var(--accent)!important;background:var(--surface)!important;color:var(--fg)!important}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l) body #tab-inventario #invseg>button>svg.oi{display:block!important;box-sizing:content-box;width:24px;height:24px;padding:9px;border-radius:50%;background:var(--field,#e6eeea);color:var(--fg)}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l) body #tab-inventario #invseg>button[hidden]{display:none!important}
}

/* ===== v1135 (Juan, 2026-11-26, maqueta A de disenos/buscador): el buscador de la barra de abajo sale directo arriba, ocupa lo que se ve (--vvh) y el teclado sube a la vez: sin el salto de antes. ===== */
@media (max-width:1099px){
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l) body #gsmodal{align-items:flex-start!important;padding:0!important;background:var(--bg)!important}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l) body #gsmodal>.dlg{width:100%;max-width:none;height:100%!important;max-height:100%!important;margin:0!important;border-radius:0!important;border:0!important;box-shadow:none!important;background:var(--bg)!important;padding:calc(10px + var(--sat,0px)) 14px 12px!important;gap:10px;display:flex;flex-direction:column;overflow:hidden;animation:gsin .18s ease-out}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l) body #gsmodal .gsbar{flex:none;display:flex;align-items:center;gap:8px}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l) body #gsmodal .gsfield{flex:1;min-width:0;margin:0;display:flex;align-items:center;gap:8px;min-height:50px;padding:0 14px;border-radius:999px;border:1.5px solid var(--fg);background:var(--surface)}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l) body #gsmodal .gsfield>svg.oi{display:block!important;flex:none;width:22px;height:22px;color:var(--fg)}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l) body #gsmodal .gsfield input{flex:1;min-width:0;border:0!important;background:transparent!important;box-shadow:none!important;outline:0;padding:0!important;min-height:46px;font-size:1rem;border-radius:0!important}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l) body #gsmodal .gsx{flex:none;width:50px;height:50px;border-radius:50%;border:1px solid var(--line);background:var(--surface);color:var(--fg);display:grid;place-items:center;padding:0;line-height:1}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l) body #gsmodal .gsx>svg.oi{display:block!important;width:26px;height:26px}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l) body #gsmodal #gsres{flex:1 1 auto;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch}
}
@media (prefers-reduced-motion:no-preference){@keyframes gsin{from{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:none}}}
@media (prefers-reduced-motion:reduce){@keyframes gsin{from{opacity:1}to{opacity:1}}}
@media (max-width:1099px){
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m) body #gsmodal .gsfield{flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;box-shadow:none!important}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m) body #gsmodal .gsbar{background:none!important;border:0!important;box-shadow:none!important;padding:0!important}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m) body #gsmodal>.dlg::before,html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m) body #gsmodal>.dlg::after{display:none!important}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m) body #gsmodal .gsfield>input{width:auto!important;margin:0!important}
}
@media (max-width:1099px){
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m) body #gsmodal .grab,html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m) body #gsmodal .gsgrab,html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m) body #gsmodal .sheetgrab{display:none!important}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m) body #gsmodal .gsfield>input{font-size:.92rem!important}
}

/* v1136 (Juan, 2026-11-26): 1) las tarjetas de Inventario ya no aprietan ni sacan el ícono (aire arriba y abajo, alto mínimo, sin recorte); 2) el campo del buscador mide 16 px: con menos, el iPhone hace zoom al tocarlo. */
@media (max-width:1099px){
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m):not(#_n) body #tab-inventario #invseg{overflow:visible!important;align-items:stretch}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m):not(#_n) body #tab-inventario #invseg>button{padding:9px 4px 10px!important;gap:6px!important;min-height:86px!important;height:auto!important;justify-content:center!important;overflow:visible!important;font-size:.78rem!important}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m):not(#_n) body #tab-inventario #invseg>button>svg.oi{width:22px!important;height:22px!important;padding:9px!important;flex:none}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m):not(#_n) body #gsmodal .gsfield>input{font-size:16px!important}
}

/* v1137 (Juan, 2026-11-26): Facturas (celular) con las maquetas escogidas en disenos/facturas/: lista «B» (una tarjeta por factura), calendario «C» (hoja «Fechas»), vista previa «A» (4 círculos) y estados «A» (con deuda destacada). Íconos propios de Cuadra. */
@media (max-width:1099px){
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f) body #tab-facturas #factres{background:none!important;border:0!important;padding:0!important;border-radius:0!important}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f) body #factlist .item.frow{display:block!important;background:var(--surface)!important;border:1px solid var(--line)!important;border-radius:24px!important;padding:12px 14px!important;margin:0 0 8px!important;box-shadow:none!important}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f) body #factlist .item.frow+.item.frow{border-top:1px solid var(--line)!important}
#factlist .fcb{display:block;cursor:pointer;-webkit-tap-highlight-color:transparent}
#factlist .fcb1{display:flex;align-items:center;gap:12px}
#factlist .fcb1 .vqdot{flex:none;width:42px;height:42px;border-radius:50%;display:grid;place-items:center}
#factlist .fcb1 .vqdot svg.oi{display:block!important;width:22px;height:22px}
#factlist .fcbt{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
#factlist .fcbt b{font-size:1rem;font-weight:800;line-height:1.25;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#factlist .fcbt span{font-size:.84rem;color:var(--muted)}
#factlist .fcb2{display:flex;align-items:center;gap:10px;margin-top:9px;padding-top:9px;border-top:1px solid var(--line)}
#factlist .fcbp{flex:1;min-width:0;color:var(--muted);font-size:.88rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#factlist .fcb2 .vamt{font-family:var(--f-display);font-size:1.25rem;font-weight:800;letter-spacing:-.02em;white-space:nowrap}
#factlist .fcb2 .vamt.x{text-decoration:line-through;color:var(--muted)}
#factlist .fcb3{margin-top:6px;color:var(--accent);font-weight:800;font-size:.8rem}
/* estado vacío */
.fempty{display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;padding:44px 20px 20px}
.fempty b{font-family:var(--f-display);font-size:1.4rem;font-weight:800;letter-spacing:-.02em}
.fempty>span:last-child{color:var(--muted);font-size:.92rem}
.fempty .fecirc{width:104px;height:104px;border-radius:50%;display:grid;place-items:center;background:color-mix(in srgb,var(--accent) 14%,var(--surface));margin-bottom:12px}
.fempty .fecirc svg.oi{width:50px;height:50px}
/* «Te deben» y «Anuladas»: la tarjeta negra cambia de título */
#fhero2.fh-owe .vnum{color:#fca5a5}
}
/* ventana «Ver factura» (vista previa): íconos propios, subtítulo y «Ver en Ventas» en píldora */
.modal.fxmod .fxsub{margin:-4px 2px 10px;color:var(--muted);font-size:.9rem;display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.modal.fxmod .fxtabs button svg.oi{width:19px;height:19px;flex:none}
.modal.fxmod .fxtabs button.on svg.oi .m,.modal.fxmod .fxtabs button.on svg.oi .d{stroke:var(--bg)}
.fxc i svg.oi{width:28px;height:28px}
.fxc.main i svg.oi .m,.fxc.main i svg.oi .d{stroke:var(--bg)}
.sheetx svg.oi{width:18px;height:18px}
html:root body .modal.fxmod .fxlink:not(#_x){display:inline-flex;align-items:center;gap:6px;text-decoration:none;background:var(--surface);border:1px solid var(--line);border-radius:999px;padding:9px 16px;box-shadow:none}
.modal.fxmod .fxlink svg.oi{width:16px;height:16px}
/* hoja «Fechas» de Facturas */
.dlg.calfact .calpre{display:flex;gap:8px;flex-wrap:wrap;margin:2px 0 10px}
.dlg.calfact .calpre .btn{border-radius:999px;background:var(--surface);border:1px solid var(--line);color:var(--fg);font-weight:800}
.dlg.calfact .calfoot{display:flex;gap:10px;margin-top:12px}
.dlg.calfact .calfoot .btn{min-height:54px;border-radius:999px;display:flex;align-items:center;justify-content:center;gap:8px;font-weight:800}
.dlg.calfact .calfoot .btn.primary{background:var(--fg)!important;color:var(--bg)!important;border-color:var(--fg)!important}
.dlg.calfact .calfoot .btn.primary svg.oi{width:20px;height:20px}
.dlg.calfact .calfoot .btn.primary svg.oi .m,.dlg.calfact .calfoot .btn.primary svg.oi .d{stroke:var(--bg)}
.dlg.calfact .calday.on{background:var(--fg)!important;color:var(--bg)!important}
.modal.fxmod svg.oi,.dlg.calfact svg.oi,.fempty svg.oi,.sheetx svg.oi{display:block}
.modal.fxmod .fxlink{align-items:center}
/* v1137 (Juan, 2026-11-26): en Facturas el título grande «Facturas» ya no se repite: está en el encabezado de arriba. */
@media (max-width:1099px){
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g) body #tab-facturas #fhero2::before{display:none!important;content:none!important}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g) body #tab-facturas>#fhero2{margin-top:4px!important;grid-template-areas:"k n" "p p"!important;grid-template-rows:auto auto!important;align-items:center!important;row-gap:0!important}
}
/* v1137: el círculo del ícono de cada factura toma el tono del negocio sobre la tarjeta (así se ve también en oscuro) */
@media (max-width:1099px){
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g) body #factlist .fcb1 .vqdot{background:color-mix(in srgb,var(--accent) 14%,var(--surface))!important;color:var(--fg)}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g) body #factlist .fcb1 .vqdot.x{background:color-mix(in srgb,#dc2626 14%,var(--surface))!important}
}

/* v1138 (Juan, 2026-11-26, maqueta C de disenos/conexion): «Sin conexión» y «En línea» son una píldora pequeña y centrada (antes una ficha grande de dos renglones). */
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e) body .netbar:is(.off,.ok):not([hidden]){display:flex;align-items:center;gap:6px;width:fit-content;max-width:calc(100% - 28px);margin:6px auto 0;padding:5px 12px 5px 8px;border-radius:999px;font-size:.78rem;font-weight:800;line-height:1.2;box-shadow:none}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e) body .netbar.off{cursor:pointer}
.netbar:is(.off,.ok) svg.oi{display:block;width:18px;height:18px;flex:none}
.netbar.off svg.oi .m,.netbar.off svg.oi .a{stroke:var(--bad)}
.netbar.ok svg.oi .m,.netbar.ok svg.oi .a{stroke:var(--ok)}

/* v1139 (Juan, 2026-11-26): Reportes (celular) con las maquetas de disenos/reportes-celular/ (principal A, Ventas A, Dinero A; Inventario, Equipo y Cobros como se mostraron). Íconos propios de Cuadra. */
.rx-t3,.rx-okc,.rx-turns{display:none}
@media (max-width:1099px){
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g) body #tab-reportes #rphero2::before{display:none!important;content:none!important}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g) body #tab-reportes>#rphero2:not(:empty){margin-top:4px!important;grid-template-areas:"k n" "p p"!important;grid-template-rows:auto auto!important;align-items:center!important;row-gap:0!important}
/* pestañas: la elegida en negro */
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g) body #tab-reportes .rx-tabs .rx-tab[aria-selected="true"]{background:var(--fg)!important;color:var(--bg)!important}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g) body #tab-reportes .rx-tabs .rx-tab[aria-selected="true"] .l{color:var(--bg)!important}
/* Resumen: cuatro fichas 2×2 */
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g) body #tab-reportes .rx-dup>.rx-kv{grid-template-columns:1fr 1fr!important;gap:10px!important}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g) body #tab-reportes .rx-dup>.rx-kv>span{background:var(--surface)!important;border:1px solid var(--line)!important;border-radius:22px!important;padding:12px 14px!important;font-size:.8rem!important}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g) body #tab-reportes .rx-dup>.rx-kv>span b{font-size:1.3rem!important}
/* íconos en las filas de «Cómo te pagaron» */
#tab-reportes .r-row .r-ic{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:color-mix(in srgb,var(--accent) 14%,var(--surface));flex:none}
#tab-reportes .r-row .r-ic svg.oi{display:block;width:20px;height:20px}
/* Dinero: Entró, Salió y Quedó en tres fichas */
#tab-reportes .rx-t3{display:grid;grid-template-columns:1fr 1fr 1.15fr;gap:8px;margin:12px 0}
#tab-reportes .rx-t3>div{border-radius:22px;padding:11px 12px;display:flex;flex-direction:column;gap:2px;min-width:0}
#tab-reportes .rx-t3 small{font-size:.74rem;font-weight:700}
#tab-reportes .rx-t3 b{font-family:var(--f-display);font-weight:800;font-size:1.02rem;letter-spacing:-.02em;white-space:nowrap}
#tab-reportes .rx-t3 .in{background:color-mix(in srgb,var(--accent) 16%,var(--surface));color:var(--fg)}
#tab-reportes .rx-t3 .in small{color:var(--accent)}
#tab-reportes .rx-t3 .out{background:color-mix(in srgb,#dc2626 14%,var(--surface));color:var(--fg)}
#tab-reportes .rx-t3 .out small{color:#dc2626}
#tab-reportes .rx-t3 .left{background:#0b0f0e;color:#fff;border:1px solid #26302c}
#tab-reportes .rx-t3 .left small{color:#9fb0a8}
/* Inventario: «Todo bien» con círculo y check */
#tab-reportes .rx-hero:has(.rx-okc){text-align:center}
#tab-reportes .rx-okc{display:grid;place-items:center;width:64px;height:64px;border-radius:50%;margin:0 auto 8px;background:color-mix(in srgb,var(--accent) 14%,var(--surface))}
#tab-reportes .rx-okc svg.oi{display:block;width:32px;height:32px}
#tab-reportes .rx-hero:has(.rx-okc) .rx-kv{justify-content:center}
/* Equipo: turnos en tres fichas */
#tab-reportes .rx-turns{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
#tab-reportes .rx-turn{border:1px solid var(--line);border-radius:20px;padding:10px;display:flex;flex-direction:column;gap:2px;min-width:0;background:var(--surface)}
#tab-reportes .rx-turn small{color:var(--muted);font-size:.74rem;font-weight:700}
#tab-reportes .rx-turn b{font-family:var(--f-display);font-weight:800;font-size:.98rem;letter-spacing:-.02em;white-space:nowrap}
#tab-reportes .rx-turn span{color:var(--muted);font-size:.7rem;line-height:1.25}
#tab-reportes .rx-turn em{font-style:normal;color:var(--muted);font-size:.66rem}
#tab-reportes .rx-turn.best{background:color-mix(in srgb,var(--accent) 14%,var(--surface));border-color:color-mix(in srgb,var(--accent) 40%,transparent)}
#tab-reportes .rx-turn.best span{color:var(--accent);font-weight:700}
/* Cobros: «Te deben» en tarjeta negra */
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g) body #tab-reportes .rx-owe{background:#0b0f0e!important;color:#fff!important;border:1px solid #26302c!important}
#tab-reportes .rx-owe>.rx-mh{display:none!important}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g) body #tab-reportes .rx-owe>.rx-mh+.hint,html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g) body #tab-reportes .rx-owe>.rx-big,html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g) body #tab-reportes .rx-owe>.rx-dl{display:block!important}
#tab-reportes .rx-owe>.rx-mh+.hint{color:#9fb0a8!important}
#tab-reportes .rx-owe .rx-big{color:#fff!important;font-size:2.3rem!important;margin:2px 0 8px}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g) body #tab-reportes .rx-owe>.rx-kv>span{background:#1d2522!important;border:0!important;color:#cfd8d3!important}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g) body #tab-reportes .rx-owe>.rx-kv>span b{color:#fff!important}
}

/* v1140 (Juan, 2026-11-26, maqueta B de disenos/reportes-nuevo/): Reportes en el celular = una pantalla por tema que se desliza de lado (cifra grande, dos líneas, gráfica sencilla); el detalle de antes queda en «Ver más detalle». El computador no cambia. */
.rx-page,.rx-ppill{display:none}
@media (max-width:1099px){
#tab-reportes #rphero2,#tab-reportes #rptabs,#tab-reportes .rx-ctl>h3,#tab-reportes #rper,#tab-reportes #rptodo:has(.rx-none){display:none!important}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g) body #tab-reportes .rx-ppill{display:inline-flex;align-items:center;gap:6px;border:0;border-radius:999px;padding:9px 16px;font:800 .9rem/1.2 var(--f-body);background:var(--fg);color:var(--bg);min-height:0;width:auto;height:auto;flex:none}
#tab-reportes .rx-perrow{display:flex;align-items:center;gap:10px;margin-top:6px}
#tab-reportes .rx-ctl{margin:0}
#tab-reportes .rx-ctl .hint{margin:4px 0 0}
#tab-reportes .rx-page{display:block;padding:4px 2px 0}
#tab-reportes .rx-ph{display:flex;align-items:baseline;gap:8px;margin:6px 0 0}
#tab-reportes .rx-ph b{font-family:var(--f-display);font-size:1.65rem;font-weight:800;letter-spacing:-.02em}
#tab-reportes .rx-ph span{color:var(--muted);font-size:.86rem}
#tab-reportes .rx-k{color:var(--muted);font-size:.9rem;margin-top:12px}
#tab-reportes .rx-big2{font-family:var(--f-display);font-weight:800;font-size:clamp(2.6rem,14vw,3.6rem);letter-spacing:-.04em;line-height:1.05;margin:6px 0 0;white-space:nowrap}
#tab-reportes .rx-big2.sm{font-size:1.9rem;white-space:normal}
#tab-reportes .rx-l{color:var(--muted);font-size:.95rem;margin-top:4px}
#tab-reportes .rx-l2{margin-top:12px;font-size:1.02rem}
#tab-reportes .rx-l2 span{color:var(--muted);font-weight:500}
#tab-reportes .rx-l2.bad b{color:var(--bad)}
#tab-reportes .rx-sec{margin:20px 0 8px;font-weight:800;font-size:.95rem}
#tab-reportes .rx-stack{display:flex;height:16px;border-radius:999px;overflow:hidden;background:var(--field,#efefec);gap:2px}
#tab-reportes .rx-stack i{display:block;height:100%}
#tab-reportes .rx-leg2{display:flex;flex-wrap:wrap;gap:6px 14px;margin-top:8px;color:var(--muted);font-size:.8rem}
#tab-reportes .rx-chips{display:flex;gap:8px;margin:12px 0 4px;flex-wrap:wrap}
#tab-reportes .rx-chips span{padding:6px 12px;border-radius:999px;font-weight:800;font-size:.85rem}
#tab-reportes .rx-chips .in{background:color-mix(in srgb,var(--accent) 16%,var(--surface));color:var(--accent)}
#tab-reportes .rx-chips .out{background:color-mix(in srgb,#dc2626 14%,var(--surface));color:#dc2626}
#tab-reportes .rx-okc{display:grid;place-items:center;width:64px;height:64px;border-radius:50%;margin:14px 0 0;background:color-mix(in srgb,var(--accent) 14%,var(--surface))}
#tab-reportes .rx-okc svg.oi{display:block;width:32px;height:32px}
#tab-reportes .rx-page .r-plotbox{margin-top:10px}
#tab-reportes .rx-page .r-rows{margin-top:16px}
#tab-reportes .rx-mbtn{display:block;margin:22px auto 0;border:1px solid var(--line);background:var(--surface);color:var(--fg);border-radius:999px;padding:10px 18px;font:800 .88rem/1.2 var(--f-body);min-height:0;width:auto;height:auto}
#tab-reportes .rx-dots{display:flex;justify-content:center;gap:0;margin:14px 0 6px}
#tab-reportes .rx-dots button{position:relative;width:34px;height:34px;min-height:0;padding:0;border:0;background:transparent;box-shadow:none}
#tab-reportes .rx-dots button::before{content:"";position:absolute;left:50%;top:50%;width:8px;height:8px;margin:-4px 0 0 -4px;border-radius:999px;background:color-mix(in srgb,var(--fg) 22%,transparent)}
#tab-reportes .rx-dots button.on::before{width:22px;margin-left:-11px;background:var(--fg)}
#tab-reportes .rx-rest{display:none}
#tab-reportes .rx-pane.more .rx-rest{display:block;margin-top:14px}
}
@media (max-width:1099px){
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h) body #tab-reportes>#rphero2{display:none!important}
}

/* v1142 (Juan, 2026-11-26): Reportes (celular) como panel (disenos/reportes-dashboard/): fichas con cambio, gráfica interactiva, dona, lo más vendido, mejores horas y dinero. */
@media (max-width:1099px){
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h) body #tab-reportes #rper{display:flex!important}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h) body #tab-reportes .rx-ppill{display:none!important}
#tab-reportes .rx-perrow{margin-top:2px}
#tab-reportes .rx-back{display:inline-flex;align-items:center;border:0;background:var(--field,#efefec);color:var(--fg);border-radius:999px;padding:8px 14px;font:800 .85rem/1.2 var(--f-body);min-height:0;width:auto;height:auto;margin:4px 0 6px}
#tab-reportes .rpd{padding:0}
#tab-reportes .rpd-kpis{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:6px}
#tab-reportes .rpd-k{position:relative;text-align:left;display:block;background:var(--surface);color:var(--fg);border:1px solid var(--line);border-radius:22px;padding:13px 14px;overflow:hidden;min-height:0;width:auto;height:auto;box-shadow:none;font:inherit}
#tab-reportes .rpd-k.dark{background:#0b0f0e;color:#fff;border-color:#26302c}
#tab-reportes .rpd-k small{display:block;font-size:.76rem;color:var(--muted);font-weight:700}
#tab-reportes .rpd-k.dark small{color:#9fb0a8}
#tab-reportes .rpd-k b{display:block;font-family:var(--f-display);font-weight:800;font-size:1.3rem;letter-spacing:-.03em;margin-top:2px;white-space:nowrap}
#tab-reportes .rpd-dl{display:inline-block;font-size:.72rem;font-weight:800;margin-top:3px;color:var(--muted)}
#tab-reportes .rpd-dl.up{color:var(--accent)}#tab-reportes .rpd-dl.dn{color:#dc2626}
#tab-reportes .rpd-k.dark .rpd-dl.up{color:#4ade80}
#tab-reportes .rpd-k svg{position:absolute;right:8px;bottom:6px;width:70px;height:28px}
#tab-reportes .rpd-k.sel{outline:2.5px solid var(--accent);outline-offset:-2.5px}
#tab-reportes .rpd-card{background:var(--surface);border:1px solid var(--line);border-radius:26px;padding:15px 14px;margin-top:12px;position:relative}
#tab-reportes .rpd-card h3{font-family:var(--f-display);font-size:1.12rem;letter-spacing:-.02em;margin:0}
#tab-reportes .rpd-sub{font-size:.8rem;color:var(--muted);margin-top:2px}
#tab-reportes .rpd-row{display:flex;align-items:center;justify-content:space-between;gap:10px}
#tab-reportes .rpd-cmp{display:flex;align-items:center;gap:8px;font-size:.76rem;font-weight:800;color:var(--muted)}
#tab-reportes .rpd-sw{position:relative;width:44px;height:26px;min-height:0;padding:0;border:0;border-radius:14px;background:var(--field,#d1d7d4);flex:none;box-shadow:none}
#tab-reportes .rpd-sw::after{content:"";position:absolute;left:3px;top:3px;width:20px;height:20px;border-radius:50%;background:var(--surface);transition:left .15s}
#tab-reportes .rpd-sw.on{background:var(--accent)}#tab-reportes .rpd-sw.on::after{left:21px}
#tab-reportes .rpd-seg{display:flex;gap:4px;background:var(--field,#eef1ef);border-radius:999px;padding:3px;margin:10px 0 8px}
#tab-reportes .rpd-seg button{flex:1;border:0;background:transparent;border-radius:999px;padding:8px 4px;font:800 .78rem/1.2 var(--f-body);color:var(--muted);min-height:0;height:auto;width:auto;box-shadow:none}
#tab-reportes .rpd-seg button.on{background:var(--fg);color:var(--bg)}
#tab-reportes .rpd-chart{width:100%;height:190px;touch-action:none;cursor:crosshair;user-select:none}
#tab-reportes .rpd-chart svg{display:block;overflow:visible}
#tab-reportes .rpd-tip{position:absolute;pointer-events:none;background:#0b0f0e;color:#fff;border-radius:12px;padding:7px 10px;font-size:.74rem;font-weight:700;white-space:nowrap;transform:translate(-50%,-100%);opacity:0;transition:opacity .12s;z-index:2}
#tab-reportes .rpd-tip small{color:#9fb0a8;font-weight:600}
#tab-reportes .rpd-legend{display:flex;gap:14px;font-size:.74rem;color:var(--muted);margin-top:6px}
#tab-reportes .rpd-legend i{display:inline-block;width:14px;height:4px;border-radius:2px;margin-right:6px;vertical-align:middle}
#tab-reportes .rpd-legend i.dash{background:repeating-linear-gradient(90deg,var(--muted) 0 4px,transparent 4px 7px)}
#tab-reportes .rpd-donut{display:flex;align-items:center;gap:14px;margin-top:10px}
#tab-reportes .rpd-dc{position:relative;width:140px;height:140px;flex:none}
#tab-reportes .rpd-dc svg{width:100%;height:100%;transform:rotate(-90deg)}
#tab-reportes .rpd-dc circle{cursor:pointer;transition:stroke-width .15s,opacity .15s}
#tab-reportes .rpd-cen{position:absolute;inset:0;display:grid;place-content:center;text-align:center;pointer-events:none}
#tab-reportes .rpd-cen b{font-family:var(--f-display);font-size:1.05rem}
#tab-reportes .rpd-cen span{font-size:.68rem;color:var(--muted);font-weight:700}
#tab-reportes .rpd-leg{flex:1;display:flex;flex-direction:column;gap:6px;min-width:0}
#tab-reportes .rpd-leg button{border:0;background:var(--field,#f4f6f5);border-radius:14px;padding:8px 10px;display:flex;align-items:center;gap:8px;font:700 .8rem/1.2 var(--f-body);color:var(--fg);text-align:left;min-height:0;height:auto;width:auto;box-shadow:none}
#tab-reportes .rpd-leg button.on{background:color-mix(in srgb,var(--accent) 18%,var(--surface))}
#tab-reportes .rpd-leg i{width:10px;height:10px;border-radius:50%;flex:none}
#tab-reportes .rpd-leg b{margin-left:auto;font-weight:800}
#tab-reportes .rpd-bars{margin-top:4px}
#tab-reportes .rpd-br{display:flex;align-items:center;gap:10px;width:100%;border:0;background:transparent;padding:8px 4px;border-radius:14px;color:var(--fg);font:inherit;min-height:0;height:auto;text-align:left;box-shadow:none}
#tab-reportes .rpd-br.on{background:color-mix(in srgb,var(--accent) 18%,var(--surface))}
#tab-reportes .rpd-br .n{width:104px;font-size:.8rem;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:none}
#tab-reportes .rpd-br .t{flex:1;height:12px;border-radius:99px;background:var(--field,#eef1ef);overflow:hidden}
#tab-reportes .rpd-br .t i{display:block;height:100%;background:var(--accent);border-radius:99px}
#tab-reportes .rpd-br .v{width:74px;text-align:right;font-weight:800;font-size:.8rem;flex:none}
#tab-reportes .rpd-read{margin-top:10px;background:var(--field,#f4f6f5);border-radius:14px;padding:9px 12px;font-size:.8rem;font-weight:700}
#tab-reportes .rpd-heat{display:grid;grid-template-columns:34px repeat(7,1fr);gap:4px;margin-top:10px;font-size:.68rem;color:var(--muted);font-weight:700;text-align:center;align-items:center}
#tab-reportes .rpd-hc{height:30px;min-height:0;padding:0;border-radius:9px;border:2px solid transparent;width:auto;background:color-mix(in srgb,var(--accent) calc(12% + var(--v)*88%),var(--surface));box-shadow:none}
#tab-reportes .rpd-hc.on{border-color:var(--fg)}
#tab-reportes .rpd-left{font-family:var(--f-display);font-size:1.1rem;color:var(--accent)}
#tab-reportes .rpd-stack{display:flex;height:22px;border-radius:99px;overflow:hidden;gap:2px;margin:10px 0 8px;background:var(--field,#eef1ef)}
#tab-reportes .rpd-stack i{display:block;height:100%}
#tab-reportes .rpd-cap{font-size:.76rem;color:var(--muted);font-weight:700}
#tab-reportes .rpd-acc{display:flex;align-items:center;gap:10px;padding:9px 2px;border-top:1px solid var(--line);font-size:.88rem;font-weight:700;margin-top:8px}
#tab-reportes .rpd-acc+.rpd-acc{margin-top:0}
#tab-reportes .rpd-acc .ic,#tab-reportes .rpd-mt .ic{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:color-mix(in srgb,var(--accent) 14%,var(--surface));flex:none}
#tab-reportes .rpd-acc .ic svg.oi{display:block;width:20px;height:20px}#tab-reportes .rpd-mt .ic svg{width:18px;height:18px}
#tab-reportes .rpd-acc b{margin-left:auto}
#tab-reportes .rpd-mt{display:flex;align-items:center;gap:10px;width:100%;border:0;background:transparent;color:var(--fg);padding:10px 2px;border-top:1px solid var(--line);font:inherit;text-align:left;min-height:0;height:auto;box-shadow:none}
#tab-reportes .rpd-mt:first-of-type{margin-top:8px}
#tab-reportes .rpd-mt .n{font-weight:800;font-size:.92rem;flex:1}
#tab-reportes .rpd-mt .v{color:var(--muted);font-size:.8rem;font-weight:700}
#tab-reportes .rpd-mt .ch{color:var(--muted);font-weight:800}
}

/* v1143 (Juan, 2026-11-26): sin «Hoy toca» fijo en Reportes (celular) y tarjeta de Jota en el panel. */
@media (max-width:1099px){
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i) body #tab-reportes #rptodo{display:none!important}
#tab-reportes .rpd-jota{display:flex;align-items:center;gap:12px;width:100%;margin:6px 0 2px;padding:12px 14px;border:0;border-radius:22px;background:#0b0f0e;color:#fff;text-align:left;font:inherit;min-height:0;height:auto;box-shadow:none}
#tab-reportes .rpd-jota .ic{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:#1d2522;flex:none}
#tab-reportes .rpd-jota .ic svg.oi{display:block;width:24px;height:24px}
#tab-reportes .rpd-jota .ic svg.oi .m,#tab-reportes .rpd-jota .ic svg.oi .d{stroke:#fff}
#tab-reportes .rpd-jota .ic svg.oi .a{stroke:#4ade80}
#tab-reportes .rpd-jota .t{flex:1;min-width:0}
#tab-reportes .rpd-jota b{display:block;font-family:var(--f-display);font-size:1.02rem;letter-spacing:-.01em}
#tab-reportes .rpd-jota small{display:block;color:#9fb0a8;font-size:.78rem;margin-top:1px}
#tab-reportes .rpd-jota .ch{color:#9fb0a8;font-weight:800}
}

/* v1144 (Juan, 2026-11-26): hoja «Qué mostrar» de Reportes ordenada, con interruptores. */
#rpqmodal .rpqdlg{display:flex;flex-direction:column;max-height:92vh;padding-bottom:calc(14px + env(safe-area-inset-bottom,0px))}
#rpqmodal .rpq-sub{color:var(--muted);font-size:.86rem;margin:-2px 4px 6px}
#rpqmodal .rpq-body{overflow-y:auto;flex:1;min-height:0;padding:0 2px 6px;-webkit-overflow-scrolling:touch}
#rpqmodal .rpq-lbl{margin:14px 6px 6px;font-size:.74rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
#rpqmodal .rpq-grp{background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:2px 14px}
#rpqmodal .rpq-row{position:relative;display:flex;align-items:center;gap:12px;padding:11px 0;border-top:1px solid var(--line);cursor:pointer}
#rpqmodal .rpq-row:first-child{border-top:0}
#rpqmodal .rpq-row>span{flex:1;min-width:0}
#rpqmodal .rpq-row b{display:block;font-size:.95rem;font-weight:800}
#rpqmodal .rpq-row small{display:block;color:var(--muted);font-size:.78rem;margin-top:1px}
#rpqmodal .rpq-row input{position:absolute;opacity:0;width:1px;height:1px}
#rpqmodal .rpq-sw{position:relative;flex:none;width:46px;height:28px;border-radius:14px;background:var(--field,#d1d7d4);transition:background .15s}
#rpqmodal .rpq-sw::after{content:"";position:absolute;left:3px;top:3px;width:22px;height:22px;border-radius:50%;background:var(--surface);transition:left .15s}
#rpqmodal input:checked+.rpq-sw{background:var(--accent)}
#rpqmodal input:checked+.rpq-sw::after{left:21px}
#rpqmodal input:focus-visible+.rpq-sw{outline:2px solid var(--fg);outline-offset:2px}
#rpqmodal .rpq-foot{display:flex;gap:10px;padding-top:10px}
#rpqmodal .rpq-foot .btn{min-height:52px;border-radius:999px;display:flex;align-items:center;justify-content:center;gap:8px;font-weight:800}
#rpqmodal .rpq-foot .btn:first-child{flex:1;background:var(--surface);border:1.5px solid var(--line);color:var(--fg)}
#rpqmodal .rpq-foot .btn.primary{flex:1.4;background:var(--fg)!important;color:var(--bg)!important;border-color:var(--fg)!important}
#rpqmodal .rpq-foot .btn.primary svg.oi{display:block;width:20px;height:20px}
#rpqmodal .rpq-foot .btn.primary svg.oi .m,#rpqmodal .rpq-foot .btn.primary svg.oi .d{stroke:var(--bg)}
#rpqmodal .sheetx svg.oi{display:block}

/* v1145 (Juan, 2026-11-26): «Análisis de Jota» (Reportes) con formato profesional: encabezado, cifras del período, secciones con tarjetas y aviso al pie. */
#iaanalisis .jares{display:flex;flex-direction:column;max-height:92vh;overflow-y:auto;padding-bottom:calc(14px + env(safe-area-inset-bottom,0px))}
#iaanalisis .jares-hd{display:flex;align-items:center;gap:12px;margin:2px 0 12px}
#iaanalisis .jares-ic{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;background:#0b0f0e;flex:none}
#iaanalisis .jares-ic svg.oi{display:block;width:26px;height:26px}
#iaanalisis .jares-ic svg.oi .m,#iaanalisis .jares-ic svg.oi .d{stroke:#fff}
#iaanalisis .jares-ic svg.oi .a{stroke:#4ade80}
#iaanalisis .jares-hd .t{flex:1;min-width:0}
#iaanalisis .jares-hd h2{margin:0;font-family:var(--f-display);font-size:1.45rem;font-weight:800;letter-spacing:-.02em}
#iaanalisis .jares-hd small{display:block;color:var(--muted);font-size:.82rem;margin-top:1px}
#iaanalisis .jares-ai{font-size:.7rem;font-weight:800;letter-spacing:.08em;padding:4px 9px;border-radius:999px;background:color-mix(in srgb,var(--accent) 16%,var(--surface));color:var(--accent);flex:none}
#iaanalisis .jares-kpis{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:10px}
#iaanalisis .jares-kpis>div{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:10px 12px}
#iaanalisis .jares-kpis>div.dk{background:#0b0f0e;color:#fff;border-color:#26302c}
#iaanalisis .jares-kpis small{display:block;font-size:.72rem;font-weight:700;color:var(--muted)}
#iaanalisis .jares-kpis .dk small{color:#9fb0a8}
#iaanalisis .jares-kpis b{display:block;font-family:var(--f-display);font-size:1.1rem;font-weight:800;letter-spacing:-.02em;margin-top:1px;white-space:nowrap}
#iaanalisis .jares-kpis em{font-style:normal;font-size:.7rem;font-weight:800;color:var(--muted)}
#iaanalisis .jares-kpis em.up{color:var(--accent)}#iaanalisis .jares-kpis em.dn{color:#dc2626}
#iaanalisis .jares-kpis .dk em.up{color:#4ade80}
#iaanalisis .jares-body .jfmt{line-height:1.45}
#iaanalisis .jares-body .jh{font-family:var(--f-display);font-size:1.08rem;font-weight:800;letter-spacing:-.01em;text-transform:none;color:var(--fg);margin:18px 0 8px;gap:10px}
#iaanalisis .jares-body .jh::before{content:"";width:5px;height:18px;border-radius:3px;background:var(--accent);flex:none}
#iaanalisis .jares-body .jh::after{display:none}
#iaanalisis .jares-body ul.jul,#iaanalisis .jares-body ol.jol{gap:8px;margin:0 0 6px}
#iaanalisis .jares-body ul.jul li{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:11px 14px;font-size:.92rem}
#iaanalisis .jares-body ul.jul li::before{display:none}
#iaanalisis .jares-body ol.jol li{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:11px 14px 11px 52px;font-size:.92rem;min-height:0}
#iaanalisis .jares-body ol.jol li::before{left:14px;top:12px;width:28px;height:28px;font-size:.9rem;background:#0b0f0e;color:#fff;display:grid;place-items:center}
#iaanalisis .jares-body .jl{display:block;font-size:.72rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--accent);margin-bottom:2px}
#iaanalisis .jares-body ol.jol .jl{color:var(--fg);font-size:.95rem;letter-spacing:0;text-transform:none;margin-bottom:1px}
#iaanalisis .jares-body .jt{display:block;color:var(--fg)}
#iaanalisis .jares-body p{margin:0 0 8px;font-size:.92rem}
#iaanalisis .jares-foot{margin:14px 2px 0;color:var(--muted);font-size:.76rem;line-height:1.4}
#iaanalisis .jares-ok{width:100%;min-height:54px;margin-top:12px;border-radius:999px;background:var(--fg)!important;color:var(--bg)!important;border-color:var(--fg)!important;display:flex;align-items:center;justify-content:center;gap:8px;font-weight:800}
#iaanalisis .jares-ok svg.oi{display:block;width:20px;height:20px}
#iaanalisis .jares-ok svg.oi .m,#iaanalisis .jares-ok svg.oi .d{stroke:var(--bg)}

/* v1145 (Juan, 2026-11-26): (1) «Mi Cuadra App» de la pantalla de carga va abajo del todo; (2) el aviso «Hay una actualización» ya no sale en la pantalla del PIN ni de entrada: se avisa al entrar, en la barra de abajo con el diseño nuevo. */
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e) body #splash .sp-by:not([hidden]){position:absolute;left:0;right:0;bottom:calc(30px + env(safe-area-inset-bottom,0px));margin:0;justify-content:center;order:0}
html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):has(#app[hidden]) body #updbar.netbar.upd{display:none!important}

/* v1147 · Compras «C · Accesos en círculos» (Juan, 2026-11-26): resumen del mes, 4 accesos en círculos, aviso de «por pedir» y compras por día. */
html[data-invsub="compras"] body #tab-inventario.cpv #ihero2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k),html[data-invsub="compras"] body #tab-inventario.cpv #invseg:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k){display:none!important}
#cpview .cpn-acts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:14px 0 14px}
#cpview .cpn-a{display:flex;flex-direction:column;align-items:center;gap:7px;border:0;background:transparent;color:var(--fg);padding:0;font:inherit;cursor:pointer;min-width:0}
#cpview .cpn-a i{position:relative;width:56px;height:56px;border-radius:50%;display:grid;place-items:center;background:color-mix(in srgb,var(--accent) 14%,var(--surface))}
#cpview .cpn-a i svg{width:28px;height:28px;display:block}
#cpview .cpn-a i u{position:absolute;top:-3px;right:-3px;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:var(--accent);color:var(--accent-ink,#fff);font:800 .7rem/20px var(--f-body);text-align:center;text-decoration:none;border:2px solid var(--bg)}
#cpview .cpn-a b{font:700 .78rem/1.2 var(--f-body);text-align:center}
#cpview .cpn-al{display:flex;align-items:center;gap:12px;width:100%;border:1px solid var(--line);background:var(--surface);color:var(--fg);border-radius:22px;padding:12px 14px;text-align:left;font:inherit;cursor:pointer;margin:0 0 6px}
#cpview .cpn-al i,#cpview .cpn-r i{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;flex:none;background:color-mix(in srgb,var(--accent) 14%,var(--surface))}
#cpview .cpn-al i{background:color-mix(in srgb,#f59e0b 22%,var(--surface))}
#cpview .cpn-r i.w{background:color-mix(in srgb,#f59e0b 22%,var(--surface))}
#cpview .cpn-al i svg,#cpview .cpn-r i svg{width:22px;height:22px;display:block}
#cpview .cpn-al span,#cpview .cpn-m{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
#cpview .cpn-al b,#cpview .cpn-m b{font:800 .95rem/1.25 var(--f-body)}
#cpview .cpn-al small,#cpview .cpn-m small{font:500 .8rem/1.3 var(--f-body);color:var(--muted)}
#cpview .cpn-h{display:flex;justify-content:space-between;align-items:baseline;margin:16px 4px 8px;font-family:var(--f-display)}
#cpview .cpn-h b{font-size:1rem;font-weight:800}#cpview .cpn-h span{font:700 .85rem var(--f-body);color:var(--muted)}
#cpview .cpn-card{background:var(--surface);border:1px solid var(--line);border-radius:24px;padding:2px 12px}
#cpview .cpn-r{display:flex;align-items:center;gap:12px;width:100%;border:0;background:transparent;color:var(--fg);padding:11px 2px;text-align:left;font:inherit;cursor:pointer}
#cpview .cpn-r+.cpn-r{border-top:1px solid var(--line)}
#cpview .cpn-v{display:flex;flex-direction:column;align-items:flex-end;gap:3px;flex:none}
#cpview .cpn-v b{font:800 .92rem var(--f-body)}
#cpview .cpn-v em{font-style:normal;font:800 .68rem var(--f-body);padding:3px 9px;border-radius:999px;white-space:nowrap}
#cpview .cpn-v em.ok{background:color-mix(in srgb,var(--accent) 16%,var(--surface));color:var(--accent)}
#cpview .cpn-v em.warn{background:color-mix(in srgb,#f59e0b 24%,var(--surface));color:var(--fg)}
#cpview .cpn-v em.bad{background:color-mix(in srgb,#dc2626 18%,var(--surface));color:#dc2626}
#cpview .cpn-empty{margin:14px 0;padding:18px;border:1px dashed var(--line);border-radius:22px;text-align:center;color:var(--muted);font-size:.9rem}
#cpview .cpn-more{display:block;margin:14px auto 4px;border:1px solid var(--line);background:var(--surface);color:var(--fg);border-radius:999px;padding:11px 20px;font:700 .88rem var(--f-body);cursor:pointer}
/* v1147 · el título «Compras» ya está en la barra de arriba del celular: no se repite dentro del bloque */
@media (max-width:1099px){html:root body #tab-inventario.cpv #cphero2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h)::before{display:none!important}}
@media (max-width:1099px){html:root body #tab-inventario.cpv #cphero2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){margin-top:6px!important}}
/* v1148 · Compras: «Compras de noviembre» centrado con el valor y con el ojo para ocultarlo */
#cphero2 .cpn-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 10px}
#cphero2 .cpn-top .k{display:inline-flex;align-items:center;gap:6px;margin:0;flex:1;min-width:0;text-align:left;font-size:.9rem;line-height:1.2}
#cphero2 .cpn-top .vnum{margin:0;flex:none;text-align:right}
#cphero2 .cpn-top .vnum .hidval{font-size:inherit}
#cphero2 .ih-eye{background:none!important;border:0!important;color:var(--hdr-ink,var(--accent-ink,#fff))!important;padding:2px;min-height:0;width:auto;height:auto;display:inline-grid;place-items:center;line-height:0;margin:0}
#cphero2 .ih-eye svg{width:20px;height:20px;display:block}
/* v1148 · las alertas van de otro color: amarillo si hay algo por atender y rojo si hay agotados o compras vencidas */
#cpview .cpn-a.warn i{background:color-mix(in srgb,#f59e0b 22%,var(--surface))}
#cpview .cpn-a.warn i u{background:#f59e0b;color:#1a1200}
#cpview .cpn-a.bad i{background:color-mix(in srgb,#dc2626 18%,var(--surface))}
#cpview .cpn-a.bad i u{background:#dc2626;color:#fff}

/* v1149 · «Nueva compra» en tres pasos (maqueta B de Juan): barra de avance, un paso a la vez y pie con el total y Atrás / Siguiente. Solo dentro de la hoja. */
.cwsteps,.cwfoot{display:none}
html:root body .modal.cwsheet>.dlg.sheetdlg:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;flex-direction:column;height:92dvh;max-height:92dvh;overflow:hidden;padding-bottom:0}
html:root body .modal.cwsheet>.dlg>.card:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){margin-top:0!important;display:flex;flex-direction:column;flex:1 1 auto;min-height:0;overflow:hidden;padding-bottom:0}
html:root body .modal #suppcard>h2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:none}
html:root body .modal #suppcard .cwsteps:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;gap:8px;flex:none;margin:4px 0 14px}
html:root body .modal #suppcard .cwsteps>button:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:1;border:0;background:none;padding:0;text-align:left;color:var(--muted);font:700 .78rem/1.2 var(--f-body,inherit);cursor:pointer}
html:root body .modal #suppcard .cwsteps>button>i:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block;height:5px;border-radius:3px;background:var(--line);margin-bottom:6px}
html:root body .modal #suppcard .cwsteps>button.done>i,html:root body .modal #suppcard .cwsteps>button.on>i:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:var(--accent)}
html:root body .modal #suppcard .cwsteps>button.on:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){color:var(--fg);font-weight:900}
html:root body .modal #suppcard .cwscroll:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;touch-action:pan-y;padding-bottom:14px}
html:root body .modal #suppcard[data-cwstep="1"] :is(.cw2,.cw3):not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:none!important}
html:root body .modal #suppcard[data-cwstep="2"] :is(.cw1,.cw3):not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:none!important}
html:root body .modal #suppcard[data-cwstep="3"] :is(.cw1,.cw2):not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:none!important}
html:root body .modal #suppcard .cw1>.stepttl,html:root body .modal #suppcard .cw2 .stepbox>.stepttl:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:none}
html:root body .modal #suppcard .cw2>.stepttl b:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:none}
html:root body .modal #suppcard #csave:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:none!important}
html:root body .modal #suppcard .cwfoot:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;flex:none;align-items:center;gap:10px;padding:10px 0 calc(12px + env(safe-area-inset-bottom,0px));border-top:1px solid var(--line);background:var(--bg)}
html:root body .modal #suppcard .cwfoot .efi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:1;min-width:0}
html:root body .modal #suppcard .cwfoot .efi b:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block;font-size:1.1rem;font-family:var(--f-display)}
html:root body .modal #suppcard .cwfoot .efi small:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block;color:var(--muted);font-size:.8rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html:root body .modal #suppcard .cwfoot [hidden]:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:none!important}
html.kb-open:root body .modal #suppcard .cwfoot:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:none}
html:root body .modal #suppcard[data-cwstep="3"] .cwfoot .efi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:none}
html:root body .modal #suppcard[data-cwstep="3"] .cwfoot #cwsave:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:1;justify-content:center}

/* v1151 · «Por pagar» como calendario de pagos (maqueta B) y detalle de una compra (maqueta A) */
html:root body #paycard .cpp-hd:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:var(--surface);border:1px solid var(--line);border-radius:24px;padding:14px;margin:0 0 4px}
html:root body #paycard .cpp-top:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;align-items:center;justify-content:space-between;gap:10px}
html:root body #paycard .cpp-top small:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block;color:var(--muted);font-size:.8rem;font-weight:600}
html:root body #paycard .cpp-top b:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block;font-family:var(--f-display);font-size:1.9rem;font-weight:800;letter-spacing:-.03em;line-height:1.1}
html:root body #paycard .cpp-top em:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){font-style:normal;font-size:.72rem;font-weight:800;padding:4px 10px;border-radius:999px;background:color-mix(in srgb,#dc2626 16%,var(--surface));color:#dc2626}
html:root body #paycard .cpp-chips:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;gap:8px;margin-top:12px;flex-wrap:nowrap;overflow:hidden}
html:root body #paycard .cpp-chip:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){border:1px solid var(--line);background:var(--surface);color:var(--fg);border-radius:999px;padding:9px 14px;font:800 .8rem var(--f-body);white-space:nowrap;cursor:pointer}
html:root body #paycard .cpp-chip b:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){margin-left:4px;opacity:.7}
html:root body #paycard .cpp-chip.on:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:var(--fg);color:var(--bg);border-color:var(--fg)}
html:root body #paycard #plist:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;flex-direction:column;gap:10px;margin-top:10px}
html:root body #paycard .cpp-r:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;align-items:stretch;gap:12px}
html:root body #paycard .cpp-r>i:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){width:54px;flex:none;border-radius:18px;display:flex;flex-direction:column;align-items:center;justify-content:center;font-style:normal;background:color-mix(in srgb,var(--accent) 14%,var(--surface))}
html:root body #paycard .cpp-r>i b:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){font-family:var(--f-display);font-size:1.35rem;font-weight:800;line-height:1.1}
html:root body #paycard .cpp-r>i span:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){font-size:.68rem;font-weight:800;text-transform:lowercase}
html:root body #paycard .cpp-r>i.warn:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:color-mix(in srgb,#f59e0b 22%,var(--surface))}
html:root body #paycard .cpp-r>i.bad:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:color-mix(in srgb,#dc2626 18%,var(--surface))}
html:root body #paycard .cpp-c:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:1;min-width:0;background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:12px 14px}
html:root body #paycard .cpp-c>b:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block;font:800 .95rem/1.25 var(--f-body)}
html:root body #paycard .cpp-l:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:4px}
html:root body #paycard .cpp-l span:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){font-size:.8rem;color:var(--muted)}html:root body #paycard .cpp-l span.bad:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){color:#dc2626;font-weight:700}
html:root body #paycard .cpp-l b:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){font:800 1rem var(--f-body)}
html:root body #paycard .cpp-b:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;gap:8px;margin-top:10px}
html:root body #paycard .cpp-b .btn:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){height:34px;min-height:0;padding:0 16px;font-size:.82rem;justify-content:center}
html:root body #paycard .cpp-b .cpp-pay:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:1}
html:root body #paycard #plist>.empty:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){text-align:center;padding:22px 10px;color:var(--muted);border:1px dashed var(--line);border-radius:22px}
/* detalle de una compra */
html:root body .modal.cpdbox>.dlg.sheetdlg:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;flex-direction:column;height:92dvh;max-height:92dvh;overflow:hidden;padding-bottom:0}
html:root body .modal.cpdbox .sheethd:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:none}
html:root body .modal.cpdbox .cpd-body:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;touch-action:pan-y;padding:0 0 14px}
html:root body .modal.cpdbox .cpd-sub:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){color:var(--muted);font-size:.85rem;margin:0 2px 10px}
html:root body .modal.cpdbox .cpd-hero:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:#0b0f0e;color:#fff;border-radius:28px;padding:14px 18px}
html:root body .modal.cpdbox .cpd-ht:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;align-items:center;justify-content:space-between;color:#9fb0a8;font-size:.85rem}
html:root body .modal.cpdbox .cpd-ht em:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){font-style:normal;font-size:.72rem;font-weight:800;padding:4px 10px;border-radius:999px;background:#fdecc8;color:#7a4a05}
html:root body .modal.cpdbox .cpd-ht em.bad:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:#fde5e3;color:#dc2626}html:root body .modal.cpdbox .cpd-ht em.ok:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:#e3f5e9;color:#15803d}
html:root body .modal.cpdbox .cpd-big:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block;font-family:var(--f-display);font-size:2.2rem;font-weight:800;letter-spacing:-.03em;margin:2px 0 10px;color:#fff}
html:root body .modal.cpdbox .cpd-bar:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){height:8px;border-radius:5px;background:#26302c;overflow:hidden}
html:root body .modal.cpdbox .cpd-bar i:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block;height:100%;background:var(--accent)}
html:root body .modal.cpdbox .cpd-bl:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;justify-content:space-between;margin-top:6px;font-size:.75rem;color:#9fb0a8}
html:root body .modal.cpdbox .cpd-ret:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){margin-top:8px;font-size:.8rem;color:#9fb0a8}
html:root body .modal.cpdbox .cpd-h:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){margin:14px 4px 6px;font-family:var(--f-display)}html:root body .modal.cpdbox .cpd-h b:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){font-size:1rem;font-weight:800}
html:root body .modal.cpdbox .cpd-card:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:var(--surface);border:1px solid var(--line);border-radius:24px;padding:2px 12px}
html:root body .modal.cpdbox .cpd-li:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;align-items:center;gap:12px;padding:10px 2px}
html:root body .modal.cpdbox .cpd-li+.cpd-li:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){border-top:1px solid var(--line)}
html:root body .modal.cpdbox .cpd-li>i,html:root body .modal.cpdbox .cpd-ph>i:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){width:38px;height:38px;border-radius:50%;display:grid;place-items:center;flex:none;background:color-mix(in srgb,var(--accent) 14%,var(--surface))}
html:root body .modal.cpdbox .cpd-li>i svg,html:root body .modal.cpdbox .cpd-ph>i svg:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){width:20px;height:20px;display:block}
html:root body .modal.cpdbox .cpd-li>span:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
html:root body .modal.cpdbox .cpd-li>span b:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){font:800 .9rem/1.25 var(--f-body)}html:root body .modal.cpdbox .cpd-li>span small:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){color:var(--muted);font-size:.78rem}
html:root body .modal.cpdbox .cpd-li>b:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){font:800 .9rem var(--f-body)}
html:root body .modal.cpdbox .cpd-none:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){padding:12px 4px;color:var(--muted);font-size:.85rem}
html:root body .modal.cpdbox .cpd-ph:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;align-items:center;gap:12px;margin-top:10px;padding:10px 12px}html:root body .modal.cpdbox .cpd-ph>b:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:1;font:800 .9rem var(--f-body)}
html:root body .modal.cpdbox .cpd-pay:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){margin:12px 0 0;padding:14px;border:1px solid var(--line);border-radius:24px;background:var(--surface);display:flex;flex-direction:column;gap:10px}
html:root body .modal.cpdbox .cpd-pay .row:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;gap:8px;flex-wrap:nowrap}
html:root body .modal.cpdbox .cpd-foot:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;flex:none;align-items:center;gap:10px;padding:10px 0 calc(12px + env(safe-area-inset-bottom,0px));border-top:1px solid var(--line);background:var(--bg)}
html:root body .modal.cpdbox .cpd-main:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:1;justify-content:center;height:50px}
html:root body .modal.cpdbox .cpd-more:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){width:50px;height:50px;flex:none;border-radius:50%;border:1.5px solid var(--line);background:var(--surface);display:grid;place-items:center;cursor:pointer}
html:root body .modal.cpdbox .cpd-more svg:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){width:24px;height:24px}
html.kb-open:root body .modal.cpdbox .cpd-foot:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:none}
html:root body .modal.cpdbox .cpd-pay .btn:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){white-space:nowrap;flex:1;justify-content:center}
html:root body .modal.cpdbox .cpd-more svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m):not(#_n){display:block!important;width:26px!important;height:26px!important}
/* v1152 · «Ver más detalle» en tres pestañas (maqueta B) */
html:root body .rpdt-rest .rpdt-hd:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){padding:14px 4px 8px}
html:root body .rpdt-rest .rpdt-hd b:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){font-family:var(--f-display);font-size:1.5rem;font-weight:800;letter-spacing:-.02em}
html:root body .rpdt-rest .rpdt-tabs:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){display:flex;gap:8px;margin:2px 0 12px;overflow:hidden}
html:root body .rpdt-rest .rpdt-tabs>button:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){border:1px solid var(--line);background:var(--surface);color:var(--fg);border-radius:999px;padding:9px 16px;font:800 .85rem var(--f-body);cursor:pointer;white-space:nowrap}
html:root body .rpdt-rest .rpdt-tabs>button.on:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){background:var(--fg);color:var(--bg);border-color:var(--fg)}
html:root body .rpdt-rest .rpdt-body>section.card:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){border-radius:24px;margin:0 0 10px}
html:root body .rpdt-rest .rpdt-body>section.card>h2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){font-family:var(--f-display);font-size:1.05rem;font-weight:800;letter-spacing:-.01em}
html:root body .rpdt-rest .empty:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){text-align:center;padding:22px 10px;color:var(--muted);border:1px dashed var(--line);border-radius:22px}
/* v1154 · el título fijo de las hojas tiene fondo propio: ya no se monta sobre lo que se desplaza debajo (Stock bajo y pedido sugerido) */
html:root body .modal:not(:has(#pform)) .sheetdlg>.sheethd:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:inherit!important}

/* v1155 · «Por pedir» (maqueta A) y «Solo sumar stock» (maqueta A): lista que se desplaza y barra negra fija abajo. Solo dentro de la hoja. */
.lwbar,.esbar,.lwhint{display:none}
html:root body .modal:is(.lowsheet,.essheet)>.dlg.sheetdlg:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;flex-direction:column;height:92dvh;max-height:92dvh;overflow:hidden;padding-bottom:0}
html:root body .modal:is(.lowsheet,.essheet)>.dlg>.card:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){margin-top:0!important;display:flex;flex-direction:column;flex:1 1 auto;min-height:0;overflow:hidden;padding-bottom:0}
html:root body .modal.lowsheet #lowcard>h2,html:root body .modal.essheet #entrycard>h2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:none}
html:root body .modal:is(.lowsheet,.essheet) :is(.lwscroll,.esscroll):not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;touch-action:pan-y;padding-bottom:12px}
html:root body .modal.lowsheet :is(#lowsum,#lowact,#lowtools,#lowcard>.lwscroll>details.more):not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:none!important}
html:root body .modal.lowsheet .lwhint:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block;color:var(--muted);font-size:.8rem;margin:0 2px 8px}
html:root body .modal.essheet #esave:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:none!important}
html:root body .modal.lowsheet .lowrow:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;align-items:center;gap:10px}
html:root body .modal.lowsheet .lwq:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:inline-flex;align-items:center;gap:2px;flex:none;border:1px solid var(--line);background:var(--surface);border-radius:999px;padding:3px}
html:root body .modal.lowsheet .lwq button:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){border:0;background:transparent;color:var(--fg);min-height:0;height:34px;border-radius:999px;font:800 1.05rem var(--f-body);cursor:pointer;padding:0}
html:root body .modal.lowsheet .lwq .lwd:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){width:34px;color:var(--muted)}
html:root body .modal.lowsheet .lwq .lwn:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){min-width:34px;width:auto;padding:0 6px;font-size:1rem}
html:root body .modal.lowsheet .lwq .lwn b:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){font-weight:800}
html:root body .modal:is(.lowsheet,.essheet) :is(.lwbar,.esbar):not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block;flex:none;background:#0b0f0e;color:#fff;border-radius:30px;padding:12px 14px;margin:8px 0 calc(10px + env(safe-area-inset-bottom,0px))}
html:root body .modal:is(.lowsheet,.essheet) :is(.lwbar,.esbar)[hidden]:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:none}
html:root body .modal:is(.lowsheet,.essheet) .lwt:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;align-items:center;justify-content:space-between;gap:10px}
html:root body .modal:is(.lowsheet,.essheet) .lwt b:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block;font:800 .98rem var(--f-body);color:#fff}
html:root body .modal:is(.lowsheet,.essheet) .lwt small:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block;color:#9fb0a8;font-size:.8rem}
html:root body .modal.lowsheet .lwmore:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){width:40px;height:40px;border-radius:50%;border:0;background:#1c2a24;display:grid;place-items:center;flex:none;cursor:pointer;padding:0}
html:root body .modal.lowsheet .lwmore svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block!important;width:24px!important;height:24px!important}
html:root body .modal.lowsheet .lwb:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;gap:8px;margin-top:10px}
html:root body .modal.lowsheet .lwsee:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:1;justify-content:center;height:44px;background:#fff;color:#0b0f0e;font-size:.95rem}
html:root body .modal.lowsheet .lwwa:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){height:44px;background:#25d366;color:#fff;display:inline-flex;align-items:center;gap:6px;padding:0 16px;border-radius:999px;font-weight:800;text-decoration:none}
html:root body .modal.lowsheet .lwwa.off:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){opacity:.45;pointer-events:none}
html:root body .modal.lowsheet .lwwa svg:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){width:18px;height:18px}
html:root body .modal.essheet .esgo:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){height:44px;padding:0 22px;background:#fff;color:#0b0f0e;font-size:.95rem;justify-content:center;flex:none}
html:root body .modal.essheet .esgo[disabled]:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){opacity:.5}
html.kb-open:root body .modal:is(.lowsheet,.essheet) :is(.lwbar,.esbar):not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:none}
html:root body .modal.lowsheet .lwsee:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m):not(#_n){background:#fff!important;color:#0b0f0e!important}
html:root body .modal.lowsheet .lwmore:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m):not(#_n){color:#fff}
html:root body .modal.lowsheet .lwmore svg.oi .m:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m):not(#_n){stroke:#fff}
html:root body .modal.essheet .esgo:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m):not(#_n){background:#fff!important;color:#0b0f0e!important}
/* v1156 · «Solo sumar stock»: la lista de productos que salen al buscar tenía la letra en 0 (heredaba el font-size:0 con que se esconde la palabra «Producto») y se veían cajas en blanco */
@media (max-width:1099px){html:root body #entrycard .psfield .psopt:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){font-size:1rem;font-weight:600;color:var(--fg)}html:root body #entrycard .psfield .psopt .num:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){font-size:.82rem;font-weight:500}}
/* v1158 · todas las hojas dejan ver la pantalla de atrás: antes 7 hojas (lista de productos, cierre de caja, movimientos de caja, orden de servicio, catálogo, cotización y cita) ocupaban casi toda la pantalla y la tapaban */
@media (max-width:1099px){html:root body .modal.sheetov:not(.jchat)>.dlg.sheetdlg:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){max-height:min(92dvh,calc(100% - 12px))!important}} /* v1159: con el teclado abierto la ventana mide solo lo que se ve (100 % = entre arriba y el teclado) y la hoja se ajusta a eso; antes seguía midiendo el 92 % de la pantalla y se salía por arriba (no dejaba ver el campo donde escribes) */
/* v1158 · «Importar productos»: el tope de alto estaba en toda la ventana (no en la hoja) y la dejaba pegada arriba con la pantalla de atrás a medias */
@media (max-width:1099px){html:root body .modal.imsheet:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){max-height:none;justify-content:flex-end}}
/* v1160 · íconos propios de Cuadra en el bloque de agregar productos */
html:root body :is(#cadd,#eadd,#cbadd,#ladd):not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:inline-flex;align-items:center;justify-content:center;gap:8px}
html:root body :is(#cadd,#eadd,#cbadd,#ladd)>svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block!important;width:22px;height:22px;flex:none}
html:root body [data-imeiadd]:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:inline-flex;align-items:center;gap:8px}
html:root body [data-imeiadd]>svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block!important;width:20px;height:20px;flex:none}
html:root body [data-imeidel]:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:inline-grid;place-items:center;width:44px;min-width:44px;padding:0;border-radius:50%}
html:root body [data-imeidel]>svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block!important;width:20px;height:20px}
html:root body .btn.scanbtn>svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block!important;width:26px;height:26px}
html:root body [data-vfor]:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:inline-flex;align-items:center;justify-content:center;gap:8px}
html:root body [data-vfor]>svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block!important;width:20px;height:20px;flex:none}
/* v1160 · «En esta compra»: cada producto se puede corregir (cantidad con − y +, costo tocándolo) */
html:root body #clines .cpline:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block;padding:10px 0;border:0;border-top:1px solid var(--line);background:none}
html:root body #clines .cpline:first-child:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){border-top:0}
html:root body #clines .cpl-h:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;align-items:center;justify-content:space-between;gap:10px}
html:root body #clines .cpl-n:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){min-width:0;flex:1}
html:root body #clines .cpl-n b:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block;font:800 .95rem/1.25 var(--f-body)}
html:root body #clines .cpl-n small:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){color:var(--muted);font-size:.78rem}
html:root body #clines .cpl-x:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){width:36px;height:36px;border-radius:50%;border:0;background:color-mix(in srgb,#dc2626 14%,var(--surface));display:grid;place-items:center;flex:none;cursor:pointer;padding:0}
html:root body #clines .cpl-x svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block!important;width:20px;height:20px}
html:root body #clines .cpl-r:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;align-items:center;gap:8px;margin-top:8px;flex-wrap:wrap}
html:root body #clines .cpl-st:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:inline-flex;align-items:center;gap:2px;border:1px solid var(--line);background:var(--surface);border-radius:999px;padding:3px}
html:root body #clines .cpl-st button:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){width:34px;height:34px;min-height:0;border:0;border-radius:50%;background:transparent;color:var(--fg);font:800 1.1rem var(--f-body);padding:0;cursor:pointer}
html:root body #clines .cpl-st b:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){min-width:30px;text-align:center;font-weight:800}
html:root body #clines .cpl-q:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){padding:0 6px}
html:root body #clines .cpl-t:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){color:var(--muted)}
html:root body #clines .cpl-cost:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:0 12px;border-radius:999px;border:1.5px solid var(--accent);background:color-mix(in srgb,var(--accent) 10%,var(--surface));color:var(--fg);font:800 .95rem var(--f-body);cursor:pointer}
html:root body #clines .cpl-cost svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block!important;width:18px;height:18px}
html:root body #clines .cpl-sum:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){margin-left:auto;font-weight:800}
html:root body #clines .cpl-old:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){margin-top:6px;font-size:.76rem;color:#b45309}
/* v1163 · Proveedores «B»: iniciales en círculo con el color del estado */
html:root body #cpview .cps-r>i:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){font:800 .9rem var(--f-body);font-style:normal}
html:root body #cpview .cps-r>i.bd:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:color-mix(in srgb,#dc2626 18%,var(--surface))}
html:root body #cpview .cps-r>i.w:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:color-mix(in srgb,#f59e0b 22%,var(--surface))}
html:root body #cpview .cpn-v small.bad:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){color:#dc2626;font-weight:700}
html:root body #cpview .cpn-v b.bad:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){color:#dc2626}
html:root body #cpview .cpn-v small:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block;color:var(--muted);font-size:.74rem;font-weight:500}

/* v1163 · Perfil del proveedor «C» (Juan): ✕ y editar, avatar, tres pestañas, filas de compras y barra de acciones abajo */
html:root body .modal.spsheet>.dlg.sheetdlg:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;flex-direction:column;height:min(92dvh,calc(100% - 12px));max-height:min(92dvh,calc(100% - 12px))!important;overflow:hidden!important;padding-bottom:0;width:100%}
html:root body .modal.spsheet #spbody:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;flex-direction:column;flex:1;min-height:0}
html:root body .modal.spsheet .sp2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;flex-direction:column;flex:1 1 auto;min-height:0}
html:root body .modal.spsheet .sp2-hd:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;align-items:center;gap:8px;margin:2px 0 4px;flex:none}
html:root body .modal.spsheet .sp2-ib:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){width:40px;height:40px;min-height:0;border-radius:50%;border:1px solid var(--line);background:var(--surface);display:grid;place-items:center;padding:0;cursor:pointer}
html:root body .modal.spsheet .sp2-ib svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block!important;width:20px;height:20px}
html:root body .modal.spsheet .sp2-id:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;align-items:center;gap:12px;flex:none;margin:2px 0 10px}
html:root body .modal.spsheet .sp2-av:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){width:52px;height:52px;border-radius:50%;display:grid;place-items:center;flex:none;background:color-mix(in srgb,var(--accent) 16%,var(--surface));font:800 1.1rem var(--f-body)}
html:root body .modal.spsheet .sp2-nm:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){min-width:0}
html:root body .modal.spsheet .sp2-nm h3:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){margin:0;font-family:var(--f-display);font-size:1.3rem;font-weight:800;letter-spacing:-.02em;line-height:1.15}
html:root body .modal.spsheet .sp2-sub:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){font-size:.85rem;color:var(--muted);margin-top:2px}
html:root body .modal.spsheet .sp2-sub b.warn:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){color:#b45309}html:root body .modal.spsheet .sp2-sub b.bad:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){color:#dc2626}
html:root body .modal.spsheet .sp2-tabs:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;gap:4px;flex:none;background:var(--field,#e4eae7);border-radius:999px;padding:4px;margin:0 0 10px}
html:root body .modal.spsheet .sp2-tabs>button:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:1;border:0;background:none;border-radius:999px;padding:10px 0;font:800 .82rem var(--f-body);color:var(--muted);cursor:pointer;min-height:0}
html:root body .modal.spsheet .sp2-tabs>button.on:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:var(--fg);color:var(--bg)}
html:root body .modal.spsheet .sp2-body:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;touch-action:pan-y;padding-bottom:12px}
html:root body .modal.spsheet .sp2-chips:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;gap:8px;margin:0 0 10px;flex-wrap:wrap}
html:root body .modal.spsheet .sp2-chips>button:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){border:1px solid var(--line);background:var(--surface);color:var(--fg);border-radius:999px;padding:8px 14px;font:800 .8rem var(--f-body);cursor:pointer;min-height:0}
html:root body .modal.spsheet .sp2-chips>button.on:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:var(--fg);color:var(--bg);border-color:var(--fg)}
html:root body .modal.spsheet .sp2-ct:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:12px 14px;margin-bottom:6px}
html:root body .modal.spsheet .sp2-info:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){font-size:.9rem;line-height:1.5;margin-bottom:8px}
html:root body .modal.spsheet .sp2-acts:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;gap:10px;margin:6px 0}
html:root body .modal.spsheet .sp2-a:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:1;display:flex;flex-direction:column;align-items:center;gap:5px;text-decoration:none;color:var(--fg);font:700 .78rem var(--f-body)}
html:root body .modal.spsheet .sp2-a i:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){width:46px;height:46px;border-radius:50%;display:grid;place-items:center;background:color-mix(in srgb,var(--accent) 14%,var(--surface))}
html:root body .modal.spsheet .sp2-a svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block!important;width:24px;height:24px}
html:root body .modal.spsheet .sp2-off:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){margin:14px 0 0;text-align:center}
html:root body .modal.spsheet .sp2-bar:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;flex:none;align-items:center;gap:10px;padding:10px 0 calc(12px + env(safe-area-inset-bottom,0px));border-top:1px solid var(--line);background:inherit}
html:root body .modal.spsheet .sp2-main:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:1;justify-content:center;height:50px}
html:root body .modal.spsheet .sp2-sec:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:1;height:50px;justify-content:center;gap:8px;display:inline-flex;align-items:center}
html:root body .modal.spsheet .sp2-sec svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block!important;width:20px;height:20px}
html:root body .modal.spsheet .sp2-more:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){width:50px;height:50px;flex:none;border-radius:50%;border:1.5px solid var(--line);background:var(--surface);display:grid;place-items:center;padding:0;cursor:pointer}
html:root body .modal.spsheet .sp2-more svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block!important;width:26px;height:26px}
html.kb-open:root body .modal.spsheet .sp2-bar:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:none}
/* filas de compras dentro del perfil */
html:root body #spbody .cpn-card:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:var(--surface);border:1px solid var(--line);border-radius:24px;padding:2px 12px}
html:root body #spbody .cpn-r:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;align-items:center;gap:12px;width:100%;border:0;background:transparent;color:var(--fg);padding:11px 2px;text-align:left;font:inherit;cursor:pointer}
html:root body #spbody .cpn-r+.cpn-r:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){border-top:1px solid var(--line)}
html:root body #spbody .cpn-r>i:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){width:42px;height:42px;border-radius:50%;display:grid;place-items:center;flex:none;background:color-mix(in srgb,var(--accent) 14%,var(--surface))}
html:root body #spbody .cpn-r>i.w:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:color-mix(in srgb,#f59e0b 22%,var(--surface))}html:root body #spbody .cpn-r>i.bd:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:color-mix(in srgb,#dc2626 18%,var(--surface))}
html:root body #spbody .cpn-r>i svg:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){width:22px;height:22px;display:block}
html:root body #spbody .cpn-m:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
html:root body #spbody .cpn-m b:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){font:800 .92rem/1.25 var(--f-body)}html:root body #spbody .cpn-m small:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){font:500 .8rem var(--f-body);color:var(--muted)}
html:root body #spbody .cpn-v:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;flex-direction:column;align-items:flex-end;gap:3px;flex:none}
html:root body #spbody .cpn-v b:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){font:800 .92rem var(--f-body)}
html:root body #spbody .cpn-v em:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){font-style:normal;font:800 .68rem var(--f-body);padding:3px 9px;border-radius:999px;white-space:nowrap}
html:root body #spbody .cpn-v em.ok:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:color-mix(in srgb,var(--accent) 16%,var(--surface));color:var(--accent)}
html:root body #spbody .cpn-v em.warn:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:color-mix(in srgb,#f59e0b 24%,var(--surface));color:var(--fg)}
html:root body #spbody .cpn-v em.bad:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:color-mix(in srgb,#dc2626 18%,var(--surface));color:#dc2626}
html:root body .modal.spsheet .sp2-sec:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){white-space:nowrap;font-size:.92rem;padding:0 10px;flex:1 1 0;min-width:0}
html:root body .modal.spsheet .sp2-sec span:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){white-space:nowrap}
html:root body .modal.spsheet .sp2-main:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:1 1 0;min-width:0;white-space:nowrap}
html:root body #cpview .cpn-acts.cpn-3:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){grid-template-columns:repeat(3,minmax(0,1fr))}

/* v1164 · Proveedores (celular): el botón «Filtros» sube a la fila de fichas (Todas · Por pagar · Filtros) y se quita la fila «1 compra» */
html:root body .modal.spsheet .sp2-chips>.fbtn:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){margin-left:auto;display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);background:var(--surface);color:var(--fg);border-radius:999px;padding:8px 14px;font:800 .8rem var(--f-body);min-height:0}

/* v1164 · perfil del proveedor, maqueta C (Juan 2026-11-27): ficha de contacto, franja de saldo con Abonar y movimientos */
html:root body .modal.spsheet .sp2-card:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:var(--surface);border:1px solid var(--line);border-radius:24px;padding:14px;margin:0 0 10px}
html:root body .modal.spsheet .sp2-card .sp2-id:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){margin:0 0 12px}
html:root body .modal.spsheet .sp2-abs:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;gap:8px}
html:root body .modal.spsheet .sp2-ab:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:1;display:inline-flex;align-items:center;justify-content:center;gap:6px;height:40px;border-radius:999px;border:0;background:var(--field,#eef1ef);color:var(--fg);font:800 .82rem var(--f-body);text-decoration:none;cursor:pointer;padding:0 8px;white-space:nowrap}
html:root body .modal.spsheet .sp2-ab svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block!important;width:18px;height:18px}
html:root body .modal.spsheet .sp2-debt:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;align-items:center;gap:12px;border-radius:24px;padding:12px 14px;margin:0 0 12px;background:#fdf3d8;color:#7a4a05}
html:root body .modal.spsheet .sp2-debt>div:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:1;min-width:0}
html:root body .modal.spsheet .sp2-debt small:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block;font-size:.8rem;font-weight:600}
html:root body .modal.spsheet .sp2-debt b:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block;font-family:var(--f-display);font-size:1.6rem;font-weight:800;letter-spacing:-.03em;line-height:1.15}
html:root body .modal.spsheet .sp2-debt.bad:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:#fde5e3;color:#b91c1c}
html:root body .modal.spsheet .sp2-debt.ok,.modal.spsheet .sp2-debt.off:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:color-mix(in srgb,var(--accent) 14%,var(--surface));color:var(--fg)}
html:root body .modal.spsheet .sp2-debt.ok b,.modal.spsheet .sp2-debt.off b:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){font-size:1rem;font-family:var(--f-body)}
html:root body .modal.spsheet .sp2-debt .btn:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:none;height:40px;width:auto}
html:root body .modal.spsheet .sp2-mh:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;align-items:center;gap:8px;margin:2px 0 8px}
html:root body .modal.spsheet .sp2-mh>b:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){font-size:1rem;margin-right:auto}
html:root body .modal.spsheet .sp2-sel:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);background:var(--surface);color:var(--fg);border-radius:999px;padding:8px 14px;font:800 .8rem var(--f-body);cursor:pointer;min-height:0}
html:root body .modal.spsheet .sp2-mh>.fbtn:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);background:var(--surface);color:var(--fg);border-radius:999px;padding:8px 14px;font:800 .8rem var(--f-body);min-height:0;margin:0}
html:root body .modal.spsheet .sp2-back:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:inline-flex;align-items:center;gap:8px;border:0;background:none;color:var(--fg);font:800 .9rem var(--f-body);padding:6px 0 10px;cursor:pointer}
html:root body .modal.spsheet .sp2-back svg.oi,.modal.spsheet .sp2-dat svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block!important;width:18px;height:18px}
html:root body .modal.spsheet .sp2-dat:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;align-items:center;justify-content:center;gap:8px;margin:14px auto 4px;border:1px solid var(--line);background:var(--surface);color:var(--fg);border-radius:999px;padding:10px 16px;font:800 .85rem var(--f-body);cursor:pointer}

/* v1165 · Nuevo proveedor, maqueta A (Juan 2026-11-27): Nombre y Teléfono y secciones que se abren; Guardar siempre abajo */
html:root body .modal.supfsheet>.dlg.sheetdlg:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;flex-direction:column;height:min(92dvh,calc(100% - 12px));max-height:min(92dvh,calc(100% - 12px));overflow:hidden;padding-bottom:0}
html:root body .modal.supfsheet>.dlg>.card:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){margin-top:0!important;display:flex;flex-direction:column;flex:1 1 auto;min-height:0;overflow:hidden;padding:0;border:0;background:none}
html:root body .modal.supfsheet #supformcard>h2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:none}
html:root body .modal.supfsheet .sfscroll:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;touch-action:pan-y;padding:4px 0 12px;display:flex;flex-direction:column;gap:10px}
html:root body .modal.supfsheet .sflbl:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){font:800 .72rem var(--f-body);letter-spacing:.04em;text-transform:uppercase;color:var(--muted);margin:10px 4px 2px}
html:root body .modal.supfsheet details.sfsec:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:var(--surface);border:1px solid var(--line);border-radius:24px;margin:8px 0 0;padding:0}
html:root body .modal.supfsheet details.sfsec>summary:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;align-items:center;gap:12px;padding:12px 14px;cursor:pointer;list-style:none;min-height:0}
html:root body .modal.supfsheet details.sfsec>summary::-webkit-details-marker:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:none}
html:root body .modal.supfsheet details.sfsec>summary::after:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){content:"›";margin-left:auto;font-size:1.4rem;color:var(--muted);transition:transform .15s}
html:root body .modal.supfsheet details.sfsec[open]>summary::after:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){transform:rotate(90deg)}
html:root body .modal.supfsheet details.sfsec>summary i:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){width:38px;height:38px;border-radius:50%;display:grid;place-items:center;flex:none;background:color-mix(in srgb,var(--accent) 16%,var(--surface))}
html:root body .modal.supfsheet details.sfsec>summary i svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block!important;width:20px;height:20px}
html:root body .modal.supfsheet details.sfsec>summary b:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block;font-size:.95rem}
html:root body .modal.supfsheet details.sfsec>summary small:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block;font-size:.8rem;color:var(--muted);font-weight:500}
html:root body .modal.supfsheet .sfin:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){padding:0 14px 14px;display:flex;flex-direction:column;gap:10px}
html:root body .modal.supfsheet .sfbar:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;flex:none;gap:8px;padding:10px 0 calc(12px + env(safe-area-inset-bottom,0px))}
html:root body .modal.supfsheet .sfbar #supsave:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:1;justify-content:center;height:50px}
html:root body .modal.supfsheet .sfbar #supcancel:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:none}
html:root body html.kb-open:root body .modal.supfsheet .sfbar:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){padding-bottom:8px}

/* v1166 · Importar y Exportar proveedores (maqueta C): vista previa con ✓ o aviso por fila */
html:root body .modal.sisheet>.dlg.sheetdlg:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;flex-direction:column;max-height:min(92dvh,calc(100% - 12px));overflow:hidden;padding-bottom:0}
html:root body .modal.sisheet .sibody:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:1 1 auto;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;padding:4px 0 12px;display:flex;flex-direction:column;gap:10px}
html:root body .modal.sisheet .sibar:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;flex:none;gap:8px;padding:10px 0 calc(12px + env(safe-area-inset-bottom,0px))}
html:root body .modal.sisheet .sibar .btn.primary:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:1;justify-content:center;height:50px}
html:root body .modal.sisheet .si-drop:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;flex-direction:column;align-items:center;gap:6px;border:2px dashed var(--line);background:none;border-radius:24px;padding:24px 16px;color:var(--fg);cursor:pointer;font:inherit}
html:root body .modal.sisheet .si-drop i:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){width:56px;height:56px;border-radius:50%;display:grid;place-items:center;background:color-mix(in srgb,var(--accent) 16%,var(--surface))}
html:root body .modal.sisheet i svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block!important;width:24px;height:24px}
html:root body .modal.sisheet .si-drop b:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){font-size:1rem}
html:root body .modal.sisheet .si-drop small,.modal.sisheet .si-card small,.modal.sisheet .si-r small:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block;font-size:.8rem;color:var(--muted);font-weight:500}
html:root body .modal.sisheet .si-card:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;align-items:center;gap:12px;background:var(--surface);border:1px solid var(--line);border-radius:24px;padding:12px 14px}
html:root body .modal.sisheet .si-card>i:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){width:40px;height:40px;border-radius:50%;display:grid;place-items:center;flex:none;background:color-mix(in srgb,var(--accent) 16%,var(--surface))}
html:root body .modal.sisheet .si-card>span:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:1;min-width:0}
html:root body .modal.sisheet .si-card b:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block;font-size:.92rem;overflow-wrap:anywhere}
html:root body .modal.sisheet .si-pill:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:none;border:1px solid var(--line);background:var(--surface);color:var(--fg);border-radius:999px;padding:8px 14px;font:800 .8rem var(--f-body);cursor:pointer;min-height:0}
html:root body .modal.sisheet .si-bd:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;gap:8px;flex-wrap:wrap}
html:root body .modal.sisheet .si-bd b:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){border-radius:999px;padding:5px 11px;font:800 .78rem var(--f-body)}
html:root body .modal.sisheet .si-bd b.ok:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:color-mix(in srgb,var(--accent) 16%,var(--surface));color:var(--fg)}
html:root body .modal.sisheet .si-bd b.warn:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:#fdecc8;color:#7a4a05}
html:root body .modal.sisheet .si-r:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;align-items:center;gap:12px;padding:9px 14px;border-bottom:1px solid var(--line)}
html:root body .modal.sisheet .si-r:last-child:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){border-bottom:0}
html:root body .modal.sisheet .si-r>i:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){width:30px;height:30px;border-radius:50%;display:grid;place-items:center;flex:none;font:800 .85rem var(--f-body);font-style:normal;background:color-mix(in srgb,var(--accent) 16%,var(--surface))}
html:root body .modal.sisheet .si-r>i.w:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:#fdecc8;color:#7a4a05}
html:root body .modal.sisheet .si-r b:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block;font-size:.92rem}
html:root body .modal.sisheet .si-r>span:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){min-width:0}
html:root body .modal.sisheet .si-lbl:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){font:800 .72rem var(--f-body);letter-spacing:.04em;text-transform:uppercase;color:var(--muted);margin:4px 4px 0}
html:root body .modal.sisheet .si-chips:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;gap:8px;flex-wrap:wrap}
html:root body .modal.sisheet .si-chips button:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){border:1px solid var(--line);background:var(--surface);color:var(--fg);border-radius:999px;padding:9px 15px;font:800 .82rem var(--f-body);cursor:pointer;min-height:0}
html:root body .modal.sisheet .si-chips button.on:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:var(--fg);color:var(--bg);border-color:var(--fg)}
html:root body .modal.sisheet .si-wait:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){text-align:center;color:var(--muted);padding:30px 0}

/* v1167 · Clientes (celular), maqueta A */
#clview .cpn-acts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:14px 0 14px}
#clview .cpn-a{display:flex;flex-direction:column;align-items:center;gap:7px;border:0;background:transparent;color:var(--fg);padding:0;font:inherit;cursor:pointer;min-width:0}
#clview .cpn-a i{position:relative;width:56px;height:56px;border-radius:50%;display:grid;place-items:center;background:color-mix(in srgb,var(--accent) 14%,var(--surface))}
#clview .cpn-a i svg{width:28px;height:28px;display:block}
#clview .cpn-a i u{position:absolute;top:-3px;right:-3px;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:var(--accent);color:var(--accent-ink,#fff);font:800 .7rem/20px var(--f-body);text-align:center;text-decoration:none;border:2px solid var(--bg)}
#clview .cpn-a b{font:700 .78rem/1.2 var(--f-body);text-align:center}
#clview .cpn-al{display:flex;align-items:center;gap:12px;width:100%;border:1px solid var(--line);background:var(--surface);color:var(--fg);border-radius:22px;padding:12px 14px;text-align:left;font:inherit;cursor:pointer;margin:0 0 6px}
#clview .cpn-al i,#clview .cpn-r i{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;flex:none;background:color-mix(in srgb,var(--accent) 14%,var(--surface))}
#clview .cpn-al i{background:color-mix(in srgb,#f59e0b 22%,var(--surface))}
#clview .cpn-r i.w{background:color-mix(in srgb,#f59e0b 22%,var(--surface))}
#clview .cpn-al i svg,#clview .cpn-r i svg{width:22px;height:22px;display:block}
#clview .cpn-al span,#clview .cpn-m{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
#clview .cpn-al b,#clview .cpn-m b{font:800 .95rem/1.25 var(--f-body)}
#clview .cpn-al small,#clview .cpn-m small{font:500 .8rem/1.3 var(--f-body);color:var(--muted)}
#clview .cpn-h{display:flex;justify-content:space-between;align-items:baseline;margin:16px 4px 8px;font-family:var(--f-display)}
#clview .cpn-h b{font-size:1rem;font-weight:800}#clview .cpn-h span{font:700 .85rem var(--f-body);color:var(--muted)}
#clview .cpn-card{background:var(--surface);border:1px solid var(--line);border-radius:24px;padding:2px 12px}
#clview .cpn-r{display:flex;align-items:center;gap:12px;width:100%;border:0;background:transparent;color:var(--fg);padding:11px 2px;text-align:left;font:inherit;cursor:pointer}
#clview .cpn-r+.cpn-r{border-top:1px solid var(--line)}
#clview .cpn-v{display:flex;flex-direction:column;align-items:flex-end;gap:3px;flex:none}
#clview .cpn-v b{font:800 .92rem var(--f-body)}
#clview .cpn-v em{font-style:normal;font:800 .68rem var(--f-body);padding:3px 9px;border-radius:999px;white-space:nowrap}
#clview .cpn-v em.ok{background:color-mix(in srgb,var(--accent) 16%,var(--surface));color:var(--accent)}
#clview .cpn-v em.warn{background:color-mix(in srgb,#f59e0b 24%,var(--surface));color:var(--fg)}
#clview .cpn-v em.bad{background:color-mix(in srgb,#dc2626 18%,var(--surface));color:#dc2626}
#clview .cpn-empty{margin:14px 0;padding:18px;border:1px dashed var(--line);border-radius:22px;text-align:center;color:var(--muted);font-size:.9rem}
#clview .cpn-more{display:block;margin:14px auto 4px;border:1px solid var(--line);background:var(--surface);color:var(--fg);border-radius:999px;padding:11px 20px;font:700 .88rem var(--f-body);cursor:pointer}
#clview .cpn-a.warn i{background:color-mix(in srgb,#f59e0b 22%,var(--surface))}
#clview .cpn-a.warn i u{background:#f59e0b;color:#1a1200}
#clview .cpn-a.bad i{background:color-mix(in srgb,#dc2626 18%,var(--surface))}
#clview .cpn-a.bad i u{background:#dc2626;color:#fff}
html:root body #clview .cpn-v small.bad:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){color:#dc2626;font-weight:700}
html:root body #clview .cpn-v b.bad:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){color:#dc2626}
html:root body #clview .cpn-v small:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block;color:var(--muted);font-size:.74rem;font-weight:500}
html:root body #clview .cpn-acts.cpn-3:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){grid-template-columns:repeat(3,minmax(0,1fr))}
html:root body #tab-fiado.clv>#clipane:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:none!important}
html:root body #tab-fiado.clv>#cliseg:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:none!important}
html:root body #tab-fiado.clv>#clview:not([hidden]):not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block;margin-top:12px}
html:root body #clview .cpn-acts.cpn-5:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){grid-template-columns:repeat(5,minmax(0,1fr))}
html:root body #clview .cpn-acts.cpn-3:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){grid-template-columns:repeat(3,minmax(0,1fr))}
html:root body #clview .cpn-acts.cpn-2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){grid-template-columns:repeat(2,minmax(0,1fr))}
html:root body #clview .cpn-acts.cpn-1:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){grid-template-columns:repeat(1,minmax(0,1fr))}
html:root body #clview .cpn-r>i:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){font:800 .85rem var(--f-body);color:var(--fg);font-style:normal}
html:root body #clview .cpn-r>i.bd:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:color-mix(in srgb,#dc2626 18%,var(--surface))}
html:root body #clview .cl-srow:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;gap:8px;align-items:center;margin:0 0 4px}
html:root body #clview .cl-q:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:1;min-width:0;display:flex;align-items:center;gap:8px;background:var(--surface);border:1px solid var(--line);border-radius:999px;padding:0 14px;height:44px}
html:root body #clview .cl-q svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block!important;width:20px;height:20px;flex:none}
html:root body #clview .cl-q input:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:1;min-width:0;border:0;background:transparent;color:var(--fg);font:600 .92rem var(--f-body);outline:0;padding:0;height:auto;box-shadow:none}
html:root body #clview .cl-b:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){position:relative;flex:none;width:44px;height:44px;border-radius:50%;border:1px solid var(--line);background:var(--surface);display:grid;place-items:center;padding:0;cursor:pointer;color:var(--fg)}
html:root body #clview .cl-b svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block!important;width:22px;height:22px}
html:root body #clview .cl-b u:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){position:absolute;top:-3px;right:-3px;min-width:18px;height:18px;border-radius:999px;background:var(--accent);color:var(--accent-ink,#fff);font:800 .68rem/18px var(--f-body);text-align:center;text-decoration:none}
html:root body #clview .cl-more:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block;margin:12px auto 4px;border:1px solid var(--line);background:var(--surface);color:var(--fg);border-radius:999px;padding:10px 18px;font:800 .85rem var(--f-body);cursor:pointer}

/* v1167 · Clientes: sin el título grande repetido (ya está en el encabezado) */
html:root body #tab-fiado.clm>#clmhero:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j)::before{display:none!important}
html:root body #tab-fiado.clm>#clmhero:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){margin-top:6px!important}
html:root body #tab-fiado.clm>#clmhero:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){grid-template-rows:0 auto auto!important}

/* v1168 · Nuevo cliente con el mismo formulario que Nuevo proveedor (Juan 2026-11-27): Persona/Empresa, nombre y celular a la vista, secciones que se abren y Guardar fijo abajo */
html:root body .modal.cfsheet #cform>h2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:none}
html:root body .modal.cfsheet .cfold:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){margin:8px 0 0;padding:0;border-radius:24px}
html:root body .modal.cfsheet .cfold>summary:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){padding:12px 14px;min-height:0}
html:root body .modal.cfsheet .cfold>*:not(summary):not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){margin-left:14px;margin-right:14px}
html:root body .modal.cfsheet .cfold[open]:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){padding-bottom:14px}
html:root body .modal.cfsheet .cfi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){width:38px;height:38px;border-radius:50%;display:grid;place-items:center;flex:none;background:color-mix(in srgb,var(--accent) 16%,var(--surface))}
html:root body .modal.cfsheet .cfi svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block!important;width:20px;height:20px}
html:root body .modal.cfsheet .sfbar #cccancel:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:inline-flex!important}
html:root body .modal.cfsheet .sfscroll>.f:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){margin:0}
html:root body .modal.cfsheet .cpers button:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:inline-flex;align-items:center;justify-content:center;gap:8px}
html:root body .modal.cfsheet .cpers svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block!important;width:20px;height:20px}
html:root body .modal.cfsheet .cpers button.on svg.oi .m:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){stroke:var(--bg)!important}

/* v1169 · perfil del cliente, maqueta A: ficha, franja de saldo y movimientos */
html:root body .modal.cusheet #cpbody .cpn-card:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:var(--surface);border:1px solid var(--line);border-radius:24px;padding:2px 12px}
html:root body .modal.cusheet #cpbody .cpn-r:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;align-items:center;gap:12px;width:100%;border:0;background:transparent;color:var(--fg);padding:11px 2px;text-align:left;font:inherit;cursor:pointer}
html:root body .modal.cusheet #cpbody .cpn-r+.cpn-r:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){border-top:1px solid var(--line)}
html:root body .modal.cusheet #cpbody .cpn-r>i:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){width:42px;height:42px;border-radius:50%;display:grid;place-items:center;flex:none;background:color-mix(in srgb,var(--accent) 14%,var(--surface))}
html:root body .modal.cusheet #cpbody .cpn-r>i.w:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:color-mix(in srgb,#f59e0b 22%,var(--surface))}html:root body .modal.cusheet #cpbody .cpn-r>i.bd:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:color-mix(in srgb,#dc2626 18%,var(--surface))}
html:root body .modal.cusheet #cpbody .cpn-r>i svg:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){width:22px;height:22px;display:block}
html:root body .modal.cusheet #cpbody .cpn-m:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
html:root body .modal.cusheet #cpbody .cpn-m b:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){font:800 .92rem/1.25 var(--f-body)}html:root body .modal.cusheet #cpbody .cpn-m small:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){font:500 .8rem var(--f-body);color:var(--muted)}
html:root body .modal.cusheet #cpbody .cpn-v:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;flex-direction:column;align-items:flex-end;gap:3px;flex:none}
html:root body .modal.cusheet #cpbody .cpn-v b:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){font:800 .92rem var(--f-body)}
html:root body .modal.cusheet #cpbody .cpn-v em:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){font-style:normal;font:800 .68rem var(--f-body);padding:3px 9px;border-radius:999px;white-space:nowrap}
html:root body .modal.cusheet #cpbody .cpn-v em.ok:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:color-mix(in srgb,var(--accent) 16%,var(--surface));color:var(--accent)}
html:root body .modal.cusheet #cpbody .cpn-v em.warn:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:color-mix(in srgb,#f59e0b 24%,var(--surface));color:var(--fg)}
html:root body .modal.cusheet #cpbody .cpn-v em.bad:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:color-mix(in srgb,#dc2626 18%,var(--surface));color:#dc2626}
html:root body .modal.cusheet .cu-card:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:var(--surface);border:1px solid var(--line);border-radius:24px;padding:14px;margin:0 0 10px}
html:root body .modal.cusheet .cu-id:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;align-items:center;gap:12px;margin:0 0 12px}
html:root body .modal.cusheet .cu-av:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){width:54px;height:54px;border-radius:50%;display:grid;place-items:center;flex:none;background:color-mix(in srgb,var(--accent) 16%,var(--surface));font:800 1.1rem var(--f-body)}
html:root body .modal.cusheet .cu-nm h3:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){margin:0;font-family:var(--f-display);font-size:1.3rem;font-weight:800;letter-spacing:-.02em;line-height:1.15}
html:root body .modal.cusheet .cu-sub:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){font-size:.85rem;color:var(--muted);margin-top:2px}
html:root body .modal.cusheet .cu-abs:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;gap:8px}
html:root body .modal.cusheet .cu-ab:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:1;display:inline-flex;align-items:center;justify-content:center;gap:6px;height:40px;border-radius:999px;border:0;background:var(--field,#eef1ef);color:var(--fg);font:800 .82rem var(--f-body);text-decoration:none;cursor:pointer;padding:0 8px;white-space:nowrap}
html:root body .modal.cusheet .cu-ab svg.oi,.modal.cusheet .cu-back svg.oi,.modal.cusheet .cu-dat svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block!important;width:18px;height:18px}
html:root body .modal.cusheet .cu-debt:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;align-items:center;gap:12px;border-radius:24px;padding:12px 14px;margin:0 0 12px;background:#fdf3d8;color:#7a4a05}
html:root body .modal.cusheet .cu-debt>div:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:1;min-width:0}
html:root body .modal.cusheet .cu-debt small:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block;font-size:.8rem;font-weight:600}
html:root body .modal.cusheet .cu-debt b:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block;font-family:var(--f-display);font-size:1.6rem;font-weight:800;letter-spacing:-.03em;line-height:1.15}
html:root body .modal.cusheet .cu-debt.ok,.modal.cusheet .cu-debt.off:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:color-mix(in srgb,var(--accent) 14%,var(--surface));color:var(--fg)}
html:root body .modal.cusheet .cu-debt.ok b,.modal.cusheet .cu-debt.off b:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){font-size:1rem;font-family:var(--f-body)}
html:root body .modal.cusheet .cu-debt .btn:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:none;height:40px;width:auto}
html:root body .modal.cusheet .cu-mh:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;align-items:center;gap:8px;margin:2px 0 8px}
html:root body .modal.cusheet .cu-mh>b:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){font-size:1rem;margin-right:auto}
html:root body .modal.cusheet .cu-sel:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);background:var(--surface);color:var(--fg);border-radius:999px;padding:8px 14px;font:800 .8rem var(--f-body);cursor:pointer;min-height:0}
html:root body .modal.cusheet .cu-back:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:inline-flex;align-items:center;gap:8px;border:0;background:none;color:var(--fg);font:800 .9rem var(--f-body);padding:6px 0 10px;cursor:pointer}
html:root body .modal.cusheet .cu-dat:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;align-items:center;justify-content:center;gap:8px;margin:14px auto 4px;border:1px solid var(--line);background:var(--surface);color:var(--fg);border-radius:999px;padding:10px 16px;font:800 .85rem var(--f-body);cursor:pointer}
html:root body .modal.cusheet .cphd:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){margin-bottom:10px}

/* v1169 · Avisos (celular), maqueta A: una tarjeta por cliente con el mensaje y Enviar / Omitir */
html:root body #avipane .avn b:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:1;font-size:.98rem}
html:root body #avipane .avmsg:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:var(--field,#eef1ef);border-radius:16px;padding:10px 12px}
html:root body #avipane .avact:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;gap:8px;margin-top:10px}
html:root body #avipane .avact .btn:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){height:40px;min-height:0;justify-content:center;gap:6px;display:inline-flex;align-items:center}
html:root body #avipane .avact .btn.primary:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:var(--accent);color:var(--accent-ink,#fff)}
html:root body #avipane .avact svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block!important;width:16px;height:16px}
html:root body #avipane .mchip:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){border-radius:999px}
html:root body #avipane .avi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){padding:12px 0}

/* v1170 · Para escribirles (Cumpleaños y Posventa), maqueta A */
html:root body .modal.sisheet .si-tabs:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;gap:4px;background:var(--field,#e4eae7);border-radius:999px;padding:4px}
html:root body .modal.sisheet .si-tabs button:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:1;border:0;background:none;border-radius:999px;padding:10px 0;font:800 .82rem var(--f-body);color:var(--muted);cursor:pointer;min-height:0}
html:root body .modal.sisheet .si-tabs button.on:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:var(--fg);color:var(--bg)}
html:root body .modal.sisheet .si-w:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;align-items:center;gap:12px;padding:10px 14px;border-bottom:1px solid var(--line)}
html:root body .modal.sisheet .si-w:last-child:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){border-bottom:0}
html:root body .modal.sisheet .si-w>i:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){width:40px;height:40px;border-radius:50%;display:grid;place-items:center;flex:none;font:800 .85rem var(--f-body);font-style:normal;background:color-mix(in srgb,var(--accent) 16%,var(--surface))}
html:root body .modal.sisheet .si-w>span:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:1;min-width:0}
html:root body .modal.sisheet .si-w b:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block;font-size:.92rem}
html:root body .modal.sisheet .si-w small:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block;font-size:.8rem;color:var(--muted);font-weight:500}
html:root body .modal.sisheet .si-wa:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:none;display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 14px;border-radius:999px;background:var(--accent);color:var(--accent-ink,#fff);font:800 .8rem var(--f-body);text-decoration:none}
html:root body .modal.sisheet .si-wa svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block!important;width:16px;height:16px}
html:root body .modal.sisheet .cpn-card:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:var(--surface);border:1px solid var(--line);border-radius:24px;padding:2px 0}
html:root body .modal.sisheet .cpn-empty:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){margin:14px 0;padding:18px;border:1px dashed var(--line);border-radius:22px;text-align:center;color:var(--muted);font-size:.9rem}
html:root body .modal.cusheet .cuhd .cpib:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){width:40px;height:40px;border-radius:50%;border:1px solid var(--line);background:var(--surface)}
html:root body .modal.cusheet .cuhd svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block!important;width:20px;height:20px}

/* v1172 · detalle del cliente con más aire: sin ✕ ni «⋯» arriba; «Más» va junto a los círculos de acción */
html:root body .modal.cusheet .cu-top:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;flex-direction:column;align-items:center;text-align:center;gap:4px;margin:10px 0 26px}
html:root body .modal.cusheet .cu-top .cu-av:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){width:84px;height:84px;font-size:1.7rem;margin-bottom:10px}
html:root body .modal.cusheet .cu-top h3:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){margin:0;font-family:var(--f-display);font-size:1.6rem;font-weight:800;letter-spacing:-.02em}
html:root body .modal.cusheet .cu-circ:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;justify-content:center;gap:22px;margin:0 0 28px}
html:root body .modal.cusheet .cu-ci:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;flex-direction:column;align-items:center;gap:8px;border:0;background:none;color:var(--fg);text-decoration:none;font:700 .78rem var(--f-body);cursor:pointer;padding:0;min-width:56px}
html:root body .modal.cusheet .cu-ci i:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){width:54px;height:54px;border-radius:50%;display:grid;place-items:center;background:color-mix(in srgb,var(--accent) 16%,var(--surface))}
html:root body .modal.cusheet .cu-ci svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block!important;width:26px;height:26px}
html:root body .modal.cusheet .cu-debt:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){padding:18px 18px;border-radius:28px;margin:0 0 30px}
html:root body .modal.cusheet .cu-mh:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){margin:0 4px 12px}
html:root body .modal.cusheet .cu-mh>b:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){font-size:1.1rem}
html:root body .modal.cusheet .cpn-r:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){padding:14px 2px}
html:root body .modal.cusheet .cu-dat:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){margin-top:22px}
html:root body .modal.cusheet .cu-chips:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;gap:8px;margin:0 0 14px;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none}
html:root body .modal.cusheet .cu-chips>button:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:none;border:1px solid var(--line);background:var(--surface);color:var(--fg);border-radius:999px;padding:9px 15px;font:800 .82rem var(--f-body);cursor:pointer;min-height:0}
html:root body .modal.cusheet .cu-chips>button.on:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:var(--fg);color:var(--bg);border-color:var(--fg)}

/* v1172 · fichas del cliente con el diseño nuevo (Compras, Crédito, Servicios y Datos) */
html:root body .modal.cusheet .cu-chips>.fbtn:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){margin-left:auto;display:inline-flex;align-items:center;gap:6px;flex:none;border:1px solid var(--line);background:var(--surface);color:var(--fg);border-radius:999px;padding:9px 15px;font:800 .82rem var(--f-body);min-height:0}
html:root body .modal.cusheet .cu-k:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;justify-content:space-between;gap:12px;padding:12px 14px;border-bottom:1px solid var(--line);font-size:.92rem}
html:root body .modal.cusheet .cu-k:last-child:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){border-bottom:0}
html:root body .modal.cusheet .cu-k span:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){color:var(--muted)}
html:root body .modal.cusheet .cu-k b:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){text-align:right;font-weight:800}
html:root body .modal.cusheet .cu-tags:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){padding:10px 14px;display:flex;gap:6px;flex-wrap:wrap}
html:root body .modal.cusheet .cu-av2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){padding:12px 14px}
html:root body .modal.cusheet .cu-del:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:none;width:36px;height:36px;border-radius:50%;border:0;background:color-mix(in srgb,#dc2626 14%,var(--surface));display:grid;place-items:center;padding:0;cursor:pointer}
html:root body .modal.cusheet .cu-del svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block!important;width:18px;height:18px}
html:root body .modal.cusheet .cpn-m small+small:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){margin-top:0}
html:root body .modal.cusheet .cl-srow:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;gap:8px;align-items:center;margin:0 0 10px}
html:root body .modal.cusheet .cl-q:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:1;min-width:0;display:flex;align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:999px;padding:0 14px;height:44px}
html:root body .modal.cusheet .cl-q input:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:1;min-width:0;border:0;background:transparent;color:var(--fg);font:600 .92rem var(--f-body);outline:0;padding:0;height:auto;box-shadow:none}
html:root body .modal.cusheet .cl-srow .btn:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:none;height:44px;width:auto}
html:root body .modal.cusheet .cu-dat:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){text-decoration:none}

/* v1172 · hoja de Filtros del perfil: muestra todos los campos (buscar, período, estado, forma de pago) */
html:root body .modal.cpfsheet .fpanel .fbox>label:not([hidden]):not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block!important}
html:root body .modal.cpfsheet .fpanel .fbox>.fgrp:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block!important}
html:root body .modal.cpfsheet .fpanel .flbl:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block!important;margin:2px 4px 6px}
html:root body .modal.cpfsheet .fpanel .fbox>.fdates:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:grid!important}
html:root body .modal.cpfsheet .fpanel .fbox>label[hidden]:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:none!important}
html:root body .modal.cusheet .cu-mh>.fbtn:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);background:var(--surface);color:var(--fg);border-radius:999px;padding:8px 14px;font:800 .8rem var(--f-body);min-height:0;margin:0}
html:root body .modal.cusheet .cpn-h:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;justify-content:space-between;align-items:baseline;margin:22px 4px 8px;font-family:var(--f-display)}
html:root body .modal.cusheet .cpn-h b:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){font-size:1.05rem;font-weight:800}
html:root body .modal.cusheet .cpn-empty:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){margin:0 0 6px;padding:16px;border:1px dashed var(--line);border-radius:22px;text-align:center;color:var(--muted);font-size:.9rem}
html:root body .modal.cusheet .cu-bodyin>.cpn-h:first-child:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){margin-top:6px}

/* v1172 · perfil del proveedor: Pagos, Devoluciones y Datos con el diseño nuevo */
html:root body .modal.spsheet .cpn-h:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;justify-content:space-between;align-items:baseline;margin:22px 4px 8px;font-family:var(--f-display)}
html:root body .modal.spsheet .cpn-h b:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){font-size:1.05rem;font-weight:800}
html:root body .modal.spsheet .cpn-empty:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){margin:0 0 6px;padding:16px;border:1px dashed var(--line);border-radius:22px;text-align:center;color:var(--muted);font-size:.9rem}
html:root body .modal.spsheet .cu-k:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;justify-content:space-between;gap:12px;padding:12px 14px;border-bottom:1px solid var(--line);font-size:.92rem}
html:root body .modal.spsheet .cu-k:last-child:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){border-bottom:0}
html:root body .modal.spsheet .cu-k span:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){color:var(--muted)}
html:root body .modal.spsheet .cu-k b:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){text-align:right;font-weight:800}
html:root body .modal.spsheet .cu-info:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){padding:12px 14px;font-size:.92rem;line-height:1.6}
html:root body .modal.spsheet .cu-msg:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){margin:10px 0 0}
html:root body .modal.spsheet .cu-tg:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){color:var(--accent)!important;font-weight:700!important}
html:root body .modal.spsheet .cu-del:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:none;width:36px;height:36px;border-radius:50%;border:0;background:color-mix(in srgb,#dc2626 14%,var(--surface));display:grid;place-items:center;padding:0;cursor:pointer}
html:root body .modal.spsheet .cu-del svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block!important;width:18px;height:18px}
html:root body .modal.spsheet .cl-srow:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;gap:8px;align-items:center;margin:0 0 10px}
html:root body .modal.spsheet .cl-q:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:1;min-width:0;display:flex;align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:999px;padding:0 14px;height:44px}
html:root body .modal.spsheet .cl-q input:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:1;min-width:0;border:0;background:transparent;color:var(--fg);font:600 .92rem var(--f-body);outline:0;padding:0;height:auto;box-shadow:none}
html:root body .modal.spsheet .cl-srow .btn:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:none;height:44px;width:auto}
html:root body .modal.spsheet .cpn-m small+small:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){margin-top:0}
html:root body .modal:is(.spsheet,.cusheet) .cl-q input:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){border:0!important;background:transparent!important;border-radius:0!important;min-height:0!important}

/* v1172 · hoja de Filtros nueva (perfil de cliente y de proveedor) */
html:root body .modal.pfsheet .pf-q:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){margin:0}
html:root body .modal.pfsheet .pf-q svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block!important;width:20px;height:20px;flex:none;margin-right:8px}
html:root body .modal.pfsheet .pf-chips:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;gap:8px;flex-wrap:wrap}
html:root body .modal.pfsheet .pf-chips button:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){border:1px solid var(--line);background:var(--surface);color:var(--fg);border-radius:999px;padding:9px 15px;font:800 .82rem var(--f-body);cursor:pointer;min-height:0}
html:root body .modal.pfsheet .pf-chips button.on:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:var(--fg);color:var(--bg);border-color:var(--fg)}
html:root body .modal.pfsheet .pf-dates:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:grid;grid-template-columns:1fr 1fr;gap:10px}
html:root body .modal.pfsheet .pf-dates label:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;flex-direction:column;gap:2px;background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:10px 16px;margin:0}
html:root body .modal.pfsheet .pf-dates small:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){font:700 .72rem var(--f-body);color:var(--muted)}
html:root body .modal.pfsheet .pf-dates input:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){border:0!important;background:transparent!important;padding:0!important;min-height:0!important;height:auto!important;font:700 .95rem var(--f-body);color:var(--fg);box-shadow:none!important}
html:root body .modal.pfsheet .si-lbl:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){margin-top:8px}
html:root body .modal:is(.cusheet,.spsheet) .pf-btn:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:inline-flex;align-items:center;gap:6px;position:relative;border:1px solid var(--line);background:var(--surface);color:var(--fg);border-radius:999px;padding:8px 14px;font:800 .8rem var(--f-body);min-height:0;margin:0;cursor:pointer}
html:root body .modal:is(.cusheet,.spsheet) .pf-btn svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block!important;width:18px;height:18px}
html:root body .modal:is(.cusheet,.spsheet) .pf-btn u:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){min-width:18px;height:18px;border-radius:999px;background:var(--accent);color:var(--accent-ink,#fff);font:800 .68rem/18px var(--f-body);text-align:center;text-decoration:none;padding:0 5px}
html:root body .modal:is(.cusheet,.spsheet) .pf-btn u[hidden]:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:none}
html:root body .modal.pfsheet .cl-q:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:999px;padding:0 16px;height:48px}
html:root body .modal.pfsheet .cl-q input:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:1;min-width:0;border:0!important;background:transparent!important;color:var(--fg);font:600 .95rem var(--f-body);outline:0;padding:0!important;height:auto!important;min-height:0!important;box-shadow:none!important;border-radius:0!important}

/* v1173 · Servicio técnico (celular), maqueta A */
#svview .cpn-acts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:14px 0 14px}
#svview .cpn-a{display:flex;flex-direction:column;align-items:center;gap:7px;border:0;background:transparent;color:var(--fg);padding:0;font:inherit;cursor:pointer;min-width:0}
#svview .cpn-a i{position:relative;width:56px;height:56px;border-radius:50%;display:grid;place-items:center;background:color-mix(in srgb,var(--accent) 14%,var(--surface))}
#svview .cpn-a i svg{width:28px;height:28px;display:block}
#svview .cpn-a i u{position:absolute;top:-3px;right:-3px;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:var(--accent);color:var(--accent-ink,#fff);font:800 .7rem/20px var(--f-body);text-align:center;text-decoration:none;border:2px solid var(--bg)}
#svview .cpn-a b{font:700 .78rem/1.2 var(--f-body);text-align:center}
#svview .cpn-al{display:flex;align-items:center;gap:12px;width:100%;border:1px solid var(--line);background:var(--surface);color:var(--fg);border-radius:22px;padding:12px 14px;text-align:left;font:inherit;cursor:pointer;margin:0 0 6px}
#svview .cpn-al i,#svview .cpn-r i{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;flex:none;background:color-mix(in srgb,var(--accent) 14%,var(--surface))}
#svview .cpn-al i{background:color-mix(in srgb,#f59e0b 22%,var(--surface))}
#svview .cpn-r i.w{background:color-mix(in srgb,#f59e0b 22%,var(--surface))}
#svview .cpn-al i svg,#svview .cpn-r i svg{width:22px;height:22px;display:block}
#svview .cpn-al span,#svview .cpn-m{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
#svview .cpn-al b,#svview .cpn-m b{font:800 .95rem/1.25 var(--f-body)}
#svview .cpn-al small,#svview .cpn-m small{font:500 .8rem/1.3 var(--f-body);color:var(--muted)}
#svview .cpn-h{display:flex;justify-content:space-between;align-items:baseline;margin:16px 4px 8px;font-family:var(--f-display)}
#svview .cpn-h b{font-size:1rem;font-weight:800}#svview .cpn-h span{font:700 .85rem var(--f-body);color:var(--muted)}
#svview .cpn-card{background:var(--surface);border:1px solid var(--line);border-radius:24px;padding:2px 12px}
#svview .cpn-r{display:flex;align-items:center;gap:12px;width:100%;border:0;background:transparent;color:var(--fg);padding:11px 2px;text-align:left;font:inherit;cursor:pointer}
#svview .cpn-r+.cpn-r{border-top:1px solid var(--line)}
#svview .cpn-v{display:flex;flex-direction:column;align-items:flex-end;gap:3px;flex:none}
#svview .cpn-v b{font:800 .92rem var(--f-body)}
#svview .cpn-v em{font-style:normal;font:800 .68rem var(--f-body);padding:3px 9px;border-radius:999px;white-space:nowrap}
#svview .cpn-v em.ok{background:color-mix(in srgb,var(--accent) 16%,var(--surface));color:var(--accent)}
#svview .cpn-v em.warn{background:color-mix(in srgb,#f59e0b 24%,var(--surface));color:var(--fg)}
#svview .cpn-v em.bad{background:color-mix(in srgb,#dc2626 18%,var(--surface));color:#dc2626}
#svview .cpn-empty{margin:14px 0;padding:18px;border:1px dashed var(--line);border-radius:22px;text-align:center;color:var(--muted);font-size:.9rem}
#svview .cpn-more{display:block;margin:14px auto 4px;border:1px solid var(--line);background:var(--surface);color:var(--fg);border-radius:999px;padding:11px 20px;font:700 .88rem var(--f-body);cursor:pointer}
#svview .cpn-a.warn i{background:color-mix(in srgb,#f59e0b 22%,var(--surface))}
#svview .cpn-a.warn i u{background:#f59e0b;color:#1a1200}
#svview .cpn-a.bad i{background:color-mix(in srgb,#dc2626 18%,var(--surface))}
#svview .cpn-a.bad i u{background:#dc2626;color:#fff}
html:root body #svview .cpn-v small.bad:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){color:#dc2626;font-weight:700}
html:root body #svview .cpn-v b.bad:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){color:#dc2626}
html:root body #svview .cpn-v small:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block;color:var(--muted);font-size:.74rem;font-weight:500}
html:root body #svview .cpn-acts.cpn-3:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){grid-template-columns:repeat(3,minmax(0,1fr))}
html:root body #svview .cpn-acts.cpn-5:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){grid-template-columns:repeat(5,minmax(0,1fr))}
html:root body #svview .cpn-acts.cpn-3:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){grid-template-columns:repeat(3,minmax(0,1fr))}
html:root body #svview .cpn-acts.cpn-2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){grid-template-columns:repeat(2,minmax(0,1fr))}
html:root body #svview .cpn-acts.cpn-1:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){grid-template-columns:repeat(1,minmax(0,1fr))}
html:root body #svview .cpn-r>i:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){font:800 .85rem var(--f-body);color:var(--fg);font-style:normal}
html:root body #svview .cpn-r>i.bd:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:color-mix(in srgb,#dc2626 18%,var(--surface))}
html:root body #tab-servicio.svv>#svordcard:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:none!important}
html:root body #tab-servicio.svv>#svsum:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:none!important}
html:root body #tab-servicio.svv>#svseg:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:none!important}
html:root body #tab-servicio.svv>#svview:not([hidden]):not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block;margin-top:12px}
html:root body #svview .cpn-acts.cpn-4:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){grid-template-columns:repeat(4,minmax(0,1fr))}
html:root body #svview .cl-srow:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;gap:8px;align-items:center;margin:0 0 10px}
html:root body #svview .cl-q:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:1;min-width:0;display:flex;align-items:center;gap:8px;background:var(--surface);border:1px solid var(--line);border-radius:999px;padding:0 14px;height:44px}
html:root body #svview .cl-q svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block!important;width:20px;height:20px;flex:none}
html:root body #svview .cl-q input:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:1;min-width:0;border:0!important;background:transparent!important;color:var(--fg);font:600 .92rem var(--f-body);outline:0;padding:0;height:auto;box-shadow:none}
html:root body #svview .cl-b:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){position:relative;flex:none;width:44px;height:44px;border-radius:50%;border:1px solid var(--line);background:var(--surface);display:grid;place-items:center;padding:0;cursor:pointer;color:var(--fg)}
html:root body #svview .cl-b svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block!important;width:22px;height:22px}
html:root body #svview .cl-b u:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){position:absolute;top:-3px;right:-3px;min-width:18px;height:18px;border-radius:999px;background:var(--accent);color:var(--accent-ink,#fff);font:800 .68rem/18px var(--f-body);text-align:center;text-decoration:none}
html:root body #svview .cu-chips:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;gap:8px;margin:0 0 4px;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none}
html:root body #svview .cu-chips>button:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:none;border:1px solid var(--line);background:var(--surface);color:var(--fg);border-radius:999px;padding:9px 15px;font:800 .82rem var(--f-body);cursor:pointer;min-height:0}
html:root body #svview .cu-chips>button.on:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:var(--fg);color:var(--bg);border-color:var(--fg)}
html:root body #svview .cpn-empty:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){margin:14px 0;padding:18px;border:1px dashed var(--line);border-radius:22px;text-align:center;color:var(--muted);font-size:.9rem}
html:root body #svview .cpn-r>i:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){font-style:normal}
html:root body #svview .cpn-r>i.bd:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:color-mix(in srgb,#dc2626 18%,var(--surface))}
html:root body #tab-servicio.svm>#svhero2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j)::before{display:none!important}
html:root body #tab-servicio.svm>#svhero2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){margin-top:6px!important;grid-template-rows:0 auto auto!important}

/* v1173 · detalle de la orden (Servicio técnico), maqueta A */
html:root body .modal.svdsheet .cu-debt:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;align-items:center;gap:12px;border-radius:24px;padding:12px 14px;margin:0 0 12px;background:#fdf3d8;color:#7a4a05}
html:root body .modal.svdsheet .cu-debt>div:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:1;min-width:0}
html:root body .modal.svdsheet .cu-debt small:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block;font-size:.8rem;font-weight:600}
html:root body .modal.svdsheet .cu-debt b:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block;font-family:var(--f-display);font-size:1.6rem;font-weight:800;letter-spacing:-.03em;line-height:1.15}
html:root body .modal.svdsheet .cu-debt.ok,.modal.svdsheet .cu-debt.off:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:color-mix(in srgb,var(--accent) 14%,var(--surface));color:var(--fg)}
html:root body .modal.svdsheet .cu-debt.ok b,.modal.svdsheet .cu-debt.off b:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){font-size:1rem;font-family:var(--f-body)}
html:root body .modal.svdsheet .cu-debt .btn:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:none;height:40px;width:auto}
html:root body .modal.svdsheet .cu-circ:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;justify-content:center;gap:22px;margin:0 0 28px}
html:root body .modal.svdsheet .cu-ci:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;flex-direction:column;align-items:center;gap:8px;border:0;background:none;color:var(--fg);text-decoration:none;font:700 .78rem var(--f-body);cursor:pointer;padding:0;min-width:56px}
html:root body .modal.svdsheet .cu-ci i:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){width:54px;height:54px;border-radius:50%;display:grid;place-items:center;background:color-mix(in srgb,var(--accent) 16%,var(--surface))}
html:root body .modal.svdsheet .cu-ci svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block!important;width:26px;height:26px}
html:root body .modal.svdsheet .cu-debt:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){padding:18px 18px;border-radius:28px;margin:0 0 30px}
html:root body .modal.svdsheet .cu-k:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;justify-content:space-between;gap:12px;padding:12px 14px;border-bottom:1px solid var(--line);font-size:.92rem}
html:root body .modal.svdsheet .cu-k:last-child:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){border-bottom:0}
html:root body .modal.svdsheet .cu-k span:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){color:var(--muted)}
html:root body .modal.svdsheet .cu-k b:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){text-align:right;font-weight:800}
html:root body .modal.svdsheet #svdbody .cpn-card:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:var(--surface);border:1px solid var(--line);border-radius:24px;padding:2px 12px}
html:root body .modal.svdsheet #svdbody .cpn-r:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;align-items:center;gap:12px;width:100%;border:0;background:transparent;color:var(--fg);padding:11px 2px;text-align:left;font:inherit;cursor:pointer}
html:root body .modal.svdsheet #svdbody .cpn-r+.cpn-r:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){border-top:1px solid var(--line)}
html:root body .modal.svdsheet #svdbody .cpn-r>i:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){width:42px;height:42px;border-radius:50%;display:grid;place-items:center;flex:none;background:color-mix(in srgb,var(--accent) 14%,var(--surface))}
html:root body .modal.svdsheet #svdbody .cpn-r>i.w:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:color-mix(in srgb,#f59e0b 22%,var(--surface))}html:root body .modal.svdsheet #svdbody .cpn-r>i.bd:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:color-mix(in srgb,#dc2626 18%,var(--surface))}
html:root body .modal.svdsheet #svdbody .cpn-r>i svg:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){width:22px;height:22px;display:block}
html:root body .modal.svdsheet #svdbody .cpn-m:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
html:root body .modal.svdsheet #svdbody .cpn-m b:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){font:800 .92rem/1.25 var(--f-body)}html:root body .modal.svdsheet #svdbody .cpn-m small:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){font:500 .8rem var(--f-body);color:var(--muted)}
html:root body .modal.svdsheet #svdbody .cpn-v:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;flex-direction:column;align-items:flex-end;gap:3px;flex:none}
html:root body .modal.svdsheet #svdbody .cpn-v b:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){font:800 .92rem var(--f-body)}
html:root body .modal.svdsheet #svdbody .cpn-v em:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){font-style:normal;font:800 .68rem var(--f-body);padding:3px 9px;border-radius:999px;white-space:nowrap}
html:root body .modal.svdsheet #svdbody .cpn-v em.ok:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:color-mix(in srgb,var(--accent) 16%,var(--surface));color:var(--accent)}
html:root body .modal.svdsheet #svdbody .cpn-v em.warn:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:color-mix(in srgb,#f59e0b 24%,var(--surface));color:var(--fg)}
html:root body .modal.svdsheet #svdbody .cpn-v em.bad:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:color-mix(in srgb,#dc2626 18%,var(--surface));color:#dc2626}
html:root body .modal.svdsheet .cpn-h:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;justify-content:space-between;align-items:baseline;margin:22px 4px 8px;font-family:var(--f-display)}
html:root body .modal.svdsheet .cpn-h b:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){font-size:1.05rem;font-weight:800}
html:root body .modal.svdsheet .cpn-empty:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){margin:0 0 6px;padding:16px;border:1px dashed var(--line);border-radius:22px;text-align:center;color:var(--muted);font-size:.9rem}
html:root body .modal.svdsheet >.dlg.sheetdlg:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;flex-direction:column;height:min(92dvh,calc(100% - 12px));max-height:min(92dvh,calc(100% - 12px));overflow:hidden;padding-bottom:0}
html:root body .modal.svdsheet #svdbody:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;flex-direction:column;flex:1;min-height:0}
html:root body .modal.svdsheet .svd-scroll:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;touch-action:pan-y;padding:6px 0 14px}
html:root body .modal.svdsheet .svd-bar:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:none;padding:10px 0 calc(12px + env(safe-area-inset-bottom,0px));border-top:1px solid var(--line)}
html:root body .modal.svdsheet .svd-bar .btn:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){width:100%;justify-content:center;height:50px}
html:root body .modal.svdsheet .svd-top:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;flex-direction:column;align-items:center;text-align:center;gap:4px;margin:8px 0 18px}
html:root body .modal.svdsheet .svd-av:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){width:84px;height:84px;border-radius:50%;display:grid;place-items:center;background:color-mix(in srgb,var(--accent) 16%,var(--surface));margin-bottom:10px}
html:root body .modal.svdsheet .svd-av svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block!important;width:40px;height:40px}
html:root body .modal.svdsheet .svd-top h3:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){margin:0;font-family:var(--f-display);font-size:1.55rem;font-weight:800;letter-spacing:-.02em}
html:root body .modal.svdsheet .svd-sub:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){font-size:.88rem;color:var(--muted)}
html:root body .modal.svdsheet .svd-cl:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){border:0;background:none;padding:0;color:var(--fg);font:inherit;font-weight:800;text-decoration:underline;cursor:pointer}
html:root body .modal.svdsheet .svd-tags:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;gap:6px;justify-content:center;margin-top:6px}
html:root body .modal.svdsheet .svd-steps:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;gap:0;margin:0 0 20px}
html:root body .modal.svdsheet .svd-steps>div:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:1;display:flex;flex-direction:column;align-items:center;gap:6px;position:relative}
html:root body .modal.svdsheet .svd-steps>div>i:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){width:30px;height:30px;border-radius:50%;background:var(--field,#e4eae7);display:grid;place-items:center;font:800 .8rem var(--f-body);font-style:normal;color:var(--muted)}
html:root body .modal.svdsheet .svd-steps>div:nth-child(1)>i:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j)::before{content:"1"}
html:root body .modal.svdsheet .svd-steps>div:nth-child(2)>i:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j)::before{content:"2"}
html:root body .modal.svdsheet .svd-steps>div:nth-child(3)>i:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j)::before{content:"3"}
html:root body .modal.svdsheet .svd-steps>div:nth-child(4)>i:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j)::before{content:"4"}
html:root body .modal.svdsheet .svd-steps>div:nth-child(5)>i:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j)::before{content:"5"}
html:root body .modal.svdsheet .svd-steps>div.on>i:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:color-mix(in srgb,var(--accent) 22%,var(--surface));color:var(--fg)}
html:root body .modal.svdsheet .svd-steps>div.on:not(.cur)>i:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j)::before{content:"✓"}
html:root body .modal.svdsheet .svd-steps>div.cur>i:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:var(--accent);color:var(--accent-ink,#fff)}
html:root body .modal.svdsheet .svd-steps>div>span:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){font:700 .68rem var(--f-body);color:var(--muted)}
html:root body .modal.svdsheet .svd-steps>div.on>span:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){color:var(--fg)}
html:root body .modal.svdsheet .svd-fcard:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){padding:12px 14px}
html:root body .modal.svdsheet .svd-fcard .svd-form:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){padding:0}
html:root body .modal.svdsheet .cpn-h:first-child:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){margin-top:6px}
/* v1173 · Recibir un equipo con el formulario de Nuevo proveedor */
html:root body .modal.svfsheet #svform>h2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:none}
html:root body .modal.svfsheet .sfin:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){padding:0 14px 14px;display:flex;flex-direction:column;gap:10px}
html:root body .modal.svfsheet .sfbar #svcancel:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:inline-flex!important}
/* v1173 · mismo tamaño en todos los botones grandes de abajo (Guardar y Pasar a…) */
html:root body .modal :is(.sfbar,.svd-bar,.sibar) .btn.primary:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){height:50px!important;min-height:0!important;font-size:.95rem!important;line-height:1!important}
/* v1173 · tamaños de botones unificados: grandes de abajo 50 px, dentro de franjas 44 px */
html:root body .modal :is(.cwfoot,.cpd-foot,.cpdbox) .btn.primary:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){height:50px!important;min-height:0!important;font-size:.95rem!important}
html:root body .modal .btn.primary.cpd-main:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){height:50px!important;min-height:0!important;font-size:.95rem!important}
html:root body .modal :is(.cu-debt,.sp2-debt) .btn:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){height:44px!important;min-height:0!important;font-size:.9rem!important;padding:0 20px}

/* v1174 · Resumen del taller y Comisión de técnicos */
html:root body .modal.sisheet .cu-k:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;justify-content:space-between;gap:12px;padding:12px 14px;border-bottom:1px solid var(--line);font-size:.92rem}
html:root body .modal.sisheet .cu-k:last-child:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){border-bottom:0}
html:root body .modal.sisheet .cu-k span:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){color:var(--muted)}
html:root body .modal.sisheet .cu-k b:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){text-align:right;font-weight:800}
html:root body .modal.sisheet .cpn-h:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;justify-content:space-between;align-items:baseline;margin:20px 4px 8px;font-family:var(--f-display)}
html:root body .modal.sisheet .cpn-h b:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){font-size:1.05rem;font-weight:800}
html:root body .modal.sisheet .sd-tiles:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:grid;grid-template-columns:1fr 1fr;gap:10px}
html:root body .modal.sisheet .sd-t:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:14px 16px}
html:root body .modal.sisheet .sd-t small:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block;font:600 .78rem var(--f-body);color:var(--muted)}
html:root body .modal.sisheet .sd-t b:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block;font:800 1.5rem var(--f-display);letter-spacing:-.02em;margin-top:2px}
html:root body .modal.sisheet .sd-t.bad b:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){color:#dc2626}
html:root body .modal.sisheet .sc-v:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;flex-direction:column;align-items:flex-end;gap:6px;flex:none}
html:root body .modal.sisheet .sc-v b:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){font-size:.95rem}
html:root body .modal.sisheet .sc-pay:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){padding:4px 14px 14px;border-bottom:1px solid var(--line)}
html:root body .modal.sisheet .sc-act:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;gap:8px;margin-top:10px}
html:root body .modal.sisheet .sc-act .btn.primary:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:1;justify-content:center}
html:root body .modal.sisheet .pf-chips:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;gap:8px;flex-wrap:wrap}
html:root body .modal.sisheet .pf-chips button:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){border:1px solid var(--line);background:var(--surface);color:var(--fg);border-radius:999px;padding:9px 15px;font:800 .82rem var(--f-body);cursor:pointer;min-height:0}
html:root body .modal.sisheet .pf-chips button.on:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:var(--fg);color:var(--bg);border-color:var(--fg)}
/* v1175 · «Escanear varios» igual que «Agregar otro teléfono» */
.imeibox>[data-imeimany]{margin-top:10px;margin-left:0}
.imeibox>[data-imeiadd]{margin-right:8px}
html:root body [data-imeimany]:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:inline-flex;align-items:center;gap:8px}
html:root body [data-imeimany]>svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block!important;width:20px;height:20px;flex:none}
/* v1175 · «Escanear varios»: la lista muestra TODO lo leído (con su número) y se desliza */
html:root body .scanlist.all:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){max-height:28vh;overflow-y:auto;-webkit-overflow-scrolling:touch}
html:root body .scanlist .scn:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:none;min-width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:color-mix(in srgb,var(--accent) 16%,var(--surface));font:800 .78rem var(--f-body)}
/* v1175 · Escanear varios: aviso grande sobre la cámara (✓ y número, o el motivo) */
html:root body .scanwrap .scanbig:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:5;min-width:120px;padding:14px 24px;border-radius:28px;text-align:center;color:#fff;pointer-events:none;background:#16a34a;animation:scpop .28s cubic-bezier(.2,1.4,.4,1)}
html:root body .scanwrap .scanbig[hidden]:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:none}
html:root body .scanwrap .scanbig.warn:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:#f59e0b;color:#1a1200}
html:root body .scanwrap .scanbig.err:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:#dc2626}
html:root body .scanwrap .scanbig b:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block;font:800 2.4rem/1.05 var(--f-display);letter-spacing:-.02em}
html:root body .scanwrap .scanbig small:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block;font:800 .85rem var(--f-body);margin-top:2px}
@keyframes scpop{from{transform:translate(-50%,-50%) scale(.6);opacity:0}to{transform:translate(-50%,-50%) scale(1);opacity:1}}
html:root body .scancount.bump:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){animation:scbump .3s ease-out}
@keyframes scbump{0%{transform:scale(1)}40%{transform:scale(1.25)}100%{transform:scale(1)}}
@media (prefers-reduced-motion:reduce){html:root body .scanwrap .scanbig:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j),html:root body .scancount.bump:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){animation:none}}

/* v1176 · Comprobantes de la orden con miniaturas (igual que en ventas) */
html:root body .modal.svdsheet .vsd-prf:not(#_x):not(#_y){border-radius:24px;padding:14px 16px}
html:root body .modal.svdsheet .vsd-prf .prft:not(#_x):not(#_y){display:grid;grid-template-columns:40px 1fr;column-gap:12px;align-items:center;margin:0 0 12px;font-size:1rem}
html:root body .modal.svdsheet .vsd-prf .prft>svg.oi:not(#_x){display:block!important;grid-row:1/3;width:40px;height:40px;padding:8px;box-sizing:border-box;border-radius:50%;background:color-mix(in srgb,var(--accent) 14%,var(--surface))}
html:root body .modal.svdsheet .vsd-prf .prft .prfsub:not(#_x){display:block;grid-column:2;font-weight:500;font-size:.82rem;color:var(--muted)}
html:root body .modal.svdsheet .vsd-prf .prfrow:not(#_x){display:flex;flex-wrap:wrap;gap:10px;align-items:flex-start}
html:root body .modal.svdsheet .vsd-prf .prfrow>.hint{display:none}
html:root body .modal.svdsheet .vsd-prf .prflist:not(#_x){display:contents}
html:root body .modal.svdsheet .vsd-prf .prfit:not(#_x):not(#_y){width:84px;height:84px;padding:0;border-radius:18px;overflow:hidden;position:relative;display:block}
html:root body .modal.svdsheet .vsd-prf .prfit .prfth:not(#_x){width:100%;height:100%;flex:none;border:0;border-radius:0}
html:root body .modal.svdsheet .vsd-prf .prfit .prfm:not(#_x),html:root body .modal.svdsheet .vsd-prf .prfit .prfgo:not(#_x){display:none}
html:root body .modal.svdsheet .vsd-prf .prfadd:not(#_x):not(#_y){width:84px;height:84px;flex-direction:column;gap:2px;padding:0;border-radius:18px;border:2px dashed color-mix(in srgb,var(--fg) 28%,var(--line))!important;background:transparent!important;font-size:.72rem;font-weight:800;line-height:1.1;text-align:center}
html:root body .modal.svdsheet .vsd-prf .prfadd>svg:not(.oi):not(#_x){display:none!important}
html:root body .modal.svdsheet .vsd-prf .prfadd>svg.oi:not(#_x){display:block!important;width:28px;height:28px}
html:root body .modal.svdsheet .vsd-prf .prfadd>span:not(#_x){font-size:.72rem}

/* v1176 · Repuestos y mano de obra (A · Tarjeta con filas) */
html:root body .svw .cpn-h:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;align-items:center;justify-content:space-between;margin:18px 4px 10px}
html:root body .svw .cpn-h b:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){font-size:1.05rem}
html:root body .svw-acts:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;gap:8px}
html:root body .svw-c:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){width:38px;height:38px;border-radius:50%;display:grid;place-items:center;padding:0;border:1px solid var(--line);background:var(--surface);color:var(--fg);cursor:pointer}
html:root body .svw-c.pri:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:color-mix(in srgb,var(--accent) 16%,var(--surface));border-color:transparent}
html:root body .svw-c svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j),html:root body .svw-x svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block!important;width:18px;height:18px}
html:root body .svw-r:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;align-items:center;gap:12px;padding:11px 2px}
html:root body .svw-r+.svw-r:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){border-top:1px solid var(--line)}
html:root body .svw-r>i:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j),html:root body .spp-i>i:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){width:40px;height:40px;border-radius:50%;display:grid;place-items:center;flex:none;background:color-mix(in srgb,var(--accent) 14%,var(--surface))}
html:root body .svw-r>i.w:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:color-mix(in srgb,#f59e0b 22%,var(--surface))}
html:root body .svw-r>i svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j),html:root body .spp-i>i svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block!important;width:22px;height:22px}
html:root body .svw-m:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:1;min-width:0;display:flex;flex-direction:column;text-align:left}
html:root body .svw-m b:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){font-size:.95rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html:root body .svw-m small:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){font-size:.8rem;color:var(--muted)}
html:root body .svw-x:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){width:30px;height:30px;border-radius:50%;display:grid;place-items:center;padding:0;border:0;background:color-mix(in srgb,#dc2626 12%,var(--surface));color:#dc2626;cursor:pointer;flex:none}
html:root body .svw-tot:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){margin-top:8px;padding:12px 14px}
html:root body .svw-t:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;justify-content:space-between;gap:10px}
html:root body .svw-t span:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){color:var(--muted)}
html:root body .svw-tot small:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block;margin-top:6px;color:var(--muted);font-size:.8rem}
html:root body .spp-s:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;align-items:center;gap:8px;border:1px solid var(--line);background:var(--surface);border-radius:999px;padding:0 14px;margin:10px 0}
html:root body .spp-s svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block!important;width:18px;height:18px}
html:root body .spp-s input:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:1;border:0!important;background:transparent!important;height:44px;outline:0;font:inherit;color:var(--fg)}
html:root body .spp-l:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){max-height:32vh;overflow:auto}
html:root body .spp-i:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;align-items:center;gap:12px;width:100%;border:0;background:transparent;color:var(--fg);padding:9px 6px;border-radius:16px;font:inherit;cursor:pointer}
html:root body .spp-i.on:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:color-mix(in srgb,var(--accent) 14%,var(--surface))}
html:root body .spp-q:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;align-items:center;gap:10px;margin:10px 0}
html:root body .spp-lb:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:1;font-weight:700}
html:root body .spp-b:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){width:40px;height:40px;border-radius:50%;border:0;background:var(--field,#eef1ef);color:var(--fg);font-size:1.2rem;font-weight:800;cursor:pointer}
html:root body .spp-q input:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){width:56px;text-align:center;height:40px;border-radius:999px;border:1px solid var(--line);background:var(--surface);font:inherit;font-weight:800;color:var(--fg)}
html:root body .svw .cpn-card:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:var(--surface);border:1px solid var(--line);border-radius:24px;padding:2px 12px}
html:root body .svw .cpn-empty:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){color:var(--muted);padding:12px 4px}

/* v1176 · Mi día del técnico (A · Tarjetas con botón rápido) */
html:root body #tab-servicio .md-top:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;flex-direction:column;margin:4px 4px 12px}
html:root body #tab-servicio .md-top h2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){margin:0;font-family:var(--f-display);font-size:1.6rem;font-weight:800;letter-spacing:-.02em}
html:root body #tab-servicio .md-top small:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){color:var(--muted);text-transform:capitalize}
html:root body #tab-servicio .md-hero:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:#0b0f0e;color:#fff;border:1px solid var(--line);border-radius:28px;padding:18px 20px;margin-bottom:14px}
html:root body #tab-servicio .md-hero>small:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block;color:#9fb0a8;font-size:.82rem}
html:root body #tab-servicio .md-hero>b:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block;font-family:var(--f-display);font-size:2.2rem;font-weight:800;letter-spacing:-.03em;line-height:1.15;margin:2px 0 8px}
html:root body #tab-servicio .md-pills:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;flex-wrap:wrap;gap:8px}
html:root body #tab-servicio .md-pills span:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:#1c2a24;color:#cfeedd;border-radius:999px;padding:5px 12px;font-size:.8rem;font-weight:700}
html:root body #tab-servicio .md-mes:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){margin-top:10px;color:#cfeedd;font-size:.85rem}#tab-servicio .md-mes b{color:#fff}
html:root body #tab-servicio .md-list:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:grid;gap:12px}
html:root body #tab-servicio .md-c:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:var(--surface);border:1px solid var(--line);border-radius:24px;padding:14px 16px}
html:root body #tab-servicio .md-h:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;align-items:center;gap:10px}
html:root body #tab-servicio .md-h b:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:1;min-width:0;font-size:1.05rem;font-weight:800}
html:root body #tab-servicio .mdp:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){border-radius:999px;padding:4px 12px;font-size:.75rem;font-weight:800;background:var(--field,#eef1ef);color:var(--muted)}
html:root body #tab-servicio .mdp.bad:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:#fde5e3;color:#b3261e}#tab-servicio .mdp.warn{background:#fdf0cf;color:#8a5a00}#tab-servicio .mdp.ok{background:#e3f5e9;color:#15803d}
html:root body #tab-servicio .md-s:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){color:var(--muted);font-size:.86rem;margin-top:3px}
html:root body #tab-servicio .md-b:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
html:root body #tab-servicio .md-b .btn:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:1 1 auto;height:46px;justify-content:center}
html:root body #tab-servicio .mdbox:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:grid;gap:10px;margin-top:12px;padding-top:12px;border-top:1px solid var(--line)}
html:root body #tab-servicio .md-top:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);margin:0}

/* v1177 · Cotizar (maqueta A: lista, detalle y formulario) */
#qview .cpn-acts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:14px 0 14px}
#qview .cpn-a{display:flex;flex-direction:column;align-items:center;gap:7px;border:0;background:transparent;color:var(--fg);padding:0;font:inherit;cursor:pointer;min-width:0}
#qview .cpn-a i{position:relative;width:56px;height:56px;border-radius:50%;display:grid;place-items:center;background:color-mix(in srgb,var(--accent) 14%,var(--surface))}
#qview .cpn-a i svg{width:28px;height:28px;display:block}
#qview .cpn-a i u{position:absolute;top:-3px;right:-3px;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:var(--accent);color:var(--accent-ink,#fff);font:800 .7rem/20px var(--f-body);text-align:center;text-decoration:none;border:2px solid var(--bg)}
#qview .cpn-a b{font:700 .78rem/1.2 var(--f-body);text-align:center}
#qview .cpn-al{display:flex;align-items:center;gap:12px;width:100%;border:1px solid var(--line);background:var(--surface);color:var(--fg);border-radius:22px;padding:12px 14px;text-align:left;font:inherit;cursor:pointer;margin:0 0 6px}
#qview .cpn-al i,#qview .cpn-r i{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;flex:none;background:color-mix(in srgb,var(--accent) 14%,var(--surface))}
#qview .cpn-al i{background:color-mix(in srgb,#f59e0b 22%,var(--surface))}
#qview .cpn-r i.w{background:color-mix(in srgb,#f59e0b 22%,var(--surface))}
#qview .cpn-al i svg,#qview .cpn-r i svg{width:22px;height:22px;display:block}
#qview .cpn-al span,#qview .cpn-m{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
#qview .cpn-al b,#qview .cpn-m b{font:800 .95rem/1.25 var(--f-body)}
#qview .cpn-al small,#qview .cpn-m small{font:500 .8rem/1.3 var(--f-body);color:var(--muted)}
#qview .cpn-h{display:flex;justify-content:space-between;align-items:baseline;margin:16px 4px 8px;font-family:var(--f-display)}
#qview .cpn-h b{font-size:1rem;font-weight:800}#qview .cpn-h span{font:700 .85rem var(--f-body);color:var(--muted)}
#qview .cpn-card{background:var(--surface);border:1px solid var(--line);border-radius:24px;padding:2px 12px}
#qview .cpn-r{display:flex;align-items:center;gap:12px;width:100%;border:0;background:transparent;color:var(--fg);padding:11px 2px;text-align:left;font:inherit;cursor:pointer}
#qview .cpn-r+.cpn-r{border-top:1px solid var(--line)}
#qview .cpn-v{display:flex;flex-direction:column;align-items:flex-end;gap:3px;flex:none}
#qview .cpn-v b{font:800 .92rem var(--f-body)}
#qview .cpn-v em{font-style:normal;font:800 .68rem var(--f-body);padding:3px 9px;border-radius:999px;white-space:nowrap}
#qview .cpn-v em.ok{background:color-mix(in srgb,var(--accent) 16%,var(--surface));color:var(--accent)}
#qview .cpn-v em.warn{background:color-mix(in srgb,#f59e0b 24%,var(--surface));color:var(--fg)}
#qview .cpn-v em.bad{background:color-mix(in srgb,#dc2626 18%,var(--surface));color:#dc2626}
#qview .cpn-empty{margin:14px 0;padding:18px;border:1px dashed var(--line);border-radius:22px;text-align:center;color:var(--muted);font-size:.9rem}
#qview .cpn-more{display:block;margin:14px auto 4px;border:1px solid var(--line);background:var(--surface);color:var(--fg);border-radius:999px;padding:11px 20px;font:700 .88rem var(--f-body);cursor:pointer}
#qview .cpn-a.warn i{background:color-mix(in srgb,#f59e0b 22%,var(--surface))}
#qview .cpn-a.warn i u{background:#f59e0b;color:#1a1200}
#qview .cpn-a.bad i{background:color-mix(in srgb,#dc2626 18%,var(--surface))}
#qview .cpn-a.bad i u{background:#dc2626;color:#fff}
html:root body #qview .cpn-v small.bad:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){color:#dc2626;font-weight:700}
html:root body #qview .cpn-v b.bad:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){color:#dc2626}
html:root body #qview .cpn-v small:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block;color:var(--muted);font-size:.74rem;font-weight:500}
html:root body #qview .cpn-acts.cpn-3:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){grid-template-columns:repeat(3,minmax(0,1fr))}
html:root body #qview .cpn-acts.cpn-5:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){grid-template-columns:repeat(5,minmax(0,1fr))}
html:root body #qview .cpn-acts.cpn-3:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){grid-template-columns:repeat(3,minmax(0,1fr))}
html:root body #qview .cpn-acts.cpn-2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){grid-template-columns:repeat(2,minmax(0,1fr))}
html:root body #qview .cpn-acts.cpn-1:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){grid-template-columns:repeat(1,minmax(0,1fr))}
html:root body #qview .cpn-r>i:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){font:800 .85rem var(--f-body);color:var(--fg);font-style:normal}
html:root body #qview .cpn-r>i.bd:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:color-mix(in srgb,#dc2626 18%,var(--surface))}
html:root body #tab-cotizar.qv>#qlistcard:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:none!important}
html:root body #tab-cotizar.qv>#qview:not([hidden]):not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block;margin-top:12px}
html:root body #qview .cpn-acts.cpn-4:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){grid-template-columns:repeat(4,minmax(0,1fr))}
html:root body #qview .cl-srow:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;gap:8px;align-items:center;margin:0 0 10px}
html:root body #qview .cl-q:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:1;min-width:0;display:flex;align-items:center;gap:8px;background:var(--surface);border:1px solid var(--line);border-radius:999px;padding:0 14px;height:44px}
html:root body #qview .cl-q svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block!important;width:20px;height:20px;flex:none}
html:root body #qview .cl-q input:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:1;min-width:0;border:0!important;background:transparent!important;color:var(--fg);font:600 .92rem var(--f-body);outline:0;padding:0;height:auto;box-shadow:none}
html:root body #qview .cl-b:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){position:relative;flex:none;width:44px;height:44px;border-radius:50%;border:1px solid var(--line);background:var(--surface);display:grid;place-items:center;padding:0;cursor:pointer;color:var(--fg)}
html:root body #qview .cl-b svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block!important;width:22px;height:22px}
html:root body #qview .cl-b u:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){position:absolute;top:-3px;right:-3px;min-width:18px;height:18px;border-radius:999px;background:var(--accent);color:var(--accent-ink,#fff);font:800 .68rem/18px var(--f-body);text-align:center;text-decoration:none}
html:root body #qview .cu-chips:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;gap:8px;margin:0 0 4px;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none}
html:root body #qview .cu-chips>button:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:none;border:1px solid var(--line);background:var(--surface);color:var(--fg);border-radius:999px;padding:9px 15px;font:800 .82rem var(--f-body);cursor:pointer;min-height:0}
html:root body #qview .cu-chips>button.on:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:var(--fg);color:var(--bg);border-color:var(--fg)}
html:root body #qview .cpn-empty:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){margin:14px 0;padding:18px;border:1px dashed var(--line);border-radius:22px;text-align:center;color:var(--muted);font-size:.9rem}
html:root body #qview .cpn-r>i:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){font-style:normal}
html:root body #qview .cpn-r>i.bd:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:color-mix(in srgb,#dc2626 18%,var(--surface))}
html:root body #tab-cotizar.qm>#qhero2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j)::before{display:none!important}
html:root body #tab-cotizar.qm>#qhero2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){margin-top:6px!important;grid-template-rows:0 auto auto!important}
html:root body .modal.qfsheet .sfin:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){padding:0 14px 14px;display:flex;flex-direction:column;gap:10px}
html:root body .modal.qfsheet .sfbar:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex-wrap:wrap;gap:8px}
html:root body .modal.qfsheet .sfbar #qtot:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){width:100%;margin:0}
html:root body .modal.qfsheet .sfbar #qtot .dn-tot:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;justify-content:space-between;align-items:baseline;margin:0;padding:0 4px;background:transparent;border:0}
html:root body .modal.qfsheet .sfbar #qtot .dn-tot b:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){font-family:var(--f-display);font-size:1.25rem;font-weight:800}
html:root body .modal.qfsheet #qsave:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:1 1 100%;height:50px;justify-content:center}
html:root body .modal.qfsheet #qform>h2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:none}
html:root body .modal.qdsheet .svd-tags .vtg:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:inline-block}
html:root body .modal.qdsheet .qtot:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){font-family:var(--f-display);font-size:1.3rem}
html:root body .modal.sisheet .qc-tot:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:#0b0f0e;color:#fff;border-radius:24px;padding:14px 18px;margin:4px 0 10px}
html:root body .modal.sisheet .qc-tot small:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block;color:#9fb0a8}
html:root body .modal.sisheet .qc-tot b:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){font-family:var(--f-display);font-size:1.9rem;font-weight:800}
html:root body .modal.sisheet .pf-chips:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;gap:8px;flex-wrap:wrap}
html:root body .modal.sisheet .pf-chips button:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){border:1px solid var(--line);background:var(--surface);color:var(--fg);border-radius:999px;padding:9px 16px;font:800 .85rem var(--f-body);cursor:pointer}
html:root body .modal.sisheet .pf-chips button.on:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:var(--fg);color:var(--bg);border-color:var(--fg)}

/* v1179 · Catálogo y Pedidos (maqueta A) */
#cm2 .cpn-acts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:14px 0 14px}
#cm2 .cpn-a{display:flex;flex-direction:column;align-items:center;gap:7px;border:0;background:transparent;color:var(--fg);padding:0;font:inherit;cursor:pointer;min-width:0}
#cm2 .cpn-a i{position:relative;width:56px;height:56px;border-radius:50%;display:grid;place-items:center;background:color-mix(in srgb,var(--accent) 14%,var(--surface))}
#cm2 .cpn-a i svg{width:28px;height:28px;display:block}
#cm2 .cpn-a i u{position:absolute;top:-3px;right:-3px;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:var(--accent);color:var(--accent-ink,#fff);font:800 .7rem/20px var(--f-body);text-align:center;text-decoration:none;border:2px solid var(--bg)}
#cm2 .cpn-a b{font:700 .78rem/1.2 var(--f-body);text-align:center}
#cm2 .cpn-al{display:flex;align-items:center;gap:12px;width:100%;border:1px solid var(--line);background:var(--surface);color:var(--fg);border-radius:22px;padding:12px 14px;text-align:left;font:inherit;cursor:pointer;margin:0 0 6px}
#cm2 .cpn-al i,#cm2 .cpn-r i{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;flex:none;background:color-mix(in srgb,var(--accent) 14%,var(--surface))}
#cm2 .cpn-al i{background:color-mix(in srgb,#f59e0b 22%,var(--surface))}
#cm2 .cpn-r i.w{background:color-mix(in srgb,#f59e0b 22%,var(--surface))}
#cm2 .cpn-al i svg,#cm2 .cpn-r i svg{width:22px;height:22px;display:block}
#cm2 .cpn-al span,#cm2 .cpn-m{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
#cm2 .cpn-al b,#cm2 .cpn-m b{font:800 .95rem/1.25 var(--f-body)}
#cm2 .cpn-al small,#cm2 .cpn-m small{font:500 .8rem/1.3 var(--f-body);color:var(--muted)}
#cm2 .cpn-h{display:flex;justify-content:space-between;align-items:baseline;margin:16px 4px 8px;font-family:var(--f-display)}
#cm2 .cpn-h b{font-size:1rem;font-weight:800}#cm2 .cpn-h span{font:700 .85rem var(--f-body);color:var(--muted)}
#cm2 .cpn-card{background:var(--surface);border:1px solid var(--line);border-radius:24px;padding:2px 12px}
#cm2 .cpn-r{display:flex;align-items:center;gap:12px;width:100%;border:0;background:transparent;color:var(--fg);padding:11px 2px;text-align:left;font:inherit;cursor:pointer}
#cm2 .cpn-r+.cpn-r{border-top:1px solid var(--line)}
#cm2 .cpn-v{display:flex;flex-direction:column;align-items:flex-end;gap:3px;flex:none}
#cm2 .cpn-v b{font:800 .92rem var(--f-body)}
#cm2 .cpn-v em{font-style:normal;font:800 .68rem var(--f-body);padding:3px 9px;border-radius:999px;white-space:nowrap}
#cm2 .cpn-v em.ok{background:color-mix(in srgb,var(--accent) 16%,var(--surface));color:var(--accent)}
#cm2 .cpn-v em.warn{background:color-mix(in srgb,#f59e0b 24%,var(--surface));color:var(--fg)}
#cm2 .cpn-v em.bad{background:color-mix(in srgb,#dc2626 18%,var(--surface));color:#dc2626}
#cm2 .cpn-empty{margin:14px 0;padding:18px;border:1px dashed var(--line);border-radius:22px;text-align:center;color:var(--muted);font-size:.9rem}
#cm2 .cpn-more{display:block;margin:14px auto 4px;border:1px solid var(--line);background:var(--surface);color:var(--fg);border-radius:999px;padding:11px 20px;font:700 .88rem var(--f-body);cursor:pointer}
#cm2 .cpn-a.warn i{background:color-mix(in srgb,#f59e0b 22%,var(--surface))}
#cm2 .cpn-a.warn i u{background:#f59e0b;color:#1a1200}
#cm2 .cpn-a.bad i{background:color-mix(in srgb,#dc2626 18%,var(--surface))}
#cm2 .cpn-a.bad i u{background:#dc2626;color:#fff}
html:root body #cm2 .cpn-v small.bad:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){color:#dc2626;font-weight:700}
html:root body #cm2 .cpn-v b.bad:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){color:#dc2626}
html:root body #cm2 .cpn-v small:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block;color:var(--muted);font-size:.74rem;font-weight:500}
html:root body #cm2 .cpn-acts.cpn-3:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){grid-template-columns:repeat(3,minmax(0,1fr))}
html:root body #cm2 .cpn-acts.cpn-5:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){grid-template-columns:repeat(5,minmax(0,1fr))}
html:root body #cm2 .cpn-acts.cpn-3:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){grid-template-columns:repeat(3,minmax(0,1fr))}
html:root body #cm2 .cpn-acts.cpn-2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){grid-template-columns:repeat(2,minmax(0,1fr))}
html:root body #cm2 .cpn-acts.cpn-1:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){grid-template-columns:repeat(1,minmax(0,1fr))}
html:root body #cm2 .cpn-r>i:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){font:800 .85rem var(--f-body);color:var(--fg);font-style:normal}
html:root body #cm2 .cpn-r>i.bd:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:color-mix(in srgb,#dc2626 18%,var(--surface))}
html:root body #cm2 .cpn-acts.cpn-4:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){grid-template-columns:repeat(4,minmax(0,1fr))}
html:root body #tab-catalogo.cm2>#catseg:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j),html:root body #tab-catalogo.cm2>#catv-ver:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j),html:root body #tab-catalogo.cm2>#catv-pub:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j),html:root body #tab-catalogo.cm2>#catv-config:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:none!important}
html:root body #tab-catalogo.cm2>#cm2:not([hidden]):not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block;margin-top:12px}
html:root body #tab-catalogo.cm2>#cathero2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j)::before{display:none!important}
html:root body #tab-catalogo.cm2>#cathero2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){margin-top:6px!important}
html:root body #cm2 .cmlink2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;align-items:center;gap:12px;background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:11px 14px;margin:8px 0 12px}
html:root body #cm2 .cmlink2>i:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){width:40px;height:40px;border-radius:50%;display:grid;place-items:center;flex:none;background:color-mix(in srgb,var(--accent) 14%,var(--surface))}
html:root body #cm2 .cmlink2>i svg:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block!important;width:22px;height:22px}
html:root body #cm2 .cmlm:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:1;min-width:0;display:flex;flex-direction:column}
html:root body #cm2 .cmlm b:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){font-size:.95rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html:root body #cm2 .cmlm small:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){font-size:.8rem;color:var(--muted)}
html:root body .modal.catfsheet #catcard>h2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:none}
html:root body .modal.catfsheet .catonrow:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:12px 14px;margin:4px 0}

/* v1179 · ficha del pedido (maqueta A) */
html:root body .modal.cmsheet .cm-steps:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;gap:6px;margin:6px 0 16px}
html:root body .modal.cmsheet .cm-steps>button:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:1;min-width:0;border:0;background:transparent;padding:0;display:flex;flex-direction:column;gap:6px;align-items:center;color:var(--muted);cursor:pointer}
html:root body .modal.cmsheet .cm-steps>button i:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block;width:100%;height:7px;border-radius:4px;background:var(--field,#e4eae7)}
html:root body .modal.cmsheet .cm-steps>button.d i:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:var(--accent)}
html:root body .modal.cmsheet .cm-steps>button span:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){font:600 .66rem var(--f-body);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
html:root body .modal.cmsheet .cm-steps>button.n span:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){color:var(--fg);font-weight:800}
html:root body .modal.cmsheet .cmst:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:inline-block;border-radius:999px;padding:4px 12px;font:800 .72rem var(--f-body);background:var(--field,#eef1ef);color:var(--muted)}
html:root body .modal.cmsheet .cmst.nuevo:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:color-mix(in srgb,#f59e0b 24%,var(--surface));color:var(--fg)}
html:root body .modal.cmsheet .cmst.ok:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:color-mix(in srgb,var(--accent) 16%,var(--surface))}
html:root body .modal.cmsheet .cmcap:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){text-align:center;color:var(--muted);font-size:.78rem;margin-top:6px}
html:root body .modal.cmsheet .cmnf:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){margin-top:14px}
html:root body .modal.cmsheet .cmbig:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){font-family:var(--f-display);font-size:1.3rem}

/* v1181 · Nueva cotización: lupa de Cuadra y aire sobre «Agregar a la cotización» */
html:root body .modal.qfsheet .sinp-w>svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block!important;width:20px;height:20px;left:14px}
html:root body .modal.qfsheet .sinp-w>input:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){padding-left:44px}
html:root body .modal.qfsheet #qadd:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){margin-top:14px;display:inline-flex;align-items:center;gap:8px;align-self:flex-start}
html:root body .modal.qfsheet #qadd svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block!important;width:20px;height:20px}
html:root body .modal.qfsheet #qfree>.row:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){margin-top:2px}

/* v1182 · Buscar foto */
html:root body .modal.sisheet .cl-srow:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;gap:8px;align-items:center;margin:4px 0 8px}
html:root body .modal.sisheet .cl-q:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:1;min-width:0;display:flex;align-items:center;gap:8px;background:var(--surface);border:1px solid var(--line);border-radius:999px;padding:0 14px}
html:root body .modal.sisheet .cl-q svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j),html:root body .modal.sisheet .cl-b svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block!important;width:20px;height:20px;flex:none}
html:root body .modal.sisheet .cl-q input:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:1;min-width:0;border:0!important;background:transparent!important;height:46px;outline:0;font:inherit;color:var(--fg)}
html:root body .modal.sisheet .cl-b:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){width:46px;height:46px;border-radius:50%;display:grid;place-items:center;padding:0;border:0;background:color-mix(in srgb,var(--accent) 18%,var(--surface));color:var(--fg);cursor:pointer;flex:none}
html:root body .modal.sisheet .fs-grid:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:10px 0}
html:root body .modal.sisheet .fs-i:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;flex-direction:column;gap:6px;border:2px solid var(--line);background:var(--surface);border-radius:20px;padding:8px;cursor:pointer;color:var(--fg);font:inherit;text-align:center}
html:root body .modal.sisheet .fs-i.on:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){border-color:var(--accent);background:color-mix(in srgb,var(--accent) 12%,var(--surface))}
html:root body .modal.sisheet .fs-i img:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){width:100%;aspect-ratio:1/1;object-fit:contain;background:#fff;border-radius:12px}
html:root body .modal.sisheet .fs-i small:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){font-size:.74rem;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html:root body .modal.sisheet .fs-note:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){margin-top:6px}

html:root body #pform #pphotosrch:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:var(--surface)!important;color:var(--fg)!important;border:1.5px solid color-mix(in srgb,var(--fg) 22%,var(--line))!important;border-radius:999px!important;font-weight:800;display:inline-flex;align-items:center;justify-content:center;gap:8px}
html:root body #pform #pphotosrch[hidden]:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:none!important}
html:root body #pform #pphotosrch svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block!important;width:20px;height:20px;flex:none}

/* v1187 · Agenda (maqueta A) */
#agview .cpn-acts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:14px 0 14px}
#agview .cpn-a{display:flex;flex-direction:column;align-items:center;gap:7px;border:0;background:transparent;color:var(--fg);padding:0;font:inherit;cursor:pointer;min-width:0}
#agview .cpn-a i{position:relative;width:56px;height:56px;border-radius:50%;display:grid;place-items:center;background:color-mix(in srgb,var(--accent) 14%,var(--surface))}
#agview .cpn-a i svg{width:28px;height:28px;display:block}
#agview .cpn-a i u{position:absolute;top:-3px;right:-3px;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:var(--accent);color:var(--accent-ink,#fff);font:800 .7rem/20px var(--f-body);text-align:center;text-decoration:none;border:2px solid var(--bg)}
#agview .cpn-a b{font:700 .78rem/1.2 var(--f-body);text-align:center}
#agview .cpn-al{display:flex;align-items:center;gap:12px;width:100%;border:1px solid var(--line);background:var(--surface);color:var(--fg);border-radius:22px;padding:12px 14px;text-align:left;font:inherit;cursor:pointer;margin:0 0 6px}
#agview .cpn-al i,#agview .cpn-r i{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;flex:none;background:color-mix(in srgb,var(--accent) 14%,var(--surface))}
#agview .cpn-al i{background:color-mix(in srgb,#f59e0b 22%,var(--surface))}
#agview .cpn-r i.w{background:color-mix(in srgb,#f59e0b 22%,var(--surface))}
#agview .cpn-al i svg,#agview .cpn-r i svg{width:22px;height:22px;display:block}
#agview .cpn-al span,#agview .cpn-m{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
#agview .cpn-al b,#agview .cpn-m b{font:800 .95rem/1.25 var(--f-body)}
#agview .cpn-al small,#agview .cpn-m small{font:500 .8rem/1.3 var(--f-body);color:var(--muted)}
#agview .cpn-h{display:flex;justify-content:space-between;align-items:baseline;margin:16px 4px 8px;font-family:var(--f-display)}
#agview .cpn-h b{font-size:1rem;font-weight:800}#agview .cpn-h span{font:700 .85rem var(--f-body);color:var(--muted)}
#agview .cpn-card{background:var(--surface);border:1px solid var(--line);border-radius:24px;padding:2px 12px}
#agview .cpn-r{display:flex;align-items:center;gap:12px;width:100%;border:0;background:transparent;color:var(--fg);padding:11px 2px;text-align:left;font:inherit;cursor:pointer}
#agview .cpn-r+.cpn-r{border-top:1px solid var(--line)}
#agview .cpn-v{display:flex;flex-direction:column;align-items:flex-end;gap:3px;flex:none}
#agview .cpn-v b{font:800 .92rem var(--f-body)}
#agview .cpn-v em{font-style:normal;font:800 .68rem var(--f-body);padding:3px 9px;border-radius:999px;white-space:nowrap}
#agview .cpn-v em.ok{background:color-mix(in srgb,var(--accent) 16%,var(--surface));color:var(--accent)}
#agview .cpn-v em.warn{background:color-mix(in srgb,#f59e0b 24%,var(--surface));color:var(--fg)}
#agview .cpn-v em.bad{background:color-mix(in srgb,#dc2626 18%,var(--surface));color:#dc2626}
#agview .cpn-empty{margin:14px 0;padding:18px;border:1px dashed var(--line);border-radius:22px;text-align:center;color:var(--muted);font-size:.9rem}
#agview .cpn-more{display:block;margin:14px auto 4px;border:1px solid var(--line);background:var(--surface);color:var(--fg);border-radius:999px;padding:11px 20px;font:700 .88rem var(--f-body);cursor:pointer}
#agview .cpn-a.warn i{background:color-mix(in srgb,#f59e0b 22%,var(--surface))}
#agview .cpn-a.warn i u{background:#f59e0b;color:#1a1200}
#agview .cpn-a.bad i{background:color-mix(in srgb,#dc2626 18%,var(--surface))}
#agview .cpn-a.bad i u{background:#dc2626;color:#fff}
html:root body #agview .cpn-v small.bad:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){color:#dc2626;font-weight:700}
html:root body #agview .cpn-v b.bad:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){color:#dc2626}
html:root body #agview .cpn-v small:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block;color:var(--muted);font-size:.74rem;font-weight:500}
html:root body #agview .cpn-acts.cpn-3:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){grid-template-columns:repeat(3,minmax(0,1fr))}
html:root body #agview .cpn-acts.cpn-5:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){grid-template-columns:repeat(5,minmax(0,1fr))}
html:root body #agview .cpn-acts.cpn-3:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){grid-template-columns:repeat(3,minmax(0,1fr))}
html:root body #agview .cpn-acts.cpn-2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){grid-template-columns:repeat(2,minmax(0,1fr))}
html:root body #agview .cpn-acts.cpn-1:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){grid-template-columns:repeat(1,minmax(0,1fr))}
html:root body #agview .cpn-r>i:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){font:800 .85rem var(--f-body);color:var(--fg);font-style:normal}
html:root body #agview .cpn-r>i.bd:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:color-mix(in srgb,#dc2626 18%,var(--surface))}
html:root body #agview .cpn-acts.cpn-4:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){grid-template-columns:repeat(4,minmax(0,1fr))}
html:root body #tab-agenda.agv>#agcard:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j),html:root body #tab-agenda.agv>#agform:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j),html:root body #tab-agenda.agv>#agcom:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:none!important}
html:root body #tab-agenda>#agview:not([hidden]):not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block}
html:root body #agview .ag-hero:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:#0b0f0e;color:#fff;border:1px solid var(--line);border-radius:28px;padding:18px 20px;margin:4px 0 12px}
html:root body #agview .ag-hero small:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block;color:#9fb0a8;font-size:.82rem}
html:root body #agview .ag-hero>b:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block;font-family:var(--f-display);font-size:2.1rem;font-weight:800;letter-spacing:-.03em;line-height:1.15;margin:2px 0 8px}
html:root body #agview .ag-pills:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;flex-wrap:wrap;gap:8px}
html:root body #agview .ag-pills span:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:#1c2a24;color:#cfeedd;border-radius:999px;padding:5px 12px;font-size:.8rem;font-weight:700}
html:root body #agview .ag-week:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;gap:6px;margin:0 0 10px}
html:root body #agview .ag-week>button:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;gap:2px;padding:8px 0 6px;border-radius:18px;border:1px solid var(--line);background:var(--surface);color:var(--fg);cursor:pointer}
html:root body #agview .ag-week>button small:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){font:700 .68rem var(--f-body);opacity:.7}
html:root body #agview .ag-week>button b:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){font:800 1rem var(--f-display)}
html:root body #agview .ag-week>button i:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block;width:5px;height:5px;border-radius:50%}
html:root body #agview .ag-week>button i.dot:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:var(--accent)}
html:root body #agview .ag-week>button.on:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:var(--fg);color:var(--bg);border-color:var(--fg)}
html:root body #agview .ag-week>button.td:not(.on):not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){border-color:var(--accent)}
html:root body #agview .ag-r>.ag-h:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){width:54px;flex:none;text-align:center;font-size:.95rem}
html:root body .modal.agfsheet #agform>h2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:none}
html:root body .modal.agfsheet #agslots:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j),html:root body .modal.agfsheet #agmins:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;flex-wrap:wrap;gap:8px}
html:root body .modal.agfsheet #agslots[hidden],html:root body .modal.agfsheet #agmins[hidden]:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:none}
html:root body .modal.agfsheet #agslots>button,html:root body .modal.agfsheet #agmins>button:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){border:1px solid var(--line);background:var(--surface);color:var(--fg);border-radius:999px;padding:8px 14px;font:800 .8rem var(--f-body);cursor:pointer}
html:root body .modal.agfsheet #agslots>button.on,html:root body .modal.agfsheet #agmins>button.on:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:var(--fg);color:var(--bg);border-color:var(--fg)}
html:root body .modal.agfsheet #agslots>button.occ:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){opacity:.4;text-decoration:line-through}
html:root body .modal.agcsheet #agcom>h2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:none}
html:root body .modal.agcsheet #agcseg:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;gap:8px;margin:8px 0}
html:root body .modal.agcsheet #agcseg>button:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){border:1px solid var(--line)!important;background:var(--surface)!important;color:var(--fg)!important;border-radius:999px!important;padding:8px 16px;font:800 .82rem var(--f-body);min-height:0}
html:root body .modal.agcsheet #agcseg>button.on:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){background:var(--fg)!important;color:var(--bg)!important;border-color:var(--fg)!important}

html:root body #app[data-tab="agenda"]:has(#tab-agenda.agv):not(#_x):not(#_y) header.top .ptitle{display:none!important}

/* v1188 · Ajustes con íconos de Cuadra y el valor a la derecha (maqueta A) */
html:root body #ajhub .ajic:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){width:44px;height:44px;border-radius:50%;background:color-mix(in srgb,var(--accent) 14%,var(--surface))}
html:root body #ajhub .ajic svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block!important;width:24px;height:24px;fill:none;stroke:none}
html:root body #ajhub .ajrow:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){padding-block:12px}
html:root body #app section .card.fold>h2>.fic.oiw:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){width:44px;height:44px;border-radius:50%}
html:root body #app section .card.fold>h2>.fic.oiw:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j)::before{display:none!important}
html:root body #app section .card.fold>h2>.fic.oiw svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block!important;width:24px;height:24px}
html:root body #tab-ajustes .card.fold>h2>.ajval:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){margin-left:auto;flex:none;max-width:42%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font:600 .82rem var(--f-body)}

html.aj-insec:root body #tab-ajustes>.card.fold>h2:has(.ajval):not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){grid-template-columns:auto minmax(0,1fr) auto auto}
html.aj-insec:root body #tab-ajustes>.card.fold>h2:has(.ajval)>.ajval:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){grid-column:3;grid-row:1/3;align-self:center;max-width:120px}
html.aj-insec:root body #tab-ajustes>.card.fold>h2:has(.ajval)::after:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){grid-column:4}
html.aj-insec:root body #tab-ajustes>.card.fold>h2 .ajsub:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:-webkit-box!important;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden!important}

/* v1188 (corrección: «no se parece a la maqueta»): una línea corta por fila en la pantalla principal; en cada sección solo el nombre y su valor */
html:root body #ajhub .ajrow .ajtx>span:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:.82rem}
html:root body #ajhub .ajrow .ajtx:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){min-width:0;flex:1}
html.aj-insec:root body #tab-ajustes>.card.fold>h2 .ajsub:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:none!important}
html.aj-insec:root body #tab-ajustes>.card.fold>h2:has(.ajsub):not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){padding-block:10px}

html.aj-insec:root body #tab-ajustes>.card.fold>h2:has(.ajsub):not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){grid-template-rows:auto!important;row-gap:0!important;align-items:center}
html.aj-insec:root body #tab-ajustes>.card.fold>h2:has(.ajsub)>.fic:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){grid-row:1!important}
html.aj-insec:root body #tab-ajustes>.card.fold>h2:has(.ajsub)>.ajval:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){grid-row:1!important}
html.aj-insec:root body #tab-ajustes>.card.fold>h2:has(.ajsub)::after:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){grid-row:1!important}
html.aj-insec:root body #tab-ajustes>.card.fold>h2:has(.ajsub)>.ajsub+*:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){grid-row:1}

/* v1188 · botón para volver (como la maqueta): círculo con borde y flecha de Cuadra */
html:root body #tab-ajustes #ajback:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){width:40px;height:40px;border-radius:50%!important;border:1px solid var(--line)!important;background:var(--surface)!important}
html:root body #tab-ajustes #ajback svg.oi:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block!important;width:20px;height:20px}

/* v1189 · «Tu negocio y el comprobante» con secciones plegables (maqueta A de disenos/ajustes-general/hoja) */
html:root body .modal.sacsheet .sacc:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){border-radius:24px!important;margin-top:10px!important;background:var(--surface);border:1px solid var(--line)!important}
html:root body .modal.sacsheet .sacc details>summary:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){padding:12px 14px;min-height:0;gap:12px}
html:root body .modal.sacsheet .sacc .sai:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){width:44px;height:44px;border-radius:50%;display:grid;place-items:center;flex:none;background:color-mix(in srgb,var(--accent) 14%,var(--surface));font-style:normal}
html:root body .modal.sacsheet .sacc .sai svg:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block!important;width:24px;height:24px}
html:root body .modal.sacsheet .sacc .sat:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex;flex-direction:column;min-width:0;flex:1}
html:root body .modal.sacsheet .sacc .sat h3:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){margin:0;font:800 1rem var(--f-body);letter-spacing:0;text-transform:none;color:var(--fg)}
html:root body .modal.sacsheet .sacc .sat small:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block;margin-top:2px;color:var(--muted);font-size:.8rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html:root body .modal.sacsheet .sacc .sab:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){padding:0 14px 14px;display:flex;flex-direction:column;gap:10px}
html:root body .modal.sacsheet #ssave:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){position:sticky;bottom:0;width:100%;height:50px;margin-top:14px;border-radius:999px;box-shadow:0 -10px 14px -8px var(--bg)}
html:root body .modal.sacsheet .card>h2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:none}

html:root body .modal.ajsheet>.dlg>.card:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){border:0!important;background:transparent!important;box-shadow:none!important;padding:4px 0 0!important;margin:0!important}
html:root body .modal.ajsheet>.dlg>.card>h2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:none}
html:root body .modal.ajsheet>.dlg>.card.closed:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:block}

/* v1189: las filas de Ajustes que abren su hoja muestran la flecha de siempre, no «+ Nueva» */
html:root body #tab-ajustes>.card.fold[data-sheet]>h2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j)::after{content:""!important;display:block!important;width:9px!important;height:9px!important;padding:0!important;background:transparent!important;border-radius:0!important;border:0!important;border-right:2px solid var(--muted)!important;border-bottom:2px solid var(--muted)!important;transform:rotate(-45deg)!important;margin-left:auto;font-size:0!important}

html.aj-insec:root body #tab-ajustes>.card.fold[data-sheet]>h2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j)::after{grid-column:4!important;grid-row:1!important;justify-self:end;margin:0!important;margin-left:6px!important}
html.aj-insec:root body #tab-ajustes>.card.fold>h2:has(.ajval)>.ajval:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){justify-self:end;margin-left:0;max-width:110px}
html.aj-insec:root body #tab-ajustes>.card.fold[data-sheet]>h2:not(:has(.ajval)):not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){grid-template-columns:auto minmax(0,1fr) auto}
html.aj-insec:root body #tab-ajustes>.card.fold[data-sheet]>h2:not(:has(.ajval)):not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j)::after{grid-column:3!important}

/* v1190 · secciones plegables en las hojas más cargadas de Ajustes */
html:root body .modal.sacsheet .sacc .sab>h3.sub:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:none}
html:root body .modal.sacsheet .sacc .sab>.hint:first-child:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){margin-top:0}
html:root body .modal.sacsheet .sacc .sab>.chk:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){padding:6px 0}
html:root body .modal.sacsheet>.dlg>.card>button.btn.primary:last-child:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j),html:root body .modal.sacsheet>.dlg>.card>.row:last-child:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){position:sticky;bottom:0;background:var(--bg);padding-top:10px;margin-top:10px;z-index:2}
html:root body .modal.sacsheet>.dlg>.card>button.btn.primary:last-child:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){width:100%;height:50px;border-radius:999px}
html:root body .modal.sacsheet #walist .sacc:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){margin-top:8px!important}
#vconfw.need:not(#_a):not(#_b){border-color:var(--accent,#16a34a);outline:2px solid var(--accent,#16a34a)}
.vacctw:not(#_a):not(#_b){display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:6px 0 10px;padding:10px 12px;border:1px solid var(--line,#2a2a2a);border-radius:14px}
.vacctw:not(#_a):not(#_b)[hidden]{display:none}
.vacctw:not(#_a):not(#_b) .vacl{font-size:12px;opacity:.7;width:100%}
.vacctw:not(#_a):not(#_b) b{flex:1;min-width:0;font-size:17px;letter-spacing:.3px;word-break:break-all}
.mpacct:not(#_a):not(#_b){margin-top:6px}
.vacctw:not(#_a):not(#_b) #vacth{order:3;width:100%;opacity:.85}
.vacctw:not(#_a):not(#_b) #vacth[hidden]{display:none}
#mplist .item:not(#_a):not(#_b){flex-wrap:wrap}
#mplist .item>.main:not(#_a):not(#_b){flex:1 1 100%;min-width:0}
#mplist .item>div:last-child:not(.main):not(#_a):not(#_b){flex:1 1 100%;display:flex;gap:8px;justify-content:flex-end}
#mplist .mpacct input:not(#_a):not(#_b){width:100%}
/* v1195 · Computador, Vender (maqueta C «Mostrador», Juan 2026-11-27): más ancho, búsqueda grande, 4 productos por fila y total en tarjeta negra */
@media (min-width:1100px){
  #app[data-tab="vender"] .wrap:not(#_a):not(#_b){max-width:1320px}
  #app[data-tab="vender"] #tab-vender:not([hidden]):not(#_a):not(#_b){grid-template-columns:minmax(0,1fr) 460px}
  #app[data-tab="vender"] #vsearch:not(#_a):not(#_b){font-size:1.05rem;min-height:56px;padding-left:20px}
  #app[data-tab="vender"] #vpick .vgrid:not(#_a):not(#_b){grid-template-columns:repeat(3,minmax(0,1fr))}
  #app[data-tab="vender"] #vtotals:not(#_a):not(#_b){background:#0b0f0e;color:#fff;border-radius:22px;padding:14px 18px}
  #app[data-tab="vender"] #vtotals *:not(#_a):not(#_b){color:inherit}
  #app[data-tab="vender"] #vtotals .total b:not(#_a):not(#_b),#app[data-tab="vender"] #vtotals .num:not(#_a):not(#_b){font-family:var(--f-display);font-weight:800}
}
@media (min-width:1100px){
  #app[data-tab="vender"] #vconfirm:not(#_a):not(#_b){white-space:nowrap}
  #app[data-tab="vender"] #vhold:not(#_a):not(#_b){flex:0 0 auto;padding-left:22px;padding-right:22px}
}
/* v1195/v1197 · Computador, Ventas (maqueta C): historial por día a la izquierda; a la derecha, la gráfica de 7 días y lo vendido por forma de pago */
#vweek:not(#_a):not(#_b){display:none}
@media (min-width:1100px){
  #app[data-tab="ventas"] #tab-ventas:not([hidden]):not(#_a):not(#_b){display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:0 18px;align-items:start}
  #app[data-tab="ventas"] #tab-ventas>*:not(#_a):not(#_b){grid-column:1;min-width:0}
  #app[data-tab="ventas"] #tab-ventas>#vhero2:not(#_a):not(#_b){grid-column:1/-1}
  #app[data-tab="ventas"] #vweek:not([hidden]):not(#_a):not(#_b){display:block;grid-column:2;grid-row:2/span 12;position:sticky;top:12px;margin:0 0 16px;padding:18px 20px}
  #vweek .k{color:var(--muted,#8d9894);font-size:.85rem}
  #vweek .v{font-family:var(--f-display);font-weight:800;font-size:1.9rem;margin-top:2px}
  #vweek .vwbars{display:flex;align-items:stretch;gap:8px;height:140px;margin-top:14px}
  #vweek .vwc{flex:1;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:6px;min-width:0;height:100%}
  #vweek .vwc i{display:block;width:100%;border-radius:8px 8px 0 0;background:color-mix(in srgb,var(--fg) 18%,transparent)}
  #vweek .vwc i.on{background:var(--accent)}
  #vweek .vwc b{font-size:.78rem;color:var(--muted,#8d9894);font-weight:700}
  #vweek .vwv{font-size:.62rem;color:var(--muted,#8d9894);white-space:nowrap}
  #vweek .vwpay{margin-top:18px;border-top:1px solid var(--line);padding-top:14px}
  #vweek .vwpay>b{display:block;margin-bottom:6px}
  #vweek .vwpr{display:flex;justify-content:space-between;padding:8px 0;border-top:1px solid var(--line)}
  #vweek .vwpr:first-of-type{border-top:0}
}
/* v1196 · Computador, Inventario (maqueta B «Lista y ficha», Juan 2026-11-27): la ficha del producto se abre a la derecha sin tapar la lista */
@media (min-width:1100px){
  html:has(#app[data-tab="inventario"]) body>.modal:has(#pdbody):not(#_a):not(#_b){background:transparent;-webkit-backdrop-filter:none;backdrop-filter:none;pointer-events:none;inset:0 0 0 auto;width:500px;padding:160px 26px 20px 0;align-items:flex-start;justify-content:flex-end}
  html:has(#app[data-tab="inventario"]) body>.modal:has(#pdbody) .dlg:not(#_a):not(#_b){pointer-events:auto;width:100%;max-width:none;max-height:calc(100vh - 182px);border:1px solid var(--line);border-radius:24px;box-shadow:none;transform:none;animation:none}
  html:has(#app[data-tab="inventario"]):has(body>.modal #pdbody) #tab-inventario>*:not(#ihero2):not(#_a):not(#_b){max-width:calc(100% - 510px)}
}
/* v1199 · la franja de color de arriba (#edgestrip) es solo para el celular instalado: en el diseño del computador (≥1100 px) tapaba el encabezado de todas las pantallas (Juan, 2026-11-27, viéndolo desde el iPhone a 1440 px) */
@media (min-width:1100px){#edgestrip:not(#_a):not(#_b):not(#_c){display:none!important}}
/* v1199 · Computador, Caja (maqueta C «Franja negra», Juan lo confirmó 2026-11-27): la tarjeta de arriba con el efectivo va en negro */
@media (min-width:1100px){
  html.pc2 body #app[data-tab="caja"] #tab-caja>#chero2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e){background:#0b0f0e!important;background-image:none!important;color:#fff!important;border:1px solid var(--line)!important}
  html.pc2 body #app[data-tab="caja"] #chero2 .pca:not(.p):not(#_a):not(#_b){background:#1d2522!important;color:#fff!important}
}
/* v1200 · Computador, Inicio con el diseño del celular (maqueta B «Dos columnas», Juan 2026-11-27): tarjeta negra y Lo que más vendes a la izquierda; Te deben, Meta, Caja y Últimas ventas a la derecha */
@media (min-width:1100px){
  #ivnav{display:none!important}
  html:root body #tab-inicio.iv:not([hidden]):not(#_a):not(#_b){display:grid;grid-template-columns:minmax(0,1fr) 430px;gap:16px 22px;align-items:start}
  html:root body #tab-inicio.iv>*:not(#_a):not(#_b){grid-column:1/-1;min-width:0}
  html:root body #tab-inicio.iv>#ivh:not(#_a):not(#_b){display:contents;margin:0}
  html:root body #tab-inicio.iv #ivh .ivbar:not(#_a):not(#_b){display:none}
  html:root body #tab-inicio.iv>#gsbtn:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:none!important}
  html:root body #tab-inicio.iv #ivh .ivhero:not(#_a):not(#_b){grid-column:1;grid-row:2;margin:0}
  html:root body #tab-inicio.iv #ivh .ivbento:not(#_a):not(#_b){grid-column:2;grid-row:2;margin:0}
  html:root body #tab-inicio.iv #ivh .ivh2:not(#_a):not(#_b){grid-column:1;grid-row:3;margin:6px 0 0;align-self:end}
  html:root body #tab-inicio.iv #ivh .ivprods:not(#_a):not(#_b){grid-column:1;grid-row:4/span 2;align-self:start;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;overflow:visible;margin:0;padding:0}
  html:root body #tab-inicio.iv #ivh .ivprods .ivpr:not(#_a):not(#_b){width:auto;min-width:0;flex:none}
  html:root body #tab-inicio.iv>#ilastcard:not(#_a):not(#_b){grid-column:2;grid-row:5;margin:0}
  html:root body #tab-inicio.iv>#vimei:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex!important;grid-column:2;grid-row:3;margin:0}
  html:root body #tab-inicio.iv #ivh .ivprods .ivpr:nth-child(n+5):not(#_a):not(#_b){display:none}
}
@media (min-width:1100px){html:root body #tab-inicio.iv:not([hidden]):not(#_a):not(#_b){padding-top:18px}}
/* Juan 2026-11-27 · Inicio del celular: «Verificar IMEI» y «Ver precio» como tarjetas bajitas al lado de Te deben y Meta del día (2 por fila, parejas) */
#ivh .ivbento .ivt.ivq:not(#_a):not(#_b){display:flex;align-items:center;gap:10px;padding:14px 14px;min-height:0;text-align:left}
#ivh .ivbento .ivt.ivq .ic:not(#_a):not(#_b){margin:0;flex:none;width:38px;height:38px}
#ivh .ivbento .ivt.ivq .ic svg:not(#_a):not(#_b){width:34px;height:34px}
#ivh .ivbento .ivt.ivq .ivqt:not(#_a):not(#_b){min-width:0}
#ivh .ivbento .ivt.ivq h3:not(#_a):not(#_b){margin:0;font-size:.92rem;white-space:nowrap}
#ivh .ivbento .ivt.ivq .s:not(#_a):not(#_b){margin:2px 0 0;font-size:.8rem}
@media (min-width:1100px){#ivh .ivbento .ivt.ivq:not(#_a):not(#_b){display:none}}

/* v1202 · Computador, Vender: las reglas del carrito en pasos del celular (copiadas) valen también ≥1100 px; abajo se acomoda fijo a la derecha */
@media (min-width:1100px){
  #tab-vender.sheetm .vclibtn{display:flex;align-items:center;gap:12px;width:100%;min-height:56px;padding:8px 14px;border-radius:16px;border:1px solid var(--line);background:var(--field);color:var(--fg,inherit);text-align:left;cursor:pointer;font:inherit}
  #tab-vender.sheetm .vcli-av{flex:none;width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--surface);color:var(--muted);font-weight:800}
  #tab-vender.sheetm .vcli-av svg{width:18px;height:18px}
  #tab-vender.sheetm .vcli-av.on{background:var(--accent);color:var(--accent-fg)}
  #tab-vender.sheetm .vcli-t{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.2}
  #tab-vender.sheetm .vcli-t small{color:var(--muted);font-size:.78rem;font-weight:600}
  #tab-vender.sheetm .vcli-t b{font-size:1rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  #tab-vender.sheetm .vcli-go{flex:none;color:var(--accent);font-weight:800;font-size:.9rem}
  #tab-vender.sheetm .vcliw.need .vclibtn{border-color:var(--warn);box-shadow:0 0 0 1px var(--warn) inset}
  #tab-vender.sheetm .vcliw.need .vcli-go{color:var(--warn)}
  #tab-vender.sheetm .vclibox{display:none}
  #tab-vender.sheetm.cli-open .vclibox{display:flex}
  #tab-vender.sheetm>.cartcard{display:none}
  #tab-vender.sheetm.sheet-open>.cartcard{display:flex;flex-direction:column;gap:12px;position:fixed;left:0;right:0;bottom:0;max-height:92dvh;z-index:45;margin:0;border-radius:24px 24px 0 0;padding:16px 16px calc(14px + env(safe-area-inset-bottom,0px));background:var(--surface);border:1px solid var(--line);border-bottom:0;box-shadow:0 -18px 40px -14px rgba(0,0,0,.45);overflow:hidden;animation:vsheetup .22s ease-out}
  #tab-vender.sheetm.sheet-open #vsheetbg{display:block;position:fixed;inset:0;z-index:44;background:rgba(0,0,0,.5)}
  #tab-vender.sheetm .cartcard .shd{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none}
  #tab-vender.sheetm .cartcard .shd h2{margin:0}
  #tab-vender.sheetm .shd #vclose{display:inline-flex}
  #tab-vender.sheetm .cart-scroll{overflow-y:auto;overflow-x:hidden;min-height:0;flex:1 1 auto;padding-right:2px;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}
  #tab-vender.sheetm .cart-foot{flex:none;border-top:1px solid var(--line);padding-top:12px}
  #tab-vender.sheetm #vcart{overflow:hidden;position:relative;border-radius:12px}
  #tab-vender.sheetm .item.cl{padding:10px 0;gap:10px;background:var(--surface);position:relative;transition:transform .18s ease;touch-action:pan-y}
  #tab-vender.sheetm .item.cl .main{display:flex;flex-direction:column;gap:2px}
  #tab-vender.sheetm .item.cl .t{font-size:.95rem;line-height:1.25}
  #tab-vender.sheetm .item.cl .rt{display:flex;flex-direction:column;align-items:flex-end;gap:6px;flex:none}
  #tab-vender.sheetm .item.cl .lt{font-size:.95rem}
  #tab-vender.sheetm .item.cl .qty button{width:30px;height:30px}
  #tab-vender.sheetm #vcart.swiping::before{content:"Quitar";position:absolute;left:0;right:0;top:var(--ry,0);height:var(--rh,0);background:#d33 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18M8 6V4h8v2M6 6l1 14h10l1-14M10 11v6M14 11v6'/%3E%3C/svg%3E") no-repeat right 78px center/22px;color:#fff;font-weight:800;font-size:1rem;display:flex;align-items:center;justify-content:flex-end;padding-right:16px;border-radius:12px}
  #tab-vender.sheetm #vcart.swgo::before{background-color:#b71c1c}
  #tab-vender.sheetm .vswipe{text-align:center}
  #tab-vender.sheetm .vpayw{display:flex;flex-direction:column;gap:8px}
  #tab-vender.sheetm .vpay{display:flex;gap:8px;overflow-x:auto;padding:2px 2px 6px;scrollbar-width:none}
  #tab-vender.sheetm .vpay::-webkit-scrollbar{display:none}
  #tab-vender.sheetm .vpill{flex:none;min-height:44px;padding:0 16px;border-radius:99px;border:1px solid var(--glass-edge);background:var(--field);color:var(--fg,inherit);font-weight:700;font-size:.95rem;cursor:pointer;white-space:nowrap}
  #tab-vender.sheetm .vpill.on{background:var(--accent)!important;color:var(--accent-fg)!important;border-color:transparent}
  #tab-vender.sheetm .vpay.shake{animation:vshake .4s}
  #tab-vender.sheetm #vmethodw{position:absolute;opacity:0;width:1px;height:1px;overflow:hidden;pointer-events:none}
  #tab-vender.sheetm .vextrabtn{display:flex;width:100%;justify-content:center}
  #tab-vender.sheetm .vextra{display:none}
  #tab-vender.sheetm.extra-open .vextra{display:flex}
  html body .qty button,html body #tab-vender.sheetm .item.cl .qty button{width:38px;min-width:38px;height:44px;border-radius:14px}
  html body #tab-vender.sheetm .vextrabtn,html body #tab-vender.sheetm #vhold,html body .vextrabtn,html body #vhold{min-height:44px}
  html:root body #tab-vender.sheetm.sheet-open>.cartcard{background:var(--bg)!important;border-radius:32px 32px 0 0!important;border:0!important}
  html:root body #tab-vender.sheetm.sheet-open>.cartcard{padding-bottom:max(16px,calc(env(safe-area-inset-bottom,0px) + 8px))!important} /* v1225 (Juan, iPhone 15 Pro Max): los botones de abajo del carrito quedaban pegados a la barra de inicio */
  html:root body #tab-vender.sheetm.sheet-open>.cartcard{bottom:0!important}
  html:root:not(#_a):not(#_b):not(#_c) body #tab-vender.sheetm.sheet-open>.cartcard:not(#_x){background:var(--bg)!important}
  html:root body #tab-vender.sheet-open>.vvcard:not(#_x){visibility:hidden}
  html:root:not(#_a):not(#_b):not(#_c) body #app[data-tab="vender"]:has(#tab-vender.sheet-open) header.top:not(#_x){visibility:hidden}
  html:root body #tab-vender.sheet-open[data-vstep] #vsteps:not(#_x){display:block;margin:4px 0 10px}
  #vsteps .vsbar{display:flex;gap:6px;margin:0 2px 12px}
  #vsteps .vsbar i{flex:1;height:5px;border-radius:3px;background:color-mix(in srgb,var(--fg) 14%,var(--bg))}
  #vsteps .vsbar i.on{background:var(--fg)}
  #vsteps .vshead{display:flex;align-items:center;gap:12px;padding:0 2px}
  #vsteps .vsem{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:color-mix(in srgb,var(--accent) 14%,var(--surface));font-size:1.2rem;font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif}
  #vsteps .vshead b{display:block;font-family:var(--f-display);font-size:1.25rem;font-weight:800;line-height:1.1}
  #vsteps .vshead small{color:var(--muted);font-size:.85rem}
  html:root body #tab-vender.sheet-open[data-vstep="1"] .cart-scroll>:not(#vcart):not(#vswipe):not(#_x){display:none!important}
  html:root body #tab-vender.sheet-open[data-vstep="2"] .cart-scroll>:not(#vcliw):not(#vdrow):not(#_x){display:none!important}
  html:root body #tab-vender.sheet-open[data-vstep="3"] .cart-scroll>:is(#vcart,#vswipe,#vcliw,#vdrow):not(#_x){display:none!important}
  html:root body #tab-vender.sheet-open[data-vstep="1"] #vsumtop:not(#_x){display:none}
  html:root body #tab-vender.sheet-open[data-vstep] #vback:not(#_x){display:inline-flex;justify-content:center;flex:0 0 auto}
  html:root body #tab-vender.sheet-open[data-vstep="1"] #vnext:not(#_x),html:root body #tab-vender.sheet-open[data-vstep="2"] #vnext:not(#_x){display:inline-flex;justify-content:center;flex:1 1 0}
  html:root body #tab-vender.sheet-open[data-vstep="1"] #vconfirm:not(#_x),html:root body #tab-vender.sheet-open[data-vstep="2"] #vconfirm:not(#_x){display:none!important}
  html:root body #tab-vender.sheet-open[data-vstep="2"] #vhold:not(#_x),html:root body #tab-vender.sheet-open[data-vstep="3"] #vhold:not(#_x){display:none!important}
  html:root:not(#_a):not(#_b):not(#_c) body #tab-vender.sheet-open[data-vstep] #vnext:not(#_x){background:var(--fg)!important;color:var(--bg)!important;border:1px solid var(--fg)!important;border-radius:999px!important;min-height:54px;font-weight:800}
  html:root:not(#_a):not(#_b):not(#_c) body #tab-vender.sheet-open[data-vstep] #vback:not(#_x){background:var(--surface)!important;color:var(--fg)!important;border:1.5px solid color-mix(in srgb,var(--fg) 22%,var(--line))!important;border-radius:999px!important;min-height:54px;font-weight:800;padding-inline:20px}
  html:root body #tab-vender.sheet-open[data-vstep] .cart-foot>.row:not(#_x){display:flex!important;flex-wrap:nowrap!important;gap:10px}
  html:root:not(#_a):not(#_b):not(#_c) body #tab-vender.sheet-open[data-vstep] #vnext:not(#_x){flex:1 1 0!important}
  html:root body #tab-vender.sheet-open[data-vstep] #vback[hidden]:not(#_x){display:none!important}
  html:root:not(#_a):not(#_b):not(#_c) body #tab-vender.sheetm.sheet-open>.cartcard:not(#_x){top:calc(var(--sat,0px) + 44px);max-height:none;height:auto;border-radius:30px 30px 0 0!important;border:1px solid var(--line)!important;border-bottom:0!important;padding-top:26px;z-index:96}
  html:root body #tab-vender.sheetm.sheet-open>.cartcard:not(#_x)::before{content:"";position:absolute;top:8px;left:50%;width:40px;height:5px;margin-left:-20px;border-radius:3px;background:color-mix(in srgb,var(--fg) 22%,transparent)}
  html:root body #tab-vender.sheetm.sheet-open>.cartcard .cart-scroll:not(#_x){flex:1 1 auto;min-height:0;overflow-y:auto}
  html:root:not(#_a):not(#_b):not(#_c) body #tab-vender.sheetm.sheet-open>.cartcard:not(#_x){top:calc(var(--sat,0px) + 44px);padding:26px 16px calc(14px + env(safe-area-inset-bottom,0px))}
  html body #tab-vender.sheet-open>.cartcard .shd:not(#_x){margin:0 0 4px}
  html body #tab-vender.sheet-open>.cartcard .shd h2:not(#_x){font-size:1.9rem}
  html body #tab-vender.sheet-open>.cartcard .shd #vcpill:not(#_x){display:none}
  html:root:not(#_a):not(#_b):not(#_c) body #tab-vender.sheet-open>.cartcard #vclose:not(#_x){font-size:0;width:42px;height:42px;min-width:42px;padding:0;border-radius:50%!important;background:var(--surface)!important;border:1px solid var(--line)!important;position:relative}
  html body #tab-vender.sheet-open>.cartcard #vclose:not(#_x)::before{content:"✕";font-size:15px;font-weight:800;color:var(--fg);position:absolute;inset:0;display:grid;place-items:center}
  html body #tab-vender.sheet-open[data-vstep] #vsteps:not(#_x){display:block;margin:6px 0 12px}
  #vsteps .vtabs{display:flex;gap:4px;padding:4px;border-radius:999px;background:color-mix(in srgb,var(--fg) 8%,var(--bg))}
  #vsteps .vtabs button{flex:1;min-height:42px;border:0;border-radius:999px;background:transparent;color:var(--fg);font-weight:800;font-size:.88rem;padding:0 6px;white-space:nowrap}
  #vsteps .vtabs button.on{background:var(--fg);color:var(--bg)}
  html:root:not(#_a):not(#_b):not(#_c) body #tab-vender.sheet-open[data-vstep] .cart-foot>.row:not(#_x):not(#_y):not(#_z){display:flex!important;flex-wrap:wrap!important;gap:8px!important}
  html:root:not(#_a):not(#_b):not(#_c) body #tab-vender.sheet-open[data-vstep] .cart-foot>.row>:is(#vnext,#vconfirm):not(#_x):not(#_y):not(#_z){order:-1;flex:1 1 100%!important;width:100%!important;min-height:54px;align-items:center;justify-content:center;text-align:center;font-size:1.05rem;line-height:1.1;font-weight:800}
  html:root:not(#_a):not(#_b):not(#_c) body #tab-vender.sheet-open[data-vstep] .cart-foot>.row>:is(#vhold,#vquote):not(#_x):not(#_y):not(#_z){flex:1 1 0!important;min-height:46px;font-size:.92rem;padding-inline:10px}
  html:root:not(#_a):not(#_b):not(#_c) body #tab-vender.sheet-open[data-vstep] .cart-foot:not(#_x):not(#_y):not(#_z){display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:0;border:0;padding-top:4px}
  html:root:not(#_a):not(#_b):not(#_c) body #tab-vender.sheet-open[data-vstep] .cart-foot>#vtotals:not(#_x):not(#_y):not(#_z){grid-area:1/1/2/3;display:flex;flex-direction:column;justify-content:center;background:#0b0f0e;color:#fff;border-radius:30px;padding:14px 178px 14px 20px;min-height:78px;margin:0;gap:2px;z-index:1}
  html body #tab-vender.sheet-open[data-vstep] .cart-foot #vtotals .r:not(#_x){color:#9aa8a1;font-size:.82rem;padding:0;background:transparent;display:flex;justify-content:space-between;gap:8px}
  html body #tab-vender.sheet-open[data-vstep] .cart-foot #vtotals .r .num:not(#_x){color:#fff}
  html:root:not(#_a):not(#_b):not(#_c) body #tab-vender.sheet-open[data-vstep] .cart-foot #vtotals .r.big.rtot:not(#_x):not(#_y){flex-direction:column;align-items:flex-start;gap:0;background:transparent!important;border-radius:0;padding:0;min-height:0;box-shadow:none}
  html body #tab-vender.sheet-open[data-vstep] .cart-foot #vtotals .r.rtot span:first-child:not(#_x){font-size:.82rem;font-weight:600;color:#9aa8a1!important}
  html body #tab-vender.sheet-open[data-vstep] .cart-foot #vtotals .r.rtot .num:not(#_x){font-size:1.75rem;line-height:1.1;font-weight:800;color:#fff!important}
  html:root:not(#_a):not(#_b):not(#_c) body #tab-vender.sheet-open[data-vstep] .cart-foot>.row:not(#_x):not(#_y):not(#_z):not(#_w){display:contents!important}
  html:root:not(#_a):not(#_b):not(#_c) body #tab-vender.sheet-open[data-vstep] .cart-foot>.row>:is(#vnext,#vconfirm):not(#_x):not(#_y):not(#_z):not(#_w):not(#_v){grid-area:1/2;justify-self:end;align-self:center;order:0;flex:none!important;width:auto!important;min-height:50px;margin:0 12px 0 0!important;padding:0 20px;z-index:2;background:#fff!important;color:#0b0f0e!important;border:0!important;border-radius:999px!important;font-size:.98rem}
  html:root:not(#_a):not(#_b):not(#_c) body #tab-vender.sheet-open[data-vstep] .cart-foot>.row>:is(#vhold,#vquote):not(#_x):not(#_y):not(#_z):not(#_w):not(#_v){grid-row:2;grid-column:auto;flex:none!important;width:100%!important;min-height:44px;margin-top:8px;background:transparent!important;border:0!important;box-shadow:none!important;color:var(--fg)!important;font-weight:800;font-size:.92rem;padding:0 6px;display:flex!important;justify-content:center!important;align-items:center;text-align:center}
  html body #tab-vender.sheet-open[data-vstep] .cart-foot:has(#vhold[hidden])>.row>#vquote:not(#_x),html body #tab-vender.sheet-open[data-vstep] .cart-foot:has(#vquote[hidden])>.row>#vhold:not(#_x){grid-column:1/-1}
  html body #tab-vender.sheet-open[data-vstep] .cart-foot>.row>#vhold:not(#_x){font-size:0!important}
  html body #tab-vender.sheet-open[data-vstep] .cart-foot>.row>#vhold::before{content:"⏸️ En espera";font-size:.92rem;white-space:nowrap}
  html body #tab-vender.sheet-open[data-vstep] .cart-foot>.row>#vquote:not(#_x){font-size:0!important}
  html body #tab-vender.sheet-open[data-vstep] .cart-foot>.row>#vquote::before{content:"📄 Cotización";font-size:.92rem;white-space:nowrap}
  html body #tab-vender.sheet-open[data-vstep] .cart-foot>.row>:is(#vback,#vcocancel):not(#_x){display:none!important}
  html[data-theme="dark"] body #tab-vender.sheet-open[data-vstep] .cart-foot>#vtotals:not(#_x){border:1px solid #1f2623}
  html:root:not(#_a):not(#_b):not(#_c) body #tab-vender.sheet-open[data-vstep="2"] .cart-foot>.row>#vhold:not(#_x):not(#_y):not(#_z):not(#_w):not(#_v):not(#_u),
  html:root:not(#_a):not(#_b):not(#_c) body #tab-vender.sheet-open[data-vstep="3"] .cart-foot>.row>#vhold:not(#_x):not(#_y):not(#_z):not(#_w):not(#_v):not(#_u),
  html:root:not(#_a):not(#_b):not(#_c) body #tab-vender.sheet-open[data-vstep] .cart-foot>.row>:is(#vhold,#vquote)[hidden]:not(#_x):not(#_y):not(#_z):not(#_w):not(#_v):not(#_u){display:none!important}
  html body #tab-vender.sheetm #vdeprow:not(#_x),html body #tab-vender.sheetm #vduew:not(#_x),html body #tab-vender.sheetm #vduehint:not(#_x){display:none!important}
  html:root:not(#_a):not(#_b):not(#_c) body #tab-vender.sheet-open .cart-scroll label.f input:not([type=checkbox]):not([type=radio]):not(#_x):not(#_y),html:root:not(#_a):not(#_b):not(#_c) body #tab-vender.sheet-open .cart-scroll label.f select:not(#_x):not(#_y){background:var(--surface)!important;border:1px solid var(--line)!important;border-radius:999px!important;min-height:50px;padding-inline:18px;box-shadow:none!important}
  html:root:not(#_a):not(#_b):not(#_c) body #tab-vender.sheet-open :is(#vprfw .btn,#vextrabtn,.prfbtn):not(#_x):not(#_y){background:var(--surface)!important;color:var(--fg)!important;border:1.5px solid color-mix(in srgb,var(--fg) 22%,var(--line))!important;border-radius:999px!important;min-height:46px;font-weight:800;box-shadow:none!important}
  html body #tab-vender.sheetm #vcash>label.f:not(#_x),html body #tab-vender.sheetm #vcash #vchips:not(#_x){display:none!important}
  html body #tab-vender.sheetm #vextra #vtrade:not(.intrade):not(#_x){display:none!important}
  html:root:not(#_a):not(#_b):not(#_c) body #tab-vender.sheet-open[data-vstep] .cart-foot #vtotals .r.big:not(.rtot):not(#_x):not(#_y){display:flex;flex-direction:row;justify-content:space-between;align-items:baseline;gap:10px;background:transparent!important;padding:6px 0 0;margin-top:4px;border-top:1px solid #2b3330;border-radius:0;min-height:0}
  html body #tab-vender.sheet-open[data-vstep] .cart-foot #vtotals .r.big:not(.rtot) span:first-child:not(#_x){font-size:.85rem;font-weight:700;color:#9aa8a1!important;white-space:nowrap}
  html body #tab-vender.sheet-open[data-vstep] .cart-foot #vtotals .r.big:not(.rtot) .num:not(#_x){font-size:1.4rem;font-weight:800;color:#fff!important}
  html:root body #vsteps .vtabs button>span>svg.oi:not(#_x){display:inline-block!important;width:20px;height:20px;vertical-align:-4px;color:inherit}
  html:root body #vsteps .vtabs button.on>span>svg.oi .m,html:root body #vsteps .vtabs button.on>span>svg.oi .d{stroke:var(--bg)}
  html body #tab-vender.sheet-open[data-vstep] .cart-foot>.row>#vhold:not(#_x)::before{content:none!important}
  html body #tab-vender.sheet-open[data-vstep] .cart-foot>.row>#vhold:not(#_x)::after{content:"En espera";font-size:.92rem;white-space:nowrap}
  html body #tab-vender.sheet-open[data-vstep] .cart-foot>.row>#vhold>svg.oi:not(#_x){display:inline-block!important;width:18px;height:18px;vertical-align:-3px;margin-right:6px}
}
@media (min-width:1100px){
  html:root body #tab-vender.sheet-open>.vvcard:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g){visibility:visible}
  html:root:not(#_a):not(#_b):not(#_c) body #app[data-tab="vender"] #tab-vender.sheetm.sheet-open>.cartcard:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){position:sticky;top:12px;left:auto;right:auto;bottom:auto;transform:none;max-height:calc(100vh - 100px);height:auto;margin:0;padding:18px 16px 14px;border-radius:28px!important;border:1px solid var(--line)!important;background:var(--bg)!important;z-index:1;overflow:hidden;display:flex;flex-direction:column;grid-column:2;grid-row:1/span 3}
  html:root body #tab-vender.sheetm.sheet-open>.cartcard:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h)::before{display:none}
  html:root body #tab-vender.sheet-open #vsheetbg:not(#_a):not(#_b):not(#_c):not(#_d){display:none!important}
  html:root body #tab-vender.sheet-open #vclose:not(#_a):not(#_b):not(#_c):not(#_d){display:none!important}
}
@media (min-width:1100px){
  html:root body #app[data-tab="vender"] #tab-vender>#vdhero2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f){display:none!important}
}
@media (min-width:1100px){
  html:root body #tab-vender.sheet-open #vpay:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e){display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;overflow:visible;padding:2px 0 6px;flex-wrap:wrap}
  html:root body #tab-vender.sheet-open #vpay .vpill:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e){min-width:0;width:auto;height:auto;min-height:92px;border-radius:22px;padding:10px 6px;flex-direction:column;justify-content:center;gap:6px;font-size:.88rem;white-space:normal;text-align:center}
}
@media (min-width:1100px){html.pc2 body nav.tabs button svg.oi:not(#_a):not(#_b){display:block!important;width:22px;height:22px;fill:none;stroke:none;flex-shrink:0;opacity:1}}
/* v1204 · «Verificar IMEI» y «Ver precio» con el diseño nuevo (íconos de Cuadra, tarjeta negra del precio) y «Últimas ventas» del computador con el ícono de Cuadra (Juan, 2026-11-27) */
.pcmod .pchd{display:flex;align-items:center;gap:12px;margin:0 0 10px}
.pcmod .pchd>i{width:44px;height:44px;border-radius:50%;background:color-mix(in srgb,var(--accent) 16%,var(--surface));display:grid;place-items:center;flex:none}
.pcmod .pchd>i svg{width:26px;height:26px}
.pcmod .pchd h2{margin:0}
.pcmod .pcname h3{margin:6px 0 2px;font-family:var(--f-display);font-size:1.4rem;line-height:1.15}
.pcmod .sdrow>span{display:flex;align-items:center;gap:10px}
.pcmod .pci{width:34px;height:34px;border-radius:50%;background:var(--surface);display:inline-grid;place-items:center;flex:none}
.pcmod .pci svg{width:22px;height:22px}
.pcmod .pcprice{background:#0b0f0e;color:#fff;border-radius:26px;padding:16px 20px;text-align:center;margin:12px 0}
.pcmod .pcprice small{display:block;color:#9fb0a8;font-weight:600}
.pcmod .pcprice b{display:block;font-family:var(--f-display);font-weight:800;font-size:2.4rem;line-height:1.1}
.imr .imrt>i svg.oi,#imeicard .imrt>i svg{width:26px;height:26px}
.imgo svg.bfi{width:20px;height:20px;margin-right:8px;vertical-align:-4px}
@media (min-width:1100px){
  html:root body #tab-inicio #ilast .vpic:not(.vemo):not(#_a){display:none!important}
  html:root body #tab-inicio #ilast .vpic.vemo:not(#_a){display:grid!important;place-items:center}
  html:root body #tab-inicio #ilast .vpic.vemo>svg.oi:not(#_a){display:block;width:24px;height:24px;color:var(--fg)}
}
.pcmod .pchd>i svg.oi,.pcmod .pci svg.oi,#imeicard .imrt>i svg.oi,#imeicard .imscan svg.oi,.imr .imrt>i svg.oi{display:block!important}
#imeicard .imscan svg.oi{width:26px;height:26px}
#imeicard .imscan svg.oi .m,#imeicard .imscan svg.oi .d{stroke:#14161c}
html[data-theme="light"] #imeicard .imscan svg.oi .m,html[data-theme="light"] #imeicard .imscan svg.oi .d{stroke:#fff}
#imeicard>.pchd,.imhd{display:flex;align-items:center;gap:12px;margin:0 0 10px}
#imeicard .pchd>i{width:44px;height:44px;border-radius:50%;background:color-mix(in srgb,var(--accent) 16%,var(--surface));display:grid;place-items:center;flex:none}
#imeicard .pchd>i svg.oi{width:26px;height:26px;display:block}
#imeicard .pchd h2{margin:0}
.pcmod .pcbtns .btn:not(#_a):not(#_b){white-space:nowrap;padding-left:14px;padding-right:14px}
#vimei svg.oi:not(#_a):not(#_b){display:block!important;width:28px;height:28px}
html.pc2 body nav.tabs button[data-tab] svg.oi *:not(#_a):not(#_b){fill:none!important}
@media (min-width:1100px){
  html.pc2 body nav.tabs button[data-tab][aria-selected="true"] svg.oi .m:not(#_a),html.pc2 body nav.tabs button[data-tab][aria-selected="true"] svg.oi .d:not(#_a){stroke:#0b3d1d}
  html.pc2 body nav.tabs button[data-tab][aria-selected="true"] svg.oi .a:not(#_a){stroke:#16a34a}
  #vimei em svg.oi .m:not(#_a),#vimei em svg.oi .d:not(#_a){stroke:var(--bg)}
}
/* v1205 · Computador: barra «Pregúntale a Jota o busca…» abajo (como en el celular) */
.jotabar{display:none}
@media (min-width:1100px){
  .jotabar:not([hidden]):not(#_a):not(#_b){display:flex;align-items:center;gap:14px;position:fixed;bottom:22px;left:calc(50% + 120px);transform:translateX(-50%);width:min(560px,56vw);height:58px;padding:0 20px 0 18px;border-radius:999px;border:1px solid var(--line);background:var(--surface);color:var(--muted);font:600 1rem var(--f-body,inherit);z-index:30;cursor:pointer;text-align:left}
  .jotabar:hover{border-color:color-mix(in srgb,var(--accent) 55%,var(--line))}
  .jotabar svg.oi{display:block;width:28px;height:28px;flex:none;color:var(--fg)}
  .jotabar>span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .jotabar kbd{font:600 .75rem/1 inherit;border:1px solid var(--line);border-radius:8px;padding:4px 8px;color:var(--muted)}
  html.pc2 body #app>.wrap:not(#_a):not(#_b){padding-bottom:96px}
}
/* Juan 2026-11-28 · «Actualizar Cuadra» (venta en curso) con los íconos de Cuadra en vez de emojis */
.updsheet .updic:not(#_a):not(#_b){background:color-mix(in srgb,var(--accent) 14%,var(--surface))!important;display:grid;place-items:center}
.updsheet .updic svg.oi:not(#_a):not(#_b){display:block;width:26px;height:26px}
.updsheet .sheetx svg.oi:not(#_a):not(#_b){display:block;width:20px;height:20px}
.updsheet #updnow:not(#_a):not(#_b):not(#_c){background:var(--fg)!important;color:var(--bg)!important;border-color:var(--fg)!important}
.updsheet #updnow svg.oi .m:not(#_a),.updsheet #updnow svg.oi .d:not(#_a){stroke:var(--bg)}
.updsheet #updnow svg.oi .a:not(#_a){stroke:var(--bg)}
/* Juan 2026-11-28 · «En espera»: el ícono de Cuadra en vez del emoji ⏸️ (también en el computador y la tablet) */
.vhsheet .hold:not(#_a):not(#_b)::before{content:none!important;display:none!important}
.vhsheet .hold>svg.oi:not(#_a):not(#_b){display:block!important;grid-row:1;grid-column:1;width:44px;height:44px;padding:10px;box-sizing:border-box;border-radius:50%;background:color-mix(in srgb,var(--accent) 16%,var(--surface))!important}

/* Juan 2026-11-28 · búsqueda general (Jota/«busca») con sus íconos de Cuadra también en el computador: reglas del celular copiadas */
@media (min-width:1100px){
  html:root body #gsmodal.modal .dlg{background:var(--bg)!important}
  html:root body #gsmodal.modal .gsrow{border:0!important;border-radius:0!important;background:var(--surface)!important;box-shadow:none!important;margin:0!important;min-height:52px}
  html:root body #gsmodal.modal .gsrow+.gsrow{border-top:1px solid var(--line)!important}
  html:root body #gsmodal.modal .gsrow:first-of-type{border-radius:18px 18px 0 0!important}
  html:root body #gsmodal.modal .gsrow:last-of-type{border-radius:0 0 18px 18px!important}
  html:root body #gsmodal.modal .gsrow:only-of-type{border-radius:18px!important}
  html:root body #gsmodal.modal h3{font-family:var(--f-display);font-weight:700;font-size:1.125rem;margin:16px 4px 8px}
  html:root body #gsmodal.modal input{background:var(--surface)!important}
  html:root body #gsmodal.modal :is(#gsres,#gsres>div,#gsres>section){gap:0!important;row-gap:0!important}
  html:root body #gsmodal:not(#_x){align-items:flex-end!important;padding:0!important}
  html:root body #gsmodal>.dlg:not(#_x){margin:0!important;width:100%;max-height:calc(100dvh - var(--sat,0px) - 24px)!important;border-radius:28px 28px 0 0!important;padding-bottom:calc(16px + env(safe-area-inset-bottom,0px))!important}
  html.kb-open:root body #gsmodal:not(#_x){align-items:flex-start!important;top:var(--vvt,0px)!important;height:var(--vvh,100%)!important;bottom:auto!important}
  html.kb-open:root body #gsmodal>.dlg:not(#_x){height:100%!important;max-height:100%!important;border-radius:0 0 22px 22px!important;padding-top:calc(12px + var(--sat,0px))!important;padding-bottom:12px!important}
  html:root body #gsmodal #gsres{flex:1 1 auto;min-height:0}
  html:root body #gsmodal .gshd,html:root body #gsmodal label.f{flex:none}
  html:root body #gsmodal .gshd:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){display:none}
  html:root body #gsmodal .gsgrab:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){display:none;width:42px;height:5px;border-radius:99px;background:color-mix(in srgb,var(--muted) 55%,transparent);margin:0 auto 4px;flex:none}
  html:root body #gsmodal .dlg>.btn:last-child:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){display:none}
  html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l) body #gsmodal{align-items:flex-start!important;padding:0!important;background:var(--bg)!important}
  html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l) body #gsmodal>.dlg{width:100%;max-width:none;height:100%!important;max-height:100%!important;margin:0!important;border-radius:0!important;border:0!important;box-shadow:none!important;background:var(--bg)!important;padding:calc(10px + var(--sat,0px)) 14px 12px!important;gap:10px;display:flex;flex-direction:column;overflow:hidden;animation:gsin .18s ease-out}
  html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l) body #gsmodal .gsbar{flex:none;display:flex;align-items:center;gap:8px}
  html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l) body #gsmodal .gsfield{flex:1;min-width:0;margin:0;display:flex;align-items:center;gap:8px;min-height:50px;padding:0 14px;border-radius:999px;border:1.5px solid var(--fg);background:var(--surface)}
  html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l) body #gsmodal .gsfield>svg.oi{display:block!important;flex:none;width:22px;height:22px;color:var(--fg)}
  html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l) body #gsmodal .gsfield input{flex:1;min-width:0;border:0!important;background:transparent!important;box-shadow:none!important;outline:0;padding:0!important;min-height:46px;font-size:1rem;border-radius:0!important}
  html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l) body #gsmodal .gsx{flex:none;width:50px;height:50px;border-radius:50%;border:1px solid var(--line);background:var(--surface);color:var(--fg);display:grid;place-items:center;padding:0;line-height:1}
  html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l) body #gsmodal .gsx>svg.oi{display:block!important;width:26px;height:26px}
  html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l) body #gsmodal #gsres{flex:1 1 auto;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch}
  html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m) body #gsmodal .gsfield{flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;box-shadow:none!important}
  html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m) body #gsmodal .gsbar{background:none!important;border:0!important;box-shadow:none!important;padding:0!important}
  html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m) body #gsmodal>.dlg::before,html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m) body #gsmodal>.dlg::after{display:none!important}
  html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m) body #gsmodal .gsfield>input{width:auto!important;margin:0!important}
  html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m) body #gsmodal .grab,html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m) body #gsmodal .gsgrab,html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m) body #gsmodal .sheetgrab{display:none!important}
  html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m) body #gsmodal .gsfield>input{font-size:.92rem!important}
  html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m):not(#_n) body #gsmodal .gsfield>input{font-size:16px!important}
}
.asearch>svg.oi:not(#_a):not(#_b),.cpq .e svg.oi:not(#_a):not(#_b),.imsearch .e svg.oi:not(#_a):not(#_b),#moremenu .morebtn svg.oi:not(#_a):not(#_b){display:block!important;width:22px;height:22px;flex:none}
@media (min-width:1100px){
  html:root:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m):not(#_n):not(#_o):not(#_p) body #gsmodal .dlg.gsdlg:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m):not(#_n):not(#_o):not(#_p){position:relative;max-width:760px;width:calc(100% - 48px);height:auto;max-height:calc(100vh - 48px);margin:24px auto;padding:16px;border-radius:28px;border:1px solid var(--line);inset:auto;top:auto;left:auto;right:auto;bottom:auto}
}

/* Juan 2026-11-28 · tableta en vertical (900–1099 px): el carrito usa la hoja del celular (antes salía a medias y los botones se encimaban). Reglas del celular (≤899 px) copiadas a este rango */
@media (min-width:900px) and (max-width:1099px){
  #tab-vender.sheetm .vclibtn{display:flex;align-items:center;gap:12px;width:100%;min-height:56px;padding:8px 14px;border-radius:16px;border:1px solid var(--line);background:var(--field);color:var(--fg,inherit);text-align:left;cursor:pointer;font:inherit}
  #tab-vender.sheetm .vcli-av{flex:none;width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--surface);color:var(--muted);font-weight:800}
  #tab-vender.sheetm .vcli-av svg{width:18px;height:18px}
  #tab-vender.sheetm .vcli-av.on{background:var(--accent);color:var(--accent-fg)}
  #tab-vender.sheetm .vcli-t{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.2}
  #tab-vender.sheetm .vcli-t small{color:var(--muted);font-size:.78rem;font-weight:600}
  #tab-vender.sheetm .vcli-t b{font-size:1rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  #tab-vender.sheetm .vcli-go{flex:none;color:var(--accent);font-weight:800;font-size:.9rem}
  #tab-vender.sheetm .vcliw.need .vclibtn{border-color:var(--warn);box-shadow:0 0 0 1px var(--warn) inset}
  #tab-vender.sheetm .vcliw.need .vcli-go{color:var(--warn)}
  #tab-vender.sheetm .vclibox{display:none}
  #tab-vender.sheetm.cli-open .vclibox{display:flex}
  #tab-vender.sheetm>.cartcard{display:none}
  #tab-vender.sheetm.sheet-open>.cartcard{display:flex;flex-direction:column;gap:12px;position:fixed;left:0;right:0;bottom:0;max-height:92dvh;z-index:45;margin:0;border-radius:24px 24px 0 0;padding:16px 16px calc(14px + env(safe-area-inset-bottom,0px));background:var(--surface);border:1px solid var(--line);border-bottom:0;box-shadow:0 -18px 40px -14px rgba(0,0,0,.45);overflow:hidden;animation:vsheetup .22s ease-out}
  #tab-vender.sheetm.sheet-open #vsheetbg{display:block;position:fixed;inset:0;z-index:44;background:rgba(0,0,0,.5)}
  #tab-vender.sheetm .cartcard .shd{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none}
  #tab-vender.sheetm .cartcard .shd h2{margin:0}
  #tab-vender.sheetm .shd #vclose{display:inline-flex}
  #tab-vender.sheetm .cart-scroll{overflow-y:auto;overflow-x:hidden;min-height:0;flex:1 1 auto;padding-right:2px;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}
  #tab-vender.sheetm .cart-foot{flex:none;border-top:1px solid var(--line);padding-top:12px}
  #tab-vender.sheetm #vcart{overflow:hidden;position:relative;border-radius:12px}
  #tab-vender.sheetm .item.cl{padding:10px 0;gap:10px;background:var(--surface);position:relative;transition:transform .18s ease;touch-action:pan-y}
  #tab-vender.sheetm .item.cl .main{display:flex;flex-direction:column;gap:2px}
  #tab-vender.sheetm .item.cl .t{font-size:.95rem;line-height:1.25}
  #tab-vender.sheetm .item.cl .rt{display:flex;flex-direction:column;align-items:flex-end;gap:6px;flex:none}
  #tab-vender.sheetm .item.cl .lt{font-size:.95rem}
  #tab-vender.sheetm .item.cl .qty button{width:30px;height:30px}
  #tab-vender.sheetm #vcart.swiping::before{content:"Quitar";position:absolute;left:0;right:0;top:var(--ry,0);height:var(--rh,0);background:#d33 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18M8 6V4h8v2M6 6l1 14h10l1-14M10 11v6M14 11v6'/%3E%3C/svg%3E") no-repeat right 78px center/22px;color:#fff;font-weight:800;font-size:1rem;display:flex;align-items:center;justify-content:flex-end;padding-right:16px;border-radius:12px}
  #tab-vender.sheetm #vcart.swgo::before{background-color:#b71c1c}
  #tab-vender.sheetm .vswipe{text-align:center}
  #tab-vender.sheetm .vpayw{display:flex;flex-direction:column;gap:8px}
  #tab-vender.sheetm .vpay{display:flex;gap:8px;overflow-x:auto;padding:2px 2px 6px;scrollbar-width:none}
  #tab-vender.sheetm .vpay::-webkit-scrollbar{display:none}
  #tab-vender.sheetm .vpill{flex:none;min-height:44px;padding:0 16px;border-radius:99px;border:1px solid var(--glass-edge);background:var(--field);color:var(--fg,inherit);font-weight:700;font-size:.95rem;cursor:pointer;white-space:nowrap}
  #tab-vender.sheetm .vpill.on{background:var(--accent)!important;color:var(--accent-fg)!important;border-color:transparent}
  #tab-vender.sheetm .vpay.shake{animation:vshake .4s}
  #tab-vender.sheetm #vmethodw{position:absolute;opacity:0;width:1px;height:1px;overflow:hidden;pointer-events:none}
  #tab-vender.sheetm .vextrabtn{display:flex;width:100%;justify-content:center}
  #tab-vender.sheetm .vextra{display:none}
  #tab-vender.sheetm.extra-open .vextra{display:flex}
  #app[data-tab="vender"] #tab-vender:not([hidden]):not(#_a):not(#_b){display:block}
}
@media (min-width:900px) and (max-width:1099px){
  html:root:not(#_a):not(#_b):not(#_c) body #tab-vender.sheetm.sheet-open>.cartcard:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f){left:50%;right:auto;top:auto;bottom:0;transform:translateX(-50%);width:min(720px,100%);height:auto;max-height:88vh;animation:none}
  #app[data-tab="vender"] #vpick .vgrid:not(#_a):not(#_b){grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media (min-width:1100px){#ivh .ivspark:not(#_a):not(#_b){height:96px}}

/* Juan 2026-11-28 · menú del perfil en el computador con los íconos de Cuadra (reglas del celular copiadas, sin la hoja de abajo) */
@media (min-width:1100px){
  html:root body #app:is([data-tab="inicio"],[data-tab="vender"]) header.top .head-r>:not(#umenu){display:none!important}
  html:root body #umenu .uitem svg.ui:not(#_x){display:none}
  html:root body #umenu .uitem .uem:not(#_x){display:grid;place-items:center;flex:none;width:40px;height:40px;border-radius:50%;font-size:1.2rem;background:color-mix(in srgb,var(--fg) 7%,var(--surface))}
  html:root body #umenu .uitem.out .uem:not(#_x){background:color-mix(in srgb,#dc2626 14%,var(--surface))}
  html:root body #umenu .uitem{gap:14px}
  html:root body #umenu .ucam svg{display:none}
  html:root body #umenu .ucam::before{content:"📷";font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif;font-size:1.2rem;line-height:1}
  html:root body #umenu .ucam{border-radius:50%}
  html:root body #umenu:not(#_x){background:var(--bg)!important;border:1px solid var(--line);box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none;padding:12px 12px calc(12px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:10px}
  html:root body #umenu .uhead:not(#_x){background:var(--surface);border:1px solid var(--line);border-radius:24px;padding:14px;box-shadow:none}
  html:root body #umenu .usec:not(#_x){background:var(--surface);border:1px solid var(--line);border-radius:24px;padding:10px 6px 6px;margin:0;box-shadow:none}
  html:root body #umenu .ulbl:not(#_x){padding:0 12px 4px;font-size:.72rem;letter-spacing:.1em}
  html:root body #umenu .usec .uitem+.uitem:not(#_x){border-top:1px solid var(--line);border-radius:0}
  html:root body #umenu .uitem:not(#_x){min-height:56px;padding:8px 10px;font-size:1rem}
  html:root body #umenu .ulegal:not(#_x){display:flex;flex-wrap:wrap;gap:8px;justify-content:center;border:0;padding:0}
  html:root body #umenu .ulegal .ulink:not(#_x){background:var(--surface);border:1px solid var(--line);border-radius:999px;padding:8px 14px;font-size:.85rem;font-weight:700}
  html:root body #umenu #logout:not(#_x){background:var(--surface);border:1px solid var(--line);border-radius:24px;min-height:60px;margin:0}
  html:root body #umenu #logout .uem:not(#_x){background:color-mix(in srgb,#dc2626 14%,var(--surface))}
  html:root body #umenu .uitem:not(#_x){text-align:left}
  #umenu .utx{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px;text-align:left}
  #umenu .utx b{font-weight:800;font-size:1rem;line-height:1.2}
  #umenu .utx small{font-size:.8rem;font-weight:500;color:var(--muted);line-height:1.25}
  #umenu .uitem:not(#gojota)::after{content:"›";margin-left:auto;padding-left:8px;color:var(--muted);font-weight:800;font-size:1.3rem;flex:none}
  #umenu .uitem#gophoto::after,#umenu #logout::after{content:none}
  #umenu .usw{flex:none;position:relative;width:46px;height:28px;border-radius:14px;background:var(--accent);margin-left:auto;transition:background .2s}
  #umenu .usw::after{content:"";position:absolute;top:3px;right:3px;width:22px;height:22px;border-radius:50%;background:#fff;transition:right .2s}
  #umenu .usw.off{background:color-mix(in srgb,var(--fg) 18%,var(--surface))}
  #umenu .usw.off::after{right:21px}
}
/* Juan 2026-11-28 · «Ver precio» como tarjeta junto a «Verificar IMEI»: solo tableta horizontal y computador (en el celular ya están las tarjetas de arriba) */
html:root body #tab-inicio.iv>#vprice:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:none!important}
@media (min-width:1100px){
  html:root body #tab-inicio.iv>#vprice:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:flex!important;grid-column:2;grid-row:4;margin:0}
}
#vprice svg.oi:not(#_a):not(#_b){display:block!important;width:28px;height:28px}
#vprice em svg.oi .m:not(#_a),#vprice em svg.oi .d:not(#_a){stroke:var(--bg)}

/* «Ver precio» con el mismo estilo que «Verificar IMEI» */
@media (max-width:1099px){
  html:root body #tab-inicio>#vprice{order:-2}
}
  html:root body #tab-inicio>#vprice.vimeib:not(#_x){display:flex;align-items:center;gap:12px;width:100%;margin:10px 0 0;padding:12px 14px;border:0;border-radius:18px;background:var(--surface);color:var(--fg);font:inherit;text-align:left;cursor:pointer;box-shadow:inset 0 0 0 2px var(--accent)}
  html.pc2 body #tab-inicio>#vprice.vimeib:not(#_x){margin:0 0 16px}
  #vprice>i{flex:none;width:42px;height:42px;border-radius:14px;display:grid;place-items:center;background:color-mix(in srgb,var(--accent) 14%,var(--surface));color:var(--accent)}
  #vprice>i svg,#vprice>em svg{width:22px;height:22px}
  #vprice>span{flex:1;min-width:0}
  #vprice>span b{display:block;font-weight:800}
  #vprice>span small{display:block;color:var(--muted);font-size:.84rem}
  #vprice>em{flex:none;width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:#16181c;color:#fff}
  html[data-theme="dark"] #vprice>em,html[data-style="mostrador"]:not([data-theme="light"]) #vprice>em{background:#eceef2;color:#14161c}
  #vprice svg.oi:not(#_a):not(#_b){display:block!important;width:28px;height:28px}
@media (min-width:1100px){
  #vprice em svg.oi .m:not(#_a),#vprice em svg.oi .d:not(#_a){stroke:var(--bg)}
}
/* Juan 2026-11-28 · menú del perfil del computador: más aire entre secciones y filas */
@media (min-width:1100px){
  html:root body #umenu:not(#_a):not(#_b):not(#_c){width:380px!important;max-width:calc(100vw - 280px)!important;padding:16px 16px 18px!important;display:flex!important;flex-direction:column;gap:16px!important}
  html:root body #umenu:not([hidden]) .uhead:not(#_a):not(#_b):not(#_c){padding:14px 16px!important;margin:0!important}
  html:root body #umenu .usec:not(#_a):not(#_b):not(#_c){margin:0!important;padding:8px 8px 8px!important}
  html:root body #umenu .ulbl:not(#_a):not(#_b):not(#_c){padding:6px 10px 8px!important;margin:0!important}
  html:root body #umenu .uitem:not(#_a):not(#_b):not(#_c){min-height:60px!important;padding:10px 12px!important;gap:14px!important}
  html:root body #umenu .ulegal:not(#_a):not(#_b):not(#_c){gap:10px!important;padding:2px 4px!important;margin:0!important}
  html:root body #umenu #logout:not(#_a):not(#_b):not(#_c){margin-top:0!important;min-height:58px!important}
}
/* Juan 2026-11-28 · íconos centrados en su círculo, medido (celular y computador) */
.vhsheet .hold>svg.oi:not(#_a):not(#_b){grid-row:1/span 2!important;align-self:center}
#ivh .ivbento .ivt.ivq .ic:not(#_a):not(#_b){display:grid;place-items:center}
#iscan:not(#_a):not(#_b),#vscan:not(#_a):not(#_b){display:inline-grid!important;place-items:center;padding:0!important}
#iscan>svg,#vscan>svg{margin:0!important}
.ci:not(#_a):not(#_b){display:inline-grid;place-items:center}
/* Juan 2026-11-28 · tableta en vertical: al abrir el carrito se siguen viendo los productos por detrás (la hoja es más baja y el fondo menos oscuro) */
@media (min-width:900px) and (max-width:1099px){
  html:root body #tab-vender.sheet-open>.vvcard:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f){visibility:visible}
  html:root:not(#_a):not(#_b):not(#_c) body #tab-vender.sheetm.sheet-open>.cartcard:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g){max-height:62vh}
  html:root body #tab-vender.sheet-open #vsheetbg:not(#_a):not(#_b):not(#_c){background:rgba(0,0,0,.16)}
}
/* Juan 2026-11-28 · Crédito y Plan Separe (celular) maqueta A: sin título repetido, sin tarjeta contenedora y una tarjeta por cliente / por plan */
@media (max-width:1099px){
  html:root body #tab-fiado #clmhero:not(#_a):not(#_b):not(#_c)::before{content:none!important;display:none!important}
  html:root body #tab-fiado #clmhero:not(:empty):not(#_a){margin-top:6px!important;padding-top:16px!important;border-radius:28px!important;margin-left:0!important;margin-right:0!important}
  html:root body #tab-fiado #fcredcard:not(#_a):not(#_b),html:root body #tab-fiado #fapcard:not(#_a):not(#_b){background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;margin:0 0 10px!important}
  html:root body #tab-fiado #fcredcard>h2:not(#_a):not(#_b),html:root body #tab-fiado #fapcard>h2:not(#_a):not(#_b){display:none!important}
  html:root body #tab-fiado #fstchips:not(#_a):not(#_b){margin:10px 0 12px;padding:0;overflow-x:auto;flex-wrap:nowrap}
  html:root body #tab-fiado #fcredcard #fsearch:not(#_a):not(#_b){background:var(--surface)!important;border:1px solid var(--line)!important;border-radius:999px!important;min-height:50px}
  html:root body #tab-fiado #fcredcard #fmenubtn:not(#_a):not(#_b){border-radius:50%!important;background:var(--surface)!important;border:1px solid var(--line)!important;width:50px;height:50px}
  html:root body #tab-fiado #flist .item.trow.fia:not(#_a):not(#_b){background:var(--surface);border:1px solid var(--line);border-radius:24px;padding:14px!important;margin:0 0 10px;box-shadow:none}
  html:root body #tab-fiado #flist .item.trow.fia+.item.trow.fia:not(#_a):not(#_b){border-top:1px solid var(--line)}
  html:root body #tab-fiado #fapcard .apcard:not(#_a):not(#_b){background:var(--surface)!important;border:1px solid var(--line)!important;border-radius:24px!important;margin:0 0 10px!important;padding:14px!important}
}
@media (max-width:1099px){
  html:root:not(#_a):not(#_b):not(#_c) body #app[data-tab="fiado"] #tab-fiado>#clmhero:not(#_x):not(#_y):not(#_z){margin:4px 0 12px!important}
  html:root body #tab-fiado #fapcard input[type="search"]:not(#_a):not(#_b){background:var(--surface)!important;border:1px solid var(--line)!important;border-radius:999px!important;min-height:50px}
}
/* Juan 2026-11-28 · «Niveles de clientes»: cada nivel en una tarjeta (nombre arriba; «Compras desde» y «Desc. %» lado a lado), antes el descuento caía solo en otra línea */
#lvcard>.row:not(#_a):not(#_b){display:grid;grid-template-columns:minmax(0,1fr) 92px;gap:8px 10px;padding:12px;margin:0 0 10px;border:1px solid var(--line);border-radius:20px;background:var(--surface)}
#lvcard>.row>label:first-child:not(#_a):not(#_b){grid-column:1/-1}
#lvcard>.row>label:not(#_a):not(#_b){max-width:none!important;margin:0;width:auto}
#lvcard>.row input:not(#_a):not(#_b){width:100%}
/* Juan 2026-11-28 · «cuando entro a una opción de Ajustes no puedo salir, no hay botón de atrás»: las hojas vuelven a tener su ✕ (círculo con el ícono de Cuadra), además de deslizar o tocar afuera. Cambia la regla de v1056. */
html:root body .modal.sheetov .sheethd>.sheetx:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g){display:grid!important;place-items:center;position:absolute;right:12px;top:10px;width:44px!important;height:44px!important;border-radius:50%!important;border:1px solid var(--line)!important;background:var(--surface)!important;color:var(--fg)!important;padding:0;font-size:0;z-index:2}
html:root body .modal.sheetov .sheethd>.sheetx svg.oi:not(#_a):not(#_b){display:block!important;width:22px;height:22px}
html:root body .modal.sheetov .sheethd:not(#_a):not(#_b):not(#_c){position:relative;padding-right:64px!important}
/* Juan 2026-11-28 · Plan Separe: la ficha dentro de la hoja era una cuadrícula de dos columnas (regla vieja de .apcard) y quedaba apretada: ahora una sola columna a todo el ancho */
.fsheet .fsheetbody>.apcard:not(#_a):not(#_b):not(#_c):not(#_d){display:flex!important;flex-direction:column;align-items:stretch;gap:12px;grid-template-columns:none}
.fsheet .fsheetbody>.apcard>*:not(#_a):not(#_b):not(#_c){grid-column:auto!important;grid-row:auto!important;width:100%;min-width:0}
.fsheet .fsheetbody>.apcard .fap-money:not(#_a):not(#_b){display:flex;justify-content:space-between;align-items:flex-end}
.fsheet .fsheetbody>.apcard>.row:first-child:not(#_a):not(#_b){display:flex;justify-content:space-between;align-items:baseline;flex-wrap:wrap}
.sddrow:not(#_a):not(#_b){display:flex;flex-direction:column;gap:10px}
.sddrow .btn:not(#_a):not(#_b){width:100%;justify-content:center;white-space:nowrap}
.fsheet details.more>summary:not(#_a):not(#_b),.apcard details.more>summary:not(#_a):not(#_b){display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 16px;border:1px solid var(--line);border-radius:999px;color:var(--fg);background:var(--surface);font-weight:700}
.fsheet details.more>summary:not(#_a):not(#_b)::before,.apcard details.more>summary:not(#_a):not(#_b)::before{content:"+";display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:color-mix(in srgb,var(--accent) 22%,transparent);color:var(--accent)}
.fsheet .fsheetbody>.apcard>.row:first-child>b:not(#_a):not(#_b){flex:none;font-size:1.1rem;white-space:nowrap}
.fsheet .fsheetbody>.apcard>.row:first-child>.hint:not(#_a):not(#_b){margin-left:auto;text-align:right}
#fiapane details.more>summary:not(#_a):not(#_b){display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 16px;border:1px solid var(--line);border-radius:999px;color:var(--fg);background:var(--surface);font-weight:700}
#fiapane details.more>summary:not(#_a):not(#_b)::before{content:"+";display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:color-mix(in srgb,var(--accent) 22%,transparent);color:var(--accent)}
#fiapane details.more[open]>summary:not(#_a):not(#_b)::before{content:"–"}
/* Juan 2026-11-28 · Crédito / Plan Separe en el carrito: con renglones extra en el total (Abono inicial, Quedará debiendo) el botón baja debajo de la tarjeta negra y deja de taparlos (celular y tableta) */
@media (max-width:1099px){
  html:root:not(#_a):not(#_b):not(#_c) body #tab-vender.sheet-open[data-vstep] .cart-foot:has(#vtotals .r:not(.big))>#vtotals:not(#_x):not(#_y):not(#_z):not(#_w):not(#_v):not(#_u){padding-right:20px}
  html:root:not(#_a):not(#_b):not(#_c) body #tab-vender.sheet-open[data-vstep] .cart-foot:has(#vtotals .r:not(.big))>#vtotals .r:not(.big):not(#_x):not(#_y):not(#_z):not(#_w):not(#_v):not(#_u){width:100%;justify-content:space-between;font-size:.9rem}
  html:root:not(#_a):not(#_b):not(#_c) body #tab-vender.sheet-open[data-vstep] .cart-foot:has(#vtotals .r:not(.big))>.row>:is(#vnext,#vconfirm):not(#_x):not(#_y):not(#_z):not(#_w):not(#_v):not(#_u){grid-area:2/1/3/3;justify-self:stretch;width:100%!important;margin:10px 0 0!important;justify-content:center}
  html:root:not(#_a):not(#_b):not(#_c) body #tab-vender.sheet-open[data-vstep] .cart-foot:has(#vtotals .r:not(.big))>.row>:is(#vhold,#vquote):not(#_x):not(#_y):not(#_z):not(#_w):not(#_v):not(#_u){grid-row:3}
}
/* Juan 2026-11-28 · «Cotización» del carrito con el ícono de Cuadra en vez del emoji 📄 */
html body #tab-vender.sheet-open[data-vstep] .cart-foot>.row>#vquote:not(#_a):not(#_b):not(#_c)::before{content:"Cotización"!important;font-size:.92rem;white-space:nowrap}
#vquote>svg.oi:not(#_a):not(#_b){display:inline-block!important;width:20px;height:20px;margin-right:6px;vertical-align:-4px}
html body #tab-vender #vplan .chk:not(#_a):not(#_b):not(#_c)::before{content:none!important;display:none!important}
#tab-vender #vplan .chk>svg.oi:not(#_a):not(#_b){display:block!important;order:-1;flex:none;width:42px;height:42px;padding:9px;box-sizing:border-box;border-radius:50%;background:color-mix(in srgb,var(--accent) 16%,var(--surface))}
/* Juan 2026-11-28 · calendario de cuotas (Crédito): cada cuota es una fila-tarjeta y «Cobrar» una píldora */
.fsheet .cuota-row:not(#_a):not(#_b){align-items:center!important;gap:10px;padding:10px 12px;margin:6px 0;border:1px solid var(--line);border-radius:18px;background:var(--surface)}
.fsheet .cuota-row.done:not(#_a):not(#_b){opacity:.75}
.fsheet .cuota-row.tap .cobr:not(#_a):not(#_b){font-style:normal;display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border-radius:999px;border:1px solid var(--line);background:var(--bg);font-weight:700}
.fsheet .cuota-row>span:first-child:not(#_a):not(#_b){white-space:nowrap;flex:none}
.fsheet .cuota-row>span:last-child:not(#_a):not(#_b){display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:6px 8px;min-width:0}
/* ✕ automática de las hojas que no la traían */
html:root body .modal .dlg>.sheetx.sheetx-auto:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:grid!important;place-items:center;position:absolute;right:12px;top:12px;width:44px!important;height:44px!important;border-radius:50%!important;border:1px solid var(--line)!important;background:var(--surface)!important;color:var(--fg)!important;padding:0;font-size:0;z-index:5}
html:root body .modal .dlg>.sheetx.sheetx-auto svg.oi:not(#_a):not(#_b){display:block!important;width:22px;height:22px}
html:root body .modal .dlg:has(>.sheetx-auto):not(#_a):not(#_b){position:relative}
html:root body .modal .dlg:has(>.sheetx-auto)>h2:first-of-type:not(#_a):not(#_b),html:root body .modal .dlg:has(>.sheetx-auto)>.sheethd>h2:not(#_a):not(#_b){padding-right:56px}
html:root body #slist .item.srow>.sheetx-sv:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j){display:grid!important;place-items:center;position:absolute;right:12px;top:10px;width:44px;height:44px;border-radius:50%;border:1px solid var(--line);background:var(--surface);color:var(--fg);padding:0;font-size:0;z-index:6}
html:root body #slist .item.srow>.sheetx-sv svg.oi:not(#_a):not(#_b){display:block!important;width:22px;height:22px}
/* «Adjuntar foto» (Servicio): la etiqueta no cabía en el cuadro de 84 px y se salía; ahora el cuadro se ajusta al texto y queda centrado */
html:root body .modal.svdsheet .vsd-prf .prfadd:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f){width:auto!important;min-width:112px;height:auto!important;min-height:84px;padding:10px 14px!important;box-sizing:border-box;border-radius:20px;text-align:center}
html:root body .modal.svdsheet .vsd-prf .prfadd>span:not(#_a):not(#_b):not(#_c){white-space:nowrap;font-size:.8rem;font-weight:700;line-height:1.1}

/* v1217 · Juan 2026-11-28 («en el inicio hay partes con íconos a color»): el Inicio viejo (técnico) usa los íconos duotono de Cuadra en vez de emojis */
html:root body #tab-inicio #vacts .vact i.vemo>svg.oi:not(#_a):not(#_b):not(#_c){display:block;width:22px;height:22px;color:var(--fg)}
html:root body #tab-inicio #vacts .vact.main i.vemo>svg.oi:not(#_a):not(#_b):not(#_c){color:#0b0f0e}
html:root body #tab-inicio #vmost .vmq .vemo>svg.oi:not(#_a):not(#_b):not(#_c){display:block;width:22px;height:22px;color:var(--fg)}

/* v1217 · Juan 2026-11-28: íconos duotono en «Pantalla y accesibilidad» y «Ayuda» (antes emojis a color) */
html:root body #dispmodal :is(.dme,.dce)>svg.oi:not(#_a):not(#_b):not(#_c),html:root body #helpmodal .hce>svg.oi:not(#_a):not(#_b):not(#_c){display:block;width:24px;height:24px;color:var(--fg)}
html:root body #helpmodal .hjotac .hce>svg.oi:not(#_a):not(#_b):not(#_c){width:24px;height:24px}

/* v1218 · Juan 2026-11-28: la orden del técnico se abre en una hoja del mismo estilo que Servicio */
html:root body .modal.sisheet .sibody .md-s:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){color:var(--muted);font-size:.9rem;margin:2px 0 10px}
html:root body .modal.sisheet .sibody .mdbox:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){display:flex;flex-direction:column;gap:14px;margin-top:6px}
html:root body .modal.sisheet .sibody .mdbox .row:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){gap:10px;margin:0}
html:root body .modal.sisheet .sibody .mdbox label.f:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){display:flex;flex-direction:column;gap:6px;margin:0;font-weight:700}
html:root body .modal.sisheet .sibody .md-b:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){display:flex;flex-wrap:wrap;gap:10px;margin:4px 0 10px}
html:root body .modal.sisheet .sibody .mdbox>.md-b>.bfc:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){flex:1 1 100%}
html:root body .modal.sisheet .sibody .mdbox>.md-b>.bfs:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){flex:1 1 0}

/* v1219 · Juan 2026-11-28 («más contraste no funciona»): las reglas del diseño nuevo tapaban las de data-hc; estas van al final y ganan en claro y oscuro */
html:root:root[data-hc]:not([data-theme="light"]):not(#_a):not(#_b){--fg:#ffffff;--muted:#d4d9df;--line:#8d949c;--glass-edge:rgba(255,255,255,.45)}
@media (prefers-color-scheme:light){html:root:root[data-hc]:not([data-theme="dark"]):not(#_a):not(#_b){--fg:#000000;--muted:#3a4148;--line:#7a828b}}
html:root:root[data-hc][data-theme="light"]:not(#_a):not(#_b){--fg:#000000;--muted:#3a4148;--line:#7a828b}
html:root:root[data-hc] :is(.hint,small,.s):not(#_a):not(#_b):not(#_c){color:var(--muted)}
html:root:root[data-hc] :is(.cpn-card,.cpn-r+.cpn-r,.item,.card,.ivt,.tile):not(#_a):not(#_b):not(#_c){border-color:var(--line)}

/* v1220 · Juan 2026-11-28: botones de la orden del técnico bien separados (Guardar arriba, dos iguales abajo) */
html:root body .modal.sisheet .sibody .mdbox>.md-foot:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){display:flex;flex-direction:column;gap:14px;margin:12px 0 8px;padding-top:18px;border-top:1px solid var(--line)}
html:root body .modal.sisheet .sibody .md-foot>.bfc:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){width:100%;min-height:54px;font-size:1rem}
html:root body .modal.sisheet .sibody .md-foot>.md-b2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){display:grid;grid-template-columns:1fr 1fr;gap:12px}
html:root body .modal.sisheet .sibody .md-foot>.md-b2:not(:has(>:nth-child(2))):not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f){grid-template-columns:1fr}
html:root body .modal.sisheet .sibody .md-b2>:is(.btn,a):not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h){min-height:52px;display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap;margin:0;width:100%;box-sizing:border-box;text-decoration:none}

/* v1221 · «Agregar foto» con ícono de Cuadra (antes 📷) */
html:root body .btn.phadd:not(#_a):not(#_b):not(#_c){display:inline-flex;align-items:center;justify-content:center;gap:8px}
html:root body .btn.phadd>svg.oi:not(#_a):not(#_b):not(#_c){width:20px;height:20px;display:block;flex:none}
html:root body :is(.ajdemo,.ajic)>svg.oi:not(#_a):not(#_b):not(#_c){display:block;width:22px;height:22px}
html:root body .ajdemo:not(#_a):not(#_b):not(#_c){display:inline-grid;place-items:center;font-style:normal}
html:root body #ajmods .ajrow .ajic:not(#_a):not(#_b):not(#_c){width:42px;height:42px;border-radius:50%;display:grid;place-items:center;flex:none;background:color-mix(in srgb,var(--accent) 14%,var(--surface))}
html:root body .chip.chlv>svg.oi:not(#_a):not(#_b):not(#_c){width:14px;height:14px;display:inline-block;vertical-align:-2px;margin-right:4px}

/* v1223 · Juan 2026-11-28: las pantallas del menú del perfil llevan un ícono de Cuadra junto al título */
html:root body h2.shh2:not(#_a):not(#_b):not(#_c){display:flex;align-items:center;gap:12px;text-align:left}
html:root body h2.shh2>span:not(.shic):not(#_a):not(#_b):not(#_c){min-width:0}
html:root body .shic:not(#_a):not(#_b):not(#_c){width:42px;height:42px;border-radius:50%;display:grid;place-items:center;flex:none;background:color-mix(in srgb,var(--accent) 14%,var(--surface))}
html:root body .shic>svg.oi:not(#_a):not(#_b):not(#_c){width:22px;height:22px;display:block;color:var(--fg)}
html:root body :is(.pkwarn,.acwarn)>i.e>svg.oi:not(#_a):not(#_b):not(#_c){width:22px;height:22px;display:block;color:currentColor}
html:root body #dispmodal .dsx:not(#_a):not(#_b):not(#_c){display:grid!important;place-items:center;width:42px;height:42px;min-height:0;padding:0;border-radius:50%!important;flex:none}
html:root body #dispmodal .dsx>svg.oi:not(#_a):not(#_b):not(#_c){width:20px;height:20px;display:block}

/* v1224 · Juan 2026-11-28: todos los botones son píldora o círculo (sin esquinas casi cuadradas) */
html:root body :is(.seg.fbseg,#catseg.seg,.rpd-leg,.ag-week)>button:not(#_a):not(#_b):not(#_c):not(#_d){border-radius:999px!important}
html:root body :is(#rpmore.rx-morebtn,.jotahd,.eyebtn.ih-eye):not(#_a):not(#_b):not(#_c):not(#_d){border-radius:999px!important}
html:root body .card.fold>:is(summary,button):not(#_a):not(#_b):not(#_c):not(#_d){border-radius:20px}
html:root body :is(#catlt.seg>button,#calgrid>.calday,.sheethd>.vf-clear,#umenu #logout.uitem.out):not(#_a):not(#_b):not(#_c):not(#_d){border-radius:999px!important}
html:root body :is(#invseg.seg>button,.card.dn>.dn-profit,.navwho>.bellbtn,.pcacts>.pca,.qty>button,#calgrid>.calday.on,#calgrid>.calday.today,#ivsw.vsw>button):not(#_a):not(#_b):not(#_c):not(#_d):not(#_e){border-radius:999px!important}
html:root:root body :is(#calgrid>.calday,.pdph>.pdstock):not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i){border-radius:999px!important}

/* v1226 · Juan 2026-11-28 (iPhone): «Pantalla y accesibilidad» se movía de lado: las casillas ocultas de los botones medían todo el ancho y empujaban el contenido */
html:root body .modal .dlg input:is([type=radio],[type=checkbox]):not(#_a):not(#_b):not(#_c){max-width:24px;max-height:24px}
html:root body #dispmodal .dlg:not(#_a):not(#_b):not(#_c){overflow-x:hidden}
html:root body .pkstate>i.pke>svg.oi:not(#_a):not(#_b):not(#_c){width:22px;height:22px;display:block;color:currentColor}

/* v1228 · el color de la hoja se prolonga hacia abajo (sólido, invisible si no hay franja): si el iPhone dejara un hueco bajo la ventana, no se ve la pantalla de atrás */
@media (max-width:1099px){html:root body :is(.modal.sheetov>.dlg,.modal.optsheet>.dlg,.modal>.dlg.sheetdlg):not(#_a):not(#_b):not(#_c){box-shadow:0 160px 0 0 var(--bg)}}

/* v1229 · diálogo «Mi foto de perfil»: íconos de Cuadra en lugar de emojis */
html:root body #photomodal :is(.btn>i.e,.phzrow>i.e)>svg.oi:not(#_a):not(#_b):not(#_c){width:20px;height:20px;display:block}
html:root body #photomodal .btn:not(#_a):not(#_b):not(#_c){display:inline-flex;align-items:center;justify-content:center;gap:8px}
html:root body :is(.scic,.imic,.avhoc,.scem)>svg.oi:not(#_a):not(#_b):not(#_c){width:22px;height:22px;display:block}
html:root body .avhoc:not(#_a):not(#_b):not(#_c){display:inline-grid;place-items:center;vertical-align:middle;margin-right:6px}

/* v1230 · «Hoy toca» del técnico en la campana */
html:root body .tchoy>h3:not(#_a):not(#_b):not(#_c){margin:6px 0 10px;font-size:1.05rem}
html:root body .item.tch:not(#_a):not(#_b):not(#_c){display:flex;align-items:center;gap:12px;background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:12px 14px;margin:0 0 10px}
html:root body .tchi:not(#_a):not(#_b):not(#_c){width:42px;height:42px;border-radius:50%;display:grid;place-items:center;flex:none;background:color-mix(in srgb,var(--accent) 14%,var(--surface))}
html:root body .tchi>svg.oi:not(#_a):not(#_b):not(#_c){width:22px;height:22px;display:block;color:var(--fg)}
html:root body .item.tch .main:not(#_a):not(#_b):not(#_c){flex:1;min-width:0}
html:root body .item.tch .s:not(#_a):not(#_b):not(#_c){color:var(--muted);font-size:.85rem}

/* v1232 · Jota paso 1: tarjeta «Ventas de esta semana» en el chat (maqueta A de disenos/jota-analisis) */
html:root body .jchat .jsem:not(#_a):not(#_b){background:var(--surface);border:1px solid var(--line);border-radius:26px;padding:16px;margin:8px 0}
html:root body .jsem .jsh{display:flex;align-items:center;gap:12px}
html:root body .jsem .jsh>span{display:grid;line-height:1.2}html:root body .jsem .jsh small,html:root body .jsem .jsmu,html:root body .jsem .jst3 small{color:var(--muted);font-size:.78rem;font-weight:600}
html:root body .jsem .jsi{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;flex:none;font-style:normal;background:color-mix(in srgb,var(--accent) 14%,var(--surface))}
html:root body .jsem .jsi>svg.oi{width:22px;height:22px;display:block;color:var(--fg)}
html:root body .jsem .jsbig{display:flex;align-items:center;gap:10px;margin-top:14px;flex-wrap:wrap}
html:root body .jsem .jsbig>b{font-family:var(--f-display);font-weight:800;font-size:1.9rem;letter-spacing:-.03em;line-height:1.05}
html:root body .jsem .jsp{font-style:normal;font-weight:800;font-size:.78rem;border-radius:999px;padding:4px 10px;background:var(--field);color:var(--fg)}
html:root body .jsem .jsp.bad,html:root body .jsem .jsr .bad{color:var(--bad,#f87171)}html:root body .jsem .jsp.ok,html:root body .jsem .jsr .ok{color:var(--accent-2,#4ade80)}
html:root body .jsem .jsp.bad{background:color-mix(in srgb,var(--bad,#f87171) 18%,var(--surface))}html:root body .jsem .jsp.ok{background:color-mix(in srgb,var(--accent) 16%,var(--surface))}
html:root body .jsem .jst3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:14px}
html:root body .jsem .jst3>div{background:var(--field);border-radius:18px;padding:10px;display:grid;gap:2px;min-width:0}html:root body .jsem .jst3 b{font-size:.95rem;overflow-wrap:anywhere}
html:root body .jsem .jsh2{font-size:.72rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin:16px 0 4px}
html:root body .jsem .jsr{display:flex;align-items:center;gap:10px;padding:9px 0;border-top:1px solid var(--line)}html:root body .jsem .jsr:first-child{border-top:0}
html:root body .jsem .jsg{flex:1;min-width:0;display:grid;gap:6px}html:root body .jsem .jsb{display:block;height:7px;border-radius:99px;background:var(--field);overflow:hidden}
html:root body .jsem .jsb>i{display:block;height:100%;border-radius:99px;background:var(--bad,#f87171)}html:root body .jsem .jsb>i.ok{background:var(--accent)}
html:root body .jsem .jbtns{display:grid;gap:8px;margin-top:14px}html:root body .jsem .jbtns .btn{width:100%;justify-content:center}
html:root body .jsem .jst3{gap:6px}html:root body .jsem .jst3>div{padding:8px 7px}
html:root body .jsem .jst3 b{font-size:.8rem;white-space:nowrap;overflow-wrap:normal}html:root body .jsem .jst3 small{font-size:.68rem;white-space:nowrap}
html:root body .jchat .jsem:not(#_a):not(#_b){padding:14px 12px}

/* v1233 · Jota paso 2: tarjeta «Cotización para revisar» (mismo estilo de la tarjeta de la semana) */
html:root body .jcot .jcrs{margin-top:10px}
html:root body .jcot .jcr{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:9px 0;border-top:1px solid var(--line)}html:root body .jcot .jcrs .jcr:first-child{border-top:0}
html:root body .jcot .jcn{display:grid;gap:2px;min-width:0}html:root body .jcot .jcn small{font-size:.74rem;font-weight:700}html:root body .jcot .jcn small.bad{color:var(--bad,#f87171)}
html:root body .jcot .jct{font-weight:800;border-top:1.5px solid var(--line);margin-top:2px}html:root body .jcot .jct span{color:var(--muted);font-weight:700;font-size:.85rem}
html:root body .jcot .jbtns{display:grid;gap:8px;margin-top:12px}html:root body .jcot .jbtns .btn{width:100%;justify-content:center}
html:root body .jcot .jcr>b.num{white-space:nowrap;flex:none}

/* v1234 · Jota paso 3: tarjeta «Combo para revisar» (maqueta A de Juan) */
html:root body .jcmb .jcmp{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}
html:root body .jcmb .jcmp>div{background:var(--card2,var(--field,rgba(127,127,127,.12)));border-radius:18px;padding:10px 12px}
html:root body .jcmb .jcmp small{display:block;color:var(--muted);font-size:.72rem;font-weight:700}
html:root body .jcmb .jcmp b{font-size:1.05rem;white-space:nowrap}
html:root body .jcmb .jcmp .nw{background:var(--accent-soft,rgba(34,179,88,.16))}html:root body .jcmb .jcmp .nw b{color:var(--accent)}
html:root body .jcmb .jgn{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:10px;font-weight:700}html:root body .jcmb .jgn b{color:var(--accent);white-space:nowrap}
html:root body .jcmb .jchips{margin-top:8px}
html:root body .jcmb .jbtns .btn{white-space:nowrap;font-size:.9rem;padding-inline:14px}

/* v1235 (Juan): en «Base y movimientos de efectivo» los botones no van pegados al campo ni entre sí */
html:root body #mvcard #mvnonerow:not(#_a):not(#_b):not(#_c){margin-top:16px}
html:root body #mvcard .mvsfoot:not(#_a):not(#_b):not(#_c){margin-top:14px}

/* v1235 (Juan): los «Sin movimientos…» de Caja e Inventario llevan ícono de Cuadra en un círculo (antes el dibujo suelto de la tienda) */
html:root body .empty.eoi:not(#_a):not(#_b):not(#_c)::before{display:none!important}
html:root body .empty.eoi>.eoiw:not(#_a):not(#_b):not(#_c){display:grid;place-items:center;width:56px;height:56px;margin:0 auto 10px;border-radius:50%;background:color-mix(in srgb,var(--accent) 14%,var(--surface))}
html:root body .empty.eoi>.eoiw svg.oi:not(#_a):not(#_b):not(#_c){display:block;width:28px;height:28px}

/* v1237 (Juan, maqueta B de disenos/ajustes-whatsapp): tarjeta «WhatsApp (prueba)» de Ajustes → Avisos y respaldo */
#wapicard h3{margin:14px 0 0;font-size:1rem}
#wapicard .wachks{border:1px solid var(--line);border-radius:20px;padding:2px 12px;margin:10px 0;background:var(--surface)}
#wapicard .wachk,#wapicard .wamsg{display:flex;align-items:center;gap:12px;padding:10px 0}
#wapicard .wachk+.wachk,#wapicard .wamsg+.wamsg{border-top:1px solid var(--line)}
#wapicard .wachkic{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;flex:none;color:var(--fg);background:color-mix(in srgb,var(--accent) 16%,transparent)}
#wapicard .wachkic.warn{background:color-mix(in srgb,var(--warn) 22%,transparent)}#wapicard .wachkic.bad{background:color-mix(in srgb,var(--bad) 22%,transparent)}
#wapicard .wachkic svg.oi{display:block;width:18px;height:18px}
#wapicard .wachktx{display:flex;flex-direction:column;min-width:0;flex:1;gap:1px}
#wapicard .wachktx b{font-size:.95rem}#wapicard .wachktx span{font-size:.8rem;color:var(--muted);overflow-wrap:anywhere}
#wapicard .wahook{margin:10px 0;display:flex;flex-direction:column;gap:6px}
#wapicard .wahl{font-size:.78rem;font-weight:800;color:var(--muted)}
#wapicard .bkhook{display:flex;gap:8px;align-items:center}
#wapicard .bkhook code{flex:1;min-width:0;overflow-wrap:anywhere;padding:10px 12px;border-radius:12px;background:var(--field);font-size:.8rem}
#wapicard .watag{font-size:.7rem;font-weight:850;padding:3px 9px;border-radius:999px;background:color-mix(in srgb,var(--accent) 16%,transparent);color:var(--accent);white-space:nowrap;flex:none}
#wapicard .watag.b{background:var(--field);color:var(--fg)}#wapicard .watag.w{background:var(--warn-soft);color:var(--warn)}#wapicard .watag.r{background:var(--bad-soft);color:var(--bad)}
#wapicard .wamsgs{border:1px solid var(--line);border-radius:20px;padding:2px 12px;margin-top:8px;background:var(--surface)}
#wapicard button[disabled]{opacity:.55}

/* v1243 · Subsecciones de Ajustes (celular): la fila con la flecha y el título quedaba debajo de la hora del iPhone y el título se cortaba arriba (Juan, 2026-11-29). El encabezado de la página está oculto en Ajustes, así que esa fila deja el espacio de la hora y la batería. */
@media (max-width:1099px){
  html.aj-insec:root body #tab-ajustes>#ajbar:not([hidden]):not(#_x):not(#_y){margin-top:0!important;padding-top:calc(var(--sat,0px) + 24px)!important}
}

/* v1244 · Íconos de las secciones plegables de Ajustes (en la página, no en la hoja): el cuadro tenía fondo verde claro fijo y en modo oscuro el trazo (casi blanco) no se veía, y el dibujo tampoco se mostraba. Mismo fondo y tamaño que ya usan dentro de las hojas. */
html:root body #tab-ajustes .sacc .sai:not(#_a):not(#_b):not(#_c){background:color-mix(in srgb,var(--accent) 14%,var(--surface))}
html:root body #tab-ajustes .sacc .sai svg:not(#_a):not(#_b):not(#_c){display:block!important;width:24px;height:24px}

/* v1247 · Jota con personaje 3D (Juan, 2026-11-30): ya no es el celular verde. Imágenes en jota-img.js (clases .jp-c-<pose> cara y .jp-b-<pose> cuerpo).
   Cada pose es una capa y se cambia con un fundido de .2 s según el estado del chat: reposo; piensa (.jbusy, duda, triste); habla (.jhabla);
   éxito (feliz, fiesta); saluda (hola, cosquillas). Cara en círculo para lo chico; cuerpo entero para el saludo grande (.jgrande). */
.jfoto{display:block;position:relative;width:100%;height:100%;transform-origin:50% 100%;animation:jfresp 4.4s ease-in-out infinite}
.jfoto .jp{position:absolute;inset:0;opacity:0;transition:opacity .2s ease;background-repeat:no-repeat;background-position:center;background-size:cover}
.jfoto .jc{border-radius:50%}
.jfoto .jb{display:none;background-size:contain;background-position:center bottom}
.jfoto .jp-c-reposo,.jfoto .jp-b-reposo{opacity:1}
@keyframes jfresp{0%,100%{transform:scale(1) rotate(-.7deg)}50%{transform:scale(1.03) rotate(.7deg)}} /* respira y se balancea apenas */
/* parpadeo: la misma cara con los ojos cerrados (::after) aparece ~130 ms cada ~5 s; solo sigue a la pose que se ve y no en las respuestas viejas */
.jfoto .jc::after{content:'';position:absolute;inset:0;border-radius:50%;background-repeat:no-repeat;background-position:center;background-size:cover;opacity:0;animation:jfparpa 5.4s linear infinite}
@keyframes jfparpa{0%,93%,98.5%,100%{opacity:0}95%,96.5%{opacity:1}}
.jotahd .jfoto .jc::after{animation-delay:-1.7s}
.jchat .jmk .jfoto .jc::after{animation-delay:-3.3s}
.jchat .jav:not(.jlast) .jfoto .jc::after{animation:none}
.jrc:is(.jbusy,.jr-duda,.jr-triste) .jfoto :is(.jp-c-reposo,.jp-b-reposo),
.jrc:is(.jr-feliz,.jr-fiesta) .jfoto :is(.jp-c-reposo,.jp-b-reposo),
.jrc:is(.jr-hola,.jr-cosquillas) .jfoto :is(.jp-c-reposo,.jp-b-reposo),
.jrc.jhabla .jfoto :is(.jp-c-reposo,.jp-b-reposo){opacity:0}
.jrc:is(.jbusy,.jr-duda,.jr-triste) .jfoto :is(.jp-c-piensa,.jp-b-piensa){opacity:1}
.jrc:is(.jr-feliz,.jr-fiesta) .jfoto :is(.jp-c-exito,.jp-b-exito){opacity:1}
.jrc:is(.jr-hola,.jr-cosquillas) .jfoto :is(.jp-c-saluda,.jp-b-saluda){opacity:1}
.jrc.jhabla .jfoto :is(.jp-c-habla,.jp-b-habla){opacity:1}
.jrc.jhabla .jfoto :is(.jp-c-piensa,.jp-b-piensa,.jp-c-exito,.jp-b-exito,.jp-c-saluda,.jp-b-saluda){opacity:0}
/* tamaños (antes eran del <svg> del celular) */
.jchat .jmk .jfoto{width:46px;height:46px}
.jchat .jav .jfoto{width:100%;height:100%}
.jotahd .jfoto{width:36px;height:36px}
nav.tabs .navwho .jotahd .jfoto{width:26px;height:26px}
html:root body #ajhero2 .ajbr>.jotahd .jfoto{width:20px;height:20px}
html:root body #app:not([data-tab="inicio"]):not([data-tab="vender"]):not([data-tab="ajustes"]) header.top .jotahd .jmascot.jfoto{width:30px;height:30px}
html:root:not(#_a):not(#_b):not(#_c) body #app:not([data-tab="inicio"]):not([data-tab="vender"]):not([data-tab="ajustes"]) header.top .jotahd .jmascot.jfoto{width:26px;height:26px}
html:root:not(#_a):not(#_b):not(#_c) body #app[data-tab="vender"] header.top .jotahd .jmascot.jfoto{width:26px;height:26px}
/* saludo grande al abrir el chat: cuerpo entero */
.jchat .jm.j.jgr>.jav.jpers{width:100%;height:230px;margin:6px auto 10px}
.jchat .jav.jgrande .jfoto .jc{display:none}
.jchat .jav.jgrande .jfoto .jb{display:block}
.jotahd.jdot .jfoto{animation:jbrinco .7s ease-out 3}
.jchat .jav:not(.jlast) .jfoto{animation:none}
@media (prefers-reduced-motion:reduce){.jfoto,.jfoto *,.jfoto .jc::after{animation:none!important;transition:none!important}}

/* v1247 · saludo grande con video (clip de cuerpo entero sobre fondo negro, sin aro: la mano saluda y habla): solo mientras la cara es «hola»; al pensar, hablar o celebrar vuelven las poses fijas */
.jav .jvid{display:none;width:146px;height:230px;max-width:100%;margin:0 auto;border-radius:0;object-fit:cover;background:transparent;mix-blend-mode:lighten} /* oscuro: el negro del video se funde con la tarjeta (Juan, 2026-11-30) */
html[data-theme="light"] .jav .jvid{mix-blend-mode:normal;background:#000;border-radius:22px} /* claro: el fundido haría desaparecer al personaje; queda en recuadro negro */
@media (prefers-color-scheme:light){html:not([data-theme="dark"]) .jav .jvid{mix-blend-mode:normal;background:#000;border-radius:22px}}
.jav.jconvideo.jr-hola .jvid{display:block}
.jav.jconvideo.jr-hola .jfoto{display:none}
@media (prefers-reduced-motion:reduce){.jav .jvid{display:none!important}.jav.jconvideo .jfoto{display:block!important}}
