:root{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#21312c;background:#f5f7f7;font-size:14px;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,select{touch-action:manipulation}a{color:inherit;text-decoration:none}button{cursor:pointer;border:1px solid #d9e2df;background:white;border-radius:7px;padding:10px 14px;font-weight:600;color:#34463f}button:hover{background:#eef5f1}button:disabled{opacity:.5;cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #84c7af;outline-offset:3px}.shell{display:grid;grid-template-columns:242px 1fr;min-height:100vh}aside{background:#102b23;color:#c0d1c9;padding:32px 22px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.brand{font-size:23px;font-weight:750;display:flex;align-items:center;gap:10px;color:white;letter-spacing:-.6px}.brand-icon{display:grid;place-items:center;width:32px;height:34px;background:#b6edce;color:#17382b;border-radius:8px}.brand-dot{color:#b9f0d0;font-size:9px;align-self:start}.workspace{margin:38px 0 26px;border:1px solid #355146;border-radius:8px;padding:12px 10px;display:flex;gap:11px;align-items:center;font-weight:700;color:white;font-size:12px}.workspace span{font-weight:600}.workspace small{display:block;font-size:9px;font-weight:400;margin-top:6px;color:#a7bbb1}nav{display:grid;gap:7px}nav a{display:flex;gap:13px;padding:12px;border-radius:7px;font-size:16px}nav a span{font-size:13px;font-weight:500}nav a.active{background:#2d5141;color:#e4fff0}nav a:hover{background:#294438}.aside-bottom{margin-top:auto;padding-top:40px}.aside-bottom p{line-height:1.7;font-size:13px}.aside-bottom small{color:#8fab9c;font-size:11px}.build-link{display:block;border:1px solid #426755;border-radius:7px;padding:11px;font-size:12px;color:white}.hub{display:block;font-size:11px;margin-top:20px;color:#9fb7a9}main{min-width:0}header{height:80px;background:white;border-bottom:1px solid #e6eae8;padding:0 36px;display:flex;justify-content:space-between;align-items:center;gap:15px}.breadcrumb{font-size:12px;color:#84918a}.breadcrumb span{margin:0 14px;color:#b9c5be}.breadcrumb b{color:#3b4b43;font-weight:500}.header-actions{display:flex;align-items:center;gap:12px}.demo{font-size:9px;letter-spacing:1px;color:#377354;background:#e9f5ed;border:1px solid #cfe5d6;border-radius:4px;padding:6px 8px;font-weight:700}select{border:1px solid #dce4df;border-radius:6px;padding:9px;background:white;color:#3d4d45}.avatar{background:#e7efe9;color:#36523f;border-radius:50%;width:33px;height:33px;display:grid;place-items:center;font-size:10px;font-weight:700}.quiet{background:transparent;font-size:12px;padding:9px 12px}.primary{background:#19583f;color:white;border-color:#19583f}.primary:hover{background:#123f2f}#content{padding:36px;max-width:1500px;margin:auto}.eyebrow{font-size:10px;letter-spacing:1.2px;font-weight:700;color:#7b9386}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:27px}h1{font-size:28px;letter-spacing:-.8px;margin:7px 0 9px;font-weight:650}.subtitle{color:#819088;margin:0;font-size:12px;line-height:1.6}.heading-actions{display:flex;gap:8px}.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-bottom:26px}.card,.panel{background:white;border:1px solid #e3e9e5;border-radius:10px}.card{padding:22px}.metric-label{font-size:11px;color:#73857b;display:flex;justify-content:space-between}.metric-value{font-size:28px;font-weight:650;margin:14px 0 10px;letter-spacing:-.6px}.metric-note{font-size:10px;color:#86948b}.green{color:#2e7854}.amber{color:#a87823}.two-col{display:grid;grid-template-columns:1.4fr 1fr;gap:22px;margin-bottom:24px}.panel-title{padding:20px 22px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #edf0ee}.panel-title h2{font-size:14px;margin:0;font-weight:650}.panel-title a{font-size:11px;color:#37775b}table{border-collapse:collapse;width:100%;text-align:left;white-space:nowrap}th{font-size:9px;color:#84918a;text-transform:uppercase;letter-spacing:.7px;background:#fafcfb;padding:13px 18px;font-weight:600}td{padding:16px 18px;border-bottom:1px solid #edf1ee;font-size:12px;color:#5a6d60}tr:last-child td{border-bottom:0}.table-scroll{overflow:auto}.product-name{color:#253c2e;font-weight:600;display:block}.product-sub{display:block;font-size:10px;color:#95a199;margin-top:6px}.badge{font-size:10px;padding:5px 9px;border-radius:5px;text-transform:capitalize;display:inline-block;background:#edf1f0;color:#64736b}.badge.confirmed,.badge.ordered{background:#e9effb;color:#5272a5}.badge.fulfilled,.badge.received{background:#e8f4eb;color:#3c7c51}.badge.low,.badge.draft{background:#fff5e1;color:#a67d2b}.badge.cancelled{background:#f9e9e8;color:#a26460}.toolbar{display:flex;justify-content:space-between;gap:12px;padding:18px 20px;border-bottom:1px solid #edf1ee;flex-wrap:wrap}.search{padding:10px 13px;border:1px solid #dce4df;border-radius:7px;width:270px;background:#fcfdfc}.filters{display:flex;gap:9px}.table-action{font-size:10px;padding:6px 9px;margin:2px}.chart{padding:20px 24px}.bar-row{display:grid;grid-template-columns:90px 1fr 55px;align-items:center;gap:12px;margin:20px 0;font-size:11px}.track{height:12px;border-radius:3px;background:#eef3ef;overflow:hidden}.fill{height:100%;background:#609b7c;border-radius:3px}.supplier-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.supplier{padding:25px}.supplier h2{font-size:16px;margin:20px 0 8px}.supplier p{color:#85968a;font-size:12px}.supplier-icon{width:42px;height:42px;border-radius:9px;background:#e9f2eb;display:grid;place-items:center;color:#487859;font-size:18px}.supplier-meta{border-top:1px solid #e9eee9;padding-top:18px;margin-top:22px;display:flex;justify-content:space-between;font-size:11px}.empty{padding:50px;text-align:center;color:#809187;font-size:13px}.loading{padding:70px;text-align:center;color:#6b8274}footer{padding:20px 36px 30px;color:#96a198;font-size:10px;display:flex;justify-content:space-between;gap:15px}footer a{color:#4b775e}#notice:not(:empty){padding:12px 36px;background:#e9f3ec;color:#326745;font-size:12px}#notice.error{background:#ffede9;color:#9b4b3a}dialog{border:1px solid #dfe8e1;border-radius:14px;width:min(620px,95vw);padding:0;box-shadow:0 20px 100px #102b2330}dialog::backdrop{background:#102b2370}dialog form{padding:28px}.modal-head{display:flex;justify-content:space-between;margin-bottom:24px}.modal-head h2{font-size:23px;margin:7px 0 0}label{display:block;font-size:11px;font-weight:600;margin-bottom:8px}input{border:1px solid #d6e1d9;border-radius:6px;padding:11px;font-size:12px;width:100%}h3{font-size:12px;margin:25px 0 12px}.line-row{display:grid;grid-template-columns:1fr 75px 34px;gap:8px;margin-bottom:9px}.line-row select{min-width:0;width:100%;font-size:11px}.line-row button{padding:5px}.order-total{display:flex;justify-content:space-between;padding:22px 0;margin-top:15px;border-top:1px solid #e3ebe5;color:#73857a}.order-total strong{color:#244333;font-size:20px}.modal-foot{display:flex;justify-content:flex-end;gap:10px}.sr-only{position:absolute;clip:rect(0,0,0,0);width:1px;height:1px;overflow:hidden}#form-error{color:#b25745;font-size:12px}.detail-lines{padding:20px}.detail-lines p{font-size:13px;display:flex;justify-content:space-between}.detail-actions{padding:20px;border-top:1px solid #e3ebe5;display:flex;gap:8px}.report-note{padding:20px;font-size:12px;color:#829488;line-height:1.7}@media(max-width:1050px){.shell{grid-template-columns:200px 1fr}aside{padding:25px 16px}header{padding:0 22px}#content{padding:26px 22px}.cards{grid-template-columns:repeat(2,1fr)}.two-col{grid-template-columns:1fr}.supplier-grid{grid-template-columns:1fr}.header-actions{gap:6px}#reset{font-size:10px;padding:8px}.avatar{display:none}}@media(max-width:650px){.shell{display:block}aside{position:static;height:auto;padding:18px}.brand{font-size:21px}.workspace,.aside-bottom{display:none}nav{display:flex;overflow:auto;margin-top:17px;gap:4px}nav a{white-space:nowrap;padding:9px;font-size:13px}nav a span{font-size:11px}header{height:auto;min-height:70px;padding:14px 16px;flex-wrap:wrap}.breadcrumb{display:none}.header-actions{width:100%;justify-content:space-between}#content{padding:24px 16px}.page-heading{align-items:start;flex-direction:column;gap:15px}h1{font-size:25px}.cards{gap:10px}.card{padding:16px}.metric-value{font-size:22px}.metric-label{font-size:10px}.two-col{gap:15px}.toolbar{padding:15px}.search{width:100%}.filters{width:100%}.filters select{flex:1;min-width:0}footer{padding:15px;flex-direction:column}.panel-title{padding:17px}.supplier-grid{gap:12px}.bar-row{grid-template-columns:75px 1fr 40px}.line-row{grid-template-columns:1fr 58px 28px}dialog form{padding:20px}}

/* Let nested grid children shrink so tables scroll inside their own panels. */
.cards,.two-col,.supplier-grid,.panel,.card{min-width:0}
.two-col{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr)}
.table-scroll{max-width:100%;min-width:0}
@media(max-width:1050px){.two-col{grid-template-columns:minmax(0,1fr)}}
@media(max-width:650px){.cards{grid-template-columns:repeat(2,minmax(0,1fr))}nav{min-width:0;max-width:100%}.header-actions{min-width:0;flex-wrap:wrap}.metric-value{overflow-wrap:anywhere}.metric-label{gap:6px}.panel-title{gap:12px}.panel-title h2{min-width:0}.panel-title a{flex-shrink:0}}
