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

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

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

.flash {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 13px;
    margin-bottom: 12px;
}

.flash[hidden] {
    display: none !important;
}

.flash > i {
    flex-shrink: 0;
    margin-top: 0;
}

.flash > div {
    flex: 1;
    min-width: 0;
    margin: 0;
}

.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="search"],
input[type="date"],
input[type="email"],
input[type="password"],
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="search"] {
    -webkit-appearance: none;
    appearance: none;
}

input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
}

input[type="text"]:focus,
input[type="search"]:focus,
input[type="date"]:focus,
input[type="email"]:focus,
input[type="password"]: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="search"]:hover,
input[type="date"]:hover,
input[type="email"]:hover,
input[type="password"]: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="search"]::placeholder,
input[type="date"]::placeholder,
input[type="email"]::placeholder,
input[type="password"]::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 {
    box-sizing: border-box;
    margin-top: 10px;
    min-height: var(--stages-btn-min-height, 28px);
    padding: var(--stages-btn-padding-y, 6px) var(--stages-btn-padding-x-label, 12px);
    border-radius: var(--stages-btn-radius, 6px);
    border: 1px solid var(--stages-btn-primary-border, rgba(59, 130, 246, 0.6));
    background: var(--stages-btn-primary-bg, #2563eb);
    color: var(--stages-btn-primary-color, #f9fafb);
    font-size: var(--stages-btn-font-size, 14px);
    font-weight: 500;
    line-height: var(--stages-btn-line-height, 1);
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

button.primary:hover {
    background: var(--stages-btn-primary-bg-hover, #1d4ed8);
    border-color: var(--stages-btn-primary-border, rgba(59, 130, 246, 0.6));
    color: var(--stages-btn-primary-color, #f9fafb);
}

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* chrome : canon badges.css */

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;
}

/* 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;
}

/* Shell calendrier (légende + grille, hors form-card) */
.calendar-card {
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible;
    box-sizing: border-box;
    margin-top: 0;
}

.calendar-card.mb-4 {
    margin-bottom: 1rem;
}

.calendar-card .form-card-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.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;
}

.calendar-print-header {
    display: none;
}

/* Toolbar calendrier (hors form-card) */
.calendar-card-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    margin: 0 0 14px;
}

.calendar-card-toolbar-main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    flex: 1 1 auto;
    min-width: 0;
}

.calendar-card-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    flex: 0 0 auto;
}

.calendar-scope-form--segmented {
    margin-bottom: 0;
    padding: 0;
    background: transparent;
    border: none;
    gap: 8px;
}

.calendar-scope-form-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
}

.calendar-scope-segments {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 3px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(2, 6, 23, 0.45);
}

.calendar-scope-segment {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 6px 11px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.calendar-scope-segment input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.calendar-scope-segment.is-active {
    background: rgba(59, 130, 246, 0.2);
    color: #e5e7eb;
}

.calendar-scope-readonly {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.calendar-scope-readonly i {
    color: #60a5fa;
    font-size: 12px;
}

/* Légende (hors #calendar-container) */
.calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-bottom: 14px;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.calendar-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #cbd5e1;
}

.calendar-legend-swatch {
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
    border-radius: 4px;
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.calendar-legend-swatch--period {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.calendar-legend-swatch--parcours-y {
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
}

.calendar-legend-swatch--holiday {
    background: rgba(100, 116, 139, 0.55);
}

.calendar-legend-swatch--current {
    background: rgba(29, 78, 216, 0.85);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.35);
}

.calendar-legend--print-only {
    display: none;
}

.calendar-scope-content {
    transition: opacity 0.2s ease;
}

.calendar-scope-content.is-loading {
    opacity: 0.55;
    pointer-events: none;
}

.prof-calendrier-empty {
    min-height: 120px;
}

/* Vue calendrier prof — en-tête de section */
.prof-calendrier-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
    padding: 18px 20px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(15, 23, 42, 0.55));
}

.prof-calendrier-hero-main h2 {
    margin: 0 0 6px;
}

.prof-calendrier-subtitle {
    margin: 0;
    font-size: 13px;
    color: #94a3b8;
}

.prof-calendrier-hero-stats {
    display: flex;
    gap: 10px;
}

.prof-calendrier-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(2, 6, 23, 0.45);
}

.prof-calendrier-stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #e5e7eb;
    line-height: 1.1;
}

