:root{font-family:Inter,PingFang SC,Microsoft YaHei,system-ui,sans-serif;color:#17211d;background:#f3f5f3;font-synthesis:none;--bg: #f3f5f3;--surface: #ffffff;--surface-soft: #f7f9f7;--ink: #17211d;--muted: #6e7772;--line: #dfe5e1;--line-strong: #ccd5cf;--brand: #217a4c;--brand-strong: #175f3a;--brand-soft: #e4f4ea;--amber: #a86d13;--amber-soft: #fff1d7;--red: #b44343;--red-soft: #fbe7e7;--blue: #336ea8;--blue-soft: #e8f1fa;--violet: #7253a8;--violet-soft: #f0ebf8;--sidebar: #17211d;--sidebar-muted: #91a098;--shadow: 0 14px 36px rgba(25, 45, 35, .08)}:root[data-theme=dark]{color:#edf3ef;background:#111713;--bg: #111713;--surface: #19211d;--surface-soft: #202a25;--ink: #edf3ef;--muted: #a5b0aa;--line: #303b35;--line-strong: #445149;--brand: #67d492;--brand-strong: #8ce2ac;--brand-soft: #203b2c;--amber-soft: #3b301c;--red-soft: #402323;--blue-soft: #1f3143;--violet-soft: #302842;--shadow: 0 18px 42px rgba(0, 0, 0, .22)}:root[data-theme=dark] .login{background:#111713}:root[data-theme=dark] .login-form-panel{background:#151c18}:root[data-theme=dark] .login-form-panel h2,:root[data-theme=dark] .mobile-brand{color:var(--ink)}:root[data-theme=dark] .login-form-panel p,:root[data-theme=dark] .login-form-panel label{color:var(--muted)}:root[data-theme=dark] .login-form-panel input{background:var(--surface);color:var(--ink);border-color:var(--line-strong)}:root[data-theme=dark] .login-form-panel input:focus{border-color:var(--brand);box-shadow:0 0 0 3px color-mix(in srgb,var(--brand) 18%,transparent)}:root[data-theme=dark] .demo-switch button{color:var(--brand)}:root[data-theme=dark] .login-mode-switch{border-color:var(--line-strong);background:var(--surface-soft)}:root[data-theme=dark] .login-mode-switch button.active{background:var(--surface);color:var(--brand);box-shadow:var(--shadow)}*{box-sizing:border-box}html,body,#root{min-height:100%;margin:0}body{min-width:320px;background:var(--bg)}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}.app-loading{min-height:100vh;display:grid;place-content:center;justify-items:center;gap:14px;color:var(--muted)}.app-loading img{width:48px;height:48px;animation:pulse 1.6s ease-in-out infinite}@keyframes pulse{50%{transform:scale(.93);opacity:.72}}.login{min-height:100vh;display:grid;grid-template-columns:minmax(480px,1.1fr) minmax(420px,.9fr);background:#eef2ef}.login-brand{background:#17211d;color:#fff;padding:42px clamp(40px,6vw,92px);display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden}.login-brand:after{content:"";position:absolute;width:480px;height:480px;border:1px solid rgba(116,217,159,.2);border-radius:50%;right:-190px;bottom:-200px;box-shadow:0 0 0 70px #74d99f09,0 0 0 140px #74d99f06}.brand-lockup{display:flex;align-items:center;gap:14px;position:relative;z-index:1}.brand-lockup img{width:48px;height:48px}.brand-lockup div{display:flex;flex-direction:column;gap:2px}.brand-lockup strong{font-size:22px}.brand-lockup span{color:#9bafa3;font-size:10px;letter-spacing:1.8px}.login-statement{position:relative;z-index:1;max-width:650px}.login-statement>span{color:#74d99f;font-size:13px}.login-statement h1{margin:20px 0;font-size:clamp(48px,6vw,78px);line-height:1.08;font-weight:680;letter-spacing:0}.login-statement p{margin:0;color:#b6c4bc;font-size:18px}.login-facts{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:#ffffff1f;position:relative;z-index:1}.login-facts div{background:#17211d;padding:20px 14px 6px 0;display:flex;flex-direction:column;gap:6px}.login-facts b{font-size:15px}.login-facts span{color:#91a098;font-size:12px}.login-form-panel{display:grid;place-items:center;padding:40px;background:#f8faf8}.login-form-panel form{width:min(430px,100%);display:flex;flex-direction:column}.login-form-panel h2{margin:10px 0 8px;font-size:30px;color:#17211d}.login-form-panel p{margin:0 0 34px;color:#758078}.login-mode-switch{display:grid;grid-template-columns:repeat(2,1fr);gap:2px;padding:3px;margin:-14px 0 22px;border:1px solid #d7dfd9;border-radius:6px;background:#eef2ef}.login-mode-switch button{min-height:34px;border:0;border-radius:4px;background:transparent;color:#6e7772;font-size:12px}.login-mode-switch button.active{background:#fff;color:#217a4c;box-shadow:0 1px 3px #192d231f;font-weight:650}.otp-input-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.otp-input-row button{min-height:46px;padding:0 12px}.login-hint{color:#217a4c;background:#e4f4ea;border:1px solid #c7e7d1;padding:9px 12px;border-radius:5px;margin:-3px 0 12px;font-size:12px}.account-password-note{grid-column:1 / -1;padding:12px;color:var(--muted);background:var(--surface-soft);border:1px solid var(--line);border-radius:5px;font-size:11px}.account-password-note b{color:var(--ink)}.login-form-panel label{display:flex;flex-direction:column;gap:8px;margin-bottom:18px;color:#3f4943;font-size:13px;font-weight:600}.login-form-panel input{width:100%;border:1px solid #d7dfd9;background:#fff;color:#17211d;border-radius:6px;padding:13px 14px;outline:none}.login-form-panel input:focus{border-color:#3c9b66;box-shadow:0 0 0 3px #3c9b661f}.login-button{justify-content:center;min-height:46px;margin-top:6px}.login-error{color:#a93636;background:#fde8e8;padding:10px 12px;border-radius:5px;margin-bottom:12px;font-size:13px}.demo-switch{display:flex;justify-content:center;gap:16px;margin-top:18px}.demo-switch button{border:0;background:transparent;color:#547062;font-size:12px;text-decoration:underline}.mobile-brand{display:none}.app-shell{min-height:100vh;display:grid;grid-template-columns:248px minmax(0,1fr)}.sidebar{position:sticky;top:0;height:100vh;background:var(--sidebar);color:#fff;padding:22px 14px 16px;display:flex;flex-direction:column;z-index:30}.sidebar-brand{display:flex;align-items:center;gap:11px;padding:0 9px 20px;border-bottom:1px solid rgba(255,255,255,.09)}.sidebar-brand img{width:38px;height:38px}.sidebar-brand div{display:flex;flex-direction:column}.sidebar-brand strong{font-size:17px}.sidebar-brand span{color:#94a49b;font-size:11px}.workspace-label{margin:20px 9px 10px;display:flex;flex-direction:column;gap:3px}.workspace-label span{color:#dce5df;font-size:12px;font-weight:600}.workspace-label small{color:#728078;font-size:9px;letter-spacing:.8px}.sidebar nav{overflow:auto;display:flex;flex-direction:column;gap:3px}.sidebar nav button{width:100%;min-height:42px;padding:0 12px;border:0;border-radius:5px;color:#aebbb4;background:transparent;display:flex;align-items:center;gap:11px;text-align:left;font-size:13px}.sidebar nav button:hover{color:#fff;background:#ffffff0e}.sidebar nav button.active{color:#dff8e8;background:#285c40}.sidebar footer{margin-top:auto;border-top:1px solid rgba(255,255,255,.08);padding:14px 9px 0}.version{color:#68766e;font-size:10px}.mobile-close,.sidebar-scrim{display:none}.app-main{min-width:0}.topbar{height:68px;position:sticky;top:0;z-index:20;background:color-mix(in srgb,var(--surface) 92%,transparent);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-bottom:1px solid var(--line);padding:0 28px;display:flex;align-items:center;justify-content:space-between}.topbar-left,.topbar-actions{display:flex;align-items:center;gap:9px}.global-search{width:min(340px,30vw);height:36px;display:flex;align-items:center;gap:8px;background:var(--surface-soft);border:1px solid var(--line);padding:0 11px;border-radius:5px;color:var(--muted)}.global-search input{min-width:0;flex:1;border:0;outline:0;background:transparent;color:var(--ink);font-size:12px}.icon-button{width:36px;height:36px;display:inline-grid;place-items:center;border:1px solid var(--line);background:var(--surface);color:var(--muted);border-radius:5px;padding:0}.icon-button:hover{color:var(--brand);border-color:var(--line-strong)}.notification-button{position:relative}.notification-button span{position:absolute;width:6px;height:6px;border-radius:50%;background:#e05c50;right:7px;top:7px}.user-menu{height:44px;display:flex;align-items:center;gap:9px;padding:0 9px;border-left:1px solid var(--line);margin-left:4px}.avatar{width:31px;height:31px;border-radius:50%;display:grid;place-items:center;background:var(--brand-soft);color:var(--brand);font-size:13px;font-weight:700}.user-menu>div:nth-child(2){display:flex;flex-direction:column;min-width:100px}.user-menu b{font-size:12px}.user-menu span{font-size:10px;color:var(--muted)}.mobile-menu{display:none}.content{padding:28px clamp(20px,3vw,42px) 48px;max-width:1680px;margin:0 auto}.view-stack{display:flex;flex-direction:column;gap:20px}.page-header{min-height:74px;display:flex;align-items:flex-end;justify-content:space-between;gap:18px}.page-header h1{margin:5px 0 0;font-size:25px;line-height:1.2;letter-spacing:0}.page-header p{margin:7px 0 0;color:var(--muted);font-size:13px}.eyebrow{color:var(--brand);font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.8px}.button-primary,.button-secondary{min-height:38px;border-radius:5px;padding:0 14px;border:1px solid transparent;display:inline-flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap;font-size:12px;font-weight:650}.button-primary{background:var(--brand);color:#fff}.button-primary:hover{background:var(--brand-strong)}.button-secondary{background:var(--surface);color:var(--ink);border-color:var(--line)}.button-secondary:hover{border-color:var(--brand);color:var(--brand)}.header-actions{display:flex;align-items:center;gap:8px}.text-button{border:0;background:transparent;color:var(--brand);display:flex;align-items:center;gap:5px;font-size:11px}.metric-grid{display:grid;grid-template-columns:repeat(6,minmax(140px,1fr));gap:12px}.metric{background:var(--surface);border:1px solid var(--line);border-radius:6px;padding:16px;display:grid;grid-template-columns:36px 1fr;column-gap:11px;row-gap:7px;min-height:112px}.metric-icon{width:36px;height:36px;border-radius:5px;display:grid;place-items:center;grid-row:span 2}.metric-green{background:var(--brand-soft);color:var(--brand)}.metric-amber{background:var(--amber-soft);color:var(--amber)}.metric-blue{background:var(--blue-soft);color:var(--blue)}.metric-violet{background:var(--violet-soft);color:var(--violet)}.metric-red{background:var(--red-soft);color:var(--red)}.metric>span{color:var(--muted);font-size:11px;align-self:end}.metric strong{font-size:clamp(17px,1.4vw,22px);line-height:1.15;align-self:start;overflow-wrap:anywhere}.metric small{font-size:10px;color:var(--muted);margin-left:3px}.dashboard-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:14px}.panel{background:var(--surface);border:1px solid var(--line);border-radius:6px;min-width:0}.panel>header{min-height:63px;display:flex;align-items:center;justify-content:space-between;padding:12px 17px;border-bottom:1px solid var(--line)}.panel h2{margin:4px 0 0;font-size:15px}.count-badge{min-width:27px;height:27px;border-radius:50%;background:var(--red-soft);color:var(--red);display:grid;place-items:center;font-size:11px;font-weight:700}.risk-list{max-height:370px;overflow:auto}.risk-row{width:100%;min-height:74px;border:0;border-bottom:1px solid var(--line);background:transparent;color:var(--ink);display:grid;grid-template-columns:9px 1fr 18px;align-items:center;gap:11px;padding:12px 17px;text-align:left}.risk-row:last-child{border-bottom:0}.risk-row:hover{background:var(--surface-soft)}.risk-dot{width:8px;height:8px;border-radius:50%;background:var(--brand)}.risk-dot.risk-medium{background:#d59833}.risk-dot.risk-high,.risk-dot.risk-critical{background:#d35151}.risk-row b{font-size:12px}.risk-row p{margin:4px 0;color:var(--muted);font-size:11px}.risk-row small{color:#8d9891;font-size:9px}.batch-list{padding:4px 17px}.batch-row{min-height:64px;display:grid;grid-template-columns:minmax(120px,1fr) minmax(180px,.9fr);align-items:center;gap:16px;border-bottom:1px solid var(--line)}.batch-row:last-child{border:0}.batch-row>div:first-child{display:flex;flex-direction:column;gap:4px}.batch-row b{font-size:12px}.batch-row small{color:var(--muted);font-size:10px}.progress-cell{min-width:130px;display:flex;align-items:center;gap:9px}.progress-track{height:6px;min-width:70px;flex:1;background:var(--line);border-radius:4px;overflow:hidden}.progress-fill{display:block;height:100%;background:var(--brand);border-radius:4px}.progress-fill.risk-medium{background:#d59a38}.progress-fill.risk-high,.progress-fill.risk-critical{background:#d25555}.progress-cell b{width:34px;font-size:10px;text-align:right}.compact-orders{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.compact-orders button{min-height:82px;border:0;border-bottom:1px solid var(--line);background:transparent;color:var(--ink);padding:13px 17px;display:grid;grid-template-columns:1fr auto;grid-template-rows:1fr auto;gap:7px 14px;text-align:left}.compact-orders button:nth-child(odd){border-right:1px solid var(--line)}.compact-orders button:hover{background:var(--surface-soft)}.compact-orders div{display:flex;flex-direction:column;gap:4px;min-width:0}.compact-orders b,.compact-orders strong{font-size:12px}.compact-orders span,.compact-orders small{color:var(--muted);font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.compact-orders .status{grid-column:2;justify-self:end}.table-card{background:var(--surface);border:1px solid var(--line);border-radius:6px;min-width:0;overflow:hidden}.table-tools{min-height:52px;padding:8px 13px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:10px}.search{width:min(280px,55vw);height:34px;display:flex;align-items:center;gap:8px;border:1px solid var(--line);background:var(--surface-soft);border-radius:5px;padding:0 10px}.search input{min-width:0;width:100%;border:0;outline:0;background:transparent;color:var(--ink);font-size:11px}.table-scroll{overflow:auto}table{width:100%;border-collapse:collapse;font-size:11px}th{height:39px;padding:0 13px;text-align:left;color:var(--muted);background:var(--surface-soft);border-bottom:1px solid var(--line);white-space:nowrap;font-size:10px;font-weight:650}td{height:49px;padding:8px 13px;border-bottom:1px solid var(--line);white-space:nowrap;vertical-align:middle}tbody tr:last-child td{border-bottom:0}tbody tr.clickable{cursor:pointer}tbody tr.clickable:hover{background:var(--surface-soft)}.empty-cell{height:180px;text-align:center;color:var(--muted)}.pagination{min-height:47px;display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:6px 13px;border-top:1px solid var(--line);color:var(--muted);font-size:10px}.pagination button{width:29px;height:29px;padding:0;border:1px solid var(--line);border-radius:4px;background:var(--surface);color:var(--ink);display:grid;place-items:center}.status{min-width:58px;height:23px;padding:0 8px;display:inline-flex;align-items:center;justify-content:center;border-radius:4px;background:var(--surface-soft);color:var(--muted);border:1px solid var(--line);white-space:nowrap;font-size:9px;font-weight:650}.status-approved,.status-active,.status-received,.status-closed,.status-passed,.status-inspection-passed,.status-paid,.status-materials-ready,.status-completed,.status-A{background:var(--brand-soft);color:var(--brand);border-color:color-mix(in srgb,var(--brand) 25%,transparent)}.status-pending-review,.status-pending-supplier-confirm,.status-supplier-confirmed,.status-waiting-start,.status-medium,.status-conditional,.status-invoice-submitted,.status-payment-approved,.status-B{background:var(--amber-soft);color:var(--amber);border-color:color-mix(in srgb,var(--amber) 25%,transparent)}.status-in-production,.status-purchasing,.status-delivering,.status-testing,.status-in-transit,.status-platform-approved,.status-shipped,.status-invoice-accepted{background:var(--blue-soft);color:var(--blue);border-color:color-mix(in srgb,var(--blue) 25%,transparent)}.status-high,.status-critical,.status-failed,.status-production-materials-missing,.status-inspection-failed,.status-exception,.status-invoice-rejected,.status-rejected,.status-D{background:var(--red-soft);color:var(--red);border-color:color-mix(in srgb,var(--red) 25%,transparent)}.supplier-status-select{width:96px;height:30px;padding:0 24px 0 8px;border-radius:4px;border:1px solid var(--line);background-color:var(--surface);color:var(--text);font-size:11px;font-weight:650}.supplier-status-select.status-onboarding{color:var(--amber);border-color:color-mix(in srgb,var(--amber) 35%,var(--line))}.supplier-status-select.status-cooperating{color:var(--brand);border-color:color-mix(in srgb,var(--brand) 35%,var(--line))}.supplier-status-select.status-inactive{color:var(--red);border-color:color-mix(in srgb,var(--red) 35%,var(--line))}.audit-badge{display:inline-flex;align-items:center;min-height:24px;max-width:190px;padding:3px 8px;border:1px solid color-mix(in srgb,var(--brand) 28%,var(--line));border-radius:4px;background:var(--brand-soft);color:var(--brand);font-size:10px;font-weight:650;white-space:normal;line-height:1.35}.audit-badge-soft{background:var(--surface-soft);color:var(--muted);border-color:var(--line)}.audit-detail{display:flex;flex-direction:column;gap:3px;min-width:235px;max-width:440px;white-space:normal;line-height:1.4}.audit-detail-item{display:block;overflow-wrap:anywhere;color:var(--ink)}.audit-detail-item b{margin-right:5px;color:var(--muted);font-size:10px;font-weight:600}.audit-detail-empty{color:var(--muted);font-size:10px}.tag-list{display:flex;gap:4px}.tag-list span{background:var(--surface-soft);border:1px solid var(--line);border-radius:3px;padding:3px 6px;font-size:9px}.row-actions{display:flex;gap:8px}.row-actions button{border:0;background:transparent;color:var(--brand);padding:3px;font-size:10px;display:flex;gap:4px;align-items:center}.row-actions button.danger-link{color:var(--red)}.table-icon-button{width:29px;height:29px;display:grid;place-items:center;border:1px solid var(--line);border-radius:4px;background:var(--surface);color:var(--brand)}.hash{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;color:var(--muted);font-size:9px}.notice{min-height:40px;padding:9px 12px;border:1px solid var(--line);border-radius:5px;display:flex;align-items:center;justify-content:space-between;font-size:11px}.notice-error{background:var(--red-soft);color:var(--red);border-color:color-mix(in srgb,var(--red) 25%,transparent)}.notice button{border:0;background:transparent;color:currentColor;display:grid;place-items:center}.modal-backdrop{position:fixed;inset:0;z-index:100;background:#09100c94;display:grid;place-items:center;padding:20px}.modal{width:min(600px,100%);max-height:min(860px,calc(100vh - 40px));overflow:auto;background:var(--surface);color:var(--ink);border-radius:7px;box-shadow:var(--shadow)}.modal-wide{width:min(900px,100%)}.modal>header{height:59px;padding:0 18px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;background:var(--surface);z-index:2}.modal h2{font-size:16px;margin:0}.modal h3{font-size:12px;margin:0 0 10px}.form-grid{padding:18px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.form-grid label{display:flex;flex-direction:column;gap:7px;color:var(--muted);font-size:10px;font-weight:600;min-width:0}.form-grid input,.form-grid select,.form-grid textarea{width:100%;min-height:38px;border:1px solid var(--line-strong);border-radius:5px;padding:8px 10px;outline:0;color:var(--ink);background:var(--surface);font-size:11px}.form-grid textarea{min-height:72px;resize:vertical}.form-grid input:focus,.form-grid select:focus,.form-grid textarea:focus{border-color:var(--brand);box-shadow:0 0 0 3px color-mix(in srgb,var(--brand) 12%,transparent)}.field-wide,.form-grid .notice,.form-actions{grid-column:1 / -1}.form-actions{display:flex;justify-content:flex-end;gap:9px;border-top:1px solid var(--line);padding-top:15px;margin-top:3px}.detail-summary{padding:17px 18px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;background:var(--surface-soft);border-bottom:1px solid var(--line)}.detail-summary>div{display:flex;flex-direction:column;gap:6px}.detail-summary span{color:var(--muted);font-size:9px}.detail-summary b{font-size:12px;overflow-wrap:anywhere}.detail-section{padding:17px 18px 0}.line-item{min-height:54px;display:grid;grid-template-columns:24px minmax(160px,1fr) auto auto;align-items:center;gap:12px;border-bottom:1px solid var(--line)}.line-item>div{display:flex;flex-direction:column;gap:4px}.line-item b{font-size:11px}.line-item span{color:var(--muted);font-size:10px}.line-item strong{font-size:11px}.modal-footer{padding:17px 18px;display:flex;justify-content:flex-end;gap:8px}.muted{color:var(--muted);font-size:11px}.shipment-detail{padding:36px 20px 18px;display:flex;flex-direction:column;align-items:center;text-align:center}.shipment-detail>svg{color:var(--brand)}.shipment-detail h3{margin:16px 0 8px;display:flex;align-items:center;gap:9px;font-size:14px}.shipment-detail p{margin:0 0 16px;color:var(--muted);font-size:11px}.tabs{display:flex;border-bottom:1px solid var(--line);gap:18px}.tabs button{min-height:39px;padding:0 3px;border:0;border-bottom:2px solid transparent;background:transparent;color:var(--muted);display:flex;align-items:center;gap:6px;font-size:11px}.tabs button.active{color:var(--brand);border-color:var(--brand);font-weight:650}.placeholder-panel{min-height:360px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;color:var(--muted)}.placeholder-panel h2{color:var(--ink);font-size:18px}.placeholder-panel p{margin:0 0 7px;font-size:12px}.config-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.config-section>div{padding:0 16px}.config-section article{min-height:67px;display:grid;grid-template-columns:24px minmax(0,1fr) auto;align-items:center;gap:10px;border-bottom:1px solid var(--line)}.config-section article:last-child{border-bottom:0}.config-section article>svg{color:var(--brand)}.config-section article b{font-size:11px}.config-section article p{margin:5px 0 0;color:var(--muted);font-size:9px;line-height:1.5;overflow-wrap:anywhere}.empty-state{height:250px;display:grid;place-content:center;justify-items:center;gap:10px;color:var(--muted)}.empty-state b{font-size:11px}.section-heading{display:flex;align-items:center;gap:8px}.section-heading svg{color:var(--brand)}.section-heading h2{margin:0}.inline-form-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.inline-form-heading b{font-size:12px;color:var(--ink)}.component-editor{display:grid;grid-template-columns:1.1fr 1fr .7fr .7fr .65fr 1.2fr 34px;gap:7px;margin-bottom:8px}.component-editor input,.component-editor select{min-width:0;min-height:36px;border:1px solid var(--line-strong);border-radius:5px;padding:7px 8px;background:var(--surface);color:var(--ink);font-size:10px}.inline-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:8px 0}.inline-actions input,.inline-actions select{min-height:36px;border:1px solid var(--line-strong);border-radius:5px;padding:7px 9px;background:var(--surface);color:var(--ink);font-size:11px}.order-document-note{margin:8px 0 0;color:var(--muted);font-size:10px;line-height:1.6}.file-action{min-height:36px;display:inline-flex;align-items:center;gap:7px;border:1px solid var(--line-strong);border-radius:5px;padding:7px 10px;color:var(--ink);background:var(--surface);font-size:11px;cursor:pointer}.file-action input{display:none}.order-upload-actions{display:flex;align-items:center;gap:6px}.order-upload-actions .file-action{min-height:29px;padding:5px 8px;white-space:nowrap;font-size:9px}.order-upload-actions .file-action:hover{color:var(--brand);border-color:var(--brand)}.file-list-button{min-height:29px;padding:0 8px;border:1px solid var(--line-strong);border-radius:5px;background:var(--surface);color:var(--muted);font-size:9px;white-space:nowrap}.file-list-button:hover{color:var(--brand);border-color:var(--brand)}.scope-field{display:flex;flex-direction:column;gap:7px;color:var(--muted);font-size:10px;font-weight:600}.scope-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.scope-options label{min-height:40px;display:flex;flex-direction:row;align-items:center;gap:8px;border:1px solid var(--line-strong);border-radius:5px;padding:8px 11px;background:var(--surface);color:var(--ink);cursor:pointer}.scope-options input{width:16px;min-height:16px;margin:0;accent-color:var(--brand)}.manufacturing-actions{display:grid;grid-template-columns:minmax(180px,.8fr) minmax(220px,1fr) auto;align-items:end;gap:18px;padding-bottom:17px;border-bottom:1px solid var(--line)}.manufacturing-actions>div{display:flex;flex-direction:column;gap:7px}.manufacturing-actions>div>span{color:var(--muted);font-size:9px}.manufacturing-actions select{min-height:38px;border:1px solid var(--line-strong);border-radius:5px;padding:7px 9px;background:var(--surface);color:var(--ink);font-size:11px}.order-notes{margin:0;padding:12px;min-height:48px;border:1px solid var(--line);background:var(--surface-soft);color:var(--ink);border-radius:5px;font-size:11px;line-height:1.7;white-space:pre-wrap}.supplier-delivery-list{border:1px solid var(--line);border-radius:6px;overflow:hidden;margin-bottom:18px}.supplier-delivery-list article{min-height:68px;display:grid;grid-template-columns:minmax(180px,1.4fr) minmax(145px,1fr) 100px 100px 82px auto;align-items:center;gap:12px;padding:10px 12px;border-bottom:1px solid var(--line)}.supplier-delivery-list article:last-child{border-bottom:0}.supplier-delivery-list article>div{min-width:0;display:flex;flex-direction:column;gap:5px}.supplier-delivery-list article span{color:var(--muted);font-size:9px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.supplier-delivery-list article b{font-size:10px;overflow-wrap:anywhere}.supplier-delivery-list .status{justify-self:end}.procurement-publish-row{min-height:76px;display:grid;grid-template-columns:minmax(240px,1fr) 220px;align-items:center;gap:18px;padding:11px 12px;border:1px solid var(--line);border-radius:5px}.procurement-publish-row>label:first-child{display:flex;flex-direction:row;align-items:center;gap:10px;color:var(--ink);cursor:pointer}.procurement-publish-row>label:first-child input{width:16px;min-height:16px;margin:0;accent-color:var(--brand)}.procurement-publish-row>label:first-child span{min-width:0;display:flex;flex-direction:column;gap:5px}.procurement-publish-row b{font-size:11px}.procurement-publish-row small{color:var(--muted);font-size:9px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.permission-matrix{position:relative;background:var(--surface);border:1px solid var(--line);border-radius:6px;overflow:auto}.permission-matrix table{min-width:760px}.permission-matrix th:nth-child(n+3),.permission-matrix td:nth-child(n+3){width:130px;text-align:center}.permission-matrix td:nth-child(1){width:110px;color:var(--muted);font-size:10px}.permission-matrix td:nth-child(2){min-width:260px}.permission-matrix td:nth-child(2) b,.permission-matrix td:nth-child(2) small{display:block}.permission-matrix td:nth-child(2) b{font-size:11px}.permission-matrix td:nth-child(2) small{margin-top:4px;color:var(--muted);font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:8px}.permission-matrix label{width:100%;min-height:32px;display:grid;place-items:center;cursor:pointer}.permission-matrix input{width:16px;height:16px;accent-color:var(--brand)}.permission-loading{min-height:220px;display:grid;place-items:center;color:var(--muted);font-size:11px}.document-icon{width:28px;height:28px;display:grid;place-items:center;flex:0 0 auto;border-radius:4px;background:var(--brand-soft);color:var(--brand)}.preview-backdrop{position:fixed;inset:0;z-index:120;display:grid;place-items:center;padding:26px;background:#030805b8}.document-preview-panel{width:min(1240px,100%);height:min(860px,94vh);display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line-strong);border-radius:7px;overflow:hidden;box-shadow:var(--shadow)}.document-preview-panel>header{min-height:58px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:8px 13px 8px 17px;border-bottom:1px solid var(--line)}.document-preview-panel>header>div{min-width:0;display:flex;flex-direction:column;gap:4px}.document-preview-panel>header b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.document-preview-panel>header span{color:var(--muted);font-size:9px}.document-preview-layout{min-height:0;flex:1;display:grid;grid-template-columns:280px minmax(0,1fr)}.document-picker{min-height:0;overflow-y:auto;border-right:1px solid var(--line);background:var(--surface-soft)}.document-picker-heading{position:sticky;top:0;z-index:1;min-height:38px;display:flex;align-items:center;padding:0 13px;border-bottom:1px solid var(--line);background:var(--surface-soft);color:var(--muted);font-size:9px;font-weight:650}.document-picker>button{width:100%;min-height:70px;display:grid;grid-template-columns:28px minmax(0,1fr) auto;align-items:center;gap:9px;padding:9px 11px;border:0;border-bottom:1px solid var(--line);background:transparent;color:var(--ink);text-align:left}.document-picker>button:hover{background:var(--surface)}.document-picker>button.active{background:var(--surface);box-shadow:inset 3px 0 var(--brand)}.document-picker-info{min-width:0;display:flex;flex-direction:column;gap:5px}.document-picker-info b,.document-picker-info small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.document-picker-info b{font-size:10px}.document-picker-info small{color:var(--muted);font-size:8px}.document-picker-empty{min-height:150px;display:grid;place-items:center;padding:20px;color:var(--muted);font-size:10px;text-align:center}.document-preview-stage{min-width:0;min-height:0;display:flex;flex-direction:column;background:var(--surface)}.document-preview-stage>.notice{margin:10px 12px 0}.document-preview-meta{min-height:56px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:8px 14px;border-bottom:1px solid var(--line)}.document-preview-meta>div{min-width:0;display:flex;flex-direction:column;gap:5px}.document-preview-meta b,.document-preview-meta span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.document-preview-meta b{font-size:11px}.document-preview-meta span{color:var(--muted);font-size:9px}.document-preview-meta>span{flex:0 0 auto}.document-preview-content{min-height:0;flex:1;display:grid;place-items:center;background:#e9eeeb}.document-preview-content iframe{width:100%;height:100%;border:0;background:#fff}.document-preview-content img{width:100%;height:100%;object-fit:contain;padding:18px}.document-preview-message{display:flex;flex-direction:column;align-items:center;gap:9px;padding:24px;color:var(--muted);font-size:10px;text-align:center}.document-preview-message b{color:var(--ink);font-size:12px}@media(max-width:1320px){.metric-grid{grid-template-columns:repeat(3,1fr)}}@media(max-width:980px){.login{grid-template-columns:1fr}.login-brand{display:none}.login-form-panel{min-height:100vh}.mobile-brand{display:flex;align-items:center;gap:10px;margin-bottom:38px;color:#17211d}.mobile-brand img{width:38px;height:38px}.app-shell{grid-template-columns:1fr}.sidebar{position:fixed;left:0;transform:translate(-102%);width:252px;transition:transform .2s ease}.sidebar.open{transform:translate(0)}.mobile-close{display:grid;margin-left:auto;width:31px;height:31px;place-items:center;color:#fff;background:transparent;border:0}.sidebar-scrim{display:block;position:fixed;inset:0;z-index:25;background:#0000006b;border:0}.mobile-menu{display:inline-grid}.dashboard-grid,.config-grid{grid-template-columns:1fr}.topbar{padding:0 18px}}@media(max-width:760px){.component-editor{grid-template-columns:1fr 1fr}.component-editor button,.component-editor span{display:none}.scope-options{grid-template-columns:1fr}.manufacturing-actions{grid-template-columns:1fr;align-items:stretch}.supplier-delivery-list article{grid-template-columns:1fr 1fr}.supplier-delivery-list .status{justify-self:start}.procurement-publish-row{grid-template-columns:1fr}.preview-backdrop{padding:0}.document-preview-panel{width:100%;height:100%;max-height:none;border:0;border-radius:0}.document-preview-layout{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr)}.document-picker{display:flex;overflow-x:auto;overflow-y:hidden;border-right:0;border-bottom:1px solid var(--line)}.document-picker-heading{display:none}.document-picker>button{min-width:220px;max-width:260px;min-height:62px;border-right:1px solid var(--line);border-bottom:0}.document-picker>button.active{box-shadow:inset 0 -3px var(--brand)}.document-picker-empty{width:100%;min-height:62px}.document-preview-meta{min-height:52px}}@media(max-width:700px){.login-form-panel{padding:25px}.content{padding:20px 14px 36px}.topbar{height:60px;padding:0 12px}.global-search{display:none}.user-menu>div:nth-child(2),.user-menu>svg{display:none}.user-menu{min-width:auto;padding:0 5px}.page-header{align-items:flex-start;flex-direction:column;min-height:0}.page-header h1{font-size:22px}.page-header .button-primary,.header-actions{width:100%}.header-actions>button{flex:1}.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.metric{padding:13px;min-height:104px;grid-template-columns:31px 1fr;column-gap:8px}.metric-icon{width:31px;height:31px}.metric strong{font-size:16px}.compact-orders{grid-template-columns:1fr}.compact-orders button:nth-child(odd){border-right:0}.batch-row{grid-template-columns:1fr;padding:11px 0;gap:9px}.search{width:70%}.modal-backdrop{padding:0;align-items:end}.modal{max-height:92vh;border-radius:7px 7px 0 0}.form-grid{grid-template-columns:1fr}.field-wide,.form-grid .notice,.form-actions{grid-column:1}.detail-summary{grid-template-columns:repeat(2,1fr)}.line-item{grid-template-columns:22px 1fr auto}.line-item>span:last-child{display:none}}@media(max-width:420px){.metric-grid{grid-template-columns:1fr}.demo-switch{flex-direction:column;gap:8px}.login-form-panel h2{font-size:25px}}
