:root{font-family:Inter,Segoe UI,system-ui,sans-serif;color:#193044;background:#f2f5f8;font-size:16px;--accent:#e97622;--nav:#142b40;--muted:#738294}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer;border:0;border-radius:9px;background:var(--nav);color:white;padding:.75rem 1rem;font-weight:600;transition:.15s}button:hover{filter:brightness(1.12)}button:disabled{opacity:.5;cursor:wait}button.secondary{background:#eaf0f5;color:#25445b}button.primary{background:var(--accent)}button.danger{background:#bd4141}.shell{display:grid;grid-template-columns:248px 1fr;min-height:100vh}aside{background:var(--nav);color:#fff;padding:28px 16px;position:fixed;width:248px;inset:0 auto 0 0;overflow:auto}.brand{display:flex;gap:12px;align-items:center;font-size:1.22rem;font-weight:800;margin:0 12px 28px}.brand img{width:43px}.brand small{display:block;font-weight:400;color:#9bb0c3;font-size:.75rem;margin-top:5px}.nav-label{font-size:.7rem;letter-spacing:.14em;color:#8da4b8;margin:25px 14px 10px}nav button{display:flex;width:100%;align-items:center;gap:12px;text-align:left;background:none;color:#b9c8d5;margin:3px 0;font-size:.9rem;font-weight:500}nav button.active{background:#2a4053;color:white;border-left:3px solid var(--accent)}.nav-icon{width:22px;text-align:center;font-size:1.1rem}.sidebar-foot{margin:30px 12px;color:#91a6b7;font-size:.78rem;line-height:1.6}.main{grid-column:2;min-width:0}header{height:84px;background:white;border-bottom:1px solid #e2e8ee;display:flex;align-items:center;justify-content:space-between;padding:0 34px;gap:16px}header small{color:var(--muted)}.header-right{display:flex;align-items:center;gap:14px}.avatar{border-radius:50%;background:#fce9dc;color:#b65a19;width:38px;height:38px;display:grid;place-items:center;font-weight:700}main{padding:30px 34px;max-width:1800px;margin:auto}.eyebrow{font-size:.75rem;letter-spacing:.13em;text-transform:uppercase;color:var(--accent);font-weight:700}h1{font-size:1.8rem;letter-spacing:-.04em;margin:8px 0}h2{font-size:1.1rem;margin:0 0 16px}p{line-height:1.6}.muted{color:var(--muted);font-size:.9rem}.page-head{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:25px}.actions{display:flex;gap:10px;flex-wrap:wrap}.banner{padding:12px 18px;border-radius:10px;background:#fff3e7;border:1px solid #f7dfc6;color:#9a5a21;font-size:.85rem;margin-bottom:24px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-bottom:25px}.stat,.card{background:white;border:1px solid #e2e8ee;border-radius:13px;padding:22px;box-shadow:0 3px 12px #17344d03}.stat .label{font-size:.85rem;color:var(--muted)}.stat .value{font-size:1.8rem;font-weight:750;margin:13px 0 8px;letter-spacing:-.04em}.stat small{color:#648674;font-size:.78rem}.grid2{display:grid;grid-template-columns:1.5fr 1fr;gap:22px;margin-bottom:24px}.card-head{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:18px}.card-head h2{margin:0}.table-wrap{overflow:auto;border-radius:10px}table{border-collapse:collapse;width:100%;font-size:.88rem;white-space:nowrap}th{background:#f6f8fa;text-align:left;padding:13px;color:#778795;font-size:.72rem;letter-spacing:.04em;text-transform:uppercase;font-weight:600}td{padding:15px 13px;border-bottom:1px solid #edf1f4}td strong{display:block;color:#213a4e;font-size:.88rem}td small{display:block;color:#8795a2;margin-top:4px}.badge{font-size:.73rem;padding:5px 9px;background:#e9f4ee;color:#347757;border-radius:6px;display:inline-block}.badge.warn{background:#fff0df;color:#b26921}.badge.blue{background:#e9f0fa;color:#4a72a5}.badge.red{background:#feeaea;color:#b84343}.filters{display:flex;gap:12px;margin-bottom:20px;flex-wrap:wrap}input,select,textarea{width:100%;padding:11px 12px;border:1px solid #dce3e9;background:#fff;border-radius:8px;color:#233f53;min-height:44px}textarea{min-height:78px}input:focus,select:focus,textarea:focus{outline:2px solid #e9762240;border-color:var(--accent)}.filters input{flex:1;min-width:220px}.filters select{width:auto;min-width:140px}label{display:block;font-size:.83rem;font-weight:600;color:#5d7182}label input,label select,label textarea{margin-top:7px;font-weight:400}.formgrid{display:grid;grid-template-columns:1fr 1fr;gap:17px}.formgrid .wide{grid-column:1/-1}.form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}.empty{text-align:center;padding:45px;color:#8799a8;white-space:normal}.pos{display:grid;grid-template-columns:minmax(0,1fr) 370px;gap:22px}.products{display:grid;grid-template-columns:repeat(auto-fill,minmax(175px,1fr));gap:13px}.product{padding:17px;background:white;border:1px solid #e0e7ed;border-radius:10px;cursor:pointer;position:relative}.product:hover{border-color:var(--accent);box-shadow:0 4px 15px #142b4009}.product .part{background:#f2f5f8;color:#597186;font-size:1.5rem;border-radius:8px;height:56px;display:grid;place-items:center;margin-bottom:13px}.product h3{font-size:.9rem;line-height:1.5;margin:6px 0;min-height:43px}.product .price{font-weight:750;color:#dc701e;margin:13px 0 7px}.product small{font-size:.75rem;color:#7b8b98}.cart{align-self:start;position:sticky;top:20px}.cart-item{padding:15px 0;border-bottom:1px solid #edf1f4}.cart-row{display:flex;gap:8px;align-items:center;justify-content:space-between;margin-top:10px}.cart-row input{width:85px}.cart-row button{padding:8px;background:#fceaea;color:#ae4444}.totals{margin:20px 0}.totals div{display:flex;justify-content:space-between;padding:7px 0;font-size:.9rem}.totals .grand{font-size:1.4rem;font-weight:750;border-top:1px solid #e2e8ee;padding-top:15px;margin-top:10px}.tabs{display:flex;gap:7px;overflow:auto;margin-bottom:18px}.tabs button{white-space:nowrap;background:#e6edf3;color:#6c8193}.tabs button.active{background:var(--nav);color:white}dialog{border:0;border-radius:15px;padding:28px;width:min(820px,94vw);max-height:90vh;box-shadow:0 24px 100px #0004}dialog::backdrop{background:#10283a88;backdrop-filter:blur(3px)}dialog h2{font-size:1.35rem;margin-bottom:23px}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);padding:15px 23px;background:#173b32;color:white;border-radius:10px;z-index:100;display:none;max-width:90vw}.login{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.login-hero{background:var(--nav);color:white;padding:10vw 8vw;display:flex;flex-direction:column;justify-content:center;background-image:radial-gradient(circle at 80% 15%,#34516d80,transparent 50%)}.login-hero h1{font-size:3rem;line-height:1.15;margin:35px 0 20px}.login-hero p{color:#a6bbcc;max-width:430px}.login-form{display:flex;align-items:center;justify-content:center;padding:35px}.login-form form{width:360px}.login-form label{margin:20px 0}.login-form button{width:100%;margin-top:10px}.bar-chart{height:180px;display:flex;gap:12px;align-items:flex-end;margin-top:25px}.bar-col{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:100%;gap:9px;font-size:.7rem;color:#8b9aa7}.bar-col div{background:#e97622;border-radius:5px 5px 0 0;width:65%;min-height:3px}.alert-item{display:flex;gap:13px;padding:15px 0;border-bottom:1px solid #edf1f4;font-size:.88rem}.alert-item i{background:#fff0df;color:#d17a2b;font-style:normal;padding:9px;border-radius:9px;height:38px}.alert-item p{margin:0}.alert-item small{color:#8a99a7}.mobile-menu{display:none}.print-title{border-bottom:2px solid #18354b;padding-bottom:15px}.print-watermark{color:#b65320;background:#fff1e4;padding:15px;text-align:center;font-weight:700}.online{color:#4d886b;font-size:.78rem}.offline{color:#c77b28}.line-entry{display:grid;grid-template-columns:3fr 1fr 1fr 1fr 40px;gap:8px;margin:8px 0}.line-entry button{padding:7px}.notice{background:#f1f6fa;padding:14px;border-radius:9px;font-size:.85rem;line-height:1.6}.report-list{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.report-list button{text-align:left;background:white;color:#284255;border:1px solid #dfe7ee;padding:25px}.report-list small{display:block;font-weight:400;line-height:1.6;color:#7f91a0;margin-top:12px}@media(max-width:1150px){.stats{grid-template-columns:repeat(2,1fr)}.pos{grid-template-columns:1fr 320px}.shell{grid-template-columns:215px 1fr}aside{width:215px}main{padding:24px}.grid2{grid-template-columns:1fr}.report-list{grid-template-columns:1fr 1fr}}@media(max-width:800px){.shell{display:block}aside{display:none;z-index:20;width:248px;box-shadow:20px 0 100px #0005}aside.visible{display:block}.main{display:block}.mobile-menu{display:block;padding:8px 12px}header{padding:12px 18px;height:72px}.header-right small{display:none}main{padding:21px 16px}.page-head{align-items:flex-start}h1{font-size:1.55rem}.pos{display:block}.cart{position:static;margin-top:20px}.stats{gap:10px}.stat{padding:16px}.stat .value{font-size:1.4rem}.login{grid-template-columns:1fr}.login-hero{display:none}.login-form{min-height:100vh}.formgrid{grid-template-columns:1fr}.report-list{grid-template-columns:1fr}.line-entry{grid-template-columns:2fr 1fr 1fr 36px}.line-entry .receive-qty{grid-column:2}.card{padding:17px}.filters select{flex:1}.header-right{gap:9px}.brand small{font-size:.7rem}}@media print{body{background:white}aside,header,main,.form-actions,#toast{display:none!important}dialog{display:block!important;position:static;max-height:none;width:100%;padding:0;box-shadow:none}dialog::backdrop{display:none}.print-content{display:block}.print-content table{white-space:normal}}