.prof-calendrier-stat-label {
    font-size: 11px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.prof-calendrier-intro {
    margin: 0 0 16px;
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.45;
}

@media (max-width: 640px) {
    .calendar-card-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .calendar-card-toolbar-actions {
        justify-content: stretch;
    }

    .calendar-card-toolbar-actions .btn {
        flex: 1 1 auto;
        justify-content: center;
    }

    .prof-calendrier-hero-stats {
        width: 100%;
    }

    .prof-calendrier-stat {
        flex: 1 1 0;
    }
}

/* 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: 8px 3px;
    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: 42px;
    width: 42px;
    vertical-align: middle;
}

/* Semaine courante surlignée (alignée visuellement avec le BDE) */
th.calendar-current-week {
    background: linear-gradient(180deg, #2563eb 0%, #1e3a8a 100%) !important;
    box-shadow: inset 0 0 0 1px rgba(147, 197, 253, 0.85), 0 0 0 2px rgba(59, 130, 246, 0.45);
    color: #eff6ff !important;
}

th.calendar-current-week .calendar-week-number {
    color: #bfdbfe;
}

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

.calendar-week-range {
    font-size: 8px;
    color: #f9fafb;
    font-weight: 600;
    line-height: 1.2;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

th.calendar-current-week .calendar-week-range {
    color: #eff6ff;
}

.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: 42px;
    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 {
    background: rgba(37, 99, 235, 0.12) !important;
    box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.35);
}

.calendar-table tbody tr:nth-child(even) td.week-cell.week-cell-current {
    background: rgba(37, 99, 235, 0.16) !important;
}

.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 si ≥ 3 lignes) */
.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) * 42px + (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;
}

/* < 3 lignes classes : horizontal (le vertical déborde hors de la bande grise) */
.calendar-holiday-label.calendar-holiday-label--horizontal {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
}

/* Style pour les périodes Parcours personnalisé (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) * 42px + (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;
}

/* Informations sur les résultats */
.companies-results-info {
    margin-bottom: 12px;
    font-size: 13px;
    color: #94a3b8;
    padding: 0 2px;
    text-align: left;
}

/* Vue annuaire prof — hero */
.prof-companies-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
    padding: 18px 20px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(15, 23, 42, 0.55));
}

.prof-companies-hero-main h2 {
    margin: 0 0 6px;
}

.prof-companies-subtitle {
    margin: 0;
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.45;
    max-width: 52ch;
}

.prof-companies-hero-stats {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.prof-companies-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(2, 6, 23, 0.45);
}

.prof-companies-stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #e5e7eb;
    line-height: 1.1;
}

.prof-companies-stat-label {
    font-size: 11px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.companies-results-shell {
    margin-top: 0;
    min-width: 0;
}

.requests-results-shell,
.catchups-results-shell {
    margin-top: 0;
    min-width: 0;
}

/* Une seule surface visuelle : pas de 2e carte autour du tableau (ui_components + form-card) */
.companies-results-shell .companies-table {
    background: rgba(15, 23, 42, 0.35);
    border: 1px solid var(--stages-border, rgba(148, 163, 184, 0.2));
    border-radius: 12px;
}

.requests-results-shell .requests-table,
.catchups-results-shell .catchups-list-table {
    background: rgba(15, 23, 42, 0.35);
    border: 1px solid var(--stages-border, rgba(148, 163, 184, 0.2));
    border-radius: 12px;
}

.form-card .companies-table {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
}

.companies-bulk-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 14px;
    margin: 0 0 12px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(59, 130, 246, 0.28);
    background: rgba(37, 99, 235, 0.1);
}

.companies-bulk-actions.hidden {
    display: none !important;
}

.companies-bulk-actions-info {
    font-size: 13px;
    color: #dbeafe;
    font-weight: 600;
}

.companies-bulk-actions-hint {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    font-weight: 500;
    color: #94a3b8;
}

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

.companies-table col.col-select {
    width: 4%;
}

.companies-table col.col-name {
    width: 46%;
}

.companies-table col.col-location {
    width: 14%;
}

.companies-table col.col-formations {
    width: 32%;
}

.companies-table col.col-actions {
    width: 4%;
}

.companies-table tbody td.col-select {
    vertical-align: middle;
    text-align: center;
    padding-left: 8px;
    padding-right: 4px;
}

.companies-table thead th.col-select {
    text-align: center;
    padding-left: 8px;
    padding-right: 4px;
}

.companies-active-filters,
.requests-active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.35);
}

