:root {
  --bg-a: #020b1a;
  --bg-b: #051428;
  --bg-c: #0a1f3d;
  --panel-bg: linear-gradient(135deg, rgba(8, 28, 54, 0.95), rgba(5, 18, 36, 0.92));
  --panel-border: rgba(88, 166, 255, 0.18);
  --text-main: #f0f7ff;
  --text-muted: #8ba5c7;
  --accent-a: #3b9eff;
  --accent-b: #00e5a0;
  --accent-c: #ffb84d;
  --accent-d: #ff6b9d;
  --danger: #ff5370;
  --warning: #ffc107;
  --success: #00e676;
  --kpi-number-size: 32px;
  --glow-primary: 0 0 20px rgba(59, 158, 255, 0.3), 0 0 40px rgba(59, 158, 255, 0.15);
  --glow-success: 0 0 20px rgba(0, 229, 160, 0.3), 0 0 40px rgba(0, 229, 160, 0.15);
  --glow-warning: 0 0 20px rgba(255, 184, 77, 0.3), 0 0 40px rgba(255, 184, 77, 0.15);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  min-height: 100%;
  font-family: "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(ellipse at 15% 20%, rgba(59, 158, 255, 0.15), transparent 50%),
    radial-gradient(ellipse at 85% 80%, rgba(0, 229, 160, 0.12), transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(255, 107, 157, 0.08), transparent 60%),
    linear-gradient(165deg, var(--bg-a) 0%, var(--bg-b) 45%, var(--bg-c) 100%);
  overflow-x: hidden;
  position: relative;
}

body {
  position: relative;
}

body.modal-open {
  overflow: hidden;
}

.screen-bg-orb {
  position: fixed;
  z-index: 0;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.6;
  animation: orbFloat 20s ease-in-out infinite;
}

.orb-a {
  width: 400px;
  height: 400px;
  left: -150px;
  bottom: -100px;
  background: radial-gradient(circle, rgba(59, 158, 255, 0.4), transparent 70%);
  animation-delay: 0s;
}

.orb-b {
  width: 350px;
  height: 350px;
  right: -100px;
  top: -50px;
  background: radial-gradient(circle, rgba(0, 229, 160, 0.35), transparent 70%);
  animation-delay: 10s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(20px, -20px) scale(1.05); }
  50% { transform: translate(-15px, 15px) scale(0.95); }
  75% { transform: translate(15px, 20px) scale(1.02); }
}

.dashboard {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  min-height: 100vh;
  margin: 0;
  padding: 10px;
  display: grid;
  gap: 6px;
}

.panel {
  border-radius: 16px;
  border: 1px solid var(--panel-border);
  background: var(--panel-bg);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 0 1px rgba(59, 158, 255, 0.05);
  backdrop-filter: blur(20px) saturate(180%);
  position: relative;
  overflow: hidden;
}

.panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59, 158, 255, 0.3), transparent);
  opacity: 0.5;
}

.topbar {
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 1.5px;
  background: linear-gradient(135deg, #fff 0%, #3b9eff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(59, 158, 255, 0.3);
  filter: drop-shadow(0 2px 8px rgba(59, 158, 255, 0.2));
}

.brand-sub {
  color: var(--text-muted);
  font-size: 12px;
}

.topbar-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  min-height: 28px;
  border-radius: 10px;
  border: 1px solid rgba(59, 158, 255, 0.2);
  background: linear-gradient(135deg, rgba(8, 28, 54, 0.8), rgba(5, 18, 36, 0.6));
  padding: 5px 10px;
  font-size: 12px;
  color: #b8d4f1;
  display: inline-flex;
  align-items: center;
  font-weight: 500;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid rgba(59, 158, 255, 0.25);
  background: linear-gradient(135deg, rgba(8, 28, 54, 0.8), rgba(5, 18, 36, 0.6));
  color: #e0f0ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.icon-btn:hover {
  background: linear-gradient(135deg, rgba(59, 158, 255, 0.2), rgba(8, 28, 54, 0.8));
  border-color: rgba(59, 158, 255, 0.5);
  box-shadow: 0 0 20px rgba(59, 158, 255, 0.3);
  transform: translateY(-2px);
}

.icon-btn:hover svg {
  transform: scale(1.1);
}

.icon-btn:active {
  transform: translateY(0) scale(0.95);
}

.btn {
  border: 1px solid rgba(146, 198, 255, 0.3);
  background: rgba(23, 73, 136, 0.54);
  color: var(--text-main);
  border-radius: 8px;
  font-size: 12px;
  padding: 7px 11px;
  cursor: pointer;
}

