/* ============================================================================
   BUSÃO VR — Estilos da Arquitetura Executiva Estilo Football Manager (Fase 5)
   ============================================================================ */

/* --- HUD Global FM (Enxuta, 1 linha limpa mesmo em 1280px–1366px) --- */
.fm-appbar {
  height: 54px;
  padding: 0 12px;
  background: linear-gradient(180deg, #161C23 0%, #11161C 100%);
  border-bottom: 1px solid #26303B;
  gap: 10px;
}

.fm-appbar .appbar-left,
.fm-appbar .appbar-right {
  gap: 10px;
  flex-wrap: nowrap;
}

.fm-appbar .brand-btn,
.fm-appbar .brand-led,
.fm-appbar .hud-stat,
.fm-appbar .hud-stat-label,
.fm-appbar .hud-stat-val,
.fm-appbar .clock-block,
.fm-appbar .clock-day,
.fm-appbar .speed-controls,
.fm-appbar .speed-btn,
.fm-appbar .fm-continue-btn,
.fm-appbar .fm-search-trigger {
  white-space: nowrap;
  flex-shrink: 0;
}

.fm-appbar .brand-btn {
  padding: 5px 9px;
  gap: 6px;
}
.fm-appbar .brand-led {
  font-size: 15px;
}

.fm-appbar .company-chip {
  gap: 7px;
  min-width: 0;
}
.fm-appbar .company-chip-text {
  min-width: 0;
  max-width: 155px;
}
.fm-appbar .company-chip-text strong,
.fm-appbar .company-chip-text span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fm-event-compact {
  padding: 4px 8px;
  gap: 5px;
  flex-shrink: 0;
}
.fm-event-compact #hud-event-text {
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 1480px) {
  .fm-event-compact #hud-event-text {
    display: none;
  }
}

.fm-appbar .hud-stat {
  padding: 0 2px;
}
.fm-appbar .hud-stat-val {
  font-size: 13.5px;
}
.fm-appbar .speed-btn {
  padding: 5px 8px;
  font-size: 11.5px;
}
.fm-clock-compact {
  padding: 3px 9px;
  gap: 8px;
}
.fm-clock-compact .led-clock {
  font-size: 18px;
  min-width: 52px;
}

.fm-search-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  border-radius: 7px;
  background: rgba(11, 14, 18, 0.72);
  border: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.fm-search-trigger:hover {
  border-color: var(--accent);
  color: var(--ink);
}
.fm-search-trigger kbd,
.fm-shortcuts-hint kbd,
.inbox-reader kbd {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 4px;
  background: #1C232C;
  border: 1px solid #303B48;
  color: var(--ink-dim);
}

.hud-delta {
  font-family: var(--font-mono);
  font-size: 10px;
  margin-left: 4px;
}

.fm-continue-btn {
  min-width: 88px;
  padding: 6px 11px;
  font-weight: 700;
  letter-spacing: 0.2px;
  box-shadow: 0 0 14px rgba(255, 176, 0, 0.2);
}
.fm-continue-btn.is-crit {
  background: var(--crit);
  border-color: var(--crit);
  color: #fff;
  box-shadow: 0 0 14px rgba(242, 100, 87, 0.35);
}

/* --- Shell FM: Rail Esquerdo + Área Principal --- */
.fm-shell {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  overflow: hidden;
  background: var(--bg);
}

.fm-sidebar {
  display: flex;
  flex-direction: column;
  background: #0F1318;
  border-right: 1px solid #232C36;
  padding: 10px 8px;
  gap: 14px;
  overflow-y: auto;
  z-index: 15;
}

.fm-nav-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.fm-nav-group-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #6B7785;
  padding: 2px 10px 4px;
}

.fm-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-dim);
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.14s, color 0.14s, border-color 0.14s;
}
.fm-nav-item:hover {
  background: rgba(255, 255, 255, 0.045);
  color: var(--ink);
}
.fm-nav-item.active {
  background: linear-gradient(90deg, rgba(255, 176, 0, 0.16), rgba(255, 176, 0, 0.04));
  border-color: rgba(255, 176, 0, 0.42);
  color: #FFF;
  font-weight: 600;
}