.companies-active-filters[hidden],
.requests-active-filters[hidden] {
    display: none !important;
}

.companies-active-filters-label,
.requests-active-filters-label {
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.companies-active-filters-chips,
.requests-active-filters-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.companies-filter-chip,
.requests-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(96, 165, 250, 0.35);
    background: rgba(37, 99, 235, 0.14);
    color: #dbeafe;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.companies-filter-chip:hover,
.requests-filter-chip:hover {
    background: rgba(37, 99, 235, 0.24);
    border-color: rgba(147, 197, 253, 0.55);
}

.companies-filter-chip--clear-all,
.requests-filter-chip--clear-all {
    border-color: rgba(148, 163, 184, 0.35);
    background: rgba(148, 163, 184, 0.12);
    color: #cbd5e1;
}

.prof-companies-empty,
.prof-requests-empty,
.prof-catchups-empty {
    min-height: 140px;
}

.company-row-name {
    display: block;
    color: #e5e7eb;
    font-weight: 600;
    line-height: 1.35;
}

.company-row-primary {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    max-width: 100%;
}

.company-row-activity {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.4;
    color: #94a3b8;
}

.company-row-stage-note {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    line-height: 1.3;
    color: #86efac;
}

.company-row-stage-note i {
    font-size: 10px;
    opacity: 0.9;
}

.company-activity-text {
    display: inline-block;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom;
}

.company-stats-badges {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.company-stat-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 22px;
    padding: 0 6px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.company-stat-badge--n {
    background: rgba(34, 197, 94, 0.18);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.35);
}

.company-stat-badge--n1 {
    background: rgba(59, 130, 246, 0.18);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.35);
}

.company-stat-badge--none {
    background: rgba(148, 163, 184, 0.12);
    color: #64748b;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.company-formation-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: flex-start;
}

/* .company-formation-tag* chrome : canon badges.css */

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

/* Tableau des entreprises (pas de 2e carte : le chrome est sur .form-card / .card parent) */
.companies-table-wrapper {
    margin-bottom: 16px;
    overflow-x: auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.companies-table {
    width: 100%;
    /* min-width force le scroll horizontal du wrapper sur viewport étroit */
    min-width: 720px;
    max-width: none;
    table-layout: auto;
    border-collapse: collapse;
    font-size: 13px;
    background: transparent;
    border-radius: 0;
}

.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 14px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
    color: #e5e7eb;
    vertical-align: middle;
}

.companies-table tbody td.col-name {
    overflow: hidden;
}

.companies-table tbody td.col-location {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.companies-table tbody td.col-formations {
    overflow: hidden;
}

.companies-table tbody td.col-actions {
    vertical-align: middle;
    padding-left: 8px;
    padding-right: 10px;
}

.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;
}

.companies-table .col-location {
    white-space: nowrap;
}

.companies-table .col-formations {
    min-width: 100px;
}

.companies-table .col-actions {
    text-align: center;
    white-space: nowrap;
}

.company-row-stage-note i {
    color: #60a5fa;
}

/* 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: 768px) {
    .prof-companies-hero-stats {
        width: 100%;
    }

    .prof-companies-stat {
        flex: 1 1 0;
    }

    .companies-pagination {
        justify-content: center;
        flex-direction: column;
        align-items: stretch;
    }

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

@media (min-width: 769px) and (max-width: 1100px) {
    .companies-table col.col-name {
        width: 48%;
    }

    .companies-table col.col-formations {
        width: 26%;
    }
}

@media (max-width: 900px) {
    .companies-table-wrapper {
        overflow-x: auto;
    }
}

/* 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 détail entreprise : coque request-detail-drawer + form-card
   (voir request_detail.css / company-drawer.js) */

/* 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;
}

/* 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;
}

/* 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;
    gap: 8px;
}

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

.user-notes-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.user-notes-header-actions .user-notes-clear-btn {
    margin-left: 0;
    padding: 6px 10px;
    font-size: 11px;
    white-space: nowrap;
}

.user-notes-header-actions .user-notes-clear-btn i {
    color: inherit;
    font-size: 12px;
}

.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);
}

/* 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;
    gap: 8px;
}

.user-notes-mobile-header .flex-items-center > 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-panel {
        display: none !important;
    }
}

/* 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 (wizards partageant dashboard_prof.css) */
.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;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    white-space: nowrap;
    box-sizing: border-box !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 i {
    margin: 0 !important;
    flex-shrink: 0;
}

