body.excel-import-open{overflow:hidden}
.excel-import-modal{position:fixed;inset:0;z-index:1900;background:rgba(7,27,47,.68);display:grid;place-items:center;padding:18px}
.excel-import-box{width:min(1120px,100%);max-height:94vh;overflow:auto;background:#fff;border-radius:16px;box-shadow:0 28px 90px rgba(0,0,0,.34);padding:20px}
.excel-import-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}
.excel-import-head h3{margin:0;color:#183d62;font-size:22px}.excel-import-head p{margin:5px 0 0;color:#6e7a8f;font-size:13px}
.excel-import-head>button{border:0;background:transparent;color:#607389;font-size:28px;line-height:1;padding:0 4px}
.excel-import-tabs{display:flex;gap:7px;margin:18px 0 12px;padding-bottom:12px;border-bottom:1px solid #e2e8ef}
.excel-import-tab{border:1px solid #d7e1eb;background:#f7f9fb;color:#4a6177;border-radius:9px;padding:9px 14px;font-weight:800}
.excel-import-tab.active{background:#1c5d96;color:#fff;border-color:#1c5d96}
.excel-source-panel{display:grid;grid-template-columns:auto auto 1fr;align-items:center;gap:12px;margin:0 0 12px;padding:13px 14px;background:#f7f9fc;border:1px solid #dfe7ef;border-radius:11px;color:#40566b}.excel-source-panel>b{font-size:13px}.excel-source-panel>small{color:#6e7a8f}.excel-source-choices{display:flex;gap:6px}.excel-source-choice{min-width:82px;border:1px solid #cbd8e5;background:#fff;color:#40566b;border-radius:8px;padding:8px 12px;font-weight:900}.excel-source-choice.active{background:#173e66;border-color:#173e66;color:#fff}
.excel-import-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:14px;background:#f3f7fb;border:1px dashed #b9cadd;border-radius:12px}
.excel-file-button{margin:0}.excel-file-button input{position:absolute;opacity:0;pointer-events:none}.excel-file-button span{display:inline-flex;align-items:center;background:#173e66;color:#fff;padding:10px 14px;border-radius:8px;font-weight:800;cursor:pointer}
#excelImportFileName{font-size:12px;color:#607389;max-width:330px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.excel-deactivate{display:grid;grid-template-columns:20px 1fr;column-gap:9px;margin:13px 0;padding:12px;border:1px solid #f0d89a;background:#fff9e9;border-radius:10px;color:#6a5113;font-size:13px}
.excel-deactivate input{width:18px;margin:1px 0;grid-row:1/3}.excel-deactivate span{font-weight:800}.excel-deactivate small{font-weight:400;margin-top:3px}
.excel-import-summary{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.excel-import-summary span{padding:6px 9px;border-radius:999px;background:#eef3f7;color:#53687c;font-size:11px}.excel-import-summary .new{background:#e8f8ef;color:#15734a}.excel-import-summary .update{background:#eaf2fb;color:#245f91}.excel-import-summary .same{background:#f1f3f5;color:#667085}.excel-import-summary .error{background:#fff0f0;color:#b42318}
.excel-import-preview{min-height:210px}.excel-import-empty{height:210px;display:grid;place-content:center;text-align:center;gap:6px;border:1px solid #e1e7ee;border-radius:11px;color:#78889a}.excel-import-empty b{color:#40566b}.excel-import-empty span{font-size:12px}
.excel-import-table-wrap{max-height:390px;overflow:auto;border:1px solid #dce3ed;border-radius:10px}.excel-import-table-wrap table{min-width:850px}.excel-import-table-wrap th{top:0}.excel-import-table-wrap tr.error td{background:#fffafa}.excel-import-table-wrap td:last-child small{display:block;color:#b42318;margin-top:4px;max-width:300px}
.excel-import-table-wrap td:last-child small.excel-row-warning{color:#8a6410;background:#fff8df;border-radius:6px;padding:4px 6px}
.excel-row-status{display:inline-block;border-radius:999px;padding:4px 8px;font-size:10px;font-weight:900}.excel-row-status.new{background:#e8f8ef;color:#15734a}.excel-row-status.update{background:#eaf2fb;color:#245f91}.excel-row-status.same{background:#f1f3f5;color:#667085}.excel-row-status.error{background:#fff0f0;color:#b42318}
.excel-import-limit{padding:9px;text-align:center;background:#f7f9fb;color:#6e7a8f;font-size:11px;border:1px solid #dce3ed;border-top:0;border-radius:0 0 10px 10px}
.excel-import-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:16px}.excel-import-actions button:disabled{opacity:.55;cursor:not-allowed}
.excel-import-toast{position:fixed;right:20px;bottom:20px;z-index:2300;max-width:min(440px,calc(100vw - 40px));background:#153d63;color:#fff;border-radius:10px;padding:13px 16px;box-shadow:0 12px 35px rgba(0,0,0,.24);font-weight:700}.excel-import-toast.error{background:#b42318}
@media(max-width:700px){.excel-import-modal{padding:8px}.excel-import-box{padding:14px;max-height:97vh}.excel-import-head h3{font-size:19px}.excel-import-tabs{display:grid;grid-template-columns:1fr 1fr}.excel-import-tab{padding:9px 7px}.excel-source-panel{grid-template-columns:1fr;gap:8px}.excel-source-choices{display:grid;grid-template-columns:1fr 1fr}.excel-source-choice{width:100%}.excel-import-tools{align-items:stretch}.excel-import-tools>*{width:100%;text-align:center}#excelImportFileName{max-width:none}.excel-file-button span{justify-content:center}.excel-import-actions{position:sticky;bottom:-14px;background:#fff;padding:12px 0 2px}.excel-import-actions .btn{flex:1}}
