body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    margin: 0;
    padding: 0;
    background: #020617;
    color: #e5e7eb;
}

header {
    padding: 20px 24px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 50%, #020617 100%);
    border-bottom: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(59, 130, 246, 0.1) inset;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(59, 130, 246, 0.6) 50%, transparent 100%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.8;
    }
}

header .header-left {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 1;
}

header .header-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-decoration: none;
    transition: transform 0.2s ease;
    border-radius: 8px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

header .header-logo:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
}

header .header-logo img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

header .header-title-wrapper {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

header h1 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #f9fafb;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.3px;
    background: linear-gradient(135deg, #f9fafb 0%, #e5e7eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

header .header-title-wrapper>div {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 400;
    letter-spacing: 0.2px;
}

header .user {
    font-size: 13px;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
    padding: 8px 16px;
    background: rgba(15, 23, 42, 0.4);
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    transition: all 0.2s ease;
}

header .user:hover {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(148, 163, 184, 0.3);
}

header .user strong {
    color: #e5e7eb;
    font-weight: 600;
}

header a {
    color: #93c5fd;
    font-size: 13px;
    text-decoration: none;
    margin-left: 0;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-weight: 500;
}

header a:hover {
    color: #60a5fa;
    background: rgba(59, 130, 246, 0.15);
}

header a[style*="color:#fbbf24"] {
    color: #fbbf24 !important;
}

header a[style*="color:#fbbf24"]:hover {
    color: #fcd34d !important;
    background: rgba(251, 191, 36, 0.15);
}

/* Espacement des icônes Font Awesome dans le header */
header a i,
header .user i {
    margin-right: 6px;
    font-size: 0.9em;
}

header .user span i {
    margin-right: 6px;
    opacity: 0.8;
}

main {
    padding: 16px;
    max-width: 1040px;
    margin: 0 auto;
}

h2 {
    margin-top: 0;
    font-size: 16px;
}

.flash {
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 13px;
    margin-bottom: 12px;
}

.flash.error {
    background: rgba(185, 28, 28, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.8);
    color: #fecaca;
}

.flash.success {
    background: rgba(22, 163, 74, 0.18);
    border: 1px solid rgba(22, 163, 74, 0.9);
    color: #bbf7d0;
}

form {
    margin: 0;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px 14px;
}

label {
    display: block;
    font-size: 13px;
    margin-bottom: 6px;
    color: #e5e7eb;
    font-weight: 500;
}

label i {
    margin-right: 6px;
    color: #9ca3af;
}

input[type="text"],
input[type="date"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: rgba(15, 23, 42, 0.6);
    color: #e5e7eb;
    font-size: 13px;
    font-family: inherit;
    transition: all 0.2s ease;
}

input[type="text"]:focus,
input[type="date"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: rgba(15, 23, 42, 0.8);
}

input[type="text"]:hover,
input[type="date"]:hover,
input[type="email"]:hover,
input[type="tel"]:hover,
select:hover,
textarea:hover {
    border-color: rgba(148, 163, 184, 0.4);
    background: rgba(15, 23, 42, 0.7);
}

input[type="text"]::placeholder,
input[type="date"]::placeholder,
input[type="email"]::placeholder,
input[type="tel"]::placeholder,
textarea::placeholder {
    color: #9ca3af;
    opacity: 0.8;
}

/* Styles spécifiques pour les date pickers - Cohérent avec l'esthétique du module */
input[type="date"] {
    position: relative;
    cursor: pointer;
}

/* Styles pour l'indicateur de calendrier natif du navigateur (WebKit/Blink) */
input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 1;
    filter: invert(0.7) sepia(0) saturate(0) hue-rotate(0deg) brightness(1.2);
    width: 18px;
    height: 18px;
    padding: 0;
    margin-left: 4px;
}

input[type="date"]:hover::-webkit-calendar-picker-indicator {
    filter: invert(0.8) sepia(0) saturate(0) hue-rotate(0deg) brightness(1.3);
}

input[type="date"]:focus::-webkit-calendar-picker-indicator {
    filter: invert(0.5) sepia(1) saturate(2) hue-rotate(200deg) brightness(1.2);
}

/* Styles pour Firefox */
input[type="date"]::-moz-calendar-picker-indicator {
    cursor: pointer;
    opacity: 1;
    filter: invert(0.7) sepia(0) saturate(0) hue-rotate(0deg) brightness(1.2);
    width: 18px;
    height: 18px;
    padding: 0;
    margin-left: 4px;
}

input[type="date"]:hover::-moz-calendar-picker-indicator {
    filter: invert(0.8) sepia(0) saturate(0) hue-rotate(0deg) brightness(1.3);
}

input[type="date"]:focus::-moz-calendar-picker-indicator {
    filter: invert(0.5) sepia(1) saturate(2) hue-rotate(200deg) brightness(1.2);
}

input[type="date"]::-webkit-datetime-edit {
    color: #e5e7eb;
    padding: 0;
}

input[type="date"]::-webkit-datetime-edit-text {
    color: #94a3b8;
    padding: 0 4px;
}

input[type="date"]::-webkit-datetime-edit-month-field:focus,
input[type="date"]::-webkit-datetime-edit-day-field:focus,
input[type="date"]::-webkit-datetime-edit-year-field:focus {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
    border-radius: 4px;
    outline: none;
}

select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(15, 23, 42, 0.3);
}

input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #3b82f6;
}

button.primary {
    margin-top: 10px;
    padding: 8px 16px;
    border-radius: 9999px;
    border: none;
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
    color: #f9fafb;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

button.primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #4338ca 100%);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
    font-size: 13px;
}

th,
td {
    padding: 8px 10px;
    border-bottom: 1px solid #1f2937;
}

th {
    text-align: left;
    color: #9ca3af;
    font-weight: 500;
    background: #020617;
}

tr:nth-child(even) td {
    background: rgba(15, 23, 42, 0.7);
}

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 9999px;
    font-size: 11px;
    min-width: 120px;
    text-align: center;
    white-space: nowrap;
}

.badge.pending {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.8);
    color: #bfdbfe;
}

.badge.submitted {
    background: rgba(14, 116, 144, 0.2);
    border: 1px solid rgba(8, 145, 178, 0.9);
    color: #a5f3fc;
}

.badge.validated {
    background: rgba(22, 163, 74, 0.18);
    border: 1px solid rgba(22, 163, 74, 0.9);
    color: #bbf7d0;
}

.badge.rejected {
    background: rgba(185, 28, 28, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.9);
    color: #fecaca;
}

.badge.validated-sent {
    background: rgba(59, 130, 246, 0.18);
    border: 1px solid rgba(59, 130, 246, 0.9);
    color: #bfdbfe;
}

.badge.validated-signed {
    background: rgba(34, 197, 94, 0.18);
    border: 1px solid rgba(34, 197, 94, 0.9);
    color: #bbf7d0;
}

a.link {
    color: #93c5fd;
    text-decoration: none;
}

a.link:hover {
    color: #e5e7eb;
}

/* Conteneur du calendrier avec scrollbar (aligné sur le dashboard BDE) */
.calendar-wrapper {
    /* Aligné sur le dashboard BDE */
    position: relative;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible;
    box-sizing: border-box;
}

/* Styles pour la scrollbar horizontale du calendrier - masquée */
.calendar-container {
    /* Aligné sur le dashboard BDE */
    width: 100% !important;
    max-width: 100% !important;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE et Edge */
    overflow-x: auto !important;
    overflow-y: hidden !important;
    /* Scroll horizontal fluide avec doigts et souris */
    -webkit-overflow-scrolling: touch;
    /* Scroll fluide sur iOS */
    scroll-behavior: smooth;
    /* Permettre le scroll avec la molette de la souris */
    overscroll-behavior-x: contain;
    /* Améliorer le scroll tactile */
    touch-action: pan-x;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box;
}

.calendar-container::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
    width: 0;
    height: 0;
}

.calendar-container::-webkit-scrollbar-track {
    display: none;
}

.calendar-container::-webkit-scrollbar-thumb {
    display: none;
}


.calendar-scroll-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 4px 8px;
    margin-top: 8px;
    font-size: 10px;
    color: #6b7280;
    text-align: center;
    opacity: 0.7;
}

.calendar-scroll-hint::before {
    display: none;
}

/* Boutons de navigation du calendrier - masqués */
.calendar-nav-buttons {
    display: none;
}