.btn:hover {
  background: rgba(33, 97, 177, 0.64);
}

.btn.primary {
  background: linear-gradient(145deg, rgba(68, 164, 255, 0.84), rgba(64, 114, 255, 0.82));
}

.kpi-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.kpi-item {
  border-radius: 16px;
  border: 1px solid rgba(59, 158, 255, 0.2);
  background: linear-gradient(135deg, rgba(8, 28, 54, 0.95), rgba(5, 18, 36, 0.9));
  padding: 10px 12px 11px;
  overflow: hidden;
  position: relative;
  animation: cardIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  min-height: 104px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  transition: all 0.3s ease;
}

.kpi-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-a), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.kpi-item:hover {
  transform: translateY(-4px);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(59, 158, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  border-color: rgba(59, 158, 255, 0.4);
}

.kpi-item:hover::before {
  opacity: 1;
}

.kpi-item.vehicle-status-card {
  min-height: 104px;
}

.kpi-head {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 18px;
}

.kpi-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.kpi-icon-img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(85%) sepia(22%) saturate(458%) hue-rotate(170deg) brightness(104%) contrast(98%);
}

.kpi-label {
  font-size: 12px;
  color: rgba(184, 212, 241, 0.9);
  letter-spacing: 0.5px;
  font-weight: 600;
  text-transform: uppercase;
}

.kpi-value {
  margin-top: 6px;
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #fff 0%, var(--accent-a) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 4px 12px rgba(59, 158, 255, 0.3));
}

.kpi-note {
  margin-top: 5px;
  font-size: 11px;
  color: rgba(139, 165, 199, 0.8);
  font-weight: 500;
}

.vehicle-status-grid {
  margin-top: 7px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 2fr) minmax(0, 0.9fr);
  gap: 7px;
  align-items: center;
}

.vehicle-status-column {
  min-width: 0;
}

.vehicle-status-column-main {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.vehicle-status-column-shifts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.vehicle-status-shift-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.vehicle-status-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
}

.vehicle-status-column-main .vehicle-status-metric {
  min-height: 58px;
  width: 100%;
}

.vehicle-status-name {
  font-size: 11px;
  color: rgba(195, 220, 248, 0.82);
  line-height: 1.2;
  text-align: center;
}

.vehicle-status-value {
  font-size: 26px;
  line-height: 1;
  font-weight: 800;
  color: #fff;
  text-align: center;
  filter: drop-shadow(0 4px 12px rgba(59, 158, 255, 0.3));
}

.vehicle-status-metric.state-working .vehicle-status-name,
.vehicle-status-metric.state-working .vehicle-status-value {
  color: var(--accent-a);
  filter: drop-shadow(0 0 8px rgba(59, 158, 255, 0.4));
}

.vehicle-status-metric.state-idle .vehicle-status-name,
.vehicle-status-metric.state-idle .vehicle-status-value {
  color: var(--accent-b);
  filter: drop-shadow(0 0 8px rgba(0, 229, 160, 0.4));
}

.vehicle-status-metric.state-maintenance .vehicle-status-name,
.vehicle-status-metric.state-maintenance .vehicle-status-value {
  color: var(--danger);
  filter: drop-shadow(0 0 8px rgba(255, 83, 112, 0.4));
}

.tire-category-grid {
  grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
}

.tire-category-grid .vehicle-status-metric {
  min-height: 58px;
}

.amount-split-card {
  min-height: 104px;
}

