/* Hub Suivi des missions — thème indigo (réutilise .sh-* de support-hub) */

body:has(.su-hub-page) .container,
body:has(.su-hub-page) #content,
body:has(.su-hub-page).has-navbar > .content,
body:has(.su-hub-page)[data-navbar="side"].minimized #content,
body:has(.su-hub-page)[data-navbar="side"].has-navbar > .content {
    max-width: none !important;
    width: 100%;
}

.su-hub-page.sh-hub-page,
.su-hub-page .sh-hub {
    --sh-accent: #4338ca;
    --sh-accent-2: #6366f1;
    --sh-accent-dark: #312e81;
    --sh-accent-soft: #eef2ff;
    --sh-accent-ring: rgba(67, 56, 202, .2);
    --sh-info: #4338ca;
    --sh-info-bg: #eef2ff;
    --sh-info-dot: #6366f1;
    font-family: var(--jp-font, inherit);
}

.su-hub-page .sh-header {
    background:
        radial-gradient(1200px 300px at 85% -60%, rgba(255, 255, 255, .14), transparent 60%),
        radial-gradient(600px 220px at 10% 140%, rgba(99, 102, 241, .35), transparent 60%),
        linear-gradient(120deg, #312e81 0%, #4338ca 45%, #6366f1 100%);
}

/* Boutons header : lisibles sur le dégradé indigo */
.su-hub-page .sh-header .sh-header-btn {
    width: auto;
    height: auto;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    gap: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .28);
    white-space: nowrap;
    box-shadow: none;
}
.su-hub-page .sh-header .sh-header-btn:hover {
    background: rgba(255, 255, 255, .24);
    color: #fff;
}
.su-hub-page .sh-header .sh-icon-btn.sh-header-btn {
    width: 38px;
    min-width: 38px;
    height: 38px;
    padding: 0;
}
.su-hub-page .sh-header .su-btn-primary,
.su-hub-page .sh-header .sh-btn.su-btn-primary {
    background: #fff;
    color: #312e81;
    border-color: #fff;
}
.su-hub-page .sh-header .su-btn-primary:hover,
.su-hub-page .sh-header .sh-btn.su-btn-primary:hover {
    background: #eef2ff;
    color: #312e81;
}
.su-hub-page .sh-header .sh-btn-ghost.sh-header-btn {
    background: transparent;
    color: #fff;
}