.calendar-nav-btn {
    flex: 0 0 auto;
    padding: 8px 14px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
    min-width: 45px;
}

.calendar-nav-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 6px 12px rgba(59, 130, 246, 0.4);
    transform: translateY(-1px);
}

.calendar-nav-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

.calendar-nav-btn:disabled {
    background: rgba(59, 130, 246, 0.3);
    cursor: not-allowed;
    opacity: 0.5;
}

.calendar-wrapper {
    position: relative;
}

/* Navigation par onglets */
.tabs-nav {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

.tab-link {
    padding: 10px 16px;
    text-decoration: none;
    color: #9ca3af;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    margin-bottom: -1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-link i {
    font-size: 15px;
    flex-shrink: 0;
}

.tab-link span {
    white-space: nowrap;
}

.tab-link:hover {
    color: #e5e7eb;
    background: rgba(15, 23, 42, 0.5);
}

.tab-link.active {
    color: #60a5fa;
    border-bottom-color: #3b82f6;
}

/* Sections de vue */
.view-section {
    margin-bottom: 24px;
}

.view-content {
    margin-top: 20px;
}

/* Affichage de l'année scolaire */
.year-display {
    margin-bottom: 16px;
    padding: 10px;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.year-display div {
    font-size: 13px;
    color: #9ca3af;
}

.year-display strong {
    color: #e5e7eb;
}

/* Cartes de statistiques */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin: 0;
}

/* Quand les stats sont dans une form-card, utiliser le même padding que la form-card */
.form-card .stats-grid {
    padding: 0;
    margin: 0;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 10px;
    transition: none !important;
}

.stat-card:hover {
    background: rgba(15, 23, 42, 0.6) !important;
    border-color: rgba(148, 163, 184, 0.2) !important;
    transform: none !important;
    box-shadow: none !important;
}

.stat-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 20px;
    flex-shrink: 0;
}

.stat-icon i {
    font-size: 20px;
    color: inherit;
}

.stat-icon-total i,
.stat-icon-pending i,
.stat-icon-submitted i,
.stat-icon-validated i,
.stat-icon-rejected i {
    color: #ffffff;
}

.stat-icon-total {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    color: #ffffff;
}

.stat-icon-pending {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #ffffff;
}

.stat-icon-submitted {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: #ffffff;
}

.stat-icon-validated {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #ffffff;
}

.stat-icon-rejected {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #e5e7eb;
    line-height: 1.2;
}

.stat-label {
    font-size: 13px;
    color: #cbd5e1;
    font-weight: 600;
    margin-top: 4px;
}

.stat-description {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 4px;
    line-height: 1.3;
}


/* Carte avec deux valeurs (validées/refusées) */
.stat-card-dual .stat-content {
    width: 100%;
}

.stat-dual-values {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}

.stat-dual-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-dual-value {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2px;
}

.stat-value-validated {
    color: #22c55e;
}

.stat-value-rejected {
    color: #ef4444;
}

.stat-dual-label {
    font-size: 11px;
    color: #cbd5e1;
    font-weight: 500;
}

.stat-dual-separator {
    width: 1px;
    height: 32px;
    background: rgba(148, 163, 184, 0.3);
    flex-shrink: 0;
}

.stat-label {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
}

/* Section calendrier dans une carte (alignée sur le dashboard BDE) */
.form-card.calendar-card {
    /* Même comportement que sur le dashboard BDE */
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible;
    box-sizing: border-box;
    margin-top: 24px;
}

.calendar-card .form-card-header {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 20px;
}

.calendar-scope-form {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    font-size: 13px;
    color: #9ca3af;
    padding: 12px 16px;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 8px;
}

.calendar-scope-form>span {
    font-weight: 500;
    color: #e5e7eb;
}

.calendar-scope-form label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.calendar-scope-form label:hover {
    background: rgba(148, 163, 184, 0.1);
}

.calendar-scope-form input[type="radio"] {
    margin: 0;
    cursor: pointer;
}

/* Tableau du calendrier (mêmes largeurs que côté BDE) */
.calendar-table {
    min-width: max-content !important;
    width: max-content !important;
    border-collapse: collapse;
    font-size: 12px;
}

.calendar-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
}

.calendar-table thead th.class-header {
    position: sticky;
    left: 0;
    z-index: 200;
    background: #0f172a;
    padding: 8px 12px;
    /* Réduit de ~35% : 12px * 0.65 = 7.8px ≈ 8px, 16px * 0.65 = 10.4px ≈ 12px */
    text-align: left;
    border-right: 2px solid rgba(148, 163, 184, 0.4);
    border-bottom: 2px solid rgba(148, 163, 184, 0.4);
    font-weight: 600;
    color: #e5e7eb;
    font-size: 13px;
}

.calendar-table thead th.week-header {
    padding: 10px 4px;
    text-align: center;
    white-space: nowrap;
    border-bottom: 2px solid rgba(148, 163, 184, 0.4);
    border-right: 1px solid rgba(148, 163, 184, 0.2);
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    font-weight: 500;
    color: #cbd5e1;
    min-width: 45px;
    width: 45px;
    vertical-align: middle;
}

/* Semaine courante surlignée (alignée visuellement avec le BDE) */
th.calendar-current-week {
    background: linear-gradient(180deg, #1d4ed8 0%, #1e293b 100%) !important;
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.7), 0 0 0 3px rgba(59, 130, 246, 0.25);
}

.calendar-week-number {
    font-size: 10px;
    font-weight: 700;
    color: #60a5fa;
    letter-spacing: 0.3px;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.calendar-week-date {
    font-size: 10px;
    color: #f9fafb;
    font-weight: 600;
    margin-bottom: 2px;
    line-height: 1.3;
}

.calendar-week-date span {
    font-size: 8px;
    color: #9ca3af;
    font-weight: 400;
    text-transform: lowercase;
}

.calendar-week-separator {
    font-size: 8px;
    color: #9ca3af;
    margin: 2px 0;
    opacity: 0.7;
    line-height: 1.2;
}

.calendar-table tbody td.class-cell {
    position: sticky;
    left: 0;
    z-index: 180;
    background: #0f172a;
    padding: 8px 12px;
    /* Réduit de ~35% : 12px * 0.65 = 7.8px ≈ 8px, 16px * 0.65 = 10.4px ≈ 12px */
    font-weight: 500;
    font-size: 13px;
    color: #e5e7eb;
    border-right: 2px solid rgba(148, 163, 184, 0.4);
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.calendar-table tbody tr:nth-child(even) td.class-cell {
    background: #1a1f2e;
}

.calendar-table tbody td.week-cell {
    padding: 0;
    text-align: center;
    border-right: 1px solid rgba(148, 163, 184, 0.15);
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
    width: 45px;
    height: 29px;
    /* Réduit de 35% : 45px * 0.65 = 29.25px ≈ 29px */
    background: #0f172a;
    overflow: visible;
    position: relative;
}

.calendar-table tbody td.week-cell.calendar-holiday-cell {
    overflow: visible;
}

/* La cellule "ancre" (1ère ligne) doit passer au-dessus des autres pour que le label soit visible sur toute la colonne */
.calendar-table tbody td.week-cell.holiday-label-anchor {
    z-index: 50;
}

/* La cellule "ancre" (1ère semaine du groupe) doit passer au-dessus des autres pour le label de période */
.calendar-table tbody td.week-cell.period-label-anchor {
    z-index: 40;
}

.calendar-table tbody tr:nth-child(even) td.week-cell {
    background: #1a1f2e;
}

.calendar-table tbody td.week-cell-current {
    /* Bande verticale plus marquée pour la semaine courante */
    background: #111827;
}

.calendar-table tbody tr:nth-child(even) td.week-cell.week-cell-current {
    background: #111827;
}

.calendar-table tbody td.week-cell-current .calendar-period-cell {
    /* Mettre légèrement en avant les périodes dans la semaine courante */
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.9);
}

/* Style pour les cellules de vacances scolaires */
.calendar-holiday-cell {
    background-color: #4b5563 !important;
    opacity: 1;
}

.calendar-holiday-cell .calendar-period-cell {
    opacity: 0.4;
    /* Assombrir encore plus si une période de stage chevauche */
}

/* Style pour le label des vacances (texte vertical) */
.calendar-holiday-label {
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    line-height: 1.2;
    white-space: nowrap;
    overflow: visible;
    padding: 0 4px;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.8),
        0 1px 2px rgba(0, 0, 0, 0.9),
        0 0 1px rgba(0, 0, 0, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 0;
    top: 0;
    /* Hauteur = nombre de lignes * hauteur d'une ligne (29px) */
    height: calc(var(--total-rows) * 29px);
    z-index: 10;
    pointer-events: none;
    /* Largeur = nombre de cellules * 45px (largeur d'une cellule) + bordures entre cellules */
    width: calc(var(--group-size) * 45px + (var(--group-size) - 1) * 1px);
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2));
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform-origin: center;
    transform: none;
}

