/* Zone18 — Opérations (Interventions, Synoptique, CRSS bridge) */

.z18-operations-page,
.z18-inter-page,
.z18-synoptique-page,
.z18-crss-page {
    --z18o-red: #e5483f;
    --z18o-ink: #343a40;
    --z18o-muted: #878a99;
    --z18o-line: #e4e7eb;
}

/* Deux barres d’onglets (ops + sous-nav CRSS) */
.z18-crss-page .z18-section-tabs + .z18-section-tabs,
.z18-operations-page .z18-section-tabs + .z18-section-tabs {
    margin-top: 8px;
}

body.z18-velzon-test .z18-inter-page .grid-1,
body.z18-velzon-test .z18-inter-page .grid-2,
body.z18-velzon-test .z18-inter-page .grid-3,
body.z18-velzon-test .z18-synoptique-page .grid-1,
body.z18-velzon-test .z18-synoptique-page .grid-2,
body.z18-velzon-test .z18-crss-page .grid-1,
body.z18-velzon-test .z18-crss-page .grid-3,
body.z18-velzon-test .z18-crss-page .grid-4 {
    float: none !important;
    width: 100% !important;
    margin: 0 0 14px !important;
}

body.z18-velzon-test .z18-inter-page .title-grid,
body.z18-velzon-test .z18-synoptique-page .title-grid,
body.z18-velzon-test .z18-crss-page .title-grid {
    min-height: 40px;
    padding: 10px 14px !important;
    border: 1px solid var(--z18o-line) !important;
    border-bottom: 0 !important;
    border-radius: 12px 12px 0 0 !important;
    color: var(--z18o-ink) !important;
    background: #fff !important;
    font-size: 12px;
    font-weight: 700;
}

body.z18-velzon-test .z18-inter-page .content-gird-1,
body.z18-velzon-test .z18-inter-page .content-gird-2,
body.z18-velzon-test .z18-synoptique-page .content-gird-1,
body.z18-velzon-test .z18-synoptique-page .content-gird-2,
body.z18-velzon-test .z18-crss-page .content-gird-1,
body.z18-velzon-test .z18-crss-page .content-gird-2 {
    padding: 14px !important;
    border: 1px solid var(--z18o-line) !important;
    border-radius: 0 0 12px 12px !important;
    background: #fff !important;
}

body.z18-velzon-test .z18-inter-page table.display,
body.z18-velzon-test .z18-synoptique-page table.display,
body.z18-velzon-test .z18-crss-page table.display {
    width: 100% !important;
    border: 0 !important;
}

body.z18-velzon-test .z18-inter-page table.display th,
body.z18-velzon-test .z18-inter-page table.display td,
body.z18-velzon-test .z18-synoptique-page table.display th,
body.z18-velzon-test .z18-synoptique-page table.display td,
body.z18-velzon-test .z18-crss-page table.display th,
body.z18-velzon-test .z18-crss-page table.display td {
    height: auto !important;
    padding: 9px 8px !important;
    border: 0 !important;
    border-bottom: 1px solid #eef0f2 !important;
    font-size: 12px !important;
}

body.z18-velzon-test .z18-inter-page table.display th,
body.z18-velzon-test .z18-synoptique-page table.display th,
body.z18-velzon-test .z18-crss-page table.display th {
    color: #64748b !important;
    background: #f8f9fb !important;
    text-transform: uppercase;
    font-size: 11px !important;
}

