.cs-active > :not(.cs-root):not(.hq-workspace-tabs){display:none!important}.cs-root{display:block!important}.cs-switch{margin-bottom:16px}.cs-heading,.cs-case-title,.cs-footer{display:flex;align-items:center;justify-content:space-between;gap:16px}.cs-heading p,.cs-case p{color:#64748b;margin:8px 0;overflow-wrap:anywhere}.cs-heading h2,.cs-case h3{margin:0}.cs-filters{display:flex;flex-wrap:wrap;gap:10px}.cs-filters input{flex:1;min-width:160px}.cs-filters select{max-width:240px}.cs-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(330px,1fr));gap:16px}.cs-case .cs-phone{font-size:21px;color:#17315a;letter-spacing:.04em}.cs-case .actions{flex-wrap:wrap;margin-top:16px}.cs-case .cs-reason{padding:10px;background:#f2f6ff;border-radius:8px}.cs-footer{justify-content:flex-end;margin-top:16px}.cs-footer span{margin-right:auto}.cs-internal-dialog{width:min(740px,90vw);max-height:85vh;overflow:auto;padding:28px;border:0;border-radius:16px}.cs-internal-dialog label,.cs-import label{display:flex;flex-direction:column;gap:8px;margin:14px 0}.cs-internal-dialog::backdrop{background:#17274277}.cs-preview,.cs-staff-list{max-height:340px;overflow:auto}.cs-user nav [data-tab]:not([data-tab=leads]):not([data-tab=service-settlement]),.cs-user .notification-shortcut{display:none!important}.cs-user #new-customer,.cs-user #manage-team,.cs-user #manage-routing{display:none!important}@media(max-width:700px){.cs-heading{align-items:flex-start;flex-direction:column}.cs-list{grid-template-columns:1fr}.cs-filters select{max-width:100%;flex:1}.cs-filters input{flex-basis:100%}}

.cs-user nav .nav-label{display:none!important}

.cs-admin-dialog .cs-case{box-shadow:none;padding:12px 0}.cs-admin-dialog .cs-case-title input{display:none}.cs-admin-dialog .cs-events{border-top:1px solid #e5eaf2;margin-top:16px}.cs-admin-dialog .cs-events p{padding:8px 0;border-bottom:1px solid #edf0f5}.cs-admin-dialog .cs-events small{display:block;color:#64748b;margin-top:4px}.cs-admin-table td.cs-target{white-space:normal;min-width:100px}.cs-admin-table td.cs-note{max-width:220px;overflow:hidden;text-overflow:ellipsis}.cs-admin-table .cs-row-actions{display:flex;gap:8px}

/* Keep the batch filter and list actions aligned above the headquarters table. */
#tab-leads .cs-admin-tools{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px 16px;padding:10px 14px;margin:0;border-bottom:1px solid #e8edf5}
#tab-leads .cs-admin-tools .cs-admin-filter{display:flex;align-items:center;gap:10px;margin:0;min-width:0;max-width:100%;font-size:12px;line-height:1.25;white-space:nowrap}
#tab-leads .cs-admin-tools select{width:240px;max-width:100%;min-width:0;height:31px;min-height:31px;margin:0;padding:4px 8px;border-radius:5px;font-size:12px;flex:1}
#tab-leads .cs-admin-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-left:auto}
#tab-leads .cs-admin-actions button{height:31px;min-height:31px;padding:4px 10px;font-size:12px;white-space:nowrap}
@media(max-width:680px){#tab-leads .cs-admin-tools .cs-admin-filter{flex:1 1 100%}#tab-leads .cs-admin-tools select{width:auto}}

.cs-region{display:inline-flex;align-items:center;gap:7px;max-width:100%;padding:6px 10px;margin:10px 0 3px;background:#eef5ff;border:1px solid #dfeafb;border-radius:7px;font-size:13px;color:#486483;line-height:1.4;white-space:nowrap}.cs-region strong{color:#2358a1;font-weight:650}.cs-region-dot{opacity:.5}.cs-region.pending{background:#fff8ed;border-color:#f6e5c6;color:#927451}.cs-region.pending strong{color:#a46b19}.cs-region-cell .cs-region{margin:0;font-size:12px;padding:4px 7px}.cs-region-filters{display:flex;gap:6px}.cs-region-filters select{min-width:0;flex:1;width:50%}.cs-preview-summary{display:flex;gap:12px;flex-wrap:wrap;margin:18px 0 8px;padding:12px;background:#f2f7ff;border-radius:8px;color:#34577d}.cs-import-help{font-size:13px;color:#64748b}.cs-import-table{width:100%;border-collapse:collapse;min-width:960px;font-size:13px}.cs-import-table th{background:#f3f6fb;text-align:left;position:sticky;top:0;z-index:1}.cs-import-table th,.cs-import-table td{padding:10px;border-bottom:1px solid #e8edf5;vertical-align:middle}.cs-import-table small{display:block;color:#64748b;margin-top:4px}.cs-import-table .cs-region{margin:0}.cs-preview+[data-confirm]{margin-top:16px}

/* Customer-service import: one compact row, automatic account matching. */
.cs-import-panel,.cs-import-batches{min-width:0}
.cs-import-heading{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
#tab-data .cs-import-heading h2{margin:0;font-size:16px;line-height:1.5}
.cs-import-badge{padding:3px 8px;border-radius:5px;background:#edf8f3;color:#378369;font-size:11px;white-space:nowrap}
.cs-import-panel .cs-import-intro{margin:8px 0 22px;color:#71819b;font-size:12px;line-height:1.8}
.cs-import-grid{display:grid;grid-template-columns:minmax(180px,260px) minmax(240px,1fr) auto;gap:16px;align-items:end}
#tab-data .cs-import-panel .cs-import label{min-width:0;margin:0;gap:8px;font-size:12px;color:#536b8b}
#tab-data .cs-import-panel .cs-import select,#tab-data .cs-import-panel .cs-import input[type=file]{width:100%;min-width:0;margin:0;height:38px;border:1px solid #d8e2f2;border-radius:7px;background:#fff;font-size:12px}
#tab-data .cs-import-panel .cs-import select{padding:0 10px}
#tab-data .cs-import-panel .cs-import input[type=file]{padding:0 10px 0 0;line-height:36px;color:#64748b;overflow:hidden;text-overflow:ellipsis}
.cs-import input[type=file]::file-selector-button{height:36px;margin:0 12px 0 0;padding:0 14px;border:0;border-right:1px solid #d8e2f2;background:#f4f7fc;color:#365c93;font:inherit;cursor:pointer}
.cs-import input[type=file]::file-selector-button:hover{background:#eaf1ff}
.cs-import-actions{display:flex;gap:8px;align-items:center}
.cs-import-panel .cs-import-actions button{height:38px;min-height:38px;padding:0 15px;font-size:12px;white-space:nowrap}
.cs-import-actions button[type=submit]{min-width:94px}
.cs-import-panel .cs-import-file-help{margin:9px 0 18px;color:#8796ab;font-size:11px;line-height:1.6}
.cs-import-format{border-top:1px solid #edf1f7;padding-top:13px;color:#64748b;font-size:12px;line-height:1.8}
.cs-import-format summary{width:fit-content;cursor:pointer;color:#536b8b;user-select:none}
.cs-import-format>div{padding:6px 0 0;max-width:1100px}
.cs-import-format p{margin:6px 0}
.cs-import-format strong{font-weight:600;color:#405a7e}
.cs-import-panel [data-preview]:not(:empty){margin-top:18px}
.cs-import-batches{margin-top:16px}
#tab-data .cs-import-batches h3{font-size:14px;margin:0 0 14px}
.cs-import-empty{display:flex;flex-direction:column;align-items:center;gap:7px;padding:22px 14px;background:#f8faff;border:1px dashed #e3eaf5;border-radius:8px;color:#71829d;font-size:12px}
.cs-import-empty small{font-size:11px;color:#98a5b8;text-align:center}
.cs-batch-heading{display:flex;align-items:center;justify-content:space-between;gap:8px 16px;flex-wrap:wrap}
#tab-data .cs-batch-heading h3{margin:0}
.cs-batch-heading>span{font-size:11px;color:#8291a7}
.cs-batch-hint{margin:8px 0 14px;color:#7b8da5;font-size:12px;line-height:1.6}
.cs-batch-scroll{max-width:100%;overflow-x:auto;border:1px solid #e7edf6;border-radius:8px;scrollbar-width:thin}
.cs-batch-table{width:100%;min-width:870px;border-collapse:collapse;font-size:12px;color:#4c6586}
.cs-batch-table th,.cs-batch-table td{padding:12px 14px;text-align:left;border-bottom:1px solid #edf1f7;white-space:nowrap}
.cs-batch-table th{font-weight:500;color:#7085a3;background:#f5f8fd}
.cs-batch-table tbody tr:last-child td{border-bottom:0}
.cs-batch-table tbody tr:hover{background:#fafcff}
.cs-batch-table .number{text-align:right;font-variant-numeric:tabular-nums}
.cs-batch-table .cs-batch-added{color:#277d65;font-weight:600}
.cs-batch-table .cs-batch-error{color:#bd603f}
.cs-batch-table .cs-batch-time{font-variant-numeric:tabular-nums}
.cs-batch-table .cs-batch-file{max-width:280px;overflow:hidden;text-overflow:ellipsis}
.cs-batch-table button{height:29px;min-height:29px;padding:4px 9px;font-size:11px;box-shadow:none}
@media(max-width:1100px){.cs-import-grid{grid-template-columns:minmax(180px,1fr) minmax(240px,2fr)}.cs-import-actions{grid-column:1/-1;justify-content:flex-end}}
@media(max-width:600px){.cs-import-grid{grid-template-columns:minmax(0,1fr);gap:14px}.cs-import-actions{justify-content:flex-start;flex-wrap:wrap}.cs-import-actions button{flex:1}#tab-data .cs-import-heading h2{font-size:15px}.cs-import-panel .cs-import-intro{margin-bottom:18px}}

/* Staff qualification workspace: one shell for filters, cards and pagination. */
#tab-leads .cs-workspace{padding:0;border-radius:12px;overflow:hidden;box-shadow:none}
.cs-workspace-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px 14px}
.cs-workspace-head h2{margin:0;font-size:16px;line-height:1.5;color:#243d60}
.cs-workspace-head p{margin:5px 0 0;font-size:12px;line-height:1.7;color:#8291a7}
.cs-workspace-head button{min-height:30px;padding:5px 10px;border-radius:6px;font-size:12px;white-space:nowrap;box-shadow:none}
.cs-state-tabs{display:flex;gap:4px;overflow-x:auto;padding:0 20px 12px;border-bottom:1px solid #eaf0f7;scrollbar-width:thin}
.cs-state-tabs button{flex:none;min-height:30px;border:0;border-radius:6px;padding:6px 13px;background:transparent;color:#71839e;font-size:12px;line-height:18px;box-shadow:none}
.cs-state-tabs button:hover{background:#f2f6fc;color:#2864ed}
.cs-state-tabs button.active{background:#edf3ff;color:#245edf;font-weight:600}
.cs-workspace .cs-filters{display:flex;gap:10px;align-items:center;margin:0;padding:14px 20px;background:#fbfcff;border-bottom:1px solid #eaf0f7}
.cs-workspace .cs-search-field{display:flex;align-items:center;gap:8px;flex:1 1 260px;max-width:440px;min-width:180px;margin:0;padding:0 10px;background:#fff;border:1px solid #dbe4f2;border-radius:6px;height:34px}
.cs-search-field>.icon{flex:none;width:15px;height:15px;color:#93a5be}
.cs-workspace .cs-search-field input{width:100%;min-width:0;flex:1;margin:0;padding:0;border:0;border-radius:0;height:30px;min-height:30px;font-size:12px;background:transparent;box-shadow:none}
.cs-workspace .cs-search-field:focus-within{border-color:#77a0ee;box-shadow:0 0 0 3px #2864ed12}
.cs-workspace .cs-filters select{flex:0 1 180px;width:180px;min-width:130px;max-width:200px;height:34px;min-height:34px;margin:0;padding:5px 10px;font-size:12px;border-radius:6px;background:#fff}
.cs-filter-actions{display:flex;align-items:center;gap:8px}
.cs-filter-actions button{height:34px;min-height:34px;padding:5px 16px;border-radius:6px;font-size:12px;white-space:nowrap}
.cs-filter-actions [data-cs-reset]{border-color:transparent;background:transparent;color:#6b7f9d;box-shadow:none}
.cs-workspace-body{padding:16px 20px;background:#f8faff}
.cs-workspace-body:has(>.cs-workspace-state){padding:0;background:#fff}
.cs-workspace-state{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:9px;padding:28px 18px;min-height:205px;text-align:center}
.cs-workspace-state .cs-state-icon{display:grid;place-items:center;width:44px;height:44px;background:#f1f5fc;border-radius:12px;color:#91a7c7;margin-bottom:2px}
.cs-state-icon .icon{width:23px;height:23px}
.cs-workspace-state h3{font-size:14px;font-weight:500;margin:0;color:#526c90}
.cs-workspace-state p{font-size:12px;line-height:1.7;margin:0;color:#92a1b6}
.cs-workspace-state button{font-size:12px;min-height:32px;margin-top:4px;padding:6px 14px;border-radius:6px}
.cs-load-error{border-top:1px solid #eaf0f7}
.cs-load-error .cs-state-icon{background:#fff6ed;color:#b78a52}
.cs-workspace .cs-footer{margin:0;padding:11px 20px;border-top:1px solid #eaf0f7;gap:8px;font-size:12px;color:#7f91aa}
.cs-workspace .cs-footer button{min-height:29px;height:29px;padding:4px 10px;font-size:12px;border-radius:6px;box-shadow:none}
.cs-root[aria-busy=true] .cs-workspace-body{opacity:.55}
.cs-workspace .cs-list{grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:14px}
.cs-workspace .cs-case{padding:16px;min-width:0;border-radius:9px;box-shadow:none;display:flex;flex-direction:column;align-items:flex-start}
.cs-case-title{width:100%;gap:10px;align-items:flex-start}
.cs-case-title h3{min-width:0;flex:1;overflow-wrap:anywhere;font-size:15px;line-height:1.5;color:#2c466a}
.cs-case-title .tag{flex:none;font-size:11px;line-height:18px;padding:2px 7px;border-radius:5px}
.cs-case[data-cs-status=new] .tag{color:#3568bf;background:#edf3ff}
.cs-case[data-cs-status=later] .tag,.cs-case[data-cs-status=waiting] .tag{color:#a27a36;background:#fff6e8}
.cs-case[data-cs-status=closed] .tag{color:#8995a5;background:#f0f3f7}
.cs-workspace .cs-region{font-size:12px;padding:4px 8px;margin:10px 0 2px}
.cs-workspace .cs-case .cs-phone{font-size:21px;line-height:1.5;color:#294b77;font-weight:600;letter-spacing:.03em;margin:9px 0 12px}
.cs-case-fields{display:grid;gap:8px;width:100%;margin:0;font-size:12px;line-height:1.6}
.cs-case-fields>div{display:grid;grid-template-columns:56px minmax(0,1fr);gap:8px}
.cs-case-fields dt{color:#8b9ab0}
.cs-case-fields dd{margin:0;color:#4a6385;overflow-wrap:anywhere}
.cs-case .cs-case-note{font-size:12px;line-height:1.8;margin:10px 0 0;color:#8391a6}
.cs-case .cs-reason{font-size:12px;line-height:1.7;width:100%;margin:10px 0 0}
.cs-workspace .cs-case .actions{display:grid;grid-template-columns:1fr 1fr;width:100%;gap:8px;margin:auto 0 0;padding-top:15px}
.cs-workspace .cs-case .actions button{min-height:32px;padding:6px 8px;font-size:12px;border-radius:6px;box-shadow:none}
.cs-workspace [data-cs-action=dial]{background:#edf3ff;border-color:#dce7fc;color:#3568bf}
.cs-workspace [data-cs-action=transfer]{background:#2b64e9;border-color:#2b64e9;color:#fff}
@media(max-width:1100px){.cs-workspace .cs-filters{flex-wrap:wrap}.cs-workspace .cs-search-field{max-width:none}.cs-workspace .cs-filters select{flex:1 1 140px}.cs-workspace .cs-list{grid-template-columns:repeat(auto-fill,minmax(280px,1fr))}}
@media(max-width:650px){.cs-workspace-head{padding:16px 14px 12px;align-items:flex-start}.cs-workspace-head p{max-width:220px}.cs-state-tabs{padding:0 14px 10px}.cs-state-tabs button{padding:5px 11px}.cs-workspace .cs-filters{padding:12px 14px;gap:9px}.cs-workspace .cs-search-field{flex-basis:100%}.cs-workspace .cs-filters select{max-width:none;flex:1 1 120px;min-width:0}.cs-filter-actions{width:100%;justify-content:flex-end}.cs-workspace-body{padding:12px 14px}.cs-workspace .cs-list{grid-template-columns:minmax(0,1fr)}.cs-workspace .cs-footer{padding:10px 14px;flex-wrap:wrap}.cs-workspace .cs-footer span{font-size:11px}.cs-workspace-head h2{font-size:15px}}

.hq-workspace-tabs,.hq-filter-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 16px}.hq-workspace-tabs{padding:5px;border-radius:10px;background:#eaf0fa}.hq-workspace-tabs button{flex:1;border:0;background:transparent;color:#667b99}.hq-workspace-tabs button[aria-pressed=true]{background:#fff;color:#3561ef;box-shadow:0 2px 5px #203e6910}.hq-workspace{padding:22px;min-width:0}.hq-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:18px}.hq-heading h2,.hq-heading h3{margin:0}.hq-heading p{color:#71839d;margin:5px 0 0;font-size:12px}.hq-filters{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;margin:0 0 20px}.hq-filters label{min-width:140px}.hq-search{flex:1;min-width:200px}.hq-filters label input,.hq-filters label select{width:100%}.hq-result{display:inline-block;font-size:11px;background:#edf2ff;color:#3862dd;padding:4px 7px;border-radius:5px;white-space:nowrap}.hq-result.interested{background:#e8f6ef;color:#287d60}.hq-result.later{background:#fff5e6;color:#986621}.hq-result.none{background:#f0f2f7;color:#748199}.hq-table-wrap{width:100%;overflow:auto}.hq-table{width:100%;table-layout:fixed;border-collapse:collapse;font-size:12px}.hq-table th{font-weight:400;color:#7c8ca7;background:#f6f8fc;text-align:left}.hq-table th,.hq-table td{padding:13px 10px;vertical-align:top;white-space:normal!important;overflow-wrap:anywhere;border-bottom:1px solid #e8edf5}.hq-table p{margin:6px 0}.hq-table small{font-size:11px;color:#8190a8}.hq-original{font-size:12px;margin:0}.hq-original>div{display:grid;grid-template-columns:43px minmax(0,1fr);gap:5px;margin:0 0 8px}.hq-original dt{color:#7b8ba3}.hq-original dd{margin:0;white-space:normal;overflow-wrap:anywhere}.hq-note>span,.hq-muted{color:#7b8ba3;font-size:12px}.hq-note p{white-space:pre-wrap;overflow-wrap:anywhere}.hq-note small{color:#8493a9;font-size:11px}.hq-actions{display:flex;flex-wrap:wrap;gap:7px}.hq-actions button{padding:7px 10px;min-width:0;font-size:12px;white-space:normal}.hq-table .hq-actions{flex-direction:column}.hq-pushed{font-size:11px;color:#2b866a;overflow-wrap:anywhere}.hq-mobile-cards{display:none}.hq-card{padding:16px;background:#fff;border:1px solid #e4eaf4;border-radius:12px;margin-bottom:14px}.hq-card header{display:flex;justify-content:space-between;gap:12px}.hq-card h3{margin:0;font-size:16px}.hq-card .hq-phone{font-size:17px;margin:9px 0;color:#29405f}.hq-card .hq-original{padding:10px;background:#f5f7fc;border-radius:7px;margin:10px 0}.hq-card .hq-actions{margin-top:12px}.hq-pagination{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:18px;font-size:12px;color:#7b8ba3;flex-wrap:wrap}.hq-pagination>span{margin-right:auto}.hq-empty{text-align:center;padding:38px 14px;color:#7b8ba3}.hq-empty button{margin:15px}.hq-dialog{width:min(520px,calc(100vw - 30px));max-height:85vh;overflow:auto}.hq-dialog textarea{min-height:145px;resize:vertical;width:100%;box-sizing:border-box}.hq-dialog form{display:grid;gap:14px}.hq-dialog form label{display:grid;gap:7px}.hq-dialog .hq-checkbox{display:flex;gap:9px;align-items:center}.hq-checkbox input{width:auto}.hq-number{font-size:27px;font-weight:600;text-align:center}.hq-admin-dialog{width:min(1100px,calc(100vw - 30px));padding:24px}.hq-admin-dialog .hq-workspace{border:0;box-shadow:none;padding:0}.hq-history-item{padding:13px 0;border-bottom:1px solid #e4eaf4}.hq-history-item p{white-space:pre-wrap;overflow-wrap:anywhere}.hq-history-item small{color:#7b8ba3}.hq-import-form{display:flex;align-items:flex-end;flex-wrap:wrap;gap:14px;margin:16px 0}.hq-import-form label{flex:1;min-width:220px}.hq-import-destination{display:flex;flex-wrap:wrap;gap:10px;padding:16px;background:#eff5ff;border:1px solid #dce7f9;border-radius:9px;margin:15px 0}.hq-import-destination span{color:#627896;font-size:12px}
@media(max-width:700px){.hq-table{display:none}.hq-mobile-cards{display:block}.hq-import-form~div .hq-table,.cs-import-panel .hq-table{display:table;min-width:600px}.hq-workspace,.hq-admin-dialog{padding:14px}.hq-dialog .hq-heading{align-items:flex-start}.hq-filters{gap:9px}.hq-filters label{min-width:0;flex:1}.hq-filters .hq-search{flex-basis:100%}.hq-heading{flex-wrap:wrap}.hq-card .hq-actions button{flex:1}.hq-admin-dialog{max-height:90vh}}

.cs-management{padding:24px;margin-bottom:18px}.cs-management h2{margin:0 0 12px}.cs-management p{color:#72829c;line-height:1.6}.cs-management-head{display:flex;justify-content:space-between;gap:24px;align-items:flex-start}.cs-management-filters{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin:20px 0}.cs-management-filters label{min-width:140px;flex:1}.cs-management-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:20px}.cs-management-metrics article{padding:18px;border:1px solid #e4ebf8;border-radius:12px;background:#f8faff}.cs-management-metrics span{display:block;color:#72829c;margin-bottom:10px}.cs-management-metrics strong{font-size:24px;color:#244b9d}.cs-rate-dialog form{display:grid;gap:16px}.cs-import select[multiple],.hq-import-form select[multiple]{height:auto;min-height:120px}.hq-import-form{flex-wrap:wrap}.hq-import-form label{min-width:200px}.lead-building{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:220px}.detail-block .account-info strong,.detail-block textarea{overflow-wrap:anywhere;white-space:pre-wrap}@media(max-width:700px){.cs-management{padding:16px}.cs-management-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}

.detail-hero h2{overflow-wrap:anywhere;word-break:break-all}

/* Match the compact merchant and department console. */
#service-management-content{display:grid;gap:16px}.cs-management.panel{padding:20px 22px;margin:0;border-radius:14px;box-shadow:none}
.cs-management-head{align-items:center;gap:18px;margin:0 0 16px}.cs-management h2{font-size:16px;line-height:24px;font-weight:650;color:#203651;margin:0}.cs-management p{font-size:12px;line-height:20px;margin:5px 0 0;color:#7c8aa2}
.cs-management-filters{display:grid;grid-template-columns:repeat(4,minmax(130px,1fr)) auto auto auto;gap:12px;align-items:end;margin:0 0 18px;padding:15px 16px;background:#f7f9fd;border:1px solid #edf1f7;border-radius:10px}
.cs-management-filters label{display:grid;gap:7px;min-width:0;font-size:12px;color:#63728c;margin:0}.cs-management-filters input,.cs-management-filters select{height:36px;min-height:36px;padding:7px 11px;font-size:12px;border-radius:8px}.cs-management-filters button{height:36px;margin:0;padding:0 16px;white-space:nowrap;border-radius:8px}
.cs-management-metrics{grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin:0 0 20px}.cs-management-metrics article{padding:16px 18px;min-height:84px;background:#fff;border:1px solid #e5eaf3;border-radius:10px;display:flex;flex-direction:column;justify-content:center}.cs-management-metrics span{font-size:12px;line-height:18px;color:#8090a8;margin-bottom:9px}.cs-management-metrics strong{font-size:25px;line-height:30px;letter-spacing:-.5px;font-weight:650;color:#263b59}.cs-management-metrics article:last-child{background:#f0f5ff;border-color:#dce7ff}.cs-management-metrics article:last-child strong{color:#3264ec}
.cs-management .table-wrap{margin-top:18px;border:1px solid #edf1f7;border-radius:9px;overflow:auto}.cs-management .cs-management-metrics+.table-wrap{margin-top:0}.cs-management table{width:100%;table-layout:auto;font-size:12px}.cs-management th{height:40px;padding:10px 16px;background:#f6f8fc;color:#6f7f98;font-size:12px;font-weight:500;white-space:nowrap}.cs-management td{height:48px;padding:11px 16px;border-bottom:1px solid #edf1f7;white-space:nowrap;color:#415778}.cs-management tbody tr:last-child td{border-bottom:0}.cs-management tbody tr:hover{background:#fafcff}.cs-stat-table th:nth-child(n+3),.cs-stat-table td:nth-child(n+3){text-align:right}.cs-stat-table td:last-child{color:#2d579a;font-weight:600}.cs-rate-table th:last-child,.cs-rate-table td:last-child{text-align:right}.cs-rate-table button{padding:6px 14px;font-size:12px;border-radius:8px}
@media(max-width:1200px){.cs-management-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.cs-management-filters{grid-template-columns:repeat(4,minmax(110px,1fr))}.cs-management-filters button{justify-self:start}.cs-management-metrics article{padding:14px 16px}}
@media(max-width:700px){.cs-management.panel{padding:16px}.cs-management-filters{grid-template-columns:repeat(2,minmax(0,1fr));padding:12px;gap:10px}.cs-management-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.cs-management-metrics strong{font-size:23px}.cs-management-head{align-items:flex-start}.cs-management th,.cs-management td{padding:10px 12px}}

/* Administration: work progress, event-based settlement, and rate settings. */
#service-management-content{display:block;min-width:0}
#service-management-content .cs-console{padding:0;margin:0;border-radius:12px;min-width:0;overflow:hidden;box-shadow:none}
body:has(#tab-service-management:not([hidden])) .topbar [data-hq-open]{display:none}
.cs-console-head{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0;padding:20px 22px 16px}
.cs-console h2{margin:0;font-size:17px;line-height:26px;color:#233d60}
.cs-console h3{margin:0;font-size:14px;line-height:22px;color:#294365}
.cs-console p{margin:5px 0 0;font-size:12px;line-height:1.7;color:#8292a8}
.cs-console button{font-size:12px;min-height:32px;padding:5px 12px;border-radius:6px;box-shadow:none;white-space:nowrap}
.cs-console-actions,.cs-row-buttons,.cs-filter-buttons{display:flex;gap:8px;align-items:center}
.cs-console-tabs{display:flex;gap:24px;padding:0 22px;border-bottom:1px solid #e5ecf5}
.cs-console-tabs button{padding:11px 1px 13px;border:0;border-radius:0;background:transparent;border-bottom:2px solid transparent;color:#7b8da7;min-height:42px}
.cs-console-tabs button[aria-pressed=true]{color:#2863e8;border-bottom-color:#2863e8;font-weight:600}
.cs-console-body{padding:20px 22px;min-width:0}
.cs-console-section{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 14px}
.cs-flow-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 28px}
.cs-flow-metric{display:grid;gap:8px;align-content:start;padding:16px;border:1px solid #e6ecf5;border-radius:9px;background:#fbfcff}
.cs-flow-metric>span{font-size:12px;color:#70839f}.cs-flow-metric>strong{font-size:25px;line-height:30px;color:#2a456a;font-weight:650}
.cs-flow-metric>small{font-size:11px;line-height:1.6;color:#8a9ab0}.cs-flow-metric.warn>strong{color:#b37a38}.cs-flow-metric.done>strong{color:#2d826c}
.cs-flow-metric.amount{background:#f2f6ff;border-color:#dfe8fc}.cs-flow-metric.amount>strong{color:#3165e7}
.cs-report-metrics{grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:16px}
.cs-console-filters{display:grid;grid-template-columns:repeat(4,minmax(115px,1fr)) auto;gap:12px;align-items:end;padding:13px 14px;border:1px solid #e9eef6;border-radius:8px;background:#f8faff;margin:0 0 16px}
.cs-console-filters label{display:grid;gap:6px;margin:0;font-size:12px;color:#7488a5;min-width:0}
.cs-console-filters input,.cs-console-filters select{height:34px;min-height:34px;width:100%;min-width:0;padding:5px 9px;margin:0;font-size:12px;border-radius:6px;background:#fff}
.cs-console-table-wrap{max-width:100%;overflow:auto;border:1px solid #e8edf5;border-radius:8px}
.cs-console-table{width:100%;min-width:850px;border-collapse:collapse;font-size:12px;color:#526b8e}
.cs-console-table th,.cs-console-table td{padding:12px 13px;border-bottom:1px solid #edf1f7;text-align:left;vertical-align:middle}
.cs-console-table th{font-weight:500;background:#f5f8fd;color:#788dab;white-space:nowrap}
.cs-console-table tbody tr:last-child td{border-bottom:0}.cs-console-table tbody tr:hover{background:#fbfcff}
.cs-console-table small{display:block;margin-top:5px;font-size:11px;line-height:1.5;color:#91a0b6}
.cs-console-table .cs-number{font-size:16px;color:#2b7d67;font-variant-numeric:tabular-nums}.cs-nowrap{white-space:nowrap;font-variant-numeric:tabular-nums}
.cs-console-table .cs-filename{max-width:220px}.cs-filename>strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:220px;font-weight:500;color:#3a567a}
.cs-owners{max-width:150px;overflow-wrap:anywhere}.cs-progress-tags{display:flex;flex-wrap:wrap;gap:5px;min-width:90px;max-width:280px}
.cs-progress-tag{font-size:11px;white-space:nowrap;padding:3px 7px;border-radius:4px;color:#5a7cac;background:#f0f5fc}
.cs-progress-tag.waiting,.cs-progress-tag.ready,.cs-progress-tag.later{color:#a17b45;background:#fff7ea}.cs-progress-tag.delivered{color:#418774;background:#eef8f4}.cs-progress-tag.closed{color:#8895a7;background:#f2f4f7}
.cs-console-table .cs-warning,.cs-warning{color:#b36d49}.cs-subtle{font-size:12px;color:#91a0b6}
.cs-console-footer{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:13px 0 0;color:#8294ae;font-size:12px}.cs-console-footer>span{margin-right:auto}
.cs-console-empty{padding:34px 18px;text-align:center;color:#8a9ab1;font-size:12px}.cs-console-empty button{margin-top:12px}
.cs-report-note{display:grid;gap:6px;background:#f8faff;border-radius:8px;padding:13px 15px;margin-bottom:16px;font-size:12px;line-height:1.7;color:#778ba8}
.cs-report-note strong{font-size:12px;color:#546e93;font-weight:500}.cs-console .cs-unpriced{margin:0 0 16px;color:#aa7b3d}.cs-console .cs-settings-note{margin-top:14px}
@media(max-width:1250px){.cs-console-filters{grid-template-columns:repeat(4,minmax(0,1fr))}.cs-filter-buttons{grid-column:1/-1;justify-content:flex-end}.cs-flow-metrics{gap:9px}.cs-flow-metric{padding:13px}}
@media(max-width:700px){.cs-console-head{padding:16px 14px;align-items:flex-start;flex-direction:column}.cs-console-tabs{padding:0 14px;gap:22px}.cs-console-body{padding:16px 14px}.cs-console-actions{flex-wrap:wrap}.cs-flow-metrics{grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:22px}.cs-flow-metric>strong{font-size:23px}.cs-console-filters{grid-template-columns:repeat(2,minmax(0,1fr));padding:11px}.cs-report-metrics>article:last-child{grid-column:1/-1}.cs-console-section{align-items:flex-start}.cs-console-footer{flex-wrap:wrap}}

/* Compact management filters without a date range. */
.cs-console-filters.cs-console-filters-compact{grid-template-columns:minmax(150px,1fr) minmax(180px,1fr) auto}
.cs-console-filters-compact .cs-filter-buttons{grid-column:auto}
@media(max-width:700px){.cs-console-filters.cs-console-filters-compact{grid-template-columns:repeat(2,minmax(0,1fr))}.cs-console-filters-compact .cs-filter-buttons{grid-column:1/-1}}

/* Keep optional empty date fields visually blank; retain native calendar and keyboard editing. */
.cs-console-filters input[type=date].cs-date-empty::-webkit-datetime-edit{opacity:0}

/* Shared, explicit assignment choice for customer-service imports. */
.cs-owner-picker{padding:16px;background:#f8faff;border:1px solid #e6edf7;border-radius:9px;margin-bottom:18px;min-width:0}
.cs-owner-controls{display:grid;grid-template-columns:minmax(200px,260px) minmax(0,1fr);gap:18px;align-items:start}
.cs-owner-content{min-width:0}
.cs-import-panel .cs-owner-picker label{margin:0;min-width:0;display:grid;gap:7px;font-size:12px;color:#607797}
#tab-data .cs-import-panel .cs-owner-picker select,#tab-data .cs-import-panel .cs-owner-picker input[type=search]{width:100%;height:38px;min-height:38px;padding:0 10px;margin:0;border:1px solid #d8e2f2;border-radius:7px;background:#fff;font-size:12px}
.cs-owner-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:8px;font-size:12px;color:#58749a;min-height:20px}
.cs-owner-toolbar>div{display:flex;gap:12px}
.cs-import-panel .cs-owner-toolbar button{border:0;background:none;color:#3167d8;font-size:12px;min-height:20px;padding:0;box-shadow:none}
.cs-owner-options{display:grid;grid-template-columns:repeat(auto-fill,minmax(165px,1fr));gap:8px;max-height:228px;overflow:auto;margin-top:10px}
.cs-import-panel .cs-owner-picker .cs-owner-option{display:flex;align-items:center;gap:9px;padding:10px 12px;min-height:40px;background:#fff;border:1px solid #e0e7f1;border-radius:7px;color:#415b7f;cursor:pointer}
.cs-import-panel .cs-owner-picker .cs-owner-option.is-selected{border-color:#92b4fa;background:#eff5ff;color:#285fc8}
.cs-import-panel .cs-owner-picker .cs-owner-option input[type=checkbox]{width:16px;height:16px;min-height:16px;flex:0 0 16px;margin:0;accent-color:#326aee}
.cs-owner-option>span{min-width:0;overflow-wrap:anywhere}
.cs-owner-option>small{margin-left:auto;color:#5e80b4;font-size:11px}
.cs-owner-option:focus-within{outline:2px solid #9bbcff;outline-offset:1px}
.cs-owner-unassigned{padding:29px 0 0;color:#7b8da7;font-size:12px}
.cs-import-panel p.cs-owner-help,.cs-owner-no-match{font-size:12px;color:#8294ad;line-height:1.7;margin:9px 0 0}
.cs-owner-picker [hidden]{display:none!important}
.cs-import-grid.cs-import-upload-grid{grid-template-columns:minmax(240px,1fr) auto}
.hq-import-form.cs-owner-import{display:block}
.cs-owner-import .cs-owner-picker label{flex:none}
.hq-import-upload-grid{display:grid;grid-template-columns:minmax(200px,1fr) minmax(260px,2fr) auto;gap:16px;align-items:end}
.hq-import-upload-grid>label{display:grid;gap:7px;min-width:0;font-size:12px;color:#607797}
.hq-import-upload-grid input[type=file],.hq-import-upload-grid select{width:100%;min-width:0;height:38px;border:1px solid #d8e2f2;border-radius:7px;background:#fff;font-size:12px}
.hq-import-upload-grid input[type=file]{padding:0;line-height:36px}
.hq-import-upload-grid input[type=file]::file-selector-button{height:36px;border:0;border-right:1px solid #d8e2f2;padding:0 13px;margin-right:12px;background:#f4f8fe;color:#355a8c}
.hq-import-upload-grid>button{min-height:38px}
@media(max-width:900px){.cs-owner-controls{grid-template-columns:220px minmax(0,1fr)}.hq-import-upload-grid{grid-template-columns:1fr 1fr}.hq-import-upload-grid>button{grid-column:1/-1;justify-self:end}}
@media(max-width:600px){.cs-owner-picker{padding:12px}.cs-owner-controls,.cs-import-grid.cs-import-upload-grid,.hq-import-upload-grid{grid-template-columns:minmax(0,1fr);gap:14px}.cs-owner-unassigned{padding:0}.cs-owner-options{grid-template-columns:repeat(2,minmax(0,1fr))}.cs-owner-import .hq-import-upload-grid>label{min-width:0}}

/* Import subtabs fit their labels, like the parent navigation. */
.hq-workspace-tabs:has([data-import-mode]){display:inline-flex;width:max-content;max-width:100%;gap:4px;padding:4px;margin:0 0 14px;vertical-align:top;border-radius:9px}
.hq-workspace-tabs [data-import-mode]{flex:0 0 auto;min-height:32px;padding:6px 16px;font-size:12px;border-radius:6px;white-space:nowrap}

/* Keep form controls near their actions instead of stretching across the page. */
.cs-import-panel .cs-owner-picker{max-width:840px;padding:14px}
.cs-owner-controls{grid-template-columns:220px minmax(0,1fr);gap:16px}
.cs-owner-picker [data-owner-single-wrap]{max-width:320px}
.cs-owner-picker [data-owner-search]{max-width:320px}
.cs-owner-picker .cs-owner-options{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}
.cs-import-grid.cs-import-upload-grid{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end}
.cs-import-upload-grid>label{flex:0 1 420px;width:420px;max-width:100%}
.cs-import-upload-grid .cs-import-actions{flex:0 0 auto;grid-column:auto;justify-content:flex-start}
.hq-import-upload-grid{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end}
.hq-import-upload-grid>label{flex:0 1 240px;width:240px}
.hq-import-upload-grid>label:has(input[type=file]){flex-basis:420px;width:420px}
.hq-import-upload-grid>button{flex:0 0 auto}
.cs-console-filters,.cs-console-filters.cs-console-filters-compact{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px}
.cs-console-filters>label{flex:0 1 180px;width:180px}
.cs-console-filters>label:has(input[name=q]){flex-basis:240px;width:240px}
.cs-console-filters>.cs-filter-buttons{flex:0 0 auto;justify-content:flex-start;grid-column:auto}
@media(max-width:600px){
 .cs-owner-controls{grid-template-columns:minmax(0,1fr)}
 .cs-owner-picker [data-owner-single-wrap],.cs-owner-picker [data-owner-search]{max-width:100%}
 .cs-import-upload-grid>label,.hq-import-upload-grid>label,.hq-import-upload-grid>label:has(input[type=file]){flex:1 1 100%;width:100%;min-width:0}
 .cs-import-upload-grid .cs-import-actions{flex-wrap:wrap}
 .cs-console-filters>label{flex:1 1 130px;width:auto}
 .cs-console-filters>label:has(input[name=q]){flex:1 1 100%;width:auto}
}

#tab-data .cs-import-panel .cs-owner-picker .cs-owner-option{flex-direction:row}
.cs-owner-import .hq-import-upload-grid>label{margin:0;gap:8px}
.cs-owner-import .hq-import-upload-grid input,.cs-owner-import .hq-import-upload-grid select{margin:0}
.cs-owner-import .hq-import-upload-grid>button{height:38px;padding:0 15px;font-size:12px;margin:0}

/* Match the title/control baseline in every assignment mode, above studio form defaults. */
#tab-data .cs-import-panel .cs-owner-picker label:not(.cs-owner-option){display:flex;flex-direction:column;gap:6px;line-height:18px;margin:0}
#tab-data .cs-import-panel .cs-owner-toolbar{height:18px;min-height:18px;line-height:18px;margin:0 0 6px;align-items:center}
#tab-data .cs-import-panel .cs-owner-toolbar button{height:18px;min-height:18px;line-height:18px;margin:0;padding:0;border:0;border-radius:0}
#tab-data .cs-import-panel .cs-import-upload-grid>label,#tab-data .cs-import-panel .hq-import-upload-grid>label{display:flex;flex-direction:column;gap:8px;line-height:18px;margin:0}
#tab-data .cs-import-panel .hq-import-upload-grid select{height:38px;min-height:38px;padding:0 10px;margin:0;line-height:normal}
#tab-data .cs-import-panel .cs-import-upload-grid input[type=file],#tab-data .cs-import-panel .hq-import-upload-grid input[type=file]{height:38px;min-height:38px;padding:0;margin:0;line-height:36px;font:400 12px/36px Inter,"Segoe UI","PingFang SC","Microsoft YaHei",system-ui,sans-serif;box-sizing:border-box}
#tab-data .cs-import-panel input[type=file]::file-selector-button{height:36px;padding:0 13px;margin:0 12px 0 0;border:0;border-right:1px solid #d8e2f2;border-radius:0;font:inherit;line-height:36px;vertical-align:top;box-sizing:border-box}

.cs-personal-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}.cs-shared-import{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:14px 16px;margin:0 0 16px;background:#f7f9fd;border:1px solid #e5ecf6;border-radius:9px;color:#71839c}.cs-shared-import strong{color:#244269;font-size:19px}.cs-shared-import small{margin-left:auto}.cs-personal-note{margin-top:20px}.cs-personal-note span{display:block}.cs-personal-empty{padding:35px 15px;text-align:center;color:#8292a9}
.cs-personal-filters{grid-template-columns:repeat(3,minmax(115px,1fr)) auto}
@media(max-width:1250px){.cs-personal-filters .cs-filter-buttons{grid-column:1/-1}}
@media(max-width:900px){.cs-personal-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.cs-shared-import small{margin-left:0}.cs-personal-metrics>article:last-child{grid-column:auto}}
@media(max-width:700px){.cs-personal-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Staff workspaces use content-sized controls; administrator layouts stay separate. */
.cs-user #tab-leads,.cs-user #tab-service-settlement{max-width:1440px}
.cs-user .hq-workspace-tabs{display:inline-flex;width:max-content;max-width:100%;gap:4px;padding:4px;margin-bottom:14px}
.cs-user .hq-workspace-tabs button{flex:0 0 auto;padding:8px 22px;min-width:116px;min-height:36px;white-space:nowrap}
.cs-user .hq-heading{margin-bottom:16px}
.cs-user .hq-filter-tabs{gap:8px;margin-bottom:18px}
.cs-user .hq-filters{align-items:flex-end;gap:10px;margin-bottom:18px}
.cs-user .hq-filters label{display:flex;flex-direction:column;gap:7px;margin:0;flex:0 0 144px}
.cs-user .hq-filters .hq-search{flex:0 1 420px;min-width:220px}
.cs-user .hq-filters input,.cs-user .hq-filters select{height:36px;min-height:36px;margin:0;padding:7px 12px}
.cs-user .hq-filters>button{height:36px;min-height:36px;flex:none;padding:7px 18px;margin:0}
.cs-user .hq-workspace{padding:20px}
.cs-user .hq-actions button{flex:0 0 auto;width:auto;min-height:32px;min-width:0;padding:6px 10px;line-height:18px;white-space:nowrap;box-shadow:none}
.cs-user .cs-workspace .cs-list{grid-template-columns:repeat(auto-fill,minmax(min(100%,350px),1fr));align-items:stretch}
.cs-user .cs-workspace .cs-case .actions{display:flex;flex-wrap:wrap;margin-top:0;justify-content:flex-start}
.cs-user .cs-workspace .cs-case .actions button{flex:0 0 auto;width:auto;padding:6px 14px}
.cs-user .cs-personal-metrics{max-width:1120px}
.cs-commission-list{width:min(1180px,calc(100vw - 48px));max-width:calc(100vw - 48px);box-sizing:border-box}
.cs-commission-list .cs-console-table{min-width:0;table-layout:fixed}
.cs-commission-list .cs-console-table td{vertical-align:top;white-space:normal;overflow-wrap:anywhere}
.cs-commission-list .cs-console-table th,.cs-commission-list .cs-console-table td{padding:12px 10px;white-space:normal}
.cs-commission-list :is(th,td):nth-child(1){width:18%}.cs-commission-list :is(th,td):nth-child(2){width:21%}.cs-commission-list :is(th,td):nth-child(3){width:12%}.cs-commission-list :is(th,td):nth-child(4){width:36%}.cs-commission-list :is(th,td):nth-child(5){width:13%}
.cs-commission-list [data-reverse]{white-space:nowrap}
.cs-commission-dialog h2{margin:0;font-size:18px}.cs-commission-dialog p{line-height:1.7}
.cs-commission-dialog textarea{width:100%;min-height:100px;resize:vertical}
.cs-commission-filter label{width:170px;margin:0 0 16px;gap:6px}
@media(max-width:1100px){.cs-user .hq-table col:nth-child(4){width:170px!important}.cs-user .hq-table col:nth-child(3){width:180px!important}.cs-user .cs-workspace .cs-search-field{max-width:420px}}
@media(max-width:700px){.cs-user .hq-filters .hq-search{flex:1 1 240px;min-width:0}.cs-user .hq-filters label{flex-basis:140px}.cs-user .hq-workspace{padding:14px}.cs-user .cs-workspace .cs-list{grid-template-columns:minmax(0,1fr)}.cs-user .hq-card .hq-actions button{flex:0 0 auto}}
/* Both staff lead types share the same bounded card grid and action sizing. */
.cs-user .hq-workspace .hq-heading{margin-bottom:0}
.cs-user .hq-workspace .hq-filter-tabs{margin-bottom:0}
.cs-user .hq-workspace .hq-filters{padding:14px 20px;margin-bottom:0;background:#fbfcff;border-bottom:1px solid #eaf0f7}
.cs-user .hq-workspace .hq-pagination{margin:0;padding:11px 20px;border-top:1px solid #eaf0f7}
.cs-user .hq-workspace .hq-pagination button{min-height:29px;height:29px;padding:4px 10px;font-size:12px}
.cs-user .cs-workspace .cs-case{margin:0;line-height:1.65;width:100%;max-width:400px}
.cs-user .cs-workspace .cs-case .actions{gap:8px;margin-top:2px;padding-top:14px;width:100%;border-top:1px solid #edf1f7}
.cs-user .cs-workspace .cs-case .actions button{font-size:12px;min-height:32px;height:auto;padding:6px 12px;border-radius:6px;line-height:18px;white-space:nowrap}
.cs-user .cs-workspace [data-hq-action=dial]{background:#edf3ff;border-color:#dce7fc;color:#3568bf}
.cs-user .cs-workspace [data-hq-action=transfer]{background:#2b64e9;border-color:#2b64e9;color:#fff}
.cs-user .hq-staff-card .cs-reason{font-size:12px;padding:10px}.cs-user .hq-staff-card .cs-reason p{margin:4px 0;white-space:pre-wrap}.cs-user .hq-staff-card .cs-reason small{color:#8190a8}
.cs-user .cs-case-fields{margin-bottom:12px}
.cs-user .cs-case-note{white-space:pre-wrap}
@media(max-width:700px){.cs-user .hq-workspace .hq-filters{padding:12px 14px}.cs-user .hq-workspace .hq-pagination{padding:10px 14px}}

/* Headquarters type and batch selectors share one compact row. */
#tab-leads .cs-admin-selection{display:flex;align-items:center;flex-wrap:wrap;gap:10px 18px;min-width:0;max-width:100%}
#tab-leads .cs-admin-tools select[name=case_kind]{width:150px;flex:none}
#tab-leads .cs-admin-tools select[name=batch_id]{width:320px;flex:1;min-width:0}
@media(max-width:680px){#tab-leads .cs-admin-selection{width:100%;gap:10px}#tab-leads .cs-admin-selection .cs-admin-filter{flex:1 1 100%;justify-content:space-between}#tab-leads .cs-admin-tools select[name=case_kind],#tab-leads .cs-admin-tools select[name=batch_id]{width:auto;flex:1}}

@media(max-width:800px){
 .cs-commission-list{width:calc(100vw - 24px);max-width:calc(100vw - 24px);padding:20px 16px}
 .cs-commission-list .cs-console-table thead{display:none}
 .cs-commission-list .cs-console-table tbody{display:block}
 .cs-commission-list .cs-console-table tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);padding:12px;gap:12px;border-bottom:1px solid #e8edf5}
 .cs-commission-list .cs-console-table td{display:block;width:auto;padding:0;border:0;min-width:0}
 .cs-commission-list .cs-console-table td:nth-child(4){grid-column:1/-1}
 .cs-commission-list .cs-console-table td:last-child{grid-column:1/-1}
 .cs-commission-list .cs-console-table td::before{display:block;color:#788dab;font-size:11px;margin-bottom:6px}
 .cs-commission-list td:nth-child(1)::before{content:'原流转时间 / 客服'}
 .cs-commission-list td:nth-child(2)::before{content:'客资 / 商户'}
 .cs-commission-list td:nth-child(3)::before{content:'原计件'}
 .cs-commission-list td:nth-child(4)::before{content:'状态 / 撤销记录'}
 .cs-commission-list td:last-child::before{content:'操作'}
}

/* Administrator manual transfer queue. */
dialog.cs-internal-dialog.cs-manual-dialog{width:min(1480px,calc(100vw - 48px));max-width:1480px;max-height:90vh;padding:24px;overflow:auto}
.cs-manual-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:16px}.cs-manual-heading h2{margin:0 0 8px;font-size:18px}.cs-manual-heading p{margin:0;color:#71819a;font-size:12px}
.cs-manual-tabs{display:flex;gap:8px;margin:0 0 16px}.cs-manual-filters{display:flex;gap:12px;align-items:flex-end;flex-wrap:wrap;margin-bottom:18px}.cs-manual-filters label{display:grid;gap:6px;margin:0;font-size:12px;color:#63758b}.cs-manual-filters select{width:220px}.cs-manual-filters input{width:260px}.cs-manual-filters input,.cs-manual-filters select{height:36px;margin:0}.cs-manual-filters>button{height:36px;margin:0}
.cs-manual-table-wrap{overflow:auto;border:1px solid #e0e7f3;border-radius:8px}.cs-manual-table{width:100%;min-width:1080px;table-layout:fixed;border-collapse:collapse;font-size:12px}.cs-manual-table th,.cs-manual-table td{padding:12px;text-align:left;vertical-align:top;border-bottom:1px solid #e6edf7;overflow-wrap:anywhere;white-space:normal}.cs-manual-table th{background:#f5f8fe;color:#6b7d96;font-weight:500}.cs-manual-table p{margin:7px 0;line-height:1.6}.cs-manual-table small{color:#8291a7;line-height:1.5}.cs-manual-table th:nth-child(1){width:17%}.cs-manual-table th:nth-child(2){width:16%}.cs-manual-table th:nth-child(3){width:13%}.cs-manual-table th:nth-child(4){width:25%}.cs-manual-table th:nth-child(5){width:16%}.cs-manual-table th:nth-child(6){width:13%}.cs-manual-actions{display:flex;flex-wrap:wrap;gap:7px}.cs-manual-actions button{width:auto;min-height:32px;white-space:nowrap;margin:0;padding:6px 10px;font-size:12px}.cs-manual-pagination{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:16px;font-size:12px;color:#8291a7}.cs-manual-pagination>div{display:flex;gap:8px}
.cs-demand-dialog{width:min(620px,calc(100vw - 32px));max-height:90vh;overflow:auto}.cs-demand-dialog form{display:grid;gap:14px}.cs-demand-dialog label{display:grid;gap:6px}.cs-demand-dialog textarea{min-height:110px;width:100%;box-sizing:border-box;resize:vertical}.cs-demand-dialog .hq-history-item p{white-space:pre-wrap;overflow-wrap:anywhere}.cs-demand-dialog h3{margin-top:24px}.cs-manual-actions{flex-wrap:wrap}

.cs-gift-badge{display:block;color:#697a92;font-size:11px;margin-top:4px}.cs-gift-dialog{width:520px;max-width:calc(100vw - 32px)}.cs-gift-dialog>label{display:grid;gap:8px}.cs-gift-dialog p{line-height:1.7}.cs-gift-dialog .muted{font-size:12px;color:#697a92}.cs-gift-results{max-height:220px;overflow:auto;border-top:1px solid #e5eaf2}.cs-gift-results p{margin:8px 0;font-size:12px}

/* Gift controls must remain readable without browser zoom. */
dialog.cs-internal-dialog.cs-gift-dialog{width:600px;max-width:calc(100vw - 32px);max-height:90vh;overflow:auto;padding:28px;font-size:16px;color:#263b56}
dialog.cs-internal-dialog.cs-gift-dialog h2{font-size:24px;line-height:1.4;margin-bottom:20px}
dialog.cs-internal-dialog.cs-gift-dialog>label{font-size:16px;line-height:1.5;color:#334963;gap:10px}
dialog.cs-internal-dialog.cs-gift-dialog p{font-size:16px;line-height:1.75;color:#334963}
dialog.cs-internal-dialog.cs-gift-dialog .muted{font-size:15px;color:#4b5e78}
dialog.cs-internal-dialog.cs-gift-dialog select{font-size:16px;min-height:48px;color:#263b56}
dialog.cs-internal-dialog.cs-gift-dialog .cs-gift-results p{font-size:16px}
dialog.cs-internal-dialog.cs-gift-dialog .actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:12px;margin-top:24px}
dialog.cs-internal-dialog.cs-gift-dialog .actions button{font-size:18px;font-weight:600;line-height:1.4;min-width:108px;min-height:48px;height:auto;padding:10px 22px;white-space:normal}
dialog.cs-internal-dialog.cs-gift-dialog .actions button:not(.primary){color:#334963;border-color:#aebbd0}
#tab-leads .cs-admin-actions [data-cs-gift-count]{font-size:14px;color:#334963}
@media(max-width:480px){dialog.cs-internal-dialog.cs-gift-dialog{padding:22px 20px}dialog.cs-internal-dialog.cs-gift-dialog .actions button{flex:1;min-width:0;padding:10px 12px}}

/* Compact staff cards: the result occupies the same space as the four actions. */
.cs-user #tab-leads{max-width:none}
.cs-user .hq-workspace-tabs button{font-size:14px;min-height:36px;padding:7px 20px}
.cs-user .cs-workspace-head{padding:14px 18px 10px}
.cs-user .cs-workspace-head h2{font-size:16px}
.cs-user .cs-workspace-head p{font-size:12px;color:#62738a}
.cs-user .cs-workspace-head button{font-size:13px;min-height:32px;padding:5px 12px}
.cs-user .cs-state-tabs{gap:4px;padding:0 18px 10px}
.cs-user .cs-state-tabs button{font-size:13px;min-height:32px;padding:6px 12px;color:#536782}
.cs-user .cs-state-tabs button.active{color:#245edf}
.cs-user .cs-workspace .cs-filters,.cs-user .hq-workspace .hq-filters{padding:12px 18px;gap:10px}
.cs-user .cs-workspace .cs-search-field{height:34px}
.cs-user .cs-workspace .cs-search-field input{font-size:13px;height:30px}
.cs-user .cs-workspace .cs-filters select,.cs-user .hq-workspace .hq-filters input,.cs-user .hq-workspace .hq-filters select{font-size:13px;height:34px;min-height:34px}
.cs-user .hq-filters label{font-size:12px;color:#536782}
.cs-user .cs-filter-actions button,.cs-user .hq-filters>button{font-size:13px;height:34px;min-height:34px;padding:5px 16px}
.cs-user .cs-workspace-body{padding:14px 18px;background:#f5f7fb}
.cs-user .cs-workspace .cs-list{gap:12px;grid-template-columns:repeat(auto-fill,minmax(min(100%,320px),1fr));align-items:stretch}
.cs-user .cs-workspace .cs-staff-case{padding:14px;margin:0;max-width:none;height:100%;min-width:0;box-sizing:border-box;border:1px solid #dfe6f0;border-radius:9px;background:#fff}
.cs-user .cs-staff-case .cs-case-title{min-height:22px;gap:8px}
.cs-user .cs-staff-case .cs-case-title h3{font-size:15px;line-height:22px;font-weight:650;color:#203651;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}
.cs-user .cs-staff-case .tag{font-size:12px;line-height:18px;padding:2px 6px;white-space:nowrap}
.cs-user .cs-staff-case[data-cs-status=closed] .tag{color:#5d6b7e}
.cs-user .cs-staff-case[data-cs-status=delivered] .tag,.cs-user .cs-staff-case[data-cs-status=processed] .tag{color:#22745c;background:#eaf6f0}
.cs-user .cs-staff-case .cs-case-region{height:23px;width:100%;overflow:hidden;margin-top:6px}
.cs-user .cs-staff-case .cs-region{font-size:12px;line-height:17px;padding:2px 7px;margin:0;overflow:hidden;text-overflow:ellipsis;display:inline-block;max-width:100%;box-sizing:border-box}
.cs-user .cs-workspace .cs-staff-case .cs-phone{font-size:20px;line-height:26px;letter-spacing:.02em;font-variant-numeric:tabular-nums;margin:6px 0 10px;color:#244b77}
.cs-user .cs-staff-case .cs-case-fields{font-size:13px;line-height:20px;gap:3px;margin:0 0 10px}
.cs-user .cs-staff-case .cs-case-fields>div{grid-template-columns:56px minmax(0,1fr);gap:8px}
.cs-user .cs-staff-case .cs-case-fields dt{color:#62738a}
.cs-user .cs-staff-case .cs-case-fields dd{color:#334b68;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cs-user .cs-staff-case .cs-case-summary{width:100%;height:52px;padding:6px 9px;box-sizing:border-box;background:#f4f7fb;border-radius:6px;overflow:hidden}
.cs-user .cs-case-summary>span{font-size:12px;line-height:17px;color:#62738a}
.cs-user .cs-staff-case .cs-case-summary>p{font-size:13px;line-height:20px;margin:2px 0 0;color:#334b68;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}
.cs-user .cs-staff-case .cs-case-contact{width:100%;font-size:12px;line-height:18px;height:18px;margin:6px 0;color:#62738a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cs-user .cs-staff-case .cs-case-footer{width:100%;margin-top:auto;padding-top:4px;border-top:1px solid #e7ecf4}
.cs-user .cs-case-links{display:flex;justify-content:space-between;gap:8px;margin-bottom:4px}
.cs-user .cs-case-links button{font-size:13px;line-height:20px;min-height:28px;padding:4px 0;border:0;background:transparent;box-shadow:none;color:#3863a3}
.cs-user .cs-case-links button:hover{color:#245edf;text-decoration:underline}
.cs-user .cs-workspace .cs-staff-case .cs-case-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;width:100%;margin:0;padding:0;border:0}
.cs-user .cs-workspace .cs-staff-case .cs-case-actions button{width:100%;min-width:0;min-height:34px;height:34px;font-size:14px;line-height:20px;padding:6px 8px;border-radius:6px;white-space:nowrap;box-shadow:none}
.cs-user .cs-case-outcome{height:74px;box-sizing:border-box;display:flex;flex-direction:column;justify-content:center;gap:3px;padding:10px 12px;background:#f4f6fa;border:1px solid #e6ebf2;border-radius:6px}
.cs-user .cs-case-outcome strong{font-size:14px;line-height:20px;color:#465870}
.cs-user .cs-case-outcome span{font-size:12px;line-height:18px;color:#62738a}
.cs-user .cs-staff-case[data-cs-status=waiting] .cs-case-outcome{background:#fff8ec;border-color:#f3e4c8}
.cs-user .cs-staff-case[data-cs-status=delivered] .cs-case-outcome,.cs-user .cs-staff-case[data-cs-status=processed] .cs-case-outcome{background:#eef8f3;border-color:#d9ebdf}
.cs-user .cs-workspace .cs-footer,.cs-user .hq-workspace .hq-pagination{font-size:12px;padding:10px 18px}
.cs-user .cs-workspace .cs-footer button,.cs-user .hq-workspace .hq-pagination button{font-size:13px;min-height:32px;height:auto;padding:5px 12px}
.cs-user .cs-internal-dialog{font-size:14px;line-height:1.65;width:min(600px,calc(100vw - 32px));box-sizing:border-box}
.cs-user .cs-internal-dialog h2{font-size:18px;margin:0}
.cs-user .cs-internal-dialog h3{font-size:15px}
.cs-user .cs-internal-dialog button,.cs-user .cs-internal-dialog input,.cs-user .cs-internal-dialog select,.cs-user .cs-internal-dialog textarea{font-size:14px;min-height:36px}
.cs-user .cs-internal-dialog button{padding:6px 12px}
.cs-user .cs-internal-dialog textarea{min-height:130px}
.cs-user .cs-internal-dialog small{font-size:12px}
.cs-user .cs-internal-dialog .hq-original,.cs-user .cs-internal-dialog .hq-muted{font-size:14px}
.cs-user .cs-internal-dialog .hq-original>div{grid-template-columns:110px minmax(0,1fr)}
.cs-detail-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.cs-detail-fields{display:grid;gap:8px}
.cs-detail-fields>div{display:grid;grid-template-columns:85px minmax(0,1fr);gap:16px}
.cs-detail-fields dt{color:#62738a}.cs-detail-fields dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;color:#263b56}
.cs-user .cs-workspace button:focus-visible{outline:3px solid #91b8ff;outline-offset:2px}
.cs-user .cs-staff-workspace .cs-filters [name=pc_status]{min-width:114px;flex-basis:138px}
.cs-user .cs-staff-workspace .cs-case-actions button:only-child{grid-column:1/-1}
.cs-user dialog.cs-staff-detail{
 width:min(460px,100vw);height:100dvh;max-width:100vw;max-height:100dvh;
 position:fixed;inset:0 0 0 auto;margin:0;border-radius:0;overflow:auto
}
@media(min-width:1270px){
 .cs-user .cs-staff-workspace .cs-list{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(max-width:700px){
 .cs-user .cs-workspace-head,.cs-user .cs-workspace .cs-filters,.cs-user .hq-workspace .hq-filters,.cs-user .cs-workspace-body{padding:16px}
 .cs-user .cs-state-tabs{padding:0 16px 14px}
 .cs-user .cs-workspace .cs-list{grid-template-columns:minmax(0,1fr)}
 .cs-user .cs-workspace .cs-staff-case{padding:14px}
 .cs-user .cs-staff-case .cs-case-title h3{font-size:15px}
 .cs-user .cs-internal-dialog{padding:20px}
 .cs-user .cs-internal-dialog .hq-original>div{grid-template-columns:80px minmax(0,1fr)}
}

.cs-status-summary{margin:0 0 18px}.cs-status-summary .cs-console-table{min-width:540px;table-layout:fixed}.cs-status-summary th,.cs-status-summary td{text-align:center;font-size:14px}.cs-status-summary tbody th{text-align:left;color:#53657c;font-size:14px}.cs-status-summary .cs-status-number{border:0;background:transparent;color:#2563eb;font-size:17px;font-weight:650;padding:7px 15px;min-width:44px}.cs-status-number:hover{background:#eef4ff;border-radius:6px}.cs-status-date{display:flex;align-items:center;gap:9px;margin:0;color:#62758b;font-size:12px;white-space:nowrap}.cs-status-date input{max-width:150px;height:32px;margin:0;padding:4px 8px}.cs-progress-dialog{width:min(920px,94vw)}

.cs-import-panel label.cs-import-purchase-confirm,#tab-data .cs-import-panel label.cs-import-purchase-confirm{display:flex;flex-direction:row;align-items:flex-start;gap:8px;margin:12px 0 16px;color:#536b8b;font-size:12px;line-height:20px;cursor:pointer}
.cs-import-panel .cs-import-purchase-confirm input[type=checkbox]{width:16px;height:16px;min-height:16px;flex:0 0 16px;margin:2px 0 0;padding:0;accent-color:#326aee}

/* Contact activity is independent of verification and delivery. */
.cs-contact-summary{margin-bottom:22px;padding:14px;background:#f7faff;border:1px solid #e3ebf7;border-radius:8px}.cs-contact-summary h3{margin:0 0 7px}.cs-contact-progress{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.cs-contact-progress button{font-size:12px;padding:5px 8px;line-height:1.5;white-space:normal;text-align:left}.cs-contact-progress strong{margin-left:4px;color:#2863f0}.cs-progress-dialog td small{display:block;max-width:220px;overflow-wrap:anywhere;color:#8796aa}

.cs-contact-inline{display:block;max-width:230px;margin-top:5px;color:#7185a0;font-size:11px;white-space:normal;line-height:1.5}

/* Compact batch progress and daily CSR work. Evidence stays in dialogs. */
.cs-simple-progress td,.cs-simple-daily td{font-size:14px}.cs-simple-progress th,.cs-simple-daily th{font-size:13px}
.cs-simple-progress .cs-filename{width:auto;max-width:460px}.cs-simple-progress .cs-filename strong{max-width:440px}.cs-simple-progress td{height:54px;vertical-align:middle}.cs-count-link{border:0;background:transparent;color:#285eea;padding:6px 10px;min-width:36px;font:inherit;font-weight:600;cursor:pointer}.cs-count-link:disabled{color:#94a3b8;cursor:default;background:transparent}.cs-count-link.followed{color:#16806b}.cs-count-link.untouched:not(:disabled){color:#ca7c17}.cs-work-metrics .cs-count-link{font-size:26px;padding:0}.cs-work-metrics small:empty{display:none}.cs-simple-daily td{height:48px}.cs-work-explanation{margin-top:20px}.cs-work-explanation summary{cursor:pointer}.cs-work-explanation p{line-height:1.7}.cs-detail-building{max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cs-batch-description{color:#64748b;margin-bottom:14px}.cs-progress-dialog [data-results]{margin-top:18px}

/* Headquarters list: retain every column and keep actions inside the viewport. */
@media(min-width:761px){
 #tab-leads #lead-table.cs-admin-table{width:100%;min-width:0;table-layout:fixed}
 #tab-leads #lead-table.cs-admin-table th,#tab-leads #lead-table.cs-admin-table td{box-sizing:border-box;min-width:0;max-width:none;padding:6px 5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;overflow-wrap:normal;vertical-align:middle}
 #tab-leads #lead-table.cs-admin-table td{height:44px}
 #tab-leads #lead-table.cs-admin-table th:first-child,#tab-leads #lead-table.cs-admin-table td:first-child{padding-left:3px;padding-right:3px}
 #tab-leads #lead-table.cs-admin-table .lead-time,#tab-leads #lead-table.cs-admin-table td:nth-child(11){white-space:normal;line-height:1.35}
 #tab-leads #lead-table.cs-admin-table td.cs-note{max-width:120px}
 #tab-leads #lead-table.cs-admin-table .status{font-size:11px;padding:3px 4px;gap:3px}
 #tab-leads #lead-table.cs-admin-table td:last-child .link{padding:4px 3px;white-space:nowrap}
 #tab-leads #lead-table.cs-admin-table th:nth-child(1),#tab-leads #lead-table.cs-admin-table td:nth-child(1){width:22px}
 #tab-leads #lead-table.cs-admin-table th:nth-child(2),#tab-leads #lead-table.cs-admin-table td:nth-child(2){width:calc(9% - 16.02px)}
 #tab-leads #lead-table.cs-admin-table th:nth-child(3),#tab-leads #lead-table.cs-admin-table td:nth-child(3){width:calc(8% - 14.24px)}
 #tab-leads #lead-table.cs-admin-table th:nth-child(4),#tab-leads #lead-table.cs-admin-table td:nth-child(4){width:calc(7.5% - 13.35px)}
 #tab-leads #lead-table.cs-admin-table th:nth-child(5),#tab-leads #lead-table.cs-admin-table td:nth-child(5){width:calc(7.5% - 13.35px)}
 #tab-leads #lead-table.cs-admin-table th:nth-child(6),#tab-leads #lead-table.cs-admin-table td:nth-child(6){width:calc(15% - 26.7px)}
 #tab-leads #lead-table.cs-admin-table th:nth-child(7),#tab-leads #lead-table.cs-admin-table td:nth-child(7){width:calc(5% - 8.9px)}
 #tab-leads #lead-table.cs-admin-table th:nth-child(8),#tab-leads #lead-table.cs-admin-table td:nth-child(8){width:100px}
 #tab-leads #lead-table.cs-admin-table th:nth-child(9),#tab-leads #lead-table.cs-admin-table td:nth-child(9){width:calc(7% - 12.46px)}
 #tab-leads #lead-table.cs-admin-table th:nth-child(10),#tab-leads #lead-table.cs-admin-table td:nth-child(10){width:calc(8% - 14.24px)}
 #tab-leads #lead-table.cs-admin-table th:nth-child(11),#tab-leads #lead-table.cs-admin-table td:nth-child(11){width:calc(9% - 16.02px)}
 #tab-leads #lead-table.cs-admin-table th:nth-child(12),#tab-leads #lead-table.cs-admin-table td:nth-child(12){width:calc(7% - 12.46px)}
 #tab-leads #lead-table.cs-admin-table th:nth-child(13),#tab-leads #lead-table.cs-admin-table td:nth-child(13){width:calc(9% - 16.02px)}
 #tab-leads #lead-table.cs-admin-table th:nth-child(14),#tab-leads #lead-table.cs-admin-table td:nth-child(14){width:calc(8% - 14.24px)}
 #tab-leads #lead-table.cs-admin-table th:nth-child(15),#tab-leads #lead-table.cs-admin-table td:nth-child(15){width:56px}
}

.cs-batch-count-rule{font-size:12px;color:#7b8ba3;margin:0 0 12px;line-height:1.6}
.cs-simple-progress{table-layout:fixed;min-width:0;width:100%}
.cs-simple-progress th:first-child{width:12%}.cs-simple-progress th:nth-child(2){width:30%}
.cs-simple-progress th:nth-child(n+3){width:7.25%}.cs-simple-progress .cs-filename{min-width:0;max-width:none}.cs-simple-progress .cs-filename strong{max-width:100%}
.cs-simple-progress th,.cs-simple-progress td{padding:8px 6px;white-space:nowrap}.cs-simple-progress .cs-count-link{min-width:0;padding:6px}