.form-step-actions button:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    pointer-events: none !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;
    }

    .bulk-create-toolbar {
        grid-template-columns: 1fr;
    }

    .bulk-create-step1 {
        max-width: none;
    }

    .bulk-create-step3 {
        max-width: none;
    }

    .bulk-create-steps {
        flex-direction: column;
    }

    .bulk-create-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .bulk-create-actions {
        justify-content: stretch;
    }

    .bulk-create-actions .btn {
        flex: 1 1 auto;
    }

    .bulk-students-actions {
        justify-content: flex-start;
    }

    .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;
        gap: 4px !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        overflow-wrap: anywhere;
        text-align: center;
    }

    .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 {
        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;
    }

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

    /* Tableau mobile : colonnes réduites */
    .requests-table {
        display: table;
        width: 100%;
        table-layout: fixed;
    }

    .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-checkbox {
        display: table-cell !important;
        width: 10% !important;
        min-width: 40px;
        text-align: center;
    }

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

    .requests-table thead th.col-status {
        width: 10% !important;
        min-width: 36px;
        text-align: center;
    }

    .requests-table thead th.col-actions {
        width: 10% !important;
        text-align: center;
    }

    .requests-table thead th {
        overflow: visible;
        white-space: nowrap;
        position: relative;
        z-index: 2;
    }

    .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-checkbox {
        display: table-cell !important;
        width: 10% !important;
        min-width: 40px;
        text-align: center;
        vertical-align: middle;
    }

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

    .requests-table tbody td.col-status {
        text-align: center;
        width: 10% !important;
        min-width: 36px;
    }

    .requests-table tbody td.col-actions {
        width: 10% !important;
    }

    .requests-table td.col-status .badge {
        min-width: 0 !important;
        padding: 2px 5px;
        font-size: 10px;
        line-height: 1;
    }

    /* Chrome icône seule — tooltip ::after / .is-tooltip-open : ui_components.css */
    .requests-table td.col-status .badge-mobile-ready {
        position: relative;
        box-sizing: border-box;
        width: var(--stages-btn-icon-box, 28px) !important;
        min-width: var(--stages-btn-icon-box, 28px) !important;
        max-width: var(--stages-btn-icon-box, 28px);
        min-height: var(--stages-btn-icon-box, 28px);
        height: var(--stages-btn-icon-box, 28px);
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0;
        cursor: pointer;
        border-radius: var(--stages-badge-radius, 6px);
        line-height: 1;
    }

    .requests-table td.col-status .badge-mobile-ready .badge-status-text {
        display: none;
    }

    .requests-table td.col-status .badge-mobile-ready .badge-status-icon {
        display: inline-flex;
        font-size: 0.75rem;
        line-height: 1;
        margin-right: 0;
    }

    /* 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;
        justify-content: center;
        gap: 4px;
    }

    .link-icon {
        padding: 4px 6px;
        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);
}

/* (legacy bulk-student-item retiré — liste en tableau bulk-student-row) */

/* 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: 3rem;
    min-width: 3rem;
    max-width: 3rem;
    text-align: center;
}

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

/* 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: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: nowrap;
    width: 100%;
}

.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 — alignée sur l’annuaire (.companies-bulk-actions) */
.requests-bulk-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 14px;
    margin: 0 0 12px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(59, 130, 246, 0.28);
    background: rgba(37, 99, 235, 0.1);
}

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

.requests-bulk-actions-info {
    font-size: 13px;
    color: #dbeafe;
    font-weight: 600;
}

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

.requests-bulk-actions-buttons .btn,
.requests-bulk-actions-buttons .bulk-print-btn,
.requests-bulk-actions-buttons .bulk-clear-btn {
    text-decoration: none;
}

@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;
    }

    .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;
        box-sizing: border-box;
        min-width: 0;
        white-space: normal;
        overflow-wrap: anywhere;
        text-align: center;
    }
}

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

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

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

/* .empty-state* : canon dans ui_components.css */

/* Overview : CTA sous empty-state */
#overview-section .empty-state > .btn {
    margin-top: 8px;
}

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

.loading-indicator.active,
.loading-indicator[aria-busy="true"] {
    display: block;
}

.loading-indicator[hidden] {
    display: none !important;
}

.loading-indicator .stages-skel-list {
    max-width: 720px;
    margin: 0 auto;
}

/* 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)
   En-tête : dashboard-overview-header (ui_components.css)
   ============================================ */

/* Bandeau à faire */
.prof-overview-todo {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 14px;
}