.z18-inter-page .z18-card,
.z18-synoptique-page .z18-card {
    margin-bottom: 14px;
    border: 1px solid var(--z18o-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(56, 65, 74, .04);
    overflow: hidden;
}

.z18-inter-page .z18-card-title,
.z18-synoptique-page .z18-card-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid #eef1f4;
    background: linear-gradient(180deg, #fff 0%, #fafbfc 100%);
    font-size: 14px;
    font-weight: 700;
}

.z18-synoptique-page .z18-card-title-sub {
    margin: 0 0 8px;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.z18-synoptique-page .z18-synoptique-inter-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 14px;
    padding: 14px;
}

.z18-synoptique-page .z18-synoptique-inter-grid > .content-gird-2 {
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

.z18-synoptique-page .z18-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    background: #f1f3f6;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.z18-inter-page .inter-detail-top-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, .7fr);
    gap: 14px;
    margin-bottom: 14px;
}

.z18-inter-page .inter-detail-card {
    margin-bottom: 14px;
    border: 1px solid var(--z18o-line);
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
}

.z18-inter-page .inter-detail-body {
    padding: 14px;
}

.z18-inter-page .inter-detail-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.z18-inter-page .inter-detail-kpi {
    padding: 10px 12px;
    border: 1px solid #eef1f4;
    border-radius: 10px;
    background: #fafbfc;
}

.z18-inter-page .inter-detail-kpi b {
    display: block;
    margin-bottom: 4px;
    color: #64748b;
    font-size: 11px;
    text-transform: uppercase;
}

.z18-inter-page .inter-detail-kpi span {
    color: var(--z18o-ink);
    font-size: 13px;
    font-weight: 700;
}

.z18-inter-page .inter-detail-empty {
    color: var(--z18o-muted);
    font-size: 13px;
}

.z18-inter-page .inter-detail-table {
    width: 100%;
    border-collapse: collapse;
}

.z18-inter-page .inter-detail-table th,
.z18-inter-page .inter-detail-table td {
    padding: 8px;
    border-bottom: 1px solid #eef0f2;
    font-size: 12px;
    text-align: left;
}

.z18-inter-page .inter-detail-table th {
    color: #64748b;
    background: #f8f9fb;
    text-transform: uppercase;
    font-size: 11px;
}

@media (max-width: 900px) {
    .z18-inter-page .inter-detail-top-grid,
    .z18-synoptique-page .z18-synoptique-inter-grid,
    .z18-inter-page .inter-detail-summary {
        grid-template-columns: 1fr;
    }
}

/* Synoptique départementale — vue engins */
.z18-synoptique-page .syno-kpi-wrap {
    display: grid;
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.z18-synoptique-page .syno-kpi {
    background: #f7f9fc;
    border: 1px solid #dfe4ec;
    border-radius: 10px;
    padding: 10px 12px;
    text-align: center;
}

.z18-synoptique-page .syno-kpi strong {
    display: block;
    color: #1f252e;
    font-size: 22px;
    line-height: 24px;
}

.z18-synoptique-page .syno-kpi span {
    display: block;
    color: #667085;
    font-size: 12px;
    margin-top: 3px;
    text-transform: uppercase;
}

.z18-synoptique-page .syno-dep-wrap {
    display: grid;
    gap: 10px;
}

.z18-synoptique-page .syno-dep-row {
    display: grid;
    grid-template-columns: minmax(245px, 295px) 1fr;
    gap: 14px;
    align-items: stretch;
    background: #fff;
    border: 1px solid #dfe4ec;
    border-radius: 10px;
    padding: 11px;
    box-shadow: 0 2px 6px rgba(31, 37, 46, .06);
    transition: border-color .15s ease, box-shadow .15s ease;
}

.z18-synoptique-page .syno-dep-row:hover {
    border-color: #c9d2df;
    box-shadow: 0 4px 12px rgba(31, 37, 46, .10);
}

.z18-synoptique-page .syno-centre-name {
    border-right: 1px solid #e5e9f0;
    padding-right: 12px;
}

.z18-synoptique-page .syno-centre-name strong {
    display: block;
    color: #1f252e;
    font-size: 15px;
    margin-bottom: 3px;
}

.z18-synoptique-page .syno-centre-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 3px;
    justify-content: space-between;
}

.z18-synoptique-page .syno-centre-title-main {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
}

.z18-synoptique-page .syno-centre-tag {
    color: #fff;
    background: #1f252e;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 5px;
    line-height: 14px;
}

.z18-synoptique-page .syno-centre-personnel {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f2f4f7;
    border: 1px solid #dfe4ec;
    border-radius: 999px;
    color: #667085;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 7px;
    white-space: nowrap;
}

.z18-synoptique-page .syno-centre-personnel b {
    color: #1f252e;
}

.z18-synoptique-page .syno-centre-personnel i {
    color: #b2bac7;
    font-style: normal;
}

.z18-synoptique-page .syno-centre-renfort {
    display: inline-flex;
    align-items: center;
    background: #e9f0ff;
    border: 1px solid #cddaf7;
    border-radius: 999px;
    color: #234f9d;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 8px;
    white-space: nowrap;
}

.z18-synoptique-page .syno-veh-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 34px;
}

