/* Readability refinements shared by the normal view and guest lobby. */
.dashboard-page .dashboard-tables .summary-table .v44-table{table-layout:fixed;width:100%;min-width:0}
.dashboard-page .dashboard-tables .summary-table .v44-table th{
  height:42px;padding:5px 3px;font-size:11px;line-height:1.28;
  vertical-align:middle;text-align:center;text-indent:0;white-space:normal;
  word-break:normal;overflow-wrap:normal;
}
.dashboard-header-label,.dashboard-part-number-label{
  display:flex;flex-direction:column;justify-content:center;align-items:center;
  min-height:30px;gap:1px;container-type:normal;text-indent:0;
}
.dashboard-header-label>span,.dashboard-part-number-label>span,
.dashboard-part-number-label>span:first-child,.dashboard-part-number-label>span:last-child,
.dashboard-part-number-label:lang(en)>span:last-child{
  display:block;font-size:inherit;line-height:1.28;white-space:nowrap;max-width:100%;
}
.dashboard-page .dashboard-tables .summary-table .v44-table td{
  padding:4px 3px;min-height:26px;height:auto;font-size:11px;line-height:1.35;
  text-indent:0;vertical-align:middle;white-space:normal;word-break:normal;
  overflow-wrap:anywhere;overflow:hidden;text-overflow:clip;
}
.dashboard-page .dashboard-tables .summary-table .v44-table td.num{font-variant-numeric:tabular-nums}
.dashboard-page>.dashboard-tables{flex-basis:clamp(164px,24vh,236px)}
.dashboard-page>.dashboard-kpis .v44-kpi small{line-height:1.35;overflow-wrap:normal}

/* Bright chart marks and text on dark reading surfaces. */
:root[data-theme=dark]{--readable-blue:#6bc9ff;--readable-red:#ff9d9f;--readable-grid:#527287;--chart-series-1:#6bc9ff;--chart-series-2:#9fdfff;--chart-series-3:#6edbc4;--chart-series-4:#c1a7ff;--chart-series-5:#ffcf85;--chart-series-6:#ffabb5;--qcost-p:#ffd27d;--qcost-a:#79ddec;--qcost-f:#bda7ff}
:root[data-theme=dark] .v44-kpi b,
:root[data-theme=dark] .overview-type-card dd{color:#6bc9ff}
:root[data-theme=dark] .v44-kpi.orange b{color:#ffd27d}
:root[data-theme=dark] .v44-kpi.green b{color:#73e0bd}
:root[data-theme=dark] .v44-kpi.red b{color:#ffabb5}
:root[data-theme=dark] .v44-kpi span,
:root[data-theme=dark] .inspection-kpis .v44-kpi span{color:#c9dce9}
:root[data-theme=dark] .v44-kpi small{color:#79dec4}
:root[data-theme=dark] .chart-bar,
:root[data-theme=dark] .overview-bar{fill:var(--readable-blue)}
:root[data-theme=dark] .legend-bar{background:var(--readable-blue)}
:root[data-theme=dark] .chart-line,
:root[data-theme=dark] .overview-defect-line,
:root[data-theme=dark] .ppm-target{stroke:var(--readable-red)}
:root[data-theme=dark] .chart-point,
:root[data-theme=dark] .overview-defect-point{fill:var(--readable-red)}
:root[data-theme=dark] .legend-line,
:root[data-theme=dark] .ppm-target-line{border-color:var(--readable-red)}
:root[data-theme=dark] .ppm-actual,
:root[data-theme=dark] .qcost-ratio-line{stroke:#79dec4}
:root[data-theme=dark] .ppm-point,
:root[data-theme=dark] .qcost-ratio-point{fill:#79dec4}
:root[data-theme=dark] .ppm-actual-line,
:root[data-theme=dark] .ratio-line{border-color:#79dec4}
:root[data-theme=dark] .chart-grid,
:root[data-theme=dark] .overview-grid{stroke:var(--readable-grid);stroke-opacity:.8}
:root[data-theme=dark] .chart-label,
:root[data-theme=dark] .overview-axis-label,
:root[data-theme=dark] .overview-axis-title,
:root[data-theme=dark] .overview-category-label{fill:#d2e3ee}
:root[data-theme=dark] .chart-legend,
:root[data-theme=dark] .qcost-v44-legend,
:root[data-theme=dark] .ppm-legend,
:root[data-theme=dark] .overview-chart-legend,
:root[data-theme=dark] .legend-copy,
:root[data-theme=dark] .legend-row,
:root[data-theme=dark] .table-footer{color:#d2e3ee}
:root[data-theme=dark] .overview-type-card h4,
:root[data-theme=dark] .overview-type-card.process h4,
:root[data-theme=dark] .overview-type-card.outgoing h4{background:#0f1e29;color:#fff;border-bottom:1px solid #405767}
:root[data-theme=dark] .overview-type-card h4 img{filter:brightness(0) invert(1)}
:root[data-theme=dark] .overview-type-card dt{color:#d2e3ee}
:root[data-theme=dark] .overview-defect-value{fill:#ffabb5;stroke:#13232f}
:root[data-theme=dark] .filter-grid label,
:root[data-theme=dark] .overview-filter label,
:root[data-theme=dark] .qcost-callout b{color:#dce9f2}
:root[data-theme=dark] .metric-tabs button.active{background:#155779;color:#fff}
:root[data-theme=dark] .empty,
:root[data-theme=dark] .empty-cell{color:#bfd3e1}

/* Keep the chart and detail areas balanced in lobby inspection screens. */
.lobby-active .inspection-page{
  display:grid;grid-template-columns:minmax(0,1fr);
  grid-template-rows:auto auto minmax(0,1fr) auto minmax(0,1fr);gap:8px;
}
.lobby-active .inspection-page>.v44-title{grid-row:1;margin:0 8px}
.lobby-active .inspection-page>.inspection-kpis{grid-row:2;margin:0}
.lobby-active .inspection-page>.inspection-charts{grid-row:3;margin:0;min-height:0;overflow:hidden}
.lobby-active .inspection-page>.section-title{grid-row:4;margin:0 8px}
.lobby-active .inspection-page>.inspection-detail-panel{grid-row:5;min-height:0;min-width:0;height:100%;flex:none}
.lobby-active .inspection-page>.inspection-charts>.v44-panel{height:100%;min-height:0;display:flex;flex-direction:column;overflow:hidden}
.lobby-active .inspection-charts .chart-svg{flex:1 1 0;height:auto;min-height:0;width:100%}
.lobby-active .inspection-charts .chart-legend,
.lobby-active .inspection-charts .ppm-legend{flex:none}
.lobby-active .inspection-charts .v44-donut-layout{flex:1 1 0;height:auto;min-height:0;overflow:auto}
.lobby-active .inspection-detail-panel>.main-table{margin-inline:12px;min-height:0}
.lobby-active .inspection-charts .v44-donut{width:clamp(100px,17vh,180px);height:auto;aspect-ratio:1}
@media(max-height:820px){
  .dashboard-page .dashboard-tables .summary-table .v44-table th{font-size:10.5px;height:38px}
  .dashboard-page .dashboard-tables .summary-table .v44-table td{font-size:10.5px;padding-block:3px}
  .lobby-active .inspection-page{gap:6px}
}