.prof-overview-todo--action {
    border: 1px solid rgba(251, 191, 36, 0.45);
    background: rgba(251, 191, 36, 0.12);
    color: #fde68a;
}

.prof-overview-todo--action i {
    color: #fbbf24;
}

.prof-overview-todo--ok {
    border: 1px solid rgba(34, 197, 94, 0.35);
    background: rgba(34, 197, 94, 0.1);
    color: #bbf7d0;
    justify-content: flex-start;
    text-align: left;
}

.prof-overview-todo--ok i {
    color: #22c55e;
    margin-right: 0;
}

.prof-overview-todo--info {
    border: 1px solid rgba(59, 130, 246, 0.4);
    background: rgba(59, 130, 246, 0.12);
    color: #bfdbfe;
}

.prof-overview-todo--info i {
    color: #60a5fa;
}

.companies-offers-search {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    align-items: center;
}

.companies-offers-search input[type="search"] {
    flex: 1 1 14rem;
    min-width: 0;
}

.prof-offers-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.prof-offer-body {
    padding: 0 1.1rem 1.1rem;
}

.prof-offer-desc {
    margin: 0 0 0.65rem;
    white-space: pre-wrap;
    color: #cbd5e1;
    font-size: 0.92rem;
}

.prof-offer-facts {
    margin: 0;
    padding-left: 1.1rem;
    color: #94a3b8;
    font-size: 0.88rem;
}

.prof-offer-facts li {
    margin-bottom: 0.2rem;
}

.prof-overview-todo-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    text-align: left;
}

.prof-overview-todo-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

/* Pipeline cliquable */
.prof-overview-pipeline-card .form-card-header {
    align-items: center;
}

.prof-overview-pipeline-card .form-card-header-content {
    flex: 1;
    min-width: 0;
}

.prof-overview-pipeline-total-link {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(2, 6, 23, 0.45);
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.prof-overview-pipeline-total-link:hover {
    border-color: rgba(59, 130, 246, 0.45);
    background: rgba(59, 130, 246, 0.12);
}

.prof-overview-pipeline-total-value {
    font-size: 20px;
    font-weight: 700;
    color: #e5e7eb;
    line-height: 1.1;
}

.prof-overview-pipeline-total-label {
    font-size: 11px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.prof-overview-pipeline {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    padding: 0 16px 16px;
}

.prof-overview-pipeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 10px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.5);
    text-decoration: none;
    text-align: center;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.prof-overview-pipeline-step:hover {
    border-color: rgba(59, 130, 246, 0.45);
    background: rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

.prof-overview-pipeline-step.is-highlighted {
    border-color: rgba(251, 191, 36, 0.55);
    background: rgba(251, 191, 36, 0.12);
    box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.2);
}

.prof-overview-pipeline-step.is-empty {
    opacity: 0.65;
}

.prof-overview-pipeline-step-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.prof-overview-pipeline-step--pending .prof-overview-pipeline-step-icon {
    background: rgba(251, 191, 36, 0.18);
    color: #fbbf24;
}

.prof-overview-pipeline-step--submitted .prof-overview-pipeline-step-icon {
    background: rgba(14, 165, 233, 0.18);
    color: #38bdf8;
}

.prof-overview-pipeline-step--validated .prof-overview-pipeline-step-icon {
    background: rgba(34, 197, 94, 0.18);
    color: #4ade80;
}

.prof-overview-pipeline-step--rejected .prof-overview-pipeline-step-icon {
    background: rgba(239, 68, 68, 0.18);
    color: #f87171;
}

.prof-overview-pipeline-step-value {
    font-size: 22px;
    font-weight: 700;
    color: #e5e7eb;
    line-height: 1.1;
}

.prof-overview-pipeline-step-label {
    font-size: 12px;
    font-weight: 600;
    color: #cbd5e1;
    line-height: 1.25;
}

.prof-overview-pipeline-step-label-short {
    display: none;
    font-size: 11px;
    font-weight: 600;
    color: #cbd5e1;
}

.prof-overview-pipeline-hint {
    margin: 0 16px 16px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 12px;
    color: #94a3b8;
    background: rgba(148, 163, 184, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.15);
}

.prof-overview-pipeline-hint i {
    margin-right: 6px;
    color: #60a5fa;
}

/* Fiches à valider */
.prof-overview-pending-card .form-card-header {
    align-items: center;
}

.prof-overview-pending-card .form-card-header-content {
    flex: 1;
    min-width: 0;
}

.prof-overview-pending-card .prof-overview-pipeline-total-link {
    margin-left: auto;
}

.prof-overview-pending-empty {
    min-height: 0;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    flex-direction: row;
    gap: 12px;
    padding: 16px;
}

.prof-overview-pending-empty .empty-state-icon {
    font-size: 20px;
    margin-bottom: 0;
    flex-shrink: 0;
}

.prof-overview-pending-empty .empty-state-text {
    text-align: left;
}

.prof-overview-pending-more {
    margin: 0;
    padding: 12px 16px 16px;
    text-align: center;
    font-size: 13px;
}

.prof-overview-pending-more a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #93c5fd;
    text-decoration: none;
    font-weight: 600;
}