.fm-nav-icon {
  font-size: 15px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.fm-nav-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fm-badge {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 99px;
  background: var(--crit);
  color: #fff;
  min-width: 20px;
  text-align: center;
}
.fm-badge.warn {
  background: var(--accent);
  color: #111;
}
.fm-badge.info {
  background: #2C5F8A;
  color: #E7F3FF;
}

.fm-sidebar-footer {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fm-mini-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: #141A21;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 11.5px;
  color: var(--ink-dim);
}
.fm-mini-status strong {
  font-size: 14px;
  color: var(--good);
}

.fm-shortcuts-hint {
  display: flex;
  justify-content: space-between;
  padding: 0 4px;
  font-size: 10.5px;
  color: var(--muted);
}

/* --- Área Principal --- */
.fm-main {
  position: relative;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.fm-prep-banner {
  position: static !important;
  margin: 10px 16px 0;
  border-radius: 10px;
  flex-shrink: 0;
}

.fm-prep-banner .prep-banner-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

/* --- Tela 2: Mapa & CCO --- */
.fm-view-cco {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 356px;
  overflow: hidden;
}

.cco-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
  background: #12171D;
  border-left: 1px solid #242E38;
  padding: 12px;
  gap: 10px;
}

.fm-view-cco .map-toolbar {
  max-width: calc(100% - 62px);
}
.fm-view-cco .layers-group {
  flex-wrap: wrap;
}

/* --- Demais 7 Telas Departamentais --- */
.fm-view-dept {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 18px 22px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background:
    radial-gradient(ellipse 60% 30% at 85% -10%, rgba(255, 176, 0, 0.05), transparent 60%),
    var(--bg);
}

.fm-page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.fm-page-head h1 {
  margin: 0;
  font-family: var(--font-head);
  font-size: 26px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  line-height: 1.05;
  display: flex;
  align-items: center;
  gap: 10px;
}

.fm-page-sub {
  margin: 3px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}

.fm-subtabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.fm-subtab {
  padding: 7px 14px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: #13181F;
  color: var(--ink-dim);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.14s;
}
.fm-subtab:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}
.fm-subtab.active {
  background: rgba(255, 176, 0, 0.14);
  border-color: var(--accent);
  color: var(--accent);
}

/* --- Faixa de KPIs Executivos --- */
.fm-kpi-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.fm-kpi {
  background: #141A21;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.fm-kpi span {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.fm-kpi strong {
  font-family: var(--font-mono);
  font-size: 17px;
  color: var(--ink);
}
.fm-kpi small {
  font-size: 11px;
  color: var(--ink-dim);
}

/* --- Grids Executivos --- */
.fm-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.fm-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.fm-grid-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr);
  gap: 14px;
  align-items: start;
}

/* --- Tabelas Densas Estilo FM --- */
.fm-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.fm-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.fm-input, .fm-select {
  background: #0F141A;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  color: var(--ink);
  font-size: 12.5px;
  padding: 6px 10px;
  font-family: inherit;
}
.fm-input:focus, .fm-select:focus {
  outline: none;
  border-color: var(--accent);
}

.fm-table-wrap {
  width: 100%;
  overflow-x: auto;
  background: #13181F;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.fm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.fm-table thead th {
  position: sticky;
  top: 0;
  background: #10151B;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.45px;
  text-align: left;
  padding: 9px 10px;
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}
.fm-table thead th.sortable {
  cursor: pointer;
}
.fm-table thead th.sortable:hover {
  color: var(--accent);
}
.fm-table tbody td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  vertical-align: middle;
}
.fm-table tbody tr:hover {
  background: rgba(255, 176, 0, 0.055);
}
.fm-table tbody tr.row-clickable {
  cursor: pointer;
}
.fm-table tbody tr.row-crit {
  background: rgba(242, 100, 87, 0.07);
}

.mini-bar {
  width: 68px;
  height: 6px;
  border-radius: 99px;
  background: #232B35;
  overflow: hidden;
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
}
.mini-bar > i {
  display: block;
  height: 100%;
  border-radius: 99px;
}

/* --- Tela 1: Caixa de Entrada (Inbox 2 Colunas) --- */
.inbox-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 14px;
  min-height: 520px;
  flex: 1;
}

.inbox-list {
  display: flex;
  flex-direction: column;
  background: #13181F;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.inbox-list-scroll {
  overflow-y: auto;
  max-height: 64vh;
  display: flex;
  flex-direction: column;
}