.z18-synoptique-page .syno-veh-list [class^="synoptique"],
.z18-synoptique-page .syno-veh-list [class*=" synoptique"] {
    width: auto !important;
    min-width: 72px;
    margin: 0 !important;
    padding: 6px 9px !important;
    border-radius: 7px !important;
    box-shadow: 0 2px 5px rgba(31, 37, 46, .14) !important;
    font-size: 12px;
    line-height: 16px;
    transition: background-color .35s ease, color .35s ease, box-shadow .35s ease, transform .35s ease;
}

.z18-synoptique-page .syno-veh-list [class^="synoptique"] b,
.z18-synoptique-page .syno-veh-list [class*=" synoptique"] b {
    display: block;
    white-space: nowrap;
}

/* Mouvement opérationnel : transit / engagé / retour */
.z18-synoptique-page .syno-veh-list .synoptique2,
.z18-synoptique-page .syno-veh-list .synoptique3,
.z18-synoptique-page .syno-veh-list .synoptique5,
.z18-synoptique-page .syno-veh-list .synoptique7,
.z18-synoptique-page .syno-veh-list .synoptique8,
.z18-synoptique-page .syno-veh-list .synoptique10,
.z18-synoptique-page .syno-veh-list .synoptique12 {
    animation: syno-veh-transit 2.8s ease-in-out infinite;
}

.z18-synoptique-page .syno-veh-list .synoptique4,
.z18-synoptique-page .syno-veh-list .synoptique6 {
    animation: syno-veh-scene 3.6s ease-in-out infinite;
}

.z18-synoptique-page .syno-veh-list .syno-veh-changed {
    animation: syno-veh-flash .85s ease;
}

@keyframes syno-veh-transit {
    0%, 100% { box-shadow: 0 2px 5px rgba(31, 37, 46, .14); transform: translateY(0); }
    50% { box-shadow: 0 2px 10px rgba(31, 37, 46, .28); transform: translateY(-1px); }
}

@keyframes syno-veh-scene {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.06); }
}

@keyframes syno-veh-flash {
    0% { transform: scale(1); }
    40% { transform: scale(1.04); }
    100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .z18-synoptique-page .syno-veh-list [class^="synoptique"],
    .z18-synoptique-page .syno-veh-list [class*=" synoptique"] {
        animation: none !important;
        transition: none !important;
    }
}

.z18-synoptique-page .syno-veh-empty {
    color: #667085;
    font-style: italic;
}

.z18-synoptique-page .syno-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 9px 14px;
    justify-content: center;
    padding-top: 2px;
}

.z18-synoptique-page .syno-legend span,
.syno-legend span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #505b6b;
}

.syno-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid #9199a5;
    display: inline-block;
}