.prof-overview-pending-more a:hover {
    color: #bfdbfe;
}

.prof-overview-pending-row,
.prof-request-row-openable {
    cursor: pointer;
}

.prof-overview-pending-row:hover,
.prof-request-row-openable:hover {
    background: rgba(59, 130, 246, 0.12);
}

.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;
}

@media (max-width: 900px) {
    .prof-overview-pipeline {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .prof-overview-pipeline-step-label {
        display: none;
    }

    .prof-overview-pipeline-step-label-short {
        display: block;
    }

    .prof-overview-pipeline-card .form-card-header {
        flex-wrap: wrap;
    }

    .prof-overview-pipeline-total-link {
        margin-left: auto;
    }
}

/* ============================================
   PROF CREATE (modale Mes fiches / prof_create.php)
   ============================================ */

.prof-bulk-create-modal-overlay .prof-bulk-create-panel {
    margin-top: 0;
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.prof-bulk-create-panel {
    margin-top: 4px;
}

.bulk-create-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
}

/* Étapes visuelles (cliquables) */
.bulk-create-steps {
    display: flex;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 0 0 auto;
}

.bulk-create-step {
    flex: 1;
    min-width: 0;
}

.bulk-create-step-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.35);
    color: #94a3b8;
    font-size: 12px;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.bulk-create-step-btn:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.bulk-create-step-btn:not(:disabled):hover {
    border-color: rgba(148, 163, 184, 0.4);
    color: #e5e7eb;
}

.bulk-create-step-num {
    flex: 0 0 auto;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    background: rgba(148, 163, 184, 0.15);
    color: #cbd5e1;
}

.bulk-create-step.is-active .bulk-create-step-btn {
    border-color: rgba(59, 130, 246, 0.45);
    background: rgba(59, 130, 246, 0.1);
    color: #e5e7eb;
}

.bulk-create-step.is-active .bulk-create-step-num {
    background: rgba(59, 130, 246, 0.85);
    color: #fff;
}

.bulk-create-step.is-done .bulk-create-step-btn {
    border-color: rgba(34, 197, 94, 0.35);
    background: rgba(34, 197, 94, 0.08);
    color: #d1fae5;
}

.bulk-create-step.is-done .bulk-create-step-num {
    background: rgba(34, 197, 94, 0.85);
    color: #fff;
}

.bulk-create-step-label {
    font-weight: 600;
    line-height: 1.25;
}

/* Carrousel latéral (3 panneaux) */
.bulk-create-carousel {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    width: 100%;
}

.bulk-create-carousel-track {
    display: flex;
    width: 300%;
    height: 100%;
    transform: translateX(0);
    transition: transform 0.35s ease;
}

.bulk-create-carousel[data-bulk-slide="2"] .bulk-create-carousel-track {
    transform: translateX(-33.3333%);
}

.bulk-create-carousel[data-bulk-slide="3"] .bulk-create-carousel-track {
    transform: translateX(-66.6667%);
}

.bulk-create-slide {
    width: 33.3333%;
    flex-shrink: 0;
    box-sizing: border-box;
    height: 100%;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 2px 4px 2px 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

@media (prefers-reduced-motion: reduce) {
    .bulk-create-carousel-track {
        transition: none;
    }
}

.bulk-create-nav {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 40px;
}

.bulk-create-back-btn[hidden],
.bulk-create-next-btn[hidden] {
    display: none !important;
}

.bulk-create-next-btn {
    margin-left: auto;
}

/* Étape 1 — classe / périodes (layout wizard) */
.bulk-create-step1 {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
    padding: 4px 4px 0;
}

.bulk-create-step1-intro {
    text-align: center;
}

.bulk-create-step1-title {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 600;
    color: #e5e7eb;
}

.bulk-create-step1-hint {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    color: #94a3b8;
}

.bulk-create-step1-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px 14px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(15, 23, 42, 0.45));
}

