/* v506 · Directorio de clientes · modelo C (barra de tiendas sin recuadros, lista en filas y ficha) */
#view-clients{--dc-card:#fff;--dc-ink:#0B1215;--dc-mute:#6B7378;--dc-soft:#F1F2EF;--dc-line:#E7E8E5;--dc-amr:#E0335A;--dc-jet:#182A31;--dc-ok:#1F8A4C;--dc-ok-bg:#E6F5EC;--dc-warn:#B4560F;--dc-warn-bg:#FDEFE3}

/* resumen por tienda: selector tipo píldora + lo vendido y su desglose */
#view-clients .dir-tnd{background:var(--dc-card);border:1px solid var(--dc-line);border-radius:18px;padding:12px;margin:0 0 12px}
#view-clients .dir-tnd:empty{display:none}
#view-clients .t2-seg{display:flex;gap:4px;background:var(--dc-soft);border-radius:14px;padding:4px}
#view-clients .t2-seg button{all:unset;box-sizing:border-box;cursor:pointer;flex:1;border-radius:11px;height:46px;display:flex;align-items:center;justify-content:center;gap:8px;font-weight:700;font-size:13.5px;color:var(--dc-mute);min-width:0}
#view-clients .t2-seg button:focus-visible{outline:2px solid var(--dc-amr);outline-offset:-2px}
#view-clients .t2-seg svg,#view-clients .t2-c svg{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
#view-clients .t2-seg button svg{width:20px;height:20px}
#view-clients .t2-seg button img{height:30px;width:auto;filter:grayscale(.7);opacity:.6}
#view-clients .t2-seg button.on{background:#fff;color:var(--dc-ink);box-shadow:0 1px 2px rgba(11,18,21,.08),0 4px 12px rgba(11,18,21,.06)}
#view-clients .t2-seg button.on img{filter:none;opacity:1}
#view-clients .t2-body{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:12px;margin-top:12px;align-items:stretch}
#view-clients .t2-big{background:var(--dc-jet);color:#fff;border-radius:14px;padding:14px 16px;border-bottom:3px solid var(--dc-amr);display:flex;flex-direction:column;gap:2px}
#view-clients .t2-big small{font-size:12px;opacity:.7;font-weight:600}
#view-clients .t2-big>b{font-size:26px;letter-spacing:-.4px;font-variant-numeric:tabular-nums;color:#fff}
#view-clients .t2-big .s{font-size:12.5px;opacity:.75}
#view-clients .t2-barra{height:6px;border-radius:6px;background:rgba(255,255,255,.14);overflow:hidden;margin-top:10px;display:flex}
#view-clients .t2-barra i{display:block;height:100%;background:#3BC77A}
#view-clients .t2-barra em{display:block;height:100%;background:#F29A4A}
#view-clients .t2-ley{display:flex;justify-content:space-between;gap:8px;font-size:12px;margin-top:6px;flex-wrap:wrap}
#view-clients .t2-ley span{white-space:nowrap}
#view-clients .t2-ley b{font-size:12.5px;color:#fff}
#view-clients .t2-ley .c::before,#view-clients .t2-ley .p::before{content:"";display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:5px}
#view-clients .t2-ley .c::before{background:#3BC77A}
#view-clients .t2-ley .p::before{background:#F29A4A}
#view-clients .t2-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
#view-clients .t2-c{border:1px solid var(--dc-line);border-radius:14px;padding:11px 12px;display:flex;flex-direction:column;gap:2px;min-width:0;background:#fff}
#view-clients .t2-c .h{display:flex;align-items:center;gap:6px;font-size:12px;font-weight:700;color:var(--dc-mute)}
#view-clients .t2-c .h svg{width:16px;height:16px;color:var(--dc-jet);flex:none}
#view-clients .t2-c b{font-size:17px;color:var(--dc-ink);font-variant-numeric:tabular-nums;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#view-clients .t2-c .s{font-size:12px;color:var(--dc-mute)}
#view-clients .t2-c .s em{font-style:normal;font-weight:700;color:var(--dc-warn)}
@media (max-width:1100px){#view-clients .t2-body{grid-template-columns:1fr}}
@media (max-width:720px){
  #view-clients .dir-tnd{padding:10px}
  #view-clients .t2-seg button{height:42px}
  #view-clients .t2-seg .tx{display:none}
  #view-clients .t2-seg button img{height:26px}
  #view-clients .t2-big>b{font-size:24px}
  #view-clients .t2-grid{grid-template-columns:1fr 1fr}
  #view-clients .t2-c b{font-size:15.5px}
}

/* lista + ficha */
html body #view-clients #client-list.dirc{display:block!important}
html body #view-clients #client-list.dirc.hidden{display:none!important}
#view-clients .dirc-lado{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:14px;align-items:start}
#view-clients .dirc-lista{background:var(--dc-card);border:1px solid var(--dc-line);border-radius:16px;overflow:hidden}
#view-clients .dirc-tr{display:flex;align-items:center;gap:12px;padding:12px 14px;border-bottom:1px solid var(--dc-line);cursor:pointer;position:relative}
#view-clients .dirc-tr:last-child{border-bottom:0}
#view-clients .dirc-tr:hover{background:#FAFAF8}
#view-clients .dirc-tr.on{background:#FFF5F7}
#view-clients .dirc-tr.on::before{content:"";position:absolute;left:0;top:8px;bottom:8px;width:3px;border-radius:0 3px 3px 0;background:var(--dc-amr)}
#view-clients .dirc-mid{flex:1;min-width:0}
#view-clients .dirc-nom{font-weight:700;font-size:15px;color:var(--dc-ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#view-clients .dirc-t{font-size:11px;font-weight:700;letter-spacing:.04em;color:var(--dc-mute);background:var(--dc-soft);border-radius:6px;padding:2px 7px;margin-left:6px;vertical-align:1px}
#view-clients .dirc-sub{color:var(--dc-mute);font-size:12.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#view-clients .dirc-ult{color:var(--dc-mute);font-size:12px;white-space:nowrap}
#view-clients .dirc-saldo{display:inline-block;font-weight:800;color:var(--dc-warn);background:var(--dc-warn-bg);border-radius:999px;padding:3px 10px;font-size:13px;white-space:nowrap}
#view-clients .dirc-aldia{display:inline-block;font-weight:700;color:var(--dc-ok);background:var(--dc-ok-bg);border-radius:999px;padding:3px 10px;font-size:12.5px;white-space:nowrap}
#view-clients .dirc-panel{position:sticky;top:70px}
#view-clients .dirc-vacio{background:var(--dc-card);border:1px dashed var(--dc-line);border-radius:16px;padding:40px 16px;text-align:center;color:var(--dc-mute);font-size:13.5px}
.dirc-fc{display:grid;gap:10px}
.dirc-card{background:#fff;border:1px solid #E7E8E5;border-radius:16px;padding:14px}
.dirc-head{display:flex;align-items:center;gap:12px}
.dirc-head img{height:30px;width:auto;flex:none}
.dirc-head h3{margin:0;font-size:17px;color:#0B1215;line-height:1.25}
.dirc-head .s{color:#6B7378;font-size:12.5px}
.dirc-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.dirc-stats>div{background:#fff;border:1px solid #E7E8E5;border-radius:14px;padding:10px 12px}
.dirc-stats small{display:block;color:#6B7378;font-size:11.5px;font-weight:600}
.dirc-stats b{font-size:16px;color:#0B1215}
.dirc-kv{display:flex;justify-content:space-between;gap:10px;padding:7px 0;border-bottom:1px solid #F1F2EF;font-size:13.5px}
.dirc-kv:last-child{border-bottom:0}
.dirc-kv span{color:#6B7378}
.dirc-kv b{text-align:right;color:#0B1215}
.dirc-acts{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}
.dirc-acts button{border:1px solid #E7E8E5;background:#fff;border-radius:12px;padding:10px;font-weight:700;font-size:13.5px;cursor:pointer;color:#0B1215}
.dirc-acts .n{grid-column:1/-1;background:#E0335A;border-color:#E0335A;color:#fff}
.dirc-hoja{position:fixed;inset:0;z-index:900;background:rgba(11,18,21,.45);display:flex;align-items:flex-end;justify-content:center}
.dirc-hoja>.dirc-fc{width:100%;max-width:520px;max-height:86vh;overflow:auto;background:#F4F4F2;border-radius:22px 22px 0 0;padding:12px 12px calc(14px + env(safe-area-inset-bottom))}
.dirc-hoja .dirc-asa{width:42px;height:5px;border-radius:5px;background:#D5D7D3;margin:2px auto 4px}
@media (max-width:900px){
  #view-clients .dirc-lado{grid-template-columns:minmax(0,1fr)}
  #view-clients .dirc-panel{display:none}
  #view-clients .dirc-ult{display:none}
}

/* v506 · resumen: 2×2 con tarjetas horizontales e íconos con color; en celular compacto */
#view-clients .t2-body{grid-template-columns:minmax(0,5fr) minmax(0,7fr)}
#view-clients .t2-grid{grid-template-columns:1fr 1fr}
#view-clients .t2-c{flex-direction:row;align-items:center;gap:10px;padding:10px 12px}
#view-clients .t2-c .ic{flex:none;width:38px;height:38px;border-radius:11px;display:grid;place-items:center}
#view-clients .t2-c .ic svg{width:20px;height:20px;color:currentColor}
#view-clients .t2-tx{min-width:0;display:flex;flex-direction:column;gap:1px}
#view-clients .t2-c .s{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#view-clients .k-tienda .ic{background:#EEEBFF;color:#5B3FD9}
#view-clients .k-envio .ic{background:#E6F0FF;color:#1F63D6}
#view-clients .k-ok .ic{background:var(--dc-ok-bg);color:var(--dc-ok)}
#view-clients .k-reloj .ic{background:var(--dc-warn-bg);color:var(--dc-warn)}
#view-clients .t2-seg button.on svg{color:var(--dc-amr)}
@media (max-width:1100px){#view-clients .t2-body{grid-template-columns:1fr}}
@media (max-width:720px){
  #view-clients .dir-tnd{padding:8px;border-radius:16px}
  #view-clients .t2-seg{padding:3px;border-radius:12px}
  #view-clients .t2-seg button{height:36px;border-radius:9px}
  #view-clients .t2-seg button img{height:22px}
  #view-clients .t2-seg button svg{width:18px;height:18px}
  #view-clients .t2-body{gap:8px;margin-top:8px}
  #view-clients .t2-big{padding:10px 12px;border-radius:12px}
  #view-clients .t2-big small,#view-clients .t2-big .s{font-size:11.5px}
  #view-clients .t2-big>b{font-size:21px}
  #view-clients .t2-barra{height:5px;margin-top:7px}
  #view-clients .t2-ley{font-size:11px;margin-top:5px;flex-wrap:nowrap}
  #view-clients .t2-ley b{font-size:11.5px}
  #view-clients .t2-grid{gap:6px}
  #view-clients .t2-c{padding:7px 8px;gap:8px;border-radius:12px}
  #view-clients .t2-c .ic{width:30px;height:30px;border-radius:9px}
  #view-clients .t2-c .ic svg{width:16px;height:16px}
  #view-clients .t2-c .h,#view-clients .t2-c .s{font-size:11px}
  #view-clients .t2-c b{font-size:14px}
  #view-clients .t2-c .sn{display:none}
}
#view-clients .dirc-mas{display:flex;justify-content:center;margin:12px 0 4px}
#view-clients .dirc-mas button{border:1px solid var(--dc-line);background:#fff;border-radius:999px;padding:9px 16px;font-weight:700;font-size:13px;color:var(--dc-ink);cursor:pointer}

/* v506 · «De ValeApp» en filas, como la lista del Directorio */
#view-clients #dirv-sec .dirv-filas{background:#fff;border:1px solid var(--dc-line);border-radius:16px;overflow:hidden}
#view-clients #dirv-sec .dirv-fila{display:flex;align-items:center;gap:12px;padding:11px 14px;border-bottom:1px solid var(--dc-line)}
#view-clients #dirv-sec .dirv-fila:last-child{border-bottom:0}
#view-clients #dirv-sec .dirv-nm{flex:1;min-width:0}
#view-clients #dirv-sec .dirv-nm strong{display:block;font-size:14.5px;font-weight:700;color:var(--dc-ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#view-clients #dirv-sec .dirv-nm small{display:block;color:var(--dc-mute);font-size:12.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#view-clients #dirv-sec .dirv-tag{display:inline-block;margin-left:6px;vertical-align:1px;font-size:10.5px;font-weight:800;letter-spacing:.04em;background:#E6F0FF;color:#1F63D6;border-radius:6px;padding:2px 7px}
#view-clients #dirv-sec .dirv-acc{flex:none;display:flex;gap:6px}
#view-clients #dirv-sec .dirv-b.p{background:var(--dc-jet);border-color:var(--dc-jet);color:#fff;padding:7px 12px}
@media (max-width:720px){
  #view-clients #dirv-sec .dirv-fila{flex-wrap:wrap;gap:8px;padding:10px 12px}
  #view-clients #dirv-sec .dirv-acc{width:100%}
  #view-clients #dirv-sec .dirv-acc .dirv-b{flex:1}
}
@media (max-width:720px){
  #view-clients #dirv-sec .dirv-h{flex-wrap:wrap;row-gap:4px}
  #view-clients #dirv-sec .dirv-h small{order:3;flex-basis:100%;font-size:11.5px;line-height:1.35}
}

/* v506 · botón «Tabla de clientes de ValeApp» al pie del resumen */
#view-clients .t2-vale{all:unset;box-sizing:border-box;cursor:pointer;width:100%;margin-top:10px;display:flex;align-items:center;gap:10px;background:#F2F7FF;border:1px solid #D6E4FB;border-radius:12px;padding:8px 12px;color:#123E7C;font-weight:700;font-size:13.5px}
#view-clients .t2-vale:hover{background:#E8F1FF}
#view-clients .t2-vale:focus-visible{outline:2px solid var(--dc-amr);outline-offset:2px}
#view-clients .t2-vale .ic{flex:none;width:30px;height:30px;border-radius:9px;background:#1F63D6;display:grid;place-items:center}
#view-clients .t2-vale .ic svg{width:17px;height:17px;fill:none;stroke:#fff;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
#view-clients .t2-vale .tx{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#view-clients .t2-vale b{background:#1F63D6;color:#fff;border-radius:999px;padding:2px 9px;font-size:12px}
#view-clients .t2-vale .fl{font-size:20px;line-height:1;color:#1F63D6}
@media (max-width:720px){
  #view-clients .t2-vale{margin-top:8px;padding:6px 10px;font-size:12.5px}
  #view-clients .t2-vale .ic{width:26px;height:26px;border-radius:8px}
  #view-clients .t2-vale .ic svg{width:15px;height:15px}
}

/* v509 · Directorio · cabecera modelo B (elegido por Fabio): arriba título + Actualizar, línea fina, abajo conteos a la izquierda
   y «Registrar cliente» a la derecha. Margen interno igual en los 4 lados y botones de la misma altura. Solo #view-clients. */
html body #view-clients>.page-heading,html body #view-clients>.page-heading.lv8-hero{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:0 12px!important;padding:16px!important;min-height:0!important;margin-bottom:12px!important}
html body #view-clients>.page-heading .subtle,html body #view-clients>.page-heading .art{display:none!important}
html body #view-clients>.page-heading>div:first-child{grid-column:1!important;grid-row:1!important;min-height:0!important;height:auto!important;padding:0!important;margin:0!important;min-width:0!important}
html body #view-clients>.page-heading .eyebrow{margin:0 0 3px!important;font-size:10.5px!important;line-height:1.2!important}
html body #view-clients>.page-heading h2{font-size:21px!important;line-height:1.15!important;margin:0!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body #view-clients>.page-heading>.view-refresh{grid-column:2!important;grid-row:1!important;align-self:center!important;justify-self:end!important}
html body #view-clients .dir-head-actions{grid-column:1/-1!important;grid-row:2!important;display:flex!important;flex-wrap:nowrap!important;align-items:center!important;gap:8px!important;width:auto!important;margin:14px 0 0!important;padding:14px 0 0!important;border-top:1px solid rgba(255,255,255,.10)!important;justify-content:flex-start!important}
html body #view-clients .dir-head-actions>.primary{margin-left:auto!important}
/* todos los botones/píldoras iguales: 36 px, centrados */
html body #view-clients .dir-head-actions>*,html body #view-clients>.page-heading>.view-refresh{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;box-sizing:border-box!important;min-height:36px!important;height:36px!important;padding:0 14px!important;margin-top:0!important;margin-bottom:0!important;font-size:13px!important;font-weight:700!important;line-height:1!important;border-radius:999px!important;width:auto!important;white-space:nowrap!important;flex:0 0 auto!important}
html body #view-clients .dir-head-actions>.dir-count-pill{background:rgba(255,255,255,.10)!important;color:#fff!important;border:0!important;box-shadow:none!important}
html body #view-clients .dir-search-panel>.dir-tnd{margin:12px 0!important}
@media (max-width:720px){
 html body #view-clients>.page-heading{padding:14px!important}
 html body #view-clients>.page-heading h2{font-size:18px!important}
 html body #view-clients .dir-head-actions{margin-top:12px!important;padding-top:12px!important;gap:6px!important}
 html body #view-clients .dir-head-actions>*,html body #view-clients>.page-heading>.view-refresh{min-height:34px!important;height:34px!important;padding:0 11px!important;font-size:12px!important}
 /* Actualizar solo como ícono en celular */
 html body #view-clients>.page-heading>.view-refresh{width:34px!important;padding:0!important}
 html body #view-clients>.page-heading>.view-refresh>:not(:first-child){display:none!important}
}@media (max-width:720px){html body #view-clients #new-client{font-size:0!important;gap:0!important}html body #view-clients #new-client::after{content:"＋ Registrar";font-size:12px;font-weight:700;line-height:1}}

/* v511 · resumen de ventas oculto tras un botón (se abre para revisarlo) */
#view-clients .t2-body[hidden]{display:none!important}
#view-clients .t2-tog{all:unset;box-sizing:border-box;cursor:pointer;width:100%;margin-top:10px;display:flex;align-items:center;gap:12px;background:#1B2A31;color:#fff;border-radius:14px;padding:10px 14px;-webkit-tap-highlight-color:transparent;transition:transform .12s}
#view-clients .t2-tog:active{transform:scale(.99)}
#view-clients .t2-tog:focus-visible{outline:3px solid rgba(224,51,90,.45);outline-offset:2px}
#view-clients .t2-tog .ic{flex:none;width:34px;height:34px;border-radius:10px;background:rgba(255,255,255,.10);display:grid;place-items:center}
#view-clients .t2-tog svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
#view-clients .t2-tog .ic svg{stroke:#FFB86B}
#view-clients .t2-tog .tx{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
#view-clients .t2-tog .h{font-size:12px;font-weight:700;color:#9fb0b5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#view-clients .t2-tog .s{font-size:14px;font-weight:600;color:#dfe6e8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#view-clients .t2-tog .s b{color:#fff;font-weight:800}
#view-clients .t2-tog .s em{font-style:normal;color:#FFB86B;font-weight:800}
#view-clients .t2-tog .vr{flex:none;font-size:12.5px;font-weight:700;background:rgba(255,255,255,.10);border-radius:999px;padding:7px 12px}
#view-clients .t2-tog .fl{flex:none;display:grid;place-items:center;transition:transform .2s}
#view-clients .t2-tog.on .fl{transform:rotate(180deg)}
@media (max-width:720px){
 #view-clients .t2-tog{padding:8px 10px;gap:10px;margin-top:8px}
 #view-clients .t2-tog .ic{width:30px;height:30px}
 #view-clients .t2-tog .s{font-size:13px}
 #view-clients .t2-tog .vr{display:none}
}
@media (max-width:720px){#view-clients .t2-tog .s .w{display:none}#view-clients .t2-tog .s{font-size:12.5px}}

/* v512 · cabecera modelo B en TODAS las áreas (como el Directorio): fila 1 título + Actualizar, línea, fila 2 botones del área.
   Sin texto largo ni dibujo, margen igual (16 px) y botones del mismo alto. */
html body .view .lv8-hero{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:0 12px!important;padding:16px!important;min-height:0!important;margin-bottom:12px!important}
html body .view .lv8-hero>.art,html body .view .lv8-hero .subtle,html body .view .lv8-hero>div:first-child>p:not(.eyebrow):not([class*="eyebrow"]){display:none!important}
html body .view .lv8-hero>div:first-child{grid-column:1!important;grid-row:1!important;min-height:0!important;height:auto!important;padding:0!important;margin:0!important;min-width:0!important}
html body .view .lv8-hero .eyebrow{margin:0 0 3px!important;font-size:10.5px!important;line-height:1.2!important}
html body .view .lv8-hero h2{font-size:21px!important;line-height:1.15!important;margin:0!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body .view .lv8-hero>.view-refresh,html body .view .lv8-hero>.refresh-button{grid-column:2!important;grid-row:1!important;align-self:center!important;justify-self:end!important}
/* cualquier otro bloque de botones del área va abajo, tras una línea fina */
html body .view .lv8-hero>:not(:first-child):not(.art):not(button){grid-column:1/-1!important;display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:8px!important;width:auto!important;margin:14px 0 0!important;padding:14px 0 0!important;border-top:1px solid rgba(255,255,255,.10)!important;justify-content:flex-start!important}
html body .view .lv8-hero>button:not(.view-refresh):not(.refresh-button){display:inline-flex!important;justify-self:start!important;border-top:0!important;padding:0 14px!important}
html body .view .lv8-hero .view-refresh,html body .view .lv8-hero>:not(:first-child) button,html body .view .lv8-hero>button,html body .view .lv8-hero>div:first-child button{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;box-sizing:border-box!important;min-height:36px!important;height:36px!important;padding:0 14px!important;font-size:13px!important;font-weight:700!important;line-height:1!important;border-radius:999px!important;width:auto!important;white-space:nowrap!important;margin-top:0!important;margin-bottom:0!important}
html body .view .lv8-hero>div:first-child button{margin-top:10px!important}
@media (max-width:720px){
 html body .view .lv8-hero{padding:14px!important}
 html body .view .lv8-hero h2{font-size:18px!important}
 html body .view .lv8-hero>:not(:first-child):not(.art):not(button){margin-top:12px!important;padding-top:12px!important;gap:6px!important}
 html body .view .lv8-hero .view-refresh,html body .view .lv8-hero>:not(:first-child) button,html body .view .lv8-hero>button,html body .view .lv8-hero>div:first-child button{min-height:34px!important;height:34px!important;padding:0 11px!important;font-size:12px!important}
 html body .view .lv8-hero>.view-refresh{width:34px!important;padding:0!important}
 html body .view .lv8-hero>.view-refresh>:not(:first-child){display:none!important}
}
html body .view .lv8-hero>div:first-child>h2~:not(button){display:none!important}
html body .view .lv8-hero>button:not(.view-refresh):not(.refresh-button){grid-column:2!important;grid-row:1!important;justify-self:end!important;align-self:center!important;margin:0!important}

/* v512 · cabecera de Almacén (.alm-hero: Por embalar, Despacho, En espera) al modelo compacto */
html body .view .alm-hero{height:auto!important;min-height:0!important;padding:16px!important;margin-bottom:12px!important;align-items:center!important}
html body .view .alm-hero .alm-sub,html body .view .alm-hero .alm-art{display:none!important}
html body .view .alm-hero .alm-eb{margin:0 0 3px!important;font-size:10.5px!important;line-height:1.2!important}
html body .view .alm-hero h2{font-size:21px!important;line-height:1.15!important;margin:0!important}
@media (max-width:720px){html body .view .alm-hero{padding:14px!important}html body .view .alm-hero h2{font-size:18px!important}}

/* v517 · Pagos parciales: el bloque «Enviar · Cliente | Tienda» por WhatsApp solo en «Por cobrar» (en Inicio e Historial sobraba) */
#pp-recent .pa-card .pa-wa,#pp-history-list .pa-card .pa-wa{display:none!important}
/* v517 · «Ordenar por» quedaba suelto: sus botones viven en la hoja «Filtros» (botón junto al buscador) */
.bu-view>.dir-quick-label:has(+ .bu-sh){display:none!important}

/* v518 · Almacén (Paquetes y guías, En espera): una sola cabecera. «Actualizar» va dentro de la cabecera oscura (antes
   quedaba suelto debajo) y en Paquetes y guías se quita la 2.ª franja oscura «Registro de envío» (repetía el título). */
html body [data-alm-hero]{position:relative}
html body [data-alm-hero]>.view-refresh{position:absolute!important;top:18px;right:16px;margin:0!important;height:36px;border:0!important;border-radius:999px!important;
  background:rgba(255,255,255,.12)!important;color:#fff!important;box-shadow:none!important;padding:0 14px!important;font-weight:700;display:inline-flex;align-items:center;gap:6px;z-index:2}
html body [data-alm-hero]>.alm-hero{padding-right:150px!important}
html body #view-warehouse .rg-head{display:none!important}
@media (max-width:720px){html body [data-alm-hero]>.view-refresh{top:15px;right:14px;height:34px;padding:0 11px!important}html body [data-alm-hero]>.view-refresh .vr-t{display:none}html body [data-alm-hero]>.alm-hero{padding-right:64px!important}}
/* v518 · mientras se llena una nota de venta (marco de Notas) se oculta la barra de áreas de abajo: queda solo «Total · Continuar» */
html.nv-llenando:has(#view-notas.active) .bottom-nav,html.nv-llenando:has(#view-notas.active) .lv-sb{display:none!important}

/* v528 · Directorio con el modelo de filas: logo de la tienda en recuadro blanco (antes «DRISNÉ» escrito) y derecha en
   columna: saldo arriba + «Debe» abajo, o fecha + «✓ Al día» */
.dirc-lg{flex:none;width:46px;height:46px;border-radius:12px;background:#fff;box-shadow:inset 0 0 0 1px #E6E8E6;display:flex;align-items:center;justify-content:center}
.dirc-lg img{max-width:36px;max-height:30px;width:auto;height:auto;object-fit:contain}
.dirc-tr{gap:13px;padding:13px 16px}
.dirc-mid{display:flex;flex-direction:column;gap:3px}
.dirc-nom{color:#182A31}
.dirc-rt{flex:none;display:flex;flex-direction:column;align-items:flex-end;gap:6px}
.dirc-rt .dirc-ult{display:block;font:600 11.5px Inter,system-ui,sans-serif;color:#8A9094}
.dirc-mo{font:800 16px/1.2 Inter,system-ui,sans-serif;color:#182A31;font-variant-numeric:tabular-nums;white-space:nowrap}
.dirc-rt .dirc-saldo,.dirc-rt .dirc-aldia{font-size:12px;font-weight:700;padding:4px 11px}
.dirc-rt .dirc-saldo{color:#B54708;background:#FEF0E1}.dirc-rt .dirc-aldia{color:#18794E;background:#E5F5EC}
@media (max-width:900px){.dirc-lg{width:42px;height:42px;border-radius:11px}.dirc-lg img{max-width:32px;max-height:26px}.dirc-tr{padding:12px;gap:10px}.dirc-mo{font-size:15px}}
