/* Dashboard side, bottom, overview, system, and table panel internals. */

.bottom-row {
  display: grid;
  /* Chỉ còn cột TRÁI + GIỮA (parking + party); cột phải nhường cho khối Không gian VH HCM
     (right-rail span 2/4 xuống hàng này). Ghim hàng 3 rõ ràng để tránh auto-placement tạo
     hàng 4 ngầm (làm hàng giữa 1fr bị bóp). */
  grid-column: 1 / 3;
  grid-row: 3;
  grid-template-columns: clamp(22rem, 23vw, 28rem) minmax(34rem, 1fr);
  gap: var(--space-4);
  min-height: 0;
}

.bottom-row .panel {
  min-height: 0;
}

.bottom-row .split-summary {
  min-height: 0;
  padding: var(--space-2) var(--space-4);
}

.bottom-row .donut {
  width: 6.25rem;
  height: 6.25rem;
}

.bottom-row .donut::before {
  inset: 0.6875rem;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
  padding: var(--space-3);
}

.overview-tile {
  display: grid;
  place-items: center;
  min-height: 3.625rem;
  border: 1px solid var(--alpha-blue-52144235-22);
  background: var(--alpha-navy-073373-68);
}

.overview-tile__label {
  color: var(--color-text-soft);
  font-size: var(--text-xs);
  line-height: 1;
}

.overview-tile__value {
  color: var(--color-dashboard-blue-text);
  font-size: var(--text-xl);
  font-weight: 900;
  line-height: 1.2;
  text-shadow: 0 0 10px var(--alpha-blue-73160255-50);
}

.overview-tile__unit {
  margin-left: var(--space-1);
  color: var(--color-text-soft);
  font-size: var(--text-xs);
  font-weight: 700;
}

.split-summary {
  display: flex;
  gap: var(--space-5);
  align-items: center;
  height: calc(100% - 2.25rem);
  padding: var(--space-3) var(--space-4);
}

.facility-panel .data-table {
  margin-top: 0.375rem;
  font-size: var(--text-2xs);
}

.facility-panel .data-table th,
.facility-panel .data-table td {
  padding: 0.1875rem var(--space-2);
  line-height: 1.08;
}

.system-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3) var(--space-2);
  padding: var(--space-4) var(--space-3);
}

.system-item {
  display: grid;
  --tone-color: var(--color-mint);
  justify-items: center;
  gap: var(--space-1);
  min-width: 0;
  text-align: center;
}

.system-item--success {
  --tone-color: var(--color-mint);
}

.system-item--warning {
  --tone-color: var(--color-yellow);
}

.system-item--danger {
  --tone-color: var(--color-danger);
}

.system-item--info {
  --tone-color: var(--color-cyan);
}

.system-item__icon {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: var(--tone-color, var(--color-mint));
  background: var(--alpha-navy-074583-72);
  box-shadow: 0 0 14px color-mix(in srgb, var(--tone-color, var(--color-mint)) 55%, transparent);
}

.system-item__icon svg {
  width: 1rem;
  height: 1rem;
}

.system-item__name,
.system-item__status {
  width: 100%;
  overflow: hidden;
  font-size: var(--text-xs);
  line-height: 1.12;
  text-overflow: ellipsis;
}

.system-item__name {
  color: var(--color-text);
}

.system-item__status {
  color: var(--tone-color, var(--color-mint));
  font-weight: 700;
}

.event-table td:nth-child(2),
.event-table th:nth-child(2) {
  text-align: left;
}

.event-table td:nth-child(3),
.event-table th:nth-child(3) {
  text-align: left;
}