.bulk-create-step1--single-class .bulk-create-step1-fields {
    gap: 12px;
}

.bulk-create-class-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid rgba(34, 197, 94, 0.35);
    background: rgba(34, 197, 94, 0.1);
    color: #d1fae5;
    font-size: 14px;
    font-weight: 600;
}

.bulk-create-class-pill i {
    color: #4ade80;
}

.bulk-create-class-select-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.bulk-create-field--class-fixed {
    position: relative;
}

.bulk-create-step1-status {
    padding: 12px 12px;
    gap: 4px;
}

.bulk-create-step1-status.is-ready {
    border-style: solid;
    border-color: rgba(34, 197, 94, 0.35);
    background: rgba(34, 197, 94, 0.08);
}

.bulk-create-step1-status.is-ready .bulk-create-placeholder-title {
    color: #d1fae5;
}

/* BC : ancienne grille 2 colonnes (mobile media query) */
.bulk-create-toolbar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(15, 23, 42, 0.45));
}

.bulk-create-field label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 600;
    color: #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.bulk-create-field label i {
    color: #60a5fa;
    font-size: 13px;
}

.bulk-create-field select {
    width: 100%;
    box-sizing: border-box;
    min-height: 42px;
    border-radius: 10px;
}

.bulk-create-field.filter-field--searchable .searchable-select-container {
    width: 100%;
}

.bulk-create-field.filter-field--searchable .searchable-select-trigger {
    height: 42px;
    min-height: 42px;
    max-height: 42px;
    border-radius: 10px;
    line-height: 40px;
    padding: 0 32px 0 14px;
    font-size: 14px;
}

.bulk-create-field.filter-field--searchable .searchable-select-trigger:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* Placeholder / statut étape 1 */
.bulk-create-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 28px 20px;
    text-align: center;
    border-radius: 12px;
    border: 1px dashed rgba(148, 163, 184, 0.28);
    background: rgba(15, 23, 42, 0.28);
}

.bulk-create-placeholder[hidden] {
    display: none !important;
}

.bulk-create-placeholder-icon {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.14);
    color: #60a5fa;
    font-size: 22px;
}

.bulk-create-placeholder-title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #e5e7eb;
}

.bulk-create-placeholder-text {
    margin: 0;
    max-width: 520px;
    font-size: 13px;
    line-height: 1.5;
    color: #94a3b8;
}

.bulk-create-alert {
    margin: 0;
}

.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;
    flex: 1 1 auto;
    min-height: 0;
    margin-top: 0;
    padding: 16px;
    background: rgba(15, 23, 42, 0.35);
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    flex-direction: column;
}

.bulk-students-list:not(.d-none) {
    display: flex;
}

.bulk-students-slide-empty[hidden] {
    display: none !important;
}

.bulk-students-toolbar {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
    padding: 0;
}

.bulk-students-toolbar-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: stretch;
    margin: 0;
    padding: 0;
}

.bulk-students-title {
    margin: 0;
    padding: 0;
    font-size: 14px;
    font-weight: 600;
    color: #e5e7eb;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.25;
}

.bulk-students-search-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 220px;
    margin: 0;
    padding: 0 12px;
    height: 40px;
    min-height: 40px;
    box-sizing: border-box;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(2, 6, 23, 0.45);
    color: #94a3b8;
}

.bulk-students-search {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    color: #e5e7eb;
    font-size: 13px;
    outline: none;
}

.bulk-students-search::placeholder {
    color: #64748b;
}

.bulk-students-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    align-items: center;
    flex: 0 1 auto;
    margin: 0;
    padding: 0;
    min-height: 40px;
}

.bulk-students-actions .btn.btn-sm {
    height: 40px;
    min-height: 40px;
    box-sizing: border-box;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1;
}

.bulk-students-table-wrap {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow: auto;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.15);
}

.bulk-students-table {
    margin: 0;
    border: none;
    border-radius: 0;
    background: transparent;
}

.bulk-students-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: rgba(2, 6, 23, 0.92);
}

.bulk-student-row {
    cursor: pointer;
    transition: background 0.15s ease;
}

.bulk-student-row.is-selected {
    background: rgba(59, 130, 246, 0.08);
}

.bulk-student-row:hover {
    background: rgba(59, 130, 246, 0.12);
}

