.bg-brown {
    background-color: #5A5D3F;
}

.bg-blue {
    background-color: #0564E5 !important;
}

.badge-ndt {
    padding: 6px 8px;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
}

.badge-ndt.bg-dark {
    color: #526484;
    background-color: #E9EBEE;
}

.badge-ndt.bg-gray {
    color: #526484;
}

.badge-ndt.badge-ndt-white.bg-gray {
    color: #ffffff;
}

.badge-ndt-picto {
    background-color: #ffffff;
    color: #526484;
    border: 1px solid #E9EBEE;
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge-ndt-pastille {
    width: 16px;
    height: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    border-radius: 64px;
    background-color: #526484;
    text-align: center;
    font-size: 10px;
    font-weight: 500;
    line-height: 18px;
    margin-right: 4px;
}

.add-program-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 100%;
}

.btn-mini-modal {
    font-size: 16px;
    padding: 8px 7px;
}

.creneau-absolute-lock {
    position: absolute;
    top: 8px;
    right: 8px;
}

.absolute-provenance-badge {
    position: absolute;
    top: 16px;
    right: 16px;
}

.form-entity textarea.form-control {
    min-height: 80px;
}

.reservation-form-card-row {
    display: flex;
    align-items: start;
    gap: 1rem;
}

.btn.btn-outline-primary:hover {
    color: #ffffff;
}

.btn-with-icon {
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-reservation-title-row {
    font-family: Nunito, sans-serif;
    font-weight: 700;
    color: #364A63;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;

    border-bottom: 3px solid #364A63
}

.card-reservation-title-number {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 3px;
    padding: 0 6px;

    font-family: Roboto, sans-serif;
    font-weight: 500;
    font-size: 11px;
    line-height: 18px;

    background: #526484;
    color: #ffffff;
}

.card-reservation-title-number--warning {
    background: #FD9722;
    color: #ffffff;
}

.card-reservation-title-number--success {
    background: #0FCA7A;
    color: #ffffff;
}

.ndt-calendar-card-row {
    display: flex;
    gap: 16px;
}

.ndt-calendar-card {
    width: calc(25% - 16px);
}

.ndt-calendar-card.card-inner {
    padding: 16px;
}

.icon-success {
    color: #0FCA7A;
}

.icon-danger {
    color: #FF0000;
}

.ndt-calendar-card-resa-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 0;
    height: 302px;
    overflow-y: auto;

    scrollbar-width: thin; /* Firefox */
    scrollbar-color: rgba(0,0,0,0.2) transparent;
}

.ndt-calendar-card-resa {
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    padding: 8px 12px;

    background: #E9EBEE;
}

.ndt-calendar-card-resa--warning {
    background: #FFF4E7;
}

.ndt-calendar-card-resa--success {
    background: #E5F9F0;
}

.ndt-calendar-card-resa-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ndt-calendar-card-resa-row .title {
    font-family: Roboto, sans-serif;
    font-weight: 400;
    font-size: 14px;
    margin: 0;
}

.ndt-calendar-card-resa-row .card-big-icon {
    font-size: 18px;
}

.ndt-calendar-card-see-all-link {
    font-family: Nunito, sans-serif;
    font-weight: 700;
    color: #0b0b0b;
    font-size: 14px;
    text-align: center;
    display: flex;
    justify-content: center;
    width: 100%;
}

.title-calendar-card-stats {
    font-family: Roboto, sans-serif;
    font-weight: 400;
    font-size: 13px;
    color: #8094AE;
}

.ndt-calendar-card-stats-number {
    color: #364A63;
    font-family: Roboto, sans-serif;
    font-weight: 600;
    font-size: 20px;
}

.ndt-calendar-card-stats-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ndt-calendar-card-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card-inner-column {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    gap: 8px;
    padding: 1.5rem 1rem 1rem 1rem;
}

.creneau-lock {
    cursor: pointer;
}

.creneau-lock em.ni.ni-unlock-fill {
    color: #0FCA7A;
}

.creneau-lock em.ni.ni-lock-fill {
    color: #FF0000;
}

.heures-travaillees {
    font-family: Roboto, sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #364A63;
}

.heures-travaillees-list {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: space-between;
    flex-wrap: wrap;
}

.heures-travaillees-item {
    display: flex;
    gap: 16px;
    align-items: center;
}

/*CALENDAR*/
.fc-timegrid-event .fc-event-main {
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 100%;
    padding: 4px 6px;
}

