:root {
  color-scheme: light;
  --bg: #f5f5f7;
  --bg-2: #eef0f3;
  --surface: rgba(255, 255, 255, .86);
  --surface-solid: #ffffff;
  --surface-muted: #f7f7f8;
  --text: #1d1d1f;
  --text-2: #49494d;
  --muted: #6e6e73;
  --line: rgba(60, 60, 67, .13);
  --line-strong: rgba(60, 60, 67, .21);
  --coffee: #805b4e;
  --coffee-2: #b8826d;
  --coffee-dark: #2d2421;
  --coffee-soft: #f5e9e4;
  --gold: #bd9658;
  --gold-soft: #fbf2df;
  --sage: #607f8c;
  --sage-soft: #e9f0f3;
  --blue: #3478c7;
  --blue-soft: #eaf3ff;
  --red: #c45c58;
  --red-soft: #fff0ef;
  --amber: #b87a2e;
  --amber-soft: #fff5e6;
  --quality: #607f8c;
  --quality-deep: #405a67;
  --quality-soft: #e9f0f3;
  --performance: #b08852;
  --performance-deep: #765135;
  --performance-soft: #fbf2e4;
  --system: #74808a;
  --system-deep: #59646d;
  --system-soft: #eff1f2;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .035), 0 10px 30px rgba(49, 47, 45, .055);
  --shadow-2: 0 18px 52px rgba(44, 38, 34, .13);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* V6.8.36 · 门店收银、交班与对账。视觉层只展示服务端不可变账本。 */
/* V6.8.46 · 审计分页索引与代次原子恢复。金额只展示服务端权威结算投影。 */
.app-shell[data-route="pos"] .content { max-width: 1680px; }
.pos-page { display: grid; gap: 14px; }
.pos-control-bar {
  min-height: 88px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: minmax(260px,1fr) minmax(150px,.55fr) minmax(145px,.48fr) minmax(150px,.5fr) auto;
  align-items: end;
  gap: 12px;
  border: 1px solid rgba(119,78,45,.15);
  border-radius: 20px;
  background: linear-gradient(120deg,rgba(255,252,246,.96),rgba(249,244,236,.92) 62%,rgba(236,242,245,.88));
  box-shadow: var(--shadow-1);
}
.pos-control-copy { align-self: center; min-width: 0; display: grid; gap: 3px; }
.pos-control-copy > span,.pos-control-bar label > span,.pos-fixed-filter > span { color: #88776a; font-size: 10px; font-weight: 720; letter-spacing: .035em; }
.pos-control-copy > strong { overflow: hidden; color: #35271f; font-size: 20px; text-overflow: ellipsis; white-space: nowrap; }
.pos-control-copy > small { color: var(--muted); font-size: 10px; line-height: 1.45; }
.pos-control-bar label,.pos-fixed-filter { min-width: 0; display: grid; gap: 6px; }
.pos-fixed-filter { min-height: 58px; padding: 9px 11px; align-content: center; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.68); }
.pos-fixed-filter strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.pos-shift-banner {
  min-height: 104px;
  padding: 17px 19px;
  display: grid;
  grid-template-columns: 58px minmax(260px,1fr) auto;
  align-items: center;
  gap: 15px;
  border: 1px solid rgba(113,133,146,.2);
  border-radius: 22px;
  background: linear-gradient(120deg,#f8fbfc,#edf3f6 63%,#fff9ed);
  box-shadow: 0 12px 30px rgba(62,75,82,.08);
}
.pos-shift-banner.is-open { border-color: rgba(171,119,50,.24); background: linear-gradient(120deg,#fffaf0,#f5ead7 58%,#edf3f6); }
.pos-shift-mark { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 18px; color: #fff; background: linear-gradient(145deg,#718b99,#4f6876); box-shadow: 0 8px 18px rgba(64,86,99,.18); font-size: 21px; font-weight: 820; }
.pos-shift-banner.is-open .pos-shift-mark { background: linear-gradient(145deg,#d19d50,#8c5728); box-shadow: 0 8px 18px rgba(130,79,34,.2); }
.pos-shift-banner > div:nth-child(2) { min-width: 0; display: grid; gap: 4px; }
.pos-shift-banner > div:nth-child(2) > span { color: #866e5c; font-size: 10px; font-weight: 720; }
.pos-shift-banner > div:nth-child(2) > strong { color: #2f2621; font-size: 18px; letter-spacing: -.025em; }
.pos-shift-banner > div:nth-child(2) > small { color: var(--muted); font-size: 11px; line-height: 1.5; }
.pos-shift-banner > .actions { justify-content: flex-end; }
.pos-kpis { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 11px; }
.pos-kpis .kpi-card { min-height: 104px; padding: 16px; }
.pos-kpis .kpi-copy strong { font-size: clamp(19px,1.65vw,27px); white-space: nowrap; }
.pos-ledger-grid { display: grid; grid-template-columns: minmax(0,1.8fr) minmax(330px,.72fr); gap: 14px; align-items: start; }
.pos-card-header { min-height: 70px; margin: 0; padding: 16px 18px 12px; align-items: center; }
.pos-order-table { min-width: 940px; }
.pos-order-table td small,.pos-detail-section td small,.pos-detail-ledgers td small,.pos-shift-history td small { margin-top: 4px; display: block; color: var(--muted); font-size: 10px; }
.pos-order-no { color: #67442e; letter-spacing: .01em; white-space: nowrap; }
.pos-row-actions { flex-wrap: nowrap; }
.pos-method-card { padding: 17px; }
.pos-method-card .card-header { margin-bottom: 12px; }
.pos-shift-history .data-table { min-width: 760px; }
.pos-difference,.pos-refund-money { color: var(--red) !important; }
.pos-query-state { min-height: 340px; display: grid; place-content: center; justify-items: center; gap: 10px; border: 1px dashed rgba(119,78,45,.22); border-radius: 22px; color: var(--muted); background: rgba(255,255,255,.58); text-align: center; }
.pos-query-state strong { color: var(--text); font-size: 15px; }
.pos-query-state small { font-size: 11px; }
.pos-unsettled-warning { display: flex; align-items: center; gap: 6px; }
.pos-callback-notice { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.pos-callback-notice > div { min-width: 0; display: grid; gap: 3px; }
.pos-callback-notice span { line-height: 1.5; }
.pos-callback-notice .btn { flex: 0 0 auto; }
.pos-callback-table { margin-top: 13px; }
.pos-callback-table .data-table { min-width: 900px; }
.pos-callback-table td small { margin-top: 4px; display: block; color: var(--muted); font-size: 10px; }
.pos-order-form { display: grid; gap: 15px; }
.pos-order-lines { display: grid; gap: 9px; }
.pos-order-line {
  padding: 11px;
  display: grid;
  grid-template-columns: minmax(180px,1.35fr) minmax(120px,.68fr) minmax(165px,.9fr) 82px 112px auto;
  align-items: end;
  gap: 9px;
  border: 1px solid rgba(119,78,45,.13);
  border-radius: 15px;
  background: #fcfaf7;
}
.pos-order-line .field { gap: 5px; }
.pos-line-remove { margin-bottom: 1px; }
.pos-order-meta { padding-top: 14px; border-top: 1px solid var(--line); }
.pos-order-submit { justify-self: stretch; }
.pos-close-summary,.pos-detail-summary { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; }
.pos-close-summary .summary-cell,.pos-detail-summary .summary-cell { background: #faf7f2; }
.pos-detail-fact-note { margin: 13px 0; }
.pos-detail-section { margin-bottom: 13px; }
.pos-detail-section .data-table { min-width: 700px; }
.pos-detail-ledgers { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.pos-detail-ledgers .data-table { min-width: 620px; }
.pos-void-fact { margin-top: 12px; }
.pos-detail-meta { margin-top: 13px; padding: 11px 13px; display: flex; flex-wrap: wrap; gap: 7px 18px; border-radius: 12px; color: var(--muted); background: #f5f5f6; font-size: 10px; }
.pos-reconciliation-form { margin-bottom: 14px; padding: 12px; display: grid; grid-template-columns: minmax(170px,1fr) minmax(170px,1fr) auto; align-items: end; gap: 11px; border: 1px solid var(--line); border-radius: 15px; background: #faf8f5; }
.pos-reconciliation-empty { min-height: 230px; display: grid; place-content: center; justify-items: center; gap: 8px; color: var(--muted); text-align: center; }
.pos-reconciliation-empty strong { color: var(--text); font-size: 14px; }
.pos-reconciliation-result { display: grid; gap: 12px; }
.pos-reconciliation-table .data-table { min-width: 850px; }
.pos-reconciliation-methods { max-width: 650px; }

@media (max-width: 1320px) {
  .pos-control-bar { grid-template-columns: minmax(240px,1fr) repeat(3,minmax(135px,.55fr)); }
  .pos-control-bar > .btn { grid-column: -2 / -1; }
  .pos-kpis { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .pos-ledger-grid { grid-template-columns: 1fr; }
  .pos-method-card { max-width: none; }
  .pos-order-line { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .pos-line-quantity,.pos-line-price { min-width: 0; }
}

@media (max-width: 860px) {
  .pos-control-bar { grid-template-columns: repeat(2,minmax(0,1fr)); align-items: stretch; }
  .pos-control-copy { grid-column: 1 / -1; }
  .pos-control-bar > .btn { grid-column: auto; align-self: end; }
  .pos-shift-banner { grid-template-columns: 52px minmax(0,1fr); }
  .pos-shift-mark { width: 52px; height: 52px; }
  .pos-shift-banner > .actions { grid-column: 1 / -1; justify-content: flex-start; }
  .pos-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .pos-detail-ledgers { grid-template-columns: 1fr; }
  .pos-order-line { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .pos-line-name { grid-column: 1 / -1; }
  .pos-close-summary,.pos-detail-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 560px) {
  .pos-control-bar,.pos-kpis,.pos-order-line,.pos-reconciliation-form { grid-template-columns: 1fr; }
  .pos-control-copy,.pos-line-name { grid-column: auto; }
  .pos-shift-banner { grid-template-columns: 1fr; }
  .pos-shift-banner > .actions { grid-column: auto; }
  .pos-close-summary,.pos-detail-summary { grid-template-columns: 1fr; }
  .pos-callback-notice { align-items: stretch; flex-direction: column; }
  .pos-callback-notice .btn { align-self: flex-start; }
}

/* V6.8.25 参考稿落地：只改变 BI 与订单同步中心的呈现，不改变统计口径。 */
.app-shell[data-route="technician-bi"] :is(.bi-store-page,.bi-trend-page) { width: 100%; min-width: 0; position: relative; }
.app-shell[data-route="technician-bi"] .bi-v25-overview-kpis,
.app-shell[data-route="technician-bi"] .bi-v25-store-kpis,
.app-shell[data-route="technician-bi"] .bi-v25-all-summary {
  margin: 0 0 14px;
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 10px;
}
.app-shell[data-route="technician-bi"] .bi-v25-overview-kpis .bi-kpi,
.app-shell[data-route="technician-bi"] .bi-v25-store-kpis .bi-kpi {
  min-width: 0;
  min-height: 105px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 48px minmax(0,1fr);
  align-items: center;
  gap: 13px;
  border-radius: 10px;
}
.app-shell[data-route="technician-bi"] .bi-v25-overview-kpis .bi-kpi-icon,
.app-shell[data-route="technician-bi"] .bi-v25-store-kpis .bi-kpi-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 21px;
}
.app-shell[data-route="technician-bi"] .bi-v25-overview-kpis .bi-kpi strong,
.app-shell[data-route="technician-bi"] .bi-v25-store-kpis .bi-kpi strong {
  margin-top: 4px;
  overflow: hidden;
  font-size: clamp(22px,2.15vw,31px);
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.app-shell[data-route="technician-bi"] .bi-v25-overview-kpis .bi-kpi small,
.app-shell[data-route="technician-bi"] .bi-v25-store-kpis .bi-kpi small { margin-top: 7px; color: var(--bi23-muted); font-size: 10px; line-height: 1.35; }
.app-shell[data-route="technician-bi"] .bi-v25-all-summary > article {
  min-width: 0;
  min-height: 92px;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1px solid var(--bi23-line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 9px rgba(56,41,29,.035);
}
.app-shell[data-route="technician-bi"] .bi-v25-all-summary article > span {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--bi23-green);
  background: var(--bi23-green-soft);
  font-size: 18px;
}
.app-shell[data-route="technician-bi"] .bi-v25-all-summary .unranked > span { color: var(--bi23-orange); background: var(--bi23-orange-soft); }
.app-shell[data-route="technician-bi"] .bi-v25-all-summary .risk > span { color: var(--bi23-red); background: var(--bi23-red-soft); }
.app-shell[data-route="technician-bi"] .bi-v25-all-summary small { display: block; color: #554d46; font-size: 11px; }
.app-shell[data-route="technician-bi"] .bi-v25-all-summary strong { display: block; margin-top: 4px; color: #171512; font-size: 27px; line-height: 1; }
.app-shell[data-route="technician-bi"] .bi-v25-all-summary strong em { margin-left: 4px; color: #514940; font-size: 11px; font-style: normal; }

.app-shell[data-route="technician-bi"] .bi-v25-store-cards {
  margin-bottom: 14px;
  display: grid;
  grid-template-columns: repeat(5,minmax(0,1fr));
  gap: 10px;
}
.app-shell[data-route="technician-bi"] .bi-v25-store-cards article {
  position: relative;
  min-width: 0;
  min-height: 112px;
  padding: 14px 12px 12px 42px;
  border: 1px solid var(--bi23-line);
  border-radius: 10px;
  background: linear-gradient(145deg,#fff,#fffaf4);
}
.app-shell[data-route="technician-bi"] .bi-v25-store-cards article > b { position: absolute; top: 0; left: 0; width: 30px; height: 30px; display: grid; place-items: center; color: #fff; border-radius: 9px 0 9px 0; background: linear-gradient(145deg,#b56a2d,#71330f); }
.app-shell[data-route="technician-bi"] .bi-v25-store-cards span strong,
.app-shell[data-route="technician-bi"] .bi-v25-store-cards span small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-shell[data-route="technician-bi"] .bi-v25-store-cards span strong { font-size: 14px; }
.app-shell[data-route="technician-bi"] .bi-v25-store-cards span small { margin-top: 3px; color: var(--bi23-muted); font-size: 9px; }
.app-shell[data-route="technician-bi"] .bi-v25-store-cards dl { margin: 10px 0 0; display: grid; gap: 5px; }
.app-shell[data-route="technician-bi"] .bi-v25-store-cards dl div { display: flex; justify-content: space-between; gap: 7px; }
.app-shell[data-route="technician-bi"] .bi-v25-store-cards dt,
.app-shell[data-route="technician-bi"] .bi-v25-store-cards dd { margin: 0; font-size: 10px; }
.app-shell[data-route="technician-bi"] .bi-v25-store-cards dd { color: var(--bi23-green); font-weight: 800; }
.app-shell[data-route="technician-bi"] .bi-v25-store-grid { margin-bottom: 14px; display: grid; grid-template-columns: minmax(0,1.7fr) minmax(280px,.9fr); gap: 12px; }
.app-shell[data-route="technician-bi"] .bi-v25-store-grid > article { min-width: 0; min-height: 310px; padding: 15px; border-radius: 10px; }
.app-shell[data-route="technician-bi"] :is(.bi-v25-store-chart,.bi-v25-store-coverage,.bi-v25-store-table,.bi-v25-trend-table) header { margin-bottom: 13px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.app-shell[data-route="technician-bi"] :is(.bi-v25-store-chart,.bi-v25-store-coverage,.bi-v25-store-table,.bi-v25-trend-table) h3 { margin: 0; font-size: 16px; }
.app-shell[data-route="technician-bi"] :is(.bi-v25-store-chart,.bi-v25-store-table,.bi-v25-trend-table) header p,
.app-shell[data-route="technician-bi"] :is(.bi-v25-store-table,.bi-v25-trend-table) header small { margin: 3px 0 0; color: var(--bi23-muted); font-size: 9px; }
.app-shell[data-route="technician-bi"] .bi-v25-store-bar { min-height: 47px; display: grid; grid-template-columns: 100px minmax(80px,1fr) 40px minmax(80px,1fr) 48px; align-items: center; gap: 8px; border-top: 1px solid var(--bi23-line-soft); font-size: 10px; }
.app-shell[data-route="technician-bi"] .bi-v25-store-bar > strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-shell[data-route="technician-bi"] .bi-v25-store-bar > span { height: 8px; overflow: hidden; border-radius: 99px; background: #eeeae5; }
.app-shell[data-route="technician-bi"] .bi-v25-store-bar i { height: 100%; display: block; border-radius: inherit; background: var(--bi23-green); }
.app-shell[data-route="technician-bi"] .bi-v25-store-bar i.repeat { background: var(--bi23-orange); }
.app-shell[data-route="technician-bi"] .bi-v25-coverage-donut { width: 150px; height: 150px; margin: 5px auto 13px; display: grid; place-content: center; justify-items: center; border: 19px solid var(--bi23-green); border-top-color: #dce4df; border-radius: 50%; }
.app-shell[data-route="technician-bi"] .bi-v25-coverage-donut strong { font-size: 27px; }
.app-shell[data-route="technician-bi"] .bi-v25-coverage-donut small { margin-top: 3px; color: var(--bi23-muted); font-size: 8px; }
.app-shell[data-route="technician-bi"] .bi-v25-store-coverage ul { margin: 0; padding: 0; display: grid; list-style: none; }
.app-shell[data-route="technician-bi"] .bi-v25-store-coverage li { min-height: 31px; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 8px; border-top: 1px solid var(--bi23-line-soft); font-size: 9px; }
.app-shell[data-route="technician-bi"] .bi-v25-store-coverage li em { color: var(--bi23-green); font-style: normal; }
.app-shell[data-route="technician-bi"] .bi-v25-store-coverage li em.is-risk { color: var(--bi23-red); }
.app-shell[data-route="technician-bi"] .bi-v25-store-table,
.app-shell[data-route="technician-bi"] .bi-v25-trend-table { padding: 14px; overflow: hidden; }
.app-shell[data-route="technician-bi"] :is(.bi-v25-store-table,.bi-v25-trend-table) table { width: 100%; min-width: 780px; border-collapse: collapse; }
.app-shell[data-route="technician-bi"] :is(.bi-v25-store-table,.bi-v25-trend-table) th,
.app-shell[data-route="technician-bi"] :is(.bi-v25-store-table,.bi-v25-trend-table) td { height: 38px; padding: 7px 10px; border-top: 1px solid var(--bi23-line-soft); font-size: 10px; text-align: left; }
.app-shell[data-route="technician-bi"] :is(.bi-v25-store-table,.bi-v25-trend-table) th { color: #6d645c; background: #fbfaf8; }
.app-shell[data-route="technician-bi"] .bi-v25-trend-summary { margin-bottom: 14px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.app-shell[data-route="technician-bi"] .bi-v25-trend-summary article { min-height: 95px; padding: 14px; border: 1px solid var(--bi23-line); border-radius: 10px; background: #fff; }
.app-shell[data-route="technician-bi"] .bi-v25-trend-summary span { color: var(--bi23-muted); font-size: 10px; }
.app-shell[data-route="technician-bi"] .bi-v25-trend-summary strong { display: block; margin-top: 5px; font-size: 25px; }
.app-shell[data-route="technician-bi"] .bi-v25-trend-summary strong small { font-size: 10px; }
.app-shell[data-route="technician-bi"] .bi-v25-trend-summary p { margin: 6px 0 0; color: var(--bi23-muted); font-size: 9px; }
.app-shell[data-route="technician-bi"] .bi-v25-trend-grid { margin-bottom: 14px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.app-shell[data-route="technician-bi"] .bi-v25-trend-card { min-width: 0; min-height: 230px; padding: 13px; }
.app-shell[data-route="technician-bi"] .bi-v25-trend-card header { display: flex; align-items: center; justify-content: space-between; }
.app-shell[data-route="technician-bi"] .bi-v25-trend-card h3 { margin: 0; font-size: 14px; }
.app-shell[data-route="technician-bi"] .bi-v25-trend-card header span { color: var(--bi23-brown); font-size: 13px; font-weight: 800; }
.app-shell[data-route="technician-bi"] .bi-v25-trend-card svg { width: 100%; height: 132px; margin: 7px 0 3px; overflow: visible; }
.app-shell[data-route="technician-bi"] .bi-v25-trend-card svg g { stroke: #ece7e2; stroke-width: .5; }
.app-shell[data-route="technician-bi"] .bi-v25-trend-card polyline { fill: none; stroke: var(--bi23-orange); stroke-width: 2; vector-effect: non-scaling-stroke; }
.app-shell[data-route="technician-bi"] .bi-v25-trend-card circle { fill: #fff; stroke: var(--bi23-orange); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.app-shell[data-route="technician-bi"] .bi-v25-trend-card circle.is-provisional {
  fill: #fff8e9;
  stroke: #b77a22;
  stroke-width: 1.8;
  stroke-dasharray: 2 1.5;
}
.app-shell[data-route="technician-bi"] .bi-v25-trend-card :is(header,footer) small.is-provisional,
.app-shell[data-route="technician-bi"] .bi-v25-trend-table td.is-provisional small {
  display: block;
  color: #976118;
  font-weight: 700;
  white-space: nowrap;
}
.app-shell[data-route="technician-bi"] .bi-v25-trend-table td.is-provisional {
  background: #fffaf0;
}
.app-shell[data-route="technician-bi"] .bi-v25-trend-card footer { display: flex; justify-content: space-between; gap: 4px; }
.app-shell[data-route="technician-bi"] .bi-v25-trend-card footer span { min-width: 0; display: grid; justify-items: center; }
.app-shell[data-route="technician-bi"] .bi-v25-trend-card footer b,
.app-shell[data-route="technician-bi"] .bi-v25-trend-card footer small { max-width: 60px; overflow: hidden; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.app-shell[data-route="technician-bi"] .bi-v25-trend-card footer small { color: var(--bi23-muted); }

.app-shell[data-route="orders"] .order-import-page { width: min(1240px,100%); gap: 14px; }
.app-shell[data-route="orders"] .topbar { display: none; }
.app-shell[data-route="orders"] .content { padding-top: 14px; }
.order-sync-heading { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.order-sync-heading > div:first-child span { color: #9b651f; font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.order-sync-heading h2 { margin: 3px 0 0; color: #211a15; font-size: 25px; letter-spacing: -.035em; }
.order-sync-heading p { margin: 5px 0 0; color: #7b7168; font-size: 11px; }
.order-sync-heading > div:last-child { display: flex; align-items: center; gap: 8px; }
.order-sync-cloud { min-height: 38px; padding: 0 12px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid rgba(80,59,44,.12); border-radius: 9px; color: #397552; background: #fff; font-size: 10px; white-space: nowrap; }
.order-sync-cloud i { width: 7px; height: 7px; border-radius: 50%; background: #18a75f; }
.order-sync-tabs { min-height: 48px; padding: 0 9px; display: flex; align-items: stretch; gap: 28px; border: 1px solid rgba(82,60,42,.11); border-radius: 11px; background: rgba(255,255,255,.84); }
.order-sync-tabs button { position: relative; padding: 0 2px; border: 0; color: #655b53; background: transparent; cursor: pointer; font-size: 12px; font-weight: 700; }
.order-sync-tabs button.is-active { color: #8b4b17; }
.order-sync-tabs button.is-active::after { position: absolute; right: 0; bottom: 0; left: 0; height: 3px; content: ''; border-radius: 3px 3px 0 0; background: #9b571f; }
.order-sync-tabs button b { min-width: 17px; height: 17px; margin-left: 3px; padding: 0 4px; display: inline-grid; place-items: center; border-radius: 99px; color: #fff; background: #c44938; font-size: 8px; }
.order-sync-kpis { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.order-sync-kpis article { min-width: 0; min-height: 98px; padding: 13px 15px; display: grid; grid-template-columns: 48px minmax(0,1fr); align-items: center; gap: 12px; border: 1px solid rgba(82,60,42,.11); border-radius: 11px; background: #fff; }
.order-sync-kpis article > span { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; color: #168554; background: #e9f7ef; font-size: 19px; }
.order-sync-kpis article.is-gold > span { color: #a76a17; background: #fff2dc; }
.order-sync-kpis article.is-orange > span { color: #ca4b2e; background: #fff0eb; }
.order-sync-kpis small { display: block; color: #5d544d; font-size: 10px; }
.order-sync-kpis strong { display: block; margin-top: 3px; font-size: 24px; }
.order-sync-kpis strong em { margin-left: 3px; font-size: 10px; font-style: normal; }
.order-sync-kpis p { margin: 5px 0 0; overflow: hidden; color: #8a8077; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.order-sync-issues { overflow: hidden; border: 1px solid rgba(82,60,42,.11); border-radius: 11px; background: #fff; }
.order-sync-issues > header { min-height: 67px; padding: 12px 15px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid rgba(82,60,42,.08); }
.order-sync-issues h2 { margin: 0; font-size: 17px; }
.order-sync-issues header p { margin: 4px 0 0; color: #81766e; font-size: 9px; }
.order-sync-issues .data-table { min-width: 760px; }
.order-sync-empty { min-height: 112px; display: grid; place-content: center; justify-items: center; gap: 5px; text-align: center; }
.order-sync-empty span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #2b9460; }
.order-sync-empty p { margin: 0; color: #80756c; font-size: 10px; }

@media (max-width: 1180px) {
  .app-shell[data-route="technician-bi"] :is(.bi-v25-overview-kpis,.bi-v25-store-kpis,.bi-v25-all-summary) { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .app-shell[data-route="technician-bi"] .bi-v25-store-cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .app-shell[data-route="technician-bi"] .bi-v25-store-grid { grid-template-columns: 1fr; }
  .app-shell[data-route="technician-bi"] .bi-v25-trend-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .order-sync-heading { align-items: flex-start; flex-direction: column; }
  .order-sync-heading > div:last-child { width: 100%; flex-wrap: wrap; }
  .order-sync-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 760px) {
  .app-shell[data-route="technician-bi"] :is(.bi-v25-overview-kpis,.bi-v25-store-kpis,.bi-v25-all-summary,.bi-v25-store-cards,.bi-v25-trend-summary,.bi-v25-trend-grid) { grid-template-columns: 1fr; }
  .app-shell[data-route="technician-bi"] .bi-v25-store-bar { grid-template-columns: 72px minmax(70px,1fr) 34px; }
  .app-shell[data-route="technician-bi"] .bi-v25-store-bar > :nth-child(n+4) { display: none; }
  .order-sync-heading > div:last-child > * { flex: 1 1 145px; }
  .order-sync-cloud { justify-content: center; }
  .order-sync-tabs { gap: 18px; overflow-x: auto; }
  .order-sync-tabs button { flex: 0 0 auto; min-height: 46px; }
  .order-sync-kpis { grid-template-columns: 1fr; }
  .order-sync-issues > header { align-items: stretch; flex-direction: column; }
}

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; background: var(--bg); color: var(--text); }
body {
  min-width: 1180px;
  background:
    radial-gradient(1000px 480px at 98% -10%, rgba(235, 211, 198, .42), transparent 68%),
    radial-gradient(780px 440px at 40% 108%, rgba(222, 226, 232, .40), transparent 64%),
    linear-gradient(180deg, #fafafa 0%, var(--bg) 47%, #f3f4f6 100%);
}
button, input, select, textarea { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }

.boot-screen {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  color: var(--text);
}
.boot-screen strong { font-size: 21px; letter-spacing: -.03em; }
.boot-screen span { color: var(--muted); font-size: 13px; }

.app-shell {
  --area: var(--quality);
  --area-deep: var(--quality-deep);
  --area-soft: var(--quality-soft);
  --area-glow: rgba(96, 127, 140, .16);
  --area-line: rgba(96, 127, 140, .20);
  --area-shadow: rgba(64, 90, 103, .23);
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
}
.app-shell.area-performance {
  --area: var(--performance);
  --area-deep: var(--performance-deep);
  --area-soft: var(--performance-soft);
  --area-glow: rgba(176, 136, 82, .16);
  --area-line: rgba(176, 136, 82, .20);
  --area-shadow: rgba(118, 81, 53, .24);
}
.app-shell.area-system {
  --area: var(--system);
  --area-deep: var(--system-deep);
  --area-soft: var(--system-soft);
  --area-glow: rgba(116, 128, 138, .15);
  --area-line: rgba(116, 128, 138, .19);
  --area-shadow: rgba(89, 100, 109, .21);
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  width: 280px;
  padding: 20px 14px 16px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(60, 60, 67, .10);
  background: rgba(255, 255, 255, .72);
  box-shadow: 12px 0 40px rgba(60, 52, 47, .035);
  backdrop-filter: saturate(180%) blur(24px);
}
.brand {
  height: 72px;
  padding: 9px 13px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(60, 60, 67, .10);
  border-radius: 20px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 3px 12px rgba(49, 42, 37, .055);
  overflow: hidden;
  transition: transform .28s cubic-bezier(.2,.8,.2,1), box-shadow .28s ease, border-color .28s ease;
}
.brand:hover { transform: translateY(-1px); border-color: rgba(128, 91, 78, .22); box-shadow: 0 10px 22px rgba(49, 42, 37, .09); }
.brand img { width: 190px; height: 52px; object-fit: contain; object-position: left center; }
.brand-context { padding: 15px 9px 11px; display: grid; gap: 3px; }
.brand-context strong { color: var(--text); font-size: 13px; font-weight: 730; letter-spacing: -.01em; }
.brand-context span { color: var(--muted); font-size: 11px; }
.nav {
  display: grid; gap: 12px; overflow: auto; padding: 2px 2px 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(178,119,47,.22) transparent;
}
.nav:hover,.nav:focus-within { scrollbar-color: rgba(183,122,49,.72) transparent; }
.nav::-webkit-scrollbar { width: 5px; height: 5px; }
.nav::-webkit-scrollbar-track,.nav::-webkit-scrollbar-corner { background: transparent; }
.nav::-webkit-scrollbar-thumb { border-radius: 999px; background: rgba(178,119,47,.18); }
.nav:hover::-webkit-scrollbar-thumb,.nav:focus-within::-webkit-scrollbar-thumb { background: rgba(183,122,49,.72); }
.nav-group { display: grid; gap: 3px; }
.nav-group-label { display: flex; align-items: center; gap: 6px; padding: 0 9px 5px; color: #8e8e93; font-size: 10px; font-weight: 750; letter-spacing: .08em; }
.nav-group-label::before { width: 5px; height: 5px; content: ""; border-radius: 50%; background: #aaa; box-shadow: 0 0 0 3px rgba(60,60,67,.05); }
.nav-group[data-area="quality"] .nav-group-label::before { background: var(--quality); box-shadow: 0 0 0 3px rgba(96,127,140,.12); }
.nav-group[data-area="performance"] .nav-group-label::before { background: var(--performance); box-shadow: 0 0 0 3px rgba(176,136,82,.12); }
.nav-group[data-area="system"] .nav-group-label::before { background: var(--system); box-shadow: 0 0 0 3px rgba(116,128,138,.12); }
.nav-item {
  width: 100%;
  min-height: 43px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 13px;
  color: #515155;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 610;
  text-align: left;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.nav-item:hover { color: var(--text); transform: translateX(2px); background: rgba(60, 60, 67, .055); }
.nav-item.is-active { color: var(--coffee-dark); box-shadow: inset 0 0 0 1px rgba(152, 102, 82, .12), 0 4px 12px rgba(50,43,39,.035); }
.nav-item.is-active[data-area="quality"] { color: var(--quality-deep); background: linear-gradient(135deg, #e7eef2, #fbfcfd); box-shadow: inset 0 0 0 1px rgba(96,127,140,.16), 0 4px 12px rgba(50,43,39,.035); }
.nav-item.is-active[data-area="performance"] { color: var(--performance-deep); background: linear-gradient(135deg, #f8ebd8, #fffaf4); box-shadow: inset 0 0 0 1px rgba(176,136,82,.16), 0 4px 12px rgba(50,43,39,.035); }
.nav-item.is-active[data-area="system"] { color: var(--system-deep); background: linear-gradient(135deg, #edf0f1, #fafbfb); box-shadow: inset 0 0 0 1px rgba(116,128,138,.16), 0 4px 12px rgba(50,43,39,.035); }
.nav-icon {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #7c6258;
  background: rgba(128, 91, 78, .09);
  font-size: 14px;
  line-height: 1;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), background .25s ease, color .25s ease, box-shadow .25s ease;
}
.nav-item.is-active .nav-icon { color: #fff; transform: scale(1.04); }
.nav-item.is-active[data-area="quality"] .nav-icon { background: linear-gradient(145deg, #405a67, #8aa0aa); box-shadow: 0 5px 12px rgba(64,90,103,.23); }
.nav-item.is-active[data-area="performance"] .nav-icon { background: linear-gradient(145deg, #765135, #c49a61); box-shadow: 0 5px 12px rgba(118,81,53,.23); }
.nav-item.is-active[data-area="system"] .nav-icon { background: linear-gradient(145deg, #59646d, #9aa6ac); box-shadow: 0 5px 12px rgba(89,100,109,.22); }
.sidebar-status { margin-top: auto; padding: 14px 7px 0; border-top: 1px solid rgba(60, 60, 67, .10); }
.status-row { display: flex; align-items: center; gap: 8px; margin: 8px 0; color: var(--muted); font-size: 11px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #b77a31; box-shadow: 0 0 0 3px rgba(183,122,49,.13); animation: status-pulse 2.7s ease-out infinite; }
.pc-cloud-status > span:last-child,.mini-connection-row > span:last-child { min-width: 0; display: grid; gap: 2px; text-align: left; }
.pc-cloud-status strong,.mini-connection-row strong { color: rgba(255,247,235,.88); font-size: 11px; font-weight: 720; }
.pc-cloud-status small,.mini-connection-row small { overflow: hidden; color: rgba(255,244,225,.48); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.status-dot.status-dot-cloud { background: #71889b; box-shadow: 0 0 0 3px rgba(113,136,155,.18); }
.mini-connection-row { width: 100%; min-height: 39px; padding: 4px 0; border: 0; color: inherit; background: transparent; cursor: pointer; }
.mini-connection-row:hover { color: #fff; }
.mini-connection-row .status-symbol { flex: 0 0 auto; width: 18px; height: 18px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; font-size: 10px; font-weight: 850; }
.mini-connection-row.is-normal .status-symbol { color: #fff8ea; border-color: rgba(213,165,91,.55); background: #b77a31; box-shadow: 0 0 0 3px rgba(213,165,91,.11); }
.mini-connection-row.is-attention .status-symbol,.mini-connection-row.is-checking .status-symbol { color: #f4f8fb; border-color: rgba(113,136,155,.55); background: #71889b; }
.mini-connection-row.is-disconnected .status-symbol { color: #fff; border-color: rgba(194,78,63,.58); background: #ad4c3e; box-shadow: 0 0 0 3px rgba(194,78,63,.11); }
.user-card { margin-top: 12px; padding: 10px; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 9px; border: 1px solid rgba(60, 60, 67, .10); border-radius: 16px; background: rgba(255, 255, 255, .74); }
.avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: linear-gradient(145deg, #ad7f6d, #805b4e); font-size: 12px; font-weight: 750; }
.user-copy { min-width: 0; }
.user-copy strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.user-copy span { display: block; overflow: hidden; margin-top: 2px; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.user-menu { padding: 4px; border: 0; border-radius: 9px; color: var(--muted); background: transparent; cursor: pointer; font-size: 17px; }
.user-menu:hover { background: rgba(60, 60, 67, .08); }

.main { position: relative; grid-column: 2; min-width: 0; isolation: isolate; }
.main::before { position: absolute; top: 0; right: 0; z-index: -1; width: min(58vw, 930px); height: 620px; content: ""; opacity: .85; background: radial-gradient(ellipse at 80% 2%, var(--area-glow), transparent 69%); pointer-events: none; transition: background .5s ease; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 15;
  min-height: 108px;
  padding: 20px 34px 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border-bottom: 1px solid rgba(60, 60, 67, .08);
  background: linear-gradient(105deg, rgba(250,250,251,.92), rgba(250,250,251,.68) 58%, var(--area-soft));
  backdrop-filter: saturate(180%) blur(22px);
}
.page-title { min-width: 0; }
.page-eyebrow { display: block; margin-bottom: 5px; color: var(--area-deep); font-size: 10px; font-weight: 760; letter-spacing: .08em; }
.page-title h1 { margin: 0; color: var(--text); font-size: 28px; font-weight: 760; letter-spacing: -.045em; }
.page-title p { margin: 6px 0 0; overflow: hidden; color: var(--muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.header-tools { display: flex; align-items: flex-end; gap: 10px; }
.header-save { min-height: 38px; display: inline-flex; align-items: center; gap: 7px; padding: 0 5px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.header-save i { width: 7px; height: 7px; border-radius: 50%; background: #b77a31; box-shadow: 0 0 0 3px rgba(183,122,49,.11); }
.filter-control { display: grid; gap: 5px; }
.filter-control label { padding-left: 2px; color: #8e8e93; font-size: 10px; font-weight: 650; }
.filter-control select { min-width: 134px; }
.content { max-width: 1720px; padding: 22px 34px 44px; }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid-wide { grid-template-columns: minmax(0, 1.58fr) minmax(350px, .82fr); }
.grid-dashboard-bottom { grid-template-columns: .9fr .9fr 1.15fr; }
.span-2 { grid-column: span 2; }

.operations-summary .summary-cell { min-height: 116px; display: grid; align-content: center; gap: 6px; }
.operations-summary .summary-cell strong { font-size: 26px; letter-spacing: -.04em; }
.operations-summary .summary-cell small { color: var(--muted); font-size: 11px; line-height: 1.45; }
.operations-shell { padding: 0; overflow: hidden; }
.operations-tabs { margin: 0; padding: 10px; display: flex; gap: 6px; border-bottom: 1px solid var(--line); background: var(--surface-muted); }
.operations-tabs .segmented-item { min-height: 38px; padding: 0 15px; border: 1px solid transparent; border-radius: 11px; background: transparent; cursor: pointer; color: var(--muted); font-size: 12px; font-weight: 650; }
.operations-tabs .segmented-item:hover { color: var(--text); background: rgba(255,255,255,.72); }
.operations-tabs .segmented-item.is-active { color: var(--system-deep); border-color: var(--line); background: #fff; box-shadow: 0 2px 8px rgba(49,47,45,.055); }
.operations-content { padding: 18px; }
.operations-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.operations-config-form { max-width: 980px; }
.operations-attachment-preview { min-height: 280px; display: grid; place-items: center; overflow: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-muted); }
.operations-attachment-image { display: block; max-width: 100%; max-height: 68vh; object-fit: contain; }
.operations-attachment-frame { display: block; width: 100%; height: 68vh; border: 0; background: #fff; }
.timeline-list { display: grid; gap: 0; }
.timeline-item { position: relative; min-height: 68px; padding: 2px 0 18px 28px; }
.timeline-item::before { position: absolute; top: 10px; bottom: -6px; left: 7px; width: 1px; content: ""; background: var(--line-strong); }
.timeline-item:last-child::before { display: none; }
.timeline-item > i { position: absolute; top: 6px; left: 2px; width: 11px; height: 11px; border: 3px solid #fff; border-radius: 50%; background: var(--system); box-shadow: 0 0 0 1px var(--line-strong); }
.timeline-item p { margin: 5px 0; color: var(--text-2); font-size: 12px; line-height: 1.55; }
.timeline-item small { color: var(--muted); font-size: 10px; }

@media (max-width: 1480px) {
  .operations-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .operations-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 技师质量综合 BI — screenshot-aligned amber / graphite / blue-grey only. */
.app-shell[data-route="technician-bi"] { --area: #b77a31; --area-deep: #62412e; --area-soft: #f8ecdf; --area-glow: rgba(190,132,79,.18); --area-line: rgba(183,122,49,.22); --area-shadow: rgba(92,57,38,.18); }
.app-shell[data-route="technician-bi"] .content { max-width: none; padding-top: 15px; }
.bi-page-heading { min-height: 63px; display: flex; align-items: flex-start; justify-content: space-between; }
.bi-page-heading span { color: #9a8a7e; font-size: 11px; }
.bi-page-heading h2 { margin: 5px 0 3px; color: #221a16; font-size: 24px; letter-spacing: -.045em; }
.bi-page-heading p { margin: 0; color: #8b7d73; font-size: 11px; }
.bi-filter-shell { margin-bottom: 14px; overflow: hidden; border: 1px solid rgba(83,58,39,.12); border-radius: 16px; background: rgba(255,253,249,.92); box-shadow: 0 7px 22px rgba(63,42,27,.055); }
.bi-filterbar { min-height: 58px; padding: 9px 12px; display: flex; align-items: center; flex-wrap: wrap; gap: 9px; background: transparent; }
.bi-filter-primary { border-bottom: 1px solid rgba(83,58,39,.09); }
.bi-filter-secondary { min-height: 48px; justify-content: flex-end; background: #fbf8f4; }
.bi-filter-context { margin-right: auto; display: flex; align-items: center; gap: 9px; color: #40352e; font-size: 11px; }
.bi-filter-context span { color: #97887d; }
.bi-filter-context strong { font-weight: 700; }
.bi-search-field { min-width: 255px; height: 34px; padding: 0 10px; display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 9px; color: #86786e; background: #fff; }
.bi-search-field input { width: 100%; height: 100%; padding: 0; border: 0; outline: 0; background: transparent; font-size: 11px; }
.bi-range-group { display: flex; gap: 2px; padding: 3px; border-radius: 10px; background: #eee9e3; }
.bi-range { min-height: 32px; padding: 0 12px; border: 1px solid transparent; border-radius: 8px; color: #74685f; background: transparent; cursor: pointer; font-size: 11px; font-weight: 680; }
.bi-range:hover { color: #5d3b25; }
.bi-range.is-active { color: #87541b; border-color: rgba(185,123,47,.32); background: #fffdf9; box-shadow: 0 3px 9px rgba(61,42,28,.08); }
.bi-field { display: grid; gap: 3px; min-width: 112px; color: #918278; font-size: 10px; font-weight: 680; }
.bi-field input,.bi-field select { width: 100%; min-height: 33px; padding: 0 9px; border: 1px solid var(--line); border-radius: 9px; outline: 0; color: var(--text); background: #fff; font-size: 11px; }
.bi-field input:focus,.bi-field select:focus { border-color: #aa7544; box-shadow: 0 0 0 3px rgba(170,117,68,.12); }
.bi-select-field { min-width: 142px; }
.bi-select-field > span { display: none; }
.bi-secondary-select { min-width: 132px; }
.bi-secondary-select > span { display: none; }
.bi-date-field { min-width: 132px; }
.bi-effective-date { min-height: 34px; padding: 0 12px; display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 9px; color: #82766e; background: #fff; font-size: 10px; }
.bi-effective-date b { color: #67422e; font-weight: 680; }
.bi-refresh { white-space: nowrap; }
.bi-tabs { margin: 0 0 13px; padding: 0 3px; display: flex; align-items: center; gap: 25px; border-bottom: 1px solid var(--line); }
.bi-tabs > button { position: relative; min-height: 39px; padding: 0 2px; border: 0; color: #766b63; background: transparent; cursor: pointer; font-size: 12px; font-weight: 700; }
.bi-tabs > button::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; content: ''; border-radius: 3px; background: transparent; }
.bi-tabs > button:hover { color: #4d382c; }
.bi-tabs > button.is-active { color: #9a5f19; }
.bi-tabs > button.is-active::after { background: #bd7a25; }
.bi-tabs > .bi-weight-trigger { margin-left: auto; padding: 0 12px; color: #7a4b20; border: 1px solid rgba(158,105,64,.24); border-radius: 9px 9px 0 0; background: #fff9ef; }
.bi-result-meta { min-height: 30px; display: flex; justify-content: space-between; color: #44382f; font-size: 11px; }
.bi-result-meta small { color: #8d8076; }
.bi-kpis { margin-bottom: 12px; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 11px; }
.bi-kpi { min-height: 75px; padding: 13px; display: flex; align-items: center; gap: 11px; overflow: hidden; border: 1px solid rgba(99,67,46,.10); border-radius: 13px; background: #fff; box-shadow: 0 6px 18px rgba(55,38,24,.05); }
.bi-kpi-icon { width: 36px; height: 36px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: #aa6b24; background: #fbedd6; font-size: 16px; }
.bi-kpi > div { min-width: 0; }
.bi-kpi > div > span { color: #746a63; font-size: 10px; font-weight: 680; }
.bi-kpi > div > strong { display: block; margin-top: 2px; color: #2f2520; font-size: 22px; letter-spacing: -.04em; }
.bi-kpi > div > small { display: block; overflow: hidden; margin-top: 2px; color: #958981; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.bi-kpi.teal .bi-kpi-icon { color: #527083; background: #e9f0f4; }.bi-kpi.blue .bi-kpi-icon { color: #4b7392; background: #e8eef5; }.bi-kpi.risk .bi-kpi-icon { color: #ae5643; background: #fbece7; }.bi-kpi.amber .bi-kpi-icon,.bi-kpi.gold .bi-kpi-icon { color: #b36c18; background: #fbedd6; }
.bi-state { min-height: 235px; padding: 34px; display: grid; place-content: center; justify-items: center; gap: 9px; border: 1px dashed rgba(116,83,61,.27); border-radius: 19px; color: var(--muted); background: rgba(255,255,255,.55); text-align: center; }
.bi-state strong { color: var(--text); font-size: 15px; }.bi-state p { max-width: 520px; margin: 0; font-size: 12px; line-height: 1.6; }
.bi-state-icon { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 12px; color: #805437; background: #f5e7d9; font-size: 20px; font-weight: 800; }
.bi-state-error .bi-state-icon { color: #9b4e35; background: #fcedea; }.bi-state-loading .bi-state-icon { animation: bi-spin 1s linear infinite; } @keyframes bi-spin { to { transform: rotate(360deg); } }
.bi-incomplete { margin-bottom: 13px; border-color: rgba(177,117,46,.25); color: #6e4d2e; background: #fff7e9; }.bi-inline-loading { margin: 0 0 11px; color: #805437; font-size: 11px; font-weight: 650; }
.bi-source-guidance { min-height: 88px; margin: 0 0 14px; padding: 14px 16px; display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 13px; border: 1px solid rgba(182,119,40,.24); border-radius: 15px; color: #4c3829; background: linear-gradient(110deg,#fff8ec,#f7f2ea 58%,#edf2f5); box-shadow: 0 8px 22px rgba(70,47,30,.06); }
.bi-source-guidance-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: #9f631b; background: #f7e4c2; font-size: 20px; font-weight: 800; }
.bi-source-guidance strong { display: block; color: #31251e; font-size: 14px; }.bi-source-guidance p { margin: 4px 0 0; color: #76685e; font-size: 11px; line-height: 1.55; }.bi-source-guidance p b { color: #88571d; }.bi-source-guidance .btn { white-space: nowrap; }
.bi-composite-hold { min-height: 148px; margin: 0 0 14px; padding: 20px 22px; display: grid; grid-template-columns: 45px minmax(0,1fr); gap: 15px; border: 1px solid rgba(102,120,134,.19); border-radius: 17px; background: linear-gradient(120deg,#fffaf2,#f4f1ec 58%,#eaf0f4); box-shadow: 0 9px 23px rgba(53,46,39,.06); }
.bi-composite-hold-icon { width: 45px; height: 45px; display: grid; place-items: center; border-radius: 13px; color: #9a6423; background: #f8ebcd; font-size: 17px; font-weight: 800; }.bi-composite-hold strong { color: #30251f; font-size: 18px; }.bi-composite-hold p { max-width: 850px; margin: 5px 0 10px; color: #73675e; font-size: 11px; line-height: 1.6; }.bi-composite-hold small { display: block; margin-top: 9px; color: #647682; font-size: 10px; }
.bi-hold-reasons { display: flex; flex-wrap: wrap; gap: 6px; }.bi-hold-reasons span { padding: 5px 8px; border: 1px solid rgba(171,105,61,.14); border-radius: 7px; color: #8e4f36; background: #fff4ed; font-size: 10px; font-weight: 700; }
.bi-single-rankings { margin-top: 14px; }.bi-single-rankings-heading { min-height: 52px; padding: 0 3px; display: flex; align-items: center; justify-content: space-between; }.bi-single-rankings-heading strong { color: #33271f; font-size: 16px; }.bi-single-rankings-heading p { margin: 3px 0 0; color: #81746b; font-size: 10px; }.bi-single-rankings-heading > span { padding: 5px 9px; border-radius: 8px; color: #596e7c; background: #ebf0f3; font-size: 9px; font-weight: 700; }
.bi-single-ranking-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 11px; }.bi-metric-leader { min-height: 257px; padding: 14px; overflow: hidden; border: 1px solid rgba(80,59,43,.1); border-radius: 14px; background: #fff; box-shadow: 0 6px 18px rgba(55,38,24,.045); }.bi-metric-leader header { min-height: 46px; display: flex; align-items: center; gap: 9px; border-bottom: 1px solid rgba(72,55,43,.075); }.bi-metric-leader-icon { width: 32px; height: 32px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 9px; color: #a5651c; background: #f8e8cf; }.bi-metric-leader header strong,.bi-metric-leader header small { display: block; }.bi-metric-leader header strong { color: #3c2d24; font-size: 12px; }.bi-metric-leader header small { margin-top: 2px; color: #8b7d73; font-size: 8px; line-height: 1.35; }
.bi-metric-leader.metric-0 .bi-metric-leader-icon,.bi-metric-leader.metric-2 .bi-metric-leader-icon { color: #5d7485; background: #e9eff3; }.bi-metric-leader.metric-4 .bi-metric-leader-icon,.bi-metric-leader.metric-5 .bi-metric-leader-icon { color: #a85d45; background: #f8e9e3; }
.bi-metric-leader-list { display: grid; }.bi-metric-leader-list button { min-width: 0; min-height: 35px; padding: 4px 0; display: grid; grid-template-columns: 20px 27px minmax(75px,.8fr) minmax(60px,1fr) auto; align-items: center; gap: 6px; border: 0; border-bottom: 1px solid rgba(60,60,67,.06); color: #3e3027; background: transparent; cursor: pointer; text-align: left; }.bi-metric-leader-list button:hover { background: #fffaf4; }.bi-metric-leader-list button > b { color: #927960; font-size: 9px; text-align: center; }.bi-metric-leader-list .person-avatar { width: 26px; height: 26px; font-size: 9px; }.bi-metric-leader-list button > span { min-width: 0; }.bi-metric-leader-list button > span strong,.bi-metric-leader-list button > span small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.bi-metric-leader-list button > span strong { font-size: 9px; }.bi-metric-leader-list button > span small { color: #93867c; font-size: 7px; }.bi-metric-leader-list i { height: 5px; overflow: hidden; border-radius: 99px; background: #eee8e1; }.bi-metric-leader-list i em { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#af6b1b,#dfaa59); }.bi-metric-leader-list output { color: #70451e; font-size: 9px; font-weight: 760; white-space: nowrap; }
.bi-metric-source-empty { min-height: 168px; display: grid; place-content: center; justify-items: center; padding: 20px; text-align: center; }.bi-metric-source-empty::before { width: 34px; height: 34px; margin-bottom: 8px; display: grid; place-items: center; content: '—'; border-radius: 10px; color: #6c7d88; background: #edf1f4; font-size: 16px; font-weight: 750; }.bi-metric-source-empty strong { color: #546773; font-size: 11px; }.bi-metric-source-empty p { max-width: 260px; margin: 5px 0 0; color: #92857c; font-size: 9px; line-height: 1.5; }
.bi-weight-strip { margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(6,minmax(0,1fr)) 132px; align-items: stretch; overflow: hidden; border: 1px solid rgba(100,67,44,.12); border-radius: 13px; background: #fff; box-shadow: 0 6px 18px rgba(55,38,24,.05); }
.bi-weight-strip > div { min-height: 58px; padding: 9px 12px; display: grid; grid-template-columns: 28px 1fr; grid-template-rows: 1fr 1fr; align-items: center; gap: 0 8px; border-right: 1px solid rgba(75,54,38,.08); background: #fff; }
.bi-weight-icon { grid-row: span 2; width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; color: #a56820 !important; background: #f8ead5; }
.bi-weight-strip > div:nth-child(1) .bi-weight-icon { color: #527083 !important; background: #e7eff3; }.bi-weight-strip > div:nth-child(3) .bi-weight-icon { color: #4e7591 !important; background: #e8edf4; }.bi-weight-strip > div:nth-child(5) .bi-weight-icon,.bi-weight-strip > div:nth-child(6) .bi-weight-icon { color: #b25b3e !important; background: #f8eae4; }
.bi-weight-strip span { color: #796e66; font-size: 9px; }.bi-weight-strip strong { color: #4a3427; font-size: 14px; }
.bi-weight-strip-action { border: 0; color: #fff; background: linear-gradient(145deg,#cc8a32,#a66319); cursor: pointer; font-size: 10px; font-weight: 720; }
.bi-comparison-note { margin-bottom: 14px; }
.app-shell[data-route="technician-bi"] .bi-podium-card { min-height: 242px; margin-bottom: 13px; padding: 0; overflow: hidden; border-radius: 17px; background: linear-gradient(135deg,#f8ecdc,#fff8ef 48%,#f5e4d2); }
.bi-honor-stage { min-height: 202px; padding: 15px 22px; background: radial-gradient(500px 180px at 50% 100%,rgba(213,165,91,.24),transparent 72%); }
.bi-honor-label { display: flex; align-items: center; gap: 7px; color: #8b613a; font-size: 11px; }
.bi-honor-label strong { font-size: 13px; }.bi-honor-label span { color: #c29455; }
.bi-podium { min-height: 160px; display: grid; grid-template-columns: 1fr 1.18fr 1fr; align-items: end; }
.bi-podium-item { min-width: 0; height: 142px; padding: 13px 24px; display: grid; grid-template-columns: 70px minmax(80px,1fr); grid-template-rows: 20px 55px 28px 22px; align-items: center; gap: 0 12px; border: 0; color: var(--text); background: rgba(255,255,255,.3); cursor: pointer; text-align: left; }
.bi-podium-item.place-1 { height: 157px; order: 2; border: 1px solid rgba(181,119,43,.32); border-radius: 15px 15px 0 0; background: rgba(255,253,249,.78); }.bi-podium-item.place-2 { order: 1; }.bi-podium-item.place-3 { order: 3; }
.bi-podium-title { grid-column: 1 / -1; color: #916233; font-size: 10px; font-weight: 730; }
.bi-podium-portrait { position: relative; grid-row: 2 / 4; width: 64px; height: 64px; }.bi-podium-portrait .person-avatar { width: 64px; height: 64px; border: 3px solid #ddb36f; }
.bi-podium-medal { position: absolute; right: -3px; bottom: -3px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: #fff; background: #c78937; box-shadow: 0 3px 8px rgba(55,33,21,.2); font-size: 11px; font-style: normal; font-weight: 800; }
.bi-crown { position: absolute; top: -22px; right: 5px; color: #d38a24; font-size: 22px; }
.bi-podium-copy { min-width: 0; }.bi-podium-copy small,.bi-podium-copy strong,.bi-podium-copy > b { display: block; }.bi-podium-copy small { color: #8d7e72; font-size: 8px; }.bi-podium-copy strong { margin: 2px 0; overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }.bi-podium-copy > b { color: #704115; font-size: 21px; }.bi-podium-copy > b em { font-size: 9px; font-style: normal; }.bi-podium-copy > b i { margin-left: 4px; font-size: 9px; font-style: normal; }
.bi-podium-facts { grid-column: 1 / -1; display: flex; border: 1px solid rgba(82,58,39,.08); background: rgba(255,255,255,.4); }.bi-podium-facts em { flex: 1; padding: 4px; color: #80736a; font-size: 8px; font-style: normal; text-align: center; }.bi-podium-facts em + em { border-left: 1px solid rgba(82,58,39,.08); }.bi-podium-facts b { color: #554036; }
.bi-podium-link { grid-column: 1 / -1; color: #704a28; font-size: 9px; text-align: center; }
.bi-honor-summary { min-height: 38px; display: flex; align-items: center; justify-content: center; gap: 28px; border-top: 1px solid rgba(82,58,39,.08); background: rgba(255,250,243,.82); }.bi-honor-summary strong { color: #2e231d; font-size: 17px; }.bi-honor-summary small { margin-left: 4px; color: #7e7168; font-size: 9px; font-weight: 600; }.bi-honor-summary i { width: 3px; height: 3px; border-radius: 50%; background: #a77a52; }
.bi-overview-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
.app-shell[data-route="technician-bi"] .bi-ranking-card { min-height: 330px; padding: 13px 16px; }.bi-ranking-card .card-header { margin-bottom: 4px; }.bi-ranking-card .card-title { display: flex; gap: 7px; font-size: 14px; }.bi-list-count { color: #8d7f75; font-size: 9px; }
.bi-rank-list { display: grid; }.bi-rank-list button { min-width: 0; min-height: 34px; padding: 3px 2px; display: grid; grid-template-columns: 22px 28px 75px minmax(100px,1fr) 38px 12px; align-items: center; gap: 7px; border: 0; border-bottom: 1px solid rgba(60,60,67,.065); color: var(--text); background: transparent; cursor: pointer; text-align: left; }.bi-rank-list button:hover { background: #fcf6ef; }.bi-rank-list button > b { color: #8b7667; font-size: 9px; text-align: center; }.bi-rank-list .person-avatar { width: 26px; height: 26px; font-size: 9px; }.bi-rank-person strong,.bi-rank-person small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.bi-rank-person strong { font-size: 9px; }.bi-rank-person small { margin-top: 1px; font-size: 7px; }.bi-rank-bar { height: 7px; overflow: hidden; border-radius: 99px; background: #eee8e1; }.bi-rank-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#b86e13,#dfae60); }.bi-ranking-risk .bi-rank-bar i { background: linear-gradient(90deg,#a95443,#d87a62); }.bi-rank-list em { color: #6e432b; font-size: 10px; font-style: normal; font-weight: 760; text-align: right; }.bi-row-arrow { color: #9a8d83; }
.bi-mini-empty { min-height: 116px; display: grid; place-items: center; color: var(--muted); font-size: 12px; text-align: center; }
.app-shell[data-route="technician-bi"] .bi-table-card { padding: 0; overflow: hidden; border-radius: 14px; }.app-shell[data-route="technician-bi"] .bi-table-toolbar { min-height: 56px; padding: 10px 14px; }.bi-table-toolbar > div:first-child span { margin-left: 8px; color: var(--muted); font-size: 9px; }
.bi-data-table { min-width: 1380px; table-layout: auto; }.app-shell[data-route="technician-bi"] .bi-data-table th { padding: 9px 8px; white-space: nowrap; font-size: 9px; }.app-shell[data-route="technician-bi"] .bi-data-table td { padding: 8px; vertical-align: middle; font-size: 9px; }.bi-data-table tr[data-bi-row] { cursor: pointer; }.bi-data-table tr[data-bi-row]:hover { background: #fffbf7; }
.bi-sort { padding: 0; border: 0; color: inherit; background: transparent; cursor: pointer; font: inherit; font-weight: inherit; }.bi-sort:hover { color: #70462e; }.bi-sort i { margin-left: 4px; color: #a46a40; font-style: normal; }
.bi-rank-medal { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: #615b57; background: #eee9e4; font-weight: 750; }.bi-rank-medal.rank-1 { color: #754713; background: #f2d49b; }.bi-rank-medal.rank-2 { background: #ddd9d5; }.bi-rank-medal.rank-3 { color: #704331; background: #dfb599; }
.bi-rank-unpublished { min-width: 42px; display: grid; justify-items: center; gap: 1px; color: #697a85; }.bi-rank-unpublished b { font-size: 15px; line-height: 1; }.bi-rank-unpublished small { font-size: 7px; white-space: nowrap; }
.bi-store-star { display: grid; gap: 2px; white-space: nowrap; }.bi-store-star small { color: #91847a; font-size: 8px; }.bi-score { color: #693f29; font-size: 12px; }.bi-up { color: #a66a26; font-weight: 700; }.bi-down { color: #ae5944; font-weight: 700; }
.bi-status { display: inline-block; padding: 4px 7px; border-radius: 7px; font-size: 8px; font-weight: 700; white-space: nowrap; }.bi-tone-good { color: #77512f; background: #f7eadb; }.bi-tone-risk { color: #9a4d36; background: #fff0eb; }.bi-tone-neutral { color: #5f6f7b; background: #edf1f4; }.bi-analysis-button { min-height: 25px !important; padding: 0 7px !important; font-size: 8px !important; }
.bi-row-reasons { width: 128px; margin-top: 3px; display: block; overflow: hidden; color: #8b7060; font-size: 7px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.bi-metric-cell { min-width: 73px; display: grid; gap: 2px; }.bi-metric-cell strong { color: #3f3027; font-size: 9px; white-space: nowrap; }.bi-metric-cell small { color: #8a7c72; font-size: 7px; white-space: nowrap; }.bi-metric-cell i { width: 100%; height: 2px; overflow: hidden; border-radius: 99px; background: #eee8e1; }.bi-metric-cell i b { height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg,#b97b34,#d5aa69); }.bi-metric-cell.is-missing strong { color: #9d6b52; }.bi-metric-cell.is-missing small { color: #a55b42; }.bi-metric-cell.is-missing i { display: none; }
.bi-table-note { padding: 10px 14px; color: #786d65; border-top: 1px solid var(--line); font-size: 9px; }.bi-table-card .pagination { padding: 11px 14px; }
.bi-person-toolbar { margin-bottom: 10px; display: flex; justify-content: flex-end; gap: 8px; }.bi-person-toolbar button:first-child { margin-right: auto; }
.bi-person-head { min-height: 115px; margin-bottom: 10px; padding: 15px 23px; display: grid; grid-template-columns: 1.2fr .65fr .85fr 1fr; align-items: center; gap: 18px; border: 1px solid rgba(218,172,102,.22); border-radius: 13px; color: #fff8ec; background: radial-gradient(430px 180px at 100% 0,rgba(212,163,85,.2),transparent 70%),linear-gradient(110deg,#211812,#3a281d 58%,#1d1611); box-shadow: 0 12px 27px rgba(49,32,21,.17); }
.bi-person-head > div { min-width: 0; display: flex; align-items: center; gap: 12px; }.bi-person-head > div + div { min-height: 70px; padding-left: 18px; border-left: 1px solid rgba(255,255,255,.16); }.bi-person-head .person-avatar { width: 68px; height: 68px; border-color: #d9aa64; }.bi-person-head h2 { margin: 0 0 4px; color: #fff; font-size: 19px; }.bi-person-head p { margin: 3px 0 0; color: rgba(255,244,225,.62); font-size: 9px; }.bi-person-head small { color: rgba(255,244,225,.62); font-size: 9px; }
.bi-person-score { display: grid !important; align-content: center; }.bi-person-score > span { color: rgba(255,244,225,.58); font-size: 9px; }.bi-person-score > strong { color: #fff; font-size: 32px; }.bi-person-score > strong small { margin-left: 3px; font-size: 9px; }
.bi-person-rank,.bi-person-level { display: grid !important; align-content: center; gap: 4px; }.bi-person-rank span { font-size: 10px; }.bi-person-rank span strong { color: #e9b967; font-size: 24px; }.bi-person-rank b { color: #e3a955; font-size: 9px; }.bi-person-level > span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; color: #e1ad5e; background: rgba(255,255,255,.08); }.bi-person-level > strong { font-size: 12px; }
.bi-person-metrics { margin-bottom: 11px; display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 7px; }.bi-person-metric { min-height: 107px; padding: 10px 11px; border: 1px solid rgba(87,60,40,.11); border-radius: 11px; background: #fff; box-shadow: 0 5px 15px rgba(55,38,24,.045); }.bi-person-metric > div { display: flex; align-items: center; gap: 8px; }.bi-person-metric-icon { width: 32px; height: 32px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: #a8661b; background: #f8ead4; }.bi-person-metric small,.bi-person-metric strong { display: block; }.bi-person-metric small { color: #7e726a; font-size: 8px; }.bi-person-metric > div strong { margin-top: 2px; color: #30251f; font-size: 16px; }.bi-person-metric p { height: 20px; overflow: hidden; margin: 5px 0; color: #8a7e75; font-size: 7px; line-height: 1.45; }.bi-person-metric footer { display: grid; grid-template-columns: 1fr auto; gap: 2px 6px; color: #796d64; font-size: 7px; }.bi-person-metric footer > strong { color: #5e422f; }.bi-person-metric footer i { grid-column: 1 / -1; height: 3px; overflow: hidden; border-radius: 99px; background: #eee7df; }.bi-person-metric footer i b { display: block; height: 100%; border-radius: inherit; background: #ba7627; }
.bi-person-grid,.bi-source-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 11px; }.app-shell[data-route="technician-bi"] .bi-trend-card,.app-shell[data-route="technician-bi"] .bi-action-card { min-height: 220px; padding: 14px; }.bi-trend-card .card-header,.bi-action-card .card-header { margin-bottom: 5px; }
.bi-trend { position: relative; height: 153px; padding: 4px 8px 0; }.bi-trend svg { width: 100%; height: 117px; overflow: visible; }.bi-trend-grid line { stroke: #e5ddd5; stroke-width: .5; }.bi-trend polyline { fill: none; stroke: #b8701e; stroke-width: 1.5; vector-effect: non-scaling-stroke; }.bi-trend circle { fill: #b8701e; stroke: #fff; stroke-width: .8; vector-effect: non-scaling-stroke; }.bi-trend-labels { position: absolute; right: 8px; bottom: 0; left: 8px; display: grid; grid-template-columns: repeat(6,1fr); }.bi-trend-labels span { display: grid; justify-items: center; }.bi-trend-labels b { color: #6b4228; font-size: 8px; }.bi-trend-labels small { max-width: 70px; overflow: hidden; color: #91847a; font-size: 6px; text-overflow: ellipsis; white-space: nowrap; }
.bi-insights { display: grid; gap: 6px; }.bi-insights > div { padding: 8px 10px; display: grid; grid-template-columns: 105px 1fr; align-items: center; border: 1px solid rgba(80,60,45,.08); border-radius: 8px; background: #fbf8f4; }.bi-insights span { color: #a26b35; font-size: 8px; font-weight: 750; }.bi-insights strong { color: #49342a; font-size: 9px; line-height: 1.4; }.bi-insights .weakness { background: #fff6f0; }.bi-insights .next { background: #f0f4f7; }.bi-insights .forecast { grid-template-columns: 1fr auto auto; background: #fbedd8; }.bi-insights .forecast strong { color: #754315; font-size: 18px; }.bi-insights .forecast small { margin-left: 8px; color: #87663e; font-size: 8px; }
.bi-source-grid { margin-top: 11px; }.app-shell[data-route="technician-bi"] .bi-source-grid > .card { padding: 14px; }.bi-source-grid .card-header { margin-bottom: 5px; }.bi-review-summary { min-height: 90px; display: flex; align-items: center; justify-content: space-around; }.bi-review-summary > div { text-align: center; }.bi-review-summary span,.bi-review-summary strong { display: block; }.bi-review-summary span { color: #8b7e75; font-size: 8px; }.bi-review-summary strong { margin-top: 5px; color: #44342b; font-size: 18px; }.bi-review-summary i { color: #b69470; font-style: normal; }
.bi-evidence-list { display: grid; }.bi-evidence-list > div { padding: 7px 0; border-bottom: 1px solid var(--line); }.bi-evidence-list > div:last-child { border-bottom: 0; }.bi-evidence-list strong { margin-right: 8px; font-size: 9px; }.bi-evidence-list span { color: var(--muted); font-size: 7px; }.bi-evidence-list p { margin: 3px 0 0; color: var(--text-2); font-size: 8px; line-height: 1.4; }
.modal.bi-weight-dialog { width: min(1110px,95vw); border-radius: 21px; background: #fffdf9; }.bi-weight-dialog .modal-body { padding: 0; }.bi-weight-dialog .modal-header { padding: 18px 27px 15px; background: #fffdf9; }.bi-weight-dialog .modal-footer { padding: 13px 27px; background: #fffdf9; }
.bi-weights-modal { display: grid; gap: 0; }.bi-weight-presets { min-height: 58px; padding: 10px 27px; display: flex; align-items: center; gap: 7px; border-bottom: 1px solid var(--line); background: #fbf8f4; }.bi-weight-presets > span { margin-right: 6px; color: var(--muted); font-size: 9px; font-weight: 700; }.bi-weight-presets small { color: var(--muted); font-size: 9px; }.bi-reset-weights { margin-left: auto; }
.bi-weight-workspace { padding: 18px 27px; display: grid; grid-template-columns: minmax(0,1.65fr) minmax(260px,.75fr); gap: 20px; }.bi-weight-editor { min-width: 0; }.bi-weight-rows { display: grid; gap: 7px; }.bi-weight-rows label { min-height: 52px; padding: 8px 11px; display: grid; grid-template-columns: 32px 145px minmax(130px,1fr) 53px 35px; align-items: center; gap: 9px; border-radius: 10px; color: var(--text-2); background: #faf7f3; font-size: 10px; }.bi-weight-row-icon { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 7px; color: #a66b2a; background: #f2e4cf; }.bi-weight-rows label > span:nth-child(2) strong,.bi-weight-rows label > span:nth-child(2) small { display: block; }.bi-weight-rows label > span:nth-child(2) small { margin-top: 2px; color: #988a80; font-size: 6px; }.bi-weight-rows input[type="range"] { accent-color: #a96924; }.bi-weight-rows input[type="number"] { min-height: 31px; padding: 0 5px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }.bi-weight-rows label > b { color: #70452d; font-size: 9px; }
.bi-weight-preview { min-height: 350px; padding: 18px; color: #fff7ea; border-radius: 17px; background: linear-gradient(150deg,#1d1510,#2f221a); }.bi-weight-preview > span { color: rgba(255,244,225,.5); font-size: 8px; }.bi-weight-preview h3 { margin: 5px 0 10px; font-size: 15px; }.bi-donut { position: relative; width: 123px; height: 123px; margin: 5px auto 12px; display: grid; place-items: center; border-radius: 50%; }.bi-donut::before { width: 74px; height: 74px; content: ''; border-radius: 50%; background: #241a14; }.bi-donut > b,.bi-donut > small { position: absolute; }.bi-donut > b { margin-top: -8px; color: #efc782; font-size: 21px; }.bi-donut > small { margin-top: 22px; color: rgba(255,244,225,.42); font-size: 7px; }.bi-trial-list { display: grid; gap: 5px; }.bi-trial-list > div { min-height: 32px; padding: 5px 7px; display: grid; grid-template-columns: 23px 1fr auto 20px; align-items: center; gap: 6px; border-radius: 7px; background: rgba(255,255,255,.055); font-size: 8px; }.bi-trial-list > div > b { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 5px; color: #6b4516; background: #d8aa62; }.bi-trial-list > div > strong { color: #e8c077; }.bi-trial-list p { color: rgba(255,244,225,.62); font-size: 9px; }.bi-weight-preview > small { display: block; margin-top: 10px; color: rgba(255,244,225,.4); font-size: 7px; }
.bi-weight-form { padding: 0 27px 14px; display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 10px; }.bi-weight-form .bi-field { display: grid; }.bi-weight-meta { padding: 0 27px 14px; display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }.bi-weight-meta > div { min-height: 48px; padding: 9px 11px; display: grid; align-content: center; border: 1px solid var(--line); border-radius: 9px; }.bi-weight-meta span { color: #978a80; font-size: 7px; }.bi-weight-meta strong { margin-top: 3px; overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }.bi-weight-warning { margin: 0 27px 17px; padding: 9px 11px; display: flex; gap: 9px; border-radius: 9px; color: #7d5a31; background: #fbedd5; font-size: 8px; }.bi-weight-warning b { padding: 2px 6px; border-radius: 5px; color: #fff; background: #ad711f; }
:root { --bi-donut-0:#5d7b8a;--bi-donut-1:#b7772c;--bi-donut-2:#d1a65f;--bi-donut-3:#d5983d;--bi-donut-4:#8d7893;--bi-donut-5:#c68068; }
@media (max-width:1480px) { .bi-person-metrics { grid-template-columns:repeat(3,1fr); }.bi-podium-item { padding-inline:14px; }.bi-kpis { gap:7px; }.bi-weight-strip { grid-template-columns:repeat(6,minmax(0,1fr)) 112px; } }
@media (max-width:1240px) { .bi-kpis { grid-template-columns:repeat(3,1fr); }.bi-weight-strip { grid-template-columns:repeat(3,1fr); }.bi-weight-strip-action { min-height:50px; }.bi-person-grid,.bi-source-grid,.bi-weight-workspace { grid-template-columns:1fr; }.bi-filterbar { align-items:stretch; }.bi-field { min-width:145px; }.bi-weight-rows label { grid-template-columns:32px 130px minmax(130px,1fr) 53px 35px; }.bi-table-toolbar { align-items:flex-start; }.bi-table-toolbar .actions { flex-wrap:wrap; }.bi-person-head { grid-template-columns:1fr 1fr; }.bi-single-ranking-grid { grid-template-columns:repeat(2,1fr); } }

.card { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-1); backdrop-filter: blur(18px); transition: transform .26s cubic-bezier(.2,.8,.2,1), border-color .26s ease, box-shadow .26s ease, background .26s ease; }
.card:not(.flush):hover { border-color: var(--area-line); box-shadow: 0 16px 36px rgba(43,39,36,.09); transform: translateY(-2px); }
.card.flush { padding: 0; overflow: hidden; }
.card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.card-title { margin: 0; color: var(--text); font-size: 16px; font-weight: 735; letter-spacing: -.02em; }
.card-subtitle { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.hero-card {
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
  padding: 23px 25px;
  display: grid;
  grid-template-columns: 1.25fr repeat(4, minmax(128px, .78fr));
  align-items: stretch;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: var(--radius-xl);
  color: #fff;
  background:
    radial-gradient(460px 220px at 88% 5%, rgba(249, 218, 198, .42), transparent 68%),
    radial-gradient(380px 200px at 22% 120%, rgba(193, 159, 139, .36), transparent 68%),
    linear-gradient(135deg, #312521 0%, #6d4e43 48%, #a77766 100%);
  box-shadow: 0 22px 44px rgba(75, 51, 42, .18);
  animation: hero-in .54s cubic-bezier(.2,.8,.2,1) both;
}
.app-shell.area-quality .hero-card { background: radial-gradient(460px 220px at 88% 5%, rgba(190,205,214,.36), transparent 68%), radial-gradient(380px 200px at 22% 120%, rgba(122,151,165,.28), transparent 68%), linear-gradient(135deg, #29343a 0%, #506774 52%, #8ea4ae 100%); box-shadow: 0 22px 44px rgba(54,75,86,.18); }
.app-shell.area-performance .hero-card { background: radial-gradient(460px 220px at 88% 5%, rgba(244,210,154,.34), transparent 68%), radial-gradient(380px 200px at 22% 120%, rgba(205,145,91,.25), transparent 68%), linear-gradient(135deg, #35251e 0%, #70482f 50%, #b78651 100%); }
.app-shell.area-system .hero-card { background: radial-gradient(460px 220px at 88% 5%, rgba(200,210,212,.34), transparent 68%), radial-gradient(380px 200px at 22% 120%, rgba(142,157,161,.27), transparent 68%), linear-gradient(135deg, #30383b 0%, #596b71 52%, #9aa8aa 100%); }
.hero-card::after { content: ""; position: absolute; inset: 0; opacity: .16; background-image: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.45) 48%, transparent 58%); pointer-events: none; animation: hero-sheen 9s ease-in-out infinite; }
.hero-primary { position: relative; z-index: 1; padding-right: 24px; }
.hero-label { color: rgba(255,255,255,.72); font-size: 12px; }
.hero-value { margin: 8px 0 5px; font-size: 40px; font-weight: 760; letter-spacing: -.055em; line-height: 1; }
.hero-note { color: rgba(255,255,255,.67); font-size: 11px; }
.hero-metric { position: relative; z-index: 1; padding: 8px 18px; display: flex; flex-direction: column; justify-content: center; border-left: 1px solid rgba(255,255,255,.18); }
.hero-metric span { color: rgba(255,255,255,.69); font-size: 11px; }
.hero-metric strong { margin-top: 10px; font-size: 22px; letter-spacing: -.035em; }

.kpi-card { position: relative; display: flex; align-items: center; gap: 13px; overflow: hidden; }
.kpi-card::after { position: absolute; top: 0; right: 18px; width: 34px; height: 3px; content: ""; border-radius: 0 0 8px 8px; background: var(--area); opacity: .76; }
.kpi-card.kpi-blue::after { background: var(--blue); }
.kpi-card.kpi-gold::after { background: var(--gold); }
.kpi-card.kpi-sage::after { background: var(--sage); }
.kpi-card.kpi-red::after { background: var(--red); }
.kpi-card.kpi-coffee::after { background: var(--coffee); }
.kpi-icon { width: 43px; height: 43px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 14px; font-size: 17px; }
.kpi-icon.sage { color: var(--sage); background: var(--sage-soft); }
.kpi-icon.gold { color: #9b722f; background: var(--gold-soft); }
.kpi-icon.blue { color: var(--blue); background: var(--blue-soft); }
.kpi-icon.red { color: var(--red); background: var(--red-soft); }
.kpi-icon.coffee { color: var(--coffee); background: var(--coffee-soft); }
.kpi-copy span { color: var(--muted); font-size: 11px; }
.kpi-copy strong { display: block; margin-top: 5px; color: var(--text); font-size: 24px; letter-spacing: -.04em; animation: value-pop .5s cubic-bezier(.2,.8,.2,1) both; }
.kpi-copy small { display: block; margin-top: 2px; color: #8e8e93; font-size: 10px; }
.chart-box { position: relative; height: 282px; animation: chart-in .62s .1s cubic-bezier(.2,.8,.2,1) both; }
.chart-box.compact { height: 230px; }
.chart-box.tall { height: 360px; }

.quality-score-board { overflow: hidden; padding: 22px; border: 1px solid rgba(96,127,140,.18); border-radius: var(--radius-xl); background: linear-gradient(135deg, rgba(233,240,243,.92), rgba(255,255,255,.88) 48%, rgba(251,242,228,.55)); box-shadow: var(--shadow-1); }
.quality-score-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.quality-score-heading h2 { margin: 3px 0 0; color: var(--text); font-size: 20px; letter-spacing: -.035em; }
.quality-score-heading p { max-width: 780px; margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.section-eyebrow { display: block; color: var(--performance-deep); font-size: 10px; font-weight: 760; letter-spacing: .09em; }
.quality-policy-strip { margin: 17px 0; padding: 11px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; border: 1px solid rgba(96,127,140,.12); border-radius: 17px; background: rgba(255,255,255,.65); }
.quality-policy-item { min-width: 0; display: grid; grid-template-columns: 24px minmax(0, 1fr); column-gap: 8px; align-items: start; }
.quality-policy-item > span { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 8px; color: var(--quality-deep); background: var(--quality-soft); font-size: 10px; font-weight: 800; }
.quality-policy-item strong { align-self: end; color: var(--text); font-size: 11px; }
.quality-policy-item small { grid-column: 2; margin-top: 2px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.quality-score-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.quality-score-card { position: relative; min-width: 0; overflow: hidden; padding: 17px; border: 1px solid rgba(60,60,67,.11); border-radius: 20px; background: rgba(255,255,255,.88); box-shadow: 0 7px 18px rgba(54,49,45,.055); transition: transform .24s cubic-bezier(.2,.8,.2,1), box-shadow .24s ease, border-color .24s ease; }
.quality-score-card::before { position: absolute; top: 0; left: 17px; width: 43px; height: 3px; content: ""; border-radius: 0 0 8px 8px; background: var(--quality); }
.quality-score-card:hover { border-color: rgba(96,127,140,.32); box-shadow: 0 16px 28px rgba(51,61,67,.12); transform: translateY(-3px); }
.quality-score-card.is-protected::before { background: var(--gold); }
.quality-score-card.is-pending::before { background: var(--red); }
.quality-score-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.quality-person { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.quality-person strong { color: var(--text); font-size: 16px; letter-spacing: -.025em; }
.quality-person + span { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }
.quality-rank { padding: 3px 6px; border-radius: 8px; color: #8a612d; background: var(--gold-soft); font-size: 9px; font-weight: 760; }
.quality-index-orb { width: 64px; height: 64px; flex: 0 0 auto; display: grid; place-content: center; justify-items: center; border: 1px solid rgba(96,127,140,.18); border-radius: 50%; color: var(--quality-deep); background: radial-gradient(circle at 35% 25%, #fff, var(--quality-soft)); box-shadow: inset 0 0 0 5px rgba(255,255,255,.55); }
.quality-index-orb strong { font-size: 19px; letter-spacing: -.06em; line-height: 1; }
.quality-index-orb small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.quality-index-orb.gold { border-color: rgba(189,150,88,.25); color: #946928; background: radial-gradient(circle at 35% 25%, #fff, var(--gold-soft)); }
.quality-index-orb.red { border-color: rgba(196,92,88,.24); color: #ad4b47; background: radial-gradient(circle at 35% 25%, #fff, var(--red-soft)); }
.quality-index-orb.blue { border-color: rgba(52,120,199,.18); color: #2768b1; background: radial-gradient(circle at 35% 25%, #fff, var(--blue-soft)); }
.quality-index-orb.gray { border-color: rgba(60,60,67,.13); color: var(--muted); background: radial-gradient(circle at 35% 25%, #fff, #f1f1f2); }
.quality-score-data { margin-top: 15px; padding: 11px 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid rgba(60,60,67,.08); border-bottom: 1px solid rgba(60,60,67,.08); }
.quality-score-data > div { min-width: 0; padding: 0 8px; border-left: 1px solid rgba(60,60,67,.08); }
.quality-score-data > div:first-child { padding-left: 0; border-left: 0; }
.quality-score-data > div:last-child { padding-right: 0; }
.quality-score-data span { display: block; overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.quality-score-data strong { display: block; margin-top: 5px; overflow: hidden; color: var(--text); font-size: 12px; letter-spacing: -.02em; text-overflow: ellipsis; white-space: nowrap; }
.quality-score-status { min-height: 44px; margin-top: 11px; display: flex; align-items: flex-start; gap: 8px; }
.quality-score-status small { padding-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.42; }
.quality-evidence-link { width: 100%; margin-top: 4px; color: var(--quality-deep); border-color: rgba(96,127,140,.18); background: rgba(233,240,243,.5); }
.quality-evidence-link:hover { color: var(--quality-deep); border-color: rgba(96,127,140,.35); background: var(--quality-soft); }
.quality-rank-score { color: var(--quality-deep); font-size: 19px; letter-spacing: -.055em; }
.score-table-value { font-size: 16px; letter-spacing: -.04em; }
.score-table-value.sage { color: var(--sage); }
.score-table-value.gold { color: #9a6a22; }
.score-table-value.blue { color: #2768b1; }
.score-table-value.red { color: #b04743; }
.score-table-value.gray { color: var(--muted); }

.quality-evidence-card { margin-bottom: 14px; padding: 17px; border: 1px solid rgba(96,127,140,.2); border-radius: 20px; background: linear-gradient(135deg, rgba(233,240,243,.9), rgba(255,255,255,.88)); }
.quality-evidence-card.is-protected { border-color: rgba(189,150,88,.25); background: linear-gradient(135deg, rgba(251,242,223,.88), rgba(255,255,255,.9)); }
.quality-evidence-card.is-pending { border-color: rgba(196,92,88,.25); background: linear-gradient(135deg, rgba(255,240,239,.88), rgba(255,255,255,.9)); }
.quality-evidence-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.quality-evidence-head h3 { margin: 4px 0 0; font-size: 17px; letter-spacing: -.03em; }
.quality-evidence-head p { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.quality-evidence-score { min-width: 94px; padding: 10px 12px; display: grid; justify-items: end; border-radius: 15px; background: rgba(255,255,255,.62); }
.quality-evidence-score strong { color: var(--quality-deep); font-size: 25px; letter-spacing: -.06em; line-height: 1; }
.quality-evidence-score span { margin-top: 5px; color: var(--muted); font-size: 9px; }
.quality-evidence-grid { margin-top: 14px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid rgba(60,60,67,.09); border-bottom: 1px solid rgba(60,60,67,.09); }
.quality-evidence-grid > div { min-width: 0; padding: 11px 12px; border-left: 1px solid rgba(60,60,67,.09); }
.quality-evidence-grid > div:first-child { padding-left: 0; border-left: 0; }
.quality-evidence-grid > div:last-child { padding-right: 0; }
.quality-evidence-grid span { display: block; color: var(--muted); font-size: 10px; }
.quality-evidence-grid strong { display: block; min-height: 18px; margin-top: 5px; color: var(--text); font-size: 13px; }
.quality-evidence-note { margin-top: 11px; color: var(--quality-deep); font-size: 11px; line-height: 1.6; }

.chart-empty {
  min-height: 230px;
  display: grid;
  place-content: center;
  gap: 8px;
  text-align: center;
  color: var(--muted);
}

.chart-empty-icon {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  margin: 0 auto 2px;
  border-radius: 14px;
  background: #edf2f5;
  color: var(--sage);
  font-weight: 800;
}

.chart-empty strong { color: var(--text); font-size: 15px; }
.chart-empty small { font-size: 12px; }

.btn { min-height: 38px; padding: 9px 14px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line); border-radius: 12px; color: var(--text); background: rgba(255,255,255,.78); box-shadow: 0 1px 1px rgba(0,0,0,.02); cursor: pointer; font-size: 12px; font-weight: 700; transition: transform .22s cubic-bezier(.2,.8,.2,1), box-shadow .22s ease, background .22s ease, border-color .22s ease; }
.btn:hover:not(:disabled) { transform: translateY(-1px); background: #fff; box-shadow: 0 7px 18px rgba(47, 42, 39, .09); }
.btn:active:not(:disabled) { transform: translateY(0); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { border-color: transparent; color: #fff; background: linear-gradient(135deg, var(--area-deep), var(--area)); box-shadow: 0 8px 18px var(--area-shadow); }
.btn.primary:hover:not(:disabled) { background: linear-gradient(135deg, var(--area-deep), var(--area)); filter: brightness(.94); }
.btn.sage { border-color: transparent; color: #fff; background: linear-gradient(135deg, #557080, #78909d); }
.btn.danger { border-color: #f3d4d2; color: #b74742; background: var(--red-soft); }
.btn.ghost { background: rgba(255,255,255,.52); }
.btn.small { min-height: 31px; padding: 6px 10px; border-radius: 10px; font-size: 11px; }
.btn-link { padding: 0; border: 0; color: var(--coffee); background: transparent; cursor: pointer; font-size: 12px; font-weight: 720; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

select, input, textarea { width: 100%; border: 1px solid var(--line-strong); border-radius: 12px; padding: 9px 11px; color: var(--text); outline: 0; background: rgba(255,255,255,.86); font-size: 12px; transition: border-color .16s ease, box-shadow .16s ease, background .16s ease; }
select { min-height: 38px; appearance: auto; }
select:focus, input:focus, textarea:focus { border-color: rgba(52,120,199,.8); background: #fff; box-shadow: 0 0 0 3px rgba(52,120,199,.12); }
textarea { min-height: 88px; resize: vertical; }
.field { display: grid; gap: 7px; }
.field label { color: var(--muted); font-size: 11px; font-weight: 650; }
.field small { color: var(--muted); font-size: 10px; line-height: 1.5; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid .full { grid-column: 1 / -1; }

.pill { min-height: 26px; padding: 4px 9px; display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; font-size: 10px; font-weight: 720; white-space: nowrap; }
.pill.sage { color: #496b7d; background: var(--sage-soft); }
.pill.gold { color: #9a6a22; background: var(--gold-soft); }
.pill.blue { color: #2768b1; background: var(--blue-soft); }
.pill.red { color: #b04743; background: var(--red-soft); }
.pill.gray { color: var(--muted); background: #f0f0f2; }
.pill.coffee { color: #fff; background: var(--coffee); }
.mini-status-pill b { font-size: 10px; }
.mini-exchange-empty { min-height: 156px; padding: 18px; display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 13px; border: 1px dashed rgba(113,136,155,.32); border-radius: 16px; background: #f8f7f4; }
.mini-exchange-empty > div { min-width: 0; display: grid; gap: 5px; }.mini-exchange-empty strong { font-size: 14px; }.mini-exchange-empty small { color: var(--muted); font-size: 11px; line-height: 1.55; }
.mini-exchange-summary { overflow: hidden; border: 1px solid rgba(75,54,38,.12); border-radius: 16px; background: rgba(255,253,249,.88); }
.mini-exchange-hero { min-height: 74px; padding: 13px 14px; display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 13px; border-bottom: 1px solid rgba(75,54,38,.09); background: linear-gradient(135deg,#fffaf1,#f7ede0); }
.mini-exchange-summary.is-attention .mini-exchange-hero,.mini-exchange-empty.is-attention { background: linear-gradient(135deg,#f8fafc,#edf2f5); }
.mini-exchange-summary.is-disconnected .mini-exchange-hero,.mini-exchange-empty.is-disconnected { background: linear-gradient(135deg,#fff8f5,#f9e9e5); }
.mini-exchange-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; color: #fff; background: linear-gradient(145deg,#d5a55b,#9d6327); box-shadow: 0 7px 16px rgba(126,77,29,.17); font-size: 19px; font-weight: 850; }
.is-attention .mini-exchange-mark,.is-checking .mini-exchange-mark { background: linear-gradient(145deg,#8196a7,#5f7486); box-shadow: 0 7px 16px rgba(70,91,108,.16); }
.is-disconnected .mini-exchange-mark { background: linear-gradient(145deg,#cc705e,#a34439); box-shadow: 0 7px 16px rgba(163,68,57,.16); }
.mini-exchange-hero > div { min-width: 0; display: grid; gap: 4px; }.mini-exchange-hero strong { color: #35271f; font-size: 15px; }.mini-exchange-hero small { color: var(--muted); font-size: 12px; line-height: 1.5; }
.mini-exchange-summary > .review-list { padding: 0 14px; }
.mini-exchange-foot { padding: 11px 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid rgba(75,54,38,.09); background: #faf7f3; }
.mini-exchange-foot > span { max-width: 680px; color: var(--muted); font-size: 11px; line-height: 1.55; }
@media (max-width: 1160px) { .mini-exchange-hero,.mini-exchange-empty { grid-template-columns: 42px minmax(0,1fr); }.mini-exchange-hero > .pill,.mini-exchange-empty > .btn { grid-column: 2; justify-self: start; }.mini-exchange-foot { align-items: flex-start; flex-direction: column; } }

.data-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.data-table th { padding: 12px 14px; color: #77777c; background: rgba(245,245,247,.86); font-size: 10px; font-weight: 720; letter-spacing: .015em; text-align: left; white-space: nowrap; }
.data-table td { padding: 13px 14px; border-top: 1px solid rgba(60,60,67,.08); vertical-align: middle; }
.data-table tr:hover td { background: rgba(250,250,251,.88); }
.data-table td.right, .data-table th.right { text-align: right; }
.data-table td.center, .data-table th.center { text-align: center; }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.62); }
.table-toolbar { min-height: 62px; padding: 12px 15px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.5); }
.table-toolbar .search { max-width: 265px; }
.pagination { padding: 12px 15px; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 11px; background: rgba(255,255,255,.5); border-top: 1px solid var(--line); }

.drop-zone { min-height: 182px; padding: 28px; display: grid; place-content: center; justify-items: center; gap: 10px; border: 1.5px dashed rgba(128,91,78,.36); border-radius: 20px; text-align: center; background: radial-gradient(circle at 50% 0, rgba(245,233,228,.85), transparent 58%), rgba(255,255,255,.56); cursor: pointer; transition: background .18s ease, border-color .18s ease; }
.drop-zone:hover, .drop-zone.is-dragging { border-color: var(--coffee); background: var(--coffee-soft); }
.drop-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 18px; color: var(--coffee); background: rgba(255,255,255,.8); box-shadow: 0 5px 14px rgba(128,91,78,.1); font-size: 24px; }
.drop-zone strong { font-size: 15px; }
.drop-zone span { color: var(--muted); font-size: 11px; }
.import-summary { margin-top: 16px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.summary-cell { padding: 13px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.55); }
.summary-cell span { display: block; color: var(--muted); font-size: 10px; }
.summary-cell strong { display: block; margin-top: 6px; font-size: 20px; letter-spacing: -.035em; }
.mapping-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mapping-item { padding: 10px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.7); }
.mapping-item label { display: flex; justify-content: space-between; margin-bottom: 6px; color: var(--muted); font-size: 10px; }
.required { color: var(--red); }

.review-list { display: grid; gap: 10px; }
.review-card { padding: 14px 15px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.58); }
.review-card.is-low { border-color: #f1cecb; background: rgba(255,240,239,.85); }
.review-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stars { color: #d59d40; font-size: 14px; letter-spacing: .06em; }
.review-meta { color: var(--muted); font-size: 10px; }
.review-comment { margin: 9px 0; color: var(--text-2); font-size: 12px; line-height: 1.7; }
.review-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }

.progress-row { margin: 12px 0; }
.progress-label { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 7px; color: var(--text-2); font-size: 11px; }
.progress-label span:last-child { color: var(--muted); }
.progress-track { height: 8px; overflow: hidden; border-radius: 999px; background: #e9e9eb; }
.progress-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, #718b99, #9fb2bc); transform-origin: left center; animation: progress-reveal .75s .15s cubic-bezier(.2,.8,.2,1) both; }
.progress-fill.gold { background: linear-gradient(90deg, #c39551, #e3c78e); }
.progress-fill.red { background: linear-gradient(90deg, #cf706b, #e0a09b); }

.level-badge { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 16px; color: #fff; background: linear-gradient(145deg, #c7a462, #e3c98f); box-shadow: 0 8px 16px rgba(189,150,88,.2); font-size: 18px; font-weight: 760; }
.salary-total { color: var(--coffee); font-size: 27px; font-weight: 760; letter-spacing: -.045em; }
.payroll-source-status { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.payroll-table { min-width:1460px; }
.payroll-source-card .card-header { align-items:flex-start; }
.payroll-authoritative-source { border-color:rgba(190,126,32,.25); background:linear-gradient(135deg,rgba(255,250,241,.96),rgba(246,249,252,.98)); }
.payroll-authoritative-source .summary-cell { border-color:rgba(104,124,143,.2); background:rgba(255,255,255,.82); }
.payroll-authoritative-source .summary-cell:first-child { border-color:rgba(190,126,32,.3); background:rgba(255,247,232,.9); }
.formula-box { padding: 14px; border: 1px solid rgba(96,127,140,.12); border-radius: 15px; color: #526d7a; background: rgba(234,241,244,.86); }
.formula-box strong { display: block; margin-top: 5px; font-size: 17px; letter-spacing: -.025em; }

.empty-state { min-height: 190px; display: grid; place-content: center; justify-items: center; gap: 9px; color: var(--muted); text-align: center; }
.empty-state .empty-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 18px; color: var(--blue); background: var(--blue-soft); font-size: 21px; }
.empty-state strong { color: var(--text); font-size: 13px; }
.notice { padding: 12px 14px; border-radius: 14px; font-size: 11px; line-height: 1.6; }
.notice.info { color: #386eac; background: var(--blue-soft); }
.notice.warn { color: #906422; background: var(--amber-soft); }
.notice.danger { color: #ad4641; background: var(--red-soft); }

.tabs { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid rgba(60,60,67,.10); border-radius: 13px; background: rgba(235,235,240,.82); }
.tab { padding: 7px 11px; border: 0; border-radius: 9px; color: var(--muted); background: transparent; cursor: pointer; font-size: 11px; font-weight: 650; }
.tab.is-active { color: var(--text); background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.09); font-weight: 730; }

.quality-window-bar {
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
  padding: 17px 19px;
  display: grid;
  grid-template-columns: minmax(320px, 1fr) auto;
  align-items: center;
  gap: 14px 22px;
  border: 1px solid rgba(176, 136, 82, .22);
  border-radius: 22px;
  background:
    radial-gradient(260px 120px at 100% 0, rgba(212, 177, 116, .18), transparent 70%),
    linear-gradient(118deg, rgba(255,255,255,.94), rgba(253,247,237,.9));
  box-shadow: 0 10px 28px rgba(104, 76, 45, .075), inset 0 1px 0 rgba(255,255,255,.8);
}
.quality-window-bar::before { position: absolute; inset: 0 auto 0 0; width: 4px; content: ""; background: linear-gradient(180deg, #d6b46f, #8a5b37); }
.quality-window-copy { min-width: 0; display: grid; gap: 3px; }
.quality-window-copy strong { color: var(--text); font-size: 16px; letter-spacing: -.02em; }
.quality-window-copy small { color: var(--muted); font-size: 12px; line-height: 1.55; }
.quality-window-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.quality-period-tabs { display: inline-flex; padding: 4px; gap: 4px; border: 1px solid rgba(60,60,67,.12); border-radius: 15px; background: rgba(235,235,240,.74); box-shadow: inset 0 1px 2px rgba(60,60,67,.035); }
.quality-period-button { min-width: 78px; min-height: 36px; padding: 7px 13px; border: 0; border-radius: 11px; color: var(--muted); background: transparent; cursor: pointer; font-size: 13px; font-weight: 700; transition: color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s cubic-bezier(.2,.8,.2,1); }
.quality-period-button:hover { color: var(--text); transform: translateY(-1px); }
.quality-period-button.is-active { color: #fff; background: linear-gradient(145deg, #9b7044, #c8a263); box-shadow: 0 5px 12px rgba(128, 91, 51, .24), inset 0 1px 0 rgba(255,255,255,.3); }
.quality-window-state { min-width: 144px; min-height: 32px; padding: 6px 10px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 0; border-radius: 11px; font-size: 11px; font-weight: 680; white-space: nowrap; }
.quality-window-state.is-ready { color: #45697b; background: var(--sage-soft); }
.quality-window-state.is-loading { color: #906422; background: var(--amber-soft); }
.quality-window-state.is-loading i { width: 12px; height: 12px; border: 2px solid rgba(144,100,34,.24); border-top-color: #906422; border-radius: 50%; animation: auth-spin .8s linear infinite; }
.quality-window-state.is-error { color: #ad4641; background: var(--red-soft); cursor: pointer; }
.quality-window-warning { grid-column: 1 / -1; padding: 10px 12px; display: flex; align-items: center; gap: 9px; border-radius: 12px; color: #8a6228; background: rgba(255, 244, 221, .72); font-size: 12px; line-height: 1.45; }
.quality-window-warning span { color: #8a7151; }

.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 26px; background: rgba(26,25,27,.30); backdrop-filter: blur(12px) saturate(150%); }
.modal { width: min(760px, 92vw); max-height: 90vh; overflow: auto; border: 1px solid rgba(255,255,255,.7); border-radius: 26px; background: rgba(250,250,251,.94); box-shadow: 0 30px 90px rgba(20,20,23,.25); backdrop-filter: blur(30px); }
.modal.wide { width: min(1040px, 94vw); }
.modal-header { position: sticky; top: 0; z-index: 2; padding: 19px 20px 16px; display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--line); background: rgba(250,250,251,.82); backdrop-filter: blur(18px); }
.modal-header h2 { margin: 0; font-size: 19px; letter-spacing: -.03em; }
.modal-header p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.modal-close { width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 50%; color: var(--muted); background: rgba(118,118,128,.12); cursor: pointer; }
.modal-body { padding: 20px; }
.modal-footer { position: sticky; bottom: 0; padding: 14px 20px; display: flex; justify-content: flex-end; gap: 8px; border-top: 1px solid var(--line); background: rgba(250,250,251,.85); backdrop-filter: blur(18px); }

.toast-root { position: fixed; z-index: 200; top: 22px; right: 24px; display: grid; gap: 9px; pointer-events: none; }
.toast { min-width: 270px; max-width: 420px; padding: 12px 14px; display: flex; align-items: flex-start; gap: 10px; border: 1px solid var(--line); border-radius: 16px; color: var(--text); background: rgba(255,255,255,.94); box-shadow: var(--shadow-2); backdrop-filter: blur(18px); animation: toast-in .22s ease-out; }
.toast.success { border-color: #d3dfe5; }
.toast.error { border-color: #f0c9c6; }
.toast-icon { font-weight: 800; }
.toast.success .toast-icon { color: #b77a31; }
.toast.error .toast-icon { color: var(--red); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes page-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes hero-in { from { opacity: 0; transform: translateY(12px) scale(.992); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes chart-in { from { opacity: 0; transform: translateY(10px) scale(.992); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes value-pop { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
@keyframes progress-reveal { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes status-pulse { 0%, 60%, 100% { box-shadow: 0 0 0 3px rgba(183,122,49,.13); } 30% { box-shadow: 0 0 0 6px rgba(183,122,49,0); } }
@keyframes hero-sheen { 0%, 18%, 100% { transform: translateX(-28%); } 55% { transform: translateX(28%); } }

#page-content { animation: page-in .42s cubic-bezier(.2,.8,.2,1) both; }
#page-content > section { animation: page-in .5s cubic-bezier(.2,.8,.2,1) both; }
#page-content > section:nth-child(2) { animation-delay: .05s; }
#page-content > section:nth-child(3) { animation-delay: .1s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Dashboard readability floor: the operating screen must remain legible at 1536px. */
.app-shell[data-route="dashboard"] .nav-group-label,
.app-shell[data-route="dashboard"] .brand-context span,
.dashboard-tabs button,
.dashboard-tabs-bar > p,
.dashboard-period-tabs .quality-period-button,
.dashboard-kpi > span,
.dashboard-kpi p,
.dashboard-panel header p,
.dashboard-panel > footer,
.dashboard-legend,
.dashboard-ranking-head,
.dashboard-ranking-row,
.dashboard-store-name > strong,
.dashboard-status,
.dashboard-change,
.dashboard-ranking-row > button,
.dashboard-panel header > button,
.dashboard-panel footer > button,
.dashboard-reference,
.dashboard-coverage-list button,
.dashboard-problem-list > div,
.dashboard-detail-heading p,
.dashboard-technician-list button small { font-size: 10px; line-height: 1.4; }
.dashboard-store-name > strong,.dashboard-score-number,.dashboard-coverage-list button > strong { font-size: 11px; }
.dashboard-kpi > strong small { font-size: 11px; }
.dashboard-panel h2 { font-size: 16px; }
.dashboard-ranking-row { min-height: 35px; }
.dashboard-coverage-list button { min-height: 35px; }

.login-screen { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; background: linear-gradient(145deg, #f8f7f7, #ece9e7); }
.login-brand { padding: 8vh 7vw; display: flex; flex-direction: column; justify-content: space-between; color: #fff; background: radial-gradient(circle at 78% 22%, rgba(203,151,124,.28), transparent 36%), linear-gradient(150deg, #26201e, #5b4036); }
.login-brand img { width: 250px; padding: 12px; border-radius: 18px; background: #fff; }
.login-brand h1 { max-width: 560px; margin: 0; font-size: 45px; line-height: 1.16; letter-spacing: -.055em; }
.login-brand p { max-width: 520px; color: #dfd2cc; line-height: 1.8; }
.login-panel { display: grid; place-items: center; padding: 40px; }
.login-card { width: min(420px, 100%); padding: 30px; border: 1px solid rgba(255,255,255,.8); border-radius: 26px; background: rgba(255,255,255,.78); box-shadow: var(--shadow-2); backdrop-filter: blur(26px); }
.login-card h2 { margin: 0; font-size: 25px; letter-spacing: -.04em; }
.login-card > p { margin: 8px 0 22px; color: var(--muted); font-size: 13px; }
.login-form { display: grid; gap: 14px; }
.password-input-wrap { position: relative; }
.password-input-wrap input { padding-right: 68px; }
.password-toggle {
  position: absolute;
  top: 50%;
  right: 7px;
  min-width: 50px;
  min-height: 30px;
  padding: 4px 9px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 9px;
  color: #7a4a1d;
  background: #fff4df;
  cursor: pointer;
  font-size: 12px;
  font-weight: 760;
}
.password-toggle:hover { background: #f9e7c4; }
.password-toggle:focus-visible { outline: 3px solid rgba(190, 126, 43, .2); }
.caps-lock-hint { color: #a25c22 !important; font-weight: 680; }
.auth-help { margin: 0 !important; color: var(--muted); font-size: 12px !important; line-height: 1.65; }
.auth-gate { display: grid; gap: 17px; }
.auth-gate > div > p { margin: 7px 0 0; color: var(--muted); line-height: 1.65; }
.auth-gate-mark {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #a64f49;
  background: var(--red-soft);
  box-shadow: inset 0 0 0 1px rgba(196,92,88,.12);
  font-size: 22px;
  font-weight: 820;
}
.auth-gate-mark.success { color: #5f7480; background: var(--sage-soft); }
.auth-step-list { margin: 0; padding: 0; display: grid; gap: 10px; list-style: none; counter-reset: auth-step; }
.auth-step-list li { position: relative; min-height: 30px; padding-left: 42px; display: flex; align-items: center; color: var(--text-2); line-height: 1.55; counter-increment: auth-step; }
.auth-step-list li::before { content: counter(auth-step); position: absolute; left: 0; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 10px; color: #87501d; background: var(--gold-soft); font-weight: 780; }
.auth-step-list code { margin-inline: 4px; padding: 2px 6px; border-radius: 6px; color: #774619; background: #fff5e6; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; }
.notice.success { color: #526b78; background: var(--sage-soft); }
.notice strong { color: inherit; }
.button-spinner { width: 15px; height: 15px; flex: 0 0 auto; border: 2px solid rgba(255,255,255,.42); border-top-color: currentColor; border-radius: 50%; animation: auth-spin .72s linear infinite; }
.btn:not(.primary) > .button-spinner { border-color: rgba(112,72,31,.2); border-top-color: currentColor; }
@keyframes auth-spin { to { transform: rotate(360deg); } }

.error-screen { min-height: 100vh; padding: 40px; display: grid; place-content: center; justify-items: center; gap: 12px; text-align: center; background: var(--bg); }
.error-mark { width: 60px; height: 60px; display: grid; place-items: center; border-radius: 20px; color: var(--red); background: var(--red-soft); font-size: 26px; }
.error-screen h1 { margin: 0; letter-spacing: -.04em; }
.error-screen p { max-width: 620px; margin: 0; color: var(--muted); line-height: 1.7; }

@media (max-width: 1320px) {
  body { min-width: 1080px; }
  .app-shell { grid-template-columns: 245px minmax(0, 1fr); }
  .sidebar { width: 245px; }
  .brand img { width: 166px; }
  .hero-card { grid-template-columns: 1.08fr repeat(4, minmax(100px, .75fr)); }
  .hero-metric { padding-inline: 13px; }
  .quality-score-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-dashboard-bottom { grid-template-columns: 1fr 1fr; }
  .grid-dashboard-bottom > :last-child { grid-column: 1 / -1; }
  .header-save { display: none; }
}

@media print {
  body { min-width: 0; background: #fff; }
  .sidebar, .topbar, .no-print, .toast-root { display: none !important; }
  .app-shell, .main { display: block; }
  .content { padding: 0; }
  .card, .hero-card { box-shadow: none; break-inside: avoid; }
}

/* V6.5 production VI: follows the supplied mini-program design system on a PC canvas. */
:root {
  --bg: #f7f3ed;
  --bg-2: #eee6dc;
  --surface: rgba(255, 253, 249, .90);
  --surface-solid: #fffdf9;
  --surface-muted: #f6f0e8;
  --text: #2d241f;
  --text-2: #51463f;
  --muted: #7d7167;
  --line: rgba(75, 54, 38, .13);
  --line-strong: rgba(75, 54, 38, .22);
  --coffee: #7d4b28;
  --coffee-2: #b67a32;
  --coffee-dark: #1e1712;
  --coffee-soft: #faead9;
  --gold: #d5a55b;
  --gold-soft: #fbefd9;
  --sage: #607f8c;
  --sage-soft: #e8eff3;
  --quality: #607f8c;
  --quality-deep: #405a67;
  --quality-soft: #e8eff3;
  --performance: #b67a32;
  --performance-deep: #704318;
  --performance-soft: #fbefdc;
  --system: #60747c;
  --system-deep: #40545c;
  --system-soft: #e9f0f2;
  --shadow-1: 0 2px 3px rgba(67, 45, 28, .045), 0 14px 34px rgba(67, 45, 28, .08);
  --shadow-2: 0 24px 64px rgba(40, 27, 18, .18);
}

body { font-size: 15px; background: radial-gradient(980px 500px at 100% -8%, rgba(222,178,104,.24), transparent 68%), radial-gradient(760px 450px at 44% 108%, rgba(157,181,193,.24), transparent 66%), linear-gradient(180deg,#fffdf9,var(--bg)); }
.app-shell { grid-template-columns: 290px minmax(0, 1fr); }
.sidebar { width: 290px; padding: 20px 16px 17px; border-right-color: rgba(255,255,255,.09); color: #fff; background: radial-gradient(360px 260px at 16% -4%, rgba(213,165,91,.24), transparent 68%), linear-gradient(175deg, #18130f 0%, #2c2119 48%, #17120f 100%); box-shadow: 14px 0 42px rgba(38,25,16,.19); }
.brand { height: 82px; padding: 9px 14px; border-color: rgba(244,194,116,.25); background: linear-gradient(145deg, rgba(78,51,30,.86), rgba(30,23,18,.92)); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 12px 24px rgba(12,7,4,.22); }
.brand:hover { border-color: rgba(246,199,126,.5); box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 15px 28px rgba(12,7,4,.3); }
.brand img { width: 220px; height: 62px; object-fit: contain; object-position: left center; filter: brightness(0) invert(1); }
.brand-context { padding: 16px 10px 13px; }
.brand-context strong { color: #fff8eb; font-size: 15px; }
.brand-context span { color: rgba(255,244,225,.65); font-size: 12px; }
.nav { gap: 14px; }
.nav-group-label { color: rgba(255,241,220,.58); font-size: 11px; }
.nav-item { min-height: 48px; padding: 9px 11px; color: rgba(255,248,237,.78); border: 1px solid transparent; font-size: 15px; font-weight: 650; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav-item.is-active,
.nav-item.is-active[data-area="quality"],
.nav-item.is-active[data-area="performance"],
.nav-item.is-active[data-area="system"] { color: #fff; border-color: rgba(255,222,170,.28); background: linear-gradient(145deg, #c98a36, #80501f 58%, #603716); box-shadow: inset 0 1px 0 rgba(255,255,255,.22), inset 0 -1px 0 rgba(41,22,9,.22), 0 10px 22px rgba(12,7,4,.26); }
.nav-icon { width: 31px; height: 31px; color: #f5d29d; background: rgba(248,208,147,.11); font-size: 16px; }
.nav-item.is-active[data-area="quality"] .nav-icon,
.nav-item.is-active[data-area="performance"] .nav-icon,
.nav-item.is-active[data-area="system"] .nav-icon { background: linear-gradient(145deg, #f2bd6c, #a96224); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 6px 14px rgba(18,10,5,.25); }
.sidebar-status { border-top-color: rgba(255,255,255,.12); }
.status-row { color: rgba(255,244,225,.64); font-size: 12px; }
.user-card { grid-template-columns: 42px minmax(0,1fr) auto; padding: 11px; border-color: rgba(255,223,178,.16); background: rgba(255,255,255,.08); box-shadow: inset 0 1px 0 rgba(255,255,255,.07); }
.user-copy strong { color: #fff8ed; font-size: 14px; }
.user-copy span, .user-menu { color: rgba(255,244,225,.62); font-size: 11px; }
.avatar { width: 42px; height: 42px; overflow: hidden; background: linear-gradient(145deg, #d39a4d, #875123); font-size: 15px; }
.avatar img, .person-avatar img { width: 100%; height: 100%; display: block; object-fit: cover; }
.main { grid-column: 2; }
.topbar { min-height: 122px; padding: 23px 38px 19px; background: linear-gradient(105deg, rgba(255,253,249,.94), rgba(255,253,249,.76) 58%, var(--area-soft)); }
.page-eyebrow { font-size: 12px; }
.page-title h1 { font-size: 32px; }
.page-title p { font-size: 15px; }
.content { padding: 26px 38px 50px; }
.card { padding: 23px; border-color: rgba(94,68,44,.13); box-shadow: var(--shadow-1); }
.card-title { font-size: 19px; }
.card-subtitle { font-size: 13px; line-height: 1.58; }
.hero-label { font-size: 14px; }
.hero-value { font-size: 44px; }
.hero-note, .hero-metric span { font-size: 13px; }
.hero-metric strong { font-size: 25px; }
.kpi-copy span { font-size: 13px; }
.kpi-copy strong { font-size: 28px; }
.kpi-copy small { font-size: 12px; line-height: 1.45; }
.btn { min-height: 42px; padding: 10px 16px; border-color: rgba(93,65,39,.18); border-radius: 13px; font-size: 14px; box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 4px 10px rgba(64,41,21,.08); }
.btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 10px 22px rgba(64,41,21,.14); }
.btn.primary { background: linear-gradient(145deg, #d49a48, #93591f 58%, #714117); box-shadow: inset 0 1px 0 rgba(255,238,207,.35), inset 0 -1px 0 rgba(50,26,8,.2), 0 10px 22px rgba(127,76,27,.27); }
.btn.primary:hover:not(:disabled) { background: linear-gradient(145deg, #daa453, #9d6326 58%, #754519); filter: none; }
.btn.small { min-height: 34px; padding: 7px 11px; font-size: 12px; }
select, input, textarea { min-height: 42px; padding: 10px 12px; border-color: rgba(91,66,44,.23); font-size: 14px; }
.field label { font-size: 13px; }
.field small { font-size: 12px; }
.filter-control label { font-size: 11px; }
.data-table { font-size: 14px; }
.data-table th { padding: 14px 15px; font-size: 12px; }
.data-table td { padding: 15px; }
.data-table small { font-size: 12px; color: var(--muted); }
.table-toolbar { min-height: 70px; padding: 14px 18px; }
.pill { min-height: 29px; padding: 5px 10px; font-size: 12px; }
.summary-cell span, .mapping-item label { font-size: 12px; }
.summary-cell strong { font-size: 23px; }
.review-card { padding: 16px 17px; }
.review-meta { font-size: 12px; }
.review-comment { font-size: 14px; line-height: 1.75; }
.stars { font-size: 16px; }
.notice { padding: 14px 16px; font-size: 13px; }
.progress-label { font-size: 13px; }
.tab { padding: 9px 13px; font-size: 13px; }
.quality-score-heading h2 { font-size: 24px; }
.quality-score-heading p { font-size: 14px; }
.section-eyebrow { font-size: 11px; }
.quality-policy-item strong { font-size: 13px; }
.quality-policy-item small { font-size: 12px; }
.quality-person strong { font-size: 18px; }
.quality-person + span { font-size: 12px; }
.quality-score-data span { font-size: 11px; }
.quality-score-data strong { font-size: 14px; }
.quality-score-status small { font-size: 12px; }
.quality-evidence-head h3 { font-size: 20px; }
.quality-evidence-head p, .quality-evidence-note { font-size: 13px; }
.quality-evidence-grid span { font-size: 12px; }
.quality-evidence-grid strong { font-size: 15px; }
.formula-box { color: #714714; border-color: rgba(190,126,43,.18); background: linear-gradient(135deg, #fff4df, #fffaf1); }
.formula-box strong { font-size: 20px; }
.modal-header h2 { font-size: 22px; }
.modal-header p { font-size: 13px; }
.login-brand { background: radial-gradient(circle at 78% 22%, rgba(224,164,77,.34), transparent 38%), linear-gradient(150deg, #261a14, #72451f); }
.login-brand img { width: 320px; height: 86px; padding: 0; object-fit: contain; object-position: left center; border-radius: 0; background: transparent; filter: brightness(0) invert(1); }
.login-brand h1 { font-size: 50px; }
.login-brand p { color: rgba(255,244,226,.76); font-size: 16px; }
.login-card { width: min(470px,100%); padding: 34px; }
.login-card h2 { font-size: 29px; }
.login-card > p { font-size: 15px; }
.person-avatar { width: 44px; height: 44px; flex: 0 0 auto; overflow: hidden; display: inline-grid; place-items: center; border: 2px solid rgba(255,255,255,.9); border-radius: 50%; color: #fff; background: linear-gradient(145deg, #d5a158, #83501f); box-shadow: 0 5px 13px rgba(91,55,23,.17); font-size: 15px; font-weight: 780; }
.person-avatar.large { width: 52px; height: 52px; }
.person-avatar.xlarge { width: 68px; height: 68px; font-size: 20px; }
.person-cell { min-width: 160px; display: flex; align-items: center; gap: 11px; }
.person-cell span { min-width: 0; display: grid; gap: 3px; }
.person-cell small { display: block; }
.quality-profile { min-width: 0; display: flex; align-items: center; gap: 12px; }
.avatar-editor { padding: 14px; display: grid; grid-template-columns: 68px minmax(0,1fr); align-items: center; gap: 15px; border: 1px solid rgba(91,66,44,.15); border-radius: 17px; background: rgba(255,250,242,.75); }
.import-summary { grid-template-columns: repeat(7, minmax(100px, 1fr)); }

@media (max-width: 1320px) {
  body { min-width: 1120px; }
  .app-shell { grid-template-columns: 265px minmax(0,1fr); }
  .sidebar { width: 265px; }
  .brand img { width: 205px; height: 58px; }
  .topbar { padding-inline: 28px; }
  .content { padding-inline: 28px; }
  .page-title h1 { font-size: 29px; }
  .import-summary { grid-template-columns: repeat(4, minmax(100px, 1fr)); }
}

/* 原始 VI PNG 带安全透明边；用固定视窗裁出真实字标，避免设置 width 后可见 Logo 仍很小。 */
.brand-logo-frame {
  position: relative;
  width: 220px;
  height: 61px;
  flex: 0 0 220px;
  overflow: hidden;
}
.brand-logo-frame img {
  position: absolute;
  top: -39px;
  left: -35px;
  width: 297px;
  height: auto;
  max-width: none;
  padding: 0;
  object-fit: initial;
  filter: brightness(0) invert(1);
}
.login-logo-frame {
  position: relative;
  width: 300px;
  height: 84px;
  flex: 0 0 84px;
  overflow: hidden;
}
.login-logo-frame img {
  position: absolute;
  top: -53px;
  left: -48px;
  width: 406px;
  height: auto;
  max-width: none;
  padding: 0;
  border-radius: 0;
  background: transparent;
  filter: brightness(0) invert(1);
}

/* 技师当月评分分析：高密度琥珀金信息层级。 */
.technician-month-strip {
  margin-bottom: 14px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid rgba(123, 78, 31, .16);
  border-radius: 18px;
  background: linear-gradient(115deg, #51321c, #87501f 48%, #b37931);
  box-shadow: 0 16px 36px rgba(83, 49, 20, .18), inset 0 1px 0 rgba(255,255,255,.16);
}
.technician-month-strip > div { min-height: 84px; padding: 17px 20px; display: grid; align-content: center; gap: 3px; border-right: 1px solid rgba(255,255,255,.13); color: #fff8ea; }
.technician-month-strip > div:last-child { border-right: 0; }
.technician-month-strip > div.is-alert { background: rgba(124, 28, 25, .22); }
.technician-month-strip span { color: rgba(255,245,226,.7); font-size: 12px; }
.technician-month-strip strong { font-size: 25px; line-height: 1.1; }
.technician-month-strip small { color: rgba(255,245,226,.66); font-size: 11px; }
.technician-star-grid { margin-bottom: 14px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.technician-star-card { position: relative; min-height: 130px; padding: 18px; display: grid; grid-template-columns: 44px minmax(0,1fr); gap: 12px; overflow: hidden; border: 1px solid rgba(91,61,31,.12); border-radius: 18px; background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(255,248,237,.86)); box-shadow: var(--shadow-1); }
.technician-star-card::after { content: ''; position: absolute; right: -28px; bottom: -38px; width: 100px; height: 100px; border-radius: 50%; background: var(--star-card-glow, rgba(197,138,54,.13)); }
.technician-star-card.people { --star-card-glow: rgba(99,120,132,.15); }
.technician-star-card.three { border-color: rgba(190,126,43,.25); --star-card-glow: rgba(197,138,54,.22); }
.technician-star-card.two { --star-card-glow: rgba(99,120,132,.15); }
.technician-star-card.one { --star-card-glow: rgba(182,129,108,.16); }
.technician-star-card.none { --star-card-glow: rgba(129,117,110,.12); }
.technician-star-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; color: #7b4818; background: linear-gradient(145deg, #fff4dc, #e7bd7b); box-shadow: inset 0 1px 0 #fff, 0 7px 16px rgba(132,81,28,.15); font-size: 12px; font-weight: 850; letter-spacing: -1px; }
.technician-star-card > div { position: relative; z-index: 1; min-width: 0; }
.technician-star-card > div > span { color: var(--muted); font-size: 12px; }
.technician-star-card strong { margin-top: 3px; display: block; color: #4f321d; font-size: 28px; }
.technician-star-card strong small { font-size: 12px; font-weight: 650; }
.technician-star-card p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.technician-management-conclusion { margin-bottom: 14px; min-height: 58px; padding: 12px 16px; display: grid; grid-template-columns: 34px auto minmax(0,1fr) auto; align-items: center; gap: 10px; border: 1px solid rgba(190,126,43,.17); border-radius: 16px; color: #67401b; background: linear-gradient(100deg, #fff5e3, #fffaf2 56%, #f5eadb); box-shadow: inset 0 1px 0 #fff; }
.conclusion-mark { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; color: #fff; background: linear-gradient(145deg, #d69a45, #8a511c); box-shadow: 0 6px 12px rgba(125,73,25,.2); }
.technician-management-conclusion p { margin: 0; color: #79593d; font-size: 13px; line-height: 1.55; }
.technician-analysis-grid { display: grid; grid-template-columns: .92fr 1.08fr 1.08fr; gap: 14px; }
.technician-analysis-grid > .card { min-width: 0; padding: 19px; }
.technician-rank-card { max-height: 495px; display: flex; flex-direction: column; }
.technician-rank-list { margin: 4px -5px -3px; padding: 2px 5px 5px; overflow: auto; display: grid; gap: 6px; }
.technician-leader-row { width: 100%; min-height: 59px; padding: 8px; display: grid; grid-template-columns: 30px 38px minmax(82px,1fr) 64px minmax(82px,.7fr) auto; align-items: center; gap: 8px; border: 1px solid transparent; border-radius: 13px; color: var(--text); background: transparent; cursor: pointer; text-align: left; transition: .18s ease; }
.technician-leader-row:hover { border-color: rgba(190,126,43,.18); background: #fff8ec; transform: translateX(2px); }
.technician-leader-row .person-avatar { width: 38px; height: 38px; }
.leader-rank { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; color: var(--muted); background: #f4f0eb; font-size: 12px; font-weight: 800; }
.leader-rank.top-1 { color: #7b4715; background: linear-gradient(145deg,#ffe8b8,#dca84f); }
.leader-rank.top-2 { color: #5c6670; background: linear-gradient(145deg,#f4f7f8,#cbd2d5); }
.leader-rank.top-3 { color: #7b4930; background: linear-gradient(145deg,#f7d7be,#c98b65); }
.leader-person, .leader-score { min-width: 0; display: grid; gap: 2px; }
.leader-person strong, .leader-person small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leader-person strong { font-size: 13px; }
.leader-person small, .leader-score small { color: var(--muted); font-size: 10px; }
.leader-score strong { color: #744414; font-size: 18px; }
.leader-star { color: #b37425; font-size: 11px; white-space: nowrap; }
.technician-insight-card { min-height: 495px; }
.technician-scatter-box, .technician-trend-box { height: 270px; }
.technician-problem-groups { margin-top: 7px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--text-2); font-size: 11px; }
.problem-chip { padding: 5px 8px; border-radius: 9px; background: #f3f0ec; }
.problem-chip.red { color: #984b44; background: var(--red-soft); }
.problem-chip.gold { color: #8a5a21; background: var(--gold-soft); }
.problem-chip.blue { color: #55727e; background: var(--blue-soft); }
.problem-chip.coffee { color: #714714; background: var(--coffee-soft); }
.technician-problem-bars { margin-top: 9px; display: grid; gap: 6px; }
.technician-problem-bars > div { display: grid; grid-template-columns: 58px minmax(0,1fr) 20px; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; }
.technician-problem-bars i { height: 6px; overflow: hidden; border-radius: 5px; background: #eee9e3; }
.technician-problem-bars i b { height: 100%; display: block; border-radius: inherit; background: #bea77f; }
.technician-problem-bars i b.red { background: var(--red); }.technician-problem-bars i b.gold { background: var(--gold); }.technician-problem-bars i b.blue { background: var(--blue); }.technician-problem-bars i b.coffee { background: var(--coffee-2); }
.technician-table-toolbar { display: grid; grid-template-columns: auto minmax(180px,1fr) auto auto; gap: 12px; }
.technician-table-toolbar > div:first-child { display: grid; gap: 3px; }
.technician-table-toolbar > div:first-child span { color: var(--muted); font-size: 11px; }
.technician-level-tabs { display: flex; gap: 3px; padding: 3px; border-radius: 12px; background: #f5f0ea; }
.technician-level-tabs .tab { min-height: 32px; padding: 6px 9px; }
.technician-ranking-table { min-width: 1420px; }
.technician-ranking-table th:first-child,
.technician-ranking-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #fffdf9;
  box-shadow: 7px 0 12px rgba(67,45,28,.045);
}
.technician-ranking-table thead th:first-child { z-index: 3; background: #f7f1e8; }
.rank-number { width: 27px; height: 27px; flex: 0 0 auto; display: grid !important; place-items: center; border-radius: 9px; color: #7b531f; background: var(--gold-soft); font-size: 11px; font-weight: 800; }
.stars.compact { font-size: 13px; white-space: nowrap; }
.text-red { color: var(--red); }

/* 独立员工头像管理与裁剪工作台。 */
.avatar-management-page { display: grid; gap: 14px; }
.avatar-page-head { min-height: 104px; padding: 22px 25px; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 28px; border: 1px solid rgba(190,126,43,.18); border-radius: 21px; background: radial-gradient(320px 140px at 92% 10%, rgba(218,161,80,.2), transparent 72%), linear-gradient(110deg,#fffaf1,#fff 68%); box-shadow: var(--shadow-1); }
.page-kicker { color: #a36a25; font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.avatar-page-head h2 { margin: 4px 0 5px; color: #4d311d; font-size: 27px; }
.avatar-page-head p { max-width: 760px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.avatar-overview { display: flex; gap: 1px; overflow: hidden; border: 1px solid rgba(119,79,38,.12); border-radius: 15px; background: rgba(255,255,255,.72); }
.avatar-overview span { min-width: 92px; padding: 12px 15px; display: grid; gap: 2px; color: var(--muted); font-size: 10px; text-align: center; }
.avatar-overview strong { color: #704417; font-size: 21px; }
.avatar-filter-bar { min-height: 58px; padding: 8px 12px; display: flex; align-items: center; gap: 9px; border: 1px solid rgba(91,66,44,.12); border-radius: 16px; background: rgba(255,255,255,.88); box-shadow: 0 6px 18px rgba(76,49,24,.05); }
.avatar-search { min-width: 240px; flex: 1; display: flex; align-items: center; border: 1px solid rgba(91,66,44,.18); border-radius: 12px; background: #fff; }
.avatar-search span { padding-left: 12px; color: var(--muted); }
.avatar-search input { width: 100%; border: 0; box-shadow: none; }
.avatar-filter-result { margin-left: auto; padding-inline: 9px; color: var(--muted); font-size: 12px; }
.avatar-management-grid { display: grid; grid-template-columns: minmax(330px,.8fr) minmax(760px,2fr); gap: 14px; align-items: start; }
.avatar-list-panel { height: 690px; padding: 17px; display: flex; flex-direction: column; }
.avatar-list-table { margin-inline: -5px; padding: 2px 5px 5px; overflow: auto; display: grid; gap: 5px; }
.avatar-list-row { width: 100%; min-height: 62px; padding: 8px 9px; display: grid; grid-template-columns: 42px minmax(85px,1fr) 72px auto 14px; align-items: center; gap: 8px; border: 1px solid transparent; border-radius: 13px; color: var(--text); background: transparent; cursor: pointer; text-align: left; transition: .18s ease; }
.avatar-list-row:hover { background: #fff8ec; }
.avatar-list-row.is-selected { border-color: rgba(190,126,43,.3); background: linear-gradient(110deg,#fff1d7,#fffaf1); box-shadow: inset 3px 0 0 #c58a36; }
.avatar-list-row .person-avatar { width: 42px; height: 42px; }
.avatar-list-person { min-width: 0; display: grid; gap: 3px; }
.avatar-list-person strong, .avatar-list-person small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar-list-person strong { font-size: 13px; }.avatar-list-person small { color: var(--muted); font-size: 10px; }
.avatar-list-level { color: #a06a28; font-size: 10px; white-space: nowrap; }
.avatar-editor-panel { min-height: 690px; padding: 20px; }
.avatar-editor-profile { min-height: 82px; padding-bottom: 16px; display: grid; grid-template-columns: 68px minmax(0,1fr) auto; align-items: center; gap: 14px; border-bottom: 1px solid var(--line); }
.avatar-editor-profile h3 { margin: 5px 0 2px; font-size: 21px; }.avatar-editor-profile p { margin: 0; color: var(--muted); font-size: 12px; }
.avatar-audit-meta { display: grid; gap: 2px; text-align: right; }.avatar-audit-meta span,.avatar-audit-meta small { color: var(--muted); font-size: 10px; }.avatar-audit-meta strong { font-size: 12px; }
.avatar-workbench { padding-top: 18px; display: grid; grid-template-columns: minmax(190px,.68fr) minmax(300px,1fr) minmax(210px,.72fr); gap: 18px; }
.avatar-upload-column { display: grid; align-content: start; gap: 10px; }
.avatar-upload-zone { min-height: 152px; padding: 17px; display: grid; place-items: center; align-content: center; gap: 7px; border: 1.5px dashed rgba(173,109,35,.42); border-radius: 18px; color: #704315; background: linear-gradient(145deg,#fff9ef,#fff2dd); cursor: pointer; text-align: center; transition: .18s ease; }
.avatar-upload-zone:hover,.avatar-upload-zone.is-dragging,#avatar-drop-zone.is-dragging { border-color: #b87325; background: #ffefd1; transform: translateY(-1px); }
.avatar-upload-zone small { color: var(--muted); font-size: 10px; }.avatar-upload-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; color: #fff; background: linear-gradient(145deg,#d99d49,#88501c); box-shadow: 0 8px 16px rgba(122,72,24,.2); font-size: 20px; }
.avatar-source-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.avatar-permission-note { margin-top: 4px; padding: 12px; border-radius: 13px; color: #5d554f; background: #f6f3ef; }.avatar-permission-note strong { font-size: 11px; }.avatar-permission-note p { margin: 5px 0 0; font-size: 10px; line-height: 1.65; }
.avatar-crop-column { display: grid; align-content: start; gap: 12px; }
.avatar-crop-stage { position: relative; width: min(100%,320px); aspect-ratio: 1; margin-inline: auto; overflow: hidden; border: 1px solid rgba(91,66,44,.16); border-radius: 21px; background: repeating-conic-gradient(#f3eee8 0 25%,#faf8f5 0 50%) 50%/22px 22px; touch-action: none; }
.avatar-crop-stage canvas { width: 100%; height: 100%; display: block; cursor: grab; }.avatar-crop-stage canvas:active { cursor: grabbing; }
.avatar-crop-mask { position: absolute; inset: 8%; border: clamp(28px,2.2vw,40px) solid rgba(43,31,23,.42); border-radius: 50%; box-shadow: 0 0 0 999px rgba(43,31,23,.34); pointer-events: none; }
.avatar-crop-grid { position: absolute; inset: 18%; border: 1px solid rgba(255,255,255,.7); border-radius: 50%; pointer-events: none; }
.avatar-crop-grid::before,.avatar-crop-grid::after { content:''; position:absolute; background:rgba(255,255,255,.4); }.avatar-crop-grid::before { left:50%; top:0; bottom:0; width:1px; }.avatar-crop-grid::after { top:50%; left:0; right:0; height:1px; }
.avatar-crop-fallback { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 9px; background: linear-gradient(145deg,#ead0aa,#8c561f); color: #fff; }.avatar-crop-fallback img { width:100%;height:100%;object-fit:cover;position:absolute;inset:0; }.avatar-crop-fallback span { font-size: 72px; font-weight: 850; }.avatar-crop-fallback small { position: relative; z-index: 1; padding: 5px 9px; border-radius: 8px; background: rgba(36,22,14,.48); font-size: 10px; }
.avatar-tools { display: grid; gap: 10px; }.avatar-tools label { display: grid; grid-template-columns: 42px minmax(0,1fr); align-items:center;gap:8px;color:var(--muted);font-size:11px; }.avatar-tools input[type=range] { min-height: 20px; padding: 0; accent-color: #b8792f; }
.avatar-preview-panel { padding: 15px; display: grid; align-content: start; gap: 15px; border: 1px solid rgba(91,66,44,.12); border-radius: 17px; background: linear-gradient(145deg,#fbf8f4,#f3ede6); }.avatar-preview-panel h4 { margin:0;font-size:14px; }
.avatar-preview-row { display:flex;align-items:end;justify-content:center;gap:22px; }.avatar-preview-row > div { display:grid;place-items:center;gap:6px;color:var(--muted);font-size:10px; }
.avatar-preview { display:grid;place-items:center;overflow:hidden;border:3px solid #fff;border-radius:50%;color:#fff;background:linear-gradient(145deg,#d5a158,#83501f);box-shadow:0 8px 20px rgba(73,45,21,.18);font-weight:800; }.avatar-preview img { width:100%;height:100%;object-fit:cover; }.avatar-preview-96 { width:96px;height:96px;font-size:28px; }.avatar-preview-40 { width:40px;height:40px;font-size:13px; }
.avatar-preview-context { padding:10px;display:flex;align-items:center;gap:9px;border-radius:12px;background:#fff;box-shadow:0 4px 12px rgba(60,39,21,.05); }.avatar-preview-context > img,.avatar-preview-context > span { width:38px;height:38px;display:grid;place-items:center;overflow:hidden;border-radius:50%;color:#fff;background:linear-gradient(145deg,#d5a158,#83501f);font-weight:800;object-fit:cover; }.avatar-preview-context div {min-width:0;display:grid;gap:2px}.avatar-preview-context strong {font-size:11px}.avatar-preview-context small {color:var(--muted);font-size:9px}
.avatar-consent { padding:11px;display:grid;grid-template-columns:auto 1fr;gap:8px;border:1px solid rgba(190,126,43,.16);border-radius:12px;background:#fff9ee;cursor:pointer; }.avatar-consent input { width:auto;min-height:0;margin-top:2px;accent-color:#a96821; }.avatar-consent span {display:grid;gap:3px}.avatar-consent strong {font-size:10px}.avatar-consent small {color:var(--muted);font-size:9px}
.avatar-actions { margin-top:auto;display:grid;grid-template-columns:1fr 1.2fr;gap:8px; }
.rule-controls-fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.rule-controls-fieldset:disabled input, .rule-controls-fieldset:disabled select, .rule-controls-fieldset:disabled textarea { color: #736a63; background: #f2efeb; cursor: not-allowed; opacity: .82; }
.rule-baseline-warning { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.compact-toolbar { min-height: 56px; padding: 9px 0; border: 0; background: transparent; }

@media (max-width: 1480px) {
  .technician-analysis-grid { grid-template-columns: 1fr 1fr; }
  .technician-rank-card { grid-row: span 2; }
  .technician-star-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .avatar-management-grid { grid-template-columns: 300px minmax(720px,1fr); }
  .avatar-workbench { grid-template-columns: minmax(170px,.6fr) minmax(280px,1fr); }
  .avatar-preview-panel { grid-column: 1 / -1; grid-template-columns: auto 1fr 1.2fr auto; align-items:center; }
  .avatar-preview-panel h4 { display:none; }
  .technician-ranking-table { min-width: 1040px; }
  .technician-ranking-table th:nth-child(8),
  .technician-ranking-table td:nth-child(8),
  .technician-ranking-table th:nth-child(9),
  .technician-ranking-table td:nth-child(9) { display: none; }
}

/* Shared PC ↔ mini-program visual language: warm canvas, sage quality, amber reward, tactile controls. */
.topbar {
  border-bottom-color: rgba(80, 57, 40, .10);
  background:
    radial-gradient(500px 130px at 96% 0, rgba(213, 165, 91, .13), transparent 72%),
    linear-gradient(105deg, rgba(255,253,249,.96), rgba(255,253,249,.82) 58%, var(--area-soft));
  box-shadow: 0 7px 22px rgba(67, 45, 28, .045);
}
.page-eyebrow { color: var(--area-deep); }
.page-title h1 { color: #251c17; font-weight: 800; }
.card,
.table-wrap,
.quality-score-board,
.avatar-page-head,
.avatar-filter-bar {
  background-color: rgba(255, 253, 249, .92);
}
.card {
  border-color: rgba(75, 54, 38, .13);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.88), var(--shadow-1);
}
.card:not(.flush):hover {
  border-color: color-mix(in srgb, var(--area) 30%, transparent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 18px 40px rgba(57, 39, 25, .11);
}
.hero-card {
  background:
    radial-gradient(520px 240px at 90% 0, rgba(213,165,91,.28), transparent 68%),
    radial-gradient(410px 210px at 16% 120%, rgba(125,75,40,.22), transparent 70%),
    linear-gradient(135deg, #1e1712 0%, #4b3020 55%, #7d4b28 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 24px 48px rgba(54, 34, 21, .22);
}
.app-shell.area-quality .hero-card {
  background:
    radial-gradient(520px 240px at 90% 0, rgba(185,203,212,.28), transparent 68%),
    radial-gradient(410px 210px at 16% 120%, rgba(213,165,91,.14), transparent 70%),
    linear-gradient(135deg, #263943 0%, #526f7c 56%, #809aa6 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 24px 48px rgba(39,64,77,.20);
}
.app-shell.area-performance .hero-card {
  background:
    radial-gradient(520px 240px at 90% 0, rgba(255,220,164,.28), transparent 68%),
    linear-gradient(135deg, #392414 0%, #704318 53%, #b67a32 100%);
}
.btn {
  border-color: rgba(83, 58, 39, .18);
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(250,245,238,.88));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.92), inset 0 -1px 0 rgba(82,52,30,.06), 0 5px 12px rgba(64,41,21,.08);
}
.btn.primary {
  border-color: rgba(111,66,22,.24);
  background: linear-gradient(145deg, #d6a152, #a96524 54%, #754116);
  box-shadow: inset 0 1px 0 rgba(255,243,215,.42), inset 0 -2px 0 rgba(49,25,8,.19), 0 11px 23px rgba(120,72,25,.29);
}
.btn.sage {
  background: linear-gradient(145deg, #7896a4, #607f8c 58%, #405a67);
  box-shadow: inset 0 1px 0 rgba(239,248,252,.32), inset 0 -2px 0 rgba(24,44,54,.18), 0 10px 22px rgba(45,72,84,.24);
}
.btn:focus-visible,
.nav-item:focus-visible,
.tab:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[data-action]:focus-visible {
  outline: 3px solid rgba(213, 165, 91, .42);
  outline-offset: 2px;
}
.tabs,
.quality-period-tabs,
.technician-level-tabs {
  border-color: rgba(80,57,40,.10);
  background: #efe9e1;
  box-shadow: inset 0 1px 3px rgba(77,52,34,.07);
}
.tab.is-active {
  color: #3d2b20;
  background: #fffdf9;
  box-shadow: inset 0 1px 0 #fff, 0 4px 10px rgba(62,42,28,.12);
}
.quality-period-button.is-active {
  background: linear-gradient(145deg, #d6a152, #a96524 58%, #754116);
}
.stars,
.leader-star,
.stars.compact,
.technician-star-icon {
  color: #c58a31;
  text-shadow: 0 1px 0 #fff4d5, 0 2px 2px rgba(101,59,18,.28);
}
.pill.sage { color: #405f6e; background: #e5edf1; }
.pill.gold { color: #845313; background: #faecd1; }
.notice.success { border-color: rgba(96,127,140,.20); background: #edf2f5; }
.data-table tbody tr:hover { background: rgba(250, 240, 222, .54); }
.boot-screen,
.login-screen { background-color: var(--bg); }
.loading-card {
  width: min(470px, calc(100vw - 24px));
  min-width: 0;
  max-width: calc(100vw - 24px);
  padding: 30px 34px;
  text-align: center;
  border-color: rgba(213,165,91,.28);
  background: #fffdf9;
  box-shadow: inset 0 1px 0 #fff, 0 28px 72px rgba(35,23,15,.24);
}
.loading-brand {
  position: relative;
  width: 176px;
  height: 50px;
  margin: 0 auto 18px;
  overflow: hidden;
}
.loading-brand img {
  position: absolute;
  top: -31px;
  left: -27px;
  width: 239px;
  max-width: none;
}
.loading-card > strong { display: block; color: #2d241f; font-size: 19px; }
.loading-live-region > strong { display: block; color: #2d241f; font-size: 19px; }
.loading-progress { height: 9px; overflow: hidden; margin-top: 18px; border-radius: 999px; background: #ece4da; box-shadow: inset 0 1px 2px rgba(61,42,28,.12); }
.loading-progress > div { height: 100%; border-radius: inherit; background: linear-gradient(90deg,#607f8c,#91a8b3 50%,#d5a55b); box-shadow: 0 0 12px rgba(96,127,140,.24); transition: width .28s ease; }
.loading-percent { display: block; margin-top: 8px; color: #7d7167; font-size: 12px; }
.loading-spinner { width: 24px; height: 24px; display: block; margin: 18px auto 0; border: 3px solid rgba(96,127,140,.16); border-top-color: #607f8c; border-radius: 50%; animation: auth-spin .8s linear infinite; }
.login-brand {
  background:
    radial-gradient(circle at 78% 22%, rgba(213,165,91,.34), transparent 38%),
    radial-gradient(circle at 20% 90%, rgba(96,127,140,.22), transparent 42%),
    linear-gradient(150deg, #18130f, #4b3020 64%, #704318);
}

.matching-flow {
  margin-bottom: 16px;
  padding: 18px 20px;
  background:
    radial-gradient(430px 150px at 100% 0, rgba(185,203,212,.22), transparent 72%),
    linear-gradient(145deg, rgba(255,253,249,.98), rgba(248,243,235,.94));
}
.matching-flow-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.matching-steps { margin-top: 15px; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 8px; }
.matching-step {
  position: relative;
  min-width: 0;
  padding: 12px;
  display: grid;
  grid-template-columns: 32px minmax(0,1fr);
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(75,54,38,.11);
  border-radius: 14px;
  background: rgba(255,255,255,.70);
}
.matching-step-number { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 11px; color: #8a796b; background: #eee8e1; font-size: 12px; font-weight: 820; }
.matching-step > span:last-child { min-width: 0; display: grid; gap: 3px; }
.matching-step strong { overflow: hidden; color: #43372f; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.matching-step small { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.matching-step.is-done { border-color: rgba(96,127,140,.18); background: #eef3f6; }
.matching-step.is-done .matching-step-number { color: #fff; background: #607f8c; box-shadow: 0 5px 12px rgba(96,127,140,.20); }
.matching-step.is-current { border-color: rgba(182,122,50,.34); background: #fff7e9; box-shadow: inset 0 0 0 1px rgba(213,165,91,.10), 0 6px 16px rgba(104,66,25,.08); }
.matching-step.is-current .matching-step-number { color: #fff; background: linear-gradient(145deg,#d6a152,#9d6022); box-shadow: 0 5px 12px rgba(157,96,34,.24); }
.matching-next { margin-top: 12px; padding: 13px 14px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 1px solid rgba(182,122,50,.14); border-radius: 14px; background: rgba(255,249,239,.86); }
.matching-next > div { min-width: 0; display: grid; gap: 4px; }
.matching-next strong { color: #5e3c1b; font-size: 12px; }
.matching-next span:not(.pill) { color: var(--muted); font-size: 10px; line-height: 1.55; }
.matching-next-send,.matching-next-done { border-color: rgba(96,127,140,.18); background: #edf2f5; }
.matching-next-send strong,.matching-next-done strong { color: #405f6e; }
.matching-next-repair { border-color: rgba(194,78,63,.17); background: #fbefed; }
.matching-next-repair strong { color: #9f4035; }
.matching-mini-warning { margin-top: 10px; padding-left: 12px; border-left: 3px solid #d5a55b; color: #74675e; font-size: 10px; line-height: 1.6; }
.matching-mini-warning strong { color: #6c451b; }
.matching-send-button:disabled { color: #796f67; border-color: rgba(75,54,38,.13); background: #e9e4de; box-shadow: inset 0 1px 0 rgba(255,255,255,.70); opacity: 1; }
@media (max-width: 1480px) {
  .matching-steps { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .matching-step:nth-child(4),.matching-step:nth-child(5) { grid-column: span 1; }
}
@media (prefers-contrast: more) {
  :root { --line: rgba(58, 39, 26, .28); --muted: #5f554d; }
  .card, .table-wrap, .btn { border-width: 2px; }
}

/* Technician BI final route scope: compact reference layout without sacrificing legibility. */
.app-shell[data-route="technician-bi"] { grid-template-columns: 196px minmax(0,1fr); }
.app-shell[data-route="technician-bi"] .sidebar { width: 196px; padding: 14px 10px 12px; }
.app-shell[data-route="technician-bi"] .brand { height: 62px; padding: 7px 9px; border-radius: 14px; }
.app-shell[data-route="technician-bi"] .brand img { width: 158px; height: 46px; }
.app-shell[data-route="technician-bi"] .brand-logo-frame { width: 158px; height: 46px; flex: 0 0 158px; }
.app-shell[data-route="technician-bi"] .brand-logo-frame img { top: -28px; left: -25px; width: 213px; height: auto; max-width: none; }
.app-shell[data-route="technician-bi"] .brand-context { padding: 10px 7px 8px; }
.app-shell[data-route="technician-bi"] .brand-context strong { font-size: 12px; }
.app-shell[data-route="technician-bi"] .brand-context span { font-size: 10px; }
.app-shell[data-route="technician-bi"] .nav { gap: 7px; }
.app-shell[data-route="technician-bi"] .nav-group-label { padding-bottom: 3px; font-size: 10px; }
.app-shell[data-route="technician-bi"] .nav-item { min-height: 38px; padding: 5px 7px; gap: 7px; border-radius: 10px; font-size: 12px; }
.app-shell[data-route="technician-bi"] .nav-icon { width: 25px; height: 25px; border-radius: 7px; font-size: 13px; }
.app-shell[data-route="technician-bi"] .sidebar-status { padding: 8px 4px 0; }
.app-shell[data-route="technician-bi"] .status-row { margin: 4px 0; font-size: 10px; }
.app-shell[data-route="technician-bi"] .pc-cloud-status strong,
.app-shell[data-route="technician-bi"] .mini-connection-row strong { font-size: 10px; }
.app-shell[data-route="technician-bi"] .pc-cloud-status small,
.app-shell[data-route="technician-bi"] .mini-connection-row small { font-size: 9px; }
.app-shell[data-route="technician-bi"] .user-card { margin-top: 7px; padding: 7px; grid-template-columns: 30px minmax(0,1fr) auto; border-radius: 11px; }
.app-shell[data-route="technician-bi"] .user-card .avatar { width: 30px; height: 30px; }
.app-shell[data-route="technician-bi"] .user-copy strong { font-size: 11px; }
.app-shell[data-route="technician-bi"] .user-copy span { font-size: 9px; }
.app-shell[data-route="technician-bi"] .main { grid-column: 2; }
.app-shell[data-route="technician-bi"] .topbar { display: none; }
.app-shell[data-route="technician-bi"] .content { padding: 18px 22px 40px; }

.app-shell[data-route="technician-bi"] .bi-page-heading span,
.app-shell[data-route="technician-bi"] .bi-page-heading p,
.app-shell[data-route="technician-bi"] .bi-filter-context,
.app-shell[data-route="technician-bi"] .bi-range,
.app-shell[data-route="technician-bi"] .bi-field input,
.app-shell[data-route="technician-bi"] .bi-field select,
.app-shell[data-route="technician-bi"] .bi-effective-date,
.app-shell[data-route="technician-bi"] .bi-search-field input,
.app-shell[data-route="technician-bi"] .bi-result-meta { font-size: 11px; }
.app-shell[data-route="technician-bi"] .bi-kpi > div > span,
.app-shell[data-route="technician-bi"] .bi-kpi > div > small,
.app-shell[data-route="technician-bi"] .bi-weight-strip span,
.app-shell[data-route="technician-bi"] .bi-podium-title,
.app-shell[data-route="technician-bi"] .bi-podium-copy small,
.app-shell[data-route="technician-bi"] .bi-podium-copy > b i,
.app-shell[data-route="technician-bi"] .bi-podium-facts em,
.app-shell[data-route="technician-bi"] .bi-podium-link,
.app-shell[data-route="technician-bi"] .bi-honor-summary small,
.app-shell[data-route="technician-bi"] .bi-list-count,
.app-shell[data-route="technician-bi"] .bi-rank-person strong,
.app-shell[data-route="technician-bi"] .bi-rank-person small,
.app-shell[data-route="technician-bi"] .bi-table-toolbar > div:first-child span,
.app-shell[data-route="technician-bi"] .bi-store-star small,
.app-shell[data-route="technician-bi"] .bi-status,
.app-shell[data-route="technician-bi"] .bi-metric-cell strong,
.app-shell[data-route="technician-bi"] .bi-metric-cell small,
.app-shell[data-route="technician-bi"] .bi-table-note,
.app-shell[data-route="technician-bi"] .bi-person-head p,
.app-shell[data-route="technician-bi"] .bi-person-head small,
.app-shell[data-route="technician-bi"] .bi-person-score > span,
.app-shell[data-route="technician-bi"] .bi-person-score > strong small,
.app-shell[data-route="technician-bi"] .bi-person-rank span,
.app-shell[data-route="technician-bi"] .bi-person-rank b,
.app-shell[data-route="technician-bi"] .bi-person-metric small,
.app-shell[data-route="technician-bi"] .bi-person-metric p,
.app-shell[data-route="technician-bi"] .bi-person-metric footer,
.app-shell[data-route="technician-bi"] .bi-insights span,
.app-shell[data-route="technician-bi"] .bi-insights strong,
.app-shell[data-route="technician-bi"] .bi-insights .forecast small { font-size: 10px; }

.app-shell[data-route="technician-bi"] .bi-data-table { min-width: 1220px; }
.app-shell[data-route="technician-bi"] .bi-data-table th { padding: 8px 5px; font-size: 11px; }
.app-shell[data-route="technician-bi"] .bi-data-table td { padding: 7px 5px; font-size: 11px; }
.app-shell[data-route="technician-bi"] .bi-metric-cell { min-width: 67px; }
.app-shell[data-route="technician-bi"] .bi-analysis-button { font-size: 10px !important; }

.bi-rank-heading-actions { display: flex; align-items: center; gap: 7px; }
.bi-rank-heading-actions .btn { min-height: 28px; padding: 4px 8px; font-size: 10px; }
.bi-rank-scale { position: relative; height: 27px; margin: 2px 20px 1px 57px; display: flex; align-items: flex-end; justify-content: space-between; color: #95887f; border-bottom: 1px solid #ddd6cf; font-size: 10px; }
.bi-rank-scale i { position: absolute; bottom: -4px; width: 1px; height: 20px; background: #6e8492; }
.bi-rank-scale i b { position: absolute; right: 4px; top: -2px; width: max-content; color: #5c6d78; font-size: 10px; font-style: normal; }
.bi-rank-bar { position: relative; }
.bi-rank-bar > b { position: absolute; z-index: 2; top: -2px; bottom: -2px; width: 1px; background: #687f8d; }
.bi-rank-list em { display: grid; line-height: 1.15; }
.bi-rank-list em strong { font-size: 11px; }
.bi-rank-list em small { color: #9f5945; font-size: 9px; white-space: nowrap; }

.bi-person-toolbar { align-items: center; flex-wrap: wrap; }
.bi-person-toolbar .btn { min-height: 34px; padding: 7px 10px; font-size: 11px; }
.bi-person-selector { min-height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 8px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.bi-person-selector span { color: #887a70; font-size: 10px; }
.bi-person-selector select { min-width: 150px; min-height: 30px; padding: 2px 6px; border: 0; background: transparent; font-size: 11px; }
.bi-period-compare { color: #796d64; font-size: 10px; }
.bi-trend-tabs { display: flex; align-items: center; gap: 3px; }
.bi-trend-tabs button { min-height: 28px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 7px; color: #80736a; background: #fff; cursor: pointer; font-size: 10px; }
.bi-trend-tabs button.is-active { color: #8d571b; border-color: rgba(183,122,49,.32); background: #fff8ec; }
.bi-trend-legend { position: absolute; z-index: 2; top: 1px; right: 7px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.bi-trend-legend span { display: inline-flex; align-items: center; gap: 3px; color: #7e7168; font-size: 10px; }
.bi-trend-legend i { width: 10px; height: 2px; background: #b8701e; }
.bi-trend polyline.average { stroke: #607b8d; }
.bi-trend g.average circle { fill: #607b8d; }
.bi-trend-legend .average i { background: #607b8d; }
.bi-trend polyline.metric-0,.bi-trend-legend .metric-0 i { stroke: #607b8d; background: #607b8d; }
.bi-trend polyline.metric-1,.bi-trend-legend .metric-1 i { stroke: #b8701e; background: #b8701e; }
.bi-trend polyline.metric-2,.bi-trend-legend .metric-2 i { stroke: #597293; background: #597293; }
.bi-trend polyline.metric-3,.bi-trend-legend .metric-3 i { stroke: #d29a43; background: #d29a43; }
.bi-trend polyline.metric-4,.bi-trend-legend .metric-4 i { stroke: #8d7893; background: #8d7893; }
.bi-trend polyline.metric-5,.bi-trend-legend .metric-5 i { stroke: #bc6853; background: #bc6853; }
.bi-trend g.metric-0 circle { fill: #607b8d; }.bi-trend g.metric-1 circle { fill: #b8701e; }.bi-trend g.metric-2 circle { fill: #597293; }.bi-trend g.metric-3 circle { fill: #d29a43; }.bi-trend g.metric-4 circle { fill: #8d7893; }.bi-trend g.metric-5 circle { fill: #bc6853; }
.bi-trend-labels b { font-size: 10px; }.bi-trend-labels small { font-size: 9px; }
.bi-insights .forecast.is-disclaimer { grid-template-columns: 95px 22px 1fr; background: #f0f3f5; }
.bi-insights .forecast.is-disclaimer strong { color: #647681; }

.bi-review-funnel { min-height: 76px; display: flex; align-items: center; justify-content: space-around; gap: 5px; }
.bi-review-funnel > div { text-align: center; }
.bi-review-funnel span,.bi-review-funnel strong { display: block; }
.bi-review-funnel span { color: #8b7e75; font-size: 10px; }
.bi-review-funnel strong { margin-top: 4px; color: #44342b; font-size: 17px; }
.bi-review-funnel i { color: #b69470; font-style: normal; }
.bi-review-table,.bi-source-table { overflow: auto; border: 1px solid var(--line); border-radius: 9px; }
.bi-review-table table,.bi-source-table table { width: 100%; border-collapse: collapse; font-size: 10px; }
.bi-review-table th,.bi-review-table td,.bi-source-table th,.bi-source-table td { padding: 6px 7px; border-bottom: 1px solid var(--line); text-align: left; }
.bi-review-table th,.bi-source-table th { color: #7a6d64; background: #faf7f3; font-weight: 700; white-space: nowrap; }
.bi-review-table td:nth-child(2) { max-width: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bi-review-stars { color: #c88729; white-space: nowrap; letter-spacing: 1px; }
.bi-source-table td:nth-child(3) { max-width: 115px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bi-source-table td:last-child span { color: #5f7280; white-space: nowrap; }
.bi-source-actions { min-height: 44px; display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 6px; }
.bi-source-actions > span { margin-right: auto; color: #887b72; font-size: 10px; }
.bi-source-actions .btn { min-height: 29px; padding: 5px 8px; font-size: 10px; }

/* Weight modal is mounted outside .app-shell, so its readability rules must be global. */
.bi-weight-dialog .bi-weight-presets > span,
.bi-weight-dialog .bi-weight-presets small,
.bi-weight-dialog .bi-weight-rows label,
.bi-weight-dialog .bi-weight-preview > span,
.bi-weight-dialog .bi-trial-list > div,
.bi-weight-dialog .bi-trial-list p,
.bi-weight-dialog .bi-weight-meta strong,
.bi-weight-dialog .bi-weight-warning { font-size: 10px; }
.bi-weight-dialog .bi-weight-rows label > span:nth-child(2) small,
.bi-weight-dialog .bi-weight-preview > small,
.bi-weight-dialog .bi-weight-meta span { font-size: 9px; }
.bi-weight-dialog .bi-weight-rows label > b,
.bi-weight-dialog .bi-donut > small { font-size: 10px; }
.bi-weight-dialog .bi-trial-list small.bi-up,
.bi-weight-dialog .bi-trial-list small.bi-down { font-size: 10px; }
.bi-weight-dialog .bi-weight-preview h3 { font-size: 16px; }
.bi-weight-dialog .bi-weight-warning { line-height: 1.45; }

/* Partial-source BI: keep every explanation readable at the 1536px operating viewport. */
.app-shell[data-route="technician-bi"] .pc-cloud-status small,
.app-shell[data-route="technician-bi"] .mini-connection-row small,
.app-shell[data-route="technician-bi"] .user-copy span,
.app-shell[data-route="technician-bi"] .bi-field,
.app-shell[data-route="technician-bi"] .bi-result-meta small,
.app-shell[data-route="technician-bi"] .bi-single-rankings-heading > span,
.app-shell[data-route="technician-bi"] .bi-metric-leader-list button > b,
.app-shell[data-route="technician-bi"] .bi-metric-leader-list .person-avatar,
.app-shell[data-route="technician-bi"] .bi-metric-leader-list button > span small,
.app-shell[data-route="technician-bi"] .bi-rank-unpublished small { font-size: 10px; }

.app-shell[data-route="technician-bi"] .bi-composite-hold p,
.app-shell[data-route="technician-bi"] .bi-composite-hold small,
.app-shell[data-route="technician-bi"] .bi-hold-reasons span,
.app-shell[data-route="technician-bi"] .bi-single-rankings-heading p,
.app-shell[data-route="technician-bi"] .bi-metric-leader header small,
.app-shell[data-route="technician-bi"] .bi-metric-leader-list button > span strong,
.app-shell[data-route="technician-bi"] .bi-metric-leader-list output,
.app-shell[data-route="technician-bi"] .bi-metric-source-empty p,
.app-shell[data-route="technician-bi"] .bi-row-reasons { font-size: 11px; line-height: 1.5; }

.app-shell[data-route="technician-bi"] .bi-metric-leader header strong { font-size: 13px; }
.app-shell[data-route="technician-bi"] .bi-metric-leader-list button { min-height: 39px; }
.app-shell[data-route="technician-bi"] .bi-metric-source-empty strong { font-size: 12px; }

@media (max-width: 1180px) {
  .app-shell[data-route="technician-bi"] { grid-template-columns: 176px minmax(0,1fr); }
  .app-shell[data-route="technician-bi"] .sidebar { width: 176px; }
  .app-shell[data-route="technician-bi"] .brand img { width: 140px; }
  .app-shell[data-route="technician-bi"] .content { padding-inline: 14px; }
}

/* Customer satisfaction command centre — server-authoritative, compact and calm. */
.app-shell[data-route="dashboard"] {
  grid-template-columns: 200px minmax(0, 1fr);
  background: #f3efe9;
}
.app-shell[data-route="dashboard"] .sidebar {
  width: 200px;
  padding: 18px 13px 14px;
  color: #efe7dc;
  border-right-color: rgba(255,255,255,.06);
  background: linear-gradient(180deg, #241b16 0%, #1c1612 100%);
  box-shadow: 10px 0 32px rgba(40,27,19,.10);
  backdrop-filter: none;
}
.app-shell[data-route="dashboard"] .brand {
  height: 88px;
  padding: 9px;
  border: 0;
  border-radius: 15px;
  background: #fffaf3;
  box-shadow: none;
}
.app-shell[data-route="dashboard"] .brand-logo-frame { position: static; width: 100%; height: 100%; flex: 1; overflow: visible; display: grid; place-items: center; }
.app-shell[data-route="dashboard"] .brand-logo-frame img { position: static; width: 158px; height: 62px; max-width: 100%; padding: 0; object-fit: contain; filter: none; }
.app-shell[data-route="dashboard"] .brand-context { padding: 13px 8px 15px; }
.app-shell[data-route="dashboard"] .brand-context strong { color: #e6d9cc; font-size: 11px; }
.app-shell[data-route="dashboard"] .brand-context span { color: rgba(239,231,220,.48); font-size: 9px; }
.app-shell[data-route="dashboard"] .nav { gap: 10px; }
.app-shell[data-route="dashboard"] .nav-group { gap: 2px; }
.app-shell[data-route="dashboard"] .nav-group-label { color: rgba(239,231,220,.46); font-size: 9px; }
.app-shell[data-route="dashboard"] .nav-item { min-height: 39px; padding: 7px 9px; color: rgba(242,235,226,.68); font-size: 11px; }
.app-shell[data-route="dashboard"] .nav-item:hover { color: #fffaf3; background: rgba(255,255,255,.06); }
.app-shell[data-route="dashboard"] .nav-item.is-active[data-area="quality"] {
  color: #fff;
  background: #d9871f;
  box-shadow: 0 7px 16px rgba(101,55,15,.28);
}
.app-shell[data-route="dashboard"] .nav-icon { width: 25px; height: 25px; color: #d9cbbb; background: rgba(255,255,255,.08); }
.app-shell[data-route="dashboard"] .nav-item.is-active .nav-icon { color: #fff; background: rgba(255,255,255,.18); box-shadow: none; }
.app-shell[data-route="dashboard"] .sidebar-status { border-top-color: rgba(255,255,255,.09); }
.app-shell[data-route="dashboard"] .status-row { color: rgba(239,231,220,.66); }
.app-shell[data-route="dashboard"] .user-card { border-color: rgba(255,255,255,.08); background: rgba(255,255,255,.05); }
.app-shell[data-route="dashboard"] .user-copy strong { color: #fffaf3; }
.app-shell[data-route="dashboard"] .user-copy span { color: rgba(239,231,220,.5); }
.app-shell[data-route="dashboard"] .main { grid-column: 2; }
.app-shell[data-route="dashboard"] .main::before { display: none; }
.app-shell[data-route="dashboard"] .topbar {
  position: relative;
  min-height: 104px;
  padding: 19px 25px 15px;
  align-items: center;
  border-bottom: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}
.app-shell[data-route="dashboard"] .page-eyebrow { margin-bottom: 4px; color: #8b7a6d; font-size: 9px; }
.app-shell[data-route="dashboard"] .page-title h1 { font-size: clamp(22px, 2vw, 30px); letter-spacing: -.04em; }
.app-shell[data-route="dashboard"] .page-title p { margin-top: 5px; font-size: 11px; }
.app-shell[data-route="dashboard"] .header-tools { align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.app-shell[data-route="dashboard"] .filter-control { gap: 0; }
.app-shell[data-route="dashboard"] .filter-control label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.app-shell[data-route="dashboard"] .filter-control select { min-width: 115px; min-height: 36px; padding-block: 6px; font-size: 10px; }
.app-shell[data-route="dashboard"] .content { max-width: none; padding: 0 25px 28px; }
.dashboard-exchange { min-height: 34px; padding: 0 12px; display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; color: #526d79; background: #e6edf0; font-size: 10px; font-weight: 700; white-space: nowrap; }
.dashboard-exchange i { width: 7px; height: 7px; border-radius: 50%; background: #607f8c; }
.dashboard-exchange.is-disconnected { color: #9d5147; background: #f8e6e3; }
.dashboard-exchange.is-disconnected i { background: #c9584f; }
.dashboard-exchange.is-attention,.dashboard-exchange.is-checking { color: #8b641f; background: #f8edd5; }
.dashboard-exchange.is-attention i,.dashboard-exchange.is-checking i { background: #d29a36; }
.dashboard-store-action { min-width: 80px; }
.dashboard-quality-page { min-width: 0; display: grid; gap: 13px; color: #2e251f; }
.dashboard-tabs-bar { min-height: 48px; padding: 7px 10px; display: grid; grid-template-columns: 265px 1fr auto; align-items: center; gap: 14px; border: 1px solid rgba(82,58,39,.10); border-radius: 13px; background: rgba(255,253,249,.86); box-shadow: 0 5px 18px rgba(56,38,25,.035); }
.dashboard-tabs { padding: 3px; display: grid; grid-template-columns: repeat(3,1fr); border-radius: 10px; background: #ebe6df; }
.dashboard-tabs button { min-height: 29px; border: 0; border-radius: 8px; color: #8d8178; background: transparent; cursor: pointer; font-size: 10px; }
.dashboard-tabs button.is-active { color: #3a2c23; background: #fff; box-shadow: 0 2px 7px rgba(62,43,30,.09); font-weight: 750; }
.dashboard-tabs-bar > p { margin: 0; color: #8c7e74; font-size: 9px; text-align: center; }
.dashboard-period-tabs { min-height: 31px; padding: 3px; }
.dashboard-period-tabs .quality-period-button { min-height: 25px; padding: 3px 12px; font-size: 9px; }
.dashboard-data-state { min-height: 60px; padding: 10px 14px; display: flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid rgba(96,127,140,.16); border-radius: 12px; background: #edf2f4; }
.dashboard-data-state > i { width: 16px; height: 16px; border: 2px solid rgba(96,127,140,.22); border-top-color: #607f8c; border-radius: 50%; animation: auth-spin .8s linear infinite; }
.dashboard-data-state > span { display: grid; gap: 2px; }
.dashboard-data-state strong { font-size: 11px; }
.dashboard-data-state small { color: #75818a; font-size: 9px; }
.dashboard-data-state.is-error { border-color: rgba(201,88,79,.18); background: #fff0ed; }
.dashboard-data-state.is-error > span:first-child { color: #c9584f; font-size: 18px; }
.dashboard-data-state.is-error .btn { margin-left: auto; }
.dashboard-data-quality { padding: 7px 11px; display: flex; justify-content: space-between; gap: 12px; border-radius: 10px; color: #617782; background: #eaf0f2; font-size: 9px; }
.dashboard-kpis { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 11px; }
.dashboard-kpi { position: relative; min-width: 0; min-height: 97px; padding: 15px 18px; overflow: hidden; border: 1px solid rgba(82,58,39,.11); border-radius: 13px; background: #fffdfa; box-shadow: 0 8px 22px rgba(60,42,28,.045); }
.dashboard-kpi::before { position: absolute; inset: 0 auto 0 0; width: 3px; content: ''; background: #d68a23; }
.dashboard-kpi.is-red::before { background: #ca5a50; }
.dashboard-kpi > span { color: #82766d; font-size: 10px; }
.dashboard-kpi > strong { margin-top: 5px; display: block; font-size: 27px; letter-spacing: -.04em; }
.dashboard-kpi > strong small { margin-left: 3px; color: #746960; font-size: 10px; font-weight: 600; }
.dashboard-kpi p { margin: 3px 0 0; overflow: hidden; color: #9a8e84; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-main-grid { display: grid; grid-template-columns: minmax(0,1.82fr) minmax(340px,.98fr); gap: 13px; }
.dashboard-panel { min-width: 0; padding: 14px 17px; border: 1px solid rgba(82,58,39,.11); border-radius: 14px; background: #fffdfa; box-shadow: 0 8px 24px rgba(60,42,28,.045); }
.dashboard-panel > header { min-height: 38px; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.dashboard-panel h2 { margin: 0; color: #3a2d25; font-size: 14px; letter-spacing: -.02em; }
.dashboard-panel header p { margin: 4px 0 0; color: #91847b; font-size: 8px; }
.dashboard-panel > footer { margin-top: 7px; color: #978a80; font-size: 8px; }
.dashboard-legend { display: flex; align-items: center; gap: 10px; color: #81756d; font-size: 8px; }
.dashboard-legend span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.dashboard-legend span::before { width: 13px; height: 3px; content: ''; border-radius: 99px; background: #d68a23; }
.dashboard-legend .is-attention::before { background: #d4a335; }
.dashboard-legend .is-risk::before { background: #ca5a50; }
.dashboard-legend .is-goal::before { height: 0; border-top: 1px dashed #958b83; background: transparent; }
.dashboard-legend .is-average::before { height: 0; border-top: 2px dashed #607f8c; background: transparent; }
.dashboard-ranking-panel { min-height: 400px; }
.dashboard-ranking-head,.dashboard-ranking-row { display: grid; grid-template-columns: 34px 140px minmax(170px,1fr) 45px 62px 55px 48px; align-items: center; gap: 8px; }
.dashboard-ranking-head { min-height: 31px; color: #91857d; border-bottom: 1px solid rgba(80,57,40,.09); font-size: 8px; }
.dashboard-ranking-list { display: grid; }
.dashboard-ranking-row { position: relative; min-height: 31px; border-bottom: 1px solid rgba(80,57,40,.065); color: #6d625a; font-size: 9px; cursor: pointer; transition: background .16s ease; }
.dashboard-ranking-row:hover { background: #fcf7ef; }
.dashboard-ranking-row.is-selected { background: #fff2da; }
.dashboard-ranking-row.is-selected::before { position: absolute; inset: 0 auto 0 -17px; width: 3px; content: ''; background: #d68a23; }
.dashboard-ranking-row > b { color: #d38522; font-size: 11px; }
.dashboard-store-name { min-width: 0; display: flex; align-items: center; gap: 5px; }
.dashboard-store-name > strong { overflow: hidden; color: #4b3a2f; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-status { padding: 3px 6px; border-radius: 999px; font-size: 7px; font-weight: 700; white-space: nowrap; }
.dashboard-status.is-target { color: #52707c; background: #e8eff2; }
.dashboard-status.is-attention { color: #94661c; background: #fbefd5; }
.dashboard-status.is-insufficient { color: #765d46; background: #eee8e1; }
.dashboard-status.is-risk { color: #ad5148; background: #fbe9e6; }
.dashboard-status.is-empty { color: #887d74; background: #f0ede9; }
.dashboard-score-track { position: relative; height: 7px; border-radius: 99px; background: #ebe7e2; }
.dashboard-score-track > i { display: block; height: 100%; border-radius: inherit; background: #d68a23; }
.dashboard-score-track > i.is-attention { background: #d5a239; }
.dashboard-score-track > i.is-insufficient { background: #b9a28d; }
.dashboard-score-track > i.is-risk { background: #ca5a50; }
.dashboard-score-track > i.is-empty { background: transparent; }
.dashboard-score-track > em { position: absolute; top: -4px; bottom: -4px; width: 1px; border-left: 1px dashed #998f87; }
.dashboard-score-number { color: #514037; font-size: 10px; }
.dashboard-change { font-size: 9px; }
.dashboard-change.is-up { color: #607f8c; }
.dashboard-change.is-down { color: #c9584f; }
.dashboard-change.is-flat { color: #9a8f86; }
.dashboard-ranking-row > button,.dashboard-panel header > button,.dashboard-panel footer > button { padding: 0; border: 0; color: #ce7d17; background: transparent; cursor: pointer; font-size: 9px; }
.dashboard-reference { padding: 5px 9px; border-radius: 999px; color: #56717d; background: #e7eff2; font-size: 8px; white-space: nowrap; }
.dashboard-coverage-list { display: grid; gap: 1px; }
.dashboard-coverage-list button { min-height: 31px; padding: 4px 5px; display: grid; grid-template-columns: 116px minmax(80px,1fr) 43px; align-items: center; gap: 8px; border: 0; border-radius: 7px; color: #796f67; background: transparent; cursor: pointer; font-size: 8px; text-align: left; }
.dashboard-coverage-list button:hover,.dashboard-coverage-list button.is-selected { background: #fff1d8; }
.dashboard-coverage-list button > i { position: relative; height: 7px; border-radius: 99px; background: #ebe7e2; }
.dashboard-coverage-list button > i b { display: block; height: 100%; border-radius: inherit; background: #607f8c; }
.dashboard-coverage-list button > i b.is-attention { background: #d8a436; }
.dashboard-coverage-list button > i b.is-risk { background: #ca5a50; }
.dashboard-coverage-list button > i em { position: absolute; top: -5px; bottom: -5px; width: 1px; border-left: 1px dashed #998f87; }
.dashboard-coverage-list button > strong { text-align: right; font-size: 9px; }
.dashboard-coverage-panel > footer { padding: 7px 9px; display: grid; grid-template-columns: auto 1fr; gap: 7px; border-radius: 8px; color: #7f6f62; background: #fff0d5; }
.dashboard-bottom-grid { display: grid; grid-template-columns: minmax(0,1.82fr) minmax(340px,.98fr); gap: 13px; }
.dashboard-bottom-grid.is-single { grid-template-columns: minmax(0,1fr); }
.dashboard-trend-panel,.dashboard-problem-panel { min-height: 278px; }
.dashboard-trend-chart { height: 207px; }
.dashboard-problem-list { margin-top: 10px; display: grid; gap: 14px; }
.dashboard-problem-list > div { display: grid; grid-template-columns: 75px minmax(80px,1fr) 73px; align-items: center; gap: 8px; color: #6d625a; font-size: 8px; }
.dashboard-problem-list i { height: 8px; border-radius: 99px; background: #ebe7e2; }
.dashboard-problem-list i b { display: block; height: 100%; border-radius: inherit; background: #ca5a50; }
.dashboard-problem-list i b.tone-1 { background: #d7a039; }
.dashboard-problem-list i b.tone-2,.dashboard-problem-list i b.tone-3 { background: #d4aa4d; }
.dashboard-problem-panel > footer { padding-top: 10px; display: flex; justify-content: space-between; border-top: 1px solid rgba(80,57,40,.08); }
.dashboard-detail-heading { min-height: 72px; padding: 13px 17px; display: flex; align-items: center; justify-content: space-between; border: 1px solid rgba(82,58,39,.11); border-radius: 14px; background: #fffdfa; }
.dashboard-detail-heading span { color: #b17427; font-size: 8px; }
.dashboard-detail-heading h2 { margin: 2px 0; font-size: 20px; }
.dashboard-detail-heading p { margin: 0; color: #91847b; font-size: 9px; }
.dashboard-detail-layout { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(330px,.85fr); gap: 13px; }
.dashboard-technician-list { display: grid; }
.dashboard-technician-list button { min-height: 45px; display: grid; grid-template-columns: 30px 130px minmax(120px,1fr) 55px; align-items: center; gap: 10px; border: 0; border-bottom: 1px solid rgba(80,57,40,.07); color: #766a62; background: transparent; cursor: pointer; text-align: left; }
.dashboard-technician-list button:hover { background: #fcf7ef; }
.dashboard-technician-list button > b { color: #c47b20; }
.dashboard-technician-list button span { display: grid; }
.dashboard-technician-list button small { margin-top: 2px; color: #958980; font-size: 8px; }
.dashboard-technician-list button > i { height: 7px; border-radius: 99px; background: #ebe7e2; }
.dashboard-technician-list button > i em { display: block; height: 100%; border-radius: inherit; background: #d68a23; }
.dashboard-latest-panel .review-card { padding: 9px 0; box-shadow: none; }
.dashboard-permission-empty { min-height: 170px; display: grid; place-items: center; align-content: center; gap: 7px; color: #8c7f75; text-align: center; }
.dashboard-permission-empty strong { color: #4a3a30; font-size: 13px; }
.dashboard-permission-empty span { font-size: 10px; }
.dashboard-permission-empty button { padding: 7px 10px; border: 1px solid rgba(183,122,49,.24); border-radius: 9px; color: #a56922; background: #fff8eb; cursor: pointer; font-size: 10px; }

.boot-screen {
  min-height: 100vh;
  gap: 8px;
  background: radial-gradient(circle at 50% 30%, #fffdf8 0, #f4eee6 58%, #eee7de 100%);
}
.boot-brand { width: 190px; height: 68px; padding: 9px 12px; display: grid; place-items: center; border-radius: 15px; background: #fffaf3; box-shadow: 0 14px 36px rgba(56,37,24,.10); }
.boot-brand img { width: 164px; height: 52px; object-fit: contain; }
.boot-screen > strong { margin-top: 9px; color: #31251e; font-size: 17px; letter-spacing: -.02em; }
.boot-screen > span { color: #8c7e73; font-size: 10px; }
.boot-progress { width: 128px; height: 3px; margin-top: 8px; overflow: hidden; border-radius: 99px; background: #e3dbd1; }
.boot-progress i { width: 45%; height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg,#607f8c,#d49a3e); animation: boot-progress 1.45s ease-in-out infinite; }
@keyframes boot-progress { 0% { transform: translateX(-100%); } 100% { transform: translateX(320%); } }
.loading-dots { margin: 17px auto 0; display: flex; justify-content: center; gap: 5px; }
.loading-dots i { width: 6px; height: 6px; border-radius: 50%; background: #607f8c; animation: loading-dot 1.1s ease-in-out infinite; }
.loading-dots i:nth-child(2) { animation-delay: .14s; background: #a98c62; }
.loading-dots i:nth-child(3) { animation-delay: .28s; background: #d49a3e; }
@keyframes loading-dot { 0%, 80%, 100% { opacity: .28; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

@media (max-width: 1360px) {
  .dashboard-main-grid,.dashboard-bottom-grid { grid-template-columns: minmax(0,1.55fr) minmax(310px,.9fr); }
  .dashboard-ranking-head,.dashboard-ranking-row { grid-template-columns: 28px 120px minmax(140px,1fr) 40px 52px 47px 42px; gap: 6px; }
  .dashboard-tabs-bar { grid-template-columns: 240px 1fr auto; }
}
@media (max-width: 1180px) {
  .app-shell[data-route="dashboard"] { grid-template-columns: 176px minmax(0,1fr); }
  .app-shell[data-route="dashboard"] .sidebar { width: 176px; }
  .app-shell[data-route="dashboard"] .brand img { width: 138px; }
  .app-shell[data-route="dashboard"] .topbar,.app-shell[data-route="dashboard"] .content { padding-inline: 15px; }
  .dashboard-tabs-bar { grid-template-columns: 220px 1fr auto; }
  .dashboard-tabs-bar > p { display: none; }
  .dashboard-main-grid,.dashboard-bottom-grid,.dashboard-detail-layout { grid-template-columns: 1fr; }
  .dashboard-kpis { grid-template-columns: repeat(2,1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .boot-progress i { width: 100%; transform: none; }
}

/* Keep this override after the dashboard component rules. */
.dashboard-quality-page small,
.dashboard-quality-page p,
.dashboard-tabs button,
.dashboard-tabs-bar > p,
.dashboard-period-tabs .quality-period-button,
.dashboard-kpi > span,
.dashboard-kpi p,
.dashboard-panel header p,
.dashboard-panel > footer,
.dashboard-legend,
.dashboard-ranking-head,
.dashboard-ranking-row,
.dashboard-store-name > strong,
.dashboard-status,
.dashboard-change,
.dashboard-ranking-row > button,
.dashboard-panel header > button,
.dashboard-panel footer > button,
.dashboard-reference,
.dashboard-coverage-list button,
.dashboard-problem-list > div,
.dashboard-detail-heading span,
.dashboard-detail-heading p,
.dashboard-technician-list button small { font-size: 10px; line-height: 1.4; }
.dashboard-store-name > strong,
.dashboard-score-number,
.dashboard-coverage-list button > strong { font-size: 11px; }
.dashboard-panel h2 { font-size: 16px; }
.dashboard-ranking-row,.dashboard-coverage-list button { min-height: 35px; }

/* V6.8.9 页面一致性：满意度、订单与独立提成共用同一套韩院长 PC 框架。 */
.app-shell[data-route="dashboard"] {
  grid-template-columns: 290px minmax(0, 1fr);
  background: transparent;
}
.app-shell[data-route="dashboard"] .sidebar {
  width: 290px;
  padding: 20px 16px 17px;
  color: #fff;
  border-right-color: rgba(255,255,255,.09);
  background: radial-gradient(360px 260px at 16% -4%, rgba(213,165,91,.24), transparent 68%), linear-gradient(175deg, #18130f 0%, #2c2119 48%, #17120f 100%);
  box-shadow: 14px 0 42px rgba(38,25,16,.19);
}
.app-shell[data-route="dashboard"] .brand {
  height: 82px;
  padding: 9px 14px;
  border: 1px solid rgba(244,194,116,.25);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(78,51,30,.86), rgba(30,23,18,.92));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 12px 24px rgba(12,7,4,.22);
}
.app-shell[data-route="dashboard"] .brand-logo-frame {
  position: relative;
  width: 220px;
  height: 61px;
  flex: 0 0 220px;
  overflow: hidden;
  display: block;
}
.app-shell[data-route="dashboard"] .brand-logo-frame img {
  position: absolute;
  top: -39px;
  left: -35px;
  width: 297px;
  height: auto;
  max-width: none;
  padding: 0;
  object-fit: initial;
  filter: brightness(0) invert(1);
}
.app-shell[data-route="dashboard"] .brand-context { padding: 16px 10px 13px; }
.app-shell[data-route="dashboard"] .brand-context strong { color: #fff8eb; font-size: 15px; }
.app-shell[data-route="dashboard"] .brand-context span { color: rgba(255,244,225,.65); font-size: 12px; }
.app-shell[data-route="dashboard"] .nav { gap: 14px; }
.app-shell[data-route="dashboard"] .nav-group { gap: 3px; }
.app-shell[data-route="dashboard"] .nav-group-label { color: rgba(255,241,220,.58); font-size: 11px; }
.app-shell[data-route="dashboard"] .nav-item {
  min-height: 48px;
  padding: 9px 11px;
  color: rgba(255,248,237,.78);
  border: 1px solid transparent;
  font-size: 15px;
}
.app-shell[data-route="dashboard"] .nav-item:hover { color: #fff; background: rgba(255,255,255,.08); }
.app-shell[data-route="dashboard"] .nav-item.is-active[data-area="quality"] {
  color: #fff;
  border-color: rgba(255,222,170,.28);
  background: linear-gradient(145deg, #c98a36, #80501f 58%, #603716);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), inset 0 -1px 0 rgba(41,22,9,.22), 0 10px 22px rgba(12,7,4,.26);
}
.app-shell[data-route="dashboard"] .nav-icon { width: 31px; height: 31px; color: #f5d29d; background: rgba(248,208,147,.11); font-size: 16px; }
.app-shell[data-route="dashboard"] .nav-item.is-active .nav-icon {
  color: #fff;
  background: linear-gradient(145deg, #f2bd6c, #a96224);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 6px 14px rgba(18,10,5,.25);
}
.app-shell[data-route="dashboard"] .sidebar-status { border-top-color: rgba(255,255,255,.12); }
.app-shell[data-route="dashboard"] .status-row { color: rgba(255,244,225,.64); font-size: 12px; }
.app-shell[data-route="dashboard"] .user-card { padding: 11px; border-color: rgba(255,223,178,.16); background: rgba(255,255,255,.08); }
.app-shell[data-route="dashboard"] .user-copy strong { color: #fff8ed; font-size: 14px; }
.app-shell[data-route="dashboard"] .user-copy span { color: rgba(255,244,225,.62); font-size: 11px; }
.app-shell[data-route="dashboard"] .main::before { display: block; }
.app-shell[data-route="dashboard"] .topbar {
  position: sticky;
  min-height: 122px;
  padding: 23px 38px 19px;
  border-bottom: 1px solid rgba(60,60,67,.08);
  background: linear-gradient(105deg, rgba(255,253,249,.94), rgba(255,253,249,.76) 58%, var(--area-soft));
  box-shadow: none;
  backdrop-filter: saturate(180%) blur(22px);
}
.app-shell[data-route="dashboard"] .page-eyebrow { margin-bottom: 5px; color: var(--area-deep); font-size: 12px; }
.app-shell[data-route="dashboard"] .page-title h1 { font-size: 32px; }
.app-shell[data-route="dashboard"] .page-title p { margin-top: 6px; font-size: 15px; }
.app-shell[data-route="dashboard"] .filter-control { gap: 5px; }
.app-shell[data-route="dashboard"] .filter-control label { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
.app-shell[data-route="dashboard"] .filter-control select { min-width: 134px; min-height: 42px; padding: 10px 12px; font-size: 14px; }
.app-shell[data-route="dashboard"] .content { max-width: 1720px; padding: 26px 38px 50px; }

.dashboard-quality-page { gap: 16px; }
.dashboard-tabs-bar { min-height: 58px; padding: 9px 12px; border-radius: 16px; }
.dashboard-tabs button,.dashboard-period-tabs .quality-period-button { font-size: 12px; }
.dashboard-tabs-bar > p { font-size: 11px; }
.dashboard-kpi { min-height: 112px; padding: 18px 20px; border-radius: 17px; }
.dashboard-kpi > span { font-size: 13px; }
.dashboard-kpi > strong { font-size: 30px; }
.dashboard-kpi p { font-size: 11px; }
.dashboard-panel { padding: 18px 20px; border-radius: 17px; }
.dashboard-panel h2 { font-size: 18px; }
.dashboard-panel header p,.dashboard-panel > footer { font-size: 11px; }
.dashboard-legend,.dashboard-ranking-head,.dashboard-ranking-row,.dashboard-coverage-list button,
.dashboard-problem-list > div,.dashboard-technician-list button small { font-size: 11px; line-height: 1.45; }
.dashboard-ranking-row,.dashboard-coverage-list button { min-height: 44px; }
.dashboard-ranking-head,.dashboard-ranking-row { grid-template-columns: 34px 145px minmax(160px,1fr) 48px 68px 60px 50px; }
.dashboard-store-name > strong,.dashboard-score-number,.dashboard-coverage-list button > strong { font-size: 12px; }
.dashboard-status,.dashboard-change,.dashboard-ranking-row > button,.dashboard-panel header > button,
.dashboard-panel footer > button,.dashboard-reference { font-size: 10px; }
.dashboard-data-quality,.dashboard-data-state small { font-size: 11px; }

/* 原始客满满明细查询。 */
.order-query-card { margin-top: 16px; }
.order-query-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.order-query-status { min-height: 38px; padding: 0 13px; display: inline-flex; align-items: center; gap: 7px; border-radius: 11px; color: #6d553f; background: #fbf0df; font-size: 12px; }
.order-query-status i { width: 7px; height: 7px; border-radius: 50%; background: #b77a31; }
.order-query-error { margin: 14px 18px; }
.order-detail-button { white-space: nowrap; }
.order-commission-value { color: #8a571e; font-weight: 750; }
.order-commission-missing { color: var(--muted); font-size: 12px; }
.order-source-modal { display: grid; gap: 14px; }
.order-source-summary { padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid rgba(183,122,49,.18); border-radius: 14px; background: #fff8ec; }
.order-source-summary > div { display: grid; gap: 4px; }
.order-source-summary small { color: var(--muted); }
.order-source-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.order-source-field { min-width: 0; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; background: #faf9f7; }
.order-source-field span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 11px; }
.order-source-field strong { display: block; overflow-wrap: anywhere; font-size: 13px; line-height: 1.45; }
.order-source-field.is-wide { grid-column: span 2; }
.order-source-field.is-full { grid-column: 1 / -1; }
.bi-monthly-commission-leader { margin-bottom: 14px; border-color: rgba(183,122,49,.22); background: linear-gradient(135deg,#fff8eb,#fffdf9); }
.bi-monthly-commission-leader header { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; }
.bi-monthly-commission-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 7px; }
.bi-monthly-commission-period { display: flex; align-items: center; gap: 6px; color: #806b59; font-size: 10px; white-space: nowrap; }
.bi-monthly-commission-period select { min-height: 32px; padding: 5px 28px 5px 9px; border: 1px solid rgba(183,122,49,.24); border-radius: 9px; color: #68431e; background: #fff; font: inherit; font-size: 11px; }
.bi-monthly-commission-leader .bi-metric-leader-list { margin-top: 10px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px 18px; }
.bi-monthly-commission-leader footer { margin-top: 10px; color: #8b7969; font-size: 11px; }
.bi-metric-leader.is-provisional { border-color: rgba(183,122,49,.28); background: linear-gradient(145deg,#fffaf1,#fff); }
.bi-metric-leader.is-provisional header { align-items:flex-start; padding-bottom:8px; }
.bi-partial-ranking-badge { margin-left:auto; flex:0 0 auto; white-space:nowrap; }
.bi-metric-leader.is-provisional .bi-metric-leader-list { margin-top:5px; }
.bi-metric-leader.is-provisional footer { margin-top:7px; padding-top:7px; border-top:1px solid rgba(183,122,49,.13); color:#876b4c; font-size:8px; line-height:1.45; }
.bi-metric-cell.is-partial strong { color: #9a641f; }
.bi-metric-cell.is-partial small { color: #8b6e4b; }
.bi-source-advisory { margin-top: 10px; }

/* 独立员工业绩提成账本：暖白底、琥珀金重点，金额与原始订单严格分区。 */
.app-shell[data-route="commission"] { --area: #b77a31; --area-deep: #6d4524; --area-soft: #f8ecdf; --area-glow: rgba(183,122,49,.16); --area-line: rgba(183,122,49,.22); }
.app-shell[data-route="commission"] .content { max-width: none; }
.commission-import-card { border-color: rgba(183,122,49,.22); background: linear-gradient(135deg,#fffdf9,#fff8ed); }
.commission-blocker {
  margin-top: 16px; padding: 16px 18px; display: grid; grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center; gap: 13px; border: 1px solid rgba(181,74,66,.34); border-radius: 16px;
  color: #6f2f2a; background: linear-gradient(135deg,#fff2ef,#fff9f3); box-shadow: 0 10px 28px rgba(121,53,45,.08);
}
.commission-blocker strong,.commission-preview-blocker strong { color: #6f2f2a; }
.commission-blocker p,.commission-preview-blocker p { margin: 4px 0 0; color: #8a5f55; font-size: 12px; line-height: 1.55; }
.commission-blocker-icon { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 11px; color: #fff; background: #b54a42; font-weight: 900; box-shadow: 0 6px 14px rgba(181,74,66,.22); }
.commission-preview-blocker { margin-top: 14px; padding: 15px; display: grid; gap: 12px; border: 1px solid rgba(181,74,66,.30); border-radius: 16px; background: linear-gradient(135deg,#fff5f1,#fffaf4); }
.commission-preview-blocker-head { display: flex; align-items: flex-start; gap: 11px; }
.commission-preview-blocker.is-safe { border-color: rgba(82,121,102,.25); background: linear-gradient(135deg,#f3faf6,#fffdf8); }
.commission-preview-blocker.is-safe .commission-blocker-icon { background: #527966; box-shadow: 0 6px 14px rgba(82,121,102,.20); }
.commission-preview-blocker.is-safe strong { color: #365d49; }
.commission-period-isolation {
  margin-top: 14px; padding: 16px; display: grid; gap: 12px;
  border: 1px solid rgba(183,122,49,.34); border-radius: 16px;
  color: #67451f; background: linear-gradient(135deg,#fff7e8,#fffdf8);
  box-shadow: 0 10px 26px rgba(112,70,29,.07);
}
.commission-period-isolation .commission-blocker-icon { background: #b77a31; }
.commission-period-isolation .commission-preview-blocker-head strong { color: #67451f; }
.commission-period-isolation .commission-preview-blocker-head p { margin: 4px 0 0; color: #806b59; font-size: 12px; line-height: 1.55; }
.commission-period-actions { margin: -2px 0 0; justify-content: flex-end; }
.commission-period-table { max-height: 250px; border-color: rgba(183,122,49,.20); background: #fff; }
.commission-period-table .data-table { min-width: 820px; }
.commission-period-table td > small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.commission-period-confirm {
  padding: 13px 14px; display: flex; align-items: flex-start; gap: 11px;
  border: 1px solid rgba(183,122,49,.31); border-radius: 13px;
  background: rgba(255,255,255,.86); cursor: pointer;
}
.commission-period-confirm input { width: 18px; height: 18px; margin-top: 1px; accent-color: #a9682a; }
.commission-period-confirm span { display: grid; gap: 4px; }
.commission-period-confirm strong { color: #5f3d22; }
.commission-period-confirm small { color: #806b59; line-height: 1.5; }
.commission-unmatched-table { max-height: 330px; border-color: rgba(181,74,66,.18); background: #fff; }
.commission-unmatched-table .data-table { min-width: 850px; }
.commission-unmatched-table td > small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.commission-unmatched-more { color: var(--muted); }
.commission-auto-create { padding: 13px 14px; display: flex; align-items: flex-start; gap: 11px; border: 1px solid rgba(183,122,49,.30); border-radius: 13px; background: #fff9ed; cursor: pointer; }
.commission-auto-create input { width: 18px; height: 18px; margin-top: 1px; accent-color: #a9682a; }
.commission-auto-create span { display: grid; gap: 4px; }
.commission-auto-create strong { color: #5f3d22; }
.commission-auto-create small { color: #806b59; line-height: 1.5; }
.commission-import-persistent-status {
  margin-top: 12px;
  padding: 13px 14px;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  border: 1px solid rgba(169,104,42,.26);
  border-radius: 14px;
  color: #6f4a24;
  background: #fff8e9;
}
.commission-import-persistent-status[hidden] { display: none; }
.commission-import-persistent-status.is-success { border-color: rgba(82,121,102,.25); color: #365d49; background: #f0f8f3; }
.commission-import-persistent-status.is-danger { border-color: rgba(181,74,66,.28); color: #7a3631; background: #fff3f0; }
.commission-import-status-icon { width: 25px; height: 25px; flex: 0 0 25px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #b77a31; font-size: 13px; font-weight: 850; }
.commission-import-persistent-status.is-success .commission-import-status-icon { background: #527966; }
.commission-import-persistent-status.is-danger .commission-import-status-icon { background: #b54a42; }
.commission-import-persistent-status > div { min-width: 0; display: grid; gap: 4px; }
.commission-import-persistent-status strong { color: inherit; font-size: 13px; }
.commission-import-persistent-status p { margin: 0; color: inherit; font-size: 12px; line-height: 1.55; }
.commission-import-persistent-status small { color: var(--muted); font-size: 10px; }
.commission-import-preview-modal.is-action-locked { cursor: progress; }
.commission-import-preview-modal.is-action-locked .modal-header,
.commission-import-preview-modal.is-action-locked .modal-footer { border-color: rgba(183,122,49,.25); background: rgba(255,248,235,.96); }
.commission-refresh-notice { margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.commission-refresh-notice > div { display: grid; gap: 4px; }
.commission-refresh-notice span { color: #806b59; font-size: 12px; line-height: 1.5; }
.commission-archive-confirm { padding: 13px 14px; display: flex; align-items: flex-start; gap: 11px; border: 1px solid rgba(183,122,49,.27); border-radius: 13px; background: #fff9ed; cursor: pointer; }
.commission-archive-confirm input { width: 18px; height: 18px; margin-top: 1px; accent-color: #a9682a; }
.commission-archive-confirm span { display: grid; gap: 4px; }
.commission-archive-confirm small { color: #806b59; line-height: 1.5; }
.commission-drop-zone {
  min-height: 132px; padding: 24px; display: grid; place-items: center; gap: 6px;
  border: 1.5px dashed rgba(183,122,49,.36); border-radius: 17px; color: #62432d;
  background: rgba(255,255,255,.78); cursor: pointer; transition: .2s ease;
}
.commission-drop-zone:hover,.commission-drop-zone.is-dragging { border-color: #b77a31; background: #fff4df; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(97,62,35,.08); }
.commission-drop-zone .drop-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: #fff; background: linear-gradient(145deg,#d8a75f,#8a531f); box-shadow: 0 8px 18px rgba(105,62,28,.18); }
.commission-drop-zone strong { font-size: 15px; }
.commission-drop-zone > span:last-of-type { color: var(--muted); font-size: 12px; }
.commission-layout { display: grid; grid-template-columns: minmax(0,2.2fr) minmax(280px,.8fr); gap: 16px; align-items: start; }
.commission-ranking-card,.commission-source-card { min-width: 0; }
.commission-ranking-table-wrap { border-radius: 13px; }
.commission-ranking-table { min-width: 1010px; }
.commission-ranking-table th,.commission-ranking-table td { padding: 10px 8px; white-space: nowrap; font-size: 11px; }
.commission-ranking-table .person-cell { min-width: 152px; }
.commission-rank-number { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; color: #73481f; background: #faead1; font-weight: 800; }
.commission-ranking-table tr:nth-child(-n+3) .commission-rank-number { color: #fff; background: linear-gradient(145deg,#d8a75f,#8a531f); box-shadow: 0 5px 12px rgba(105,62,28,.16); }
.commission-person-link { padding: 0; border: 0; color: #503421; background: none; cursor: pointer; font: inherit; font-weight: 760; text-align: left; }
.commission-person-link:hover { color: #a36325; text-decoration: underline; }
.commission-money { color: #8a571e; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.commission-money.is-negative { color: #b54a42; }
.commission-detail-card { overflow: hidden; }
.commission-toolbar { align-items: flex-end; flex-wrap: wrap; gap: 12px; }
.commission-filter-row { display: flex; align-items: flex-end; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.commission-filter { display: grid; gap: 4px; color: var(--muted); font-size: 10px; }
.commission-filter select { min-width: 150px; min-height: 38px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); background: #fff; font-size: 12px; }
.commission-table-wrap { max-height: 620px; }
.commission-detail-table { min-width: 920px; }
.commission-detail-table th { position: sticky; top: 0; z-index: 1; background: #faf7f2; white-space: nowrap; }
.commission-detail-table td { vertical-align: top; }
.commission-detail-table td > small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.35; }
.commission-query-error { margin: 14px 18px; }
.commission-modal-table { max-height: 490px; margin-top: 14px; }
.commission-modal-table .commission-detail-table { min-width: 980px; }
.commission-preview-table { overflow: hidden; }
.commission-preview-table .table-wrap { max-height: 330px; }
.commission-preview-table .data-table { min-width: 1040px; }
.commission-person-summary { gap: 10px; }
.commission-kpis .kpi-card { min-height: 118px; }
.commission-simple-head {
  display: grid;
  grid-template-columns: minmax(220px,.7fr) minmax(320px,1.3fr);
  gap: 12px;
}
.commission-simple-head > div {
  min-width: 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.commission-simple-head span,.commission-simple-head small { display: block; color: var(--muted); }
.commission-simple-head strong { display: block; margin: 5px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 18px; }
.commission-toolbar > div:first-child > small { display: block; margin-top: 4px; color: var(--muted); }
.commission-method-note { margin-top: 10px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: #faf9f7; color: var(--muted); }
.commission-method-note summary { color: var(--text); font-weight: 700; cursor: pointer; }
.commission-method-note p { margin: 8px 0 0; line-height: 1.65; }
.commission-person-summary-simple { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-bottom: 12px; }
.commission-person-summary-simple > div { padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #faf9f7; }
.commission-person-summary-simple span,.commission-person-summary-simple strong { display: block; }
.commission-person-summary-simple span { color: var(--muted); }
.commission-person-summary-simple strong { margin-top: 5px; font-size: 18px; }
.commission-person-summary-simple p { grid-column: 1/-1; margin: 0; color: var(--muted); }

/* 客户用户管理：仅渲染服务端脱敏注册资料，并把单项提醒与列表筛选明确分区。 */
.customer-users-intro { min-height: 136px; padding: 23px 25px; display: grid; grid-template-columns: minmax(0,1fr) 230px; align-items: center; gap: 24px; overflow: hidden; border: 1px solid rgba(96,116,124,.18); border-radius: 22px; background: radial-gradient(420px 170px at 100% 0,rgba(183,122,49,.18),transparent 70%),linear-gradient(135deg,#fffdf9,#f2f6f7); box-shadow: var(--shadow-1); }
.customer-users-intro h2 { margin: 4px 0 0; color: #2e2520; font-size: 24px; letter-spacing: -.04em; }
.customer-users-intro p { max-width: 880px; margin: 7px 0 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.customer-scope-card { min-height: 88px; padding: 15px 17px; display: grid; align-content: center; gap: 4px; border: 1px solid rgba(183,122,49,.20); border-radius: 17px; background: rgba(255,251,243,.86); box-shadow: inset 0 1px 0 rgba(255,255,255,.8); }
.customer-scope-card span,.customer-scope-card small { color: var(--muted); font-size: 10px; }
.customer-scope-card strong { color: #69421d; font-size: 16px; }
.customer-send-guard { margin: 14px 0; }
.customer-users-card { overflow: hidden; }
.customer-user-filter-bar { padding: 16px 18px; display: grid; grid-template-columns: minmax(260px,1.5fr) repeat(4,minmax(130px,.72fr)) 86px; align-items: end; gap: 10px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg,#fffdf9,#faf7f2); }
.customer-filter { min-width: 0; display: grid; gap: 5px; color: var(--muted); font-size: 10px; font-weight: 680; }
.customer-filter input,.customer-filter select { width: 100%; min-width: 0; }
.customer-search-filter .search { max-width: none; }
.customer-fixed-scope { min-height: 42px; padding: 6px 11px; align-content: center; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.customer-fixed-scope span { font-size: 9px; }
.customer-fixed-scope strong { overflow: hidden; color: #4b3b31; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.customer-page-size select { min-width: 75px; }
.customer-users-error { margin: 14px 18px 0; }
.customer-query-state { min-height: 260px; padding: 32px; display: grid; place-content: center; justify-items: center; gap: 9px; color: var(--muted); text-align: center; }
.customer-query-state.compact { min-height: 150px; }
.customer-query-state strong { color: #3d332d; font-size: 14px; }
.customer-query-state small { font-size: 11px; }
.customer-users-table-wrap { border: 0; border-radius: 0; }
.customer-users-table { min-width: 1220px; }
.customer-users-table td { vertical-align: top; }
.customer-users-table td > small,.customer-task-table td > small { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.customer-status-stack { display: flex; flex-wrap: wrap; gap: 5px; }
.customer-store-chip { margin: 0 5px 5px 0; padding: 5px 7px; display: inline-flex; border: 1px solid rgba(96,116,124,.15); border-radius: 8px; color: #526b76; background: #eef3f5; font-size: 10px; font-weight: 700; }
.customer-date-line { display: grid; grid-template-columns: 28px minmax(0,1fr); gap: 5px; color: #51463f; font-size: 11px; line-height: 1.5; white-space: nowrap; }
.customer-date-line + .customer-date-line { margin-top: 4px; }
.customer-date-line b { color: var(--muted); font-size: 9px; }
.customer-task-summary { min-width: 245px; display: grid; grid-template-columns: repeat(4,minmax(48px,1fr)); gap: 5px; }
.customer-task-summary > span { min-height: 48px; padding: 6px; display: grid; place-content: center; justify-items: center; border: 1px solid rgba(96,116,124,.12); border-radius: 9px; background: #f6f8f8; }
.customer-task-summary b { color: #405864; font-size: 15px; line-height: 1; }
.customer-task-summary small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.customer-task-summary .is-ready { border-color: rgba(183,122,49,.16); background: #fff6e8; }
.customer-task-summary .is-ready b { color: #9b5f1c; }
.customer-users-pagination { background: #fcfaf6; }

.modal.customer-user-modal { width: min(1320px,96vw); }
.customer-detail-summary { padding: 17px; display: grid; grid-template-columns: minmax(230px,.8fr) minmax(220px,.7fr) minmax(0,1.7fr); align-items: center; gap: 16px; border: 1px solid rgba(96,116,124,.18); border-radius: 18px; background: linear-gradient(135deg,#f0f5f6,#fffaf1); }
.customer-detail-identity { min-width: 0; display: flex; align-items: center; gap: 11px; }
.customer-detail-avatar { width: 46px; height: 46px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 14px; color: #fff; background: linear-gradient(145deg,#6e8a96,#3f5964); box-shadow: 0 8px 18px rgba(63,89,100,.19); font-size: 17px; font-weight: 800; }
.customer-detail-identity > div { min-width: 0; }
.customer-detail-identity strong,.customer-detail-identity small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.customer-detail-identity strong { color: #302822; font-size: 17px; }
.customer-detail-identity small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.customer-detail-statuses { display: flex; flex-wrap: wrap; gap: 5px; }
.customer-detail-facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.customer-detail-facts > span { min-width: 0; padding-left: 9px; display: grid; gap: 3px; border-left: 2px solid rgba(183,122,49,.18); }
.customer-detail-facts small { color: var(--muted); font-size: 9px; }
.customer-detail-facts strong { overflow: hidden; color: #4b4038; font-size: 10px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.customer-detail-privacy,.customer-reminder-error { margin-top: 12px; }
.customer-tasks-section { margin-top: 14px; overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: rgba(255,255,255,.74); }
.customer-tasks-toolbar { min-height: 72px; padding: 12px 15px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--line); background: #fbf8f3; }
.customer-tasks-toolbar h3 { margin: 0; color: #332923; font-size: 16px; }
.customer-tasks-toolbar p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.customer-task-filters { padding: 4px; display: flex; gap: 3px; border-radius: 11px; background: #eee8e1; }
.customer-task-filters .segmented-item { min-height: 32px; padding: 0 10px; border: 1px solid transparent; border-radius: 8px; color: #75685f; background: transparent; cursor: pointer; font-size: 10px; font-weight: 700; }
.customer-task-filters .segmented-item:hover { color: #4c3829; }
.customer-task-filters .segmented-item.is-active { color: #80501f; border-color: rgba(183,122,49,.22); background: #fff; box-shadow: 0 3px 8px rgba(65,44,29,.07); }
.customer-task-table-wrap { max-height: 480px; border: 0; border-radius: 0; }
.customer-task-table { min-width: 1160px; }
.customer-task-table th { position: sticky; top: 0; z-index: 1; background: #f9f6f1; }
.customer-task-table td { vertical-align: top; }
.customer-task-targets { display: grid; gap: 4px; }
.customer-task-target { min-width: 145px; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 7px; }
.customer-task-target strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.customer-task-target small { color: var(--muted); font-size: 9px; }
.customer-reminder-reason { max-width: 290px; display: block; color: #7b5640; font-size: 11px; line-height: 1.5; }
.customer-reminder-reason.is-ready { color: #4f7463; }
.customer-reminder-reason.is-blocked { color: #8a6551; }
.customer-reminder-reason.is-delivery-pending { color: #a05c18; }
.customer-subscription-state.is-ready { color: #4f7463; }
.customer-subscription-state.is-pending { color: #9a681f; }
.customer-subscription-state.is-blocked { color: #b34e45; }
.customer-user-modal.is-action-locked { cursor: progress; }
.customer-user-modal.is-action-locked .modal-header,
.customer-user-modal.is-action-locked .modal-footer { border-color: rgba(184,122,46,.28); background: rgba(255,247,231,.94); }
.toast.warning { border-color: #efd19b; background: rgba(255,249,236,.97); }
.toast.warning .toast-icon { color: #a7681c; }

.order-import-hub { padding: 20px; overflow: hidden; border: 1px solid rgba(183,122,49,.20); border-radius: 22px; background: linear-gradient(135deg,#fff,#fff9ef 55%,#f5f8fa); box-shadow: var(--shadow-1); }
.app-shell[data-route="orders"] .header-tools { flex-wrap: wrap; justify-content: flex-end; }
.app-shell[data-route="orders"] .header-tools .btn { white-space: nowrap; }
.order-import-hub-head { margin-bottom: 15px; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.order-import-hub-head h2 { margin: 4px 0 0; color: #33271f; font-size: 21px; letter-spacing: -.035em; }
.order-import-hub-head p { max-width: 760px; margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.order-import-source-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.order-import-source { position: relative; min-width: 0; padding: 19px; overflow: hidden; border-color: rgba(60,60,67,.12); box-shadow: 0 8px 22px rgba(59,43,31,.055); }
.order-import-source::before { position: absolute; inset: 0 auto auto 0; width: 100%; height: 3px; content: ''; background: linear-gradient(90deg,#547787,rgba(84,119,135,.12)); }
.order-import-source.is-commission-source::before { background: linear-gradient(90deg,#b77a31,rgba(183,122,49,.12)); }
.order-import-source-head { min-height: 55px; display: flex; align-items: flex-start; gap: 11px; }
.order-source-index { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 12px; color: #fff; background: linear-gradient(145deg,#678a99,#365867); box-shadow: 0 7px 15px rgba(54,88,103,.18); font-size: 11px; font-weight: 800; }
.is-commission-source .order-source-index { background: linear-gradient(145deg,#d3a257,#83501f); box-shadow: 0 7px 15px rgba(105,62,28,.18); }
.order-import-source-head h3 { margin: 6px 0 0; color: #352820; font-size: 17px; letter-spacing: -.025em; }
.order-import-purpose { min-height: 42px; margin: 10px 0; color: #6f6259; font-size: 12px; line-height: 1.65; }
.order-import-tags { margin-bottom: 13px; display: flex; flex-wrap: wrap; gap: 6px; }
.order-import-tags span { padding: 5px 8px; border: 1px solid rgba(84,119,135,.15); border-radius: 8px; color: #526f7c; background: #edf3f5; font-size: 10px; font-weight: 700; }
.is-commission-source .order-import-tags span { border-color: rgba(183,122,49,.16); color: #85531d; background: #fff5e5; }
.order-source-drop { min-height: 142px; padding: 20px; text-align: center; }
.order-source-readonly { min-height: 142px; padding: 20px; display: grid; place-content: center; justify-items: center; gap: 7px; border: 1.5px dashed rgba(84,119,135,.25); border-radius: 17px; color: #496674; background: rgba(237,243,245,.65); text-align: center; }
.order-source-readonly strong { font-size: 14px; }
.order-source-readonly span { max-width: 430px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.order-source-readonly.is-commission-readonly { border-color: rgba(183,122,49,.28); color: #754719; background: rgba(255,246,230,.72); }
.order-source-readonly .btn { margin-top: 3px; }
.order-source-policy { margin-top: 12px; padding-top: 11px; display: grid; grid-template-columns: auto minmax(0,1fr); align-items: start; gap: 9px; border-top: 1px solid var(--line); }
.order-source-policy strong { color: #44352b; font-size: 10px; white-space: nowrap; }
.order-source-policy span { color: var(--muted); font-size: 10px; line-height: 1.55; }
.order-source-integrity-note { margin-top: 13px; padding: 11px 13px; display: flex; align-items: flex-start; gap: 7px; border: 1px solid rgba(183,122,49,.17); border-radius: 12px; color: #6a4725; background: rgba(255,249,237,.84); font-size: 11px; line-height: 1.55; }
.order-source-integrity-note strong { flex: 0 0 auto; }
.order-import-rule-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; }

@media (max-width: 1500px) {
  .commission-layout { grid-template-columns: 1fr; }
  .commission-source-card .review-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .customer-user-filter-bar { grid-template-columns: minmax(240px,1.5fr) repeat(3,minmax(125px,.72fr)); }
  .customer-page-size { max-width: 90px; }
  .customer-detail-summary { grid-template-columns: minmax(220px,1fr) minmax(220px,1fr); }
  .customer-detail-facts { grid-column: 1 / -1; }
}

@media (max-width: 1360px) {
  .app-shell[data-route="dashboard"] { grid-template-columns: 265px minmax(0,1fr); }
  .app-shell[data-route="dashboard"] .sidebar { width: 265px; }
  .app-shell[data-route="dashboard"] .brand-logo-frame { width: 205px; flex-basis: 205px; }
  .app-shell[data-route="dashboard"] .brand-logo-frame img { top: -36px; left: -33px; width: 277px; }
  .app-shell[data-route="dashboard"] .topbar,.app-shell[data-route="dashboard"] .content { padding-inline: 28px; }
  .app-shell[data-route="dashboard"] .page-title h1 { font-size: 29px; }
  .dashboard-ranking-head,.dashboard-ranking-row { grid-template-columns: 30px 126px minmax(130px,1fr) 44px 58px 52px 44px; gap: 6px; }
}
@media (max-width: 1180px) {
  .app-shell[data-route="dashboard"] { grid-template-columns: 265px minmax(0,1fr); }
  .app-shell[data-route="dashboard"] .sidebar { width: 265px; }
  .app-shell[data-route="dashboard"] .topbar,.app-shell[data-route="dashboard"] .content { padding-inline: 22px; }
  .order-source-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .order-import-source-grid { grid-template-columns: 1fr; }
  .order-import-rule-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .customer-users-intro { grid-template-columns: 1fr; }
  .customer-scope-card { max-width: 330px; }
  .customer-user-filter-bar { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .customer-search-filter { grid-column: span 2; }
  .commission-source-card .review-list { grid-template-columns: 1fr; }
  .commission-blocker { grid-template-columns: auto minmax(0,1fr); }
  .commission-blocker .btn,.commission-blocker .pill { grid-column: 2; justify-self: start; }
  .bi-monthly-commission-leader header { grid-template-columns: auto minmax(0,1fr); align-items: start; }
  .bi-monthly-commission-actions { grid-column: 2; justify-content: flex-start; }
}

/* V6.8.9 综合BI框架统一：保留BI内部高密度布局，外层与其余PC页面一致。 */
.app-shell[data-route="technician-bi"] { grid-template-columns: 290px minmax(0,1fr); }
.app-shell[data-route="technician-bi"] .sidebar { width: 290px; padding: 20px 16px 17px; }
.app-shell[data-route="technician-bi"] .brand { height: 82px; padding: 9px 14px; border-radius: 20px; }
.app-shell[data-route="technician-bi"] .brand-logo-frame { position: relative; width: 220px; height: 61px; flex: 0 0 220px; overflow: hidden; }
.app-shell[data-route="technician-bi"] .brand-logo-frame img,
.app-shell[data-route="technician-bi"] .brand img { position: absolute; top: -39px; left: -35px; width: 297px; height: auto; max-width: none; padding: 0; object-fit: initial; }
.app-shell[data-route="technician-bi"] .brand-context { padding: 16px 10px 13px; }
.app-shell[data-route="technician-bi"] .brand-context strong { font-size: 15px; }
.app-shell[data-route="technician-bi"] .brand-context span { font-size: 12px; }
.app-shell[data-route="technician-bi"] .nav { gap: 14px; }
.app-shell[data-route="technician-bi"] .nav-group-label { padding-bottom: 5px; font-size: 11px; }
.app-shell[data-route="technician-bi"] .nav-item { min-height: 48px; padding: 9px 11px; gap: 10px; border-radius: 13px; font-size: 15px; }
.app-shell[data-route="technician-bi"] .nav-icon { width: 31px; height: 31px; border-radius: 9px; font-size: 16px; }
.app-shell[data-route="technician-bi"] .sidebar-status { padding: 14px 7px 0; }
.app-shell[data-route="technician-bi"] .status-row { margin: 8px 0; font-size: 12px; }
.app-shell[data-route="technician-bi"] .pc-cloud-status strong,
.app-shell[data-route="technician-bi"] .mini-connection-row strong { font-size: 11px; }
.app-shell[data-route="technician-bi"] .pc-cloud-status small,
.app-shell[data-route="technician-bi"] .mini-connection-row small { font-size: 8px; }
.app-shell[data-route="technician-bi"] .user-card { margin-top: 12px; padding: 11px; grid-template-columns: 42px minmax(0,1fr) auto; border-radius: 16px; }
.app-shell[data-route="technician-bi"] .user-card .avatar { width: 42px; height: 42px; }
.app-shell[data-route="technician-bi"] .user-copy strong { font-size: 14px; }
.app-shell[data-route="technician-bi"] .user-copy span { font-size: 11px; }
.app-shell[data-route="technician-bi"] .topbar { display: flex; }
.app-shell[data-route="technician-bi"] .content { max-width: none; padding: 26px 38px 50px; }

@media (max-width: 1320px) {
  .app-shell[data-route="technician-bi"] { grid-template-columns: 265px minmax(0,1fr); }
  .app-shell[data-route="technician-bi"] .sidebar { width: 265px; }
  .app-shell[data-route="technician-bi"] .brand-logo-frame { width: 205px; flex-basis: 205px; }
  .app-shell[data-route="technician-bi"] .brand-logo-frame img,
  .app-shell[data-route="technician-bi"] .brand img { top: -36px; left: -33px; width: 277px; }
  .app-shell[data-route="technician-bi"] .topbar,
  .app-shell[data-route="technician-bi"] .content { padding-inline: 28px; }
}

/* 员工账号与权限：从通用设置中拆出的总部专用管理页。 */
.account-summary-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; }
.account-management-card { overflow:hidden; }
.account-toolbar { align-items:center; }
.account-security-note { margin:0 16px 14px; }
.account-table-wrap { border:0; border-radius:0; }
.account-table { min-width:1180px; }
.employee-profile-table { min-width:980px; }
.employee-profile-table .actions.compact { display:flex; flex-wrap:wrap; gap:6px; min-width:230px; }
.account-table td > small { display:block; margin-top:5px; color:var(--muted); line-height:1.45; }
.account-table .actions.compact { display:flex; flex-wrap:wrap; gap:6px; min-width:250px; }
.account-link-state { display:inline-flex; padding:5px 8px; border-radius:9px; background:#eef4f5; color:#476673; font-size:12px; font-weight:700; }
.account-link-state.is-missing { color:#9b493d; background:#fff0eb; }
.account-policy-grid { align-items:start; }
.account-role-list { display:grid; gap:9px; }
.account-role-list > div { display:grid; grid-template-columns:92px 76px minmax(0,1fr); gap:10px; align-items:center; padding:11px 12px; border:1px solid var(--line); border-radius:12px; background:rgba(255,255,255,.7); }
.account-role-list p { margin:0; color:var(--muted); font-size:12px; line-height:1.55; }
.account-onboarding-steps { display:grid; gap:10px; margin:0; padding:0; list-style:none; }
.account-onboarding-steps li { display:grid; grid-template-columns:32px minmax(0,1fr); gap:10px; align-items:start; padding:11px 12px; border:1px solid var(--line); border-radius:12px; background:rgba(255,255,255,.72); }
.account-onboarding-steps li > b { display:grid; place-items:center; width:30px; height:30px; border-radius:10px; color:#fff; background:linear-gradient(135deg,var(--coffee),#b67a32); }
.account-onboarding-steps span,.account-onboarding-steps small { display:block; }
.account-onboarding-steps small { margin-top:4px; color:var(--muted); line-height:1.5; }

@media (max-width: 1320px) {
  .account-summary-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .account-policy-grid { grid-template-columns:1fr; }
}

/* 客户用户管理在窄PC窗口保持整页可操作；其他高密度PC页继续使用原有1120px画布。 */
@media (max-width: 1180px) {
  body { min-width: 0; }
  .app-shell:not([data-route="customer-users"]) { min-width: 1120px; }
  .app-shell[data-route="customer-users"] { grid-template-columns: 190px minmax(0,1fr); }
  .app-shell[data-route="customer-users"] .sidebar { width: 190px; padding-inline: 10px; }
  .app-shell[data-route="customer-users"] .brand,
  .app-shell[data-route="customer-users"] .brand-context { display: none; }
  .app-shell[data-route="customer-users"] .topbar { min-height: 104px; padding: 17px 18px; flex-wrap: wrap; }
  .app-shell[data-route="customer-users"] .page-title p { white-space: normal; }
  .app-shell[data-route="customer-users"] .content { padding: 18px 18px 36px; }
  .app-shell[data-route="customer-users"] .customer-user-filter-bar { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .app-shell[data-route="customer-users"] .customer-search-filter { grid-column: 1 / -1; }
  .app-shell[data-route="customer-users"] .customer-page-size { max-width: none; }
  .app-shell[data-route="customer-users"] .customer-users-table { min-width: 980px; }
  .modal.customer-user-modal { width: calc(100vw - 24px); max-width: none; }
}

@media (max-width: 720px) {
  .loading-card { padding: 24px 18px; }
  .commission-import-persistent-status { padding: 12px; }
  .commission-refresh-notice { align-items: stretch; flex-direction: column; }
  .commission-refresh-notice .btn { width: 100%; }
  .app-shell[data-route="customer-users"] { grid-template-columns: 72px minmax(0,1fr); }
  .app-shell[data-route="customer-users"] .sidebar { width: 72px; padding: 10px 7px; }
  .app-shell[data-route="customer-users"] .nav { gap: 7px; }
  .app-shell[data-route="customer-users"] .nav-group { gap: 2px; }
  .app-shell[data-route="customer-users"] .nav-group-label,
  .app-shell[data-route="customer-users"] .nav-item > span:last-child,
  .app-shell[data-route="customer-users"] .sidebar-status > :not(.user-card),
  .app-shell[data-route="customer-users"] .user-card .avatar,
  .app-shell[data-route="customer-users"] .user-copy { display: none; }
  .app-shell[data-route="customer-users"] .nav-item { min-height: 43px; padding: 6px; justify-content: center; }
  .app-shell[data-route="customer-users"] .user-card { padding: 5px; display: grid; grid-template-columns: 1fr; }
  .app-shell[data-route="customer-users"] .user-menu { min-height: 34px; }
  .app-shell[data-route="customer-users"] .topbar { min-height: 0; padding: 13px 11px; gap: 10px; align-items: flex-start; }
  .app-shell[data-route="customer-users"] .page-title h1 { font-size: 23px; }
  .app-shell[data-route="customer-users"] .page-title p { font-size: 12px; line-height: 1.5; }
  .app-shell[data-route="customer-users"] .header-tools { width: 100%; }
  .app-shell[data-route="customer-users"] .header-tools .btn { width: 100%; }
  .app-shell[data-route="customer-users"] .content { padding: 11px 9px 28px; }
  .app-shell[data-route="customer-users"] .customer-users-intro { min-height: 0; padding: 16px; gap: 14px; }
  .app-shell[data-route="customer-users"] .customer-users-intro h2 { font-size: 20px; }
  .app-shell[data-route="customer-users"] .customer-scope-card { max-width: none; }
  .app-shell[data-route="customer-users"] .customer-user-filter-bar { padding: 12px; grid-template-columns: 1fr; }
  .app-shell[data-route="customer-users"] .customer-search-filter { grid-column: auto; }
  .app-shell[data-route="customer-users"] .customer-users-table { min-width: 780px; }
  .app-shell[data-route="customer-users"] .customer-users-pagination,
  .customer-user-modal .pagination { align-items: stretch; flex-direction: column; gap: 9px; }
  .modal-backdrop { padding: 6px; }
  .modal.customer-user-modal { width: calc(100vw - 12px); max-height: 96vh; border-radius: 18px; }
  .customer-user-modal .modal-header,
  .customer-user-modal .modal-footer { padding: 12px; }
  .customer-user-modal .modal-body { padding: 10px; }
  .customer-detail-summary { padding: 13px; grid-template-columns: 1fr; }
  .customer-detail-facts { grid-column: auto; grid-template-columns: 1fr; }
  .customer-tasks-toolbar { align-items: stretch; flex-direction: column; }
  .customer-task-filters { max-width: 100%; overflow-x: auto; }
  .customer-task-filters .segmented-item { flex: 1 0 auto; }
  .customer-task-table { min-width: 900px; }
}

/* V6.8.15 技师质量综合BI可读版：1440/1920均以正常字号展示，不再把六项压成六张小卡。 */
.app-shell[data-route="technician-bi"] .bi-overview-page { min-width: 1080px; color: #2d231d; }
.app-shell[data-route="technician-bi"] .bi-page-heading { min-height: 82px; }
.app-shell[data-route="technician-bi"] .bi-page-heading span,
.app-shell[data-route="technician-bi"] .bi-page-heading p { font-size: 14px; line-height: 1.55; }
.app-shell[data-route="technician-bi"] .bi-page-heading h2 { margin-block: 4px; font-size: 30px; line-height: 1.2; }
.app-shell[data-route="technician-bi"] .bi-tabs { margin-bottom: 16px; gap: 34px; }
.app-shell[data-route="technician-bi"] .bi-tabs > button { min-height: 47px; font-size: 15px; }
.app-shell[data-route="technician-bi"] .bi-filterbar { min-height: 64px; padding: 11px 14px; gap: 11px; }
.app-shell[data-route="technician-bi"] .bi-filter-secondary { min-height: 56px; }
.app-shell[data-route="technician-bi"] .bi-range { min-height: 38px; padding-inline: 14px; font-size: 14px; }
.app-shell[data-route="technician-bi"] .bi-filter-context,
.app-shell[data-route="technician-bi"] .bi-filter-context strong,
.app-shell[data-route="technician-bi"] .bi-field,
.app-shell[data-route="technician-bi"] .bi-field input,
.app-shell[data-route="technician-bi"] .bi-field select,
.app-shell[data-route="technician-bi"] .bi-effective-date,
.app-shell[data-route="technician-bi"] .bi-effective-date b,
.app-shell[data-route="technician-bi"] .bi-search-field input,
.app-shell[data-route="technician-bi"] .bi-result-meta,
.app-shell[data-route="technician-bi"] .bi-result-meta small { font-size: 14px; line-height: 1.45; }
.app-shell[data-route="technician-bi"] .bi-field input,
.app-shell[data-route="technician-bi"] .bi-field select,
.app-shell[data-route="technician-bi"] .bi-effective-date { min-height: 40px; }
.app-shell[data-route="technician-bi"] .btn,
.app-shell[data-route="technician-bi"] .btn.small { min-height: 38px; padding: 8px 13px; font-size: 14px; }
.app-shell[data-route="technician-bi"] .notice,
.app-shell[data-route="technician-bi"] .bi-incomplete,
.app-shell[data-route="technician-bi"] .bi-source-guidance p,
.app-shell[data-route="technician-bi"] .bi-source-guidance strong,
.app-shell[data-route="technician-bi"] .bi-composite-hold p,
.app-shell[data-route="technician-bi"] .bi-composite-hold small,
.app-shell[data-route="technician-bi"] .bi-hold-reasons span { font-size: 14px; line-height: 1.6; }

.app-shell[data-route="technician-bi"] .bi-overview-kpis { margin-bottom: 18px; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.app-shell[data-route="technician-bi"] .bi-overview-kpis .bi-kpi { min-height: 126px; padding: 22px 24px; gap: 17px; border-radius: 18px; box-shadow: 0 9px 25px rgba(55,38,24,.07); }
.app-shell[data-route="technician-bi"] .bi-overview-kpis .bi-kpi-icon { width: 56px; height: 56px; font-size: 23px; }
.app-shell[data-route="technician-bi"] .bi-overview-kpis .bi-kpi > div > span { font-size: 15px; font-weight: 730; }
.app-shell[data-route="technician-bi"] .bi-overview-kpis .bi-kpi > div > strong { margin-top: 5px; font-size: 34px; line-height: 1; }
.app-shell[data-route="technician-bi"] .bi-overview-kpis .bi-kpi > div > small { margin-top: 8px; overflow: visible; font-size: 13px; line-height: 1.45; white-space: normal; }

.bi-overview-primary-grid { margin-bottom: 17px; display: grid; grid-template-columns: minmax(650px,1.32fr) minmax(390px,.88fr); gap: 17px; align-items: stretch; }
.app-shell[data-route="technician-bi"] .bi-composite-top10,
.app-shell[data-route="technician-bi"] .bi-review-quality { min-height: 550px; padding: 0; overflow: hidden; border-radius: 18px; background: #fff; transform: none; }
.bi-composite-top10 > header,.bi-review-quality > header { min-height: 78px; padding: 17px 20px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid rgba(83,58,39,.10); }
.bi-composite-top10 h3,.bi-review-quality h3 { margin: 0; font-size: 20px; letter-spacing: -.025em; }
.bi-composite-top10 header p,.bi-review-quality header p { margin: 5px 0 0; color: #85776d; font-size: 14px; line-height: 1.45; }
.bi-composite-table-wrap { overflow: auto; }
.bi-composite-top10 table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 14px; }
.bi-composite-top10 th { height: 40px; padding: 8px 14px; color: #81746b; background: #fbf8f4; font-size: 13px; text-align: left; white-space: nowrap; }
.bi-composite-top10 td { height: 42px; padding: 6px 14px; border-top: 1px solid rgba(60,60,67,.065); vertical-align: middle; }
.bi-composite-top10 tr:hover td { background: #fffaf4; }
.bi-composite-rank { width: 26px; height: 26px; display: inline-grid; place-items: center; border-radius: 50%; color: #6f6258; font-size: 13px; font-weight: 800; }
.bi-composite-rank.rank-1 { color: #fff; background: linear-gradient(145deg,#e4b24e,#b8731c); }
.bi-composite-rank.rank-2 { color: #fff; background: linear-gradient(145deg,#9fabb3,#697883); }
.bi-composite-rank.rank-3 { color: #fff; background: linear-gradient(145deg,#c78c60,#9a5b35); }
.bi-composite-person { padding: 0; display: inline-flex; align-items: center; gap: 9px; border: 0; color: #30251f; background: transparent; cursor: pointer; font-size: 14px; text-align: left; }
.bi-composite-person .person-avatar { width: 31px; height: 31px; font-size: 11px; }
.bi-composite-score { color: #6c421d; font-size: 17px; }
.bi-analysis-link { padding: 5px 0; border: 0; color: #a36218; background: transparent; cursor: pointer; font-size: 13px; font-weight: 750; white-space: nowrap; }
.bi-composite-top10 > footer { min-height: 42px; padding: 11px 20px; color: #8a7c72; border-top: 1px solid rgba(83,58,39,.09); background: #fbf8f4; font-size: 13px; line-height: 1.5; }
.bi-table-empty { min-height: 340px; display: grid; place-content: center; justify-items: center; gap: 7px; color: #8a7c72; }
.bi-table-empty strong { color: #4f4239; font-size: 17px; }.bi-table-empty span { font-size: 14px; }

.bi-review-quality-body { min-height: 390px; padding: 28px 28px 20px; display: grid; grid-template-columns: minmax(150px,.78fr) minmax(210px,1.22fr); align-items: center; gap: 22px; }
.bi-review-quality-summary { padding-right: 22px; display: grid; align-content: center; border-right: 1px solid rgba(83,58,39,.10); }
.bi-review-quality-summary > span { color: #877970; font-size: 14px; }
.bi-review-quality-summary > strong { margin: 8px 0 5px; color: #342720; font-size: 32px; line-height: 1; letter-spacing: -.04em; }
.bi-review-quality-summary > small { color: #8f8279; font-size: 13px; line-height: 1.5; }
.bi-review-quality-summary > i { height: 1px; margin: 25px 0; background: rgba(83,58,39,.10); }
.bi-review-ring { width: min(245px,100%); aspect-ratio: 1; margin: auto; padding: 24px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(#dcae62 0 var(--bi-review-percent),#eee7df var(--bi-review-percent) 360deg); box-shadow: inset 0 0 0 1px rgba(83,58,39,.06); }
.bi-review-ring::before { grid-area: 1/1; width: 76%; aspect-ratio: 1; content: ''; border-radius: 50%; background: #fff; box-shadow: 0 6px 22px rgba(74,50,32,.08); }
.bi-review-ring > div { z-index: 1; grid-area: 1/1; display: grid; justify-items: center; text-align: center; }
.bi-review-ring strong { color: #ba4c45; font-size: 35px; line-height: 1; }.bi-review-ring span { margin-top: 8px; color: #3b2d25; font-size: 16px; font-weight: 780; }.bi-review-ring small { margin-top: 6px; color: #8c7f75; font-size: 12px; line-height: 1.4; }
.bi-review-quality > footer { min-height: 70px; padding: 13px 20px; display: flex; align-items: center; flex-wrap: wrap; gap: 15px; border-top: 1px solid rgba(83,58,39,.09); background: #fbf8f4; font-size: 13px; }
.bi-review-quality > footer > span { display: inline-flex; align-items: center; gap: 7px; color: #786b62; }
.bi-review-quality > footer > span i { width: 10px; height: 10px; border-radius: 50%; background: #dbad61; }.bi-review-quality > footer > span i.is-warning { background: #c75a4f; }
.bi-review-quality > footer .btn { margin-left: auto; }

.bi-overview-data-note { min-height: 62px; margin-bottom: 17px; padding: 12px 16px; display: grid; grid-template-columns: 30px minmax(0,1fr) auto; align-items: center; gap: 12px; border: 1px solid rgba(68,111,155,.16); border-radius: 13px; color: #44667f; background: #f0f6fb; }
.bi-overview-data-note > span { font-size: 20px; }.bi-overview-data-note strong { font-size: 14px; }.bi-overview-data-note p { margin: 3px 0 0; color: #657b8c; font-size: 14px; line-height: 1.5; }
.bi-overview-data-note button { min-height: 34px; padding: 6px 11px; border: 1px solid rgba(68,111,155,.20); border-radius: 9px; color: #44667f; background: #fff; cursor: pointer; font-size: 13px; font-weight: 720; }

.app-shell[data-route="technician-bi"] .bi-metric-workbench { margin-top: 0; padding: 20px; overflow: hidden; border: 1px solid rgba(83,58,39,.11); border-radius: 18px; background: #fff; box-shadow: 0 8px 24px rgba(55,38,24,.055); }
.app-shell[data-route="technician-bi"] .bi-single-rankings-heading { min-height: 58px; padding: 0; }
.app-shell[data-route="technician-bi"] .bi-single-rankings-heading strong { font-size: 21px; }
.app-shell[data-route="technician-bi"] .bi-single-rankings-heading p { margin-top: 6px; font-size: 14px; line-height: 1.5; }
.app-shell[data-route="technician-bi"] .bi-single-rankings-heading > span { padding: 7px 11px; font-size: 13px; }
.bi-overview-metric-tabs { margin: 15px 0 18px; display: grid; grid-template-columns: repeat(6,minmax(135px,1fr)); gap: 7px; overflow-x: auto; border-bottom: 1px solid rgba(83,58,39,.11); }
.bi-overview-metric-tabs button { position: relative; min-height: 52px; padding: 8px 10px 11px; display: flex; align-items: center; justify-content: center; gap: 7px; border: 0; color: #6d625a; background: transparent; cursor: pointer; font-size: 14px; font-weight: 750; white-space: nowrap; }
.bi-overview-metric-tabs button::after { position: absolute; right: 7px; bottom: -1px; left: 7px; height: 3px; content: ''; border-radius: 4px 4px 0 0; background: transparent; }
.bi-overview-metric-tabs button:hover { color: #754716; background: #fffaf3; }
.bi-overview-metric-tabs button.is-active { color: #9a5d16; }.bi-overview-metric-tabs button.is-active::after { background: #bd7823; }
.bi-overview-metric-tabs button > span { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 9px; color: #926023; background: #faecd6; }
.bi-overview-metric-tabs button > i { padding: 3px 5px; border-radius: 6px; color: #527182; background: #edf3f6; font-size: 10px; font-style: normal; }
.bi-overview-metric-tabs button.has-partial > i { color: #94611f; background: #fff0d5; }.bi-overview-metric-tabs button.is-missing > i { color: #8c8179; background: #f0efee; }
.bi-metric-focus-grid { display: grid; grid-template-columns: minmax(570px,1.08fr) minmax(450px,.92fr); gap: 17px; align-items: stretch; }
.app-shell[data-route="technician-bi"] .bi-focus-leader,
.app-shell[data-route="technician-bi"] .bi-metric-audit { min-height: 510px; padding: 18px 20px; border-radius: 16px; }
.app-shell[data-route="technician-bi"] .bi-focus-leader > header { min-height: 66px; padding-bottom: 13px; gap: 12px; }
.app-shell[data-route="technician-bi"] .bi-focus-leader .bi-metric-leader-icon { width: 42px; height: 42px; font-size: 18px; }
.app-shell[data-route="technician-bi"] .bi-focus-leader header strong { font-size: 19px; }
.app-shell[data-route="technician-bi"] .bi-focus-leader header small { margin-top: 5px; font-size: 13px; line-height: 1.5; }
.app-shell[data-route="technician-bi"] .bi-partial-ranking-badge { min-height: 30px; font-size: 12px; }
.app-shell[data-route="technician-bi"] .bi-focus-leader .bi-metric-leader-list { margin-top: 6px; }
.app-shell[data-route="technician-bi"] .bi-focus-leader .bi-metric-leader-list button { min-height: 55px; padding: 7px 4px; grid-template-columns: 36px 39px minmax(145px,.85fr) minmax(90px,1fr) auto 56px; gap: 9px; }
.app-shell[data-route="technician-bi"] .bi-focus-leader .bi-metric-leader-list button > b { font-size: 13px; }
.app-shell[data-route="technician-bi"] .bi-focus-leader .bi-metric-leader-list .person-avatar { width: 36px; height: 36px; font-size: 12px; }
.app-shell[data-route="technician-bi"] .bi-focus-leader .bi-metric-leader-list button > span strong { font-size: 14px; }
.app-shell[data-route="technician-bi"] .bi-focus-leader .bi-metric-leader-list button > span small { margin-top: 3px; font-size: 12px; }
.app-shell[data-route="technician-bi"] .bi-focus-leader .bi-metric-leader-list i { height: 8px; }
.app-shell[data-route="technician-bi"] .bi-focus-leader .bi-metric-leader-list output { font-size: 14px; }
.bi-metric-row-action { color: #9b621d; font-size: 12px !important; font-weight: 730; text-align: right; }
.app-shell[data-route="technician-bi"] .bi-focus-leader > footer { margin-top: 10px; padding-top: 11px; color: #866b4e; border-top: 1px solid rgba(183,122,49,.15); font-size: 13px; line-height: 1.55; }
.bi-mixed-partial { margin-top: 13px; overflow: hidden; border: 1px solid rgba(183,122,49,.22); border-radius: 12px; background: #fffaf1; }
.app-shell[data-route="technician-bi"] .bi-mixed-partial > header { min-height: 44px; padding: 8px 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid rgba(183,122,49,.14); }
.bi-mixed-partial > header strong { color: #754817; font-size: 14px; }.bi-mixed-partial > header span { color: #8a6e4d; font-size: 12px; }
.bi-mixed-partial > button { width: 100%; min-height: 48px; padding: 7px 12px; display: grid; grid-template-columns: 48px minmax(0,1fr) auto; align-items: center; gap: 10px; border: 0; border-top: 1px solid rgba(183,122,49,.10); color: #3c2e25; background: transparent; cursor: pointer; text-align: left; }
.bi-mixed-partial > button:first-of-type { border-top: 0; }.bi-mixed-partial > button:hover { background: #fff4df; }
.bi-mixed-partial > button > b { color: #9a641f; font-size: 13px; }.bi-mixed-partial > button span strong,.bi-mixed-partial > button span small { display: block; }.bi-mixed-partial > button span strong { font-size: 14px; }.bi-mixed-partial > button span small { margin-top: 3px; color: #8b745a; font-size: 12px; }.bi-mixed-partial > button output { color: #754817; font-size: 14px; font-weight: 780; }
.app-shell[data-route="technician-bi"] .bi-focus-leader .bi-metric-source-empty { min-height: 380px; }
.app-shell[data-route="technician-bi"] .bi-focus-leader .bi-metric-source-empty strong { font-size: 17px; }.app-shell[data-route="technician-bi"] .bi-focus-leader .bi-metric-source-empty p { max-width: 430px; font-size: 14px; line-height: 1.6; }

.bi-metric-audit { overflow: hidden; border: 1px solid rgba(80,59,43,.10); background: linear-gradient(145deg,#fff,#fbf8f4); box-shadow: 0 6px 18px rgba(55,38,24,.045); }
.bi-metric-audit.is-provisional { border-color: rgba(183,122,49,.27); background: linear-gradient(145deg,#fffaf1,#fff); }
.bi-metric-audit > header { min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid rgba(83,58,39,.09); }
.bi-metric-audit > header div > span { display: block; color: #998a7f; font-size: 12px; }.bi-metric-audit > header div > strong { display: block; margin-top: 4px; font-size: 18px; }
.bi-metric-audit-facts { margin: 17px 0; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border: 1px solid rgba(83,58,39,.09); border-radius: 13px; background: rgba(255,255,255,.72); }
.bi-metric-audit-facts > div { min-width: 0; min-height: 82px; padding: 14px; display: grid; align-content: center; border-left: 1px solid rgba(83,58,39,.08); }.bi-metric-audit-facts > div:first-child { border-left: 0; }
.bi-metric-audit-facts span { color: #887b72; font-size: 12px; }.bi-metric-audit-facts strong { margin-top: 7px; overflow: hidden; color: #3b2c24; font-size: 22px; text-overflow: ellipsis; white-space: nowrap; }.bi-metric-audit-facts small { margin-left: 3px; font-size: 12px; }
.bi-metric-distribution > div:first-child { margin-bottom: 12px; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }.bi-metric-distribution > div strong { font-size: 16px; }.bi-metric-distribution > div small { color: #8c7e74; font-size: 12px; }
.bi-metric-distribution p { min-height: 45px; margin: 0; display: grid; grid-template-columns: 95px minmax(80px,1fr) 90px; align-items: center; gap: 10px; border-top: 1px solid rgba(83,58,39,.07); }
.bi-metric-distribution p > span { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }.bi-metric-distribution p > i { height: 9px; overflow: hidden; border-radius: 99px; background: #eee8e1; }.bi-metric-distribution p > i b { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#b66e19,#dfa956); }.bi-metric-distribution p > strong { color: #70451e; font-size: 14px; text-align: right; }
.bi-metric-audit > footer { margin-top: 15px; padding-top: 12px; color: #81746b; border-top: 1px solid rgba(83,58,39,.09); font-size: 13px; line-height: 1.5; }
.bi-metric-audit-empty { min-height: 255px; display: grid; place-content: center; justify-items: center; text-align: center; }.bi-metric-audit-empty strong { font-size: 17px; }.bi-metric-audit-empty p { max-width: 380px; color: #8a7d73; font-size: 14px; line-height: 1.55; }
.bi-overview-metric-trend svg { width: 100%; height: 230px; overflow: visible; }.bi-overview-metric-trend svg g line { stroke: #e5ddd5; stroke-width: .35; }.bi-overview-metric-trend svg polyline { fill: none; stroke: #ba7420; stroke-width: 1.5; vector-effect: non-scaling-stroke; }.bi-overview-metric-trend svg circle { fill: #fff; stroke: #ba7420; stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.bi-overview-metric-trend > div { display: flex; justify-content: space-between; gap: 6px; }.bi-overview-metric-trend span { min-width: 0; display: grid; justify-items: center; }.bi-overview-metric-trend b { font-size: 12px; }.bi-overview-metric-trend small { max-width: 70px; overflow: hidden; color: #8c7f75; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }

.app-shell[data-route="technician-bi"] .bi-monthly-commission-leader { margin: 18px 0 0; padding: 18px 20px; }
.app-shell[data-route="technician-bi"] .bi-monthly-commission-leader header strong { font-size: 18px; }.app-shell[data-route="technician-bi"] .bi-monthly-commission-leader header small,.app-shell[data-route="technician-bi"] .bi-monthly-commission-leader footer { font-size: 13px; line-height: 1.55; }
.app-shell[data-route="technician-bi"] .bi-monthly-commission-period,.app-shell[data-route="technician-bi"] .bi-monthly-commission-period select { font-size: 13px; }
.app-shell[data-route="technician-bi"] .bi-monthly-commission-leader .bi-metric-leader-list button { min-height: 50px; grid-template-columns: 34px 37px minmax(150px,.8fr) minmax(90px,1fr) auto; gap: 9px; }.app-shell[data-route="technician-bi"] .bi-monthly-commission-leader .bi-metric-leader-list button > b,.app-shell[data-route="technician-bi"] .bi-monthly-commission-leader .bi-metric-leader-list button > span strong,.app-shell[data-route="technician-bi"] .bi-monthly-commission-leader .bi-metric-leader-list output { font-size: 13px; }.app-shell[data-route="technician-bi"] .bi-monthly-commission-leader .bi-metric-leader-list button > span small { font-size: 12px; }

/* 全员表和个人页也保持正文/表格14px；空间不足时横向滚动，不压缩字号。 */
.app-shell[data-route="technician-bi"] .bi-all-page,
.app-shell[data-route="technician-bi"] .bi-person-page { min-width: 1080px; }
.app-shell[data-route="technician-bi"] .bi-data-table { min-width: 1540px; font-size: 14px; }
.app-shell[data-route="technician-bi"] .bi-data-table th,
.app-shell[data-route="technician-bi"] .bi-data-table td { padding: 11px 9px; font-size: 14px; line-height: 1.45; }
.app-shell[data-route="technician-bi"] .bi-table-toolbar > div:first-child strong { font-size: 17px; }.app-shell[data-route="technician-bi"] .bi-table-toolbar > div:first-child span,.app-shell[data-route="technician-bi"] .bi-table-note,.app-shell[data-route="technician-bi"] .pagination { font-size: 14px; line-height: 1.5; }
.app-shell[data-route="technician-bi"] .bi-metric-cell strong,
.app-shell[data-route="technician-bi"] .bi-metric-cell small,
.app-shell[data-route="technician-bi"] .bi-status,
.app-shell[data-route="technician-bi"] .bi-store-star small,
.app-shell[data-route="technician-bi"] .bi-analysis-button { font-size: 14px !important; }

@media (max-width: 1500px) {
  .app-shell[data-route="technician-bi"] .content { padding-inline: 18px; }
  .app-shell[data-route="technician-bi"] .bi-overview-kpis .bi-kpi { padding-inline: 17px; }
  .bi-overview-primary-grid { grid-template-columns: minmax(630px,1.25fr) minmax(380px,.75fr); }
  .bi-metric-focus-grid { grid-template-columns: minmax(555px,1.04fr) minmax(435px,.96fr); }
  .bi-review-quality-body { padding-inline: 20px; gap: 15px; }
}

@media (max-width: 1240px) {
  .app-shell[data-route="technician-bi"] .bi-overview-page,
  .app-shell[data-route="technician-bi"] .bi-all-page,
  .app-shell[data-route="technician-bi"] .bi-person-page { min-width: 1060px; }
  .bi-overview-primary-grid { grid-template-columns: minmax(620px,1.2fr) minmax(370px,.8fr); }
  .bi-metric-focus-grid { grid-template-columns: minmax(540px,1fr) minmax(430px,1fr); }
}

/* V6.8.22 技师质量综合 BI：1366×768 首屏驾驶舱与全板块超时恢复。 */
.app-shell[data-route="technician-bi"] {
  grid-template-columns: 224px minmax(0,1fr);
  color: #2d231d;
  background: #f7f2ea;
  font-family: "Microsoft YaHei", "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.app-shell[data-route="technician-bi"] .sidebar { width: 224px; padding: 12px 10px; }
.app-shell[data-route="technician-bi"] .brand { height: 60px; padding: 6px 9px; border-radius: 14px; }
.app-shell[data-route="technician-bi"] .brand-logo-frame { width: 180px; height: 48px; flex: 0 0 180px; }
.app-shell[data-route="technician-bi"] .brand-logo-frame img,
.app-shell[data-route="technician-bi"] .brand img { top: -31px; left: -28px; width: 241px; }
.app-shell[data-route="technician-bi"] .brand-context { padding: 9px 7px 8px; }
.app-shell[data-route="technician-bi"] .brand-context strong { font-size: 12px; }
.app-shell[data-route="technician-bi"] .brand-context span { font-size: 10px; }
.app-shell[data-route="technician-bi"] .nav { gap: 7px; }
.app-shell[data-route="technician-bi"] .nav-group { gap: 2px; }
.app-shell[data-route="technician-bi"] .nav-group-label { padding-bottom: 3px; font-size: 10px; }
.app-shell[data-route="technician-bi"] .nav-item { min-height: 39px; padding: 6px 8px; gap: 8px; border-radius: 10px; font-size: 13px; }
.app-shell[data-route="technician-bi"] .nav-icon { width: 27px; height: 27px; border-radius: 8px; font-size: 14px; }
.app-shell[data-route="technician-bi"] .sidebar-status { padding: 8px 4px 0; }
.app-shell[data-route="technician-bi"] .status-row { margin: 5px 0; font-size: 10px; }
.app-shell[data-route="technician-bi"] .user-card { margin-top: 7px; padding: 7px; grid-template-columns: 32px minmax(0,1fr) auto; border-radius: 11px; }
.app-shell[data-route="technician-bi"] .user-card .avatar { width: 32px; height: 32px; }
.app-shell[data-route="technician-bi"] .user-copy strong { font-size: 11px; }
.app-shell[data-route="technician-bi"] .user-copy span { font-size: 9px; }
.app-shell[data-route="technician-bi"] .topbar { min-height: 78px; padding: 11px 20px; }
.app-shell[data-route="technician-bi"] .page-eyebrow { margin-bottom: 3px; font-size: 9px; }
.app-shell[data-route="technician-bi"] .page-title h1 { font-size: 23px; }
.app-shell[data-route="technician-bi"] .page-title p { margin-top: 4px; font-size: 11px; }
.app-shell[data-route="technician-bi"] .header-tools { gap: 7px; }
.app-shell[data-route="technician-bi"] .header-save { display: none; }
.app-shell[data-route="technician-bi"] .content { max-width: none; padding: 12px 18px 34px; }
.app-shell[data-route="technician-bi"] .bi-overview-page,
.app-shell[data-route="technician-bi"] .bi-all-page,
.app-shell[data-route="technician-bi"] .bi-person-page { min-width: 0; }

.app-shell[data-route="technician-bi"] .bi-tabs { min-height: 40px; margin: 0 0 9px; gap: 24px; }
.app-shell[data-route="technician-bi"] .bi-tabs > button { min-height: 40px; font-size: 13px; }
.app-shell[data-route="technician-bi"] .bi-tabs > .bi-weight-trigger { padding-inline: 11px; border-radius: 9px 9px 0 0; }
.app-shell[data-route="technician-bi"] .bi-filter-shell { margin-bottom: 10px; border-radius: 13px; box-shadow: 0 4px 14px rgba(66,43,26,.045); }
.app-shell[data-route="technician-bi"] .bi-filterbar { min-height: 48px; padding: 6px 9px; gap: 7px; }
.app-shell[data-route="technician-bi"] .bi-filter-primary { flex-wrap: nowrap; }
.app-shell[data-route="technician-bi"] .bi-filter-secondary { min-height: 38px; }
.app-shell[data-route="technician-bi"] .bi-range-group { padding: 2px; }
.app-shell[data-route="technician-bi"] .bi-range { min-height: 30px; padding-inline: 10px; font-size: 12px; }
.app-shell[data-route="technician-bi"] .bi-field { min-width: 106px; font-size: 12px; }
.app-shell[data-route="technician-bi"] .bi-select-field { min-width: 118px; }
.app-shell[data-route="technician-bi"] .bi-range-select-field { min-width: 112px; }
.app-shell[data-route="technician-bi"] .bi-date-field { min-width: 124px; }
.app-shell[data-route="technician-bi"] .bi-field input,
.app-shell[data-route="technician-bi"] .bi-field select,
.app-shell[data-route="technician-bi"] .bi-effective-date { min-height: 31px; font-size: 12px; }
.app-shell[data-route="technician-bi"] .bi-effective-date { padding-inline: 10px; }
.app-shell[data-route="technician-bi"] .bi-filter-context,
.app-shell[data-route="technician-bi"] .bi-filter-context strong { font-size: 12px; line-height: 1.4; }
.app-shell[data-route="technician-bi"] .bi-employee-filter { min-width: 156px; max-width: 220px; height: 32px; flex: 1 1 170px; }
.app-shell[data-route="technician-bi"] .bi-employee-filter input { font-size: 12px; }
.app-shell[data-route="technician-bi"] .btn,
.app-shell[data-route="technician-bi"] .btn.small { min-height: 32px; padding: 6px 10px; font-size: 12px; }

.app-shell[data-route="technician-bi"] .bi-overview-kpis { margin-bottom: 10px; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.app-shell[data-route="technician-bi"] .bi-overview-kpis .bi-kpi { min-height: 88px; padding: 11px 14px; gap: 11px; border-radius: 14px; box-shadow: 0 5px 15px rgba(55,38,24,.05); }
.app-shell[data-route="technician-bi"] .bi-overview-kpis .bi-kpi-icon { width: 39px; height: 39px; font-size: 17px; }
.app-shell[data-route="technician-bi"] .bi-overview-kpis .bi-kpi > div > span { font-size: 13px; font-weight: 730; }
.app-shell[data-route="technician-bi"] .bi-overview-kpis .bi-kpi > div > strong { margin-top: 2px; font-size: 25px; line-height: 1; }
.app-shell[data-route="technician-bi"] .bi-overview-kpis .bi-kpi > div > small { margin-top: 4px; font-size: 12px; line-height: 1.35; white-space: nowrap; }

.app-shell[data-route="technician-bi"] .bi-overview-primary-grid { margin-bottom: 12px; grid-template-columns: minmax(620px,1.42fr) minmax(330px,.78fr); gap: 12px; align-items: stretch; }
.app-shell[data-route="technician-bi"] .bi-composite-top10,
.app-shell[data-route="technician-bi"] .bi-review-quality { height: 334px; min-height: 0; padding: 0; overflow: hidden; border-radius: 15px; background: #fffdf9; }
.app-shell[data-route="technician-bi"] .bi-composite-top10 > header,
.app-shell[data-route="technician-bi"] .bi-review-quality > header { min-height: 58px; padding: 10px 14px; gap: 10px; }
.bi-section-eyebrow { display: block; margin-bottom: 2px; color: #a9783f; font-size: 11px; font-weight: 780; letter-spacing: .06em; }
.app-shell[data-route="technician-bi"] .bi-composite-top10 h3,
.app-shell[data-route="technician-bi"] .bi-review-quality h3 { font-size: 20px; }
.app-shell[data-route="technician-bi"] .bi-composite-top10 header p,
.app-shell[data-route="technician-bi"] .bi-review-quality header p { margin-top: 3px; font-size: 12px; line-height: 1.35; }
.app-shell[data-route="technician-bi"] .bi-composite-table-wrap { max-height: 244px; overflow: auto; }
.app-shell[data-route="technician-bi"] .bi-composite-top10 thead { position: sticky; top: 0; z-index: 1; }
.app-shell[data-route="technician-bi"] .bi-composite-top10 table { min-width: 620px; font-size: 12px; }
.app-shell[data-route="technician-bi"] .bi-composite-top10 th { height: 30px; padding: 5px 10px; font-size: 12px; }
.app-shell[data-route="technician-bi"] .bi-composite-top10 td { height: 38px; padding: 4px 10px; font-size: 12px; }
.app-shell[data-route="technician-bi"] .bi-composite-rank { width: 24px; height: 24px; font-size: 12px; }
.app-shell[data-route="technician-bi"] .bi-composite-person { gap: 7px; font-size: 12px; }
.app-shell[data-route="technician-bi"] .bi-composite-person .person-avatar { width: 27px; height: 27px; font-size: 10px; }
.app-shell[data-route="technician-bi"] .bi-composite-score { font-size: 15px; }
.app-shell[data-route="technician-bi"] .bi-analysis-link { font-size: 12px; }
.app-shell[data-route="technician-bi"] .bi-composite-top10 > footer { min-height: 32px; padding: 7px 12px; display: flex; justify-content: space-between; gap: 10px; font-size: 12px; line-height: 1.35; }
.app-shell[data-route="technician-bi"] .bi-table-empty { min-height: 92px; gap: 4px; }
.app-shell[data-route="technician-bi"] .bi-table-empty strong { font-size: 14px; }
.app-shell[data-route="technician-bi"] .bi-table-empty span { font-size: 12px; }

.bi-capability-list { display: grid; }
.bi-capability-row { width: 100%; min-height: 56px; padding: 6px 12px; display: grid; grid-template-columns: 32px minmax(0,1fr) auto auto; align-items: center; gap: 9px; border: 0; border-top: 1px solid rgba(83,58,39,.08); color: #382a22; background: transparent; cursor: pointer; text-align: left; }
.bi-capability-row:hover { background: #fff7eb; }
.bi-capability-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; color: #81501b; background: #f8e8cc; font-size: 11px; font-weight: 820; }
.bi-capability-row > span:nth-child(2) { min-width: 0; }
.bi-capability-row strong,.bi-capability-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bi-capability-row strong { font-size: 13px; }
.bi-capability-row small { margin-top: 2px; color: #887a70; font-size: 12px; }
.bi-capability-row output { color: #704315; font-size: 14px; font-weight: 790; white-space: nowrap; }
.bi-capability-row > i { color: #a06c2f; font-size: 12px; font-style: normal; white-space: nowrap; }
.bi-capability-row.is-partial output { color: #9a641f; }
.bi-capability-row.is-empty { color: #786e67; }
.bi-capability-row.is-empty output { color: #9a8e85; }
.app-shell[data-route="technician-bi"] .bi-key-capabilities > footer { min-height: 52px; padding: 7px 12px; display: grid; align-content: center; gap: 2px; color: #76685e; border-top: 1px solid rgba(83,58,39,.09); background: #fbf5ea; font-size: 12px; line-height: 1.35; }

.app-shell[data-route="technician-bi"] .bi-metric-workbench { margin-top: 0; padding: 14px; border-radius: 15px; }
.app-shell[data-route="technician-bi"] .bi-single-rankings-heading { min-height: 42px; }
.app-shell[data-route="technician-bi"] .bi-single-rankings-heading strong { font-size: 20px; }
.app-shell[data-route="technician-bi"] .bi-single-rankings-heading p { margin-top: 3px; font-size: 12px; }
.app-shell[data-route="technician-bi"] .bi-single-rankings-heading > span { padding: 5px 8px; font-size: 12px; }
.app-shell[data-route="technician-bi"] .bi-overview-metric-tabs { margin: 8px 0 11px; grid-template-columns: repeat(6,minmax(126px,1fr)); gap: 4px; }
.app-shell[data-route="technician-bi"] .bi-overview-metric-tabs button { min-height: 42px; padding: 6px 7px 8px; gap: 5px; font-size: 12px; }
.app-shell[data-route="technician-bi"] .bi-overview-metric-tabs button > span { width: 23px; height: 23px; border-radius: 7px; }
.app-shell[data-route="technician-bi"] .bi-metric-focus-grid { grid-template-columns: minmax(530px,1.08fr) minmax(390px,.92fr); gap: 12px; }
.app-shell[data-route="technician-bi"] .bi-focus-leader,
.app-shell[data-route="technician-bi"] .bi-metric-audit { min-height: 390px; padding: 13px 15px; border-radius: 13px; }
.app-shell[data-route="technician-bi"] .bi-focus-leader > header { min-height: 52px; padding-bottom: 9px; }
.app-shell[data-route="technician-bi"] .bi-focus-leader .bi-metric-leader-icon { width: 34px; height: 34px; font-size: 15px; }
.app-shell[data-route="technician-bi"] .bi-focus-leader header strong { font-size: 15px; }
.app-shell[data-route="technician-bi"] .bi-focus-leader header small { margin-top: 3px; font-size: 12px; line-height: 1.35; }
.app-shell[data-route="technician-bi"] .bi-focus-leader .bi-metric-leader-list button { min-height: 43px; padding: 5px 3px; grid-template-columns: 28px 31px minmax(120px,.85fr) minmax(70px,1fr) auto 50px; gap: 7px; }
.app-shell[data-route="technician-bi"] .bi-focus-leader .bi-metric-leader-list .person-avatar { width: 30px; height: 30px; }
.app-shell[data-route="technician-bi"] .bi-focus-leader .bi-metric-leader-list button > span strong,
.app-shell[data-route="technician-bi"] .bi-focus-leader .bi-metric-leader-list output { font-size: 12px; }
.app-shell[data-route="technician-bi"] .bi-focus-leader .bi-metric-leader-list button > span small,
.app-shell[data-route="technician-bi"] .bi-metric-row-action { font-size: 12px !important; }
.app-shell[data-route="technician-bi"] .bi-focus-leader .bi-metric-source-empty { min-height: 150px; }
.app-shell[data-route="technician-bi"] .bi-focus-leader .bi-metric-source-empty strong { font-size: 14px; }
.app-shell[data-route="technician-bi"] .bi-focus-leader .bi-metric-source-empty p { font-size: 12px; line-height: 1.45; }
.app-shell[data-route="technician-bi"] .bi-metric-audit > header { min-height: 48px; }
.app-shell[data-route="technician-bi"] .bi-metric-audit > header div > strong { font-size: 14px; }
.app-shell[data-route="technician-bi"] .bi-metric-audit-facts { margin: 10px 0; }
.app-shell[data-route="technician-bi"] .bi-metric-audit-facts > div { min-height: 64px; padding: 10px; }
.app-shell[data-route="technician-bi"] .bi-metric-audit-facts strong { margin-top: 4px; font-size: 17px; }
.app-shell[data-route="technician-bi"] .bi-metric-distribution p { min-height: 38px; font-size: 12px; }
.app-shell[data-route="technician-bi"] .bi-metric-audit-empty { min-height: 145px; }
.app-shell[data-route="technician-bi"] .bi-overview-metric-trend svg { height: 160px; }

.app-shell[data-route="technician-bi"] .bi-state { min-height: 94px; padding: 14px; grid-template-columns: 32px minmax(0,1fr) auto; place-content: initial; align-items: center; justify-items: start; gap: 4px 10px; border-radius: 13px; text-align: left; }
.app-shell[data-route="technician-bi"] .bi-state-icon { grid-row: span 2; width: 32px; height: 32px; }
.app-shell[data-route="technician-bi"] .bi-state strong { font-size: 13px; }
.app-shell[data-route="technician-bi"] .bi-state p { font-size: 12px; line-height: 1.4; }
.app-shell[data-route="technician-bi"] .bi-state .btn { grid-column: 3; grid-row: 1 / span 2; }
.app-shell[data-route="technician-bi"] .bi-mini-empty { min-height: 74px; padding: 12px; }
.app-shell[data-route="technician-bi"] .bi-source-guidance { min-height: 64px; margin-bottom: 10px; padding: 9px 12px; grid-template-columns: 32px minmax(0,1fr) auto; gap: 10px; border-radius: 12px; }
.app-shell[data-route="technician-bi"] .bi-source-guidance-icon { width: 32px; height: 32px; border-radius: 9px; font-size: 15px; }
.app-shell[data-route="technician-bi"] .bi-source-guidance strong { font-size: 13px; }
.app-shell[data-route="technician-bi"] .bi-source-guidance p { margin-top: 2px; font-size: 12px; line-height: 1.4; }
.app-shell[data-route="technician-bi"] .bi-composite-hold { min-height: 82px; margin-bottom: 10px; padding: 11px 13px; grid-template-columns: 34px minmax(0,1fr); gap: 10px; border-radius: 12px; }
.app-shell[data-route="technician-bi"] .bi-composite-hold-icon { width: 32px; height: 32px; border-radius: 9px; }
.app-shell[data-route="technician-bi"] .bi-composite-hold strong { font-size: 13px; }
.app-shell[data-route="technician-bi"] .bi-composite-hold p { margin: 3px 0 6px; font-size: 12px; line-height: 1.4; }
.app-shell[data-route="technician-bi"] .bi-composite-hold small { display: none; }
.app-shell[data-route="technician-bi"] .bi-hold-reasons span { padding: 3px 6px; font-size: 12px; line-height: 1.3; }

.bi-diagnostics { margin-top: 10px; display: grid; gap: 6px; }
.bi-diagnostic-details,
.bi-overview-data-note { overflow: hidden; border: 1px solid rgba(115,83,57,.14); border-radius: 10px; color: #65482f; background: #fffaf2; }
.bi-diagnostic-details summary,
.bi-overview-data-note summary { min-height: 34px; padding: 7px 10px; display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 12px; font-weight: 730; list-style: none; }
.bi-diagnostic-details summary::-webkit-details-marker,
.bi-overview-data-note summary::-webkit-details-marker { display: none; }
.bi-diagnostic-details summary::after,
.bi-overview-data-note summary::after { margin-left: auto; content: '⌄'; color: #9a7449; }
.bi-diagnostic-details[open] summary::after,
.bi-overview-data-note[open] summary::after { transform: rotate(180deg); }
.bi-diagnostic-details summary small,
.bi-overview-data-note summary small { margin-left: auto; color: #9a8c80; font-size: 12px; font-weight: 600; }
.bi-diagnostic-details summary small + *,
.bi-overview-data-note summary small + * { margin-left: 0; }
.bi-diagnostic-details > p { margin: 0; padding: 8px 10px 10px; color: #76675c; border-top: 1px solid rgba(115,83,57,.10); font-size: 12px; line-height: 1.5; }
.bi-diagnostic-details.is-warning { border-color: rgba(183,122,49,.22); background: #fff7e8; }
.bi-sync-status { color: #526d78; background: #f2f7f9; }
.app-shell[data-route="technician-bi"] .bi-sync-status { margin-bottom: 8px; }
.app-shell[data-route="technician-bi"] .bi-overview-data-note { min-height: 0; margin: 10px 0 0; padding: 0; display: block; color: #586f79; background: #f4f8fa; }
.bi-overview-data-note summary { display: grid; grid-template-columns: 22px auto 1fr auto; }
.bi-overview-data-note summary > span { font-size: 15px; }
.bi-overview-data-note summary > small { justify-self: end; }
.bi-overview-data-note > div { padding: 8px 10px 10px 40px; display: flex; align-items: center; gap: 10px; border-top: 1px solid rgba(68,111,155,.12); }
.bi-overview-data-note > div p { flex: 1; margin: 0; color: #657b84; font-size: 12px; line-height: 1.5; }
.bi-overview-data-note > div button { min-height: 30px; padding: 5px 9px; font-size: 12px; }
.app-shell[data-route="technician-bi"] .notice,
.app-shell[data-route="technician-bi"] .bi-incomplete { margin-bottom: 8px; padding: 8px 11px; font-size: 12px; line-height: 1.45; }

.app-shell[data-route="technician-bi"] .bi-all-page .bi-data-table,
.app-shell[data-route="technician-bi"] .bi-person-page .bi-data-table { min-width: 1380px; }
.app-shell[data-route="technician-bi"] .bi-data-table th,
.app-shell[data-route="technician-bi"] .bi-data-table td { padding: 9px 7px; font-size: 12px; }
.app-shell[data-route="technician-bi"] .bi-metric-cell strong,
.app-shell[data-route="technician-bi"] .bi-metric-cell small,
.app-shell[data-route="technician-bi"] .bi-status,
.app-shell[data-route="technician-bi"] .bi-store-star small,
.app-shell[data-route="technician-bi"] .bi-analysis-button { font-size: 12px !important; }

.bi-repeat-phone-filter { margin-top: 12px; padding: 10px 12px; display: flex; align-items: flex-end; gap: 8px; border: 1px solid rgba(183,122,49,.22); border-radius: 12px; background: #fff9ee; }
.bi-repeat-phone-filter label { min-width: 260px; display: grid; gap: 5px; color: #72563f; font-size: 12px; font-weight: 720; }
.bi-repeat-phone-filter input { min-height: 34px; padding: 6px 10px; border: 1px solid #d9cbbb; border-radius: 9px; color: #2d231d; background: #fff; font-size: 13px; }
.bi-repeat-phone-filter small { flex: 1; color: #817268; font-size: 12px; line-height: 1.45; }
.bi-drilldown-basis { font-size: 12px; line-height: 1.55; }
.bi-drilldown-auxiliary { margin-top: 10px; padding: 8px 11px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; border: 1px solid rgba(76,103,117,.15); border-radius: 10px; background: #f4f8fa; }
.bi-drilldown-auxiliary > span { color: #657a84; font-size: 12px; font-weight: 760; }
.bi-drilldown-auxiliary > strong { padding-left: 12px; color: #4e4036; border-left: 1px solid rgba(76,103,117,.16); font-size: 12px; font-weight: 650; line-height: 1.4; }
.commission-detail-table td.bi-drilldown-orders { min-width: 190px; max-width: 360px; line-height: 1.5; white-space: normal; word-break: break-all; }
.commission-detail-table td.bi-drilldown-items { min-width: 150px; max-width: 300px; line-height: 1.5; white-space: normal; }
.commission-detail-table td.bi-drilldown-customer-id { min-width: 165px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; word-break: break-all; }

.app-shell[data-route="technician-bi"] .bi-focus-leader .bi-metric-leader-list button.has-auxiliary { min-height: 67px; grid-template-columns: 28px 31px minmax(190px,1.25fr) minmax(55px,.45fr) auto 50px; }
.bi-metric-row-person { min-width: 0; }
.app-shell[data-route="technician-bi"] .bi-focus-leader .bi-metric-row-person .bi-metric-row-aux { margin-top: 2px; color: #77695f; font-size: 12px !important; font-weight: 590; line-height: 1.25; }
.app-shell[data-route="technician-bi"] .bi-focus-leader .bi-metric-row-person .bi-metric-row-aux + .bi-metric-row-aux { color: #9a6c35; }
.bi-metric-audit-aux { margin: -2px 0 10px; padding: 8px 10px; display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 8px 12px; border: 1px solid rgba(183,122,49,.17); border-radius: 10px; background: #fff9ef; }
.bi-metric-audit-aux > span { color: #8a6b4d; font-size: 12px; font-weight: 730; white-space: nowrap; }
.bi-metric-audit-aux > div { min-width: 0; display: grid; gap: 2px; }
.bi-metric-audit-aux strong { overflow: hidden; color: #5d4634; font-size: 12px; font-weight: 650; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }

/* BI业务文字在1366布局下保持可读；头像字形等纯图形元素不受此覆盖。 */
.app-shell[data-route="technician-bi"] .brand-context span,
.app-shell[data-route="technician-bi"] .nav-group-label,
.app-shell[data-route="technician-bi"] .status-row,
.app-shell[data-route="technician-bi"] .mini-connection-row strong,
.app-shell[data-route="technician-bi"] .mini-connection-row small,
.app-shell[data-route="technician-bi"] .user-copy strong,
.app-shell[data-route="technician-bi"] .user-copy span,
.app-shell[data-route="technician-bi"] .page-eyebrow,
.app-shell[data-route="technician-bi"] .page-title p,
.app-shell[data-route="technician-bi"] .bi-overview-metric-tabs button > i,
.app-shell[data-route="technician-bi"] .bi-overview-metric-trend small,
.app-shell[data-route="technician-bi"] .bi-section-eyebrow { font-size: 12px; }

.performance-statistics-settings-card .performance-rate-setting { display: grid; grid-template-columns: minmax(210px,280px) minmax(0,1fr); align-items: end; gap: 18px; }
.performance-statistics-settings-card .performance-rate-setting .field { margin: 0; }
.performance-statistics-settings-card .performance-rate-setting input { min-height: 40px; font-size: 15px; font-variant-numeric: tabular-nums; }
.performance-statistics-settings-card .performance-rate-setting > div { padding: 10px 13px; border: 1px solid rgba(183,122,49,.18); border-radius: 11px; background: #fff9ef; }
.performance-statistics-settings-card .performance-rate-setting strong { color: #704315; font-size: 15px; }
.performance-statistics-settings-card .performance-rate-setting p { margin: 4px 0 0; color: #74685f; font-size: 12px; line-height: 1.55; }

@media (max-width: 1280px) {
  .app-shell[data-route="technician-bi"] { grid-template-columns: 204px minmax(0,1fr); }
  .app-shell[data-route="technician-bi"] .sidebar { width: 204px; }
  .app-shell[data-route="technician-bi"] .content { padding-inline: 13px; }
  .app-shell[data-route="technician-bi"] .bi-overview-primary-grid,
  .app-shell[data-route="technician-bi"] .bi-metric-focus-grid { grid-template-columns: 1fr; }
  .app-shell[data-route="technician-bi"] .bi-filter-primary { flex-wrap: wrap; }
  .app-shell[data-route="technician-bi"] .bi-range { padding-inline: 8px; }
  .app-shell[data-route="technician-bi"] .bi-focus-leader .bi-metric-leader-list button.has-auxiliary { grid-template-columns: 28px 31px minmax(220px,1fr) minmax(70px,.4fr) auto 50px; }
}

@media (max-width: 760px) {
  .bi-repeat-phone-filter { align-items: stretch; flex-direction: column; }
  .bi-repeat-phone-filter label { min-width: 0; }
  .performance-statistics-settings-card .performance-rate-setting { grid-template-columns: 1fr; }
  .bi-metric-audit-aux { grid-template-columns: 1fr; }
}

/* V6.8.23 技师质量综合 BI：严格对齐 1536×1024 管理驾驶舱参考稿。
   仅覆盖 technician-bi；统计口径与交互逻辑全部由原脚本保持。 */
.app-shell[data-route="technician-bi"] {
  --bi23-bg: #faf8f5;
  --bi23-card: #fff;
  --bi23-card-warm: #fffdfa;
  --bi23-text: #201d1a;
  --bi23-text-2: #524a44;
  --bi23-muted: #847b73;
  --bi23-line: #e5dfd8;
  --bi23-line-soft: #eee9e4;
  --bi23-brown: #914719;
  --bi23-brown-deep: #71330f;
  --bi23-brown-soft: #f7ece3;
  --bi23-green: #0b8a55;
  --bi23-green-soft: #e9f6ef;
  --bi23-blue: #1875b4;
  --bi23-blue-soft: #eaf3f9;
  --bi23-orange: #dc841b;
  --bi23-orange-soft: #fff2df;
  --bi23-red: #c63c31;
  --bi23-red-soft: #fceceb;
  grid-template-columns: 224px minmax(0, 1fr);
  color: var(--bi23-text);
  background: var(--bi23-bg);
}
.app-shell[data-route="technician-bi"] .main {
  min-width: 0;
  overflow-x: clip;
  background: var(--bi23-bg);
}
.app-shell[data-route="technician-bi"] .main::before { display: none; }
.app-shell[data-route="technician-bi"] .topbar {
  min-height: 76px;
  padding: 12px 18px 10px;
  border-bottom-color: var(--bi23-line-soft);
  background: rgba(252,250,247,.96);
  box-shadow: none;
  backdrop-filter: blur(14px);
}
.app-shell[data-route="technician-bi"] .page-eyebrow {
  margin-bottom: 2px;
  color: #655d57;
  font-size: 11px;
  letter-spacing: .02em;
}
.app-shell[data-route="technician-bi"] .page-title h1 {
  color: #171512;
  font-size: 25px;
  line-height: 1.12;
  letter-spacing: -.035em;
}
.app-shell[data-route="technician-bi"] .page-title p {
  margin-top: 3px;
  color: #706860;
  font-size: 11px;
}
.app-shell[data-route="technician-bi"] .header-tools { gap: 9px; }
.app-shell[data-route="technician-bi"] .header-save {
  min-height: 34px;
  display: inline-flex;
  color: #087b4b;
  font-size: 11px;
  font-weight: 700;
}
.app-shell[data-route="technician-bi"] .header-save i {
  width: 8px;
  height: 8px;
  background: var(--bi23-green);
  box-shadow: 0 0 0 3px rgba(11,138,85,.10);
}
.app-shell[data-route="technician-bi"] .header-tools .btn {
  min-height: 38px;
  padding: 8px 15px;
  border-color: var(--bi23-line);
  border-radius: 7px;
  color: #29231f;
  background: #fff;
  box-shadow: 0 2px 5px rgba(53,36,23,.04);
}
.app-shell[data-route="technician-bi"] .header-tools .btn.primary {
  color: #fff;
  border-color: var(--bi23-brown-deep);
  background: linear-gradient(135deg, var(--bi23-brown-deep), var(--bi23-brown));
  box-shadow: 0 5px 13px rgba(113,51,15,.18);
}
.app-shell[data-route="technician-bi"] .content {
  width: 100%;
  max-width: none;
  min-width: 0;
  padding: 0 18px 32px;
}
.app-shell[data-route="technician-bi"] .bi-overview-page,
.app-shell[data-route="technician-bi"] .bi-all-page,
.app-shell[data-route="technician-bi"] .bi-person-page {
  width: 100%;
  min-width: 0;
  position: relative;
}
.app-shell[data-route="technician-bi"] .topbar .header-tools { display: none; }
.app-shell[data-route="technician-bi"] .bi-v23-page-actions {
  position: absolute;
  top: -65px;
  right: 0;
  z-index: 16;
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.app-shell[data-route="technician-bi"] .bi-v23-page-actions > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #087a4b;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.app-shell[data-route="technician-bi"] .bi-v23-page-actions > span i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bi23-green);
  box-shadow: 0 0 0 3px rgba(11,138,85,.10);
}
.app-shell[data-route="technician-bi"] .bi-v23-page-actions > div { display: flex; align-items: center; gap: 9px; }
.app-shell[data-route="technician-bi"] .bi-v23-page-actions .btn { min-height: 38px; padding: 8px 15px; border-radius: 7px; }
.app-shell[data-route="technician-bi"] .card,
.app-shell[data-route="technician-bi"] .bi-kpi {
  border: 1px solid var(--bi23-line);
  color: var(--bi23-text);
  background: var(--bi23-card);
  box-shadow: 0 2px 9px rgba(56,41,29,.035);
  backdrop-filter: none;
}
.app-shell[data-route="technician-bi"] .card:not(.flush):hover,
.app-shell[data-route="technician-bi"] .bi-kpi:hover {
  transform: none;
  border-color: #dbd3ca;
  box-shadow: 0 5px 16px rgba(56,41,29,.06);
}

/* 页签与筛选：单行、紧凑、可扫读。 */
.app-shell[data-route="technician-bi"] .bi-tabs {
  min-height: 50px;
  margin: 0 0 14px;
  padding: 0;
  gap: 36px;
  border-bottom: 1px solid var(--bi23-line);
}
.app-shell[data-route="technician-bi"] .bi-tabs > button {
  min-height: 50px;
  padding: 0 2px;
  color: #5f5852;
  font-size: 13px;
  font-weight: 700;
}
.app-shell[data-route="technician-bi"] .bi-tabs > button.is-active { color: var(--bi23-brown-deep); }
.app-shell[data-route="technician-bi"] .bi-tabs > button.is-active::after {
  height: 3px;
  background: var(--bi23-brown);
}
.app-shell[data-route="technician-bi"] .bi-tabs > .bi-weight-trigger {
  min-height: 35px;
  margin: 7px 0 7px auto;
  padding: 0 13px;
  border: 1px solid var(--bi23-line);
  border-radius: 7px;
  color: #51473f;
  background: #fff;
}
.app-shell[data-route="technician-bi"] .bi-filter-shell {
  margin: 0 0 15px;
  overflow: visible;
  border: 1px solid var(--bi23-line);
  border-radius: 9px;
  background: rgba(255,255,255,.86);
  box-shadow: none;
}
.app-shell[data-route="technician-bi"] .bi-filterbar {
  min-height: 61px;
  padding: 9px 13px;
  gap: 12px;
}
.app-shell[data-route="technician-bi"] .bi-filter-primary {
  flex-wrap: nowrap;
  border-bottom: 0;
}
.app-shell[data-route="technician-bi"] .bi-filter-secondary {
  min-height: 43px;
  padding-block: 6px;
  border-top: 1px solid var(--bi23-line-soft);
  background: #fcfaf7;
}
.app-shell[data-route="technician-bi"] .bi-field {
  min-width: 120px;
  color: var(--bi23-muted);
  font-size: 11px;
}
.app-shell[data-route="technician-bi"] .bi-select-field { min-width: 145px; }
.app-shell[data-route="technician-bi"] .bi-range-select-field { min-width: 135px; }
.app-shell[data-route="technician-bi"] .bi-date-field { min-width: 165px; }
.app-shell[data-route="technician-bi"] .bi-field input,
.app-shell[data-route="technician-bi"] .bi-field select,
.app-shell[data-route="technician-bi"] .bi-effective-date,
.app-shell[data-route="technician-bi"] .bi-search-field {
  min-height: 39px;
  height: 39px;
  border-color: var(--bi23-line);
  border-radius: 7px;
  color: #39332e;
  background: #fff;
  font-size: 12px;
}
.app-shell[data-route="technician-bi"] .bi-effective-date {
  min-width: 225px;
  padding-inline: 14px;
}
.app-shell[data-route="technician-bi"] .bi-effective-date b {
  color: #4d453f;
  font-size: 12px;
  font-weight: 600;
}
.app-shell[data-route="technician-bi"] .bi-employee-filter {
  min-width: 190px;
  max-width: none;
  flex: 1 1 230px;
}
.app-shell[data-route="technician-bi"] .bi-filterbar .btn {
  min-height: 39px;
  border-radius: 7px;
}
.app-shell[data-route="technician-bi"] .bi-filter-context,
.app-shell[data-route="technician-bi"] .bi-filter-context strong { font-size: 11px; }
.app-shell[data-route="technician-bi"] .bi-person-filter { min-width: 225px; flex: 1 1 250px; }
.app-shell[data-route="technician-bi"] .bi-v23-more-filters { position: relative; flex: 0 0 auto; }
.app-shell[data-route="technician-bi"] .bi-v23-more-filters > summary {
  min-width: 112px;
  min-height: 39px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--bi23-line);
  border-radius: 7px;
  color: #514940;
  background: #fff;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  list-style: none;
}
.app-shell[data-route="technician-bi"] .bi-v23-more-filters > summary::-webkit-details-marker { display: none; }
.app-shell[data-route="technician-bi"] .bi-v23-more-filters > div {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  z-index: 30;
  width: 330px;
  padding: 11px;
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 9px;
  border: 1px solid var(--bi23-line);
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 13px 30px rgba(48,34,24,.14);
}
.app-shell[data-route="technician-bi"] .bi-v23-more-filters .bi-field { min-width: 0; }

/* 共用六指标卡：总览与全员页均为六等分。 */
.app-shell[data-route="technician-bi"] .bi-overview-kpis,
.app-shell[data-route="technician-bi"] .bi-v23-overview-summary,
.app-shell[data-route="technician-bi"] .bi-v23-all-summary,
.app-shell[data-route="technician-bi"] .bi-v23-six-kpis {
  margin: 0 0 16px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
.app-shell[data-route="technician-bi"] .bi-overview-kpis .bi-kpi,
.app-shell[data-route="technician-bi"] .bi-v23-overview-summary > *,
.app-shell[data-route="technician-bi"] .bi-v23-all-summary > *,
.app-shell[data-route="technician-bi"] .bi-v23-six-kpis > * {
  min-width: 0;
  min-height: 150px;
  padding: 17px 16px;
  align-content: start;
  border-radius: 10px;
}
.app-shell[data-route="technician-bi"] .bi-overview-kpis .bi-kpi {
  display: grid;
  grid-template-columns: 35px minmax(0,1fr);
  align-items: start;
  gap: 10px;
}
.app-shell[data-route="technician-bi"] .bi-kpi-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  color: var(--bi23-orange);
  background: var(--bi23-orange-soft);
  font-size: 15px;
}
.app-shell[data-route="technician-bi"] .bi-kpi.teal .bi-kpi-icon,
.app-shell[data-route="technician-bi"] .bi-kpi.gold .bi-kpi-icon { color: var(--bi23-green); background: var(--bi23-green-soft); }
.app-shell[data-route="technician-bi"] .bi-kpi.blue .bi-kpi-icon { color: var(--bi23-blue); background: var(--bi23-blue-soft); }
.app-shell[data-route="technician-bi"] .bi-kpi.risk .bi-kpi-icon { color: var(--bi23-red); background: var(--bi23-red-soft); }
.app-shell[data-route="technician-bi"] .bi-overview-kpis .bi-kpi > div > span {
  color: #504942;
  font-size: 13px;
  font-weight: 700;
}
.app-shell[data-route="technician-bi"] .bi-overview-kpis .bi-kpi > div > strong {
  margin-top: 10px;
  color: #171512;
  font-size: clamp(24px, 2vw, 32px);
  line-height: 1;
  white-space: nowrap;
}
.app-shell[data-route="technician-bi"] .bi-overview-kpis .bi-kpi > div > small {
  margin-top: 12px;
  overflow: visible;
  color: var(--bi23-muted);
  font-size: 11px;
  line-height: 1.45;
  text-overflow: clip;
  white-space: normal;
}

/* 综合总览：摘要提示 + 六卡 + 三列运营阅读区。 */
.app-shell[data-route="technician-bi"] .bi-v23-summary-banner,
.app-shell[data-route="technician-bi"] .bi-v23-overview-banner {
  min-height: 72px;
  margin-bottom: 16px;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid #e8ddd2;
  border-radius: 10px;
  color: #3b332d;
  background: linear-gradient(90deg,#fffdf9,#fbf5ef);
  font-size: 13px;
  line-height: 1.55;
}
.app-shell[data-route="technician-bi"] .bi-v23-summary-banner > :first-child,
.app-shell[data-route="technician-bi"] .bi-v23-overview-banner > :first-child {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg,#a85b29,#7b3713);
}
.app-shell[data-route="technician-bi"] .bi-v23-overview-narrative {
  min-height: 72px;
  margin: 0 0 16px;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid #e8ddd2;
  border-radius: 10px;
  color: #3b332d;
  background: linear-gradient(90deg,#fffdf9,#fbf5ef);
  font-size: 13px;
  line-height: 1.55;
}
.app-shell[data-route="technician-bi"] .bi-v23-overview-narrative > span {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg,#a85b29,#7b3713);
  font-size: 17px;
}
.app-shell[data-route="technician-bi"] .bi-v23-overview-narrative > strong { font-weight: 650; }
.app-shell[data-route="technician-bi"] .bi-v23-overview-lower,
.app-shell[data-route="technician-bi"] .bi-v23-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.62fr) minmax(0, 1.22fr) minmax(260px, 1fr);
  align-items: stretch;
  gap: 14px;
}
.app-shell[data-route="technician-bi"] .bi-v23-overview-lower > *,
.app-shell[data-route="technician-bi"] .bi-v23-overview-grid > * {
  min-width: 0;
  min-height: 365px;
  padding: 16px;
  border-radius: 10px;
}
.app-shell[data-route="technician-bi"] .bi-v23-panel-title,
.app-shell[data-route="technician-bi"] .bi-v23-panel > header {
  margin: 0 0 13px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.app-shell[data-route="technician-bi"] .bi-v23-panel-title h3,
.app-shell[data-route="technician-bi"] .bi-v23-panel > header h3 {
  margin: 0;
  color: #211d19;
  font-size: 17px;
  letter-spacing: -.02em;
}
.app-shell[data-route="technician-bi"] .bi-v23-panel-title p,
.app-shell[data-route="technician-bi"] .bi-v23-panel > header p {
  margin: 4px 0 0;
  color: var(--bi23-muted);
  font-size: 11px;
  line-height: 1.4;
}
.app-shell[data-route="technician-bi"] .bi-v23-action-list { display: grid; gap: 9px; }
.app-shell[data-route="technician-bi"] .bi-v23-action-list > ol > li {
  min-height: 64px;
  padding: 10px 12px;
  border: 1px solid var(--bi23-line-soft);
  border-radius: 8px;
  background: #fcfbf9;
}
.app-shell[data-route="technician-bi"] .bi-v23-overview-ranking,
.app-shell[data-route="technician-bi"] .bi-v23-action-list,
.app-shell[data-route="technician-bi"] .bi-v23-position-distribution {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.app-shell[data-route="technician-bi"] .bi-v23-overview-ranking > header,
.app-shell[data-route="technician-bi"] .bi-v23-action-list > header,
.app-shell[data-route="technician-bi"] .bi-v23-position-distribution > header {
  min-height: 48px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.app-shell[data-route="technician-bi"] .bi-v23-overview-ranking h3,
.app-shell[data-route="technician-bi"] .bi-v23-action-list h3,
.app-shell[data-route="technician-bi"] .bi-v23-position-distribution h3 {
  margin: 0;
  color: #211d19;
  font-size: 16px;
  letter-spacing: -.02em;
}
.app-shell[data-route="technician-bi"] .bi-v23-overview-ranking header p {
  margin: 4px 0 0;
  color: var(--bi23-muted);
  font-size: 10px;
  line-height: 1.4;
}
.app-shell[data-route="technician-bi"] .bi-v23-overview-rank-list { display: grid; }
.app-shell[data-route="technician-bi"] .bi-v23-overview-rank-list > button {
  min-width: 0;
  min-height: 49px;
  padding: 6px 2px;
  display: grid;
  grid-template-columns: 26px 32px minmax(0,1fr) auto auto;
  align-items: center;
  gap: 9px;
  border: 0;
  border-top: 1px solid var(--bi23-line-soft);
  color: #312a25;
  background: transparent;
  cursor: pointer;
  text-align: left;
}
.app-shell[data-route="technician-bi"] .bi-v23-overview-rank-list > button:hover { background: #fffaf5; }
.app-shell[data-route="technician-bi"] .bi-v23-overview-rank-list > button > b {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #a96a3e;
  font-size: 11px;
}
.app-shell[data-route="technician-bi"] .bi-v23-overview-rank-list > button > b.rank-1 { background: #e3a423; }
.app-shell[data-route="technician-bi"] .bi-v23-overview-rank-list > button > b.rank-2 { background: #aaa9a7; }
.app-shell[data-route="technician-bi"] .bi-v23-overview-rank-list .person-avatar { width: 30px; height: 30px; font-size: 11px; }
.app-shell[data-route="technician-bi"] .bi-v23-overview-rank-list button > span { min-width: 0; }
.app-shell[data-route="technician-bi"] .bi-v23-overview-rank-list button > span strong,
.app-shell[data-route="technician-bi"] .bi-v23-overview-rank-list button > span small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-shell[data-route="technician-bi"] .bi-v23-overview-rank-list button > span strong { font-size: 12px; }
.app-shell[data-route="technician-bi"] .bi-v23-overview-rank-list button > span small { color: var(--bi23-muted); font-size: 9px; }
.app-shell[data-route="technician-bi"] .bi-v23-overview-rank-list button > span > i { height: 5px; margin: 4px 0 3px; display: block; overflow: hidden; border-radius: 99px; background: #eee9e4; }
.app-shell[data-route="technician-bi"] .bi-v23-overview-rank-list button > span > i em { display: block; height: 100%; border-radius: inherit; background: var(--bi23-green); }
.app-shell[data-route="technician-bi"] .bi-v23-overview-rank-list output { color: #201b17; font-size: 13px; font-weight: 780; white-space: nowrap; }
.app-shell[data-route="technician-bi"] .bi-v23-overview-rank-list button > em { color: var(--bi23-brown); font-size: 10px; font-style: normal; white-space: nowrap; }
.app-shell[data-route="technician-bi"] .bi-v23-action-list > header > span {
  color: #9c621e;
  font-size: 10px;
  font-weight: 700;
}
.app-shell[data-route="technician-bi"] .bi-v23-action-list > ol {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  list-style: none;
}
.app-shell[data-route="technician-bi"] .bi-v23-action-list > ol > li {
  min-width: 0;
  display: grid;
  grid-template-columns: 24px minmax(0,1fr) auto;
  align-items: center;
  gap: 8px;
}
.app-shell[data-route="technician-bi"] .bi-v23-action-list li > b {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #8a5315;
  background: var(--bi23-orange-soft);
  font-size: 10px;
}
.app-shell[data-route="technician-bi"] .bi-v23-action-list li span { min-width: 0; }
.app-shell[data-route="technician-bi"] .bi-v23-action-list li strong,
.app-shell[data-route="technician-bi"] .bi-v23-action-list li small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-shell[data-route="technician-bi"] .bi-v23-action-list li strong { font-size: 11px; }
.app-shell[data-route="technician-bi"] .bi-v23-action-list li small { margin-top: 3px; color: var(--bi23-muted); font-size: 9px; }
.app-shell[data-route="technician-bi"] .bi-v23-action-list li > em {
  padding: 4px 6px;
  border-radius: 6px;
  color: #9b5f18;
  background: var(--bi23-orange-soft);
  font-size: 9px;
  font-style: normal;
  white-space: nowrap;
}
.app-shell[data-route="technician-bi"] .bi-v23-action-list > footer { margin-top: auto; padding-top: 10px; }
.app-shell[data-route="technician-bi"] .bi-v23-action-list > footer .btn { width: 100%; }
.app-shell[data-route="technician-bi"] .bi-v23-position-distribution > header small { color: var(--bi23-muted); font-size: 9px; }
.app-shell[data-route="technician-bi"] .bi-v23-donut {
  width: 138px;
  height: 138px;
  margin: 8px auto 13px;
  padding: 19px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--bi-v23-segments, #d9dee1 0 100%));
}
.app-shell[data-route="technician-bi"] .bi-v23-donut::before {
  grid-area: 1/1;
  width: 92px;
  height: 92px;
  content: '';
  border-radius: 50%;
  background: #fff;
}
.app-shell[data-route="technician-bi"] .bi-v23-donut > span { z-index: 1; grid-area: 1/1; display: grid; justify-items: center; }
.app-shell[data-route="technician-bi"] .bi-v23-donut b { font-size: 25px; }
.app-shell[data-route="technician-bi"] .bi-v23-donut small { color: var(--bi23-muted); font-size: 9px; }
.app-shell[data-route="technician-bi"] .bi-v23-position-distribution dl { margin: 0; display: grid; gap: 5px; }
.app-shell[data-route="technician-bi"] .bi-v23-position-distribution dl > div { min-height: 27px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--bi23-line-soft); }
.app-shell[data-route="technician-bi"] .bi-v23-position-distribution dt,
.app-shell[data-route="technician-bi"] .bi-v23-position-distribution dd { margin: 0; font-size: 10px; }
.app-shell[data-route="technician-bi"] .bi-v23-position-distribution dt { display: flex; align-items: center; gap: 6px; color: #5f5650; }
.app-shell[data-route="technician-bi"] .bi-v23-position-distribution dt i { width: 8px; height: 8px; border-radius: 50%; background: var(--bi23-green); }
.app-shell[data-route="technician-bi"] .bi-v23-position-distribution dt i.unranked { background: var(--bi23-blue); }
.app-shell[data-route="technician-bi"] .bi-v23-position-distribution dt i.attention { background: var(--bi23-orange); }
.app-shell[data-route="technician-bi"] .bi-v23-position-distribution dt i.sample { background: #aaa8a5; }
.app-shell[data-route="technician-bi"] .bi-v23-position-distribution > p { margin: 9px 0 0; color: var(--bi23-muted); font-size: 8px; line-height: 1.45; }
.app-shell[data-route="technician-bi"] .bi-weight-page { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(300px,.65fr); gap: 14px; }
.app-shell[data-route="technician-bi"] .bi-weight-page-main > header { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; }
.app-shell[data-route="technician-bi"] .bi-weight-page-main > header span { color: var(--bi23-brown); font-size: 11px; font-weight: 750; }
.app-shell[data-route="technician-bi"] .bi-weight-page-main > header h2 { margin: 5px 0; font-size: 22px; }
.app-shell[data-route="technician-bi"] .bi-weight-page-main > header p { max-width: 680px; margin: 0; color: var(--muted); line-height: 1.55; }
.app-shell[data-route="technician-bi"] .bi-weight-page-grid { display: grid; grid-template-columns: minmax(0,1fr) 220px; gap: 22px; margin-top: 20px; }
.app-shell[data-route="technician-bi"] .bi-weight-page-list { display: grid; gap: 8px; }
.app-shell[data-route="technician-bi"] .bi-weight-page-list > div { position: relative; display: grid; grid-template-columns: 30px minmax(0,1fr) 54px; gap: 10px; align-items: center; padding: 10px 10px 15px; border-bottom: 1px solid var(--line); }
.app-shell[data-route="technician-bi"] .bi-weight-page-list i { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; color: #fff; font-style: normal; font-weight: 800; }
.app-shell[data-route="technician-bi"] .bi-weight-page-list span,.app-shell[data-route="technician-bi"] .bi-weight-page-list small { display: block; }
.app-shell[data-route="technician-bi"] .bi-weight-page-list small { margin-top: 3px; color: var(--muted); line-height: 1.4; }
.app-shell[data-route="technician-bi"] .bi-weight-page-list > div > b { text-align: right; font-size: 16px; }
.app-shell[data-route="technician-bi"] .bi-weight-page-list em { position: absolute; left: 50px; right: 10px; bottom: 7px; height: 3px; overflow: hidden; border-radius: 99px; background: #ece9e5; }
.app-shell[data-route="technician-bi"] .bi-weight-page-list u { display: block; height: 100%; border-radius: inherit; }
.app-shell[data-route="technician-bi"] .bi-weight-page-grid > aside { padding: 18px; border-radius: 16px; color: #fff; background: #211d1b; text-align: center; }
.app-shell[data-route="technician-bi"] .bi-weight-page-grid > aside > span,.app-shell[data-route="technician-bi"] .bi-weight-page-grid > aside > strong { display: block; }
.app-shell[data-route="technician-bi"] .bi-weight-page-grid > aside > span { color: #c8beb7; font-size: 11px; }
.app-shell[data-route="technician-bi"] .bi-weight-page-grid > aside > strong { margin-top: 4px; font-size: 18px; }
.app-shell[data-route="technician-bi"] .bi-weight-page-donut { width: 142px; height: 142px; margin: 20px auto; display: grid; place-items: center; border-radius: 50%; }
.app-shell[data-route="technician-bi"] .bi-weight-page-donut::before { content: ''; grid-area: 1/1; width: 92px; height: 92px; border-radius: 50%; background: #211d1b; }
.app-shell[data-route="technician-bi"] .bi-weight-page-donut b,.app-shell[data-route="technician-bi"] .bi-weight-page-donut small { z-index: 1; grid-area: 1/1; }
.app-shell[data-route="technician-bi"] .bi-weight-page-donut b { transform: translateY(-7px); font-size: 22px; }
.app-shell[data-route="technician-bi"] .bi-weight-page-donut small { transform: translateY(14px); color: #c8beb7; }
.app-shell[data-route="technician-bi"] .bi-weight-page-grid > aside p { color: #c8beb7; font-size: 11px; line-height: 1.55; }
.app-shell[data-route="technician-bi"] .bi-method-simple header { border-bottom: 1px solid var(--line); }
.app-shell[data-route="technician-bi"] .bi-method-simple h3 { margin: 0 0 5px; }
.app-shell[data-route="technician-bi"] .bi-method-simple header span { color: var(--muted); font-size: 10px; }
.app-shell[data-route="technician-bi"] .bi-method-simple ol { margin: 14px 0 0; padding: 0; display: grid; gap: 12px; list-style: none; }
.app-shell[data-route="technician-bi"] .bi-method-simple li { display: grid; grid-template-columns: 28px minmax(0,1fr); gap: 9px; }
.app-shell[data-route="technician-bi"] .bi-method-simple li > b { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--bi23-brown); }
.app-shell[data-route="technician-bi"] .bi-method-simple li strong,.app-shell[data-route="technician-bi"] .bi-method-simple li small { display: block; }
.app-shell[data-route="technician-bi"] .bi-method-simple li small { margin-top: 3px; color: var(--muted); line-height: 1.45; }
@media (max-width: 1040px) {
  .app-shell[data-route="technician-bi"] .bi-weight-page { grid-template-columns: 1fr; }
  .app-shell[data-route="technician-bi"] .bi-weight-page-grid { grid-template-columns: 1fr; }
  .commission-simple-head { grid-template-columns: 1fr; }
}
.app-shell[data-route="technician-bi"] .bi-v23-six-rankings { margin-top: 14px; }
.app-shell[data-route="technician-bi"] .bi-v23-six-rankings > summary {
  min-height: 43px;
  padding: 9px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--bi23-line);
  border-radius: 9px;
  color: #5d5149;
  background: #fff;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}
.app-shell[data-route="technician-bi"] .bi-v23-six-rankings > summary::after { content: '⌄'; color: var(--bi23-brown); }
.app-shell[data-route="technician-bi"] .bi-v23-six-rankings[open] > summary { border-radius: 9px 9px 0 0; }

/* 全员排行：六统计、六榜页签、约 3:1 的排行榜与摘要侧栏。 */
.app-shell[data-route="technician-bi"] .bi-all-page .bi-result-meta { min-height: 28px; }
.app-shell[data-route="technician-bi"] .bi-v23-all-summary > * { min-height: 90px; padding: 13px 14px; }
.app-shell[data-route="technician-bi"] .bi-v23-all-summary > article {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--bi23-line);
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(56,41,29,.03);
}
.app-shell[data-route="technician-bi"] .bi-v23-all-summary > article > span {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--bi23-green);
  background: var(--bi23-green-soft);
  font-size: 16px;
  font-weight: 800;
}
.app-shell[data-route="technician-bi"] .bi-v23-all-summary > article.above > span { color: var(--bi23-blue); background: var(--bi23-blue-soft); }
.app-shell[data-route="technician-bi"] .bi-v23-all-summary > article.unranked > span { color: var(--bi23-orange); background: var(--bi23-orange-soft); }
.app-shell[data-route="technician-bi"] .bi-v23-all-summary > article.risk > span { color: var(--bi23-red); background: var(--bi23-red-soft); }
.app-shell[data-route="technician-bi"] .bi-v23-all-summary > article.sample > span { color: #6d6c6a; background: #efefef; }
.app-shell[data-route="technician-bi"] .bi-v23-all-summary article div { min-width: 0; }
.app-shell[data-route="technician-bi"] .bi-v23-all-summary small { display: block; color: #5c544d; font-size: 11px; white-space: nowrap; }
.app-shell[data-route="technician-bi"] .bi-v23-all-summary strong { display: block; margin-top: 3px; color: #151310; font-size: 24px; line-height: 1; white-space: nowrap; }
.app-shell[data-route="technician-bi"] .bi-v23-all-summary strong em { margin-left: 3px; font-size: 11px; font-style: normal; font-weight: 650; }
.app-shell[data-route="technician-bi"] .bi-v23-ranking-tabs,
.app-shell[data-route="technician-bi"] .bi-overview-metric-tabs {
  min-height: 47px;
  margin: 0 0 15px;
  padding: 0 12px;
  display: grid;
  grid-template-columns: repeat(6,minmax(0,1fr));
  gap: 0;
  overflow: visible;
  border: 1px solid var(--bi23-line);
  border-radius: 9px;
  background: #fff;
}
.app-shell[data-route="technician-bi"] .bi-v23-ranking-tabs > button,
.app-shell[data-route="technician-bi"] .bi-overview-metric-tabs > button {
  min-width: 0;
  min-height: 46px;
  padding: 8px 6px;
  border-radius: 0;
  color: #5c544e;
  background: transparent;
  font-size: 12px;
  white-space: nowrap;
}
.app-shell[data-route="technician-bi"] .bi-v23-ranking-tabs > button.is-active,
.app-shell[data-route="technician-bi"] .bi-overview-metric-tabs > button.is-active { color: var(--bi23-brown-deep); }
.app-shell[data-route="technician-bi"] .bi-v23-ranking-tabs > button.is-active::after,
.app-shell[data-route="technician-bi"] .bi-overview-metric-tabs > button.is-active::after { background: var(--bi23-brown); }
.app-shell[data-route="technician-bi"] .bi-v23-ranking-layout,
.app-shell[data-route="technician-bi"] .bi-v23-all-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(270px, 1fr);
  align-items: start;
  gap: 14px;
}
.app-shell[data-route="technician-bi"] .bi-v23-ranking-main,
.app-shell[data-route="technician-bi"] .bi-v23-ranking-aside > *,
.app-shell[data-route="technician-bi"] .bi-v23-all-grid > * {
  min-width: 0;
  border-radius: 10px;
}
.app-shell[data-route="technician-bi"] .bi-v23-ranking-aside {
  min-width: 0;
  display: grid;
  gap: 14px;
}
.app-shell[data-route="technician-bi"] .bi-v23-ranking-side {
  min-width: 0;
  display: grid;
  gap: 14px;
}
.app-shell[data-route="technician-bi"] .bi-v23-ranking-side > * { min-width: 0; padding: 15px; border-radius: 10px; }
.app-shell[data-route="technician-bi"] .bi-v23-ranking-aside > * { padding: 15px; }
.app-shell[data-route="technician-bi"] .bi-v23-ranking-hero {
  padding: 17px;
  color: #fff8ef;
  border-radius: 8px;
  background: linear-gradient(135deg,#a4511d,#71340f);
}
.app-shell[data-route="technician-bi"] .bi-all-page .bi-table-card {
  min-width: 0;
  padding: 0;
  border-radius: 10px;
}
.app-shell[data-route="technician-bi"] .bi-v23-ranking-main { padding: 0; overflow: hidden; }
.app-shell[data-route="technician-bi"] .bi-v23-ranking-main > header {
  min-height: 69px;
  padding: 12px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--bi23-line-soft);
}
.app-shell[data-route="technician-bi"] .bi-v23-ranking-main > header h3,
.app-shell[data-route="technician-bi"] .bi-v23-period-summary h3,
.app-shell[data-route="technician-bi"] .bi-v23-anomalies h3 { margin: 0; color: #211d19; font-size: 17px; }
.app-shell[data-route="technician-bi"] .bi-v23-ranking-main > header p { margin: 4px 0 0; color: var(--bi23-muted); font-size: 10px; line-height: 1.4; }
.app-shell[data-route="technician-bi"] .bi-v23-ranking-main > header > div:last-child { display: flex; gap: 7px; }
.app-shell[data-route="technician-bi"] .bi-v23-ranking-table-wrap { max-width: 100%; overflow: auto; }
.app-shell[data-route="technician-bi"] .bi-v23-ranking-table { width: 100%; min-width: 760px; border-collapse: collapse; table-layout: fixed; }
.app-shell[data-route="technician-bi"] .bi-v23-ranking-table th {
  height: 38px;
  padding: 7px 9px;
  color: #716860;
  background: #fbfaf8;
  font-size: 10px;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
}
.app-shell[data-route="technician-bi"] .bi-v23-ranking-table th:nth-child(1) { width: 55px; }
.app-shell[data-route="technician-bi"] .bi-v23-ranking-table th:nth-child(2) { width: 150px; }
.app-shell[data-route="technician-bi"] .bi-v23-ranking-table th:nth-child(3) { width: 100px; }
.app-shell[data-route="technician-bi"] .bi-v23-ranking-table th:nth-child(4) { width: 220px; }
.app-shell[data-route="technician-bi"] .bi-v23-ranking-table th:nth-child(5) { width: 92px; }
.app-shell[data-route="technician-bi"] .bi-v23-ranking-table th:nth-child(6) { width: 86px; }
.app-shell[data-route="technician-bi"] .bi-v23-ranking-table th:nth-child(7) { width: 68px; }
.app-shell[data-route="technician-bi"] .bi-v23-ranking-table td {
  height: 47px;
  padding: 6px 9px;
  border-top: 1px solid var(--bi23-line-soft);
  color: #403832;
  font-size: 10px;
  vertical-align: middle;
}
.app-shell[data-route="technician-bi"] .bi-v23-ranking-table tr:hover td { background: #fffaf5; }
.app-shell[data-route="technician-bi"] .bi-v23-rank {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #655e58;
  background: #efeeec;
  font-size: 10px;
}
.app-shell[data-route="technician-bi"] .bi-v23-rank.rank-1 { color: #fff; background: #daa022; }
.app-shell[data-route="technician-bi"] .bi-v23-rank.rank-2 { color: #fff; background: #9b9c9d; }
.app-shell[data-route="technician-bi"] .bi-v23-rank.rank-3 { color: #fff; background: #a7673e; }
.app-shell[data-route="technician-bi"] .bi-v23-person-cell {
  min-width: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  text-align: left;
}
.app-shell[data-route="technician-bi"] .bi-v23-person-cell .person-avatar { width: 30px; height: 30px; font-size: 10px; }
.app-shell[data-route="technician-bi"] .bi-v23-person-cell span { min-width: 0; }
.app-shell[data-route="technician-bi"] .bi-v23-person-cell strong,
.app-shell[data-route="technician-bi"] .bi-v23-person-cell small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-shell[data-route="technician-bi"] .bi-v23-person-cell strong { font-size: 11px; }
.app-shell[data-route="technician-bi"] .bi-v23-person-cell small { margin-top: 2px; color: var(--bi23-muted); font-size: 9px; }
.app-shell[data-route="technician-bi"] .bi-v23-rank-progress { min-width: 0; display: grid; gap: 4px; }
.app-shell[data-route="technician-bi"] .bi-v23-rank-progress > i { height: 6px; overflow: hidden; border-radius: 99px; background: #eae7e3; }
.app-shell[data-route="technician-bi"] .bi-v23-rank-progress > i b { display: block; height: 100%; border-radius: inherit; background: var(--bi23-blue); }
.app-shell[data-route="technician-bi"] .bi-v23-ranking-table tr:first-child .bi-v23-rank-progress > i b { background: var(--bi23-green); }
.app-shell[data-route="technician-bi"] .bi-v23-rank-progress small { overflow: hidden; color: var(--bi23-muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.app-shell[data-route="technician-bi"] .bi-v23-ranking-main > footer { min-height: 37px; padding: 9px 14px; color: var(--bi23-muted); border-top: 1px solid var(--bi23-line-soft); background: #fbfaf8; font-size: 9px; }
.app-shell[data-route="technician-bi"] .bi-v23-period-summary > strong {
  min-height: 68px;
  margin: 12px 0 8px;
  padding: 12px;
  display: flex;
  align-items: center;
  color: #fff;
  border-radius: 8px;
  background: linear-gradient(135deg,#a6521d,#71340f);
  font-size: 14px;
}
.app-shell[data-route="technician-bi"] .bi-v23-period-summary dl { margin: 0; display: grid; }
.app-shell[data-route="technician-bi"] .bi-v23-period-summary dl > div { min-height: 37px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--bi23-line-soft); }
.app-shell[data-route="technician-bi"] .bi-v23-period-summary dt,
.app-shell[data-route="technician-bi"] .bi-v23-period-summary dd { margin: 0; font-size: 10px; }
.app-shell[data-route="technician-bi"] .bi-v23-period-summary dt { color: #6c635c; }
.app-shell[data-route="technician-bi"] .bi-v23-period-summary dd { color: #201c18; font-weight: 750; }
.app-shell[data-route="technician-bi"] .bi-v23-anomalies > header { min-height: 35px; }
.app-shell[data-route="technician-bi"] .bi-v23-anomalies ol { margin: 4px 0 12px; padding: 0; display: grid; gap: 7px; list-style: none; }
.app-shell[data-route="technician-bi"] .bi-v23-anomalies li { min-width: 0; min-height: 51px; padding: 8px; display: grid; grid-template-columns: 22px minmax(0,1fr); align-items: center; gap: 7px; border: 1px solid var(--bi23-line-soft); border-radius: 7px; background: #fcfbf9; }
.app-shell[data-route="technician-bi"] .bi-v23-anomalies li > b { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; color: #9a5d16; background: var(--bi23-orange-soft); font-size: 9px; }
.app-shell[data-route="technician-bi"] .bi-v23-anomalies li span { min-width: 0; }
.app-shell[data-route="technician-bi"] .bi-v23-anomalies li strong,
.app-shell[data-route="technician-bi"] .bi-v23-anomalies li small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-shell[data-route="technician-bi"] .bi-v23-anomalies li strong { font-size: 10px; }
.app-shell[data-route="technician-bi"] .bi-v23-anomalies li small { margin-top: 3px; color: var(--bi23-muted); font-size: 8px; }
.app-shell[data-route="technician-bi"] .bi-v23-anomalies > .btn { width: 100%; }
.app-shell[data-route="technician-bi"] .bi-v23-all-audit { margin-top: 14px; }
.app-shell[data-route="technician-bi"] .bi-v23-all-audit > summary {
  min-height: 42px;
  padding: 9px 13px;
  border: 1px solid var(--bi23-line);
  border-radius: 9px;
  color: #5d5149;
  background: #fff;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}
.app-shell[data-route="technician-bi"] .bi-v23-all-audit[open] > summary { margin-bottom: 10px; }
.app-shell[data-route="technician-bi"] .bi-all-page .bi-table-toolbar { min-height: 57px; padding: 10px 14px; }
.app-shell[data-route="technician-bi"] .bi-all-page .table-wrap {
  max-width: 100%;
  overflow: auto;
  border: 0;
  border-radius: 0;
}
.app-shell[data-route="technician-bi"] .bi-all-page .bi-data-table {
  width: 100%;
  min-width: 1120px;
  font-size: 11px;
}
.app-shell[data-route="technician-bi"] .bi-all-page .bi-data-table th,
.app-shell[data-route="technician-bi"] .bi-all-page .bi-data-table td {
  height: 38px;
  padding: 6px 8px;
  font-size: 11px;
  line-height: 1.35;
}

/* 个人分析：白色员工头卡、2×3 指标、2.1:1 趋势与管理诊断、证据与任务。 */
.app-shell[data-route="technician-bi"] .bi-person-toolbar {
  min-height: 42px;
  margin: -2px 0 10px;
  align-items: center;
  flex-wrap: wrap;
}
.app-shell[data-route="technician-bi"] .bi-v23-person-toolbar { display: none; }
.app-shell[data-route="technician-bi"] .bi-person-toolbar .bi-period-compare {
  margin-left: auto;
  color: var(--bi23-muted);
  font-size: 10px;
}
.app-shell[data-route="technician-bi"] .bi-person-head,
.app-shell[data-route="technician-bi"] .bi-v23-person-summary {
  min-height: 104px;
  margin: 0 0 14px;
  padding: 12px 18px;
  display: grid;
  grid-template-columns: minmax(300px,1.65fr) repeat(4,minmax(130px,1fr));
  align-items: stretch;
  gap: 0;
  border: 1px solid var(--bi23-line);
  border-radius: 10px;
  color: var(--bi23-text);
  background: #fff;
  box-shadow: 0 2px 9px rgba(56,41,29,.035);
}
.app-shell[data-route="technician-bi"] .bi-v23-person-summary {
  grid-template-columns: minmax(300px,1.55fr) repeat(4,minmax(110px,1fr));
}
.app-shell[data-route="technician-bi"] .bi-person-head > div,
.app-shell[data-route="technician-bi"] .bi-v23-person-summary > * {
  min-width: 0;
  min-height: 78px;
  padding: 8px 18px;
  display: flex;
  align-items: center;
  border-left: 1px solid var(--bi23-line-soft);
}
.app-shell[data-route="technician-bi"] .bi-v23-person-summary > .bi-v23-person-identity {
  min-height: 78px;
  padding: 7px 18px 7px 0;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 0;
}
.app-shell[data-route="technician-bi"] .bi-v23-person-identity > span { min-width: 0; }
.app-shell[data-route="technician-bi"] .bi-v23-person-identity h2,
.app-shell[data-route="technician-bi"] .bi-v23-person-identity p,
.app-shell[data-route="technician-bi"] .bi-v23-person-identity small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-shell[data-route="technician-bi"] .bi-v23-person-head-metrics {
  min-width: 0;
  min-height: 78px;
  padding: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(4,minmax(0,1fr));
  align-items: stretch !important;
  gap: 0 !important;
  border-left: 1px solid var(--bi23-line-soft) !important;
}
.app-shell[data-route="technician-bi"] .bi-v23-person-head-metrics > div {
  min-width: 0;
  padding: 10px 16px;
  display: grid;
  align-content: center;
  justify-items: center;
  border-left: 1px solid var(--bi23-line-soft);
  text-align: center;
}
.app-shell[data-route="technician-bi"] .bi-v23-person-head-metrics > div:first-child { border-left: 0; }
.app-shell[data-route="technician-bi"] .bi-v23-person-head-metrics span { color: #5e5650; font-size: 11px; white-space: nowrap; }
.app-shell[data-route="technician-bi"] .bi-v23-person-head-metrics strong { margin-top: 7px; color: #171512; font-size: clamp(20px,1.8vw,28px); line-height: 1; white-space: nowrap; }
.app-shell[data-route="technician-bi"] .bi-v23-person-head-stat {
  min-width: 0;
  min-height: 78px;
  padding: 9px 16px !important;
  display: grid !important;
  align-content: center !important;
  justify-content: center;
  justify-items: center;
  gap: 7px !important;
  text-align: center;
}
.app-shell[data-route="technician-bi"] .bi-v23-person-head-stat > span { color: #5e5650; font-size: 11px; white-space: nowrap; }
.app-shell[data-route="technician-bi"] .bi-v23-person-head-stat > strong { color: #171512; font-size: clamp(20px,1.8vw,28px); line-height: 1; white-space: nowrap; }
.app-shell[data-route="technician-bi"] .bi-person-head > div:first-child,
.app-shell[data-route="technician-bi"] .bi-v23-person-summary > :first-child {
  padding-left: 0;
  border-left: 0;
}
.app-shell[data-route="technician-bi"] .bi-person-head .person-avatar,
.app-shell[data-route="technician-bi"] .bi-v23-person-summary .person-avatar {
  width: 66px;
  height: 66px;
  color: #fff;
  border: 0;
  background: linear-gradient(145deg,#a55a2d,#743510);
  font-size: 25px;
}
.app-shell[data-route="technician-bi"] .bi-person-head h2 {
  color: #181512;
  font-size: 21px;
}
.app-shell[data-route="technician-bi"] .bi-person-head p,
.app-shell[data-route="technician-bi"] .bi-person-head small { color: #776e66; font-size: 10px; }
.app-shell[data-route="technician-bi"] .bi-person-score,
.app-shell[data-route="technician-bi"] .bi-person-rank,
.app-shell[data-route="technician-bi"] .bi-person-level {
  display: grid !important;
  align-content: center;
  justify-content: center;
  color: var(--bi23-text);
}
.app-shell[data-route="technician-bi"] .bi-person-score > span,
.app-shell[data-route="technician-bi"] .bi-person-rank span,
.app-shell[data-route="technician-bi"] .bi-person-level small { color: #6f665f; }
.app-shell[data-route="technician-bi"] .bi-person-score > strong,
.app-shell[data-route="technician-bi"] .bi-person-rank span strong { color: #171512; }
.app-shell[data-route="technician-bi"] .bi-person-level > strong { color: #342b25; }
.app-shell[data-route="technician-bi"] .bi-person-metrics,
.app-shell[data-route="technician-bi"] .bi-v23-person-metrics {
  margin: 0 0 14px;
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 12px;
}
.app-shell[data-route="technician-bi"] .bi-person-metric,
.app-shell[data-route="technician-bi"] .bi-v23-person-metrics > * {
  min-width: 0;
  min-height: 128px;
  padding: 13px 15px;
  border: 1px solid var(--bi23-line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 9px rgba(56,41,29,.03);
}
.app-shell[data-route="technician-bi"] .bi-v23-person-metric {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  align-content: stretch;
}
.app-shell[data-route="technician-bi"] .bi-v23-person-metric > header {
  display: grid;
  grid-template-columns: 31px minmax(0,1fr) auto;
  align-items: center;
  gap: 8px;
}
.app-shell[data-route="technician-bi"] .bi-v23-person-metric > header > strong { overflow: hidden; color: #37302b; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.app-shell[data-route="technician-bi"] .bi-v23-person-metric > header > em {
  padding: 3px 6px;
  border-radius: 6px;
  color: #087749;
  background: var(--bi23-green-soft);
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
  white-space: nowrap;
}
.app-shell[data-route="technician-bi"] .bi-v23-person-metric.is-missing > header > em { color: #9b5d15; background: var(--bi23-orange-soft); }
.app-shell[data-route="technician-bi"] .bi-v23-person-metric > output {
  margin-top: 9px;
  display: block;
  color: #171512;
  font-size: 26px;
  font-weight: 780;
  line-height: 1;
  white-space: nowrap;
}
.app-shell[data-route="technician-bi"] .bi-v23-person-metric.is-missing > output { color: #746a62; }
.app-shell[data-route="technician-bi"] .bi-v23-person-metric > footer {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
}
.app-shell[data-route="technician-bi"] .bi-v23-person-metric > footer > i { grid-column: auto; }
.app-shell[data-route="technician-bi"] .bi-v23-person-metric > footer > small { color: var(--bi23-muted); font-size: 8px; font-weight: 500; }
.app-shell[data-route="technician-bi"] .bi-person-metric-icon {
  width: 31px;
  height: 31px;
  border-radius: 8px;
  color: var(--bi23-blue);
  background: var(--bi23-blue-soft);
}
.app-shell[data-route="technician-bi"] .bi-person-metric.metric-0 .bi-person-metric-icon,
.app-shell[data-route="technician-bi"] .bi-person-metric.metric-3 .bi-person-metric-icon,
.app-shell[data-route="technician-bi"] .bi-person-metric.metric-4 .bi-person-metric-icon { color: var(--bi23-green); background: var(--bi23-green-soft); }
.app-shell[data-route="technician-bi"] .bi-person-metric.metric-1 .bi-person-metric-icon,
.app-shell[data-route="technician-bi"] .bi-person-metric.metric-5 .bi-person-metric-icon { color: var(--bi23-orange); background: var(--bi23-orange-soft); }
.app-shell[data-route="technician-bi"] .bi-person-metric small { color: #5a514a; font-size: 11px; font-weight: 700; }
.app-shell[data-route="technician-bi"] .bi-person-metric > div strong { margin-top: 5px; font-size: 24px; }
.app-shell[data-route="technician-bi"] .bi-person-metric p {
  height: auto;
  min-height: 18px;
  margin: 7px 0;
  color: var(--bi23-muted);
  font-size: 10px;
}
.app-shell[data-route="technician-bi"] .bi-person-metric footer { color: #756b64; font-size: 10px; }
.app-shell[data-route="technician-bi"] .bi-person-metric footer i { height: 5px; }
.app-shell[data-route="technician-bi"] .bi-person-metric footer i b { background: var(--bi23-green); }
.app-shell[data-route="technician-bi"] .bi-person-grid,
.app-shell[data-route="technician-bi"] .bi-v23-person-lower,
.app-shell[data-route="technician-bi"] .bi-v23-person-analysis-grid {
  margin: 0 0 14px;
  display: grid;
  grid-template-columns: minmax(0,2.1fr) minmax(290px,1fr);
  align-items: stretch;
  gap: 14px;
}
.app-shell[data-route="technician-bi"] .bi-source-grid,
.app-shell[data-route="technician-bi"] .bi-v23-person-evidence-grid {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0,2.1fr) minmax(290px,1fr);
  align-items: stretch;
  gap: 14px;
}
.app-shell[data-route="technician-bi"] .bi-trend-card,
.app-shell[data-route="technician-bi"] .bi-action-card,
.app-shell[data-route="technician-bi"] .bi-source-grid > .card,
.app-shell[data-route="technician-bi"] .bi-v23-person-lower > *,
.app-shell[data-route="technician-bi"] .bi-v23-person-analysis-grid > *,
.app-shell[data-route="technician-bi"] .bi-v23-person-evidence-grid > * {
  min-width: 0;
  min-height: 230px;
  padding: 14px;
  border-radius: 10px;
}
.app-shell[data-route="technician-bi"] .bi-v23-person-lower > div,
.app-shell[data-route="technician-bi"] .bi-v23-person-lower > aside {
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.app-shell[data-route="technician-bi"] .bi-v23-person-lower > aside { display: grid; align-content: start; gap: 12px; }
.app-shell[data-route="technician-bi"] .bi-v23-person-evidence { padding: 0; overflow: hidden; }
.app-shell[data-route="technician-bi"] .bi-v23-person-evidence > header,
.app-shell[data-route="technician-bi"] .bi-v23-person-diagnosis > header,
.app-shell[data-route="technician-bi"] .bi-v23-person-tasks > header {
  min-height: 53px;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--bi23-line-soft);
}
.app-shell[data-route="technician-bi"] .bi-v23-person-evidence h3,
.app-shell[data-route="technician-bi"] .bi-v23-person-diagnosis h3,
.app-shell[data-route="technician-bi"] .bi-v23-person-tasks h3 { margin: 0; color: #211d19; font-size: 15px; }
.app-shell[data-route="technician-bi"] .bi-v23-person-evidence header p { margin: 4px 0 0; color: var(--bi23-muted); font-size: 9px; }
.app-shell[data-route="technician-bi"] .bi-v23-person-evidence header > span,
.app-shell[data-route="technician-bi"] .bi-v23-person-tasks header > span { color: #796d64; font-size: 9px; white-space: nowrap; }
.app-shell[data-route="technician-bi"] .bi-v23-daily-chart {
  height: 178px;
  padding: 16px 14px 8px;
  display: grid;
  grid-template-columns: repeat(15,minmax(18px,1fr));
  align-items: end;
  gap: 5px;
  overflow-x: auto;
  border-bottom: 1px solid var(--bi23-line-soft);
  background: linear-gradient(180deg,#fff,#fcfaf7);
}
.app-shell[data-route="technician-bi"] .bi-v23-daily-chart > div { min-width: 18px; height: 145px; display: grid; grid-template-rows: 17px 1fr 18px; align-items: end; justify-items: center; }
.app-shell[data-route="technician-bi"] .bi-v23-daily-chart b { color: #46382f; font-size: 9px; }
.app-shell[data-route="technician-bi"] .bi-v23-daily-chart i { position: relative; width: 100%; height: 100%; display: flex; align-items: flex-end; justify-content: center; border-bottom: 1px solid #ded8d1; background: repeating-linear-gradient(to bottom,rgba(226,220,214,.45) 0 1px,transparent 1px 28px); }
.app-shell[data-route="technician-bi"] .bi-v23-daily-chart em { width: min(26px,72%); min-height: 4px; display: block; background: linear-gradient(180deg,#aa5d27,#753612); }
.app-shell[data-route="technician-bi"] .bi-v23-daily-chart small { color: var(--bi23-muted); font-size: 8px; white-space: nowrap; }
.app-shell[data-route="technician-bi"] .bi-v23-evidence-note { margin: 0; padding: 7px 14px; color: #746960; border-bottom: 1px solid var(--bi23-line-soft); background: #fffaf3; font-size: 8px; line-height: 1.45; }
.app-shell[data-route="technician-bi"] .bi-v23-person-evidence > section { padding: 10px 14px 12px; }
.app-shell[data-route="technician-bi"] .bi-v23-person-evidence > section > div:first-child { min-height: 33px; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.app-shell[data-route="technician-bi"] .bi-v23-person-evidence > section > div:first-child strong { font-size: 12px; }
.app-shell[data-route="technician-bi"] .bi-v23-person-evidence > section > div:first-child small { color: var(--bi23-muted); font-size: 8px; }
.app-shell[data-route="technician-bi"] .bi-v23-evidence-table { max-width: 100%; overflow: auto; }
.app-shell[data-route="technician-bi"] .bi-v23-evidence-table table { width: 100%; min-width: 610px; border-collapse: collapse; table-layout: fixed; }
.app-shell[data-route="technician-bi"] .bi-v23-evidence-table th,
.app-shell[data-route="technician-bi"] .bi-v23-evidence-table td { height: 31px; padding: 5px 7px; border-top: 1px solid var(--bi23-line-soft); font-size: 9px; text-align: left; }
.app-shell[data-route="technician-bi"] .bi-v23-evidence-table th { color: #6e655e; background: #fbfaf8; }
.app-shell[data-route="technician-bi"] .bi-v23-evidence-table td { overflow: hidden; color: #473f39; text-overflow: ellipsis; white-space: nowrap; }
.app-shell[data-route="technician-bi"] .bi-v23-person-evidence > section > footer { min-height: 39px; padding-top: 8px; display: flex; align-items: center; justify-content: flex-end; gap: 7px; }
.app-shell[data-route="technician-bi"] .bi-v23-person-evidence > section > footer > span { margin-right: auto; color: var(--bi23-muted); font-size: 8px; }
.app-shell[data-route="technician-bi"] .bi-v23-person-trend { margin: 0 14px 13px; }
.app-shell[data-route="technician-bi"] .bi-v23-person-trend > summary {
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid var(--bi23-line);
  border-radius: 7px;
  color: #64574d;
  background: #fbfaf8;
  cursor: pointer;
  font-size: 9px;
  font-weight: 700;
}
.app-shell[data-route="technician-bi"] .bi-v23-person-diagnosis,
.app-shell[data-route="technician-bi"] .bi-v23-person-tasks { padding: 0; overflow: hidden; }
.app-shell[data-route="technician-bi"] .bi-v23-person-diagnosis ol { margin: 0; padding: 10px 12px 12px; display: grid; gap: 7px; list-style: none; }
.app-shell[data-route="technician-bi"] .bi-v23-person-diagnosis li {
  min-width: 0;
  min-height: 44px;
  padding: 7px 8px;
  display: grid;
  grid-template-columns: 23px minmax(0,1fr);
  align-items: center;
  gap: 8px;
  border: 1px solid var(--bi23-line-soft);
  border-radius: 7px;
  background: #fbfaf8;
}
.app-shell[data-route="technician-bi"] .bi-v23-person-diagnosis li.good { background: #f3faf6; }
.app-shell[data-route="technician-bi"] .bi-v23-person-diagnosis li.attention { background: #fff8ef; }
.app-shell[data-route="technician-bi"] .bi-v23-person-diagnosis li.info { background: #f2f7fb; }
.app-shell[data-route="technician-bi"] .bi-v23-person-diagnosis li.action { background: #fbf7f3; }
.app-shell[data-route="technician-bi"] .bi-v23-person-diagnosis li > b { width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%; color: #087749; background: var(--bi23-green-soft); font-size: 9px; }
.app-shell[data-route="technician-bi"] .bi-v23-person-diagnosis li.attention > b { color: #9d5e11; background: var(--bi23-orange-soft); }
.app-shell[data-route="technician-bi"] .bi-v23-person-diagnosis li.info > b { color: #176b9f; background: var(--bi23-blue-soft); }
.app-shell[data-route="technician-bi"] .bi-v23-person-diagnosis li span { min-width: 0; }
.app-shell[data-route="technician-bi"] .bi-v23-person-diagnosis li small,
.app-shell[data-route="technician-bi"] .bi-v23-person-diagnosis li strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-shell[data-route="technician-bi"] .bi-v23-person-diagnosis li small { color: var(--bi23-muted); font-size: 8px; }
.app-shell[data-route="technician-bi"] .bi-v23-person-diagnosis li strong { margin-top: 2px; color: #403832; font-size: 9px; }
.app-shell[data-route="technician-bi"] .bi-v23-person-tasks > div { padding: 9px 11px 0; display: grid; gap: 7px; }
.app-shell[data-route="technician-bi"] .bi-v23-person-tasks > div > article { min-width: 0; padding: 8px; display: grid; gap: 3px; border: 1px solid var(--bi23-line-soft); border-radius: 7px; background: #fbfaf8; }
.app-shell[data-route="technician-bi"] .bi-v23-person-tasks article strong,
.app-shell[data-route="technician-bi"] .bi-v23-person-tasks article small,
.app-shell[data-route="technician-bi"] .bi-v23-person-tasks article span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-shell[data-route="technician-bi"] .bi-v23-person-tasks article strong { font-size: 10px; }
.app-shell[data-route="technician-bi"] .bi-v23-person-tasks article small { color: var(--bi23-muted); font-size: 8px; }
.app-shell[data-route="technician-bi"] .bi-v23-person-tasks article span { color: #8a5a2c; font-size: 8px; }
.app-shell[data-route="technician-bi"] .bi-v23-person-tasks > footer { padding: 9px 11px 11px; }
.app-shell[data-route="technician-bi"] .bi-v23-person-tasks > footer .btn { width: 100%; }
.app-shell[data-route="technician-bi"] .bi-v23-person-review-audit { margin-top: 14px; }
.app-shell[data-route="technician-bi"] .bi-v23-person-review-audit > summary {
  min-height: 42px;
  padding: 9px 13px;
  border: 1px solid var(--bi23-line);
  border-radius: 9px;
  color: #5d5149;
  background: #fff;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}
.app-shell[data-route="technician-bi"] .bi-v23-person-review-audit > .card { margin-top: 9px; padding: 14px; }
.app-shell[data-route="technician-bi"] .bi-trend { height: 174px; }
.app-shell[data-route="technician-bi"] .bi-trend svg { height: 132px; }
.app-shell[data-route="technician-bi"] .bi-insights { gap: 7px; }
.app-shell[data-route="technician-bi"] .bi-insights > div {
  min-height: 41px;
  padding: 8px 10px;
  grid-template-columns: 78px minmax(0,1fr);
  border-color: var(--bi23-line-soft);
  border-radius: 7px;
  background: #fbfaf8;
}
.app-shell[data-route="technician-bi"] .bi-insights span { color: var(--bi23-green); font-size: 10px; }
.app-shell[data-route="technician-bi"] .bi-insights strong { color: #463c35; font-size: 10px; }
.app-shell[data-route="technician-bi"] .bi-insights .weakness { background: #fff8f0; }
.app-shell[data-route="technician-bi"] .bi-insights .weakness span { color: var(--bi23-orange); }
.app-shell[data-route="technician-bi"] .bi-insights .next { background: #f2f7fb; }
.app-shell[data-route="technician-bi"] .bi-insights .next span { color: var(--bi23-blue); }
.app-shell[data-route="technician-bi"] .bi-insights .forecast { background: var(--bi23-brown-soft); }
.app-shell[data-route="technician-bi"] .bi-review-funnel,
.app-shell[data-route="technician-bi"] .bi-review-table,
.app-shell[data-route="technician-bi"] .bi-source-table { max-width: 100%; overflow: auto; }

/* 状态与操作色：绿=卓越/正常，蓝=达标/信息，橙=待提升，红=风险。 */
.app-shell[data-route="technician-bi"] .bi-tone-good,
.app-shell[data-route="technician-bi"] .bi-v23-status.is-excellent,
.app-shell[data-route="technician-bi"] .bi-v23-status.is-good,
.app-shell[data-route="technician-bi"] .bi-v23-pill.is-excellent,
.app-shell[data-route="technician-bi"] .bi-v23-pill.is-good {
  color: #087749;
  background: var(--bi23-green-soft);
}
.app-shell[data-route="technician-bi"] .bi-tone-neutral,
.app-shell[data-route="technician-bi"] .bi-v23-status.is-standard,
.app-shell[data-route="technician-bi"] .bi-v23-status.is-info,
.app-shell[data-route="technician-bi"] .bi-v23-pill.is-standard,
.app-shell[data-route="technician-bi"] .bi-v23-pill.is-info {
  color: #176b9f;
  background: var(--bi23-blue-soft);
}
.app-shell[data-route="technician-bi"] .bi-v23-status.is-attention,
.app-shell[data-route="technician-bi"] .bi-v23-status.is-improve,
.app-shell[data-route="technician-bi"] .bi-v23-pill.is-attention,
.app-shell[data-route="technician-bi"] .bi-v23-pill.is-improve {
  color: #9d5e11;
  background: var(--bi23-orange-soft);
}
.app-shell[data-route="technician-bi"] .bi-tone-risk,
.app-shell[data-route="technician-bi"] .bi-v23-status.is-risk,
.app-shell[data-route="technician-bi"] .bi-v23-pill.is-risk {
  color: #a9332b;
  background: var(--bi23-red-soft);
}
.app-shell[data-route="technician-bi"] .bi-up { color: var(--bi23-green); }
.app-shell[data-route="technician-bi"] .bi-down { color: var(--bi23-red); }
.app-shell[data-route="technician-bi"] .bi-analysis-link,
.app-shell[data-route="technician-bi"] .btn-link { color: var(--bi23-brown); }
.app-shell[data-route="technician-bi"] .btn.primary {
  border-color: transparent;
  background: linear-gradient(135deg,var(--bi23-brown-deep),var(--bi23-brown));
  box-shadow: 0 5px 13px rgba(113,51,15,.16);
}

/* 1366×768：保留 224px 侧栏，内容不横溢并适度压缩纵向。 */
@media (max-width: 1439px) and (min-width: 1181px) {
  .app-shell[data-route="technician-bi"] { grid-template-columns: 224px minmax(0,1fr); }
  .app-shell[data-route="technician-bi"] .content { padding-inline: 14px; }
  .app-shell[data-route="technician-bi"] .bi-tabs { margin-bottom: 10px; }
  .app-shell[data-route="technician-bi"] .bi-filterbar { min-height: 54px; padding: 7px 9px; gap: 8px; }
  .app-shell[data-route="technician-bi"] .bi-select-field { min-width: 118px; }
  .app-shell[data-route="technician-bi"] .bi-range-select-field { min-width: 108px; }
  .app-shell[data-route="technician-bi"] .bi-effective-date { min-width: 180px; }
  .app-shell[data-route="technician-bi"] .bi-overview-kpis,
  .app-shell[data-route="technician-bi"] .bi-v23-overview-summary,
  .app-shell[data-route="technician-bi"] .bi-v23-all-summary,
  .app-shell[data-route="technician-bi"] .bi-v23-six-kpis { gap: 8px; margin-bottom: 10px; }
  .app-shell[data-route="technician-bi"] .bi-overview-kpis .bi-kpi,
  .app-shell[data-route="technician-bi"] .bi-v23-overview-summary > *,
  .app-shell[data-route="technician-bi"] .bi-v23-six-kpis > * { min-height: 122px; padding: 12px 10px; }
  .app-shell[data-route="technician-bi"] .bi-v23-all-summary > * { min-height: 82px; padding: 10px; }
  .app-shell[data-route="technician-bi"] .bi-overview-kpis .bi-kpi > div > strong { font-size: 24px; }
  .app-shell[data-route="technician-bi"] .bi-v23-overview-lower,
  .app-shell[data-route="technician-bi"] .bi-v23-overview-grid,
  .app-shell[data-route="technician-bi"] .bi-v23-ranking-layout,
  .app-shell[data-route="technician-bi"] .bi-v23-all-grid,
  .app-shell[data-route="technician-bi"] .bi-person-grid,
  .app-shell[data-route="technician-bi"] .bi-source-grid { gap: 10px; }
  .app-shell[data-route="technician-bi"] .bi-v23-overview-lower,
  .app-shell[data-route="technician-bi"] .bi-v23-overview-grid { grid-template-columns: minmax(0,1.55fr) minmax(0,1.1fr) minmax(235px,.9fr); }
  .app-shell[data-route="technician-bi"] .bi-person-metric,
  .app-shell[data-route="technician-bi"] .bi-v23-person-metrics > * { min-height: 112px; padding: 10px 12px; }
  .app-shell[data-route="technician-bi"] .bi-person-metric > div strong { font-size: 21px; }
}

/* 窄屏：逐级堆叠，页面本身不产生水平滚动；宽表只在自身容器内滚动。 */
@media (max-width: 1180px) {
  .app-shell[data-route="technician-bi"] { min-width: 0; grid-template-columns: 190px minmax(0,1fr); }
  .app-shell[data-route="technician-bi"] .sidebar { width: 190px; }
  .app-shell[data-route="technician-bi"] .topbar { padding-inline: 14px; }
  .app-shell[data-route="technician-bi"] .content { padding-inline: 12px; }
  .app-shell[data-route="technician-bi"] .bi-filter-primary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
  .app-shell[data-route="technician-bi"] .bi-field,
  .app-shell[data-route="technician-bi"] .bi-select-field,
  .app-shell[data-route="technician-bi"] .bi-range-select-field,
  .app-shell[data-route="technician-bi"] .bi-date-field,
  .app-shell[data-route="technician-bi"] .bi-effective-date,
  .app-shell[data-route="technician-bi"] .bi-employee-filter { width: 100%; min-width: 0; max-width: none; }
  .app-shell[data-route="technician-bi"] .bi-overview-kpis,
  .app-shell[data-route="technician-bi"] .bi-v23-overview-summary,
  .app-shell[data-route="technician-bi"] .bi-v23-all-summary,
  .app-shell[data-route="technician-bi"] .bi-v23-six-kpis { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .app-shell[data-route="technician-bi"] .bi-v23-overview-lower,
  .app-shell[data-route="technician-bi"] .bi-v23-overview-grid,
  .app-shell[data-route="technician-bi"] .bi-v23-ranking-layout,
  .app-shell[data-route="technician-bi"] .bi-v23-all-grid,
  .app-shell[data-route="technician-bi"] .bi-person-grid,
  .app-shell[data-route="technician-bi"] .bi-source-grid,
  .app-shell[data-route="technician-bi"] .bi-v23-person-lower,
  .app-shell[data-route="technician-bi"] .bi-v23-person-analysis-grid,
  .app-shell[data-route="technician-bi"] .bi-v23-person-evidence-grid { grid-template-columns: 1fr; }
  .app-shell[data-route="technician-bi"] .bi-v23-ranking-aside { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .app-shell[data-route="technician-bi"] .bi-v23-ranking-side { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .app-shell[data-route="technician-bi"] .bi-person-head,
  .app-shell[data-route="technician-bi"] .bi-v23-person-summary { grid-template-columns: minmax(260px,2fr) repeat(2,minmax(120px,1fr)); }
  .app-shell[data-route="technician-bi"] .bi-v23-person-summary { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .app-shell[data-route="technician-bi"] .bi-v23-person-summary > .bi-v23-person-identity { grid-column: 1 / -1; border-bottom: 1px solid var(--bi23-line-soft); }
  .app-shell[data-route="technician-bi"] .bi-person-head > :nth-child(n+4),
  .app-shell[data-route="technician-bi"] .bi-v23-person-summary > :nth-child(n+4) { border-top: 1px solid var(--bi23-line-soft); }
}

@media (max-width: 760px) {
  .app-shell[data-route="technician-bi"] { grid-template-columns: 72px minmax(0,1fr); }
  .app-shell[data-route="technician-bi"] .sidebar { width: 72px; padding: 9px 7px; }
  .app-shell[data-route="technician-bi"] .brand,
  .app-shell[data-route="technician-bi"] .brand-context,
  .app-shell[data-route="technician-bi"] .nav-group-label,
  .app-shell[data-route="technician-bi"] .nav-item > span:last-child,
  .app-shell[data-route="technician-bi"] .sidebar-status > :not(.user-card),
  .app-shell[data-route="technician-bi"] .user-card .avatar,
  .app-shell[data-route="technician-bi"] .user-copy { display: none; }
  .app-shell[data-route="technician-bi"] .nav-item { min-height: 42px; padding: 6px; justify-content: center; }
  .app-shell[data-route="technician-bi"] .user-card { padding: 5px; grid-template-columns: 1fr; }
  .app-shell[data-route="technician-bi"] .topbar { min-height: 0; padding: 10px; align-items: flex-start; flex-wrap: wrap; }
  .app-shell[data-route="technician-bi"] .page-title h1 { font-size: 20px; }
  .app-shell[data-route="technician-bi"] .page-title p { white-space: normal; }
  .app-shell[data-route="technician-bi"] .header-tools { width: 100%; overflow-x: auto; }
  .app-shell[data-route="technician-bi"] .header-save { margin-right: auto; }
  .app-shell[data-route="technician-bi"] .content { padding: 0 8px 24px; }
  .app-shell[data-route="technician-bi"] .bi-v23-page-actions {
    position: static;
    min-height: 52px;
    margin-bottom: 2px;
    justify-content: space-between;
    gap: 8px;
  }
  .app-shell[data-route="technician-bi"] .bi-v23-page-actions > span { font-size: 9px; }
  .app-shell[data-route="technician-bi"] .bi-v23-page-actions .btn { min-height: 34px; padding: 6px 9px; font-size: 10px; }
  .app-shell[data-route="technician-bi"] .bi-tabs { gap: 18px; overflow-x: auto; }
  .app-shell[data-route="technician-bi"] .bi-tabs > button { flex: 0 0 auto; }
  .app-shell[data-route="technician-bi"] .bi-tabs > .bi-weight-trigger { margin-left: 0; }
  .app-shell[data-route="technician-bi"] .bi-filter-primary { grid-template-columns: 1fr; }
  .app-shell[data-route="technician-bi"] .bi-filter-secondary { align-items: stretch; flex-direction: column; }
  .app-shell[data-route="technician-bi"] .bi-overview-kpis,
  .app-shell[data-route="technician-bi"] .bi-v23-overview-summary,
  .app-shell[data-route="technician-bi"] .bi-v23-all-summary,
  .app-shell[data-route="technician-bi"] .bi-v23-six-kpis,
  .app-shell[data-route="technician-bi"] .bi-person-metrics,
  .app-shell[data-route="technician-bi"] .bi-v23-person-metrics { grid-template-columns: 1fr; }
  .app-shell[data-route="technician-bi"] .bi-overview-kpis .bi-kpi,
  .app-shell[data-route="technician-bi"] .bi-v23-overview-summary > *,
  .app-shell[data-route="technician-bi"] .bi-v23-all-summary > *,
  .app-shell[data-route="technician-bi"] .bi-v23-six-kpis > * { min-height: 100px; }
  .app-shell[data-route="technician-bi"] .bi-v23-ranking-tabs,
  .app-shell[data-route="technician-bi"] .bi-overview-metric-tabs { grid-template-columns: repeat(6,minmax(132px,1fr)); overflow-x: auto; }
  .app-shell[data-route="technician-bi"] .bi-v23-ranking-aside { grid-template-columns: 1fr; }
  .app-shell[data-route="technician-bi"] .bi-v23-ranking-side { grid-template-columns: 1fr; }
  .app-shell[data-route="technician-bi"] .bi-person-head,
  .app-shell[data-route="technician-bi"] .bi-v23-person-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .app-shell[data-route="technician-bi"] .bi-person-head:not(.bi-v23-person-summary) { grid-template-columns: 1fr; }
  .app-shell[data-route="technician-bi"] .bi-v23-person-summary > .bi-v23-person-identity { grid-column: 1 / -1; }
  .app-shell[data-route="technician-bi"] .bi-person-head > div,
  .app-shell[data-route="technician-bi"] .bi-v23-person-summary > * { padding: 9px 0; border-top: 1px solid var(--bi23-line-soft); border-left: 0; }
  .app-shell[data-route="technician-bi"] .bi-person-head > div:first-child,
  .app-shell[data-route="technician-bi"] .bi-v23-person-summary > :first-child { border-top: 0; }
  .app-shell[data-route="technician-bi"] .bi-v23-person-head-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); border-left: 0 !important; }
  .app-shell[data-route="technician-bi"] .bi-v23-person-head-metrics > div { border-top: 1px solid var(--bi23-line-soft); }
  .app-shell[data-route="technician-bi"] .bi-v23-person-head-metrics > div:nth-child(odd) { border-left: 0; }
  .app-shell[data-route="technician-bi"] .bi-v23-more-filters > div {
    position: static;
    width: 100%;
    margin-top: 7px;
    grid-template-columns: 1fr;
    box-shadow: none;
  }
  .app-shell[data-route="technician-bi"] .bi-person-toolbar { align-items: stretch; flex-direction: column; }
  .app-shell[data-route="technician-bi"] .bi-person-toolbar .bi-period-compare { margin-left: 0; }
}

.app-shell[data-route="technician-bi"] :is(button,a,input,select,summary):focus-visible {
  outline: 3px solid rgba(172, 86, 25, .34);
  outline-offset: 2px;
}

/* V6.8.24 客满满订单导入与订单规范化明细。 */
.app-shell:is([data-route="orders"],[data-route="order-details"]) {
  grid-template-columns: 224px minmax(0,1fr);
  color: #2e251f;
  background: #f8f4ed;
  font-family: "Microsoft YaHei", "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.app-shell:is([data-route="orders"],[data-route="order-details"]) .sidebar { width: 224px; padding: 12px 10px; }
.app-shell:is([data-route="orders"],[data-route="order-details"]) .brand { height: 62px; padding: 6px 9px; border-radius: 14px; }
.app-shell:is([data-route="orders"],[data-route="order-details"]) .brand-logo-frame { width: 180px; height: 50px; flex: 0 0 180px; }
.app-shell:is([data-route="orders"],[data-route="order-details"]) .brand-logo-frame img,
.app-shell:is([data-route="orders"],[data-route="order-details"]) .brand img { top: -31px; left: -28px; width: 241px; }
.app-shell:is([data-route="orders"],[data-route="order-details"]) .brand-context { padding: 9px 7px 8px; }
.app-shell:is([data-route="orders"],[data-route="order-details"]) .brand-context strong { font-size: 12px; }
.app-shell:is([data-route="orders"],[data-route="order-details"]) .brand-context span { font-size: 10px; }
.app-shell:is([data-route="orders"],[data-route="order-details"]) .nav { gap: 7px; }
.app-shell:is([data-route="orders"],[data-route="order-details"]) .nav-group { gap: 2px; }
.app-shell:is([data-route="orders"],[data-route="order-details"]) .nav-group-label { padding-bottom: 3px; font-size: 10px; }
.app-shell:is([data-route="orders"],[data-route="order-details"]) .nav-item { min-height: 39px; padding: 6px 8px; gap: 8px; border-radius: 10px; font-size: 13px; }
.app-shell:is([data-route="orders"],[data-route="order-details"]) .nav-icon { width: 27px; height: 27px; border-radius: 8px; font-size: 14px; }
.app-shell:is([data-route="orders"],[data-route="order-details"]) .sidebar-status { padding: 8px 4px 0; }
.app-shell:is([data-route="orders"],[data-route="order-details"]) .status-row { margin: 5px 0; font-size: 10px; }
.app-shell:is([data-route="orders"],[data-route="order-details"]) .user-card { margin-top: 7px; padding: 7px; grid-template-columns: 32px minmax(0,1fr) auto; border-radius: 11px; }
.app-shell:is([data-route="orders"],[data-route="order-details"]) .user-card .avatar { width: 32px; height: 32px; }
.app-shell:is([data-route="orders"],[data-route="order-details"]) .user-copy strong { font-size: 11px; }
.app-shell:is([data-route="orders"],[data-route="order-details"]) .user-copy span { font-size: 9px; }
.app-shell:is([data-route="orders"],[data-route="order-details"]) .topbar { min-height: 92px; padding: 14px 30px 12px; }
.app-shell:is([data-route="orders"],[data-route="order-details"]) .page-eyebrow { font-size: 10px; }
.app-shell:is([data-route="orders"],[data-route="order-details"]) .page-title h1 { font-size: 27px; }
.app-shell:is([data-route="orders"],[data-route="order-details"]) .page-title p { font-size: 12px; white-space: normal; }
.app-shell:is([data-route="orders"],[data-route="order-details"]) .content { max-width: none; padding: 20px 30px 46px; }
.app-shell:is([data-route="orders"],[data-route="order-details"]) .btn { min-height: 40px; border-radius: 10px; }

.order-import-page { width: min(1120px,100%); margin: 0 auto; display: grid; gap: 18px; }
.order-import-workbench { width: min(940px,100%); min-height: 318px; margin-inline: auto; padding: 30px 42px; display: grid; align-content: center; justify-items: center; gap: 16px; border: 1px solid rgba(184,122,43,.38); border-radius: 15px; background: rgba(255,253,249,.88); box-shadow: 0 12px 35px rgba(90,59,28,.06), inset 0 1px 0 rgba(255,255,255,.9); }
.order-import-workbench.is-empty { min-height: 360px; padding: 0; overflow: hidden; }
.order-import-workbench.is-preview,.order-import-workbench.is-complete { justify-items: stretch; }
.order-import-workbench.is-readonly { text-align: center; }
.order-import-workbench.is-readonly h2 { margin: 2px 0 0; font-size: 22px; }
.order-import-workbench.is-readonly p { max-width: 620px; margin: 0; color: var(--muted); line-height: 1.7; }
.order-upload-zone { width: 100%; min-height: 358px; padding: 42px; display: grid; place-content: center; justify-items: center; gap: 12px; color: #37291e; background: radial-gradient(520px 210px at 50% 0,rgba(211,154,72,.10),transparent 72%); text-align: center; cursor: pointer; transition: background .2s ease,box-shadow .2s ease; }
.order-upload-zone:hover,.order-upload-zone.is-dragging { background: radial-gradient(560px 240px at 50% 0,rgba(211,154,72,.18),transparent 72%),#fffdf9; box-shadow: inset 0 0 0 3px rgba(198,130,39,.10); }
.order-upload-zone h2 { margin: 4px 0 0; font-size: 24px; letter-spacing: -.03em; }
.order-upload-zone p { margin: 0; color: var(--muted); font-size: 14px; }
.order-upload-zone .btn { min-width: 280px; margin-top: 7px; }
.order-upload-zone small { max-width: 640px; color: #8f8175; font-size: 12px; line-height: 1.6; }
.order-upload-icon { width: 68px; height: 68px; display: grid; place-items: center; border: 1px solid rgba(184,122,43,.20); border-radius: 17px; color: #a86b23; background: #fff5e4; font-size: 34px; box-shadow: inset 0 1px 0 #fff; }
.order-upload-icon.is-file { width: 56px; height: 56px; flex: 0 0 auto; border-radius: 13px; font-size: 28px; }
.order-upload-icon.is-lock { width: 60px; height: 60px; font-size: 16px; font-weight: 800; }
.order-import-recognition { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 17px; }
.order-import-recognition > span { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #41945f; font-weight: 900; }
.order-import-recognition.is-blocked > span { background: #c44f42; }
.order-import-file { display: flex; align-items: center; justify-content: center; gap: 15px; }
.order-import-file h2 { max-width: 750px; margin: 0; overflow: hidden; color: #30241c; font-size: 20px; text-overflow: ellipsis; white-space: nowrap; }
.order-import-file p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.order-import-recognition-copy { margin: 0; color: #776a60; text-align: center; font-size: 13px; line-height: 1.65; }
.order-import-preview-stats { width: 100%; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border-block: 1px solid rgba(87,63,43,.10); }
.order-import-preview-stats .summary-cell { min-height: 74px; padding: 11px; place-content: center; text-align: center; border: 0; border-right: 1px solid rgba(87,63,43,.10); background: transparent; box-shadow: none; }
.order-import-preview-stats .summary-cell:last-child { border-right: 0; }
.order-import-preview-stats .summary-cell span { color: var(--muted); font-size: 11px; }
.order-import-preview-stats .summary-cell strong { margin-top: 5px; color: #2c211a; font-size: 24px; }
.order-import-preview-meta { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px 25px; color: #776a60; font-size: 12px; }
.order-import-preview-meta span { display: inline-flex; gap: 7px; }
.order-import-preview-meta b { color: #49382d; }
.order-import-preview-actions { display: flex; justify-content: flex-end; gap: 10px; }
.order-import-preview-actions .btn.primary { min-width: 210px; }
.order-import-secondary-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }
.order-import-inline-confirm { width: 100%; margin: 0; border: 1px solid rgba(184,122,43,.18); border-radius: 12px; background: #fffaf1; }
.order-import-field-settings { width: 100%; border: 1px solid rgba(80,59,44,.12); border-radius: 12px; background: #fcfaf6; }
.order-import-field-settings > summary { min-height: 43px; padding: 10px 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #49372b; cursor: pointer; font-weight: 750; }
.order-import-field-settings > summary span { color: var(--muted); font-size: 11px; font-weight: 500; }
.order-import-field-settings .mapping-grid { padding: 14px; grid-template-columns: repeat(4,minmax(0,1fr)); border-top: 1px solid rgba(80,59,44,.10); }
.order-import-auto-tech { margin: 0 14px 14px; }
.order-import-readonly-note { margin: 0 14px 14px; color: var(--muted); font-size: 12px; }
.order-import-steps { width: min(620px,100%); margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(3,1fr); list-style: none; }
.order-import-steps li { position: relative; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 9px; color: #92877e; font-size: 13px; }
.order-import-steps li:not(:last-child)::after { position: absolute; right: -20%; width: 40%; height: 1px; content: ""; background: #d8d0c8; }
.order-import-steps li > span { width: 29px; height: 29px; display: grid; place-items: center; border: 1px solid #d5ccc3; border-radius: 50%; background: #fff; font-weight: 800; }
.order-import-steps li.is-current { color: #55371e; }
.order-import-steps li.is-current > span { color: #fff; border-color: #be7d2d; background: linear-gradient(145deg,#d8a34d,#9a5c1c); }
.order-import-steps li.is-done > span { color: #fff; border-color: #3d9360; background: #3d9360; }
.order-import-safety { width: min(940px,100%); margin-inline: auto; border: 1px solid rgba(91,66,44,.12); border-radius: 12px; background: rgba(255,253,249,.72); }
.order-import-safety > summary { min-height: 42px; padding: 10px 14px; color: #6f6258; cursor: pointer; font-size: 12px; font-weight: 700; }
.order-import-safety > div { padding: 0 15px 13px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px 22px; color: #786b62; font-size: 12px; line-height: 1.65; }
.order-import-safety p { margin: 0; }
.order-import-history { display: grid; gap: 12px; }
.order-import-history-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.order-import-history-head h2 { margin: 0; font-size: 19px; }
.order-import-history-head p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.order-import-history-filters { display: flex; gap: 10px; }
.order-import-history-filters label { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; }
.order-import-history-filters select { min-width: 135px; }
.order-import-history-table { border: 1px solid rgba(91,66,44,.12); border-radius: 12px; background: rgba(255,253,249,.82); }
.order-import-history-table .data-table { min-width: 980px; }
.order-import-history-table td,.order-import-history-table th { padding: 11px 12px; }
.order-import-state { display: inline-flex; align-items: center; gap: 6px; color: #367a50; font-size: 12px; font-weight: 700; white-space: nowrap; }
.order-import-state i { width: 7px; height: 7px; border-radius: 50%; background: #3c945c; }

.order-raw-page { display: grid; gap: 14px; }
.order-raw-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.order-raw-heading h2 { margin: 0; font-size: 20px; }
.order-raw-heading p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.order-raw-heading > div:last-child { display: flex; align-items: baseline; gap: 7px; white-space: nowrap; }
.order-raw-heading > div:last-child strong { color: #7b4c1d; font-size: 22px; }
.order-raw-heading > div:last-child span { color: var(--muted); font-size: 11px; }
.order-raw-card { overflow: hidden; border-radius: 14px; background: rgba(255,253,249,.92); }
.order-raw-filters { padding: 14px; display: grid; grid-template-columns: 150px 170px 210px minmax(240px,1fr) auto; align-items: end; gap: 10px; border-bottom: 1px solid rgba(91,66,44,.11); }
.order-raw-filters.is-technician { grid-template-columns: 150px 210px minmax(240px,1fr) auto; }
.order-raw-filter { min-width: 0; display: grid; gap: 5px; }
.order-raw-filter > span { color: var(--muted); font-size: 10px; font-weight: 700; }
.order-raw-filter.is-readonly > strong { min-height: 39px; padding: 10px 11px; display: flex; align-items: center; border: 1px solid rgba(91,66,44,.14); border-radius: 8px; background: #f7f3ed; color: #51483f; font-size: 12px; }
.order-raw-filter input,.order-raw-filter select { width: 100%; min-width: 0; }
.order-raw-query-actions { display: flex; gap: 8px; }
.order-raw-tools { min-height: 55px; padding: 9px 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid rgba(91,66,44,.10); }
.order-raw-tools > div { display: flex; align-items: center; gap: 8px; }
.order-query-status { display: inline-flex; align-items: center; gap: 7px; color: #896029; font-size: 11px; }
.order-query-status i { width: 12px; height: 12px; border: 2px solid rgba(137,96,41,.20); border-top-color: #896029; border-radius: 50%; animation: auth-spin .8s linear infinite; }
.order-query-error { margin: 12px 14px 0; display: flex; align-items: center; gap: 8px; }
.order-raw-table-wrap { max-height: calc(100vh - 330px); overflow: auto; scrollbar-gutter: stable; }
.order-raw-table { min-width: 1540px; }
.order-raw-table thead th { position: sticky; top: 0; z-index: 2; background: #f7f0e6; box-shadow: inset 0 -1px 0 rgba(91,66,44,.13); }
.order-raw-table th,.order-raw-table td { padding: 11px 10px; font-size: 12px; }
.order-raw-table td { vertical-align: middle; }
.order-raw-table td > small { display: block; margin-top: 4px; line-height: 1.35; }
.order-raw-id { font-family: "SFMono-Regular",Consolas,"Liberation Mono",monospace; font-size: 11px; white-space: nowrap; }
.order-raw-money { color: #3b3028; white-space: nowrap; }
.order-raw-money.is-negative { color: #c53f39; }
.order-raw-missing { color: #a09890; }
.order-raw-pagination { min-height: 57px; padding: 10px 14px; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 12px; }

#modal-root[data-modal-kind="order-detail-drawer"] .modal-backdrop { place-items: stretch end; padding: 0; background: rgba(25,20,16,.28); }
#modal-root[data-modal-kind="order-detail-drawer"] .order-detail-drawer { width: min(540px,100vw); height: 100vh; max-height: 100vh; border-width: 0 0 0 1px; border-radius: 0; background: #fffdf9; animation: order-drawer-in .22s ease-out; }
#modal-root[data-modal-kind="order-detail-drawer"] .modal-header,
#modal-root[data-modal-kind="order-detail-drawer"] .modal-footer { background: rgba(255,253,249,.95); }
#modal-root[data-modal-kind="order-detail-drawer"] .modal-body { padding: 16px; }
#modal-root[data-modal-kind="order-detail-drawer"] .order-source-summary { align-items: flex-start; flex-direction: column; }
#modal-root[data-modal-kind="order-detail-drawer"] .order-source-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
#modal-root[data-modal-kind="order-detail-drawer"] .order-source-field.is-wide { grid-column: span 2; }
.order-field-guide { display: grid; gap: 15px; }
.order-field-guide-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 11px; }
.order-field-guide-grid article { padding: 15px; border: 1px solid rgba(91,66,44,.12); border-radius: 13px; background: #fffdf9; }
.order-field-guide-grid h3 { margin: 0; font-size: 15px; }
.order-field-guide-grid p { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
@keyframes order-drawer-in { from { transform: translateX(24px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

@media (max-width: 1180px) {
  body:has(.app-shell:is([data-route="orders"],[data-route="order-details"])) { min-width: 0; }
  .app-shell:is([data-route="orders"],[data-route="order-details"]) { min-width: 0; grid-template-columns: 190px minmax(0,1fr); }
  .app-shell:is([data-route="orders"],[data-route="order-details"]) .sidebar { width: 190px; }
  .app-shell:is([data-route="orders"],[data-route="order-details"]) .brand-logo-frame { width: 158px; flex-basis: 158px; }
  .app-shell:is([data-route="orders"],[data-route="order-details"]) .brand-logo-frame img,
  .app-shell:is([data-route="orders"],[data-route="order-details"]) .brand img { top: -28px; left: -25px; width: 213px; }
  .app-shell:is([data-route="orders"],[data-route="order-details"]) .content { padding-inline: 16px; }
  .order-import-workbench { padding-inline: 24px; }
  .order-import-field-settings .mapping-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .order-raw-filters { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .order-raw-filter.is-search { grid-column: span 2; }
  .order-raw-query-actions { justify-content: flex-end; }
  .order-import-safety > div { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .app-shell:is([data-route="orders"],[data-route="order-details"]) { grid-template-columns: 72px minmax(0,1fr); }
  .app-shell:is([data-route="orders"],[data-route="order-details"]) .sidebar { width: 72px; padding: 9px 7px; }
  .app-shell:is([data-route="orders"],[data-route="order-details"]) .brand,
  .app-shell:is([data-route="orders"],[data-route="order-details"]) .brand-context,
  .app-shell:is([data-route="orders"],[data-route="order-details"]) .nav-group-label,
  .app-shell:is([data-route="orders"],[data-route="order-details"]) .nav-item > span:last-child,
  .app-shell:is([data-route="orders"],[data-route="order-details"]) .sidebar-status > :not(.user-card),
  .app-shell:is([data-route="orders"],[data-route="order-details"]) .user-card .avatar,
  .app-shell:is([data-route="orders"],[data-route="order-details"]) .user-copy { display: none; }
  .app-shell:is([data-route="orders"],[data-route="order-details"]) .nav-item { min-height: 42px; padding: 6px; justify-content: center; }
  .app-shell:is([data-route="orders"],[data-route="order-details"]) .user-card { padding: 5px; grid-template-columns: 1fr; }
  .app-shell:is([data-route="orders"],[data-route="order-details"]) .topbar { min-height: 0; padding: 10px 12px; align-items: flex-start; flex-wrap: wrap; }
  .app-shell:is([data-route="orders"],[data-route="order-details"]) .page-title h1 { font-size: 21px; }
  .app-shell:is([data-route="orders"],[data-route="order-details"]) .header-tools { width: 100%; }
  .app-shell:is([data-route="orders"],[data-route="order-details"]) .content { padding: 12px 8px 28px; }
  .order-import-workbench { min-height: 280px; padding: 22px 14px; }
  .order-import-workbench.is-empty,.order-upload-zone { min-height: 300px; }
  .order-upload-zone { padding: 24px 12px; }
  .order-upload-zone h2 { font-size: 19px; }
  .order-upload-zone .btn { min-width: min(260px,100%); }
  .order-import-file { min-width: 0; align-items: flex-start; }
  .order-import-file > div:last-child { min-width: 0; }
  .order-import-file h2 { font-size: 16px; }
  .order-import-preview-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .order-import-preview-stats .summary-cell:nth-child(2) { border-right: 0; }
  .order-import-preview-stats .summary-cell:nth-child(-n+2) { border-bottom: 1px solid rgba(87,63,43,.10); }
  .order-import-field-settings .mapping-grid { grid-template-columns: 1fr; }
  .order-import-preview-actions { align-items: stretch; flex-direction: column-reverse; }
  .order-import-preview-actions .btn { width: 100%; }
  .order-import-secondary-actions { width: 100%; flex-direction: column; }
  .order-import-steps li { gap: 5px; font-size: 10px; }
  .order-import-steps li:not(:last-child)::after { display: none; }
  .order-import-history-head,.order-raw-heading,.order-raw-tools { align-items: stretch; flex-direction: column; }
  .order-import-history-filters { display: grid; grid-template-columns: 1fr; }
  .order-import-history-filters label { justify-content: space-between; }
  .order-raw-filters { grid-template-columns: 1fr; }
  .order-raw-filter.is-search { grid-column: auto; }
  .order-raw-query-actions,.order-raw-query-actions .btn { width: 100%; }
  .order-raw-query-actions .btn { flex: 1; }
  .order-raw-tools > div { flex-wrap: wrap; }
  .order-raw-table-wrap { max-height: 58vh; }
  #modal-root[data-modal-kind="order-detail-drawer"] .order-detail-drawer { width: 100vw; }
  #modal-root[data-modal-kind="order-detail-drawer"] .order-source-grid { grid-template-columns: 1fr; }
  #modal-root[data-modal-kind="order-detail-drawer"] .order-source-field.is-wide { grid-column: auto; }
  .order-field-guide-grid { grid-template-columns: 1fr; }
}

/* V6.8.25 final overrides: kept at EOF so the reference layout wins over the
   V6.8.23/V6.8.24 compatibility styles above. */
.app-shell[data-route="technician-bi"] { grid-template-columns: 196px minmax(0,1fr); }
.app-shell[data-route="technician-bi"] .sidebar { width: 196px; }
.app-shell[data-route="technician-bi"] :is(.bi-v25-overview-kpis,.bi-v25-store-kpis,.bi-v25-all-summary) {
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 10px;
}
.app-shell[data-route="technician-bi"] .bi-v25-all-summary small,
.app-shell[data-route="technician-bi"] :is(.bi-v25-overview-kpis,.bi-v25-store-kpis) .bi-kpi small,
.app-shell[data-route="technician-bi"] .bi-v25-store-cards span small,
.app-shell[data-route="technician-bi"] .bi-v25-store-cards :is(dt,dd),
.app-shell[data-route="technician-bi"] .bi-v25-store-bar,
.app-shell[data-route="technician-bi"] .bi-v25-store-coverage li,
.app-shell[data-route="technician-bi"] .bi-v25-trend-summary span,
.app-shell[data-route="technician-bi"] .bi-v25-trend-summary p,
.app-shell[data-route="technician-bi"] .bi-v25-trend-card footer :is(b,small),
.order-sync-heading > div:first-child span,
.order-sync-heading p,
.order-sync-cloud,
.order-sync-kpis small,
.order-sync-kpis p,
.order-sync-issues header p { font-size: 11px; }
.app-shell[data-route="technician-bi"] :is(.bi-v25-store-table,.bi-v25-trend-table,.bi-v25-metric-table) :is(th,td),
.order-sync-issues .data-table :is(th,td) { font-size: 12px; }
.app-shell[data-route="technician-bi"] .bi-v25-metric-table { min-width: 920px; }
.app-shell[data-route="technician-bi"] .bi-v25-primary-metric { color: var(--bi23-brown-deep); white-space: nowrap; }
.app-shell[data-route="technician-bi"] .bi-v25-ranking-pagination { min-height: 52px; padding: 9px 10px; display: flex; align-items: center; justify-content: flex-end; gap: 8px; border-top: 1px solid var(--bi23-line-soft); color: var(--bi23-muted); font-size: 11px; }
.app-shell[data-route="technician-bi"] .bi-v25-ranking-pagination > span { margin-right: auto; }
.app-shell[data-route="technician-bi"] .bi-v25-ranking-pagination label { display: inline-flex; align-items: center; gap: 5px; }
.app-shell[data-route="technician-bi"] .bi-v25-ranking-pagination select { min-height: 32px; padding: 4px 22px 4px 7px; border: 1px solid var(--bi23-line); border-radius: 7px; background: #fff; }
.app-shell[data-route="technician-bi"] .bi-v25-trend-comparison { min-height: 43px; margin-bottom: 10px; padding: 9px 13px; display: flex; align-items: center; gap: 9px; border: 1px solid #ead9c6; border-radius: 9px; color: #6d4b2d; background: #fff8ef; font-size: 11px; }
.app-shell[data-route="technician-bi"] .bi-v25-trend-comparison span { flex: 0 0 auto; padding: 3px 7px; border-radius: 99px; color: #fff; background: #9c5d24; font-weight: 800; }
.app-shell[data-route="technician-bi"] .bi-v25-trend-summary span em { margin-left: 5px; padding: 2px 5px; border-radius: 99px; color: #9d5a1e; background: #fff0dd; font-size: 11px; font-style: normal; }
.app-shell[data-route="technician-bi"] :is(.bi-v25-store-chart,.bi-v25-store-table,.bi-v25-trend-table) header :is(p,small),
.app-shell[data-route="technician-bi"] .bi-v25-coverage-donut small,
.app-shell[data-route="technician-bi"] .bi-v25-trend-summary strong small,
.order-sync-tabs button b,
.order-sync-kpis strong em,
.order-sync-empty p { font-size: 11px; }

.app-shell[data-route="technician-bi"] .bi-v25-person-profile {
  min-height: 102px;
  display: grid;
  grid-template-columns: minmax(290px,1.7fr) repeat(3,minmax(125px,1fr));
  overflow: hidden;
}
.app-shell[data-route="technician-bi"] .bi-v25-person-profile > div:not(.bi-v23-person-identity) {
  min-width: 0;
  padding: 17px;
  display: grid;
  align-content: center;
  gap: 7px;
  border-left: 1px solid var(--bi23-line-soft);
}
.app-shell[data-route="technician-bi"] .bi-v25-person-profile > div:not(.bi-v23-person-identity) span { color: var(--bi23-muted); font-size: 11px; }
.app-shell[data-route="technician-bi"] .bi-v25-person-profile > div:not(.bi-v23-person-identity) strong { overflow: hidden; font-size: 20px; text-overflow: ellipsis; white-space: nowrap; }
.app-shell[data-route="technician-bi"] .bi-v25-person-kpis {
  margin: 12px 0;
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 10px;
}
.app-shell[data-route="technician-bi"] .bi-v25-person-kpis article {
  position: relative;
  min-width: 0;
  min-height: 105px;
  padding: 15px 16px 14px 70px;
  display: grid;
  align-content: center;
  border: 1px solid var(--bi23-line);
  border-radius: 10px;
  background: #fff;
}
.app-shell[data-route="technician-bi"] .bi-v25-person-kpis article::before {
  position: absolute;
  top: 22px;
  left: 17px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  content: '●';
  border-radius: 50%;
  color: var(--bi23-green);
  background: var(--bi23-green-soft);
}
.app-shell[data-route="technician-bi"] .bi-v25-person-kpis article.amber::before { color: #df7e09; background: #fff0dd; }
.app-shell[data-route="technician-bi"] .bi-v25-person-kpis article.blue::before { color: #2684ce; background: #e8f4ff; }
.app-shell[data-route="technician-bi"] .bi-v25-person-kpis article.gold::before { color: #d2921f; background: #fff2d5; }
.app-shell[data-route="technician-bi"] .bi-v25-person-kpis span { color: #534c45; font-size: 12px; font-weight: 700; }
.app-shell[data-route="technician-bi"] .bi-v25-person-kpis strong { margin-top: 4px; font-size: 27px; line-height: 1.05; }
.app-shell[data-route="technician-bi"] .bi-v25-person-kpis small { margin-top: 7px; overflow: hidden; color: var(--bi23-muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.app-shell[data-route="technician-bi"] .bi-v25-person-analysis {
  margin-bottom: 12px;
  display: grid;
  grid-template-columns: minmax(0,1.5fr) minmax(260px,.9fr) minmax(260px,.9fr);
  gap: 10px;
}
.app-shell[data-route="technician-bi"] .bi-v25-person-analysis > article { min-width: 0; min-height: 330px; padding: 15px; }
.app-shell[data-route="technician-bi"] .bi-v25-person-analysis > article > header,
.app-shell[data-route="technician-bi"] .bi-v25-person-bottom > article > header { margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.app-shell[data-route="technician-bi"] .bi-v25-person-analysis h3,
.app-shell[data-route="technician-bi"] .bi-v25-person-bottom h3 { margin: 0; font-size: 15px; }
.app-shell[data-route="technician-bi"] .bi-v25-person-analysis header :is(p,small),
.app-shell[data-route="technician-bi"] .bi-v25-person-bottom header small { margin: 3px 0 0; color: var(--bi23-muted); font-size: 11px; }
.app-shell[data-route="technician-bi"] .bi-v25-person-trend .bi-trend svg { height: 190px; }
.app-shell[data-route="technician-bi"] .bi-v25-structure-list { display: grid; gap: 12px; }
.app-shell[data-route="technician-bi"] .bi-v25-structure-list > div { display: grid; grid-template-columns: 82px minmax(60px,1fr) 50px 42px; align-items: center; gap: 7px; font-size: 11px; }
.app-shell[data-route="technician-bi"] .bi-v25-structure-list > div > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-shell[data-route="technician-bi"] .bi-v25-structure-list i { height: 8px; overflow: hidden; border-radius: 99px; background: #edf0f2; }
.app-shell[data-route="technician-bi"] .bi-v25-structure-list i b { height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg,#5598d4,#43a7e6); }
.app-shell[data-route="technician-bi"] .bi-v25-structure-list small { color: var(--bi23-muted); }
.app-shell[data-route="technician-bi"] .bi-v25-radar { display: grid; grid-template-columns: minmax(130px,1fr) minmax(105px,.8fr); align-items: center; gap: 8px; }
.app-shell[data-route="technician-bi"] .bi-v25-radar svg { width: 100%; max-height: 235px; }
.app-shell[data-route="technician-bi"] .bi-v25-radar .grid { fill: none; stroke: #ddd5ce; stroke-width: .7; }
.app-shell[data-route="technician-bi"] .bi-v25-radar .value { fill: rgba(220,132,31,.18); stroke: #d67e16; stroke-width: 1.5; }
.app-shell[data-route="technician-bi"] .bi-v25-radar ul { margin: 0; padding: 0; display: grid; gap: 7px; list-style: none; }
.app-shell[data-route="technician-bi"] .bi-v25-radar li { display: flex; justify-content: space-between; gap: 6px; font-size: 11px; }
.app-shell[data-route="technician-bi"] .bi-v25-person-bottom { margin-bottom: 12px; display: grid; grid-template-columns: minmax(0,1.6fr) minmax(180px,.55fr) minmax(220px,.7fr); gap: 10px; }
.app-shell[data-route="technician-bi"] .bi-v25-person-bottom > article { min-width: 0; min-height: 190px; padding: 15px; }
.app-shell[data-route="technician-bi"] .bi-v25-person-rank { display: grid; align-content: center; justify-items: center; text-align: center; }
.app-shell[data-route="technician-bi"] .bi-v25-person-rank strong { color: var(--bi23-brown-deep); font-size: 29px; }
.app-shell[data-route="technician-bi"] .bi-v25-person-rank p,
.app-shell[data-route="technician-bi"] .bi-v25-person-rank > small { color: var(--bi23-muted); font-size: 11px; }
.app-shell[data-route="technician-bi"] .bi-v25-person-notes ul { margin: 0; padding-left: 18px; display: grid; gap: 8px; color: #5b5149; font-size: 11px; line-height: 1.45; }
.app-shell[data-route="technician-bi"] .bi-v25-person-audit { margin-top: 11px; padding: 12px 14px; border: 1px solid var(--bi23-line); border-radius: 10px; background: #fff; }
.app-shell[data-route="technician-bi"] .bi-v25-person-audit > summary { cursor: pointer; color: var(--bi23-brown-deep); font-size: 12px; font-weight: 800; }
.app-shell[data-route="technician-bi"] .bi-v25-person-audit > :not(summary) { margin-top: 12px; }

@media (max-width: 1439px) and (min-width: 1181px) {
  .app-shell[data-route="technician-bi"],
  .app-shell:is([data-route="orders"],[data-route="order-details"]) { grid-template-columns: 190px minmax(0,1fr); }
  .app-shell[data-route="technician-bi"] .sidebar,
  .app-shell:is([data-route="orders"],[data-route="order-details"]) .sidebar { width: 190px; }
  .app-shell[data-route="technician-bi"] .bi-v25-person-analysis { grid-template-columns: minmax(0,1.45fr) minmax(230px,.9fr); }
  .app-shell[data-route="technician-bi"] .bi-v25-person-radar { grid-column: 1 / -1; min-height: 260px; }
}
@media (max-width: 1180px) {
  .app-shell[data-route="technician-bi"] { grid-template-columns: 176px minmax(0,1fr); }
  .app-shell[data-route="technician-bi"] .sidebar { width: 176px; }
  .app-shell[data-route="technician-bi"] :is(.bi-v25-overview-kpis,.bi-v25-store-kpis,.bi-v25-all-summary,.bi-v25-person-kpis) { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .app-shell[data-route="technician-bi"] .bi-v25-person-profile { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .app-shell[data-route="technician-bi"] .bi-v25-person-profile > .bi-v23-person-identity { grid-column: 1 / -1; }
  .app-shell[data-route="technician-bi"] .bi-v25-person-analysis,
  .app-shell[data-route="technician-bi"] .bi-v25-person-bottom { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .app-shell[data-route="technician-bi"] { grid-template-columns: 72px minmax(0,1fr); }
  .app-shell[data-route="technician-bi"] .sidebar { width: 72px; }
  .app-shell[data-route="technician-bi"] :is(.bi-v25-overview-kpis,.bi-v25-store-kpis,.bi-v25-all-summary,.bi-v25-person-kpis) { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .app-shell[data-route="technician-bi"] .bi-v25-person-profile { grid-template-columns: 1fr; }
  .app-shell[data-route="technician-bi"] .bi-v25-person-profile > div:not(.bi-v23-person-identity) { border-top: 1px solid var(--bi23-line-soft); border-left: 0; }
  .app-shell[data-route="technician-bi"] .bi-v25-radar { grid-template-columns: 1fr; }
  .app-shell[data-route="technician-bi"] .bi-v25-person-kpis small { white-space: normal; }
}

/* V6.8.26 canonical technician BI scale
   This single EOF contract isolates the live technician-bi route from the
   accumulated V6.8.15/V6.8.22/V6.8.23/V6.8.25 density overrides above.
   Business logic, brand colours and information architecture are unchanged. */
.app-shell[data-route="technician-bi"] {
  --bi-font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  --bi-font-page-title: 30px;
  --bi-font-section-title: 18px;
  --bi-font-card-title: 16px;
  --bi-font-body: 14px;
  --bi-font-control: 14px;
  --bi-font-table: 14px;
  --bi-font-secondary: 13px;
  --bi-font-caption: 12px;
  --bi-control-height: 42px;
  --bi-table-row-height: 52px;
  --bi-sidebar-width: 224px;
  --bi-content-max: none;
  --bi-layout-gap: 16px;
  --bi-card-padding: 18px;
  --bi23-muted: #675f58;
  grid-template-columns: var(--bi-sidebar-width) minmax(0,1fr);
  color: var(--bi23-text);
  background: var(--bi23-bg);
  font-family: var(--bi-font-family);
  font-size: var(--bi-font-body);
  line-height: 1.5;
}
.app-shell[data-route="technician-bi"] .sidebar {
  width: var(--bi-sidebar-width);
  padding: 14px 12px;
  font-family: var(--bi-font-family);
}
.app-shell[data-route="technician-bi"] .content {
  width: 100%;
  max-width: var(--bi-content-max);
  margin-inline: auto;
  padding: 0 22px 40px;
}
.app-shell[data-route="technician-bi"] :is(button,input,select,textarea,summary,a) {
  font-family: var(--bi-font-family);
  font-size: var(--bi-font-control) !important;
  line-height: 1.4;
}
.app-shell[data-route="technician-bi"] :is(p,span,label,li,dt,dd,output,strong,b,em) {
  font-size: var(--bi-font-body) !important;
  line-height: 1.5;
}
.app-shell[data-route="technician-bi"] small {
  font-size: var(--bi-font-caption) !important;
  line-height: 1.45;
}
.app-shell[data-route="technician-bi"] :is(th,td) {
  font-size: var(--bi-font-table) !important;
  line-height: 1.45;
}
.app-shell[data-route="technician-bi"] :is(h2,h3,h4) { font-family: var(--bi-font-family); }

/* Shell hierarchy */
.app-shell[data-route="technician-bi"] .brand-context strong { font-size: var(--bi-font-body) !important; }
.app-shell[data-route="technician-bi"] .brand-context span,
.app-shell[data-route="technician-bi"] .nav-group-label,
.app-shell[data-route="technician-bi"] .status-row,
.app-shell[data-route="technician-bi"] .user-copy span { font-size: var(--bi-font-caption) !important; }
.app-shell[data-route="technician-bi"] .nav { gap: 9px; }
.app-shell[data-route="technician-bi"] .nav-group { gap: 3px; }
.app-shell[data-route="technician-bi"] .nav-item {
  min-height: 44px;
  padding: 7px 9px;
  gap: 9px;
  font-size: var(--bi-font-body) !important;
}
.app-shell[data-route="technician-bi"] .nav-icon {
  width: 29px;
  height: 29px;
  font-size: 16px !important;
}
.app-shell[data-route="technician-bi"] .user-copy strong { font-size: var(--bi-font-body) !important; }
.app-shell[data-route="technician-bi"] .topbar {
  min-height: 90px;
  padding: 15px 24px 13px;
}
.app-shell[data-route="technician-bi"] .page-eyebrow {
  margin-bottom: 3px;
  font-size: var(--bi-font-secondary) !important;
}
.app-shell[data-route="technician-bi"] .page-title h1 {
  font-size: var(--bi-font-page-title);
  line-height: 1.15;
}
.app-shell[data-route="technician-bi"] .page-title p {
  margin-top: 5px;
  font-size: var(--bi-font-body) !important;
  line-height: 1.45;
}
.app-shell[data-route="technician-bi"] .bi-v23-page-actions {
  top: -73px;
  min-height: 58px;
  gap: 14px;
}
.app-shell[data-route="technician-bi"] .bi-v23-page-actions > span { font-size: var(--bi-font-secondary) !important; }
.app-shell[data-route="technician-bi"] .bi-v23-page-actions .btn,
.app-shell[data-route="technician-bi"] .btn,
.app-shell[data-route="technician-bi"] .btn.small {
  min-height: var(--bi-control-height);
  padding: 9px 14px;
  font-size: var(--bi-font-control) !important;
}

/* Tabs and filters */
.app-shell[data-route="technician-bi"] .bi-tabs {
  min-height: 52px;
  margin-bottom: 16px;
  gap: 32px;
}
.app-shell[data-route="technician-bi"] .bi-tabs > button {
  min-height: 52px;
  font-size: var(--bi-font-control) !important;
}
.app-shell[data-route="technician-bi"] .bi-filter-shell {
  margin-bottom: 16px;
  border-radius: 12px;
}
.app-shell[data-route="technician-bi"] .bi-filterbar {
  min-height: 64px;
  padding: 11px 14px;
  align-items: flex-end;
  gap: 12px;
}
.app-shell[data-route="technician-bi"] .bi-filter-primary,
.app-shell[data-route="technician-bi"] .bi-filter-secondary {
  display: flex;
  flex-wrap: wrap;
}
.app-shell[data-route="technician-bi"] .bi-filter-secondary { min-height: 56px; }
.app-shell[data-route="technician-bi"] .bi-field {
  min-width: 150px;
  gap: 5px;
  font-size: var(--bi-font-caption) !important;
}
.app-shell[data-route="technician-bi"] .bi-select-field { min-width: 155px; }
.app-shell[data-route="technician-bi"] .bi-range-select-field { min-width: 150px; }
.app-shell[data-route="technician-bi"] .bi-secondary-select { min-width: 175px; }
.app-shell[data-route="technician-bi"] .bi-date-field { min-width: 170px; }
.app-shell[data-route="technician-bi"] :is(.bi-select-field,.bi-secondary-select) > span {
  display: block;
  color: var(--bi23-muted);
  font-size: var(--bi-font-caption) !important;
  font-weight: 700;
}
.app-shell[data-route="technician-bi"] .bi-field :is(input,select),
.app-shell[data-route="technician-bi"] .bi-effective-date,
.app-shell[data-route="technician-bi"] .bi-search-field {
  min-height: var(--bi-control-height);
  height: var(--bi-control-height);
  font-size: var(--bi-font-control) !important;
}
.app-shell[data-route="technician-bi"] .bi-effective-date {
  min-width: 245px;
  align-self: flex-end;
  padding-inline: 13px;
}
.app-shell[data-route="technician-bi"] .bi-effective-date b { font-size: var(--bi-font-control) !important; }
.app-shell[data-route="technician-bi"] .bi-search-field,
.app-shell[data-route="technician-bi"] .bi-employee-filter {
  width: min(100%,520px);
  min-width: 280px;
  max-width: 520px;
  flex: 1 1 330px;
  align-self: flex-end;
}
.app-shell[data-route="technician-bi"] .bi-search-field input { font-size: var(--bi-font-control) !important; }
.app-shell[data-route="technician-bi"] .bi-filter-context {
  min-height: var(--bi-control-height);
  flex: 1 1 360px;
  align-items: center;
  font-size: var(--bi-font-secondary) !important;
}
.app-shell[data-route="technician-bi"] .bi-filter-context :is(span,strong) { font-size: var(--bi-font-secondary) !important; }
.app-shell[data-route="technician-bi"] .bi-refresh { align-self: flex-end; }

/* KPI and summary cards */
.app-shell[data-route="technician-bi"] :is(.bi-v25-overview-kpis,.bi-v25-store-kpis,.bi-v25-all-summary,.bi-v25-person-kpis) {
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: var(--bi-layout-gap);
  margin-bottom: var(--bi-layout-gap);
}
.app-shell[data-route="technician-bi"] :is(.bi-v25-overview-kpis,.bi-v25-store-kpis) .bi-kpi,
.app-shell[data-route="technician-bi"] .bi-v25-all-summary > article,
.app-shell[data-route="technician-bi"] .bi-v25-person-kpis article {
  min-height: 112px;
  padding: 16px 18px;
}
.app-shell[data-route="technician-bi"] :is(.bi-v25-overview-kpis,.bi-v25-store-kpis) .bi-kpi {
  grid-template-columns: 50px minmax(0,1fr);
  gap: 14px;
}
.app-shell[data-route="technician-bi"] .bi-kpi-icon {
  width: 48px;
  height: 48px;
  font-size: 20px !important;
}
.app-shell[data-route="technician-bi"] :is(.bi-v25-overview-kpis,.bi-v25-store-kpis) .bi-kpi > div > span,
.app-shell[data-route="technician-bi"] .bi-v25-all-summary small,
.app-shell[data-route="technician-bi"] .bi-v25-person-kpis span { font-size: var(--bi-font-body) !important; }
.app-shell[data-route="technician-bi"] :is(.bi-v25-overview-kpis,.bi-v25-store-kpis) .bi-kpi > div > strong,
.app-shell[data-route="technician-bi"] .bi-v25-all-summary strong,
.app-shell[data-route="technician-bi"] .bi-v25-person-kpis strong {
  font-size: 30px !important;
  line-height: 1.08;
}
.app-shell[data-route="technician-bi"] :is(.bi-v25-overview-kpis,.bi-v25-store-kpis) .bi-kpi small,
.app-shell[data-route="technician-bi"] .bi-v25-person-kpis small { font-size: var(--bi-font-caption) !important; }
.app-shell[data-route="technician-bi"] .bi-v25-all-summary strong em { font-size: var(--bi-font-caption) !important; }
.app-shell[data-route="technician-bi"] .bi-v25-all-summary article > span { font-size: 18px !important; }

/* Full ranking: readable table with a fixed operational aside on PC. */
.app-shell[data-route="technician-bi"] .bi-v23-ranking-tabs,
.app-shell[data-route="technician-bi"] .bi-overview-metric-tabs {
  min-height: 54px;
  margin-bottom: var(--bi-layout-gap);
  overflow-x: auto;
}
.app-shell[data-route="technician-bi"] :is(.bi-v23-ranking-tabs,.bi-overview-metric-tabs) > button {
  min-width: 145px;
  min-height: 52px;
  padding: 9px 12px;
  font-size: var(--bi-font-control) !important;
}
.app-shell[data-route="technician-bi"] .bi-v23-ranking-layout {
  grid-template-columns: minmax(0,1fr);
  gap: var(--bi-layout-gap);
}
.app-shell[data-route="technician-bi"] .bi-v23-ranking-main > header {
  min-height: 78px;
  padding: 14px 18px;
}
.app-shell[data-route="technician-bi"] :is(.bi-v23-ranking-main,.bi-v23-period-summary,.bi-v23-anomalies) h3,
.app-shell[data-route="technician-bi"] :is(.bi-v25-store-chart,.bi-v25-store-coverage,.bi-v25-store-table,.bi-v25-trend-table,.bi-v25-trend-card) h3,
.app-shell[data-route="technician-bi"] :is(.bi-v25-person-analysis,.bi-v25-person-bottom) h3 {
  font-size: var(--bi-font-section-title) !important;
  line-height: 1.3;
}
.app-shell[data-route="technician-bi"] .bi-v23-ranking-main > header p,
.app-shell[data-route="technician-bi"] :is(.bi-v25-store-chart,.bi-v25-store-table,.bi-v25-trend-table) header :is(p,small),
.app-shell[data-route="technician-bi"] :is(.bi-v25-person-analysis,.bi-v25-person-bottom) header :is(p,small) {
  font-size: var(--bi-font-secondary) !important;
}
.app-shell[data-route="technician-bi"] .bi-v23-ranking-table-wrap { overflow: auto; }
.app-shell[data-route="technician-bi"] .bi-v23-ranking-table,
.app-shell[data-route="technician-bi"] .bi-v25-metric-table {
  width: 100%;
  min-width: 1080px;
  table-layout: auto;
}
.app-shell[data-route="technician-bi"] :is(.bi-v23-ranking-table,.bi-v25-metric-table) :is(th,td) {
  height: var(--bi-table-row-height);
  padding: 10px 12px;
  font-size: var(--bi-font-table) !important;
}
.app-shell[data-route="technician-bi"] .bi-v23-person-cell strong,
.app-shell[data-route="technician-bi"] .bi-v25-primary-metric strong,
.app-shell[data-route="technician-bi"] .bi-analysis-link,
.app-shell[data-route="technician-bi"] .bi-analysis-button,
.app-shell[data-route="technician-bi"] .bi-metric-row-action,
.app-shell[data-route="technician-bi"] .bi-metric-cell strong,
.app-shell[data-route="technician-bi"] .bi-status { font-size: var(--bi-font-table) !important; }
.app-shell[data-route="technician-bi"] .bi-v23-person-cell small,
.app-shell[data-route="technician-bi"] .bi-v23-rank-progress small,
.app-shell[data-route="technician-bi"] .bi-metric-cell small { font-size: var(--bi-font-caption) !important; }
.app-shell[data-route="technician-bi"] .bi-v23-rank {
  width: 30px;
  height: 30px;
  font-size: var(--bi-font-secondary) !important;
}
.app-shell[data-route="technician-bi"] .bi-v23-ranking-main > footer {
  min-height: 44px;
  padding: 11px 16px;
  font-size: var(--bi-font-secondary) !important;
}
.app-shell[data-route="technician-bi"] .bi-v23-ranking-side {
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: var(--bi-layout-gap);
}
.app-shell[data-route="technician-bi"] .bi-v23-ranking-side > * { padding: var(--bi-card-padding); }
.app-shell[data-route="technician-bi"] .bi-v23-period-summary > strong {
  min-height: 72px;
  font-size: var(--bi-font-card-title) !important;
}
.app-shell[data-route="technician-bi"] .bi-v23-period-summary :is(dt,dd),
.app-shell[data-route="technician-bi"] .bi-v23-anomalies li strong { font-size: var(--bi-font-body) !important; }
.app-shell[data-route="technician-bi"] .bi-v23-anomalies li small { font-size: var(--bi-font-caption) !important; }
.app-shell[data-route="technician-bi"] .bi-v25-ranking-pagination {
  min-height: 60px;
  padding: 10px 14px;
  gap: 10px;
  font-size: var(--bi-font-secondary) !important;
}
.app-shell[data-route="technician-bi"] .bi-v25-ranking-pagination :is(span,label) { font-size: var(--bi-font-secondary) !important; }
.app-shell[data-route="technician-bi"] .bi-v25-ranking-pagination select {
  min-height: 38px;
  padding: 6px 28px 6px 10px;
  font-size: var(--bi-font-control) !important;
}

/* Store, trend and personal views share the same readable scale. */
.app-shell[data-route="technician-bi"] .bi-v25-store-cards {
  grid-template-columns: repeat(auto-fit,minmax(240px,1fr));
  gap: var(--bi-layout-gap);
}
.app-shell[data-route="technician-bi"] .bi-v25-store-cards article { min-height: 128px; padding: 16px 15px 14px 46px; }
.app-shell[data-route="technician-bi"] .bi-v25-store-cards span strong,
.app-shell[data-route="technician-bi"] .bi-v25-store-cards :is(dt,dd),
.app-shell[data-route="technician-bi"] .bi-v25-store-bar,
.app-shell[data-route="technician-bi"] .bi-v25-store-coverage li { font-size: var(--bi-font-body) !important; }
.app-shell[data-route="technician-bi"] .bi-v25-store-cards span small { font-size: var(--bi-font-caption) !important; }
.app-shell[data-route="technician-bi"] .bi-v25-store-grid { grid-template-columns: minmax(0,1fr); gap: var(--bi-layout-gap); }
.app-shell[data-route="technician-bi"] .bi-v25-store-grid > article,
.app-shell[data-route="technician-bi"] :is(.bi-v25-store-table,.bi-v25-trend-table) { padding: var(--bi-card-padding); }
.app-shell[data-route="technician-bi"] .bi-v25-coverage-donut strong { font-size: 30px !important; }
.app-shell[data-route="technician-bi"] .bi-v25-coverage-donut small { font-size: var(--bi-font-caption) !important; }
.app-shell[data-route="technician-bi"] :is(.bi-v25-store-table,.bi-v25-trend-table) table { min-width: 900px; }
.app-shell[data-route="technician-bi"] :is(.bi-v25-store-table,.bi-v25-trend-table) :is(th,td) {
  height: var(--bi-table-row-height);
  padding: 10px 12px;
  font-size: var(--bi-font-table) !important;
}
.app-shell[data-route="technician-bi"] .bi-v25-trend-comparison { min-height: 50px; font-size: var(--bi-font-body) !important; }
.app-shell[data-route="technician-bi"] .bi-v25-trend-comparison :is(span,strong) { font-size: var(--bi-font-body) !important; }
.app-shell[data-route="technician-bi"] .bi-v25-trend-summary { gap: var(--bi-layout-gap); }
.app-shell[data-route="technician-bi"] .bi-v25-trend-summary article { min-height: 108px; padding: 16px; }
.app-shell[data-route="technician-bi"] .bi-v25-trend-summary span,
.app-shell[data-route="technician-bi"] .bi-v25-trend-summary p { font-size: var(--bi-font-secondary) !important; }
.app-shell[data-route="technician-bi"] .bi-v25-trend-summary strong { font-size: 28px !important; }
.app-shell[data-route="technician-bi"] .bi-v25-trend-summary :is(strong small,span em) { font-size: var(--bi-font-caption) !important; }
.app-shell[data-route="technician-bi"] .bi-v25-trend-grid {
  grid-template-columns: repeat(auto-fit,minmax(320px,1fr));
  gap: var(--bi-layout-gap);
}
.app-shell[data-route="technician-bi"] .bi-v25-trend-card { min-height: 260px; padding: var(--bi-card-padding); }
.app-shell[data-route="technician-bi"] .bi-v25-trend-card footer :is(b,small) { font-size: var(--bi-font-caption) !important; }

.app-shell[data-route="technician-bi"] .bi-v25-person-profile { min-height: 118px; }
.app-shell[data-route="technician-bi"] .bi-v25-person-profile > div:not(.bi-v23-person-identity) span { font-size: var(--bi-font-secondary) !important; }
.app-shell[data-route="technician-bi"] .bi-v25-person-profile > div:not(.bi-v23-person-identity) strong { font-size: 22px !important; }
.app-shell[data-route="technician-bi"] .bi-v25-person-analysis,
.app-shell[data-route="technician-bi"] .bi-v25-person-bottom { gap: var(--bi-layout-gap); }
.app-shell[data-route="technician-bi"] .bi-v25-person-analysis > article,
.app-shell[data-route="technician-bi"] .bi-v25-person-bottom > article { padding: var(--bi-card-padding); }
.app-shell[data-route="technician-bi"] .bi-v25-structure-list > div,
.app-shell[data-route="technician-bi"] .bi-v25-radar li,
.app-shell[data-route="technician-bi"] .bi-v25-person-notes ul { font-size: var(--bi-font-body) !important; }
.app-shell[data-route="technician-bi"] .bi-v25-person-rank strong { font-size: 32px !important; }
.app-shell[data-route="technician-bi"] .bi-v25-person-rank :is(p,small),
.app-shell[data-route="technician-bi"] .bi-v25-person-audit > summary { font-size: var(--bi-font-secondary) !important; }
.app-shell[data-route="technician-bi"] .bi-v23-person-metric > output,
.app-shell[data-route="technician-bi"] .bi-v23-person-head-metrics strong,
.app-shell[data-route="technician-bi"] .bi-v23-person-head-stat > strong { font-size: 28px !important; }
.app-shell[data-route="technician-bi"] .bi-v23-donut b { font-size: 28px !important; }

/* Standard desktop: the ranking aside remains operationally fixed at 360px. */
@media (min-width: 1600px) {
  .app-shell[data-route="technician-bi"] {
    --bi-font-body: 15px;
    --bi-font-control: 15px;
    --bi-font-table: 15px;
    --bi-font-secondary: 13px;
  }
  .app-shell[data-route="technician-bi"] .bi-v23-ranking-layout {
    grid-template-columns: minmax(0,1fr) 360px;
  }
  .app-shell[data-route="technician-bi"] .bi-v23-ranking-side { grid-template-columns: minmax(0,1fr); }
  .app-shell[data-route="technician-bi"] .bi-v25-store-grid { grid-template-columns: minmax(0,1fr) 360px; }
}

/* Ultra-wide screens use a comfortable reading canvas instead of stretching
   14px text across the full 2560/3440 viewport. */
@media (min-width: 2200px) {
  .app-shell[data-route="technician-bi"] {
    --bi-sidebar-width: 232px;
    --bi-content-max: 2320px;
    --bi-font-page-title: 32px;
    --bi-layout-gap: 18px;
    --bi-card-padding: 20px;
  }
  .app-shell[data-route="technician-bi"] .content { padding-inline: 26px; }
}

/* 1366/compact-PC contract: keep readable type, stack the 360px aside, and
   allow only the table's own wrapper to scroll. */
@media (max-width: 1599px) {
  .app-shell[data-route="technician-bi"] .bi-v23-ranking-layout { grid-template-columns: minmax(0,1fr); }
  .app-shell[data-route="technician-bi"] .bi-v23-ranking-side { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .app-shell[data-route="technician-bi"] .bi-v25-store-grid { grid-template-columns: minmax(0,1fr); }
  .app-shell[data-route="technician-bi"] .bi-v25-person-analysis { grid-template-columns: minmax(0,1.35fr) minmax(280px,.85fr); }
  .app-shell[data-route="technician-bi"] .bi-v25-person-radar { grid-column: 1 / -1; }
}

/* Resolve the former V6.8.25 four-column conflict at <=1180px. */
@media (max-width: 1180px) {
  .app-shell[data-route="technician-bi"] {
    --bi-sidebar-width: 190px;
    min-width: 0;
    grid-template-columns: var(--bi-sidebar-width) minmax(0,1fr);
  }
  .app-shell[data-route="technician-bi"] .sidebar { width: var(--bi-sidebar-width); }
  .app-shell[data-route="technician-bi"] .content { padding-inline: 14px; }
  .app-shell[data-route="technician-bi"] .bi-filter-primary,
  .app-shell[data-route="technician-bi"] .bi-filter-secondary {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    align-items: end;
  }
  .app-shell[data-route="technician-bi"] :is(.bi-field,.bi-select-field,.bi-range-select-field,.bi-secondary-select,.bi-date-field,.bi-effective-date,.bi-search-field,.bi-employee-filter,.bi-refresh) {
    width: 100%;
    min-width: 0;
    max-width: none;
  }
  .app-shell[data-route="technician-bi"] .bi-filter-context { grid-column: 1 / -1; }
  .app-shell[data-route="technician-bi"] :is(.bi-v25-overview-kpis,.bi-v25-store-kpis,.bi-v25-all-summary,.bi-v25-person-kpis) {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .app-shell[data-route="technician-bi"] .bi-v25-person-profile { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .app-shell[data-route="technician-bi"] .bi-v25-person-profile > .bi-v23-person-identity { grid-column: 1 / -1; }
  .app-shell[data-route="technician-bi"] .bi-v25-person-analysis,
  .app-shell[data-route="technician-bi"] .bi-v25-person-bottom { grid-template-columns: minmax(0,1fr); }
  .app-shell[data-route="technician-bi"] .bi-v23-ranking-side { grid-template-columns: minmax(0,1fr); }
}

/* Resolve the former V6.8.25 two-column conflict at <=760px. */
@media (max-width: 760px) {
  .app-shell[data-route="technician-bi"] {
    --bi-sidebar-width: 72px;
    grid-template-columns: var(--bi-sidebar-width) minmax(0,1fr);
  }
  .app-shell[data-route="technician-bi"] .sidebar { width: var(--bi-sidebar-width); padding: 9px 7px; }
  .app-shell[data-route="technician-bi"] .content { padding: 0 9px 28px; }
  .app-shell[data-route="technician-bi"] .bi-v23-page-actions { position: static; min-height: 54px; }
  .app-shell[data-route="technician-bi"] .bi-filter-primary,
  .app-shell[data-route="technician-bi"] .bi-filter-secondary { grid-template-columns: minmax(0,1fr); }
  .app-shell[data-route="technician-bi"] :is(.bi-v25-overview-kpis,.bi-v25-store-kpis,.bi-v25-all-summary,.bi-v25-person-kpis) {
    grid-template-columns: minmax(0,1fr);
  }
  .app-shell[data-route="technician-bi"] .bi-v25-person-profile { grid-template-columns: minmax(0,1fr); }
  .app-shell[data-route="technician-bi"] .bi-v25-radar { grid-template-columns: minmax(0,1fr); }
  .app-shell[data-route="technician-bi"] .bi-v23-ranking-tabs,
  .app-shell[data-route="technician-bi"] .bi-overview-metric-tabs { grid-template-columns: repeat(6,minmax(150px,1fr)); }
}

/* V6.8.26 global common component scale
   Shared typography only: route colours, logos and information architecture
   remain owned by their existing Dashboard / Orders / Commission styles. */
:root {
  --ui-font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  --ui-font-page-title: 30px;
  --ui-font-section-title: 18px;
  --ui-font-core: 14px;
  --ui-font-control: 14px;
  --ui-font-table: 14px;
  --ui-font-secondary: 13px;
  --ui-font-caption: 12px;
  --ui-control-height: 42px;
  --ui-table-row-height: 50px;
}
body,
button,
input,
select,
textarea { font-family: var(--ui-font-family); }
.app-shell:not([data-route="technician-bi"]) {
  font-family: var(--ui-font-family);
  font-size: var(--ui-font-core);
  line-height: 1.5;
}

/* Same shell hierarchy on Dashboard, Orders, Commission and management pages. */
.app-shell:not([data-route="technician-bi"]) .page-eyebrow { font-size: var(--ui-font-caption) !important; }
.app-shell:not([data-route="technician-bi"]) .page-title h1 {
  font-size: var(--ui-font-page-title) !important;
  line-height: 1.15;
}
.app-shell:not([data-route="technician-bi"]) .page-title p {
  font-size: var(--ui-font-core) !important;
  line-height: 1.5;
}
.app-shell:not([data-route="technician-bi"]) .brand-context strong,
.app-shell:not([data-route="technician-bi"]) .nav-item,
.app-shell:not([data-route="technician-bi"]) .user-copy strong { font-size: var(--ui-font-core) !important; }
.app-shell:not([data-route="technician-bi"]) .brand-context span,
.app-shell:not([data-route="technician-bi"]) .nav-group-label,
.app-shell:not([data-route="technician-bi"]) .status-row,
.app-shell:not([data-route="technician-bi"]) .user-copy span,
.app-shell:not([data-route="technician-bi"]) :is(.pc-cloud-status,.mini-connection-row) small { font-size: var(--ui-font-caption) !important; }
.app-shell:not([data-route="technician-bi"]) .nav-item { min-height: 44px; }

/* Controls and filters use one readable control contract. */
.app-shell:not([data-route="technician-bi"]) .btn,
.app-shell:not([data-route="technician-bi"]) .btn.small {
  min-height: 40px;
  padding: 8px 13px;
  font-size: var(--ui-font-control) !important;
  line-height: 1.4;
}
.app-shell:not([data-route="technician-bi"]) :is(select,textarea,input:not([type]),input[type="text"],input[type="search"],input[type="date"],input[type="number"],input[type="password"],input[type="email"],input[type="tel"],input[type="url"],input[type="month"],input[type="time"]) {
  min-height: var(--ui-control-height);
  font-size: var(--ui-font-control) !important;
  line-height: 1.4;
}
.app-shell:not([data-route="technician-bi"]) :is(.filter-control,.field,.customer-filter,.commission-filter,.order-raw-filter) > :is(label,span),
.app-shell:not([data-route="technician-bi"]) .filter-control label,
.app-shell:not([data-route="technician-bi"]) .field label,
.app-shell:not([data-route="technician-bi"]) .commission-filter { font-size: var(--ui-font-caption) !important; }

/* Tables and pagination are identical in readable density across modules. */
.app-shell:not([data-route="technician-bi"]) .data-table,
.app-shell:not([data-route="technician-bi"]) :is(.order-raw-table,.commission-ranking-table,.commission-detail-table) {
  font-size: var(--ui-font-table) !important;
}
.app-shell:not([data-route="technician-bi"]) .data-table :is(th,td),
.app-shell:not([data-route="technician-bi"]) :is(.order-raw-table,.commission-ranking-table,.commission-detail-table) :is(th,td) {
  height: var(--ui-table-row-height);
  padding-block: 11px;
  font-size: var(--ui-font-table) !important;
  line-height: 1.45;
}
.app-shell:not([data-route="technician-bi"]) :is(.data-table,.order-raw-table,.commission-ranking-table,.commission-detail-table) small,
.app-shell:not([data-route="technician-bi"]) :is(.order-raw-id,.order-query-status,.commission-import-persistent-status small) {
  font-size: var(--ui-font-caption) !important;
  line-height: 1.45;
}
.app-shell:not([data-route="technician-bi"]) :is(.pagination,.order-raw-pagination,.customer-users-pagination) {
  min-height: 56px;
  font-size: var(--ui-font-secondary) !important;
  line-height: 1.45;
}
.app-shell:not([data-route="technician-bi"]) :is(.pagination,.order-raw-pagination,.customer-users-pagination) :is(span,label,small) {
  font-size: var(--ui-font-secondary) !important;
}

/* Card text follows semantic roles rather than whichever historical tag rule
   happened to win the cascade. */
.app-shell:not([data-route="technician-bi"]) .card :is(p,li,dt,dd,label),
.app-shell:not([data-route="technician-bi"]) :is(.card-title,.table-toolbar strong) {
  font-size: var(--ui-font-core) !important;
  line-height: 1.5;
}
.app-shell:not([data-route="technician-bi"]) .card :is(small,.card-subtitle),
.app-shell:not([data-route="technician-bi"]) .card-subtitle,
.app-shell:not([data-route="technician-bi"]) .table-toolbar :is(span,small) {
  font-size: var(--ui-font-caption) !important;
  line-height: 1.5;
}
.app-shell:not([data-route="technician-bi"]) .card :is(h2,h3),
.app-shell:not([data-route="technician-bi"]) .card-title { font-size: var(--ui-font-section-title) !important; }

/* Dashboard operational data: labels remain auxiliary, rows and actions are
   core text. This removes the former 7-11px pockets without changing panels. */
.app-shell[data-route="dashboard"] :is(.dashboard-tabs button,.dashboard-period-tabs .quality-period-button) {
  font-size: var(--ui-font-core) !important;
}
.app-shell[data-route="dashboard"] :is(.dashboard-tabs-bar > p,.dashboard-kpi p,.dashboard-panel header p,.dashboard-panel > footer,.dashboard-legend,.dashboard-ranking-head,.dashboard-data-quality,.dashboard-data-state small) {
  font-size: var(--ui-font-caption) !important;
  line-height: 1.45;
}
.app-shell[data-route="dashboard"] .dashboard-kpi > span { font-size: var(--ui-font-core) !important; }
.app-shell[data-route="dashboard"] .dashboard-kpi > strong { font-size: 30px !important; }
.app-shell[data-route="dashboard"] .dashboard-panel h2 { font-size: var(--ui-font-section-title) !important; }
.app-shell[data-route="dashboard"] :is(.dashboard-ranking-row,.dashboard-coverage-list button,.dashboard-problem-list > div,.dashboard-technician-list button) {
  min-height: 46px;
  font-size: var(--ui-font-core) !important;
  line-height: 1.45;
}
.app-shell[data-route="dashboard"] :is(.dashboard-store-name > strong,.dashboard-score-number,.dashboard-coverage-list button > strong,.dashboard-ranking-row > button,.dashboard-panel header > button,.dashboard-panel footer > button) {
  font-size: var(--ui-font-core) !important;
}
.app-shell[data-route="dashboard"] :is(.dashboard-status,.dashboard-change,.dashboard-reference,.dashboard-technician-list button small) {
  font-size: var(--ui-font-caption) !important;
}

/* Orders and commission use the same common control/table floors. */
.app-shell:is([data-route="orders"],[data-route="order-details"]) :is(.order-sync-tabs button,.order-import-recognition,.order-raw-heading h2) {
  font-size: var(--ui-font-core) !important;
}
.app-shell:is([data-route="orders"],[data-route="order-details"]) :is(.order-sync-heading p,.order-sync-heading > div:first-child span,.order-sync-cloud,.order-sync-kpis p,.order-sync-issues header p,.order-import-history-head p,.order-raw-heading p,.order-query-status) {
  font-size: var(--ui-font-caption) !important;
  line-height: 1.45;
}
.app-shell:is([data-route="orders"],[data-route="order-details"]) .order-sync-kpis small,
.app-shell:is([data-route="orders"],[data-route="order-details"]) .order-import-preview-stats .summary-cell span { font-size: var(--ui-font-core) !important; }
.app-shell[data-route="commission"] :is(.commission-filter select,.bi-monthly-commission-period select) {
  min-height: var(--ui-control-height);
  font-size: var(--ui-font-control) !important;
}
.app-shell[data-route="commission"] :is(.commission-filter,.bi-monthly-commission-period,.commission-import-persistent-status p,.commission-refresh-notice span) {
  font-size: var(--ui-font-caption) !important;
  line-height: 1.45;
}
.app-shell[data-route="commission"] :is(.commission-ranking-table,.commission-detail-table) :is(th,td) {
  font-size: var(--ui-font-table) !important;
}
.app-shell[data-route="commission"] :is(.commission-period-table,.commission-unmatched-table,.commission-detail-table) td > small {
  font-size: var(--ui-font-caption) !important;
}

@media (min-width: 2200px) {
  :root { --ui-font-page-title: 32px; }
}

/* V6.8.28 customer matching — one source, one action, four signals.
   This route-scoped layer replaces the former five-step presentation without
   changing order, matching, reminder or mini-program exchange behavior. */
.app-shell[data-route="matching"] {
  --matching-v28-coffee-950: #241912;
  --matching-v28-coffee-800: #50331f;
  --matching-v28-coffee-650: #79502f;
  --matching-v28-gold-500: #bd8841;
  --matching-v28-gold-200: #ecd5ad;
  --matching-v28-ivory: #fffdf8;
  --matching-v28-ivory-deep: #f7f1e8;
  --matching-v28-line: rgba(79,52,33,.13);
  --matching-v28-muted: #746960;
  font-family: "Microsoft YaHei", "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.app-shell[data-route="matching"] .content {
  width: 100%;
  max-width: 1720px;
  padding-top: 18px;
}
.app-shell[data-route="matching"] .matching-v28-page {
  width: 100%;
  min-width: 0;
  display: grid;
  gap: 14px;
}

/* The superseded five-step cards must never reserve vertical space on the
   simplified matching page, including while old cached markup is replaced. */
.app-shell[data-route="matching"] :is(.matching-flow,.matching-steps,.matching-next,.matching-mini-warning) {
  display: none !important;
}

.app-shell[data-route="matching"] .matching-v28-source {
  position: relative;
  min-width: 0;
  min-height: 66px;
  padding: 14px 16px 14px 68px;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(184,128,58,.22);
  border-radius: 15px;
  color: var(--matching-v28-coffee-800);
  background:
    radial-gradient(300px 100px at 100% 0,rgba(222,187,132,.18),transparent 72%),
    linear-gradient(135deg,#fffdf8,#fbf5ea);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 7px 20px rgba(65,41,24,.045);
  font-size: 14px;
  line-height: 1.58;
}
.app-shell[data-route="matching"] .matching-v28-source::before {
  position: absolute;
  top: 50%;
  left: 16px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(190,137,69,.25);
  border-radius: 12px;
  color: #fff9ed;
  background: linear-gradient(145deg,#c99349,#875124);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.26), 0 7px 15px rgba(103,60,27,.16);
  content: "◎";
  font-size: 17px;
  font-weight: 800;
  transform: translateY(-50%);
}
.app-shell[data-route="matching"] .matching-v28-source > strong {
  color: var(--matching-v28-coffee-950);
  font-size: 14px;
}
.app-shell[data-route="matching"] .matching-v28-source-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(190,137,69,.25);
  border-radius: 12px;
  color: #fff9ed;
  background: linear-gradient(145deg,#c99349,#875124);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.26), 0 7px 15px rgba(103,60,27,.16);
  font-size: 17px;
  font-weight: 800;
}
.app-shell[data-route="matching"] .matching-v28-source-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.app-shell[data-route="matching"] .matching-v28-source-copy strong {
  color: var(--matching-v28-coffee-950);
  font-size: 15px;
  line-height: 1.4;
}
.app-shell[data-route="matching"] .matching-v28-source-copy :is(span,small,p) {
  margin: 0;
  color: var(--matching-v28-muted);
  font-size: 12px;
  line-height: 1.55;
}
.app-shell[data-route="matching"] .matching-v28-source > :is(.pill,.matching-v28-source-state) {
  justify-self: end;
  white-space: nowrap;
}

.app-shell[data-route="matching"] .matching-v28-kpis {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 11px;
}
.app-shell[data-route="matching"] .matching-v28-kpi {
  min-width: 0;
}
.app-shell[data-route="matching"] .matching-v28-kpis > :is(article,.kpi-card),
.app-shell[data-route="matching"] .matching-v28-kpi > .kpi-card {
  min-width: 0;
  min-height: 104px;
  padding: 15px 16px;
  display: grid;
  grid-template-columns: 44px minmax(0,1fr);
  align-items: center;
  gap: 12px;
  overflow: hidden;
  border: 1px solid var(--matching-v28-line);
  border-radius: 15px;
  background: rgba(255,255,255,.92);
  box-shadow: inset 0 1px 0 #fff, 0 8px 24px rgba(53,36,24,.05);
  transform: none;
}
.app-shell[data-route="matching"] .matching-v28-kpis .kpi-icon,
.app-shell[data-route="matching"] .matching-v28-kpi-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  font-size: 18px;
}
.app-shell[data-route="matching"] .matching-v28-kpis .kpi-copy {
  min-width: 0;
}
.app-shell[data-route="matching"] .matching-v28-kpis .kpi-copy > span,
.app-shell[data-route="matching"] .matching-v28-kpi-label {
  color: #5e534b;
  font-size: 14px;
  font-weight: 680;
  line-height: 1.35;
}
.app-shell[data-route="matching"] .matching-v28-kpis .kpi-copy > strong,
.app-shell[data-route="matching"] .matching-v28-kpi-value {
  margin-top: 4px;
  color: #211914;
  font-size: clamp(25px,2vw,30px);
  line-height: 1.05;
}
.app-shell[data-route="matching"] .matching-v28-kpis .kpi-copy > small,
.app-shell[data-route="matching"] .matching-v28-kpi-note {
  margin-top: 5px;
  overflow: hidden;
  color: var(--matching-v28-muted);
  font-size: 12px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-shell[data-route="matching"] .matching-v28-layout {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(320px,.42fr);
  align-items: start;
  gap: 14px;
}
.app-shell[data-route="matching"] :is(.matching-v28-main,.matching-v28-exchange) {
  min-width: 0;
}
.app-shell[data-route="matching"] :is(.matching-v28-main,.matching-v28-exchange) > .card,
.app-shell[data-route="matching"] :is(.matching-v28-main,.matching-v28-exchange).card {
  border-color: var(--matching-v28-line);
  border-radius: 17px;
  background: rgba(255,255,255,.94);
  box-shadow: inset 0 1px 0 #fff, 0 10px 28px rgba(52,34,22,.055);
  transform: none;
}
.app-shell[data-route="matching"] .matching-v28-main > .card,
.app-shell[data-route="matching"] .matching-v28-main.card {
  padding: 0;
  overflow: hidden;
}
.app-shell[data-route="matching"] .matching-v28-main .card-header {
  min-height: 76px;
  margin: 0;
  padding: 15px 17px;
  align-items: center;
  border-bottom: 1px solid var(--matching-v28-line);
  background: linear-gradient(180deg,#fffdf9,#fbf7f1);
}
.app-shell[data-route="matching"] .matching-v28-main .card-title,
.app-shell[data-route="matching"] .matching-v28-exchange .card-title {
  color: var(--matching-v28-coffee-950);
  font-size: 18px;
}
.app-shell[data-route="matching"] .matching-v28-main .card-subtitle,
.app-shell[data-route="matching"] .matching-v28-exchange .card-subtitle {
  color: var(--matching-v28-muted);
  font-size: 12px;
}
.app-shell[data-route="matching"] .matching-v28-primary-action {
  min-width: 148px;
  min-height: 44px;
  border-color: rgba(255,231,194,.22);
  border-radius: 12px;
  color: #fffdf8;
  background: linear-gradient(145deg,#cb9141,#87501f 62%,#663815);
  box-shadow: inset 0 1px 0 rgba(255,244,218,.32), 0 8px 18px rgba(108,61,25,.21);
  font-size: 14px;
  font-weight: 760;
}
.app-shell[data-route="matching"] .matching-v28-primary-action:hover:not(:disabled) {
  background: linear-gradient(145deg,#d29c51,#925925 62%,#70401b);
}
.app-shell[data-route="matching"] .matching-v28-primary-action:focus-visible,
.app-shell[data-route="matching"] .matching-v28-toolbar :is(input,select,button):focus-visible {
  outline: 3px solid rgba(189,136,65,.25);
  outline-offset: 2px;
}
.app-shell[data-route="matching"] .matching-v28-toolbar {
  min-height: 62px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--matching-v28-line);
  background: #fff;
}
.app-shell[data-route="matching"] .matching-v28-toolbar > :is(strong,div:first-child) {
  min-width: 0;
  font-size: 14px;
}
.app-shell[data-route="matching"] .matching-v28-toolbar .actions {
  min-width: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.app-shell[data-route="matching"] .matching-v28-toolbar .search {
  width: clamp(230px,28vw,380px);
  max-width: 100%;
}
.app-shell[data-route="matching"] .matching-v28-toolbar :is(input,select) {
  min-height: 40px;
  font-size: 14px;
}
.app-shell[data-route="matching"] .matching-v28-table-wrap {
  margin: 0;
  overflow: auto;
  border: 0;
  border-radius: 0;
  background: #fff;
  scrollbar-color: rgba(121,80,47,.3) transparent;
}
.app-shell[data-route="matching"] .matching-v28-table {
  width: 100%;
  min-width: 880px;
  table-layout: auto;
  font-size: 14px;
}
.app-shell[data-route="matching"] .matching-v28-table th {
  height: 45px;
  padding: 11px 13px;
  color: #6b6058;
  background: var(--matching-v28-ivory-deep);
  font-size: 13px;
}
.app-shell[data-route="matching"] .matching-v28-table td {
  min-height: 52px;
  padding: 13px;
  color: #3d332c;
  font-size: 14px;
  line-height: 1.48;
}
.app-shell[data-route="matching"] .matching-v28-table td small {
  color: var(--matching-v28-muted);
  font-size: 12px;
}
.app-shell[data-route="matching"] .matching-v28-table tbody tr:hover td {
  background: #fff9ee;
}
.app-shell[data-route="matching"] .matching-v28-main .pagination {
  margin: 0;
  padding: 11px 16px;
  border-top: 1px solid var(--matching-v28-line);
  background: #fcfaf6;
  font-size: 12px;
}

.app-shell[data-route="matching"] .matching-v28-exchange {
  position: sticky;
  top: 140px;
  display: grid;
  gap: 14px;
}
.app-shell[data-route="matching"] .matching-v28-exchange > .card,
.app-shell[data-route="matching"] .matching-v28-exchange.card {
  padding: 17px;
}
.app-shell[data-route="matching"] .matching-v28-exchange .card-header {
  margin-bottom: 13px;
}
.app-shell[data-route="matching"] .matching-v28-exchange .mini-exchange-summary,
.app-shell[data-route="matching"] .matching-v28-exchange .mini-exchange-empty {
  border-radius: 13px;
}
.app-shell[data-route="matching"] .matching-v28-exchange .mini-exchange-hero {
  min-height: 70px;
  padding: 12px;
  grid-template-columns: 38px minmax(0,1fr);
  gap: 10px;
}
.app-shell[data-route="matching"] .matching-v28-exchange .mini-exchange-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
}
.app-shell[data-route="matching"] .matching-v28-exchange .mini-exchange-hero > .pill {
  grid-column: 2;
  justify-self: start;
}
.app-shell[data-route="matching"] .matching-v28-exchange .mini-exchange-hero strong {
  font-size: 14px;
}
.app-shell[data-route="matching"] .matching-v28-exchange :is(.mini-exchange-hero small,.mini-exchange-foot > span,.review-item,.review-row) {
  font-size: 12px;
}
.app-shell[data-route="matching"] .matching-v28-exchange .mini-exchange-foot {
  padding: 11px 12px;
  align-items: stretch;
  flex-direction: column;
}
.app-shell[data-route="matching"] .matching-v28-exchange .mini-exchange-foot .btn {
  width: 100%;
}

@media (max-width: 1180px) {
  .app-shell[data-route="matching"] {
    min-width: 0;
    grid-template-columns: 190px minmax(0,1fr);
  }
  .app-shell[data-route="matching"] .sidebar {
    width: 190px;
    padding-inline: 10px;
  }
  .app-shell[data-route="matching"] .brand,
  .app-shell[data-route="matching"] .brand-context {
    display: none;
  }
  .app-shell[data-route="matching"] .topbar {
    min-height: 100px;
    padding: 16px 18px;
    flex-wrap: wrap;
  }
  .app-shell[data-route="matching"] .content {
    padding: 16px 18px 34px;
  }
  .app-shell[data-route="matching"] .matching-v28-kpis {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .app-shell[data-route="matching"] .matching-v28-layout {
    grid-template-columns: minmax(0,1fr) minmax(290px,.44fr);
  }
}

/* V6.8.34 desktop sidebar auto reveal: reserve a slim cue rail and overlay the
   full navigation only while the pointer or keyboard focus is inside it. */
.sidebar-handle { display: none; }
@media (hover: hover) and (pointer: fine) and (min-width: 1025px) {
  .app-shell,
  .app-shell[data-route="dashboard"],
  .app-shell[data-route="technician-bi"] {
    grid-template-columns: 18px minmax(0,1fr) !important;
  }
  .sidebar {
    overflow: visible;
    transform: translateX(calc(-100% + 18px));
    transition: transform .24s cubic-bezier(.2,.8,.2,1), box-shadow .24s ease;
    will-change: transform;
  }
  .sidebar-handle {
    position: fixed;
    top: 50%;
    left: 3px;
    z-index: 21;
    width: 30px;
    height: 76px;
    display: grid;
    place-items: center;
    transform: translateY(-50%);
    padding: 0;
    border: 1px solid rgba(218,171,99,.48);
    border-left: 0;
    border-radius: 0 14px 14px 0;
    color: #f5d39d;
    background: linear-gradient(180deg,#34251b,#1b1410);
    box-shadow: 8px 0 18px rgba(40,25,15,.18);
    font-size: 25px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    transition: left .24s cubic-bezier(.2,.8,.2,1), box-shadow .24s ease, border-color .18s ease;
  }
  .sidebar-handle > span {
    display: block;
    transition: transform .2s ease;
  }
  .sidebar-handle.is-pinned {
    left: var(--sidebar-handle-open-left, 275px);
    border-color: rgba(239,193,123,.72);
    box-shadow: 8px 0 24px rgba(40,25,15,.28);
  }
  .sidebar-handle.is-pinned > span { transform: rotate(180deg); }
  .sidebar-handle:focus-visible {
    outline: 3px solid rgba(213,165,91,.45);
    outline-offset: 3px;
  }
  .sidebar-handle:hover + .sidebar,
  .sidebar-handle:focus + .sidebar,
  .sidebar:hover,
  .sidebar:focus-within,
  .sidebar.is-pinned {
    transform: translateX(0);
    box-shadow: 18px 0 48px rgba(30,19,12,.28);
  }
  .app-shell > .sidebar.is-dismissed {
    transform: translateX(calc(-100% + 18px));
    box-shadow: none;
  }
  .main,
  .app-shell[data-route="dashboard"] .main,
  .app-shell[data-route="technician-bi"] .main { grid-column: 2 !important; }
}

@media (prefers-reduced-motion: reduce) {
  .sidebar,
  .sidebar-handle,
  .sidebar-handle > span { transition: none !important; }
}

/* V6.8.30: authoritative customer-repurchase evidence.  These additions stay
   inside the existing BI cards and do not move either navigation level. */
.app-shell[data-route="technician-bi"] .bi-v30-repurchase-strip {
  margin: 12px 0;
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 9px;
}
.app-shell[data-route="technician-bi"] .bi-v30-repurchase-strip > header {
  grid-column: 1 / -1;
  min-width: 0;
  padding: 0 2px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.app-shell[data-route="technician-bi"] .bi-v30-repurchase-strip > header strong {
  color: #4b392e;
  font-size: 16px;
}
.app-shell[data-route="technician-bi"] .bi-v30-repurchase-strip > header small {
  color: #776b62;
  font-size: 12px;
  line-height: 1.5;
  text-align: right;
}
.app-shell[data-route="technician-bi"] .bi-v30-repurchase-strip > article {
  min-width: 0;
  min-height: 82px;
  padding: 13px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid rgba(117,78,49,.13);
  border-radius: 12px;
  background: linear-gradient(145deg,#fffdf9,#f8f2e9);
  box-shadow: 0 6px 18px rgba(69,43,27,.045);
}
.app-shell[data-route="technician-bi"] .bi-v30-repurchase-strip > article > span {
  color: #675b52;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}
.app-shell[data-route="technician-bi"] .bi-v30-repurchase-strip > article > span small {
  margin-left: 4px;
  color: #986b3f;
  font-size: 12px;
}
.app-shell[data-route="technician-bi"] .bi-v30-repurchase-strip > article > strong {
  overflow-wrap: anywhere;
  color: #2f754f;
  font-size: 20px;
  line-height: 1.25;
}
.app-shell[data-route="technician-bi"] .bi-v30-repurchase-strip > article > strong.is-missing {
  color: #8a7d73;
  font-size: 14px;
}
.app-shell[data-route="technician-bi"] .bi-v30-repurchase-evidence {
  margin: -3px 0 11px;
  padding: 8px 12px;
  color: #675b52;
  border: 1px solid rgba(117,78,49,.11);
  border-radius: 9px;
  background: #fbf8f3;
  font-size: 12px;
  line-height: 1.55;
}
.app-shell[data-route="technician-bi"] .bi-v30-scope-note {
  margin-top: 4px;
  display: block;
  color: #7b5b42;
  font-size: 12px;
  line-height: 1.45;
}
.app-shell[data-route="technician-bi"] .bi-v30-store-repurchase {
  grid-column: 1 / -1;
  color: #62564e;
  font-size: 12px;
  line-height: 1.55;
  white-space: normal;
}
.app-shell[data-route="technician-bi"] .bi-monthly-commission-leader output.is-missing {
  color: #8a7d73;
  font-size: 12px;
}

@media (max-width: 980px) {
  .app-shell[data-route="technician-bi"] .bi-v30-repurchase-strip {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}

@media (max-width: 620px) {
  .app-shell[data-route="technician-bi"] .bi-v30-repurchase-strip {
    grid-template-columns: 1fr;
  }
  .app-shell[data-route="technician-bi"] .bi-v30-repurchase-strip > header {
    display: grid;
  }
  .app-shell[data-route="technician-bi"] .bi-v30-repurchase-strip > header small {
    text-align: left;
  }
}

/* V6.8.29 payroll — Kemanman facts stay visible while manual supplements are missing. */
.app-shell[data-route="payroll"] .content,
.payroll-v29-detail-source {
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.app-shell[data-route="payroll"] .content { max-width: none; }
.app-shell[data-route="payroll"] .payroll-v29-kpis .kpi-card { min-height: 118px; }
.app-shell[data-route="payroll"] .payroll-v29-kpis .kpi-card strong { font-size: clamp(22px,1.7vw,29px); }
.app-shell[data-route="payroll"] .payroll-v29-kpis .kpi-copy > span { font-size: 14px; }
.app-shell[data-route="payroll"] .payroll-v29-kpis .kpi-copy > small { font-size: 12px; line-height: 1.5; }
.payroll-v29-source-layout {
  margin-top: 16px;
  display: grid;
  grid-template-columns: minmax(0,1.62fr) minmax(340px,.78fr);
  align-items: start;
  gap: 14px;
}
.payroll-v29-source-card {
  min-width: 0;
  padding: 18px;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(66,45,31,.065);
}
.payroll-v29-source-card.is-automatic {
  border-color: rgba(78,126,112,.22);
  background: linear-gradient(145deg,rgba(255,255,255,.98),rgba(244,250,247,.94));
}
.payroll-v29-source-card.is-manual {
  position: sticky;
  top: 14px;
  border-color: rgba(176,123,59,.23);
  background: linear-gradient(145deg,rgba(255,255,255,.98),rgba(255,249,240,.95));
}
.payroll-v29-eyebrow {
  display: block;
  margin-bottom: 5px;
  color: #8b5c2e;
  font-size: 12px;
  font-weight: 780;
  letter-spacing: .08em;
}
.payroll-v29-source-card .card-title { color: #30251e; font-size: 19px; }
.payroll-v29-source-card .card-subtitle { max-width: 760px; margin-top: 5px; font-size: 13px; line-height: 1.65; }
.payroll-v29-access-note { align-self: center; color: #74695f; font-size: 12px; }
.payroll-v29-auto-summary {
  margin: 14px 0 12px;
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 9px;
}
.payroll-v29-auto-summary > div {
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid rgba(74,113,101,.15);
  border-radius: 14px;
  background: rgba(255,255,255,.78);
}
.payroll-v29-auto-summary span { display: block; color: #6f7772; font-size: 12px; }
.payroll-v29-auto-summary strong { display: block; margin-top: 5px; color: #263b35; font-size: 18px; }
.payroll-v29-source-table-wrap { max-height: 480px; border-radius: 14px; background: #fff; }
.payroll-v29-source-table { min-width: 1280px; font-size: 14px; }
.payroll-v29-source-table th { position: sticky; top: 0; z-index: 1; padding: 11px 12px; font-size: 12px; background: #f5f8f6; }
.payroll-v29-source-table td { padding: 12px; }
.payroll-v29-person-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 11px;
  background: linear-gradient(145deg,#75958a,#426a5e);
  box-shadow: 0 5px 12px rgba(66,106,94,.18);
  font-size: 13px;
  font-weight: 800;
}
.payroll-v29-source-missing { color: #9a6a37; font-size: 12px; font-weight: 680; }
.payroll-v29-coverage { margin-top: 12px; font-size: 12px; }
.payroll-v29-manual-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.payroll-v29-manual-field {
  min-width: 0;
  min-height: 58px;
  padding: 9px 10px;
  display: grid;
  grid-template-columns: 25px minmax(0,1fr);
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(174,125,65,.15);
  border-radius: 13px;
  background: rgba(255,255,255,.75);
}
.payroll-v29-manual-field i {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  color: #8f642d;
  border-radius: 8px;
  background: #f9ead2;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}
.payroll-v29-manual-field strong,.payroll-v29-manual-field small { display: block; }
.payroll-v29-manual-field strong { color: #3d3027; font-size: 14px; }
.payroll-v29-manual-field small { margin-top: 2px; color: #8a7d70; font-size: 12px; line-height: 1.35; }
.payroll-v29-manual-progress { margin-top: 13px; padding: 12px; border-radius: 14px; background: rgba(247,237,222,.72); }
.payroll-v29-manual-progress > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #66594e; font-size: 12px; }
.payroll-v29-manual-progress > div:first-child strong { color: #6d4727; font-size: 14px; }
.payroll-v29-progress-track { height: 7px; margin-top: 9px; overflow: hidden; border-radius: 99px; background: rgba(110,82,55,.12); }
.payroll-v29-progress-track i { height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg,#c7954f,#e2bd7c); transition: width .25s ease; }
.payroll-v29-manual-progress small { display: block; margin-top: 7px; color: #83776c; font-size: 12px; }
.payroll-v29-manual-actions { margin-top: 13px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.payroll-v29-manual-actions .btn { min-height: 40px; justify-content: center; }
.payroll-v29-final-gate { margin-top: 12px; font-size: 12px; }
.app-shell[data-route="payroll"] > .main > .content > .notice:not(.payroll-v29-refresh-notice) { margin-top: 14px; }
.payroll-v29-refresh-notice { margin-bottom: 14px; }
.payroll-v29-detail-source { padding: 16px; }
.payroll-v29-detail-source.is-automatic { border-color: rgba(70,113,99,.2); background: linear-gradient(145deg,#fff,#f3f9f6); }
.payroll-v29-detail-source.is-manual { border-color: rgba(177,123,55,.2); background: linear-gradient(145deg,#fff,#fff8ee); }
.payroll-v29-detail-source .summary-cell strong { font-size: 17px; }

@media (max-width: 1320px) {
  .payroll-v29-source-layout { grid-template-columns: 1fr; }
  .payroll-v29-source-card.is-manual { position: static; }
  .payroll-v29-manual-fields { grid-template-columns: repeat(5,minmax(0,1fr)); }
}
@media (max-width: 920px) {
  .payroll-v29-auto-summary { grid-template-columns: 1fr; }
  .payroll-v29-manual-fields { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 620px) {
  .payroll-v29-source-card { padding: 14px; border-radius: 16px; }
  .payroll-v29-source-card .card-header { align-items: flex-start; }
  .payroll-v29-manual-fields,.payroll-v29-manual-actions { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .app-shell[data-route="matching"] .matching-v28-layout {
    grid-template-columns: 1fr;
  }
  .app-shell[data-route="matching"] .matching-v28-exchange {
    position: static;
  }
}

@media (max-width: 760px) {
  .app-shell[data-route="matching"] {
    grid-template-columns: 72px minmax(0,1fr);
  }
  .app-shell[data-route="matching"] .sidebar {
    width: 72px;
    padding: 10px 7px;
  }
  .app-shell[data-route="matching"] .nav {
    gap: 7px;
  }
  .app-shell[data-route="matching"] .nav-group {
    gap: 2px;
  }
  .app-shell[data-route="matching"] :is(.nav-group-label,.nav-item > span:last-child,.sidebar-status > :not(.user-card),.user-card .avatar,.user-copy) {
    display: none;
  }
  .app-shell[data-route="matching"] .nav-item {
    min-height: 43px;
    padding: 6px;
    justify-content: center;
  }
  .app-shell[data-route="matching"] .user-card {
    padding: 5px;
    display: grid;
    grid-template-columns: 1fr;
  }
  .app-shell[data-route="matching"] .topbar {
    min-height: 0;
    padding: 13px 11px;
    gap: 10px;
    align-items: flex-start;
  }
  .app-shell[data-route="matching"] .page-title h1 {
    font-size: 23px;
  }
  .app-shell[data-route="matching"] .page-title p {
    font-size: 12px;
    line-height: 1.5;
    white-space: normal;
  }
  .app-shell[data-route="matching"] .header-tools {
    width: 100%;
  }
  .app-shell[data-route="matching"] .header-tools .btn {
    width: 100%;
  }
  .app-shell[data-route="matching"] .content {
    padding: 11px 9px 28px;
  }
  .app-shell[data-route="matching"] .matching-v28-page {
    gap: 10px;
  }
  .app-shell[data-route="matching"] .matching-v28-source {
    min-height: 0;
    padding: 12px 12px 12px 60px;
  }
  .app-shell[data-route="matching"] .matching-v28-source::before {
    left: 12px;
    width: 38px;
    height: 38px;
  }
  .app-shell[data-route="matching"] .matching-v28-source-icon {
    width: 38px;
    height: 38px;
  }
  .app-shell[data-route="matching"] .matching-v28-source > :is(.pill,.matching-v28-source-state) {
    grid-column: 2;
    justify-self: start;
  }
  .app-shell[data-route="matching"] .matching-v28-kpis {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 8px;
  }
  .app-shell[data-route="matching"] .matching-v28-kpis > :is(article,.kpi-card),
  .app-shell[data-route="matching"] .matching-v28-kpi > .kpi-card {
    min-height: 96px;
    padding: 12px;
    grid-template-columns: 38px minmax(0,1fr);
    gap: 9px;
  }
  .app-shell[data-route="matching"] .matching-v28-kpis .kpi-icon,
  .app-shell[data-route="matching"] .matching-v28-kpi-icon {
    width: 38px;
    height: 38px;
  }
  .app-shell[data-route="matching"] .matching-v28-main .card-header,
  .app-shell[data-route="matching"] .matching-v28-toolbar {
    padding: 12px;
    align-items: stretch;
    flex-direction: column;
  }
  .app-shell[data-route="matching"] .matching-v28-main .card-header .actions,
  .app-shell[data-route="matching"] .matching-v28-primary-action,
  .app-shell[data-route="matching"] .matching-v28-toolbar .actions,
  .app-shell[data-route="matching"] .matching-v28-toolbar :is(.search,select) {
    width: 100%;
  }
  .app-shell[data-route="matching"] .matching-v28-toolbar .actions {
    display: grid;
    grid-template-columns: minmax(0,1fr);
  }
  .app-shell[data-route="matching"] .matching-v28-exchange > .card,
  .app-shell[data-route="matching"] .matching-v28-exchange.card {
    padding: 13px;
  }
  .app-shell[data-route="matching"] .matching-v28-main .pagination {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 520px) {
  .app-shell[data-route="matching"] .matching-v28-kpis {
    grid-template-columns: 1fr;
  }
}

/* V6.8.27 technician BI navigation polish
   A single EOF layer refines the five view tabs, both six-ranking menus and
   ranking-table sizing without changing DOM order or the V6.8.26 type scale. */
.app-shell[data-route="technician-bi"] {
  --bi27-coffee-900: #3b241c;
  --bi27-coffee-800: #512f23;
  --bi27-coffee-700: #6b402c;
  --bi27-gold-600: #bd8540;
  --bi27-gold-400: #d8ad6d;
  --bi27-gold-200: #ecd6ad;
  --bi27-ivory: #fffaf2;
  --bi27-cream: #f6ecdf;
  --bi27-line: rgba(74,45,32,.14);
  --bi27-line-strong: rgba(189,133,64,.38);
  --bi27-shadow-soft: 0 10px 28px rgba(57,35,25,.07);
  --bi27-shadow-active: 0 9px 20px rgba(62,35,24,.19), inset 0 0 0 1px rgba(236,214,173,.24);
}

/* Five primary views: a compact premium segmented surface, kept in source order. */
.app-shell[data-route="technician-bi"] .bi-tabs {
  width: min(100%,1040px);
  min-height: 68px;
  margin: 0 0 18px;
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(5,minmax(124px,1fr));
  align-items: stretch;
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  border: 1px solid var(--bi27-line);
  border-radius: 16px;
  background: linear-gradient(145deg,rgba(255,253,248,.98),rgba(246,236,223,.94));
  box-shadow: var(--bi27-shadow-soft), inset 0 1px 0 rgba(255,255,255,.88);
  scrollbar-color: rgba(123,77,45,.34) transparent;
  scrollbar-width: thin;
}
.app-shell[data-route="technician-bi"] .bi-tabs > button {
  appearance: none;
  position: relative;
  min-width: 0;
  min-height: 50px;
  padding: 10px 15px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: #5b4b41;
  background: rgba(255,255,255,.48);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.34);
  font-family: var(--bi-font-family);
  font-size: var(--bi-font-control) !important;
  font-weight: 760;
  line-height: 1.35;
  text-align: center;
  white-space: normal;
  cursor: pointer;
  transition: color .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.app-shell[data-route="technician-bi"] .bi-tabs > button::after {
  right: 18px;
  bottom: 6px;
  left: 18px;
  height: 3px;
  border-radius: 99px;
  background: var(--bi27-gold-400);
  opacity: 0;
  transform: scaleX(.45);
  transition: opacity .18s ease, transform .18s ease;
}
.app-shell[data-route="technician-bi"] .bi-tabs > button:hover:not(.is-active):not([aria-selected="true"]) {
  color: var(--bi27-coffee-800);
  border-color: rgba(189,133,64,.24);
  background: rgba(255,250,242,.96);
  box-shadow: 0 5px 14px rgba(78,46,30,.08);
  transform: translateY(-1px);
}
.app-shell[data-route="technician-bi"] .bi-tabs > button:is(.is-active,[aria-selected="true"]) {
  color: #fffaf1;
  border-color: var(--bi27-line-strong);
  background: linear-gradient(135deg,var(--bi27-coffee-900),var(--bi27-coffee-700));
  box-shadow: var(--bi27-shadow-active);
}
.app-shell[data-route="technician-bi"] .bi-tabs > button:is(.is-active,[aria-selected="true"])::after {
  opacity: 1;
  transform: scaleX(1);
}
.app-shell[data-route="technician-bi"] .bi-tabs > button:focus-visible,
.app-shell[data-route="technician-bi"] :is(.bi-v23-ranking-tabs,.bi-overview-metric-tabs) > button:focus-visible {
  z-index: 2;
  outline: 3px solid rgba(216,173,109,.48);
  outline-offset: 2px;
}

/* Six-ranking menus: separated cards replace the former heavy boxed strip.
   Normal wrapping leaves room for future explanatory text in parentheses. */
.app-shell[data-route="technician-bi"] .bi-v23-ranking-tabs,
.app-shell[data-route="technician-bi"] .bi-overview-metric-tabs {
  min-height: 74px;
  margin: 0 0 18px;
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(6,minmax(148px,1fr));
  align-items: stretch;
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  border: 1px solid var(--bi27-line);
  border-radius: 16px;
  background: linear-gradient(145deg,rgba(255,252,246,.98),rgba(246,236,223,.9));
  box-shadow: var(--bi27-shadow-soft), inset 0 1px 0 rgba(255,255,255,.9);
  scrollbar-color: rgba(123,77,45,.34) transparent;
  scrollbar-width: thin;
}
.app-shell[data-route="technician-bi"] :is(.bi-v23-ranking-tabs,.bi-overview-metric-tabs) > button {
  appearance: none;
  position: relative;
  min-width: 0;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: #57483e;
  background: rgba(255,255,255,.58);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.38);
  font-family: var(--bi-font-family);
  font-size: var(--bi-font-control) !important;
  font-weight: 760;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
  text-wrap: balance;
  cursor: pointer;
  transition: color .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.app-shell[data-route="technician-bi"] .bi-v23-ranking-tabs > button {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.app-shell[data-route="technician-bi"] .bi-overview-metric-tabs > button {
  min-height: 72px;
  display: grid;
  grid-template-columns: 32px minmax(0,1fr);
  grid-template-rows: auto auto;
  align-items: center;
  gap: 6px 8px;
  text-align: left;
}
.app-shell[data-route="technician-bi"] :is(.bi-v23-ranking-tabs,.bi-overview-metric-tabs) > button::after {
  right: 14px;
  bottom: 6px;
  left: 14px;
  height: 3px;
  content: '';
  border-radius: 99px;
  background: var(--bi27-gold-400);
  opacity: 0;
  transform: scaleX(.45);
  transition: opacity .18s ease, transform .18s ease;
}
.app-shell[data-route="technician-bi"] :is(.bi-v23-ranking-tabs,.bi-overview-metric-tabs) > button:hover:not(.is-active):not([aria-selected="true"]) {
  color: var(--bi27-coffee-800);
  border-color: rgba(189,133,64,.25);
  background: var(--bi27-ivory);
  box-shadow: 0 6px 15px rgba(76,45,29,.09);
  transform: translateY(-1px);
}
.app-shell[data-route="technician-bi"] :is(.bi-v23-ranking-tabs,.bi-overview-metric-tabs) > button:is(.is-active,[aria-selected="true"]) {
  color: #fffaf1;
  border-color: var(--bi27-line-strong);
  background: linear-gradient(135deg,var(--bi27-coffee-900),var(--bi27-coffee-700));
  box-shadow: var(--bi27-shadow-active);
}
.app-shell[data-route="technician-bi"] :is(.bi-v23-ranking-tabs,.bi-overview-metric-tabs) > button:is(.is-active,[aria-selected="true"])::after {
  opacity: 1;
  transform: scaleX(1);
}
.app-shell[data-route="technician-bi"] .bi-overview-metric-tabs > button > span:not(.bi27-menu-content) {
  grid-column: 1;
  grid-row: 1;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(189,133,64,.22);
  border-radius: 10px;
  color: var(--bi27-coffee-700);
  background: linear-gradient(145deg,#fff7e9,#ecd7b3);
  font-size: 16px !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}
.app-shell[data-route="technician-bi"] .bi-overview-metric-tabs > button > i {
  grid-column: 1 / -1;
  grid-row: 2;
  justify-self: center;
  min-height: 24px;
  padding: 3px 8px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(93,115,124,.12);
  border-radius: 999px;
  color: #526d78;
  background: #edf3f4;
  font-size: var(--bi-font-caption) !important;
  font-style: normal;
  line-height: 1.3;
  white-space: nowrap;
}
.app-shell[data-route="technician-bi"] .bi-overview-metric-tabs > button.has-partial > i {
  color: #86551e;
  border-color: rgba(189,133,64,.2);
  background: #fff0d8;
}
.app-shell[data-route="technician-bi"] .bi-overview-metric-tabs > button.is-missing > i {
  color: #746c65;
  border-color: rgba(91,76,65,.1);
  background: #f0eeeb;
}
.app-shell[data-route="technician-bi"] .bi-overview-metric-tabs > button:is(.is-active,[aria-selected="true"]) > span:not(.bi27-menu-content) {
  color: var(--bi27-coffee-900);
  border-color: rgba(236,214,173,.52);
  background: linear-gradient(145deg,#f5dfb9,#d5a660);
}
.app-shell[data-route="technician-bi"] .bi-overview-metric-tabs > button:is(.is-active,[aria-selected="true"]) > i {
  color: #fff8e9;
  border-color: rgba(236,214,173,.26);
  background: rgba(255,248,233,.13);
}

/* V6.8.27 semantic tab markup. These container rules deliberately outrank the
   legacy direct-child icon rule, so a whole label can never collapse to 32px. */
.app-shell[data-route="technician-bi"] .bi-tabs > button > .bi27-view-content {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  white-space: normal;
}
.app-shell[data-route="technician-bi"] .bi27-view-icon {
  width: 29px;
  height: 29px;
  flex: 0 0 29px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(189,133,64,.2);
  border-radius: 9px;
  color: var(--bi27-coffee-700);
  background: linear-gradient(145deg,#fff7e9,#edd9b7);
  font-size: 15px !important;
  line-height: 1;
}
.app-shell[data-route="technician-bi"] svg.bi27-view-icon {
  display: block;
  padding: 4px;
}
.app-shell[data-route="technician-bi"] .bi27-view-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
  color: inherit;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
}
.app-shell[data-route="technician-bi"] .bi27-view-copy > strong {
  color: inherit;
  font-size: var(--bi-font-control) !important;
  line-height: 1.3;
}
.app-shell[data-route="technician-bi"] .bi27-view-copy > :is(small,.bi27-view-note) {
  color: #76675c;
  font-size: var(--bi-font-caption) !important;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
}
.app-shell[data-route="technician-bi"] .bi-tabs > button:is(.is-active,[aria-selected="true"]) .bi27-view-icon {
  color: var(--bi27-coffee-900);
  border-color: rgba(236,214,173,.48);
  background: linear-gradient(145deg,#f5dfb9,#d4a45d);
}
.app-shell[data-route="technician-bi"] .bi-tabs > button:is(.is-active,[aria-selected="true"]) .bi27-view-copy > :is(small,.bi27-view-note) {
  color: #ecd7b3;
}

.app-shell[data-route="technician-bi"] :is(.bi-v23-ranking-tabs,.bi-overview-metric-tabs) > button > .bi27-menu-content {
  width: 100%;
  max-width: none;
  height: auto;
  min-width: 0;
  min-height: 42px;
  padding: 0;
  grid-column: 1 / -1;
  grid-row: auto;
  display: grid;
  grid-template-columns: 32px minmax(0,1fr);
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 0;
  color: inherit;
  background: transparent;
  box-shadow: none;
  font-size: inherit !important;
  text-align: left;
  white-space: normal;
}
.app-shell[data-route="technician-bi"] .bi-overview-metric-tabs > button > .bi27-menu-content {
  grid-column: 1 / -1;
  grid-row: 1;
}
.app-shell[data-route="technician-bi"] .bi27-menu-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(189,133,64,.22);
  border-radius: 10px;
  color: var(--bi27-coffee-700);
  background: linear-gradient(145deg,#fff7e9,#ecd7b3);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
  font-size: 16px !important;
  line-height: 1;
}
.app-shell[data-route="technician-bi"] svg.bi27-menu-icon {
  display: block;
  padding: 5px;
}
.app-shell[data-route="technician-bi"] .bi27-menu-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
  color: inherit;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
}
.app-shell[data-route="technician-bi"] .bi27-menu-copy > strong {
  color: inherit;
  font-size: var(--bi-font-control) !important;
  line-height: 1.3;
  white-space: normal;
  overflow-wrap: anywhere;
}
.app-shell[data-route="technician-bi"] .bi27-menu-copy > :is(small,.bi27-menu-note) {
  color: #77695f;
  font-size: var(--bi-font-caption) !important;
  font-weight: 590;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
}
.app-shell[data-route="technician-bi"] :is(.bi-v23-ranking-tabs,.bi-overview-metric-tabs) > button:is(.is-active,[aria-selected="true"]) .bi27-menu-icon {
  color: var(--bi27-coffee-900);
  border-color: rgba(236,214,173,.5);
  background: linear-gradient(145deg,#f5dfb9,#d5a660);
}
.app-shell[data-route="technician-bi"] :is(.bi-v23-ranking-tabs,.bi-overview-metric-tabs) > button:is(.is-active,[aria-selected="true"]) .bi27-menu-copy > :is(small,.bi27-menu-note) {
  color: #ecd7b3;
}
.app-shell[data-route="technician-bi"] .bi-v23-ranking-main > header h3 > .bi27-menu-content {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0,1fr);
  align-items: center;
  gap: 10px;
}
.app-shell[data-route="technician-bi"] .bi-v23-ranking-main > header h3 .bi27-menu-copy > strong {
  font-size: var(--bi-font-section-title) !important;
}
.app-shell[data-route="technician-bi"] .bi-v23-ranking-main > header h3 .bi27-menu-copy > :is(small,.bi27-menu-note) {
  color: var(--bi23-muted);
}

/* Natural table sizing remains correct whether the optional status column is
   present or removed: only semantic edge columns keep explicit dimensions. */
.app-shell[data-route="technician-bi"] :is(.bi-all-page,.bi-person-page) {
  min-width: 0;
}
.app-shell[data-route="technician-bi"] :is(.bi-v23-ranking-table,.bi-v25-metric-table) {
  width: 100%;
  min-width: max(100%,960px);
  table-layout: auto;
}
.app-shell[data-route="technician-bi"] :is(.bi-v23-ranking-table,.bi-v25-metric-table) :is(th,td) {
  width: auto !important;
  min-width: 104px;
  white-space: nowrap;
}
.app-shell[data-route="technician-bi"] :is(.bi-v23-ranking-table,.bi-v25-metric-table) :is(th,td):first-child {
  width: 72px !important;
  min-width: 72px;
}
.app-shell[data-route="technician-bi"] :is(.bi-v23-ranking-table,.bi-v25-metric-table) :is(th,td):nth-child(2) {
  width: clamp(180px,19%,240px) !important;
  min-width: 180px;
}
.app-shell[data-route="technician-bi"] :is(.bi-v23-ranking-table,.bi-v25-metric-table) :is(th,td):nth-child(3) {
  width: clamp(130px,14%,190px) !important;
  min-width: 130px;
}
.app-shell[data-route="technician-bi"] :is(.bi-v23-ranking-table,.bi-v25-metric-table) :is(th,td):last-child {
  width: 90px !important;
  min-width: 90px;
}
.app-shell[data-route="technician-bi"] .bi-v23-ranking-table-wrap {
  border: 1px solid rgba(74,45,32,.1);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 7px 20px rgba(57,35,25,.045);
}
.app-shell[data-route="technician-bi"] :is(.bi-v23-ranking-table,.bi-v25-metric-table) thead th {
  color: #62564d;
  background: linear-gradient(180deg,#fffdf9,#f7f1e9);
  border-bottom: 1px solid rgba(74,45,32,.11);
}
.app-shell[data-route="technician-bi"] :is(.bi-v23-ranking-table,.bi-v25-metric-table) tbody tr:hover td,
.app-shell[data-route="technician-bi"] :is(.bi-v23-ranking-table,.bi-v25-metric-table) tbody tr:focus-within td {
  background: #fff9ef;
}

.app-shell[data-route="technician-bi"] .bi-tabs::-webkit-scrollbar,
.app-shell[data-route="technician-bi"] .bi-v23-ranking-tabs::-webkit-scrollbar,
.app-shell[data-route="technician-bi"] .bi-overview-metric-tabs::-webkit-scrollbar { height: 7px; }
.app-shell[data-route="technician-bi"] .bi-tabs::-webkit-scrollbar-thumb,
.app-shell[data-route="technician-bi"] .bi-v23-ranking-tabs::-webkit-scrollbar-thumb,
.app-shell[data-route="technician-bi"] .bi-overview-metric-tabs::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 99px;
  background: rgba(123,77,45,.34);
  background-clip: padding-box;
}

@media (max-width: 1180px) {
  .app-shell[data-route="technician-bi"] .bi-tabs {
    width: 100%;
    grid-template-columns: repeat(5,minmax(128px,1fr));
  }
  .app-shell[data-route="technician-bi"] .bi-v23-ranking-tabs,
  .app-shell[data-route="technician-bi"] .bi-overview-metric-tabs {
    grid-template-columns: repeat(6,minmax(148px,1fr));
  }
}

@media (max-width: 760px) {
  .app-shell[data-route="technician-bi"] .bi-tabs,
  .app-shell[data-route="technician-bi"] .bi-v23-ranking-tabs,
  .app-shell[data-route="technician-bi"] .bi-overview-metric-tabs {
    padding: 6px;
    gap: 6px;
    border-radius: 13px;
    scroll-snap-type: inline proximity;
  }
  .app-shell[data-route="technician-bi"] .bi-tabs {
    grid-template-columns: repeat(5,minmax(132px,1fr));
  }
  .app-shell[data-route="technician-bi"] .bi-v23-ranking-tabs,
  .app-shell[data-route="technician-bi"] .bi-overview-metric-tabs {
    grid-template-columns: repeat(6,minmax(148px,1fr));
  }
  .app-shell[data-route="technician-bi"] .bi-tabs > button,
  .app-shell[data-route="technician-bi"] :is(.bi-v23-ranking-tabs,.bi-overview-metric-tabs) > button {
    scroll-snap-align: start;
  }
  .app-shell[data-route="technician-bi"] :is(.bi-v23-ranking-table,.bi-v25-metric-table) {
    min-width: max(100%,900px);
  }
}
