/* Personnalisations applicatives ; la charte reste fournie par StelogyAdminLTE. */

.dashboard-chart { position: relative; height: 280px; }
.dashboard-table { max-height: 650px; }
.dashboard-table thead th { position: sticky; top: 0; z-index: 1; background: #fff; white-space: nowrap; }
.dashboard-table th, .dashboard-table td { vertical-align: middle; }
.dashboard-table small { white-space: nowrap; }
.dashboard-measure-date td { font-size: .8rem; }
.dashboard-state-counts { gap: .5rem; }
@media (max-width: 575.98px) {
    .dashboard-chart { height: 240px; }
    .small-box .inner h3 { font-size: 1.8rem; }
}

.host-output { white-space: pre-wrap; overflow-wrap: anywhere; max-width: 32rem; max-height: 20rem; overflow: auto; }
.host-identity dd { overflow-wrap: anywhere; }
.host-timeline { max-height: 36rem; }

.host-services table { min-width: 1050px; }
.host-metrics { max-height: 36rem; }

.ldap-diagnostic dd { overflow-wrap: anywhere; }

.identity-value { overflow-wrap: anywhere; min-width: 180px; }

.audit-payload { white-space: pre-wrap; overflow-wrap: anywhere; max-width: 32rem; font-size: .8rem; }

.metric-mappings-table td:nth-child(2) .form-control { min-width: 110px; }
.metric-mappings-table td:nth-child(3) .form-control { min-width: 220px; }
.metric-mappings-table td:nth-child(4) .form-control { min-width: 190px; }

.collection-progress-cell { min-width: 240px; }

.collection-http-cell { min-width: 200px; }

/* Les utilitaires Bootstrap (ex. d-flex) ne doivent pas empêcher la réduction. */
.card.collapsed-card:not(.expanding-card) > .card-body,
.card.collapsed-card:not(.expanding-card) > .card-footer { display: none !important; }

/* En mode agrandi, le corps de carte gère le défilement vertical. */
[data-cpe-card].maximized-card .dashboard-table { max-height: none; }
[data-cpe-card].maximized-card.was-collapsed > .card-body { display: block !important; }
[data-cpe-card].maximized-card [data-card-widget="collapse"] { display: none; }

/* Couleur des icônes routeur selon le statut du KPI, sans modifier le kit. */
.dashboard-kpi .icon { color: var(--dashboard-kpi-icon-color); }
.dashboard-kpi-hosts { --dashboard-kpi-icon-color: #17a2b8; }
.dashboard-kpi-available { --dashboard-kpi-icon-color: #28a745; }
.dashboard-kpi-unavailable { --dashboard-kpi-icon-color: #dc3545; }
.dashboard-kpi-maintenance { --dashboard-kpi-icon-color: #FFF327; }
