#order-import-dialog{width:min(1320px,94vw);max-width:94vw;max-height:92vh;padding:26px;border:1px solid #dce5ed;border-radius:16px;overflow:auto}
.order-editing td{vertical-align:top;background:#fffbef!important}.order-editing input{font:inherit;border:1px solid #c8d6e5;border-radius:6px;padding:9px;width:100%;min-width:170px;box-sizing:border-box}.inline-order-label{display:block;margin-bottom:8px}.inline-order-label small{display:block;margin-bottom:5px;color:#63758b}.inline-edit-actions{display:flex;gap:8px}.inline-edit-actions button{font:700 20px/1 system-ui;padding:10px;border-radius:7px}.inline-edit-actions .save-order{background:#e3f5eb;color:#127148;border:1px solid #82bb99}.inline-edit-actions .cancel-order{background:#ffe9e7;color:#b52c23;border:1px solid #e3a09b}.inline-order-errors td{white-space:normal;color:#8c5c00;background:#fff8df!important;padding:14px}.table-panel:has(tr[data-order]) th:first-child,.table-panel tr[data-order]>td:first-child{position:sticky;left:0;z-index:2;background:#fff;box-shadow:2px 0 4px #2136530a}.table-panel:has(tr[data-order]) th:first-child{background:#f4f7fa;z-index:3}
#order-import-dialog h2{margin:4px 0 10px}.import-tools{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:22px 0}.import-tools span{color:#62748b;font-size:13px}.import-tools label{display:flex;gap:8px;align-items:center}.import-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.import-summary button{display:flex;align-items:center;gap:16px;padding:18px;border:1px solid #dce5ed;background:#f8fafc;text-align:left}.import-summary button.selected{border-color:#1762d6;background:#edf4ff}.import-summary strong{font-size:28px}.import-light{display:inline-flex;gap:7px;align-items:center;white-space:nowrap;font-size:12px;padding:5px 8px;border-radius:6px;font-weight:600}.import-light i{width:7px;height:7px;border-radius:50%;background:currentColor}.import-light.green{background:#e3f5eb;color:#127148}.import-light.yellow{background:#fff2ce;color:#8c5c00}.import-light.red{background:#ffe9e7;color:#b52c23}.import-summary strong.green{color:#127148}.import-summary strong.yellow{color:#8c5c00}.import-summary strong.red{color:#b52c23}.import-preview{overflow:auto;max-height:43vh;border:1px solid #e0e7ef;border-radius:8px}.import-preview table{width:100%;min-width:1040px}.import-preview th{position:sticky;top:0;background:#f2f6fa;z-index:1}.import-problems{white-space:normal!important;min-width:260px;max-width:420px;line-height:1.65}#import-message{font-size:13px;color:#53667f;margin:18px 0}.draft-editor{width:min(740px,94vw);max-height:90vh;overflow:auto;padding:28px;border:1px solid #dce5ed;border-radius:14px}.draft-editor label{display:flex;flex-direction:column;gap:8px}.draft-editor input{width:100%;min-width:0}.draft-editor .form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:20px 0}.draft-editor .import-problems{max-width:none;padding:12px 0}.draft-editor .actions{margin-top:16px}#order-import-dialog button,.draft-editor button{font:inherit}button[data-edit-draft]{margin-left:8px;color:#946000;border-color:#dfc582}@media(max-width:700px){.import-summary{grid-template-columns:1fr 1fr}.draft-editor .form-grid{grid-template-columns:1fr}}
.order-tools{display:flex;gap:8px;align-items:center}.order-tools[hidden]{display:none}.order-tools button{font-family:inherit;font-size:13px;font-weight:500;line-height:20px;padding:8px 14px;min-height:38px;border-radius:7px;white-space:nowrap}#order-template-btn{background:#f6f8fb;color:#425674;border:1px solid #d8e1eb}#order-audit-btn{background:#fff6e5;color:#8c621d;border:1px solid #ead6ae}.table-heading{gap:16px;flex-wrap:wrap}.table-options{flex-wrap:wrap}.audit-dialog{width:min(1000px,94vw);max-height:90vh;overflow:auto;padding:28px;border:1px solid #dce5ed;border-radius:14px}.audit-dialog .import-summary{grid-template-columns:repeat(3,1fr);margin:20px 0}.audit-dialog .import-summary>div{padding:16px;background:#f7f9fc;border-radius:8px}.audit-dialog .import-summary strong{font-size:24px;margin-left:16px}.audit-dialog .actions{margin-top:20px}
#order-import-dialog{width:min(680px,94vw)}#order-dropzone{margin:24px 0;border:2px dashed #b7cce0;background:#f6f9fc;border-radius:12px;padding:32px 20px;display:flex;align-items:center;flex-direction:column;gap:12px;cursor:pointer;color:#47647f}#order-dropzone:hover,#order-dropzone.dragging{background:#edf5ff;border-color:#1762d6}.upload-symbol{font-size:34px;color:#1762d6}#order-dropzone span{font-size:13px}.sheet-choice{display:flex;align-items:center;gap:14px;margin:18px 0}.sheet-choice select{max-width:300px}.sheet-choice span{font-size:13px;color:#65758a}.import-loading,.import-result{text-align:center;padding:28px 10px}.import-loading h3,.import-result h3{font-size:23px;margin:16px 0}.import-loading progress{display:block;width:100%;height:12px;accent-color:#1762d6;margin:22px 0}.import-loading p,.import-result p{font-size:13px;color:#5e7087;line-height:1.8}.import-spinner{display:inline-block;width:32px;height:32px;border:3px solid #dbe7f4;border-top-color:#1762d6;border-radius:50%;animation:import-spin .8s linear infinite}@keyframes import-spin{to{transform:rotate(360deg)}}.import-result.success h3,.import-result.success .result-symbol{color:#127148}.import-result.warning h3,.import-result.warning .result-symbol{color:#956800}.result-symbol{font-size:36px;margin:auto;width:58px;height:58px;line-height:58px;border-radius:50%;background:#e3f5eb}.warning .result-symbol{background:#fff1cc}.result-counts{display:flex;justify-content:center;gap:24px;margin:24px 0;font-size:13px}.result-counts b{font-size:20px;margin:0 4px}.import-file-error{padding:14px;background:#fff4df;color:#865c15;border-radius:8px;line-height:1.65}
.table-options{margin-left:auto;justify-content:flex-end}@media(min-width:850px){.table-heading{flex-direction:row;align-items:flex-start}.table-heading>div:first-child{flex:1;min-width:160px}#table-subtitle{display:block;max-width:290px}.table-options{max-width:500px}}.inline-order-errors input{display:block;margin-top:6px;max-width:650px;width:100%;padding:9px;border:1px solid #c8d6e5;border-radius:6px;font:inherit}
.table-options .order-tools button,.table-options #reset-filter{font-family:inherit;font-size:10px;font-weight:400;line-height:15px;height:29px;min-height:0;padding:6px 8px;border-radius:7px}.order-tools{gap:8px}.table-scroll-footer{padding:8px 20px 0;min-height:0}.table-scroll-footer:has([hidden]){display:none}.orders-view .map-layout{display:none}
.order-region{display:inline-block;padding:4px 10px;font-size:11px;font-weight:500;border-radius:6px;white-space:nowrap;background:#f0f3f7;color:#617085}.order-region.east{background:#eaf3ff;color:#356ba6}.order-region.west{background:#fff1e3;color:#aa641b}.order-region.south{background:#f0eafb;color:#7953a5}.order-editing select{font:inherit;border:1px solid #c8d6e5;border-radius:6px;padding:9px;min-width:100px}

#order-add-btn{background:#edf3fb;color:#365f91;border:1px solid #cddbed}

.order-create-dialog{width:min(960px,94vw);max-height:90vh;overflow:auto;padding:26px}.order-editor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.order-editor-grid label{display:flex;flex-direction:column;gap:7px;min-width:0;color:#61758d}.order-editor-grid input,.order-editor-grid select{width:100%;min-width:0;padding:10px;border:1px solid #d6e0eb;border-radius:6px;font:inherit}.order-editor-grid input[readonly]{background:#f0f3f7;color:#8490a0}.order-editor-actions{position:sticky;bottom:-26px;display:flex;gap:12px;padding:16px 0;background:white;border-top:1px solid #e8edf2}.order-editor-actions button{font-size:22px;width:48px;padding:6px}.order-editor-actions .save-order{background:#e3f5eb;color:#127148}.order-editor-actions .cancel-order{background:#ffe9e7;color:#b52c23}.order-editor .inline-order-errors{padding:14px 0}@media(max-width:600px){.order-editor-grid{grid-template-columns:1fr}}

.order-status{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;border-radius:6px;padding:5px 9px;font-size:12px;font-weight:500;background:#f0f2f5;color:#737d8c}.order-status i{width:6px;height:6px;border-radius:50%;background:currentColor}.order-status.pending,.order-status.draft{background:#fff3d6;color:#966616}.order-status.active{background:#eaf2ff;color:#356fbd}.order-status.completed{background:#e3f5eb;color:#127148}.order-status.cancelled{background:#eef0f3;color:#78818e}

.order-status.picked{background:#f1edff;color:#7153a5}.module-event-select{font-family:inherit;line-height:1.4;border:1px solid transparent;min-width:100px;cursor:pointer;padding:5px 22px 5px 9px}.module-event-select:hover,.module-event-select:focus-visible{border-color:#9eb4ce;outline-offset:2px}.module-event-select:disabled{cursor:wait;opacity:.65}.module-event-select option{background:#fff;color:#21344b}

.vehicle-dialog{width:min(460px,calc(100vw - 40px));padding:28px;border:1px solid #dce5ed;border-radius:16px;color:#243b53;box-sizing:border-box}.vehicle-dialog::backdrop{background:rgba(16,35,55,.35)}.vehicle-dialog h2{margin:0;font-size:21px}.vehicle-dialog .notice{margin:16px 0;line-height:1.7}.vehicle-field{display:block;margin:16px 0;font-size:13px;font-weight:500}.vehicle-field input{display:block;width:100%;box-sizing:border-box;margin-top:7px;padding:10px 12px;border:1px solid #ccd9e6;border-radius:7px;font:inherit;background:white;color:inherit}.vehicle-dialog .required,.vehicle-error{color:#b64236}.vehicle-error{font-size:13px;line-height:1.6;min-height:20px}.vehicle-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}.vehicle-actions button{font:inherit;font-size:13px;min-height:36px;padding:8px 14px}.vehicle-button{margin-right:12px;font:inherit;font-size:12px}