/* Style pour les périodes Parcours en Y (jaune vif) */
.calendar-period-parcours-y {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%) !important;
}

.calendar-period-cell {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0;
    box-sizing: border-box;
    overflow: visible;
}

.calendar-period-label {
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    line-height: 1.2;
    white-space: nowrap;
    overflow: visible;
    padding: 0 4px;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.8),
        0 1px 2px rgba(0, 0, 0, 0.9),
        0 0 1px rgba(0, 0, 0, 1),
        0 -1px 1px rgba(59, 130, 246, 0.3),
        0 -2px 2px rgba(59, 130, 246, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 0;
    height: 100%;
    z-index: 10;
    pointer-events: none;
    /* Largeur = nombre de cellules * 45px (largeur d'une cellule) + bordures entre cellules */
    width: calc(var(--group-size) * 45px + (var(--group-size) - 1) * 1px);
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.6));
    transform: translateZ(0);
}

.calendar-period-indicator {
    width: 8px;
    height: 8px;
    background: #ffffff;
    border-radius: 50%;
    opacity: 0.95;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.8), 0 0 12px rgba(59, 130, 246, 0.5);
}

.calendar-empty-cell {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    position: static;
}

.calendar-empty-indicator {
    width: 4px;
    height: 4px;
    background: rgba(148, 163, 184, 0.25);
    border-radius: 50%;
}

.calendar-container {
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: #0f172a;
    padding: 0;
    max-width: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    /* Scroll horizontal fluide avec doigts et souris */
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    /* Scroll fluide sur iOS */
    scroll-behavior: smooth;
    /* Permettre le scroll avec la molette de la souris */
    overscroll-behavior-x: contain;
    /* Curseur pour indiquer qu'on peut glisser */
    cursor: grab;
}

.calendar-container:active {
    cursor: grabbing;
}

/* Empêcher la sélection de texte pendant le drag */
.calendar-container.dragging {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Barre de filtres */
.filters-bar {
    margin-bottom: 20px;
    padding: 16px;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 8px;
}

.filters-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    align-items: end;
}

.filter-field {
    display: flex;
    flex-direction: column;
}

.filter-field label {
    margin-bottom: 6px;
    font-size: 12px;
    color: #9ca3af;
    font-weight: 500;
}

.filter-field input[type="text"],
.filter-field select {
    width: 100%;
    box-sizing: border-box;
    padding: 7px 10px;
    border-radius: 9999px;
    border: 1px solid #4b5563;
    background: #020617;
    color: #e5e7eb;
    font-size: 13px;
}

.filter-field input[type="text"]:focus,
.filter-field select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.filter-field input[type="text"]::placeholder {
    color: #6b7280;
    opacity: 0.7;
}

.filter-submit {
    display: flex;
    align-items: flex-end;
}

.filter-submit button {
    width: 100%;
    padding: 8px 16px;
    font-size: 13px;
}

/* Informations sur les résultats */
.companies-results-info {
    margin-bottom: 16px;
    font-size: 13px;
    color: #9ca3af;
    padding: 8px 12px;
    background: rgba(15, 23, 42, 0.3);
    border-radius: 6px;
}

.companies-empty {
    font-size: 13px;
    color: #9ca3af;
    text-align: center;
    padding: 20px;
}

/* Tableau des entreprises */
.companies-table-wrapper {
    margin-bottom: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    -webkit-overflow-scrolling: touch;
    /* Le conteneur gère la bordure/rayon + évite les "coupures" visuelles */
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.30);
}

.companies-table {
    /* Autoriser le tableau à être plus large que le conteneur (scroll horizontal),
       plutôt que d'être "coupé" / compressé. */
    width: max-content;
    min-width: 100%;
    max-width: none !important;
    table-layout: auto !important;
    border-collapse: collapse;
    font-size: 13px;
    background: transparent;
    border-radius: 0;
    overflow: visible;
}

.companies-table thead th {
    text-align: left;
    color: #9ca3af;
    font-weight: 600;
    background: rgba(15, 23, 42, 0.6);
    padding: 12px 16px;
    border-bottom: 2px solid rgba(148, 163, 184, 0.3);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.companies-table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
    color: #e5e7eb;
}

.companies-table tbody tr:nth-child(even) {
    background: rgba(15, 23, 42, 0.2);
}

.companies-table tbody tr.company-row {
    cursor: pointer;
    transition: all 0.2s ease;
}

.companies-table tbody tr.company-row:hover {
    background: rgba(59, 130, 246, 0.1) !important;
}

.companies-table tbody tr.company-row td strong {
    color: #e5e7eb;
    font-weight: 600;
}

.companies-table .empty-value {
    color: #9ca3af;
    font-size: 11px;
}

.companies-table .stats-yes {
    color: #22c55e;
    font-weight: 500;
}

.companies-table .stats-no {
    color: #9ca3af;
}

/* Pagination */
.pagination {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 16px;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.pagination-link {
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid #4b5563;
    color: #e5e7eb;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    background: rgba(15, 23, 42, 0.4);
}

.pagination-link:hover {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(148, 163, 184, 0.4);
    color: #e5e7eb;
}

.pagination-info {
    font-size: 13px;
    color: #9ca3af;
    padding: 0 8px;
}

.pagination-per-page {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 12px;
}

.pagination-per-page label {
    font-size: 12px;
    color: #9ca3af;
    margin: 0;
}

.pagination-per-page select {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: rgba(15, 23, 42, 0.6);
    color: #e5e7eb;
    font-size: 13px;
    transition: all 0.2s ease;
}

.pagination-per-page select:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: rgba(15, 23, 42, 0.8);
}

.pagination-per-page select:hover {
    border-color: rgba(148, 163, 184, 0.4);
    background: rgba(15, 23, 42, 0.7);
}

/* Pagination - Annuaire entreprises (rendu plus "module") */
.companies-pagination {
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(2, 6, 23, 0.35);
}

.companies-pagination .pagination-link {
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(15, 23, 42, 0.55);
    color: #e5e7eb;
    font-weight: 600;
}

.companies-pagination .pagination-link:hover {
    background: rgba(59, 130, 246, 0.12) !important;
    border-color: rgba(59, 130, 246, 0.35) !important;
}

.companies-pagination .pagination-info {
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(15, 23, 42, 0.35);
    color: #cbd5e1;
    font-size: 12px;
    white-space: nowrap;
}

.companies-per-page {
    margin-left: 0;
    justify-content: flex-end;
}

.companies-per-page label {
    color: #cbd5e1;
    font-weight: 600;
}

.companies-per-page select {
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(15, 23, 42, 0.55);
}

.companies-per-page select:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.55);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

@media (max-width: 700px) {
    .companies-pagination {
        justify-content: center;
    }

    .companies-per-page {
        width: 100%;
        justify-content: center;
    }
}

/* Pagination */
.pagination {
    margin-top: 16px;
}

.pagination-link {
    transition: all 0.2s ease;
}

.pagination-link:hover {
    background: rgba(148, 163, 184, 0.1) !important;
    border-color: rgba(148, 163, 184, 0.4) !important;
}

/* Sélecteur d'année */
.year-selector {
    margin-bottom: 16px;
}

/* Tiroir de détails entreprise */
.company-drawer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1100;
    pointer-events: none;
}

.company-drawer.active {
    pointer-events: auto;
}

.company-drawer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.80);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.company-drawer.active .company-drawer-overlay {
    opacity: 1;
}

.company-drawer-content {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 900px;
    background: linear-gradient(180deg, #1f2937 0%, #020617 100%);
    border-left: 1px solid rgba(148, 163, 184, 0.3);
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.7);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.company-drawer.active .company-drawer-content {
    transform: translateX(0);
}

.company-drawer-header {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15, 23, 42, 0.9);
}

