/* /Components/AlertsComponent.razor.rz.scp.css */
.alerts-panel[b-og79gpsl41] {
    width: 100%;
    font-family: 'IBM Plex Mono', monospace;
}

/* ── Empty state ─────────────────────────────────────────────────────────── */

.alerts-empty[b-og79gpsl41] {
    display:         flex;
    align-items:     center;
    gap:             10px;
    padding:         20px 16px;
    color:           #6b7280;
    font-size:       0.9rem;
}

.alerts-empty-icon[b-og79gpsl41] {
    display:          inline-flex;
    align-items:      center;
    justify-content:  center;
    width:            24px;
    height:           24px;
    border-radius:    50%;
    background:       #22c55e22;
    color:            #22c55e;
    font-size:        0.8rem;
    font-weight:      700;
    flex-shrink:      0;
}

/* ── Table ───────────────────────────────────────────────────────────────── */

.alerts-table[b-og79gpsl41] {
    width:           100%;
    border-collapse: collapse;
    font-size:       0.85rem;
}

.alerts-table thead tr[b-og79gpsl41] {
    border-bottom: 1px solid #ffffff14;
}

.alerts-table th[b-og79gpsl41] {
    padding:        10px 14px;
    text-align:     left;
    font-size:      0.72rem;
    font-weight:    600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color:          #6b7280;
    white-space:    nowrap;
}

.alerts-table td[b-og79gpsl41] {
    padding:       12px 14px;
    border-bottom: 1px solid #ffffff08;
    vertical-align: middle;
}

.alert-row:last-child td[b-og79gpsl41] {
    border-bottom: none;
}

/* Row accent — left border by status */
.alert-row.status-alarm td:first-child[b-og79gpsl41] {
    border-left: 3px solid #ef4444;
    padding-left: 11px;
}

.alert-row.status-delayed td:first-child[b-og79gpsl41] {
    border-left: 3px solid #f97316;
    padding-left: 11px;
}

.alert-row.status-maintenance td:first-child[b-og79gpsl41] {
    border-left: 3px solid #9ca3af;
    padding-left: 11px;
}

/* ── Status badge ────────────────────────────────────────────────────────── */

.status-badge[b-og79gpsl41] {
    display:       inline-block;
    padding:       3px 10px;
    border-radius: 4px;
    font-size:     0.75rem;
    font-weight:   600;
    letter-spacing: 0.04em;
    white-space:   nowrap;
}

.status-badge.status-alarm[b-og79gpsl41] {
    background: #ef444422;
    color:      #f87171;
    border:     1px solid #ef444440;
}

.status-badge.status-delayed[b-og79gpsl41] {
    background: #f9731622;
    color:      #fb923c;
    border:     1px solid #f9731640;
}

.status-badge.status-maintenance[b-og79gpsl41] {
    background: #9ca3af22;
    color:      #d1d5db;
    border:     1px solid #9ca3af40;
}

/* ── Point name ──────────────────────────────────────────────────────────── */

.point-name[b-og79gpsl41] {
    font-weight: 500;
    color:       #f3f4f6;
}

/* ── Device status cells ─────────────────────────────────────────────────── */

.device-cell[b-og79gpsl41] {
    font-size: 0.8rem;
}