.amount-split-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.amount-split-metric {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.amount-split-label {
  font-size: 11px;
  color: rgba(195, 220, 248, 0.82);
  line-height: 1.2;
}

.amount-split-value {
  font-size: 20px;
  line-height: 1;
  font-weight: 800;
  color: var(--accent-b);
  white-space: nowrap;
  filter: drop-shadow(0 0 8px rgba(0, 229, 160, 0.35));
}

.amount-split-metric-tire .amount-split-value {
  color: var(--accent-a);
  filter: drop-shadow(0 0 8px rgba(59, 158, 255, 0.35));
}

.kpi-item.accent-a .kpi-value {
  background: linear-gradient(135deg, #fff 0%, var(--accent-a) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 4px 12px rgba(59, 158, 255, 0.4));
}
.kpi-item.accent-b .kpi-value {
  background: linear-gradient(135deg, #fff 0%, var(--accent-b) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 4px 12px rgba(0, 229, 160, 0.4));
}
.kpi-item.accent-c .kpi-value {
  background: linear-gradient(135deg, #fff 0%, var(--accent-c) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 4px 12px rgba(255, 184, 77, 0.4));
}
.kpi-item.accent-d .kpi-value {
  background: linear-gradient(135deg, #fff 0%, var(--accent-d) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 4px 12px rgba(255, 107, 157, 0.4));
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-items: stretch;
}

.chart-panel {
  padding: 8px 10px 9px;
  overflow: hidden;
}

.repair-cost-group {
  grid-column: span 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.repair-broadcast-panel {
  grid-column: 1 / -1;
  min-height: 132px;
  padding: 10px;
  overflow: hidden;
}

.panel-head {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #e8f4ff;
  margin-bottom: 7px;
  text-transform: uppercase;
  position: relative;
  padding-left: 12px;
}

.panel-head::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 16px;
  background: linear-gradient(180deg, var(--accent-a), var(--accent-b));
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(59, 158, 255, 0.5);
}

.panel-head.sub {
  margin-bottom: 6px;
  font-size: 12px;
}

.svg-chart {
  width: 100%;
  height: 230px;
  display: block;
}

.svg-chart.compact {
  height: 180px;
}

.axis-text {
  fill: var(--text-muted);
  font-size: 11px;
}

.grid-line {
  stroke: rgba(183, 214, 255, 0.2);
  stroke-width: 1;
}

.series-line {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.series-dot {
  r: 3;
}

.production-bar {
  fill: rgba(84, 196, 255, 0.7);
  transform-origin: bottom;
  animation: barGrow 0.8s ease both;
}

.production-target {
  stroke: var(--accent-c);
}

.donut-wrap {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 8px;
  align-items: center;
}

.donut-wrap.small {
  grid-template-columns: 140px 1fr;
}

.donut {
  width: 122px;
  height: 122px;
  border-radius: 50%;
  position: relative;
  background: conic-gradient(#1a3a5c 0 100%);
  box-shadow:
    inset 0 0 0 1px rgba(59, 158, 255, 0.2),
    0 4px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.donut:hover {
  transform: scale(1.05);
}

.donut.small {
  width: 130px;
  height: 130px;
}

.donut::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(2, 11, 26, 0.98), rgba(5, 20, 40, 0.95));
  box-shadow:
    inset 0 0 0 1px rgba(59, 158, 255, 0.15),
    inset 0 4px 12px rgba(0, 0, 0, 0.5);
}

.donut.small::after {
  inset: 12px;
}

.donut-inner {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}

.donut-label {
  font-size: 11px;
  color: var(--text-muted);
}

.donut-value {
  margin-top: 4px;
  font-size: 24px;
  font-weight: 800;
  background: linear-gradient(135deg, #fff 0%, var(--accent-a) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 8px rgba(59, 158, 255, 0.3));
}

.donut.small .donut-value {
  font-size: 21px;
}

.legend-list {
  display: grid;
  gap: 4px;
}

.legend-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: #d9e8ff;
}

.legend-name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px currentColor;
}

.legend-value {
  font-weight: 700;
}

.equipment-overview {
  display: grid;
  gap: 8px;
}

.equipment-overview-row {
  border-radius: 12px;
  border: 1px solid rgba(59, 158, 255, 0.2);
  background: linear-gradient(135deg, rgba(8, 28, 54, 0.85), rgba(5, 18, 36, 0.8));
  padding: 12px 14px;
  display: grid;
  gap: 10px;
  transition: all 0.3s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.equipment-overview-row:hover {
  border-color: rgba(59, 158, 255, 0.35);
  transform: translateX(4px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 4px 16px rgba(0, 0, 0, 0.2);
}

.equipment-overview-title {
  font-size: 14px;
  font-weight: 700;
  color: #f0f7ff;
  letter-spacing: 0.3px;
}

.equipment-overview-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-muted);
  font-size: 12px;
}

.equipment-overview-metric strong {
  color: #fff;
  font-weight: 800;
  margin-left: 4px;
}

.rank-list {
  display: grid;
  gap: 5px;
}

.rank-list.compact {
  gap: 5px;
}

.rank-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
  font-size: 12px;
}

.rank-index {
  color: var(--text-muted);
  min-width: 20px;
}

.rank-bar-wrap {
  height: 14px;
  border-radius: 999px;
  background: rgba(59, 158, 255, 0.08);
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.rank-bar {
  height: 100%;
  border-radius: 999px;
  width: var(--w, 0%);
  background: linear-gradient(90deg, rgba(59, 158, 255, 0.9), rgba(0, 229, 160, 0.85));
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 12px rgba(59, 158, 255, 0.4);
  position: relative;
}

.rank-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent);
  border-radius: 999px 999px 0 0;
}

.rank-label {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  color: #fff;
  white-space: nowrap;
  max-width: calc(100% - 20px);
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.rank-value {
  color: #e8f2ff;
  font-weight: 700;
  min-width: 64px;
  text-align: right;
}

.vehicle-cost-chart {
  width: 100%;
  flex: 1;
  min-height: 0;
  overflow-x: auto;
  overflow-y: hidden;
}

.vehicle-cost-svg {
  width: max-content;
  min-width: 100%;
  height: 100%;
  min-height: 132px;
  display: block;
}

.vehicle-cost-svg.is-modal {
  width: max-content;
  min-width: 100%;
  height: 100%;
  min-height: 520px;
}

.vehicle-cost-grid-line {
  stroke: rgba(184, 212, 241, 0.14);
  stroke-dasharray: 5 5;
  stroke-width: 1;
}

.vehicle-cost-axis-line {
  stroke: rgba(184, 212, 241, 0.28);
  stroke-width: 1;
}

.vehicle-cost-axis-text,
.vehicle-cost-label {
  fill: rgba(211, 228, 247, 0.78);
  font-size: 12px;
}

.vehicle-cost-value {
  fill: rgba(255, 205, 190, 0.9);
  font-size: 13px;
  font-weight: 700;
}

.vehicle-cost-bar {
  fill: rgba(255, 207, 196, 0.86);
  filter: drop-shadow(0 0 12px rgba(255, 184, 77, 0.18));
  transform-origin: bottom;
  animation: vehicleCostBarGrow 0.7s ease both;
}

.repair-broadcast-list {
  display: flex;
  gap: 12px;
  width: max-content;
}

.repair-broadcast-list.is-animated {
  animation: broadcastScrollX 42s linear infinite;
}

.repair-broadcast-item {
  flex: 0 0 320px;
  min-height: 108px;
  border-radius: 14px;
  border: 1px solid rgba(59, 158, 255, 0.25);
  background: linear-gradient(135deg, rgba(8, 28, 54, 0.9), rgba(5, 18, 36, 0.85));
  padding: 12px 14px;
  display: grid;
  gap: 8px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.repair-broadcast-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent-a), var(--accent-b));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.repair-broadcast-item:hover {
  border-color: rgba(59, 158, 255, 0.4);
  transform: translateY(-3px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 6px 20px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(59, 158, 255, 0.15);
}

.repair-broadcast-item:hover::before {
  opacity: 1;
}

.repair-broadcast-top,
.repair-broadcast-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.repair-broadcast-vehicle {
  font-size: 18px;
  font-weight: 800;
  background: linear-gradient(135deg, #fff 0%, var(--accent-a) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 6px rgba(59, 158, 255, 0.3));
}

.repair-broadcast-status {
  flex-shrink: 0;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(59, 158, 255, 0.3);
  background: linear-gradient(135deg, rgba(59, 158, 255, 0.15), rgba(0, 229, 160, 0.1));
  color: #6dd4ff;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(59, 158, 255, 0.2);
}

.repair-broadcast-desc {
  font-size: 13px;
  line-height: 1.45;
  color: #e0f0ff;
  min-height: 38px;
  font-weight: 400;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.repair-broadcast-meta {
  color: var(--text-muted);
  font-size: 12px;
}

.is-hidden {
  display: none !important;
}

 .status-panel,
 .overview-panel,
 .part-panel,
 .fault-panel,
 .repair-cost-group,
 .repair-cost-panel,
 .tire-model-panel {
  min-height: 0;
}

.status-panel {
  min-height: 168px;
}

.overview-panel,
.fault-panel,
.tire-model-panel {
  min-height: 154px;
}

.part-panel {
  min-height: 154px;
}

.repair-cost-group,
.repair-cost-panel {
  min-height: 168px;
}

.repair-cost-panel {
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.repair-cost-panel:focus-visible {
  outline: 2px solid rgba(91, 198, 255, 0.72);
  outline-offset: 2px;
}

.ops-summary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.ops-card {
  border-radius: 10px;
  border: 1px solid rgba(138, 189, 255, 0.2);
  background: rgba(9, 36, 69, 0.62);
  padding: 9px;
  display: grid;
  gap: 8px;
}

.ops-title {
  font-size: 12px;
  color: var(--text-muted);
}

.ops-metric-list {
  display: grid;
  gap: 6px;
}

.ops-metric-item {
  border-radius: 8px;
  border: 1px solid rgba(137, 182, 245, 0.2);
  background: rgba(10, 39, 75, 0.76);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  font-size: 12px;
}

.ops-metric-label {
  color: var(--text-muted);
}

.ops-metric-value {
  color: #eaf3ff;
  font-weight: 700;
}

.ops-amount {
  font-size: 24px;
  font-weight: 800;
  color: var(--accent-c);
  line-height: 1;
}

.ops-note {
  font-size: 11px;
  color: var(--text-muted);
}

.ops-trend-list {
  display: grid;
  gap: 4px;
}

.ops-trend-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
}

.ops-trend-label {
  color: var(--text-muted);
}

.ops-trend-value {
  color: #dcedff;
  font-weight: 700;
}

.module-flow {
  display: grid;
  gap: 8px;
}

.module-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 56px;
  gap: 8px;
  align-items: center;
  font-size: 12px;
}

.module-name {
  color: #dbeaff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: keep-all;
  writing-mode: horizontal-tb;
  text-orientation: mixed;
  line-height: 1.2;
}

.module-bar {
  height: 16px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(121, 173, 235, 0.16);
  display: flex;
}

.module-seg {
  height: 100%;
  width: 0;
  transition: width 0.45s ease;
}

.module-seg.pending { background: var(--warning); }
.module-seg.processing { background: var(--accent-a); }
.module-seg.completed { background: var(--accent-b); }
.module-seg.rejected { background: var(--danger); }

.module-total {
  text-align: right;
  color: #d7e8ff;
  font-weight: 700;
}

.two-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}

.two-split > * {
  min-width: 0;
}

.ticker-wrap {
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(147, 195, 255, 0.2);
  background: rgba(9, 35, 67, 0.7);
}

.ticker-track {
  display: inline-flex;
  gap: 28px;
  white-space: nowrap;
  padding: 8px 12px;
  font-size: 12px;
  color: #d8ebff;
  animation: tickerMove 18s linear infinite;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ticker-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent-c);
}

.alert-list {
  display: grid;
  gap: 6px;
  max-height: 300px;
  overflow: auto;
  padding-right: 4px;
}

.alert-item {
  font-size: 12px;
  border-radius: 8px;
  border: 1px solid rgba(147, 191, 253, 0.2);
  background: rgba(11, 41, 77, 0.75);
  padding: 8px 9px;
  display: grid;
  gap: 4px;
}

.alert-item.critical {
  border-color: rgba(255, 125, 147, 0.5);
  background: rgba(89, 20, 38, 0.5);
}

.alert-item.warning {
  border-color: rgba(255, 205, 106, 0.45);
}

.alert-title {
  font-weight: 700;
}

.alert-detail {
  color: #d1e4ff;
}

.alert-time {
  color: var(--text-muted);
  font-size: 11px;
}

.alert-list::-webkit-scrollbar {
  width: 6px;
}

.alert-list::-webkit-scrollbar-thumb {
  background: rgba(150, 191, 255, 0.45);
  border-radius: 999px;
}

.warning-table-wrap {
  max-height: 220px;
  overflow: auto;
}

.warning-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.warning-table th,
.warning-table td {
  text-align: left;
  padding: 6px 6px;
  border-bottom: 1px solid rgba(132, 176, 235, 0.16);
}

.warning-table th {
  color: var(--text-muted);
  position: sticky;
  top: 0;
  background: rgba(13, 43, 80, 0.95);
}

.status-badge {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid rgba(146, 188, 255, 0.2);
  background: rgba(16, 52, 98, 0.8);
}

.status-badge.danger {
  border-color: rgba(255, 133, 154, 0.55);
  color: #ffd7df;
  background: rgba(96, 25, 44, 0.56);
}

.config-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(2, 10, 18, 0.72);
  display: grid;
  place-items: center;
}

.config-modal.hidden {
  display: none;
}

.cost-chart-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(2, 10, 18, 0.82);
  display: grid;
  place-items: center;
  padding: 20px;
}

.cost-chart-modal.hidden {
  display: none;
}

.cost-chart-modal-panel {
  width: min(1760px, calc(100vw - 40px));
  height: min(920px, calc(100vh - 40px));
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
}

.cost-chart-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex: 0 0 auto;
}