.company-drawer-header h3 {
    margin: 0;
    font-size: 18px;
    color: #e5e7eb;
}

.company-drawer-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.company-drawer-title i {
    color: #60a5fa;
    font-size: 18px;
}

.company-drawer-close {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 18px;
    cursor: pointer;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.company-drawer-close:hover {
    background: rgba(148, 163, 184, 0.1);
    color: #e5e7eb;
}

.company-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.company-drawer-body::-webkit-scrollbar {
    width: 8px;
}

.company-drawer-body::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.5);
}

.company-drawer-body::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.3);
    border-radius: 4px;
}

.company-drawer-body::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.5);
}

.company-detail-section {
    margin-bottom: 24px;
    padding: 14px 14px 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(2, 6, 23, 0.35);
    position: relative;
    overflow: hidden;
}

.company-detail-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.12), transparent 55%);
    opacity: 0.9;
    pointer-events: none;
}

.company-detail-section>* {
    position: relative;
    z-index: 1;
}

.company-detail-section h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #60a5fa;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.company-detail-section h4 i {
    color: #93c5fd;
    font-size: 14px;
}

.company-detail-item {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.company-detail-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.company-detail-label {
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 4px;
    display: block;
}

.company-detail-value {
    font-size: 14px;
    color: #e5e7eb;
    word-break: break-word;
}

.company-detail-value a {
    color: #93c5fd;
    text-decoration: none;
}

.company-detail-value a:hover {
    color: #60a5fa;
    text-decoration: underline;
}

.company-detail-value code {
    background: rgba(59, 130, 246, 0.15);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    color: #93c5fd;
}

/* Styles pour le bloc-notes */
#user-notes-container,
#user-notes-container-mobile {
    padding: 0;
}

.user-notes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.user-notes-header-left {
    display: flex;
    gap: 8px;
    align-items: center;
    flex: 1;
}

.user-notes-status-container {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(59, 130, 246, 0.2);
}

.user-notes-status {
    font-size: 11px;
    color: #9ca3af;
}

.user-notes-clear-btn {
    padding: 6px 12px;
    border-radius: 6px;
    border: none;
    background: linear-gradient(135deg, #b91c1c 0%, #ef4444 100%);
    color: #f9fafb;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
}

.user-notes-clear-btn:hover {
    background: linear-gradient(135deg, #991b1b 0%, #dc2626 100%);
}

.user-notes-clear-btn i {
    font-size: 14px;
}

.user-notes-textarea {
    width: 100%;
    min-height: 120px;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: rgba(15, 23, 42, 0.6);
    color: #e5e7eb;
    font-size: 13px;
    font-family: inherit;
    resize: vertical;
    transition: all 0.2s ease;
}

.user-notes-textarea:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: rgba(15, 23, 42, 0.8);
}

.user-notes-textarea:hover {
    border-color: rgba(148, 163, 184, 0.4);
    background: rgba(15, 23, 42, 0.7);
}

.user-notes-textarea::placeholder {
    color: #9ca3af;
    opacity: 0.8;
}

#user-notes-container-mobile .user-notes-textarea {
    min-height: 200px;
}

/* Responsive : sur mobile, le tiroir prend toute la largeur */
@media (max-width: 768px) {
    .company-drawer-content {
        max-width: 100%;
    }
}

/* Style pour les lignes cliquables */
.company-row:hover {
    background: rgba(59, 130, 246, 0.05) !important;
}

/* Section d'introduction explicative */
.intro-banner {
    padding: 20px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(37, 99, 235, 0.1) 100%);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    border-left: 4px solid #3b82f6;
    position: relative;
    transition: opacity 0.3s ease, transform 0.3s ease, margin 0.3s ease;
}

.intro-banner.hidden {
    display: none;
}

.intro-banner h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #e5e7eb;
    display: flex;
    align-items: center;
    gap: 10px;
}

.intro-banner h3 i {
    color: #60a5fa;
    font-size: 20px;
}

.intro-banner p {
    margin: 8px 0 0 0;
    font-size: 14px;
    color: #cbd5e1;
    line-height: 1.6;
}

.intro-banner .intro-steps {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: #94a3b8;
}

.intro-banner .intro-steps .step {
    display: flex;
    align-items: center;
    gap: 6px;
}

.intro-banner .intro-steps .step i {
    color: #60a5fa;
    font-size: 14px;
}

.intro-banner-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 6px;
    color: #9ca3af;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    font-size: 14px;
    z-index: 10;
}

.intro-banner-close:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #ef4444;
    transform: scale(1.1);
}

.intro-banner-close:active {
    transform: scale(0.95);
}

.intro-banner-close i {
    pointer-events: none;
}

/* Bouton fixe desktop/tablette pour le bloc-notes */
.user-notes-desktop-toggle {
    display: flex;
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9) 0%, rgba(37, 99, 235, 0.9) 100%);
    border: 2px solid rgba(59, 130, 246, 0.5);
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    z-index: 998;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), 0 0 0 4px rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
    align-items: center;
    justify-content: center;
}

.user-notes-desktop-toggle:active {
    transform: scale(0.95);
}

.user-notes-desktop-toggle:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), 0 0 0 4px rgba(59, 130, 246, 0.2);
    transform: translateY(-2px);
}

/* Fenêtre fixe desktop/tablette pour le bloc-notes */
.user-notes-desktop-panel {
    display: none;
    position: fixed;
    bottom: 100px;
    right: 24px;
    width: 400px;
    max-width: calc(100vw - 48px);
    max-height: calc(100vh - 140px);
    min-height: 300px;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(59, 130, 246, 0.1) inset;
    z-index: 999;
    flex-direction: column;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.user-notes-desktop-panel.active {
    display: flex;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.user-notes-desktop-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(37, 99, 235, 0.1) 100%);
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    color: #e5e7eb;
    flex-shrink: 0;
}

.user-notes-desktop-header i {
    color: #60a5fa;
    font-size: 16px;
}

.user-notes-desktop-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 8px;
    color: #9ca3af;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    font-size: 16px;
}

.user-notes-desktop-close:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #ef4444;
}

.user-notes-desktop-content {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.user-notes-desktop-content::-webkit-scrollbar {
    width: 6px;
}

.user-notes-desktop-content::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.5);
}

.user-notes-desktop-content::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.3);
    border-radius: 3px;
}

.user-notes-desktop-content::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.5);
}

/* Bouton flottant mobile pour le bloc-notes */
.user-notes-mobile-toggle {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9) 0%, rgba(37, 99, 235, 0.9) 100%);
    border: 2px solid rgba(59, 130, 246, 0.5);
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), 0 0 0 4px rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
    align-items: center;
    justify-content: center;
}

.user-notes-mobile-toggle:active {
    transform: scale(0.95);
}

.user-notes-mobile-toggle:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), 0 0 0 4px rgba(59, 130, 246, 0.2);
    transform: translateY(-2px);
}

/* Overlay mobile pour le bloc-notes */
.user-notes-mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.user-notes-mobile-overlay.active {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 1;
    pointer-events: auto;
}

.user-notes-mobile-content {
    width: 100%;
    max-height: 80vh;
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.user-notes-mobile-overlay.active .user-notes-mobile-content {
    transform: translateY(0);
}

.user-notes-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(37, 99, 235, 0.1) 100%);
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    color: #e5e7eb;
}

.user-notes-mobile-header i {
    color: #60a5fa;
    font-size: 18px;
}

.user-notes-mobile-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 8px;
    color: #9ca3af;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    font-size: 16px;
}

.user-notes-mobile-close:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #ef4444;
}

.user-notes-mobile-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.user-notes-mobile-body::-webkit-scrollbar {
    width: 6px;
}

.user-notes-mobile-body::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.5);
}

.user-notes-mobile-body::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.3);
    border-radius: 3px;
}

.user-notes-mobile-body::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.5);
}