.fc-event-custom--detailed {
    font-size: 12px;
    line-height: 1.15;
    white-space: normal;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

.fc-event-line {
    margin-bottom: 2px;
}

.fc-event-line:last-child {
    margin-bottom: 0;
}

.fc-event-line--tour .badge,
.fc-event-line--guides .badge {
    display: inline-block;
    margin-right: 2px;
    margin-bottom: 2px;
}

.fc-timegrid-event .fc-event-main::-webkit-scrollbar {
    width: 6px;
}

.fc-timegrid-event .fc-event-main::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.fc-event-line--payment .icon {
    font-size: 24px;
}

.fc-event-line--guides {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.fc .fc-timegrid-slot {
    height: 3em;
}

.fc-event-custom--detailed {
    font-size: 12px;
    line-height: 1.15;
    white-space: normal;
}

.fc-event-line {
    margin-bottom: 2px;
}

.fc-event-line:last-child {
    margin-bottom: 0;
}

.fc-event-line--tour .badge,
.fc-event-line--guides .badge {
    display: inline-block;
    margin-right: 2px;
    margin-bottom: 2px;
    max-width: 100%;
}

.fc-timegrid-event .fc-event-main {
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 100%;
    padding: 4px 6px;
}

/* Zone all-day : hauteur visuelle limitée */
.fc .fc-daygrid-event .fc-event-main,
.fc .fc-timegrid-allday .fc-event-main,
.fc .fc-timegrid-all-day .fc-event-main {
    max-height: 75px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 4px 6px;
}

/* Pour éviter que le contenu pousse la ligne all-day */
.fc .fc-daygrid-event,
.fc .fc-timegrid-allday-event {
    align-items: stretch;
}

.fc .fc-daygrid-event .fc-event-main-frame,
.fc .fc-timegrid-allday-event .fc-event-main-frame {
    min-height: 0;
}

/* Scrollbar discrète */
.fc .fc-daygrid-event .fc-event-main::-webkit-scrollbar,
.fc .fc-timegrid-allday-event .fc-event-main::-webkit-scrollbar,
.fc .fc-timegrid-event .fc-event-main::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.fc .fc-daygrid-event .fc-event-main::-webkit-scrollbar-thumb,
.fc .fc-timegrid-allday-event .fc-event-main::-webkit-scrollbar-thumb,
.fc .fc-timegrid-event .fc-event-main::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.fc-popover-content-custom {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.fc-popover-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.fc .fc-daygrid-body-natural .fc-daygrid-day-events {
    margin-bottom: 0;
}

.calendar-legend {
    display: flex;
    align-items: center;
    gap: 16px;
}

.calendar-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1;
}

.calendar-legend-square {
    border-radius: 3px;
    width: 10px;
    height: 10px;
    border: 1px solid #0a0a0a;
    background: #E9EBEE;
}

.calendar-legend-square--success {
    border-color: #0FCA7A;
    background: #0FCA7A;
}

.calendar-legend-square--warning {
    border-color: #FD9722;
    background: #FD9722;
}

.home-dynamic-blocks {
    margin-bottom: 28px;
}

/*CALENDAR VUE MOIS*/

.fc-dayGridMonth-view .fc-daygrid-event-harness,
.fc-dayGridMonth-view .fc-daygrid-more-link {
    display: none !important;
}

.fc-day-summary {
    margin-top: 4px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fc-day-summary-badge {
    font-size: 11px;
    line-height: 1.2;
    padding: 2px 6px;
    border-radius: 999px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fc-day-summary-badge--success {
    background: #E5F9F0;
    color: #146c43;
    border: 1px solid #B0EDD2;
}

.fc-day-summary-badge--warning {
    background: #FFF4E7;
    color: #b35a00;
    border: 1px solid #FEDDB5;
}

.fc-day-summary-badge--prospect {
    background: #F1F3F5;
    color: #495057;
    border: 1px solid #DDE2E6;
}

.fc-dayGridMonth-view .fc-daygrid-day {
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.fc-dayGridMonth-view .fc-daygrid-day:hover {
    background-color: rgba(0, 0, 0, 0.03);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.fc-dayGridMonth-view .fc-daygrid-body-unbalanced .fc-daygrid-day-events {
    display: none;
}

.fc-dayGridMonth-view .fc-daygrid-day-frame {
    max-height: 50px;
}

.badge-month {
    font-size: 14px;
    padding: 3px 8px;
}

/*CALENDRIER LISTE*/
.fc-list-custom-item {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 0;
}

.fc-list-custom-item .nk-tb-col {
    min-width: 0;
}

.fc-list-custom-item .badge {
    white-space: nowrap;
}

.fc-listWeek-view .fc-list-event-title,
.fc-listWeek-view .fc-list-event-time {
    width: 100%;
}

.fc-listWeek-view .fc-list-event-graphic {
    display: none;
}

.fc-list-event-time {
    display: none;
}

.fc .fc-list-table td {
    padding: 0;
}

.list-day-payment .ni {
    font-size: 24px;
}

/*CALENDRIER FILTRES*/
.calendar-filters {
    display: flex;
    gap: 16px;
    margin-bottom: 8px;
}

.calendar-filter-col-25 {
    width: 25%;
}

.table-filters {
    display: flex;
    gap: 16px;
    margin-bottom: 8px;
    justify-content: space-between;
}

.table-filters-row {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.table-filter-col-reset {
    display: flex;
    align-items: center;
    width: fit-content;
}

.table-filter-col {
    display: flex;
    align-items: center;
    width: fit-content;
}

.table-filter-col-25 {
    display: flex;
    align-items: center;
    width: 25%;
}

.nk-tb-empty {
    display: flex;
}

.nk-tb-col-full {
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
    text-align: center;
}

.fc .fc-toolbar-title {
    width: fit-content;
    text-transform: capitalize;
}

.form-check .form-check-input {
    float: none;
    margin-left: 0;
    margin-right: 8px;
}

.form-check {
    padding-left: 13px;
}

.pointage-hour-row {
    font-size: 18px;
    font-weight: 600;
    color: #0a0a0a;
    gap: 8px;
}

.pointage-separator {
    width: 40px;
    border-bottom: 2px solid #526484;
}

.pointage-separator-dashed {
    width: 20px;
    border-bottom: 2px dashed #526484;
}

.pointage-hour-column {
    height: 50px;
    justify-content: center;
}

.pointage-hour-column-margin {
    margin-bottom: 16px;
}

.modal-content,
.modal-body {
    overflow: visible !important;
}

.datepicker,
.datepicker-dropdown {
    z-index: 99999 !important;
}

.fc-scrollgrid-sync-inner {
    position: relative;
}

.fc-add-event-btn {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    border-radius: 0 !important;
    padding: 0 8px !important;
    font-size: 16px;
}

.modal-dashboard-charts {
    display: flex;
    justify-content: center;
    margin-top: 0;
}

.nk-editor-full + .tox {
    min-height: 60vh;
}

.btn-header-icon {
    font-size: 20px;
    position: relative;
}

.btn-header-icon.active:before {
    content: '';
    width: 16px;
    height: 16px;
    background: #058EFC;
    border-radius: 50%;
    border: 3px solid #ffffff;
    position: absolute;
    top: 0px;
    right: -1px;
}

.notification-read-action {
    width: 46px;
    min-width: 46px;
    border: 0;
    border-left: 1px solid var(--bs-border-color, #e5e9f2);
    background: rgba(30, 224, 172, 0.08);
    color: #1ee0ac;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease, color .2s ease;
}

.notification-read-action:hover {
    background: #1ee0ac;
    color: #fff;
}

.notification-read-action:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.js-notification-item.is-removing {
    opacity: 0;
    transform: translateX(18px) scale(.98);
    max-height: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    border-width: 0 !important;
}

@media (max-width: 767px) {
    .fc-day-summary .badge-month {
        font-size: 12px;
        padding: 2px 4px;
        white-space: nowrap;
    }

    .modal {
        z-index: 2000;
    }
}

@media (max-width: 998px) {
    .reservation-form-card-row {
        flex-wrap: wrap;
    }

    .w-100-sm {
        width: 100% !important;
    }

    .w-50-sm {
        width: calc(50% - 1rem) !important;
    }

    .ndt-calendar-card-row {
        flex-wrap: wrap;
    }

    .ndt-calendar-card {
        width: 100%;
    }

    .view-card-row {
        flex-direction: column;
    }

    .card-content {
        width: 100%;
    }

    .badge-commentaire {
        width: 100%;
        text-wrap: auto;
        text-align: left;
    }

    .wider .profile-ud-value {
        flex-wrap: wrap;
    }

    .fc-list-custom-item {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767.98px) {
    .fc .fc-toolbar.fc-header-toolbar .fc-toolbar-chunk .fc-dayGridMonth-button:before {
        content: "M" !important;
    }

    .fc .fc-toolbar.fc-header-toolbar .fc-toolbar-chunk .fc-timeGridWeek-button:before {
        content: "S" !important;
    }

    .fc .fc-toolbar.fc-header-toolbar .fc-toolbar-chunk .fc-timeGridDay-button:before {
        content: "J" !important;
    }

    .fc .fc-toolbar.fc-header-toolbar .fc-toolbar-chunk .fc-listWeek-button:before {
        content: "L" !important;
    }
}