.inbox-item {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-left: 3px solid transparent;
  transition: background 0.12s;
}
.inbox-item:hover {
  background: rgba(255, 255, 255, 0.03);
}
.inbox-item.unread {
  background: rgba(255, 176, 0, 0.055);
}
.inbox-item.active {
  background: rgba(255, 176, 0, 0.12);
  border-left-color: var(--accent);
}
.inbox-item.sev-crit {
  border-left-color: var(--crit);
}
.inbox-item.sev-warn {
  border-left-color: var(--accent);
}

.inbox-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
}
.inbox-item-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
}
.inbox-item-resumo {
  font-size: 11.5px;
  color: var(--ink-dim);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.inbox-reader {
  background: #13181F;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.inbox-reader-head {
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.inbox-reader-head h2 {
  margin: 4px 0 4px;
  font-family: var(--font-head);
  font-size: 22px;
  line-height: 1.15;
}
.inbox-reader-body {
  font-size: 13.5px;
  color: var(--ink-dim);
  line-height: 1.55;
}
.inbox-reader-body p {
  margin: 0 0 10px;
}
.inbox-reader-body ul {
  margin: 0 0 10px;
  padding-left: 18px;
}
.inbox-append {
  margin-top: 8px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.03);
  border-left: 2px solid var(--accent);
  border-radius: 4px;
  font-size: 12px;
}
.inbox-kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
  margin: 10px 0 12px;
}
.inbox-kpi-row > div {
  background: #0F141A;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.inbox-kpi-row span {
  font-size: 10.5px;
  color: var(--muted);
}
.inbox-kpi-row strong {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink);
}
.inbox-actions {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* --- Fichas de Inspeção & Busca Rápida Ctrl+K --- */
.ficha-box {
  max-width: 780px !important;
  width: 96% !important;
}

.ficha-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}

.ficha-actions-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.quick-search-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-height: 360px;
  overflow-y: auto;
  margin-top: 10px;
}

.quick-search-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  background: #141A21;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  width: 100%;
}
.quick-search-item:hover {
  border-color: var(--accent);
  background: rgba(255, 176, 0, 0.08);
}