/* Responsive : sur mobile, masquer les versions desktop et afficher le bouton */
@media (max-width: 768px) {

    /* Masquer les versions desktop sur mobile */
    .user-notes-desktop-toggle {
        display: none !important;
    }

    .user-notes-desktop-panel {
        display: none !important;
    }

    /* Afficher le bouton mobile */
    .user-notes-mobile-toggle {
        display: flex;
        width: 35px;
        height: 35px;
        bottom: 12px;
        right: 12px;
        font-size: 15px;
        border-width: 1px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4), 0 0 0 2px rgba(59, 130, 246, 0.1);
    }

    /* Adaptation des onglets sur mobile : Grille 2x2 */
    .tabs-nav {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        border-bottom: none;
        margin-bottom: 16px;
    }

    .tab-link {
        padding: 12px 10px;
        font-size: 12px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
        border-bottom: none;
        border-radius: 8px;
        background: rgba(15, 23, 42, 0.4);
        border: 1px solid rgba(148, 163, 184, 0.2);
        margin-bottom: 0;
        text-align: center;
        transition: all 0.2s ease;
    }

    .tab-link:hover {
        background: rgba(15, 23, 42, 0.6);
        border-color: rgba(148, 163, 184, 0.3);
        transform: translateY(-1px);
    }

    .tab-link.active {
        background: rgba(59, 130, 246, 0.15);
        border-color: rgba(59, 130, 246, 0.4);
        color: #60a5fa;
        box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
    }

    .tab-link i {
        font-size: 18px;
        margin-bottom: 2px;
    }

    .tab-link span {
        font-size: 11px;
        line-height: 1.2;
        white-space: normal;
        text-align: center;
    }
}

/* Cartes de formulaire */
.form-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.2s ease;
}

.form-card:hover {
    border-color: rgba(148, 163, 184, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Désactiver l'effet hover sur les form-card contenant des stats-grid */
.form-card-stats {
    transition: none !important;
}

.form-card-stats:hover {
    border-color: rgba(148, 163, 184, 0.2) !important;
    box-shadow: none !important;
}

.form-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.form-card-header-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.4);
    flex-shrink: 0;
}

.form-card-header-icon i {
    font-size: 20px;
    color: #60a5fa;
}

.form-card-header-content h3 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    color: #e5e7eb;
}

.form-card-header-content p {
    margin: 0;
    font-size: 13px;
    color: #9ca3af;
}

.form-card-secondary {
    background: rgba(15, 23, 42, 0.4);
    border-color: rgba(148, 163, 184, 0.15);
}

.form-card-secondary .form-card-header-icon {
    background: rgba(148, 163, 184, 0.15);
    border-color: rgba(148, 163, 184, 0.3);
}

.form-card-secondary .form-card-header-icon i {
    color: #94a3b8;
}

/* Accordéon pour sections repliables */
.accordion {
    margin-bottom: 20px;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.accordion-header:hover {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(148, 163, 184, 0.3);
}

.accordion-header h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #e5e7eb;
    display: flex;
    align-items: center;
    gap: 10px;
}

.accordion-header h3 i {
    color: #94a3b8;
    font-size: 16px;
}

.accordion-header .accordion-toggle {
    color: #9ca3af;
    font-size: 14px;
    transition: transform 0.2s ease;
}

.accordion.active .accordion-toggle {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 16px;
}

.accordion.active .accordion-content {
    max-height: 2000px;
    padding: 16px;
    background: rgba(15, 23, 42, 0.3);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-top: none;
    border-radius: 0 0 8px 8px;
}

/* Stepper pour le formulaire de création individuelle */
.form-stepper {
    margin-bottom: 24px;
    padding: 20px;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
}

.stepper-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.stepper-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    position: relative;
}

.stepper-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    background: rgba(148, 163, 184, 0.2);
    border: 2px solid rgba(148, 163, 184, 0.3);
    color: #9ca3af;
    transition: all 0.3s ease;
}

.stepper-step.active .stepper-step-number {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9) 0%, rgba(37, 99, 235, 0.9) 100%);
    border-color: rgba(59, 130, 246, 0.6);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.stepper-step.completed .stepper-step-number {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.9) 0%, rgba(22, 163, 74, 0.9) 100%);
    border-color: rgba(34, 197, 94, 0.6);
    color: #ffffff;
}

.stepper-step.completed .stepper-step-number::after {
    content: '✓';
    font-size: 18px;
}

.stepper-step-label {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 500;
    text-align: center;
}

.stepper-step.active .stepper-step-label {
    color: #60a5fa;
    font-weight: 600;
}

.stepper-step.completed .stepper-step-label {
    color: #22c55e;
}

.stepper-step-line {
    flex: 1;
    height: 2px;
    background: rgba(148, 163, 184, 0.2);
    margin: 0 4px;
    transition: all 0.3s ease;
}

.stepper-step-line.completed {
    background: linear-gradient(90deg, rgba(34, 197, 94, 0.6) 0%, rgba(22, 163, 74, 0.6) 100%);
}

/* Conteneur d'étape */
.form-step-container {
    display: none;
    animation: fadeIn 0.3s ease;
}

.form-step-container.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-step-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    display: flex;
    flex-direction: column;
}

.form-step-header h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #e5e7eb;
}

.form-step-header p {
    margin: 0;
    font-size: 13px;
    color: #9ca3af;
}

.form-step-description {
    margin-top: 0;
    margin-bottom: 0;
    font-size: 13px;
    line-height: 1.6;
    color: #9ca3af;
}

.form-step-description p {
    margin: 0;
    color: #9ca3af;
}

/* Espacement pour les champs conditionnels de saisie manuelle */
#manual-student-fields,
#manual-period-fields {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(148, 163, 184, 0.15);
}

/* Actions de navigation entre les étapes */
.form-step-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.form-step-actions button {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    width: auto !important;
    padding: 10px 16px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    transition: all 0.2s ease;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    white-space: nowrap;
    box-sizing: border-box !important;
    height: auto !important;
    min-height: 40px !important;
    line-height: 1.4 !important;
    margin: 0 !important;
}

.form-step-actions button.primary,
.form-step-actions button.btn-secondary {
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0 !important;
}

.form-step-actions button {
    cursor: pointer !important;
}

.form-step-actions button i {
    font-size: 12px !important;
    margin: 0 !important;
    flex-shrink: 0;
    width: auto !important;
    height: auto !important;
}

.form-step-actions button:hover {
    opacity: 0.9 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2) !important;
}

.form-step-actions button:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

.form-step-actions button.btn-secondary {
    background: rgba(15, 23, 42, 0.4) !important;
    border: 1px solid rgba(148, 163, 184, 0.2) !important;
    color: #9ca3af !important;
}

.form-step-actions button.btn-secondary:hover {
    background: rgba(15, 23, 42, 0.6) !important;
    border-color: rgba(148, 163, 184, 0.3) !important;
    color: #cbd5e1 !important;
}

.form-step-actions button.primary {
    background: rgba(59, 130, 246, 0.2) !important;
    border: 1px solid rgba(59, 130, 246, 0.4) !important;
    color: #93c5fd !important;
}

.form-step-actions button.primary:hover {
    background: rgba(59, 130, 246, 0.3) !important;
    border-color: rgba(59, 130, 246, 0.5) !important;
    color: #bfdbfe !important;
}

.form-step-actions button:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

.form-step-actions button.primary:disabled {
    background: rgba(59, 130, 246, 0.1) !important;
    border-color: rgba(59, 130, 246, 0.2) !important;
    color: rgba(147, 197, 253, 0.5) !important;
}

.form-step-actions button.create-and-print-btn {
    background: rgba(34, 197, 94, 0.2) !important;
    border: 1px solid rgba(34, 197, 94, 0.4) !important;
    color: #86efac !important;
}

.form-step-actions button.create-and-print-btn:hover {
    background: rgba(34, 197, 94, 0.3) !important;
    border-color: rgba(34, 197, 94, 0.5) !important;
    color: #bbf7d0 !important;
}

.form-step-actions button.create-and-print-btn:active {
    background: rgba(34, 197, 94, 0.25) !important;
    border-color: rgba(34, 197, 94, 0.45) !important;
}

/* Bouton retour au choix du mode */
#create-mode-back button {
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

#create-mode-back button {
    background: rgba(15, 23, 42, 0.4) !important;
    border: 1px solid rgba(148, 163, 184, 0.2) !important;
    color: #9ca3af !important;
}

#create-mode-back button:hover {
    opacity: 0.9 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2) !important;
    background: rgba(15, 23, 42, 0.6) !important;
    border-color: rgba(148, 163, 184, 0.3) !important;
    color: #cbd5e1 !important;
}

#create-mode-back button:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

/* Étapes du formulaire */
.form-step {
    margin-bottom: 20px;
    padding: 20px;
    background: rgba(15, 23, 42, 0.3);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 12px;
    border-left: 4px solid rgba(59, 130, 246, 0.5);
}

