.picker__select--month, .picker__select--year {
    font-size: 0.9rem !important;
}

/* General styles for all messages */
.nav-item .nav-link {
    transition: background-color 0.3s ease;
    border-bottom: 1px solid #e0e0e0;
}

/* Unread message styles */
.nav-item .nav-link.message-unread {
    background-color: #f0f4f8;
    font-weight: bold;
}

.nav-item .nav-link.message-unread:hover {
    background-color: #e8eef5;
}

/* Read message styles */
.nav-item .nav-link.message-read {
    background-color: #ffffff;
    color: #666;
}

.nav-item .nav-link.message-read:hover {
    background-color: #f9f9f9;
}

/* Unread indicator */
.unread-indicator {
    color: #1a73e8;
    font-size: 24px;
    line-height: 1;
}

.badge-purple {
    background-color: #1D3573 !important;
}

.equal-width-buttons {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.equal-width-buttons .nav-item {
    width: 100%;
}

.equal-width-buttons .nav-link {
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (min-width: 768px) {
    .equal-width-buttons {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .equal-width-buttons .nav-item {
        flex: 1 1 0;
        min-width: 200px; /* Adjust this value as needed */
    }
}

.media-container {
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
}
table#twinning_volunteer_table th, table#twinning_volunteer_table td {
    font-size: 0.8rem !important;
}    
table#twinning_participant_table th, table#twinning_participant_table td {
    font-size: 0.8rem !important;
}
/**
* FICHE DESCRIPTIVE
*/
.light-blue-bg {
    background-color: lightblue !important;
}
.full-info-cell {
    padding: 5px 2px !important;
    border: 1px solid lightblue !important;
    font-size: 0.8rem !important;
}
.modal-profile-image {
    max-width: 250px;
    height: auto;
}
.modal-info-row {
    margin-bottom: 10px;
}
.modal-info-label {
    font-weight: bold;
}
.modal-meeting-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 5px;
}
.modal-meeting-cell {
    border: 1px solid #ddd;
    font-size: 0.7rem;
    padding: 5px;
    text-align: center;
}
.modal-color-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 5px;
}
.modal-color-cell {
    border: 1px solid #ddd;
    font-size: 0.7rem;
    padding: 5px;
    text-align: center;
}
.modal-variable-width-bold {
    display: inline-block;
    font-weight: bold;
    font-size: 0.8rem;
    padding-right: 10px;
    margin: 0;
}
.modal-variable-width {
    display: inline-block;
    font-size: 0.8rem;
    padding-right: 10px;
}
/* New styles for compact table */
.modal-table-compact {
    margin-bottom: 0; /* Remove bottom margin */
}
.modal-table-compact td {
    padding: 0px 5px 0px 5px;
    vertical-align: top; /* Align content to top */
}
.modal-table-compact th {
    padding: 2px 5px 2px 5px;
    vertical-align: top; /* Align content to top */
}
.light-placeholder::placeholder {
    color: rgba(108, 117, 125, 0.5) !important;
    font-weight: 300 !important;
}

.viewThisTodo {
    cursor: pointer;
}
.viewThisTodo:hover {
    background: rgba(108, 117, 125, 0.1);
    border-radius: 6px;
}
.todoRead {
    text-decoration: line-through;
}
.todo-position-relative {
    overflow: hidden;
}

.todo-completed-flag {
    position: absolute;
    top: 20px;
    left: -35px;
    width: 130px;
    background-color: red;
    color: white;
    text-align: center;
    transform: rotate(-45deg);
    padding: 5px;
    font-size: 12px;
    font-weight: bold;
    z-index: 1;
}
.table-responsive.min-height {
    min-height: 600px !important;
}
.btn.rounded-circle:hover {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}
@media print {
    @page {
        size: auto;
        margin: 7mm;
        background-color: white;
    }

    body {
        margin: 0;
        padding: 0;
        background-color: white;
    }

    body * {
        visibility: hidden;
    }

    .modal, .modal * {
        visibility: visible;
    }

    .modal {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        overflow: visible;
    }

    .modal-dialog {
        width: 100%;
        max-width: none;
        margin: 0;
    }

    .modal-content {
        border: none;
        box-shadow: none;
    }

    .modal-header, .modal-footer {
        display: none;
    }

    .modal-body {
        padding: 0;
    }

    #participantModalContent {
        width: 100%;
        padding: 0;
        margin: 0;
    }

    .container {
        width: 100%;
        max-width: none;
        padding: 0;
        margin: 0;
    }

    .modal-table-compact {
        width: 100%;
        border-collapse: collapse;
    }

    
    .modal-table-compact td {
        padding: 0px 5px 0px 0px;
    }
    .modal-table-compact th {
        padding: 2px 5px 2px 5px;
    } 
   

    .modal-profile-image {
        max-width: 100%;
        height: auto;
    }

    .modal-meeting-grid {
        display: grid;
        grid-template-columns: repeat(8, 1fr);
        gap: 2px;
    }

    .modal-meeting-cell {
        border: 1px solid #ddd;
        padding: 2px;
        text-align: center;
        font-size: 0.8em;
    }

    .modal-color-grid {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        gap: 2px;
    }

    .modal-color-cell {
        border: 1px solid #ddd;
        padding: 2px;
        text-align: center;
        font-size: 0.8em;
    }

    .modal-variable-width-bold,
    .modal-variable-width,
    .modal-info-label {
        /* display: inline-block; */
        padding-right: 5px;
    }

    .modal-variable-width-bold {
        font-weight: bold;
    }
}
/* Ensure clear button (×) is visible and properly positioned */
.select2-container--default .select2-selection--single .select2-selection__clear {
    float: right !important;
    margin-right: 25px !important;
    color: #888 !important;
    font-weight: bold !important;
    font-size: 16px !important;
    opacity: 1 !important;
    display: inline-block !important;
    position: absolute !important;
    right: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    cursor: pointer !important;
    z-index: 100 !important;
}

/* Hover state for clear button */
.select2-container--default .select2-selection--single .select2-selection__clear:hover {
    color: #333 !important;
}

/* Ensure proper container height and padding */
.select2-container--default .select2-selection--single {
    min-height: 38px !important;
    padding-right: 40px !important; /* Make room for clear button */
}

/* Position the dropdown arrow */
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100% !important;
    right: 5px !important;
}

/* Ensure text doesn't overlap with clear button */
.select2-container--default .select2-selection--single .select2-selection__rendered {
    padding-right: 40px !important;
}