/* --- Gráfico SVG Financeiro --- */
.dre-chart-box {
  background: #0F141A;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

/* --- QHO Editor --- */
.qho-faixa-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.qho-faixa-card {
  background: #0F141A;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.qho-faixa-card.ativa-agora {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(255, 176, 0, 0.25);
}

/* --- Botões de Opção Executivos (Peças, Escalas, Pintura, Configurador) --- */
.cfg-option {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 9px 11px;
  border-radius: 8px;
  background: #0F141A;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-family: inherit;
  font-size: 12.5px;
  cursor: pointer;
  transition: border-color 0.14s, background 0.14s;
}
.cfg-option:hover {
  border-color: rgba(255, 176, 0, 0.55);
  background: #151C24;
}
.cfg-option.active {
  border-color: var(--accent);
  background: rgba(255, 176, 0, 0.12);
  color: #FFF;
}

/* --- Metas da Diretoria --- */
.board-grade-badge {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 800;
  background: rgba(31, 209, 139, 0.14);
  border: 1px solid rgba(31, 209, 139, 0.45);
  color: var(--good);
  flex-shrink: 0;
}

/* --- Responsivo (Tablet / Mobile) --- */
@media (max-width: 1220px) {
  .fm-search-trigger kbd {
    display: none;
  }
}

@media (max-width: 1120px) {
  .fm-shell {
    grid-template-columns: 186px minmax(0, 1fr);
  }
  .fm-view-cco {
    grid-template-columns: minmax(0, 1fr) 310px;
  }
  .fm-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .inbox-layout {
    grid-template-columns: 280px minmax(0, 1fr);
  }
  .fm-search-trigger span {
    display: none;
  }
}

@media (max-width: 960px) {
  .fm-appbar {
    height: auto !important;
    min-height: 54px;
    padding: 8px 10px;
  }
  .fm-appbar .appbar-left,
  .fm-appbar .appbar-right {
    flex-wrap: wrap;
    gap: 6px;
  }
  .fm-shell {
    grid-template-columns: 1fr;
    position: relative;
    overflow: visible;
  }
  .fm-sidebar {
    display: none;
    position: fixed;
    top: 86px;
    left: 0;
    bottom: 0;
    width: 245px;
    z-index: 60;
    box-shadow: 8px 0 30px rgba(0, 0, 0, 0.65);
  }
  .fm-sidebar.open {
    display: flex;
  }
  .fm-view-cco {
    grid-template-columns: 1fr;
    grid-template-rows: 52vh auto;
    overflow-y: auto;
  }
  .cco-panel {
    border-left: none;
    border-top: 1px solid var(--line);
  }
  .fm-grid-2, .fm-grid-3, .fm-grid-sidebar, .inbox-layout, .qho-faixa-grid {
    grid-template-columns: 1fr;
  }
  .fm-view-dept {
    padding: 12px;
  }
}

/* ============================================================================
   FOOTBALL MANAGER VISUAL OVERHAUL — Cards, Gauges, Placas VR, Boxes & Tema Clube
   ============================================================================ */

/* Top Bar com faixa superior na cor oficial da viação */
.fm-appbar {
  background: linear-gradient(180deg, #131C2D 0%, #0D1420 100%) !important;
  border-top: 3px solid var(--club-primary) !important;
  border-bottom: 1px solid rgba(148, 174, 214, 0.18) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

.fm-sidebar {
  background: linear-gradient(180deg, #0D1420 0%, #0A0F18 100%) !important;
  border-right: 1px solid rgba(148, 174, 214, 0.14) !important;
}

.fm-nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: color 0.15s;
}
.fm-nav-item:hover .fm-nav-icon {
  color: var(--ink);
}
.fm-nav-item.active {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)) !important;
  border-color: rgba(148, 174, 214, 0.22) !important;
  border-left: 3px solid var(--club-primary) !important;
  padding-left: 8px;
}
.fm-nav-item.active .fm-nav-icon {
  color: var(--club-primary);
}

.fm-ico {
  vertical-align: -2px;
  flex-shrink: 0;
}

/* Superfície elevada FM para todos os cards */
.fm-view-dept .card,
.cco-panel .card {
  background: linear-gradient(180deg, #151E2E 0%, #101724 100%) !important;
  border: 1px solid rgba(148, 174, 214, 0.15) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045), 0 8px 24px rgba(0, 0, 0, 0.28);
  border-radius: 11px !important;
}

.fm-view-dept .card-title,
.cco-panel .card-title {
  font-family: var(--font-head);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: #DCE6F4;
  padding-bottom: 8px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(148, 174, 214, 0.12);
}

/* Hero Banner Departamental estilo FM (com acento da viação) */
.fm-hero {
  background: linear-gradient(110deg, rgba(23, 33, 51, 0.96) 0%, rgba(15, 22, 36, 0.94) 68%, rgba(23, 33, 51, 0.8) 100%);
  border: 1px solid rgba(148, 174, 214, 0.18);
  border-left: 4px solid var(--club-primary);
  border-radius: 12px;
  padding: 14px 18px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 10px 28px rgba(0, 0, 0, 0.3);
}
.fm-hero-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.fm-hero-emblem {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(148, 174, 214, 0.22);
  color: var(--club-primary);
  flex-shrink: 0;
}
.fm-hero-kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--club-primary);
  margin-bottom: 2px;
}
.fm-hero-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