.device-cell.device-online[b-og79gpsl41]  { color: #22c55e; }
.device-cell.device-delayed[b-og79gpsl41] { color: #f97316; }
.device-cell.device-offline[b-og79gpsl41] { color: #ef4444; }

/* ── Last seen ───────────────────────────────────────────────────────────── */

.last-seen[b-og79gpsl41] {
    color:     #6b7280;
    font-size: 0.8rem;
    white-space: nowrap;
}
/* /Components/MapComponent.razor.rz.scp.css */
/* Leaflet renders inside a plain div — tweak the popup style to match the dark theme */

:global(.leaflet-popup-content-wrapper)[b-rn932j8v2m] {
    background:    #1f2937;
    color:         #f3f4f6;
    border-radius: 6px;
    border:        1px solid #374151;
    box-shadow:    0 4px 20px #00000060;
    font-family:   'IBM Plex Mono', monospace;
}

:global(.leaflet-popup-tip)[b-rn932j8v2m] {
    background: #1f2937;
}

:global(.leaflet-popup-close-button)[b-rn932j8v2m] {
    color: #9ca3af !important;
}

:global(.leaflet-popup-close-button:hover)[b-rn932j8v2m] {
    color: #f3f4f6 !important;
}
/* /Components/Shared/HeartbeatRegularityGrid.razor.rz.scp.css */
.regularity-header[b-ybszeku5tr] {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.regularity-grid[b-ybszeku5tr] {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
}

.regularity-cell[b-ybszeku5tr] {
    width:  14px;
    height: 14px;
    border-radius: 3px;
    cursor: default;
    transition: opacity 0.15s;
}

.regularity-cell:hover[b-ybszeku5tr] {
    opacity: 0.75;
}

.regularity-cell.received[b-ybszeku5tr] {
    background-color: #33e033;
}

.regularity-cell.missed[b-ybszeku5tr] {
    background-color: #ef4444;
}

.regularity-legend[b-ybszeku5tr] {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
}

.legend-dot[b-ybszeku5tr] {
    width:  10px;
    height: 10px;
    border-radius: 2px;
    display: inline-block;
}

.legend-dot.received[b-ybszeku5tr] { background-color: #33e033; }
.legend-dot.missed[b-ybszeku5tr]   { background-color: #ef4444; }
/* /Components/Shared/PairedHeartbeatRegularityGrid.razor.rz.scp.css */
.paired-regularity-header[b-pqo8r1okdx] {
    display:     flex;
    align-items: center;
    margin-bottom: 12px;
}

.paired-regularity-grid[b-pqo8r1okdx] {
    display:   flex;
    flex-wrap: wrap;
    gap:       3px;
}

/* Left half = device A, right half = device B */
.paired-cell[b-pqo8r1okdx] {
    width:         14px;
    height:        14px;
    border-radius: 3px;
    cursor:        default;
}

.paired-cell.both-received[b-pqo8r1okdx] {
    background-color: #33e033;
}

.paired-cell.a-missed[b-pqo8r1okdx] {
    background: linear-gradient(to right, #ef4444 50%, #33e033 50%);
}

.paired-cell.b-missed[b-pqo8r1okdx] {
    background: linear-gradient(to right, #33e033 50%, #ef4444 50%);
}

.paired-cell.both-missed[b-pqo8r1okdx] {
    background-color: #ef4444;
}

.paired-regularity-legend[b-pqo8r1okdx] {
    display:     flex;
    align-items: center;
    gap:         6px;
    margin-top:  10px;
    flex-wrap:   wrap;
}

.legend-swatch[b-pqo8r1okdx] {
    width:         14px;
    height:        14px;
    border-radius: 3px;
    flex-shrink:   0;
}

.swatch-both-received[b-pqo8r1okdx] { background-color: #33e033; }
.swatch-a-missed[b-pqo8r1okdx]      { background: linear-gradient(to right, #ef4444 50%, #33e033 50%); }
.swatch-b-missed[b-pqo8r1okdx]      { background: linear-gradient(to right, #33e033 50%, #ef4444 50%); }
.swatch-both-missed[b-pqo8r1okdx]   { background-color: #ef4444; }
/* /Components/Shared/ReportView.razor.rz.scp.css */
/* ── Summary cards ──────────────────────────────────────────────────────── */
.summary-card[b-6s0bm13lf0] {
  text-align: center;
}

/* ── Shared table styles ────────────────────────────────────────────────── */
.table-responsive[b-6s0bm13lf0] {
  overflow-x: auto;
  width: 100%;
}

.report-table[b-6s0bm13lf0] {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.report-table thead tr[b-6s0bm13lf0] {
  border-bottom: 2px solid rgba(255, 255, 255, 0.08);
}

.report-table th[b-6s0bm13lf0] {
  padding: 8px 10px;
  text-align: left;
  font-weight: 600;
  color: var(--mud-palette-text-secondary);
  white-space: nowrap;
}

.report-table td[b-6s0bm13lf0] {
  padding: 7px 10px;
  vertical-align: middle;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  white-space: nowrap;
}

.report-table tbody tr:hover[b-6s0bm13lf0] {
  background: rgba(255, 255, 255, 0.03);
}

.report-table tbody tr.row-ongoing[b-6s0bm13lf0] {
  background: rgba(239, 68, 68, 0.05);
}

.point-name-cell[b-6s0bm13lf0] {
  font-weight: 500;
}

.mono[b-6s0bm13lf0] {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
}

/* ── Status badges ──────────────────────────────────────────────────────── */
.status-badge[b-6s0bm13lf0] {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.badge-online[b-6s0bm13lf0] {
  background: rgba(51, 224, 51, 0.15);
  color: var(--status-online);
}
.badge-delayed[b-6s0bm13lf0] {
  background: rgba(245, 158, 11, 0.15);
  color: var(--status-delayed);
}
.badge-maintenance[b-6s0bm13lf0] {
  background: rgba(167, 139, 250, 0.15);
  color: var(--status-maintenance);
}
.badge-alarm[b-6s0bm13lf0] {
  background: rgba(239, 68, 68, 0.15);
  color: var(--status-alarm);
}

/* ── Continuity Gantt ───────────────────────────────────────────────────── */
.gantt-wrapper[b-6s0bm13lf0] {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 2px 0;
  overflow-x: auto;
}

.gantt-label-col[b-6s0bm13lf0] {
  display: flex;
  align-items: center;
  padding-right: 10px;
}

.gantt-point-label[b-6s0bm13lf0] {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}

.gantt-days-header[b-6s0bm13lf0],
.gantt-days-row[b-6s0bm13lf0] {
  display: flex;
  gap: 3px;
  align-items: center;
}

.gantt-day-label[b-6s0bm13lf0] {
  width: 28px;
  text-align: center;
  font-size: 0.6rem;
  color: var(--mud-palette-text-secondary);
  white-space: nowrap;
  overflow: hidden;
}

.gantt-cell[b-6s0bm13lf0] {
  width: 28px;
  height: 20px;
  border-radius: 3px;
  flex-shrink: 0;
  cursor: default;
}

.gantt-cell--online[b-6s0bm13lf0] {
  background-color: rgba(51, 224, 51, 0.75);
}
.gantt-cell--delayed[b-6s0bm13lf0] {
  background-color: rgba(245, 158, 11, 0.8);
}
.gantt-cell--maintenance[b-6s0bm13lf0] {
  background-color: rgba(167, 139, 250, 0.8);
}
.gantt-cell--alarm[b-6s0bm13lf0] {
  background-color: rgba(239, 68, 68, 0.85);
}

.gantt-legend[b-6s0bm13lf0] {
  display: flex;
  gap: 16px;
  margin-top: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.gantt-legend-item[b-6s0bm13lf0] {
  display: flex;
  align-items: center;
  gap: 6px;
}