.syno-dot.ok { background: #419f2e; }
.syno-dot.nok { background: #faff93; }
.syno-dot.busy { background: #ff5900; }
.syno-dot.manoeuvre { background: #6e0b14; }
.syno-dot.down { background: #434543; }

@media (max-width: 850px) {
    .z18-synoptique-page .syno-kpi-wrap {
        grid-template-columns: repeat(2, minmax(120px, 1fr));
    }

    .z18-synoptique-page .syno-dep-row {
        display: block;
    }

    .z18-synoptique-page .syno-centre-name {
        border-right: 0;
        border-bottom: 1px solid #e5e9f0;
        padding: 0 0 8px;
        margin-bottom: 8px;
    }
}

@media (max-width: 520px) {
    .z18-synoptique-page .syno-kpi-wrap {
        grid-template-columns: 1fr;
    }

    .z18-synoptique-page .syno-centre-title {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* —— CTA CODIS / salle d'appels (site) —— */
.z18-co-page {
    --z18co-ink: #1f252e;
    --z18co-muted: #667085;
    --z18co-line: #e4e7eb;
    --z18co-red: #c0392b;
    --z18co-orange: #d35400;
    --z18co-blue: #2f7cc0;
    --z18co-green: #247a3d;
}

.z18-co-page .z18-card {
    margin-bottom: 14px;
    border: 1px solid var(--z18co-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(56, 65, 74, .04);
    overflow: hidden;
}

.z18-co-page .z18-card-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid #eef1f4;
    background: linear-gradient(180deg, #fff 0%, #fafbfc 100%);
    font-size: 14px;
    font-weight: 700;
    color: var(--z18co-ink);
}

.z18-co-page .z18-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    background: #f1f3f6;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.z18-co-kpi-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(110px, 1fr));
    gap: 10px;
    padding: 14px;
}

.z18-co-kpi {
    text-align: center;
    padding: 14px 10px;
    border: 1px solid var(--z18co-line);
    border-radius: 12px;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.z18-co-kpi strong {
    display: block;
    color: var(--z18co-ink);
    font-size: 26px;
    line-height: 1.1;
}

.z18-co-kpi span {
    display: block;
    margin-top: 4px;
    color: var(--z18co-muted);
    font-size: 12px;
    font-weight: 700;
}

.z18-co-kpi.is-hot {
    border-color: #f0c4c0;
    background: linear-gradient(180deg, #fff8f7 0%, #fff 100%);
}

.z18-co-kpi.is-hot strong { color: var(--z18co-red); }

.z18-co-kpi.is-run {
    border-color: #f0d4b8;
    background: linear-gradient(180deg, #fffaf4 0%, #fff 100%);
}

.z18-co-kpi.is-run strong { color: var(--z18co-orange); }

.z18-co-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    padding: 0 14px 14px;
}

.z18-co-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 14px;
    align-items: start;
}

.z18-co-card-body { padding: 12px 14px 14px; }

.z18-co-empty {
    text-align: center;
    color: var(--z18co-muted);
    padding: 28px 12px;
    border: 1px dashed #cfd6df;
    border-radius: 10px;
    background: #fafbfc;
}

.z18-co-empty-sm { padding: 16px 10px; font-size: 13px; }

.z18-co-call-list,
.z18-co-inter-list {
    display: grid;
    gap: 10px;
}

.z18-co-call {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--z18co-line);
    border-left: 5px solid #8792a2;
    border-radius: 12px;
    background: #fff;
}

.z18-co-call.danger { border-left-color: var(--z18co-red); }
.z18-co-call.warning { border-left-color: var(--z18co-orange); }
.z18-co-call.ok { border-left-color: var(--z18co-blue); }

.z18-co-call-prio {
    display: grid;
    gap: 8px;
    justify-items: center;
}

.z18-co-priority {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #fff;
    font-weight: 800;
    font-size: 13px;
    background: var(--z18co-blue);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .28);
}

.z18-co-priority.danger { background: var(--z18co-red); }
.z18-co-priority.warning { background: var(--z18co-orange); }

.z18-co-call-body h3,
.z18-co-inter-head h3 {
    margin: 0 0 4px;
    color: var(--z18co-ink);
    font-size: 15px;
    font-weight: 800;
}

.z18-co-call-body p,
.z18-co-inter-head p {
    margin: 0;
    color: var(--z18co-muted);
    line-height: 1.45;
    font-size: 13px;
}

.z18-co-call-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    align-items: center;
}

.z18-co-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    background: #edf2f7;
    color: #3c4655;
    font-size: 11px;
    font-weight: 700;
}

.z18-co-pill.is-wait { background: #fde8e6; color: var(--z18co-red); }
.z18-co-pill.is-run { background: #fff1e4; color: var(--z18co-orange); }

.z18-co-time {
    font-size: 12px;
    font-weight: 700;
    color: var(--z18co-muted);
}

.z18-co-time.ok { color: var(--z18co-green); }
.z18-co-time.warning { color: var(--z18co-orange); }
.z18-co-time.danger { color: var(--z18co-red); }

.z18-co-call-actions,
.z18-co-inter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.z18-co-call-actions {
    flex-direction: column;
    align-items: stretch;
}

.z18-co-inter {
    padding: 12px;
    border: 1px solid var(--z18co-line);
    border-radius: 12px;
    background: #fff;
}

.z18-co-inter-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 10px;
}

.z18-co-veh-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.z18-co-veh-chip {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    min-width: 88px;
    padding: 6px 8px;
    border: 1px solid #c5ccd6;
    border-radius: 8px;
    background: #f4f6f8;
    color: var(--z18co-ink);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}

.z18-co-veh-chip em {
    font-style: normal;
    font-weight: 600;
    font-size: 10px;
    color: #505b6b;
}

.z18-co-veh-chip.s1 { border-color: #2b681f; background: #419f2e; color: #000; }
.z18-co-veh-chip.s2 { border-color: #000; background: #fff; color: #ff0101; }
.z18-co-veh-chip.s3 { border-color: #8f0a05; background: #ff140c; color: #000; }
.z18-co-veh-chip.s4 { border-color: #9b3700; background: #ff5900; color: #000; }
.z18-co-veh-chip.s5,
.z18-co-veh-chip.s6 { border-color: #1f2bb0; background: #495cff; color: #fff; }
.z18-co-veh-chip.s7 { border-color: #3d8f8d; background: #84cecc; color: #000; }
.z18-co-veh-chip.s8 { border-color: #0118ea; background: #0118ea; color: #ffd940; }
.z18-co-veh-chip.s21 { border-color: #c99200; background: #ffdf5d; color: #1f252e; }

.z18-co-muted { color: var(--z18co-muted); font-size: 13px; }

.z18-co-inline-form { display: inline; margin: 0; }

.z18-co-side-row {
    display: grid;
    gap: 4px;
    padding: 9px 0;
    border-top: 1px solid #edf0f3;
    font-size: 13px;
    color: var(--z18co-ink);
}

.z18-co-side-row:first-child { border-top: 0; padding-top: 0; }

.z18-co-side-row small {
    color: var(--z18co-muted);
    font-size: 11px;
}

.z18-co-shortcuts {
    display: grid;
    gap: 8px;
}

.z18-co-shortcuts a {
    display: block;
    padding: 8px 10px;
    border: 1px solid var(--z18co-line);
    border-radius: 8px;
    background: #f8fafc;
    color: var(--z18co-ink);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.z18-co-shortcuts a:hover {
    border-color: #b8c2d0;
    background: #fff;
}

.z18-co-ops-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 14px;
    padding: 6px;
    border: 1px solid var(--z18co-line, #e4e7eb);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(56, 65, 74, .04);
}

.z18-co-ops-tabs a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    border-radius: 9px;
    color: #505b6b;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.z18-co-ops-tabs a:hover {
    background: #f4f6f9;
    color: var(--z18co-ink, #1f252e);
}

.z18-co-ops-tabs a.is-active {
    background: #1f252e;
    color: #fff;
}

.z18-co-ops-tabs a em {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #c0392b;
    color: #fff;
    font-style: normal;
    font-size: 11px;
    font-weight: 800;
}

.z18-co-ops-tabs a.is-active em {
    background: #e5483f;
}

.z18-co-manoeuvre-form {
    margin-bottom: 18px;
}

.z18-co-manoeuvre-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.z18-co-manoeuvre-grid label {
    display: grid;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #505b6b;
}

.z18-co-manoeuvre-grid select {
    width: 100%;
    padding: 9px 10px;
    border: 1px solid var(--z18co-line, #e4e7eb);
    border-radius: 8px;
    background: #fff;
    color: var(--z18co-ink, #1f252e);
    font-size: 13px;
}

.z18-co-manoeuvre-map,
.z18-co-manoeuvre-history {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #eef1f4;
}

.z18-co-manoeuvre-map h4,
.z18-co-manoeuvre-history h4 {
    margin: 0 0 10px;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.z18-co-manoeuvre-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.z18-manoeuvre-pickers {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 14px 0 4px;
}

.z18-manoeuvre-pickers--stack {
    grid-template-columns: 1fr;
}

.z18-manoeuvre-picker {
    border: 1px solid var(--z18co-line, #e4e7eb);
    border-radius: 10px;
    background: #fafbfc;
    overflow: hidden;
}

.z18-manoeuvre-picker-head {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px;
    border-bottom: 1px solid #eef1f4;
    background: #fff;
}

.z18-manoeuvre-picker-head strong {
    font-size: 13px;
    color: #1f252e;
}

.z18-manoeuvre-picker-hint {
    font-size: 11px;
    color: #64748b;
}

.z18-manoeuvre-picker-body {
    padding: 8px;
    display: grid;
    gap: 10px;
}

.z18-manoeuvre-picker-empty {
    padding: 14px 8px;
    text-align: center;
    color: #94a3b8;
    font-size: 12px;
}

.z18-manoeuvre-centres {
    display: grid;
    gap: 12px;
}

.z18-manoeuvre-centre-block {
    border: 1px solid #e8ecf1;
    border-radius: 8px;
    background: #fff;
    padding: 8px 10px 10px;
}

.z18-manoeuvre-centre-block-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.z18-manoeuvre-centre-block-head strong {
    font-size: 13px;
    color: #1f252e;
}

.z18-manoeuvre-centre-block-meta {
    font-size: 11px;
    color: #94a3b8;
}

.z18-manoeuvre-centre-block.is-locked {
    opacity: .45;
    filter: grayscale(.2);
}

.z18-manoeuvre-centre-block.is-locked .cta-veh-card {
    cursor: not-allowed;
}

/* Même langage visuel que l’engagement CO (cta-veh-list / cta-veh-card). */
.z18-manoeuvre-veh-list.cta-veh-list,
.z18-co-manoeuvre-form .cta-veh-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 4px 2px;
}

.z18-co-manoeuvre-form .cta-veh-card,
.z18-manoeuvre-veh-card.cta-veh-card {
    display: inline-flex;
    flex-direction: column;
    min-width: 92px;
    max-width: 140px;
    border-radius: 6px;
    border: 1px solid #cfd7e3;
    padding: 5px 7px;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(31, 37, 46, .10);
    cursor: pointer;
    margin: 0;
}

.z18-co-manoeuvre-form .cta-veh-card b,
.z18-manoeuvre-veh-card.cta-veh-card b {
    color: #1f252e;
    font-size: 12px;
    line-height: 14px;
}

.z18-co-manoeuvre-form .cta-veh-card span,
.z18-manoeuvre-veh-card.cta-veh-card span {
    color: #667085;
    font-size: 10px;
    margin-top: 2px;
}

.z18-co-manoeuvre-form .cta-veh-card .z18-manoeuvre-veh-centre,
.z18-manoeuvre-veh-card.cta-veh-card .z18-manoeuvre-veh-centre,
.z18-manoeuvre-crew-card-head .z18-manoeuvre-veh-centre {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
    color: #5a6a7c;
}

.z18-co-manoeuvre-form .cta-veh-card.is-ok,
.z18-manoeuvre-veh-card.cta-veh-card.is-ok {
    background: #edf8ec;
    border-color: #67ad58;
}

.z18-co-manoeuvre-form .cta-veh-card.is-ok:hover,
.z18-manoeuvre-veh-card.cta-veh-card.is-ok:hover {
    background: #dff2dd;
}

/* Rouge — sélectionné, aucun équipage */
.z18-co-manoeuvre-form .cta-veh-card.is-crew-empty,
.z18-manoeuvre-veh-card.cta-veh-card.is-crew-empty {
    background: #fdecea;
    border-color: #c62828;
}

.z18-co-manoeuvre-form .cta-veh-card.is-crew-empty b,
.z18-co-manoeuvre-form .cta-veh-card.is-crew-empty span,
.z18-manoeuvre-veh-card.cta-veh-card.is-crew-empty b,
.z18-manoeuvre-veh-card.cta-veh-card.is-crew-empty span {
    color: #7f1d1d;
}

.z18-co-manoeuvre-form .cta-veh-card.is-crew-empty:hover,
.z18-manoeuvre-veh-card.cta-veh-card.is-crew-empty:hover {
    background: #f9d6d3;
}

/* Orange — incomplet / erreur de validation */
.z18-co-manoeuvre-form .cta-veh-card.is-crew-partial,
.z18-co-manoeuvre-form .cta-veh-card.is-prealert,
.z18-manoeuvre-veh-card.cta-veh-card.is-crew-partial,
.z18-manoeuvre-veh-card.cta-veh-card.is-prealert {
    background: #fff0e0;
    border-color: #e65100;
}

.z18-co-manoeuvre-form .cta-veh-card.is-crew-partial b,
.z18-co-manoeuvre-form .cta-veh-card.is-crew-partial span,
.z18-co-manoeuvre-form .cta-veh-card.is-prealert b,
.z18-co-manoeuvre-form .cta-veh-card.is-prealert span,
.z18-manoeuvre-veh-card.cta-veh-card.is-crew-partial b,
.z18-manoeuvre-veh-card.cta-veh-card.is-crew-partial span,
.z18-manoeuvre-veh-card.cta-veh-card.is-prealert b,
.z18-manoeuvre-veh-card.cta-veh-card.is-prealert span {
    color: #7c2d12;
}

.z18-co-manoeuvre-form .cta-veh-card.is-crew-partial:hover,
.z18-co-manoeuvre-form .cta-veh-card.is-prealert:hover,
.z18-manoeuvre-veh-card.cta-veh-card.is-crew-partial:hover,
.z18-manoeuvre-veh-card.cta-veh-card.is-prealert:hover {
    background: #ffe0c2;
}

/* Vert — équipage validé */
.z18-manoeuvre-veh-card.cta-veh-card.is-crew-ok,
.z18-manoeuvre-veh-card.cta-veh-card.is-ready {
    background: #d8f3dc;
    border-color: #2e7d32;
}

.z18-manoeuvre-veh-card.cta-veh-card.is-crew-ok b,
.z18-manoeuvre-veh-card.cta-veh-card.is-crew-ok span,
.z18-manoeuvre-veh-card.cta-veh-card.is-ready b,
.z18-manoeuvre-veh-card.cta-veh-card.is-ready span {
    color: #1b5e20;
}

.z18-manoeuvre-veh-card.cta-veh-card.is-crew-ok:hover,
.z18-manoeuvre-veh-card.cta-veh-card.is-ready:hover {
    background: #c6ebd0;
}

.z18-manoeuvre-veh-input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.z18-manoeuvre-crew-stage {
    display: grid;
    gap: 8px;
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px solid #e8ecf1;
}

.z18-manoeuvre-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.z18-manoeuvre-tab {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    max-width: 100%;
    padding: 5px 9px;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    background: #f6f8fa;
    color: #344054;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
}

.z18-manoeuvre-tab:hover {
    border-color: #98a2b3;
    background: #eef2f6;
}

.z18-manoeuvre-tab.is-crew-empty {
    border-color: #e57373;
    background: #fdecea;
    color: #7f1d1d;
}

.z18-manoeuvre-tab.is-crew-partial {
    border-color: #fb8c00;
    background: #fff0e0;
    color: #7c2d12;
}

.z18-manoeuvre-tab.is-crew-ok,
.z18-manoeuvre-tab.is-ready:not(.is-active) {
    border-color: #67ad58;
    background: #edf8ec;
    color: #1b5e20;
}

.z18-manoeuvre-tab.is-active {
    box-shadow: inset 0 0 0 1px rgba(31, 37, 46, .18);
}

.z18-manoeuvre-tab.is-active.is-crew-empty {
    border-color: #c62828;
    background: #ef9a9a;
    color: #5f1212;
}

.z18-manoeuvre-tab.is-active.is-crew-partial {
    border-color: #e65100;
    background: #ffcc80;
    color: #5d2600;
}

.z18-manoeuvre-tab.is-active.is-crew-ok,
.z18-manoeuvre-tab.is-active.is-ready {
    border-color: #2e7d32;
    background: #c8e6c9;
    color: #1b5e20;
}

.z18-manoeuvre-tab-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.z18-manoeuvre-tab-check {
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 700;
    color: #2e7d32;
}

.z18-manoeuvre-tab-warn {
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 800;
    color: #e65100;
    line-height: 1;
}

.z18-manoeuvre-tab-pending {
    flex: 0 0 auto;
    opacity: .45;
    font-size: 14px;
    line-height: 1;
    color: #c62828;
}

.z18-manoeuvre-crew-panels {
    max-height: 360px;
    overflow: auto;
    display: grid;
    gap: 6px;
}

.z18-manoeuvre-crew-card {
    border: 1px solid #e4e7eb;
    border-radius: 6px;
    background: #fff;
    padding: 5px 8px 6px;
    display: grid;
    gap: 2px;
}

.z18-manoeuvre-crew-card.is-crew-empty {
    border-color: #e57373;
    background: #fff8f7;
}

.z18-manoeuvre-crew-card.is-crew-partial {
    border-color: #fb8c00;
    background: #fffaf5;
}

.z18-manoeuvre-crew-card.is-crew-ok,
.z18-manoeuvre-crew-card.is-ready {
    border-color: #67ad58;
    background: #f4faf4;
}

.z18-manoeuvre-crew-card-head {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 2px;
    padding-bottom: 2px;
    border-bottom: 1px solid #eef1f4;
}

.z18-manoeuvre-crew-card-head b {
    font-size: 12px;
    line-height: 1.2;
    color: #1f252e;
}

.z18-manoeuvre-crew-card-head small {
    display: none;
}

.z18-manoeuvre-crew-badge {
    margin-left: auto;
    font-size: 10px;
    font-weight: 700;
    color: #2e7d32;
    letter-spacing: .02em;
}

.z18-manoeuvre-crew-badge--empty {
    color: #c62828;
}

.z18-manoeuvre-crew-badge--warn {
    color: #e65100;
}

.z18-manoeuvre-seat {
    display: grid;
    grid-template-columns: minmax(78px, 118px) minmax(0, 1fr);
    gap: 6px;
    align-items: center;
    padding: 1px 0;
    cursor: help;
}

.z18-manoeuvre-seat--readonly {
    cursor: default;
}

.z18-manoeuvre-seat-label {
    display: flex;
    align-items: baseline;
    gap: 3px;
    min-width: 0;
}

.z18-manoeuvre-seat-label b {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    color: #1f252e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.z18-manoeuvre-seat-label em {
    font-style: normal;
    color: #b42318;
    font-size: 10px;
    font-weight: 700;
    flex: 0 0 auto;
}

.z18-manoeuvre-seat-label small {
    display: none;
}

.z18-manoeuvre-seat select {
    width: 100%;
    font-size: 11px;
    padding: 2px 4px;
    min-height: 26px;
    line-height: 1.2;
}

.z18-manoeuvre-seat-value {
    font-size: 11px;
    color: #344054;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.z18-manoeuvre-seat-vacant {
    font-style: italic;
    color: #94a3b8;
}

.z18-manoeuvre-crew-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
    padding-top: 4px;
    border-top: 1px solid #eef1f4;
}

.z18-manoeuvre-btn {
    border: 1px solid #d0d7de;
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
}

.z18-manoeuvre-btn--primary {
    background: #2f6fed;
    border-color: #2f6fed;
    color: #fff;
}

.z18-manoeuvre-btn--primary:hover {
    background: #255cd0;
}

.z18-manoeuvre-btn--ghost {
    background: #fff;
    color: #344054;
}

.z18-manoeuvre-btn--ghost:hover {
    background: #f6f8fa;
}

button[data-manoeuvre-submit]:disabled,
.button-input[data-manoeuvre-submit]:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.z18-manoeuvre-crew-panels .z18-manoeuvre-picker-empty--compact {
    padding: 6px 4px;
    text-align: left;
    font-size: 11px;
}

@media (max-width: 980px) {
    .z18-co-shell { grid-template-columns: 1fr; }
    .z18-co-kpi-grid { grid-template-columns: repeat(3, minmax(100px, 1fr)); }
}

@media (max-width: 720px) {
    .z18-co-call {
        grid-template-columns: 1fr;
    }

    .z18-co-call-actions {
        flex-direction: row;
    }

    .z18-co-kpi-grid {
        grid-template-columns: repeat(2, minmax(100px, 1fr));
    }

    .z18-co-manoeuvre-grid,
    .z18-manoeuvre-pickers {
        grid-template-columns: 1fr;
    }

    .z18-manoeuvre-seat {
        grid-template-columns: 1fr;
    }
}

/* Manœuvre CTA — actifs / filtre / countdown */
.z18-manoeuvre-actives {
    display: grid;
    gap: 10px;
    margin: 0 0 16px;
}
.z18-manoeuvre-active-card {
    border: 1px solid rgba(110, 11, 20, 0.35);
    background: rgba(110, 11, 20, 0.08);
    border-radius: 10px;
    padding: 12px 14px;
}
.z18-manoeuvre-active-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}
.z18-manoeuvre-active-type {
    margin-left: 6px;
    opacity: 0.75;
    font-size: 12px;
}
.z18-manoeuvre-countdown {
    font-weight: 700;
    color: #6e0b14;
    white-space: nowrap;
}
.z18-manoeuvre-active-meta {
    margin: 6px 0 0;
    font-size: 12px;
    opacity: 0.85;
}
.z18-manoeuvre-close-form {
    margin-top: 10px;
}
.z18-manoeuvre-filter-hint {
    margin: 0 0 8px;
    padding: 8px 10px;
    font-size: 12px;
    border-radius: 8px;
    background: rgba(230, 162, 60, 0.15);
    border: 1px solid rgba(230, 162, 60, 0.35);
}
.z18-manoeuvre-veh-card.is-type-secondary {
    opacity: 0.55;
}
.z18-manoeuvre-veh-card.is-type-preferred {
    box-shadow: inset 0 0 0 1px rgba(46, 125, 50, 0.45);
}