/* Sub-abas estilo FM pill-bar */
.fm-subtabs {
  background: rgba(15, 22, 36, 0.72);
  border: 1px solid rgba(148, 174, 214, 0.14);
  border-radius: 10px;
  padding: 5px !important;
  gap: 5px !important;
  border-bottom: 1px solid rgba(148, 174, 214, 0.14) !important;
}
.fm-subtab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: transparent !important;
  border: 1px solid transparent !important;
  border-radius: 7px;
  padding: 7px 13px;
  font-weight: 600;
}
.fm-subtab:hover {
  background: rgba(255, 255, 255, 0.05) !important;
}
.fm-subtab.active {
  background: linear-gradient(180deg, rgba(255, 176, 0, 0.18), rgba(255, 176, 0, 0.08)) !important;
  border-color: rgba(255, 176, 0, 0.45) !important;
  color: #FFF !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* KPI Strip elevado estilo FM */
.fm-kpi {
  background: linear-gradient(180deg, #162033 0%, #101725 100%) !important;
  border: 1px solid rgba(148, 174, 214, 0.16) !important;
  border-top: 2px solid rgba(148, 174, 214, 0.25) !important;
  border-radius: 10px !important;
  padding: 11px 13px !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}
.fm-kpi strong {
  font-size: 19px !important;
  letter-spacing: -0.3px;
}

/* Donut Gauge FM */
.fm-donut-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}
.fm-donut-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  background: linear-gradient(180deg, #162033 0%, #101725 100%);
  border: 1px solid rgba(148, 174, 214, 0.16);
  border-radius: 11px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.fm-donut-ring {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fm-donut-val {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 800;
}
.fm-donut-meta {
  min-width: 0;
}
.fm-donut-label {
  font-family: var(--font-head);
  font-size: 14.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--ink);
}
.fm-donut-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

/* Quadrados de Atributo FM (Rating Boxes) */
.fm-attr-row {
  display: flex;
  gap: 5px;
  align-items: center;
  flex-wrap: wrap;
}
.fm-attr {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  padding: 4px 6px;
  border-radius: 6px;
  border: 1px solid transparent;
  line-height: 1.1;
}
.fm-attr-num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
}
.fm-attr-lbl {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  opacity: 0.85;
  margin-top: 1px;
}
.fm-attr.tier-high {
  background: rgba(45, 212, 140, 0.15);
  border-color: rgba(45, 212, 140, 0.42);
  color: #46E5A1;
}
.fm-attr.tier-mid {
  background: rgba(242, 184, 48, 0.14);
  border-color: rgba(242, 184, 48, 0.4);
  color: #F6C853;
}
.fm-attr.tier-low {
  background: rgba(239, 91, 91, 0.15);
  border-color: rgba(239, 91, 91, 0.42);
  color: #F87979;
}

/* Placa de Linha LED Volta Redonda */
.vr-route-plate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  padding: 2px 7px;
  border-radius: 5px;
  background: #090E16;
  border: 1px solid rgba(255, 176, 0, 0.5);
  color: #FFB000;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  box-shadow: inset 0 0 8px rgba(255, 176, 0, 0.12);
}
.vr-route-plate.is-accent {
  background: rgba(255, 176, 0, 0.15);
}

/* Avatar Monograma FM */
.fm-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  font-family: var(--font-head);
  font-weight: 800;
  color: #FFF;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* Barra Empilhada FM */
.fm-stacked-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fm-stacked-track {
  height: 11px;
  width: 100%;
  border-radius: 99px;
  background: #0A101A;
  border: 1px solid rgba(148, 174, 214, 0.16);
  overflow: hidden;
  display: flex;
  gap: 2px;
  padding: 1px;
}
.fm-stacked-seg {
  height: 100%;
  border-radius: 99px;
  transition: width 0.25s ease;
}
.fm-stacked-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  font-size: 11.5px;
  color: var(--ink-dim);
}
.fm-stacked-leg {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.fm-stacked-leg > i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  display: inline-block;
}
.fm-stacked-empty {
  font-size: 12px;
  color: var(--muted);
  padding: 6px 0;
}

/* Stepper Conectado (Licitações em Fases) */
.fm-stepper {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 4px 0 12px;
  padding: 8px 10px;
  background: #0B111C;
  border: 1px solid rgba(148, 174, 214, 0.14);
  border-radius: 9px;
}
.fm-step {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.fm-step-dot {
  width: 22px;
  height: 22px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  border: 1.5px solid var(--line-strong);
  color: var(--muted);
  background: #111826;
}
.fm-step-lbl {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}
.fm-step.current .fm-step-dot {
  border-color: var(--accent);
  background: rgba(255, 176, 0, 0.18);
  color: var(--accent);
  box-shadow: 0 0 10px rgba(255, 176, 0, 0.28);
}
.fm-step.current .fm-step-lbl {
  color: #FFF;
}
.fm-step.done .fm-step-dot {
  border-color: var(--good);
  background: rgba(45, 212, 140, 0.18);
  color: var(--good);
}
.fm-step.done .fm-step-lbl {
  color: var(--good);
}
.fm-step-line {
  flex: 1;
  height: 2px;
  min-width: 14px;
  margin: 0 6px;
  background: rgba(148, 174, 214, 0.18);
}
.fm-step-line.done {
  background: var(--good);
}

/* Medidor de Tanque / Rede Elétrica */
.fm-meter-widget {
  padding: 11px 13px;
  background: #0B111C;
  border: 1px solid rgba(148, 174, 214, 0.15);
  border-radius: 9px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.fm-meter-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}
.fm-meter-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--ink-dim);
}
.fm-meter-track {
  height: 10px;
  background: #172133;
  border-radius: 99px;
  overflow: hidden;
}
.fm-meter-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.25s ease;
}
.fm-meter-sub {
  font-size: 11px;
  color: var(--muted);
}

