*{box-sizing:border-box}body{margin:0;background:#f4f6f8;color:#17202a;font-family:Microsoft YaHei,PingFang SC,Arial,sans-serif}button{font:inherit;border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:#334155;cursor:pointer;font-weight:650;transition:border-color .16s ease,background .16s ease,color .16s ease,transform .16s ease,box-shadow .16s ease}button:hover:not(:disabled){border-color:#7aa7d9;background:#f6faff;color:#155da0;transform:translateY(-1px)}button:disabled{cursor:not-allowed;opacity:.5}.app-shell{display:grid;grid-template-columns:248px minmax(0,1fr);min-height:100vh}.sidebar{background:#14213d;color:#fff;padding:20px 16px}.brand{display:flex;align-items:center;gap:12px;margin-bottom:24px}.brand-mark{display:grid;width:42px;height:42px;place-items:center;border-radius:8px;background:#b91c1c;color:#fff;font-size:15px;font-weight:800;letter-spacing:0}.brand strong,.brand span{display:block}.brand span{margin-top:4px;color:#b6c2d4;font-size:12px}nav{display:grid;gap:6px}nav button{width:100%;border:0;border-radius:6px;padding:11px 12px;background:transparent;color:#d7e0ef;text-align:left;cursor:pointer}nav button.active,nav button:hover{background:#223452;color:#fff}.content{padding:24px}.topbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px}h1,h2,p{margin:0}h1{font-size:26px}.topbar p,.panel-title span{color:#687588;margin-top:8px}.primary{border:0;border-radius:6px;padding:10px 16px;background:#1f7a5a;color:#fff;cursor:pointer}.primary:hover:not(:disabled){border-color:#17664c;background:#17664c;color:#fff}.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.module-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:14px}.metric-card,.panel,.workflow{border:1px solid #e3e8ef;border-radius:8px;background:#fff;box-shadow:0 8px 22px #14213d0d}.metric-card{display:grid;gap:8px;padding:18px}.metric-card span{color:#687588;font-size:14px}.metric-card strong{font-size:28px}.metric-card em{color:#1f7a5a;font-style:normal;font-size:13px}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(280px,.8fr);gap:14px;margin-top:14px}.sub-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}.sub-tabs button{border:1px solid #1d4ed8;border-radius:6px;padding:9px 14px;background:#2563eb;color:#fff;cursor:pointer;font-weight:700}.sub-tabs button.active{border-color:#0f2f7a;background:#123f9c;color:#fff;box-shadow:0 8px 18px #2563eb47}.panel{padding:18px}.panel-title{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px}.button-row{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}.button-row button{border:1px solid #d7dee8;border-radius:6px;padding:8px 12px;background:#fff;color:#2f3b4a;cursor:pointer}.button-row button:hover{border-color:#1f7a5a;color:#1f7a5a}.notice{margin-bottom:14px;border:1px solid #bfe3d4;border-radius:6px;background:#edf7f2;color:#1f7a5a;padding:10px 12px;font-size:14px}.model-correction-note{margin:4px 0 18px;border:1px solid #f2c98d;border-radius:8px;background:#fff8e8;padding:12px 14px;color:#7c4a03}.model-correction-note p{margin-top:7px;font-size:13px;line-height:1.55}.model-correction-preview{border-radius:6px;background:#fff;padding:8px 10px;color:#1f2937;font-weight:700}.permission-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-bottom:16px}.permission-card{border:1px solid #e3e8ef;border-radius:10px;background:#fbfcfe;padding:14px}.permission-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}.permission-card-head strong,.permission-card-head span{display:block}.permission-card-head span{margin-top:4px;color:#687588;font-size:13px}.permission-card-head button{border:1px solid #1f7a5a;border-radius:6px;padding:7px 12px;background:#1f7a5a;color:#fff;cursor:pointer}.permission-card-head button:disabled{border-color:#d7dee8;background:#eef2f6;color:#9aa5b3;cursor:not-allowed}.permission-section{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.permission-section p{width:100%;color:#2f3b4a;font-weight:700;font-size:13px}.permission-section label{display:inline-flex;align-items:center;gap:6px;border:1px solid #d7dee8;border-radius:999px;background:#fff;padding:6px 10px;color:#2f3b4a;font-size:13px}.permission-section input{accent-color:#1f7a5a}.action-section{max-height:178px;overflow:auto;padding-right:4px}.filter-grid{display:grid;grid-template-columns:repeat(5,minmax(120px,1fr));gap:10px;margin-bottom:14px;border:1px solid #edf1f5;border-radius:8px;background:#f9fafb;padding:12px}.filter-grid input,.filter-grid select,.filter-grid button{min-height:40px;border:1px solid #d7dee8;border-radius:6px;padding:8px 10px;background:#fff;color:#2f3b4a;font:inherit}.filter-grid.compact{grid-template-columns:minmax(220px,1fr) minmax(180px,240px) auto auto}.filter-grid .primary{border-color:#1f7a5a;background:#1f7a5a;color:#fff;font-weight:750}.sales-workbench{margin-bottom:14px;border:1px solid #dbe5f4;border-radius:10px;overflow:hidden;background:#fff}.table-action{border:1px solid #bfdbfe;border-radius:6px;padding:7px 10px;background:#fff;color:#1d4ed8;cursor:pointer;font-size:13px;font-weight:700}.sales-order-table-wrap{overflow:auto}.sales-order-table{min-width:1120px}.sales-order-table td{vertical-align:middle}.sales-order-table strong,.sales-order-table small{display:block}.sales-order-table small{margin-top:5px;color:#64748b;font-size:12px;line-height:1.35}.workflow-tag,.workflow-summary strong{display:inline-block;border-radius:999px;padding:5px 9px;background:#e2e8f0;color:#334155;font-size:12px;font-weight:700;white-space:nowrap}.audit-待审核,.collection-待财务审核,.delivery-待配货,.delivery-待出库,.delivery-部分发货待出库{background:#fef3c7;color:#92400e}.audit-已通过,.collection-已收清,.delivery-已完成{background:#dcfce7;color:#166534}.audit-已驳回{background:#fee2e2;color:#b91c1c}.collection-未收款,.collection-部分收款,.delivery-部分发货{background:#dbeafe;color:#1d4ed8}.next-action-text{color:#0f3c8c}.empty-row{padding:28px!important;color:#64748b;text-align:center}.server-pagination{margin:12px}.order-detail-drawer{position:fixed;top:0;right:0;z-index:25;width:min(760px,100vw);height:100vh;overflow:auto;border-left:1px solid #cbd5e1;background:#fff;box-shadow:-16px 0 42px #0f172a38;padding:24px}.order-detail-head,.detail-actions{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.order-detail-head p,.order-detail-head span{color:#64748b;font-size:13px}.order-detail-head h2{margin:5px 0}.order-detail-head button,.detail-actions button{border:1px solid #cbd5e1;border-radius:6px;padding:8px 12px;background:#fff;color:#334155;cursor:pointer}.detail-actions .primary{border-color:#1f7a5a;background:#1f7a5a;color:#fff}.workflow-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:20px 0}.workflow-summary div{border:1px solid #dbe5f4;border-radius:8px;padding:11px;background:#f8fbff}.workflow-summary span,.workflow-summary strong{display:block}.workflow-summary span{margin-bottom:7px;color:#64748b;font-size:12px}.detail-section{margin-top:18px}.detail-section h3{margin-bottom:10px;font-size:16px}.detail-section table{width:100%;min-width:620px}.national-subsidy-photo-list{display:flex;flex-wrap:wrap;gap:12px}.national-subsidy-photo-list a{display:grid;gap:6px;width:118px;color:#1f5f95;font-size:12px;text-decoration:none}.national-subsidy-photo-list img{width:118px;height:88px;border:1px solid #dbe3ec;border-radius:8px;object-fit:cover}.national-subsidy-audit-records{margin-top:14px;padding-top:8px;border-top:1px solid #e5ebf1;color:#536273;font-size:13px}.national-subsidy-audit-records p{margin:8px 0}.detail-amounts{display:flex;flex-wrap:wrap;gap:12px 22px;color:#475569}.detail-actions{position:sticky;bottom:-24px;align-items:center;justify-content:flex-start;flex-wrap:wrap;margin:24px -24px -24px;padding:16px 24px;border-top:1px solid #dbe5f4;background:#fffffff5}.modal-mask{position:fixed;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;padding:24px;background:#14213d6b;z-index:20}.modal{width:min(1080px,100%);max-height:calc(100vh - 48px);overflow:auto;border-radius:8px;background:#fff;padding:20px;box-shadow:0 18px 48px #14213d3d}.confirmation-mask{z-index:40}.confirmation-dialog{width:min(460px,100%);border:1px solid #fed7aa;border-radius:14px;background:#fff;padding:28px;text-align:center;box-shadow:0 22px 60px #14213d47}.confirmation-icon{display:grid;width:44px;height:44px;place-items:center;margin:0 auto 14px;border-radius:50%;background:#fff3cd;color:#b45309;font-size:25px;font-weight:800}.confirmation-dialog h2{font-size:20px}.confirmation-dialog p{margin-top:12px;color:#64748b;line-height:1.65;text-align:left}.confirmation-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}.confirmation-actions button{border:1px solid #cbd5e1;border-radius:7px;padding:9px 16px;background:#fff;color:#475569;cursor:pointer;font-weight:700}.confirmation-actions .danger-confirm{border-color:#b45309;background:#b45309;color:#fff}.modal-header,.modal-actions{display:flex;align-items:center;justify-content:space-between;gap:12px}.modal-header{margin-bottom:18px}.modal-header button,.modal-actions button{border:1px solid #d7dee8;border-radius:6px;padding:8px 12px;background:#fff;color:#2f3b4a;cursor:pointer}.form-field{display:grid;gap:8px;margin-bottom:14px}.form-field span{color:#2f3b4a;font-size:14px;font-weight:600}.form-field input,.form-field select,.form-field textarea{width:100%;border:1px solid #d7dee8;border-radius:6px;padding:10px 12px;color:#17202a;font:inherit;background:#fff}.form-field .select-search{margin-bottom:8px;background:#f9fafb}.product-suggestions{display:grid;max-height:220px;overflow:auto;border:1px solid #d7dee8;border-radius:6px;background:#fff}.product-suggestions button{border:0;border-bottom:1px solid #edf1f5;padding:9px 10px;background:#fff;color:#2f3b4a;text-align:left;cursor:pointer}.product-suggestions button:hover{background:#edf7f2;color:#1f7a5a}.selected-product{color:#1f7a5a;font-size:12px}.form-field textarea{resize:vertical}.form-field input:focus,.form-field select:focus,.form-field textarea:focus{outline:2px solid rgba(31,122,90,.18);border-color:#1f7a5a}.modal-actions{justify-content:flex-end;margin-top:18px}.file-import-panel{display:grid;gap:8px;margin-bottom:14px;border:1px solid #dce7f3;border-radius:8px;padding:14px;background:#f7fbff}.file-picker{position:relative;display:inline-flex;align-items:center;justify-content:space-between;gap:12px;width:fit-content;border:1px dashed #8db1d8;border-radius:9px;background:#eef6ff;color:#155da0;padding:10px 12px;font-size:14px;font-weight:600;cursor:pointer}.file-picker input{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden}.file-picker:after{content:"选择文件";border-radius:7px;background:#1769aa;color:#fff;padding:6px 10px;font-size:13px}.file-import-panel p{margin:0;color:#5f6b7a;font-size:13px}.file-import-panel strong{color:#1f7a5a;font-size:13px}.order-items{margin-top:18px;border-top:1px solid #edf1f5;padding-top:18px}.order-items-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.order-items-title h3{margin:0}.order-items-title button,.remove-item{border:1px solid #d7dee8;border-radius:6px;padding:8px 12px;background:#fff;color:#2f3b4a;cursor:pointer}.order-item-row{display:grid;grid-template-columns:minmax(180px,1.4fr) repeat(4,minmax(92px,1fr)) auto;gap:10px;align-items:end;margin-bottom:12px;border:1px solid #edf1f5;border-radius:8px;padding:12px;background:#f9fafb}.order-item-row .form-field{margin-bottom:0}.import-help{margin-top:14px;border:1px solid #dce7f3;border-radius:8px;background:#f7fbff;padding:14px}.import-help strong{display:block;margin-bottom:8px}.import-help-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}.import-help-title strong{margin-bottom:0}.import-help-title button{border:1px solid #1f7a5a;border-radius:6px;padding:7px 10px;background:#fff;color:#1f7a5a;cursor:pointer}.import-help p{margin:4px 0;color:#2f3b4a;font-size:14px}table{width:100%;border-collapse:collapse}.table-wrap{width:100%;overflow-x:auto}.table-wrap table{min-width:1280px}th,td{border-bottom:1px solid #edf1f5;padding:12px 8px;text-align:left;white-space:nowrap}th{color:#687588;font-size:13px;font-weight:600}.pagination{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:14px;color:#687588;font-size:14px}.pagination button{border:1px solid #d7dee8;border-radius:6px;padding:8px 12px;background:#fff;color:#2f3b4a;cursor:pointer}.pagination button:disabled{cursor:not-allowed;opacity:.45}.task-list{display:grid;gap:10px;margin:0;padding:0;list-style:none}.task-list li{border-radius:6px;background:#f4f6f8;padding:12px}.workflow{margin-top:14px;padding:18px}.workflow div{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin-top:14px}.workflow span{display:grid;min-height:48px;place-items:center;border:1px solid #dfe6ee;border-radius:6px;background:#f9fafb;color:#2f3b4a;font-size:14px;text-align:center}.login-screen{min-height:100vh;display:grid;place-items:center;background:radial-gradient(circle at 20% 20%,rgba(190,32,38,.18),transparent 32%),linear-gradient(135deg,#f8efe8,#eef3f5 55%,#fff);padding:24px}.login-card{width:min(420px,100%);display:grid;gap:14px;border:1px solid #edf1f5;border-radius:18px;background:#fffffff0;box-shadow:0 24px 60px #232b371f;padding:30px}.login-card h1,.login-card p{margin:0}.login-card input{border:1px solid #d7dee8;border-radius:10px;padding:12px 14px;font-size:15px}.user-box{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap;border:1px solid #dbe4ef;border-radius:999px;background:#ffffffd1;padding:5px 6px 5px 14px;box-shadow:0 6px 18px #14213d0f}.user-box span{color:#687588;font-size:14px;font-weight:600}.logout-button{border:1px solid #cbd5e1;border-radius:999px;padding:7px 12px;background:#fff;color:#475569;cursor:pointer;font-size:13px;font-weight:700;transition:border-color .16s ease,background .16s ease,color .16s ease,transform .16s ease}.logout-button:hover{border-color:#fca5a5;background:#fff5f5;color:#b91c1c;transform:translateY(-1px)}.logout-button:focus-visible{outline:3px solid rgba(37,99,235,.22);outline-offset:2px}.oa-pending-row td{background:#fff8e8}.oa-pending-row td:first-child{box-shadow:inset 4px 0 #f59e0b}.oa-pending-tag{display:inline-block;border-radius:999px;background:#d97706;color:#fff;padding:4px 9px;font-size:12px}.oa-attachment-panel{display:grid;grid-template-columns:1fr auto;gap:16px;align-items:center;border:1px dashed #9db7d6;border-radius:12px;background:linear-gradient(135deg,#f7fbff,#eef6ff);padding:18px}.oa-attachment-panel strong{color:#173b67;font-size:16px}.oa-attachment-panel p{margin:6px 0 0;color:#66768a;font-size:13px}.oa-upload-trigger{display:inline-flex;align-items:center;gap:8px;border-radius:9px;background:#1769aa;color:#fff;padding:10px 14px;cursor:pointer;font-weight:700;box-shadow:0 6px 14px #1769aa2e}.oa-upload-trigger:hover{background:#0f568f}.oa-upload-trigger input{display:none}.upload-file-button{display:inline-flex;align-items:center;gap:8px;border-radius:8px;background:#edf6ff;color:#155da0;padding:9px 12px;cursor:pointer;font-weight:750}.upload-file-button:hover{background:#dceeff}.upload-file-button input{display:none}.upload-plus{display:grid;width:18px;height:18px;place-items:center;border:1px solid rgba(255,255,255,.8);border-radius:50%;font-size:18px;line-height:1}.oa-attachment-list{grid-column:1 / -1;display:grid;gap:8px}.oa-attachment-item{display:flex;align-items:center;justify-content:space-between;gap:12px;border-radius:8px;background:#fff;padding:9px 10px}.attachment-preview{overflow:hidden;border:0;background:transparent;color:#155da0;cursor:pointer;font-weight:700;text-align:left;text-overflow:ellipsis;white-space:nowrap}.attachment-remove{flex:0 0 auto;border:0;background:transparent;color:#c2410c;cursor:pointer}.attachment-preview-mask{z-index:60}.attachment-preview-modal{width:min(1080px,calc(100vw - 64px));max-height:calc(100vh - 64px);overflow:auto;border-radius:14px;background:#fff;box-shadow:0 24px 80px #0f172a59;padding:18px}.attachment-image-stage{display:grid;min-height:360px;place-items:center;border-radius:10px;background:#111827;padding:18px}.attachment-image-stage img{display:block;max-width:100%;max-height:calc(100vh - 170px);object-fit:contain}@media (max-width: 960px){.app-shell{grid-template-columns:1fr}.sidebar{position:static}nav{grid-template-columns:repeat(2,minmax(0,1fr))}.metric-grid,.module-stats,.dashboard-grid,.filter-grid,.permission-grid,.workflow div,.order-item-row,.oa-attachment-panel{grid-template-columns:1fr}.topbar{align-items:flex-start;flex-direction:column}}
