@import '_content/BlazorCalendar/BlazorCalendar.bundle.scp.css';

/* _content/RatpPDM/Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-58mqet9z2i] {
    position: relative;
    display: flex;
    flex-direction: column;
}

.main[b-58mqet9z2i] {
    flex: 1;
}

.sidebar[b-58mqet9z2i] {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
    overflow-y: auto;
    min-width:270px
}

.top-row[b-58mqet9z2i] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    height: 3.5rem;
    align-items: center;
}

    .top-row[b-58mqet9z2i]  a, .top-row .btn-link[b-58mqet9z2i] {
        white-space: nowrap;
        margin-left: 1.5rem;
    }

    .top-row a:first-child[b-58mqet9z2i] {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row:not(.auth)[b-58mqet9z2i] {
        display: none;
    }

    .top-row.auth[b-58mqet9z2i] {
        justify-content: space-between;
    }

    .top-row a[b-58mqet9z2i], .top-row .btn-link[b-58mqet9z2i] {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-58mqet9z2i] {
        flex-direction: row;
    }

    .sidebar[b-58mqet9z2i] {
        width: 300px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-58mqet9z2i] {
        position: sticky;
        top: 0;
        z-index: 3;
    }

    
}

.loginForm[b-58mqet9z2i] {
    position: fixed;
    top: 50%;
    left: 50%;
    /* bring your own prefixes */
    transform: translate(-50%, -70%);
    width: 500px;
}

.login-background[b-58mqet9z2i] {
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
    height: 800px;
    align-content: center;
    display: block;
}


@mixin clearfix() {
    &[b-58mqet9z2i]::after {
        display: block;
        content: "";
        clear: both;
    }
}

/* Usage as a mixin */
.element[b-58mqet9z2i] {
    @include clearfix;
}
/* _content/RatpPDM/Components/Pages/OptimisationPage.razor.rz.scp.css */
body[b-6uhljzqyc3] {
   
}
.rz-tabview.rz-tabview-top > .rz-tabview-nav .rz-tabview-selected[b-6uhljzqyc3] {
    border: none !important;
}
/* _content/RatpPDM/Components/Pages/OptimisationTabs/InputTabs/ImpactLtvForm.razor.rz.scp.css */
.task-pair-form[b-4bghracmdq] {
    display: flex;
    gap: 20px;
    align-items: flex-end; /* aligne les dropdowns sur la ligne */
    flex-wrap: wrap; /* passe à la ligne si l’écran est étroit */
}