/* Grid Visual de Frota (Cards com Miniatura SVG do Ônibus) */
.fm-fleet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 12px;
}
.fm-bus-card {
  background: linear-gradient(180deg, #162033 0%, #101725 100%);
  border: 1px solid rgba(148, 174, 214, 0.16);
  border-radius: 11px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  cursor: pointer;
  transition: transform 0.14s, border-color 0.14s, box-shadow 0.14s;
}
.fm-bus-card:hover {
  transform: translateY(-2px);
  border-color: var(--club-primary);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}
.fm-bus-card.is-crit {
  border-color: rgba(239, 91, 91, 0.5);
}
.fm-bus-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.fm-bus-stage {
  background: radial-gradient(ellipse at 50% 85%, rgba(255, 255, 255, 0.06), transparent 72%), #0B1019;
  border: 1px solid rgba(148, 174, 214, 0.12);
  border-radius: 8px;
  padding: 8px 6px 6px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 76px;
}
.fm-bus-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.fm-bus-meta strong {
  font-size: 13px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fm-bus-meta span {
  font-size: 11px;
  color: var(--muted);
}

/* Boxes Visuais de Oficina (Slots físicos Box 1..N) */
.fm-bay-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}
.fm-bay-slot {
  border-radius: 10px;
  padding: 10px;
  background: #0B111C;
  border: 1px dashed rgba(148, 174, 214, 0.22);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 112px;
  justify-content: space-between;
}
.fm-bay-slot.occupied {
  border-style: solid;
  border-color: rgba(255, 176, 0, 0.42);
  background: linear-gradient(180deg, #162033 0%, #101725 100%);
  cursor: pointer;
}
.fm-bay-slot.occupied:hover {
  border-color: var(--accent);
}
.fm-bay-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted);
}

/* Cards de Carregador Elétrico (Slots 150 kW) */
.fm-charger-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
}
.fm-charger-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  border: 1px solid rgba(31, 209, 139, 0.42);
  background: rgba(31, 209, 139, 0.12);
  color: #3EE5A5;
}
.fm-charger-pill.free {
  border-style: dashed;
  border-color: rgba(148, 174, 214, 0.24);
  background: transparent;
  color: var(--muted);
}

/* Broadsheet Editorial Card (Folha do Aço) */
.fm-news-card {
  padding: 12px 14px;
  background: #0D1422;
  border: 1px solid rgba(148, 174, 214, 0.14);
  border-left: 3px solid var(--line-strong);
  border-radius: 9px;
  margin-bottom: 9px;
}
.fm-news-card.good { border-left-color: var(--good); }
.fm-news-card.warn { border-left-color: var(--warn); }
.fm-news-card.crit { border-left-color: var(--crit); }

/* Calendário Visual 12 Meses com Barra de Demanda */
.fm-cal-card {
  padding: 10px 11px;
  border-radius: 9px;
  background: #0D1422;
  border: 1px solid rgba(148, 174, 214, 0.14);
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.fm-cal-card.atual {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(255, 176, 0, 0.12), #0D1422);
  box-shadow: 0 0 0 1px rgba(255, 176, 0, 0.2);
}

/* Cards de Operadoras Rivais (League Table FM) */
.fm-club-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  background: #0D1422;
  border: 1px solid rgba(148, 174, 214, 0.12);
  border-radius: 9px;
  margin-bottom: 7px;
  transition: border-color 0.14s, background 0.14s;
}
.fm-club-row.clickable {
  cursor: pointer;
}
.fm-club-row.clickable:hover {
  border-color: var(--club-primary);
  background: #142033;
}
.fm-club-row.is-me {
  border-color: rgba(255, 176, 0, 0.42);
  background: linear-gradient(90deg, rgba(255, 176, 0, 0.1), #0D1422);
}

/* Inbox Item com Avatar Monograma */
.inbox-item-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.inbox-item-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

/* Manager Profile Card estilo FM */
.mgr-card {
  background: #0D1422 !important;
  border: 1px solid rgba(148, 174, 214, 0.16) !important;
  border-radius: 10px !important;
  padding: 12px !important;
}
.mgr-card.active {
  border-color: rgba(45, 212, 140, 0.42) !important;
  background: linear-gradient(180deg, rgba(45, 212, 140, 0.08), #0D1422) !important;
}

/* Linhas do DRE Financeiro (alinhamento limpo esquerda/direita) */
.dre-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(148, 174, 214, 0.12);
  font-size: 12.5px;
}
.dre-row:last-of-type {
  border-bottom: none;
}

.status-pill, .line-tag {
  white-space: nowrap;
}

/* ============================================================================
   TELA INICIAL MODERNA — FM CAREER HUB (Volta Redonda 2026)
   ============================================================================ */
.fm-landing {
  background:
    radial-gradient(ellipse 65% 45% at 18% -8%, rgba(29, 78, 216, 0.22), transparent 62%),
    radial-gradient(ellipse 55% 42% at 88% 8%, rgba(255, 176, 0, 0.14), transparent 60%),
    radial-gradient(ellipse 50% 45% at 70% 95%, rgba(31, 209, 139, 0.08), transparent 62%),
    linear-gradient(180deg, #070B13 0%, #0A101C 100%) !important;
  padding: 24px 22px 42px !important;
}

.fm-landing .landing-inner {
  max-width: 1180px;
  gap: 22px;
}

.fm-land-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(148, 174, 214, 0.14);
}
.fm-land-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.fm-land-logo {
  padding: 8px 15px !important;
  gap: 10px !important;
  background: #080D16 !important;
  border: 1px solid rgba(255, 176, 0, 0.35) !important;
}
.fm-land-logo .led-title {
  font-size: 22px !important;
}
.fm-land-logo .led-sub {
  font-size: 13px !important;
}
.fm-land-edition {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.1px;
  color: var(--good);
  padding: 4px 10px;
  border-radius: 99px;
  background: rgba(45, 212, 140, 0.1);
  border: 1px solid rgba(45, 212, 140, 0.32);
}
.fm-land-top-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.fm-land-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.95fr);
  gap: 18px;
  align-items: stretch;
}

