/* DSP Business Billing & Accounting - Phase 10 settings (2026-10-13). */
/* Simple Mode bug fix: these menu entries are visible in Simple Mode, but their screens were hidden,
   so tapping them showed a blank page. Show the screen whenever it is the active one. */
html body .dsp-billing.is-suite-simple :is([data-bill-pane="barcode"],[data-bill-pane="accounting"],[data-bill-pane="gst"],[data-bill-pane="cashbank"],[data-bill-pane="payments"],[data-bill-pane="audit"]).is-active{display:grid!important}
/* Menu sections controlled by settings (override Simple/Advanced defaults only when the user chose). */
html body .dsp-billing.p10-on-orders [data-bill-tab="orders"],
html body .dsp-billing.p10-on-warehouses [data-bill-tab="warehouses"],
html body .dsp-billing.p10-on-barcode [data-bill-tab="barcode"],
html body .dsp-billing.p10-on-manufacturing [data-bill-tab="manufacturing"]{display:block!important}
html body .dsp-billing.p10-on-manufacturing [data-bill-pane="manufacturing"].is-active,
html body .dsp-billing.p10-on-barcode [data-bill-pane="barcode"].is-active{display:grid!important}
html body .dsp-billing.p10-off-orders [data-bill-tab="orders"],
html body .dsp-billing.p10-off-warehouses [data-bill-tab="warehouses"],
html body .dsp-billing.p10-off-barcode [data-bill-tab="barcode"],
html body .dsp-billing.p10-off-manufacturing [data-bill-tab="manufacturing"]{display:none!important}
/* Item form fields switched off in Settings > Item (values are kept). */
html body [data-dsp-billing] [data-item-form] .dsp-p10-off{display:none!important}

.dsp-p10-block{--p10-ink:#15211A;--p10-forest:#163D2B;--p10-muted:#5C685C;--p10-line:rgba(22,61,43,.14);--p10-card:#FFFDF8;
  display:grid;background:var(--p10-card);border:1px solid var(--p10-line);border-radius:16px;overflow:hidden;max-width:760px;box-shadow:0 1px 2px rgba(32,28,24,.05)}
.dsp-p10-block[hidden]{display:none!important}
.dsp-p10-head{margin:0!important;padding:12px 16px 8px!important;background:#EEF2E8;color:var(--p10-forest)!important;font:750 .8rem/1.3 Inter,system-ui,sans-serif!important;letter-spacing:.04em;text-transform:uppercase;border-top:1px solid var(--p10-line)}
.dsp-p10-head:first-child{border-top:0}
.dsp-p10-row{display:flex;align-items:center;gap:12px;min-height:60px;padding:10px 16px;border-top:1px solid var(--p10-line)}
.dsp-p10-head+.dsp-p10-row{border-top:0}
.dsp-p10-txt{display:flex;flex-direction:column;gap:3px;flex:1;min-width:0}
.dsp-p10-label{font:650 .95rem/1.3 Inter,system-ui,sans-serif;color:var(--p10-ink)}
.dsp-p10-txt small{color:var(--p10-muted);font-size:.79rem;line-height:1.4}
html body .dsp-p10-switch{position:relative;flex:none;width:50px!important;height:30px!important;min-width:50px!important;min-height:30px!important;padding:0!important;border:0!important;border-radius:999px!important;background:#C9CDC3!important;cursor:pointer;transform:none!important;box-shadow:none!important;transition:background-color .18s ease}
.dsp-p10-switch span{position:absolute;top:3px;left:3px;width:24px;height:24px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.25);transition:transform .18s ease}
html body .dsp-p10-switch[aria-checked=true]{background:#2F5D43!important}
.dsp-p10-switch[aria-checked=true] span{transform:translateX(20px)}
.dsp-p10-switch:focus-visible,.dsp-p10-select:focus-visible,.dsp-p10-btn:focus-visible{outline:3px solid #C4472D;outline-offset:2px}
.dsp-p10-switch::before{content:"";position:absolute;inset:-8px -2px}
.dsp-p10-select{flex:none;max-width:52%;min-height:44px;padding:6px 10px;border:1px solid var(--p10-line);border-radius:10px;background:#fff;color:var(--p10-ink);font:600 .88rem Inter,system-ui,sans-serif}
html body .dsp-p10-btn{flex:none;min-height:40px!important;padding:6px 14px!important;border:1px solid rgba(22,61,43,.3)!important;border-radius:10px!important;background:#fff!important;color:var(--p10-forest)!important;font-weight:700!important;transform:none!important;box-shadow:none!important;cursor:pointer}
.dsp-p10-note{margin:0;padding:12px 16px;border-top:1px solid var(--p10-line);color:var(--p10-muted);font-size:.8rem;line-height:1.5;background:#FAF7F0}
.dsp-p10-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
@media(max-width:480px){.dsp-p10-row{padding:10px 12px;gap:10px}.dsp-p10-head{padding:12px 12px 8px!important}.dsp-p10-row--select{flex-wrap:wrap}.dsp-p10-row--select .dsp-p10-select{max-width:none;flex:1 1 100%}}
@media(prefers-reduced-motion:reduce){html body .dsp-p10-switch,.dsp-p10-switch span{transition:none}}