.task-field[b-4bghracmdq] {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
/* _content/RatpPDM/Components/Pages/OptimisationTabs/OutputTabs/LegendChantierId.razor.rz.scp.css */
.tooltip-field-title[b-5e2e5lwsb7]{
    min-width:100px;
    width:100px;
    display:block;
    font-weight:bold
}
.tooltip-value[b-5e2e5lwsb7] {
    min-width: 100px;
    display: block;
    width:100px;
}
/* _content/RatpPDM/Components/Pages/OptimisationTabs/OutputTabs/LegendLigneId.razor.rz.scp.css */
.tooltip-field-title[b-kx3ozhiio8]{
    min-width:100px;
    width:100px;
    display:block;
    font-weight:bold
}
.tooltip-value[b-kx3ozhiio8] {
    min-width: 100px;
    display: block;
    width:100px;
}
/* _content/RatpPDM/Components/Pages/OptimisationTabs/OutputTabs/ResourceConsommationSection.razor.rz.scp.css */
/* ===========================
   🔹 Wrapper du chart
   =========================== */
.rc-chart[b-hroo07leel] {
    /* rien d’obligatoire ici, mais utile pour borner le scope */
}

    /* ===========================
   🔹 Neutraliser la tooltip par défaut Apex
   =========================== */
    .rc-chart[b-hroo07leel] (.apexcharts-tooltip) {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
    }

    /* ===========================
   🔹 TOOLTIP APEXCHARTS CUSTOM (2 colonnes, pastilles, compact)
   =========================== */
    .rc-chart[b-hroo07leel] (.apx-tooltip.apx-compact) {
        background: #111;
        color: #fff;
        padding: 10px 12px;
        border-radius: 8px;
        font-size: 11px; /* base plus petite */
        line-height: 1.25;
        max-width: 440px; /* largeur maximale */
        max-height: 280px; /* évite la coupure écran */
        overflow: auto; /* scroll interne si trop long */
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
        backdrop-filter: blur(4px);
        border: 1px solid rgba(255, 255, 255, 0.08);
        animation: fadeInTooltip-b-hroo07leel 0.12s ease-out forwards;
    }

    .rc-chart[b-hroo07leel] (.apx-tooltip .apx-date) {
        font-weight: 600;
        margin-bottom: 8px;
        text-transform: capitalize; /* ex: jeudi 16 octobre */
        font-size: 11.5px;
        opacity: 0.95;
        letter-spacing: 0.3px;
    }

    /* Grille interne — deux colonnes équilibrées */
    .rc-chart[b-hroo07leel] (.apx-tooltip .apx-grid) {
        display: grid;
        grid-template-columns: repeat(2, minmax(160px, 1fr));
        gap: 8px 16px; /* espace vertical / horizontal */
        align-items: start;
    }

    /* Une ligne (ressource + valeur) */
    .rc-chart[b-hroo07leel] (.apx-tooltip .apx-item) {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        min-width: 0; /* autorise ellipsis */
    }

    /* Partie gauche : pastille + nom */
    .rc-chart[b-hroo07leel] (.apx-tooltip .apx-left) {
        display: flex;
        align-items: center;
        gap: 6px;
        min-width: 0;
    }

    /* Pastille couleur (couleur série) */
    .rc-chart[b-hroo07leel] (.apx-tooltip .apx-dot) {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        flex: 0 0 auto;
        margin-top: 1px;
    }

    /* Nom de la ressource (plus visible) */
    .rc-chart[b-hroo07leel] (.apx-tooltip .apx-name) {
        font-size: 12px; /* légèrement plus grand */
        font-weight: 600;
        max-width: 120px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        opacity: 0.95;
        letter-spacing: 0.2px;
    }

    /* Valeur numérique à droite */
    .rc-chart[b-hroo07leel] (.apx-tooltip .apx-val) {
        font-size: 11px;
        font-variant-numeric: tabular-nums;
        opacity: 0.9;
        text-align: right;
    }

    /* Scroll interne stylé */
    .rc-chart[b-hroo07leel] (.apx-tooltip.apx-compact::-webkit-scrollbar) {
        width: 6px;
    }

    .rc-chart[b-hroo07leel] (.apx-tooltip.apx-compact::-webkit-scrollbar-thumb) {
        background-color: rgba(255, 255, 255, 0.25);
        border-radius: 3px;
    }

    .rc-chart[b-hroo07leel] (.apx-tooltip.apx-compact::-webkit-scrollbar-thumb:hover) {
        background-color: rgba(255, 255, 255, 0.4);
    }

    /* ===========================
   🔹 CURSEUR GRAPHIQUE (optionnel)
   =========================== */
    .rc-chart[b-hroo07leel] (.apexcharts-canvas),
    .rc-chart[b-hroo07leel] (.apexcharts-canvas .apexcharts-series path),
    .rc-chart[b-hroo07leel] (.apexcharts-line-series .apexcharts-series-markers) {
        cursor: crosshair; /* pointer si tu veux un curseur “main” */
    }

/* ===========================
   🔹 ANIMATION
   =========================== */
@keyframes fadeInTooltip-b-hroo07leel {
    from {
        opacity: 0;
        transform: translateY(-3px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* _content/RatpPDM/Components/Pages/OptimisationTabs/OutputTabs/RessourcesHeatMap.razor.rz.scp.css */
/* _content/RatpPDM/Components/Pages/OptimisationTabs/OutputTabs/SpatialMapping/SpatialMapping.razor.rz.scp.css */
/* ===== Root & états ===== */
.spmap-root[b-uf82lhyhr7] {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.spmap-filters[b-uf82lhyhr7] {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.spmap-loading[b-uf82lhyhr7],
.spmap-empty[b-uf82lhyhr7] {
    padding: 12px;
    opacity: .75;
}

/* ===== Carte globale ===== */
.spmap-chart[b-uf82lhyhr7] {
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 10px;
    background: var(--panel-bg, #fff);
}

.spmap-chart-header[b-uf82lhyhr7] {
    padding: 8px 12px;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
    background: var(--subtle, #f9fafb);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.spmap-chart-title[b-uf82lhyhr7] {
    font-weight: 600;
}

/* Canvas : on garde le padding horizontal pour aligner avec la carte */
.spmap-canvas--global[b-uf82lhyhr7] {
    position: relative;
    padding: 10px 12px 12px 12px; /* l'axe prend sa place dans .spmap-track */
    --spmap-voie-legend-width: 28px;
    --spmap-voie-legend-gap: 6px;
}

/* Conteneur commun pour zones / gridlines / voies / axe PK */
.spmap-track[b-uf82lhyhr7] {
    position: relative;
    padding-bottom: 36px; /* espace pour l’axe PK */
}

/* ===== ZONES (fond global) ===== */
.spmap-zones[b-uf82lhyhr7] {
    position: absolute;
    left: calc(var(--spmap-voie-legend-width) + var(--spmap-voie-legend-gap));
    right: 0;
    top: 0;
    bottom: 36px;
    pointer-events: none;
    z-index: 0;
}

.spmap-zone[b-uf82lhyhr7] {
    position: absolute;
    top: 0;
    bottom: 0;
    opacity: .28;
    border-left: 1px solid rgba(0, 0, 0, .18);
    border-right: 1px solid rgba(0, 0, 0, .18);
    background-image: repeating-linear-gradient(45deg, rgba(0, 0, 0, .06) 0 8px, transparent 8px 16px);
    background-blend-mode: multiply;
}

.spmap-zone-label[b-uf82lhyhr7] {
    position: absolute;
    top: 6px;
    left: 8px;
    padding: 2px 8px;
    border-radius: 9999px;
    font-weight: 700;
    font-size: .8rem;
    letter-spacing: .02em;
    color: #fff;
    background: rgba(17, 24, 39, .78);
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
    text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
    pointer-events: none;
}

/* ===== Voies (empilées) ===== */
.spmap-voies[b-uf82lhyhr7] {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.spmap-voie[b-uf82lhyhr7] {
    position: relative;
    padding-top: 12px;
    padding-bottom: 8px;
}

    /* séparateur stylé entre les voies, mais pas après la dernière */
    .spmap-voie:not(:last-child)[b-uf82lhyhr7]::after {
        content: "";
        position: absolute;
        left: calc(var(--spmap-voie-legend-width) + var(--spmap-voie-legend-gap));
        right: 0;
        bottom: 0;
        height: 3px;
        background: linear-gradient( to right, transparent 0, rgba(148, 163, 184, .95) 10%, rgba(148, 163, 184, .95) 90%, transparent 100% );
        opacity: .9;
    }

    .spmap-voie:first-child[b-uf82lhyhr7] {
        margin-top: 28px;
    }

/* Corps de la voie : légende à gauche + rails à droite */
.spmap-voie-body[b-uf82lhyhr7] {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: var(--spmap-voie-legend-gap);
}

/* Colonne légende (voie) */
.spmap-voie-legend[b-uf82lhyhr7] {
    flex: 0 0 var(--spmap-voie-legend-width);
    width: var(--spmap-voie-legend-width);
    display: flex;
    align-items: stretch;
    justify-content: center;
}

/* Légende voie : clair, avec léger effet de style */
.spmap-voie-legend-text[b-uf82lhyhr7] {
    writing-mode: vertical-rl;
    transform: rotate(180deg); /* lecture de bas en haut */

    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .03em;
    color: #111827;
    padding: 4px 3px; /* respiration autour du texte */
    background: linear-gradient(180deg, #e5e7eb 0%, #d1d5db 100%);
    border-radius: 0;
    border-top: 1px solid rgba(15, 23, 42, .12);
    border-right: 1px solid rgba(15, 23, 42, .08);
    border-bottom: 1px solid rgba(15, 23, 42, .12);
    border-left: 3px solid rgba(55, 65, 81, .85);
    box-shadow: 0 1px 2px rgba(15, 23, 42, .08);
}

/* Colonne rails (tout le contenu comme avant) */
.spmap-voie-rails[b-uf82lhyhr7] {
    flex: 1 1 auto;
    min-width: 0; /* évite le débordement horizontal */
}

/* ===== Rails (par famille) ===== */
.spmap-rails[b-uf82lhyhr7] {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.spmap-rail[b-uf82lhyhr7] {
    position: relative;
}

.spmap-rail-header[b-uf82lhyhr7] {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.spmap-rail-dot[b-uf82lhyhr7] {
    width: 10px;
    height: 10px;
    border-radius: 999px;
}

.spmap-rail-title[b-uf82lhyhr7] {
    font-weight: 600;
    font-size: .92rem;
    opacity: .9;
}

.spmap-rail-track[b-uf82lhyhr7] {
    position: relative;
    width: 100%;
    border-radius: 0; /* angles droits */
    background: rgba(0, 0, 0, .08);
    outline: 1px dashed rgba(0, 0, 0, .06);
    overflow: hidden;
    padding: 0;
}

.spmap-rail + .spmap-rail[b-uf82lhyhr7] {
    margin-top: 15px;
}

.spmap-rail-track[b-uf82lhyhr7]::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: rgba(0, 0, 0, .08);
}

/* ===== Items (chantiers) ===== */
.spmap-item[b-uf82lhyhr7] {
    position: absolute;
    height: 10px;
    border: 1px solid transparent;
    border-radius: 4px;
    box-sizing: border-box;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
    will-change: transform;
}

.spmap-item-fill[b-uf82lhyhr7] {
    position: absolute;
    inset: 0;
    border-radius: 3px;
    opacity: .85; /* valeur pour PLANNED */
}

.spmap-item:hover[b-uf82lhyhr7] {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, .18);
}

.spmap-item.dimmed[b-uf82lhyhr7] {
    opacity: .2;
}

/* Variants planification */
.spmap-item--planned .spmap-item-fill[b-uf82lhyhr7] {
    opacity: 1;
}

.spmap-item--unplanned[b-uf82lhyhr7] {
    opacity: .4; /* couleur identique mais atténuée */
}

    /* Hachures discrètes pour non planifiés (overlay) */
    .spmap-item--unplanned[b-uf82lhyhr7]::after {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 3px;
        background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .35) 0 4px, transparent 4px 8px);
        pointer-events: none;
    }

/* ===== Axe PK (global) ===== */
.spmap-axis--global[b-uf82lhyhr7] {
    position: absolute;
    left: calc(var(--spmap-voie-legend-width) + var(--spmap-voie-legend-gap));
    right: 0;
    bottom: 0;
    height: 48px;
}

/* Une "colonne" verticale (trait + point + label(s)) */
.spmap-tick[b-uf82lhyhr7] {
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
}

.spmap-tick-line[b-uf82lhyhr7] {
    width: 1px;
    height: 12px;
    background: rgba(0, 0, 0, .25);
    margin-bottom: 2px;
    pointer-events: none;
}

.spmap-tick-dot[b-uf82lhyhr7] {
    width: 6px;
    height: 6px;
    border-radius: 9999px;
    background: #111827;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .35);
    margin-bottom: 2px;
    pointer-events: auto; /* permet de voir le title même en cas de chevauchement */
}

.spmap-tick-label[b-uf82lhyhr7] {
    font-size: .75rem;
    opacity: .8;
    margin-top: 20px;
}

/* Label de station penché (30°), sans fond, juste au-dessus du PK */
.spmap-tick--station .spmap-station-label[b-uf82lhyhr7] {
    font-size: .72rem;
    white-space: nowrap;
    transform: rotate(-30deg);
    transform-origin: top center;
    background: transparent;
    border: none;
    box-shadow: none;
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
    pointer-events: auto;
}

/* ===== Gridlines (guides verticaux) ===== */
.spmap-gridlines[b-uf82lhyhr7] {
    position: absolute;
    left: calc(var(--spmap-voie-legend-width) + var(--spmap-voie-legend-gap));
    right: 0;
    top: 0;
    bottom: 36px;
    pointer-events: none;
    z-index: 1; /* au-dessus des zones, sous les items */
}

.spmap-vgrid[b-uf82lhyhr7] {
    position: absolute;
    top: 4px;
    bottom: 32px;
    border-left: 1px dashed rgba(99, 102, 241, .6);
    mix-blend-mode: multiply;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0 6px, black 6px calc(100% - 6px), transparent calc(100% - 0px));
    mask-image: linear-gradient(to bottom, transparent 0 6px, black 6px calc(100% - 6px), transparent calc(100% - 0px));
    clip-path: inset(6px 0 6px 0);
}

    .spmap-vgrid:first-child[b-uf82lhyhr7],
    .spmap-vgrid:last-child[b-uf82lhyhr7] {
        border-left-color: rgba(99, 102, 241, .5);
    }

/* ===== Callouts pour zones étroites ===== */
.spmap-zone-callouts[b-uf82lhyhr7] {
    position: absolute;
    left: calc(var(--spmap-voie-legend-width) + var(--spmap-voie-legend-gap));
    right: 0;
    top: 0;
    height: 24px;
    display: block;
    pointer-events: none;
    z-index: 3;
    opacity: .28;
}

.spmap-zone-callout[b-uf82lhyhr7] {
    position: absolute;
    top: 4px;
    transform: translateX(-50%);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.spmap-zone-callout-pill[b-uf82lhyhr7] {
    pointer-events: none;
    background: #111827;
    color: #fff;
    font-weight: 700;
    font-size: .78rem;
    line-height: 1;
    letter-spacing: .02em;
    padding: 3px 8px;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
    white-space: nowrap;
}

.spmap-zone-callout-arrow[b-uf82lhyhr7] {
    pointer-events: none;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #111827;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .18));
}

/* ===== Tooltip (contenu repris par JS) ===== */
.sp-tt .t3[b-uf82lhyhr7] {
    margin-top: 6px;
    font-weight: 600;
}

.sp-tt .t3-row[b-uf82lhyhr7] {
    white-space: nowrap;
    margin-top: 2px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: .82rem;
    line-height: 1.25;
    opacity: .95;
}

.sp-tt .t3-unplanned[b-uf82lhyhr7] {
    margin-top: 6px;
    font-weight: 700;
    color: #ef4444; /* rouge sobre */
}
/* _content/RatpPDM/Components/Pages/Shared/ListMenu.razor.rz.scp.css */
.btn[b-pwv1jf66rn] {
    padding-top: 4px !important;
    background-color: white; /* Blue background */
    border: solid;
    border-width: thin;
    border-color: darkgrey; /* Remove borders */
    color: black; /* White text */
    font-size: 12px; /* Set a font size */
    cursor: pointer; /* Mouse pointer on hover */
    width: 36px !important;
    margin-top: 0px
}

    .btn:hover[b-pwv1jf66rn] {
        background-color: lightblue
    }