.fm-land-hero-main {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: linear-gradient(140deg, rgba(22, 32, 51, 0.88) 0%, rgba(13, 20, 34, 0.94) 100%);
  border: 1px solid rgba(148, 174, 214, 0.16);
  border-radius: 16px;
  padding: 22px 24px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 16px 40px rgba(0, 0, 0, 0.38);
}

.fm-land-kicker {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--accent);
}
.fm-land-h1 {
  margin: 0;
  font-family: var(--font-head);
  font-size: 40px;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #FFF;
}
.fm-land-h1 span {
  color: var(--accent);
}
.fm-land-lead {
  margin: 0;
  font-size: 14px;
  color: var(--ink-dim);
  line-height: 1.5;
  max-width: 640px;
}
.fm-land-lead strong {
  color: #FFF;
}

.fm-land-specs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.fm-spec-chip {
  background: #0B111C;
  border: 1px solid rgba(148, 174, 214, 0.15);
  border-radius: 10px;
  padding: 9px 11px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.fm-spec-chip strong {
  font-family: var(--font-mono);
  font-size: 16px;
  color: #FFF;
}
.fm-spec-chip span {
  font-size: 10.5px;
  color: var(--muted);
}
.fm-spec-chip.is-green {
  border-color: rgba(45, 212, 140, 0.35);
  background: rgba(45, 212, 140, 0.07);
}
.fm-spec-chip.is-green strong {
  color: var(--good);
}

/* Slots de Carreira embutidos no Hero */
.fm-land-slots {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(148, 174, 214, 0.14);
}
.fm-slots-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
  font-size: 12.5px;
}
.fm-slots-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}
.fm-slot-card {
  background: #0B111C;
  border: 1px solid rgba(148, 174, 214, 0.16);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
}
.fm-slot-card.is-active {
  border-color: rgba(255, 176, 0, 0.58);
  background: linear-gradient(180deg, rgba(255, 176, 0, 0.08), #0B111C);
}
.fm-slot-card.has-save {
  border-top: 2px solid var(--slot-accent, var(--accent));
}
.fm-slot-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}
.fm-slot-name {
  display: block;
  font-size: 13px;
  color: #FFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fm-slot-meta {
  font-size: 10.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fm-slot-actions {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

/* Card Destaque Direito: Fundar Minha Empresa */
.fm-land-found-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(16, 42, 38, 0.72) 0%, rgba(13, 20, 34, 0.96) 55%, rgba(16, 24, 39, 0.98) 100%);
  border: 1px solid rgba(45, 212, 140, 0.34);
  border-top: 3px solid var(--good);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 16px 40px rgba(0, 0, 0, 0.38);
}
.fm-found-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--good);
  background: rgba(45, 212, 140, 0.12);
  border: 1px solid rgba(45, 212, 140, 0.35);
  padding: 4px 9px;
  border-radius: 99px;
}
.fm-land-found-card h2 {
  margin: 0;
  font-family: var(--font-head);
  font-size: 27px;
  text-transform: uppercase;
  line-height: 1.08;
  color: #FFF;
}
.fm-land-found-card p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-dim);
  line-height: 1.48;
}
.fm-found-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 10px;
  background: rgba(8, 13, 22, 0.75);
  border: 1px solid rgba(148, 174, 214, 0.14);
  border-radius: 10px;
}
.fm-found-stats > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.fm-found-stats span {
  font-size: 9.5px;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.4px;
}
.fm-found-stats strong {
  font-size: 15px;
}
.fm-found-lots {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.fm-lot-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-dim);
}

