/* Global styles */
html, body {
    font-family: 'Roboto', sans-serif;
}

/* Calendar table */
.calendar-table {
    border-collapse: collapse;
    width: 100%;
    font-size: 0.8rem;
}

.calendar-table th,
.calendar-table td {
    border: 1px solid #e0e0e0;
    padding: 4px 6px;
    text-align: center;
    min-width: 36px;
}

.employee-col {
    min-width: 160px;
    text-align: left !important;
    position: sticky;
    left: 0;
    background: white;
    z-index: 1;
}

.employee-name {
    text-align: left;
    font-weight: 500;
    position: sticky;
    left: 0;
    background: white;
    z-index: 1;
}

.day-col, .weekend-col {
    min-width: 36px;
    font-size: 0.75rem;
}

.total-col {
    min-width: 60px;
    font-weight: 600;
}

/* Day cell colors */
.work-cell { background-color: #e8f5e9; color: #1b5e20; }
.vacation-cell { background-color: #e3f2fd; color: #0d47a1; }
.sick-cell { background-color: #ffebee; color: #b71c1c; }
.holiday-cell { background-color: #fff3e0; color: #e65100; }
.training-cell { background-color: #f3e5f5; color: #4a148c; }
.other-cell { background-color: #eceff1; color: #37474f; }
.weekend-cell { background-color: #f5f5f5; color: #9e9e9e; }
.empty-cell { background-color: white; }

.weekend-mark { color: #bdbdbd; }

.cursor-pointer { cursor: pointer; }

/* Print styles */
@media print {
    /* Cacher navigation */
    .no-print,
    .mud-appbar,
    .mud-drawer,
    .mud-drawer-overlay {
        display: none !important;
    }

    /* Remettre à plat le layout MudBlazor */
    .mud-layout {
        display: block !important;
        padding-top: 0 !important;
    }

    .mud-main-content {
        padding-left: 0 !important;
        padding-right: 0 !important;
        padding-top: 0 !important;
        margin-left: 0 !important;
        min-height: unset !important;
    }

    .mud-container {
        max-width: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Supprimer la page blanche avant le calendrier (uniquement sur la page planning) */
    body:has(.calendar-page) .mud-container > *:not(.calendar-page) {
        display: none !important;
    }


    /* Calendrier — paysage + ajustement largeur */
    .calendar-page {
        width: 100% !important;
    }

    .calendar-print-header {
        display: block !important;
        text-align: center;
        margin-bottom: 16px;
    }

    .calendar-table {
        font-size: 7pt !important;
        width: 100% !important;
        table-layout: fixed;
    }

    .calendar-table th,
    .calendar-table td {
        padding: 2px 3px !important;
        min-width: unset !important;
        overflow: hidden;
        white-space: nowrap;
    }

    .employee-col,
    .employee-name {
        position: static;
        min-width: unset !important;
        width: 120px !important;
        font-size: 7pt !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .day-col, .weekend-col {
        width: auto !important;
        font-size: 6pt !important;
    }

    body {
        margin: 0;
        padding: 0;
    }
}
