:root{
  --ink:#3A3F4A;
  --ink-strong:#15181E;
  --muted:#6f7684;
  --muted-strong:#3A3F4A;
  --line:#E8E9EF;
  --line-strong:#c8cedb;
  --paper:#FFFFFF;
  --canvas:#FAFBFC;
  --canvas-deep:#EEF2FB;
  --green:#002FA7;
  --green-strong:#001B6B;
  --green2:#002FA7;
  --green-soft:#EEF2FB;
  --yellow-label:#F3F5F8;
  --shadow-sm:none;
  --radius-sm:4px;
  --radius-md:6px;
  --radius-lg:8px;
}

body{
  color:var(--ink);
  background:var(--canvas);
  letter-spacing:0;
}

header{
  border-bottom:1px solid var(--line);
  box-shadow:none;
}

.secondary-group[data-module-panel="scene"] .secondary-title,
.secondary-group[data-module-panel="data"] .secondary-title{
  display:none;
}

.secondary-group[data-module-panel="scene"],
.secondary-group[data-module-panel="data"]{
  padding:7px 0 12px;
}

.secondary-group[data-module-panel="scene"] .nav-section-body,
.secondary-group[data-module-panel="data"] .nav-section-body{
  display:grid;
  gap:0;
  margin:0 0 7px;
  padding:0;
}

.nav-section-title,
.nav-section-title.role-label,
.nav-section-title.data-table-label{
  display:flex;
  align-items:center;
  justify-content:space-between;
  width:100%;
  min-width:0;
  min-height:30px;
  height:30px;
  margin:6px 0 4px;
  padding:0 8px;
  border:1px solid #c8cedb;
  border-radius:4px;
  background:#F3F5F8;
  color:#15181E;
  font-size:12px;
  font-weight:700;
  line-height:30px;
  letter-spacing:0;
  box-shadow:none;
}

.secondary-group[data-module-panel="scene"] .nav-child,
.secondary-group[data-module-panel="data"] .nav-child{
  position:relative;
  min-height:30px;
  padding:6px 8px;
  border:0;
  border-radius:0;
  background:transparent;
  color:#15181E;
  font-size:14px;
  font-weight:500;
  line-height:18px;
  box-shadow:none;
}

.secondary-group[data-module-panel="data"] .nav-child::before{
  display:none;
}

.secondary-group[data-module-panel="scene"] .nav-child:hover,
.secondary-group[data-module-panel="data"] .nav-child:hover,
.secondary-group[data-module-panel="scene"] .nav-child.active,
.secondary-group[data-module-panel="data"] .nav-child.active{
  background:transparent;
  color:#002FA7;
  box-shadow:none;
  font-weight:600;
}

.primary-nav:hover{
  background:#EEF2FB;
  color:#001B6B;
}

.primary-nav.active,
.primary-action,
.insurance-scene-tabs button.active,
.claim-detail-rail button.active span,
.approval-flow-node.current>span,
.workflow-step.active{
  background:#002FA7!important;
  border-color:#002FA7!important;
  color:#FFFFFF!important;
}

.tabs button.active,
.coverage-tab.active,
.continuous-create-tabs button.active,
.scope-all,
.metric strong,
.batch-count,
.template-download,
.drill,
.count-link,
.product-text-link,
.product-count-link{
  color:#002FA7!important;
}

.tabs button.active,
.coverage-tab.active,
.continuous-create-tabs button.active{
  border-bottom-color:#002FA7!important;
}

.action,
.toolbar button,
.pager button,
.row-actions button,
.download-file,
.muted-button{
  border:1px solid var(--line-strong);
  border-radius:4px;
  background:#FFFFFF;
  color:#15181E;
  box-shadow:none;
}

.action:hover,
.toolbar button:hover,
.pager button:hover,
.row-actions button:hover,
.download-file:hover,
.muted-button:hover{
  border-color:#002FA7;
  background:#EEF2FB;
  color:#002FA7;
}

input,
select,
textarea{
  border-color:var(--line-strong);
  border-radius:4px;
  background:#FFFFFF;
}

input:focus,
select:focus,
textarea:focus{
  border-color:#002FA7;
  box-shadow:0 0 0 3px #002fa714;
}

.table-wrap{
  border:1px solid var(--line-strong);
  border-radius:0;
  background:#FFFFFF;
  box-shadow:none;
}

table{
  border-collapse:collapse;
}

th,
td{
  border:1px solid var(--line);
}

th{
  background:#F3F5F8;
  color:#7a8494;
  font-weight:700;
}

tbody tr:hover{
  background:#EEF2FB;
}

.tag,
.agent-status,
.connector-log-status{
  border-radius:4px;
  background:#EEF2FB;
  color:#002FA7;
}

.panel,
.metric,
.architecture-item,
.workflow-dialog-body,
.approval-template-card,
.claim-followup-aside,
.claim-detail-rail{
  border-color:var(--line);
  border-radius:6px;
  box-shadow:none;
}

/* ===== 统一治理 v2：模块偏差修正（Klein Blue #002FA7 体系） ===== */

/* 表头全站统一 */
main th{
  background:#F3F5F8!important;
  color:#7a8494!important;
  font-weight:700;
}

