/* Preferencia general compartida por todos los lienzos del ERP. */
:root{color-scheme:light}
:root[data-system-theme=oscuro]{color-scheme:dark;--bs-body-bg:#18222d;--bs-body-color:#e4e9ef;--bs-secondary-color:#acb8c5;--bs-border-color:#465567}
.system-controls{display:flex;align-items:center;gap:4px}
.system-control{display:inline-grid;place-items:center;width:44px;min-width:44px;height:44px;min-height:44px;padding:0;border:1px solid transparent;background:transparent;color:#637488;border-radius:11px;font-size:18px;touch-action:manipulation;flex-shrink:0}
.system-control:hover{background:#edf2f0;color:#365b47}
.system-control:focus-visible{outline:3px solid #2371a5;outline-offset:3px}
.system-control[hidden]{display:none!important}
.system-notice{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);background:#263d36;color:#fff;padding:14px 20px;border-radius:12px;z-index:2000;max-width:90%}
.modo-punto a.pv-action{text-decoration:none;text-align:center}
:root[data-system-theme=oscuro] body{background:#18222d;color:#e4e9ef}
:root[data-system-theme=oscuro] :is(.system-control,.pv-icon-button){color:#c6d0dc}
:root[data-system-theme=oscuro] .system-control:hover{background:#344455;color:#f2f5f8}
:root[data-system-theme=oscuro] body:not(.modo-punto) :is(.rightcol,.main,.content,.login-panel){background:#18222d;color:#e4e9ef}
:root[data-system-theme=oscuro] body:not(.modo-punto) :is(.topband,.panel,.card,.unit-roles,.table-wrap,.kpi-tile,.page-title-bar,.user-pill,.rol-app-count){background:#222e3b;color:#e4e9ef;border-color:#465567}
:root[data-system-theme=oscuro] body:not(.modo-punto) :is(h1,h2,h3,label,.app-name,.centro-actual,.hora,.chart-column small){color:#e4e9ef}
:root[data-system-theme=oscuro] body:not(.modo-punto) :is(.text-muted,.form-text,.helptext,.kpi-tile .lab,.chart-column span,.rol-card .rd,.reloj,.u2){color:#acb8c5!important}
:root[data-system-theme=oscuro] body:not(.modo-punto) :is(input:not([type=checkbox]):not([type=radio]),textarea,select,.form-sec-toggle,.rol-card,.rol-card:nth-child(even)){background-color:#2b3a4a;color:#e4e9ef;border-color:#506173}
:root[data-system-theme=oscuro] body:not(.modo-punto) :is(table,th,td){color:#e4e9ef;border-color:#465567;background-color:transparent}
:root[data-system-theme=oscuro] body:not(.modo-punto) th{background-color:#263544}
:root[data-system-theme=oscuro] body:not(.modo-punto) a:not(.sidebar a):not(.btn):not(.button){color:#b0cbbb}
:root[data-system-theme=oscuro] .modo-punto{--pv-canvas:#18222d;--pv-ink:#e4e9ef;--pv-muted:#acb8c5}
:root[data-system-theme=oscuro] .modo-centros :is(.centro-card,.selector-empty){background:#222e3b;color:#e4e9ef;border-color:#465567}
:root[data-system-theme=oscuro] .modo-centros .centro-card{--centro-accent:#abc2b3;--centro-tint:#334b3d}
:root[data-system-theme=oscuro] .modo-centros .centro-card[data-tipo=ADMINISTRACION]{--centro-accent:#b0c3d8;--centro-tint:#344659}
:root[data-system-theme=oscuro] .modo-centros .centro-card[data-tipo=FABRICA]{--centro-accent:#d3bea1;--centro-tint:#4b4237}
.modo-punto .pv-sale-workspace{display:flex;flex-direction:column;gap:30px;min-height:calc(100svh - 88px);max-width:1480px;margin:auto;padding:28px 32px 38px}
.modo-punto .pv-level-heading{display:grid;grid-template-columns:140px 1fr 140px;align-items:center;gap:16px}
.modo-punto .pv-level-heading h1{margin:0;text-align:center;font-size:clamp(23px,2.7vw,34px);line-height:1.25;font-weight:700;letter-spacing:-.8px;color:var(--pv-ink)}
.modo-punto .pv-level-back{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:52px;padding:12px 20px;border-radius:14px;border:1px solid #d8e2dd;background:#fff;color:#456653;text-decoration:none;font-size:17px;font-weight:650}
.modo-punto .pv-sale-modes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;flex:1}
.modo-punto .pv-sale-mode{--sale-accent:#517464;--sale-tint:#eaf1ed;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:26px;min-width:0;min-height:360px;width:100%;padding:40px 28px;border:1px solid #dce4e0;border-top:4px solid var(--sale-accent);border-radius:26px;background:#fff;color:#253349;box-shadow:0 8px 30px #25334906;touch-action:manipulation;transition:transform .15s,border-color .15s;cursor:pointer}
.modo-punto .pv-sale-mode:nth-child(2){--sale-accent:#697f97;--sale-tint:#edf1f6}
.modo-punto .pv-sale-mode:nth-child(3){--sale-accent:#947654;--sale-tint:#f5efe8}
.modo-punto .pv-sale-mode:hover{transform:translateY(-3px);border-color:var(--sale-accent)}
.modo-punto .pv-sale-mode:active{transform:scale(.985)}
.modo-punto .pv-sale-icon{display:grid;place-items:center;width:100px;height:100px;border-radius:28px;background:var(--sale-tint);color:var(--sale-accent);font-size:48px}
.modo-punto .pv-sale-name{font-size:clamp(26px,2.6vw,36px);line-height:1.15;font-weight:700;letter-spacing:-.8px;text-wrap:balance}
.modo-punto .pv-sale-description{max-width:310px;font-size:18px;line-height:1.6;color:#627183;font-weight:400;text-wrap:pretty}
:root[data-system-theme=oscuro] .modo-punto :is(.pv-sale-mode,.pv-level-back){background:#222e3b;color:#e4e9ef;border-color:#465567}
:root[data-system-theme=oscuro] .modo-punto .pv-sale-mode{--sale-accent:#abc2b3;--sale-tint:#334b3d}
:root[data-system-theme=oscuro] .modo-punto .pv-sale-mode:nth-child(2){--sale-accent:#b0c3d8;--sale-tint:#344659}
:root[data-system-theme=oscuro] .modo-punto .pv-sale-mode:nth-child(3){--sale-accent:#d3bea1;--sale-tint:#4b4237}
:root[data-system-theme=oscuro] .modo-punto .pv-sale-description{color:#b9c5d1}
@media(min-width:701px){.modo-punto .pv-sale-workspace{height:calc(100svh - 88px)}}
@media(max-width:1000px){.modo-punto .pv-sale-workspace{padding:22px;gap:22px}.modo-punto .pv-sale-modes{gap:18px}.modo-punto .pv-sale-mode{padding:28px 20px;gap:22px}.modo-punto .pv-sale-description{font-size:17px}}
@media(min-width:701px) and (max-width:850px) and (orientation:portrait){.modo-punto .pv-sale-modes{grid-template-columns:1fr;gap:18px}.modo-punto .pv-sale-mode{display:grid;grid-template-columns:86px 1fr;grid-template-rows:auto auto;text-align:left;align-content:center;column-gap:28px;row-gap:12px;min-height:235px;padding:28px 40px}.modo-punto .pv-sale-icon{grid-row:1/3;width:86px;height:86px;font-size:40px}.modo-punto .pv-sale-name{font-size:30px}.modo-punto .pv-sale-description{max-width:none;font-size:18px}.modo-punto .pv-sale-workspace{height:calc(100svh - 88px)}}
@media(max-width:700px){.modo-punto .pv-level-heading{grid-template-columns:auto 1fr;gap:14px}.modo-punto .pv-level-heading h1{text-align:left;font-size:23px}.modo-punto .pv-level-back{padding:10px 14px;font-size:15px}.modo-punto .pv-sale-workspace{min-height:calc(100svh - 140px);gap:20px;padding:20px 16px 24px}.modo-punto .pv-sale-modes{grid-template-columns:1fr;gap:16px}.modo-punto .pv-sale-mode{display:grid;grid-template-columns:56px 1fr;grid-template-rows:auto auto;text-align:left;min-height:185px;padding:22px 18px;column-gap:18px;row-gap:10px}.modo-punto .pv-sale-icon{grid-row:1/3;width:56px;height:56px;font-size:28px;border-radius:18px}.modo-punto .pv-sale-name{font-size:26px}.modo-punto .pv-sale-description{font-size:16px;line-height:1.5}.modo-punto [data-system-theme]{grid-row:3;grid-column:2;justify-self:center}.modo-punto .pv-header-actions{column-gap:4px}}
@media(prefers-reduced-motion:reduce){.modo-punto .pv-sale-mode{transition:none}}
@media print{.system-controls,.system-control,.pv-level-back{display:none!important}}
/* Las piezas del segundo nivel consumen el mismo diseño compartido que el inicio. */
:root .modo-punto :is(.pv-sale-mode,.pv-level-back,.pv-back)[data-pv-element]{background:var(--pv-button-bg,#fff);color:var(--pv-button-text,#253349);font-family:var(--pv-button-font,"Segoe UI",system-ui,sans-serif);border-radius:var(--pv-radius,18px)}
:root .modo-punto .pv-sale-mode[data-pv-element]{border-top-color:var(--pv-button-accent,#517464)}
.modo-punto .pv-sale-mode[data-pv-element] .pv-sale-name{font-size:var(--pv-button-size,28px)}
.modo-punto .pv-sale-mode[data-pv-element] .pv-sale-icon{color:var(--pv-button-accent,#517464);background:color-mix(in srgb,var(--pv-button-accent,#517464) 12%,transparent)}
.modo-punto .pv-sale-mode[data-pv-element] .pv-sale-description{color:inherit;opacity:.8}
.modo-punto :is(.pv-level-back,.pv-back)[data-pv-element]{font-size:var(--pv-button-size,17px)}
.modo-punto :is(.pv-level-back,.pv-back)[data-pv-element] [data-pv-icon]{color:var(--pv-button-accent,#456653)}
.modo-punto #pv-editor-status{color:inherit;flex-basis:100%;margin:0 0 10px;font-size:13px}
.modo-punto .pv-editor-footer:has(#pv-editor-status:not([hidden])){flex-wrap:wrap}

/* Mismo acabado de las tarjetas de Modo de Venta en los accesos del mostrador. */
:root .modo-punto .pv-action{border:1px solid #dce4e0;border-top:4px solid var(--pv-button-accent);box-shadow:0 8px 30px #25334906;gap:12px}
:root .modo-punto .pv-action:hover{border-color:var(--pv-button-accent);transform:translateY(-3px)}
:root .modo-punto .pv-action:active{transform:scale(.985)}
.modo-punto .pv-action-icon{background:color-mix(in srgb,var(--pv-button-accent) 12%,transparent);width:54px;height:54px;font-size:28px;border-radius:16px}
.modo-punto .pv-action-label{font-weight:700;letter-spacing:-.6px;max-width:100%;text-wrap:balance}
:root[data-system-theme=oscuro] .modo-punto .pv-action{border-color:#465567;border-top-color:var(--pv-button-accent);box-shadow:none}
@media(prefers-reduced-motion:reduce){:root .modo-punto .pv-action:hover{transform:none}}
