/**
 * NcStatusCheck - Styles de la page de détail serveur
 * Complète style.css (variables CSS partagées)
 */

/* === CHARGEMENT / ERREUR === */

.detail-loading,
.detail-error {
    text-align: center;
    padding: 40px;
    font-size: 1rem;
    color: var(--gray-500);
}

.detail-error {
    color: var(--danger-color);
    background: #fee2e2;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    margin: 24px 0;
}

/* === RÉSUMÉ DES WARNINGS === */

.detail-warnings-summary {
    border-radius: 8px;
    margin-bottom: 24px;
    overflow: hidden;
    border: 1px solid transparent;
}

.ws-ok {
    background: #dcfce7;
    border-color: #bbf7d0;
    color: #15803d;
    padding: 14px 18px;
    font-weight: 500;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
}

.ws-header {
    background: #fef3c7;
    border-bottom: 1px solid #fde68a;
    padding: 12px 18px;
    font-weight: 600;
    color: #92400e;
}

.ws-list {
    margin: 0;
    padding: 12px 18px 12px 36px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-top: none;
    border-radius: 0 0 8px 8px;
    color: #78350f;
    font-size: 0.875rem;
    line-height: 1.7;
}

/* === SECTIONS === */

.detail-section {
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
}

.detail-section-title {
    margin: 0;
    padding: 14px 18px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-700);
    background: white;
    border-bottom: 1px solid var(--gray-100);
}

/* === TABLE DE DÉTAIL === */

.detail-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.detail-table thead th {
    padding: 8px 14px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-500);
    text-align: left;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-100);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.detail-table thead th:nth-child(1) { width: 220px; }
.detail-table thead th:nth-child(2) { width: auto; }
.detail-table thead th:nth-child(3) { width: 52px;  text-align: center; }
.detail-table thead th:nth-child(4) { width: 40%; }

.detail-table tbody tr {
    border-bottom: 1px solid var(--gray-100);
    background: white;
}

.detail-table tbody tr:last-child {
    border-bottom: none;
}

.detail-table tbody tr:hover {
    background: var(--gray-50);
}

.detail-label {
    padding: 10px 14px;
    font-weight: 500;
    color: var(--gray-700);
}

.detail-value {
    padding: 10px 14px;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', monospace;
    font-size: 0.8125rem;
    color: var(--gray-900);
}

.detail-indicator {
    padding: 10px 8px;
    text-align: center;
    font-size: 1rem;
}

.detail-note {
    padding: 10px 14px;
    font-size: 0.8rem;
    color: #92400e;
    font-style: italic;
}

/* === INDICATEURS ✅ / ⚠️ === */

.di {
    display: inline-block;
    font-size: 1rem;
    cursor: default;
}

.di.ok   { opacity: 0.85; }
.di.warn { }

/* === TAGS INLINE === */

.tag-warn {
    display: inline-block;
    padding: 2px 8px;
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 600;
}

.detail-na {
    color: var(--gray-500);
    font-style: italic;
}

/* === INFO CACHE === */

.detail-cache-note {
    margin: 0 0 12px;
    font-size: 0.8rem;
    color: var(--gray-500);
    text-align: right;
}

/* === COLONNE SANTÉ (tableau de bord principal) === */

.sante-cell {
    text-align: center;
    white-space: nowrap;
}

.sante-ok,
.sante-warn {
    display: inline-block;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    transition: opacity 0.15s;
}

.sante-ok {
    color: var(--success-color);
}

.sante-ok:hover {
    opacity: 0.75;
}

.sante-warn {
    color: var(--warning-color);
    background: #fef3c7;
    border: 1px solid #fde68a;
}

.sante-warn:hover {
    background: #fde68a;
}

/* Lien sur le nom du serveur (mode Extended) */
a.server-link {
    color: var(--primary-dark);
    text-decoration: none;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', monospace;
    font-size: 0.8125rem;
}

a.server-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}
