/* Dupak UI • Local, dependency-free styles • Reference palette preserved */
:root{--navy:#0b2945;--teal:#07535a;--teal-dark:#063f48;--green:#07835d;--green-dark:#066c4d;--blue:#1677eb;--sky:#e8f5fd;--orange:#f58a27;--purple:#7154c4;--red:#df4d59;--bg:#f3f8fc;--line:#dbe8f1;--muted:#6c8296;--text:#19374f;--white:#fff;--shadow:0 5px 20px rgba(15,53,80,.035);--radius:12px;--header:72px;--sidebar:234px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font:14px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;-webkit-font-smoothing:antialiased}a{color:var(--blue);text-decoration:none}a:hover{text-decoration:none}button,input,select,textarea{font:inherit}button,a,input,select,textarea{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}button,input,select,textarea{outline:none}button:focus-visible,a:focus-visible{outline:3px solid #66b8ff;outline-offset:3px}input:focus,select:focus,textarea:focus{border-color:#65aaec;box-shadow:0 0 0 3px #1677eb12}input,select,textarea{border:1px solid #cfdfea;border-radius:7px;background:#fff;color:var(--text);padding:10px 12px;min-height:42px;width:100%}input[type=checkbox],input[type=radio]{width:16px;min-height:16px;accent-color:var(--green);vertical-align:middle;margin:0 7px 0 0;flex-shrink:0}input[type=file]{padding:8px;font-size:12px}textarea{resize:vertical;min-height:85px}select{padding-right:28px}label{display:block;color:var(--navy);font-size:12px;font-weight:600;margin-bottom:7px}label .req{color:var(--red)}h1,h2,h3,h4,p{margin:0}h1{font-size:28px;letter-spacing:-.75px;line-height:1.25;color:var(--navy);font-weight:700}h2{font-size:16px;color:var(--navy);letter-spacing:-.2px}h3{font-size:14px;color:var(--navy)}small,.small{font-size:12px}.muted{color:var(--muted)}.text-green{color:var(--green)}.text-red{color:var(--red)}.text-blue{color:var(--blue)}.text-orange{color:#c57819}.text-right{text-align:right}.text-center{text-align:center}.mono{font-variant-numeric:tabular-nums;letter-spacing:.1px}.nowrap{white-space:nowrap}.strong{font-weight:650}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hide{display:none!important}.icon{width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0;vertical-align:middle}.icon.sm{width:15px;height:15px}.icon.lg{width:24px;height:24px}.inline{display:inline-flex;align-items:center;gap:7px}.flex{display:flex;align-items:center;gap:12px}.between{display:flex;align-items:center;justify-content:space-between;gap:12px}.wrap{flex-wrap:wrap}.grow{flex:1;min-width:0}.gap-6{gap:6px}.stack{display:grid;gap:18px}.mt-6{margin-top:6px}.mt-12{margin-top:12px}.mt-18{margin-top:18px}.mt-24{margin-top:24px}.mb-18{margin-bottom:18px}.divider{height:1px;background:var(--line);margin:20px 0}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip-link{position:fixed;left:20px;top:-60px;z-index:1000;background:white;padding:10px 18px;border-radius:5px}.skip-link:focus{top:12px}
/* Shell */
.topbar{height:var(--header);position:fixed;inset:0 0 auto;z-index:60;background:linear-gradient(105deg,var(--teal-dark),var(--teal) 65%,#09616a);color:white;display:flex;align-items:center;padding:0 26px 0 27px;box-shadow:0 2px 7px #073f4814}.brand{width:calc(var(--sidebar) - 27px);display:flex;align-items:center;flex-shrink:0}.brand img{width:121px;height:42px;object-fit:contain}.brand-separator{height:25px;width:1px;background:#ffffff21;margin-right:22px}.topbar-title{font-size:15px;font-weight:550;letter-spacing:.1px}.topbar-sub{color:#c0dfe0;font-size:10px;text-transform:uppercase;letter-spacing:1.5px;margin-top:2px}.topbar-right{display:flex;align-items:center;gap:20px;margin-left:auto}.demo-badge{font-size:10px;font-weight:700;letter-spacing:.7px;color:#c9f5dd;background:#ffffff0e;border:1px solid #ffffff24;border-radius:5px;padding:5px 8px;white-space:nowrap}.role-switch{display:flex;align-items:center;gap:10px;position:relative}.role-switch .switch-meta{color:#acd2d5;font-size:10px;letter-spacing:.8px;text-transform:uppercase;margin-bottom:1px}.role-switch select{background:transparent;color:#fff;border:0;box-shadow:none;padding:0 22px 0 0;font-size:12px;font-weight:600;min-height:22px;max-width:215px}.role-switch select option,.role-switch select optgroup{background:#fff;color:var(--navy)}.avatar{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;flex-shrink:0;border-radius:50%;font-size:12px;font-weight:700;background:#e2f0fc;color:#1761a5;border:2px solid #fff}.topbar .avatar{background:#d9f2ee;color:#08695b;border:2px solid #ffffff44}.avatar.tiny{width:25px;height:25px;font-size:9px;border:0}.avatar.large{width:48px;height:48px;font-size:16px}.topbar-btn{border:1px solid #ffffff20;color:#d3ecee;background:#ffffff08;width:34px;height:34px;border-radius:8px;display:grid;place-items:center}.mobile-menu{display:none}.sidebar{position:fixed;top:var(--header);left:0;bottom:0;width:var(--sidebar);z-index:50;background:linear-gradient(165deg,#eaf6fc,#edf6fa);border-right:1px solid #d5e7f1;display:flex;flex-direction:column;padding:23px 14px 14px;overflow-y:auto}.workspace-label{font-size:10px;font-weight:700;letter-spacing:1.4px;color:#7995aa;padding:0 14px;margin:0 0 9px}.nav-group{margin-bottom:19px}.nav-link{display:flex;align-items:center;gap:11px;color:#416079;border-radius:7px;padding:10px 12px;min-height:40px;font-size:12px;font-weight:500;margin:2px 0;position:relative}.nav-link .icon{width:17px;height:17px;opacity:.85}.nav-link:hover{background:#dfeff9;color:var(--navy)}.nav-link.active{background:#cce8fc;color:#0963bb;font-weight:650}.nav-link.active:before{content:"";position:absolute;left:-14px;top:10px;bottom:10px;width:3px;border-radius:0 3px 3px 0;background:var(--blue)}.nav-count{margin-left:auto;font-size:10px;min-width:21px;padding:1px 5px;background:#fff8;border-radius:5px;text-align:center}.sidebar-foot{margin-top:auto;padding:18px 8px 4px}.scope-card{padding:13px 12px;border:1px solid #cde3ed;border-radius:9px;background:#ffffff70}.scope-card .icon{color:var(--green)}.scope-card p{font-size:11px;color:#7690a3;margin-top:5px;line-height:1.5}.sidebar-bottom{display:flex;align-items:center;justify-content:space-between;margin-top:14px;font-size:10px;color:#87a0af}.sidebar-bottom button{padding:0;border:0;background:none;color:#6f899e;font-size:10px}.main{margin-left:var(--sidebar);padding:103px 30px 28px;min-height:100vh}.content{max-width:1600px;margin:auto}.page-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:24px}.eyebrow{font-size:10px;color:#8499aa;letter-spacing:1.7px;text-transform:uppercase;font-weight:650;margin-bottom:10px;display:flex;align-items:center;gap:7px}.eyebrow a{color:#6e8a9e}.heading-sub{font-size:12px;color:var(--muted);margin-top:8px;line-height:1.65}.page-actions{display:flex;align-items:center;gap:9px;padding-top:25px;flex-shrink:0}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid #cddfe9;border-radius:7px;background:#fff;color:var(--navy);padding:9px 14px;font-size:12px;font-weight:600;min-height:37px;white-space:nowrap;transition:background .15s,box-shadow .15s}.btn:hover{background:#f2f8fc;border-color:#a9c8db}.btn .icon{width:16px;height:16px}.btn.primary{background:var(--green);border-color:var(--green);color:white;box-shadow:0 3px 6px #07835d10}.btn.primary:hover{background:var(--green-dark)}.btn.blue{background:var(--blue);border-color:var(--blue);color:white}.btn.danger{color:#c73d4a;background:#fff6f6;border-color:#f1c5cb}.btn.warning{color:#a66c19;background:#fff7e9;border-color:#f1d8a7}.btn.ghost{border-color:transparent;background:transparent;box-shadow:none;color:#658397}.btn.small{font-size:11px;min-height:30px;padding:5px 10px}.btn.icon-only{width:32px;height:32px;min-height:32px;padding:0}.btn.block{width:100%}.link-btn{background:none;border:0;color:var(--blue);font-size:12px;font-weight:600;padding:0;display:inline-flex;gap:5px;align-items:center}.link-btn .icon{width:14px;height:14px}.footer{display:flex;align-items:center;justify-content:space-between;font-size:10px;color:#89a0b1;border-top:1px solid #e0ebf3;margin-top:28px;padding:16px 0 0;gap:10px}.footer a{color:#6a869b}.dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--green);margin-right:5px}.scope-strip{display:flex;align-items:center;gap:10px;background:#eaf5ff;border:1px solid #cfe5f9;color:#35688e;border-radius:8px;padding:10px 14px;font-size:12px;margin-bottom:18px}.scope-strip .icon{color:var(--blue);width:17px;height:17px}.scope-strip.green{background:#ecf8f2;color:#297052;border-color:#d1eadf}
/* Panels / stats */
.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);min-width:0;overflow:hidden}.card-pad{padding:21px 23px}.card-head{padding:19px 22px 16px;display:flex;align-items:center;justify-content:space-between;gap:12px}.card-head p{font-size:11px;color:var(--muted);margin-top:3px}.card-body{padding:0 22px 21px}.card-footer{border-top:1px solid #e8f0f5;background:#fbfdff;padding:12px 22px;font-size:11px;color:#7e94a5}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:21px}.stat-card{padding:19px 20px 16px;position:relative;transition:transform .15s,border-color .15s;color:var(--text)}.stat-card:hover{transform:translateY(-2px);border-color:#9dcce6}.stat-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.stat-label{font-size:11px;color:#6e869b;font-weight:600}.stat-icon{height:32px;width:32px;border-radius:8px;display:grid;place-items:center;background:#edf5ff;color:#1677eb}.stat-icon .icon{width:18px;height:18px}.stat-icon.green{background:#e9f7f0;color:#07835d}.stat-icon.orange{background:#fff3e6;color:#e29431}.stat-icon.red{background:#fff0f1;color:#df4d59}.stat-number{font-size:32px;font-weight:700;letter-spacing:-.8px;line-height:1.25;color:var(--navy);margin:5px 0 9px;font-variant-numeric:tabular-nums}.stat-bottom{font-size:10px;color:#8196a6;display:flex;gap:6px;align-items:center}.stat-bottom strong{font-weight:600;color:#6f8b9f}.stat-bottom .icon{width:12px;height:12px;margin-left:auto}.analytics-grid{display:grid;grid-template-columns:1.03fr 1.13fr 1fr;gap:18px;margin-bottom:22px}.analytics-grid.two{grid-template-columns:1fr 1fr}.ring-wrap{display:flex;align-items:center;justify-content:center;gap:20px;padding:6px 0 0;min-height:190px}.donut{width:146px;height:146px;border-radius:50%;position:relative;flex-shrink:0}.donut-inner{position:absolute;inset:21px;background:white;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center}.donut-inner strong{font-size:30px;line-height:1.1;letter-spacing:-.6px;color:var(--navy)}.donut-inner span{font-size:10px;color:#7d92a3;margin-top:5px}.legend{display:grid;gap:10px}.legend-row{display:flex;align-items:center;gap:7px;font-size:10px;color:#688397;border:0;background:none;padding:0;text-align:left}.legend-row strong{margin-left:auto;padding-left:10px;color:#2b4d66;font-size:11px}.swatch{width:7px;height:7px;border-radius:50%;flex-shrink:0}.workload{display:grid;gap:16px;padding-top:10px}.workload-row{display:grid;grid-template-columns:95px 1fr 22px;gap:10px;align-items:center;font-size:10px;color:#5b788e;border:0;background:none;padding:0;width:100%;text-align:left}.bar-track{height:7px;background:#edf4f9;border-radius:5px;overflow:hidden;min-width:0}.bar-fill{height:100%;border-radius:5px;background:linear-gradient(90deg,#3c98ee,#76b9fb);transition:width .3s}.bar-fill.green{background:linear-gradient(90deg,#0a947b,#7bc9b6)}.workload-row strong{font-size:11px;text-align:right;color:var(--navy)}.mini-note{font-size:10px;color:#8a9eae;margin-top:17px;display:flex;align-items:flex-start;gap:5px}.mini-note .icon{width:13px;height:13px;margin-top:1px}.priority-list{display:grid;gap:0}.priority-item{display:flex;align-items:center;gap:10px;padding:11px 0;border-bottom:1px solid #edf2f7;color:var(--text)}.priority-item:last-child{border:0;padding-bottom:2px}.priority-icon{width:31px;height:34px;border-radius:7px;background:#f0f7fd;display:grid;place-items:center;color:#4e98da}.priority-icon .icon{width:16px;height:16px}.priority-item h4{font-size:11px;font-weight:650;color:var(--navy)}.priority-item p{font-size:10px;color:#8398a8;margin-top:2px}.priority-item>.badge{margin-left:auto;font-size:9px;padding:3px 6px}.section-title{display:flex;align-items:center;justify-content:space-between;margin:22px 0 12px}.section-title h2{font-size:15px}.badge{display:inline-flex;align-items:center;gap:4px;font-size:10px;font-weight:600;line-height:1.3;padding:4px 7px;border-radius:4px;white-space:nowrap;background:#edf3f8;color:#678397;border:1px solid transparent}.badge.blue{background:#e9f3ff;color:#156bcb;border-color:#d7e9fd}.badge.green{background:#e7f7ed;color:#178052;border-color:#cee9d9}.badge.orange{background:#fff4de;color:#b57b18;border-color:#f4e5c4}.badge.red{background:#fff0f0;color:#cb4351;border-color:#f4d9dd}.badge.purple{background:#f1edff;color:#7258b7;border-color:#e4ddf5}.badge.teal{background:#e7f6f7;color:#187b83;border-color:#cbe7e9}.badge.gray{background:#f0f4f7;color:#7790a1;border-color:#e2eaf0}.status-dot{width:5px;height:5px;border-radius:50%;background:currentColor;display:inline-block}
/* Data tables */
.table-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 22px 16px;flex-wrap:wrap}.filters{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.filters input,.filters select{font-size:11px;min-height:35px;padding:7px 10px;width:auto;max-width:230px;background:#fff}.filters input[type=date]{width:142px}.searchbox{position:relative;min-width:200px;flex:1;max-width:300px}.searchbox .icon{position:absolute;left:11px;top:10px;width:15px;height:15px;color:#8aa2b5}.searchbox input{padding:8px 10px 8px 34px;font-size:11px;min-height:35px;width:100%}.filter-count{font-size:11px;color:#8a9eae}.table-wrap{overflow-x:auto;width:100%;scrollbar-width:thin}table{width:100%;border-collapse:collapse;text-align:left;font-size:11px}thead{background:#f1f7fc;color:#6f879c;font-size:10px}th{font-weight:600;padding:11px 16px;white-space:nowrap;border-top:1px solid #e2edf5;border-bottom:1px solid #dfeaf3}td{padding:14px 16px;border-bottom:1px solid #ecf2f7;vertical-align:middle}th:first-child,td:first-child{padding-left:22px}th:last-child,td:last-child{padding-right:22px}tr:last-child td{border-bottom:0}tbody tr:hover{background:#fbfdff}td .cell-title{display:block;color:var(--navy);font-size:11px;font-weight:600;margin-bottom:3px}td .cell-sub{font-size:10px;color:#8b9dac;display:block}td .cell-link{color:#156dc2;font-weight:600}.product-icon{width:34px;height:34px;display:grid;place-items:center;border-radius:8px;background:#edf6fc;color:#4d91c4;flex-shrink:0}.product-icon .icon{width:19px;height:19px}.product-icon.green{background:#eaf6ef;color:#479f7f}.product-icon.orange{background:#fff2e5;color:#d49145}.product-icon.purple{background:#f1ecfb;color:#9275bf}.progress{height:4px;background:#e9f1f6;border-radius:8px;overflow:hidden;min-width:65px}.progress span{display:block;height:100%;background:#59a8ed;border-radius:8px}.progress.green span{background:#24a283}.progress-label{display:flex;align-items:center;justify-content:space-between;font-size:10px;color:#859bab;margin-bottom:5px;gap:12px}.table-pagination{display:flex;align-items:center;justify-content:space-between;padding:14px 22px;border-top:1px solid #e5eef5;color:#8a9eae;font-size:10px;gap:12px}.pager-buttons{display:flex;align-items:center;gap:6px}.pager-button{display:grid;place-items:center;width:27px;height:27px;background:white;border:1px solid #dce8f1;border-radius:5px;color:#7c94a7;font-size:10px}.pager-button.active{background:#e6f3ff;color:#1677eb;border-color:#c1e0fb}.empty{padding:50px 24px;text-align:center;color:#8498a8}.empty-icon{height:56px;width:56px;display:grid;place-items:center;border-radius:16px;background:#f0f7fc;color:#76a8cb;margin:0 auto 15px}.empty h3{font-size:15px;margin-bottom:7px}.empty p{font-size:12px;max-width:430px;margin:0 auto 18px}.tabs{display:flex;align-items:center;gap:24px;padding:0 22px;border-bottom:1px solid var(--line);overflow-x:auto}.tab{display:inline-flex;align-items:center;gap:7px;padding:15px 0 13px;border:0;border-bottom:2px solid transparent;background:none;color:#7d92a4;font-size:12px;font-weight:550;white-space:nowrap}.tab.active{color:#1677eb;border-bottom-color:#1677eb}.tab .count{font-size:9px;padding:1px 5px;background:#eff4f8;border-radius:4px}.tab.active .count{color:#1677eb;background:#e5f2ff}.segmented{display:inline-flex;border:1px solid #d6e5ef;border-radius:6px;background:#f7fafc;padding:3px;gap:2px}.segmented button{background:none;border:0;color:#7a91a3;font-size:10px;padding:5px 9px;border-radius:4px;display:inline-flex;align-items:center;gap:5px}.segmented button.active{background:white;color:#1b6bb1;box-shadow:0 1px 4px #234f6b14}.segmented .icon{width:14px;height:14px}
/* Forms / detail */
.two-col{display:grid;grid-template-columns:minmax(0,1.9fr) minmax(270px,1fr);gap:20px;align-items:start}.equal-col{display:grid;grid-template-columns:1fr 1fr;gap:20px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px 20px}.form-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.field.full{grid-column:1/-1}.field-help{font-size:10px;color:#8a9eae;margin-top:5px;line-height:1.5}.form-section{padding:22px}.form-section+.form-section{border-top:1px solid var(--line)}.form-section h2{margin-bottom:18px}.form-actions{padding:18px 22px;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fbfdff}.form-error{color:#c13c4b;background:#fff1f2;border:1px solid #f2cfd6;border-radius:6px;padding:10px 13px;font-size:12px;margin:12px 0;display:none}.form-error.visible{display:block}.order-item-editor{padding:16px;border:1px solid #dce9f3;border-radius:9px;background:#fcfeff;margin-bottom:13px}.item-editor-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:13px;font-size:11px;color:#5d7b91}.item-editor-grid{display:grid;grid-template-columns:2fr .8fr;gap:14px}.item-editor-grid .specs{grid-column:1/-1}.route-chips{display:flex;align-items:center;gap:5px;flex-wrap:wrap;margin-top:8px}.route-chip{font-size:9px;color:#6b879c;background:#edf5fc;padding:4px 7px;border-radius:4px}.route-chips .icon{width:11px;height:11px;color:#a2b5c3}.info-box{border:1px solid #d5e7f7;background:#eff7ff;color:#527999;padding:13px 15px;border-radius:8px;font-size:11px;line-height:1.65}.info-box.green{background:#eef8f3;color:#477e65;border-color:#d9ecdf}.info-box.orange{background:#fff8ed;color:#9b773e;border-color:#f0e1c8}.info-box .icon{width:16px;height:16px;float:left;margin:2px 8px 0 0}.summary-list{display:grid;gap:15px}.summary-row{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:12px}.summary-row span:first-child{color:#7f95a6}.summary-row strong{font-size:12px;color:#25455e}.upload-box{border:1px dashed #bcd5e6;background:#f8fcff;border-radius:8px;padding:20px;text-align:center}.upload-box .icon{width:28px;height:28px;color:#67a3cf;margin-bottom:7px}.upload-box label{margin:0;cursor:pointer;color:#2b7bc1}.upload-box p{font-size:10px;color:#8ca0af;margin:5px 0 12px}.summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;padding:22px}.summary-grid .label{font-size:10px;color:#849aab;margin-bottom:6px}.summary-grid .value{font-size:12px;font-weight:600;color:#24445f}.detail-hero{padding:21px 23px;display:flex;align-items:center;justify-content:space-between;gap:18px;border-bottom:1px solid var(--line);background:linear-gradient(110deg,#f8fcff,#fff)}.detail-hero .product-icon{width:46px;height:46px}.detail-hero .product-icon .icon{width:25px;height:25px}.detail-hero h2{font-size:18px}.detail-hero p{font-size:11px;color:#8aa0af;margin-top:4px}.stepper-wrap{padding:26px 23px;overflow-x:auto;border-bottom:1px solid var(--line)}.stepper{display:flex;min-width:550px;align-items:flex-start}.step{flex:1;position:relative;text-align:center;padding:0 8px;min-width:80px}.step:before{position:absolute;content:"";height:2px;background:#e1eaf2;left:0;right:0;top:17px}.step:first-child:before{left:50%}.step:last-child:before{right:50%}.step.complete:before{background:#65bca2}.step.current:before{background:linear-gradient(90deg,#65bca2 0%,#65bca2 50%,#e1eaf2 50%)}.step-num{position:relative;z-index:1;display:grid;place-items:center;width:35px;height:35px;margin:0 auto 10px;border-radius:50%;border:3px solid white;background:#edf3f7;color:#92a8b9;box-shadow:0 0 0 1px #d9e5ef;font-size:11px;font-weight:650}.step-num .icon{width:15px;height:15px}.step.complete .step-num{background:#07835d;color:#fff;box-shadow:0 0 0 1px #c6e8db}.step.current .step-num{background:#1677eb;color:#fff;box-shadow:0 0 0 4px #e9f3ff}.step.current.hold .step-num{background:#e79d24;box-shadow:0 0 0 4px #fff5e2}.step-name{font-size:10px;font-weight:600;color:#6b879c;max-width:110px;margin:auto}.step.complete .step-name{color:#168263}.step.current .step-name{color:#166dc8}.step-status{font-size:9px;color:#9bafbd;margin-top:3px}.timeline{padding:0;list-style:none;margin:0}.timeline li{position:relative;padding:0 0 23px 27px;border-left:1px solid #dfebf4;margin-left:6px}.timeline li:last-child{border:0;padding-bottom:0}.timeline li:before{content:"";position:absolute;left:-5px;top:5px;width:9px;height:9px;background:#72b4ec;border:2px solid white;border-radius:50%;box-shadow:0 0 0 1px #d3e8f8}.timeline li:first-child:before{background:var(--green)}.timeline h4{font-size:11px;font-weight:600;color:#31526a}.timeline p{font-size:10px;color:#8aa0b0;margin-top:4px;line-height:1.6}.timeline time{font-size:9px;color:#9aafbd}.timeline a{font-size:10px}.radio-cards{display:grid;grid-template-columns:repeat(2,1fr);gap:9px}.radio-card{display:flex;align-items:center;padding:11px 10px;border:1px solid #dce7f0;border-radius:7px;font-size:11px;color:#6b859a;margin:0;cursor:pointer;font-weight:500}.radio-card:has(input:checked){background:#edf7ff;border-color:#86bff1;color:#116dc3}.file-row{display:flex;align-items:center;gap:11px;padding:13px 0;border-bottom:1px solid #edf2f6}.file-row:last-child{border:0}.file-row .icon{color:#5996c4}.file-row .filename{font-size:12px;color:#2f506a}.file-row .filesize{font-size:10px;color:#8da2b2;margin-top:3px}.file-row .btn{margin-left:auto}.callout{padding:14px 18px;display:flex;align-items:center;justify-content:space-between;gap:16px;background:#fff8ec;border:1px solid #f2e0bf;border-radius:9px;margin-bottom:18px}.callout p{font-size:11px;color:#9a783e;margin-top:4px}.callout strong{font-size:12px;color:#976219}
/* Masters / workflow */
.master-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.master-tile{padding:22px}.master-tile h3{font-size:15px;margin-top:17px}.master-tile p{color:#8299aa;font-size:11px;line-height:1.65;margin-top:5px;min-height:36px}.master-tile .tile-footer{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #e7eff5;margin-top:19px;padding-top:14px;font-size:11px;color:#849baa}.master-tile .tile-icon{height:42px;width:42px;display:grid;place-items:center;background:#edf6fe;border-radius:10px;color:#3689ce}.master-tile .tile-icon.green{background:#ebf7ee;color:#289b72}.master-tile .tile-icon.orange{background:#fff3e6;color:#d8943e}.master-tile .tile-icon.purple{background:#f0ecfb;color:#8b6ec4}.master-actions{display:flex;gap:5px}.stage-list{padding:7px 22px 20px}.stage-row{display:flex;align-items:center;gap:15px;padding:14px 10px;border-bottom:1px solid #eaf1f6;background:white}.stage-row:last-child{border-bottom:0}.stage-row.dragging,.workflow-row.dragging{opacity:.4}.stage-row.drag-over,.workflow-row.drag-over{outline:2px dashed #6cb2e5;outline-offset:-3px;background:#f2faff}.drag-handle{color:#adc0ce;cursor:grab;display:grid;place-items:center}.drag-handle .icon{width:16px;height:16px}.order-num{width:29px;height:29px;border-radius:7px;display:grid;place-items:center;background:#edf5fc;color:#6f96b3;font-size:11px;font-weight:600}.stage-name{font-size:12px;font-weight:600;color:#294c66}.stage-meta{font-size:10px;color:#90a4b4;margin-top:3px}.workflow-list{display:grid;gap:11px;list-style:none;margin:0;padding:0}.workflow-row{display:flex;align-items:center;gap:12px;border:1px solid #dce9f3;background:#fcfeff;border-radius:8px;padding:12px}.workflow-row select{font-size:12px;min-height:36px;padding:7px 9px}.workflow-row .stage-select{flex:1.1;min-width:0}.workflow-row .dept-select{flex:1;min-width:0}.workflow-row .stage-number{font-size:10px;color:#89a1b2;font-weight:650;width:20px;flex-shrink:0;text-align:center}.workflow-row .row-actions{display:flex;gap:4px}.workflow-product-list{display:grid;gap:4px}.workflow-product{background:white;border:1px solid transparent;text-align:left;padding:12px;border-radius:8px;display:flex;align-items:center;gap:11px;color:var(--text);width:100%}.workflow-product:hover{background:#f4faff}.workflow-product.active{background:#eaf6ff;border-color:#c9e4f7}.workflow-product h4{font-size:11px;font-weight:600}.workflow-product p{font-size:10px;color:#8ca1b1;margin-top:3px}.workflow-layout{display:grid;grid-template-columns:285px minmax(0,1fr);gap:20px;align-items:start}.permission-table th,.permission-table td{padding:10px 14px}.permission-table th:first-child,.permission-table td:first-child{padding-left:18px}.permission-table input{margin:0}.permission-table td:not(:first-child),.permission-table th:not(:first-child){text-align:center;width:75px}.permission-table tr.section-row td{text-align:left;background:#f3f8fc;font-size:9px;color:#849caf;text-transform:uppercase;letter-spacing:1px}.permission-count{font-size:10px;color:#7494ac}.user-role-tag{font-size:10px;color:#859bac;margin-top:3px}.board{display:flex;gap:15px;overflow-x:auto;padding:4px 0 18px;align-items:flex-start}.board-col{width:258px;min-width:258px;background:#ebf3f9;border:1px solid #dce8f2;border-radius:10px;padding:12px}.board-heading{display:flex;align-items:center;justify-content:space-between;padding:3px 3px 13px;font-size:11px;font-weight:650;color:#4a6b84}.board-heading .count{padding:1px 6px;border-radius:4px;background:#d9e7f3;color:#7295b0;font-size:10px}.job-card{background:white;border:1px solid #dce8f2;border-radius:8px;margin-bottom:11px;padding:14px;box-shadow:0 2px 3px #133c5a04}.job-card:last-child{margin-bottom:0}.job-card .job-id{font-size:10px;color:#2381cc;font-weight:600}.job-card h4{font-size:12px;margin:11px 0 3px;line-height:1.5;color:#244861}.job-card p{font-size:10px;color:#8ca2b3}.job-card .card-date{display:flex;justify-content:space-between;align-items:center;font-size:10px;margin-top:12px;padding-top:10px;border-top:1px solid #edf3f7;color:#86a0b3}.board-empty{padding:25px 5px;text-align:center;color:#96acbc;font-size:11px}.notification-list{display:grid;gap:8px}.notification{padding:13px;border-radius:7px;border:1px solid #e0ebf3;background:#f9fcff}.notification h4{font-size:12px;color:#2d516a}.notification p{font-size:11px;color:#849baa;margin-top:3px}.vertical-bars{display:flex;align-items:flex-end;gap:14px;height:190px;padding:18px 8px 0;border-bottom:1px solid #e1ebf3}.vbar-col{flex:1;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;position:relative}.vbar{width:66%;min-width:15px;max-width:40px;background:linear-gradient(180deg,#5faff6,#2485dc);border-radius:4px 4px 0 0;min-height:3px;transition:height .3s}.vbar-value{font-size:10px;color:#63849c;margin-bottom:6px}.vbar-label{position:absolute;top:calc(100% + 9px);font-size:9px;color:#8a9eae;white-space:nowrap}.chart-axis{font-size:10px;color:#8ea3b2;margin-bottom:3px}.vbar-card-body{padding-bottom:44px}.kpi-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;padding:17px 22px;background:#f9fcff;border-top:1px solid #e4edf5}.kpi-strip span{font-size:10px;color:#8da1b0;display:block}.kpi-strip strong{font-size:18px;color:#204560}
/* Flow */
.flow-banner{background:linear-gradient(105deg,#06444c,#08777a);color:white;border-radius:12px;padding:25px 28px;margin-bottom:23px;display:flex;justify-content:space-between;gap:20px;align-items:center}.flow-banner h2{font-size:21px;color:#fff;letter-spacing:-.4px}.flow-banner p{color:#c5e4e4;font-size:12px;margin-top:7px;max-width:630px}.flow-banner .icon{height:38px;width:38px;color:#a5dad3}.flow-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:0 0 24px}.flow-step{border:1px solid #d8e7ee;border-radius:10px;background:#fff;overflow:hidden;position:relative}.flow-step-top{background:#0c986d;color:white;padding:15px 18px;display:flex;align-items:center;gap:10px}.flow-step-top.blue{background:#337fd0}.flow-step-top.purple{background:#7050b6}.flow-step-top.orange{background:#fa862d}.flow-step-top.teal{background:#088c94}.flow-step-top.green{background:#379149}.flow-step-top h3{color:white;font-size:13px}.flow-step-top .number{display:grid;place-items:center;border:1px solid #ffffff60;width:24px;height:24px;border-radius:6px;font-size:11px;flex-shrink:0}.flow-step-body{padding:18px}.flow-step-body p{font-size:12px;color:#5c7c92;line-height:1.8;min-height:88px}.flow-step-body .btn{margin-top:14px}.flow-callout{font-size:11px;color:#447f99;padding:10px;border-radius:5px;background:#eef8ff;margin-top:14px}.flow-controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.flow-control{padding:18px}.flow-control h3{display:flex;align-items:center;gap:8px;font-size:12px}.flow-control p{font-size:11px;color:#7b93a5;line-height:1.8;margin-top:9px}.flow-control .icon{color:var(--green)}.swatch-bar{display:flex;height:8px;border-radius:4px;overflow:hidden;margin-top:15px}.swatch-bar span{flex:1}
/* Modal and toast */
.modal-backdrop{position:fixed;inset:0;z-index:100;background:#0b2b436b;backdrop-filter:blur(3px);display:flex;align-items:center;justify-content:center;padding:24px;animation:fadein .16s}.modal{background:#fff;border:1px solid #dce8f0;border-radius:13px;box-shadow:0 20px 90px #072e4e33;width:620px;max-width:100%;max-height:90vh;display:flex;flex-direction:column}.modal.wide{width:850px}.modal.small-modal{width:440px}.modal-head{display:flex;align-items:center;justify-content:space-between;padding:20px 23px;border-bottom:1px solid #e4edf3;gap:15px}.modal-head h2{font-size:17px}.modal-body{padding:23px;overflow-y:auto;overscroll-behavior:contain}.modal-actions{display:flex;justify-content:flex-end;gap:9px;padding:17px 23px;background:#fafcfe;border-top:1px solid #e5eef5;border-radius:0 0 13px 13px}.modal .field{min-width:0}.modal .two-col{grid-template-columns:1fr 1.15fr}.toast-container{position:fixed;right:25px;bottom:25px;z-index:150;display:grid;gap:10px;max-width:430px}.toast{display:flex;align-items:flex-start;gap:10px;padding:14px 17px;border:1px solid #b9dacb;border-radius:10px;background:#f6fffa;color:#266a4d;font-size:12px;box-shadow:0 5px 30px #0b3e5020;animation:slidein .2s}.toast.error{background:#fff8f8;border-color:#eecbd0;color:#af424e}.toast .icon{width:18px;height:18px}.toast button{background:none;border:0;color:inherit;margin-left:auto;padding:0;display:grid;place-items:center}.toast button .icon{width:14px;height:14px}.error-panel{border:1px solid #f0cdd3;padding:22px;border-radius:10px;background:#fff8f8}.denied{padding:80px 20px;text-align:center}.denied .empty-icon{width:70px;height:70px}.denied p{max-width:480px;margin:12px auto 25px;color:#7a92a5;font-size:13px}.loading{display:grid;place-items:center;min-height:70vh;color:#7897ad}.boot-logo{font-size:32px;color:#07535a;font-weight:750}.loading p{font-size:12px;margin-top:10px}.mobile-overlay{display:none}.checkbox-label{display:flex;align-items:center;font-weight:500;font-size:12px;color:#54748c;margin:0}.checks-inline{display:flex;gap:16px;align-items:center;flex-wrap:wrap}.legend-inline{display:flex;align-items:center;gap:15px;font-size:10px;color:#8aa0b0}.legend-inline span{display:inline-flex;align-items:center;gap:5px}.unsaved{color:#b9842d;font-size:11px}.table-note{padding:12px 22px;color:#8a9eae;font-size:10px;border-top:1px solid #edf2f6}.tag-group{display:flex;gap:4px;flex-wrap:wrap}.access-panel{padding:13px;border:1px solid #dae9f2;border-radius:7px;background:#f7fbff}.pill{display:inline-flex;align-items:center;gap:5px;padding:5px 10px;background:#edf5fb;border-radius:20px;color:#7492a7;font-size:10px}.pill .icon{width:12px;height:12px}.topbar-date{font-size:11px;color:#c6e0e3;white-space:nowrap}.table-info{padding:10px 22px;font-size:10px;color:#88a0b2;border-bottom:1px solid #eaf1f6;background:#fcfeff}
@keyframes fadein{from{opacity:0}to{opacity:1}}@keyframes slidein{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
@media(min-width:1600px){.ring-wrap{gap:28px}.donut{width:157px;height:157px}.legend-row{font-size:11px}.stat-number{font-size:35px}}
@media(max-width:1250px){:root{--sidebar:210px}.main{padding-left:23px;padding-right:23px}.brand{width:183px}.topbar{padding-right:23px}.analytics-grid{grid-template-columns:1fr 1fr}.analytics-grid>.card:last-child:nth-child(3){grid-column:1/-1}.priority-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.priority-item{border:0;padding-top:6px}.stat-card{padding:16px}.stat-label{font-size:10px}.page-heading{margin-bottom:20px}.master-grid{grid-template-columns:repeat(2,1fr)}.topbar-date{display:none}.flow-steps{gap:15px}.flow-step-body p{min-height:108px}}
@media(max-width:1000px){.two-col{grid-template-columns:1fr}.two-col>.stack{display:grid;grid-template-columns:1fr 1fr;align-items:start}.workflow-layout{grid-template-columns:240px minmax(0,1fr)}.workflow-row{gap:8px;padding:10px}.workflow-row .row-actions{flex-direction:column}.workflow-row .row-actions .btn{width:24px;height:24px;min-height:24px}.form-grid.three{grid-template-columns:1fr 1fr}.stats-grid{gap:10px}.stat-label{max-width:85px;line-height:1.4}.stat-icon{width:28px;height:28px}.stat-number{font-size:28px}.flow-controls{grid-template-columns:1fr}.summary-grid{grid-template-columns:repeat(2,1fr)}.topbar-title{font-size:13px}.topbar-sub{font-size:9px}.topbar-right{gap:12px}.demo-badge{display:none}.page-actions{gap:6px}.page-actions .btn{padding:9px 10px}.flow-steps{grid-template-columns:repeat(2,1fr)}.flow-step-body p{min-height:70px}}
@media(max-width:800px){:root{--header:66px;--sidebar:228px}.topbar{padding:0 18px;gap:12px}.brand{width:auto}.brand img{width:94px;height:35px}.brand-separator,.topbar-title,.topbar-sub{display:none}.topbar-right{margin-left:auto}.topbar-btn{display:none}.mobile-menu{display:grid;place-items:center;cursor:pointer;border:0;background:#ffffff0b;color:#d5e9ed;width:30px;height:32px;border-radius:5px;padding:0}.role-switch .avatar{width:31px;height:31px;font-size:10px}.role-switch select{font-size:11px;max-width:176px}.role-switch .switch-meta{font-size:8px}.sidebar{transform:translateX(-100%);transition:transform .2s;padding-top:20px}.sidebar.open{transform:translateX(0)}.mobile-overlay.open{display:block;position:fixed;inset:66px 0 0;background:#15344d66;z-index:40;backdrop-filter:blur(2px)}.main{margin:0;padding:91px 20px 20px}.page-heading{gap:12px}.page-actions{padding-top:23px}.footer{font-size:9px}.analytics-grid{gap:14px}.flow-banner{padding:23px}.workflow-layout{grid-template-columns:225px minmax(0,1fr)}.tabs{gap:20px}.modal .two-col{grid-template-columns:1fr}.two-col>.stack{grid-template-columns:1fr 1fr}}
@media(max-width:600px){h1{font-size:24px}.main{padding:87px 15px 20px}.page-heading{flex-direction:column;margin-bottom:18px;gap:12px}.page-actions{padding-top:0;width:100%;flex-wrap:wrap}.heading-sub{font-size:11px}.eyebrow{font-size:9px;margin-bottom:8px}.stats-grid{grid-template-columns:1fr 1fr;gap:11px;margin-bottom:16px}.stat-card{padding:14px}.stat-label{max-width:none;font-size:10px}.stat-number{font-size:29px;margin:7px 0}.stat-bottom{font-size:9px;gap:3px}.stat-bottom strong{font-size:9px}.stat-icon{height:27px;width:27px}.analytics-grid,.analytics-grid.two,.equal-col{grid-template-columns:1fr}.analytics-grid>.card:last-child:nth-child(3){grid-column:auto}.ring-wrap{justify-content:flex-start;padding:5px 3px 0;gap:32px;min-height:180px}.donut{width:146px;height:146px}.legend{gap:12px;flex:1}.legend-row{font-size:11px}.priority-list{grid-template-columns:1fr;gap:0}.priority-item{padding:11px 0;border-bottom:1px solid #edf2f7}.card-head{padding:17px 17px 14px}.card-body{padding-left:17px;padding-right:17px}.card-pad{padding:19px}.card-head h2{font-size:14px}.table-tools{padding:0 17px 15px;align-items:stretch;gap:10px}.searchbox{max-width:none;width:100%}.filters{width:100%;gap:8px}.filters select{flex:1;min-width:126px;max-width:none}.filters input[type=date]{width:calc(50% - 5px)}.table-pagination{padding:13px 17px}.table-tools>.filters{flex:1}.table-tools>.btn{align-self:flex-start}th:first-child,td:first-child{padding-left:17px}th,td{padding-left:13px;padding-right:13px}.scope-strip{font-size:11px;padding:10px 12px;align-items:flex-start}.scope-strip .icon{margin-top:2px}.master-grid{grid-template-columns:1fr}.form-grid,.form-grid.three{grid-template-columns:1fr;gap:15px}.item-editor-grid{grid-template-columns:1fr}.item-editor-grid .specs{grid-column:auto}.form-section{padding:18px}.form-actions{padding:16px 18px;flex-wrap:wrap}.two-col>.stack{grid-template-columns:1fr}.two-col{gap:15px}.summary-grid{padding:18px;gap:19px}.detail-hero{padding:18px;align-items:flex-start}.detail-hero h2{font-size:16px}.detail-hero>.badge{font-size:9px}.detail-hero .product-icon{width:37px;height:37px}.stepper-wrap{padding:22px 15px}.tabs{padding:0 17px;gap:20px}.tab{font-size:11px;padding-top:13px}.modal-backdrop{padding:12px}.modal{max-height:94vh}.modal-head{padding:17px 18px}.modal-head h2{font-size:15px}.modal-body{padding:18px}.modal-actions{padding:15px 18px}.workflow-layout{grid-template-columns:1fr}.workflow-product-list{display:flex;overflow-x:auto;padding-bottom:6px}.workflow-product{min-width:220px;flex:0 0 220px}.workflow-row{display:grid;grid-template-columns:14px 18px 1fr auto;gap:9px}.workflow-row .dept-select{grid-column:3;grid-row:2}.workflow-row .stage-select{grid-column:3;grid-row:1}.workflow-row .row-actions{grid-column:4;grid-row:1/3}.workflow-row .drag-handle{grid-row:1/3}.workflow-row .stage-number{grid-row:1/3}.stage-list{padding-left:12px;padding-right:12px}.stage-row{gap:9px;padding:13px 2px}.stage-row .stage-meta{max-width:150px}.stage-row .master-actions{gap:3px}.stage-row .btn{width:27px;height:28px;min-height:28px}.stage-name{font-size:11px}.flow-steps{grid-template-columns:1fr}.flow-banner{padding:20px}.flow-banner .icon{display:none}.flow-banner h2{font-size:19px}.flow-step-body p{min-height:0}.flow-step-body .btn{margin-top:10px}.footer{align-items:flex-start;gap:12px;flex-direction:column}.toast-container{left:15px;right:15px;bottom:15px;max-width:none}.toast{font-size:11px}.callout{flex-direction:column;align-items:flex-start}.board-col{width:260px;min-width:260px}.permission-table th,.permission-table td{padding:9px}.permission-table th:first-child,.permission-table td:first-child{padding-left:10px}.topbar{gap:8px;padding:0 13px}.role-switch{gap:7px}.role-switch select{max-width:165px}.role-switch .avatar{display:none}.pill{font-size:9px}.radio-cards{grid-template-columns:1fr 1fr}.btn{font-size:11px}.scope-card p{font-size:10px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
@media print{body{background:white;font-size:11px}.topbar,.sidebar,.footer,.page-actions,.table-tools,.modal-backdrop,.toast-container,.mobile-overlay,.no-print,.skip-link{display:none!important}.main{margin:0;padding:0}.content{max-width:none}.card{box-shadow:none;break-inside:avoid}.page-heading{margin-bottom:18px}.stats-grid{grid-template-columns:repeat(4,1fr)}.analytics-grid{grid-template-columns:1fr 1fr}.flow-steps{grid-template-columns:repeat(3,1fr)}.flow-step-body p{min-height:0}.flow-controls{grid-template-columns:repeat(3,1fr)}.flow-banner,.flow-step-top{-webkit-print-color-adjust:exact;print-color-adjust:exact}.flow-step-body .btn{display:none}.table-wrap{overflow:visible}th,td{padding:9px!important}a{color:inherit}.badge{-webkit-print-color-adjust:exact;print-color-adjust:exact}.two-col{grid-template-columns:2fr 1fr}.card-head{padding:14px 16px}.card-body{padding:0 16px 16px}.btn{display:none}.tabs{display:none}.stepper-wrap{overflow:visible}.stepper{min-width:0}h1{font-size:25px}}
/* Keep operational tables readable on phones; scroll the table, not the page. */
@media(max-width:600px){.table-wrap table{min-width:850px}.table-wrap .permission-table{min-width:0}.table-wrap{overscroll-behavior-x:contain}.table-wrap th,.table-wrap td{max-width:240px}.table-wrap .cell-title{word-break:normal}.card-head .link-btn{white-space:nowrap}.toast-container{max-height:38vh;overflow:auto}.toast{flex-shrink:0}}
