﻿@media (max-width: 600px) {
    .day-selector-Day {
        gap: 3px;
    }

    .day-button-Day {
        height: 42px;
    }
}

/* Conteneur général */
.planning-day-page {
    width: 100%;
    max-width: 100%;
    padding: 8px;
    box-sizing: border-box;
    overflow: hidden;
}

/* Groupe : label et select sur la même ligne */
.group-filter {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

    .group-filter label {
        white-space: nowrap;
        font-weight: 600;
    }

    .group-filter select {
        flex: 1;
        min-width: 0;
    }

/* Mois parfaitement centré */
.week-navigation {
    display: grid;
    grid-template-columns: 40px 1fr 40px;
    align-items: center;
    width: 100%;
    margin-bottom: 14px;
    text-align: center;
}

    .week-navigation strong {
        justify-self: center;
        text-transform: capitalize;
    }

/* Les 7 jours sur une seule ligne */

.day-selector-Day {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
    width: 100%;
    box-sizing: border-box;
}

.day-column-Day {
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.day-name-Day {
    width: 100%;
    font-size: clamp(8px, 2.5vw, 12px);
    text-align: center;
    white-space: nowrap;
    margin-bottom: 3px;
}

.day-button-Day {
    width: 100%;
    height: clamp(32px, 9vw, 48px);
    padding: 0;
    border: 1px solid #aaa;
    border-radius: 3px;
    background-color: #fff;
    font-size: clamp(10px, 3vw, 14px);
    line-height: normal;
}

.day-number-Day {
    font-size: inherit;
}


.holiday-icon-Day {
    font-size: 7px;
}



/* Zone du jour sélectionné */
.selected-day-title-Day {
    margin-top: 18px;
    text-align: center;
}

/* Agent */
.agent-card-Day {
    margin-bottom: 14px;
}

.agent-name-Day {
    font-weight: bold;
    text-align: left;
}
.selected-date-Day {
    text-align: right;
    white-space: nowrap;
    color: #555;
    font-size: 14px;
}

/* Bouton ajout */
.add-event-button-Day {
    width: 38px;
    height: 38px;
    margin: 4px 0 8px;
    border: none;
    border-radius: 4px;
    color: white;
    background: #287be8;
    font-size: 20px;
}

/* Tâches */
.task-card-Day {
    width: 100%;
    margin-bottom: 4px;
    padding: 6px 8px;
    box-sizing: border-box;
    border-left: 4px solid #286dcc;
    background: #4c88d8;
    color: #111;
    font-size: 13px;
    line-height: 1.35;
}

    .task-card-Day.confirmed-Day {
        background: #72b879;
    }

    .task-card-Day.not-confirmed-Day {
        background: #4c88d8;
    }

/* Mobile */
@media (max-width: 600px) {
    .planning-day-page {
        padding: 8px;
    }

    .day-selector-Day {
        grid-template-columns: repeat(4, 1fr);
        gap: 3px;
    }

    .day-button-Day {
        min-height: 42px;
        font-size: 11px;
    }

    .selected-day-title {
        font-size: 15px;
    }

    .task-card-Day {
        font-size: 12px;
    }
}
/*Nouveau*/

.agents-table-Day {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #999;
}

    .agents-table-Day td {
        border: 1px solid #aaa;
        padding: 8px;
    }

.comment-row-Day td {
    height: 55px;
}

.agent-row-Day td {
    border-bottom: none;
}

.agent-header-Day {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 4px;
}

.agent-button-row-Day td {
    border-top: 1px solid #aaa;
    border-bottom: 2px solid #333;
    text-align: left;
    height: 45px;
    text-align: center;
    vertical-align: middle;
}

.add-agent-task-Day {

    align-items: center;
    width: 100px;
    height: 30px;
    padding: 0;
    font-size: 20px;
    line-height: 1;
}

.tasks-grid-Day {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
}

.event-time-Day {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    white-space: nowrap;
}

.event-creator-Day {
    margin-left: auto;
    font-size: 8px;
    opacity: 0.8;
}

/*Jour actuelle en surbrillance*/
.today-button-Day {
    position: relative;
    background-color: #fff3cd !important;
    border: 2px solid #ff6b6b !important;
    color: #333;
    font-weight: bold;
    box-shadow: 0 0 6px rgba(255, 107, 107, 0.5);
}

    .today-button-Day::after {
        position: absolute;
        top: -12px;
        right: -8px;
        font-size: 14px;
    }

.active-Day {
    color: #dc3545 !important;
    border: 2px solid #dc3545 !important;
    background-color: #fff !important;
    font-weight: bold;
}

.today-column-Day .day-name-Day {
    color: #dc3545;
    font-weight: bold;
}

/* Cellules du tableau */
.today-cell-Day {
    background-color: #fffbea !important;
    border-left: 3px solid #ff6b6b !important;
    border-right: 3px solid #ff6b6b !important;
}

.today-planning-Day {
    border-left: 4px solid #ff6b6b;
    border-right: 4px solid #ff6b6b;
    background-color: #fffdf0;
}

.today-row-Day {
    background-color: #fffbea !important;
}

    .today-row-Day td {
        background-color: #fffbea !important;
    }