.su-hub-page .mh-kpi-row { margin: 14px 0 10px; }
.su-hub-page .mh-block-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 8px;
}
.su-hub-page .mh-status-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.su-hub-page .mh-scard {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #e2e8f0;
    background: #fff;
    border-radius: 10px;
    padding: 8px 12px;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
}
.su-hub-page .mh-scard:hover {
    border-color: #c7d2fe;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, .12);
}
.su-hub-page .mh-scard.is-on {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, .18);
}
.su-hub-page .mh-scard-value {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 20px;
    padding: 0 6px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: var(--mh-tone, #64748b);
}
.su-hub-page .mh-scard-label {
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.su-hub-page .mh-scard.tone-total { --mh-tone: #4338ca; }
.su-hub-page .mh-scard.tone-ok { --mh-tone: #15803d; }
.su-hub-page .mh-scard.tone-warn { --mh-tone: #b45309; }
.su-hub-page .mh-scard.tone-danger { --mh-tone: #b91c1c; }
.su-hub-page .mh-scard.tone-info { --mh-tone: #0369a1; }
.su-hub-page .mh-scard.tone-neutral { --mh-tone: #64748b; }

.su-origin-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0 0;
    padding: 10px 14px;
    border-radius: 10px;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    color: #3730a3;
    font-size: 13px;
    font-weight: 600;
}
.su-origin-banner.hidden { display: none !important; }
.su-origin-clear { margin-left: auto; }

.su-meteo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 12.5px;
}
.su-meteo-ico {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}
.su-meteo.tone-ok .su-meteo-ico { background: #dcfce7; color: #15803d; }
.su-meteo.tone-warn .su-meteo-ico { background: #ffedd5; color: #c2410c; }
.su-meteo.tone-danger .su-meteo-ico { background: #fee2e2; color: #b91c1c; }
.su-meteo.tone-neutral .su-meteo-ico,
.su-meteo.is-empty .su-meteo-ico { background: #f1f5f9; color: #94a3b8; }
.su-meteo.tone-ok { color: #166534; }
.su-meteo.tone-warn { color: #9a3412; }
.su-meteo.tone-danger { color: #991b1b; }

.su-table td.su-date {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    white-space: nowrap;
}
.su-table td.su-muted,
.su-muted { color: #64748b; font-size: 12.5px; }
.su-table td.su-synth {
    max-width: 280px;
    color: #475569;
    font-size: 12.5px;
    line-height: 1.35;
}

.su-origin-link {
    color: #312e81;
    text-decoration: none;
    font-weight: 650;
}
.su-origin-link:hover { text-decoration: underline; }
.su-origin-kind {
    display: inline-block;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .03em;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4338ca;
    margin-right: 4px;
}

.su-empty {
    padding: 48px 24px;
    text-align: center;
    color: #64748b;
}
.su-empty .fas {
    font-size: 28px;
    margin-bottom: 10px;
    opacity: .55;
}

.su-hub-page .mh-col-acts {
    width: 48px;
    text-align: center;
    overflow: visible;
}
.su-hub-page .mh-row-acts { position: relative; display: inline-flex; }
.su-hub-page .mh-act-menu-btn {
    width: 30px; height: 30px; border: 1px solid #e2e8f0; border-radius: 8px;
    background: #fff; color: #64748b; cursor: pointer;
}
.su-hub-page .mh-act-menu {
    display: none; position: absolute; top: calc(100% + 4px); right: 0; z-index: 10050;
    min-width: 150px; padding: 6px 0; background: #fff; border: 1px solid #e2e8f0;
    border-radius: 10px; box-shadow: 0 10px 28px rgba(15, 23, 42, .14);
}
.su-hub-page .mh-row-acts.is-open .mh-act-menu { display: block; }
.su-hub-page .mh-act-item {
    display: flex; align-items: center; gap: 8px; width: 100%;
    border: 0; background: transparent; padding: 8px 12px; text-align: left;
    font-size: 13px; font-weight: 600; color: #334155; cursor: pointer;
}
.su-hub-page .mh-act-item:hover { background: #f8fafc; }

/* ── Détail ─────────────────────────────────────────────── */

.su-detail-page .su-hero {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border-radius: 14px;
    margin-bottom: 14px;
    border: 1px solid transparent;
}
.su-detail-page .su-hero.tone-ok {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border-color: #a7f3d0;
}
.su-detail-page .su-hero.tone-warn {
    background: linear-gradient(135deg, #fffbeb, #ffedd5);
    border-color: #fdba74;
}
.su-detail-page .su-hero.tone-danger {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border-color: #fca5a5;
}
.su-detail-page .su-hero.tone-neutral {
    background: #f8fafc;
    border-color: #e2e8f0;
}
.su-hero-ico {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    background: rgba(255, 255, 255, .7);
}
.su-hero.tone-ok .su-hero-ico { color: #15803d; }
.su-hero.tone-warn .su-hero-ico { color: #c2410c; }
.su-hero.tone-danger .su-hero-ico { color: #b91c1c; }
.su-hero-label { font-size: 18px; font-weight: 800; color: #0f172a; }
.su-hero-hint { font-size: 13px; color: #64748b; margin-top: 2px; }
.su-hero-date { margin-left: auto; text-align: right; }
.su-hero-date-lab {
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .04em; color: #94a3b8;
}
.su-hero-date-val { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }

.su-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 14px;
}
@media (max-width: 960px) {
    .su-detail-grid { grid-template-columns: 1fr; }
    .su-hero { flex-wrap: wrap; }
    .su-hero-date { margin-left: 0; text-align: left; width: 100%; }
}

.su-detail-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px 18px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.su-detail-card-h {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 12px;
}
.su-prose {
    font-size: 14px;
    line-height: 1.55;
    color: #334155;
    white-space: pre-wrap;
}
.su-alert-box {
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
}
.su-chip {
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 750;
}
.su-chip.is-warn { background: #ffedd5; color: #9a3412; }

.su-origin-card {
    width: 100%;
    text-align: left;
    border: 1px solid #c7d2fe;
    background: #eef2ff;
    border-radius: 12px;
    padding: 12px 14px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.su-origin-card:hover { background: #e0e7ff; }
.su-origin-card strong { font-size: 14px; color: #1e1b4b; }
.su-origin-go {
    margin-top: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #4338ca;
}

.su-detail-dl { margin: 0; }
.su-detail-row {
    display: grid;
    grid-template-columns: 42% 1fr;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
}
.su-detail-row:last-child { border-bottom: 0; }
.su-detail-row dt {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #94a3b8;
}
.su-detail-row dd {
    margin: 0;
    font-size: 13.5px;
    font-weight: 650;
    color: #0f172a;
}

.su-detail-actions {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    flex: none;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.su-detail-page .su-card-spacer { flex: 1 1 auto; }
.su-detail-page .su-card-edit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #4338ca;
    border-radius: 8px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}
.su-detail-page .su-card-edit:hover {
    background: #eef2ff;
    border-color: #c7d2fe;
}

.su-detail-page.is-editing .su-hero.is-edit-hint {
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    border-color: #c7d2fe;
}
.su-detail-page.is-editing .su-hero.is-edit-hint .su-hero-ico { color: #4338ca; }

.su-edit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 14px;
}
.su-edit-grid.is-stack { grid-template-columns: 1fr; }
.su-edit-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
    margin: 0;
    font-weight: 400;
}
.su-edit-field.is-wide { grid-column: 1 / -1; }
.su-edit-field.is-hidden { display: none !important; }
.su-edit-field > span {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #94a3b8;
}
.su-edit-field .form-control {
    height: 36px;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 13px;
    border: 1px solid #e2e8f0;
}
.su-edit-field textarea.form-control {
    height: auto;
    min-height: 96px;
    resize: vertical;
    line-height: 1.45;
}
.su-edit-field.is-ro b {
    font-size: 13.5px;
    font-weight: 650;
    color: #0f172a;
    padding: 6px 0;
}
.su-edit-check {
    grid-column: 1 / -1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0 0;
    font-size: 13.5px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
}
.su-edit-check input { margin: 0; }
.su-ident-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.su-ident-opt {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 6px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
}
.su-ident-opt:has(input:checked) {
    border-color: #6366f1;
    background: #eef2ff;
    color: #312e81;
}
.su-ident-opt input { margin: 0; }
.su-origin-card.is-ro {
    cursor: default;
    pointer-events: none;
}
.su-detail-card.is-editing {
    border-color: #c7d2fe;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, .08);
}
.su-muted { color: #94a3b8; font-style: italic; }

/* Icône suivi dans hub missions */
.mh-suivi-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 15px;
    transition: transform .12s, box-shadow .12s, opacity .12s;
    pointer-events: auto;
    opacity: 1;
}
.mh-suivi-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, .12);
}
.mh-suivi-btn.is-busy {
    opacity: .55;
    pointer-events: none;
    cursor: wait;
}
.mh-suivi-btn.is-attente { background: #f1f5f9; color: #64748b; border-color: #e2e8f0; }
.mh-suivi-btn.is-no { background: #fee2e2; color: #b91c1c; border-color: #fecaca; }
.mh-suivi-btn.is-oui { background: #dcfce7; color: #15803d; border-color: #bbf7d0; }
.mh-suivi-btn.is-alerte { background: #ffedd5; color: #c2410c; border-color: #fed7aa; }
.mh-suivi-btn.no-suivi:hover {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, .18);
}
.mh-col-suivi {
    width: 56px;
    text-align: center;
}