.cost-chart-modal-close {
  flex: 0 0 auto;
}

.cost-chart-modal-body {
  flex: 1;
  overflow-x: auto;
  overflow-y: hidden;
}

.config-panel {
  width: min(620px, calc(100vw - 32px));
  padding: 14px;
  display: grid;
  gap: 10px;
}

.config-title {
  font-size: 18px;
  font-weight: 700;
}

.config-item {
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.config-item input {
  border-radius: 8px;
  border: 1px solid rgba(132, 180, 244, 0.32);
  background: rgba(11, 38, 72, 0.85);
  color: var(--text-main);
  font-size: 13px;
  padding: 8px 10px;
  outline: none;
}

.config-item input:focus {
  border-color: rgba(101, 183, 255, 0.76);
  box-shadow: 0 0 0 2px rgba(95, 179, 255, 0.2);
}

.config-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.config-radio {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(132, 180, 244, 0.32);
  background: rgba(11, 38, 72, 0.85);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  color: var(--text-main);
  cursor: pointer;
}

.config-radio input {
  margin: 0;
}

.config-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.empty-state {
  border-radius: 12px;
  border: 1px dashed rgba(59, 158, 255, 0.25);
  padding: 16px;
  font-size: 13px;
  color: rgba(139, 165, 199, 0.8);
  text-align: center;
  background: rgba(8, 28, 54, 0.3);
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes barGrow {
  from {
    transform: scaleY(0);
    opacity: 0;
  }
  to {
    transform: scaleY(1);
    opacity: 1;
  }
}

@keyframes tickerMove {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes broadcastScrollX {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-50% - 6px));
  }
}

