/* omni / Invento as-is look — reconstructed from 250 screenshots (build 379ffb08) */
:root{
  --orange:#fb6a15; --orange-d:#e95a07; --orange-l:#fff1e8;
  --ink:#2f3337; --ink-2:#4a4f55; --muted:#8a9097; --line:#e3e5e8; --line-2:#d2d5d9;
  --field:#e9eaec; --field-b:#c9ccd0; --bg:#fff; --rail:#fff;
  --blue:#3b82f6; --blue-o:#4aa3df; --green-o:#2bb673; --red:#e5383b; --red-o:#e5534b;
  --navy:#1d2635; --slate:#5d6670; --tab-active:#f5eff8; --footer:#e6e7ea;
  --rail-w:120px; --top-h:80px;
}
*{box-sizing:border-box}
html,body{margin:0;background:var(--bg);color:var(--ink);font-family:Nunito,"Segoe UI",system-ui,sans-serif;font-size:13px}
a{color:inherit;text-decoration:none}
button{font-family:inherit;cursor:pointer}
input,select,textarea{font-family:inherit;font-size:12.5px;color:var(--ink)}

/* ---------- logo / splash ---------- */
.logo{font-weight:800;color:#3a3d42;font-size:22px;letter-spacing:-.5px;position:relative;display:inline-block;line-height:1}
.logo .i{position:relative}
.logo .i::after{content:"";position:absolute;right:-1px;top:-3px;width:0;height:0;border-left:5px solid var(--orange);border-top:3px solid transparent;border-bottom:3px solid transparent}
.logo.big{font-size:26px}
.splash{position:fixed;inset:0;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:28px;z-index:999;transition:opacity .3s}
.splash.hide{opacity:0;pointer-events:none}
.spinner{width:44px;height:44px;border-radius:50%;border:4px solid transparent;border-top-color:var(--orange);border-right-color:var(--orange);animation:spin .8s linear infinite}
.spinner.soft{border:2px solid #f6c7a9;border-top-color:var(--orange);width:34px;height:34px}
@keyframes spin{to{transform:rotate(360deg)}}
.progress{position:fixed;top:0;left:0;height:2px;background:var(--orange);z-index:1000;transition:width .4s}

/* ---------- shell ---------- */
.topbar{position:fixed;top:0;left:0;right:0;height:var(--top-h);background:#fff;display:flex;align-items:center;padding:0 28px 0 0;z-index:50;box-shadow:0 1px 6px rgba(0,0,0,.06)}
.topbar .brand{width:var(--rail-w);display:flex;justify-content:center}
.hamburger{width:28px;height:20px;margin-left:32px;display:flex;flex-direction:column;justify-content:space-between;background:none;border:0;padding:0}
.hamburger span{display:block;height:1.6px;background:#333;border-radius:2px}
.topbar .spacer{flex:1}
.btn-cache{border:1px solid var(--orange);color:var(--orange);background:#fff;border-radius:3px;padding:9px 20px;font-size:12px;display:flex;align-items:center;gap:6px}
.branch-sw{color:var(--orange);font-weight:700;margin-left:18px;display:flex;align-items:center;gap:8px;font-size:13.5px;background:none;border:0}
.top-ic{margin-left:34px;color:#7c8188;background:none;border:0;display:flex;padding:0}
.avatar{margin-left:40px;width:34px;height:40px;border-radius:50%;background:none;border:0;padding:0;position:relative}
.dropdown{position:absolute;right:0;top:46px;background:#fff;border-radius:6px;box-shadow:0 6px 24px rgba(0,0,0,.14);min-width:190px;padding:6px 0;z-index:60;text-align:left}
.dropdown a,.dropdown button{display:flex;align-items:center;gap:10px;padding:8px 16px;font-size:12.5px;color:var(--ink-2);background:none;border:0;width:100%;text-align:left}
.dropdown a:hover,.dropdown button:hover{background:#f4f5f7}
.dropdown .sep{height:1px;background:var(--line);margin:4px 0}

.rail{position:fixed;top:var(--top-h);left:0;bottom:0;width:var(--rail-w);background:var(--rail);border-right:1px solid var(--line);overflow-y:auto;z-index:40;scrollbar-width:none}
.rail a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;height:112px;border-bottom:1px solid #d9dbde;color:#4a4f55;font-size:14px}
.rail a svg{width:34px;height:34px;stroke:#444;fill:none;stroke-width:1.15}
.rail a:hover,.rail a.on{background:#fff6f0}
.rail a.on{color:var(--orange)}
.rail a.on svg{stroke:var(--orange)}
.flyout{position:fixed;top:var(--top-h);left:var(--rail-w);bottom:0;width:290px;background:#fff;border-right:1px solid var(--line);box-shadow:6px 0 22px rgba(0,0,0,.08);z-index:45;overflow-y:auto;padding:18px 0 30px;display:none}
.flyout.open{display:block}
.flyout h4{margin:0 22px 10px;font-size:15px;color:var(--ink)}
.flyout .grp{margin:14px 22px 4px;font-size:10.5px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);font-weight:800}
.flyout a{display:block;padding:8px 22px 8px 30px;font-size:13px;color:var(--ink-2);border-left:3px solid transparent}
.flyout a:hover{background:#fff6f0;color:var(--orange)}
.flyout a.on{border-left-color:var(--orange);color:var(--orange);background:#fff6f0;font-weight:700}

.main{margin-left:var(--rail-w);padding:calc(var(--top-h) + 22px) 32px 24px;min-height:100vh}
.page-head{display:flex;align-items:baseline;gap:16px;border-bottom:1px solid var(--line-2);padding:4px 0 16px;margin-bottom:24px}
.page-head h1{font-size:22px;font-weight:600;margin:0;color:#222}
.page-head .crumb{font-size:12px;color:#333}
.page-head .crumb a:hover{color:var(--orange)}
.spec-btn{margin-left:auto;font-size:11px;color:var(--muted);border:1px dashed var(--line-2);background:#fff;border-radius:12px;padding:3px 10px}
.spec-btn:hover{color:var(--orange);border-color:var(--orange)}
.recon{font-size:10.5px;background:#fff5d6;color:#8a6200;border-radius:10px;padding:2px 9px;font-weight:700}

.footer{background:var(--footer);border-radius:8px;margin-top:28px;padding:16px 20px 18px;font-size:11.5px;color:#333}
.footer .fh{font-weight:800;padding-bottom:14px;border-bottom:1px solid #cfd1d5;margin-bottom:16px}
.footer .fb{display:flex;gap:12px;align-items:center;line-height:1.5}
.footer .logo{font-size:17px}

/* ---------- filters / fields ---------- */
.filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px 30px;margin-bottom:16px}
.filters.cols3{grid-template-columns:repeat(3,minmax(0,1fr))}
.fld label{display:block;font-size:12px;color:#333;margin-bottom:5px}
.fld .req{color:#333}
.fld .help{font-size:9.5px;color:#666;margin-top:4px;line-height:1.35}
.ctl{position:relative;display:flex;align-items:center;height:32px;border:1px solid var(--field-b);border-radius:4px;background:#fff;padding:0 8px;font-size:12.5px;color:#333;width:100%}
.ctl input,.ctl select{border:0;outline:0;background:transparent;width:100%;height:100%;padding:0}
.ctl select{appearance:none;-webkit-appearance:none}
.ctl.ro,.ctl.gray{background:var(--field);border-color:#d4d6d9}
.ctl .x{color:#666;margin-left:6px;font-size:14px;line-height:1}
.ctl .chev{margin-left:6px;width:14px;height:14px;stroke:#555;fill:none;stroke-width:2;flex:none}
.ctl:focus-within{border-color:#8fd3b8;box-shadow:0 0 0 1px #b8ead6}
textarea.ctl{height:auto;min-height:72px;padding:8px;resize:vertical;display:block}
.ctl.ph{color:#888}
.inline{display:flex;gap:8px;align-items:center}
.inline .ctl{flex:1}
.btn-clear{height:32px;padding:0 16px;border:1px solid #333;background:#fff;border-radius:4px;font-size:12px}
.chk{display:flex;align-items:center;gap:8px;font-size:12.5px;color:#333;margin:6px 0}
.chk input{width:14px;height:14px;accent-color:var(--orange)}
.radio-row{display:flex;gap:18px;flex-wrap:wrap;height:32px;align-items:center}
.scan{width:28px;height:30px;background:#e2e3e5;border-left:1px solid var(--field-b);margin-right:-8px;display:flex;align-items:center;justify-content:center}

/* ---------- card / tabs / toolbar / table ---------- */
.card{background:#fff;border-radius:10px;box-shadow:0 2px 14px rgba(0,0,0,.08);margin-bottom:22px}
.card-pad{padding:18px 20px}
.card-title{padding:14px 20px;border-bottom:1px solid var(--line);font-weight:700;font-size:13px}
.card-title.flex{display:flex;justify-content:space-between;align-items:center}
.tabs{display:flex;gap:2px;padding:12px 6px 0;border-bottom:1.5px solid #f6a874;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin}
.tabs button{background:none;border:1px solid transparent;border-bottom:0;padding:13px 14px 12px;font-size:12px;color:#333;border-radius:6px 6px 0 0;white-space:nowrap;margin-bottom:-1.5px}
.tabs button.on{border-color:#e4c8b5;background:var(--tab-active);border-bottom:1.5px solid var(--tab-active)}
.toolbar{display:flex;align-items:center;gap:10px;padding:22px 16px 14px;flex-wrap:wrap}
.search{display:flex;align-items:center;gap:10px}
.search svg{width:20px;height:20px;stroke:#333;fill:none;stroke-width:2}
.search input{border:1px solid #d6d8db;border-radius:3px;height:24px;width:150px;font-size:11px;padding:0 8px}
.toolbar .grow{flex:1}
.tb{height:34px;border-radius:3px;font-size:11.5px;padding:0 14px;display:inline-flex;align-items:center;gap:6px;border:1px solid transparent;background:#fff;white-space:nowrap}
.tb.gear{background:var(--slate);color:#fff;width:52px;justify-content:center}
.tb.o-blue{border-color:var(--blue-o);color:var(--blue-o)}
.tb.o-green{border-color:var(--green-o);color:var(--green-o)}
.tb.o-red{border-color:var(--red-o);color:var(--red-o)}
.tb.blue{background:var(--blue);color:#fff}
.tb.orange{background:var(--orange);color:#fff}
.tb.orange:hover{background:var(--orange-d)}
.tb.pill{border-radius:18px}
.tb.dark{background:#1f2937;color:#fff}
.tb.red{background:var(--red);color:#fff}
.tb.sm{height:24px;font-size:10.5px;padding:0 9px}
.sel-bar{margin:0 16px 8px;background:#fff6dd;color:#a77a12;font-size:11px;padding:7px 10px;border-radius:3px;display:flex;align-items:center;gap:10px}
.tblwrap{overflow-x:auto;padding:0 16px}
table.grid{width:100%;border-collapse:collapse;font-size:12px}
table.grid th{font-weight:600;color:#333;text-align:left;padding:10px 8px;border-bottom:1px solid var(--line);vertical-align:bottom;white-space:normal;min-width:70px}
table.grid th .sort{display:inline-block;margin-left:4px;font-size:9px;color:#333;vertical-align:middle;line-height:.7}
table.grid th.cb,table.grid td.cb{min-width:28px;width:28px}
table.grid td{padding:14px 8px;border-bottom:1px solid var(--line);color:#4a4f55;vertical-align:middle}
table.grid tbody tr:hover{background:#ececec}
table.grid input[type=checkbox]{width:13px;height:13px}
table.grid td.empty{text-align:center;color:#555;padding:14px}
.view{background:var(--orange);color:#fff;border:0;border-radius:2px;font-size:10px;padding:3px 9px}
.badge{display:inline-block;border-radius:10px;padding:2px 9px;font-size:10px;font-weight:700;color:#fff;background:var(--navy)}
.badge.approved,.badge.active,.badge.served,.badge.paid{background:#16a34a}
.badge.completed,.badge.processed,.badge.settled,.badge.closed{background:#2563eb}
.badge.disapproved,.badge.cancelled,.badge.void{background:#dc2626}
.badge.archived{background:#6b7280}
.badge.in-transit,.badge.wip,.badge.for-canvassing{background:#d97706}
.kebab{background:none;border:0;font-size:18px;line-height:1;color:#222;padding:0 6px;font-weight:900}
.menu{position:absolute;background:#fff;border-radius:4px;box-shadow:0 4px 18px rgba(0,0,0,.16);padding:6px 0;z-index:70;min-width:170px}
.menu button{display:flex;gap:9px;align-items:center;width:100%;border:0;background:none;padding:6px 14px;font-size:11.5px;color:#333;text-align:left}
.menu button:hover{background:#f3f4f6}
.menu svg{width:13px;height:13px;stroke:#444;fill:none;stroke-width:1.6;flex:none}
.pager{display:flex;align-items:center;justify-content:space-between;padding:18px 34px 22px;color:#777;font-size:14px}
.pager b{color:#333;font-weight:600;margin-left:10px}
.pager .nav{display:flex;gap:22px;align-items:center}
.pager .nav span{color:#999}
.thumb{width:22px;height:22px;border-radius:50%;background:#eceef0;display:inline-flex;align-items:center;justify-content:center}
.thumb svg{width:12px;height:12px;stroke:#888;fill:none;stroke-width:1.6}
.qty{display:inline-flex;align-items:center;height:22px}
.qty button{width:20px;height:22px;border:0;background:var(--orange);color:#fff;font-size:12px;border-radius:2px}
.qty input{width:110px;height:22px;border:0;background:#eceef0;padding:0 8px;font-size:11px}
.btn-pair{display:inline-flex;white-space:nowrap}
.btn-pair button{background:var(--red);color:#fff;border:0;font-size:10.5px;padding:6px 9px}
.btn-pair button:first-child{border-radius:3px 0 0 3px}.btn-pair button:last-child{border-radius:0 3px 3px 0}

/* ---------- forms ---------- */
.form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 22px}
.form-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.form-grid .span2{grid-column:span 2}.form-grid .span3{grid-column:1/-1}
.form-side{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:24px;align-items:start}
.drop{border:1.5px dashed #c5c8cc;border-radius:4px;height:150px;width:150px;margin:20px auto 30px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;font-size:10.5px;color:#555;gap:6px;padding:10px}
.drop svg{width:30px;height:30px;stroke:#bbb;fill:none;stroke-width:1.3}
.submit-row{display:flex;gap:10px;margin-top:20px}
.btn-submit{background:var(--orange);color:#fff;border:0;border-radius:3px;height:32px;padding:0 16px;font-size:12px;display:inline-flex;align-items:center;gap:6px}
.btn-submit:hover{background:var(--orange-d)}
.btn-cancel{background:#1f2937;color:#fff;border:0;border-radius:3px;height:32px;padding:0 16px;font-size:12px}
.attach{border:1px solid var(--line);border-radius:3px;padding:10px 12px;font-size:11.5px;color:#333}
.attach-h{display:flex;justify-content:space-between;align-items:center;margin-bottom:5px;font-size:12px}
.plus-o{width:12px;height:12px;border:1px solid var(--orange);border-radius:50%;color:var(--orange);font-size:10px;display:inline-flex;align-items:center;justify-content:center;line-height:1}
.empty-state{padding:60px 20px;text-align:center;color:#666}
.empty-state h3{margin:0 0 8px;color:#333}
.notice{background:#fff7ed;border:1px solid #fed7aa;color:#9a3412;border-radius:6px;padding:10px 14px;font-size:12px;margin-bottom:16px}

/* ---------- modal / toast ---------- */
.overlay{position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:200;display:flex;justify-content:center;align-items:flex-start;padding:28px 16px;overflow-y:auto}
.modal{background:#fff;border-radius:4px;width:800px;max-width:100%;box-shadow:0 10px 40px rgba(0,0,0,.25)}
.modal.wide{width:1130px}
.modal.center{margin-top:22vh;width:310px;text-align:center;padding:16px 20px 22px}
.modal-h{display:flex;justify-content:space-between;align-items:center;padding:14px 16px;border-bottom:1px solid var(--line);font-size:13px;font-weight:600}
.modal-h button{border:0;background:none;font-size:18px;color:#666;line-height:1}
.modal-b{padding:12px 16px 16px}
.modal-b .fld{margin-bottom:10px}
.modal.center h2{font-weight:500;font-size:22px;margin:4px 0 16px;color:#333}
.modal.center select{height:30px;border:1px solid #333;border-radius:3px;padding:0 8px;font-size:14px;color:#444}
.modal.center .row{display:flex;justify-content:center;gap:12px;margin-top:22px}
.modal.center .row button{height:32px;width:82px;border:0;border-radius:3px;color:#fff;font-size:12px}
.toast{position:fixed;top:6px;right:20px;width:280px;background:#e9f7ec;border:1px solid #cfe9d6;border-radius:3px;z-index:300;font-size:11.5px;color:#2d6a3e;box-shadow:0 4px 14px rgba(0,0,0,.08)}
.toast .th{display:flex;justify-content:space-between;padding:6px 10px;border-bottom:1px solid #cfe9d6;font-weight:600}
.toast .tb2{padding:9px 10px}
.drawer{position:fixed;top:0;right:0;bottom:0;width:420px;max-width:92vw;background:#fff;z-index:250;box-shadow:-8px 0 30px rgba(0,0,0,.16);padding:22px;overflow-y:auto;font-size:12px}
.drawer h3{margin:0 0 4px;font-size:16px}
.drawer h5{margin:18px 0 6px;font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}
.drawer code{background:#f3f4f6;padding:1px 5px;border-radius:3px;font-size:11px;word-break:break-all}
.drawer ul{margin:0;padding-left:18px;line-height:1.6}

/* ---------- dashboard ---------- */
.kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-bottom:22px}
.kpi{background:#fff;border-radius:10px;box-shadow:0 2px 14px rgba(0,0,0,.08);padding:18px 18px 14px;border-top:3px solid var(--orange)}
.kpi .k{font-size:12px;color:#666;font-weight:700;text-transform:uppercase;letter-spacing:.03em}
.kpi .v{font-size:22px;font-weight:800;margin:8px 0 10px}
.kpi a{font-size:11px;color:var(--orange);font-weight:700}
.sec-h{font-weight:800;font-size:13px;letter-spacing:.03em;margin:4px 0 12px}
.dash2{display:grid;grid-template-columns:1fr 1fr;gap:22px}
.chart{width:100%;height:auto;display:block}
.chart text{font-size:10px;fill:#666;font-family:Nunito,sans-serif}

/* ---------- payroll summary ---------- */
.pay-sum{display:grid;grid-template-columns:1.1fr 1fr 1fr 1fr 1fr 1fr;gap:12px;padding:16px 20px;font-size:11.5px;line-height:1.55}
.pay-sum .red{color:#e04848}.pay-sum .grn{color:#16a34a}

/* ---------- POS ---------- */
.pos{position:fixed;inset:0;background:linear-gradient(135deg,#eef1f6,#f7efe9);display:grid;grid-template-columns:250px 1fr 380px;gap:14px;padding:14px;font-size:13px}
.pos .panel{background:#fff;border-radius:16px;box-shadow:0 2px 12px rgba(0,0,0,.06);overflow:hidden;display:flex;flex-direction:column}
.pos-left{padding:16px}
.pos-co{display:flex;align-items:center;gap:10px;font-weight:800;font-size:18px;margin-bottom:12px}
.pos-co .lg{width:46px;height:46px;border-radius:10px;background:linear-gradient(135deg,#ff7a1f,#f05a00);color:#fff;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:800}
.pos-box{background:#f6f7f9;border-radius:12px;padding:12px;margin-bottom:14px}
.pos-box .h{display:flex;justify-content:space-between;align-items:center;font-weight:800;font-size:12px;margin-bottom:8px}
.pos-plus{width:26px;height:26px;border-radius:8px;background:var(--orange);color:#fff;border:0;font-size:16px}
.pos-sel{width:100%;height:36px;border:1px solid #d9dce0;border-radius:18px;padding:0 12px;font-weight:700;background:#fff}
.pos-ghost{width:100%;margin-top:10px;height:30px;border:1px solid #e2e4e7;border-radius:15px;background:#fff;font-size:11px;font-weight:700}
.pos-link{display:flex;align-items:center;gap:10px;font-weight:700;font-size:12px;padding:8px 6px;background:none;border:0}
.pos-cats{flex:1;overflow-y:auto;margin-top:8px}
.pos-cats .t{font-size:10px;font-weight:800;color:#888;letter-spacing:.08em;margin:6px 0 8px}
.pos-cats button{display:block;width:100%;text-align:left;border:0;background:none;padding:10px 8px;font-size:12px;font-weight:800;border-radius:8px;color:#333}
.pos-cats button.on{background:#fff0e6;color:var(--orange)}
.pos-user{display:flex;align-items:center;gap:10px;border:1px solid #eee;border-radius:14px;padding:8px 10px;margin-top:10px;font-size:12px}
.pos-user small{display:block;color:#888;font-size:10px}
.pos-center{background:none!important;box-shadow:none!important;gap:14px;overflow:visible!important}
.pos-search{display:flex;align-items:center;gap:10px;background:#fff;border:2px solid #9ec5fe;border-radius:12px;height:46px;padding:0 14px;box-shadow:0 0 0 4px #e7f0ff}
.pos-search svg{width:20px;height:20px;stroke:#888;fill:none;stroke-width:2;flex:none}
.pos-search input{flex:1;border:0;outline:0;font-size:15px;font-weight:600}
.pos-tiles{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.pos-tile{background:#fff;border-radius:14px;padding:12px 14px;box-shadow:0 2px 12px rgba(0,0,0,.05)}
.pos-tile .k{font-size:11px;font-weight:800;color:#555}.pos-tile .v{font-size:19px;font-weight:800;margin-top:6px}
.pos-cat{background:#fff;border-radius:16px;padding:14px;flex:1;display:flex;flex-direction:column;box-shadow:0 2px 12px rgba(0,0,0,.05);min-height:0}
.pos-cat-h{display:flex;gap:10px;align-items:center;margin-bottom:12px}
.pos-cat-h h3{margin:0;font-size:18px;font-weight:800;line-height:1.1;flex:1}
.pos-cat-h select{height:30px;border:1px solid #ddd;border-radius:8px;padding:0 8px;font-weight:700;font-size:12px}
.pos-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:10px;overflow-y:auto;flex:1;align-content:start}
.pos-prod{border:1px solid #eee;border-radius:10px;background:#f4f6f8;height:118px;position:relative;cursor:pointer;display:flex;flex-direction:column;justify-content:flex-end;padding:6px 8px;text-align:left}
.pos-prod:hover{outline:2px solid var(--orange)}
.pos-prod .chip{position:absolute;top:6px;left:6px;background:var(--orange);color:#fff;font-size:9px;font-weight:800;border-radius:6px;padding:2px 6px}
.pos-prod .img{position:absolute;inset:22px 20px 34px;display:flex;align-items:center;justify-content:center}
.pos-prod .img svg{width:46px;height:46px;stroke:#c3c6ca;fill:none;stroke-width:1.4}
.pos-prod .nm{font-size:10.5px;font-weight:800;line-height:1.2;color:#333;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pos-pg{display:flex;justify-content:center;gap:8px;margin-top:10px}
.pos-pg button{width:30px;height:30px;border-radius:8px;border:1px solid #e3e3e3;background:#fff;font-weight:700;font-size:11px}
.pos-pg button.on{background:var(--orange);color:#fff;border-color:var(--orange)}
.pos-right{padding:16px}
.pos-right .hd{display:flex;justify-content:space-between;align-items:center}
.pos-right h2{margin:0;font-size:20px;font-weight:800}
.refb{background:#fff1e6;color:var(--orange);font-weight:800;font-size:11px;border-radius:14px;padding:6px 10px;border:1px solid #ffd2b3}
.cart-h{display:flex;justify-content:space-between;align-items:center;margin:12px 0 8px;font-size:12px;font-weight:800}
.cart-h small{display:block;color:#888;font-weight:600;font-size:10.5px}
.rev{background:#eef6ff;color:#1d4ed8;border:1px solid #cfe1fb;border-radius:10px;font-size:10.5px;font-weight:800;padding:6px 10px}
.kbd{background:#fff;border:1px solid #ccd;border-radius:4px;font-size:9px;padding:0 4px;margin-left:6px;color:#555}
.cart{flex:1;overflow-y:auto;min-height:80px}
.line{border:1px solid #eee;border-radius:12px;padding:10px;display:grid;grid-template-columns:36px 1fr auto auto;gap:8px;align-items:start;margin-bottom:8px}
.line .ph{width:34px;height:34px;border-radius:50%;background:#f0f1f3;display:flex;align-items:center;justify-content:center}
.line .ph svg{width:16px;height:16px;stroke:#aaa;fill:none;stroke-width:1.5}
.line .n{font-weight:800;font-size:11.5px}.line .s{font-size:10px;color:#888}
.line .p{font-weight:800;font-size:12px;text-align:right}.line .p small{display:block;font-size:9.5px;color:#888;font-weight:600}
.line .rm{width:22px;height:22px;border-radius:6px;background:#fde8e8;color:#d33;border:0;font-weight:800}
.line .q{grid-column:2/4;display:flex;gap:6px;align-items:center}
.line .q button{width:20px;height:20px;border-radius:50%;border:1px solid #ddd;background:#fff;font-size:12px;line-height:1}
.line .q input{width:72px;height:20px;border:1px solid #ddd;border-radius:6px;font-size:11px;padding:0 6px}
.apply-d{width:100%;height:32px;border:1px solid #e3e3e3;background:#fff;border-radius:16px;font-size:11px;font-weight:800;margin:6px 0 8px}
.tot{display:flex;justify-content:space-between;font-size:12px;font-weight:700;margin:4px 0;color:#444}
.grand{display:flex;justify-content:space-between;align-items:center;background:linear-gradient(90deg,#52e3d0,#6ce1f0);border-radius:12px;padding:12px 14px;font-size:18px;font-weight:800;margin:10px 0}
.pos-act{width:100%;height:46px;border:0;border-radius:12px;color:#fff;font-weight:800;font-size:13px;margin-bottom:8px;display:flex;align-items:center;justify-content:center;gap:6px}
.pos-act .kbd{background:rgba(255,255,255,.25);border:0;color:#fff}
.pos-act.reset{background:linear-gradient(90deg,#ef4444,#dc2626)}
.pos-act.pay{background:linear-gradient(90deg,#16a34a,#15803d)}
.pos-act.more{background:linear-gradient(90deg,#334155,#1e293b)}
.pos-more{position:absolute;bottom:70px;right:30px;width:300px;background:#fff;border-radius:12px;box-shadow:0 10px 30px rgba(0,0,0,.2);padding:8px;z-index:20}
.pos-more button{display:flex;justify-content:space-between;width:100%;border:0;background:none;padding:10px 12px;border-radius:8px;font-weight:700;font-size:12.5px}
.pos-more button:hover{background:#f3f4f6}

/* ---------- login ---------- */
.login{min-height:100vh;display:flex;align-items:center;justify-content:center;background:linear-gradient(160deg,#fff,#fff4ec)}
.login-card{width:380px;background:#fff;border-radius:12px;box-shadow:0 10px 40px rgba(0,0,0,.1);padding:36px 32px}
.login-card .logo{font-size:34px;display:block;text-align:center;margin-bottom:6px}
.login-card p{text-align:center;color:#777;margin:0 0 24px}
.login-card .fld{margin-bottom:14px}
.login-card .ctl{height:38px}
.login-card .btn-submit{width:100%;height:40px;justify-content:center;font-size:13px;margin-top:8px}

/* ---------- screens index ---------- */
.idx-mod{margin-bottom:18px}
.idx-mod h3{font-size:14px;margin:0 0 8px}
.idx-tbl td,.idx-tbl th{padding:6px 8px!important;font-size:11.5px}
.idx-tbl code{font-size:11px;color:#555}

@media (max-width:900px){
  :root{--rail-w:72px;--top-h:60px}
  .rail a{height:76px;font-size:10.5px}.rail a svg{width:26px;height:26px}
  .filters,.form-grid,.kpis{grid-template-columns:1fr 1fr}
  .main{padding:calc(var(--top-h) + 14px) 16px 16px}
  .branch-sw span,.top-ic.full{display:none}
  .pos{grid-template-columns:1fr;overflow:auto;position:absolute;min-height:100%}
  .form-side,.dash2{grid-template-columns:1fr}
}

/* ---------- polished screens (screens.js) ---------- */
.g2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 22px}
.g3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px 22px}
.g2 .span2,.g3 .span3{grid-column:1/-1}
.g2 .fld,.g3 .fld{margin-bottom:8px}
hr.sep{border:0;border-top:1px solid var(--line);margin:16px 0}
.prod-top{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1fr);gap:4px 30px;margin-bottom:22px;align-items:start}
.prod-top>div:nth-child(3){padding-top:2px}
.prod-grid{display:grid;grid-template-columns:2.1fr 1fr;gap:28px;align-items:start}
.sub-h{font-weight:800;font-size:12px;margin-bottom:12px;color:#222}
.chks .chk{margin:12px 0}
.gray-chk input{accent-color:#9aa0a6}
.rads{display:flex;flex-direction:column;gap:6px;margin:4px 0 12px}
.rads.row{flex-direction:row;gap:22px;flex-wrap:wrap}
.rad{display:flex;align-items:center;gap:8px;background:none;border:0;padding:0;font-size:12px;color:#555}
.rad i{width:14px;height:14px;border-radius:50%;background:#d1d5db;display:inline-block}
.rad.on i{background:#fff;border:4px solid var(--orange)}
.panel-b{border:1px solid var(--line);border-radius:4px;padding:12px 16px}
.panel-t{font-weight:800;font-size:12.5px;margin-bottom:6px;color:#222}
.pt2{font-weight:800;font-size:12.5px;padding:10px 12px 6px}
.pt2 small{display:block;font-weight:400;font-size:10px;color:#666;margin-top:3px}
table.grid.mini td,table.grid.mini th{padding:7px 8px;font-size:11.5px}
.totals{display:flex;justify-content:flex-end;margin:18px 0}
.totals table{border-collapse:collapse;font-size:11.5px;min-width:230px}
.totals td{padding:6px 10px;border-bottom:1px solid #fff}
.totals tr:nth-child(odd) td{background:#f1f2f4}
.totals td:last-child{text-align:right}
.totals tr:last-child td{font-weight:800}
.si-btns{display:flex;gap:16px;align-items:center}
.si-btns .grow{flex:1}
.tb.wide{min-width:240px;justify-content:center}
.tb.outline{border:1px solid #333;color:#333}
.si-pay{display:grid;grid-template-columns:260px 1fr;gap:12px}
.ls-h{display:flex;justify-content:space-between;font-size:13px;margin-bottom:16px;color:#222}
.ret-card{width:340px;margin:20px auto 120px;padding:16px 20px 20px}
.cal{position:absolute;z-index:400;background:#fff;border:1px solid #ddd;border-radius:4px;box-shadow:0 6px 20px rgba(0,0,0,.14);font-size:11.5px;padding:8px}
.cal-r{display:flex;gap:10px}
.cal-pre{display:flex;flex-direction:column;border-right:1px solid #eee;padding-right:8px;min-width:96px}
.cal-pre button{border:0;background:none;text-align:left;padding:7px 6px;font-size:11.5px;color:#333}
.cal-pre button:hover{background:#f3f4f6}
.cal-m{width:290px}
.cal-r .cal-m{width:200px}
.cal-h{display:flex;justify-content:space-between;align-items:center;padding:4px 6px 8px}
.cal-h button{border:0;background:none;font-size:11px;color:#222}
.cal-d{display:grid;grid-template-columns:repeat(7,1fr);text-align:center;gap:2px}
.cal-d i{font-style:normal;color:#555;font-size:10px;padding:4px 0 8px}
.cal-d button,.cal-d span{border:1px solid transparent;background:none;height:32px;font-size:12px;color:#222;border-radius:2px}
.cal-r .cal-d button,.cal-r .cal-d span{height:24px;font-size:11px}
.cal-d span.off{color:#c5c7ca;line-height:24px}
.cal-d button:hover{background:#f1f5f9}
.cal-d button.today{border-color:#4aa3a3}
.cal-d button.sel{background:#e7f6ec;color:#166534}
.cal-f{display:flex;justify-content:flex-end;align-items:center;gap:10px;border-top:1px solid #eee;margin-top:6px;padding-top:8px}
.cal-f span{margin-right:auto;color:#666}
.cal-f button{border:0;background:none;font-size:11px;padding:6px 8px}
.cal-f .ap{background:#22a447;color:#fff;border-radius:3px;padding:6px 10px}
.modal.pm{width:600px;border-radius:18px;margin-top:2vh;overflow:hidden}
.pm-h{display:flex;justify-content:space-between;align-items:center;padding:16px 16px 12px;font-size:16px;font-weight:800;border-bottom:1px solid #eee}
.pm-h button{width:26px;height:26px;border-radius:50%;border:1px solid #ddd;background:#f6f6f6;font-size:15px;line-height:1}
.pm-b{padding:14px 16px;max-height:66vh;overflow-y:auto}
.pm-b .ctl{border-radius:8px;height:30px}
.pm-b textarea.ctl{border-radius:8px}
.pm-b .fld label{font-weight:800;font-size:11px;color:#333}
.pm-sum{border:1px solid #e5e7eb;border-radius:10px;overflow:hidden;margin-top:6px}
.pm-sum div{display:flex;justify-content:space-between;padding:9px 12px;font-size:11px;font-weight:700;color:#444;border-bottom:1px solid #e5e7eb}
.pm-sum div:last-child{border-bottom:0}
.pm-right{margin-left:auto;width:50%;margin-top:10px}
.pm-tbl{border:1px solid #e5e7eb;border-radius:10px;margin-top:14px;overflow:hidden}
.pm-tbl table{width:100%;border-collapse:collapse;font-size:10.5px}
.pm-tbl th{font-weight:600;color:#555;text-align:left;padding:8px 10px}
.pm-tbl td{padding:8px 10px;border-top:1px solid #eee}
.pm-f{display:flex;gap:8px;padding:12px 16px;border-top:1px solid #eee}
.pm-cancel{border:0;background:#f1f2f4;border-radius:10px;height:32px;padding:0 14px;font-weight:800;font-size:12px}
.pm-submit{border:0;background:var(--orange);color:#fff;border-radius:10px;height:32px;padding:0 14px;font-weight:800;font-size:12px}
@media (max-width:900px){.g3,.prod-top,.prod-grid,.si-pay{grid-template-columns:1fr}.pm-right{width:100%}}

/* ---------- accounting AR/AP (accounting.js) ---------- */
.arf{display:flex;gap:22px;margin-bottom:16px}
.arf .fld{width:160px}
table.grid.ar td,table.grid.ar th{white-space:nowrap}
table.grid.ar th{white-space:normal;min-width:84px}
table.grid tbody tr.od td{background:#f8d7da}
table.grid tbody tr.od:hover td{background:#f3c6ca}
table.grid tbody tr.selr td{background:#e5e7eb}
.badge.approved{background:#22a35a}
.rbadge{position:absolute;top:-8px;right:-6px;background:#e5383b;color:#fff;border-radius:50%;font-size:9px;min-width:14px;height:14px;line-height:14px;text-align:center;font-weight:700}
.tb.rust{background:#e2701e;color:#fff}
.tb.sm2{height:28px;font-size:11px;padding:0 14px}
.sel-bar .tb{margin-left:6px}
.modal.narrow{width:500px}
.add-att{color:var(--orange);font-size:11.5px;display:inline-flex;gap:4px;align-items:center;cursor:pointer}

/* ---------- inventory transfers (transfers.js) ---------- */
.tr-head{display:grid;grid-template-columns:1.25fr 1fr 1fr 1fr;gap:6px 22px;margin-bottom:6px}
.refbox{display:flex;height:32px;border:1px solid var(--field-b);border-radius:4px;overflow:hidden;background:var(--field)}
.refbox span{background:#d9dbde;color:#555;padding:0 10px;display:flex;align-items:center;font-size:12px;border-right:1px solid var(--field-b)}
.refbox input{flex:1;border:0;background:transparent;padding:0 8px;font-size:12.5px;min-width:0;outline:0}
.modal.confirm{width:420px;padding:22px 20px 26px}
.modal.confirm h2{font-size:26px;margin:6px 0 10px;font-weight:600}
.warn-ic{width:58px;height:58px;border:3px solid #f8bb86;border-radius:50%;color:#f8bb86;font-size:34px;line-height:52px;margin:4px auto 6px;font-weight:300}
.modal.confirm .row button{width:96px;height:36px;font-size:13px}
@media (max-width:900px){.tr-head{grid-template-columns:1fr}}

/* ---------- workforce requests (workforce.js) ---------- */
.ctl.chips{height:auto;min-height:32px;flex-wrap:wrap;gap:4px;padding:3px 8px}
.ctl.chips select{height:24px}
.chip{background:#e5e7eb;border:1px solid #cfd2d6;border-radius:3px;font-size:11px;padding:1px 6px;display:inline-flex;gap:4px;align-items:center}
.chip b{cursor:pointer;color:#555}
.ctl.redb{border-color:#e98b8b}
.badge.served{background:#16a34a}
.badge.settled{background:#2563eb}

/* ---------- PRF / PO (prfpo.js) ---------- */
.prf-h{display:grid;grid-template-columns:1fr 1fr;font-size:11.5px;line-height:1.6;color:#333}
.po-top{display:flex;gap:24px;align-items:flex-start;margin-bottom:16px}
.tgl{width:30px;height:16px;border-radius:8px;background:#d1d5db;border:0;position:relative;padding:0}
.tgl i{position:absolute;top:2px;left:2px;width:12px;height:12px;border-radius:50%;background:#fff;transition:left .15s}
.tgl.on{background:#22a35a}.tgl.on i{left:16px}
table.grid.cv tr.addrow td{background:#ececec;padding:6px 8px}
table.grid.cv td{white-space:nowrap}
.cv-foot{display:grid;grid-template-columns:1fr 340px;gap:30px;margin:16px 0 8px;align-items:start}
@media (max-width:900px){.cv-foot,.prf-h{grid-template-columns:1fr}.po-top{flex-direction:column}}

/* ---------- payroll (payroll.js) ---------- */
.reflink{color:var(--orange);font-weight:600}
table.grid.pay td,table.grid.pay th{white-space:nowrap}
table.grid.pay th{white-space:normal;min-width:80px;background:#f6f7f8}
table.grid tbody tr.grp td{background:#eceef1;font-weight:800;color:#222;padding:10px 8px}
table.grid tbody tr.nosched td{color:#9aa0a6}

/* ---------- sales flow (sales.js) ---------- */
.pos-prod .stk{position:absolute;top:6px;right:6px;font-size:8.5px;font-weight:800;color:#166534;background:#dcfce7;border-radius:6px;padding:2px 5px}
.pos-prod .stk.out{color:#991b1b;background:#fee2e2}
.scb{background:#fff7ed;border:1px solid #fed7aa;color:#9a3412;font-size:10.5px;font-weight:700;border-radius:8px;padding:5px 8px;margin-top:8px}
.pm-rm{background:#ef4444;color:#fff;border:0;border-radius:12px;font-size:10.5px;font-weight:700;padding:5px 12px}
.receipt{font-family:"Courier New",monospace;font-size:11.5px;color:#222;border:1px dashed #ccc;padding:12px;border-radius:4px}
.receipt hr{border:0;border-top:1px dashed #bbb;margin:8px 0}
.receipt .rl{display:flex;justify-content:space-between;gap:10px;margin:3px 0}
.receipt .logo{font-family:Nunito,sans-serif}
.barcode{text-align:center;letter-spacing:1px;font-size:22px;line-height:1;margin-top:6px;transform:scaleY(1.6)}

/* ---------- dashboards & reports (reports.js) ---------- */
.live-chip{font-size:10.5px;color:#15803d;background:#dcfce7;border-radius:10px;padding:2px 9px;font-weight:700}
.kpis.five{grid-template-columns:repeat(5,minmax(0,1fr))}
.kpis.five .v{font-size:17px}
table.grid tbody tr.tot-row td{font-weight:800;background:#f1f2f4;color:#222;border-top:2px solid #d2d5d9}
table.grid.rpt td{white-space:nowrap}
table.grid.stmt td{padding:8px 10px}
table.grid.stmt tr.h td{font-weight:800;color:#222;background:#f6f7f8}
table.grid.stmt tr.sh td{font-weight:700;color:#444;padding-left:18px}
table.grid.stmt tr.t td{font-weight:800;color:#222;border-top:1px solid #cfd2d6}
table.grid.stmt tr:not(.h):not(.sh):not(.t) td:first-child{padding-left:34px}
.sc-kpi{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px;align-self:end}
.sc-kpi div{background:#f6f7f8;border-radius:8px;padding:8px 10px;font-size:11px;color:#666}
.sc-kpi b{display:block;font-size:15px;color:#222;margin-top:2px}
@media (max-width:900px){.kpis.five{grid-template-columns:1fr 1fr}.sc-kpi{grid-template-columns:1fr}}

/* ---------- inventory requests / finished goods / adjustments / audits (invreq.js) ---------- */
table.grid tbody tr.drift td{background:#fff7ed}
table.grid tbody tr.req-in-wip td{color:#6b7280;background:#f8fafc}
.err500{background:#fef2f2;border:1px solid #fecaca;color:#991b1b;border-radius:6px;padding:10px 12px;font-size:12px;line-height:1.5}
.err500 code{background:#fee2e2;padding:0 3px;border-radius:3px}
.badge.wip{background:#d97706}

/* ---------- settings & people (settings.js) ---------- */
.prof{display:flex;gap:16px;align-items:center}
.prof h2{margin:0 0 4px;font-size:18px}
.prof>div{font-size:12px;color:#555;line-height:1.6}
.prof-av{width:56px;height:56px;border-radius:50%;background:linear-gradient(135deg,#ff7a1f,#f05a00);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:18px;flex:none}
.kv{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.kv div{background:#f6f7f8;border-radius:6px;padding:7px 10px;font-size:11px;color:#666}
.kv b{display:block;color:#222;font-size:12.5px;margin-top:2px}
.perm-top{display:flex;align-items:center;gap:10px;margin:8px 0;font-size:12px;flex-wrap:wrap}
.perm-top .search input{width:280px}
.perm-mod{border:1px solid var(--line);border-radius:6px;margin-bottom:8px}
.perm-h{display:flex;align-items:center;gap:10px;padding:8px 12px;background:#f8f9fa}
.perm-h .perm-n{margin-left:auto;font-size:11px;color:#666}
.perm-b{padding:6px 12px 10px}
.perm-node{display:grid;grid-template-columns:260px 1fr;gap:8px;padding:5px 0;border-bottom:1px dashed #eee;align-items:start}
.perm-node.scope{background:#fffbeb}
.perm-node code{font-size:11px}
.perm-acts{display:flex;flex-wrap:wrap;gap:4px}
.perm-acts .chip{cursor:pointer;font-size:10.5px}
.perm-acts .chip input{display:none}
.perm-acts .chip.on{background:#fff1e6;border-color:#fdba74;color:#c2410c}
.chk.tk{padding:8px 0;border-bottom:1px solid #f0f0f0}
@media (max-width:900px){.perm-node{grid-template-columns:1fr}.kv{grid-template-columns:1fr}}

/* ---------- orders & quotations (orders.js) ---------- */
table.grid td.neg b{color:#dc2626}
table.grid td.neg{background:#fef2f2}

/* ---------- employee portal (employee.js) ---------- */
.ep-chip{margin-left:10px;border:1px solid #fed7aa;background:#fff7ed;color:#9a3412;border-radius:16px;padding:5px 12px;font-size:12px;cursor:pointer;white-space:nowrap}
.ep-chip b{color:var(--orange)}
.ep-tag{margin-left:10px;font-size:10.5px;font-weight:700;color:#7c3aed;background:#f3e8ff;border-radius:10px;padding:2px 8px;cursor:help}
.ep-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:16px;margin-bottom:16px}
.ep-grid .card{margin:0}
.ep-kv{width:100%;border-collapse:collapse;font-size:12.5px}
.ep-kv td{padding:5px 0;border-bottom:1px dashed #eee;vertical-align:top}
.ep-kv td:first-child{color:#777;width:44%;padding-right:10px}
.ep-kv td:last-child{font-weight:600;color:#222}
.ep-bug{color:#dc2626;border-bottom:1px dotted #dc2626;cursor:help}
.ep-yr{font-size:12px;color:#666;padding:10px 16px}
.ep-cnt{background:#fde68a;color:#92400e;border-radius:8px;padding:0 6px;font-size:10px;font-weight:800}
.ep-bal{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:14px}
.ep-bal div{background:#fff;border:1px solid var(--line);border-radius:8px;padding:10px 14px;min-width:170px;display:flex;flex-direction:column}
.ep-bal span{font-size:11px;color:#777}
.ep-bal b{font-size:22px;color:var(--orange)}
.ep-bal small{font-size:10.5px;color:#999}
.ep-balh{font-size:12px;font-weight:800;color:#444;margin:4px 0 6px}
.ep-punch{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px;max-width:820px;margin:0 auto}
.ep-punch .tb{height:48px;justify-content:center;font-size:13px}
.ep-welcome{max-width:760px;margin:20px auto}
.ep-accts{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px;margin-bottom:12px}
.ep-acct{display:flex;flex-direction:column;gap:3px;text-align:left;border:1px solid var(--line);background:#fff;border-radius:8px;padding:12px 14px;cursor:pointer;font-size:11.5px;color:#666}
.ep-acct b{font-size:14px;color:#222}
.ep-acct:hover,.ep-acct.on{border-color:var(--orange);background:#fff7ed}
.ep-slip{max-width:820px;position:relative;overflow:hidden}
.ep-wm{position:absolute;top:40%;left:50%;transform:translate(-50%,-50%) rotate(-18deg);font-size:90px;font-weight:900;color:rgba(234,88,12,.08);pointer-events:none}
.ep-sh{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.06em;color:#777;margin-bottom:6px}
.ep-sub td{color:#999;font-style:italic}
.ep-tot td{font-weight:800;border-top:2px solid #ddd}
.ep-net{margin-top:14px;padding:12px 16px;background:#fff7ed;border-radius:8px;display:flex;justify-content:space-between;align-items:center;font-weight:800;color:#9a3412}
.ep-net b{font-size:22px;color:#222}
@media (max-width:700px){.ep-chip{display:none}}

/* ---------- log history / support / system pages (logs.js) ---------- */
.lg-sub{font-size:11px;color:#777;font-weight:400;margin-top:2px}
.lg-sus td{background:#fef2f2}
.lg-lvl{font-size:10.5px;font-weight:800;padding:2px 8px;border-radius:10px;background:#e0f2fe;color:#0369a1}
.lg-lvl.warning{background:#fef3c7;color:#92400e}
.lg-lvl.error{background:#fee2e2;color:#b91c1c}
.lg-pre{margin:0;padding:14px 16px;font-size:11.5px;background:#f8fafc;border-top:1px solid var(--line);white-space:pre-wrap;word-break:break-all;max-height:260px;overflow:auto}
.lg-av{width:56px;height:56px;border-radius:50%;background:var(--orange);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:20px}
.lg-cal{display:grid;grid-template-columns:repeat(7,1fr);gap:4px}
.lg-ch{font-size:11px;font-weight:800;color:#777;text-align:center;padding:4px}
.lg-cd{min-height:74px;border:1px solid var(--line);border-radius:6px;padding:4px 6px;font-size:11px;display:flex;flex-direction:column;gap:3px}
.lg-cd.off{border:0}
.lg-cd.today{border-color:var(--orange);background:#fff7ed}
.lg-ev{background:var(--orange);color:#fff;border-radius:4px;padding:2px 4px;font-size:10px;line-height:1.25}
.lg-att{display:flex;flex-wrap:wrap;gap:4px 16px}
.lg-mstate{padding:10px 14px;border-radius:8px;background:#f3f4f6;margin-bottom:14px;font-size:13px}
.lg-mstate.on{background:#fef3c7;color:#92400e}
.lg-state{max-width:560px;margin:40px auto 12px;text-align:center}
.lg-state p{color:#555;font-size:13px}
.lg-sic{font-size:46px;font-weight:900;color:var(--orange)}
.lg-cms{width:420px;margin-right:48px;color:#333}
.lg-cms h2{font-size:26px;margin:16px 0 6px}
.lg-cms p{color:#666;margin:0 0 12px}
.lg-cms ul{padding-left:18px;margin:0 0 14px;font-size:13px;line-height:1.8}
.lg-vid{height:170px;border-radius:12px;background:linear-gradient(135deg,#1f2937,#ea580c);color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;font-weight:800;font-size:18px}
.lg-vid small{font-size:10px;font-weight:400;opacity:.7;margin-top:6px}
.lg-chip{display:inline-block;background:#fff;border:1px solid #fed7aa;color:#9a3412;border-radius:14px;padding:3px 10px;font-size:11px;margin:0 6px 6px 0}
@media (max-width:900px){.lg-cms{display:none}}

/* ---------- navigation redesign (P26): docked sidebar / drawer, tidy flyout, quick search ---------- */
:root{--fo-w:264px}
.rail a{font-size:12.5px;height:96px;gap:6px}
.rail a span{max-width:100%;padding:0 6px;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rail a.on{box-shadow:inset 3px 0 0 var(--orange)}
.nav-search{display:flex;align-items:center;gap:8px;margin-left:22px;height:36px;padding:0 10px 0 12px;border:1px solid var(--line);border-radius:18px;background:#f7f7f8;color:#6b7280;font:inherit;font-size:12.5px;cursor:pointer;min-width:220px}
.nav-search:hover{border-color:var(--orange);color:#374151}
.nav-search span{flex:1;text-align:left}
kbd{font:600 10.5px/1 ui-monospace,Consolas,monospace;background:#fff;border:1px solid #d1d5db;border-bottom-width:2px;border-radius:4px;padding:2px 5px;color:#4b5563}
.flyout{width:var(--fo-w);padding:0 0 12px;display:none;flex-direction:column;scrollbar-width:thin;scrollbar-color:#d1d5db transparent}
.flyout.open{display:flex}
.flyout::-webkit-scrollbar{width:6px}.flyout::-webkit-scrollbar-thumb{background:#d1d5db;border-radius:3px}
.fo-h{display:flex;align-items:center;gap:10px;padding:16px 16px 10px;position:sticky;top:0;background:#fff;z-index:1}
.fo-h b{font-size:15px;flex:1;color:var(--ink)}
.fo-ic{width:22px;height:22px;stroke:var(--orange);fill:none;stroke-width:1.6}
.fo-pin{border:1px solid var(--line);background:#fff;border-radius:12px;padding:3px 10px;font:inherit;font-size:11px;color:#4b5563;cursor:pointer}
.fo-pin.on{background:#fff6f0;border-color:#fed7aa;color:var(--orange);font-weight:700}
.fo-tools{display:flex;justify-content:flex-end;padding:10px 14px 0}
.fo-q{padding:0 14px 8px;position:sticky;top:56px;background:#fff;z-index:1}
.fo-q input{width:100%;height:32px;border:1px solid var(--line);border-radius:8px;padding:0 10px;font:inherit;font-size:12.5px;background:#f9fafb}
.fo-q input:focus{outline:none;border-color:var(--orange);background:#fff}
#fo-list{flex:1}
.flyout .grp{margin:14px 16px 4px;font-size:10px;letter-spacing:.09em;color:#9ca3af}
.flyout .grp:first-child{margin-top:4px}
.flyout a{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:1px 8px;padding:7px 10px 7px 12px;border-radius:7px;border-left:0;font-size:13px}
.flyout a.on{background:#fff1e6;color:var(--orange);font-weight:700;box-shadow:inset 3px 0 0 var(--orange)}
.flyout a span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.nb{font-style:normal;font-size:10.5px;font-weight:800;min-width:20px;height:18px;line-height:18px;padding:0 6px;border-radius:9px;background:#fde68a;color:#92400e;text-align:center;flex:none}
.nb.warn{background:#fee2e2;color:#b91c1c}
.nb.info{background:#e0f2fe;color:#0369a1}
.fo-empty{padding:16px;color:#6b7280;font-size:12.5px;line-height:1.6}
.fo-foot{padding:10px 16px 0;margin-top:8px;border-top:1px solid var(--line);color:#9ca3af;font-size:11px}
.nav-backdrop{display:none;position:fixed;inset:var(--top-h) 0 0 var(--rail-w);background:rgba(17,24,39,.28);z-index:44}
.flyout.open ~ .nav-backdrop{display:block}
body.docked .nav-backdrop{display:none!important}
body.docked .flyout{box-shadow:none;z-index:39}
body.docked .main{margin-left:calc(var(--rail-w) + var(--fo-w))}
body.docked .footer{margin-left:0}
/* quick search (Ctrl K) */
.pal{position:fixed;inset:0;z-index:150;background:rgba(17,24,39,.45);display:flex;justify-content:center;align-items:flex-start;padding-top:10vh}
.pal-box{width:min(640px,94vw);background:#fff;border-radius:14px;box-shadow:0 24px 60px rgba(0,0,0,.35);overflow:hidden;display:flex;flex-direction:column;max-height:72vh}
.pal-in{display:flex;align-items:center;gap:10px;padding:12px 16px;border-bottom:1px solid var(--line)}
.pal-in input{flex:1;border:0;font:inherit;font-size:16px;outline:none}
.pal-list{overflow:auto;padding:6px 0}
.pal-grp{padding:8px 16px 4px;font-size:10px;letter-spacing:.09em;text-transform:uppercase;color:#9ca3af;font-weight:800}
.pal-it{display:flex;align-items:center;gap:10px;padding:8px 16px;cursor:pointer}
.pal-it.sel{background:#fff1e6}
.pal-it .t{flex:1;min-width:0}
.pal-it .t b{display:block;font-size:13.5px;color:var(--ink);font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pal-it .t small{color:#9ca3af;font-size:11px}
.pal-it .m{font-size:11px;color:#6b7280;background:#f3f4f6;border-radius:9px;padding:1px 8px;white-space:nowrap}
.pal-it .star{border:0;background:none;font-size:15px;color:#d1d5db;cursor:pointer;padding:2px}
.pal-it .star.on{color:#f59e0b}
.pal-foot{display:flex;gap:14px;padding:8px 16px;border-top:1px solid var(--line);color:#9ca3af;font-size:11px}
@media (max-width:1100px){.nav-search span{display:none}.nav-search{min-width:0}}
@media (max-width:820px){.nav-search kbd{display:none}.rail a span{display:none}.rail a{height:64px}.nav-search{margin-left:10px}}

/* ---------- list-page redesign (P27) — only with body.ui-new ---------- */
.ui-sw{display:flex;border:1px solid var(--line);border-radius:16px;overflow:hidden;margin-left:12px}
.ui-sw button{border:0;background:#fff;padding:5px 11px;font:inherit;font-size:11.5px;color:#6b7280;cursor:pointer}
.ui-sw button.on{background:var(--orange);color:#fff;font-weight:700}
body.ui-new .x-gone{display:none!important}
body.ui-new table.x-grid{border-collapse:separate;border-spacing:0}
body.ui-new table.x-grid th{white-space:nowrap;vertical-align:bottom}
body.ui-new table.x-grid th .sort{display:inline-block;transform:scale(.75);margin-left:2px;opacity:.5;vertical-align:middle;line-height:.55}
body.ui-new table.x-grid td.x-date{white-space:nowrap}
body.ui-new table.x-grid .x-hid{display:none}
body.ui-new table.x-grid .x-stl0,body.ui-new table.x-grid .x-stl1,body.ui-new table.x-grid .x-str{position:sticky;background:#fff;z-index:2}
body.ui-new table.x-grid th.x-stl0,body.ui-new table.x-grid th.x-stl1,body.ui-new table.x-grid th.x-str{background:#fafafa;z-index:3}
body.ui-new table.x-grid .x-stl0{left:0}
body.ui-new table.x-grid .x-stl1{font-weight:700;color:#111827;box-shadow:inset -1px 0 0 #eceef1}
body.ui-new table.x-grid .x-str{right:0;box-shadow:inset 1px 0 0 #eceef1;text-align:center}
body.ui-new table.x-grid tr.selr td{background:#fff7ed}
body.ui-new table.x-grid tbody tr:hover td{background:#fafafa}
body.ui-new .x-cnt{display:inline-block;min-width:18px;height:17px;line-height:17px;padding:0 5px;border-radius:9px;background:#fde68a;color:#92400e;font-size:10px;font-weight:800;text-align:center;margin-left:4px}
body.ui-new .x-cnt.zero{background:#f3f4f6;color:#9ca3af}
body.ui-new .tabs button.on .x-cnt{background:var(--orange);color:#fff}
body.ui-new .toolbar .x-quiet{background:#fff!important;color:#374151!important;border:1px solid var(--line)!important}
body.ui-new .toolbar .x-exp,body.ui-new .toolbar [data-act="cols"]{background:#fff!important;color:#374151!important;border:1px solid var(--line)!important;width:auto!important;padding:0 12px!important;display:inline-flex;align-items:center;gap:4px}
body.ui-new .page-head .x-primary{margin-left:auto;margin-right:10px}
body.ui-new .page-head .x-primary + .spec-btn{margin-left:0}
.x-pop{position:absolute;z-index:80;background:#fff;border-radius:10px;box-shadow:0 10px 30px rgba(0,0,0,.18);border:1px solid var(--line);min-width:220px}
.x-pop-h{padding:10px 14px;font-weight:700;border-bottom:1px solid var(--line)}
.x-pop-h small{color:#9ca3af;font-weight:400;margin-left:6px}
.x-pop-b{max-height:320px;overflow:auto;padding:6px 8px}
.x-pop-b label{display:flex;gap:8px;align-items:center;padding:4px 6px;border-radius:6px;font-size:12.5px;cursor:pointer}
.x-pop-b label:hover{background:#f9fafb}
.x-pop-f{display:flex;justify-content:space-between;padding:8px 10px;border-top:1px solid var(--line)}
.x-pop-f button{border:0;background:none;color:var(--orange);font:inherit;font-size:12px;cursor:pointer;font-weight:600}
.x-menu{padding:6px}
.x-menu button{display:block;width:100%;text-align:left;border:0;background:none;padding:7px 10px;border-radius:7px;cursor:pointer;font:inherit}
.x-menu button:hover{background:#fff7ed}
.x-menu button b{display:block;font-size:13px}.x-menu button small{color:#9ca3af;font-size:11px}
body.ui-new .x-filters{display:flex!important;flex-wrap:wrap;gap:8px 12px;align-items:flex-end;background:#fff;border:1px solid var(--line);border-radius:10px;padding:10px 12px;margin-bottom:14px}
body.ui-new .x-filters > .fld{width:auto!important;min-width:170px;flex:0 1 210px;margin:0}
body.ui-new .x-filters > .fld label{font-size:10.5px;text-transform:uppercase;letter-spacing:.05em;color:#9ca3af;margin-bottom:3px}
body.ui-new .x-filters > .fld .ctl{height:32px}
body.ui-new .x-filters > .fld.x-more{display:none}
body.ui-new .x-filters.x-open > .fld.x-more{display:block}
body.ui-new .x-filters > :not(.fld):not(.x-fbar){margin:0}
body.ui-new .x-fbar{display:flex;flex-wrap:wrap;gap:6px;align-items:center;flex:1 1 100%}
body.ui-new .x-fbar:empty{display:none}
.x-morebtn{border:1px dashed #d1d5db;background:#fff;border-radius:14px;padding:4px 12px;font:inherit;font-size:12px;color:#374151;cursor:pointer}
.x-morebtn:hover{border-color:var(--orange);color:var(--orange)}
.x-chip{display:inline-flex;align-items:center;gap:4px;background:#fff7ed;border:1px solid #fed7aa;color:#9a3412;border-radius:14px;padding:2px 4px 2px 10px;font-size:12px}
.x-chip button{border:0;background:none;color:#9a3412;font-size:14px;line-height:1;cursor:pointer;padding:0 4px}
@media (max-width:820px){
  body.ui-new table.x-grid thead{display:none}
  body.ui-new table.x-grid,body.ui-new table.x-grid tbody{display:block}
  body.ui-new table.x-grid tr{display:block;border:1px solid var(--line);border-radius:10px;margin:0 0 10px;padding:6px 10px;position:relative}
  body.ui-new table.x-grid td{display:flex;justify-content:space-between;gap:12px;border:0!important;padding:3px 0!important;position:static!important;box-shadow:none!important;text-align:right}
  body.ui-new table.x-grid td::before{content:attr(data-label);color:#9ca3af;font-size:11px;text-align:left;flex:none;max-width:45%}
  body.ui-new table.x-grid td.x-stl0{position:absolute!important;top:8px;left:8px;width:auto}
  body.ui-new table.x-grid td.x-stl0::before,body.ui-new table.x-grid td.x-str::before{content:none}
  body.ui-new table.x-grid td.x-stl1{font-size:14px;padding-left:24px!important}
  body.ui-new table.x-grid td.x-str{justify-content:flex-end}
  body.ui-new table.x-grid td.empty{display:block;text-align:center}
  body.ui-new table.x-grid td.empty::before{content:none}
}
/* list redesign — phone polish */
body.ui-new .x-mob{display:none}
body.ui-new .tabs{overflow-x:auto;scrollbar-width:thin;flex-wrap:nowrap}
body.ui-new .tabs > button{flex:none;white-space:nowrap}
@media (max-width:820px){
  body.ui-new .x-mob{display:inline-block}
  body.ui-new .x-desk{display:none}
  body.ui-new .x-filters > .fld{display:none!important;flex:1 1 100%}
  body.ui-new .x-filters.x-open > .fld{display:block!important}
  body.ui-new table.x-grid td.x-stl0{position:static!important;display:block;padding:0 0 4px!important}
  body.ui-new table.x-grid td.x-stl1{padding-left:0!important}
  .topbar .btn-cache{font-size:0;padding:0 8px;gap:0}
  .topbar .btn-cache svg{width:14px;height:14px}
  .topbar .hamburger{flex:none}
  .ui-sw button{padding:4px 7px;font-size:10.5px}
  .topbar .branch-sw span,.topbar .top-ic.full{display:none}
}
body.ui-new table.x-grid tbody tr.od td.x-stl1,body.ui-new table.x-grid tbody tr.od td.x-stl0,body.ui-new table.x-grid tbody tr.od td.x-str{background:#f8d7da}
@media (max-width:820px){
  body.ui-new table.x-grid tbody tr.od{border-left:4px solid #dc2626}
  body.ui-new table.x-grid tbody tr.od td,body.ui-new table.x-grid tbody tr.od td.x-stl1,body.ui-new table.x-grid tbody tr.od td.x-stl0,body.ui-new table.x-grid tbody tr.od td.x-str{background:transparent}
}
@media (max-width:480px){ .topbar .ui-sw,.topbar .branch-sw{display:none} .topbar .nav-search{margin-left:6px} }