.form-step-number {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.form-step-title {
    flex: 1;
}

.form-step-title h4 {
    margin: 0 0 4px 0;
    font-size: 15px;
    font-weight: 600;
    color: #e5e7eb;
}

.form-step-title p {
    margin: 0;
    font-size: 12px;
    color: #9ca3af;
}

.form-option-field {
    margin-top: 8px;
}

.form-option-field label:hover {
    background: rgba(15, 23, 42, 0.5) !important;
    border-color: rgba(148, 163, 184, 0.3) !important;
}

.form-option-field input[type="checkbox"]:checked+div {
    color: #fbbf24;
}

.form-option-field input[type="checkbox"]:checked+div strong {
    color: #fbbf24;
}

.form-option-field input[type="checkbox"]:checked~label,
.form-option-field label:has(input[type="checkbox"]:checked) {
    border-color: rgba(251, 191, 36, 0.4) !important;
    background: rgba(251, 191, 36, 0.1) !important;
}

/* Amélioration des formulaires pour mobile */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .intro-banner {
        padding: 16px;
    }

    .intro-banner h3 {
        font-size: 16px;
    }

    .intro-banner p {
        font-size: 13px;
    }

    .intro-banner .intro-steps {
        flex-direction: column;
        gap: 8px;
    }

    .form-card {
        padding: 16px;
    }

    .form-card-header {
        flex-direction: row !important;
        align-items: center !important;
        gap: 12px;
    }

    /* Masquer le sous-titre (p) dans form-card-header sur mobile */
    .form-card-header-content p {
        display: none !important;
    }

    /* Ajuster le titre pour qu'il soit sur la même ligne que l'icône */
    .form-card-header-content {
        display: flex;
        flex-direction: column;
        gap: 0;
        flex: 1;
        min-width: 0;
    }

    .form-card-header-content h3 {
        margin: 0;
        line-height: 1.2;
    }

    /* ===== CARTES DE STATISTIQUES - Plus compactes sur mobile ===== */
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
        margin-bottom: 12px;
    }

    .stat-card {
        padding: 8px;
        gap: 6px;
        border-radius: 6px;
    }

    .stat-icon {
        width: 32px;
        height: 32px;
        border-radius: 6px;
        font-size: 14px;
    }

    .stat-icon i {
        font-size: 14px;
    }

    .stat-value {
        font-size: 16px;
        line-height: 1.1;
    }

    .stat-label {
        font-size: 9px;
        margin-top: 1px;
        line-height: 1.2;
    }

    /* Stepper responsive */
    .form-stepper {
        padding: 16px 12px;
        margin-bottom: 16px;
    }

    .stepper-step-number {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .stepper-step-label {
        font-size: 10px;
    }

    .stepper-step-line {
        margin: 0 2px;
    }

    .form-step-container {
        padding: 0;
    }

    .form-step-header {
        margin-bottom: 16px;
        padding-bottom: 12px;
    }

    .form-step-header h4 {
        font-size: 16px;
    }

    .form-step-header p {
        font-size: 12px;
    }

    .form-step-actions {
        flex-direction: row !important;
        gap: 10px;
        margin-top: 20px;
        padding-top: 16px;
    }

    .form-step-actions button {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        width: auto !important;
        padding: 10px 12px !important;
        font-size: 12px !important;
        gap: 4px !important;
        min-height: 38px !important;
        box-sizing: border-box !important;
    }

    .form-step-actions button.primary,
    .form-step-actions button.btn-secondary {
        flex: 1 1 0 !important;
        width: auto !important;
        min-width: 0 !important;
    }

    .form-step-actions button i {
        font-size: 11px !important;
        margin: 0 !important;
    }

    .form-step {
        padding: 16px;
    }

    .form-step-header {
        flex-direction: column;
        gap: 12px;
    }

    .form-step-number {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    /* Améliorations du header sur mobile */
    header {
        padding: 12px 16px;
        flex-wrap: wrap;
        gap: 12px;
    }

    header .header-left {
        gap: 10px;
        flex: 1;
        min-width: 0;
        align-items: center !important;
        display: flex !important;
        flex-direction: row !important;
    }

    header .header-logo {
        flex-shrink: 0;
        display: flex;
        align-items: center;
    }

    header .header-logo img {
        width: 32px;
        height: 32px;
    }

    header .header-title-wrapper {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 0 !important;
        min-width: 0;
        flex: 1;
        margin: 0;
        padding: 0;
    }

    header h1 {
        font-size: 16px;
        line-height: 1.2;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        margin: 0;
        padding: 0;
        /* Réinitialiser les styles de gradient pour mobile */
        background: none !important;
        -webkit-background-clip: unset !important;
        -webkit-text-fill-color: unset !important;
        background-clip: unset !important;
        color: #f9fafb !important;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        display: inline-block;
        vertical-align: middle;
    }

    /* Masquer le sous-titre sur mobile pour économiser l'espace */
    header .header-title-wrapper>div {
        display: none !important;
        height: 0 !important;
        width: 0 !important;
        overflow: hidden !important;
    }

    /* S'assurer que le wrapper ne prend que l'espace nécessaire */
    header .header-title-wrapper {
        height: auto !important;
        min-height: 0 !important;
    }

    header .user {
        width: 100%;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 8px;
        padding: 10px 12px;
        font-size: 12px;
    }

    header .user span {
        width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        margin-bottom: 4px;
        flex-basis: 100%;
    }

    header .user strong {
        font-size: 11px;
    }

    /* Conteneur flex pour les boutons d'action sur la même ligne */
    header .user>a {
        flex: 1 1 auto;
        padding: 6px 10px;
        font-size: 12px;
        text-align: left;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        min-width: 0;
        min-width: 120px;
        /* Largeur minimale pour que les boutons restent lisibles */
    }

    /* Espacement entre les boutons */
    header .user>a:not(:last-child) {
        margin-right: 8px;
    }

    header .user a i {
        margin-right: 8px;
        font-size: 12px;
        flex-shrink: 0;
    }

    /* Vue en cartes pour les demandes sur mobile */
    .requests-cards {
        display: block;
    }

    /* Tableau mobile : colonnes réduites */
    .requests-table {
        display: table;
    }

    .requests-table thead th.col-checkbox,
    .requests-table thead th.col-student-desktop,
    .requests-table thead th.col-class-desktop,
    .requests-table thead th.col-period-desktop,
    .requests-table thead th.col-company-desktop {
        display: none;
    }

    .requests-table thead th.col-student {
        display: table-cell !important;
        width: 40% !important;
    }

    .requests-table thead th.col-status {
        width: 25% !important;
    }

    .requests-table thead th.col-actions {
        width: 35% !important;
    }

    .requests-table tbody td.col-checkbox,
    .requests-table tbody td.col-student-desktop,
    .requests-table tbody td.col-class-desktop,
    .requests-table tbody td.col-period-desktop,
    .requests-table tbody td.col-company-desktop {
        display: none;
    }

    .requests-table tbody td.col-student {
        display: table-cell !important;
    }

    /* Styles pour la colonne élève mobile */
    .student-info {
        margin-bottom: 6px;
    }

    .student-meta {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 11px;
        color: #9ca3af;
    }

    .student-separator {
        color: #6b7280;
    }

    /* Actions condensées sur mobile */
    .actions-container {
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .link-icon {
        padding: 4px 8px;
        min-width: auto;
    }

    .link-icon .link-text {
        display: none;
    }

    .link-icon i {
        font-size: 13px;
    }

    .link-danger {
        background: rgba(239, 68, 68, 0.15) !important;
        border-color: rgba(239, 68, 68, 0.3) !important;
        color: #fca5a5 !important;
    }
}

/* Cartes de demande pour mobile - masquées par défaut (desktop) */
.requests-cards {
    display: none;
}

/* Tableau visible sur desktop */
.requests-table {
    display: block;
}

.request-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.request-card:hover {
    border-color: rgba(148, 163, 184, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.request-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 12px;
}

.request-card-checkbox {
    flex-shrink: 0;
    margin-top: 4px;
}

.request-card-title {
    flex: 1;
}

.request-card-title h4 {
    margin: 0 0 4px 0;
    font-size: 15px;
    font-weight: 600;
    color: #e5e7eb;
}

.request-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
}

.request-card-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.request-card-meta-item i {
    color: #6b7280;
    font-size: 11px;
}

.request-card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(148, 163, 184, 0.15);
}

.request-card-field {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.request-card-field-label {
    color: #9ca3af;
    font-weight: 500;
}

.request-card-field-value {
    color: #e5e7eb;
    text-align: right;
}

.request-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(148, 163, 184, 0.15);
}

.request-card-actions {
    flex: 1;
}

.request-card-actions .link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 6px;
    font-size: 12px;
    transition: all 0.2s ease;
}