@keyframes vehicleCostBarGrow {
  from {
    transform: scaleY(0.08);
    opacity: 0.55;
  }
  to {
    transform: scaleY(1);
    opacity: 1;
  }
}

@media (max-width: 1480px) {
  .dashboard {
    padding: 8px;
    gap: 6px;
  }

  .kpi-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .kpi-value {
    font-size: 22px;
  }

  .kpi-item {
    min-height: 96px;
    padding: 8px 10px 9px;
  }

  .dashboard-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .chart-panel {
    padding: 7px 8px 8px;
  }

  .panel-head {
    margin-bottom: 6px;
  }

  .svg-chart {
    height: 160px;
  }

  .svg-chart.compact {
    height: 132px;
  }

  .vehicle-cost-svg {
    height: 132px;
  }

  .two-split {
    grid-template-columns: 1fr;
  }

  .donut-wrap {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .donut {
    width: 100px;
    height: 100px;
  }

  .donut.small {
    width: 92px;
    height: 92px;
  }

  .alert-list {
    max-height: 220px;
  }

  .repair-broadcast-panel {
    min-height: 116px;
  }
}

@media (max-width: 1280px) {
  .kpi-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .repair-cost-group,
  .repair-cost-panel,
  .repair-broadcast-panel {
    grid-column: auto;
  }

  .repair-cost-group {
    grid-template-columns: 1fr;
  }

  .two-split {
    grid-template-columns: 1fr;
  }

  .ops-summary {
    grid-template-columns: 1fr;
  }

  .donut-wrap {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .repair-broadcast-panel {
    min-height: 126px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar-meta {
    justify-content: flex-start;
  }
}

@media (max-height: 980px) and (min-width: 1200px) {
  .dashboard {
    padding: 8px;
    gap: 6px;
  }

  .topbar {
    padding: 10px 12px;
  }

  .brand-title {
    font-size: 22px;
  }

  .kpi-row {
    gap: 6px;
  }

  .kpi-item {
    min-height: 96px;
    padding: 8px 10px 9px;
  }

  .kpi-value {
    font-size: 22px;
    margin-top: 4px;
  }

  .kpi-note {
    margin-top: 5px;
  }

  .chart-panel {
    padding: 7px 8px 8px;
  }

  .panel-head {
    margin-bottom: 6px;
  }

  .svg-chart {
    height: 160px;
  }

  .svg-chart.compact {
    height: 132px;
  }

  .vehicle-cost-svg {
    height: 132px;
  }

  .donut {
    width: 100px;
    height: 100px;
  }

  .donut.small {
    width: 92px;
    height: 92px;
  }

  .alert-list {
    max-height: 220px;
  }

  .repair-broadcast-panel {
    min-height: 116px;
  }
}

@media (max-width: 900px) {
  .kpi-row {
    grid-template-columns: 1fr;
  }

  .brand-title {
    font-size: 22px;
  }

  .kpi-value {
    font-size: 22px;
  }
}
