/* ============================================================
   OSH Monitor — componentes específicos (NOC)
   Identidade: sky/cyan ops #0ea5e9 sobre o shell platform-*
   ============================================================ */

:root {
    --mon-accent: #0ea5e9;
    --mon-ok: #22c55e;
    --mon-warn: #f59e0b;
    --mon-crit: #ef4444;
    --mon-muted: #64748b;
}

/* ---- KPIs do dashboard ---- */
.mon-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.mon-kpi {
    background: var(--osh-surface, #fff);
    border: 1px solid var(--osh-border, #e2e8f0);
    border-radius: 14px;
    padding: 16px 18px;
    border-left: 5px solid var(--mon-accent);
}

.mon-kpi__value { display: block; font-size: 30px; font-weight: 800; line-height: 1.1; color: var(--osh-text, #0f172a); }
.mon-kpi__label { font-size: 12.5px; color: var(--mon-muted); }
.mon-kpi--online { border-left-color: var(--mon-ok); }
.mon-kpi--offline { border-left-color: var(--mon-crit); }
.mon-kpi--warning { border-left-color: var(--mon-warn); }
.mon-kpi--alerts { border-left-color: var(--mon-crit); }
.mon-kpi--checks { border-left-color: var(--mon-accent); }

/* ---- Grid de servidores ---- */
.mon-server-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.mon-server-card {
    display: block;
    background: var(--osh-surface, #fff);
    border: 1px solid var(--osh-border, #e2e8f0);
    border-radius: 14px;
    padding: 16px;
    text-decoration: none;
    color: inherit;
    transition: transform .12s ease, box-shadow .12s ease;
}

.mon-server-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(15, 23, 42, .10); }

.mon-server-card__head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.mon-server-card__name { font-weight: 700; font-size: 14.5px; color: var(--osh-text, #0f172a); }
.mon-server-card__meta { font-size: 12px; color: var(--mon-muted); }
.mon-server-card__alerts {
    margin-left: auto;
    background: var(--mon-crit);
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    min-width: 22px;
    height: 22px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 7px;
}
.mon-server-card__foot { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--mon-muted); margin-top: 10px; }
.mon-server-card__empty { font-size: 12.5px; color: var(--mon-muted); padding: 8px 0; }

/* Bolinha de status */
.mon-status { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.mon-status--online { background: var(--mon-ok); box-shadow: 0 0 0 4px rgba(34, 197, 94, .18); }
.mon-status--offline { background: var(--mon-crit); box-shadow: 0 0 0 4px rgba(239, 68, 68, .18); animation: mon-blink 1.2s ease-in-out infinite; }
.mon-status--warning { background: var(--mon-warn); box-shadow: 0 0 0 4px rgba(245, 158, 11, .18); }
.mon-status--maintenance { background: #8b5cf6; box-shadow: 0 0 0 4px rgba(139, 92, 246, .18); }
.mon-status--unknown { background: #94a3b8; box-shadow: 0 0 0 4px rgba(148, 163, 184, .18); }

@keyframes mon-blink { 50% { opacity: .35; } }

/* Barras de uso */
.mon-gauges { display: flex; flex-direction: column; gap: 7px; }
.mon-gauge { display: grid; grid-template-columns: 42px 1fr 44px; align-items: center; gap: 8px; }
.mon-gauge__label { font-size: 11px; font-weight: 700; color: var(--mon-muted); letter-spacing: .4px; }
.mon-gauge__bar { height: 8px; background: var(--osh-bg, #f1f5f9); border-radius: 99px; overflow: hidden; }
.mon-gauge__bar i { display: block; height: 100%; border-radius: 99px; background: var(--mon-accent); width: 0; transition: width .4s ease; }
.mon-gauge__bar i.mon-usage--ok { background: var(--mon-ok); }
.mon-gauge__bar i.mon-usage--warning { background: var(--mon-warn); }
.mon-gauge__bar i.mon-usage--critical { background: var(--mon-crit); }
.mon-gauge__value { font-size: 12px; font-weight: 700; text-align: right; color: var(--osh-text, #0f172a); }

/* Severidade */
.mon-sev { font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.mon-sev--critical { background: #fee2e2; color: #991b1b; }
.mon-sev--warning { background: #fef3c7; color: #92400e; }
.mon-sev--info { background: #e0f2fe; color: #075985; }

/* Chips de check */
.mon-check-strip { display: flex; flex-wrap: wrap; gap: 10px; }
.mon-check-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--osh-border, #e2e8f0);
    border-radius: 999px;
    padding: 7px 14px;
    text-decoration: none;
    color: inherit;
    font-size: 12.5px;
    background: var(--osh-surface, #fff);
}
.mon-check-chip__dot { width: 9px; height: 9px; border-radius: 50%; background: #94a3b8; }
.mon-check-chip--up .mon-check-chip__dot { background: var(--mon-ok); }
.mon-check-chip--down .mon-check-chip__dot,
.mon-check-chip--timeout .mon-check-chip__dot { background: var(--mon-crit); animation: mon-blink 1.2s infinite; }
.mon-check-chip__name { font-weight: 700; }
.mon-check-chip__meta { color: var(--mon-muted); font-size: 11.5px; }

/* Sparkline de latência/uptime (barrinhas) */
.mon-spark { display: flex; align-items: flex-end; gap: 2px; height: 34px; }
.mon-spark i { flex: 1; min-width: 3px; border-radius: 2px 2px 0 0; background: var(--mon-ok); opacity: .85; }
.mon-spark i.is-down { background: var(--mon-crit); }
.mon-spark i.is-timeout { background: var(--mon-warn); }

/* MFA */
.mon-mfa-qr { text-align: center; margin: 14px 0 18px; }
.mon-mfa-qr img { border: 1px solid #e2e8f0; border-radius: 12px; padding: 8px; background: #fff; }
.mon-mfa-secret { font-size: 12.5px; color: var(--mon-muted); margin-top: 10px; }
.mon-mfa-secret code { font-size: 13px; letter-spacing: 2px; }
.auth-submit--danger { background: var(--mon-crit); }
.auth-alert--info { background: #e0f2fe; color: #075985; border: 1px solid #bae6fd; border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; font-size: 13.5px; }

/* Linha clicável em tabelas */
.platform-table__row-link { cursor: pointer; }

/* ---- KPIs v2 (padrão platform, sem emoji) ---- */
.mon-kpi-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 18px; }
.mon-kpi2 { display: flex; align-items: center; gap: 13px; background: var(--osh-surface, #fff); border: 1px solid var(--osh-border, #e2e8f0); border-radius: 14px; padding: 15px 17px; box-shadow: 0 1px 3px rgba(15, 23, 42, .05); }
.mon-kpi2__icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0; }
.mon-kpi2__icon--sky { background: rgba(14, 165, 233, .12); color: #0284c7; }
.mon-kpi2__icon--green { background: rgba(34, 197, 94, .12); color: #16a34a; }
.mon-kpi2__icon--red { background: rgba(239, 68, 68, .12); color: #dc2626; }
.mon-kpi2__icon--amber { background: rgba(245, 158, 11, .13); color: #d97706; }
.mon-kpi2__icon--blue { background: rgba(59, 130, 246, .12); color: #2563eb; }
.mon-kpi2__icon--orange { background: rgba(249, 115, 22, .13); color: #ea580c; }
.mon-kpi2__body { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.mon-kpi2__value { font-size: 24px; font-weight: 800; color: var(--osh-text, #0f172a); }
.mon-kpi2__label { font-size: 12.5px; font-weight: 600; color: var(--osh-text, #334155); }
.mon-kpi2__meta { font-size: 11px; color: var(--mon-muted); }

/* Cabeçalho de painel alinhado (GLOBAL: título esquerda, ações direita, respiro antes do conteúdo)
   — corrige botões/fitros colados nas tabelas em todas as views */
.platform-panel__header-row,
.mon-header-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.platform-panel__header-row .platform-panel__title,
.mon-header-row .platform-panel__title { margin: 0; display: flex; align-items: center; gap: 8px; }
.platform-panel__header-row .platform-panel__subtitle { margin-bottom: 0; }
.platform-panel > .platform-table-wrap { margin-top: 4px; }
.platform-panel > .platform-btn,
.platform-panel > form + .platform-table-wrap,
.platform-panel > .platform-btn + .platform-table-wrap { margin-top: 14px; }
.platform-panel__actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.platform-panel__title .mon-icon { color: var(--mon-accent); flex-shrink: 0; }
.mon-server-card__id { text-decoration: none; color: inherit; flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mon-server-card__id:hover .mon-server-card__name { color: var(--mon-accent); text-decoration: underline; }

/* ---- Cards de servidor (layout do handoff Claude Design) ---- */
.mon-srv2-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
@media (max-width: 560px) { .mon-srv2-grid { grid-template-columns: 1fr; } }
.mon-srv2 { background: var(--osh-surface, #fff); border: none; border-radius: 14px; padding: 15px 17px; box-shadow: 0 1px 3px rgba(15, 23, 42, .05); }
.mon-srv2__head { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 10px; }
.mon-srv2__head .mon-status { margin-top: 4px; }
.mon-srv2__id { display: flex; flex-direction: column; min-width: 0; text-decoration: none; flex: 1; }
.mon-srv2__name { font-size: 15px; font-weight: 800; color: var(--osh-text, #0f172a); }
.mon-srv2__id:hover .mon-srv2__name { color: var(--mon-accent); text-decoration: underline; }
.mon-srv2__ip { font-size: 11.5px; color: var(--mon-muted); }
.mon-srv2__gauges { display: flex; gap: 6px; justify-content: space-around; margin-bottom: 10px; }
.mon-srv2__net { min-width: 0; }
.mon-srv2__loadrow { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; margin-bottom: 2px; }
.mon-srv2__lbl { font-size: 10.5px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--mon-muted); }
.mon-srv2__loadrow b { font-size: 13px; color: var(--osh-text, #0f172a); }
.mon-srv2__netrow { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--mon-muted); font-weight: 600; margin-top: 2px; }
.mon-srv2__foot { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--mon-muted); border-top: 1px dashed var(--osh-border, #e2e8f0); margin-top: 10px; padding-top: 8px; }

/* ---- Dashboard rico ---- */
.mon-kpis--top .mon-kpi { display: flex; align-items: center; gap: 12px; }
.mon-kpi__icon { font-size: 26px; }
.mon-kpi__label small { color: var(--mon-muted); font-weight: 500; }

.mon-dash-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 16px; align-items: start; }
@media (max-width: 1200px) { .mon-dash-grid { grid-template-columns: 1fr; } }
.mon-dash-main, .mon-dash-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.mon-dash-side .platform-panel { margin: 0; }
.mon-dash-main .platform-panel { margin: 0; }

.mon-server-grid--dash { grid-template-columns: repeat(auto-fill, minmax(295px, 1fr)); }
.mon-server-card--rich:hover { transform: none; }

.mon-donut-row { display: flex; justify-content: space-between; gap: 4px; margin: 6px 0 8px; }
.mon-donut { text-align: center; flex: 1; min-width: 0; }
.mon-donut__value { font-size: 13px; font-weight: 800; fill: var(--osh-text, #0f172a); }
.mon-donut__label { font-size: 10.5px; font-weight: 700; color: var(--mon-muted); letter-spacing: .3px; margin-top: 2px; }
.mon-donut__sub { font-size: 10px; color: var(--mon-muted); }

.mon-pill { font-size: 10.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; margin-left: auto; white-space: nowrap; }
.mon-pill--online { background: #dcfce7; color: #166534; }
.mon-pill--offline { background: #fee2e2; color: #991b1b; }
.mon-pill--warning, .mon-pill--unknown { background: #fef3c7; color: #92400e; }
.mon-pill--maintenance { background: #ede9fe; color: #5b21b6; }

.mon-net-row { display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; color: var(--mon-muted); margin-bottom: 2px; }
.mon-net-row__vals { font-weight: 600; color: var(--osh-text, #334155); }
.mon-sparkline { width: 100%; height: 34px; display: block; }
.mon-sparkline--empty { height: 34px; background: var(--osh-bg, #f1f5f9); border-radius: 6px; }

.mon-status--sm { width: 9px; height: 9px; box-shadow: none !important; display: inline-block; vertical-align: middle; margin-right: 4px; }
.mon-mono { font-family: ui-monospace, Consolas, monospace; font-size: 12px; }

.mon-ssl { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.mon-ssl--ok { background: #dcfce7; color: #166534; }
.mon-ssl--warn { background: #fef3c7; color: #92400e; }
.mon-ssl--bad { background: #fee2e2; color: #991b1b; }

.mon-uptime-cell { min-width: 130px; }
.mon-uptime-bar { display: inline-block; width: 80px; height: 8px; background: var(--osh-bg, #e2e8f0); border-radius: 99px; overflow: hidden; vertical-align: middle; }
.mon-uptime-bar i { display: block; height: 100%; border-radius: 99px; background: #22c55e; }
.mon-uptime-bar--warn i { background: #f59e0b; }
.mon-uptime-bar--bad i { background: #ef4444; }
.mon-uptime-bar__pct { font-size: 11.5px; font-weight: 700; margin-left: 6px; }
.mon-lat--slow { color: #d97706; font-weight: 700; }

.mon-mini-bar { display: inline-block; width: 54px; height: 7px; background: var(--osh-bg, #e2e8f0); border-radius: 99px; overflow: hidden; vertical-align: middle; margin-right: 6px; }
.mon-mini-bar i { display: block; height: 100%; background: var(--mon-accent); }
.mon-mini-bar i.mon-usage--ok { background: var(--mon-ok); }
.mon-mini-bar i.mon-usage--warning { background: var(--mon-warn); }
.mon-mini-bar i.mon-usage--critical { background: var(--mon-crit); }

.mon-sortable th[data-sort] { cursor: pointer; user-select: none; }
.mon-sortable th[data-sort]::after { content: ' ⇅'; opacity: .45; font-size: 10px; }
.mon-sortable th[data-sort].is-asc::after { content: ' ↑'; opacity: 1; }
.mon-sortable th[data-sort].is-desc::after { content: ' ↓'; opacity: 1; }

.mon-dist-wrap { display: flex; align-items: center; gap: 16px; }
.mon-dist-legend { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.mon-legend-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; background: #94a3b8; }
.mon-chart-legend { display: flex; gap: 14px; font-size: 12px; color: var(--mon-muted); margin-bottom: 4px; }
.mon-chart__axis { font-size: 8.5px; fill: var(--mon-muted); }
.mon-chart--empty { display: flex; align-items: center; justify-content: center; color: var(--mon-muted); font-size: 13px; min-height: 90px; }

.mon-attack-list { display: flex; flex-direction: column; }
.mon-attack { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 2px; border-bottom: 1px dashed var(--osh-border, #e2e8f0); }
.mon-attack:last-child { border-bottom: none; }
.mon-attack__ip { font-weight: 700; font-size: 12.5px; color: var(--osh-text, #0f172a); }
.mon-attack__server { font-size: 11px; color: var(--mon-muted); }
.mon-attack__right { text-align: right; }
.mon-attack__badge { display: block; font-size: 10px; font-weight: 700; background: #fee2e2; color: #991b1b; border-radius: 999px; padding: 2px 8px; }
.mon-attack__meta { font-size: 10.5px; color: var(--mon-muted); }

/* Heatmap de disponibilidade */
.mon-heatmap { display: grid; grid-template-rows: repeat(7, 12px); grid-auto-flow: column; gap: 3px; margin: 8px 0 6px; }
.mon-heat { width: 12px; height: 12px; border-radius: 3px; background: var(--osh-bg, #e2e8f0); display: inline-block; }
.mon-heat--ok { background: #22c55e; }
.mon-heat--good { background: #86efac; }
.mon-heat--warn { background: #fbbf24; }
.mon-heat--bad { background: #ef4444; }
.mon-heat--na { background: var(--osh-bg, #e2e8f0); }
.mon-heat-legend { display: flex; gap: 12px; font-size: 11px; color: var(--mon-muted); align-items: center; }
.mon-heat-legend .mon-heat { width: 10px; height: 10px; vertical-align: middle; margin-right: 3px; }

/* Detalhe do servidor */
.mon-chart { width: 100%; height: 150px; background: var(--osh-surface, #fff); border: 1px solid var(--osh-border, #e2e8f0); border-radius: 10px; margin-bottom: 14px; }
.mon-chart-title { font-size: 12.5px; font-weight: 700; color: var(--mon-muted); margin: 12px 0 6px; }
.mon-legend { display: inline-block; width: 18px; height: 4px; border-radius: 2px; vertical-align: middle; margin-right: 4px; }
.mon-legend--cpu { background: #0ea5e9; }
.mon-legend--mem { background: #8b5cf6; }
.mon-legend--disk { background: #f97316; }
.mon-legend--in { background: #22c55e; }
.mon-legend--out { background: #ef4444; }
.mon-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 900px) { .mon-two-col { grid-template-columns: 1fr; } }
.mon-range { display: flex; gap: 6px; }
.mon-token { word-break: break-all; font-size: 13px; background: var(--osh-bg, #f1f5f9); padding: 6px 10px; border-radius: 8px; display: inline-block; }
.platform-inline-form { display: inline-block; }

/* Detalhe do servidor — cabeçalho e blocos */
.mon-head-stats { display: flex; gap: 12px; align-items: center; }
.mon-head-stat { text-align: center; min-width: 74px; }
.mon-head-stat b { display: block; font-size: 15px; color: var(--osh-text, #0f172a); }
.mon-head-stat span { font-size: 10.5px; font-weight: 700; color: var(--mon-muted); letter-spacing: .3px; }

.mon-install-row { display: flex; align-items: center; gap: 10px; background: var(--osh-bg, #f8fafc); border: 1px dashed var(--osh-border, #e2e8f0); border-radius: 10px; padding: 8px 12px; margin: 10px 0; flex-wrap: wrap; }
.mon-install-row__label { font-size: 12px; font-weight: 700; color: var(--mon-muted); white-space: nowrap; }
.mon-install-cmd { flex: 1; min-width: 200px; font-size: 11.5px; overflow-x: auto; white-space: nowrap; padding: 4px 0; }

.mon-quick-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 10px; }
.mon-quick { background: var(--osh-surface, #fff); border: 1px solid var(--osh-border, #e2e8f0); border-radius: 10px; padding: 9px 12px; }
.mon-quick span { display: block; font-size: 10.5px; font-weight: 700; color: var(--mon-muted); letter-spacing: .3px; }
.mon-quick b { font-size: 12.5px; color: var(--osh-text, #0f172a); }

.mon-detail-actions { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }

.mon-chart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; }
@media (max-width: 1000px) { .mon-chart-grid { grid-template-columns: 1fr; } }

/* Serviços agrupados */
.mon-svc-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.mon-svc-group__title { font-size: 11px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--mon-muted); border-bottom: 1px solid var(--osh-border, #e2e8f0); padding-bottom: 5px; margin-bottom: 7px; }
.mon-svc { display: flex; align-items: center; gap: 7px; padding: 3px 0; font-size: 13px; }
.mon-svc__name { flex: 1; }
.mon-svc__dot--up { background: var(--mon-ok); } .mon-svc__dot--down { background: var(--mon-crit); animation: mon-blink 1.2s infinite; }
.mon-svc__dot--timeout { background: var(--mon-warn); } .mon-svc__dot--unknown { background: #94a3b8; }
.mon-svc .mon-check-chip__dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.mon-svc__status { font-size: 10.5px; font-weight: 700; padding: 1px 8px; border-radius: 999px; }
.mon-svc__status--up { background: #dcfce7; color: #166534; }
.mon-svc__status--down { background: #fee2e2; color: #991b1b; }
.mon-svc__status--timeout { background: #fef3c7; color: #92400e; }
.mon-svc__status--unknown { background: var(--osh-bg, #f1f5f9); color: var(--mon-muted); }

/* Painel recolhível (histórico de alertas) */
.mon-collapse summary { cursor: pointer; list-style: none; display: flex; align-items: center; }
.mon-collapse summary::-webkit-details-marker { display: none; }
.mon-collapse summary::after { content: '▸'; margin-left: auto; font-size: 16px; color: var(--mon-muted); transition: transform .15s; }
.mon-collapse[open] summary::after { transform: rotate(90deg); }
.mon-collapse__hint { font-weight: 500; color: var(--mon-muted); margin-left: 10px; font-size: 12px; }
.mon-collapse[open] summary { margin-bottom: 12px; }
.mon-range--wrap { flex-wrap: wrap; margin-bottom: 12px; }

.mon-pre { background: var(--osh-bg, #f8fafc); border: 1px solid var(--osh-border, #e2e8f0); border-radius: 10px; padding: 10px 14px; font-size: 12.5px; white-space: pre-wrap; }
.platform-textarea { min-height: 60px; font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; }

/* Pareamento Telegram */
.mon-tg-box { margin-bottom: 4px; }
.mon-tg-status--ok { font-size: 13.5px; color: #166534; margin-bottom: 8px; }
.mon-tg-pair { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.mon-tg-qr { text-align: center; border: 1px solid var(--osh-border, #e2e8f0); border-radius: 12px; padding: 10px; background: #fff; }
.mon-tg-steps p { font-size: 13.5px; margin-bottom: 6px; }
.mon-alert-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 10px 0; }
.platform-input--inline { width: 220px; display: inline-block; }
.platform-input--xs { width: 150px; display: inline-block; padding: 3px 8px; font-size: 12px; height: auto; }
.platform-select--inline { width: auto; display: inline-block; }

/* ---- Modo TV ---- */
.mon-tv-body {
    margin: 0;
    background: #0b1220;
    color: #e2e8f0;
    font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
    min-height: 100vh;
}

.mon-tv-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 28px 6px;
}
.mon-tv-header img { height: 30px; }
.mon-tv-header__clock { font-size: 20px; font-weight: 700; color: #7dd3fc; font-variant-numeric: tabular-nums; }
.mon-tv-header__meta { font-size: 12.5px; color: #64748b; text-align: right; }

.mon-tv-wrap { padding: 10px 28px 28px; }

.mon-tv-alertbar {
    background: linear-gradient(90deg, #7f1d1d, #b91c1c);
    border-radius: 14px;
    padding: 14px 22px;
    margin-bottom: 16px;
    font-size: 17px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 14px;
    animation: mon-blink 1.6s ease-in-out infinite;
}

.mon-tv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }

.mon-tv-card {
    background: #101a2e;
    border: 1px solid #1e2a44;
    border-radius: 14px;
    padding: 16px;
}
.mon-tv-card--offline { border-color: #dc2626; box-shadow: 0 0 22px rgba(220, 38, 38, .25); }
.mon-tv-card .mon-server-card__name { color: #f1f5f9; font-size: 15.5px; }
.mon-tv-card .mon-server-card__meta { color: #64748b; }
.mon-tv-card .mon-gauge__bar { background: #1e293b; }
.mon-tv-card .mon-gauge__value { color: #e2e8f0; }
.mon-tv-card .mon-gauge__label { color: #64748b; }
.mon-tv-card .mon-server-card__foot { color: #64748b; }

.mon-tv-checks { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.mon-tv-checks .mon-check-chip { background: #101a2e; border-color: #1e2a44; color: #cbd5e1; }
.mon-tv-checks .mon-check-chip__meta { color: #64748b; }

.mon-tv-footer { margin-top: 18px; font-size: 12px; color: #475569; text-align: center; }

/* Wallboard com slides (padrão Platform) */
.mon-tv-frame { background: #0b1220; }
.mon-tv-body--slide { display: flex; flex-direction: column; height: 100vh; overflow: hidden; }
.mon-tv-wrap--slide { flex: 1; overflow: hidden; padding: 12px 28px; }
.mon-tv-header__left { display: flex; align-items: center; gap: 16px; }
.mon-tv-header__title { font-size: 19px; font-weight: 800; color: #e2e8f0; }
.mon-tv-chip { display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; margin-left: 6px; }
.mon-tv-chip--ok { background: rgba(34, 197, 94, .15); color: #4ade80; }
.mon-tv-chip--warn { background: rgba(245, 158, 11, .15); color: #fbbf24; }
.mon-tv-chip--bad { background: rgba(239, 68, 68, .18); color: #f87171; animation: mon-blink 1.6s infinite; }
.mon-donut-row--tv .mon-donut__value { fill: #e2e8f0; }
.mon-donut-row--tv svg circle:first-child { stroke: #1e293b; }
.mon-donut-row--tv .mon-donut__label { color: #64748b; }

.mon-tv-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; height: 100%; }
.mon-tv-panel { background: #101a2e; border: 1px solid #1e2a44; border-radius: 14px; padding: 18px 20px; overflow: hidden; }
.mon-tv-panel__title { font-size: 16px; font-weight: 800; color: #e2e8f0; margin-bottom: 12px; }
.mon-tv-table { width: 100%; border-collapse: collapse; font-size: 14px; color: #cbd5e1; }
.mon-tv-table th { text-align: left; font-size: 11px; letter-spacing: .5px; text-transform: uppercase; color: #64748b; padding: 6px 8px; border-bottom: 1px solid #1e2a44; }
.mon-tv-table td { padding: 8px; border-bottom: 1px solid #16223a; }
.mon-tv-table small { color: #64748b; }
.mon-tv-allgood { font-size: 20px; color: #4ade80; padding: 40px 0; text-align: center; }
.mon-tv-chart .mon-chart { background: #0d1626; border-color: #1e2a44; }
.mon-tv-chart .mon-chart__axis { fill: #475569; }
.mon-tv-chart .mon-chart-legend { color: #94a3b8; }
.mon-tv-status-row { margin-top: 14px; }
.mon-tv-status-row .mon-dist-legend { color: #cbd5e1; }
.mon-tv-alertbar__age { margin-left: auto; font-size: 13px; opacity: .85; }
.mon-tv-footer--bar { display: flex; justify-content: space-between; padding: 10px 28px; border-top: 1px solid #1e2a44; margin-top: 0; background: #0d1626; }

/* Faixa compacta de disponibilidade (cards) */
.mon-avail-strip { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.mon-avail-strip__label { font-size: 10px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; color: var(--mon-muted); white-space: nowrap; }
.mon-avail-strip__cells { display: flex; gap: 2px; flex: 1; min-width: 0; }
.mon-avail-strip__cells .mon-heat { flex: 1; height: 9px; width: auto; border-radius: 2px; }
.mon-avail-strip__pct { font-size: 11px; color: var(--osh-text, #0f172a); white-space: nowrap; }
