/**
 * Projet         : MageTicket
 * Fichier        : public/assets/css/status.css
 * Rôle           : Composants isolés de la page Incidents et maintenances.
 * Auteur         : Régis KREMER
 * Version        : 0.33.11
 * Version projet : 0.33.0
 * Lot            : MAGETICKET REQUESTER PORTAL SHELL NAVIGATION STATUS SETTINGS CONSISTENCY FIX2
 * Base requise   : 0.33.0 + MAGETICKET REQUESTER PORTAL UX ACCESSIBILITY FUNCTIONAL COMPLETION1
 * Créé le        : 2026-07-22
 * Modifié le     : 2026-07-24
 * Dépendances    : tokens.css, components.css, shell.css et public-pages.css.
 * Contraintes    : aucune redéfinition de composant partagé ; classes préfixées ; mobile/tablette bord à bord.
 * Modifications  : suppression des collisions status-summary, état vide unique et intégration au shell demandeur.
 */

.service-status-center,
.service-status-page {
    min-width: 0;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--bg);
}

.service-status-page.public-page {
    width: 100%;
    max-width: none;
    padding: 0;
}

.service-status-public-header {
    width: min(1180px, calc(100% - (2 * var(--space-5))));
    min-height: 112px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6);
    margin: 0 auto;
    padding: var(--space-5) 0 var(--space-4);
    border-bottom: 1px solid var(--line);
}

.service-status-public-header > div {
    min-width: 0;
}

.service-status-public-header .eyebrow,
.service-status-main .eyebrow {
    margin: 0 0 var(--space-1);
    color: var(--brand);
    font-size: var(--fs-xs);
    font-weight: var(--fw-title);
    letter-spacing: .08em;
    text-transform: uppercase;
}

.service-status-public-header h1 {
    margin: 0;
    font-size: var(--fs-2xl);
    letter-spacing: -.03em;
}

.service-status-public-header p:not(.eyebrow) {
    max-width: 760px;
    margin: var(--space-1) 0 0;
    color: var(--muted);
    line-height: 1.5;
}

.service-status-main {
    width: 100%;
    min-width: 0;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4) calc(var(--space-5) + var(--safe-bottom));
}

.service-status-page .service-status-main {
    width: min(1180px, 100%);
    margin: 0 auto;
    padding-inline: max(var(--space-5), var(--safe-left)) max(var(--space-5), var(--safe-right));
}

.service-status-overview {
    min-width: 0;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4);
    border: 1px solid var(--line);
    border-left-width: 4px;
    background: var(--surface);
    box-shadow: var(--shadow-1);
}

.service-status-overview.is-clear {
    border-left-color: var(--success-strong);
}

.service-status-overview.has-events {
    grid-template-columns: 52px minmax(0, 1fr);
    border-left-color: var(--warning-strong);
}

.service-status-overview__icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: var(--icon-lg);
}

.service-status-overview.is-clear .service-status-overview__icon {
    color: var(--success-strong);
    background: var(--success-soft);
}

.service-status-overview.has-events .service-status-overview__icon {
    color: var(--warning-strong);
    background: var(--warning-soft);
}

.service-status-overview h2 {
    margin: 0;
    font-size: var(--fs-xl);
}

.service-status-overview p:not(.eyebrow) {
    max-width: 860px;
    margin: var(--space-1) 0 0;
    color: var(--muted);
    line-height: 1.5;
}

.service-status-section-heading {
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--line);
    background: var(--surface-soft);
}

.service-status-section-heading h2 {
    margin: 0;
    font-size: var(--fs-lg);
}

.service-status-section-heading > span {
    color: var(--muted);
    font-size: var(--fs-sm);
    font-weight: var(--fw-label);
}

.service-status-list {
    display: grid;
    gap: var(--space-3);
}

.service-status-event {
    min-width: 0;
    padding: var(--space-4);
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow-1);
}

.service-status-event > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
}

.service-status-event h3 {
    margin: var(--space-3) 0 var(--space-2);
    font-size: var(--fs-lg);
}

.service-status-event > p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.service-status-event time {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    color: var(--muted);
    font-size: var(--fs-xs);
}

.service-status-event dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin: var(--space-4) 0 0;
    border: 1px solid var(--line);
    background: var(--line);
}

.service-status-event dl > div {
    padding: var(--space-3);
    background: var(--surface-soft);
}

.service-status-event dt {
    color: var(--muted);
    font-size: var(--fs-xs);
}

.service-status-event dd {
    margin: var(--space-1) 0 0;
}

.service-status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 var(--space-2);
    border: 1px solid var(--line-strong);
    font-size: var(--fs-xs);
    font-weight: var(--fw-label);
    text-transform: uppercase;
}

.service-status-badge.is-resolved {
    border-color: var(--success-strong);
    color: var(--success);
}

.service-status-badge:is(.is-investigating, .is-identified, .is-monitoring) {
    border-color: var(--warning-strong);
    color: var(--warning);
}

.service-status-help {
    min-height: 66px;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--line);
    background: var(--surface-soft);
}

.service-status-help > i {
    color: var(--brand);
    font-size: var(--icon-lg);
}

.service-status-help strong,
.service-status-help p {
    display: block;
    margin: 0;
}

.service-status-help p {
    margin-top: 2px;
    color: var(--muted);
    font-size: var(--fs-sm);
    line-height: 1.45;
}

.service-status-help a {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    white-space: nowrap;
}

@media (max-width: 760px) {
    .service-status-public-header {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
        gap: var(--space-3);
        padding: var(--space-4) max(var(--space-4), var(--safe-right)) var(--space-4) max(var(--space-4), var(--safe-left));
    }

    .service-status-public-header .button {
        width: 100%;
    }

    .service-status-main,
    .service-status-page .service-status-main {
        gap: 0;
        padding: 0 0 calc(var(--space-4) + var(--safe-bottom));
    }

    .service-status-overview,
    .service-status-overview.has-events {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: var(--space-3);
        padding: var(--space-4) max(var(--space-4), var(--safe-right)) var(--space-4) max(var(--space-4), var(--safe-left));
        border-width: 0 0 1px 4px;
        box-shadow: none;
    }

    .service-status-overview__icon {
        width: 44px;
        height: 44px;
    }

    .service-status-overview .button {
        grid-column: 1 / -1;
        width: 100%;
    }

    .service-status-section-heading,
    .service-status-event,
    .service-status-help {
        border-right: 0;
        border-left: 0;
        box-shadow: none;
    }

    .service-status-list {
        gap: 0;
    }

    .service-status-event > header {
        align-items: flex-start;
        flex-direction: column;
    }

    .service-status-event dl {
        grid-template-columns: 1fr;
    }

    .service-status-help {
        grid-template-columns: 28px minmax(0, 1fr);
    }

    .service-status-help a {
        grid-column: 1 / -1;
    }
}

@media (forced-colors: active) {
    .service-status-overview,
    .service-status-section-heading,
    .service-status-event,
    .service-status-help {
        border-color: CanvasText;
    }
}
