body {
    background-color: rgb(250, 242, 242);
}

.tooltip-oat .tooltip-inner {
    max-width: 400px !important;
    white-space: normal !important;
    text-align: left !important;
}

.font-instrument {
    font-family: 'Instrument Sans', sans-serif;
}

.bg-custom {
    background-color: #195F65;
}

.btn-custom1 {
    background-color: #64DBE4;
}

.btn-custom2 {
    background-color: #D8C7FF;
}

.absence-day {
    background-color: #ccc;  /* gris clair */
    color: #666;             /* texte grisé */
    pointer-events: none;    /* optionnel : empêche la sélection */
}

.text-custom {
    color: #195F65;
}

.cell-planning {
    cursor: grab;
    position: relative;
}

.cell-planning.dragging {
    opacity: 0.5;
}

.cell-planning:hover {
    background-color: #f5f5f5;
}

.cell-planning.has-tp .badge:not(.badge-tp) {
    opacity: 0.4;
}

.cell-planning.has-tp .badge-tp {
    opacity: 1;
}

.table-responsive {
    overflow-x: auto;
}

.planning-table th {
    position: sticky;
    top: 0;
    background: white;
    z-index: 2;
}

.planning-table {
    table-layout: fixed; /* 🔥 clé importante */
    width: max-content;  /* permet scroll horizontal propre */
    min-width: 100%;
}

.planning-table th,
.planning-table td {
    min-width: 70px;   /* 👈 largeur minimale colonne */
    white-space: nowrap;
}

.planning-table th:first-child {
    position: sticky;
    left: 0;
    z-index: 6;
    background: #fff; /* header toujours blanc */
}

.planning-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 5;
    background-color: #fff; /* 🔥 clé */
}

/* header doit rester au-dessus */
.planning-table thead th:first-child {
    z-index: 5;
    background: white; /* header propre */
}

.planning-table th:first-child,
.planning-table td:first-child {
    min-width: 120px; /* 👈 important pour lisibilité Agent */
}

.planning-semaine {
    table-layout: fixed;
    width: 100%;
}

.planning-semaine td,
.planning-semaine th {
    overflow: hidden;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.modal-box {
    background: white;
    padding: 20px;
    border-radius: 8px;
    width: 500px;
}

.modal-actions {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
}

.poste-carousel button {
    display: block;
    width: 100%;
    border: none;
    background: none;
    padding: 5px 10px;
    text-align: left;
}

.poste-carousel button:hover {
    background: #f0f0f0;
}

.regulation-alerts {

    position: absolute;
    top: 3px;
    right: 3px;

    display: flex;
    align-items: center;
    gap: 5px;

    z-index: 10; /* évite que le contenu passe devant */
}

.reg-badge {

    cursor: pointer;
    font-size: 12px;
    line-height: 1;
}

.alert-grid-item {
    flex: 0 0 calc(50% - 0.75rem);
    max-width: calc(50% - 0.75rem);
    margin-bottom: 0;
}
