﻿/* Status des services — tableau monitoring */

.fh-status .fh-dash-panel { margin-bottom: 1rem; }
#monitor-alerts { margin-bottom: 1rem; }

/* —— Barre de status (hero) —— */
.fh-svc-status-bar {
  position: relative;
  margin-bottom: 1rem;
  padding: 1.15rem 1.25rem 1rem;
  border-radius: 16px;
  background: linear-gradient(155deg, rgba(14, 26, 44, 0.95) 0%, rgba(8, 14, 26, 0.92) 100%);
  border: 1px solid rgba(77, 163, 255, 0.14);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.fh-svc-status-bar__glow {
  position: absolute;
  top: -40%;
  right: -5%;
  width: 45%;
  height: 120%;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.35;
  filter: blur(48px);
}

.fh-svc-status-bar--success .fh-svc-status-bar__glow { background: radial-gradient(circle, rgba(74, 222, 128, 0.45), transparent 70%); }
.fh-svc-status-bar--warning .fh-svc-status-bar__glow { background: radial-gradient(circle, rgba(251, 191, 36, 0.4), transparent 70%); }
.fh-svc-status-bar--danger .fh-svc-status-bar__glow { background: radial-gradient(circle, rgba(248, 113, 113, 0.4), transparent 70%); }

.fh-svc-status-bar--success { border-color: rgba(74, 222, 128, 0.2); }
.fh-svc-status-bar--warning { border-color: rgba(251, 191, 36, 0.25); }
.fh-svc-status-bar--danger { border-color: rgba(248, 113, 113, 0.25); }

.fh-svc-status-bar__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.fh-svc-status-bar__identity { min-width: 0; }

.fh-svc-status-bar__title {
  margin: 0.35rem 0 0.2rem;
  font-size: clamp(1.35rem, 2.8vw, 1.75rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.fh-svc-status-bar__sub {
  margin: 0;
  font-size: 0.8rem;
  color: var(--fh-muted);
}

.fh-svc-status-bar__sep { margin: 0 0.35rem; opacity: 0.5; }

.fh-svc-live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.fh-svc-live__dot {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  animation: fh-svc-pulse 2s ease-in-out infinite;
}

.fh-svc-live--success { color: #86efac; background: rgba(74, 222, 128, 0.12); border: 1px solid rgba(74, 222, 128, 0.28); }
.fh-svc-live--success .fh-svc-live__dot { background: #4ade80; box-shadow: 0 0 8px rgba(74, 222, 128, 0.6); }
.fh-svc-live--warning { color: #fcd34d; background: rgba(251, 191, 36, 0.12); border: 1px solid rgba(251, 191, 36, 0.28); }
.fh-svc-live--warning .fh-svc-live__dot { background: #fbbf24; }
.fh-svc-live--danger { color: #fca5a5; background: rgba(248, 113, 113, 0.12); border: 1px solid rgba(248, 113, 113, 0.28); }
.fh-svc-live--danger .fh-svc-live__dot { background: #f87171; }

@keyframes fh-svc-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.9); }
}

.fh-svc-status-bar__tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.fh-svc-tool-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  padding: 0;
  border-radius: 10px;
  border: 1px solid rgba(77, 163, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: var(--fh-muted);
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}

.fh-svc-tool-btn:hover {
  color: #fff;
  border-color: rgba(77, 163, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

.fh-svc-tool-btn--primary {
  color: #fff;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border-color: rgba(96, 165, 250, 0.5);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.35);
}

.fh-svc-tool-btn--primary:hover {
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.45);
}

#manual-refresh-btn.is-loading i { animation: fh-svc-spin 0.8s linear infinite; }
@keyframes fh-svc-spin { to { transform: rotate(360deg); } }

.fh-svc-status-bar__metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.55rem;
  margin-bottom: 0.85rem;
  position: relative;
  z-index: 1;
}

.fh-svc-metric {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(77, 163, 255, 0.1);
  transition: border-color 0.2s ease;
}

.fh-svc-metric.is-updated { animation: fh-svc-pop 0.45s ease; }

@keyframes fh-svc-pop {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

.fh-svc-metric__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 9px;
  font-size: 0.85rem;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.05);
}

.fh-svc-metric__body {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.fh-svc-metric__val {
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: #fff;
}

.fh-svc-metric__lbl {
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--fh-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fh-svc-metric--info .fh-svc-metric__icon, .fh-svc-metric--info .fh-svc-metric__val { color: #93c5fd; }
.fh-svc-metric--success .fh-svc-metric__icon, .fh-svc-metric--success .fh-svc-metric__val { color: #4ade80; }
.fh-svc-metric--warning .fh-svc-metric__icon, .fh-svc-metric--warning .fh-svc-metric__val { color: #fbbf24; }
.fh-svc-metric--danger .fh-svc-metric__icon, .fh-svc-metric--danger .fh-svc-metric__val { color: #f87171; }
.fh-svc-metric--muted .fh-svc-metric__icon, .fh-svc-metric--muted .fh-svc-metric__val { color: var(--fh-muted); }

.fh-svc-status-bar__health {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  z-index: 1;
}

.fh-svc-healthbar {
  flex: 1;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.fh-svc-healthbar__fill {
  height: 100%;
  border-radius: inherit;
  transition: width 0.6s ease;
}

.fh-svc-healthbar__fill--success { background: linear-gradient(90deg, #22c55e, #4ade80); }
.fh-svc-healthbar__fill--warning { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.fh-svc-healthbar__fill--danger { background: linear-gradient(90deg, #ef4444, #f87171); }

.fh-svc-status-bar__health-label {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--fh-muted);
  font-variant-numeric: tabular-nums;
}

.fh-svc-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
}

.fh-svc-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }

.fh-svc-toggle__track {
  width: 2rem;
  height: 1.1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(77, 163, 255, 0.15);
  position: relative;
  transition: background 0.2s ease;
}

.fh-svc-toggle__track::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 0.75rem; height: 0.75rem;
  border-radius: 50%;
  background: #94a3b8;
  transition: transform 0.2s ease;
}

.fh-svc-toggle input:checked + .fh-svc-toggle__track {
  background: rgba(59, 130, 246, 0.35);
  border-color: rgba(96, 165, 250, 0.45);
}

.fh-svc-toggle input:checked + .fh-svc-toggle__track::after {
  transform: translateX(0.85rem);
  background: #60a5fa;
}

.fh-svc-toggle__label { font-size: 0.72rem; color: var(--fh-muted); }

.fh-svc-countdown {
  min-width: 2.4rem;
  padding: 0.25rem 0.45rem;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  text-align: center;
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.2);
}

/* —— Historique incidents (timeline) —— */
.fh-svc-history {
  padding: 1rem 1.15rem;
  margin-bottom: 1rem;
}

.fh-svc-history__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.fh-svc-history__title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.fh-svc-history__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  font-size: 0.95rem;
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.2);
}

.fh-svc-history__title h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--fh-text);
}

.fh-svc-history__title p {
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  color: var(--fh-muted);
}

.fh-svc-history__actions {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
}

.fh-svc-timeline-wrap {
  max-height: 280px;
  overflow-y: auto;
  padding-right: 0.25rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(96, 165, 250, 0.4) rgba(255, 255, 255, 0.04);
}

.fh-svc-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 4rem;
}

.fh-svc-timeline__loading,
.fh-svc-timeline__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 2rem 1rem;
  text-align: center;
  color: var(--fh-muted);
}

.fh-svc-timeline__empty-icon {
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.15rem;
  color: #4ade80;
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.25);
}

.fh-svc-timeline__empty h3 {
  margin: 0;
  font-size: 0.95rem;
  color: var(--fh-text);
}

.fh-svc-timeline__empty p {
  margin: 0;
  font-size: 0.8rem;
  max-width: 36ch;
}

.fh-svc-timeline-item {
  display: flex;
  gap: 0.75rem;
  animation: fh-svc-timeline-in 0.35s ease backwards;
}

.fh-svc-timeline-item:last-child .fh-svc-timeline-item__line { display: none; }

@keyframes fh-svc-timeline-in {
  from { opacity: 0; transform: translateX(-6px); }
  to { opacity: 1; transform: translateX(0); }
}

.fh-svc-timeline-item__rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 1rem;
  flex-shrink: 0;
  padding-top: 0.85rem;
}

.fh-svc-timeline-item__dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid rgba(8, 14, 26, 0.9);
  box-shadow: 0 0 0 2px currentColor;
}

.fh-svc-timeline-item__dot.online { color: #4ade80; background: #4ade80; }
.fh-svc-timeline-item__dot.offline { color: #f87171; background: #f87171; }
.fh-svc-timeline-item__dot.ddos { color: #fbbf24; background: #fbbf24; }

.fh-svc-timeline-item__line {
  flex: 1;
  width: 2px;
  min-height: 0.75rem;
  margin-top: 0.25rem;
  background: linear-gradient(180deg, rgba(77, 163, 255, 0.25), rgba(77, 163, 255, 0.06));
  border-radius: 2px;
}

.fh-svc-timeline-item__card {
  flex: 1;
  margin-bottom: 0.65rem;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  background: rgba(8, 14, 26, 0.55);
  border: 1px solid rgba(77, 163, 255, 0.1);
  transition: border-color 0.15s ease;
}

.fh-svc-timeline-item__card:hover {
  border-color: rgba(77, 163, 255, 0.22);
}

.fh-svc-timeline-item__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.fh-svc-timeline-item__name {
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
}

.fh-svc-timeline-item__badge {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.18rem 0.45rem;
  border-radius: 6px;
  flex-shrink: 0;
}

.fh-svc-timeline-item__badge.restored { color: #4ade80; background: rgba(74, 222, 128, 0.12); }
.fh-svc-timeline-item__badge.down { color: #f87171; background: rgba(248, 113, 113, 0.12); }
.fh-svc-timeline-item__badge.attack { color: #fbbf24; background: rgba(251, 191, 36, 0.12); }

.fh-svc-timeline-item__flow {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.45rem;
  font-size: 0.75rem;
}

.fh-svc-timeline-item__flow > i { font-size: 0.6rem; color: var(--fh-muted); opacity: 0.6; }

.fh-svc-timeline-item__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 500;
}

.fh-svc-timeline-item__chip.online { color: #86efac; background: rgba(74, 222, 128, 0.1); }
.fh-svc-timeline-item__chip.offline { color: #fca5a5; background: rgba(248, 113, 113, 0.1); }
.fh-svc-timeline-item__chip.ddos { color: #fcd34d; background: rgba(251, 191, 36, 0.1); }

.fh-svc-timeline-item__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.72rem;
  color: var(--fh-muted);
}

.fh-svc-timeline-item__ping {
  font-weight: 600;
  color: #93c5fd;
  font-variant-numeric: tabular-nums;
}

.fh-svc-timeline__error {
  text-align: center;
  padding: 1.25rem;
  color: #fca5a5;
}

/* Legacy hero removed — use fh-svc-status-bar */
.fh-svc-hero--slim { display: none; }

/* Alertes */
.fh-svc-alert { position: relative; }
.fh-svc-alert__close {
  width: 1.75rem; height: 1.75rem;
  padding: 0; border: none; border-radius: 6px;
  background: rgba(255,255,255,0.06);
  color: var(--fh-muted); cursor: pointer;
}

/* —— Contrôles sticky —— */
.fh-svc-controls {
  padding: 0.8rem 1rem;
  z-index: 20;
}

.fh-svc-controls--sticky {
  position: sticky;
  top: 0.5rem;
  backdrop-filter: blur(14px);
  background: rgba(8,14,26,0.88) !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}

.fh-svc-controls__cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.7rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid rgba(77,163,255,0.08);
}

.fh-svc-cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.32rem 0.65rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--fh-muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(77,163,255,0.12);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.fh-svc-cat-chip i { font-size: 0.82rem; color: var(--cat-color, #94a3b8); }
.fh-svc-cat-chip:hover { border-color: rgba(77,163,255,0.25); color: var(--fh-text); }
.fh-svc-cat-chip.is-active { color: #fff; background: rgba(59,130,246,0.2); border-color: rgba(96,165,250,0.4); }
.fh-svc-cat-chip--warning.is-active { background: rgba(251,191,36,0.15); border-color: rgba(251,191,36,0.35); }
.fh-svc-cat-chip--danger.is-active { background: rgba(248,113,113,0.15); border-color: rgba(248,113,113,0.35); }

.fh-svc-cat-chip__count {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.08rem 0.3rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  font-variant-numeric: tabular-nums;
}

.fh-svc-controls__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 0.85rem;
}

.fh-svc-search {
  flex: 1 1 160px;
  min-width: 0;
  max-width: 260px;
}

.fh-svc-search input { width: 100%; }

.fh-svc-chips { display: flex; flex-wrap: wrap; gap: 0.3rem; }

.fh-svc-chips .fh-filter-chip {
  font-size: 0.73rem;
  padding: 0.28rem 0.55rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.fh-svc-chips .fh-filter-chip.is-active {
  background: rgba(59,130,246,0.22);
  border-color: rgba(96,165,250,0.4);
  color: #fff;
}

.fh-svc-chip-count {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.05rem 0.3rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  font-variant-numeric: tabular-nums;
}

.fh-svc-sort {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.fh-svc-sort__label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--fh-muted);
  margin-right: 0.15rem;
}

.fh-svc-sort__btn {
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--fh-muted);
  background: transparent;
  border: 1px solid rgba(77,163,255,0.12);
  cursor: pointer;
  transition: all 0.15s ease;
}

.fh-svc-sort__btn:hover { color: var(--fh-text); border-color: rgba(77,163,255,0.25); }
.fh-svc-sort__btn.is-active { color: #fff; background: rgba(59,130,246,0.18); border-color: rgba(96,165,250,0.35); }

.fh-svc-results {
  font-size: 0.72rem;
  color: var(--fh-muted);
  white-space: nowrap;
}

.fh-svc-results strong { color: var(--fh-text); }

/* —— Sections + tableau —— */
.fh-svc-services {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.fh-svc-section {
  padding: 0.85rem 1rem 1rem;
  border-left: 3px solid var(--cat-color, #5eb8ff);
}

.fh-svc-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.fh-svc-section__title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.fh-svc-section__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem; height: 1.6rem;
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--cat-color, #5eb8ff);
  background: color-mix(in srgb, var(--cat-color, #3b82f6) 15%, transparent);
}

.fh-svc-section__title h2 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
}

.fh-svc-section__stats {
  display: flex;
  gap: 0.45rem;
  font-size: 0.7rem;
  color: var(--fh-muted);
}

.fh-svc-section__stat strong { font-weight: 700; }
.fh-svc-section__stat--online strong { color: #4ade80; }
.fh-svc-section__stat--ddos strong { color: #fbbf24; }
.fh-svc-section__stat--offline strong { color: #f87171; }

.fh-svc-table__head,
.fh-svc-row {
  display: grid;
  grid-template-columns: minmax(140px, 2fr) minmax(100px, 1.2fr) minmax(90px, 1fr) minmax(100px, 1.2fr) minmax(70px, 0.8fr);
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.fh-svc-table__head {
  padding: 0.35rem 0.65rem;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--fh-muted);
  border-bottom: 1px solid rgba(77,163,255,0.1);
  margin-bottom: 0.25rem;
}

.fh-svc-table__body {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.fh-svc-section[hidden],
.fh-svc-row[hidden] { display: none !important; }

.fh-svc-row {
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  background: rgba(255,255,255,0.02);
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.fh-svc-row:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(77,163,255,0.12);
}

.fh-svc-row.is-updated { animation: fh-svc-flash 0.5s ease; }

@keyframes fh-svc-flash {
  0%, 100% { box-shadow: none; }
  50% { box-shadow: inset 0 0 0 1px rgba(96,165,250,0.35); }
}

.fh-svc-row--offline { background: rgba(127,29,29,0.06); border-color: rgba(248,113,113,0.12); }
.fh-svc-row--ddos { background: rgba(120,53,15,0.06); border-color: rgba(251,191,36,0.15); }

.fh-svc-row__cell--svc {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.fh-svc-dot {
  width: 0.5rem; height: 0.5rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.fh-svc-dot--online { background: #4ade80; box-shadow: 0 0 5px rgba(74,222,128,0.5); }
.fh-svc-dot--ddos { background: #fbbf24; }
.fh-svc-dot--offline { background: #f87171; }

.fh-svc-row__svc-info { min-width: 0; }

.fh-svc-row__name {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fh-svc-row__proto {
  font-size: 0.62rem;
  color: var(--fh-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.fh-svc-row__cell--status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
}

.fh-svc-pill { font-size: 0.68rem; font-weight: 500; }
.fh-svc-pill--online { color: #86efac; }
.fh-svc-pill--ddos { color: #fcd34d; }
.fh-svc-pill--offline { color: #fca5a5; }

.fh-svc-tier {
  font-size: 0.58rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 0.08rem 0.3rem;
  border-radius: 4px;
}

.fh-svc-tier--critical { color: #a5b4fc; background: rgba(99,102,241,0.12); }
.fh-svc-tier--high { color: #fcd34d; background: rgba(251,191,36,0.1); }
.fh-svc-tier--medium { color: #94a3b8; background: rgba(148,163,184,0.1); }

.fh-svc-row__cell--ping {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
}

.fh-svc-row__ping {
  font-size: 0.95rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: #fff;
}

.fh-svc-row__ping small { font-size: 0.6rem; font-weight: 500; color: var(--fh-muted); }
.fh-svc-row__ping.is-low { color: #4ade80; }
.fh-svc-row__ping.is-medium { color: #fbbf24; }
.fh-svc-row__ping.is-high { color: #f87171; }

.fh-svc-perf {
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.08rem 0.3rem;
  border-radius: 4px;
}

.fh-svc-perf--excellent { color: #4ade80; background: rgba(74,222,128,0.1); }
.fh-svc-perf--good { color: #86efac; background: rgba(74,222,128,0.08); }
.fh-svc-perf--average { color: #fbbf24; background: rgba(251,191,36,0.1); }
.fh-svc-perf--degraded { color: #fb923c; background: rgba(251,146,60,0.1); }
.fh-svc-perf--unavailable { color: #f87171; background: rgba(248,113,113,0.1); }

.fh-svc-row__offline { font-size: 0.75rem; color: #fca5a5; }

.fh-svc-row__cell--load {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.fh-svc-latency {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
  min-width: 40px;
}

.fh-svc-latency__fill {
  height: 100%;
  border-radius: inherit;
  transition: width 0.4s ease;
}

.fh-svc-latency__fill.is-low { background: #4ade80; }
.fh-svc-latency__fill.is-medium { background: #fbbf24; }
.fh-svc-latency__fill.is-high { background: #f87171; }

.fh-svc-row__threshold {
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--fh-muted);
  min-width: 1.8rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.fh-svc-row__cell--time {
  font-size: 0.7rem;
  color: var(--fh-muted);
  text-align: right;
}

.fh-svc-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 2rem;
  text-align: center;
  color: var(--fh-muted);
}

.fh-svc-empty[hidden] { display: none !important; }
.fh-svc-empty h3 { margin: 0; font-size: 0.95rem; color: var(--fh-text); }

/* —— Incidents (legacy grid hidden) —— */
.fh-svc-incidents-block,
.fh-svc-incidents-grid,
.fh-svc-incidents { display: none; }

/* —— Responsive —— */
@media (max-width: 900px) {
  .fh-svc-table__head { display: none; }

  .fh-svc-row {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 0.35rem 0.65rem;
    padding: 0.65rem 0.75rem;
  }

  .fh-svc-row__cell--svc { grid-column: 1; grid-row: 1; }
  .fh-svc-row__cell--ping { grid-column: 2; grid-row: 1; align-items: flex-end; }
  .fh-svc-row__cell--status { grid-column: 1; grid-row: 2; }
  .fh-svc-row__cell--load { grid-column: 1 / -1; }
  .fh-svc-row__cell--time { grid-column: 2; grid-row: 2; text-align: right; align-self: end; }

  .fh-svc-sort { margin-left: 0; width: 100%; justify-content: flex-start; }
}

@media (max-width: 767px) {
  .fh-svc-status-bar__metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .fh-svc-status-bar__top {
    flex-direction: column;
  }

  .fh-svc-status-bar__tools {
    width: 100%;
    justify-content: flex-end;
  }

  .fh-svc-status-bar__health {
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
  }

  .fh-svc-status-bar__health-label {
    text-align: center;
  }

  .fh-svc-history__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .fh-svc-controls__bar { flex-direction: column; align-items: stretch; }
  .fh-svc-search {
    flex: 0 0 auto;
    width: 100%;
    max-width: none;
    align-self: stretch;
  }
  .fh-svc-controls__cats { gap: 0.45rem; }
  .fh-svc-chips { gap: 0.45rem; width: 100%; }
  .fh-svc-sort {
    margin-left: 0;
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.35rem 0.45rem;
  }
  .fh-svc-results {
    width: 100%;
    text-align: center;
    margin-top: 0.15rem;
  }
}
