﻿/* Komponen ERP di atas tema Mazer (Bootstrap 5). Memakai variabel Bootstrap agar mengikuti mode terang/gelap. */
.i18n-pending body{visibility:hidden}
html body .erp-page h1{font-size:1.65rem;font-weight:700;margin:0 0 .35rem}
html body .erp-page h2{font-size:1.15rem;font-weight:700;margin:0 0 1rem}
html body .erp-page h3{font-size:1rem;font-weight:700;margin:1rem 0 .6rem;color:var(--bs-secondary-color)}
html body .erp-page .lead{font-size:.95rem;color:var(--bs-secondary-color);max-width:85ch;margin-bottom:1.25rem}
html body .erp-page .card{padding:1.5rem;margin-bottom:1.5rem;border:0;box-shadow:0 .25rem .9rem rgba(25,35,70,.06)}
[data-bs-theme=dark] html body .erp-page .card{box-shadow:none}
html body .erp-page .card .card{padding:1rem;box-shadow:none;border:1px solid var(--bs-border-color)}
/* baris formulir (bukan grid Bootstrap) */
html body .erp-page .row:not(.bs){display:flex;flex-wrap:wrap;gap:.75rem;align-items:flex-end;margin:0 0 .9rem}
html body .erp-page .row:not(.bs)>*{width:auto;max-width:none;padding:0;margin:0;flex:0 1 220px}
html body .erp-page .row:not(.bs)>button,html body .erp-page .row:not(.bs)>a,html body .erp-page .row:not(.bs)>span{flex:0 0 auto}
html body .erp-page .row:not(.bs)>.grow,html body .erp-page label.grow{flex:1 1 300px}
html body .erp-page label{display:flex;flex-direction:column;gap:.3rem;font-size:.85rem;font-weight:600;color:var(--bs-secondary-color)}
html body .erp-page label.inline{flex-direction:row;align-items:center;gap:.5rem;color:var(--bs-body-color);font-weight:500}
html body .erp-page input.num{text-align:right;max-width:150px}
html body .erp-page .actions{display:flex;gap:.6rem;align-items:center;flex-wrap:wrap;margin-top:1rem}
html body .erp-page .spacer{flex:1}
html body .erp-page .tw{overflow-x:auto}
html body .erp-page .table{font-size:.9rem}html body .erp-page .table th{white-space:nowrap;color:var(--bs-secondary-color);font-weight:700}
html body .erp-page .num{text-align:right;white-space:nowrap}
html body .erp-page tr.sub td{font-weight:700;border-top:2px solid var(--bs-body-color)}
html body .erp-page small{color:var(--bs-secondary-color)}
html body .erp-page .neg{color:var(--bs-danger);font-weight:700}
html body .erp-page .empty{color:var(--bs-secondary-color);font-style:italic;margin:.25rem 0}
html body .erp-page .note{background:var(--bs-warning-bg-subtle);color:var(--bs-warning-text-emphasis);padding:.6rem .9rem;border-radius:.5rem;font-size:.88rem}
html body .erp-page .flash,.erp-flash{padding:.75rem 1rem;border-radius:.6rem;margin-bottom:1rem;background:var(--bs-success-bg-subtle);color:var(--bs-success-text-emphasis);font-weight:600}
html body .erp-page .flash.bad,.erp-flash.bad{background:var(--bs-danger-bg-subtle);color:var(--bs-danger-text-emphasis)}
html body .erp-page .big{font-size:1.4rem;font-weight:700}
html body .erp-page .tasks{margin:0;padding-left:1.1rem}html body .erp-page .tasks li{margin:.3rem 0}
html body .erp-page details.je{border-bottom:1px solid var(--bs-border-color)}
html body .erp-page details.je summary{display:flex;gap:.8rem;flex-wrap:wrap;padding:.55rem .2rem;cursor:pointer}
html body .erp-page details.je .grow{flex:1;min-width:160px}
html body .erp-page .badge{font-weight:600}
.badge.b-ok{background:var(--bs-success-bg-subtle);color:var(--bs-success-text-emphasis)}
.badge.b-bad{background:var(--bs-danger-bg-subtle);color:var(--bs-danger-text-emphasis)}
.badge.b-wait{background:var(--bs-warning-bg-subtle);color:var(--bs-warning-text-emphasis)}
.badge.b-mid{background:var(--bs-primary-bg-subtle);color:var(--bs-primary-text-emphasis)}
html body .erp-page .kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:1rem;margin-bottom:1.5rem}
html body .erp-page .kpi{background:var(--bs-body-bg);border-radius:.7rem;padding:1.1rem 1.25rem;box-shadow:0 .25rem .9rem rgba(25,35,70,.06);display:flex;gap:.9rem;align-items:center}
html body .erp-page .kpi .ic{width:3rem;height:3rem;border-radius:.6rem;display:grid;place-items:center;color:#fff;font-size:1.35rem;flex:0 0 auto}
html body .erp-page .kpi span{display:block;font-size:.85rem;color:var(--bs-secondary-color);font-weight:600}html body .erp-page .kpi b{font-size:1.2rem}
html body .erp-page .grid2pos{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(300px,1fr);gap:1.25rem;align-items:start}
html body .erp-page .sum{margin:.8rem 0}html body .erp-page .sum td{border:0;padding:.2rem 0}
html body .erp-page .struk{max-width:360px;font-size:.88rem}
.erp-lang a.dropdown-item.active{font-weight:700}
html body #sidebar .sidebar-header .logo a{display:flex!important;font-size:1.3rem;font-weight:800;color:var(--bs-primary);text-decoration:none;display:flex;gap:.55rem;align-items:center}
html body #sidebar .sidebar-header .logo a>i{position:static!important;font-size:1.6rem}
html body #sidebar .sidebar-header .logo a>span{display:flex;flex-direction:column;line-height:1.1}
html body #sidebar .sidebar-header .logo small{font-size:.68rem;font-weight:600;color:var(--bs-secondary-color);letter-spacing:.04em}
.sidebar-wrapper .theme-toggle i{font-size:.95rem;color:var(--bs-secondary-color)}
@media (max-width:900px){html body .erp-page .grid2pos{grid-template-columns:1fr}}
@media print{#sidebar,header,.actions,button,footer{display:none!important}#main{margin-left:0!important;padding:0!important}}

html body #sidebar .sidebar-item.has-sub>.sidebar-link>span{padding-right:1.1rem}
/* Kasir web */
.pos-grid{display:grid;grid-template-columns:minmax(0,3fr) minmax(320px,2fr);gap:16px;align-items:start}
@media (max-width:991px){.pos-grid{grid-template-columns:1fr}}
#pos .receipt{max-width:340px;font-size:13px}
@media print{#sidebar,header,footer,.page-heading,.noprint,#pos .pos-grid,.lead,#posflash{display:none!important}#main{margin:0!important;padding:0!important}#pos .card{box-shadow:none;border:0}#pos .receipt{max-width:72mm}}
/* Lapangan (salesman/driver) */
canvas[data-sign]{width:100%;max-width:420px;height:160px;border:1px dashed #9aa5c4;border-radius:8px;background:#fff;touch-action:none}
.geo-status{font-size:.85rem;color:#607080}
.visit-card{border-left:4px solid #435ebe}
.visit-card.done{border-left-color:#5ddab4}
@media (max-width:576px){#main .row>label{flex:1 1 100%}}