/* Club Showcase Cards das 3 Operadoras Oficiais */
.fm-op-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #151F31 0%, #0E1523 100%) !important;
  border: 1px solid rgba(148, 174, 214, 0.18) !important;
  border-radius: 14px !important;
  padding: 18px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 12px 30px rgba(0, 0, 0, 0.34);
}
.fm-op-card:hover {
  border-color: var(--op-color, var(--accent)) !important;
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.48);
}
.fm-op-stripe {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--op-color, var(--accent));
}
.fm-op-stage {
  background: radial-gradient(ellipse at 50% 85%, rgba(255, 255, 255, 0.07), transparent 72%), #080D16 !important;
  border: 1px solid rgba(148, 174, 214, 0.14) !important;
  border-radius: 10px !important;
  padding: 14px 12px 10px !important;
}
.fm-op-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}
.fm-op-metrics > div {
  background: #0A101B;
  border: 1px solid rgba(148, 174, 214, 0.13);
  border-radius: 8px;
  padding: 7px 9px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.fm-op-metrics span {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--muted);
}
.fm-op-metrics strong {
  font-size: 15px;
  color: #FFF;
}

@media (max-width: 980px) {
  .fm-land-hero-grid {
    grid-template-columns: 1fr;
  }
  .fm-land-specs {
    grid-template-columns: repeat(2, 1fr);
  }
  .fm-slots-grid {
    grid-template-columns: 1fr;
  }
  .fm-land-h1 {
    font-size: 30px;
  }
}

/* ==================== OCORRÊNCIAS, 156 & RÁDIO CCO (ESTILO FM NÍTIDO) ==================== */
.alert-item {
  background: rgba(239, 91, 91, 0.08);
  border: 1px solid rgba(239, 91, 91, 0.34);
  border-left: 3px solid var(--crit);
  border-radius: 9px;
  padding: 10px 11px;
  margin-bottom: 8px;
}

.alert-item:last-child {
  margin-bottom: 0;
}

.alert-item.warn {
  background: rgba(242, 184, 48, 0.08);
  border-color: rgba(242, 184, 48, 0.34);
  border-left-color: var(--accent);
}

.alert-item-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 700;
  color: #F1F5F9;
  line-height: 1.35;
}

.alert-item-head > .mono {
  flex-shrink: 0;
  white-space: nowrap;
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(9, 14, 22, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 11.5px;
  color: var(--accent);
}

.alert-item-desc {
  font-size: 11.8px;
  color: var(--ink-dim);
  line-height: 1.45;
  margin: 6px 0 9px;
}

/* Rádio CCO — Feed cronológico limpo e legível */
.event-log {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 250px;
  overflow-y: auto;
  padding-right: 2px;
}

.log-entry {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: start;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 7px;
  background: rgba(11, 17, 27, 0.78);
  border: 1px solid rgba(148, 174, 214, 0.11);
  border-left: 3px solid #475569;
  font-size: 11.8px;
  line-height: 1.42;
  color: #DCE4F0;
}

.log-entry.good { border-left-color: #2DD48C; }
.log-entry.warn { border-left-color: #F2B830; }
.log-entry.crit { border-left-color: #EF5B5B; background: rgba(239, 91, 91, 0.08); }
.log-entry.info { border-left-color: #5E9BFF; }

.log-time {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--accent);
  background: rgba(255, 176, 0, 0.1);
  border: 1px solid rgba(255, 176, 0, 0.22);
  border-radius: 4px;
  padding: 1px 4px;
  text-align: center;
  line-height: 1.35;
  flex-shrink: 0;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
