:root{--bg:#f6f7f9;--panel:#ffffff;--panel-2:#f9fafb;--line:#dde3ea;--text:#17202a;--muted:#657282;--blue:#2563eb;--green:#0f9f6e;--amber:#b7791f;--violet:#6d5bd0;--red:#c2413a}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:Arial,PingFang SC,Microsoft YaHei,sans-serif;letter-spacing:0}button,input,select,textarea{font:inherit}a{color:inherit;text-decoration:none}.app-shell{height:100vh;min-height:100vh;display:grid;grid-template-columns:var(--sidebar-width,248px) minmax(0,1fr);overflow:hidden;transition:grid-template-columns .2s ease}.app-shell.sidebar-collapsed{--sidebar-width:0px}.sidebar{height:100vh;background:#101820;color:#f8fafc;padding:18px 14px;display:flex;flex-direction:column;gap:18px;overflow-y:auto;overscroll-behavior:contain;transition:opacity .16s ease,padding .18s ease,transform .18s ease;min-width:0}.sidebar-collapsed .sidebar{opacity:0;overflow:hidden;padding-left:0;padding-right:0;pointer-events:none}.sidebar-toggle-button{align-items:center;background:var(--blue);border:0;border-radius:8px;box-shadow:0 10px 22px rgba(37,99,235,.22);color:#ffffff;cursor:pointer;display:inline-flex;gap:6px;height:34px;justify-content:center;left:calc(var(--sidebar-width, 248px) + 12px);padding:0 10px;position:fixed;top:14px;transition:left .2s ease,background .16s ease,box-shadow .16s ease;z-index:60}.sidebar-toggle-button:hover{background:#1d4ed8;box-shadow:0 12px 26px rgba(37,99,235,.28)}.sidebar-collapsed .sidebar-toggle-button{left:12px}.brand{min-height:58px;display:flex;align-items:center;gap:12px;padding:8px}.brand-mark{width:38px;height:38px;display:grid;place-items:center;background:#ffffff;color:#101820;border-radius:6px;font-weight:700}.brand span,.brand strong{display:block}.brand span{margin-top:4px;color:#aeb8c4;font-size:12px}.nav-group,.nav-list{display:grid;gap:4px}.nav-group-title{height:34px;display:flex;align-items:center;gap:10px;padding:0 10px;color:#93a4b7;font-size:13px;font-weight:700}.nav-sub-list{display:grid;gap:3px;padding-left:12px;border-left:1px solid #2d3b48;margin-left:18px}.nav-item{height:38px;display:flex;align-items:center;gap:10px;padding:0 10px;color:#d7dee7;border-radius:6px;font-size:14px}.nav-sub-item{height:34px;padding-left:8px;font-size:13px}.nav-item:hover{background:#1d2a36;color:#ffffff}.main-panel{height:100vh;min-width:0;padding:22px 26px 40px;overflow-y:auto}.global-tabs-shell{position:relative;min-width:0;height:42px;display:grid;grid-template-columns:minmax(0,1fr) 44px;align-items:stretch;margin:-4px 0 14px;border:1px solid var(--line);border-radius:8px;background:#eef3f8;box-shadow:0 8px 24px rgba(15,23,42,.04)}.global-tabs-scroll{min-width:0;display:flex;align-items:stretch;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin}.global-tabs-scroll::-webkit-scrollbar{height:6px}.global-tabs-scroll::-webkit-scrollbar-thumb{border-radius:999px;background:#cbd5e1}.global-tab{min-width:112px;max-width:190px;height:40px;display:inline-flex;align-items:center;flex:0 0 auto;border-right:1px solid #d8e1ea;border-bottom:2px solid transparent;background:#f3f6fa;color:#526173}.global-tab:hover{background:#ffffff;color:#17202a}.global-tab.active{background:#ffffff;border-bottom-color:#2563eb;color:#2563eb}.global-tab-link{min-width:0;height:100%;flex:1 1;border:0;background:transparent;color:inherit;padding:0 9px 0 13px;text-align:left;font:inherit;font-size:13px;font-weight:700;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;cursor:pointer}.global-tab-close{width:32px;height:32px;display:grid;place-items:center;flex:0 0 auto;margin-right:3px;border:0;border-radius:999px;background:transparent;color:#94a3b8;cursor:pointer}.global-tab-close:hover{background:#e8eef7;color:#1f2937}.global-tab-quick{position:relative;display:grid;place-items:center;border-left:1px solid #d8e1ea;background:#f8fafc;border-radius:0 8px 8px 0}.global-tab-plus{width:34px;height:34px;display:grid;place-items:center;border:0;border-radius:7px;background:transparent;color:#334155;cursor:pointer}.global-tab-plus:hover{background:#e8eef7;color:#2563eb}.global-tab-menu{position:absolute;z-index:60;top:calc(100% + 6px);right:0;width:156px;display:grid;gap:3px;border:1px solid var(--line);border-radius:8px;background:#ffffff;padding:6px;box-shadow:0 16px 40px rgba(15,23,42,.16)}.global-tab-menu button{width:100%;border:0;border-radius:6px;background:transparent;color:#1f2937;padding:8px 9px;text-align:left;font:inherit;font-size:13px;cursor:pointer}.global-tab-menu button:hover{background:#eef4ff;color:#2563eb}.dashboard-panel,.data-section,.module-header,.topbar,.workflow-section{min-width:0;background:var(--panel);border:1px solid var(--line);border-radius:8px}.topbar{min-height:76px;display:flex;align-items:center;justify-content:space-between;padding:14px 18px;margin-bottom:16px}.module-header h2,.section-title h3,.topbar h1{margin:0}.topbar h1{font-size:22px}.eyebrow{display:inline-block;margin-bottom:5px;color:var(--muted);font-size:12px}.account-chip{min-width:80px;text-align:center;border:1px solid var(--line);border-radius:999px;padding:7px 12px;color:var(--muted);background:var(--panel-2)}.account-settings-link{text-decoration:none}.account-settings-link:hover{border-color:#b9cdf6;background:#eef4ff;color:var(--blue)}.account-area{display:inline-flex;align-items:center;gap:10px}.content-stack{display:grid;gap:14px;min-width:0}.content-stack>*{min-width:0}.account-security-layout{display:grid;grid-template-columns:minmax(260px,.72fr) minmax(420px,1.28fr);gap:16px;align-items:start}.account-password-tip,.account-security-badge,.mobile-account-security{display:inline-flex;align-items:center;gap:8px}.account-security-badge{min-height:36px;padding:0 12px;border:1px solid #bbf7d0;border-radius:6px;background:#f0fdf4;color:#166534;font-size:13px;font-weight:700}.account-profile-card{position:relative}.account-profile-avatar{width:56px;height:56px;display:grid;place-items:center;margin-bottom:16px;border-radius:8px;background:#eaf2ff;color:var(--blue)}.account-profile-list{margin:0;display:grid;gap:0}.account-profile-list>div{min-height:44px;display:grid;grid-template-columns:100px minmax(0,1fr);align-items:center;gap:12px;border-bottom:1px solid var(--line)}.account-profile-list>div:last-child{border-bottom:0}.account-profile-list dt{color:var(--muted);font-size:13px}.account-profile-list dd{margin:0;overflow-wrap:anywhere;color:var(--text);font-weight:700}.account-password-form{max-width:620px;grid-template-columns:repeat(2,minmax(0,1fr))}.account-password-actions,.account-password-form .full,.account-password-tip{grid-column:1/-1}.account-password-tip{min-height:44px;padding:9px 11px;border:1px solid #dbeafe;border-radius:7px;background:#eff6ff;color:#365174;font-size:12px;line-height:1.5}.account-password-actions{justify-content:flex-end}.user-form-help{margin:-2px 0 12px;color:var(--muted);font-size:12px;line-height:1.55}.notice{border:1px solid #b7dfc7;border-radius:8px;padding:10px 12px;background:#f0fdf4;color:#166534}.notice.error{border-color:#fecaca;background:#fef2f2;color:#991b1b}.notice.soft{border-color:#c7d2fe;background:#eef2ff;color:#3730a3}.notice.warning{border-color:#fed7aa;background:#fff7ed;color:#9a3412}.module-header{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:20px}.module-header h2{font-size:24px}.module-header p{margin:8px 0 0;color:var(--muted)}.action-row{display:flex;gap:8px;align-items:center}.icon-button,.primary-button{border:1px solid var(--line);border-radius:6px;background:#ffffff;height:38px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}.icon-button{width:38px}.primary-button{gap:8px;padding:0 14px;color:#ffffff;background:var(--blue);border-color:var(--blue)}.primary-button.disabled,.primary-button:disabled{opacity:.48;cursor:not-allowed}.primary-button.small{height:30px;padding:0 10px;font-size:12px}.secondary-button{height:30px;display:inline-flex;align-items:center;justify-content:center;gap:5px;border:1px solid var(--line);border-radius:6px;padding:0 9px;background:#ffffff;color:var(--text);cursor:pointer}.secondary-button.disabled{opacity:.55;cursor:not-allowed}.danger-button{border:1px solid #fecaca;background:#fff1f2;color:#be123c;border-radius:8px;padding:10px 14px;font-weight:700;display:inline-flex;align-items:center;gap:8px;cursor:pointer}.detail-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px}.detail-grid>div{border:1px solid var(--border);border-radius:8px;background:#f8fafc;padding:12px;display:grid;gap:6px}.detail-grid span{color:var(--muted);font-size:12px}.detail-grid strong{color:var(--ink);font-size:14px}.plain-text-block{border:1px solid var(--border);border-radius:8px;background:#f8fafc;padding:12px;margin:8px 0 0;white-space:pre-wrap;color:var(--ink)}.archive-cost-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:12px}.archive-cost-summary>div{min-width:0;display:grid;gap:5px;border:1px solid var(--line);border-radius:8px;background:#ffffff;padding:10px 12px}.archive-cost-summary span{color:var(--muted);font-size:12px}.archive-cost-summary strong{font-size:18px;font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.archive-cost-summary .strong{border-color:#b8cdfb;background:#eff6ff}.archive-cost-summary .strong strong{color:var(--blue)}.archive-bom-grid{display:grid;gap:12px}.archive-bom-card{min-width:0}.archive-bom-card,.archive-size-panel{border:1px solid var(--line);border-radius:8px;background:#ffffff;padding:10px}.archive-size-panel{display:grid;gap:8px}.archive-size-chips{display:flex;flex-wrap:wrap;gap:8px}.archive-size-chips span{min-width:44px;min-height:30px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #b8cdfb;border-radius:6px;background:#eff6ff;color:var(--blue);font-size:13px;font-weight:800}.archive-media-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.archive-media-card{display:grid;gap:7px;min-width:0}.archive-media-card>span{color:var(--muted);font-size:12px;font-weight:700}.archive-media-card a,.archive-media-card button,.archive-media-empty{display:grid;place-items:center;min-height:180px;overflow:hidden;border:1px solid var(--line);border-radius:8px;background:#ffffff;color:var(--muted)}.archive-media-card button{width:100%;padding:0;cursor:zoom-in}.archive-media-card img{width:100%;max-height:260px;object-fit:contain}.style-bom-form,.style-bom-screen{display:grid;gap:12px}.bom-form-toolbar{position:sticky;top:0;z-index:20;min-height:62px;display:flex;align-items:center;justify-content:space-between;gap:16px;border:1px solid var(--line);border-radius:8px;background:rgba(255,255,255,.96);padding:10px 14px;box-shadow:0 8px 18px rgba(15,23,42,.06);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.bom-form-toolbar .back-link{margin-bottom:4px}.bom-form-toolbar h2{margin:0;font-size:21px}.bom-form-toolbar p{margin:4px 0 0;color:var(--muted);font-size:12px}.bom-bottom-actions,.bom-card-actions,.bom-toolbar-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px}.secondary-button.tall{height:36px;padding:0 14px}.bom-page-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:12px;align-items:start}.bom-main-column,.bom-side-column{display:grid;gap:12px;min-width:0}.bom-side-column{position:sticky;top:78px}.style-editor-tabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));overflow:hidden;border:1px solid var(--line);border-radius:8px;background:#ffffff}.style-editor-tabs button{min-height:42px;display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-right:1px solid var(--line);background:#ffffff;color:#334155;font:inherit;font-weight:700;cursor:pointer}.style-editor-tabs button:last-child{border-right:0}.style-editor-tabs button span{color:#64748b;font-size:12px}.style-editor-tabs button.active{background:#eef5ff;color:#2563eb;box-shadow:inset 0 2px 0 #2563eb}.style-editor-tabs button.active span{color:#2563eb}.material-standard-tabs{grid-template-columns:repeat(6,minmax(0,1fr))}.material-standard-tabs button{white-space:nowrap}.style-editor-tab-panel{display:grid;gap:12px}.style-editor-tab-panel[hidden]{display:none}.bom-card,.bom-side-card{min-width:0;border:1px solid var(--line);border-radius:8px;background:#ffffff;padding:12px}.bom-card-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.bom-card-title h3,.bom-side-card h3{margin:0;font-size:16px}.bom-card-title span{display:block;margin-top:4px;color:#536273;font-size:12px}.bom-style-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 16px;align-items:start}.bom-style-grid .form-field{grid-column:auto;min-width:0}.size-tab-hint{border:1px dashed #cbd5e1;border-radius:8px;background:#f8fafc;padding:12px;color:#536273;font-size:13px}.cost-analysis-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.cost-analysis-grid>div{min-height:76px;display:grid;align-content:center;gap:6px;border:1px solid var(--line);border-radius:8px;background:#f8fafc;padding:12px}.cost-analysis-grid span{color:#64748b;font-size:12px;font-weight:700}.cost-analysis-grid strong{color:var(--text);font-size:20px}.cost-analysis-grid .margin strong,.cost-analysis-grid .strong strong{color:#2563eb}.cost-analysis-grid .positive strong{color:#059669}.cost-analysis-grid .negative strong{color:#dc2626}.input-with-unit{display:flex;align-items:center;min-height:36px;border:1px solid var(--line);border-radius:6px;background:#ffffff;overflow:hidden}.input-with-unit input{border:0;border-radius:0}.input-with-unit em{min-width:40px;color:var(--muted);font-size:12px;font-style:normal;text-align:center}.bom-style-grid .selected-size-row,.bom-style-grid .size-option-row,.bom-style-grid .style-size-picker{gap:5px}.bom-style-grid .selected-size-row{display:none}.bom-style-grid .size-option-row{flex-wrap:nowrap;overflow-x:auto;padding-bottom:1px}.bom-style-grid .selected-size-chip{min-height:24px;padding:2px 7px}.bom-style-grid .size-option-row button{flex:0 0 auto;min-width:34px;height:36px}.style-size-picker{display:grid;gap:7px;min-width:0}.selected-size-row,.size-option-row{display:flex;flex-wrap:wrap;gap:6px}.selected-size-chip{min-height:28px;display:inline-flex;align-items:center;gap:4px;border:1px solid #bfdbfe;border-radius:6px;background:#eff6ff;color:var(--blue);padding:3px 7px;font-size:12px;font-weight:800}.selected-size-chip button{width:16px;height:16px;display:grid;place-items:center;border:0;border-radius:999px;background:transparent;color:inherit;cursor:pointer;padding:0}.size-option-row button{min-width:36px;height:26px;border:1px solid var(--line);border-radius:6px;background:#ffffff;color:#475569;cursor:pointer;font-size:12px}.size-option-row button.active{border-color:var(--blue);background:#eff6ff;color:var(--blue);font-weight:800}.empty-size-tip{min-height:28px;display:inline-flex;align-items:center;color:var(--muted);font-size:12px}.bom-table.material-bom-table{min-width:1360px}.bom-table.process-bom-table{min-width:980px}.bom-table.other-bom-table{min-width:720px}.color-bom-manager{gap:12px}.style-color-tabs{display:flex;flex-wrap:wrap;gap:8px;padding:2px 0}.style-color-tabs button{min-height:34px;display:inline-flex;align-items:center;gap:7px;border:1px solid var(--line);border-radius:8px;background:#ffffff;color:#334155;padding:6px 11px;font-size:13px;font-weight:800;cursor:pointer}.style-color-tabs button.active{border-color:var(--blue);background:#eff6ff;color:var(--blue)}.style-color-tabs button:disabled{cursor:not-allowed;opacity:.68}.style-color-tabs em,.style-color-tabs span{border-radius:999px;padding:2px 6px;font-size:11px;font-style:normal}.style-color-tabs span{background:#dbeafe;color:#1d4ed8}.style-color-tabs em{background:#fee2e2;color:#b91c1c}.color-info-panel{display:grid;grid-template-columns:minmax(160px,1fr) minmax(150px,.8fr) auto auto;gap:10px;align-items:end;border:1px solid var(--line);border-radius:8px;background:var(--panel-2);padding:10px}.color-info-panel label:not(.check-row){display:grid;gap:5px}.color-info-panel label>span{color:#3d4856;font-size:12px;font-weight:800}.color-info-panel input:not([type]),.color-info-panel input[type=text]{width:100%;height:34px;border:1px solid var(--line);border-radius:7px;background:#ffffff;padding:6px 9px;font-size:13px}.color-info-panel input:disabled{background:#f8fafc;color:#64748b}.color-info-panel .check-row{min-height:34px;align-items:center}.color-info-actions{grid-column:1/-1;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}.color-info-actions button{white-space:nowrap}.color-bom-toolbar{min-height:42px;display:flex;align-items:center;justify-content:space-between;gap:12px}.color-bom-toolbar>div:first-child{display:grid;gap:3px}.color-bom-toolbar strong{font-size:14px}.color-bom-toolbar span{color:var(--muted);font-size:12px}.color-bom-toolbar select{width:110px;height:34px;border:1px solid var(--line);border-radius:7px;background:#ffffff;padding:5px 8px;font-weight:700}.color-bom-toolbar select:disabled{background:#f8fafc;color:#64748b;cursor:not-allowed}.bom-table.color-bom-table{min-width:1180px}.color-bom-table td,.color-bom-table th{white-space:nowrap}.color-bom-footer{flex-wrap:wrap;justify-content:flex-end}.color-bom-footer-group{display:inline-flex;flex-wrap:wrap;gap:8px}.bom-side-card{display:grid;gap:12px}.bom-side-list{display:grid;gap:10px;margin:0}.bom-side-list div{display:flex;align-items:baseline;justify-content:space-between;gap:12px}.bom-side-list dt{color:var(--muted);font-size:13px;font-weight:700}.bom-side-list dd{margin:0;color:#17202a;font-feature-settings:"tnum";font-variant-numeric:tabular-nums;font-weight:800}.bom-side-list .total{margin-top:4px;border-top:1px solid var(--line);padding-top:12px}.bom-side-list .total dd{color:var(--blue);font-size:24px}.bom-side-list .positive dd{color:#0f9f6e}.bom-side-list .negative dd{color:#c2413a}.bom-side-list .margin dd{color:#0f9f6e;font-size:24px}.bom-side-list.compact .margin dd{font-size:18px}.profit-state{display:inline-flex;align-items:center;border-radius:999px;padding:3px 9px;font-size:12px;font-weight:800}.profit-state.healthy{background:#dcfce7;color:#15803d}.profit-state.low{background:#fef3c7;color:#92400e}.profit-state.risk{background:#fee2e2;color:#b91c1c}.bom-help-list{display:grid;gap:8px;margin:0;padding-left:18px;color:#475569;font-size:13px;line-height:1.55}.bom-bottom-actions{border:1px solid var(--line);border-radius:8px;background:#ffffff;padding:10px 12px}.danger-section{margin-top:0}.section-title.compact h3{font-size:15px}.icon-button.small{width:26px;height:26px;color:var(--muted)}.text-button{border:0;background:transparent;color:var(--blue);cursor:pointer;padding:0}.text-button,.text-button.danger{display:inline-flex;align-items:center;gap:5px}.text-button.danger{color:var(--red)}.table-image-cell{width:58px;height:44px;display:grid;place-items:center;overflow:hidden;border:1px solid var(--line);border-radius:6px;background:#ffffff;color:var(--muted);font-size:11px}.table-image-cell img{width:100%;height:100%;object-fit:contain}.back-link{display:inline-flex;align-items:center;gap:6px;margin-bottom:10px;color:var(--blue);font-size:13px;text-decoration:none}.back-link:hover{color:#1d4ed8;text-decoration:none}.mode-chip{border:1px solid var(--line);border-radius:999px;padding:7px 12px;white-space:nowrap;font-size:13px}.mode-chip.manual{color:var(--blue);background:#eff6ff}.mode-chip.system{color:var(--amber);background:#fffbeb}.mode-chip.auto{color:var(--green);background:#ecfdf5}.record-form{gap:14px}.order-mode-card-grid,.record-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.order-mode-card-grid{gap:10px}.order-mode-card{display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-height:86px;padding:14px;border:1px solid #dbe5f2;border-radius:8px;background:#ffffff;color:var(--ink);text-align:left;cursor:pointer}.order-mode-card strong{font-size:15px}.order-mode-card span{color:var(--muted);font-size:12px;line-height:1.45}.order-mode-card.active{border-color:#2563eb;background:#eff6ff;box-shadow:inset 0 0 0 1px #2563eb}.stock-sale-panel{border-color:#bfdbfe;background:#f8fbff}.stock-sale-search{display:grid;grid-template-columns:auto minmax(220px,1fr) auto;align-items:center;gap:10px;padding:10px 12px;border:1px solid var(--border);border-radius:8px;background:#fff}.stock-sale-search input{min-width:0;border:0;outline:0;font:inherit}.stock-sale-group-title span,.stock-sale-search span{color:var(--muted);font-size:13px}.stock-sale-group-list{display:grid;gap:12px}.stock-sale-group{overflow:hidden;border:1px solid var(--border);border-radius:8px;background:#fff}.stock-sale-group-title{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border-bottom:1px solid var(--border)}.stock-sale-qty-input{width:96px;min-height:34px;text-align:right}.filter-grid{display:grid;gap:10px;align-items:end}.filter-grid,.finance-filter-grid{grid-template-columns:repeat(4,minmax(0,1fr)) auto}.finance-core-filter-grid{display:grid;grid-template-columns:minmax(180px,1.2fr) repeat(4,minmax(130px,.75fr)) auto;gap:10px;align-items:end}.filter-actions{display:flex;align-items:center;gap:8px;min-height:64px}.inline-action-form{display:inline-flex;align-items:center;gap:5px;margin:0}.inline-action-form input,.inline-action-form select{height:30px;min-width:128px;border:1px solid var(--line);border-radius:6px;padding:0 8px;background:#ffffff;color:var(--ink)}.customer-return-confirm-form{flex-wrap:wrap;max-width:360px}.customer-return-confirm-form select{min-width:180px}.status-pill{display:inline-flex;align-items:center;justify-content:center;min-height:24px;padding:2px 9px;border-radius:999px;border:1px solid #d8e3f4;background:#f7faff;color:#4b6484;font-size:12px;font-weight:700;white-space:nowrap}.status-pill.done{border-color:#bbf7d0;background:#f0fdf4;color:#15803d}.status-pill.pending{border-color:#fed7aa;background:#fff7ed;color:#c2410c}.status-pill.success{border-color:#bbf7d0;background:#ecfdf5;color:#047857}.status-pill.warning{border-color:#fed7aa;background:#fff7ed;color:#c2410c}.outbound-task-table-wrap{overflow-x:auto}.outbound-task-table td,.outbound-task-table th{vertical-align:top}.outbound-task-row.warning{background:#fffaf5}.outbound-action-form{display:grid;min-width:220px;justify-items:start}.outbound-action-form select{width:100%;min-width:220px}.outbound-action-hint{color:var(--muted);font-size:12px}.outbound-stock-detail-row>td{padding:0 14px 14px;background:#fbfdff}.outbound-stock-panel{display:grid;gap:10px;border:1px solid var(--line);border-radius:8px;background:#ffffff;padding:12px}.outbound-stock-header{display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--muted);font-size:13px}.outbound-stock-header strong{color:var(--ink);font-size:15px}.outbound-shortage{display:inline-flex;align-items:center;gap:6px;color:#c2410c;font-weight:700}.outbound-stock-lines{margin:0}.outbound-stock-lines table{min-width:840px}.search-popover{position:absolute;z-index:20;width:min(520px,100%);margin-top:6px;padding:6px;border:1px solid var(--line);border-radius:8px;background:#fff;box-shadow:0 16px 36px rgba(15,23,42,.14)}.search-popover button{display:block;width:100%;border:0;border-radius:6px;background:transparent;padding:9px 10px;text-align:left;color:var(--ink);cursor:pointer}.search-popover button:hover{background:#f1f5f9}.modal-backdrop{position:fixed;inset:0;z-index:80;display:grid;place-items:center;background:rgba(15,23,42,.32);padding:24px}.modal-card{width:min(960px,100%);max-height:min(760px,92vh);overflow:auto;border:1px solid var(--line);border-radius:8px;background:#fff;padding:22px;box-shadow:0 24px 60px rgba(15,23,42,.22)}.inline-success{display:inline-flex;align-items:center;gap:5px;color:#15803d;font-weight:700;white-space:nowrap}.inline-number-input,.inline-text-input{height:28px;border:1px solid var(--line);border-radius:6px;padding:3px 7px;font-size:12px;color:var(--ink);background:#ffffff}.inline-number-input{width:86px}.inline-text-input{width:118px}.table-action-row{flex-wrap:wrap;gap:8px}.compact-action{min-height:30px;padding:0 10px;font-size:12px}.success-text{color:#047857}.danger-text{color:var(--red)}.muted-chip{background:#f1f5f9;border:1px solid #dbe4ee;border-radius:999px;font-size:12px;font-weight:700;min-height:28px;padding:0 9px}.dev-reference-thumb,.muted-chip{align-items:center;color:#64748b;display:inline-flex}.dev-reference-thumb{background:#f8fafc;border:1px solid #dbe4ee;border-radius:8px;height:54px;justify-content:center;overflow:hidden;padding:0;width:72px}.dev-reference-thumb img{height:100%;object-fit:cover;width:100%}.dev-reference-thumb.empty{flex-direction:column;font-size:11px;gap:3px}.danger-text-button{color:var(--red)}.row-settlement-details summary{cursor:pointer;list-style:none}.row-settlement-details summary::-webkit-details-marker{display:none}.row-settlement-form{display:grid;grid-template-columns:repeat(2,minmax(120px,1fr));gap:8px;width:min(420px,82vw);margin-top:8px;border:1px solid #d8e3f4;border-radius:8px;background:#ffffff;padding:12px;white-space:normal}.row-settlement-form label{display:grid;gap:5px}.row-settlement-form span{color:#64748b;font-size:12px;font-weight:700}.row-settlement-form input,.row-settlement-form select{width:100%;height:32px;border:1px solid var(--line);border-radius:6px;background:#ffffff;color:var(--text);padding:0 8px}.row-settlement-form button{align-self:end}.finance-core-table table{min-width:980px}.finance-amount-cell{color:var(--red);font-weight:800;font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.finance-overdue-row td{background:#fff7ed}.payment-request-page{width:min(100%,1400px);margin:0 auto;display:grid;gap:12px}.payment-request-header{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;border:1px solid #dce6f4;border-radius:10px;background:#ffffff;padding:16px 18px;box-shadow:0 8px 22px rgba(15,23,42,.05)}.payment-title-row{display:flex;align-items:center;gap:10px}.payment-title-row h2{margin:0;font-size:24px;letter-spacing:0}.payment-status-pill{display:inline-flex;align-items:center;border-radius:999px;padding:5px 11px;font-size:12px;font-weight:800}.payment-status-pill.status-草稿{color:#475569;background:#f1f5f9}.payment-status-pill.status-审批中{color:#1d4ed8;background:#dbeafe}.payment-status-pill.status-已付款{color:#047857;background:#d1fae5}.payment-status-pill.status-已打回{color:#b91c1c;background:#fee2e2}.payment-doc-meta{display:flex;flex-wrap:wrap;gap:10px 28px;margin-top:10px;color:#475569;font-size:13px}.payment-doc-meta strong{color:var(--ink);font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.payment-header-actions{display:flex;align-items:center;gap:8px;white-space:nowrap}.payment-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.payment-stat-card{min-height:92px;border:1px solid #e3ebf6;border-radius:10px;padding:16px 18px;background:#ffffff;box-shadow:0 8px 22px rgba(15,23,42,.04)}.payment-stat-card p,.payment-stat-card span{color:#64748b;font-size:12px}.payment-stat-card strong{display:block;margin:7px 0 4px;font-size:25px;font-weight:900;font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.payment-stat-card p{margin:0}.payment-stat-card.tone-blue strong{color:var(--blue)}.payment-stat-card.tone-green strong{color:var(--green)}.payment-stat-card.tone-amber strong{color:#f97316}.payment-stat-card.tone-violet strong{color:#6d5dfc}.payment-main-grid,.payment-request-form{display:grid;gap:12px}.payment-main-grid{grid-template-columns:minmax(0,1.35fr) minmax(320px,.65fr);align-items:start}.payment-card{min-width:0;border:1px solid #dce6f4;border-radius:10px;background:#ffffff;padding:14px;box-shadow:0 8px 22px rgba(15,23,42,.04)}.payment-card-full,.payment-card-wide{grid-column:1/-1}.payment-card-title{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:12px;border-left:3px solid var(--blue);padding-left:9px}.payment-card-title h3{margin:0;font-size:16px}.payment-card-title span{color:#64748b;font-size:12px}.payment-field-grid{display:grid;grid-template-columns:1fr;gap:10px 12px}.payment-field-grid.two-col{grid-template-columns:repeat(2,minmax(0,1fr))}.payment-request-form .form-field{gap:5px}.payment-request-form .form-field span{font-size:12px;color:#475569}.payment-request-form input,.payment-request-form select,.payment-request-form textarea{border-color:#d5dfed;border-radius:7px}.payment-request-form input:focus,.payment-request-form select:focus,.payment-request-form textarea:focus{border-color:#3b82f6;box-shadow:0 0 0 3px rgba(59,130,246,.12);outline:none}.amount-field input{color:#e11d48;font-size:20px;font-weight:900;font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.payment-table-toolbar{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:8px}.allocation-ok,.allocation-warn{border-radius:999px;padding:5px 9px;font-size:12px;font-weight:800}.allocation-ok{color:#047857;background:#ecfdf5}.allocation-warn{color:#c2410c;background:#fff7ed}.payment-table-wrap{overflow-x:auto;border:1px solid #dbe5f2;border-radius:8px}.payment-allocation-table{width:100%;min-width:980px;border-collapse:collapse}.payment-allocation-table td,.payment-allocation-table th{border-bottom:1px solid #e4ebf5;padding:8px;text-align:left;font-size:12px;white-space:nowrap}.payment-allocation-table th{color:#475569;background:#f8fbff;font-weight:900}.payment-allocation-table tr:last-child td{border-bottom:0}.payment-allocation-table input,.payment-allocation-table select{width:100%;min-width:96px;height:30px;border:1px solid #d5dfed;border-radius:6px;padding:4px 7px;background:#ffffff;font-size:12px}.payment-row-actions{display:flex;gap:5px}.danger-icon-button{color:var(--red)}.allocation-hint{display:inline-flex;align-items:center;gap:6px;margin-top:9px;color:#047857;font-size:12px}.attachment-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.attachment-upload{position:relative;display:grid;place-items:center;gap:4px;min-height:92px;border:1px dashed #a8c0e5;border-radius:8px;background:#f8fbff;color:#2563eb;cursor:pointer;text-align:center}.attachment-upload input{position:absolute;inset:0;opacity:0;cursor:pointer}.attachment-upload strong{color:#1e293b;font-size:13px}.attachment-upload span{color:#64748b;font-size:12px}.attachment-link-field{margin-top:10px}.attachment-uploader{width:100%}.attachment-uploader-head{align-items:center;display:flex;gap:12px;justify-content:space-between;margin-bottom:10px}.attachment-uploader-head h4{font-size:15px;line-height:1.25;margin:0}.attachment-uploader-head span{color:var(--muted);display:block;font-size:12px;margin-top:3px}.attachment-uploader-list{display:grid;gap:8px;margin-top:10px}.attachment-uploader-empty,.attachment-uploader-item{align-items:center;background:#fff;border:1px solid var(--line);border-radius:8px;display:grid;gap:10px;grid-template-columns:52px minmax(0,1fr) auto;min-height:64px;padding:8px}.attachment-uploader-empty{color:var(--muted);display:flex;font-size:13px;justify-content:center}.attachment-uploader-preview{align-items:center;aspect-ratio:1;background:#f8fafc;border:1px solid var(--line);border-radius:8px;color:var(--muted);display:flex;justify-content:center;overflow:hidden}.attachment-uploader-preview img{height:100%;object-fit:cover;width:100%}.attachment-uploader-meta{min-width:0}.attachment-uploader-meta a{color:var(--text);display:block;font-size:13px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.attachment-uploader-meta span{color:var(--muted);display:block;font-size:12px;margin-top:3px}.spin-icon{animation:spin .9s linear infinite}@keyframes spin{to{transform:rotate(1turn)}}.approval-flow{position:relative;display:grid;gap:10px}.approval-node{display:grid;grid-template-columns:30px 1fr;gap:9px;align-items:start}.approval-dot{display:grid;place-items:center;width:24px;height:24px;border-radius:999px;color:#ffffff;background:var(--blue);font-size:12px;font-weight:900}.approval-node em,.approval-node span,.approval-node strong{display:block}.approval-node strong{color:var(--ink);font-size:13px}.approval-node em,.approval-node span{color:#64748b;font-size:12px;font-style:normal}.payment-note-grid{display:grid;grid-template-columns:minmax(180px,.4fr) minmax(0,1fr) minmax(0,1fr);gap:12px}.payment-sticky-actions{position:sticky;bottom:0;z-index:5;display:flex;justify-content:space-between;gap:12px;align-items:center;border:1px solid #dce6f4;border-radius:10px;background:rgba(255,255,255,.96);padding:11px 14px;box-shadow:0 -8px 24px rgba(15,23,42,.08);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.payment-sticky-actions>div{display:flex;gap:8px}.payment-form-helper,.payment-sticky-actions span{color:#64748b;font-size:12px}.payment-record-card{margin-top:12px}.payment-form-helper{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:0 4px 8px}.payment-category-form{display:grid;grid-template-columns:minmax(150px,.8fr) minmax(160px,1fr) minmax(90px,.45fr) minmax(110px,.55fr) minmax(180px,1.4fr) auto;gap:10px;align-items:end}.payment-category-inline-form{display:grid;grid-template-columns:120px 130px 70px 90px minmax(130px,1fr) auto;gap:6px;align-items:center;min-width:680px}.payment-category-inline-form input,.payment-category-inline-form select{height:30px;border:1px solid var(--line);border-radius:6px;padding:4px 7px;font-size:12px}.finance-core-form .full{grid-column:1/-1}.payment-source-summary{border:1px solid #c8d8f5;border-radius:10px;background:#f6f9ff;padding:12px 14px}.payment-source-summary>div{display:grid;gap:4px}.payment-source-summary p{margin:0;color:#64748b;font-size:13px;line-height:1.5}.payment-source-summary strong{color:#111827}.payment-source-summary.muted{background:#f8fafc;border-color:var(--line);color:#64748b}.finance-payment-editor{display:grid;gap:12px;min-width:0}.finance-entry-number{display:grid;gap:4px;border:1px solid #c8d8f5;border-radius:8px;background:#f4f8ff;padding:10px 12px}.finance-entry-number em,.finance-entry-number span{color:var(--muted);font-size:12px;font-style:normal}.finance-entry-number strong{color:var(--blue);font-size:18px}.finance-payment-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;align-items:stretch}.exception-claim-editor{grid-column:1/-1;display:grid;grid-template-columns:1fr;gap:14px;min-width:0}.exception-form-section,.exception-summary-card{min-width:0;border:1px solid var(--line);border-radius:8px;background:#ffffff}.exception-summary-card{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:12px;background:#f8fbff;border-color:#d5e3ff}.exception-profit-card,.exception-summary-card>div{display:grid;gap:5px;min-width:0;border-radius:7px;background:rgba(255,255,255,.82);padding:10px 12px}.exception-info-card span,.exception-profit-card span,.exception-section-title span,.exception-summary-card span{color:var(--muted);font-size:12px}.exception-info-card strong,.exception-profit-card strong,.exception-summary-card strong{overflow:hidden;color:#111827;font-size:16px;text-overflow:ellipsis;white-space:nowrap}.exception-form-section{display:grid;gap:12px;padding:14px}.exception-section-title{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding-bottom:10px;border-bottom:1px solid var(--line)}.exception-section-title h3{margin:0;font-size:16px}.exception-form-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:12px;align-items:stretch}.exception-form-grid>.exception-info-card,.exception-form-grid>.exception-profit-card,.exception-form-grid>.form-field{grid-column:span 3;min-width:0}.exception-form-grid>.exception-span-2{grid-column:span 6}.exception-form-grid .form-field{align-content:start}.exception-form-grid .form-field input,.exception-form-grid .form-field select{min-height:38px}.exception-form-grid .form-field input+input,.exception-form-grid .form-field input+select,.exception-form-grid .form-field select+input{margin-top:8px}.customer-exception-search-field,.exception-search-field{position:relative}.exception-combobox{display:flex;align-items:center;gap:8px;min-height:38px;border:1px solid var(--line);border-radius:8px;background:#ffffff;padding:0 10px}.exception-combobox:focus-within{border-color:#93c5fd;box-shadow:0 0 0 3px rgba(59,130,246,.12)}.exception-combobox input{min-height:36px!important;border:0!important;box-shadow:none!important;padding:0!important}.exception-combobox button{display:inline-grid;place-items:center;width:24px;height:24px;border:0;border-radius:999px;background:#eef2ff;color:#475569;cursor:pointer}.exception-search-dropdown{position:absolute;z-index:40;top:calc(100% + 6px);left:0;right:0;max-height:260px;overflow-y:auto;border:1px solid #bfdbfe;border-radius:8px;background:#ffffff;box-shadow:0 18px 42px rgba(15,23,42,.16);padding:6px}.exception-search-dropdown button{display:grid;width:100%;gap:3px;border:0;border-radius:7px;background:transparent;color:inherit;cursor:pointer;padding:9px 10px;text-align:left}.exception-search-dropdown button:focus,.exception-search-dropdown button:hover{background:#eff6ff}.exception-search-dropdown strong{overflow:hidden;color:#111827;font-size:14px;text-overflow:ellipsis;white-space:nowrap}.exception-search-dropdown span,.exception-search-empty,.field-hint{color:var(--muted);font-size:12px}.exception-search-empty{padding:10px}.field-hint{display:inline-flex;align-items:center;gap:5px;margin-top:6px}.exception-evidence-dropzone{display:grid;place-items:center;gap:5px;min-height:118px;border:1px dashed #93c5fd;border-radius:8px;background:#f8fbff;color:#1d4ed8;cursor:pointer;padding:14px;text-align:center;transition:border-color .15s ease,background .15s ease}.exception-evidence-dropzone.dragging{border-color:#2563eb;background:#eff6ff}.exception-evidence-dropzone input{display:none}.exception-evidence-dropzone strong{color:#1e3a8a;font-size:14px}.exception-evidence-dropzone small{color:var(--muted);font-size:12px}.exception-evidence-thumbs{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}.exception-evidence-thumb{position:relative;width:68px;height:68px;overflow:hidden;border:1px solid var(--line);border-radius:8px;background:#f8fafc}.exception-evidence-thumb img{width:100%;height:100%;object-fit:cover}.exception-evidence-thumb button{position:absolute;top:4px;right:4px;display:inline-grid;place-items:center;width:20px;height:20px;border:0;border-radius:999px;background:rgba(15,23,42,.72);color:#ffffff;cursor:pointer}.exception-info-card{display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:8px;background:#f8fafc;padding:10px 12px}.exception-info-card>div{display:grid;gap:3px;min-width:0}.exception-info-card p{margin:0;overflow:hidden;color:var(--muted);font-size:12px;text-overflow:ellipsis;white-space:nowrap}.exception-amount-section{background:#fbfcff}.exception-amount-section .exception-form-grid{border:1px solid #dbeafe;border-radius:8px;background:#f5f9ff;padding:12px}.exception-profit-card{border:1px solid #bfdbfe;background:#eff6ff}.exception-profit-card strong{color:var(--blue);font-size:20px}.exception-profit-card small{color:var(--muted);font-size:12px}.exception-inline-hint{display:flex;align-items:center;min-height:42px;border:1px solid #bfdbfe;border-radius:8px;background:#eff6ff;color:#1d4ed8;font-size:13px;line-height:1.45;padding:10px 12px}.customer-exception-header{align-items:flex-start}.customer-exception-header .action-row{align-items:center;flex-wrap:wrap;justify-content:flex-end}.customer-exception-document-summary{display:grid;grid-template-columns:1.2fr 1fr 1.45fr 1.15fr 1.25fr 1fr 1.2fr;overflow:hidden;border:1px solid #dbeafe;border-radius:8px;background:#ffffff;box-shadow:0 8px 24px rgba(15,23,42,.04)}.customer-exception-document-summary .summary-item{display:grid;gap:7px;min-height:78px;min-width:0;border-right:1px solid #e5edf8;padding:14px 18px}.customer-exception-document-summary .summary-item:last-child{border-right:0}.customer-exception-document-summary .summary-item span{color:var(--muted);font-size:12px}.customer-exception-document-summary .summary-item strong{overflow:hidden;color:#111827;font-size:15px;text-overflow:ellipsis;white-space:nowrap}.customer-exception-document-summary .summary-item.danger strong{color:#dc2626}.customer-exception-document-summary .summary-item.warning strong{color:#f97316}.customer-exception-summary{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px;border:1px solid #dbeafe;border-radius:8px;background:linear-gradient(180deg,#f8fbff,#ffffff);padding:12px}.customer-exception-summary .summary-item,.info-pair,.readonly-box{display:grid;gap:4px;min-width:0}.customer-exception-summary .summary-item{border:1px solid #e5edf8;border-radius:7px;background:#ffffff;padding:10px 12px}.customer-exception-profit span,.customer-exception-summary .summary-item span,.customer-exception-timeline-node small,.customer-exception-upload small,.info-pair span,.readonly-box span{color:var(--muted);font-size:12px}.customer-exception-summary .summary-item strong,.info-pair strong,.readonly-box strong{overflow:hidden;color:#111827;font-size:15px;text-overflow:ellipsis;white-space:nowrap}.customer-exception-summary .summary-item.danger strong{color:#dc2626}.customer-exception-card{display:grid;gap:14px;border:1px solid var(--line);border-radius:8px;background:#ffffff;padding:16px}.customer-exception-basic-card{padding:16px 18px}.customer-exception-card-title{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;border-bottom:1px solid var(--line);padding-bottom:10px}.customer-exception-card-title h3{margin:0;color:#111827;font-size:17px;font-weight:800}.customer-exception-card-title span{max-width:620px;color:var(--muted);font-size:12px;line-height:1.5;text-align:right}.customer-exception-grid{display:grid;gap:12px;align-items:stretch}.customer-exception-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.customer-exception-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.customer-exception-grid.six{grid-template-columns:repeat(6,minmax(0,1fr))}.customer-exception-grid .full-span{grid-column:1/-1}.customer-exception-grid .form-field input,.customer-exception-grid .form-field select{min-height:38px}.customer-exception-grid .form-field textarea{min-height:96px}.amount-input{text-align:right}.readonly-box{justify-content:center;min-height:66px;border:1px solid var(--line);border-radius:8px;background:#f8fafc;padding:10px 12px}.readonly-box.highlight{border-color:#fed7aa;background:#fff7ed}.readonly-box.highlight strong{color:#ea580c}.customer-exception-order-card{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;overflow:hidden;border:1px solid #dbeafe;border-radius:8px;background:#ffffff}.customer-exception-order-card .info-pair{min-height:68px;border-right:1px solid #e5edf8;border-bottom:1px solid #e5edf8;padding:12px}.customer-exception-order-card .info-pair:nth-child(5n){border-right:0}.customer-exception-empty-card{display:flex;align-items:center;gap:10px;border:1px dashed #bfdbfe;border-radius:8px;background:#f8fbff;color:var(--muted);padding:18px}.customer-exception-amount-card{border-color:#fed7aa;background:#fffaf4}.customer-exception-amount-card .customer-exception-card-title{border-color:#fed7aa}.customer-exception-detail-card{gap:10px}.customer-exception-detail-toolbar{display:flex;justify-content:flex-end;align-items:center;gap:8px}.customer-exception-claim-table{width:100%;min-width:1500px}.customer-exception-claim-table td,.customer-exception-claim-table th{white-space:nowrap}.customer-exception-claim-table .amount-cell{text-align:right}.customer-exception-claim-table input,.customer-exception-claim-table select{width:100%;min-width:120px;border:1px solid #d9e2ec;border-radius:6px;background:#fff;padding:7px 9px;font:inherit}.customer-exception-claim-table select{min-width:190px}.customer-exception-table-money{width:128px;border:1px solid #fecaca;border-radius:6px;background:#fff7f7;color:#dc2626;font-weight:800;padding:7px 9px}.customer-exception-add-line{justify-self:center}.customer-exception-lower-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(360px,.75fr);gap:12px;align-items:start}.customer-exception-attachment-card,.customer-exception-total-card{min-height:100%}.customer-exception-total-strip{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));overflow:hidden;border:1px solid #e5edf8;border-radius:8px;background:#f8fafc}.customer-exception-total-strip .info-pair{min-height:76px;border-right:1px solid #e5edf8;padding:12px;text-align:center}.customer-exception-total-strip .info-pair:last-child{border-right:0;background:#fff7ed}.customer-exception-total-strip .info-pair:last-child strong,.customer-exception-total-strip .info-pair:nth-child(3) strong{color:#dc2626}.customer-exception-profit{display:grid;gap:4px;align-content:center;min-height:70px;border:1px solid #fdba74;border-radius:8px;background:#fff7ed;padding:10px 12px}.customer-exception-profit strong{color:#c2410c;font-size:21px}.customer-exception-profit small{color:#9a3412;font-size:12px}.soft-warning{border:1px solid #bbf7d0;border-radius:8px;background:#f0fdf4;color:#166534;padding:10px 12px;font-size:13px}.customer-exception-table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:8px}.customer-exception-split-table{width:100%;min-width:760px}.customer-exception-split-table input{width:100%;border:1px solid var(--line);border-radius:6px;padding:7px 9px}.customer-exception-upload{display:grid;grid-template-columns:auto 1fr;gap:4px 8px;align-items:center;min-height:68px;border:1px dashed #bfdbfe;border-radius:8px;background:#f8fbff;padding:12px}.customer-exception-upload span{color:#1d4ed8;font-weight:800}.customer-exception-upload small{grid-column:2}.customer-exception-timeline{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;border-top:1px solid var(--line);padding-top:12px}.customer-exception-timeline-node{display:grid;gap:5px;min-width:0;border:1px solid var(--line);border-radius:8px;background:#f8fafc;padding:10px}.customer-exception-timeline-node span{display:grid;place-items:center;width:22px;height:22px;border-radius:999px;background:#e0ecff;color:#1d4ed8;font-size:12px;font-weight:800}.customer-exception-timeline-node strong{color:#111827;font-size:13px}.customer-exception-footer-actions{display:flex;justify-content:flex-end;gap:10px}.finance-wide-table{overflow-x:auto}.finance-wide-table table{min-width:1580px}.finance-wide-table .finance-cost-table{min-width:980px}.tab-row{display:flex;gap:8px;margin:0 0 10px}.tab-button{height:32px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:6px;padding:0 12px;background:#ffffff;color:var(--muted);font-size:13px}.tab-button.active{border-color:var(--blue);background:#eff6ff;color:var(--blue);font-weight:700}.record-form.style-record-form{grid-template-columns:1fr;gap:12px;min-width:0}.style-role-scope{display:grid;gap:12px;min-width:0}.style-role-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #c8d8f5;border-radius:8px;background:#f4f8ff;padding:10px 12px}.style-role-toolbar span,.style-role-toolbar strong{display:block}.style-role-toolbar label{min-width:210px;display:grid;gap:5px;color:#3d4856;font-size:12px}.style-role-toolbar select{width:100%;height:34px;border:1px solid var(--line);border-radius:6px;padding:6px 9px;background:#ffffff;color:var(--text)}.form-panel{display:grid;gap:8px;min-width:0;border:1px solid var(--line);border-radius:8px;background:#ffffff;padding:10px}.form-panel-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:6px;border-bottom:1px solid var(--line)}.panel-heading h4{margin:0;font-size:15px}.panel-heading span{display:block;margin-top:4px;color:var(--muted);font-size:12px}.style-role-scope.hide-costs .cost-only{display:none}.permission-lock,.permission-note{display:flex;align-items:flex-start;gap:9px;border-radius:8px;padding:10px 12px;font-size:13px}.permission-lock{border:1px solid #f4c7c3;background:#fff7f6;color:#8f2d26}.permission-note{border:1px solid #b7dfc7;background:#f0fdf4;color:#166534}.permission-lock span,.permission-lock strong{display:block}.permission-lock span{margin-top:3px;color:#9f3a33}.list-toolbar{margin-bottom:12px}.style-list-card,.style-list-grid{display:grid;gap:8px}.style-list-card{grid-template-columns:minmax(130px,1fr) minmax(96px,.55fr) minmax(180px,1fr) minmax(280px,1.55fr) auto;align-items:stretch;border:1px solid var(--line);border-radius:8px;background:#ffffff;padding:8px}.style-list-grid.business-only .style-list-card{grid-template-columns:minmax(130px,1.1fr) minmax(96px,.55fr) minmax(180px,1.1fr) minmax(150px,.75fr) auto}.style-basic-cell,.style-cost-locked,.style-list-actions,.style-price-cell{min-width:0;display:grid;align-content:center;border-radius:7px;background:var(--panel-2);padding:7px}.style-basic-cell strong,.style-price-cell strong{font-size:15px}.style-basic-cell small,.style-basic-cell span,.style-price-cell span{color:var(--muted)}.style-basic-cell span{margin-top:3px}.style-basic-cell small{margin-top:2px;font-size:11px}.style-price-cell strong{margin-top:5px;color:var(--blue);font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.style-image-pair{min-width:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.style-list-image{min-width:0;display:grid;gap:3px}.style-list-image>div,.style-list-thumbnail{position:relative;width:100%;aspect-ratio:16/9;display:grid;place-items:center;overflow:hidden;border:1px solid var(--line);border-radius:7px;background:#ffffff}.style-list-image img{width:100%;height:100%;object-fit:contain;background:#ffffff}.style-list-image>div{color:var(--muted)}.style-list-image>div span{font-size:12px}.style-list-image small{color:var(--muted);font-size:11px;text-align:center}.style-cost-grid{min-width:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.style-cost-item{min-height:42px;display:grid;align-content:center;gap:2px;border:1px solid var(--line);border-radius:7px;background:var(--panel-2);padding:6px}.style-cost-item span{color:var(--muted);font-size:11px}.style-cost-item strong{font-size:13px;font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.style-cost-item.strong{border-color:#b8cdfb;background:#eff6ff}.style-cost-item.strong strong{color:var(--blue)}.style-cost-locked{border:1px solid #f4c7c3;background:#fff7f6;color:#8f2d26;font-size:12px}.style-list-actions{justify-items:center;min-width:48px}.erp-style-list .style-list-card{grid-template-columns:96px minmax(260px,1.5fr) minmax(260px,1.35fr) minmax(170px,.9fr) minmax(140px,.75fr) minmax(92px,auto);gap:12px;align-items:center;min-height:118px;padding:10px}.style-list-thumb-cell{min-width:0}.style-list-thumb-cell .style-list-image{gap:0}.style-list-thumb-cell .style-list-image>div,.style-list-thumb-cell .style-list-thumbnail{width:88px;height:88px;aspect-ratio:1/1;border-radius:8px}.style-list-thumb-cell .style-list-image small{display:none}.style-business-panel,.style-completeness-panel,.style-cost-mini,.style-main-info{min-width:0}.style-main-info{display:grid;gap:7px}.style-main-info>strong{color:var(--ink);font-size:15px;line-height:1.2}.style-main-info>span{color:var(--ink);font-size:14px;font-weight:700;line-height:1.2}.style-meta-line{min-width:0;display:flex;flex-wrap:wrap;gap:6px 12px;align-items:center}.style-meta-line small{color:var(--muted);font-size:12px}.style-completeness-panel{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 10px;padding-left:12px;border-left:1px solid var(--line)}.style-status-line{min-width:0;gap:5px;color:var(--muted)}.style-status-badge,.style-status-line{display:inline-flex;align-items:center;font-size:12px;white-space:nowrap}.style-status-badge{min-height:22px;border-radius:6px;padding:2px 7px;background:#f3f6fb;color:#526173;font-weight:700}.style-status-badge.success{background:#e9f8ef;color:#16803f}.style-status-badge.warning{background:#fff4e5;color:#b76500}.style-status-badge.danger{background:#fff0f0;color:#c02f2f}.style-status-badge.info{background:#eaf2ff;color:var(--blue)}.style-business-panel,.style-cost-mini{display:grid;gap:8px;color:var(--muted);font-size:12px;padding-left:12px;border-left:1px solid var(--line)}.style-business-panel strong,.style-cost-mini strong{color:var(--ink);font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.style-cost-mini{opacity:.88}.style-cost-mini.locked{color:#9f3a33}.erp-style-list .style-list-actions{display:grid;align-content:center;justify-items:start;gap:9px;min-width:0;background:transparent;padding:0 0 0 10px;border-left:1px solid var(--line)}.form-field{position:relative;display:grid;gap:7px}.form-field.full{grid-column:1/-1}.form-field span{color:#3d4856;font-size:13px}.form-field input,.form-field select,.form-field textarea{width:100%;border:1px solid var(--line);border-radius:6px;background:#ffffff;padding:8px 9px;color:var(--text)}.form-field input,.form-field select{height:36px}.checkbox-field{align-content:start}.checkbox-field input[type=checkbox]{width:18px;height:18px;padding:0}.form-actions{grid-column:1/-1;display:flex;align-items:center;gap:12px;padding-top:4px}.form-actions span{color:var(--muted);font-size:13px}.style-media-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.style-media-grid.full{grid-column:1/-1}.media-card{display:grid;gap:6px;border:1px solid var(--line);border-radius:8px;background:var(--panel-2);padding:8px}.media-card.dragging{border-color:var(--blue);background:#eff6ff}.media-card-title{min-height:32px;display:flex;align-items:center;gap:10px}.media-card-title h4{margin:0;font-size:14px}.media-card-title span{display:block;margin-top:3px;color:var(--muted);font-size:11px}.media-card input{width:100%;height:30px;border:1px solid var(--line);border-radius:6px;padding:5px 7px;background:#ffffff;font-size:12px}.media-card .media-file-input{position:absolute;width:1px;height:1px;overflow:hidden;opacity:0;pointer-events:none}.file-picker-label{position:relative;white-space:nowrap}.media-url-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px}.media-status{color:var(--muted);font-size:12px}.media-status.error{color:#dc2626}.media-preview{aspect-ratio:16/7;display:grid;place-items:center;overflow:hidden;border:1px dashed #b8c3cf;border-radius:8px;background:#ffffff}.media-preview-button,.media-preview-image{position:relative;width:100%;height:100%}.media-preview-button{display:block;border:0;padding:0;background:#ffffff;cursor:zoom-in}.media-preview-button img{width:100%;height:100%;object-fit:contain;background:#ffffff}.media-preview-button span{position:absolute;right:6px;bottom:6px;display:inline-flex;align-items:center;gap:4px;border-radius:999px;padding:4px 7px;background:rgba(17,24,39,.78);color:#ffffff;font-size:11px}.media-remove-button{position:absolute;top:6px;right:6px;width:24px;height:24px;display:grid;place-items:center;border:1px solid #fecaca;border-radius:999px;background:#fff1f2;color:#dc2626;cursor:pointer}.media-empty-upload{width:100%;height:100%;display:grid;place-items:center;gap:8px;border:0;background:transparent;color:var(--muted);cursor:pointer;font-size:13px}.media-empty-upload.disabled{cursor:not-allowed;opacity:.55}.media-preview>div:not(.media-preview-image){display:grid;place-items:center;gap:8px;color:var(--muted);font-size:13px}.media-modal{position:fixed;inset:0;z-index:50;display:grid;place-items:center;padding:28px;background:rgba(15,23,42,.78)}.media-modal img{max-width:min(1100px,92vw);max-height:88vh;object-fit:contain;border-radius:8px;background:#ffffff;box-shadow:0 18px 50px rgba(0,0,0,.35)}.media-modal-close{position:fixed;top:18px;right:18px;width:38px;height:38px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.3);border-radius:999px;background:rgba(15,23,42,.86);color:#ffffff;cursor:pointer}.size-breakdown{display:grid;gap:8px;min-width:0;border:1px solid var(--line);border-radius:8px;background:var(--panel-2);padding:9px}.size-breakdown.full{grid-column:1/-1}.size-breakdown-header{display:flex;align-items:center;justify-content:space-between;gap:10px}.size-breakdown-header h4{margin:0;font-size:14px}.size-breakdown-header span{display:block;margin-top:3px;color:var(--muted);font-size:11px}.size-table-wrap{min-width:0;overflow-x:auto;border:1px solid var(--line);border-radius:8px;background:#ffffff}.size-table{min-width:520px}.size-table td,.size-table th{padding:5px 6px;vertical-align:middle;font-size:12px}.size-table input:not([type=checkbox]){width:100%;height:28px;border:1px solid var(--line);border-radius:5px;padding:4px 6px;background:#ffffff;font-size:12px}.size-check{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;color:#3d4856}.size-check input{width:14px;height:14px}.size-breakdown-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;color:var(--muted);font-size:12px}.size-breakdown-footer strong{color:var(--text);font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.order-size-table,.style-size-table{min-width:420px}.readonly-size{display:inline-flex;align-items:center;min-height:28px;min-width:56px;border-radius:5px;background:#eef2f6;padding:4px 8px;color:#233143;font-weight:700}.empty-size-state{border:1px dashed #b8c3cf;border-radius:8px;background:#ffffff;padding:14px;color:var(--muted);font-size:13px}.order-style-block{display:grid;gap:9px;min-width:0;border:1px solid var(--line);border-radius:8px;background:#ffffff;padding:10px}.order-style-block.full{grid-column:1/-1}.production-schedule-block{display:grid;gap:9px;min-width:0;border:1px solid var(--line);border-radius:8px;background:#ffffff;padding:10px}.production-schedule-block.full{grid-column:1/-1}.order-style-header h4{margin:0;font-size:14px}.order-style-header span{display:block;margin-top:3px;color:var(--muted);font-size:11px}.order-style-grid{display:grid;grid-template-columns:minmax(220px,1.4fr) minmax(180px,.9fr) minmax(140px,.7fr);gap:10px;align-items:end}.archive-combobox-field{min-width:0}.archive-combobox{position:relative}.archive-combobox input{width:100%}.archive-combobox-menu{position:absolute;z-index:140;top:calc(100% + 5px);left:0;right:0;max-height:270px;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;border:1px solid #cbd5e1;border-radius:8px;background:#ffffff;box-shadow:0 18px 42px rgba(15,23,42,.15);padding:5px}.archive-combobox-option{width:100%;display:grid;gap:3px;border:0;border-radius:6px;background:transparent;padding:8px 9px;text-align:left;color:var(--text);cursor:pointer}.archive-combobox-option.active,.archive-combobox-option:hover{background:#eef5ff}.archive-combobox-option span,.archive-combobox-option strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.archive-combobox-option strong{font-size:13px}.archive-combobox-option span{color:var(--muted);font-size:11px}.archive-combobox-state{padding:10px;color:var(--muted);font-size:12px}.production-select-grid{display:grid;grid-template-columns:minmax(130px,.6fr) minmax(260px,1.35fr) minmax(180px,.85fr) minmax(210px,1fr) minmax(180px,.85fr);gap:10px;align-items:end}.style-readonly-card{min-height:36px;display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:6px;background:var(--panel-2);padding:7px 9px}.style-readonly-card span,.style-readonly-card strong{display:block}.style-readonly-card span{color:var(--muted);font-size:11px}.style-readonly-card strong{margin-top:2px;font-size:13px}.order-items-toolbar{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.inline-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}.order-items-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.order-items-summary div{border:1px solid var(--line);border-radius:7px;background:var(--panel-2);padding:8px 10px}.order-items-summary span,.order-items-summary strong{display:block}.order-items-summary span{color:var(--muted);font-size:11px}.order-items-summary strong{margin-top:4px;font-size:16px}.order-items-bulk{display:grid;grid-template-columns:minmax(140px,180px) minmax(160px,200px) auto;gap:8px;align-items:end}.order-items-bulk label,.order-items-bulk span{display:grid;gap:4px;font-size:12px;color:var(--muted)}.order-import-panel{display:grid;gap:8px;border:1px dashed #bfdbfe;border-radius:8px;background:#eff6ff;padding:10px}.order-items-table input{width:112px;min-height:32px}.row-actions{display:inline-flex;gap:6px}.row-actions button{width:30px;height:30px;border:1px solid var(--line);border-radius:6px;background:#fff;cursor:pointer}.mini-placeholder,.row-actions button{display:inline-flex;align-items:center;justify-content:center;color:var(--muted)}.mini-placeholder{width:48px;height:48px;border:1px solid var(--line);border-radius:7px;font-size:11px}.erp-modal-backdrop{position:fixed;inset:0;z-index:120;display:flex;align-items:center;justify-content:center;background:rgba(15,23,42,.38);padding:24px}.erp-style-picker{width:min(1180px,96vw);max-height:88vh;overflow:hidden;display:grid;grid-template-rows:auto 1fr;border-radius:12px;background:#fff;box-shadow:0 28px 80px rgba(15,23,42,.28)}.erp-style-picker-header{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line);padding:14px 16px}.erp-style-picker-header h3{margin:0;font-size:18px}.erp-style-picker-header span{display:block;margin-top:4px;color:var(--muted);font-size:12px}.erp-style-picker-body{min-height:0;display:grid;grid-template-columns:340px 1fr}.erp-style-picker-list{min-height:0;display:grid;grid-template-rows:auto 1fr;gap:10px;border-right:1px solid var(--line);background:#f8fafc;padding:12px}.erp-style-picker-results{min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;display:grid;align-content:start;gap:7px}.erp-style-picker-results button{display:grid;grid-template-columns:48px 1fr;gap:8px;align-items:center;border:1px solid var(--line);border-radius:8px;background:#fff;padding:7px;text-align:left;cursor:pointer}.erp-style-picker-results button.active{border-color:#2563eb;background:#eff6ff}.erp-style-picker-results img{width:48px;height:48px;object-fit:cover;border-radius:7px}.erp-style-picker-results small,.erp-style-picker-results span,.erp-style-picker-results strong{display:block}.erp-style-picker-results small{margin-top:3px;color:var(--muted)}.erp-style-picker-detail{min-height:0;overflow:auto;display:grid;align-content:start;gap:12px;padding:14px}.style-picker-main{display:grid;grid-template-columns:150px 1fr;gap:12px;align-items:center}.style-picker-empty,.style-picker-main img{width:150px;height:150px;border:1px solid var(--line);border-radius:9px;object-fit:cover;background:var(--panel-2)}.style-picker-empty{display:flex;align-items:center;justify-content:center;flex-direction:column;color:var(--muted)}.picker-size-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:8px}.picker-size-grid label{display:grid;gap:5px}.picker-size-grid span{color:var(--muted);font-size:12px}.archive-link-column dd{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.archive-link-column a{color:var(--primary);font-weight:700;text-decoration:none}.archive-status{display:inline-flex;align-items:center;min-height:20px;border:1px solid #fecaca;border-radius:999px;background:#fff1f2;padding:1px 8px;color:#b91c1c;font-size:11px;font-weight:700}.archive-status.active{border-color:#bbf7d0;background:#f0fdf4;color:#15803d}.order-number-card{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #b8cdfb;border-radius:8px;background:#eff6ff;padding:10px 12px}.order-number-card.full{grid-column:1/-1}.order-number-card span,.order-number-card strong{display:block}.order-number-card span{color:var(--muted);font-size:12px}.order-number-card strong{margin-top:3px;color:var(--blue);font-size:20px;font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.order-number-card p{display:inline-flex;align-items:center;gap:5px;margin:0;color:#41546b;font-size:12px}.schedule-table-wrap{min-width:0;display:grid;gap:7px}.schedule-summary{display:flex;justify-content:space-between;gap:10px;color:var(--muted);font-size:12px}.schedule-summary strong{color:var(--text)}.compact-entry-table{width:100%;border-collapse:collapse;overflow:hidden;border:1px solid var(--line);border-radius:8px;background:#ffffff}.compact-entry-table td,.compact-entry-table th{border-bottom:1px solid var(--line);padding:5px 7px;text-align:left;font-size:12px}.compact-entry-table tr:last-child td{border-bottom:0}.compact-entry-table input,.compact-entry-table select{width:100%;height:28px;border:1px solid var(--line);border-radius:5px;padding:4px 6px;font-size:12px}.production-task-list{display:grid;gap:10px}.production-task-list.order-grouped{gap:12px}.finished-flow-list{display:grid;gap:10px}.finished-flow-card{border:1px solid var(--line);border-radius:8px;background:#ffffff;padding:9px}.finished-flow-main{display:grid;grid-template-columns:minmax(150px,.95fr) minmax(170px,1fr) minmax(150px,.9fr) minmax(150px,.9fr) minmax(150px,.9fr) minmax(150px,.9fr);gap:7px}.flow-info-cell,.flow-number-cell,.flow-total-card{min-width:0;display:grid;align-content:center;border-radius:7px;background:var(--panel-2);padding:8px}.flow-info-cell span,.flow-number-cell span,.flow-total-card span{color:var(--muted);font-size:12px}.flow-info-cell strong,.flow-number-cell strong,.flow-total-card strong{margin-top:4px;font-size:14px}.flow-info-cell small{margin-top:3px;color:var(--muted);font-size:12px}.flow-confirm-panel{margin-top:8px}.compact-flow-grid{grid-template-columns:minmax(190px,.9fr) minmax(190px,.9fr) minmax(130px,.5fr)}.batch-action-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px;border:1px solid var(--line);border-radius:8px;background:var(--panel-2);padding:9px 10px}.batch-action-bar span,.batch-action-bar strong{display:block}.batch-action-bar span{margin-top:3px;color:var(--muted);font-size:12px}.production-task-card{min-width:0;display:grid;gap:8px;border:1px solid var(--line);border-radius:8px;background:#ffffff;padding:9px}.production-order-card{gap:10px}.production-order-compact,.production-order-main{display:grid;grid-template-columns:76px minmax(170px,1.1fr) minmax(180px,1fr) repeat(3,minmax(120px,.72fr));gap:7px;align-items:stretch}.production-order-compact{grid-template-columns:64px minmax(190px,1.2fr) minmax(220px,1.25fr) minmax(110px,.55fr) auto;align-items:center}.production-order-detail{display:grid;gap:9px;border-top:1px solid var(--line);padding-top:9px}.production-task-main{display:grid;grid-template-columns:28px 64px minmax(150px,1.1fr) minmax(90px,.55fr) minmax(110px,.75fr) minmax(150px,1fr) minmax(165px,.98fr) minmax(72px,.42fr);gap:7px;align-items:stretch}.task-select-box{display:grid;place-items:center;border-radius:7px;background:var(--panel-2)}.task-select-box input{width:16px;height:16px}.task-image-cell{width:64px;height:52px;display:grid;place-items:center;overflow:hidden;border:1px solid var(--line);border-radius:7px;background:var(--panel-2);color:var(--muted);font-size:11px}.task-image-cell img{width:100%;height:100%;object-fit:contain}.task-image-cell.compact-thumb{width:64px;height:56px}.task-identity.order strong{font-size:14px}.compact-process-cell,.compact-progress-cell,.compact-summary-cell{min-width:0;display:grid;align-content:center;gap:2px;border-radius:7px;background:var(--panel-2);padding:7px 8px}.compact-process-cell span,.compact-progress-cell span,.compact-summary-cell span{overflow:hidden;color:var(--muted);font-size:11px;text-overflow:ellipsis;white-space:nowrap}.compact-process-cell strong,.compact-progress-cell strong,.compact-summary-cell strong{overflow:hidden;color:var(--text);font-size:13px;text-overflow:ellipsis;white-space:nowrap}.compact-progress-cell strong{color:#2563eb;font-size:16px}.compact-expand-button{min-height:36px;white-space:nowrap}.task-identity,.task-pill{min-width:0;display:grid;align-content:center;gap:2px;border-radius:7px;background:var(--panel-2);padding:6px 7px}.task-identity strong,.task-pill strong{overflow:hidden;color:var(--text);font-size:13px;text-overflow:ellipsis;white-space:nowrap}.task-identity small,.task-identity span,.task-pill span{overflow:hidden;color:var(--muted);font-size:11px;text-overflow:ellipsis;white-space:nowrap}.task-subline{display:flex;flex-wrap:wrap;gap:6px;color:var(--muted);font-size:12px}.task-subline span{display:inline-flex;align-items:center;gap:4px;min-height:24px;border:1px solid var(--line);border-radius:999px;background:var(--panel-2);padding:3px 8px}.task-subline .status-done{border-color:#b7dfc7;background:#f0fdf4;color:#166534}.task-subline .over-receipt-warning{border-color:#fcd34d;background:#fffbeb;color:#92400e}.task-action-panels{display:grid;gap:7px}.process-step-row{display:grid;grid-auto-columns:minmax(180px,1fr);grid-auto-flow:column;gap:8px;overflow-x:auto;padding:2px 0 4px}.process-step{min-width:180px;display:grid;gap:3px;border:1px solid var(--line);border-radius:8px;background:var(--panel-2);padding:8px;text-align:left;cursor:pointer}.process-step.selected{border-color:#2563eb;background:#eff6ff;box-shadow:inset 0 0 0 1px rgba(37,99,235,.12)}.process-step.done{border-color:#bbf7d0;background:#f0fdf4}.process-step.active{border-color:#fed7aa;background:#fff7ed}.process-step small,.process-step span,.process-step strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.process-step span{color:var(--text);font-size:13px;font-weight:800}.process-step strong{color:#1d4ed8;font-size:12px}.process-step.done strong{color:#166534}.process-step.active strong{color:#9a3412}.process-step small{color:var(--muted);font-size:11px}.process-detail-panel{display:grid;gap:8px;border:1px solid var(--line);border-radius:8px;background:#ffffff;padding:9px}.process-task-selector{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:7px}.process-task-tab{min-width:0;display:grid;gap:2px;border:1px solid var(--line);border-radius:8px;background:var(--panel-2);padding:7px;text-align:left;cursor:pointer}.process-task-tab.active{border-color:#2563eb;background:#eff6ff}.process-task-tab small,.process-task-tab span,.process-task-tab strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.process-task-tab span{color:var(--text);font-size:12px;font-weight:800}.process-task-tab strong{color:#263546;font-size:12px}.process-task-tab small{color:var(--muted);font-size:11px}.selected-task-toolbar{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.task-select-inline{min-height:34px;display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);border-radius:7px;background:var(--panel-2);padding:6px 9px;color:#263546;font-size:12px;font-weight:700}.task-select-inline input{width:15px;height:15px}.inline-details summary{min-height:34px;display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);border-radius:7px;background:#ffffff;padding:6px 10px;color:#263546;cursor:pointer;font-size:12px;font-weight:700}.inline-details>form{margin-top:8px;border:1px solid var(--line);border-radius:8px;background:#ffffff}.mini-payment-form{display:grid;gap:6px;min-width:178px;padding:8px}.mini-payment-form input,.mini-payment-form select{width:100%;height:30px;border:1px solid var(--line);border-radius:6px;background:#ffffff;padding:5px 7px;color:var(--text);font-size:12px}.mini-payment-form button{min-height:30px;justify-content:center}.task-quick-actions{display:flex;justify-content:flex-start}.task-details{border:1px solid var(--line);border-radius:8px;background:#ffffff}.task-details summary{min-height:34px;display:flex;align-items:center;gap:6px;padding:7px 9px;color:#263546;cursor:pointer;font-size:13px;font-weight:700}.process-flow-adjustment.needs-adjustment{border-color:#fecaca;background:#fffafa}.process-flow-adjustment.needs-adjustment>summary{color:#dc2626;font-weight:700}.process-flow-adjustment.needs-adjustment>summary::marker{color:#dc2626}.receipt-context-strip{display:flex;flex-wrap:wrap;gap:8px;border-top:1px solid var(--line);background:#f8fafc;padding:8px 9px;color:var(--muted);font-size:12px}.receipt-context-strip span{display:inline-flex;align-items:center;gap:4px;border:1px solid #dbeafe;border-radius:999px;background:#eff6ff;padding:4px 8px}.receipt-context-strip strong{color:var(--text)}.receipt-inline-form{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;border-top:1px solid var(--line);padding:9px}.receipt-inline-form.size-first{grid-template-columns:180px minmax(0,1fr) 260px auto}.receipt-inline-form label{display:grid;gap:5px}.receipt-inline-form label.full,.receipt-inline-form.size-first label.full{grid-column:span 2}.receipt-inline-form span{color:#3d4856;font-size:12px}.receipt-inline-form input,.receipt-inline-form select,.receipt-inline-form textarea{width:100%;min-height:30px;border:1px solid var(--line);border-radius:6px;padding:5px 7px;font-size:12px}.receipt-inline-form button{align-self:end}.receipt-save-message{align-self:end;border-radius:8px;font-size:12px;font-weight:700;padding:8px 10px}.receipt-save-message.success{background:#ecfdf5;border:1px solid #bbf7d0;color:#047857}.receipt-save-message.error{background:#fef2f2;border:1px solid #fecaca;color:#b91c1c}.purchase-order-receipt-card{padding:0}.purchase-order-receipt-details{display:block}.purchase-order-receipt-details>summary{list-style:none;cursor:pointer}.purchase-order-receipt-details>summary::-webkit-details-marker{display:none}.purchase-order-receipt-summary{position:relative;grid-template-columns:minmax(180px,1.15fr) minmax(150px,1fr) minmax(170px,1.15fr) minmax(170px,1fr) minmax(130px,.75fr);align-items:stretch;min-height:76px;max-height:76px;gap:0;border-radius:8px;overflow:hidden;padding-right:38px;background:#ffffff}.purchase-receipt-summary-cell{min-width:0;display:grid;align-content:center;gap:4px;border-right:1px solid var(--line);padding:10px 14px}.purchase-receipt-summary-cell:last-of-type{border-right:0}.purchase-receipt-summary-cell>span{color:var(--muted);font-size:11px;white-space:nowrap}.purchase-receipt-order-cell>div,.purchase-receipt-summary-cell small,.purchase-receipt-summary-cell strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.purchase-receipt-summary-cell strong{color:var(--text);font-size:13px;line-height:18px}.purchase-receipt-summary-cell small{color:var(--muted);font-size:11px}.purchase-receipt-order-cell>div{display:flex;align-items:center;gap:8px}.purchase-receipt-order-cell small,.purchase-receipt-status-cell small{flex:0 0 auto;border-radius:999px;background:#eff6ff;padding:2px 7px;color:#2563eb;font-weight:700}.purchase-receipt-status-cell small{width:fit-content;background:#f1f5f9;color:#475569}.purchase-receipt-expand-icon{position:absolute;top:50%;right:12px;color:#64748b;transform:translateY(-50%);transition:transform .16s ease}.purchase-order-receipt-details[open] .purchase-receipt-expand-icon{transform:translateY(-50%) rotate(180deg)}.purchase-order-receipt-details>summary:hover{background:#f8fafc}@media (max-width:1366px){.purchase-order-receipt-summary{grid-template-columns:minmax(160px,1.1fr) minmax(130px,.9fr) minmax(145px,1fr) minmax(150px,.9fr) minmax(118px,.7fr)}.purchase-receipt-summary-cell{padding:9px 10px}}.purchase-order-receipt-body{display:grid;gap:10px;border-top:1px solid var(--line);padding:10px 12px 12px}.purchase-order-receipt-toolbar{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}.purchase-batch-receipt-form{grid-template-columns:repeat(4,minmax(0,1fr))}.batch-select-receipt-form .purchase-receipt-line-table{grid-column:1/-1}.batch-select-receipt-form .selection-cell{width:48px;text-align:center;vertical-align:middle}.batch-select-receipt-form .selection-cell input{width:16px;min-height:16px;accent-color:#2563eb}.batch-select-receipt-form .table-input{width:100%;max-width:130px;min-height:30px;border:1px solid var(--line);border-radius:6px;padding:5px 7px;font-size:12px}.batch-select-receipt-form .quantity-input{max-width:96px}.batch-select-receipt-form tr.selected-row td{background:#f8fbff}.batch-receipt-lines{grid-column:1/-1;overflow-x:auto;border:1px solid var(--line);border-radius:8px;background:#ffffff}.batch-receipt-lines-head{display:flex;justify-content:space-between;gap:10px;border-bottom:1px solid var(--line);padding:8px 10px;color:var(--muted);font-size:12px}.batch-receipt-lines-head strong{color:var(--text)}.batch-receipt-lines table,.purchase-receipt-line-table table{min-width:920px}.batch-receipt-lines td,.batch-receipt-lines th,.purchase-receipt-line-table td,.purchase-receipt-line-table th{padding:7px 8px;font-size:12px;vertical-align:top}.batch-receipt-lines input{max-width:120px}.purchase-receipt-line-table{overflow-x:auto;border:1px solid var(--line);border-radius:8px;background:#ffffff}.purchase-receipt-line-table td small,.purchase-receipt-line-table td strong{display:block}.purchase-receipt-line-table td small{color:var(--muted);font-size:11px}.receipt-line-details summary{min-width:76px;justify-content:center}.receipt-line-details .receipt-inline-form{min-width:640px;border:1px solid var(--line);border-radius:8px}.table-mini-button{width:100%;min-height:28px;border:1px solid #bfdbfe;border-radius:5px;background:#eff6ff;color:#2563eb;font-size:12px;font-weight:700;cursor:pointer}.source-allocation-list{display:grid;gap:4px;min-width:180px;margin-top:6px;color:var(--muted);font-size:11px}.source-allocation-list div{display:flex;justify-content:space-between;gap:8px;border-bottom:1px dashed var(--line);padding-bottom:3px}.source-allocation-list strong{color:var(--text);font-weight:700}.rework-count{display:inline-flex;min-width:28px;justify-content:center;border-radius:999px;background:#fffbeb;color:#b45309;font-weight:800}.muted-text{color:var(--muted)}.receipt-size-editor{grid-column:2/-1;display:grid;gap:7px;min-width:0}.receipt-total-bar{display:flex;justify-content:space-between;gap:10px;color:var(--muted);font-size:12px}.receipt-total-bar strong{color:var(--text);font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.receipt-history-table{overflow-x:auto;border-top:1px solid var(--line)}.receipt-history-table table{min-width:860px}.receipt-history-table td,.receipt-history-table th{padding:7px 8px;font-size:12px}.factory-receipt-table-wrap table{min-width:1380px}.factory-receipt-table-wrap td,.factory-receipt-table-wrap th{white-space:nowrap}.factory-receipt-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.factory-receipt-table-wrap td small{display:block;margin-top:3px;color:var(--muted);font-size:11px}.factory-receipt-detail-row td{padding:0!important;border-top:0;white-space:normal}.factory-receipt-detail-row details{border-bottom:1px solid var(--line);background:#f8fafc}.factory-receipt-detail-row summary{width:fit-content;cursor:pointer;color:var(--blue);font-size:12px;font-weight:700;padding:8px 14px}.factory-receipt-detail-grid{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:16px;border-top:1px solid var(--line);padding:12px 14px 14px}.factory-receipt-detail-grid .table-wrap table{min-width:720px}.factory-receipt-audit{display:grid;align-content:start;gap:7px}.factory-receipt-audit p{display:flex;justify-content:space-between;gap:12px;margin:0;font-size:12px}.factory-receipt-audit p span{color:var(--muted)}.factory-receipt-void-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;margin-top:8px}.factory-receipt-void-form input{min-width:0;height:34px}.voided-receipt>tr:first-child{opacity:.66;background:#fff7f7}@media (max-width:1280px){.factory-receipt-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.factory-receipt-detail-grid{grid-template-columns:1fr}}.work-order-screen{min-height:100vh;background:#e9edf2;padding:18px}.work-order-preview-layer{position:fixed;inset:0;z-index:160}.work-order-preview-panel{position:absolute;top:24px;bottom:24px;left:50%;width:min(calc(100vw - 48px),calc(210mm + 36px));transform:translateX(-50%);overflow:auto;border-radius:12px;background:#e9edf2;box-shadow:0 22px 70px rgba(15,23,42,.24)}.work-order-preview-panel .work-order-screen{min-height:100%}.work-order-toolbar{position:sticky;top:0;z-index:5;max-width:210mm;display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 auto 12px;border:1px solid var(--line);border-radius:8px;background:#ffffff;padding:10px 12px}.work-order-toolbar span,.work-order-toolbar strong{display:block}.work-order-toolbar span{margin-top:3px;color:var(--muted);font-size:12px}.work-order-page{width:210mm;min-height:297mm;margin:0 auto;background:#ffffff;color:#111827;padding:13mm;box-shadow:0 10px 28px rgba(15,23,42,.16)}.work-order-header,.work-order-section-title,.work-order-sign{display:flex;justify-content:space-between;gap:14px}.work-order-header{align-items:flex-start;border-bottom:2px solid #111827;padding-bottom:8px}.work-order-header h1{margin:0;font-size:26px}.work-order-header p,.work-order-no span{margin:4px 0 0;color:#4b5563;font-size:12px}.work-order-no{text-align:right}.work-order-no strong{display:block;margin-top:4px;font-size:17px}.work-order-top-grid{display:grid;grid-template-columns:38mm 1fr;gap:10px;margin-top:10px}.work-order-image{width:38mm;height:32mm;display:grid;place-items:center;overflow:hidden;border:1px solid #9ca3af;color:#6b7280;font-size:12px}.work-order-image img{width:100%;height:100%;object-fit:contain}.work-order-info-grid,.work-order-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-top:1px solid #9ca3af;border-left:1px solid #9ca3af}.work-order-metrics.compact{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:8px}.work-order-info-grid.merged{margin-top:10px}.work-order-info-grid label,.work-order-metrics label{min-height:42px;display:grid;align-content:center;gap:3px;border-right:1px solid #9ca3af;border-bottom:1px solid #9ca3af;padding:6px 7px}.work-order-info-grid span,.work-order-metrics span{color:#4b5563;font-size:11px}.work-order-info-grid strong,.work-order-metrics strong{font-size:13px}.work-order-metrics input,.work-order-table input{width:100%;border:0;border-bottom:1px solid #9ca3af;background:transparent;padding:2px 0;font:inherit}.work-order-section{margin-top:10px}.work-order-section h2{margin:0 0 6px;font-size:15px}.work-order-table{width:100%;min-width:0;border-collapse:collapse}.work-order-table td,.work-order-table th{border:1px solid #9ca3af;padding:6px 7px;font-size:12px}.work-order-table th{background:#f3f4f6}.work-order-style-block{margin-bottom:9px;border:1px solid #9ca3af}.work-order-style-summary{display:grid;grid-template-columns:2fr 1fr .75fr 1fr 1fr 1fr;border-bottom:1px solid #9ca3af}.work-order-style-summary div{min-height:40px;display:grid;align-content:center;gap:2px;border-right:1px solid #9ca3af;padding:5px 7px}.work-order-style-summary div:last-child{border-right:0}.work-order-style-summary span,.work-order-task-nos{color:#4b5563;font-size:11px}.work-order-style-summary strong{font-size:13px}.work-order-task-nos{border-bottom:1px solid #9ca3af;padding:5px 7px}.work-order-table.size-matrix{border:0}.work-order-table.size-matrix td,.work-order-table.size-matrix th{text-align:center}.work-order-table.merged td,.work-order-table.merged th{padding:5px 6px;font-size:11px}.work-order-summary{display:flex;justify-content:flex-end;gap:14px;border:1px solid #9ca3af;border-top:0;padding:7px 8px;font-size:12px}.work-order-terms{min-height:116px;margin:0;border:1px solid #9ca3af;padding:8px 10px 8px 26px;font-size:12px;line-height:1.65}.work-order-sign{margin-top:14px;font-size:13px}@page{size:A4;margin:0}@media print{body{background:#ffffff}.no-print,.work-order-toolbar{display:none!important}.app-shell{display:block}.global-tabs-shell,.sidebar,.topbar{display:none!important}body:has(.work-order-preview-layer) .content-stack>:not(.work-order-preview-layer){display:none!important}.work-order-preview-layer,.work-order-preview-panel{position:static;inset:auto;overflow:visible;border-radius:0;background:#ffffff;box-shadow:none}.main-panel{padding:0}.work-order-screen{padding:0;background:#ffffff}.statement-paper,.work-order-page{width:210mm;min-height:297mm;margin:0;box-shadow:none}}.statement-paper{width:210mm;min-height:297mm;margin:0 auto;padding:24mm 22mm;background:#ffffff;color:#111827;box-shadow:0 10px 30px rgba(15,23,42,.12)}.statement-print-head{display:flex;justify-content:space-between;gap:20px;border-bottom:3px solid #111827;padding-bottom:12px}.statement-print-head h1{margin:0;font-size:30px}.statement-print-head p,.statement-print-head span{margin:7px 0 0;color:var(--muted)}.statement-print-head strong{display:block;margin-top:6px;font-size:20px}.statement-info-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid #9ca3af;border-right:0;border-bottom:0;margin:16px 0}.statement-info-grid div{min-height:56px;border-right:1px solid #9ca3af;border-bottom:1px solid #9ca3af;padding:8px 10px}.statement-info-grid span{display:block;color:var(--muted);font-size:12px}.statement-info-grid strong{display:block;margin-top:5px;font-size:15px}.statement-paper h2{margin:16px 0 8px;font-size:18px}.statement-print-table{width:100%;border-collapse:collapse;font-size:12px}.statement-print-table td,.statement-print-table th{border:1px solid #9ca3af;padding:7px 8px;text-align:left;vertical-align:top}.statement-print-table tfoot td,.statement-print-table th{background:#f3f4f6;font-weight:700}.statement-terms{margin-top:16px;border:1px solid #9ca3af;padding:10px 12px;font-size:12px;line-height:1.7}.statement-terms p{margin:6px 0 0}.statement-sign-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin-top:24px;font-size:13px}.bom-editor{display:grid;gap:8px;min-width:0}.bom-editor.full{grid-column:1/-1}.bom-block{min-width:0;border:1px solid var(--line);border-radius:8px;background:var(--panel-2);padding:8px}.cost-summary{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px}.cost-summary div{min-height:48px;display:grid;align-content:center;gap:3px;border:1px solid var(--line);border-radius:8px;background:#ffffff;padding:7px 8px}.cost-summary span{color:var(--muted);font-size:11px}.cost-summary strong{font-size:15px;font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.cost-summary .total{border-color:#b8cdfb;background:#eff6ff}.cost-summary .total strong{color:var(--blue)}.bom-header{min-height:34px;display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:7px}.bom-header h4{margin:0;font-size:14px}.bom-header span{display:block;margin-top:3px;color:var(--muted);font-size:11px}.bom-table-wrap{min-width:0;overflow-x:auto;border:1px solid var(--line);border-radius:8px;background:#ffffff}.bom-table{min-width:780px}.bom-table.compact{min-width:520px}.bom-table td,.bom-table th{padding:5px 6px;vertical-align:middle;font-size:12px}.bom-table input,.bom-table select{width:100%;height:28px;border:1px solid var(--line);border-radius:5px;padding:4px 6px;background:#ffffff;font-size:12px}.bom-table input:disabled,.bom-table select:disabled{background:#f8fafc;color:#64748b;cursor:not-allowed}.bom-table input[type=number]{min-width:68px}.amount-cell{min-width:74px;color:#1f2937;font-feature-settings:"tnum";font-variant-numeric:tabular-nums;white-space:nowrap}.bom-total{display:flex;justify-content:flex-end;padding-top:7px;color:#1f2937;font-weight:700;font-size:13px}.bom-total.grand{border:1px solid var(--line);border-radius:8px;background:#ffffff;padding:8px 10px}.material-import-modal{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:28px;background:rgba(15,23,42,.62)}.material-import-dialog{width:min(1080px,94vw);max-height:min(720px,88vh);display:grid;grid-template-rows:auto auto auto minmax(0,1fr) auto;gap:12px;overflow:hidden;border:1px solid var(--line);border-radius:8px;background:#ffffff;padding:14px;box-shadow:0 24px 70px rgba(15,23,42,.24)}.material-import-actions,.material-import-header{display:flex;align-items:center;justify-content:space-between;gap:12px}.material-import-header h3{margin:0;font-size:18px}.material-import-header span{display:block;margin-top:4px;color:var(--muted);font-size:12px}.material-import-search{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px;border:1px solid var(--line);border-radius:8px;background:var(--panel-2);padding:8px 10px}.material-import-search input{width:100%;border:0;outline:0;background:transparent;color:var(--text);font:inherit;font-size:13px}.material-import-search span{color:var(--muted);font-size:12px;white-space:nowrap}.material-import-error{border:1px solid #fecaca;border-radius:8px;background:#fef2f2;color:#991b1b;padding:8px 10px;font-size:13px}.material-import-table-wrap{min-height:220px;overflow:auto;border:1px solid var(--line);border-radius:8px}.material-import-table{min-width:940px}.material-import-table td,.material-import-table th{white-space:nowrap}.material-import-table input[type=checkbox]{width:16px;height:16px;padding:0}.material-import-actions{justify-content:flex-end;padding-top:2px}.material-selector-modal{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:28px;background:rgba(15,23,42,.62)}.material-selector-dialog{width:min(1120px,94vw);max-height:min(820px,90vh);display:grid;grid-template-rows:auto auto auto minmax(0,1fr) auto;gap:12px;overflow:hidden;border:1px solid var(--line);border-radius:8px;background:#ffffff;padding:14px;box-shadow:0 24px 70px rgba(15,23,42,.24)}.material-selector-chip-row,.material-selector-duplicate,.material-selector-header,.material-selector-quick-actions,.material-selector-quick-title,.material-selector-search{display:flex;align-items:center;gap:10px}.material-selector-header{justify-content:space-between}.material-selector-header h3{margin:0;font-size:18px}.material-selector-header span,.material-selector-quick-title span{display:block;margin-top:4px;color:var(--muted);font-size:12px}.material-selector-search{display:grid;grid-template-columns:auto minmax(0,1fr) auto;border:1px solid var(--line);border-radius:8px;background:var(--panel-2);padding:8px 10px}.material-selector-search input{width:100%;border:0;outline:0;background:transparent;color:var(--text);font:inherit;font-size:13px}.material-selector-body{min-height:0;display:grid;grid-template-rows:auto auto minmax(260px,1fr);gap:12px;overflow:auto;padding-right:4px}.material-selector-quick{display:grid;gap:12px;overflow:visible;border:1px solid var(--line);border-radius:8px;background:#f8fafc;padding:12px}.material-selector-form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.material-selector-form-grid .full{grid-column:1/-1}.material-selector-duplicate{flex-wrap:wrap;border:1px solid #fde68a;border-radius:8px;background:#fffbeb;color:#92400e;padding:8px 10px;font-size:13px}.material-selector-duplicate.success{border-color:#bbf7d0;background:#f0fdf4;color:#166534}.material-selector-quick-actions{justify-content:flex-end}.material-selector-groups{display:grid;gap:8px}.material-selector-chip-row{flex-wrap:wrap}.material-selector-chip-row>span{display:inline-flex;align-items:center;gap:4px;min-width:72px;color:var(--muted);font-size:12px;font-weight:700}.material-selector-chip-row button{border:1px solid var(--line);border-radius:999px;background:#ffffff;color:var(--text);padding:5px 10px;font-size:12px;cursor:pointer}.material-selector-chip-row button:hover{border-color:var(--primary);color:var(--primary)}.material-selector-body .material-import-table-wrap{min-height:260px;max-height:none}.material-group-row td{background:#f8fafc;color:var(--text)}.material-group-row strong{margin-right:10px}.material-group-row em,.material-group-row span{margin-right:10px;color:var(--muted);font-style:normal;font-size:12px}.material-batch-modal,.material-color-modal{width:min(980px,94vw);max-height:min(820px,90vh);overflow:auto}.material-common-colors{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}.material-common-colors button{border:1px solid var(--line);border-radius:999px;background:#ffffff;color:var(--text);padding:5px 10px;font-size:12px;cursor:pointer}.material-common-colors button:hover{border-color:var(--primary);color:var(--primary)}.material-ref-cell{display:grid;gap:4px;min-width:130px}.material-ref-cell strong{font-size:13px;color:var(--text)}.inline-action-row{display:flex;flex-wrap:wrap;gap:8px}.link-button{border:0;background:transparent;color:var(--primary);font:inherit;font-size:12px;font-weight:700;padding:0;cursor:pointer}.link-button:hover{text-decoration:underline}.material-selector-trigger{width:100%;min-height:34px;justify-content:center;white-space:nowrap}.style-attachment-panel{display:grid;gap:14px}.style-attachment-section{display:grid;gap:10px;border:1px solid var(--line);border-radius:8px;background:#ffffff;padding:12px}.style-attachment-section-title{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.style-attachment-section-title h4{margin:0;font-size:15px}.style-attachment-section-title span{display:block;margin-top:4px;color:var(--muted);font-size:12px}.style-attachment-section-title.with-control label{min-width:220px;display:grid;gap:5px;color:var(--muted);font-size:12px;font-weight:700}.style-attachment-section-title select{min-height:34px;border:1px solid var(--line);border-radius:8px;background:#ffffff;padding:0 10px;color:var(--text);font:inherit}.attachment-link-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:8px}.color-dialog-backdrop{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:24px;background:rgba(15,23,42,.62)}.color-dialog{width:min(460px,94vw);display:grid;gap:14px;border:1px solid var(--line);border-radius:8px;background:#ffffff;padding:16px;box-shadow:0 24px 70px rgba(15,23,42,.24)}.color-dialog-actions,.color-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:12px}.color-dialog-header h3{margin:0;font-size:18px}.color-dialog-header span{display:block;margin-top:4px;color:var(--muted);font-size:12px}.color-dialog-actions{justify-content:flex-end}.check-row{display:flex;align-items:center;gap:8px;color:#334155;font-size:13px;font-weight:700}.check-row input{width:16px;height:16px;padding:0}.inline-create-form{display:grid;grid-template-columns:150px minmax(220px,1fr) 140px auto;gap:12px;align-items:end}.inline-create-form label{display:grid;gap:7px}.inline-create-form label span{color:#3d4856;font-size:14px}.inline-create-form input,.inline-create-form select{width:100%;height:38px;border:1px solid var(--line);border-radius:6px;padding:8px 10px}.dashboard-panel,.data-section,.workflow-section{padding:16px}.section-title{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:12px}.section-title span{color:var(--muted);font-size:13px}.table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:8px}table{width:100%;border-collapse:collapse;min-width:760px}td,th{text-align:left;padding:11px 12px;border-bottom:1px solid var(--line);font-size:14px}th{background:var(--panel-2);color:#394554;font-weight:600}tr:last-child td{border-bottom:0}.table-edit-input{width:100%;max-width:260px;height:34px;border:1px solid var(--line);border-radius:6px;padding:7px 9px;background:#ffffff}.table-edit-input.number{max-width:90px}.table-action-row{display:flex;align-items:center;gap:14px;white-space:nowrap}.empty-cell{text-align:center;color:var(--muted);height:92px}.metric-grid,.migration-grid,.role-grid,.rule-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.migration-card,.role-card,.rule-card{min-height:58px;display:flex;align-items:center;gap:10px;padding:12px;border:1px solid var(--line);border-radius:8px;background:var(--panel-2)}.metric-card{border:1px solid var(--line);border-radius:8px;background:var(--panel);padding:14px}.dashboard-workbench{gap:16px}.workbench-hero{align-items:center;background:linear-gradient(180deg,#ffffff,#f8fbff);border:1px solid var(--line);border-radius:8px;display:flex;gap:16px;justify-content:space-between;min-width:0;padding:18px}.workbench-hero h2{font-size:24px;margin:0}.workbench-hero p{color:var(--muted);margin:6px 0 0}.workbench-actions{align-items:center;display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}.workbench-metrics{display:grid;gap:12px;grid-template-columns:repeat(6,minmax(0,1fr))}.finance-warning,.progress-node,.quick-entry-group,.workbench-card{background:#ffffff;border:1px solid var(--line);border-radius:8px}.workbench-card{display:grid;gap:8px;min-height:128px;padding:14px}.activity-row span,.finance-warning small,.finance-warning span,.progress-node span,.workbench-card span{color:var(--muted);font-size:12px}.workbench-card strong{font-size:23px;line-height:1.1}.workbench-card p{color:var(--muted);font-size:12px;line-height:1.45;margin:0}.finance-warning:hover,.progress-node:hover,.quick-entry-group a:hover,.workbench-card:hover{border-color:#bcd2ff;box-shadow:0 10px 24px rgba(37,99,235,.08)}.tone-blue b,.tone-blue strong{color:var(--blue)}.tone-green b,.tone-green strong{color:var(--green)}.tone-amber b,.tone-amber strong{color:var(--amber)}.tone-violet b,.tone-violet strong{color:var(--violet)}.tone-red b,.tone-red strong{color:var(--red)}.workbench-section{padding:16px}.workbench-tabs{display:flex;gap:8px;margin-bottom:12px}.workbench-tabs button{background:#ffffff;border:1px solid var(--line);border-radius:999px;color:var(--muted);cursor:pointer;height:32px;padding:0 14px}.workbench-tabs button.active{background:#eef4ff;border-color:#bcd2ff;color:var(--blue);font-weight:700}.workbench-table{min-width:980px}.status-pill.info{border-color:#bfdbfe;background:#eff6ff;color:#2563eb}.status-pill.danger{border-color:#fecaca;background:#fef2f2;color:#b91c1c}.workbench-two-col{display:grid;gap:16px;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr)}.finance-warning-grid,.progress-board{display:grid;gap:10px}.progress-board{grid-template-columns:repeat(2,minmax(0,1fr))}.progress-node{display:grid;gap:8px;padding:12px}.progress-node strong{font-size:15px}.progress-node div{align-items:center;display:flex;justify-content:space-between}.progress-node .danger b{color:var(--red)}.finance-warning-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.finance-warning{display:grid;gap:5px;min-height:82px;padding:11px}.finance-warning strong{font-size:17px}.quick-entry-grid{display:grid;gap:10px;grid-template-columns:repeat(2,minmax(0,1fr))}.quick-entry-group{padding:12px}.quick-entry-group h4{margin:0 0 9px}.quick-entry-group div{display:flex;flex-wrap:wrap;gap:7px}.quick-entry-group a{background:#f8fafc;border:1px solid var(--line);border-radius:6px;color:#334155;font-size:13px;padding:7px 9px}.activity-list,.activity-row{display:grid;gap:8px}.activity-row{align-items:center;border:1px solid var(--line);border-radius:8px;grid-template-columns:86px 74px minmax(120px,.7fr) minmax(180px,1fr) 76px;min-height:46px;padding:8px 10px}.activity-row p{color:#334155;font-size:13px;margin:0}.activity-row b,.activity-row strong{font-size:13px}.activity-row em{color:var(--muted);font-size:12px;font-style:normal;text-align:right}.system-status-panel{padding:0}.system-status-panel summary{cursor:pointer;font-weight:800;list-style:none;padding:15px 16px}.system-status-panel summary::-webkit-details-marker{display:none}.system-status-panel summary:after{color:var(--blue);content:"展开";float:right;font-size:13px}.system-status-panel[open] summary{border-bottom:1px solid var(--line)}.system-status-panel[open] summary:after{content:"收起"}.system-status-content{display:grid;gap:16px;padding:16px}.system-status-content h4{margin:0 0 10px}.version-note{background:#f8fafc;border:1px solid var(--line);border-radius:8px;padding:12px}.version-note p{color:var(--muted);margin:0}@media (max-width:1400px){.workbench-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.workbench-two-col{grid-template-columns:1fr}.finance-warning-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (max-width:980px){.workbench-hero{align-items:stretch;flex-direction:column}.workbench-actions{justify-content:flex-start}.finance-warning-grid,.progress-board,.quick-entry-grid,.workbench-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.activity-row{grid-template-columns:84px 1fr}.activity-row em,.activity-row p{grid-column:1/-1;text-align:left}}@media (max-width:640px){.finance-warning-grid,.progress-board,.quick-entry-grid,.workbench-metrics{grid-template-columns:1fr}.workbench-tabs{overflow-x:auto;padding-bottom:2px}.workbench-tabs button{flex:0 0 auto}}.user-permission-form{gap:18px}.user-account-grid{align-items:start}.permission-toolbar{display:grid;grid-template-columns:minmax(220px,320px) minmax(0,1fr);gap:14px;align-items:end;margin-bottom:14px}.permission-summary-strip{min-height:36px;display:flex;align-items:center;gap:8px;border:1px solid #c7d7fe;border-radius:8px;background:#eff6ff;padding:8px 10px;color:#365174}.permission-summary-strip strong{color:var(--blue);font-size:18px;line-height:1}.permission-summary-strip span{color:#506176;font-size:13px;line-height:1.45}.permission-group-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.permission-group-card{min-height:178px;display:flex;flex-direction:column;gap:12px;border:1px solid var(--line);border-radius:8px;background:var(--panel);padding:14px}.permission-group-head{min-height:50px;display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.permission-group-title{min-width:0;display:flex;align-items:flex-start;gap:10px}.permission-group-title input{width:16px;height:16px;flex:0 0 auto;margin-top:3px}.permission-group-title em,.permission-group-title span,.permission-group-title strong{display:block}.permission-group-title strong{color:var(--text);font-size:15px;line-height:1.35}.permission-group-title em{margin-top:2px;color:var(--muted);font-size:12px;font-style:normal;line-height:1.45}.permission-count{height:24px;display:inline-flex;align-items:center;justify-content:center;padding:0 8px;border-radius:999px;background:#f1f5f9;color:#475569;font-size:12px;white-space:nowrap}.permission-child-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:auto}.user-drawer-layer{position:fixed;inset:0;z-index:130}.user-drawer{position:absolute;inset-block:0;right:0;width:min(720px,calc(100vw - 28px));display:flex;flex-direction:column;border-left:1px solid var(--border);background:#f8fafc;box-shadow:-16px 0 40px rgba(15,23,42,.16)}.user-drawer.department-drawer{width:min(860px,calc(100vw - 28px))}.user-drawer-form{min-height:0;display:flex;flex:1 1;flex-direction:column;overflow-y:auto}.user-drawer-footer,.user-drawer-header{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 20px;border-bottom:1px solid var(--border);background:#fff}.user-drawer-header h3{margin:2px 0 0;font-size:22px}.user-drawer-footer{margin-top:auto;border-top:1px solid var(--border);border-bottom:0;justify-content:flex-end}.user-form-card{margin:14px 16px 0;border:1px solid var(--border);border-radius:10px;background:#fff;padding:16px}.user-form-card h4{margin:0 0 12px;font-size:16px}.user-form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.field-label-row{display:flex;align-items:center;justify-content:space-between;gap:10px}.field-label-row .text-button{font-size:12px;font-weight:700}.department-form-actions{grid-column:1/-1;display:flex;justify-content:flex-end;gap:10px}.department-manage-list{margin-bottom:16px}.section-title.compact{margin-bottom:12px}.department-table-wrap{max-height:430px;overflow:auto}.department-table-wrap table{min-width:760px}.department-table-wrap td,.department-table-wrap th{height:42px;padding-block:8px}.scope-tree{display:grid;max-height:180px;overflow:auto;gap:6px;border:1px solid var(--border);border-radius:8px;background:#f8fafc;padding:10px}.scope-tree label{display:flex;align-items:center;gap:8px;min-height:28px;color:#334155;font-size:13px}.user-drawer-permissions{grid-template-columns:1fr;gap:10px}.user-drawer-permissions .permission-group-card{min-height:auto;padding:12px}.user-drawer-permissions .permission-group-head{min-height:28px;align-items:center}.user-drawer-permissions .permission-child-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.permission-child-item{min-width:0;min-height:34px;display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:8px;background:#ffffff;padding:7px 9px;color:#243244;font-size:13px;line-height:1.3}.permission-child-item input{width:15px;height:15px;flex:0 0 auto}.permission-child-item span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.permission-child-item.disabled{background:#f8fafc;color:var(--muted)}.user-rule-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.user-rule-card{min-height:72px;display:grid;align-content:center;gap:5px;border:1px solid var(--line);border-radius:8px;background:var(--panel-2);padding:12px}.user-rule-card strong{color:var(--text);font-size:14px;line-height:1.35}.user-rule-card span{color:var(--muted);font-size:13px;line-height:1.45}.metric-card strong{display:block;margin-top:8px;font-size:24px}.metric-card p,.metric-card span,.migration-card p,.role-card p{color:var(--muted)}.metric-card p,.migration-card p,.role-card p{margin:6px 0 0;font-size:13px}.inventory-filter-grid{display:grid;grid-template-columns:minmax(220px,1.2fr) repeat(5,minmax(130px,.75fr)) auto;gap:10px;align-items:end}.inventory-filter-grid label{display:grid;gap:6px}.inventory-filter-grid label span{color:#3d4856;font-size:12px}.inventory-filter-grid input,.inventory-filter-grid select{width:100%;height:34px;border:1px solid var(--line);border-radius:6px;background:#ffffff;padding:6px 8px;color:var(--text)}.inventory-filter-actions{display:flex;align-items:center;gap:7px;padding-bottom:1px}.flow-progress-grid,.inventory-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.flow-progress-card{display:grid;gap:9px;border:1px solid var(--line);border-radius:8px;background:#ffffff;padding:11px}.flow-progress-head,.flow-progress-values{display:flex;justify-content:space-between;gap:8px}.flow-progress-head strong{font-size:14px}.flow-progress-head span{border:1px solid var(--line);border-radius:999px;color:#2563eb;font-size:12px;padding:2px 7px;white-space:nowrap}.flow-progress-bar{height:7px;overflow:hidden;border-radius:999px;background:#e8eef7}.flow-progress-bar i{display:block;height:100%;border-radius:inherit;background:#2563eb}.flow-progress-values{color:var(--muted);font-size:12px}.plain-log{min-height:92px;margin:0 0 12px;overflow-x:auto;white-space:pre-wrap;background:#f8fafc;color:#263241;font-family:inherit;font-size:13px;line-height:1.65}.compact-record-form,.plain-log{border:1px solid var(--line);border-radius:8px;padding:12px}.compact-record-form{grid-template-columns:repeat(2,minmax(0,1fr));background:#ffffff}.inventory-table-wrap table{min-width:1120px}.muted-cell{color:var(--muted);font-size:12px}.supplier-product-block{display:grid;gap:8px;min-width:0;border:1px solid var(--line);border-radius:8px;background:#ffffff;padding:10px}.supplier-product-block.full{grid-column:1/-1}.supplier-product-wrap{max-width:100%;overflow-x:auto}.supplier-product-table{min-width:1120px}.supplier-product-table td,.supplier-product-table th{padding:5px;font-size:12px}.supplier-product-table input,.supplier-product-table select{width:100%;height:28px;border:1px solid var(--line);border-radius:5px;padding:4px 6px;background:#ffffff;font-size:12px}.compact-check{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;color:#3d4856}.supplier-material-filter{grid-template-columns:minmax(220px,1.2fr) minmax(190px,1fr) minmax(130px,.7fr) minmax(120px,.65fr) auto}.supplier-material-table table{min-width:1080px}.purchase-order-editor,.shipment-editor{display:grid;gap:12px}.shipment-editor{grid-column:1/-1;width:100%;min-width:0}.shipment-editor .order-number-card{width:min(100%,520px)}.settlement-grid,.shipment-main-grid,.shipment-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;align-items:end}.shipment-settlement-toggle{display:flex;align-items:center;gap:10px;min-height:44px;padding:8px 12px;border:1px solid var(--border);border-radius:8px;background:#f8fbff;color:var(--text);cursor:pointer}.shipment-settlement-toggle input{width:18px;height:18px;margin:0;accent-color:var(--blue)}.shipment-settlement-toggle span{display:grid;gap:2px;min-width:0}.shipment-settlement-toggle strong{font-size:14px}.shipment-settlement-toggle small{color:var(--muted);font-size:12px}.shipment-source-card{display:grid;gap:8px;padding:10px 12px;border:1px solid var(--border);border-radius:10px;background:#f8fbff}.shipment-source-head{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,420px);gap:12px;align-items:center}.shipment-source-title{display:flex;align-items:center;gap:8px}.shipment-source-title strong{color:var(--text);font-size:14px}.shipment-source-title span{display:inline-flex;align-items:center;min-height:22px;padding:0 8px;border:1px solid #bfdbfe;border-radius:999px;background:#eff6ff;color:var(--blue);font-size:12px;font-weight:700}.shipment-source-head p{margin:3px 0 0;color:var(--muted);font-size:12px}.shipment-empty-source{margin:0;padding:8px 10px;border:1px dashed #cbd5e1;border-radius:8px;background:#ffffff;color:var(--muted);font-size:12px}.shipment-risk-note{margin:5px 0 0!important;color:#c2410c;font-size:12px;font-weight:700}.shipment-source-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:6px}.shipment-source-option{display:grid;gap:3px;min-width:0;padding:7px 9px;text-align:left;border:1px solid var(--border);border-radius:8px;background:#fff;color:var(--text);cursor:pointer}.shipment-source-option:hover{border-color:#93c5fd;background:#f8fbff}.shipment-source-option.active{border-color:var(--blue);background:#eff6ff}.shipment-source-option-top{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0}.shipment-source-option-top strong{overflow:hidden;color:var(--text);font-size:12px;text-overflow:ellipsis;white-space:nowrap}.shipment-source-option-top em{flex:0 0 auto;color:var(--blue);font-size:12px;font-style:normal;font-weight:800}.shipment-source-option span{color:var(--muted);font-size:12px}.form-field.compact{gap:4px}.shipment-source-head .form-field.compact{margin:0}@media (max-width:1280px){.shipment-source-head{grid-template-columns:1fr;gap:8px;align-items:start}.shipment-source-head .form-field.compact{max-width:100%}}.settlement-grid .full{grid-column:span 2}.settlement-help{display:flex;justify-content:space-between;gap:10px;color:var(--muted);font-size:12px}.settlement-help strong{color:var(--text);white-space:nowrap}.purchase-main-grid{display:grid;grid-template-columns:minmax(180px,.8fr) minmax(260px,1.2fr) minmax(180px,.7fr);gap:10px;align-items:end}.purchase-line-table{min-width:1180px}.purchase-line-table td,.purchase-line-table th{white-space:nowrap}.purchase-line-table td:first-child,.purchase-line-table th:first-child{min-width:180px}.purchase-entry-page{width:100%;max-width:1180px;margin:0 auto;min-width:0}.purchase-action-bar{position:sticky;top:0;z-index:8;display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:12px;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:rgba(255,255,255,.96);box-shadow:0 8px 22px rgba(15,23,42,.06);min-width:0;flex-wrap:wrap}.purchase-action-buttons,.purchase-action-title{display:flex;align-items:center;gap:10px;min-width:0}.purchase-action-title{flex:1 1 300px}.purchase-action-title>div{min-width:0}.purchase-action-title h2,.purchase-action-title span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.purchase-action-title h2{margin:2px 0 0;font-size:20px;line-height:1.15}.purchase-action-title span{color:var(--muted);font-size:12px}.purchase-action-buttons{flex-wrap:wrap;justify-content:flex-end}.purchase-action-buttons .primary-button,.purchase-action-buttons .secondary-button{height:34px;padding:0 11px;white-space:nowrap}.purchase-status-tag{display:inline-flex;align-items:center;height:26px;padding:0 10px;border-radius:999px;background:#dcfce7;color:#15803d!important;font-weight:700}.purchase-entry-shell{display:grid;gap:10px;min-width:0}.purchase-form-fieldset{min-width:0;margin:0;padding:0;border:0}.purchase-form-fieldset:disabled{opacity:.78}.purchase-card{min-width:0;border:1px solid #dfe6ee;border-radius:8px;background:#ffffff;padding:12px}.purchase-card-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.purchase-card-title h3{margin:0;font-size:16px}.purchase-card-title span{color:var(--muted);font-size:12px}.purchase-basic-grid,.supplier-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;min-width:0}.purchase-top-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;align-items:stretch;min-width:0}.erp-field{display:grid;gap:6px}.erp-field.wide{grid-column:span 2}.erp-field span{color:#3d4856;font-size:12px}.required-mark{margin-left:3px;color:#dc2626;font-weight:700}.erp-field input,.erp-field select,.erp-field textarea{width:100%;height:34px;border:1px solid var(--line);border-radius:6px;background:#ffffff;padding:6px 8px;color:var(--text);font-size:13px;min-width:0}.erp-field input[readonly]{background:#f8fafc;color:#475569}.amount-summary-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 12px}.amount-summary-list div,.finance-status-grid>div{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding-bottom:8px;border-bottom:1px solid #edf1f5}.amount-summary-list span,.finance-status-grid span{color:var(--muted);font-size:12px}.amount-summary-list strong,.finance-status-grid strong{color:#1d4ed8;font-size:16px;font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.amount-summary-list .highlight strong{color:#ea580c;font-size:18px}.purchase-edit-table-wrap{width:100%;max-width:100%;min-width:0;overflow-x:auto;overflow-y:hidden;border:1px solid var(--line);border-radius:8px;scrollbar-width:thin}.purchase-edit-table{width:1588px;min-width:1588px;table-layout:fixed;border-collapse:collapse}.purchase-finished-table{width:1220px;min-width:1220px}.purchase-other-table{width:880px;min-width:880px}.purchase-edit-table td,.purchase-edit-table th{padding:5px 6px;font-size:12px;vertical-align:middle;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.purchase-edit-table input,.purchase-edit-table select{width:100%;min-width:0;height:28px;border:1px solid var(--line);border-radius:5px;padding:3px 5px;background:#ffffff;font-size:12px}.purchase-edit-table th{background:#f8fafc;color:#334155;font-weight:700}.purchase-style-thumb{width:34px;height:34px;border:1px solid var(--line);border-radius:6px;object-fit:cover;background:#f8fafc}.purchase-type-tag{display:inline-flex;align-items:center;min-height:26px;border-radius:999px;padding:3px 9px;font-size:12px;font-weight:700;white-space:nowrap;border:1px solid #dbe4ee;background:#f8fafc;color:#334155}.purchase-type-tag.material{border-color:#bfdbfe;background:#eff6ff;color:#1d4ed8}.purchase-type-tag.finished{border-color:#bbf7d0;background:#f0fdf4;color:#047857}.purchase-type-tag.other{border-color:#fde68a;background:#fffbeb;color:#b45309}.purchase-edit-table .col-seq{width:46px}.purchase-edit-table .col-code{width:96px}.purchase-edit-table .col-material{width:190px}.purchase-edit-table .col-category{width:82px}.purchase-edit-table .col-spec{width:92px}.purchase-edit-table .col-color{width:78px}.purchase-edit-table .col-unit{width:62px}.purchase-edit-table .col-quantity{width:82px}.purchase-edit-table .col-price{width:96px}.purchase-edit-table .col-money{width:98px}.purchase-edit-table .col-tax-rate{width:70px}.purchase-edit-table .col-date{width:126px}.purchase-edit-table .col-style{width:92px}.purchase-edit-table .col-order{width:124px}.purchase-edit-table .col-remark{width:122px}.purchase-edit-table .col-action{width:72px}.material-picker-cell{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1fr);gap:4px;min-width:0}.material-picker-cell .quick-material-hint{grid-column:1/-1;color:#2563eb;font-size:11px;line-height:1.2}.style-sku-search-cell{position:relative;min-width:0}.purchase-edit-table td.style-sku-cell{overflow:visible}.style-sku-search-cell span{position:absolute;right:7px;top:14px;transform:translateY(-50%);color:var(--muted);font-size:11px;pointer-events:none}.style-sku-dropdown{position:relative;z-index:20;width:280px;max-width:min(280px,calc(100vw - 48px));max-height:210px;overflow-y:auto;margin-top:4px;border:1px solid #dbe4ee;border-radius:7px;background:#ffffff;box-shadow:0 12px 28px rgba(15,23,42,.14)}.style-sku-option{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.2fr);gap:2px 8px;width:100%;padding:7px 9px;border:0;border-bottom:1px solid #eef2f7;background:#ffffff;color:#111827;text-align:left;cursor:pointer}.style-sku-option:focus-visible,.style-sku-option:hover{background:#eff6ff}.style-sku-option em,.style-sku-option small,.style-sku-option strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-style:normal}.style-sku-option strong{font-size:12px}.style-sku-option small{color:#64748b}.style-sku-option em{grid-column:1/-1;color:#2563eb;font-size:11px}.style-sku-empty{padding:10px;color:#64748b;font-size:12px}.purchase-edit-table tfoot td{background:#f8fafc;font-weight:700}.center-cell{text-align:center;color:var(--muted)}.money-cell{color:#1f2937;font-feature-settings:"tnum";font-variant-numeric:tabular-nums;text-align:right}.money-cell.strong{color:#ea580c;font-weight:700}.finance-action-row,.line-actions{display:flex;align-items:center;gap:6px}.icon-button.small{width:28px;height:28px}.icon-button.danger{border-color:#fecaca;color:#be123c;background:#fff7f7}.secondary-button.accent{border-color:#bfdbfe;color:#1d4ed8;background:#eff6ff}.purchase-bottom-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,.42fr);gap:10px;align-items:start;min-width:0}.finance-confirm-card{grid-row:span 2}.finance-status-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;min-width:0}.finance-status-grid .erp-field{padding-bottom:8px;border-bottom:1px solid #edf1f5}.finance-action-row{flex-wrap:wrap;margin-top:12px}.finance-note{margin:10px 0 0;color:#475569;font-size:12px}@media (max-width:1366px){.purchase-entry-page{max-width:100%}.purchase-action-bar{align-items:flex-start}.purchase-action-buttons{flex:1 1 420px}.purchase-basic-grid,.supplier-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.amount-summary-list{grid-template-columns:repeat(3,minmax(0,1fr))}.purchase-bottom-grid{grid-template-columns:minmax(0,1fr) minmax(260px,.38fr)}}@media (max-width:1180px){.purchase-action-bar{align-items:stretch;flex-direction:column}.purchase-action-buttons{justify-content:flex-start}.purchase-action-buttons .primary-button,.purchase-action-buttons .secondary-button{flex:1 1 150px}.amount-summary-list,.finance-status-grid,.purchase-basic-grid,.supplier-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.purchase-bottom-grid{grid-template-columns:1fr}.finance-confirm-card{grid-row:auto}}.upload-panel{display:grid;place-items:center;gap:6px;min-height:112px;margin-bottom:10px;border:1px dashed #cbd5e1;border-radius:8px;background:#f8fafc;color:#64748b;text-align:center}.upload-panel-clickable{cursor:pointer;transition:border-color .16s ease,background .16s ease,color .16s ease}.upload-panel-clickable:hover,.upload-panel.dragging{border-color:#2563eb;background:#eff6ff;color:#1d4ed8}.upload-panel.uploading{cursor:wait;opacity:.78}.upload-panel strong{color:#334155}.upload-panel span{font-size:12px}.purchase-attachment-input{display:none}.upload-error{margin:-2px 0 8px;border:1px solid #fecaca;border-radius:6px;background:#fef2f2;color:#991b1b;padding:7px 9px;font-size:12px}.attachment-file-link{display:block;max-width:180px;overflow:hidden;color:#1d4ed8;font-weight:700;text-overflow:ellipsis;white-space:nowrap}.attachment-size{display:block;margin-top:3px;color:var(--muted);font-size:11px}.mini-table{min-width:0}.mini-table td,.mini-table th{padding:8px;font-size:12px}.warning-text{color:#b45309}.purchase-filter-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(132px,1fr));gap:10px;align-items:end;min-width:0}.shipment-filter-grid{display:grid;grid-template-columns:minmax(190px,1fr) minmax(120px,.65fr) minmax(120px,.65fr) minmax(130px,.7fr) minmax(120px,.65fr) minmax(130px,.7fr) minmax(130px,.7fr) auto;gap:10px;align-items:end}.purchase-filter-grid label,.shipment-filter-grid label{display:grid;gap:6px}.purchase-filter-grid label span,.shipment-filter-grid label span{color:#3d4856;font-size:12px}.purchase-filter-grid input,.purchase-filter-grid select,.shipment-filter-grid input,.shipment-filter-grid select{width:100%;height:34px;border:1px solid var(--line);border-radius:6px;background:#ffffff;padding:6px 8px;color:var(--text)}.purchase-table-wrap table{min-width:960px}.purchase-table-wrap td,.purchase-table-wrap th{vertical-align:middle}.purchase-actions-cell,.purchase-table-wrap th:last-child{width:176px;min-width:176px}.purchase-demand-pool-table-wrap{width:100%;max-width:100%;overflow-x:auto;overflow-y:hidden}.purchase-demand-pool-table{width:100%;min-width:1000px;table-layout:fixed}.purchase-demand-pool-table .demand-col-select{width:40px}.purchase-demand-pool-table .demand-col-no{width:118px}.purchase-demand-pool-table .demand-col-source{width:126px}.purchase-demand-pool-table .demand-col-relation{width:170px}.purchase-demand-pool-table .demand-col-item{width:182px}.purchase-demand-pool-table .demand-col-progress{width:236px}.purchase-demand-pool-table .demand-col-date{width:88px}.purchase-demand-pool-table .demand-col-status{width:76px}.purchase-demand-pool-table td,.purchase-demand-pool-table th{padding:10px 8px;vertical-align:middle;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.purchase-demand-pool-table th{height:42px;line-height:1.2}.purchase-demand-pool-table tbody tr{height:62px}.purchase-demand-pool-table td:first-child,.purchase-demand-pool-table th:first-child{padding-inline:10px 4px;text-align:center}.demand-date-cell,.demand-number-cell{font-variant-numeric:tabular-nums;font-feature-settings:"tnum"}.demand-cell-stack{display:grid;min-width:0;gap:4px;line-height:1.25}.demand-cell-stack span,.demand-cell-stack strong{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.demand-cell-stack strong{font-size:13px;color:var(--text)}.demand-cell-stack span{font-size:12px;color:var(--muted)}.demand-quantity-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:center;gap:4px;min-width:0}.demand-quantity-grid>span{display:grid;gap:2px;min-width:0;text-align:right}.demand-quantity-grid small{color:var(--muted);font-size:10px;line-height:1.1}.demand-quantity-grid small,.demand-quantity-grid strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.demand-quantity-grid strong{font-size:12px;font-feature-settings:"tnum";font-variant-numeric:tabular-nums;line-height:1.2}.demand-quantity-grid .demand-open-quantity strong{color:var(--primary);font-weight:700}.purchase-demand-pool-table .status-pill{max-width:100%;padding:3px 7px;overflow:hidden;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.purchase-request-workbench-wrap{width:100%;max-width:100%;overflow-x:auto}.purchase-request-workbench-table{width:100%;min-width:980px;table-layout:fixed}.purchase-request-workbench-table .pr-col-no{width:120px}.purchase-request-workbench-table .pr-col-source{width:182px}.purchase-request-workbench-table .pr-col-type{width:96px}.purchase-request-workbench-table .pr-col-content{width:205px}.purchase-request-workbench-table .pr-col-quantity{width:92px}.purchase-request-workbench-table .pr-col-amount{width:100px}.purchase-request-workbench-table .pr-col-status{width:82px}.purchase-request-workbench-table .pr-col-action{width:124px}.purchase-request-workbench-table>tbody>tr:not(.purchase-request-expanded-row)>td,.purchase-request-workbench-table>thead>tr>th{padding:10px 8px;vertical-align:middle}.purchase-request-workbench-table>thead>tr>th{white-space:nowrap}.purchase-request-workbench-table>tbody>tr:not(.purchase-request-expanded-row){height:78px}.pr-content-preview,.pr-primary-cell,.pr-source-cell{display:grid;min-width:0;gap:3px;line-height:1.25}.pr-content-preview small,.pr-content-preview span,.pr-primary-cell span,.pr-primary-cell strong,.pr-source-cell small,.pr-source-cell span,.pr-source-cell strong{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pr-content-preview span,.pr-primary-cell strong,.pr-source-cell strong{color:var(--text);font-size:12px}.pr-content-preview small,.pr-primary-cell span,.pr-source-cell small,.pr-source-cell span{color:var(--muted);font-size:11px}.pr-content-preview span:nth-of-type(n+3){display:none}.pr-money-cell,.pr-number-cell{text-align:right;white-space:nowrap;font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.pr-action-group{display:flex;align-items:center;gap:5px;white-space:nowrap}.pr-action-group .compact-action{display:inline-flex;width:auto;min-width:58px;align-items:center;justify-content:center;gap:3px}.purchase-request-workbench-table tr.is-expanded>td{background:#f8fbff}.purchase-request-expanded-row>td{padding:0 10px 12px;background:#f8fafc}.purchase-request-expanded-panel{display:grid;gap:10px;padding:12px;border:1px solid var(--line);border-radius:6px;background:#ffffff}.pr-expanded-summary{display:flex;flex-wrap:wrap;gap:8px 24px;color:var(--muted);font-size:12px}.pr-expanded-summary strong{color:var(--text)}.pr-expanded-table-wrap{max-width:100%;overflow-x:auto}.pr-expanded-table-wrap table{width:100%;min-width:760px;border-collapse:collapse;table-layout:fixed}.pr-expanded-table-wrap td,.pr-expanded-table-wrap th{padding:7px 8px;border-top:1px solid var(--line);overflow:hidden;font-size:12px;text-align:left;text-overflow:ellipsis;white-space:nowrap}.pr-expanded-table-wrap td:first-child,.pr-expanded-table-wrap th:first-child{width:220px}@media (max-width:1366px){.purchase-request-workbench-table{min-width:940px}.purchase-request-workbench-table .pr-col-no{width:112px}.purchase-request-workbench-table .pr-col-source{width:166px}.purchase-request-workbench-table .pr-col-type{width:90px}.purchase-request-workbench-table .pr-col-content{width:184px}.purchase-request-workbench-table .pr-col-quantity{width:86px}.purchase-request-workbench-table .pr-col-amount{width:94px}.purchase-request-workbench-table .pr-col-status{width:76px}.purchase-request-workbench-table .pr-col-action{width:122px}.purchase-demand-pool-table{min-width:980px}.purchase-demand-pool-table td,.purchase-demand-pool-table th{padding:8px 6px;font-size:12px}.purchase-demand-pool-table .demand-col-no{width:112px}.purchase-demand-pool-table .demand-col-source{width:116px}.purchase-demand-pool-table .demand-col-relation{width:154px}.purchase-demand-pool-table .demand-col-item{width:164px}.purchase-demand-pool-table .demand-col-progress{width:218px}.purchase-demand-pool-table .demand-col-date{width:82px}.purchase-demand-pool-table .demand-col-status{width:72px}}.purchase-actions-cell{white-space:normal}.purchase-row-actions{display:flex;flex-wrap:wrap;align-items:flex-start;gap:6px;min-width:154px}.purchase-payment-details>summary,.purchase-row-actions .compact-action{width:auto;min-width:46px;min-height:30px;justify-content:center;padding:0 9px;line-height:1;white-space:nowrap;writing-mode:horizontal-tb}.purchase-payment-details{flex:0 0 auto}.purchase-payment-details[open]{flex-basis:100%}.purchase-payment-details[open]>summary{margin-bottom:6px}.mini-payment-note{margin:0;color:#64748b;font-size:12px;line-height:1.45}.table-subtext{margin-top:2px;color:#64748b;font-size:12px;line-height:1.35}.shipment-table-wrap table{min-width:1180px}.shipment-order-list{display:grid;gap:12px}.shipment-order-card{overflow:hidden;border:1px solid var(--line);border-radius:8px;background:#ffffff}.shipment-order-main{display:grid;grid-template-columns:78px minmax(220px,1.4fr) repeat(4,minmax(128px,.8fr)) minmax(132px,.7fr);gap:10px;align-items:center;padding:12px}.shipment-order-image{display:grid;place-items:center;width:72px;height:72px;overflow:hidden;border:1px solid var(--line);border-radius:8px;background:#f8fafc;color:var(--muted);font-size:12px}.shipment-order-image img{width:100%;height:100%;object-fit:cover}.shipment-order-identity,.shipment-order-stat{min-height:64px;border-radius:7px;background:#f8fafc;padding:10px}.shipment-order-identity{display:grid;gap:3px}.shipment-order-identity strong,.shipment-order-stat strong{color:var(--text);font-size:15px}.shipment-order-identity small,.shipment-order-identity span,.shipment-order-stat span{color:var(--muted);font-size:12px}.shipment-order-stat{display:grid;align-content:center;gap:5px}.shipment-order-status{display:grid;justify-items:stretch;gap:7px}.shipment-order-status>span{justify-self:start;border:1px solid #bfdbfe;border-radius:999px;background:#eff6ff;padding:4px 9px;color:#1d4ed8;font-size:12px;font-weight:700}.shipment-order-status>span.warning{border-color:#fed7aa;background:#fff7ed;color:#c2410c}.shipment-order-window{display:grid;gap:12px;border-top:1px solid var(--line);padding:12px;background:#fbfdff}.shipment-conflict-box{display:grid;gap:4px;border:1px solid #fecaca;border-radius:8px;background:#fef2f2;padding:10px 12px;color:#991b1b}.shipment-conflict-box strong{font-size:14px}.shipment-conflict-box span{color:#b91c1c;font-size:12px}.shipment-window-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px}.shipment-window-summary>div{display:grid;gap:4px;border:1px solid var(--line);border-radius:7px;background:#ffffff;padding:10px}.shipment-window-summary.compact{grid-template-columns:repeat(auto-fit,minmax(160px,1fr))}.shipment-window-summary span{color:var(--muted);font-size:12px}.shipment-window-summary strong{color:var(--text);font-size:15px}.shipment-window-tabs{display:flex;gap:6px;overflow-x:auto;padding-bottom:2px}.shipment-window-tabs button{flex:0 0 auto;border:1px solid var(--line);border-radius:999px;background:#ffffff;padding:7px 12px;color:#425166;font-weight:700;cursor:pointer}.shipment-window-tabs button.active{border-color:#2563eb;background:#eff6ff;color:#1d4ed8}.shipment-reconciliation-panel,.shipment-type-panel{display:grid;gap:10px}.shipment-reference-card{display:grid;gap:8px;border:1px solid #dbeafe;border-radius:8px;background:#ffffff;padding:10px}.shipment-reference-title{display:flex;align-items:baseline;justify-content:space-between;gap:10px}.shipment-reference-title strong{color:var(--text)}.shipment-reference-title span{color:var(--muted);font-size:12px}.shipment-type-helper{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #dbeafe;border-radius:8px;background:#eff6ff;padding:10px}.shipment-type-helper>div{display:grid;gap:4px}.shipment-type-helper span{color:#516176;font-size:12px}.shipment-window-table{overflow-x:auto}.shipment-window-table table{min-width:980px}.primary-button.compact,.secondary-button.compact{min-height:32px;padding:0 10px;font-size:13px}@media (max-width:1100px){.shipment-order-main{grid-template-columns:72px minmax(180px,1fr) minmax(130px,.6fr) minmax(130px,.6fr)}}@media (max-width:720px){.shipment-order-main{grid-template-columns:64px 1fr}.shipment-order-status{grid-column:1/-1}.shipment-type-helper{align-items:stretch;flex-direction:column}}.tone-blue{border-top:3px solid var(--blue)}.tone-green{border-top:3px solid var(--green)}.tone-amber{border-top:3px solid var(--amber)}.tone-violet{border-top:3px solid var(--violet)}.login-page{min-height:100vh;display:grid;place-items:center;padding:20px;background:#eef2f6}.login-panel{width:min(420px,100%);background:#ffffff;border:1px solid var(--line);border-radius:8px;padding:22px}.login-brand{color:var(--text);padding:0 0 18px;border-bottom:1px solid var(--line)}.login-brand .brand-mark{background:#101820;color:#ffffff}.login-form{display:grid;gap:14px;margin-top:18px}.login-form label{display:grid;gap:7px;color:#3a4654;font-size:14px}.input-wrap{height:40px;border:1px solid var(--line);border-radius:6px;display:flex;align-items:center;gap:8px;padding:0 10px;background:#ffffff}.input-wrap input{width:100%;border:0;outline:0}.login-button{width:100%;margin-top:4px}.form-error,.form-success{margin:0;border-radius:6px;padding:9px 10px;font-size:13px}.form-error{color:#b42318;background:#fff1f0;border:1px solid #ffccc7}.form-success{color:#047857;background:#ecfdf3;border:1px solid #bbf7d0}.permission-hidden-value{display:inline-flex;min-height:34px;align-items:center;width:100%;border:1px dashed var(--line);border-radius:6px;padding:0 10px;color:var(--muted);background:#f8fafc;font-size:13px}.erp-order-page{display:grid;gap:14px}.erp-card,.erp-detail-header,.erp-mini-card{border:1px solid var(--line);border-radius:8px;background:var(--panel)}.erp-detail-header{min-height:68px;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:18px;padding:14px 16px}.erp-detail-header>div:first-child{min-width:220px}.erp-detail-header h2{margin:6px 0 0;font-size:22px}.title-status-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.title-status-row h2{margin-bottom:0}.erp-header-actions{flex:1 1 620px;min-width:0;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px;max-width:980px}.erp-header-actions form{display:inline-flex;min-width:0;margin:0}.erp-header-actions a,.erp-header-actions button{min-width:0;height:34px;display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid var(--line);border-radius:6px;background:#ffffff;color:var(--text);cursor:pointer;font-size:13px;font-weight:700;padding:0 12px;white-space:nowrap}.erp-header-actions .danger{border-color:#fecaca;color:#dc2626}.erp-header-actions .primary{border-color:#2563eb;background:#2563eb;color:#ffffff}.erp-card,.erp-mini-card{padding:16px}.erp-card-fixed-table{display:flex;min-height:0;flex-direction:column}.erp-card-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.erp-card-title h3{margin:0;font-size:18px}.erp-card-title a,.erp-card-title span{color:#2563eb;font-size:13px;font-weight:700;white-space:nowrap}.erp-order-kpi-strip{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}.erp-order-kpi-card{min-width:0;display:grid;gap:8px;padding:14px 16px;border:1px solid var(--line);border-radius:8px;background:linear-gradient(180deg,#ffffff,#f8fbff)}.erp-order-kpi-card span{color:var(--muted);font-size:12px;font-weight:800}.erp-order-kpi-card strong{color:var(--text);font-size:19px;line-height:1.15;overflow-wrap:anywhere}.sales-order-info-layout{display:grid;grid-template-columns:minmax(300px,.72fr) minmax(0,2fr);gap:16px;align-items:stretch}.sales-order-primary-card,.sales-order-summary-card{min-width:0}.sales-order-primary-list{display:grid;margin-top:8px}.sales-order-primary-list>div{display:grid;grid-template-columns:46px minmax(0,1fr);align-items:center;gap:12px;min-height:86px;border-bottom:1px solid var(--line)}.sales-order-primary-list>div:last-child{border-bottom:0}.sales-order-primary-icon{display:grid;place-items:center;width:46px;height:46px;border-radius:12px}.sales-order-primary-icon.blue{background:#edf4ff;color:#2563eb}.sales-order-primary-icon.purple{background:#f4efff;color:#7c3aed}.sales-order-primary-icon.orange{background:#fff4e8;color:#ea7a12}.sales-order-primary-list p{display:grid;gap:6px;min-width:0;margin:0}.sales-order-primary-list small{color:var(--muted);font-size:12px;font-weight:700}.sales-order-primary-list strong{color:var(--text);font-size:18px;line-height:1.35;overflow-wrap:anywhere}.sales-order-summary-card .erp-order-kpi-strip{grid-template-columns:repeat(5,minmax(0,1fr));margin-top:18px}.sales-order-summary-card .erp-order-kpi-card{min-height:122px;align-content:center;justify-items:center;text-align:center}.sales-order-overview-chips{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}.sales-order-overview-chips>div{min-width:0;display:grid;gap:5px;padding:10px 12px;border:1px solid #e4edf8;border-radius:8px;background:#ffffff}.sales-order-overview-chips span{color:var(--muted);font-size:12px;font-weight:800}.sales-order-overview-chips strong{min-width:0;color:var(--text);font-size:14px;line-height:1.35;overflow-wrap:anywhere}.sales-order-tab-shell{display:grid;gap:14px}.sales-order-tab-shell>input{position:absolute;pointer-events:none;opacity:0}.sales-order-tab-labels{display:flex;flex-wrap:wrap;gap:8px;padding:8px 0 0;border-bottom:1px solid #dbe5f2;background:var(--bg)}.sales-order-tab-labels label{margin-bottom:-1px;padding:10px 14px;cursor:pointer;border:1px solid transparent;border-radius:8px 8px 0 0;color:#64748b;font-size:14px;font-weight:900}#sales-order-tab-finance:checked~.sales-order-tab-labels label[for=sales-order-tab-finance],#sales-order-tab-info:checked~.sales-order-tab-labels label[for=sales-order-tab-info],#sales-order-tab-items:checked~.sales-order-tab-labels label[for=sales-order-tab-items],#sales-order-tab-related:checked~.sales-order-tab-labels label[for=sales-order-tab-related]{border-color:#dbe5f2 #dbe5f2 #ffffff;background:#ffffff;color:#1d4ed8;box-shadow:inset 0 -2px 0 #2563eb}.sales-order-tab-panel{display:none;gap:14px;min-width:0}#sales-order-tab-finance:checked~.panel-finance,#sales-order-tab-info:checked~.panel-info,#sales-order-tab-items:checked~.panel-items,#sales-order-tab-related:checked~.panel-related{display:grid}.erp-order-master-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,.42fr);gap:18px;align-items:start}.erp-order-main-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.erp-order-side-stack{display:grid;gap:12px}.erp-style-image-card{display:grid;align-content:start;gap:10px;min-width:0}.erp-style-image-card h4{margin:0;color:#263241;font-size:14px}.erp-style-image-preview{aspect-ratio:4/3;display:grid;place-items:center;overflow:hidden;border:1px solid var(--line);border-radius:10px;background:#f8fafc;color:var(--muted);font-size:12px;font-weight:700}.erp-style-image-preview img{width:100%;height:100%;object-fit:contain}.erp-style-image-card strong{min-width:0;color:var(--text);font-size:14px;line-height:1.45;overflow-wrap:anywhere}.erp-style-image-card span{color:var(--muted);font-size:12px}.purchase-request-info-layout{display:grid;grid-template-columns:minmax(260px,.9fr) minmax(0,1fr) minmax(0,1fr);gap:14px;align-items:start}.purchase-request-style-section{min-width:0}.purchase-request-style-section>h4{margin:0 0 10px;color:#263241;font-size:14px}.purchase-request-style-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(104px,1fr));gap:10px}.purchase-request-style-card{min-width:0;display:grid;gap:5px}.purchase-request-style-card .erp-style-image-preview{width:100%;height:88px;aspect-ratio:auto;border-radius:7px}.purchase-request-style-card strong{min-width:0;color:var(--text);font-size:12px;line-height:1.35;overflow-wrap:anywhere}.purchase-request-style-card span{color:var(--muted);font-size:11px}.purchase-request-audit{padding:0;overflow:hidden}.purchase-request-audit>summary{min-height:58px;padding:14px 18px;display:flex;align-items:center;justify-content:space-between;gap:16px;cursor:pointer;list-style:none}.purchase-request-audit>summary::-webkit-details-marker{display:none}.purchase-request-audit>summary div{display:grid;gap:4px}.purchase-request-audit>summary strong{color:var(--text);font-size:16px}.purchase-request-audit>summary span{color:var(--muted);font-size:12px}.purchase-request-audit[open]>summary svg{transform:rotate(180deg)}.purchase-request-audit-content{padding:0 16px 16px;border-top:1px solid var(--line)}.erp-order-page .erp-info-column,.erp-status-panel{min-width:0;height:100%;padding:14px;border:1px solid #e8eef6;border-radius:8px;background:#fbfdff}.erp-info-column h4{margin:0 0 12px;color:#263241;font-size:14px}.erp-info-column dl{display:grid;gap:10px;margin:0}.erp-info-column dl div{display:grid;grid-template-columns:96px minmax(0,1fr);gap:12px;align-items:baseline}.erp-info-column dt{color:var(--muted);font-size:13px;font-weight:700}.erp-info-column dd{min-width:0;margin:0;color:var(--text);font-weight:700;overflow-wrap:anywhere}.erp-status-panel{display:grid;align-content:start;gap:12px}.erp-status-panel-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.erp-status-panel-head>span{color:#263241;font-size:14px;font-weight:800}.erp-status-badge{display:inline-flex;align-items:center;min-height:24px;padding:3px 10px;border-radius:999px;background:#eef2f7;color:#475569;font-size:12px;font-weight:800;white-space:nowrap}.erp-status-badge.done{background:#dcfce7;color:#15803d}.erp-status-badge.partial{background:#dbeafe;color:#1d4ed8}.erp-status-badge.neutral,.erp-status-badge.pending{background:#f1f5f9;color:#475569}.erp-status-badge.danger{background:#fee2e2;color:#dc2626}.erp-status-panel-grid{display:grid;gap:8px}.erp-status-panel-grid div{display:grid;gap:4px;padding:10px 0;border-top:1px solid #edf2f7}.erp-status-panel-grid span{color:var(--muted);font-size:12px;font-weight:800}.erp-status-panel-grid strong{min-width:0;color:var(--text);font-size:13px;line-height:1.5;overflow-wrap:anywhere}.amount-green{color:#059669}.amount-red{color:#ea580c}.erp-progress-line{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(132px,1fr);gap:0;overflow-x:auto;padding:4px 0 8px}.erp-progress-node{position:relative;min-width:132px;display:grid;justify-items:center;gap:6px;text-align:center;color:var(--muted)}.erp-progress-node:before{content:"";position:absolute;top:15px;left:0;width:100%;height:2px;background:#d6dee8}.erp-progress-node.current:before,.erp-progress-node.done:before,.erp-progress-node.warning:before{background:#2563eb}.erp-progress-node:first-child:before{left:50%;width:50%}.erp-progress-node:last-child:before{width:50%}.erp-progress-dot{z-index:1;width:30px;height:30px;display:grid;place-items:center;border:2px solid #cbd5e1;border-radius:999px;background:#ffffff;color:#64748b;font-size:12px;font-weight:800}.erp-progress-node.done .erp-progress-dot{border-color:#2563eb;background:#2563eb;color:#ffffff}.erp-progress-node.current .erp-progress-dot{border-color:#2563eb;background:#ffffff;color:#2563eb}.erp-progress-node.warning .erp-progress-dot{border-color:#f97316;background:#fff7ed;color:#ea580c}.erp-progress-node.waiting .erp-progress-dot{border-color:#cbd5e1;background:#f8fafc;color:#64748b}.erp-progress-node strong{color:var(--text);font-size:13px}.erp-progress-node small,.erp-progress-node span{font-size:12px}.erp-progress-node span{color:#334155;font-weight:700}.erp-progress-node.warning span{color:#ea580c}.erp-table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:8px}.erp-card-table-scroll,.erp-mini-card-table-scroll{overflow:auto}.erp-card-table-scroll{max-height:260px}.erp-card-table-scroll.compact-scroll{max-height:180px}.erp-mini-card-table-scroll{flex:1 1;min-height:0;max-height:188px}.erp-card-table-scroll .erp-table th,.erp-mini-card-table-scroll .erp-table th{position:sticky;top:0;z-index:1}.erp-table{width:100%;min-width:980px;border-collapse:collapse;background:#ffffff}.erp-table.compact{min-width:520px}.erp-table td,.erp-table th{border-bottom:1px solid var(--line);padding:10px 12px;text-align:left;font-size:13px;white-space:nowrap}.erp-table th{background:#f8fafc;color:#475569;font-weight:800}.erp-table td{color:#17202a}.erp-table tfoot td{background:#fbfdff;font-weight:800}.erp-table tr:last-child td{border-bottom:0}.order-detail-image{width:62px;height:46px}.erp-related-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.erp-mini-card{min-width:0;height:292px;display:flex;flex-direction:column}.erp-mini-card .erp-table{min-width:420px}.erp-mini-card .erp-card-title{margin-bottom:10px}.erp-mini-card .erp-card-title h3{font-size:16px}.text-actions{display:flex;flex-wrap:wrap;gap:6px}.text-actions a,.text-actions button{display:inline-flex;align-items:center;min-height:26px;padding:3px 8px;border:1px solid #dbeafe;border-radius:6px;background:#eff6ff;color:#2563eb;font-size:12px;font-weight:800;text-decoration:none;cursor:pointer;white-space:nowrap}.text-actions form{display:inline-flex}.order-execution-table td:last-child,.order-execution-table th:last-child{min-width:150px;vertical-align:middle}.order-execution-table td:last-child{padding-right:14px}.order-item-action-stack{display:grid;gap:8px;min-width:128px;max-width:150px}.order-demand-action{display:grid;gap:6px}.order-demand-status{display:grid;gap:4px}.order-demand-status:empty{display:none}.order-demand-form{display:block;margin:0}.order-demand-action button,.order-demand-link{width:100%;min-height:32px;display:inline-flex;align-items:center;justify-content:center;padding:6px 10px;border:1px solid #dbeafe;border-radius:6px;background:#eff6ff;color:#2563eb;font-size:12px;font-weight:800;line-height:1.25;text-align:center;text-decoration:none;white-space:normal;cursor:pointer}.order-demand-link{background:#f8fbff}.order-demand-action .demand-generated-pill{width:100%;justify-content:center;text-align:center;white-space:normal}.demand-generated-pill{display:inline-flex;align-items:center;min-height:26px;padding:3px 8px;border:1px solid #bbf7d0;border-radius:6px;background:#f0fdf4;color:#15803d;font-size:12px;font-weight:800;white-space:nowrap}.demand-generated-pill.partial{border-color:#fed7aa;background:#fff7ed;color:#c2410c}.fulfillment-flow-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.fulfillment-flow-card{min-width:0;display:grid;gap:12px;padding:14px;border:1px solid #e3eaf4;border-radius:8px;background:#fbfdff}.fulfillment-flow-card>div:first-child{display:flex;justify-content:space-between;gap:10px}.fulfillment-flow-card strong{color:var(--text)}.fulfillment-flow-card span{color:var(--muted);font-size:12px;font-weight:800}.mini-flow-line{display:flex;flex-wrap:wrap;gap:6px}.mini-flow-line span{display:inline-flex;min-height:24px;align-items:center;padding:3px 8px;border-radius:999px;background:#f1f5f9;color:#64748b}.mini-flow-line span.done{background:#dcfce7;color:#15803d}.mini-flow-line span.current{background:#dbeafe;color:#1d4ed8}.delivery-warning-badge{display:inline-flex;align-items:center;gap:4px;width:fit-content;border:1px solid #dbe3ee;border-radius:999px;background:#f8fafc;color:#475569;font-size:12px;font-weight:800;line-height:1;padding:6px 10px;white-space:nowrap}.delivery-warning-badge small{color:inherit;font-size:11px;font-weight:800}.delivery-warning-badge.normal{border-color:#bbf7d0;background:#f0fdf4;color:#15803d}.delivery-warning-badge.warning{border-color:#fed7aa;background:#fff7ed;color:#c2410c}.delivery-warning-badge.danger{border-color:#fecaca;background:#fef2f2;color:#dc2626}.delivery-warning-badge.late{border-color:#ddd6fe;background:#f5f3ff;color:#7c3aed}.delivery-warning-card{display:grid;gap:12px}.delivery-warning-summary{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.delivery-warning-summary>div{min-height:72px;display:grid;align-content:center;gap:6px;border:1px solid var(--line);border-radius:8px;background:#fbfdff;padding:10px 12px}.delivery-warning-summary span{color:var(--muted);font-size:12px;font-weight:700}.delivery-warning-summary strong{color:var(--text);font-size:15px}.delivery-warning-empty{margin:0;border:1px dashed var(--line);border-radius:8px;background:#f8fafc;color:var(--muted);font-size:13px;padding:12px}@media (max-width:1500px){.erp-header-actions{flex-basis:100%;width:100%}.delivery-warning-summary,.erp-order-kpi-strip,.sales-order-overview-chips{grid-template-columns:repeat(3,minmax(0,1fr))}.erp-order-master-layout{grid-template-columns:minmax(0,1fr)}.erp-order-side-stack{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}@media (max-width:1320px){.erp-order-kpi-strip,.sales-order-overview-chips{grid-template-columns:repeat(2,minmax(0,1fr))}.erp-order-main-grid{grid-template-columns:1fr}}.dev-document-page{padding-bottom:88px}.dev-document-form{display:grid;gap:14px}.dev-doc-toolbar{align-items:flex-start;background:#ffffff;border:1px solid #dbe4ee;border-radius:8px;display:flex;gap:16px;justify-content:space-between;padding:18px 20px;position:sticky;top:0;z-index:8}.dev-doc-toolbar>div:first-child{display:grid;gap:4px}.dev-doc-toolbar .back-link{align-items:center;color:#2563eb;display:inline-flex;font-size:13px;gap:6px;text-decoration:none}.dev-doc-toolbar h2{color:#0f172a;font-size:24px;margin:4px 0 0}.dev-doc-toolbar p{color:#64748b;font-size:13px;margin:0}.dev-toolbar-actions{align-items:center;display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}.danger-button,.success-button{align-items:center;border-radius:6px;border:1px solid transparent;cursor:pointer;display:inline-flex;font-size:13px;font-weight:700;gap:6px;min-height:36px;padding:0 14px;text-decoration:none;transition:.15s ease}.success-button{background:#16a34a;color:#ffffff}.success-button:hover{background:#15803d}.danger-button:disabled,.success-button:disabled{cursor:not-allowed;opacity:.55}.danger-button{background:#ef4444;color:#ffffff}.danger-button.outline{background:#ffffff;border-color:#fecaca;color:#dc2626}.danger-button.outline:hover{background:#fef2f2}.dev-doc-strip{background:#ffffff;border:1px solid #dbe4ee;border-radius:8px;display:grid;gap:12px;grid-template-columns:repeat(4,minmax(0,1fr));padding:14px 16px}.dev-strip-item{background:#f8fafc;border:1px solid #e5edf6;border-radius:7px;display:grid;gap:5px;min-height:70px;padding:11px 13px}.dev-strip-item span{color:#64748b;font-size:12px}.dev-strip-item strong{color:#0f172a;font-size:16px;line-height:1.25}.dev-strip-item em{align-self:start;background:#dbeafe;border-radius:999px;color:#2563eb;font-size:11px;font-style:normal;font-weight:700;justify-self:start;padding:2px 7px}.dev-doc-layout{align-items:start;grid-template-columns:minmax(0,1.45fr) minmax(360px,.72fr)}.dev-doc-layout,.dev-doc-main,.dev-doc-side{display:grid;gap:14px}.dev-doc-side{position:sticky;top:132px}.dev-doc-card{background:#ffffff;border:1px solid #dbe4ee;border-radius:8px;box-shadow:0 8px 20px rgba(15,23,42,.035);display:grid;gap:14px;padding:16px}.dev-card-heading{align-items:center;display:flex;gap:10px}.dev-card-heading i{align-items:center;background:#2563eb;border-radius:999px;color:#ffffff;display:inline-flex;font-size:12px;font-style:normal;font-weight:800;height:22px;justify-content:center;width:22px}.dev-card-heading h3{color:#0f172a;font-size:17px;margin:0}.dev-card-heading span{color:#94a3b8;font-size:12px}.dev-doc-grid{display:grid;gap:12px;grid-template-columns:repeat(4,minmax(0,1fr))}.dev-doc-grid.side-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dev-doc-grid .form-field textarea{min-height:70px}.dev-doc-grid .form-field:has(textarea),.dev-doc-grid .full-span{grid-column:1/-1}.dev-doc-grid .form-field label{font-size:12px}.dev-doc-grid .form-field input,.dev-doc-grid .form-field select,.dev-doc-grid .form-field textarea{min-height:38px}.dev-material-lines{border:1px solid #dbe4ee;border-radius:8px;background:#fbfdff;padding:10px}.dev-material-lines-head{align-items:center;display:flex;gap:12px;justify-content:space-between;margin-bottom:8px}.dev-material-lines-head strong{color:#0f172a;display:block;font-size:13px}.dev-material-lines-head span{color:#64748b;display:block;font-size:12px;margin-top:2px}.dev-material-table{min-width:620px}.dev-material-table td:last-child,.dev-material-table th:last-child{text-align:center;width:58px}.readonly-field{background:#f8fafc;border:1px solid #dbe4ee;border-radius:7px;display:grid;gap:6px;min-height:62px;padding:10px 12px}.readonly-field span{color:#64748b;font-size:12px;font-weight:700}.readonly-field strong{color:#0f172a;font-size:14px;line-height:1.35}.readonly-money{color:#2563eb!important;font-weight:800}.converted-box{align-items:center;background:#ecfdf5;border:1px solid #bbf7d0;border-radius:7px;color:#166534;display:flex;justify-content:space-between;padding:11px 12px}.dev-attachment-field{border:1px dashed #cbd5e1;border-radius:8px;display:grid;gap:10px;padding:12px}.dev-attachment-head{align-items:center;display:flex;gap:10px;justify-content:space-between}.dev-attachment-head strong{color:#0f172a;font-size:13px}.dev-upload-button{align-items:center;background:#f8fafc;border:1px solid #cbd5e1;border-radius:6px;color:#2563eb;cursor:pointer;display:inline-flex;font-size:12px;font-weight:700;gap:6px;min-height:32px;padding:0 10px}.dev-attachment-list{display:grid;gap:8px}.dev-attachment-empty,.dev-attachment-item{align-items:center;background:#f8fafc;border:1px solid #e2e8f0;border-radius:6px;color:#64748b;display:grid;gap:8px;grid-template-columns:42px minmax(0,1fr) 28px;min-height:42px;padding:6px}.dev-attachment-empty{display:flex;font-size:13px;justify-content:center}.dev-attachment-preview{align-items:center;background:#ffffff;border:1px solid #dbe4ee;border-radius:5px;color:#64748b;display:flex;height:34px;justify-content:center;overflow:hidden;width:34px}.dev-attachment-preview img{height:100%;object-fit:cover;width:100%}.dev-attachment-item span{color:#334155;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dev-attachment-item>button:last-child{align-items:center;background:transparent;border:0;color:#ef4444;cursor:pointer;display:flex;justify-content:center}.dev-revision-inline{align-items:end;display:grid;gap:10px;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto}.dev-bottom-actions{align-items:center;background:rgba(255,255,255,.96);border:1px solid #dbe4ee;border-radius:10px;bottom:16px;box-shadow:0 16px 40px rgba(15,23,42,.12);display:flex;gap:10px;justify-content:center;left:calc(var(--sidebar-width) + 24px);padding:12px;position:fixed;right:24px;z-index:20}@media (max-width:1180px){.erp-order-kpi-strip{grid-template-columns:repeat(3,minmax(0,1fr))}.erp-order-master-layout{grid-template-columns:minmax(220px,280px) minmax(0,1fr)}.erp-order-side-stack{grid-column:1/-1;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.dev-doc-layout{grid-template-columns:1fr}.dev-doc-side{position:static}.dev-doc-grid,.dev-doc-strip{grid-template-columns:repeat(2,minmax(0,1fr))}.dev-bottom-actions{left:24px}}@media (max-width:760px){.delivery-warning-summary,.erp-order-kpi-strip,.erp-order-main-grid,.erp-order-master-layout,.erp-order-side-stack,.erp-related-grid{grid-template-columns:1fr}.erp-status-panel-head{align-items:flex-start;flex-direction:column}.dev-doc-toolbar{align-items:stretch;flex-direction:column;position:static}.dev-bottom-actions,.dev-toolbar-actions{justify-content:stretch}.dev-bottom-actions>*,.dev-toolbar-actions>*{flex:1 1 120px}.dev-doc-grid,.dev-doc-grid.side-grid,.dev-doc-strip,.dev-revision-inline{grid-template-columns:1fr}.dev-bottom-actions{bottom:10px;left:12px;right:12px}}@media (max-width:980px){.app-shell{height:auto;grid-template-columns:1fr;overflow:visible}.sidebar{box-shadow:0 20px 60px rgba(15,23,42,.28);height:100vh;left:0;max-width:min(82vw,288px);overflow-y:auto;overscroll-behavior:contain;position:fixed;top:0;width:min(82vw,288px);z-index:55}.sidebar-collapsed .sidebar{opacity:0;transform:translateX(-100%)}.main-panel{height:auto;overflow:visible;padding-top:58px}.nav-list{grid-template-columns:1fr}.sidebar-toggle-button{left:12px;top:12px}.module-header,.payment-request-header,.payment-sticky-actions,.topbar{align-items:flex-start;flex-direction:column}.archive-cost-summary,.attachment-grid,.exception-claim-editor,.flow-progress-grid,.inventory-summary-grid,.metric-grid,.migration-grid,.payment-field-grid.two-col,.payment-main-grid,.payment-note-grid,.payment-stat-grid,.permission-group-grid,.permission-toolbar,.record-form,.role-grid,.rule-grid,.user-rule-grid{grid-template-columns:1fr}.exception-summary-card{grid-template-columns:repeat(2,minmax(0,1fr))}.exception-form-grid{grid-template-columns:repeat(6,minmax(0,1fr))}.exception-form-grid>.exception-info-card,.exception-form-grid>.exception-profit-card,.exception-form-grid>.form-field{grid-column:span 3}.exception-form-grid>.exception-span-2{grid-column:span 6}.customer-exception-document-summary,.customer-exception-grid.six,.customer-exception-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.customer-exception-document-summary .summary-item{border-bottom:1px solid #e5edf8}.customer-exception-document-summary .summary-item:nth-child(3n){border-right:0}.customer-exception-order-card{grid-template-columns:repeat(2,minmax(0,1fr))}.customer-exception-order-card .info-pair:nth-child(5n){border-right:1px solid #e5edf8}.customer-exception-order-card .info-pair:nth-child(2n){border-right:0}.customer-exception-timeline{grid-template-columns:repeat(3,minmax(0,1fr))}.customer-exception-lower-grid{grid-template-columns:1fr}.customer-exception-total-strip{grid-template-columns:repeat(3,minmax(0,1fr))}.payment-card,.payment-request-header,.payment-sticky-actions{border-radius:8px}.payment-header-actions,.payment-sticky-actions>div{width:100%;flex-wrap:wrap}.payment-header-actions a,.payment-header-actions button,.payment-sticky-actions button{flex:1 1 140px}.finance-core-filter-grid,.inventory-filter-grid,.payment-category-form,.purchase-filter-grid,.style-list-card,.style-list-grid.business-only .style-list-card,.style-role-toolbar{grid-template-columns:1fr}.style-list-card{align-items:stretch}.style-list-card,.style-list-grid.business-only .style-list-card{grid-template-columns:minmax(120px,1fr) minmax(92px,.7fr) minmax(170px,1.15fr) 48px}.style-cost-grid,.style-cost-locked{grid-column:1/-1}.style-list-actions{grid-column:auto}.style-role-toolbar{align-items:stretch;flex-direction:column}.style-role-toolbar label{min-width:0}.cost-summary,.erp-order-info-layout,.erp-related-grid,.form-panel-grid,.order-style-grid,.style-cost-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.erp-detail-header{align-items:flex-start;flex-direction:column}.bom-form-toolbar{align-items:stretch;flex-direction:column}.bom-bottom-actions,.bom-toolbar-actions{justify-content:stretch}.bom-bottom-actions>*,.bom-toolbar-actions>*{flex:1 1 120px}.bom-page-layout{grid-template-columns:1fr}.bom-side-column{position:static}.bom-style-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.bom-style-grid .form-field,.bom-style-grid .size-field{grid-column:auto}.erp-order-summary-card{grid-column:1/-1}}@media (max-width:760px){.erp-order-kpi-strip,.erp-order-main-grid,.erp-order-master-layout,.erp-order-side-stack,.erp-related-grid{grid-template-columns:1fr}}@media (max-width:620px){.archive-cost-summary,.cost-summary,.exception-claim-editor,.exception-form-grid,.exception-summary-card,.form-panel-grid,.order-style-grid,.permission-child-grid,.style-cost-grid,.style-media-grid{grid-template-columns:1fr}.exception-form-grid>.exception-info-card,.exception-form-grid>.exception-profit-card,.exception-form-grid>.exception-span-2,.exception-form-grid>.form-field{grid-column:1/-1}.customer-exception-footer-actions,.customer-exception-header .action-row{width:100%;flex-direction:column;align-items:stretch}.customer-exception-document-summary,.customer-exception-grid.six,.customer-exception-grid.three,.customer-exception-grid.two,.customer-exception-order-card,.customer-exception-summary,.customer-exception-timeline,.customer-exception-total-strip{grid-template-columns:1fr}.customer-exception-document-summary .summary-item,.customer-exception-document-summary .summary-item:nth-child(3n),.customer-exception-order-card .info-pair,.customer-exception-order-card .info-pair:nth-child(2n),.customer-exception-order-card .info-pair:nth-child(5n),.customer-exception-total-strip .info-pair{border-right:0}.customer-exception-card-title{display:grid}.customer-exception-card-title span{text-align:left}.permission-group-card{min-height:auto}.style-list-card,.style-list-grid.business-only .style-list-card{grid-template-columns:minmax(0,1fr)}.style-image-pair{grid-template-columns:repeat(2,minmax(0,1fr))}.erp-order-info-layout,.erp-related-grid{grid-template-columns:1fr}.erp-header-actions{width:100%;justify-content:stretch}.erp-header-actions a,.erp-header-actions button{flex:1 1 120px}.bom-style-grid{grid-template-columns:1fr}.bom-style-grid .form-field,.bom-style-grid .size-field{grid-column:auto}.media-url-row{grid-template-columns:1fr}.erp-info-column dl div{grid-template-columns:92px minmax(0,1fr)}}.schedule-request-summary{display:grid;grid-template-columns:120px repeat(4,minmax(0,1fr));gap:12px;align-items:stretch}.task-image-cell.large{width:120px;height:96px}.size-chip-row{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.size-chip{border:1px solid #dbe5f2;border-radius:6px;background:#f8fafc;color:#243044;font-size:13px;font-weight:700;padding:6px 10px}.size-chip.done{color:#64809f;background:#eef4fb}.schedule-process-list{display:grid;gap:14px}.schedule-process-card{border:1px solid #dbe5f2;border-radius:8px;background:#fff;padding:14px}.section-title.compact{margin-bottom:8px}.schedule-process-form{display:grid;gap:12px;padding:12px;background:#f8fafc;border-top:1px solid #e5edf6}.checkbox-fieldset{border:0;padding:0}.checkbox-fieldset legend{margin-bottom:8px;color:#64748b;font-size:13px;font-weight:700}.checkbox-row{display:flex;flex-wrap:wrap;gap:8px}.checkbox-pill{display:inline-flex;align-items:center;gap:7px;min-height:34px;padding:6px 10px;border:1px solid #dbe5f2;border-radius:8px;background:#f8fafc;color:#334155;font-size:13px;font-weight:700}.work-order-assignment-form{display:grid;gap:10px}.wo-assignment-toolbar{position:sticky;top:8px;z-index:8;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 10px;border:1px solid #e5eaf2;border-radius:8px;background:rgba(255,255,255,.96);color:#64748b;font-size:13px;font-weight:700;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}.wo-assignment-toolbar .primary-button{min-height:34px}.wo-process-card{overflow:visible;border:1px solid #e5eaf2;border-radius:8px;background:#ffffff}.wo-process-card.locked{border-color:#bbf7d0;background:linear-gradient(180deg,#ffffff,#fbfffc)}.wo-process-card-header{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;align-items:center;padding:10px 14px 8px;border-bottom:1px solid #edf2f7}.wo-process-title{display:flex;flex-wrap:wrap;align-items:center;gap:8px;min-width:0}.wo-process-title h3{margin:0;color:#1f2937;font-size:17px}.wo-process-index{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:999px;background:#2563eb;color:#ffffff;font-size:13px;font-weight:800}.wo-process-metrics{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:4px 12px;color:#64748b;font-size:12px;font-weight:700}.wo-process-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px}.wo-process-actions .primary-button.compact,.wo-process-actions .secondary-button.compact{min-height:34px;height:34px;padding:0 12px}.wo-status-tag{display:inline-flex;align-items:center;min-height:22px;padding:1px 8px;border-radius:999px;border:1px solid #dbe5f2;background:#f8fafc;color:#64748b;font-size:12px;font-weight:800;white-space:nowrap}.wo-status-tag.success{border-color:#bbf7d0;background:#f0fdf4;color:#15803d}.wo-status-tag.warning{border-color:#fed7aa;background:#fff7ed;color:#c2410c}.wo-status-tag.info{border-color:#bfdbfe;background:#eff6ff;color:#2563eb}.wo-status-tag.muted{border-color:#e2e8f0;background:#f8fafc;color:#64748b}.warning-text{color:#f97316}.wo-size-summary{min-height:32px;padding:7px 14px;border-bottom:1px solid #edf2f7;color:#64748b;font-size:12px;font-weight:700;line-height:18px}.wo-size-summary.compact-scroll{overflow-x:auto;white-space:nowrap}.wo-assignment-table-wrap{overflow-x:auto;overflow-y:visible;padding:0}.wo-assignment-table-wrap.collapsed{display:none}.wo-assignment-table-wrap table{table-layout:fixed;width:max-content;min-width:100%;border:0;border-radius:0 0 8px 8px}.wo-assignment-table-wrap thead th{background:#f8fafc}.wo-assignment-table-wrap td:first-child,.wo-assignment-table-wrap th:first-child{position:sticky;left:0;z-index:3;background:#ffffff}.wo-assignment-table-wrap td:nth-child(2),.wo-assignment-table-wrap th:nth-child(2){position:sticky;left:140px;z-index:3;background:#ffffff;box-shadow:8px 0 12px -12px rgba(15,23,42,.35)}.wo-assignment-table-wrap thead th:first-child,.wo-assignment-table-wrap thead th:nth-child(2){z-index:4;background:#f8fafc}.wo-assignment-table-wrap td,.wo-assignment-table-wrap th{vertical-align:top;height:44px;padding:7px 10px;white-space:nowrap}.wo-assignment-table-wrap .factory-search-input-wrap,.wo-assignment-table-wrap input{min-height:32px;height:32px}.wo-assignment-table-wrap input{padding:0 8px}.factory-search-input-wrap:has(input:disabled),.wo-assignment-table-wrap button:disabled,.wo-assignment-table-wrap input:disabled{cursor:not-allowed;background:#f8fafc;color:#64748b}.wo-assignment-table-wrap .number-input,.wo-assignment-table-wrap .quantity-readonly,.wo-assignment-table-wrap td:nth-child(n+3):nth-child(-n+10),.wo-assignment-table-wrap th:nth-child(n+3):nth-child(-n+10){text-align:right}.wo-assignment-table-wrap .quantity-readonly{color:#1f2937;font-weight:800;line-height:32px}.compact-number-input{max-width:64px}.compact-money-input{max-width:92px}.factory-search-select{position:relative;display:block;min-width:0;width:180px}.factory-search-input-wrap{display:flex;align-items:center;gap:5px;padding:0 8px;border:1px solid #dbe5f2;border-radius:7px;background:#ffffff}.factory-search-input-wrap input{width:100%;min-height:30px;height:30px;border:0;padding:0;outline:0}.factory-search-input-wrap.has-value input::placeholder{color:#111827;font-weight:800;opacity:1}.factory-search-option span{color:#1f2937;font-size:12px;font-weight:800}.factory-search-option small{color:#64748b;font-size:11px}.factory-search-menu{position:absolute;z-index:30;top:calc(100% + 4px);left:0;display:grid;gap:2px;width:220px;max-height:250px;overflow-y:auto;padding:5px;border:1px solid #dbe5f2;border-radius:8px;background:#ffffff;box-shadow:0 14px 28px rgba(15,23,42,.08)}.factory-search-menu.floating{position:fixed;z-index:1000;max-width:260px;box-shadow:0 18px 36px rgba(15,23,42,.16)}.factory-search-empty,.factory-search-group{padding:4px 6px;color:#94a3b8;font-size:11px;font-weight:800}.factory-search-option{display:grid;gap:2px;width:100%;border:1px solid transparent;border-radius:7px;min-height:42px;padding:5px 7px;background:transparent;text-align:left;cursor:pointer}.factory-search-option.selected,.factory-search-option:hover{border-color:#bfdbfe;background:#eff6ff}.production-select-grid.compact{grid-template-columns:1.3fr .8fr .9fr}@media (max-width:920px){.production-select-grid.compact,.schedule-request-summary{grid-template-columns:1fr}.task-image-cell.large{width:100%}}.customer-statement-summary-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.mode-pill{display:inline-flex;align-items:center;width:fit-content;margin-top:6px;border:1px solid #bfdbfe;border-radius:999px;background:#eff6ff;color:#1d4ed8;font-size:12px;font-weight:800;padding:4px 9px}.compact-summary{display:flex;flex-wrap:wrap;align-items:center;gap:10px;border:1px solid #dbeafe;border-radius:8px;background:#f8fbff;padding:10px 12px;color:#475569}.compact-summary strong{color:#111827}.production-issue-filter{grid-template-columns:minmax(240px,1.5fr) repeat(6,minmax(120px,1fr)) auto}.production-issue-lines-wrap,.production-issue-table-wrap{max-width:100%;overflow-x:auto}.production-issue-lines-wrap table,.production-issue-table-wrap table{min-width:1320px}.production-issue-lines-wrap td,.production-issue-lines-wrap th{white-space:nowrap}.readonly-cell{color:#334155;font-weight:800}.warning-input{border-color:#f59e0b!important;background:#fffbeb}.warning-text{display:block;margin-top:4px;color:#d97706;font-size:11px;font-weight:800}.danger-text{color:#dc2626!important;font-weight:800}.issue-line-error-row td{background:#fff7ed}.production-issue-bottom-error{margin-top:12px}.bom-missing-hint{display:grid;gap:8px;margin-bottom:12px;border:1px dashed #bfdbfe;border-radius:8px;background:#f8fbff;padding:14px;color:#475569}.bom-missing-hint strong{color:#1f2937}.checkbox-line{display:inline-flex;align-items:center;gap:8px;color:#334155;font-weight:800}.checkbox-line.full{grid-column:1/-1}.checkbox-line input{width:16px;height:16px}.production-issue-lines-wrap+.form-actions{position:sticky;bottom:0;z-index:5;margin-top:12px;border-top:1px solid #e5eaf2;background:rgba(255,255,255,.95);padding:12px 0 0;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}@media (max-width:1280px){.production-issue-filter{grid-template-columns:repeat(2,minmax(0,1fr))}}.customer-statement-center{--statement-blue:#2563eb;--statement-green:#16a34a;--statement-amber:#f59e0b;--statement-red:#dc2626;--statement-violet:#7c3aed}.statement-filter-section{display:grid;gap:16px}.factory-generate-disclosure{display:grid;gap:12px;padding:12px;border:1px solid #dbeafe;border-radius:8px;background:linear-gradient(180deg,#f8fbff,#ffffff)}.factory-generate-disclosure>summary{width:fit-content;list-style:none;cursor:pointer}.factory-generate-disclosure>summary::-webkit-details-marker{display:none}.factory-generate-form{display:grid;grid-template-columns:repeat(4,minmax(160px,1fr)) minmax(120px,.6fr) auto;gap:12px;align-items:end}.factory-generate-form p{grid-column:1/-1;margin:0;color:#64748b;font-size:13px}.statement-status-tabs{display:flex;flex-wrap:wrap;gap:8px;padding:4px;border:1px solid #dbe5f2;border-radius:8px;background:#f8fafc}.statement-status-tabs a{display:inline-flex;align-items:center;gap:7px;padding:8px 12px;border:1px solid transparent;border-radius:6px;color:#475569;font-size:13px;font-weight:700}.statement-status-tabs a.active,.statement-status-tabs a:hover{border-color:#bfdbfe;background:#fff;color:#1d4ed8}.statement-status-tabs span{min-width:22px;padding:1px 7px;border-radius:999px;background:#e2e8f0;color:#475569;text-align:center}.statement-status-tabs a.active span{background:#dbeafe;color:#1d4ed8}.statement-filter-grid{grid-template-columns:minmax(220px,1.2fr) minmax(160px,1fr) minmax(150px,.8fr) minmax(150px,.8fr) minmax(150px,.8fr) minmax(150px,.8fr) auto}.after-sales-ledger-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}.after-sales-ledger-metrics .metric-card{border-top:3px solid #2563eb}.after-sales-ledger-metrics .ledger-tone-return{border-top-color:#f59e0b}.after-sales-ledger-metrics .ledger-tone-refund{border-top-color:#7c3aed}.after-sales-ledger-metrics .ledger-tone-claim{border-top-color:#dc2626}.after-sales-ledger-filter-section{display:grid;gap:14px}.after-sales-ledger-filter-grid{grid-template-columns:minmax(230px,1.25fr) repeat(2,minmax(160px,.8fr)) repeat(2,minmax(145px,.65fr)) auto}.after-sales-ledger-table-wrap table{min-width:1900px}.after-sales-ledger-table-wrap td small,.after-sales-ledger-table-wrap td strong{display:block}.after-sales-ledger-table-wrap td small{margin-top:3px;color:var(--muted);font-size:11px}.ledger-style-cell{min-width:220px;white-space:normal}.ledger-category-tag{display:inline-flex;align-items:center;min-height:26px;padding:3px 8px;border-radius:999px;background:#dbeafe;color:#1d4ed8;font-size:12px;font-weight:700;white-space:nowrap}.ledger-category-return{background:#ffedd5;color:#c2410c}.ledger-category-refund{background:#ede9fe;color:#6d28d9}.ledger-category-claim{background:#fee2e2;color:#b91c1c}.ledger-amount{font-weight:700}.negative-value{color:#dc2626}.ledger-voided-row{opacity:.58;text-decoration:line-through}@media (max-width:1280px){.after-sales-ledger-filter-grid,.after-sales-ledger-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:720px){.after-sales-ledger-filter-grid,.after-sales-ledger-metrics{grid-template-columns:1fr}}.statement-table-wrap table{min-width:1480px}.narrow-col{width:56px;min-width:56px}.statement-row-expander{position:relative}.statement-row-expander summary{display:inline-flex;width:30px;height:30px;cursor:pointer;align-items:center;justify-content:center;border:1px solid #dbe5f2;border-radius:6px;background:#fff;color:#64748b;list-style:none}.statement-row-expander summary::-webkit-details-marker{display:none}.statement-row-expander[open] summary svg{transform:rotate(180deg)}.statement-row-preview{position:absolute;z-index:5;top:36px;left:0;display:grid;width:420px;gap:6px;padding:10px;border:1px solid #bfdbfe;border-radius:8px;background:#fff;box-shadow:0 12px 30px rgba(15,23,42,.12)}.statement-row-preview div{display:grid;grid-template-columns:78px 1fr 1fr auto;gap:8px;align-items:center;color:#475569;font-size:12px}.statement-row-preview b,.statement-row-preview strong{color:#162033}.statement-flow-pill{display:inline-flex;min-width:76px;align-items:center;justify-content:center;padding:5px 9px;border-radius:999px;font-size:12px;font-weight:800;white-space:nowrap}.statement-flow-pill.pending{background:#f1f5f9;color:#475569}.statement-flow-pill.current{background:#dbeafe;color:#1d4ed8}.statement-flow-pill.warning{background:#fef3c7;color:#b45309}.statement-flow-pill.done{background:#dcfce7;color:#15803d}.statement-action-list{display:flex;min-width:170px;flex-wrap:wrap;gap:6px}.finance-amount-cell.amount-dark{color:#162033}.finance-amount-cell.amount-warning{color:#d97706}.finance-amount-cell.amount-danger{color:#dc2626}.finance-amount-cell.amount-blue{color:#2563eb}.finance-amount-cell.amount-final{color:#15803d;font-weight:900}.finance-amount-cell.amount-muted{color:#94a3b8}.statement-summary-item{min-height:82px;padding:12px 14px;border:1px solid #dbe5f2;border-radius:6px;background:#f8fafc}.statement-info-row span,.statement-summary-item span{display:block;margin-bottom:5px;color:#64748b;font-size:12px}.statement-summary-item strong{color:#162033;font-size:18px}.customer-statement-workflow-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.statement-tab-shell{display:grid;gap:16px}.statement-tab-shell>input{position:absolute;pointer-events:none;opacity:0}.statement-tab-labels{display:flex;flex-wrap:wrap;gap:8px;border-bottom:1px solid #dbe5f2}.statement-tab-labels label{margin-bottom:-1px;padding:10px 14px;cursor:pointer;border:1px solid transparent;border-radius:7px 7px 0 0;color:#64748b;font-weight:800}#factory-tab-adjust:checked~.statement-tab-labels label[for=factory-tab-adjust],#factory-tab-detail:checked~.statement-tab-labels label[for=factory-tab-detail],#factory-tab-finance:checked~.statement-tab-labels label[for=factory-tab-finance],#factory-tab-log:checked~.statement-tab-labels label[for=factory-tab-log],#factory-tab-payments:checked~.statement-tab-labels label[for=factory-tab-payments],#statement-tab-adjust:checked~.statement-tab-labels label[for=statement-tab-adjust],#statement-tab-detail:checked~.statement-tab-labels label[for=statement-tab-detail],#statement-tab-finance:checked~.statement-tab-labels label[for=statement-tab-finance],#statement-tab-log:checked~.statement-tab-labels label[for=statement-tab-log],#statement-tab-receipts:checked~.statement-tab-labels label[for=statement-tab-receipts]{border-color:#dbe5f2 #dbe5f2 #fff;background:#fff;color:#1d4ed8}.statement-tab-panel{display:none;gap:16px}.statement-section-title-actions{align-items:center}.statement-section-title-actions>div{display:grid;gap:3px}#factory-tab-adjust:checked~.panel-adjust,#factory-tab-detail:checked~.panel-detail,#factory-tab-finance:checked~.panel-finance,#factory-tab-log:checked~.panel-log,#factory-tab-payments:checked~.panel-payments,#statement-tab-adjust:checked~.panel-adjust,#statement-tab-detail:checked~.panel-detail,#statement-tab-finance:checked~.panel-finance,#statement-tab-log:checked~.panel-log,#statement-tab-receipts:checked~.panel-receipts{display:grid}.data-section.inner{box-shadow:none}.statement-finance-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.statement-adjustment-form,.statement-prepayment-list{display:grid;gap:10px}.wo-detail-overview{position:sticky;top:10px;z-index:18;display:grid;gap:12px;padding:0 0 2px;background:rgba(246,248,251,.94);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.wo-detail-overview .module-header{box-shadow:0 10px 26px rgba(15,23,42,.06)}.wo-detail-metrics{padding:0}.wo-detail-tab-shell{display:grid;gap:14px;padding:14px}.wo-detail-tab-shell>input{position:absolute;pointer-events:none;opacity:0}.wo-detail-tab-labels{display:flex;gap:8px;overflow-x:auto;border-bottom:1px solid #dbe5f2}.wo-detail-tab-labels label{flex:0 0 auto;margin-bottom:-1px;padding:10px 16px;cursor:pointer;border:1px solid transparent;border-radius:8px 8px 0 0;color:#64748b;font-size:14px;font-weight:800}#wo-tab-assignment:checked~.wo-detail-tab-labels label[for=wo-tab-assignment],#wo-tab-cost:checked~.wo-detail-tab-labels label[for=wo-tab-cost],#wo-tab-finished:checked~.wo-detail-tab-labels label[for=wo-tab-finished],#wo-tab-issue:checked~.wo-detail-tab-labels label[for=wo-tab-issue],#wo-tab-log:checked~.wo-detail-tab-labels label[for=wo-tab-log],#wo-tab-receipt:checked~.wo-detail-tab-labels label[for=wo-tab-receipt],#wo-tab-source:checked~.wo-detail-tab-labels label[for=wo-tab-source]{border-color:#dbe5f2 #dbe5f2 #ffffff;background:#ffffff;color:#1d4ed8}.wo-detail-tab-panel{display:none;gap:14px;min-width:0}#wo-tab-assignment:checked~.panel-assignment,#wo-tab-cost:checked~.panel-cost,#wo-tab-finished:checked~.panel-finished,#wo-tab-issue:checked~.panel-issue,#wo-tab-log:checked~.panel-log,#wo-tab-receipt:checked~.panel-receipt,#wo-tab-source:checked~.panel-source{display:grid}.wo-detail-tab-panel .data-section.inner{border-radius:8px}.wo-purchase-request-action{position:relative;display:inline-flex;align-items:center}.wo-purchase-request-feedback{position:absolute;z-index:10;top:calc(100% + 6px);right:0;width:max-content;max-width:min(360px,80vw);padding:7px 10px;border:1px solid #bbf7d0;border-radius:6px;background:#f0fdf4;color:#166534;font-size:12px;line-height:1.4;box-shadow:0 6px 18px rgb(15 23 42/8%)}.wo-purchase-request-feedback.error{border-color:#fecaca;background:#fef2f2;color:#b91c1c}.statement-adjustment-form{grid-template-columns:minmax(140px,.8fr) minmax(160px,1fr) minmax(220px,2fr) auto;align-items:end}.factory-adjustment-section{gap:14px}.factory-adjustment-section .section-title{align-items:start}.factory-adjustment-section .section-title>div{display:grid;gap:3px}.adjustment-total{color:#1d4ed8;font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.adjustment-total.negative,.negative-text{color:#c2410c}.positive-text{color:#15803d}.factory-adjustment-form{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px 12px;padding:14px;border:1px solid #dbe5f2;border-radius:8px;background:#f8fafc}.factory-adjustment-form.other{grid-template-columns:repeat(4,minmax(0,1fr))}.factory-adjustment-form label{display:grid;min-width:0;gap:6px;color:#475569;font-size:12px;font-weight:750}.factory-adjustment-form label.wide{grid-column:span 2}.factory-adjustment-form input,.factory-adjustment-form select{min-width:0;height:34px;padding:0 9px;border:1px solid #cbd5e1;border-radius:6px;background:#fff;color:#172033;font:inherit}.factory-adjustment-form .checkbox-field{display:flex;grid-column:span 2;align-items:center;gap:7px;padding-top:20px}.factory-adjustment-form .checkbox-field input{width:16px;height:16px}.factory-adjustment-form>.secondary-button{align-self:end;justify-self:start}.locked-adjustment-hint{margin:0;padding:10px 12px;border:1px solid #dbe5f2;border-radius:7px;background:#f8fafc}.numeric-cell{text-align:right;font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.table-actions{white-space:nowrap}.adjustment-actions{display:inline-flex;align-items:center;gap:6px}.adjustment-actions details{position:relative}.adjustment-actions summary{cursor:pointer;color:#2563eb;font-weight:700}.adjustment-edit-popover{position:absolute;z-index:30;top:24px;right:0;width:min(760px,calc(100vw - 90px));padding:10px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;box-shadow:0 12px 30px rgba(15,23,42,.14)}.adjustment-edit-popover .factory-adjustment-form{min-width:620px;background:#f8fafc}.customer-center-page{--customer-border:#dbe5f2}.customer-center-filter{grid-template-columns:minmax(260px,1.2fr) minmax(180px,.6fr) auto;align-items:end}.customer-center-table{min-width:1280px}.customer-profile-header{align-items:start}.customer-profile-header .action-row{justify-content:flex-end}.customer-profile-strip{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;padding:14px;border:1px solid #dbe5f2;border-radius:8px;background:#fff}.customer-info-grid div,.customer-profile-strip div{min-width:0;padding:12px;border:1px solid #e2e8f0;border-radius:8px;background:#f8fafc}.customer-info-grid span,.customer-profile-strip span{display:block;margin-bottom:6px;color:#64748b;font-size:12px;font-weight:700}.customer-info-grid strong,.customer-profile-strip strong{color:#162033;font-size:15px;word-break:break-word}.customer-info-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.customer-info-grid .wide{grid-column:1/-1}.customer-edit-grid{align-items:stretch}.customer-edit-field{display:grid;gap:7px;min-width:0;padding:12px;border:1px solid #e2e8f0;border-radius:8px;background:#f8fafc}.customer-edit-field span{color:#64748b;font-size:12px;font-weight:800}.customer-edit-field input,.customer-edit-field select,.customer-edit-field textarea{width:100%;min-height:34px;border:1px solid #d7e0ec;border-radius:7px;background:#fff;color:#162033;font:inherit;font-weight:700}.customer-edit-field textarea{min-height:86px;resize:vertical}.customer-center-tabs{display:grid;gap:16px}.customer-center-tabs>input{position:absolute;pointer-events:none;opacity:0}.customer-tab-labels{display:flex;flex-wrap:wrap;gap:8px;border-bottom:1px solid #dbe5f2}.customer-tab-labels label{margin-bottom:-1px;padding:10px 14px;border:1px solid transparent;border-radius:7px 7px 0 0;color:#64748b;font-weight:800;cursor:pointer}#customer-tab-addresses:checked~.customer-tab-labels label[for=customer-tab-addresses],#customer-tab-after-sales:checked~.customer-tab-labels label[for=customer-tab-after-sales],#customer-tab-basic:checked~.customer-tab-labels label[for=customer-tab-basic],#customer-tab-contacts:checked~.customer-tab-labels label[for=customer-tab-contacts],#customer-tab-credit:checked~.customer-tab-labels label[for=customer-tab-credit],#customer-tab-orders:checked~.customer-tab-labels label[for=customer-tab-orders],#customer-tab-receipts:checked~.customer-tab-labels label[for=customer-tab-receipts],#customer-tab-statements:checked~.customer-tab-labels label[for=customer-tab-statements],#customer-tab-stats:checked~.customer-tab-labels label[for=customer-tab-stats]{border-color:#dbe5f2 #dbe5f2 #fff;background:#fff;color:#1d4ed8}.customer-tab-panel{display:none;gap:16px}#customer-tab-addresses:checked~.panel-addresses,#customer-tab-after-sales:checked~.panel-after-sales,#customer-tab-basic:checked~.panel-basic,#customer-tab-contacts:checked~.panel-contacts,#customer-tab-credit:checked~.panel-credit,#customer-tab-orders:checked~.panel-orders,#customer-tab-receipts:checked~.panel-receipts,#customer-tab-statements:checked~.panel-statements,#customer-tab-stats:checked~.panel-stats{display:grid}.customer-center-empty{border:1px dashed #cbd5e1;border-radius:8px;background:#f8fafc}.customer-center-split{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.customer-center-split>section{min-width:0}@media (max-width:1180px){.customer-center-filter,.customer-center-split,.customer-info-grid,.customer-profile-strip{grid-template-columns:1fr}}.statement-info-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.statement-info-row>div,.statement-prepayment-list>div{padding:10px 12px;border:1px solid #e2e8f0;border-radius:6px;background:#fff}.statement-workflow-timeline{display:grid;gap:0}.statement-workflow-timeline>div{position:relative;padding:10px 12px 10px 30px;border-left:2px solid #dbe5f2}.statement-workflow-timeline>div:before{position:absolute;top:16px;left:-6px;width:10px;height:10px;border-radius:50%;background:#2f6fed;content:""}@media (max-width:1100px){.customer-statement-summary-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.statement-adjustment-form{grid-template-columns:repeat(2,minmax(0,1fr))}.factory-adjustment-form,.factory-adjustment-form.other{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (max-width:720px){.customer-statement-summary-grid,.customer-statement-workflow-grid,.factory-adjustment-form,.factory-adjustment-form.other,.statement-adjustment-form,.statement-info-row{grid-template-columns:1fr}.factory-adjustment-form .checkbox-field,.factory-adjustment-form label.wide{grid-column:auto}}.stock-inquiry-page{display:grid;gap:16px}.stock-filter-panel,.stock-result-panel{padding:18px 20px;border:1px solid #dbe5f2;border-radius:8px;background:#fff;box-shadow:0 1px 2px rgba(15,23,42,.04)}.stock-style-selector{position:relative;display:grid;gap:8px}.stock-filter-grid label,.stock-style-selector>label{color:#334155;font-size:13px;font-weight:700}.stock-selected-tags{display:flex;min-height:32px;flex-wrap:wrap;gap:8px;align-items:center}.stock-tag{display:inline-flex;align-items:center;gap:6px;max-width:360px;padding:6px 10px;border:1px solid #bfdbfe;border-radius:999px;background:#eff6ff;color:#1d4ed8;font-size:13px;font-weight:700}.stock-tag button,.stock-view-toggle button{display:inline-flex;align-items:center;border:0;background:transparent;color:inherit;cursor:pointer}.stock-search-box{position:relative;display:flex;align-items:center;gap:10px;padding:0 12px;border:1px solid #d7e1ee;border-radius:8px;background:#fff}.stock-search-box input{width:100%;min-height:44px;border:0;outline:0;font-size:15px}.stock-style-dropdown{position:absolute;z-index:20;top:calc(100% + 6px);left:0;right:0;max-height:320px;overflow:auto;border:1px solid #cbd5e1;border-radius:8px;background:#fff;box-shadow:0 16px 36px rgba(15,23,42,.16)}.stock-style-dropdown button{display:grid;width:100%;grid-template-columns:44px 1fr;gap:10px;padding:10px 12px;border:0;border-bottom:1px solid #edf2f7;background:#fff;color:#162033;text-align:left;cursor:pointer}.stock-style-dropdown button:hover{background:#f8fafc}.stock-option-placeholder,.stock-style-dropdown img{width:44px;height:44px;border-radius:6px;object-fit:cover;background:#f1f5f9}.stock-option-placeholder{display:grid;place-items:center;color:#94a3b8;font-size:12px}.stock-style-dropdown em,.stock-style-dropdown strong{display:block}.stock-style-dropdown em{margin-top:4px;color:#64748b;font-size:12px;font-style:normal}.stock-filter-grid{display:grid;grid-template-columns:minmax(160px,.8fr) minmax(160px,.8fr) minmax(160px,.8fr) minmax(320px,1.4fr) auto;gap:12px;align-items:end;margin-top:14px}.stock-filter-grid label{display:grid;gap:6px}.stock-filter-grid input,.stock-filter-grid select{min-height:42px;padding:8px 10px;border:1px solid #d7e1ee;border-radius:8px;background:#fff;font-size:14px}.stock-checkboxes{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center;min-height:42px}.stock-checkboxes label{display:inline-flex;grid-template-columns:none;gap:6px;align-items:center;color:#475569;font-size:13px;font-weight:500}.stock-query-button{min-height:42px;white-space:nowrap}.stock-result-header{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:14px}.stock-result-header h2{margin:0;font-size:20px}.stock-result-header p{margin:4px 0 0;color:#64748b;font-size:13px}.stock-view-toggle{display:inline-flex;gap:6px;padding:4px;border:1px solid #dbe5f2;border-radius:8px;background:#f8fafc}.stock-view-toggle button{gap:6px;padding:8px 10px;border-radius:6px;color:#475569;font-size:13px}.stock-view-toggle button.active{background:#2563eb;color:#fff}.stock-message{margin-bottom:12px;padding:10px 12px;border:1px solid #bfdbfe;border-radius:8px;background:#eff6ff;color:#1d4ed8;font-weight:700}.stock-empty,.stock-empty-state{padding:18px;color:#64748b;text-align:center}.stock-empty-state{border:1px dashed #cbd5e1;border-radius:8px;background:#f8fafc}.stock-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.stock-card{display:grid;gap:12px;padding:14px;border:1px solid #dbe5f2;border-radius:8px;background:#fff}.stock-card-top{display:grid;grid-template-columns:82px 1fr auto;gap:12px;align-items:center}.stock-card-top img,.stock-image-placeholder{width:82px;height:82px;border-radius:8px;object-fit:cover;background:#f1f5f9}.stock-image-placeholder{display:grid;place-items:center;color:#94a3b8}.stock-card-top h3,.stock-card-top p{margin:0}.stock-card-top h3{font-size:18px}.stock-card-top p{margin-top:4px;color:#334155;font-weight:700}.stock-card-meta,.stock-card-top span{color:#64748b;font-size:12px}.stock-card-top strong{color:#2563eb;font-size:22px}.stock-card-meta{display:flex;flex-wrap:wrap;gap:8px 16px;padding:10px 12px;border-radius:6px;background:#f8fafc}.stock-color-matrix,.stock-color-row{display:grid;gap:10px}.stock-color-row{grid-template-columns:90px 1fr;align-items:start}.stock-color-title{padding-top:6px;color:#162033;font-weight:800}.stock-size-chips{display:flex;flex-wrap:wrap;gap:8px}.stock-size-chip{display:inline-flex;min-width:82px;align-items:center;justify-content:space-between;gap:8px;padding:7px 9px;border:1px solid #bfdbfe;border-radius:6px;background:#eff6ff;color:#1d4ed8;font-weight:800}.stock-size-chip b{color:#162033}.stock-size-chip small{color:#64748b;font-size:11px;font-weight:600}.stock-size-chip.empty{border-color:#e2e8f0;background:#f8fafc;color:#94a3b8}.stock-table-wrap{overflow:auto;border:1px solid #dbe5f2;border-radius:8px}.stock-matrix-table{min-width:980px}.stock-table-image{width:48px;height:48px;border-radius:6px;object-fit:cover}.muted-cell{color:#94a3b8}.stock-plan-option-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:10px}.stock-plan-option{display:grid;grid-template-columns:52px 1fr;gap:6px 10px;align-items:center;padding:10px;border:1px solid #dbe5f2;border-radius:8px;background:#fff;color:#162033;text-align:left;cursor:pointer}.stock-plan-option.active,.stock-plan-option:hover{border-color:#2563eb;background:#eff6ff}.stock-plan-option img,.stock-plan-option>span{grid-row:span 2;width:52px;height:52px;border-radius:6px;object-fit:cover;background:#f8fafc;color:#94a3b8;display:grid;place-items:center;font-size:12px}.stock-plan-option strong{font-size:13px}.stock-plan-option small{color:#64748b;font-size:12px}.stock-plan-option-row{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}.chip-button{border:1px solid #dbe5f2;border-radius:999px;background:#fff;padding:6px 10px;color:#475569;cursor:pointer}.chip-button.active,.chip-button:hover{border-color:#2563eb;background:#eff6ff;color:#1d4ed8}@media (max-width:1180px){.stock-card-grid,.stock-filter-grid{grid-template-columns:1fr}}@media (max-width:760px){.stock-card-top,.stock-result-header{grid-template-columns:1fr;align-items:start}.stock-result-header{display:grid}.stock-color-row{grid-template-columns:1fr}}.content-stack,.customer-statement-center,.erp-page-full,.finance-core-page,.inventory-query-page,.purchase-query-page,.stock-inquiry-page{width:100%;max-width:none;min-width:0}.bom-page-layout,.erp-page-with-sidebar{width:100%;max-width:none;min-width:0;display:grid;grid-template-columns:minmax(0,72fr) minmax(280px,28fr);gap:24px;align-items:start}.bom-main-column,.erp-page-main{width:100%;min-width:0}.bom-side-column,.erp-page-side{width:100%;max-width:100%;min-width:0}.dashboard-panel,.data-section,.erp-card,.erp-detail-header,.erp-mini-card,.erp-table-wrap,.global-tabs-shell,.main-panel,.module-header,.purchase-card,.purchase-entry-page,.purchase-entry-shell,.record-form,.stock-filter-panel,.stock-result-panel,.table-wrap,.topbar{width:100%;max-width:none;min-width:0}.erp-table-wrap,.purchase-edit-table-wrap,.statement-table-wrap,.stock-table-wrap,.table-wrap{overflow-x:auto;overflow-y:hidden}.inventory-movement-table-wrap{overflow-x:auto}.inventory-movement-table{min-width:1180px;table-layout:fixed}.inventory-movement-table td,.inventory-movement-table th{vertical-align:middle;word-break:normal;overflow-wrap:anywhere}.inventory-movement-table td:first-child,.inventory-movement-table th:first-child{width:150px}.inventory-movement-table td:nth-child(2),.inventory-movement-table th:nth-child(2){width:96px}.inventory-movement-table td:nth-child(3),.inventory-movement-table th:nth-child(3){width:132px}.inventory-movement-table td:nth-child(4),.inventory-movement-table th:nth-child(4){width:76px}.inventory-movement-table td:nth-child(5),.inventory-movement-table th:nth-child(5){width:290px}.inventory-movement-table td:nth-child(6),.inventory-movement-table th:nth-child(6){width:96px;text-align:right}.inventory-movement-table td:nth-child(7),.inventory-movement-table th:nth-child(7){width:220px}.inventory-movement-table td:nth-child(8),.inventory-movement-table th:nth-child(8){width:150px}.inventory-movement-table td:nth-child(9),.inventory-movement-table th:nth-child(9){width:88px}.inventory-movement-table td:nth-child(10),.inventory-movement-table th:nth-child(10){width:76px;text-align:center}.inventory-movement-table .status-pill{white-space:nowrap}.inventory-item-cell,.warehouse-location-cell{display:grid;gap:4px;min-width:0;line-height:1.45}.inventory-item-cell strong,.warehouse-location-cell strong{color:var(--text);font-weight:700}.inventory-item-cell small,.inventory-item-cell span,.warehouse-location-cell span{color:var(--muted);font-size:12px}.business-type-label,.date-cell,.mono-cell,.number-cell{font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.purchase-entry-page{margin-left:0;margin-right:0}.purchase-bottom-grid{grid-template-columns:minmax(0,72fr) minmax(280px,28fr);gap:24px}.erp-order-master-layout{grid-template-columns:minmax(0,68fr) minmax(280px,32fr);gap:24px}.erp-order-side-stack{min-width:0}.customer-center-page,.erp-order-page,.purchase-entry-page,.sales-order-create-page,.stock-inquiry-page{width:100%;max-width:none}@media (min-width:1281px) and (max-width:1500px){.erp-order-master-layout{grid-template-columns:minmax(0,66fr) minmax(280px,34fr)}.erp-order-side-stack{grid-column:auto;grid-template-columns:1fr}}@media (max-width:1440px){.bom-page-layout,.erp-page-with-sidebar{grid-template-columns:minmax(0,70fr) minmax(280px,30fr)}.purchase-bottom-grid{grid-template-columns:minmax(0,70fr) minmax(260px,30fr)}.erp-order-master-layout{grid-template-columns:minmax(0,66fr) minmax(260px,34fr)}}@media (max-width:1280px){.bom-page-layout,.erp-page-with-sidebar,.purchase-bottom-grid{grid-template-columns:1fr}.bom-side-column{position:static}.erp-order-master-layout{grid-template-columns:minmax(0,1fr)}.sales-order-info-layout{grid-template-columns:minmax(260px,.72fr) minmax(0,1.6fr)}.sales-order-summary-card .erp-order-kpi-strip{grid-template-columns:repeat(3,minmax(0,1fr))}.erp-order-side-stack{grid-column:1/-1;grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:760px){.erp-order-master-layout,.erp-order-side-stack,.sales-order-info-layout{grid-template-columns:1fr}.sales-order-summary-card .erp-order-kpi-strip{grid-template-columns:repeat(2,minmax(0,1fr))}}.quick-view-layer{position:fixed;inset:0;z-index:120;pointer-events:none}.quick-view-backdrop{position:absolute;inset:0;border:0;background:rgba(15,23,42,.28);cursor:default;pointer-events:auto}.quick-view-drawer{position:absolute;inset-block:0;right:0;display:flex;width:min(var(--quick-view-width,640px),calc(100vw - 32px));max-width:720px;flex-direction:column;border-left:1px solid var(--border);background:#f8fafc;box-shadow:-16px 0 40px rgba(15,23,42,.16);pointer-events:auto}.quick-view-footer,.quick-view-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 24px;background:#fff}.quick-view-header{border-bottom:1px solid var(--border)}.quick-view-header h3{margin:4px 0;font-size:22px}.quick-view-header p{margin:0;color:var(--muted);font-size:13px}.quick-view-footer,.quick-view-header-actions{display:flex;align-items:center;gap:12px}.quick-view-footer{border-top:1px solid var(--border);justify-content:flex-end}.quick-view-status{display:inline-flex;align-items:center;min-height:28px;border:1px solid #bfdbfe;border-radius:999px;background:#eff6ff;color:var(--blue);font-size:13px;font-weight:700;padding:4px 12px;white-space:nowrap}.quick-view-body{flex:1 1;overflow:auto;padding:18px}.quick-view-content{display:grid;gap:16px}.quick-view-card{border:1px solid var(--border);border-radius:12px;background:#fff;padding:18px}.quick-view-section-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.quick-view-section-title h4{margin:0;font-size:16px}.quick-view-section-title span{color:var(--muted);font-size:12px}.quick-view-summary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.quick-view-summary-item{min-width:0;border:1px solid var(--border);border-radius:10px;background:#f8fafc;padding:12px}.quick-view-related-item span,.quick-view-summary-item span{display:block;color:var(--muted);font-size:12px;margin-bottom:5px}.quick-view-related-item a,.quick-view-related-item strong,.quick-view-summary-item strong{color:var(--text);font-size:15px;font-weight:800;word-break:break-word}.quick-view-related-item a,.quick-view-summary-item a{color:var(--blue);text-decoration:none}.quick-view-summary-item small{display:block;color:var(--muted);font-size:12px;margin-top:4px}.quick-view-summary-item.tone-blue{border-color:#bfdbfe;background:#eff6ff}.quick-view-summary-item.tone-green{border-color:#bbf7d0;background:#f0fdf4}.quick-view-summary-item.tone-amber{border-color:#fde68a;background:#fffbeb}.quick-view-summary-item.tone-red{border-color:#fecaca;background:#fef2f2}.quick-view-summary-item.tone-violet{border-color:#ddd6fe;background:#f5f3ff}.quick-view-table-wrap{overflow-x:auto}.quick-view-table-wrap table{width:100%;min-width:520px;border-collapse:collapse;font-size:13px}.quick-view-table-wrap td,.quick-view-table-wrap th{border-bottom:1px solid var(--border);padding:10px 8px;text-align:left;white-space:nowrap}.quick-view-table-wrap th{color:var(--muted);font-weight:700;background:#f8fafc}.quick-view-related-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.quick-view-related-item{border:1px solid var(--border);border-radius:10px;background:#f8fafc;padding:12px}.quick-view-empty,.quick-view-empty-cell,.quick-view-loading{color:var(--muted);padding:18px;text-align:center}@media (max-width:720px){.quick-view-drawer{width:100vw}.quick-view-related-list,.quick-view-summary-grid{grid-template-columns:1fr}}.inline-field{display:inline-flex;align-items:center;gap:8px;color:var(--muted);font-size:13px}.inline-field input{width:64px;height:38px;border:1px solid var(--border);border-radius:8px;padding:0 10px}.info-grid.compact{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.info-grid.compact>div{border:1px solid var(--border);border-radius:10px;background:#f8fafc;padding:14px}.info-grid.compact span{display:block;color:var(--muted);font-size:12px;margin-bottom:5px}.info-grid.compact strong{font-size:15px}.allocation-tree{display:grid;gap:14px}.allocation-root{border:1px solid #bfdbfe;border-radius:12px;background:#eff6ff;color:#1d4ed8;padding:16px}.allocation-root span,.allocation-root strong{display:block}.allocation-root span{margin-top:4px;color:#2563eb}.allocation-branches{display:grid;gap:10px;padding-left:22px;border-left:2px solid #bfdbfe}.allocation-branch{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid var(--border);border-radius:10px;background:#fff;padding:12px 14px}.allocation-branch span{display:block;color:var(--muted);font-size:12px;margin-top:3px}.allocation-branch b{color:var(--blue);white-space:nowrap}@media (max-width:900px){.info-grid.compact{grid-template-columns:1fr}.allocation-branch{align-items:flex-start;flex-direction:column}}@media (max-width:1280px){.erp-style-list .style-list-card{grid-template-columns:96px minmax(240px,1.4fr) minmax(250px,1.25fr) minmax(170px,.9fr) minmax(92px,auto)}.erp-style-list .style-cost-mini{grid-column:2/-2;grid-template-columns:repeat(3,minmax(0,1fr));border-left:0;border-top:1px solid var(--line);padding:8px 0 0}}@media (max-width:900px){.erp-style-list .style-list-card{grid-template-columns:88px minmax(0,1fr);align-items:start;min-height:auto}.erp-style-list .style-business-panel,.erp-style-list .style-completeness-panel,.erp-style-list .style-cost-mini,.erp-style-list .style-list-actions{grid-column:1/-1;border-left:0;border-top:1px solid var(--line);padding:9px 0 0}.erp-style-list .style-business-panel,.erp-style-list .style-completeness-panel,.erp-style-list .style-cost-mini,.erp-style-list .style-list-actions{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:980px){.wo-detail-overview{position:static;-webkit-backdrop-filter:none;backdrop-filter:none}.wo-detail-tab-shell{padding:10px}.wo-detail-tab-labels{flex-wrap:nowrap}}.order-execution-responsive-wrap{position:relative;overflow:visible;border:1px solid var(--line);border-radius:8px}.order-execution-compact-table{width:100%;min-width:0;table-layout:fixed}.order-execution-compact-table th{position:sticky;top:0;z-index:2;background:#f7f9fc;white-space:nowrap}.order-execution-compact-table th:first-child{width:54px}.order-execution-compact-table th:nth-child(2){width:225px}.order-execution-compact-table th:nth-child(3){width:108px}.order-execution-compact-table th:nth-child(4),.order-execution-compact-table th:nth-child(5){width:112px}.order-execution-compact-table th:nth-child(6){width:285px}.order-execution-compact-table th:nth-child(7),.order-execution-compact-table th:nth-child(8){width:122px}.order-execution-compact-table th:nth-child(9){width:218px}.order-item-main-row>td{height:86px;vertical-align:middle}.order-item-main-row.expanded>td{background:#f8fbff;border-bottom-color:#cfe0fb}.order-style-info-cell{display:grid;grid-template-columns:56px minmax(0,1fr);align-items:center;gap:10px;min-width:0}.order-style-image-empty,.order-style-info-cell img{width:56px;height:56px;border:1px solid var(--line);border-radius:6px;background:#f4f6f9;object-fit:cover}.order-style-image-empty{display:grid;place-items:center;color:var(--muted);font-size:12px}.order-style-info-cell>div{min-width:0}.order-style-info-cell a{color:var(--text);font-weight:700}.order-style-info-cell a,.order-style-info-cell small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.order-style-info-cell small{margin-top:5px;color:var(--muted)}.order-color-size-cell{display:grid;gap:4px}.order-color-size-cell span{color:var(--muted);font-size:12px}.order-combined-status,.order-fulfillment-pill{display:inline-flex;align-items:center;min-height:26px;padding:3px 9px;border-radius:999px;background:#eef2f7;color:#4a5a70;font-size:12px;font-weight:700;white-space:nowrap}.order-fulfillment-pill.finished_purchase{background:#e9f1ff;color:#2463d4}.order-combined-status.done,.order-fulfillment-pill.stock{background:#e8f8ef;color:#16804a}.order-combined-status.current{background:#e9f1ff;color:#2463d4}.order-combined-status.partial{background:#fff4df;color:#b56700}.order-combined-status.danger{background:#fff0f0;color:#d63030}.fulfillment-progress-cell{display:grid;gap:5px}.fulfillment-progress-row{display:grid;grid-template-columns:34px minmax(54px,1fr) 84px;align-items:center;gap:7px;min-width:0;font-size:11px;line-height:1.2}.fulfillment-progress-row>span{color:#56657a}.fulfillment-progress-row>strong{overflow:hidden;color:#39475a;font-size:11px;text-align:right;text-overflow:ellipsis;white-space:nowrap}.fulfillment-progress-track{height:6px;overflow:hidden;border-radius:999px;background:#e7ebf1}.fulfillment-progress-track i{display:block;height:100%;border-radius:inherit;background:#2f6fed}.order-item-amount{font-weight:700;text-align:right;white-space:nowrap}.order-item-main-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:5px}.order-main-demand-form{margin:0}.order-main-demand-link{display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:5px 9px;border:1px solid #2f6fed;border-radius:6px;background:#2f6fed;color:#fff;font:inherit;font-size:12px;font-weight:700;line-height:1.2;white-space:nowrap;cursor:pointer}.order-main-demand-link.generated{border-color:#b8cff8;background:#edf4ff;color:#2463d4}.order-expand-button,.order-item-more-menu>summary{display:inline-flex;align-items:center;justify-content:center;min-height:32px;border:1px solid #cfd8e6;border-radius:6px;background:#fff;color:#31527f;cursor:pointer}.order-expand-button{gap:3px;padding:5px 8px}.order-item-more-menu{position:relative}.order-item-more-menu>summary{width:32px;list-style:none}.order-item-more-menu>summary::-webkit-details-marker{display:none}.order-item-more-menu[open]>div{position:absolute;z-index:12;top:calc(100% + 5px);right:0;display:grid;width:150px;padding:5px;border:1px solid var(--line);border-radius:7px;background:#fff;box-shadow:0 10px 28px rgba(32,51,78,.16)}.order-item-more-menu a{padding:8px 9px;border-radius:5px;color:var(--text);font-size:12px;white-space:nowrap}.order-item-more-menu a:hover{background:#f0f5ff;color:var(--blue)}.order-item-expanded-row>td{padding:0!important;background:#f7f9fc}.order-item-expanded-grid{display:grid;grid-template-columns:1.05fr 1.35fr 1.05fr 1fr;gap:0;border-top:1px solid #dce6f3}.order-item-expanded-grid>section{min-width:0;padding:16px;border-right:1px solid var(--line)}.order-item-expanded-grid>section:last-child{border-right:0}.order-item-expanded-grid h4{margin:0 0 11px;font-size:13px}.order-item-expanded-grid dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 14px;margin:0}.order-item-expanded-grid dl div{min-width:0}.order-item-expanded-grid dt,.order-item-quantity-section small{display:block;color:var(--muted);font-size:11px}.order-item-expanded-grid dd{overflow:hidden;margin:3px 0 0;font-weight:600;text-overflow:ellipsis;white-space:nowrap}.order-item-quantity-section>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.order-item-quantity-section span{padding:8px;border:1px solid #e1e7f0;border-radius:6px;background:#fff}.order-item-quantity-section strong{display:block;margin-top:3px}.order-item-warning{margin:10px 0 0;color:#cf3434;font-size:12px}.order-expanded-action,.order-expanded-actions{display:flex;flex-wrap:wrap;align-items:center;gap:7px}.order-expanded-action{width:100%}.order-expanded-action form{margin:0}@media (max-width:1380px){.order-execution-compact-table th:nth-child(2){width:190px}.order-execution-compact-table th:nth-child(6){width:240px}.order-execution-compact-table td:nth-child(8),.order-execution-compact-table th:nth-child(8){display:none}.order-execution-compact-table th:nth-child(9){width:205px}.order-item-expanded-row>td{display:table-cell!important}.order-item-expanded-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.order-item-expanded-grid>section:nth-child(2){border-right:0}.order-item-expanded-grid>section:nth-child(-n+2){border-bottom:1px solid var(--line)}}@media (max-width:900px){.order-execution-responsive-wrap{overflow-x:auto}.order-execution-compact-table{min-width:930px}.order-item-expanded-grid{grid-template-columns:1fr}.order-item-expanded-grid>section{border-right:0;border-bottom:1px solid var(--line)}}.purchase-request-conversion-notice{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px}.purchase-request-conversion-notice a{color:var(--blue);font-weight:700;text-decoration:none}.purchase-request-conversion-notice a:hover{text-decoration:underline}.erp-mobile-toast,.mobile-bottom-nav,.mobile-more-button,.mobile-more-overlay,.mobile-section-toggle{display:none}@media (max-width:768px){body,html{width:100%;max-width:100%;overflow-x:hidden}body{padding-bottom:calc(68px + env(safe-area-inset-bottom))}.app-shell,.app-shell.sidebar-collapsed{--sidebar-width:0px;display:block;width:100%;min-height:100vh;height:auto;overflow:visible}.global-tabs-shell,.sidebar,.sidebar-collapsed .sidebar,.sidebar-toggle-button{display:none!important}.main-panel{width:100%;min-width:0;height:auto;min-height:100vh;overflow:visible;padding:10px 10px calc(86px + env(safe-area-inset-bottom))}.topbar{min-height:52px;margin:0 0 10px;padding:10px 12px;border-radius:8px;flex-direction:row;align-items:center;gap:8px}.topbar .account-area form,.topbar .eyebrow{display:none}.topbar h1{margin:0;font-size:17px;line-height:1.3}.topbar .account-area{width:auto;margin-left:auto}.topbar .account-chip{max-width:150px;min-height:32px;padding:0 9px;overflow:hidden;font-size:12px;white-space:nowrap;text-overflow:ellipsis}.content-stack,.erp-page-full,.erp-page-main,.erp-page-side,.erp-page-with-sidebar,.main-panel>div,.main-panel>section{width:100%;min-width:0;max-width:100%}.content-stack{gap:12px}.account-security-layout{grid-template-columns:minmax(0,1fr);gap:12px}.account-security-badge{width:100%;justify-content:center}.account-password-form{max-width:none}.customer-exception-header,.erp-detail-header,.module-header,.payment-request-header{padding:15px;gap:12px;border-radius:8px}.erp-detail-header h1,.erp-detail-header h2,.module-header h2{font-size:21px;line-height:1.35}.erp-detail-header p,.module-header p{font-size:13px;line-height:1.6}.erp-detail-header .action-row,.erp-header-actions,.module-header .action-row,.section-title,.section-title-actions{width:100%;min-width:0;max-width:100%;flex-wrap:wrap}.erp-detail-header>div:first-child{width:100%;min-width:0}.erp-header-actions{flex:0 1 auto;justify-content:flex-start}.erp-header-actions a,.erp-header-actions button,.erp-header-actions form,.erp-header-actions>*{max-width:100%;min-width:0}.erp-header-actions a,.erp-header-actions button{white-space:normal;text-align:center}.erp-detail-header .action-row>*,.module-header .action-row>*{flex:1 1 128px}.data-section,.detail-card,.erp-card,.filter-panel,.payment-card{width:100%;min-width:0;padding:14px;border-radius:8px}.section-title{align-items:flex-start;gap:4px;margin-bottom:12px}.section-title h3{font-size:17px}.section-title>span{width:100%;font-size:12px}.bom-style-grid,.customer-exception-grid.six,.customer-exception-grid.three,.customer-exception-grid.two,.erp-page-with-sidebar,.exception-form-grid,.filter-grid,.filter-grid.compact,.finance-core-filter-grid,.form-grid,.form-panel-grid,.inventory-filter-grid,.material-selector-form-grid,.order-items-bulk,.order-style-grid,.payment-field-grid,.payment-field-grid.two-col,.purchase-bottom-grid,.purchase-filter-grid,.record-form,.settlement-grid,.two-column-layout,.user-form-grid{display:grid;grid-template-columns:minmax(0,1fr)!important;gap:12px}.exception-form-grid>*,.form-field,.form-field.full,.form-field.full-width,[class*=full-width],[class*=span-2]{min-width:0;grid-column:1/-1!important}.main-panel .form-field,.main-panel .form-field>label,.main-panel input:not([type=checkbox]):not([type=radio]),.main-panel select,.main-panel textarea{width:100%;min-width:0;max-width:100%}.main-panel input:not([type=checkbox]):not([type=radio]),.main-panel select{min-height:40px}.main-panel textarea{min-height:96px}.action-row,.button-row,.filter-actions,.form-actions{width:100%;display:flex;flex-wrap:wrap;gap:10px}.filter-actions>*,.form-actions>*{flex:1 1 108px}.erp-table-wrap,.table-wrap,[class$=-table-wrap],[class*="-table-wrap "]{width:100%;min-width:0;max-width:100%;overflow:visible;border:0;background:transparent}table.mobile-card-table,table.mobile-card-table tbody,table.mobile-card-table td,table.mobile-card-table tr{display:block;width:100%;min-width:0!important;max-width:100%}table.mobile-card-table{min-width:0!important;border:0;background:transparent}table.mobile-card-table colgroup,table.mobile-card-table thead{display:none}table.mobile-card-table tbody{display:grid;gap:12px}table.mobile-card-table tbody>tr{padding:6px 12px 10px;overflow:hidden;border:1px solid #dfe6ef;border-radius:8px;background:#ffffff;box-shadow:0 3px 12px rgba(15,23,42,.04)}table.mobile-card-table tbody>tr:hover{background:#ffffff}table.mobile-card-table .order-item-expanded-row>td,table.mobile-card-table tbody>tr>td{display:grid!important;grid-template-columns:minmax(88px,.75fr) minmax(0,1.25fr);align-items:start;gap:10px;min-height:38px;padding:9px 0!important;border:0!important;border-bottom:1px solid #edf1f5!important;text-align:left!important;white-space:normal!important;overflow-wrap:anywhere}table.mobile-card-table tbody>tr>td:before{content:attr(data-mobile-label);color:#718096;font-size:12px;font-weight:700;line-height:1.5}table.mobile-card-table tbody>tr>td:last-child{border-bottom:0!important}table.mobile-card-table tbody>tr>td.mobile-secondary-field{display:none!important}table.mobile-card-table tbody>tr.mobile-row-expanded>td.mobile-secondary-field{display:grid!important}table.mobile-card-table .table-action-row,table.mobile-card-table td[data-mobile-label="操作"]>div,table.mobile-card-table td[data-mobile-label="操作"]>form{width:100%;display:flex;flex-wrap:wrap;justify-content:flex-start;gap:8px}table.mobile-card-table td[data-mobile-label="操作"] a,table.mobile-card-table td[data-mobile-label="操作"] button{min-height:32px}table.mobile-card-table .mobile-empty-row{padding:0}table.mobile-card-table .mobile-empty-row>td{display:block!important;padding:24px 12px!important;text-align:center!important}table.mobile-card-table .mobile-empty-row>td:before{display:none}.mobile-more-button{grid-column:1/-1;width:100%;min-height:34px!important;margin-top:7px;padding:0 10px;display:flex;align-items:center;justify-content:space-between;border:1px solid #dbe5f2;border-radius:6px;background:#f7faff;color:var(--blue);font-size:12px;font-weight:700}.mobile-collapsible-section{position:relative}.mobile-section-heading{position:relative;min-height:36px;padding-right:64px}.mobile-section-toggle{position:absolute;top:0;right:0;min-width:52px;height:30px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #dbe5f2;border-radius:6px;background:#ffffff;color:#526173;font-size:12px}.mobile-collapsible-section[data-mobile-collapsed="1"]>.mobile-section-body{display:none!important}.bom-bottom-actions,.dev-bottom-actions,.mobile-sticky-actions,.payment-sticky-actions{position:fixed!important;left:8px!important;right:8px!important;bottom:calc(66px + env(safe-area-inset-bottom))!important;z-index:46;width:auto!important;min-height:56px;margin:0!important;padding:8px!important;display:flex;align-items:center;gap:8px;border:1px solid #dbe3ed;border-radius:8px;background:rgba(255,255,255,.98);box-shadow:0 -8px 24px rgba(15,23,42,.12)}.bom-bottom-actions>*,.dev-bottom-actions>*,.mobile-sticky-actions>*,.payment-sticky-actions>*{flex:1 1;min-width:0}.mobile-bottom-nav{position:fixed;left:0;right:0;bottom:0;z-index:50;height:calc(62px + env(safe-area-inset-bottom));padding:5px 5px env(safe-area-inset-bottom);display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:stretch;border-top:1px solid #d9e1eb;background:rgba(255,255,255,.98);box-shadow:0 -8px 24px rgba(15,23,42,.1)}.mobile-bottom-link{min-width:0;min-height:52px;padding:4px 2px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border:0;border-radius:6px;background:transparent;color:#728094;font-size:11px}.mobile-bottom-link.active{color:var(--blue);background:#eff5ff}.mobile-more-overlay{position:fixed;inset:0;z-index:70;display:flex;align-items:flex-end;background:rgba(15,23,42,.42)}.mobile-more-sheet{width:100%;max-height:min(78vh,720px);padding:16px 14px calc(18px + env(safe-area-inset-bottom));overflow-y:auto;border-radius:12px 12px 0 0;background:#ffffff;box-shadow:0 -18px 50px rgba(15,23,42,.2)}.mobile-more-header,.mobile-more-title,.mobile-user-summary{display:flex;align-items:center}.mobile-more-header{justify-content:space-between;gap:12px;padding-bottom:14px;border-bottom:1px solid #e5eaf2}.mobile-user-summary{gap:10px}.mobile-user-summary small,.mobile-user-summary strong{display:block}.mobile-user-summary small{margin-top:3px;color:var(--muted)}.mobile-user-avatar{width:38px;height:38px;display:grid;place-items:center;border-radius:7px;background:#eaf2ff;color:var(--blue);font-weight:800}.mobile-account-security{width:100%;min-height:42px;margin-top:12px;padding:8px 10px;justify-content:center;border:1px solid #c7d7fe;border-radius:7px;background:#eff6ff;color:var(--blue);font-size:13px;font-weight:800;text-decoration:none}.mobile-more-title{gap:7px;margin:16px 0 10px;font-size:14px;font-weight:800}.mobile-more-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.mobile-more-grid a{min-height:42px;padding:8px 10px;display:flex;align-items:center;border:1px solid #e1e7ef;border-radius:7px;background:#f8fafc;color:#354255;font-size:13px}.mobile-logout-form{margin-top:14px}.mobile-logout-form button{width:100%}.erp-mobile-toast{position:fixed;top:max(10px,env(safe-area-inset-top));left:10px;right:10px;z-index:90;min-height:48px;padding:10px 12px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:9px;border:1px solid #bfdbfe;border-radius:8px;background:#eff6ff;color:#1e40af;box-shadow:0 12px 32px rgba(15,23,42,.18);font-size:13px;line-height:1.45}.erp-mobile-toast.success{border-color:#bbf7d0;background:#f0fdf4;color:#166534}.erp-mobile-toast.error{border-color:#fecaca;background:#fef2f2;color:#b42318}.erp-mobile-toast button{width:30px;height:30px;border:0;border-radius:6px;background:transparent;color:inherit;font-size:20px}.bom-tabs,.detail-tabs,.erp-tabs,.statement-tabs{max-width:100%;overflow-x:auto;flex-wrap:nowrap;scrollbar-width:none}.bom-tabs>*,.detail-tabs>*,.erp-tabs>*,.statement-tabs>*{flex:0 0 132px}.customer-exception-summary,.dashboard-metrics,.erp-order-kpi-strip,.factory-receipt-metrics,.metric-grid,.stats-grid,.summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px}.metric-card,.stat-card,.summary-card{min-width:0;padding:12px}.metric-card strong,.stat-card strong,.summary-card strong{font-size:18px;overflow-wrap:anywhere}.process-detail-panel,.production-order-detail,.production-task-card,.production-task-list{width:100%;min-width:0;max-width:100%}.production-order-compact{width:100%;min-width:0;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.production-order-compact .task-image-cell{width:56px;height:56px}.production-order-compact .task-identity{min-width:0}.production-order-compact .compact-expand-button,.production-order-compact .compact-process-cell,.production-order-compact .compact-summary-cell{width:100%;min-width:0}.process-step-row,.process-task-selector,.receipt-history-table{width:100%;min-width:0;max-width:100%}.process-detail-panel>*,.production-order-detail>*{min-width:0;max-width:100%}.process-detail-panel .section-title.compact{width:100%;min-width:0;flex-wrap:wrap}.process-detail-panel .section-title.compact>div,.receipt-size-editor,.receipt-total-bar{width:100%;min-width:0;max-width:100%}.receipt-history-table{overflow-x:auto}.production-select-grid.compact-flow-grid,.receipt-inline-form,.receipt-inline-form.size-first{width:100%;min-width:0;max-width:100%;grid-template-columns:minmax(0,1fr)!important}.production-select-grid.compact-flow-grid>*,.receipt-inline-form.size-first>*,.receipt-inline-form>*{width:100%!important;min-width:0!important;max-width:100%;grid-column:1/-1!important}.receipt-inline-form .muted-text{overflow-wrap:anywhere}.process-task-selector{grid-template-columns:1fr}.selected-task-toolbar>*{width:100%;justify-content:center}}