@import '_content/Toolbelt.Blazor.PWA.Updater/Toolbelt.Blazor.PWA.Updater.bnjuj6nd91.bundle.scp.css';

/* _content/Thouron.ERP.UI.PWA/Components/Layouts/MainLayout.razor.rz.scp.css */
#blazor-error-ui[b-urb285mfmm] {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss[b-urb285mfmm] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

[b-urb285mfmm] .rz-dialog-content {
    height: 100% !important;
    overflow-y: hidden !important;
}

[b-urb285mfmm] .line {
    width: 100%;
    height: 1px;
    border-top: 1px solid var(--rz-base-200);
}

[b-urb285mfmm] .rz-dialog-confirm-buttons > button:first-of-type {
    background-color: var(--rz-danger) !important;
}
/* _content/Thouron.ERP.UI.PWA/Components/Pages/PlanSummary.razor.rz.scp.css */
.monthly-calendar-container[b-34d8g4b1qa] {
    /* Flex-grow allows it to consume all remaining vertical space */
    flex-grow: 1;
    /* This is the key: It must have a 'min-height: 0' to shrink properly in Flexbox */
    min-height: 0;
    /* Enable vertical scrolling when the content (the grid) overflows */
    overflow-y: auto !important;
}

.monthly-calendar-grid-with-week[b-34d8g4b1qa] {
    height: auto;
    display: grid;
    /* 8 colonnes: 0.5fr pour la semaine, 7x 1fr pour les jours */
    grid-template-columns: 0.5fr repeat(7, 1fr);
    grid-template-rows: 30px repeat(6, minmax(100px, max-content));
    gap: 1px;
    border: 1px solid #ccc;
    background-color: #eee;
    /* 💡 CORRECTION CRITIQUE : Assure que les éléments absolus se positionnent dans cette grille. */
    position: relative;
}

/* En-tête du numéro de semaine */
.week-number-header[b-34d8g4b1qa] {
    background-color: #f0f0f0;
    text-align: center;
    font-weight: bold;
    height: 30px;
    border-right: 1px solid #ccc;
}

/* Cellule du numéro de semaine (dans les lignes 2 à 7) */
.calendar-week-number[b-34d8g4b1qa] {
    background-color: #f8f8f8;
    text-align: center;
    font-weight: bold;
    color: #666;
    padding-top: 5px;
    border-right: 1px solid #ccc;
    /* Assure que la cellule de semaine prend toute la hauteur de la ligne */
    grid-column: 1;
    z-index: 10;
}

/* Cellules de Jour (Doivent respecter la colonne 2 à 8) */
.calendar-day[b-34d8g4b1qa] {
    position: relative;
    min-height: 100px;
    background-color: white;
    z-index: 1;
}

/* Barre d'événement (Positionnement absolu dans la grille) */
.calendar-event-bar[b-34d8g4b1qa] {
    position: absolute;
    height: 28px;
    align-content: center;
    /*margin: 0px 0px;
    padding: 0 0px;*/
    /*border-radius: 4px;
    color: white;
    font-size: 0.8em;
    font-weight: 500;
    background:var(--rz-secondary);*/

    z-index: 5;
    left: 0;
    right: 0;
    white-space: nowrap;
}

    /*.calendar-event-bar .event-text {
        display: block;
        margin-left: 2px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        vertical-align: central;
    }
*/
    .calendar-event-bar[b-34d8g4b1qa]  .event-button-style {
        display: flex;
        width: 100%;
        overflow: hidden;
        align-content: start;
        padding: 0px 4px;
    }


        /* You must also target the internal Radzen elements that expand (rz-button-box) */
        /* See the previous, more comprehensive fix for the inner elements needed for ellipsis to work. */
        .calendar-event-bar[b-34d8g4b1qa]  .event-button-style .rz-button-box {
            width: 100% !important;
        }

            .calendar-event-bar[b-34d8g4b1qa]  .event-button-style .rz-button-box .rz-button-text {
                width: 100% !important;
                overflow: hidden !important;
                white-space: nowrap !important;
                text-overflow: ellipsis !important;
            }
