:root{--navy:#101b2b;--navy2:#17253a;--mint:#14b8a6;--mint-dark:#0f9b8c;--bg:#f5f7fb;--white:#fff;--text:#19263a;--sub:#69778b;--muted:#97a2b0;--line:#e8edf4;--amber:#e9a23b;--red:#e45a68;--blue:#5d83e4;--purple:#9472d7;--radius:16px;--shadow:0 8px 28px rgba(20,37,61,.045)}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:var(--text);background:var(--bg);font-size:14px}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.48}a{text-decoration:none;color:inherit}svg{width:19px;height:19px;stroke:currentColor;stroke-width:1.85;fill:none;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}.app{display:flex;min-height:100vh}.sidebar{width:252px;background:var(--navy);color:#c5cfdb;min-height:100vh;position:fixed;inset:0 auto 0 0;display:flex;flex-direction:column;z-index:20;padding:30px 17px 19px}.logo-wrap{display:flex;align-items:center;gap:12px;padding:0 12px 32px}.logo-icon{width:39px;height:39px;display:grid;place-items:center;border-radius:13px;background:var(--mint);color:white;box-shadow:0 6px 15px #14b8a633}.logo-icon svg{width:23px;height:23px}.brand{font-size:19px;font-weight:850;letter-spacing:-.7px;color:#fff;line-height:1}.brand span{color:#49dfce}.brand-caption{display:block;color:#8291a6;font-weight:650;font-size:9px;letter-spacing:2px;margin-top:8px}.menu-group{font-size:10px;color:#71839a;font-weight:800;letter-spacing:1.7px;padding:13px 15px 10px}.nav-item{display:flex;align-items:center;gap:13px;width:100%;color:#9eafc3;border:0;background:transparent;padding:13px 14px;border-radius:10px;text-align:left;font-weight:620;margin:2px 0;transition:background .15s,color .15s}.nav-item svg{width:19px;height:19px}.nav-item:hover{background:#1b2a3e;color:#fff}.nav-item.active{background:#193f43;color:#6be4d5}.nav-item.active:before{content:"";width:3px;height:20px;position:absolute;left:0;background:#34d3c0;border-radius:0 4px 4px 0}.nav-item small{margin-left:auto;background:#25344b;color:#b4c1d1;border-radius:6px;padding:2px 6px;font-size:10px}.sidebar-bottom{margin-top:auto;padding:18px 7px 0}.demo-box{background:#1b2b40;border:1px solid #2a3a51;border-radius:13px;padding:15px 14px}.demo-label{font-weight:800;font-size:12px;color:white;display:flex;align-items:center;gap:7px}.live-dot{background:#5ce0b6;width:7px;height:7px;box-shadow:0 0 0 3px #5ce0b61c;border-radius:50%}.demo-note{font-size:11px;color:#8ea0b4;line-height:1.6;margin:8px 0 12px}.sidebar-link{background:transparent;border:0;color:#84e4d7;font-size:11px;font-weight:750;padding:0}.powered{color:#596b7f;padding:15px 5px 0;text-align:center;font-size:10px}.main{margin-left:252px;min-width:0;flex:1}.topbar{min-height:94px;padding:21px 36px;display:flex;align-items:center;justify-content:space-between;background:#fff;border-bottom:1px solid var(--line);gap:14px}.top-title{font-size:23px;font-weight:820;letter-spacing:-.75px;margin:0 0 4px}.top-sub{font-size:12px;color:var(--sub);margin:0}.top-actions{display:flex;align-items:center;gap:13px}.date-pill{border:1px solid var(--line);padding:11px 13px;border-radius:10px;color:#65758b;font-size:12px;font-weight:600;display:flex;gap:8px;align-items:center}.date-pill svg{width:15px;height:15px}.avatar{width:37px;height:37px;display:grid;place-items:center;border-radius:12px;background:#e8f8f5;color:#108e81;font-size:12px;font-weight:850;border:1px solid #d6f0e9}.content{padding:30px 36px 60px;max-width:1700px;margin:auto}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid transparent;border-radius:10px;padding:11px 16px;background:#fff;font-size:12px;font-weight:800;white-space:nowrap;transition:transform .15s,background .15s}.btn svg{width:16px;height:16px}.btn:hover:not(:disabled){transform:translateY(-1px)}.btn-primary{background:var(--mint);color:#fff;box-shadow:0 5px 13px #0da79422}.btn-primary:hover{background:var(--mint-dark)}.btn-dark{background:var(--navy);color:#fff}.btn-light{background:#fff;border-color:#e3eaf2;color:#47566e}.btn-soft{background:#e8f8f5;color:#0c9989}.btn-danger{background:#ffeff0;color:#cd4b58}.btn-sm{padding:8px 11px;font-size:11px;border-radius:8px}.btn-icon{padding:8px;width:33px;height:33px}.section-head{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-bottom:18px}.section-head h2{font-size:17px;margin:0;letter-spacing:-.45px}.section-head p{margin:5px 0 0;color:var(--sub);font-size:12px}.panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);min-width:0}.panel-pad{padding:22px}.hero{background:linear-gradient(108deg,#14283c 0%,#183b45 70%,#164a4b 100%);min-height:168px;border-radius:17px;display:flex;justify-content:space-between;overflow:hidden;color:#fff;margin-bottom:23px;position:relative}.hero:after{content:"";width:250px;height:250px;border:1px solid #ffffff19;border-radius:50%;position:absolute;right:32px;top:-67px;box-shadow:0 0 0 35px #ffffff06,0 0 0 75px #ffffff04}.hero-copy{z-index:1;padding:29px 32px}.eyebrow{font-size:10px;letter-spacing:1.75px;font-weight:800;text-transform:uppercase;color:#6ee0cc}.hero h2{margin:11px 0 7px;font-size:24px;letter-spacing:-.8px}.hero p{font-size:12px;color:#b8d0cf;margin:0 0 17px;line-height:1.5}.hero-art{display:flex;align-items:center;justify-content:center;margin-right:72px;z-index:1;transform:rotate(-12deg)}.phone{width:87px;height:142px;border:5px solid #82d7cb;border-radius:18px;background:#132c3e;box-shadow:15px 14px 0 #071c2a55,0 0 0 7px #132f3a;display:grid;place-items:center}.phone:before{content:"";width:30px;height:6px;border-radius:9px;background:#82d7cb;position:absolute;transform:translateY(-58px)}.phone svg{width:35px;height:35px;color:#69d6c6}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;margin-bottom:24px}.stat{padding:20px 20px;cursor:pointer;transition:transform .15s,box-shadow .15s}.stat:hover{transform:translateY(-2px);box-shadow:0 9px 30px #19263a12}.stat-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.stat-label{font-weight:650;color:var(--sub);font-size:12px}.stat-icon{width:39px;height:39px;display:grid;place-items:center;border-radius:12px}.ic-teal{background:#e4f9f4;color:#08a995}.ic-blue{background:#e9f0ff;color:#5b84e6}.ic-yellow{background:#fff4df;color:#dda033}.ic-red{background:#ffeced;color:#e5646c}.stat-value{margin:17px 0 7px;font-size:25px;letter-spacing:-1px;font-weight:850}.stat-foot{font-size:11px;color:#8b98a7}.stat-foot strong{color:#0b9f86}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(300px,1fr);gap:19px;margin-bottom:22px}.panel-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:20px 21px 17px}.panel-head h3{font-size:15px;letter-spacing:-.35px;margin:0}.panel-head small{font-size:11px;color:var(--sub)}.text-link{border:0;background:transparent;color:#0aa794;font-size:11px;font-weight:780;white-space:nowrap}.table-wrap{overflow-x:auto}.table{width:100%;border-collapse:collapse;text-align:left}.table th{font-size:10px;text-transform:uppercase;letter-spacing:1px;color:#8b98a7;background:#f9fbfe;padding:13px 18px;white-space:nowrap;font-weight:800}.table td{padding:15px 18px;border-top:1px solid #f0f3f7;font-size:12px;color:#4c5b6e;vertical-align:middle}.table th:first-child,.table td:first-child{padding-left:22px}.table th:last-child,.table td:last-child{padding-right:22px}.table tbody tr:hover{background:#fcfdff}.cell-title{font-weight:800;color:#233349}.cell-sub{display:block;color:#96a3b0;font-size:10px;margin-top:4px}.badge{font-size:10px;border-radius:7px;padding:5px 8px;white-space:nowrap;font-weight:800;display:inline-block}.badge.progress{background:#e6f1ff;color:#547bd4}.badge.pending{background:#fff2df;color:#c58724}.badge.ready{background:#e7f8f1;color:#16a078}.badge.done{background:#ebedf2;color:#728198}.badge.declined{background:#ffecf0;color:#d75a6a}.badge.draft{background:#f0edfa;color:#8c77bf}.badge.out{background:#ffebed;color:#d95560}.badge.stock{background:#e8f8f3;color:#169e7e}.badge.low{background:#fff3e1;color:#c78b2d}.stock-list{padding:4px 20px 13px}.stock-row{display:flex;align-items:center;gap:12px;padding:12px 0;border-top:1px solid #f0f2f6}.stock-row:first-child{border-top:0}.stock-image{width:41px;height:41px;border-radius:11px;background:#eef2fa;display:grid;place-items:center;font-size:20px;flex-shrink:0}.stock-name{font-size:12px;font-weight:800;color:#26374a}.stock-detail{font-size:11px;color:#99a3af;margin-top:4px}.stock-num{margin-left:auto;text-align:right;font-weight:850;font-size:13px;color:#d48c2b}.stock-num span{font-size:10px;color:#a5b0bd;font-weight:500;display:block;margin-top:3px}.quick-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.quick{border-radius:13px;border:1px solid #e5edf4;background:#fff;padding:17px 19px;display:flex;justify-content:space-between;align-items:center;text-align:left;color:var(--text)}.quick:hover{border-color:#8cddd3;background:#fbfffe}.quick strong{font-size:12px;display:block}.quick small{font-size:11px;color:var(--sub);display:block;margin-top:5px}.quick .qicon{width:36px;height:36px;border-radius:10px;background:#e8f8f5;color:#11aa98;display:grid;place-items:center}.toolbar{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;align-items:center;margin-bottom:18px}.toolbar-left{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.search{display:flex;align-items:center;gap:9px;background:#fff;border:1px solid #e3e9f1;border-radius:10px;padding:0 13px;min-height:42px;min-width:280px}.search svg{width:16px;height:16px;color:#8b9bad}.search input{background:transparent;outline:none;border:0;width:100%;min-width:0;font-size:12px;color:#213348}.search input::placeholder{color:#a9b4c1}.field-select,.field-input,.field-area{border:1px solid #e2e9f1;border-radius:9px;padding:11px 12px;background:#fff;min-height:42px;color:#37465a;outline:none;width:100%;font-size:12px}.field-select:focus,.field-input:focus,.field-area:focus{border-color:#1fbdab;box-shadow:0 0 0 3px #10bca517}.field-area{min-height:78px;resize:vertical}.field-label{display:block;color:#526277;font-size:11px;font-weight:800;margin-bottom:7px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.field-full{grid-column:1/-1}.filter-tabs{display:flex;align-items:center;gap:6px;background:#eef2f6;padding:4px;border-radius:10px}.filter-tab{padding:8px 12px;border:0;background:transparent;font-size:11px;color:#748397;border-radius:8px;font-weight:750}.filter-tab.selected{background:#fff;color:#1b3447;box-shadow:0 2px 6px #14223c0c}.page-summary{margin-bottom:18px;color:#78879b;font-size:12px}.pos-layout{display:grid;grid-template-columns:minmax(0,1fr) 343px;gap:20px;align-items:start}.products-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.product-card{border:1px solid #e7edf4;background:#fff;border-radius:14px;text-align:left;padding:15px;min-height:155px;transition:border .15s,transform .15s,box-shadow .15s}.product-card:hover:not(:disabled){border-color:#69cfc3;transform:translateY(-2px);box-shadow:0 7px 20px #14332b0e}.product-card:disabled{opacity:.6}.product-top{display:flex;align-items:flex-start;justify-content:space-between;gap:7px}.product-img{width:48px;height:48px;display:grid;place-items:center;font-size:25px;background:#f0f5fb;border-radius:12px}.product-cat{font-size:9px;text-transform:uppercase;font-weight:850;letter-spacing:.55px;color:#97a6b7}.product-name{font-weight:850;color:#25354c;font-size:12px;line-height:1.4;min-height:33px;margin:16px 0 10px}.product-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px}.product-price{font-weight:850;color:#162b3b;font-size:14px}.product-stock{color:#8594a6;font-size:10px}.cart-panel{position:sticky;top:18px;overflow:hidden}.cart-header{padding:21px;border-bottom:1px solid #edf1f5;display:flex;justify-content:space-between;align-items:center}.cart-header h3{margin:0;font-size:16px}.cart-header small{color:#96a3b0;font-size:11px}.cart-body{padding:19px 21px}.cart-items{max-height:290px;overflow:auto}.cart-item{display:flex;gap:10px;padding:12px 0;border-bottom:1px solid #edf2f6}.cart-item .stock-image{width:35px;height:35px;font-size:17px}.cart-info{min-width:0;flex:1}.cart-name{font-size:11px;font-weight:800;color:#243349;line-height:1.45}.cart-money{font-size:11px;color:#708198;margin-top:5px}.qty{display:inline-flex;border:1px solid #e5e9ef;align-items:center;border-radius:7px;margin-top:7px;overflow:hidden}.qty button{background:#f8fafc;border:0;height:25px;width:26px;color:#52627a;font-weight:800}.qty span{min-width:25px;text-align:center;font-size:11px;font-weight:800}.cart-line-total{font-size:11px;font-weight:850;color:#2a3b4f;white-space:nowrap}.cart-totals{padding-top:16px;border-top:1px dashed #dce5ed;margin-top:16px}.total-line{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:#6e7e90;margin-bottom:11px}.total-line strong{color:#344459}.total-grand{margin-top:15px;padding-top:15px;border-top:1px solid #edf1f5;display:flex;justify-content:space-between;align-items:center;color:#1a2c41;font-weight:800}.total-grand strong{font-size:22px;letter-spacing:-.7px}.cart-footer{padding:16px 21px;background:#f9fbfd;border-top:1px solid #edf1f5}.cart-footer .btn{width:100%;padding:13px}.empty{padding:45px 20px;text-align:center;color:#a0acbb}.empty svg{width:34px;height:34px;color:#a3b7bd}.empty strong{color:#4d5f73;display:block;margin-top:11px;font-size:12px}.empty p{font-size:11px;line-height:1.6;max-width:260px;margin:7px auto}.small-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin-bottom:19px}.mini-stat{padding:18px 20px}.mini-stat .stat-label{font-size:11px}.mini-stat .stat-value{font-size:21px;margin:9px 0 0}.action-row{display:flex;gap:7px;align-items:center}.action-row select{max-width:145px;padding:8px 6px;min-height:34px;font-size:10px}.table-link{border:0;background:none;color:#0f9d91;font-weight:850;font-size:11px;padding:5px}.table-link:hover{text-decoration:underline}.inventory-name{display:flex;align-items:center;gap:10px}.inventory-name .stock-image{width:35px;height:35px;font-size:17px}.muted{color:#95a2b3}.customer-avatar{width:35px;height:35px;border-radius:10px;background:#edf1fe;color:#5c73c0;font-weight:850;display:grid;place-items:center}.row-flex{display:flex;align-items:center;gap:10px}.chart-panel{padding:23px}.bar-chart{height:218px;display:flex;align-items:end;justify-content:space-around;gap:14px;padding:24px 7px 0;border-bottom:1px solid #e7edf4;position:relative}.bar-chart:before{content:"";position:absolute;inset:24px 0 0;pointer-events:none;background:repeating-linear-gradient(to top,transparent 0,transparent calc(25% - 1px),#edf1f6 calc(25% - 1px),#edf1f6 25%);opacity:.65}.bar-col{height:100%;display:flex;align-items:center;justify-content:end;flex-direction:column;flex:1;gap:9px;position:relative;z-index:1}.bar{background:linear-gradient(0deg,#0cae9b,#6bded0);min-height:4px;width:min(100%,38px);border-radius:6px 6px 0 0;transition:height .3s}.bar-col span{position:absolute;top:100%;padding-top:10px;font-size:10px;color:#9ba8b8}.report-grid{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(280px,1fr);gap:19px;margin-bottom:20px}.top-products{padding:12px 20px 19px}.top-product{display:flex;align-items:center;padding:12px 0;border-bottom:1px solid #f1f3f6;gap:12px}.top-product:last-child{border-bottom:0}.rank{color:#97a6ba;font-weight:800;width:15px}.top-product .details{flex:1;min-width:0}.top-product .details strong{font-size:12px}.top-product .details small{display:block;color:#9aa8b8;margin-top:4px;font-size:10px}.top-product .amount{font-size:12px;font-weight:850}.note{padding:12px 15px;border-radius:10px;background:#eaf6fa;color:#54748a;font-size:11px;line-height:1.6;margin-bottom:17px;border:1px solid #dbeff6}.modal-backdrop{position:fixed;inset:0;background:#0714229c;z-index:40;display:flex;justify-content:center;align-items:center;padding:20px;backdrop-filter:blur(3px)}.modal{width:100%;max-width:640px;max-height:min(90vh,900px);display:flex;flex-direction:column;background:#fff;border-radius:18px;box-shadow:0 35px 85px #05152355;overflow:hidden}.modal.wide{max-width:790px}.modal-head{padding:20px 25px;border-bottom:1px solid #ebf0f5;display:flex;justify-content:space-between;gap:12px;align-items:center}.modal-title{font-size:18px;margin:0;letter-spacing:-.4px}.modal-sub{font-size:11px;color:#8a98aa;margin-top:5px}.modal-body{overflow:auto;padding:24px 25px}.modal-footer{padding:16px 25px;border-top:1px solid #edf1f5;display:flex;justify-content:flex-end;gap:10px;background:#fbfcfe}.quote-line{display:grid;grid-template-columns:minmax(0,1fr) 75px 115px 32px;gap:8px;margin-bottom:9px;align-items:center}.quote-line .field-input{min-height:38px;padding:8px 9px}.quote-total-box{display:flex;justify-content:space-between;padding:14px 16px;background:#eef9f6;border-radius:9px;margin-top:15px;font-size:13px;font-weight:800;color:#0b9484}.detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:22px}.detail-label{font-size:10px;color:#93a1b2;text-transform:uppercase;letter-spacing:.75px;font-weight:850;margin-bottom:6px}.detail-value{font-size:13px;color:#25384c;font-weight:720;line-height:1.5;word-break:break-word}.detail-note{background:#f7f9fc;padding:15px;border-radius:10px;font-size:12px;color:#56657a;line-height:1.7;white-space:pre-wrap}.modal-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:22px}.receipt-table{border-collapse:collapse;width:100%;margin-top:12px}.receipt-table th,.receipt-table td{text-align:left;padding:11px 8px;border-bottom:1px solid #edf1f4;font-size:12px}.receipt-table th{color:#91a0b1;font-size:10px;text-transform:uppercase}.receipt-table td:last-child,.receipt-table th:last-child{text-align:right}.receipt-total{text-align:right;font-weight:850;font-size:20px;padding:20px 7px}.toast{position:fixed;right:24px;bottom:23px;z-index:60;background:#132b39;color:white;padding:13px 17px;border-radius:11px;box-shadow:0 12px 38px #12273848;display:flex;align-items:center;gap:10px;font-size:12px;font-weight:700;animation:slideup .25s}.toast svg{color:#70e3d0}@keyframes slideup{from{transform:translateY(12px);opacity:0}to{transform:translateY(0);opacity:1}}.hamburger{display:none}.mobile-overlay{display:none}.pill-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.info-pair{display:flex;justify-content:space-between;gap:10px;font-size:12px;margin-top:10px;color:#6a798b}.divider{border:0;border-top:1px solid #edf1f5;margin:18px 0}.mobile-only{display:none}
@media(max-width:1220px){.content{padding:26px 25px 50px}.topbar{padding:19px 25px}.products-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-grid{grid-template-columns:minmax(0,1fr) 310px}.stat{padding:17px 15px}.stat-value{font-size:22px}}
@media(max-width:1050px){.sidebar{width:222px}.main{margin-left:222px}.dashboard-grid,.report-grid{grid-template-columns:1fr}.stats{grid-template-columns:repeat(2,1fr)}.pos-layout{grid-template-columns:minmax(0,1fr) 310px}.hero-art{margin-right:45px}}
@media(max-width:800px){.sidebar{transform:translateX(-100%);transition:transform .2s;width:260px}.sidebar.open{transform:translateX(0)}.mobile-overlay.open{display:block;position:fixed;inset:0;z-index:19;background:#05152375}.main{margin-left:0}.hamburger{display:inline-flex}.topbar{padding:15px 18px;min-height:75px}.top-title{font-size:19px}.top-actions .date-pill{display:none}.content{padding:20px 16px 45px}.pos-layout{grid-template-columns:1fr}.cart-panel{position:static}.products-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.hero{min-height:155px}}
@media(max-width:600px){.hero-art{display:none}.hero-copy{padding:25px 22px}.hero h2{font-size:21px}.stats{gap:10px}.stat{padding:14px}.stat-icon{width:32px;height:32px}.stat-value{font-size:19px;margin-top:12px}.stat-label{font-size:10px}.quick-actions{grid-template-columns:1fr}.products-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.product-card{padding:11px;min-height:145px}.product-name{font-size:11px}.product-price{font-size:12px}.product-img{width:41px;height:41px;font-size:21px}.small-stats{grid-template-columns:1fr 1fr}.search{min-width:0;width:100%}.toolbar-left{width:100%}.filter-tabs{max-width:100%;overflow:auto}.page-summary{font-size:11px}.form-grid{grid-template-columns:1fr}.detail-grid{grid-template-columns:1fr 1fr}.quote-line{grid-template-columns:minmax(0,1fr) 48px 80px 30px;gap:4px}.quote-line .field-input{padding:7px 5px;font-size:11px}.modal-backdrop{padding:10px}.modal-body{padding:18px}.modal-head,.modal-footer{padding:17px 18px}.date-pill{display:none}.top-actions>.btn{padding:10px;font-size:0;gap:0}.top-actions>.btn svg{width:19px;height:19px}.small-stats .mini-stat:last-child{grid-column:1/-1}}
.requisition-line{display:grid;grid-template-columns:minmax(0,1fr) 100px 36px;gap:10px;align-items:end;margin-bottom:14px}.requisition-line .btn{margin-bottom:4px}@media(max-width:550px){.requisition-line{grid-template-columns:minmax(0,1fr) 70px 32px;gap:6px}}
.requisition-entry{display:grid;grid-template-columns:minmax(0,1fr) 90px auto;gap:12px;align-items:end;margin-bottom:12px}@media(max-width:550px){.requisition-entry{grid-template-columns:minmax(0,1fr) 80px}.requisition-entry .btn{grid-column:1/-1}}

.bill-preview{width:340px;max-width:100%;margin:18px 0 0 auto;padding:12px 14px;border:1px solid var(--line);border-radius:10px;background:#f9fbfd}.bill-preview h3{margin:0 0 7px;font-size:13px}.bill-preview-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:6px 0;border-bottom:1px solid var(--line);color:var(--sub);font-size:11px}.bill-preview-row label{font-weight:700;color:var(--text)}.bill-preview-row strong{color:var(--text)}.bill-preview-amount{display:flex;gap:6px;align-items:center}.bill-preview-amount input{width:108px;min-height:32px;padding:6px 8px;text-align:right;background:#fff;font-size:11px}.bill-preview .quote-total-box{padding:10px;margin-top:10px;font-size:12px}.bill-preview .field-label{font-size:10px;margin-bottom:5px}.bill-preview .field-area{min-height:48px;padding:8px;font-size:11px}.bill-preview #bill-preview-error:empty{visibility:hidden}@media(max-width:550px){.bill-preview{width:100%;padding:12px}.bill-preview-amount input{width:108px}}


/* Keep the dialog and table geometry stable while prices/totals change. */
.modal:has([data-form="final-bill"]){height:min(90vh,900px)}
.modal:has([data-form="final-bill"]) .modal-head,.modal:has([data-form="final-bill"]) .modal-footer{flex-shrink:0}
.modal:has([data-form="final-bill"]) .modal-body{flex:1;min-height:0;overflow-y:auto;scrollbar-gutter:stable;overflow-anchor:none}
.bill-parts-table{table-layout:fixed;min-width:500px}
.bill-parts-table td:first-child{overflow-wrap:anywhere}
.bill-parts-table input{min-width:0!important;width:100%;font-variant-numeric:tabular-nums}
.bill-parts-table td:last-child{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-variant-numeric:tabular-nums}
.bill-preview #bill-preview-error{height:42px;overflow:auto;font-size:11px;line-height:14px}
.bill-preview strong,.bill-preview #bill-preview-total{font-variant-numeric:tabular-nums;white-space:nowrap}
.bill-preview .quote-total-box{gap:8px}
.bill-preview #bill-preview-total{min-width:0;overflow:hidden;text-overflow:ellipsis}

/* Direct numeric entry throughout the POS, without browser spinner buttons. */
input[type="number"]{-moz-appearance:textfield;appearance:textfield}
input[type="number"]::-webkit-inner-spin-button,input[type="number"]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}

.inventory-price-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;max-width:430px;margin-top:15px}.inventory-price-fields input:disabled{background:#f3f5f8}@media(max-width:550px){.inventory-price-fields{max-width:none}}

.inventory-entry-row{display:grid;grid-template-columns:minmax(140px,1fr) 64px 115px 115px auto;gap:10px;align-items:end;margin-bottom:10px}.inventory-entry-row>div{min-width:0}.inventory-entry-row .field-select{min-width:0;text-overflow:ellipsis}.inventory-entry-row .field-input{padding:11px 9px}.inventory-entry-row .btn{min-height:42px;padding:11px 13px}.inventory-entry-row input:disabled{background:#f3f5f8}@media(max-width:650px){.inventory-entry-row{grid-template-columns:repeat(2,minmax(0,1fr))}.inventory-entry-row>div:first-child{grid-column:1/-1}.inventory-entry-row .btn{width:100%}}

.modal:has(.product-batch-layout){max-width:1100px}.product-batch-layout{display:grid;grid-template-columns:330px minmax(0,1fr);gap:24px;align-items:start}.product-batch-entry{padding-right:22px;border-right:1px solid var(--line)}.product-batch-entry h3,.product-batch-pending h3{font-size:15px;margin:0 0 17px}.product-batch-entry .form-grid{gap:12px}.product-batch-entry .form-grid>div:first-child{grid-column:1/-1}.product-batch-entry .field-input,.product-batch-entry .field-select{min-width:0;padding:10px;font-size:12px}.product-batch-pending{min-width:0}.product-batch-pending .receipt-table{min-width:460px;margin-top:0}.product-batch-pending .section-head{margin-bottom:10px}.product-batch-pending .section-head h3{margin:0}.product-batch-pending .receipt-table td:first-child{overflow-wrap:anywhere}@media(max-width:800px){.product-batch-layout{grid-template-columns:1fr}.product-batch-entry{padding:0 0 18px;border-right:0;border-bottom:1px solid var(--line)}}

.categories-layout{display:grid;grid-template-columns:minmax(300px,.9fr) minmax(0,1.1fr);gap:20px;align-items:start}@media(max-width:950px){.categories-layout{grid-template-columns:1fr}}.sidebar{overflow-y:auto}.sidebar-bottom{flex-shrink:0}.sidebar .nav-item{flex-shrink:0}

.manual-bill-section{margin-top:20px;border-top:1px solid var(--line);padding-top:15px}.manual-bill-section h3{font-size:13px;margin:0 0 12px}.manual-bill-row{display:grid;grid-template-columns:125px minmax(120px,1fr) 48px 90px 90px auto;gap:8px;align-items:end}.manual-bill-row>div{min-width:0}.manual-bill-row .field-input,.manual-bill-row .field-select{padding:9px 7px;min-height:38px;font-size:11px}.manual-bill-row .field-label{font-size:10px}.manual-bill-row .btn{padding:10px;min-height:38px}@media(max-width:700px){.manual-bill-row{grid-template-columns:repeat(2,minmax(0,1fr))}.manual-bill-row .btn{width:100%}}

.bill-preview .bill-payment-select{width:155px;min-width:0;min-height:34px;padding:7px 9px;font-size:11px}

.app{display:block}.main{margin:0;width:100%}.content{max-width:none;margin:0;padding:20px clamp(14px,3vw,38px) 48px}
.workspace-header{display:flex;align-items:center;gap:26px;padding:12px clamp(14px,3vw,38px);background:var(--navy);color:#fff}.workspace-brand{font-size:21px;font-weight:850;letter-spacing:-.7px}.workspace-brand span{color:#49dfce}.primary-nav{display:flex;gap:8px}.primary-nav button{display:flex;align-items:center;justify-content:center;gap:7px;padding:10px 16px;border:1px solid transparent;border-radius:9px;background:transparent;color:#c5cfdb;font-weight:750}.primary-nav button:hover,.primary-nav button.active{background:#193f43;color:#6be4d5}.primary-nav button svg{width:16px;height:16px}
.workspace-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;padding:18px clamp(14px,3vw,38px);border-bottom:1px solid var(--line);background:#fff}.workspace-tools{display:flex;gap:5px;flex-wrap:wrap}.workspace-tools button{border:0;background:transparent;color:var(--sub);padding:8px 10px;border-radius:7px;font-size:12px;font-weight:700}.workspace-tools button:hover,.workspace-tools button[aria-current=page]{background:#e8f8f5;color:#087f73}
@media(max-width:520px){.workspace-header{gap:10px;flex-wrap:wrap}.primary-nav{flex:1 0 100%}.primary-nav button{flex:1;padding:9px 5px}.workspace-heading{padding-block:13px}.workspace-tools{gap:3px}.workspace-tools button{padding:7px 8px}}
