:root {
  --navy-950:#08172d;
  --navy-900:#0b1f3a;
  --navy-850:#102846;
  --blue-700:#1558d6;
  --blue-600:#246bfe;
  --blue-500:#3b82f6;
  --blue-100:#eaf2ff;
  --blue-50:#f4f8ff;
  --cyan:#17b8c8;
  --orange:#f59e0b;
  --red:#ef4444;
  --green:#12a66a;
  --ink:#14213d;
  --text:#27364f;
  --muted:#77849a;
  --line:#e8edf4;
  --canvas:#f3f6fa;
  --white:#fff;
  --shadow:0 8px 28px rgba(24, 48, 88, .07);
  --radius:12px;
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;font-family:"Microsoft YaHei","PingFang SC",Inter,system-ui,sans-serif;color:var(--text);background:var(--canvas);font-size:14px}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
.svg-sprite{position:absolute;width:0;height:0;overflow:hidden}
.icon{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;display:inline-block;flex:0 0 auto}
.app-shell{min-height:100vh;display:grid;grid-template-columns:246px 1fr}
.sidebar{position:fixed;inset:0 auto 0 0;width:246px;background:linear-gradient(180deg,var(--navy-950),#0c2342 70%,#102b4d);color:#fff;display:flex;flex-direction:column;z-index:30;box-shadow:8px 0 24px rgba(5,19,39,.1)}
.brand{height:72px;display:flex;align-items:center;padding:0 21px;border-bottom:1px solid rgba(255,255,255,.08);gap:12px}
.brand-mark{width:36px;height:36px;position:relative;background:linear-gradient(135deg,#2f7bff,#22c2d5);border-radius:9px;display:grid;place-items:center;box-shadow:0 7px 18px rgba(36,107,254,.35)}
.brand-mark:before,.brand-mark:after{content:"";position:absolute;background:#fff;transform:skewY(-30deg)}
.brand-mark:before{width:8px;height:20px;left:9px;bottom:7px}
.brand-mark:after{width:8px;height:26px;right:9px;bottom:5px;opacity:.82}
.brand-name{font-weight:800;letter-spacing:.5px;font-size:17px}.brand-sub{font-size:9px;color:#7f9bbd;letter-spacing:1.8px;margin-top:2px}
.side-scroll{padding:14px 12px;overflow:auto;flex:1;scrollbar-width:none}.side-scroll::-webkit-scrollbar{display:none}
.nav-group{margin-bottom:14px}.nav-label{padding:9px 12px 7px;color:#647f9f;font-size:11px;letter-spacing:1.4px}
.nav-item{display:flex;align-items:center;gap:12px;padding:10px 12px;color:#adbed2;border-radius:8px;margin:2px 0;transition:.18s;position:relative;text-decoration:none}
.nav-item:hover{color:#fff;background:rgba(255,255,255,.06)}.nav-item.active{color:#fff;background:linear-gradient(90deg,rgba(36,107,254,.95),rgba(48,124,255,.72));box-shadow:0 8px 18px rgba(10,64,166,.26)}
.nav-item.active:before{content:"";position:absolute;left:-12px;top:8px;bottom:8px;width:3px;border-radius:0 3px 3px 0;background:#54d5e4}
.nav-item .icon{width:17px;height:17px}.nav-item span{flex:1}.nav-badge{font-size:10px;min-width:20px;padding:2px 6px;text-align:center;border-radius:10px;background:#ef5b5b;color:#fff!important;flex:0!important}
.sidebar-bottom{margin:8px 12px 16px;padding:12px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.035);border-radius:10px;display:flex;gap:10px;align-items:center}
.safe-icon{width:32px;height:32px;border-radius:8px;background:rgba(34,194,213,.14);color:#59d8e5;display:grid;place-items:center}.safe-icon .icon{width:17px}
.safe-title{font-size:12px;color:#d6e1ed}.safe-sub{font-size:10px;color:#6683a2;margin-top:2px}
.main-area{grid-column:2;min-width:0}.topbar{position:sticky;top:0;height:72px;background:rgba(255,255,255,.96);backdrop-filter:blur(14px);border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 26px;z-index:20;gap:20px}
.menu-toggle.top-action{display:none;border:0;background:none;color:var(--ink)}
.breadcrumb{font-size:13px;color:#8a96a8;white-space:nowrap}.breadcrumb b{color:var(--ink);font-weight:650}
.top-search{width:min(340px,28vw);height:38px;margin-left:auto;background:#f5f7fa;border:1px solid transparent;border-radius:9px;display:flex;align-items:center;padding:0 12px;gap:9px;color:#9aa5b4;transition:.2s}
.top-search:focus-within{background:#fff;border-color:#b7d0ff;box-shadow:0 0 0 3px rgba(36,107,254,.08)}.top-search input{width:100%;border:0;outline:0;background:transparent;color:var(--text);font-size:13px}
.port-switch{height:36px;border:1px solid #dbe3ef;background:#fff;border-radius:8px;padding:0 11px;color:#43536d;display:flex;align-items:center;gap:7px;font-size:12px}.port-switch:hover{border-color:#9cbbf8;color:var(--blue-600)}
.top-action{width:38px;height:38px;border:0;border-radius:9px;background:transparent;color:#53627a;display:grid;place-items:center;position:relative}.top-action:hover{background:#f3f6fb}.notification-dot{position:absolute;right:8px;top:7px;width:7px;height:7px;background:#f25252;border-radius:50%;border:2px solid white}
.user-block{display:flex;align-items:center;gap:10px;padding-left:14px;border-left:1px solid var(--line)}.avatar{width:35px;height:35px;border-radius:9px;display:grid;place-items:center;color:#fff;background:linear-gradient(140deg,#2166df,#22a5c5);font-weight:700}.user-name{font-size:13px;color:var(--ink);font-weight:650}.user-role{font-size:10px;color:#97a2b1;margin-top:2px}
.content{padding:24px 26px 34px;max-width:1720px;margin:0 auto}.page-head{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:20px;gap:20px}.page-title{margin:0;font-size:22px;color:var(--ink);letter-spacing:-.4px}.page-sub{margin:7px 0 0;color:var(--muted);font-size:12px}.head-actions{display:flex;gap:10px;align-items:center}
.btn{height:38px;border-radius:8px;padding:0 15px;border:1px solid #dce4ef;background:#fff;color:#485a74;display:inline-flex;align-items:center;justify-content:center;gap:7px;font-size:13px;transition:.18s;white-space:nowrap}.btn:hover{border-color:#9bb9f7;color:var(--blue-600);box-shadow:0 3px 12px rgba(36,107,254,.08)}.btn.primary{background:linear-gradient(135deg,#2368ed,#2d79ff);color:#fff;border-color:transparent;box-shadow:0 5px 15px rgba(36,107,254,.22)}.btn.primary:hover{filter:brightness(1.04);color:#fff}.btn.ghost{background:transparent;border-color:transparent}.btn.danger{color:#dc3f3f;background:#fff6f6;border-color:#ffd2d2}.btn.small{height:30px;padding:0 10px;font-size:12px;border-radius:6px}.btn .icon{width:15px;height:15px}
.notice-strip{background:linear-gradient(90deg,#edf4ff,#f5f9ff);border:1px solid #dbe9ff;border-radius:9px;padding:10px 14px;display:flex;align-items:center;gap:10px;color:#58708f;font-size:12px;margin-bottom:18px}.notice-strip .icon{color:var(--blue-600)}.notice-strip b{color:#24446f}.notice-strip .link{margin-left:auto;color:var(--blue-600);cursor:pointer}
.kpi-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:16px}.kpi-card{background:#fff;border:1px solid #edf0f5;border-radius:var(--radius);padding:18px 18px 16px;box-shadow:0 3px 16px rgba(22,47,85,.035);position:relative;overflow:hidden;transition:.2s}.kpi-card:hover{transform:translateY(-2px);box-shadow:var(--shadow)}.kpi-card:after{content:"";position:absolute;right:-23px;top:-25px;width:86px;height:86px;border-radius:50%;background:var(--tint)}
.kpi-top{display:flex;align-items:center;justify-content:space-between;color:#7f8b9d;font-size:12px;position:relative;z-index:1}.kpi-icon{width:34px;height:34px;border-radius:9px;display:grid;place-items:center;color:var(--accent);background:var(--tint)}.kpi-icon .icon{width:17px}.kpi-value{font-size:26px;line-height:1.15;font-weight:750;letter-spacing:-1px;color:var(--ink);margin:13px 0 9px}.kpi-value small{font-size:13px;font-weight:500;color:#718096;margin-left:4px}.kpi-meta{display:flex;align-items:center;font-size:11px;color:#99a4b3}.trend-up{color:var(--green);font-weight:650;margin-right:5px}.trend-down{color:#ed5e5e;font-weight:650;margin-right:5px}.mini-progress{height:4px;background:#edf1f5;border-radius:5px;margin-top:13px;overflow:hidden}.mini-progress span{height:100%;display:block;background:var(--accent);border-radius:5px}
.card{min-width:0;background:#fff;border:1px solid #e9edf3;border-radius:var(--radius);box-shadow:0 4px 18px rgba(20,44,79,.035)}.card-head{min-height:53px;padding:0 17px;display:flex;align-items:center;border-bottom:1px solid #edf0f4;gap:10px}.card-title{font-weight:700;color:var(--ink);font-size:14px}.card-head .meta{font-size:11px;color:#9aa5b4}.card-head .more{margin-left:auto;color:#7b899e;font-size:12px;cursor:pointer}.card-head .more:hover{color:var(--blue-600)}.card-body{padding:17px}
.process-card{margin-bottom:16px}.process-body{padding:18px 22px 20px;display:grid;grid-template-columns:repeat(7,1fr);position:relative}.process-body:before{content:"";position:absolute;top:37px;left:7%;right:7%;height:2px;background:#e6ebf2}.process-step{text-align:center;position:relative;z-index:1}.step-dot{width:38px;height:38px;border-radius:50%;background:#f3f6fa;border:5px solid white;box-shadow:0 0 0 1px #dce5ef;margin:auto;display:grid;place-items:center;font-size:11px;color:#8794a6;font-weight:700}.process-step.done .step-dot{background:#e7f7f0;color:var(--green);box-shadow:0 0 0 1px #bde9d5}.process-step.current .step-dot{background:var(--blue-600);color:#fff;box-shadow:0 0 0 5px #e9f1ff}.step-label{font-size:12px;color:#65748a;margin-top:10px}.step-count{font-weight:750;color:var(--ink);font-size:15px;margin-top:4px}.process-step.current .step-label{color:var(--blue-600);font-weight:650}
.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(300px,.85fr);gap:16px;margin-bottom:16px}.chart-card{min-height:330px}.chart-toolbar{margin-left:auto;display:flex;background:#f3f6fa;border-radius:6px;padding:2px}.chart-toolbar button{border:0;background:transparent;padding:4px 9px;color:#8a96a8;font-size:11px;border-radius:5px}.chart-toolbar button.active{background:#fff;color:var(--blue-600);box-shadow:0 1px 4px rgba(0,0,0,.08)}
.chart-wrap{height:230px;position:relative;padding-left:38px}.y-axis{position:absolute;left:0;top:6px;bottom:28px;display:flex;flex-direction:column;justify-content:space-between;color:#9da8b7;font-size:10px;text-align:right;width:30px}.line-chart{width:100%;height:210px;overflow:visible}.grid-line{stroke:#edf1f5;stroke-width:1}.line-area{fill:url(#areaGradient)}.chart-line{fill:none;stroke:#2c73f2;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}.chart-line-2{fill:none;stroke:#33bec9;stroke-width:2;stroke-dasharray:5 5}.chart-dot{fill:white;stroke:#2c73f2;stroke-width:2}.x-axis{position:absolute;left:42px;right:4px;bottom:0;display:flex;justify-content:space-between;color:#9da8b7;font-size:10px}.legend{display:flex;gap:18px;margin:3px 0 0 40px;font-size:11px;color:#77859a}.legend i{width:8px;height:8px;border-radius:50%;display:inline-block;margin-right:5px}
.todo-list{padding:7px 16px}.todo-item{display:flex;gap:12px;align-items:flex-start;padding:13px 0;border-bottom:1px solid #eff2f5}.todo-item:last-child{border:0}.todo-state{width:30px;height:30px;border-radius:8px;display:grid;place-items:center;background:#edf4ff;color:var(--blue-600);flex:0 0 auto}.todo-state.warn{background:#fff4e4;color:#e99813}.todo-state.risk{background:#fff0f0;color:#e85454}.todo-state .icon{width:15px}.todo-main{min-width:0;flex:1}.todo-title{font-size:12px;color:#34435a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.todo-meta{font-size:10px;color:#9aa5b4;margin-top:5px}.todo-tag{font-size:10px;padding:3px 6px;border-radius:4px;background:#f1f4f8;color:#76859a;white-space:nowrap}.todo-tag.hot{background:#fff0f0;color:#e34c4c}
.lower-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(310px,.95fr);gap:16px}.table-wrap{overflow:auto}.data-table{width:100%;border-collapse:collapse;white-space:nowrap}.data-table th{background:#f8fafc;color:#7d899b;font-size:11px;font-weight:600;text-align:left;padding:11px 13px;border-bottom:1px solid #e8edf3}.data-table td{padding:12px 13px;border-bottom:1px solid #edf0f4;font-size:12px;color:#43516a}.data-table tr:last-child td{border-bottom:0}.data-table tbody tr:hover{background:#f8fbff}.data-table .primary-text{color:#1d5fd1;font-weight:600;cursor:pointer}.data-table .strong{color:var(--ink);font-weight:650}.amount{font-family:Inter,Arial,sans-serif;font-variant-numeric:tabular-nums}.status{display:inline-flex;align-items:center;gap:5px;font-size:11px;padding:4px 8px;border-radius:13px;background:#eef3f8;color:#607086}.status:before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor}.status.blue{background:#edf4ff;color:#246bdf}.status.green{background:#eaf8f2;color:#139b65}.status.orange{background:#fff4e5;color:#dc8b0f}.status.red{background:#fff0f0;color:#db4b4b}.status.purple{background:#f2efff;color:#7558d5}
.progress-cell{display:flex;align-items:center;gap:8px}.bar{width:76px;height:5px;border-radius:5px;background:#e9edf3;overflow:hidden}.bar span{display:block;height:100%;border-radius:5px;background:linear-gradient(90deg,#2b72ef,#44b5d0)}.risk-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:14px 15px 6px}.risk-stat{background:#f8fafc;border-radius:8px;padding:10px;text-align:center}.risk-stat b{display:block;color:var(--ink);font-size:19px}.risk-stat span{color:#8c98a9;font-size:10px}.risk-feed{padding:2px 16px 11px}.risk-row{display:flex;gap:10px;padding:11px 0;border-bottom:1px dashed #e8ecf2;align-items:flex-start}.risk-row:last-child{border:0}.risk-level{font-size:10px;border-radius:4px;padding:3px 5px;color:#e24c4c;background:#fff0f0}.risk-level.medium{color:#dc8a0b;background:#fff5e6}.risk-info{flex:1;font-size:11px;line-height:1.5;color:#516078}.risk-info small{display:block;color:#99a5b4;margin-top:2px}
.toolbar{background:#fff;border:1px solid #e7ebf1;border-radius:10px;padding:13px 14px;margin-bottom:14px;display:flex;align-items:center;gap:10px;flex-wrap:wrap}.search-box{height:36px;width:240px;border:1px solid #dce3ec;border-radius:7px;display:flex;align-items:center;padding:0 10px;gap:7px;color:#9ba7b6}.search-box input{border:0;outline:0;width:100%;background:transparent;font-size:12px}.field-select{height:36px;border:1px solid #dce3ec;border-radius:7px;background:#fff;color:#596a80;padding:0 28px 0 10px;min-width:120px;font-size:12px}.toolbar .spacer{flex:1}.list-card .card-head{padding:0 14px}.tab-list{display:flex;align-self:stretch;gap:20px}.tab{border:0;background:none;color:#7d8999;font-size:12px;padding:0 2px;position:relative}.tab.active{color:var(--blue-600);font-weight:650}.tab.active:after{content:"";position:absolute;bottom:0;height:2px;background:var(--blue-600);left:0;right:0}.count-pill{font-size:10px;margin-left:4px;padding:1px 5px;background:#f0f3f7;border-radius:8px}.tab.active .count-pill{background:#e8f0ff}.table-check{width:15px;height:15px;accent-color:var(--blue-600)}.row-actions{display:flex;gap:10px;color:#2264d3}.action-link{color:#2366d6;cursor:pointer;font-size:11px}.action-link.warn{color:#e14f4f}.pagination{display:flex;align-items:center;justify-content:flex-end;padding:13px 15px;border-top:1px solid #edf0f4;gap:7px;color:#8a96a5;font-size:11px}.page-btn{width:28px;height:28px;border:1px solid #dfe5ed;border-radius:6px;background:#fff;color:#68778c}.page-btn.active{background:var(--blue-600);border-color:var(--blue-600);color:#fff}
.empty-state{text-align:center;padding:70px 20px;color:#91a0b4}.empty-icon{width:64px;height:64px;background:#f2f6fb;border-radius:50%;display:grid;place-items:center;margin:0 auto 14px;color:#83a5d8}.empty-icon .icon{width:27px;height:27px}.empty-state b{display:block;color:#5b6c84;margin-bottom:6px}
.modal-backdrop{position:fixed;inset:0;background:rgba(5,16,32,.48);backdrop-filter:blur(2px);z-index:100;display:grid;place-items:center;padding:22px;animation:fadeIn .16s}.modal{background:#fff;border-radius:14px;width:min(820px,95vw);max-height:92vh;display:flex;flex-direction:column;box-shadow:0 24px 70px rgba(4,18,42,.28);animation:popIn .2s}.modal.small{width:min(500px,95vw)}.modal-head{height:62px;padding:0 20px;display:flex;align-items:center;border-bottom:1px solid var(--line)}.modal-title{font-size:16px;font-weight:700;color:var(--ink)}.modal-sub{font-size:10px;color:#98a4b4;margin-top:3px}.modal-close{margin-left:auto;width:34px;height:34px;border:0;background:#f4f6f9;color:#8491a3;border-radius:8px;display:grid;place-items:center}.modal-body{padding:20px;overflow:auto}.modal-foot{padding:13px 20px;border-top:1px solid var(--line);display:flex;justify-content:flex-end;gap:10px}.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:17px}.form-group.full{grid-column:1/-1}.form-group label{display:block;font-size:12px;color:#53627a;margin-bottom:7px}.required{color:#ef4b4b}.input,.textarea{width:100%;border:1px solid #dce3ed;border-radius:7px;background:#fff;color:#33445c;outline:0;padding:0 11px;transition:.15s}.input{height:38px}.textarea{height:82px;padding-top:10px;resize:vertical}.input:focus,.textarea:focus{border-color:#77a4fb;box-shadow:0 0 0 3px #edf4ff}.field-hint{font-size:10px;color:#9ba6b6;margin-top:5px}.section-label{font-size:12px;font-weight:700;color:#34455e;margin:22px 0 10px;display:flex;align-items:center;justify-content:space-between}.section-label:first-child{margin-top:0}.material-table{border:1px solid #e5eaf0;border-radius:8px;overflow:hidden}.material-table .data-table th,.material-table .data-table td{padding:9px 10px}.inline-input{width:88px;height:30px;border:1px solid #dce3ed;border-radius:5px;padding:0 7px;font-size:11px}.upload-box{border:1px dashed #cbd7e7;background:#f9fbfe;border-radius:8px;height:76px;display:flex;align-items:center;justify-content:center;gap:8px;color:#73839b;font-size:11px}.upload-box .icon{color:var(--blue-600)}
.detail-drawer{position:fixed;right:0;top:0;bottom:0;width:min(620px,94vw);background:#fff;z-index:110;box-shadow:-18px 0 50px rgba(7,24,50,.18);display:flex;flex-direction:column;animation:slideIn .25s}.drawer-head{padding:20px 22px;border-bottom:1px solid var(--line);display:flex;align-items:flex-start;gap:12px}.drawer-head .modal-close{margin-left:auto}.doc-no{color:#8b98aa;font-size:11px;margin-top:5px}.drawer-body{padding:20px 22px;overflow:auto;flex:1}.detail-banner{background:linear-gradient(135deg,#0d2c55,#174782);color:#fff;border-radius:10px;padding:18px;display:flex;justify-content:space-between;margin-bottom:18px}.detail-banner small{color:#a9bdd5}.detail-amount{font-size:24px;font-weight:700;margin-top:5px}.detail-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1px;background:#e8edf3;border:1px solid #e8edf3;border-radius:8px;overflow:hidden;margin-bottom:18px}.detail-cell{background:#fff;padding:12px}.detail-cell label{display:block;color:#93a0b0;font-size:10px;margin-bottom:5px}.detail-cell span{font-size:12px;color:#34445c}.timeline{padding-left:12px}.timeline-item{position:relative;border-left:1px solid #dce4ee;padding:0 0 20px 23px}.timeline-item:before{content:"";position:absolute;left:-5px;top:2px;width:9px;height:9px;border-radius:50%;background:#d4dde9;border:2px solid white}.timeline-item.done:before{background:var(--green)}.timeline-item.current:before{background:var(--blue-600);box-shadow:0 0 0 4px #e9f1ff}.timeline-title{font-size:12px;color:#34445b;font-weight:650}.timeline-meta{font-size:10px;color:#9aa5b4;margin-top:4px}.drawer-foot{padding:14px 20px;border-top:1px solid var(--line);display:flex;justify-content:flex-end;gap:10px}
.modal.wide{width:min(900px,calc(100vw - 32px));max-height:min(92vh,980px)}.order-item .input{min-width:88px;padding:7px 8px}.order-item td{white-space:nowrap}.order-item td:first-child .input{min-width:210px}.order-item [data-role="amount"]{white-space:nowrap;font-weight:650}.order-item .icon-button{width:30px;height:30px}.notice-strip.danger{background:#fff1ef;border-color:#f4c9c3;color:#9b3328}
.selection-list{max-height:240px;overflow:auto;border:1px solid #e2e8f0;border-radius:8px;background:#fff}.selection-list.compact{max-height:180px}.selection-row{display:flex!important;align-items:flex-start;gap:10px;padding:10px 12px;margin:0!important;border-bottom:1px solid #edf0f4;cursor:pointer}.selection-row:last-child{border-bottom:0}.selection-row input{margin-top:3px;flex:0 0 auto}.selection-row span{display:flex;flex-direction:column;gap:3px;min-width:0}.selection-row b{font-size:11px;color:#34445c}.selection-row small{font-size:10px;color:#8996a7;white-space:normal}.sourcing-quote-row .input{min-width:125px}.sourcing-quote-row td{white-space:nowrap}
.toast-root{position:fixed;right:24px;top:88px;z-index:200;display:flex;flex-direction:column;gap:10px}.toast{min-width:280px;background:#fff;border-radius:9px;box-shadow:0 12px 38px rgba(12,32,64,.18);border:1px solid #e7ebf0;padding:12px 14px;display:flex;align-items:center;gap:10px;animation:slideToast .22s}.toast-icon{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:#e9f8f1;color:var(--green)}.toast-icon .icon{width:14px}.toast b{display:block;font-size:12px;color:#304058}.toast span{font-size:10px;color:#8a97a8}
.export-confirm-icon{width:54px;height:54px;margin:3px auto 15px;border-radius:15px;display:grid;place-items:center;color:var(--blue-600);background:var(--blue-100);box-shadow:0 0 0 7px var(--blue-50)}.export-confirm-icon .icon{width:24px;height:24px}.export-confirm-text{max-width:410px;margin:0 auto;color:#53627a;font-size:13px;line-height:1.8;text-align:center}
.port-modal-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.port-card{border:1px solid #e1e7ef;border-radius:10px;padding:16px;cursor:pointer;transition:.2s;position:relative}.port-card:hover,.port-card.active{border-color:#73a0f7;box-shadow:0 6px 18px rgba(36,107,254,.1);transform:translateY(-2px)}.port-card.active:after{content:"当前";position:absolute;right:9px;top:9px;font-size:9px;color:#fff;background:var(--blue-600);padding:2px 5px;border-radius:4px}.port-preview{height:100px;border-radius:7px;background:#eff3f8;margin-bottom:12px;overflow:hidden;padding:8px}.port-preview.admin{display:grid;grid-template-columns:25% 1fr;gap:5px}.port-preview.admin:before{content:"";background:#0e2849;border-radius:3px}.port-preview.admin:after{content:"";background:linear-gradient(#fff 25%,transparent 25%),linear-gradient(90deg,#fff 48%,transparent 48%);background-size:100% 30px,52% 100%;border-radius:3px}.port-preview.portal{background:linear-gradient(#0d2a4f 25px,#eef3f8 25px);position:relative}.port-preview.portal:before{content:"";position:absolute;left:15px;right:15px;top:38px;height:47px;background:#fff;border-radius:4px;box-shadow:18px 12px 0 -8px #fff}.port-preview.mobile{width:56px;margin:0 auto 12px;border:3px solid #21324a;border-radius:10px;background:linear-gradient(#2367df 28%,#f4f7fa 28%);height:100px}.port-card b{display:block;color:#2c3c54}.port-card span{display:block;font-size:10px;color:#8c98a9;margin-top:5px;line-height:1.5}
.supplier-shell{min-height:100vh;background:#f5f7fa}.supplier-top{height:64px;background:#0b2343;color:#fff;display:flex;align-items:center;padding:0 max(24px,calc((100vw - 1200px)/2));gap:34px}.supplier-logo{display:flex;align-items:center;gap:10px;font-weight:700;font-size:17px;white-space:nowrap}.supplier-logo .brand-mark{width:31px;height:31px}.supplier-logo .brand-mark:before{height:17px;left:8px;bottom:6px}.supplier-logo .brand-mark:after{height:22px;right:8px}.supplier-nav{display:flex;align-self:stretch}.supplier-nav button{border:0;background:transparent;color:#9eb1c8;padding:0 17px;position:relative}.supplier-nav button.active{color:#fff}.supplier-nav button.active:after{content:"";height:2px;background:#3f8cff;position:absolute;left:15px;right:15px;bottom:0}.supplier-user{margin-left:auto;display:flex;align-items:center;gap:9px;font-size:12px}.supplier-content{max-width:1200px;margin:auto;padding:23px}.portal-hero{background:linear-gradient(120deg,#0c315f,#15599d);border-radius:12px;color:#fff;padding:24px 28px;display:flex;justify-content:space-between;align-items:center;position:relative;overflow:hidden}.portal-hero:after{content:"";position:absolute;width:230px;height:230px;border:45px solid rgba(255,255,255,.05);border-radius:50%;right:-40px;top:-110px}.portal-hero h2{margin:0 0 8px;font-size:21px}.portal-hero p{margin:0;color:#afc6dd;font-size:12px}.portal-stats{display:flex;gap:38px;position:relative;z-index:1}.portal-stats b{display:block;font-size:23px}.portal-stats span{color:#a9c2db;font-size:10px}.portal-grid{display:grid;grid-template-columns:1.7fr .8fr;gap:16px;margin-top:16px}
.mobile-demo{min-height:100vh;background:linear-gradient(135deg,#dce7f4,#f4f7fb);display:grid;place-items:center;padding:30px}.phone{width:360px;height:730px;max-height:92vh;background:#f5f7fa;border:9px solid #17263b;border-radius:36px;box-shadow:0 30px 70px rgba(20,41,70,.25);overflow:hidden;position:relative}.phone:before{content:"";position:absolute;z-index:5;top:0;left:50%;transform:translateX(-50%);width:118px;height:22px;background:#17263b;border-radius:0 0 15px 15px}.mobile-head{height:152px;background:linear-gradient(135deg,#165bd5,#2c83ef);color:#fff;padding:34px 20px 18px}.mobile-head small{color:#bfd5ff}.mobile-head h2{margin:6px 0 16px;font-size:20px}.mobile-pills{display:flex;gap:8px}.mobile-pill{padding:6px 9px;background:rgba(255,255,255,.15);border-radius:14px;font-size:10px}.mobile-body{padding:14px 14px 70px;overflow:auto;height:calc(100% - 152px)}.mobile-card{background:#fff;border-radius:12px;padding:14px;margin-bottom:12px;box-shadow:0 3px 13px rgba(25,51,86,.05)}.mobile-card h3{margin:0 0 13px;font-size:14px}.work-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:15px 8px}.work-item{text-align:center;font-size:9px;color:#52627a}.work-icon{width:40px;height:40px;border-radius:12px;background:#eaf2ff;color:#246bfe;display:grid;place-items:center;margin:0 auto 6px}.work-icon.orange{background:#fff3e2;color:#e99513}.work-icon.green{background:#e9f8f1;color:#159f67}.work-icon.purple{background:#f2edff;color:#795bdd}.mobile-todo{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid #eef1f5}.mobile-todo:last-child{border:0}.mobile-todo b{font-size:11px;display:block}.mobile-todo span{font-size:9px;color:#9aa5b4}.mobile-arrow{margin-left:auto;color:#a9b4c2}.mobile-tabs{position:absolute;bottom:0;left:0;right:0;height:61px;background:#fff;border-top:1px solid #e8edf3;display:grid;grid-template-columns:repeat(4,1fr);padding-top:7px}.mobile-tab{text-align:center;color:#99a5b5;font-size:9px}.mobile-tab .icon{display:block;margin:auto;width:20px;height:20px;margin-bottom:3px}.mobile-tab.active{color:#246bfe}.back-admin{position:fixed;top:22px;left:22px;z-index:10}
.mobile-work-button,.mobile-tab{border:0;background:transparent;font-family:inherit;cursor:pointer}.mobile-work-button{padding:0}.mobile-work-button:active .work-icon{transform:scale(.94)}.mobile-card-link{color:#246bfe!important;font-size:10px!important;float:right;font-weight:500;cursor:pointer}.mobile-todo{cursor:pointer}.mobile-todo>div:nth-child(2){min-width:0;flex:1}.mobile-todo b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#24364f}.mobile-todo>div:nth-child(2)>span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:4px}.mobile-list-title{height:34px;display:flex;align-items:center;gap:8px;margin-bottom:8px;color:#263950}.mobile-list-title>b{font-size:15px}.mobile-list-title>span{margin-left:auto;font-size:10px;color:#8492a5}.mobile-back{width:28px;height:28px;border:0;background:#fff;border-radius:8px;color:#246bfe;font-size:24px;line-height:1;box-shadow:0 2px 8px rgba(20,44,79,.06)}.mobile-unread{display:inline-block;width:6px;height:6px;border-radius:50%;background:#ef5350;margin-right:5px}.mobile-tab{position:relative}.mobile-tab i{position:absolute;top:-2px;left:55%;min-width:15px;height:15px;padding:0 3px;border-radius:8px;background:#ef5350;color:#fff;font-style:normal;font-size:8px;line-height:15px}.mobile-profile{display:flex;align-items:center;gap:12px;background:linear-gradient(135deg,#184d97,#2e7ce7);color:#fff;border-radius:13px;padding:18px;margin-bottom:12px}.mobile-profile .avatar{width:48px;height:48px}.mobile-profile b{display:block;font-size:15px}.mobile-profile span{display:block;color:#bfd5f3;font-size:10px;margin-top:5px}.mobile-info-row{display:flex;align-items:center;justify-content:space-between;padding:12px 0;border-bottom:1px solid #eef1f5;font-size:11px}.mobile-info-row:last-child{border:0}.mobile-info-row span{color:#8a97a8}.mobile-info-row b{color:#34455e;max-width:190px;text-align:right}.mobile-stat-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.mobile-stat-grid>div{background:#f6f9fd;border-radius:10px;padding:13px}.mobile-stat-grid b{display:block;color:#17345c;font-size:15px}.mobile-stat-grid span{display:block;color:#8997aa;font-size:9px;margin-top:5px}
.login-shell{min-height:100vh;display:grid;grid-template-columns:minmax(520px,1.2fr) minmax(430px,.8fr);background:#fff}.login-visual{position:relative;overflow:hidden;color:#fff;background:radial-gradient(circle at 20% 15%,rgba(43,126,245,.35),transparent 28%),radial-gradient(circle at 85% 80%,rgba(21,184,200,.16),transparent 24%),linear-gradient(145deg,#07172d 0%,#0d2d54 58%,#0d3a64 100%);padding:42px 55px;display:flex;flex-direction:column}.login-visual:before{content:"";position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px);background-size:45px 45px}.login-brand{display:flex;align-items:center;gap:13px;position:relative;z-index:1}.login-brand b{display:block;font-size:19px}.login-brand span{display:block;color:#6f91b8;font-size:9px;letter-spacing:2px;margin-top:3px}.login-copy{margin:auto 0;position:relative;z-index:2;max-width:650px;padding-bottom:55px}.login-kicker{display:inline-flex;border:1px solid rgba(81,160,255,.3);background:rgba(43,112,217,.12);color:#83baff;padding:7px 12px;border-radius:16px;font-size:11px;letter-spacing:1px}.login-copy h1{font-size:48px;line-height:1.28;letter-spacing:1px;margin:25px 0 17px}.login-copy p{max-width:570px;color:#9cb3cc;font-size:14px;line-height:1.9}.login-features{display:flex;gap:26px;margin-top:36px;color:#c4d5e7;font-size:12px}.login-features span{display:flex;align-items:center;gap:7px}.login-features .icon{color:#4ca2ff}.login-building{position:absolute;left:0;right:0;bottom:0;height:34%;opacity:.18;background:linear-gradient(110deg,transparent 12%,#4d7aa7 12% 20%,transparent 20% 24%,#70a1c9 24% 34%,transparent 34% 38%,#466f9b 38% 51%,transparent 51% 55%,#80acce 55% 66%,transparent 66% 70%,#426b95 70% 86%,transparent 86%);clip-path:polygon(0 100%,0 66%,12% 66%,12% 25%,20% 25%,20% 78%,24% 78%,24% 44%,34% 44%,34% 72%,38% 72%,38% 8%,51% 8%,51% 62%,55% 62%,55% 36%,66% 36%,66% 72%,70% 72%,70% 20%,86% 20%,86% 65%,100% 65%,100% 100%)}.login-panel{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:35px 65px;background:#fff}.login-box{width:min(390px,100%)}.login-mobile-brand{display:none}.login-box h2{font-size:28px;color:#12213a;margin:0 0 8px}.login-box>p{color:#909dad;margin:0 0 37px;font-size:13px}.login-box form>label{display:block;color:#45566f;font-size:12px;margin:18px 0 8px}.login-input{height:46px;border:1px solid #dce4ee;border-radius:8px;display:flex;align-items:center;padding:0 13px;gap:10px;color:#8391a5;transition:.18s}.login-input:focus-within{border-color:#6d9ef9;box-shadow:0 0 0 3px #edf4ff;color:#246bfe}.login-input input{border:0;outline:0;flex:1;color:#24364f;background:transparent}.login-options{display:flex;justify-content:space-between;color:#8996a7;font-size:11px;margin:15px 0 22px}.login-options span{color:#246bfe}.login-button{height:48px;width:100%;border:0;border-radius:8px;background:linear-gradient(135deg,#1f65e8,#347fff);color:#fff;display:flex;align-items:center;justify-content:center;gap:16px;font-weight:650;box-shadow:0 8px 20px rgba(36,107,254,.24)}.login-button:disabled{opacity:.65}.login-button i{font-style:normal;font-size:20px}.login-error{height:22px;color:#e14c4c;font-size:11px;padding-top:8px;text-align:center}.login-security{margin-top:25px;background:#f4f8fe;color:#637792;border-radius:7px;padding:10px 12px;font-size:10px;display:flex;align-items:center;justify-content:center;gap:7px}.login-security .icon{color:#246bfe;width:14px}.login-demo{text-align:center;margin-top:14px;color:#9aa6b5;font-size:10px}.login-footer{position:absolute;bottom:24px;color:#a5afbb;font-size:10px}
.detail-drawer:has(.material-table) .material-table{max-width:100%;overflow-x:auto;overflow-y:hidden;scrollbar-gutter:stable}
.detail-drawer:has(.material-table) .material-table .data-table{width:max-content;min-width:100%}
.detail-drawer:has(.material-table) .material-table::-webkit-scrollbar{height:9px}
.detail-drawer:has(.material-table) .material-table::-webkit-scrollbar-track{background:#f1f4f8;border-radius:8px}
.detail-drawer:has(.material-table) .material-table::-webkit-scrollbar-thumb{background:#b9c5d4;border-radius:8px;border:2px solid #f1f4f8}
@media(min-width:900px){.detail-drawer:has(.material-table){width:min(960px,96vw)}}
.check-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:7px;max-height:260px;overflow:auto;padding:2px}.check-card{display:flex!important;align-items:flex-start;gap:8px;padding:9px 10px;border:1px solid #e5eaf1;border-radius:8px;background:#fafcff;font-size:12px;cursor:pointer;margin:0!important}.check-card input{margin-top:2px;accent-color:#246bfe}.check-card span{flex:1;color:#26364a}.check-card small{color:#8793a3;font-size:10px}.input.compact{width:145px}.audit-json{margin:8px 0 18px;padding:14px;border-radius:8px;background:#0f1b2d;color:#dbeafe;white-space:pre-wrap;word-break:break-word;font-size:11px;line-height:1.6;max-height:280px;overflow:auto}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes popIn{from{opacity:0;transform:scale(.97) translateY(6px)}to{opacity:1;transform:none}}@keyframes slideIn{from{transform:translateX(100%)}to{transform:none}}@keyframes slideToast{from{opacity:0;transform:translateX(18px)}to{opacity:1;transform:none}}
@media(max-width:1250px){.kpi-grid{grid-template-columns:repeat(2,1fr)}.dashboard-grid,.lower-grid{grid-template-columns:1fr}.portal-grid{grid-template-columns:1fr}.user-info{display:none}.process-body{overflow-x:auto;grid-template-columns:repeat(7,120px)}}
@media(max-width:850px){.app-shell{display:block}.sidebar{transform:translateX(-100%);transition:.25s}.sidebar.open{transform:none}.main-area{margin:0}.menu-toggle.top-action{display:grid}.topbar{padding:0 14px;height:62px}.breadcrumb{display:none}.top-search{width:auto;flex:1}.port-switch span,.user-block{display:none}.content{padding:16px 13px 28px}.kpi-grid{grid-template-columns:1fr}.page-head{align-items:center}.page-sub{display:none}.process-card{display:none}.form-grid{grid-template-columns:1fr}.form-group.full{grid-column:auto}.port-modal-grid{grid-template-columns:1fr}.supplier-nav{display:none}.supplier-top{padding:0 18px}.portal-stats{display:none}}
@media(max-width:850px){.login-shell{display:block;background:#f3f7fc;padding:24px}.login-visual{display:none}.login-panel{min-height:calc(100vh - 48px);border-radius:16px;padding:34px 25px}.login-mobile-brand{display:flex;align-items:center;gap:10px;margin-bottom:45px;color:#15365f}.login-mobile-brand .brand-mark{width:34px;height:34px}.login-footer{position:static;margin-top:50px}}
@media(max-width:500px){.top-search{display:none}.kpi-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:9px}.kpi-card{padding:13px}.kpi-value{font-size:20px}.kpi-meta{display:none}.dashboard-grid{gap:10px}.head-actions .btn:not(.primary){display:none}.head-actions{flex-shrink:0}.notice-strip>span{min-width:0;line-height:1.5}.notice-strip .link{display:none}.toolbar{align-items:stretch}.search-box{width:100%}.field-select{flex:1}.chart-card{display:none}.phone{width:100%;height:calc(100vh - 30px);max-height:none}.mobile-demo{padding:15px}.risk-summary{grid-template-columns:repeat(3,1fr)}}
.mobile-list-action{margin-left:auto;height:28px;padding:0 10px;border:0;border-radius:8px;background:#246bfe;color:#fff;font-size:10px}.mobile-list-action+span{margin-left:0}
.mobile-modal-backdrop{border-radius:27px!important;padding:10px!important;place-items:center!important;overflow:hidden!important;background:rgba(5,16,32,.56)!important}.mobile-modal-backdrop .modal{width:100%!important;max-width:none!important;max-height:100%!important;border-radius:13px!important}.mobile-modal-backdrop .modal.wide,.mobile-modal-backdrop .modal.small{width:100%!important}.mobile-modal-backdrop .modal-head{height:auto!important;min-height:54px;padding:10px 14px!important;flex:0 0 auto}.mobile-modal-backdrop .modal-title{font-size:14px}.mobile-modal-backdrop .modal-body{padding:14px!important;min-height:0}.mobile-modal-backdrop .modal-foot{padding:10px 12px!important;gap:7px;flex-wrap:wrap}.mobile-modal-backdrop .modal-foot .btn{height:34px;padding:0 11px;font-size:11px}.mobile-modal-backdrop .form-grid{grid-template-columns:minmax(0,1fr)!important;gap:12px!important}.mobile-modal-backdrop .form-group.full{grid-column:auto!important}.mobile-modal-backdrop .detail-grid{grid-template-columns:1fr!important}.mobile-modal-backdrop .detail-banner{padding:13px;gap:10px}.mobile-modal-backdrop .detail-amount{font-size:18px}.mobile-modal-backdrop .material-table{max-width:100%;overflow-x:auto!important}.mobile-modal-backdrop .material-table .data-table{width:max-content;min-width:100%}.mobile-modal-backdrop .detail-drawer{position:absolute!important;inset:0!important;width:100%!important;max-width:none!important;border-radius:0!important;box-shadow:none!important}.mobile-modal-backdrop .drawer-head{padding:14px!important}.mobile-modal-backdrop .drawer-body{padding:14px!important}.mobile-modal-backdrop .drawer-foot{padding:10px!important;gap:7px;flex-wrap:wrap}.mobile-modal-backdrop .drawer-foot .btn{height:34px;padding:0 10px;font-size:11px}.mobile-modal-backdrop .selection-list{max-height:150px}.mobile-modal-backdrop .textarea{height:68px}.mobile-modal-backdrop .notice-strip{font-size:10px;line-height:1.5;padding:8px 10px}.mobile-modal-backdrop .section-label{margin-top:15px}.mobile-modal-backdrop .modal-close{width:30px;height:30px;flex:0 0 auto}
.login-input input{min-width:0}.login-password-toggle{border:0;background:transparent;color:#246bfe;font-size:11px;padding:6px;cursor:pointer;white-space:nowrap}