/* 参保派单 / 保险档案（dispatch.css、workflows.css 偏差） */
.insurance-record-table td{color:var(--ink)}
.mini-action{border-color:var(--line-strong);color:#15181E}
.mini-action:hover{border-color:#002FA7;background:#EEF2FB;color:#002FA7}
.insurance-main-actions .action:hover,
.insurance-main-actions .action.active,
.insurance-main-actions .action.primary-action:hover{
  border-color:#002FA7;
  background:#EEF2FB;
  color:#002FA7;
}
.insurance-record-table input[type=checkbox],
.insurance-archive-table input[type=checkbox]{accent-color:#002FA7}
.step-index{background:#EEF2FB;color:#002FA7}
.insurance-chip.ok{border-color:#c8cedb;background:#EEF2FB;color:#002FA7}
.insurance-stat-tab.active{background:#EEF2FB}
.insurance-scene-tabs button:hover{background:#EEF2FB}
.insurance-archive-toolbar input,
.insurance-archive-toolbar select{border:1px solid var(--line-strong);background:#fff;color:var(--ink)}
.insurance-archive-toolbar button{border:1px solid var(--line-strong);border-left:0;background:#fff}
.insurance-archive-stats button{border:1px solid var(--line-strong);background:#fff;color:#15181E}
.insurance-archive-stats button.active{background:#EEF2FB;box-shadow:inset 0 -3px #002FA7;color:#002FA7}
.insurance-archive-pager span{color:var(--muted)}
.insurance-archive-table{border:1px solid var(--line-strong)}
.insurance-archive-table th,
.insurance-archive-table td{border:1px solid var(--line)}
.insurance-archive-table td{color:var(--ink)}
.insurance-archive-table .action{border-color:var(--line-strong);color:#15181E}
.insurance-archive-table .action:hover{border-color:#002FA7;color:#002FA7;background:#EEF2FB}

/* 产品目录 / 供应商目录 / 连续劳务工单（information-architecture.css 偏差） */
.product-catalog-actions .action,
.supplier-actions .action{border:1px solid var(--line-strong);border-radius:4px;background:#fff;color:#15181E;font-weight:500}
.product-catalog-actions .action:hover,
.supplier-actions .action:hover{border-color:#002FA7;background:#EEF2FB;color:#002FA7}
.product-search input,
.supplier-search input{border:1px solid var(--line-strong);border-right:0}
.product-search button,
.supplier-search button{border:1px solid var(--line-strong)}
.product-catalog-actions select,
.supplier-actions select{border:1px solid var(--line-strong);border-radius:4px;background:#fff;color:var(--ink);font-weight:500}
.product-stat-tabs button,
.supplier-stat-tabs button{border:1px solid var(--line-strong);background:#fff;color:#15181E}
.product-stat-tabs button.active,
.supplier-stat-tabs button.active{border-color:#002FA7;background:#002FA7;color:#fff}
.product-catalog-table,
.supplier-directory-table{border:1px solid var(--line-strong)}
.product-catalog-table th,
.product-catalog-table td,
.supplier-directory-table th,
.supplier-directory-table td{border:1px solid var(--line)}
.supplier-directory-table .row-actions .action{border-color:var(--line-strong);color:#15181E}
.supplier-directory-table .row-actions .action:hover{border-color:#002FA7;color:#002FA7;background:#EEF2FB}

/* 案件经办 / 理赔（claims.css 绿色系偏差） */
.claim-filters,
.claim-detail-band,
.person-master-band{border-color:var(--line-strong);background:var(--line)}
.claim-filters label,
.claim-form label,
.claim-status-line,
.person-master-band span,
.context-row span,
.person-master-band small,
.context-row small,
.person-option small,
.timeline-item small,
.selected-person-strip em{color:var(--muted)}
.claim-filters input,
.claim-filters select,
.claim-form input,
.claim-form select,
.claim-form textarea{border-color:var(--line-strong);border-radius:4px}
.claim-search-results,
.person-context-grid>section,
.auto-requirements,
.requirement-item,
.timeline-item,
.person-option,
.context-row{border-color:var(--line)}
.person-option:hover,
.person-option.selected{background:#EEF2FB}
.selected-person-strip,
.context-row.is-effective,
.requirement-preview{background:#EEF2FB;border-left-color:#002FA7}
.selected-person-strip small{color:#002FA7}
.requirement-tags span{border-color:#c8cedb;background:#EEF2FB;color:#002FA7}
.product-link,
.material-complete{color:#002FA7}
.case-waveform i{background:#002FA7}

/* 合同签署 */
.contract-signing-tabs button.active::after{background:#002FA7}
.contract-signing-segments button.active b{background:#002FA7;color:#fff}

/* Agent / 连接器 */
.connector-status-pill{border-radius:4px}
.agent-status.published{background:#EEF2FB;color:#002FA7}

/* 扁平化：清除个别页面残留阴影 */
.metric,
main .action{box-shadow:none}

/* ===== 统一治理 v2.1：残留偏差修正 ===== */

/* 参保派单主操作区 / 状态页签 / 分页（dispatch.css） */
.insurance-main-actions .action{border:1px solid var(--line-strong);background:#fff;color:#15181E;font-weight:600}
.insurance-search input,
.insurance-filters select,
.insurance-filters input[type=date],
.insurance-filters .customer-picker-input{border-color:var(--line-strong);color:var(--ink)}
.insurance-status-tabs button{border:1px solid var(--line-strong);background:#fff;color:#15181E}
.insurance-status-tabs button b{color:var(--muted)}
.insurance-status-tabs button:hover{background:#EEF2FB;color:#002FA7}
.insurance-status-tabs button.active{border-color:var(--line-strong);background:#fff;color:#002FA7}
.insurance-status-tabs button.active b{color:#002FA7}
.insurance-list-pager{color:var(--muted)}
.insurance-list-pager button{color:var(--ink)}
.insurance-page-size{color:var(--ink)}
.insurance-archive-toolbar input,
.insurance-archive-toolbar select,
.insurance-archive-toolbar button{border-radius:4px}
.insurance-archive-search input{border-radius:4px 0 0 4px}

/* 合同档案规则状态（dispatch.css） */
.rule-status.active{background:#EEF2FB;color:#002FA7}
.rule-status.inactive{background:#F3F5F8;color:#7a8494}

/* 合同签署残留（contract-signing.css） */
.contract-signing-segments button:hover{background:#EEF2FB;color:#002FA7}
.contract-signing-segments button.active{background:#EEF2FB;color:#002FA7}
.contract-signing-segments b{background:#F3F5F8;color:#7a8494}
.signing-state{border-color:#c8cedb;background:#EEF2FB;color:#002FA7}
.contract-signing-launch-dialog{border-radius:6px}

/* 案件经办操作区 / 筛选（case-page-layout.css、case-assistant.css） */
.case-wire-actions .action{border:1px solid var(--line-strong);border-radius:4px;background:#fff;font-weight:500;box-shadow:none}
.case-wire-search input,
.case-wire-filters select{border:1px solid var(--line-strong);border-radius:4px}
.case-wire-status-tab{border:1px solid var(--line-strong);background:#fff}
.case-wire-pager{color:var(--muted)}
.case-voice-control{background:#EEF2FB;color:#002FA7;box-shadow:none}

/* 对话框内部文字与图标残留 */
dialog{color:var(--ink)}
.case-mic-glyph{border-radius:4px}

/* ===== 参保派单专项统一治理 ===== */
.insurance-dispatch-page{
  gap:10px;
  padding:0;
}

.insurance-dispatch-toolbar{
  display:grid;
  grid-template-columns:minmax(520px,auto) minmax(260px,1fr);
  gap:8px 10px;
  align-items:center;
}

.insurance-main-actions{
  gap:6px;
}

.insurance-main-actions .action,
.insurance-main-actions .action.primary-action{
  height:34px;
  min-height:34px;
  padding:0 12px;
  border:1px solid var(--line-strong);
  border-radius:4px;
  background:#fff;
  color:#15181E;
  font-size:12px;
  font-weight:600;
  box-shadow:none;
}

.insurance-main-actions .action:hover,
.insurance-main-actions .action.active,
.insurance-main-actions .action.primary-action:hover{
  border-color:#002FA7;
  background:#EEF2FB;
  color:#002FA7;
}

.insurance-main-actions .action.primary-action{
  border-color:#002FA7;
  background:#002FA7;
  color:#fff;
}

.insurance-search{
  max-width:none;
  min-width:260px;
}

.insurance-filters{
  grid-column:1/-1;
  display:grid;
  grid-template-columns:minmax(150px,1.1fr) minmax(180px,1.25fr) repeat(4,minmax(118px,.75fr));
  gap:8px;
  width:100%;
}

.insurance-filters .insurance-filter-picker,
.insurance-filters .insurance-customer-picker,
.insurance-filters .insurance-contract-picker,
.insurance-select-shell,
.insurance-date-shell{
  width:100%;
  min-width:0;
  max-width:none;
  flex-basis:auto;
}

.insurance-search input,
.insurance-filters select,
.insurance-filters input[type=date],
.insurance-filters input[type=text],
.insurance-filters .customer-picker-input{
  height:34px;
  min-height:34px;
  border:1px solid var(--line-strong);
  border-radius:4px;
  background:#fff;
  color:var(--ink);
  font-size:12px;
}

.insurance-list-head{
  margin-top:0;
  padding:0;
  align-items:center;
}

.insurance-status-tabs{
  gap:6px;
}

.insurance-status-tabs button{
  height:34px;
  min-height:34px;
  padding:0 12px;
  border:1px solid var(--line-strong);
  border-radius:4px;
  background:#fff;
  color:#15181E;
  font-size:12px;
  font-weight:600;
}

.insurance-status-tabs button b{
  color:var(--muted);
  font-size:12px;
  font-weight:600;
}

.insurance-status-tabs button:hover{
  border-color:#002FA7;
  background:#EEF2FB;
  color:#002FA7;
}

.insurance-status-tabs button.active{
  border-color:#002FA7;
  background:#002FA7;
  color:#fff;
}

.insurance-status-tabs button.active b{
  color:#fff;
}

.insurance-list-pager{
  gap:6px;
  color:var(--muted);
  font-size:12px;
}

.insurance-list-pager button,
.insurance-page-size{
  height:30px;
  border:1px solid var(--line-strong);
  border-radius:4px;
  background:#fff;
  color:#15181E;
  padding:0 8px;
}

.insurance-list-pager button:hover:not(:disabled){
  border-color:#002FA7;
  background:#EEF2FB;
  color:#002FA7;
}

.insurance-record-table{
  max-height:calc(100vh - 252px);
  border:1px solid var(--line-strong);
  border-radius:0;
  background:#fff;
  box-shadow:none;
}

.insurance-record-table table{
  min-width:1500px;
}

.insurance-record-table th,
.insurance-record-table td{
  height:34px;
  border:1px solid var(--line);
  padding:5px 8px;
  background:#fff;
  color:var(--ink);
  font-size:12px;
  line-height:1.3;
}

.insurance-record-table th{
  height:36px;
  background:#F3F5F8!important;
  color:#7a8494!important;
  font-weight:700;
}

.insurance-record-table th:last-child,
.insurance-record-table td:last-child{
  border-left:1px solid var(--line-strong);
  box-shadow:-1px 0 0 var(--line);
}

.insurance-record-table .insurance-check-cell{
  width:56px;
  min-width:56px;
  max-width:56px;
  padding:0!important;
  text-align:center;
  vertical-align:middle;
}

.insurance-record-table .insurance-check-cell input[type=checkbox],
.insurance-record-table input.insurance-row-check,
#insuranceSelectAll,
.insurance-archive-table input[type=checkbox]{
  display:block!important;
  width:16px!important;
  min-width:16px!important;
  max-width:16px!important;
  height:16px!important;
  min-height:16px!important;
  max-height:16px!important;
  margin:0 auto!important;
  padding:0!important;
  border:1px solid var(--line-strong);
  border-radius:4px;
  box-sizing:border-box;
  accent-color:#002FA7;
  transform:none!important;
}

.insurance-row-actions{
  gap:5px;
}

.mini-action{
  min-width:38px;
  height:22px;
  padding:0 7px;
  border:1px solid var(--line-strong);
  border-radius:4px;
  background:#fff;
  color:#15181E;
  font-size:11px;
  line-height:20px;
}

.mini-action:hover:not(:disabled){
  border-color:#002FA7;
  background:#EEF2FB;
  color:#002FA7;
}

.insurance-workbench-tabs{
  gap:6px;
  border-bottom:0;
  margin:0 0 10px;
}

.insurance-workbench-tabs button,
.insurance-architecture-tabs button,
.insurance-scene-tabs button{
  height:34px;
  min-height:34px;
  border:1px solid var(--line-strong);
  border-radius:4px;
  background:#fff;
  color:#15181E;
  font-size:12px;
  font-weight:600;
}

.insurance-workbench-tabs button:hover,
.insurance-architecture-tabs button:hover,
.insurance-scene-tabs button:hover{
  border-color:#002FA7;
  background:#EEF2FB;
  color:#002FA7;
}

.insurance-workbench-tabs button.active,
.insurance-architecture-tabs button.active,
.insurance-scene-tabs button.active{
  border-color:#002FA7!important;
  background:#002FA7!important;
  color:#fff!important;
}

.insurance-architecture-tabs,
.insurance-scene-tabs{
  gap:6px;
  border:0;
  border-radius:0;
  background:transparent;
}

.insurance-field-list,
.insurance-handoff-head{
  border-color:var(--line-strong);
  background:var(--line);
}

.insurance-field-list>div,
.insurance-handoff-head>div,
.insurance-run-row,
.insurance-status-panel,
.traditional-entry-band{
  border-color:var(--line);
  border-radius:4px;
  background:#fff;
  box-shadow:none;
}

.insurance-chip,
.insurance-chip.ok,
.insurance-chip.warn{
  border-color:#c8cedb;
  border-radius:4px;
  background:#EEF2FB;
  color:#002FA7;
}

@media(max-width:1100px){
  .insurance-dispatch-toolbar{grid-template-columns:1fr}
  .insurance-filters{grid-template-columns:repeat(2,minmax(0,1fr))}
}

.workflow-steps{
  gap:6px;
  margin:0 0 10px;
}

.workflow-step{
  min-height:34px;
  border:1px solid var(--line-strong);
  border-radius:4px;
  background:#fff;
  color:#15181E;
  font-size:12px;
  font-weight:600;
  box-shadow:none;
}

.workflow-step.active{
  border-color:#002FA7;
  background:#002FA7;
  color:#fff;
}

.dispatch-summary{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr)) auto auto;
  gap:8px;
  align-items:center;
  padding:10px;
  border:1px solid var(--line-strong);
  border-radius:4px;
  background:#fff;
  box-shadow:none;
}

.dispatch-summary .summary-row{
  min-height:34px;
  padding:6px 8px;
  border:1px solid var(--line);
  border-radius:4px;
  background:#F3F5F8;
}

.dispatch-summary .summary-row span{
  color:var(--muted);
  font-size:11px;
}

.dispatch-summary .summary-row b{
  color:var(--ink);
  font-size:12px;
}

#content .detail-metrics{
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:8px;
  margin:0 0 10px;
}

#content .detail-metrics .metric{
  min-height:58px;
  border:1px solid var(--line-strong);
  border-radius:4px;
  background:#fff;
  box-shadow:none;
}

#content .table-wrap:not(.insurance-record-table){
  border:1px solid var(--line-strong);
  border-radius:0;
  box-shadow:none;
}

#content .table-wrap:not(.insurance-record-table) table th,
#content .table-wrap:not(.insurance-record-table) table td{
  border:1px solid var(--line);
  font-size:12px;
}

#content .table-wrap:not(.insurance-record-table) table th{
  background:#F3F5F8!important;
  color:#7a8494!important;
}

.match-ok,
.match-error,
.match-pending,
.rule-step,
.tag{
  border-color:#c8cedb!important;
  border-radius:4px!important;
  background:#EEF2FB!important;
  color:#002FA7!important;
}

.back-link{
  height:32px;
  border:1px solid var(--line-strong);
  border-radius:4px;
  background:#fff;
  color:#15181E;
  padding:0 10px;
  font-size:12px;
}

.back-link:hover{
  border-color:#002FA7;
  background:#EEF2FB;
  color:#002FA7;
}

.insurance-archive-page{
  display:grid;
  gap:10px;
}

.insurance-archive-toolbar{
  display:grid;
  grid-template-columns:minmax(260px,1fr) repeat(4,minmax(128px,.72fr));
  gap:8px;
  align-items:center;
}

.insurance-archive-search{
  display:flex;
  min-width:260px;
}

.insurance-archive-toolbar input,
.insurance-archive-toolbar select,
.insurance-archive-toolbar button,
.insurance-archive-search input,
.insurance-archive-search button{
  height:34px;
  min-height:34px;
  border:1px solid var(--line-strong);
  border-radius:4px;
  background:#fff;
  color:var(--ink);
  font-size:12px;
  box-shadow:none;
}

.insurance-archive-search input{
  border-radius:4px 0 0 4px;
}

.insurance-archive-search button{
  border-left:0;
  border-radius:0 4px 4px 0;
  color:#15181E;
}

.insurance-archive-search button:hover,
.insurance-archive-toolbar button:hover{
  border-color:#002FA7;
  background:#EEF2FB;
  color:#002FA7;
}

.insurance-archive-stats{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
}

.insurance-archive-stats button{
  height:34px;
  min-height:34px;
  padding:0 12px;
  border:1px solid var(--line-strong);
  border-radius:4px;
  background:#fff;
  color:#15181E;
  font-size:12px;
  font-weight:600;
  box-shadow:none;
}

.insurance-archive-stats button.active{
  border-color:#002FA7;
  background:#002FA7;
  color:#fff;
  box-shadow:none;
}

.insurance-archive-pager{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:6px;
  color:var(--muted);
  font-size:12px;
}

.insurance-archive-pager button{
  height:30px;
  border:1px solid var(--line-strong);
  border-radius:4px;
  background:#fff;
  color:#15181E;
  padding:0 8px;
}

.insurance-archive-pager button:hover:not(:disabled){
  border-color:#002FA7;
  background:#EEF2FB;
  color:#002FA7;
}

.insurance-archive-table{
  max-height:calc(100vh - 278px);
  border:1px solid var(--line-strong);
  border-radius:0;
  background:#fff;
  box-shadow:none;
}

.insurance-archive-table table{
  border-collapse:collapse;
}

.insurance-archive-table th,
.insurance-archive-table td{
  height:34px;
  border:1px solid var(--line);
  padding:5px 8px;
  background:#fff;
  color:var(--ink);
  font-size:12px;
}

.insurance-archive-table th{
  height:36px;
  background:#F3F5F8!important;
  color:#7a8494!important;
  font-weight:700;
}

.insurance-archive-table .action,
.archive-open{
  min-width:38px;
  height:22px;
  padding:0 7px;
  border:1px solid var(--line-strong);
  border-radius:4px;
  background:#fff;
  color:#15181E;
  font-size:11px;
  line-height:20px;
  box-shadow:none;
}

.insurance-archive-table .action:hover,
.archive-open:hover{
  border-color:#002FA7;
  background:#EEF2FB;
  color:#002FA7;
}

.insurance-archive-table th.insurance-archive-operation-cell,
.insurance-archive-table td.insurance-archive-operation-cell{
  position:sticky!important;
  right:0!important;
  z-index:3!important;
  width:88px!important;
  min-width:88px!important;
  max-width:88px!important;
  text-align:center!important;
  background:#fff!important;
  border-left:1px solid var(--line-strong)!important;
  box-shadow:-1px 0 0 var(--line)!important;
}

.insurance-archive-table th.insurance-archive-operation-cell{
  z-index:5!important;
  background:#F3F5F8!important;
}

.insurance-archive-table th.insurance-archive-check-cell,
.insurance-archive-table td.insurance-archive-check-cell{
  width:56px!important;
  min-width:56px!important;
  max-width:56px!important;
  padding:0!important;
  text-align:center!important;
  vertical-align:middle!important;
}

#content th input[type="checkbox"],
#content td input[type="checkbox"]{
  display:block!important;
  width:16px!important;
  min-width:16px!important;
  max-width:16px!important;
  height:16px!important;
  min-height:16px!important;
  max-height:16px!important;
  margin:0 auto!important;
  padding:0!important;
  box-sizing:border-box!important;
  flex:0 0 16px!important;
  vertical-align:middle!important;
}

#content th:has(> input[type="checkbox"]),
#content td:has(> input[type="checkbox"]){
  padding-left:0!important;
  padding-right:0!important;
  text-align:center!important;
  vertical-align:middle!important;
}

.coverage-page-size,
.sales-page-size,
.supplier-page-size,
.product-catalog-page-size,
.case-wire-pager select,
.pager select{
  width:auto!important;
  height:30px!important;
  min-height:30px!important;
  max-height:30px!important;
  margin:0!important;
  padding:0 30px 0 10px!important;
  border:1px solid var(--line-strong)!important;
  border-radius:4px!important;
  background-color:#fff!important;
  background-image:url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 14 14' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.5 5.25L7 8.75L10.5 5.25' fill='none' stroke='%2315181E' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;
  background-repeat:no-repeat!important;
  background-position:right 9px center!important;
  background-size:14px 14px!important;
  color:#15181E!important;
  font-size:12px!important;
  line-height:28px!important;
  appearance:none!important;
  -webkit-appearance:none!important;
}

.insurance-archive-toolbar{
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  column-gap:10px!important;
  row-gap:8px!important;
  align-items:center!important;
}

.insurance-archive-search,
.insurance-archive-toolbar>select,
.insurance-archive-toolbar>.insurance-select-shell{
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
}

.insurance-archive-search input,
.insurance-archive-search button,
.insurance-archive-toolbar select,
.insurance-archive-toolbar input,
.insurance-archive-toolbar button{
  height:40px!important;
  min-height:40px!important;
  max-height:40px!important;
  margin:0!important;
  box-sizing:border-box!important;
  border:1px solid #c8cedb!important;
  background-color:#fff!important;
  color:#15181E!important;
  font-size:13px!important;
  line-height:38px!important;
  box-shadow:none!important;
}

.insurance-archive-toolbar select{
  width:100%!important;
  padding:0 36px 0 14px!important;
  border-radius:4px!important;
  appearance:none!important;
  -webkit-appearance:none!important;
  background-image:url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 14 14' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.5 5.25L7 8.75L10.5 5.25' fill='none' stroke='%2315181E' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;
  background-repeat:no-repeat!important;
  background-position:right 14px center!important;
  background-size:14px 14px!important;
}

.insurance-archive-search{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 42px!important;
}

.insurance-archive-search input{
  width:100%!important;
  min-width:0!important;
  padding:0 12px!important;
  border-radius:4px 0 0 4px!important;
}

.insurance-archive-search button{
  width:42px!important;
  min-width:42px!important;
  max-width:42px!important;
  padding:0!important;
  border-left:0!important;
  border-radius:0 4px 4px 0!important;
  text-align:center!important;
}

@media(max-width:1280px){
  .insurance-archive-toolbar{grid-template-columns:repeat(4,minmax(0,1fr))!important}
}

@media(max-width:1100px){
  .dispatch-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
  .insurance-archive-toolbar{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}

.secondary-menu-search{
  margin:8px 0 10px;
}

.secondary-menu-search input{
  width:100%;
  height:32px;
  margin:0;
  padding:0 10px;
  border:1px solid #c8cedb;
  border-radius:4px;
  background:#fff;
  color:#15181E;
  font-size:12px;
  box-shadow:none;
}

.secondary-menu-search input:focus{
  border-color:#002FA7;
  box-shadow:0 0 0 3px #002fa714;
}

.nav-section-title{
  display:flex!important;
  align-items:center;
  justify-content:space-between;
  min-height:30px;
  margin:6px 0 4px;
  padding:0 8px;
  border:1px solid #c8cedb;
  border-radius:4px;
  background:#F3F5F8;
  color:#15181E;
  font-size:12px;
  font-weight:700;
  cursor:pointer;
  user-select:none;
}

.nav-section-title::after{
  content:'›';
  color:#7a8494;
  font-size:16px;
  line-height:1;
  transition:transform 160ms ease;
}

.nav-section-title[aria-expanded="true"]{
  border-color:#002FA7;
  background:#EEF2FB;
  color:#002FA7;
}

.nav-section-title[aria-expanded="true"]::after{
  transform:rotate(90deg);
  color:#002FA7;
}

.nav-section-body[hidden],
.nav[hidden],
.nav-section-title[hidden]{
  display:none!important;
}

.nav-section-body{
  display:grid;
  gap:3px;
  margin:0 0 6px;
}

.ui-lock-operation-table th.ui-operation-cell,
.ui-lock-operation-table td.ui-operation-cell{
  position:sticky!important;
  right:0!important;
  z-index:3!important;
  min-width:88px!important;
  background:#fff!important;
  text-align:center!important;
  border-left:1px solid var(--line-strong)!important;
  box-shadow:-1px 0 0 var(--line)!important;
}

.ui-lock-operation-table th.ui-operation-cell{
  z-index:5!important;
  background:#F3F5F8!important;
}

.secondary-group.active .nav.nav-child{
  min-height:30px;
  padding:7px 10px;
  border-radius:4px;
  font-size:12px;
}

#content{
  position:relative;
}

.content-refreshing{
  min-height:240px;
}

.content-refresh-mask{
  position:absolute;
  inset:0;
  z-index:20;
  display:flex;
  align-items:flex-start;
  justify-content:flex-end;
  padding:10px 14px;
  pointer-events:none;
  background:rgba(255,255,255,.42);
  backdrop-filter:saturate(120%) blur(1px);
}

.content-refresh-mask span{
  display:inline-flex;
  align-items:center;
  height:26px;
  padding:0 10px;
  border:1px solid #c8cedb;
  border-radius:4px;
  background:#fff;
  color:#002FA7;
  font-size:12px;
  font-weight:700;
  box-shadow:0 2px 8px rgba(12,24,48,.08);
}

.ui-page-skeleton{
  display:grid;
  gap:10px;
  padding:0;
}

.ui-page-skeleton div{
  height:42px;
  border:1px solid var(--line);
  border-radius:4px;
  background:linear-gradient(90deg,#f3f5f8 0%,#ffffff 48%,#f3f5f8 100%);
  background-size:220% 100%;
  animation:uiSkeletonMove 900ms linear infinite;
}

.ui-page-skeleton div:first-child{
  height:76px;
}

@keyframes uiSkeletonMove{
  from{background-position:100% 0}
  to{background-position:-100% 0}
}

@media (prefers-reduced-motion:reduce){
  .ui-page-skeleton div{animation:none}
}

#content .action,
#content .toolbar button,
#content .pager button,
#content .case-wire-pager button,
#content .insurance-list-pager button,
#content .insurance-archive-pager button,
#content .contract-signing-toolbar button,
#content .contract-signing-search button{
  height:34px!important;
  min-height:34px!important;
  max-height:34px!important;
  padding:0 12px!important;
  border:1px solid #c8cedb!important;
  border-radius:4px!important;
  background:#fff!important;
  color:#15181E!important;
  font-size:12px!important;
  font-weight:500!important;
  line-height:32px!important;
  box-shadow:none!important;
}

#content .primary-action,
#content .action.primary-action,
#content .toolbar .primary-action,
#content .contract-signing-toolbar>.primary-action{
  height:34px!important;
  min-height:34px!important;
  max-height:34px!important;
  border-color:#002FA7!important;
  background:#002FA7!important;
  color:#fff!important;
  font-size:12px!important;
  font-weight:700!important;
  line-height:32px!important;
}

#content .detail-tabs,
#content .insurance-status-tabs,
#content .case-wire-status-tabs,
#content .contract-signing-tabs,
#content .contract-signing-segments,
#content .customer-type-tabs{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  min-height:34px!important;
  margin:0 0 12px!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  overflow-x:auto!important;
}

#content .detail-tabs button,
#content .insurance-status-tabs button,
#content .case-wire-status-tabs button,
#content .contract-signing-tabs button,
#content .contract-signing-segments button,
#content .customer-type-tabs button{
  position:relative!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  height:34px!important;
  min-height:34px!important;
  max-height:34px!important;
  padding:0 12px!important;
  border:1px solid #c8cedb!important;
  border-radius:4px!important;
  background:#fff!important;
  color:#15181E!important;
  font-size:12px!important;
  font-weight:500!important;
  line-height:32px!important;
  white-space:nowrap!important;
  box-shadow:none!important;
}

#content .detail-tabs button::after,
#content .contract-signing-tabs button::after{
  display:none!important;
}

#content .detail-tabs button.active,
#content .insurance-status-tabs button.active,
#content .case-wire-status-tabs button.active,
#content .contract-signing-tabs button.active,
#content .contract-signing-segments button.active,
#content .customer-type-tabs button.active{
  border-color:#002FA7!important;
  background:#002FA7!important;
  color:#fff!important;
  font-weight:700!important;
}

#content .contract-signing-segments button b{
  min-width:18px!important;
  padding:0 5px!important;
  border-radius:4px!important;
  background:#EEF2FB!important;
  color:#002FA7!important;
  font-size:10px!important;
  line-height:16px!important;
}

#content .contract-signing-segments button.active b{
  background:#fff!important;
  color:#002FA7!important;
}

#content .toolbar input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
#content .toolbar select,
#content .contract-signing-toolbar input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
#content .contract-signing-toolbar select,
#content .contract-signing-search input,
#content .insurance-filters input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
#content .insurance-filters select,
#content .case-wire-toolbar input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
#content .case-wire-toolbar select,
#content .claim-filters input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
#content .claim-filters select,
#content .finance-filters input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
#content .finance-filters select{
  height:34px!important;
  min-height:34px!important;
  max-height:34px!important;
  margin:0!important;
  padding:0 12px!important;
  border:1px solid #c8cedb!important;
  border-radius:4px!important;
  background-color:#fff!important;
  color:#15181E!important;
  font-size:12px!important;
  line-height:32px!important;
  box-shadow:none!important;
}

#content .toolbar select,
#content .contract-signing-toolbar select,
#content .insurance-filters select,
#content .case-wire-toolbar select,
#content .claim-filters select,
#content .finance-filters select{
  padding-right:32px!important;
  appearance:none!important;
  -webkit-appearance:none!important;
  background-image:url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 14 14' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.5 5.25L7 8.75L10.5 5.25' fill='none' stroke='%2315181E' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;
  background-repeat:no-repeat!important;
  background-position:right 10px center!important;
  background-size:14px 14px!important;
}

#content .contract-signing-toolbar{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  min-height:34px!important;
  margin:0 0 12px!important;
}

#content .contract-signing-search{
  display:grid!important;
  grid-template-columns:minmax(180px,230px) 54px!important;
  align-items:center!important;
  margin-left:auto!important;
}

#content .contract-signing-search input{
  width:100%!important;
  border-radius:4px 0 0 4px!important;
}

#content .contract-signing-search button{
  width:54px!important;
  padding:0!important;
  border-left:0!important;
  border-radius:0 4px 4px 0!important;
}

#content .pager,
#content .case-wire-pager,
#content .insurance-list-pager,
#content .insurance-archive-pager{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  min-height:30px!important;
  color:#3A3F4A!important;
  font-size:12px!important;
}

#content .pager button,
#content .case-wire-pager button,
#content .insurance-list-pager button,
#content .insurance-archive-pager button{
  height:30px!important;
  min-height:30px!important;
  max-height:30px!important;
  padding:0 10px!important;
  line-height:28px!important;
}

#content .table-wrap th{
  height:36px!important;
  padding:0 10px!important;
  background:#F3F5F8!important;
  color:#7a8494!important;
  font-size:12px!important;
  font-weight:700!important;
  line-height:34px!important;
}

#content .table-wrap td{
  height:34px!important;
  padding:0 10px!important;
  color:#15181E!important;
  font-size:12px!important;
  line-height:32px!important;
}

#content .mini-action,
#content .row-actions button,
#content td button:not(.primary-action):not(.action){
  height:22px!important;
  min-height:22px!important;
  max-height:22px!important;
  padding:0 8px!important;
  border:1px solid #c8cedb!important;
  border-radius:4px!important;
  background:#fff!important;
  color:#15181E!important;
  font-size:11px!important;
  line-height:20px!important;
}

#content .insurance-archive-search input,
#content .insurance-archive-search button,
#content .insurance-archive-toolbar select,
#content .insurance-archive-toolbar input,
#content .insurance-archive-toolbar button,
#content .supplier-search input,
#content .supplier-search button,
#content .supplier-actions select,
#content .supplier-actions button,
#content .supplier-stat-tabs button,
#content .product-search input,
#content .product-search button,
#content .product-catalog-actions select,
#content .product-catalog-actions button,
#content .product-stat-tabs button{
  height:34px!important;
  min-height:34px!important;
  max-height:34px!important;
  padding:0 12px!important;
  border:1px solid #c8cedb!important;
  border-radius:4px!important;
  background-color:#fff!important;
  color:#15181E!important;
  font-size:12px!important;
  font-weight:500!important;
  line-height:32px!important;
  box-shadow:none!important;
}

#content .insurance-archive-search button,
#content .supplier-search button,
#content .product-search button{
  width:42px!important;
  padding:0!important;
  border-left:0!important;
  border-radius:0 4px 4px 0!important;
}

#content .insurance-archive-search input,
#content .supplier-search input,
#content .product-search input{
  border-radius:4px 0 0 4px!important;
}

#content .supplier-stat-tabs,
#content .product-stat-tabs{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  min-height:34px!important;
  margin:0 0 12px!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  overflow-x:auto!important;
}

#content .supplier-stat-tabs button.active,
#content .product-stat-tabs button.active{
  border-color:#002FA7!important;
  background:#002FA7!important;
  color:#fff!important;
  font-weight:700!important;
}

#content .supplier-actions select,
#content .product-catalog-actions select,
#content .insurance-archive-toolbar select{
  padding-right:32px!important;
  appearance:none!important;
  -webkit-appearance:none!important;
  background-image:url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 14 14' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.5 5.25L7 8.75L10.5 5.25' fill='none' stroke='%2315181E' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;
  background-repeat:no-repeat!important;
  background-position:right 10px center!important;
  background-size:14px 14px!important;
}

#content .sales-metrics{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  min-height:34px!important;
  margin:0 0 12px!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  overflow-x:auto!important;
}

#content .sales-metrics .metric{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:4px!important;
  height:34px!important;
  min-height:34px!important;
  max-height:34px!important;
  min-width:auto!important;
  width:auto!important;
  padding:0 12px!important;
  border:1px solid #c8cedb!important;
  border-radius:4px!important;
  background:#fff!important;
  color:#15181E!important;
  font-size:12px!important;
  font-weight:500!important;
  line-height:32px!important;
  box-shadow:none!important;
}

#content .sales-metrics .metric.active{
  border-color:#002FA7!important;
  background:#002FA7!important;
  color:#fff!important;
  font-weight:700!important;
}

#content .sales-metrics .metric strong,
#content .sales-metrics .metric span,
#content .sales-metrics .metric small,
#content .insurance-status-tabs button span,
#content .insurance-status-tabs button b,
#content .case-wire-status-tabs button span,
#content .case-wire-status-tabs button strong,
#content .contract-signing-segments button span,
#content .contract-signing-segments button b,
#content .supplier-stat-tabs button span,
#content .supplier-stat-tabs button strong,
#content .supplier-stat-tabs button b,
#content .product-stat-tabs button span,
#content .product-stat-tabs button strong,
#content .product-stat-tabs button b,
#content .detail-tabs button span,
#content .detail-tabs button strong,
#content .detail-tabs button b,
#content .contract-signing-segments button.active b,
#content .contract-signing-segments button:hover b{
  display:inline!important;
  width:auto!important;
  height:auto!important;
  min-width:0!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  color:inherit!important;
  font-size:12px!important;
  font-weight:inherit!important;
  line-height:32px!important;
  box-shadow:none!important;
}

#content .payroll-intake-controls input,
#content .payroll-work-date input,
#content input[type="month"],
#content input[type="date"]{
  height:34px!important;
  min-height:34px!important;
  max-height:34px!important;
  padding:0 12px!important;
  border:1px solid #c8cedb!important;
  border-radius:4px!important;
  background:#fff!important;
  color:#15181E!important;
  font-size:12px!important;
  line-height:32px!important;
  box-shadow:none!important;
}

#content input[type="file"]{
  min-height:34px!important;
  max-height:34px!important;
  padding:5px 10px!important;
  border:1px solid #c8cedb!important;
  border-radius:4px!important;
  background:#fff!important;
  color:#15181E!important;
  font-size:12px!important;
  line-height:20px!important;
  box-shadow:none!important;
}

@media(max-width:720px){
  .insurance-dispatch-toolbar,
  .insurance-filters,
  .insurance-list-head,
  .dispatch-summary{grid-template-columns:1fr}
  .insurance-status-tabs{display:grid;grid-template-columns:1fr 1fr}
  .insurance-main-actions{display:grid;grid-template-columns:1fr 1fr;width:100%}
  #content .detail-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
}
