﻿:root {
    --mx-appbar-height: 60px;
    --mx-color-primary: #03889E;
    --mx-color-header-grid: #E6EDF0;
    --mx-color-accent: #9EEC16;
    --mx-color-secondary: #FCF304;
    --mx-color-background-light: #F5F5F5;
    --mx-color-background-bold: #D9D9D9;
    /*nouvelle charte graphique*/
    --mx-color-gray-100: #F5F8FA;
    --mx-color-gray-150: #F0F4F7;
    --mx-color-gray-200: #E4EAF1;
    --mx-color-gray-300: #A0AEC0;
    --mx-color-gray-400: #718096;
    --mx-color-gray-600: #4A5568;
    --mx-color-gray-900: #2C3E50;
    /*Success color*/
    --mx-color-success-200: #E6F6EA;
    --mx-color-success-500-base: #10B44C;
    --mx-color-success-800: #0E8A3E;
    /*Error color*/
    --mx-color-error-200: #FEE4E2;
    --mx-color-error-500: #EF4444;
    --mx-color-error-800: #D82C0D;
    /*Warning color*/
    --mx-color-warning-200: #FFEDD5;
    --mx-color-warning-500: #F97316;
    --mx-color-warning-800: #DC6803;
    /*Info color*/
    --mx-color-info-200: #E0F2FE;
    --mx-color-info-500: #0EA5E9;
    --mx-color-info-800: #0B609F;
    /*Perturbation warning color*/
    --mx-color-perturbation-warning-200: #FFF6E0;
    --mx-color-perturbation-warning-500: #FFD000;
    /*new primary color*/
    --mx-new-color-primary: #1D7A8E;
    --mx-text-size-1: 26px;
    --mx-text-size-2: 22px;
    --mx-text-size-3: 18px;
    --mx-text-size-4: 16px;
    --mx-text-size-5: 14px;
    --mx-text-size-6: 12px;
}
.mx-panel {
    text-align: left;
    font-family: "Open Sans";
    font-size: 0.75rem;
    font-style: normal;
    font-weight: 600;
    line-height: 1.125rem; /* 150% */
    padding:0.75rem;
}
.mx-property, .mx-value, .mx-tr, .mx-th {
    color: #58595B;
}

.mx-th {
    font-style: italic;
}

.mx-value, .mx-tr {
    color: #323232;
}

.mx-vj-line {
    position: relative;
    border-radius: 5px;
    text-align: center;
    min-width: 30px;
    font-weight: bold;
    display: inline-block;
    padding: 0 5px 0 5px;
}

.mx-field {
    width: 100%;
}

.mx-passing-time {
    background: #ECECEC;
    padding: 0 5px 0 5px;
}

.mx-divider {
    margin: 0.75em;
}

.mx-clock {
    display: flex;
    height: 2.25rem;
    flex-direction: column;
    justify-content: center;
    color: #323232;
    background-color: var(--mx-color-background-bold);
    text-align: center;
    font-family: "Open Sans";
    font-size: 1rem;
    font-style: normal;
    font-weight: 600;
    line-height: 1.5rem; /* 150% */
    margin: 0 0.5rem;
    padding: 0 0.5rem;
    border-radius: 1rem;
}
.mx-clock-new {
    display: flex;
    height: 2.25rem;
    flex-direction: column;
    justify-content: center;
    color: #323232;
    text-align: center;
    font-family: "Open Sans";
    font-size: 1rem;
    font-style: normal;
    font-weight: 600;
    line-height: 1.5rem; /* 150% */
    margin: 0 0.5rem;
    padding: 0 0.5rem;
    border-radius: 1rem;
}

/* Realtime KPI Button Style */
.mx-toggle-btn-kpi {
    background-color: transparent;
    border: none;
    margin-right: 4px;
}

    .mx-toggle-btn-kpi:hover {
        background-color: lightgrey;
        border: 1px solid black;
        border-radius: 8px;
    }

    .mx-toggle-btn-kpi:focus, .e-kpi-btn:active {
        border: none;
    }

.mx-toggle-btn-kpi-checked {
    background-color: white;
    border: 1px solid black;
    border-radius: 8px;
    margin-right: 4px;
}

    .mx-toggle-btn-kpi-checked:hover {
        background-color: lightgrey;
        border: 1px solid black;
        border-radius: 8px;
    }

/* Vehicle Button Style */
.mx-toggle-btn-vehicle, .mx-toggle-btn-vehicle-checked {
    background-color: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    display: flex;
    width: 100%;
    padding: 0px;
}

    .mx-toggle-btn-vehicle:hover {
  /*      background-color: lightgrey;
  */      border: 1px solid black;
    }

    .mx-toggle-btn-vehicle:focus {
        border: 1px solid transparent;
    }

.mx-toggle-btn-vehicle-checked {
    border: 1px solid black;
}

    .mx-toggle-btn-vehicle-checked:hover {
/*        background-color: lightgrey;
*/        border: 1px solid black;
    }

.mx-toggle-button-show-vehicle-off, .mx-toggle-button-show-vehicle-off-checked {
    background-color: var(--mx-color-primary);
    border: 4px solid transparent;
    width: 40px;
    height: 40px;
    border-radius: 20px;
    border: white solid 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}
    .mx-toggle-button-show-vehicle-off:hover {
        /*      background-color: lightgrey;
  */ border: 4px solid var(--mx-color-accent);
    }
.mx-toggle-button-show-vehicle-off-checked {
    background-color: black;
}

.mx-toggle-button-show-vehicle-off-checked:hover {
    border: 4px solid var(--mx-color-accent);
}