.request-card-actions .link:hover {
    background: rgba(59, 130, 246, 0.25);
    border-color: rgba(59, 130, 246, 0.5);
}

/* Liste d'élèves pour création en masse */
.bulk-student-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    margin-bottom: 8px;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.bulk-student-item:hover {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(148, 163, 184, 0.3);
}

.bulk-student-item.existing {
    opacity: 0.6;
    background: rgba(148, 163, 184, 0.1);
}

.bulk-student-name {
    flex: 1;
    font-size: 13px;
    color: #e5e7eb;
    font-weight: 500;
    min-width: 150px;
}

.bulk-student-options {
    display: flex;
    gap: 16px;
    align-items: center;
}

.bulk-student-option {
    display: flex;
    align-items: center;
    gap: 6px;
}

.bulk-student-option label {
    font-size: 12px;
    color: #9ca3af;
    cursor: pointer;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.bulk-student-option input[type="checkbox"] {
    margin: 0;
    cursor: pointer;
    width: 16px;
    height: 16px;
}

.bulk-student-option input[type="checkbox"]:checked+span {
    color: #e5e7eb;
}

.bulk-select-all-btn:hover {
    background: rgba(148, 163, 184, 0.2) !important;
    border-color: rgba(148, 163, 184, 0.4) !important;
}

@media (max-width: 768px) {
    .bulk-student-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .bulk-student-name {
        min-width: auto;
        width: 100%;
    }

    .bulk-student-options {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 8px;
    }
}

/* Styles pour le tableau des fiches de recherche de stage */
.requests-table-wrapper {
    margin-bottom: 16px;
    overflow-x: auto;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.requests-table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    background: rgba(15, 23, 42, 0.3);
    border-radius: 8px;
    overflow: hidden;
    table-layout: fixed;
}

.requests-table thead th {
    text-align: left;
    color: #9ca3af;
    font-weight: 600;
    background: rgba(15, 23, 42, 0.6);
    padding: 12px 16px;
    border-bottom: 2px solid rgba(148, 163, 184, 0.3);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.requests-table thead th.col-checkbox {
    width: 5%;
    text-align: center;
}

/* Colonne élève mobile - masquée sur desktop par défaut */
.requests-table thead th.col-student {
    display: none;
    width: 35%;
}

.requests-table thead th.col-student-desktop {
    width: 20%;
}

.requests-table thead th.col-class-desktop {
    width: 10%;
}

.requests-table thead th.col-period-desktop {
    width: 15%;
}

.requests-table thead th.col-company-desktop {
    width: 25%;
}

.requests-table thead th.col-status {
    width: 15%;
}

.requests-table thead th.col-actions {
    width: 10%;
}

.requests-table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
    color: #e5e7eb;
}

/* Masquer la colonne élève mobile sur desktop */
.requests-table tbody td.col-student {
    display: none;
}

.requests-table tbody tr:nth-child(even) {
    background: rgba(15, 23, 42, 0.2);
}

.requests-table tbody tr:hover {
    background: rgba(59, 130, 246, 0.1) !important;
}

.requests-table tbody td strong {
    color: #e5e7eb;
    font-weight: 600;
}

.requests-table .link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 6px;
    font-size: 12px;
    color: #60a5fa;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.requests-table .link.link-icon {
    padding: 4px 8px;
    min-width: auto;
}

.requests-table .link.link-icon .link-text {
    display: inline;
}

.requests-table .link.link-danger {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.requests-table .link.link-danger:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: rgba(239, 68, 68, 0.5);
    color: #fca5a5;
}

.requests-table .actions-container {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.student-info {
    margin-bottom: 4px;
}

.student-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #9ca3af;
    margin-top: 4px;
}

.student-separator {
    color: #6b7280;
}

.requests-table .link:hover {
    background: rgba(59, 130, 246, 0.25);
    border-color: rgba(59, 130, 246, 0.5);
    color: #93c5fd;
}

.requests-table .link i {
    font-size: 11px;
}

/* Barre d'actions en masse */
.requests-bulk-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 8px;
    margin-bottom: 16px;
}

.requests-bulk-actions.hidden {
    display: none;
}

.requests-bulk-actions-info {
    flex: 1;
    font-size: 13px;
    color: #9ca3af;
}

.requests-bulk-actions-buttons {
    display: flex;
    gap: 8px;
}

.requests-bulk-actions-buttons button,
.requests-bulk-actions-buttons .bulk-print-btn {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 6px;
    border: 1px solid rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
}

.requests-bulk-actions-buttons button:hover,
.requests-bulk-actions-buttons .bulk-print-btn:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: rgba(239, 68, 68, 0.5);
    color: #f87171;
}

.requests-bulk-actions-buttons .bulk-print-btn {
    border-color: rgba(59, 130, 246, 0.3);
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
}

.requests-bulk-actions-buttons .bulk-print-btn:hover {
    background: rgba(59, 130, 246, 0.25);
    border-color: rgba(59, 130, 246, 0.5);
    color: #60a5fa;
}

/* Filtres et recherche */
.requests-filters {
    margin-bottom: 16px;
}

.filters-bar {
    background: rgba(15, 23, 42, 0.3);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 8px;
    padding: 16px;
}

.filters-form-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 12px;
    align-items: end;
}

/* Filtres avancés - toujours visibles sur desktop */
.filters-advanced {
    display: contents;
    /* Les enfants s'affichent directement dans la grille */
}

/* Bouton toggle - masqué sur desktop et tablette par défaut */
.filters-toggle-btn {
    display: none !important;
}

.filter-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-field label {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 500;
}

.filter-field input,
.filter-field select {
    padding: 8px 12px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 6px;
    color: #e5e7eb;
    font-size: 13px;
    transition: all 0.2s ease;
}

.filter-field input:focus,
.filter-field select:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.filter-submit button {
    padding: 8px 16px;
    height: fit-content;
}

@media (max-width: 1024px) {
    .filters-form-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Styles pour le champ de recherche avec icône */
.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 14px;
    color: #6b7280;
    font-size: 14px;
    pointer-events: none;
    z-index: 1;
}

.filter-field-search input {
    padding-left: 40px !important;
}

.search-clear-btn {
    position: absolute;
    right: 10px;
    background: transparent;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 1;
}

.search-clear-btn:hover {
    background: rgba(148, 163, 184, 0.2);
    color: #e5e7eb;
}

.search-clear-btn i {
    font-size: 12px;
}

/* Bouton toggle pour les filtres avancés (masqué sur desktop) */
.filters-toggle-btn {
    display: none;
    width: 100%;
    padding: 12px 16px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 6px;
    color: #60a5fa;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 8px;
}

.filters-toggle-btn:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.4);
}

.filters-toggle-btn i {
    font-size: 14px;
}

.filters-toggle-icon {
    transition: transform 0.2s ease;
}

.filters-toggle-btn.active .filters-toggle-icon {
    transform: rotate(180deg);
}

