:root{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#19283f;background:#f4f6fa;font-synthesis:none;font-size:16px;--navy:#111e36;--blue:#2b5fe8;--border:#e5e9f1;--muted:#738097;--ink:#19283f;--green:#16846a;--radius:13px;--shadow:0 3px 12px #17243b05}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:wait;opacity:.58}a{color:var(--blue);text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #9cbbff;outline-offset:3px}svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}h1,h2,h3,p{margin:0}h1{font-size:1.8rem;line-height:1.25;letter-spacing:-.7px;font-weight:680}h2{font-size:1.05rem;line-height:1.4;font-weight:650;letter-spacing:-.2px}h3{font-size:1rem;font-weight:650}small,.small{font-size:.8125rem}.muted{color:var(--muted)}.pre{white-space:pre-wrap;overflow-wrap:anywhere}.hidden{display:none!important}.boot{min-height:100vh;display:flex;align-items:center;justify-content:center;gap:14px;color:var(--muted)}.spinner{width:20px;height:20px;border:2px solid #dce5fa;border-top-color:var(--blue);border-radius:50%;display:inline-block;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
.layout{display:grid;grid-template-columns:248px minmax(0,1fr);min-height:100vh}.sidebar{background:var(--navy);color:#aab7cc;position:fixed;left:0;top:0;bottom:0;width:248px;padding:32px 18px 20px;display:flex;flex-direction:column;z-index:30}.brand{display:flex;align-items:center;gap:12px;padding:0 14px 36px;color:white}.brand-mark{height:40px;width:40px;border-radius:11px;background:#3568f2;display:flex;align-items:center;justify-content:center;color:white;box-shadow:0 4px 16px #0002}.brand-mark svg{width:26px;height:26px}.brand-name{font-size:1.45rem;font-weight:740;letter-spacing:-.7px;line-height:1.1}.brand-sub{font-size:.6875rem;letter-spacing:2.25px;color:#b6c4dc;margin-top:5px;font-weight:550}.nav-label{font-size:.6875rem;letter-spacing:1.6px;font-weight:650;padding:0 16px;margin:0 0 13px;color:#70819f}.nav-label.team{margin-top:34px}.nav{display:flex;flex-direction:column;gap:6px}.nav-link{border:0;background:transparent;color:#aab7cc;border-radius:8px;display:flex;align-items:center;gap:12px;padding:13px 15px;text-align:left;font-size:.9rem;font-weight:500;width:100%;transition:background .15s,color .15s}.nav-link:hover{color:#fff;background:#ffffff09}.nav-link.active{background:#2b5fe8;color:white;box-shadow:0 4px 14px #0001}.nav-link svg{width:19px;height:19px}.nav-count{margin-left:auto;padding:2px 7px;border-radius:5px;font-size:.75rem;line-height:1.3;background:#ffffff12;color:#d7e1f2}.nav-link.active .nav-count{background:#ffffff25;color:white}.sidebar-spacer{flex:1;min-height:30px}.sidebar-note{margin:0 10px 21px;padding:17px 13px;border:1px solid #2b3850;border-radius:10px;font-size:.8125rem;line-height:1.6;color:#9baecb}.sidebar-note strong{color:#d4dff0;display:block;margin-bottom:6px;font-size:.875rem;font-weight:550}.sidebar-note svg{width:17px;height:17px;vertical-align:-3px;margin-right:6px;color:#95b6ff}.profile{padding:19px 10px 0;border-top:1px solid #29354b;display:flex;gap:10px;align-items:center}.avatar{width:36px;height:36px;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;border-radius:50%;background:#2e405f;color:#dbe8ff;font-size:.8125rem;font-weight:650}.avatar.light{background:#e9efff;color:var(--blue)}.profile-text{min-width:0;flex:1}.profile-name{font-size:.875rem;color:white;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:550}.profile-role{font-size:.75rem;margin-top:3px;color:#90a1bb}.icon-btn{border:0;background:transparent;color:inherit;display:inline-flex;align-items:center;justify-content:center;border-radius:7px;width:36px;height:36px;flex-shrink:0}.icon-btn:hover{background:#7184a41a}.main{grid-column:2;min-width:0}.topbar{height:77px;background:#fff;border-bottom:1px solid var(--border);padding:0 38px;display:flex;align-items:center;justify-content:space-between;gap:25px}.breadcrumbs{display:flex;align-items:center;gap:13px;color:#93a0b3;font-size:.875rem;white-space:nowrap}.breadcrumbs strong{font-weight:550;color:#52617a}.breadcrumbs svg{width:15px;height:15px}.top-actions{display:flex;align-items:center;gap:18px}.global-search{display:flex;align-items:center;gap:10px;color:#91a0b4}.global-search input{border:0;outline:none;background:transparent;font-size:.875rem;width:190px;color:#3c4d68}.global-search svg{width:18px;height:18px}.top-date{border-left:1px solid var(--border);padding-left:20px;font-size:.8125rem;color:#78869b;white-space:nowrap}.mobile-toggle{display:none}.content{padding:34px 38px 40px;max-width:1720px;margin:0 auto}.page-head{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:28px}.eyebrow{font-size:.6875rem;font-weight:650;letter-spacing:1.7px;color:#8190a5;margin-bottom:10px}.page-head p{color:#7b879b;margin-top:9px;font-size:.9375rem;line-height:1.5}.head-buttons{display:flex;align-items:center;gap:10px;flex-shrink:0}.btn{border:1px solid var(--border);border-radius:8px;background:white;color:#465571;padding:11px 15px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-size:.875rem;line-height:1.25;font-weight:600;white-space:nowrap;transition:background .15s,border-color .15s}.btn:hover{background:#f7f9fc;border-color:#c9d3e4}.btn svg{width:17px;height:17px}.btn.primary{background:var(--blue);border-color:var(--blue);color:white;box-shadow:0 3px 6px #2b5fe81a}.btn.primary:hover{background:#204fcb}.btn.soft{background:#edf2ff;border-color:transparent;color:var(--blue)}.btn.danger{color:#bc4148;border-color:#f2d9dc;background:#fff8f8}.btn.small{padding:8px 11px;font-size:.8125rem}.text-btn{border:0;background:none;color:var(--blue);font-size:.875rem;font-weight:550;padding:5px 0;display:inline-flex;align-items:center;gap:6px}.text-btn:hover{text-decoration:underline}.text-btn svg{width:16px;height:16px}
.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:19px;margin-bottom:27px}.stat-card{border:1px solid var(--border);border-radius:var(--radius);background:#fff;padding:21px 22px;box-shadow:var(--shadow)}.stat-top{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:17px}.stat-label{font-size:.875rem;color:#79869b;font-weight:500}.stat-icon{width:35px;height:35px;border-radius:9px;display:flex;align-items:center;justify-content:center;background:#eff3ff;color:#5279dc}.stat-icon svg{width:18px;height:18px}.stat-icon.amber{background:#fff5e8;color:#d99b3d}.stat-icon.purple{background:#f4efff;color:#956fd4}.stat-icon.green{background:#eaf7f2;color:#3e9c7b}.stat-value{font-size:2.1rem;line-height:1;font-weight:670;letter-spacing:-1px;color:#21334d}.stat-value.money{font-size:1.65rem;letter-spacing:-.7px}.stat-bottom{margin-top:13px;color:#9aa4b4;font-size:.75rem}.stat-bottom .highlight{color:#69917e}.stat-bottom .warning-text{color:#b47d2d}.panel{background:#fff;border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}.panel-head{padding:21px 23px;display:flex;justify-content:space-between;align-items:center;gap:15px}.panel-head p{color:#8b97a9;font-size:.8125rem;margin-top:4px}.panel-head h2{display:flex;align-items:center;gap:9px}.panel-head .count{font-size:.75rem;background:#f0f3f9;color:#72809a;padding:3px 7px;border-radius:5px;font-weight:550}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1fr) 305px;gap:23px}.dashboard-primary{min-width:0;display:flex;flex-direction:column;gap:23px}.dashboard-secondary{display:flex;flex-direction:column;gap:23px}.tabs{display:flex;gap:23px;padding:0 23px;border-bottom:1px solid var(--border);overflow:auto}.tab{border:0;background:none;font-size:.875rem;padding:0 0 14px;white-space:nowrap;color:#8a96a8;position:relative}.tab.active{color:var(--blue);font-weight:600}.tab.active::after{content:"";height:2px;position:absolute;left:0;right:0;bottom:0;background:var(--blue);border-radius:2px}.tab span{font-size:.75rem;margin-left:5px;background:#eff2f8;color:#8c96a7;padding:2px 5px;border-radius:4px}.tab.active span{background:#edf2ff;color:var(--blue)}.table-wrap{overflow-x:auto}.table{border-collapse:collapse;width:100%;text-align:left;font-size:.875rem}.table th{font-size:.6875rem;letter-spacing:.7px;font-weight:650;color:#8a97ac;background:#fafbfd;padding:14px 18px;white-space:nowrap;border-bottom:1px solid var(--border)}.table td{padding:17px 18px;border-bottom:1px solid #eef1f6;vertical-align:middle}.table th:first-child,.table td:first-child{padding-left:23px}.table th:last-child,.table td:last-child{padding-right:23px}.table tr:last-child td{border-bottom:0}.table tbody tr.order-row{cursor:pointer}.table tbody tr.order-row:hover{background:#f9fbff}.order-number{font-size:.8125rem;font-weight:650;color:#3f66b2;white-space:nowrap}.cell-primary{font-weight:570;color:#3b4c67;max-width:250px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cell-secondary{font-size:.75rem;color:#94a0b2;margin-top:5px;max-width:250px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cell-amount{font-weight:600;color:#4d5b72;white-space:nowrap;font-variant-numeric:tabular-nums}.cell-date{white-space:nowrap;color:#64738a;font-size:.8125rem}.cell-date.late{color:#ca735a}.badge{font-size:.6875rem;font-weight:600;padding:5px 8px;border-radius:5px;white-space:nowrap;display:inline-flex;align-items:center;gap:5px;background:#edf2fc;color:#5d80c6;line-height:1.3}.badge.in_progress{background:#fff4df;color:#b98931}.badge.outsourced{background:#f1ebff;color:#9667c5}.badge.ready{background:#e7f6f0;color:#378b71}.badge.shipped{background:#e8f2ff;color:#3c8fc7}.badge.delivered{background:#e8f6ee;color:#3d9470}.badge.cancelled{background:#f8eaec;color:#b76571}.badge.archived{background:#eceff4;color:#8491a4}.source{display:flex;align-items:center;gap:6px;font-size:.75rem;color:#8b97a9}.source svg{width:13px;height:13px}.table-footer{padding:14px 23px;background:#fdfdfe;border-top:1px solid var(--border);font-size:.75rem;color:#9ba6b7;display:flex;justify-content:space-between;align-items:center}.mini-flow{padding:0 23px 23px}.flow-row{display:flex;justify-content:space-between;align-items:center;font-size:.8125rem;color:#78869b;margin-top:17px}.flow-label{display:flex;align-items:center;gap:8px}.flow-dot{height:7px;width:7px;border-radius:2px;background:#c8d8f8}.flow-dot.in_progress{background:#f4c36a}.flow-dot.outsourced{background:#b798eb}.flow-dot.ready{background:#6dc4a3}.flow-count{font-weight:650;color:#576681}.flow-track{height:6px;background:#f1f4f9;border-radius:3px;margin-top:8px;overflow:hidden}.flow-track span{display:block;height:100%;background:#729cf1;border-radius:3px}.flow-track .in_progress{background:#f4c36a}.flow-track .outsourced{background:#b798eb}.flow-track .ready{background:#6dc4a3}.due-list{padding:0 23px 10px}.due-item{display:flex;gap:13px;border-top:1px solid #edf0f5;padding:16px 0;cursor:pointer}.due-date{height:42px;width:42px;flex-shrink:0;border:1px solid #e7edf6;background:#f8faff;border-radius:8px;text-align:center;padding-top:5px}.due-date strong{display:block;font-size:1rem;font-weight:650;color:#657ea9;line-height:1}.due-date span{font-size:.625rem;text-transform:uppercase;color:#8c9db7}.due-name{font-size:.8125rem;font-weight:600;color:#4d5e78;max-width:170px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:2px}.due-number{font-size:.6875rem;color:#97a3b5;margin-top:5px}.quiet-empty{padding:22px 23px 27px;text-align:center;color:#a1acbb;font-size:.8125rem;line-height:1.65}.quiet-empty svg{display:block;margin:0 auto 10px;color:#b6c5dc;width:27px;height:27px}.empty-state{padding:43px 25px 45px;text-align:center;max-width:580px;margin:auto}.empty-icon{width:61px;height:61px;border:1px solid #e7edf8;box-shadow:0 5px 11px #33578905;border-radius:17px;background:#f5f8ff;color:#87a4da;margin:0 auto 18px;display:flex;align-items:center;justify-content:center}.empty-icon svg{width:28px;height:28px;stroke-width:1.4}.empty-state h3{color:#4d5c75;font-size:1rem;font-weight:600}.empty-state p{font-size:.875rem;color:#9aa5b6;line-height:1.7;margin:9px auto 19px;max-width:340px}.intro-card{display:flex;align-items:center;gap:20px;padding:22px 24px;background:linear-gradient(110deg,#eef3ff,#f8faff);border:1px solid #dee7fa;border-radius:12px}.intro-card .intro-icon{height:44px;width:44px;flex-shrink:0;display:flex;align-items:center;justify-content:center;background:#fff;color:#6188d9;border:1px solid #e3eaff;border-radius:11px}.intro-card h3{font-size:.9rem;color:#59719e}.intro-card p{font-size:.8125rem;line-height:1.6;margin-top:6px;color:#899ab7}.intro-card .text-btn{margin-left:auto;white-space:nowrap;font-size:.8125rem}.dashboard-bottom{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:var(--border);border:1px solid var(--border);border-radius:12px;overflow:hidden;margin-top:25px}.feature-note{background:#fff;display:flex;align-items:flex-start;gap:12px;padding:20px}.feature-note svg{color:#8ba3cb;width:19px;height:19px;margin-top:2px}.feature-note h3{font-size:.8125rem;font-weight:600;color:#677a95}.feature-note p{font-size:.75rem;line-height:1.6;color:#a0aaba;margin-top:4px}.page-footer{display:flex;align-items:center;justify-content:space-between;color:#a7b0bf;font-size:.6875rem;padding-top:27px}.page-footer span{display:flex;align-items:center;gap:7px}.page-footer svg{width:13px;height:13px}
.filters{padding:18px 22px;display:flex;align-items:center;flex-wrap:wrap;gap:12px;border-bottom:1px solid var(--border)}.searchbox{display:flex;gap:9px;align-items:center;border:1px solid #dfe5ef;border-radius:8px;padding:10px 12px;background:#fff;min-width:220px;flex:1}.searchbox svg{color:#98a6bc;width:17px;height:17px}.searchbox input{width:100%;outline:none;border:0;font-size:.875rem;min-width:80px;color:#53637b}.filters select{min-width:140px;font-size:.8125rem;padding-top:10px;padding-bottom:10px}.check-inline{display:flex;align-items:center;gap:7px;color:#8190a5;font-size:.8125rem;white-space:nowrap}.check-inline input{accent-color:var(--blue);width:15px;height:15px}.filter-summary{padding:0 0 16px;color:#8e9cb0;font-size:.8125rem}.pagination{display:flex;gap:8px;align-items:center}.pagination .icon-btn{width:28px;height:28px;border:1px solid var(--border)}.pagination svg{width:14px;height:14px}.cards-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.supplier-card{background:#fff;border:1px solid var(--border);padding:23px;border-radius:12px}.supplier-card-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.supplier-logo{width:42px;height:42px;border-radius:10px;background:#eff3fb;color:#6384bc;display:flex;align-items:center;justify-content:center}.supplier-card h3{font-size:1rem;color:#4e607b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.supplier-type{font-size:.75rem;color:#97a4b8;margin-top:6px}.contact-line{display:flex;align-items:center;gap:9px;font-size:.8125rem;color:#7d8ca2;margin-top:12px;overflow-wrap:anywhere}.contact-line svg{height:15px;width:15px;color:#a3b0c4}.supplier-card-foot{display:flex;align-items:center;justify-content:space-between;margin-top:20px;padding-top:15px;border-top:1px solid #eef1f7}.permission-tags{display:flex;flex-wrap:wrap;gap:5px;max-width:340px}.permission-tag{background:#f3f5fa;color:#8492a8;font-size:.6875rem;border-radius:4px;padding:3px 6px}.log-action{font-size:.8125rem;color:#667a9a;font-weight:550}.audit-detail{background:#f8faff;border:1px solid #e5eafa;border-radius:8px;padding:14px;margin-top:10px}.audit-detail pre{font-size:.75rem;white-space:pre-wrap;overflow-wrap:anywhere;max-height:250px;overflow:auto;color:#63748c;margin:8px 0}.audit-pair{display:grid;grid-template-columns:1fr 1fr;gap:16px}.audit-pair h4{font-size:.75rem;margin:0;color:#8392a9}.logs-summary{max-width:390px;line-height:1.5;color:#73839c;font-size:.8125rem}.info-note{display:flex;align-items:flex-start;gap:10px;background:#f1f5fd;border:1px solid #e1e9f8;border-radius:9px;padding:15px 17px;font-size:.8125rem;line-height:1.6;color:#788baa;margin-bottom:20px}.info-note svg{width:18px;height:18px;margin-top:2px}.error-box{border:1px solid #f0d9d9;color:#b05d5d;border-radius:8px;padding:13px 15px;background:#fff6f6;font-size:.875rem;line-height:1.5;margin:14px 0}.toast{box-shadow:0 6px 30px #14274422;background:#fff;border:1px solid #dce7e1;border-left:4px solid #38a582;border-radius:9px;padding:15px 18px;color:#51657b;font-size:.875rem;line-height:1.5;max-width:400px;animation:toast-in .15s ease-out}.toast.error{border-color:#eed9d9;border-left-color:#ce6f6f}.toasts{position:fixed;right:28px;bottom:26px;z-index:120;display:flex;flex-direction:column;gap:10px;pointer-events:none}@keyframes toast-in{from{opacity:0;transform:translateY(8px)}}
dialog{padding:0;border:1px solid #dfe6f0;border-radius:17px;width:min(1060px,calc(100vw - 44px));max-height:calc(100dvh - 50px);color:var(--ink);box-shadow:0 25px 100px #0a19384a;background:#f9fbfe;overflow:hidden}dialog::backdrop{background:#14233b75;backdrop-filter:blur(3px)}dialog.small-dialog{width:min(590px,calc(100vw - 36px))}.dialog-shell{display:flex;flex-direction:column;max-height:calc(100dvh - 52px)}.dialog-head{padding:23px 28px;display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid var(--border);background:#fff;flex-shrink:0}.dialog-head h2{font-size:1.25rem;font-weight:650}.dialog-head p{font-size:.8125rem;color:#91a0b5;margin-top:5px}.dialog-body{padding:26px 28px;overflow:auto;flex:1;min-height:0}.dialog-foot{padding:17px 28px;display:flex;gap:10px;align-items:center;justify-content:flex-end;background:#fff;border-top:1px solid var(--border);flex-shrink:0}.dialog-foot .foot-note{margin-right:auto;font-size:.75rem;color:#a0adbf;display:flex;align-items:center;gap:7px}.dialog-foot .foot-note svg{width:14px;height:14px}.form-section{background:#fff;border:1px solid var(--border);border-radius:11px;padding:22px;margin-bottom:20px}.form-section:last-child{margin-bottom:0}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}.section-heading h3{font-size:.9375rem;display:flex;align-items:center;gap:9px;color:#5a6e8c}.section-heading h3 svg{width:18px;height:18px;color:#8ca4ca}.section-heading p{font-size:.75rem;color:#a0acbc;margin-top:5px}.form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.form-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.form-grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}.field{display:flex;flex-direction:column;gap:7px;min-width:0}.field label,.field-label{font-size:.875rem;color:#73839b;font-weight:500;line-height:1.3}.required{color:#c88686;margin-left:2px}.field input,.field select,.field textarea,select.input{width:100%;min-height:41px;border:1px solid #dfe5ef;border-radius:7px;background:#fff;padding:10px 11px;font-size:.875rem;color:#4e607b;box-shadow:0 1px 2px #12345602}.field input::placeholder,.field textarea::placeholder{color:#abb6c8}.field input:focus,.field select:focus,.field textarea:focus{border-color:#82a8fa;outline:3px solid #eaf1ff;outline-offset:0}.field textarea{resize:vertical;min-height:83px;line-height:1.6}.field small{font-size:.75rem;color:#a2adbc;line-height:1.5}.field input:read-only{background:#f6f8fc;color:#96a4b8}.field.span-two{grid-column:span 2}.field.full{grid-column:1 / -1}select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 20 20'%3E%3Cpath d='m5 7 5 5 5-5' stroke='%2393a1b5' fill='none' stroke-width='1.6'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:right 11px center!important;padding-right:31px!important;cursor:pointer;border:1px solid #dfe5ef;border-radius:7px;color:#72839b;background-color:white;max-width:100%}.row-card{border:1px solid #e7ecf4;border-radius:9px;padding:17px;background:#fbfcff;margin-bottom:13px}.row-card-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:13px}.row-card-title{font-size:.75rem;color:#899bb7;font-weight:600}.row-card .icon-btn{height:27px;width:27px;color:#adb7c6}.row-card .icon-btn:hover{color:#c26565;background:#fcf0f0}.row-card .icon-btn svg{width:15px;height:15px}.line-fields{display:grid;grid-template-columns:minmax(150px,2fr) minmax(65px,.65fr) minmax(80px,.7fr) minmax(90px,.9fr);gap:12px}.row-card .field label{font-size:.8125rem}.row-card .description-field{margin-top:12px}.line-total{font-size:.8125rem;color:#8b9ab0;text-align:right;margin-top:11px}.line-total strong{color:#627da3;margin-left:10px}.totals-bar{display:flex;justify-content:flex-end;gap:40px;padding-top:13px;margin-top:17px;border-top:1px solid var(--border)}.total-caption{font-size:.8125rem;color:#8e9cb2}.total-value{font-size:1.15rem;color:#486ba4;font-weight:650;margin-top:5px}.inline-empty{padding:20px;border:1px dashed #dce5f3;background:#fafcff;border-radius:9px;text-align:center;color:#9aabc3;font-size:.8125rem;line-height:1.6}.permission-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.permission-option{border:1px solid #e3e9f3;border-radius:8px;padding:12px;display:flex;align-items:flex-start;gap:9px;background:#fff;font-size:.8125rem;color:#7186a6;line-height:1.45}.permission-option input{accent-color:var(--blue);width:16px;height:16px;margin:1px 0 0}.permission-option strong{display:block;color:#5e7393;font-size:.8125rem;font-weight:550}.permission-option small{font-size:.6875rem;color:#9baac0}.role-explanation{font-size:.75rem;color:#8d9fb9;line-height:1.6;margin:12px 0 0}.detail-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:23px}.detail-company{font-size:1.45rem;color:#3b557b;font-weight:650;letter-spacing:-.4px}.detail-contact{font-size:.875rem;color:#93a2b8;margin-top:9px;display:flex;gap:15px;align-items:center;flex-wrap:wrap}.detail-contact span{display:flex;align-items:center;gap:6px}.detail-contact svg{width:14px;height:14px}.detail-meta{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;background:#fff;border:1px solid var(--border);border-radius:11px;padding:20px;margin-bottom:20px}.meta-label{font-size:.75rem;color:#99a8bd;margin-bottom:7px}.meta-value{font-size:.875rem;font-weight:550;color:#677f9e}.detail-section{margin-bottom:22px}.detail-section h3{font-size:.875rem;color:#6b84a7;margin-bottom:12px;display:flex;align-items:center;gap:8px}.detail-section h3 svg{width:16px;height:16px}.detail-section .panel{box-shadow:none}.detail-notes{font-size:.875rem;line-height:1.7;padding:17px 19px;border:1px solid #f0e5cf;border-radius:9px;background:#fffaf0;color:#a18b62;white-space:pre-wrap;overflow-wrap:anywhere}.detail-shipping{padding:17px 19px;border:1px solid #e1e9f4;background:#f4f8fe;border-radius:9px;font-size:.875rem;line-height:1.7;color:#7b91b1}.timeline{padding:4px 0}.timeline-item{display:flex;gap:13px;position:relative;padding-bottom:18px}.timeline-item::before{content:"";position:absolute;left:5px;top:13px;bottom:0;width:1px;background:#e0e7f1}.timeline-item:last-child::before{display:none}.timeline-point{width:11px;height:11px;border-radius:50%;background:#b7c9e9;margin-top:4px;flex-shrink:0;border:3px solid #eef3fc}.timeline-title{font-size:.8125rem;color:#778da9;line-height:1.5}.timeline-date{font-size:.6875rem;color:#a5b1c2;margin-top:4px}.auth-page{min-height:100vh;display:grid;grid-template-columns:1fr 1fr;background:#fff}.auth-story{background:#111e36;display:flex;flex-direction:column;justify-content:space-between;padding:55px;position:relative;overflow:hidden}.auth-story::after{content:"";position:absolute;right:-140px;bottom:-180px;width:550px;height:550px;border:1px solid #294264;border-radius:50%;box-shadow:0 0 0 90px #ffffff02,0 0 0 180px #ffffff015;pointer-events:none}.auth-story .brand{padding:0;align-self:flex-start}.auth-message{position:relative;z-index:1;max-width:470px;padding:50px 0}.auth-message .eyebrow{color:#84a7ea;margin-bottom:20px}.auth-message h1{font-size:2.65rem;line-height:1.2;color:white;letter-spacing:-1px}.auth-message p{font-size:1rem;color:#90a5c6;line-height:1.8;margin-top:25px}.auth-features{display:flex;flex-direction:column;gap:17px;margin-top:35px}.auth-feature{display:flex;gap:11px;color:#bacbea;font-size:.875rem;align-items:center}.auth-feature svg{width:18px;height:18px;color:#739af3}.auth-footer{font-size:.75rem;color:#607a9f;position:relative;z-index:1}.auth-main{display:flex;align-items:center;justify-content:center;padding:45px}.auth-card{width:100%;max-width:400px}.auth-card h2{font-size:1.65rem;color:#31496e;font-weight:650;letter-spacing:-.5px}.auth-card>p{color:#96a5bc;font-size:.875rem;line-height:1.8;margin:11px 0 27px}.auth-card .field{margin:17px 0}.auth-card .btn{width:100%;margin-top:12px;padding:13px}.auth-footnote{font-size:.75rem;color:#a8b3c4;line-height:1.7;text-align:center;margin-top:24px}.auth-lock{color:#a2b5d4;margin-bottom:18px}.auth-lock svg{width:26px;height:26px}.print-brand{display:none}.overview-note{padding:13px 23px;font-size:.75rem;line-height:1.65;color:#91a0b7;background:#fafbfd;border-top:1px solid var(--border)}
@media(min-width:1600px){.content{padding:42px 48px}.dashboard-grid{grid-template-columns:minmax(0,1fr) 340px}.topbar{padding:0 48px}.stat-card{padding:24px 26px}.table td{padding-top:20px;padding-bottom:20px}}
@media(max-width:1250px){.layout{grid-template-columns:216px minmax(0,1fr)}.sidebar{width:216px;padding-left:12px;padding-right:12px}.brand{padding-left:13px}.content{padding:28px 25px}.topbar{padding:0 25px}.dashboard-grid{grid-template-columns:minmax(0,1fr) 270px;gap:18px}.stats{gap:13px}.stat-card{padding:18px}.stat-label{font-size:.8125rem}.global-search input{width:150px}.table th,.table td{padding-left:14px;padding-right:14px}.dashboard-table .hide-medium{display:none}.cards-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.feature-note{padding:17px 14px}.feature-note p{font-size:.6875rem}.intro-card{padding:20px}.intro-card .intro-icon{display:none}}
@media(max-width:1020px){.dashboard-grid{grid-template-columns:1fr}.dashboard-secondary{display:grid;grid-template-columns:1fr 1fr}.dashboard-table .hide-medium{display:table-cell}.top-date{display:none}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.page-head{align-items:flex-start}.head-buttons{flex-wrap:wrap;justify-content:flex-end}.global-search input{width:145px}.page-head p{font-size:.875rem}.dashboard-bottom{display:none}.line-fields{grid-template-columns:minmax(150px,2fr) minmax(60px,.6fr) minmax(70px,.7fr) minmax(90px,.9fr)}.form-grid.four{grid-template-columns:1fr 1fr}.detail-meta{grid-template-columns:1fr 1fr}.audit-pair{grid-template-columns:1fr}.auth-story{padding:40px}.auth-message h1{font-size:2.2rem}}
@media(max-width:760px){.layout{display:block}.sidebar{transform:translateX(-100%);transition:transform .2s;width:248px;padding-top:25px;box-shadow:20px 0 70px #17264030}.sidebar.open{transform:translateX(0)}.sidebar-backdrop{display:none;position:fixed;inset:0;background:#17243d44;z-index:29}.sidebar-backdrop.show{display:block}.mobile-toggle{display:inline-flex;color:#76859d;margin-left:-9px}.topbar{height:65px;padding:0 20px;gap:12px}.breadcrumbs{gap:9px;font-size:.8125rem}.breadcrumbs .workspace-label{display:none}.breadcrumbs .breadcrumb-chevron{display:none}.top-actions{gap:8px}.global-search input{width:115px;font-size:.8125rem}.global-search{gap:6px}.content{padding:25px 18px}.page-head{gap:16px;margin-bottom:22px;flex-wrap:wrap}.page-head h1{font-size:1.55rem}.page-head p{font-size:.8125rem;max-width:310px}.head-buttons{justify-content:flex-start}.head-buttons .btn{padding:10px 12px;font-size:.8125rem}.eyebrow{font-size:.625rem;margin-bottom:8px}.stats{gap:11px;margin-bottom:20px}.stat-card{padding:15px}.stat-top{margin-bottom:13px;gap:7px}.stat-label{font-size:.75rem}.stat-icon{height:29px;width:29px}.stat-icon svg{height:15px;width:15px}.stat-value{font-size:1.85rem}.stat-value.money{font-size:1.35rem}.stat-bottom{font-size:.6875rem;margin-top:10px}.dashboard-grid{gap:18px}.dashboard-primary{gap:18px}.panel-head{padding:18px}.panel-head p{font-size:.75rem}.panel-head h2{font-size:.9375rem}.tabs{gap:19px;padding:0 18px}.tab{font-size:.8125rem}.empty-state{padding:35px 20px}.empty-state p{font-size:.8125rem}.dashboard-secondary{gap:14px}.mini-flow{padding:0 17px 20px}.flow-row{font-size:.75rem}.due-list{padding:0 16px 8px}.due-item{gap:9px}.due-name{max-width:120px;font-size:.75rem}.due-number{font-size:.625rem}.intro-card{gap:12px;align-items:flex-start;flex-wrap:wrap}.intro-card .text-btn{margin-left:0}.intro-card p{font-size:.75rem}.table-footer{padding:13px 18px;font-size:.6875rem}.table th:first-child,.table td:first-child{padding-left:18px}.page-footer{font-size:.625rem;gap:12px;line-height:1.5;padding-top:22px}.filters{padding:15px;gap:10px}.filters .searchbox{flex-basis:100%;min-width:0}.filters select{flex:1;min-width:130px}.cards-grid{grid-template-columns:1fr}.supplier-card{padding:21px}.info-note{font-size:.75rem;padding:13px}.dialog-head{padding:18px 20px}.dialog-head h2{font-size:1.1rem}.dialog-body{padding:18px 15px}.dialog-foot{padding:15px;flex-wrap:wrap;gap:8px}.dialog-foot .foot-note{display:none}dialog,dialog.small-dialog{width:calc(100vw - 18px);max-height:calc(100dvh - 18px);border-radius:12px}.dialog-shell{max-height:calc(100dvh - 20px)}.form-section{padding:17px;margin-bottom:15px}.form-grid,.form-grid.two{grid-template-columns:1fr 1fr;gap:15px}.form-grid .field.full{grid-column:1/-1}.form-grid .field.span-two{grid-column:1/-1}.line-fields{grid-template-columns:1fr 1fr}.line-fields .field:first-child{grid-column:1/-1}.row-card{padding:14px}.field label,.field-label{font-size:.8125rem}.field input,.field select,.field textarea{font-size:16px;min-height:43px}.section-heading h3{font-size:.875rem}.totals-bar{gap:25px}.total-value{font-size:1rem}.permission-grid{grid-template-columns:1fr}.detail-hero{gap:10px}.detail-company{font-size:1.2rem}.detail-contact{font-size:.8125rem;gap:10px}.detail-meta{padding:17px;gap:20px}.detail-notes,.detail-shipping{font-size:.8125rem}.toasts{right:14px;left:14px;bottom:16px}.toast{max-width:none;font-size:.8125rem}.auth-page{display:block}.auth-story{padding:25px}.auth-story .brand{padding:0}.auth-message{padding:32px 0 5px}.auth-message h1{font-size:1.7rem}.auth-message p,.auth-features,.auth-footer{display:none}.auth-message .eyebrow{font-size:.625rem;margin-bottom:12px}.auth-story::after{height:300px;width:300px}.auth-main{padding:35px 25px}.auth-card h2{font-size:1.4rem}.auth-lock{display:none}}
@media(max-width:410px){.dashboard-secondary{grid-template-columns:1fr}.stats{gap:8px}.stat-card{padding:13px}.stat-top{gap:4px}.stat-icon{width:24px;height:24px}.stat-label{font-size:.6875rem}.form-grid,.form-grid.two,.form-grid.four{grid-template-columns:1fr}.field.span-two{grid-column:auto}.topbar{padding:0 16px}.global-search input{width:100px}.breadcrumbs{font-size:.75rem}.brand-name{font-size:1.4rem}}
@media print{body{background:#fff!important;color:#111}#app,#toasts,dialog::backdrop{display:none!important}dialog{position:absolute!important;display:block!important;inset:0!important;max-width:none!important;max-height:none!important;width:100%!important;border:0!important;box-shadow:none!important;overflow:visible!important;background:white!important;margin:0!important}.dialog-shell{max-height:none!important;display:block!important}.dialog-body{padding:0;overflow:visible!important}.dialog-head{padding:0 0 20px;border-bottom:1px solid #ddd}.dialog-head h2{font-size:16pt}.dialog-head p{font-size:10pt}.dialog-head .icon-btn,.dialog-foot,.no-print,.detail-history{display:none!important}.print-brand{display:block!important;color:#273b5a;font-weight:700;font-size:11pt;margin-bottom:20px}.detail-hero{margin-top:20px}.detail-meta{border:1px solid #ddd}.panel,.detail-notes,.detail-shipping{border-color:#ddd!important;box-shadow:none!important;background:white!important}.table th,.table td{font-size:9pt!important;padding:10px!important;border-bottom:1px solid #ddd!important}.table th{color:#333!important}.detail-section{break-inside:avoid}.detail-contact,.meta-label,.meta-value,.detail-notes,.detail-shipping{color:#333!important}.badge{border:1px solid #ccc!important;background:white!important;color:#111!important}body:not(.printing) dialog{display:none!important}@page{size:A4;margin:17mm}}

/* Readable task information at every viewport size. */
@media screen{
 :root{--muted:#677b98}
 .field label,.field-label,.row-card .field label,.table th,.cell-date,.badge,.stat-label,.flow-row,.due-name,.tab,.btn.small,.check-inline,.permission-option,.permission-option strong,.contact-line,.supplier-type,.log-action,.logs-summary,.meta-value,.detail-contact,.detail-notes,.detail-shipping,.detail-section h3,.section-heading h3,.total-caption,.line-total{font-size:.875rem}
 .field label,.field-label,.row-card .field label{color:#566b87}
 .table th{color:#61728c;letter-spacing:.35px}.cell-date{color:#536b8b}.cell-secondary{font-size:.8125rem;color:#7488a4}.dashboard-table .cell-secondary{font-size:.875rem;color:#5e7696!important}
 .stat-label,.meta-label,.flow-row,.contact-line,.supplier-type,.check-inline{color:#5e7391}.stat-bottom,.panel-head p,.cell-secondary,.table-footer,.table-footer span,.quiet-empty,.empty-state p,.feature-note p,.intro-card p,.timeline-date,.due-number,.form-section .section-heading p,.field small,.permission-option small,.role-explanation,.dialog-head p,.dialog-foot .foot-note,.total-caption,.page-head p,.auth-card>p,.auth-footnote{font-size:.8125rem;color:#7185a2}
 .badge{padding:5px 9px}.badge.new{color:#3f67a7}.badge.in_progress{color:#926614}.badge.outsourced{color:#7950a8}.badge.ready,.badge.delivered{color:#236e54}.badge.shipped{color:#286b9a}.badge.cancelled{color:#9c4c58}
 .nav-label,.brand-sub,.eyebrow,.due-date span,.permission-tag,.row-card-title,.page-footer,.overview-note,.feature-note p,.auth-message .eyebrow,.auth-footer{font-size:.75rem}
 .permission-tag{color:#617796}.logs-summary{color:#5d7495}.permission-option strong{color:#496483}.permission-option{color:#587393}.empty-state h3{color:#405a7d}.empty-state p,.quiet-empty{color:#788ba7}.table-footer{color:#7186a3}.due-name{color:#4d6688}.due-number{color:#7a8fad}.timeline-title{font-size:.875rem;color:#607a9c}.meta-label{font-size:.8125rem}.nav-link{font-size:.9375rem}.sidebar-download{display:flex;align-items:center;gap:8px;color:#91a9d2;font-size:.8125rem;padding:0 13px 19px}.sidebar-download:hover{color:white}.sidebar-download svg{width:16px;height:16px}
}