.mx-content {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
    width: 100%;
    padding: 20px;
    background-color: var(--mx-color-gray-150);
    flex: 1;
    overflow-y: auto; /* Permet le scroll vertical si le contenu dépasse */
    min-height: 0; /* Permet au flex child de se rétrécir */
    border-radius: 24px;
    border: solid var(--mx-color-gray-200);
}
@media (min-width: 2560px) {
    .mx-content {
        justify-content: center;
    }
}
.checkbox input[type="checkbox"] {
    width: 24px;
    height: 24px;
    accent-color: var(--mx-color-gray-900);
    border-radius: 6px;
}

.mx-card-title {
    font-size: var(--mx-text-size-4);
    font-weight: 500;
    margin-bottom: 10px;
}
.mx-title {
    font-size: var(--mx-text-size-1);
    font-weight: 600;
    color: var(--mx-color-gray-900);
    margin-bottom: 0px;
}
.mx-subtitle {
    font-size: var(--mx-text-size-6);
    font-weight: 500;
    color: var(--mx-color-gray-400);
}
button:disabled,
button[disabled] {
    cursor: not-allowed;
}
.mx-section {
    border-radius: 12px;
    overflow: hidden;
}
.mx-space {
    margin-top: 12px;
}
.required {
    color: red
}

.mx-cursor-pointer{
    cursor : pointer; 
}

.mx-color-primary {
    background: var(--mx-color-primary);
    color: white;
    border:none;
}
    .mx-color-primary:hover {
        background: var(--mx-color-primary);
        color: white;
        border: none;
    }

.mx-info-alert {
    font-weight: 700;
    font-style: italic;
    font-size: 15px;
    color: red;
}

.mx-label-form-accept {
    font-weight: 600;
    font-size: 14px;
    color: var(--mx-color-success-800);
}

.mx-label-form-deny {
    font-weight: 600;
    font-size: 14px;
    color: var(--mx-color-error-500);
}

/* ─── Bloc d'identité d'un mouvement, partagé par les modales Seoiv (retard, changement de quai, etc.) ─── */
.mx-modal-identity {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
}

.mx-modal-identity-avatar {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: #FCE4EC;
    color: #C2185B;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.mx-modal-identity-text {
    min-width: 0;
    flex: 1;
}

.mx-modal-identity-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.mx-modal-line-code {
    color: #1F6FB2;
    font-weight: 500;
    font-size: 14px;
}

.mx-modal-tag {
    font-size: 10.5px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.mx-modal-tag-operator {
    background: #EEF0F2;
    color: #374151;
}

.mx-modal-tag-arrival {
    background: #DBEAFE;
    color: #1E40AF;
}

.mx-modal-tag-departure {
    background: #FEF3C7;
    color: #92400E;
}

.mx-modal-destination {
    color: #374151;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ─── Sections et cartes d'horaires, partagées par les modales Seoiv ─── */
.mx-modal-section {
    margin-bottom: 16px;
}

.mx-modal-section-label {
    color: #737373;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
}

.mx-modal-time-card {
    border: 1px solid var(--mx-color-gray-200);
    border-radius: 10px;
    padding: 14px 16px;
    background: #F9FAFB;
}

.mx-modal-time-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.mx-modal-time-row-label {
    font-size: 14px;
    color: #374151;
}

.mx-modal-time-row-value {
    font-size: 22px;
    font-weight: 500;
    color: #111827;
    font-variant-numeric: tabular-nums;
}

.mx-modal-time-dashed {
    border-top: 1px dashed #E5E7EB;
    margin: 12px 0;
}

.mx-modal-time-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.mx-modal-time-col-label {
    font-size: 11px;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.mx-modal-time-col-value {
    font-size: 16px;
    color: #111827;
    font-variant-numeric: tabular-nums;
}

/* ─── Sélecteur de chips (quais, options...), partagé par les modales Seoiv ─── */
.mx-modal-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.mx-modal-picker-empty {
    color: #B91C1C;
    font-size: 12px;
    font-style: italic;
    margin-top: 6px;
}

.mx-modal-chip {
    background: #fff;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: background-color 0.1s, color 0.1s, border-color 0.1s;
    font-variant-numeric: tabular-nums;
}

    .mx-modal-chip:hover {
        border-color: #2563EB;
    }

    .mx-modal-chip.selected {
        background: #2563EB;
        border-color: #2563EB;
        color: #fff;
    }

/* Badge d'état d'une réservation (EN COURS / RETARDÉ / ANNULÉ / SUPPRIMÉ) — apparence.
   Source unique partagée par les 3 vues SEOIV via le composant MxBookingStatusBadge.
   Le POSITIONNEMENT est porté par le CSS scopé de chaque hôte (carte, timeline) via
   `::deep .mx-status-badge`, car contextuel à la mise en page. CSS global = toujours chargé. */
.mx-status-badges {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.mx-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    line-height: 1.2;
    white-space: nowrap;
}

    .mx-status-badge.mx-status-badge-compact {
        padding: 2px 6px;
        gap: 0;
    }

    .mx-status-badge.mx-status-in-progress {
        background: var(--mx-color-success-200, #E6F6EA);
        color: #14532D;
    }

    .mx-status-badge.mx-status-deleted {
        background: var(--mx-color-error-200, #FEE4E2);
        color: #991B1B;
    }

    .mx-status-badge.mx-status-canceled {
        background: var(--mx-color-warning-200, #FFEDD5);
        color: #92400E;
    }

    .mx-status-badge.mx-status-delayed {
        background: #FED7AA;
        color: #9A3412;
    }

.mx-status-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--mx-color-success-500-base, #10B44C);
    display: inline-block;
}

.mx-status-conflict {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: help;
    /* Même couleur de conflit que la page Régulation (MxBookingCard : .mx-conflict → error-800). */
    color: var(--mx-color-error-800);
}
main{
    height:100%; 
}