.filters-active-count {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

@media (max-width: 768px) {

    /* Section "Afficher pour" - responsive mobile */
    .calendar-scope-form {
        margin-bottom: 12px;
        padding: 10px 12px;
        gap: 8px;
        font-size: 11px;
        flex-direction: column;
        align-items: flex-start;
    }

    .calendar-scope-form>span {
        font-size: 12px;
        margin-bottom: 4px;
        width: 100%;
    }

    .calendar-scope-form label {
        padding: 6px 10px;
        gap: 8px;
        font-size: 12px;
        width: 100%;
        justify-content: flex-start;
    }

    .calendar-scope-form input[type="radio"] {
        width: 16px;
        height: 16px;
        flex-shrink: 0;
    }

    /* Amélioration de la carte de recherche sur mobile */
    .requests-filters {
        margin-bottom: 12px;
    }

    .filters-bar {
        padding: 12px;
        border-radius: 8px;
        background: rgba(15, 23, 42, 0.4);
        border: 1px solid rgba(148, 163, 184, 0.2);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .filters-form-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* Champ de recherche principal - toujours visible */
    .filter-field-search {
        margin-bottom: 4px;
    }

    .filter-field-search label {
        font-size: 12px;
        font-weight: 600;
        color: #e5e7eb;
        margin-bottom: 6px;
    }

    .filter-field-search input {
        font-size: 15px;
        padding: 12px 14px 12px 40px !important;
        border-radius: 8px;
        background: rgba(15, 23, 42, 0.7);
        border: 1px solid rgba(148, 163, 184, 0.3);
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }

    .filter-field-search input:focus {
        border-color: rgba(59, 130, 246, 0.6);
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    }

    /* Filtres avancés - masqués par défaut sur mobile */
    .filters-advanced {
        display: none;
        gap: 10px;
        flex-direction: column;
        padding-top: 8px;
        border-top: 1px solid rgba(148, 163, 184, 0.2);
        margin-top: 8px;
    }

    .filters-advanced.active {
        display: flex;
    }

    .filter-field {
        gap: 6px;
    }

    .filter-field label {
        font-size: 11px;
        margin-bottom: 0;
        color: #9ca3af;
    }

    .filter-field input,
    .filter-field select {
        padding: 10px 12px;
        font-size: 14px;
        border-radius: 6px;
        background: rgba(15, 23, 42, 0.6);
    }

    /* Bouton toggle visible uniquement sur mobile */
    .filters-toggle-btn {
        display: flex !important;
    }

    .requests-bulk-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 12px;
    }

    .requests-bulk-actions-info {
        font-size: 13px;
        text-align: center;
    }

    .requests-bulk-actions-buttons {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .requests-bulk-actions-buttons a,
    .requests-bulk-actions-buttons button {
        width: 100%;
        flex: 1;
        padding: 10px 16px;
        font-size: 13px;
        justify-content: center;
    }
}

/* Styles pour la sélection du mode de création */
.create-mode-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.create-mode-card {
    background: rgba(15, 23, 42, 0.6);
    border: 2px solid rgba(148, 163, 184, 0.2);
    border-radius: 16px;
    padding: 32px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.create-mode-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.6) 0%, rgba(37, 99, 235, 0.6) 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.create-mode-card:hover {
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(15, 23, 42, 0.8);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(59, 130, 246, 0.2) inset;
    transform: translateY(-4px);
}

.create-mode-card:hover::before {
    transform: scaleX(1);
}

.create-mode-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(37, 99, 235, 0.2) 100%);
    border: 2px solid rgba(59, 130, 246, 0.4);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.create-mode-card:hover .create-mode-icon {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3) 0%, rgba(37, 99, 235, 0.3) 100%);
    border-color: rgba(59, 130, 246, 0.6);
    transform: scale(1.1);
}

.create-mode-icon i {
    font-size: 32px;
    color: #60a5fa;
}

.create-mode-card h4 {
    margin: 0 0 12px 0;
    font-size: 20px;
    font-weight: 700;
    color: #e5e7eb;
    letter-spacing: -0.3px;
}

.create-mode-card p {
    margin: 0 0 20px 0;
    font-size: 14px;
    color: #9ca3af;
    line-height: 1.6;
    flex: 1;
}

.create-mode-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.create-mode-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #cbd5e1;
}

.create-mode-features li i {
    color: #22c55e;
    font-size: 12px;
    flex-shrink: 0;
}

.create-mode-action {
    margin-top: auto;
}

.create-mode-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(37, 99, 235, 0.2) 100%);
    border: 1px solid rgba(59, 130, 246, 0.4);
    border-radius: 8px;
    color: #60a5fa;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.create-mode-card:hover .create-mode-btn {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3) 0%, rgba(37, 99, 235, 0.3) 100%);
    border-color: rgba(59, 130, 246, 0.6);
    color: #93c5fd;
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .create-mode-selection {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 12px;
    }

    .create-mode-card {
        padding: 16px;
        border-radius: 12px;
    }

    .create-mode-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 12px;
        border-radius: 12px;
    }

    .create-mode-icon i {
        font-size: 24px;
    }

    .create-mode-card h4 {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .create-mode-card p {
        font-size: 12px;
        margin-bottom: 12px;
        line-height: 1.5;
    }

    .create-mode-features {
        gap: 6px;
        margin-bottom: 12px;
    }

    .create-mode-features li {
        font-size: 11px;
        gap: 6px;
    }

    .create-mode-features li i {
        font-size: 10px;
    }

    .create-mode-btn {
        padding: 10px 16px;
        font-size: 12px;
        border-radius: 6px;
    }

    /* Boutons de formulaire */
    button.primary,
    .btn-secondary {
        padding: 10px 14px !important;
        font-size: 13px !important;
    }

    button.primary i,
    .btn-secondary i {
        font-size: 12px;
        margin-right: 4px;
    }

    /* Boutons de sélection en masse */
    .bulk-select-all-btn {
        padding: 6px 10px !important;
        font-size: 10px !important;
        border-radius: 4px !important;
    }

    .bulk-select-all-btn i {
        font-size: 9px;
    }

    /* Bouton retour */
    #create-mode-back button {
        padding: 10px 14px !important;
        font-size: 13px !important;
    }
}

/* ============================================
   PROF REQUESTS VIEW (views/prof_requests.php)
   ============================================ */

.search-clear-btn {
    display: none;
}

.search-clear-btn.visible {
    display: flex;
}

.empty-state-icon {
    font-size: 48px;
    color: #4b5563;
    margin-bottom: 16px;
}

.empty-state-text {
    font-size: 14px;
    color: #9ca3af;
}

.loading-indicator {
    display: none;
    text-align: center;
    padding: 20px;
    color: #6b7280;
}

.loading-indicator.active {
    display: block;
}

.loading-indicator i {
    margin-right: 8px;
}

/* request-detail-drawer styles are defined in request_detail.css */

.text-muted-italic {
    color: #6b7280;
    font-style: italic;
}

.text-center {
    text-align: center;
}

.error-message {
    padding: 24px;
    color: #ef4444;
}

.loading-message {
    padding: 24px;
    text-align: center;
    color: #9ca3af;
}

.loading-message i {
    margin-right: 8px;
}

/* ============================================
   PROF OVERVIEW (views/prof_overview.php)
   ============================================ */

.stat-icon-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.stat-icon-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.stat-icon-purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.calendar-info-text {
    margin: 12px 16px 16px 16px;
    font-size: 13px;
    color: #9ca3af;
}

/* ============================================
   PROF CREATE (views/prof_create.php)
   ============================================ */

.warning-box-yellow {
    padding: 16px;
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.4);
    border-radius: 8px;
    margin-bottom: 20px;
}

.warning-box-yellow p {
    margin: 0;
    font-size: 13px;
    color: #fbbf24;
}

.warning-box-yellow i {
    margin-right: 8px;
}

.form-option-field {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-option-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    padding: 12px;
    background: rgba(15, 23, 42, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    transition: all 0.2s;
}

.form-option-checkbox-label input[type="checkbox"] {
    margin-top: 2px;
    cursor: pointer;
}

.form-option-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.form-option-title {
    font-size: 13px;
    color: #e5e7eb;
}

.form-option-description {
    font-size: 12px;
    color: #9ca3af;
}

.icon-gray {
    color: #9ca3af;
}

.icon-warning {
    color: #fbbf24;
}

.icon-info {
    color: #60a5fa;
}

.bulk-students-list {
    display: none;
    margin-top: 20px;
    padding: 16px;
    background: rgba(15, 23, 42, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.bulk-students-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.bulk-students-header h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #e5e7eb;
}

.bulk-students-actions {
    display: flex;
    gap: 8px;
}

.bulk-select-all-btn {
    padding: 4px 10px;
    font-size: 11px;
    border-radius: 6px;
    cursor: pointer;
}

.bulk-select-all-btn-warning {
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.3);
    color: #fbbf24;
}

.bulk-select-all-btn-info {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #60a5fa;
}

.bulk-students-info {
    margin: 0 0 12px 0;
    font-size: 12px;
    color: #9ca3af;
}

.bulk-students-container {
    max-height: 400px;
    overflow-y: auto;
    padding: 8px;
}

.bulk-students-count {
    margin-top: 12px;
    padding: 8px;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 6px;
    font-size: 12px;
    color: #9ca3af;
}

.bulk-students-count i {
    margin-right: 6px;
}