/* Preserve the original colored operational cards; pair each metric with its people. */
#tab-panel-overview, #person-efficiency-content, .order-structure-dialog {
  --ov-surface: var(--surface-bg, #ffffff);
  --ov-soft: var(--surface-bg-soft, #f8fafc);
  --ov-line: var(--line, #d7e0ea);
  --ov-text: var(--text, #0b1220);
  --ov-muted: var(--label, #475569);
  --ov-single: var(--btn-primary-bg, #0f766e);
  --ov-multi: var(--text, #0b1220);
  --ov-unknown: var(--muted, var(--label, #475569));
}
#tab-panel-overview .out-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#tab-panel-overview .out-card { min-width: 0; }
#tab-panel-overview .out-header { overflow-wrap: anywhere; }
#tab-panel-overview .inv-grid { grid-template-columns: minmax(0, 1fr); }
#tab-panel-overview .work-grid.work-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
#tab-panel-overview .work-column { display: grid; gap: 6px; min-width: 0; }
#tab-panel-overview .work-column[data-work="出库分拣"] { grid-column: 1 / -1; }
#tab-panel-overview .work-column:only-child { grid-column: 1 / -1; }
#tab-panel-overview .rank-head > div { min-width: 0; overflow-wrap: anywhere; }
#tab-panel-overview .work-column .rank-head,
#tab-panel-overview .work-column .rank-row {
  grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr));
  column-gap: 6px;
}
#tab-panel-overview .out-rate-button { border: 0; background: transparent; color: inherit; padding: 0; font-family: inherit; cursor: pointer; }
#tab-panel-overview .out-rate-button:hover { text-decoration: underline; text-underline-offset: 3px; }
#tab-panel-overview .out-rate-button:focus-visible { outline: 2px solid var(--ov-single); outline-offset: 3px; }
#tab-panel-overview .order-structure { border-top: 1px solid var(--ov-line); padding-top: 8px; margin-top: 10px; container-type: inline-size; }
.order-structure-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.order-structure-heading h3 { font-size: 14px; font-weight: 600; margin: 0; color: var(--ov-text); }
.order-structure-heading small { font-size: 12px; color: var(--ov-muted); text-align: right; }
.order-structure-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.order-structure-metric {
  appearance: none; background: transparent; border: 0; border-radius: 3px; padding: 0;
  color: var(--ov-text); font: inherit; text-align: center; min-width: 0; cursor: pointer;
}
.order-structure-metric:hover { background: var(--ov-soft); }
.order-structure-metric:focus-visible, .order-structure-unknown:focus-visible { outline: 2px solid var(--ov-single); outline-offset: 4px; }
.order-structure-label { display: block; font-size: 13px; margin-bottom: 3px; color: var(--ov-muted); }
.order-structure-value { display: flex; gap: 4px; align-items: baseline; justify-content: center; flex-wrap: wrap; }
.order-structure-value strong { font-size: 24px; font-weight: 750; line-height: 1.2; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.order-structure-value small { font-size: 12px; color: var(--ov-muted); }
.order-structure-value .order-structure-percent { font-size: 12px; margin-left: 2px; color: var(--ov-muted); }
.order-structure-bar { display: flex; height: 6px; margin-top: 8px; overflow: hidden; background: var(--ov-line); border-radius: 3px; }
.order-structure-bar span { height: 100%; flex-shrink: 0; }
.order-structure-bar .single { background: var(--ov-single); }
.order-structure-bar .multi { background: var(--ov-multi); }
.order-structure-bar .unknown { background: var(--ov-unknown); }
.order-structure-coverage { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; font-size: 12px; color: var(--ov-muted); margin-top: 5px; }
.order-structure-unknown { background: transparent; border: 0; color: inherit; font: inherit; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.order-structure-goods { display: flex; gap: 6px 18px; justify-content: center; flex-wrap: wrap; margin-top: 7px; font-size: 12px; color: var(--ov-muted); }
.order-structure-goods strong { color: var(--ov-text); font-size: 15px; margin-left: 6px; font-variant-numeric: tabular-nums; }
.overview-disclosure {
  --disclosure-accent: var(--overview-accent, var(--btn-primary-bg));
  margin-top: 8px;
  border: 1px solid color-mix(in srgb, var(--disclosure-accent) 25%, transparent);
  border-radius: 4px;
  background: color-mix(in srgb, var(--disclosure-accent) 4%, transparent);
  color: var(--ov-text);
  container-type: inline-size;
  min-width: 0;
}
.overview-disclosure > summary {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: inherit;
  cursor: pointer;
  list-style: none;
  font-size: 13px;
  font-weight: 700;
  transition: background-color 150ms ease;
}
.overview-disclosure > summary::-webkit-details-marker { display: none; }
/* A plain chevron keeps the metrics centered with symmetric side columns. */
.overview-disclosure-toggle {
  grid-column: 3;
  grid-row: 1;
  align-self: center;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  box-sizing: border-box;
  border: 0;
  background: transparent;
  color: var(--ov-muted);
}
.overview-disclosure-toggle svg { display: block; width: 14px; height: 14px; transition: transform 150ms ease; }
.overview-disclosure[open] > summary .overview-disclosure-toggle svg { transform: rotate(90deg); }
.overview-disclosure > summary:hover { background: color-mix(in srgb, var(--disclosure-accent) 10%, transparent); }
.overview-disclosure > summary:focus-visible { outline: 2px solid var(--disclosure-accent); outline-offset: 2px; }
.overview-disclosure-content { padding: 10px 12px; border-top: 1px solid color-mix(in srgb, var(--disclosure-accent) 20%, transparent); }
.overview-disclosure-stats { grid-column: 2; grid-row: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 18px; font-size: 12px; font-weight: 500; }
.overview-disclosure-stats > span { white-space: nowrap; }
.overview-disclosure-stats strong { font-variant-numeric: tabular-nums; font-weight: 750; }
.overview-disclosure-stats .single,
.overview-disclosure-stats .multi { color: var(--ov-text); }
#tab-panel-overview .out-rates-disclosure { margin: 0; border: 0; background: transparent; box-shadow: none; }
#tab-panel-overview .out-rates-disclosure > summary { min-height: 0; padding: 2px 8px; justify-content: center; gap: 6px; }
.out-rates-disclosure > summary .out-metrics-wrap { grid-column: 2; grid-row: 1; min-width: 0; margin: 0; }
.out-rates-content { margin-top: 6px; padding: 10px 12px; border: 0; border-radius: 4px; background: transparent; }
#tab-panel-overview .out-rates-content .out-progress { margin: 0; padding: 0 0 10px; border: 0; }
#tab-panel-overview .out-rates-content .out-progress + .out-progress { padding-top: 10px; border-top: 1px solid var(--ov-line); }
.out-progress .order-structure-heading h3 { font-size: 13px; text-align: left; }
.out-progress .out-progress-metric.done { color: #12853c; }
.out-progress .out-progress-metric.pending { color: #64748b; }
.out-progress .order-structure-bar .single { background: #12853c; }
.out-progress .order-structure-bar { background: #dbe4ef; }
.out-rates-content .tail-metric-line { margin-top: 0; font-size: 12px; }
#tab-panel-overview .out-body:has(> .out-rates-disclosure[open]) > .tail-box > .tail-metric-line { display: none; }
html[data-theme="dark"] .out-progress .out-progress-metric.done { color: #86efac; }
html[data-theme="dark"] .out-progress .out-progress-metric.pending { color: #94a3b8; }
html[data-theme="dark"] .out-progress .order-structure-bar .single { background: #22c55e; }
html[data-theme="dark"] .out-progress .order-structure-bar { background: #334155; }
@container (max-width: 440px) {
  .overview-disclosure > summary { gap: 6px; padding-inline: 8px; }
  .overview-disclosure-stats { gap: 3px 8px; font-size: 11px; }
}
#tab-panel-overview .out-order-structure-explorer .order-structure { margin: 0; padding: 0; border: 0; }
#tab-panel-overview .out-order-structure-explorer {
  background: var(--overview-status-bg, var(--ov-soft));
  border: 0;
  box-shadow: none;
}
.out-order-structure-explorer .order-structure-heading { display: none; }
html[data-style="liquid-glass"] .overview-disclosure {
  border-radius: 12px;
  background: color-mix(in srgb, var(--ov-surface) 30%, transparent);
  box-shadow: 0 1px 3px #00000008;
}
@media (prefers-reduced-motion: reduce) {
  .overview-disclosure > summary, .overview-disclosure-toggle, .overview-disclosure-toggle svg { transition: none; }
}
#tab-panel-overview .out-carrier-explorer .tail-carrier-table-wrap { max-height: 360px; overflow: auto; margin-bottom: 12px; }
#tab-panel-overview .out-carrier-explorer table { min-width: 0; width: 100%; font-size: 12px; box-shadow: none; }
#tab-panel-overview .out-carrier-explorer th { position: sticky; top: 0; font-weight: 600; }
#tab-panel-overview .out-carrier-explorer td { font-weight: 500; font-variant-numeric: tabular-nums; padding: 10px 6px; }
#tab-panel-overview .out-carrier-explorer tfoot td { font-weight: 600; }
@container (max-width: 700px) {
  #tab-panel-overview .out-carrier-explorer th:nth-child(n + 5),
  #tab-panel-overview .out-carrier-explorer td:nth-child(n + 5) { display: none; }
  #tab-panel-overview .out-carrier-explorer .tail-carrier-mobile-metrics { display: flex; flex-direction: column; gap: 3px; margin-top: 5px; color: var(--ov-muted); font-size: 12px; font-weight: 400; white-space: normal; }
  #tab-panel-overview .out-carrier-explorer td:first-child { white-space: normal; overflow-wrap: anywhere; }
}
.order-structure-dialog.inventory-stats-sku-search-dialog { width: min(900px, calc(100vw - 24px)); min-width: 0; min-height: 0; max-height: calc(100dvh - 40px); color: var(--ov-text); padding: 0; resize: none; }
.order-structure-dialog:not([open]) { display: none; }
.order-structure-dialog::backdrop { background: rgba(15, 23, 42, .46); backdrop-filter: blur(4px); }
html[data-style="liquid-glass"] .order-structure-dialog::backdrop { background: rgba(20, 20, 24, .28); backdrop-filter: blur(12px) saturate(130%); }
html[data-style="enterprise"] .order-structure-dialog::backdrop { background: #0b142480; backdrop-filter: none; }
.order-structure-dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; overflow: hidden; }
.order-structure-dialog-header { cursor: default; }
.order-structure-dialog-header h2 { margin: 0 0 4px; letter-spacing: 0; white-space: normal; }
.order-structure-dialog-header p { margin: 0; letter-spacing: 0; white-space: normal; }
.order-structure-dialog button { flex-shrink: 0; }
.order-structure-dialog-content { padding: 16px 20px; min-height: 180px; overflow: auto; }
.order-structure-message { margin: 0; font-family: inherit; font-size: 13px; font-weight: 400; line-height: 1.6; letter-spacing: 0; color: var(--muted, var(--ov-muted)); overflow-wrap: anywhere; }
.order-structure-note { padding: 0 0 12px; }
.order-structure-state { display: grid; place-content: center; min-height: 148px; padding: 20px 12px; box-sizing: border-box; text-align: center; }
.order-structure-dialog-header > div { min-width: 0; overflow-wrap: anywhere; }
.order-structure-order { border-bottom: 1px solid var(--ov-line); padding: 10px 0; }
.order-structure-order summary { cursor: pointer; font-size: 14px; overflow-wrap: anywhere; }
.order-structure-order summary strong { font-variant-numeric: tabular-nums; }
.order-structure-order summary small { color: var(--ov-muted); font-size: 12px; margin-left: 12px; }
.order-structure-order table { border-collapse: collapse; width: 100%; margin-top: 12px; font-size: 12px; }
.order-structure-dialog .order-structure-order table { background: transparent; border: 0; border-radius: 0; box-shadow: none; table-layout: fixed; }
.order-structure-dialog .order-structure-order th { background: var(--ov-soft); color: var(--ov-muted); }
.order-structure-dialog .order-structure-order td { background: transparent; color: var(--ov-text); }
.order-structure-order th, .order-structure-order td { border-bottom: 1px solid var(--ov-line); padding: 8px; text-align: left; overflow-wrap: anywhere; }
.order-structure-order th:last-child, .order-structure-order td:last-child { text-align: right; }
.order-structure-dialog-footer { padding: 12px 20px; border-top: 1px solid var(--ov-line); min-width: 0; }
:root[data-style][data-theme] .order-structure-dialog-footer .table-pagination-bar.wms-pager {
  margin: 0;
}

@media (max-width: 1200px) and (min-width: 1025px) {
  #tab-panel-overview .out-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  #tab-panel-overview .out-grid { grid-template-columns: minmax(0, 1fr); }
  #tab-panel-overview .work-grid.work-columns { grid-template-columns: minmax(0, 1fr); }
  #tab-panel-overview .status-grid-3, #tab-panel-overview .status-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #tab-panel-overview .rank-head-4, #tab-panel-overview .rank-row-4 { grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); }
  .order-structure-dialog-header, .order-structure-dialog-content { padding: 14px; }
  .order-structure-order summary small { display: block; margin: 4px 0; }
}

/* Native status buttons keep the original card layout and business colors. */
#tab-panel-overview button.status-chip {
  display: block;
  width: 100%;
  margin: 0;
  padding: 6px;
  min-height: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font: inherit;
  text-align: center;
  cursor: pointer;
  transform: none;
}
#tab-panel-overview button.status-chip:hover { box-shadow: inset 0 0 0 1px var(--status-chip-text); }
#tab-panel-overview button.status-chip:focus-visible { outline: 2px solid var(--status-chip-text); outline-offset: -2px; }
html[data-style="liquid-glass"] #tab-panel-overview button.status-chip { border-radius: 14px; }

/* Transaction workload is separate from the legacy quantity / speed measure. */
:is(#tab-panel-overview, #person-efficiency-content) .inventory-metrics-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px;
  margin-top: 12px; text-align: left;
}
:is(#tab-panel-overview, #person-efficiency-content) .inventory-metrics-grid > div {
  padding: 8px; border: 1px solid var(--ov-line); border-radius: 8px; min-width: 0;
}
:is(#tab-panel-overview, #person-efficiency-content) .inventory-metrics-grid span { display: block; font-size: 11px; opacity: .75; }
:is(#tab-panel-overview, #person-efficiency-content) .inventory-metrics-grid strong { display: block; font-size: 13px; margin-top: 4px; overflow-wrap: anywhere; }
:is(#tab-panel-overview, #person-efficiency-content) .inventory-work-metrics { min-width: 0; width: 100%; }
:is(#tab-panel-overview, #person-efficiency-content) .inventory-carrier-scroll { overflow-x: auto; margin-top: 12px; max-width: 100%; }
:is(#tab-panel-overview, #person-efficiency-content) .inventory-carrier-table { width: 100%; border-collapse: collapse; font-size: 11px; text-align: right; table-layout: fixed; }
:is(#tab-panel-overview, #person-efficiency-content) .inventory-carrier-table th,
:is(#tab-panel-overview, #person-efficiency-content) .inventory-carrier-table td { padding: 6px 4px; border-bottom: 1px solid var(--ov-line); overflow-wrap: anywhere; }
:is(#tab-panel-overview, #person-efficiency-content) .inventory-carrier-table th:first-child,
:is(#tab-panel-overview, #person-efficiency-content) .inventory-carrier-table td:first-child { text-align: left; }
:is(#tab-panel-overview, #person-efficiency-content) .inventory-metrics-pending { font-size: 11px; opacity: .7; padding: 8px 0; }
:is(#tab-panel-overview, #person-efficiency-content) .inventory-person-metrics { padding: 0 10px 10px; font-size: 11px; }
:is(#tab-panel-overview, #person-efficiency-content) .inventory-person-metrics summary { cursor: pointer; opacity: .8; }

#tab-panel-overview .work-column .work-card { min-width: 0; max-width: 100%; }
#tab-panel-overview .workload-summary-grid { margin-bottom: 6px; }
:is(#tab-panel-overview, #person-efficiency-content) .inventory-carrier-table { min-width: 0; }

/* Inventory uses the same disclosure affordance as outbound overview. */
:is(#tab-panel-overview, #person-efficiency-content) .inventory-summary-card { padding: 0; overflow: hidden; }
:is(#tab-panel-overview, #person-efficiency-content) .inventory-work-disclosure { margin: 0; border: 0; background: transparent; box-shadow: none; }
:is(#tab-panel-overview, #person-efficiency-content) .inventory-summary-card summary { padding: 16px 12px; position: relative; }
:is(#tab-panel-overview, #person-efficiency-content) .inventory-summary-heading { display: grid; grid-column: 2; grid-row: 1; gap: 2px; min-width: 0; text-align: center; }
:is(#tab-panel-overview, #person-efficiency-content) .inventory-work-disclosure > summary > .work-qty { grid-column: 2; grid-row: 1; }
:is(#tab-panel-overview, #person-efficiency-content) .inventory-summary-heading .work-qty { line-height: 1.1; margin: 0; }
:is(#tab-panel-overview, #person-efficiency-content) .inventory-summary-card summary > .overview-disclosure-toggle { position: absolute; right: 12px; top: 14px; }
:is(#tab-panel-overview, #person-efficiency-content) .inventory-summary-content { padding: 0 12px 12px; border-top: 1px solid var(--ov-line); }
:is(#tab-panel-overview, #person-efficiency-content) .inventory-metrics-grid { margin-top: 10px; gap: 6px; }
:is(#tab-panel-overview, #person-efficiency-content) .inventory-metrics-grid > .inventory-metric {
  border: 0; border-radius: 8px; padding: 10px 12px; background: color-mix(in srgb, var(--ov-surface) 65%, transparent);
}
:is(#tab-panel-overview, #person-efficiency-content) .inventory-metric span { color: var(--ov-muted); opacity: 1; font-size: 11px; line-height: 1.4; }
:is(#tab-panel-overview, #person-efficiency-content) .inventory-metric strong { color: var(--ov-text); font-size: 14px; font-weight: 600; line-height: 1.4; font-variant-numeric: tabular-nums; }
:is(#tab-panel-overview, #person-efficiency-content) .inventory-metrics-note { color: var(--ov-muted); font-size: 11px; line-height: 1.5; margin-top: 8px; text-align: left; }
:is(#tab-panel-overview, #person-efficiency-content) .inventory-rank-card { padding: 0; overflow: hidden; }
:is(#tab-panel-overview, #person-efficiency-content) .inventory-department-heading {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
}
.inventory-department-title { grid-column: 2; }
.inventory-carrier-summary-control {
  position: relative;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}
.inventory-carrier-summary-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; }
.inventory-carrier-summary-track {
  width: 30px;
  height: 17px;
  border-radius: 10px;
  background: color-mix(in srgb, currentColor 25%, transparent);
  transition: background .15s ease;
}
.inventory-carrier-summary-track::after {
  content: "";
  display: block;
  width: 13px;
  height: 13px;
  margin: 2px;
  border-radius: 50%;
  background: var(--ov-surface);
  transition: transform .15s ease;
}
.inventory-carrier-summary-toggle:checked + .inventory-carrier-summary-track { background: currentColor; }
.inventory-carrier-summary-toggle:checked + .inventory-carrier-summary-track::after { transform: translateX(13px); }
.inventory-carrier-summary-toggle:focus-visible + .inventory-carrier-summary-track { outline: 2px solid currentColor; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .inventory-carrier-summary-track, .inventory-carrier-summary-track::after { transition: none; }
}
:is(#tab-panel-overview, #person-efficiency-content) .inventory-table-scroll { overflow-x: auto; max-width: 100%; }
:is(#tab-panel-overview, #person-efficiency-content) .inventory-person-table,
:is(#tab-panel-overview, #person-efficiency-content) .inventory-carrier-table { width: 100%; min-width: 0; table-layout: fixed; border-collapse: collapse; border: 0; border-radius: 0; margin: 0; background: transparent; box-shadow: none; font-size: 12px; }
:is(#tab-panel-overview, #person-efficiency-content) .inventory-person-table > thead > tr > th,
:is(#tab-panel-overview, #person-efficiency-content) .inventory-person-table > tbody > tr > td { padding: 8px 4px; text-align: right; vertical-align: middle; border: 0; color: var(--ov-text); background: transparent; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
:is(#tab-panel-overview, #person-efficiency-content) .inventory-person-table > thead > tr > th { font-size: 11px; font-weight: 600; line-height: 1.3; }
:is(#tab-panel-overview, #person-efficiency-content) .inventory-person-table th small { display: block; opacity: .7; font-size: 10px; font-weight: 400; }
:is(#tab-panel-overview, #person-efficiency-content) .inventory-person-table > thead > tr > th:first-child,
:is(#tab-panel-overview, #person-efficiency-content) .inventory-person-table > tbody > tr > td:first-child { text-align: left; width: 31%; padding-left: 10px; }
:is(#tab-panel-overview, #person-efficiency-content) .inventory-person-table > thead > tr > th:last-child,
:is(#tab-panel-overview, #person-efficiency-content) .inventory-person-table > tbody > tr > td:last-child { width: 28px; padding: 4px 5px 4px 2px; }
:is(#tab-panel-overview, #person-efficiency-content) .inventory-person-row { border-top: 1px solid var(--ov-line); font-weight: 600; }
:is(#tab-panel-overview, #person-efficiency-content) .inventory-person-row.rank-top { background: color-mix(in srgb, #22c55e 12%, transparent); }
:is(#tab-panel-overview, #person-efficiency-content) .inventory-carrier-row td { padding-top: 3px; padding-bottom: 6px; font-size: 11px; color: var(--ov-muted); }
:is(#tab-panel-overview, #person-efficiency-content) .inventory-carrier-row td:first-child { padding-left: 18px; font-weight: 400; }
:is(#tab-panel-overview, #person-efficiency-content) .inventory-carrier-row td:first-child span { border-left: 2px solid var(--ov-line); padding-left: 6px; display: block; }
:is(#tab-panel-overview, #person-efficiency-content) .inventory-person-detail[hidden] { display: none; }
:is(#tab-panel-overview, #person-efficiency-content) .inventory-person-table .inventory-person-detail > td { width: auto; padding: 0 8px 8px; }
:is(#tab-panel-overview, #person-efficiency-content) .inventory-detail-card { padding: 2px 8px 10px; border: 1px solid var(--ov-line); border-radius: 10px; background: color-mix(in srgb, var(--ov-soft) 70%, transparent); text-align: left; box-shadow: 0 1px 2px #00000004; }
:is(#tab-panel-overview, #person-efficiency-content) .inventory-expand-button { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--ov-muted); cursor: pointer; box-shadow: none; }
:is(#tab-panel-overview, #person-efficiency-content) .inventory-expand-button .overview-disclosure-toggle { width: 24px; height: 24px; background: transparent; }
:is(#tab-panel-overview, #person-efficiency-content) .inventory-expand-button:hover { background: color-mix(in srgb, var(--ov-text) 7%, transparent); color: var(--ov-text); }
:is(#tab-panel-overview, #person-efficiency-content) .inventory-expand-button:focus-visible { outline: 2px solid var(--overview-accent); outline-offset: 1px; }
:is(#tab-panel-overview, #person-efficiency-content) .inventory-expand-button[aria-expanded="true"] svg { transform: rotate(90deg); }
:is(#tab-panel-overview, #person-efficiency-content) .inventory-toggle-all { color: var(--ov-text); }
:is(#tab-panel-overview, #person-efficiency-content) .inventory-toggle-all .overview-disclosure-toggle { color: inherit; }
:is(#tab-panel-overview, #person-efficiency-content) .inventory-carrier-table { font-size: 11px; }
:is(#tab-panel-overview, #person-efficiency-content) .inventory-carrier-table th { color: var(--ov-muted); font-weight: 500; background: transparent; }
:is(#tab-panel-overview, #person-efficiency-content) .inventory-carrier-table td { color: var(--ov-text); background: transparent; }
:is(#tab-panel-overview, #person-efficiency-content) .inventory-carrier-table th:first-child { width: 30%; }
/* Carrier details keep horizontal scrolling without the overflow edge shadow. */
:is(#tab-panel-overview, #person-efficiency-content) .inventory-carrier-scroll { margin-top: 10px; box-shadow: none; }

/* Only the outer table frame clips corners; classic keeps square edges. */
:is(#tab-panel-overview, #person-efficiency-content) .inventory-rank-card { border-radius: 0; }
html[data-style="liquid-glass"] :is(#tab-panel-overview, #person-efficiency-content) .inventory-rank-card { border-radius: 14px; }
:is(#tab-panel-overview, #person-efficiency-content) .inventory-person-table > thead > tr { background: var(--inventory-header-bg); }
/* A tinted header makes the rounded top visible against the department color. */
html[data-style="liquid-glass"] :is(#tab-panel-overview, #person-efficiency-content) .inventory-person-table > thead > tr {
  background: color-mix(in srgb, var(--inventory-header-bg) 16%, var(--ov-surface));
}
html[data-style="liquid-glass"] :is(#tab-panel-overview, #person-efficiency-content) .inventory-person-table > thead > tr > th {
  padding-top: 10px; padding-bottom: 10px;
}
:is(#tab-panel-overview, #person-efficiency-content) .inventory-rank-card .unified-responsive-table-generated,
:is(#tab-panel-overview, #person-efficiency-content) .inventory-carrier-scroll.unified-responsive-table-generated {
  margin: 0; border: 0; border-radius: 0; background: transparent;
}
:is(#tab-panel-overview, #person-efficiency-content) .inventory-person-table :is(thead, tbody, tr, th, td) { border-radius: 0; }
:is(#tab-panel-overview, #person-efficiency-content) .inventory-table-scroll { border-radius: inherit; }
:is(#tab-panel-overview, #person-efficiency-content) .inventory-summary-static { padding: 16px 12px; }
:is(#tab-panel-overview, #person-efficiency-content) .inventory-summary-heading .work-spd { font-weight: 400; margin-top: 2px; }
:is(#tab-panel-overview, #person-efficiency-content) .inventory-person-row,
:is(#tab-panel-overview, #person-efficiency-content) .inventory-carrier-row,
:is(#tab-panel-overview, #person-efficiency-content) .inventory-person-table > thead { cursor: pointer; }
:is(#tab-panel-overview, #person-efficiency-content) .inventory-person-row:hover,
:is(#tab-panel-overview, #person-efficiency-content) .inventory-carrier-row:hover { background: color-mix(in srgb, var(--ov-text) 5%, transparent); }
:is(#tab-panel-overview, #person-efficiency-content) .inventory-worker-work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
:is(#tab-panel-overview, #person-efficiency-content) .inventory-worker-work { padding: 10px 12px; border-radius: 8px; background: var(--inventory-work-tint, color-mix(in srgb, var(--ov-surface) 65%, transparent)); min-width: 0; }
:is(#tab-panel-overview, #person-efficiency-content) .inventory-worker-department { font-size: 10px; color: var(--ov-muted); }
:is(#tab-panel-overview, #person-efficiency-content) .inventory-worker-work h4 { margin: 3px 0 6px; color: var(--ov-text); font-size: 12px; font-weight: 500; }
:is(#tab-panel-overview, #person-efficiency-content) .inventory-worker-work strong { color: var(--ov-text); font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
html[data-style="classic"] :is(#tab-panel-overview, #person-efficiency-content) .inventory-detail-card,
html[data-style="classic"] :is(#tab-panel-overview, #person-efficiency-content) .inventory-worker-work,
html[data-style="classic"] :is(#tab-panel-overview, #person-efficiency-content) .inventory-metric { border-radius: 0; }

/* A single clip and matching header backing prevent pale anti-alias seams. */
:is(#tab-panel-overview, #person-efficiency-content) .inventory-rank-card { border: 0; box-shadow: none; }
:is(#tab-panel-overview, #person-efficiency-content) .inventory-table-scroll { border-radius: 0; }
:is(#tab-panel-overview, #person-efficiency-content) .inventory-person-table > tbody { background: var(--inventory-body-bg); }
:is(#tab-panel-overview, #person-efficiency-content) .inventory-person-table th small { display: inline; white-space: nowrap; }
:is(#tab-panel-overview, #person-efficiency-content) .inventory-sort-button { display: inline-flex; align-items: center; justify-content: flex-end; gap: 2px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: inherit; font: inherit; cursor: pointer; white-space: nowrap; }
:is(#tab-panel-overview, #person-efficiency-content) .inventory-person-table th:first-child .inventory-sort-button { justify-content: flex-start; }
:is(#tab-panel-overview, #person-efficiency-content) .inventory-sort-indicator { font-size: 10px; opacity: .65; }
:is(#tab-panel-overview, #person-efficiency-content) .inventory-sort-button:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
:is(#tab-panel-overview, #person-efficiency-content) .inventory-work-stack { display: grid; gap: 6px; align-content: start; min-width: 0; }
#tab-panel-overview .work-column[data-work="出库分拣"] { grid-column: auto; }
:is(#tab-panel-overview, #person-efficiency-content) .inventory-worker-work { margin-top: 10px; }
:is(#tab-panel-overview, #person-efficiency-content) .inventory-worker-work-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
:is(#tab-panel-overview, #person-efficiency-content) .inventory-worker-work h4 { margin: 0; font-weight: 600; font-size: 13px; }
:is(#tab-panel-overview, #person-efficiency-content) .inventory-worker-work strong { font-size: 14px; }
:is(#tab-panel-overview, #person-efficiency-content) .inventory-carrier-table :is(th, td):not(:first-child) { white-space: nowrap; }
:is(#tab-panel-overview, #person-efficiency-content) .inventory-carrier-table { min-width: 300px; }

/* Employee tables share inventory fields and disclosures across both views. */
#person-efficiency-content .business-efficiency-subgroup { border: 0; background: transparent; }
#person-efficiency-content .business-efficiency-subgroup + .business-efficiency-subgroup { padding-top: 0; border: 0; }

:is(#tab-panel-overview, #person-efficiency-content) .inventory-carrier-item-qty { display: block; margin-top: 3px; color: var(--ov-muted); font-size: 10px; font-weight: 400; white-space: nowrap; }
:is(#tab-panel-overview, #person-efficiency-content) .inventory-carrier-summary-table { table-layout: auto; min-width: 380px; }
:is(#tab-panel-overview, #person-efficiency-content) .inventory-carrier-summary-table tfoot td { border-top: 1px solid var(--ov-line); border-bottom: 0; font-weight: 600; background: color-mix(in srgb, var(--ov-text) 4%, transparent); }
:is(#tab-panel-overview, #person-efficiency-content) .inventory-carrier-summary-table th:first-child { width: auto; }