.bulk-student-row.existing {
    opacity: 0.55;
}

.bulk-student-include-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    cursor: pointer;
}

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

.bulk-student-name {
    font-size: 13px;
    font-weight: 600;
    color: #e5e7eb;
}

.bulk-student-option {
    display: flex;
    align-items: center;
    justify-content: center;
}

.bulk-student-option label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    margin: 0;
    border-radius: 8px;
    cursor: pointer;
    color: #64748b;
    transition: background 0.15s ease, color 0.15s ease;
}

.bulk-student-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.bulk-student-option input[type="checkbox"]:checked + label {
    background: rgba(59, 130, 246, 0.18);
    color: #93c5fd;
}

.bulk-student-option input[type="checkbox"]:checked + label.text-warning,
.bulk-student-option input[type="checkbox"]:checked + label:has(.fa-birthday-cake) {
    background: rgba(251, 191, 36, 0.18);
    color: #fcd34d;
}

.bulk-student-option input[type="checkbox"]:checked + label:has(.fa-wheelchair) {
    background: rgba(59, 130, 246, 0.18);
    color: #93c5fd;
}

.bulk-students-empty-filter {
    margin: 10px 0 0;
    font-size: 12px;
    color: #94a3b8;
    text-align: center;
}

.bulk-students-empty-filter[hidden] {
    display: none !important;
}

/* Pied de page / étape 3 — récap centré */
.bulk-create-step3 {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
    padding: 4px 4px 0;
}

.bulk-create-step3-intro {
    text-align: center;
}

.bulk-create-step3-title {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 600;
    color: #e5e7eb;
}

.bulk-create-step3-hint {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    color: #94a3b8;
}

.bulk-create-recap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bulk-create-recap-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(15, 23, 42, 0.4);
}

.bulk-create-recap-icon {
    flex: 0 0 auto;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(148, 163, 184, 0.12);
    color: #93c5fd;
    font-size: 12px;
}

.bulk-create-recap-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bulk-create-recap-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #94a3b8;
}

.bulk-create-recap-value {
    font-size: 13px;
    font-weight: 600;
    color: #e5e7eb;
    line-height: 1.3;
    word-break: break-word;
}

.bulk-create-step3-note {
    margin: 0;
    text-align: center;
    font-size: 12px;
    line-height: 1.4;
    color: #94a3b8;
}

.bulk-create-step3 .bulk-create-summary-badge {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.bulk-create-step3-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bulk-create-step3-actions > .btn-primary {
    width: 100%;
    justify-content: center;
    min-height: 42px;
}

.bulk-create-actions-secondary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bulk-create-actions-secondary .btn {
    flex: 1 1 140px;
    justify-content: center;
}

/* Desktop : récap sans scroll (grille 3 colonnes + actions en ligne) */
@media (min-width: 769px) {
    .bulk-create-slide[data-bulk-slide-panel="1"],
    .bulk-create-slide[data-bulk-slide-panel="3"] {
        overflow-y: hidden;
        justify-content: center;
    }

    .bulk-create-step1 {
        gap: 12px;
        justify-content: center;
    }

    .bulk-create-step1-status {
        padding: 10px 12px;
    }

    .bulk-create-step3 {
        justify-content: center;
        gap: 12px;
        max-width: 640px;
    }

    .bulk-create-recap {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }

    .bulk-create-recap-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        min-height: 0;
        padding: 12px;
    }

    .bulk-create-step3-actions {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 8px;
    }

    .bulk-create-step3-actions > .btn-primary {
        width: auto;
        flex: 1 1 0;
        min-height: 40px;
    }

    .bulk-create-actions-secondary {
        flex: 1.4 1 0;
        flex-wrap: nowrap;
        min-width: 0;
    }

    .bulk-create-actions-secondary .btn {
        flex: 1 1 0;
        min-width: 0;
    }
}

/* BC footer layout (si réutilisé ailleurs) */
.bulk-create-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: auto 0;
    padding: 18px 16px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(2, 6, 23, 0.55);
}

.bulk-create-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1 1 240px;
}

.bulk-create-summary-badge {
    /* chrome : badges.css — layout only */
    flex: 0 0 auto;
}

.bulk-create-summary-badge[hidden] {
    display: none !important;
}

.bulk-create-summary-text {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    color: #cbd5e1;
}

.bulk-create-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.bulk-students-info {
    display: none;
}

.bulk-students-container {
    display: none;
}

.bulk-students-count {
    display: none;
}