.admin-space-panel {
            width: min(820px, 100%);
        }

        .admin-choice-list {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 1rem;
            margin: 1.35rem 0;
        }

        .admin-choice-card {
            display: flex;
            min-height: 220px;
            flex-direction: column;
            align-items: flex-start;
            justify-content: space-between;
            gap: 1rem;
            padding: 1.2rem;
            border: 1px solid rgba(48, 36, 58, 0.12);
            border-radius: 16px;
            background: linear-gradient(135deg, rgba(250, 204, 188, 0.24), rgba(255, 255, 255, 0.88));
            box-shadow: 0 16px 30px rgba(48, 36, 58, 0.08);
        }

        .admin-choice-card h2 {
            margin: 0 0 0.45rem;
            color: var(--aubergine);
            font-size: 1.15rem;
        }

        .admin-choice-card p {
            margin: 0;
            color: rgba(70, 65, 85, 0.82);
            line-height: 1.5;
        }

.overview-panel {
            width: min(1120px, 100%);
            overflow: visible;
        }

        .status-line {
            margin: 0 0 1rem;
            color: rgba(70, 65, 85, 0.82);
            line-height: 1.55;
        }

        .toolbar {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
            gap: 1rem;
            align-items: end;
            margin: 1.2rem 0;
        }

        .admin-tabs {
            position: sticky;
            top: 0.5rem;
            z-index: 30;
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 0.45rem;
            margin: 0 -1.1rem 1.2rem;
            padding: 0.75rem 1.1rem;
            border-radius: 0 0 16px 16px;
            border-bottom: 1px solid rgba(48, 36, 58, 0.12);
            background: rgba(250, 247, 251, 0.96);
            backdrop-filter: blur(12px);
        }

        .admin-tab {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 38px;
            padding: 0.55rem 0.95rem;
            border: 1px solid rgba(48, 36, 58, 0.14);
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.72);
            color: var(--prune-gris);
            font-size: 0.86rem;
            font-weight: 800;
            text-decoration: none;
        }

        .admin-tab.is-active {
            border-color: var(--aubergine);
            background: var(--aubergine);
            color: #fff;
        }

        .admin-refresh-tab {
            margin-left: auto;
            border-color: rgba(219, 141, 119, 0.42);
            background: rgba(250, 204, 188, 0.34);
            color: var(--aubergine);
        }

        .admin-filter-panel {
            padding: 1rem;
            border: 1px solid rgba(48, 36, 58, 0.12);
            border-radius: 14px;
            background: rgba(250, 204, 188, 0.12);
        }

        .dossier-search-panel {
            display: grid;
            grid-template-columns: minmax(240px, 1fr) auto;
            gap: 1rem;
            align-items: end;
            margin: 1.2rem 0;
            padding: 1rem;
            border: 1px solid rgba(48, 36, 58, 0.12);
            border-radius: 14px;
            background: rgba(216, 227, 229, 0.2);
        }

        .filter-actions {
            display: flex;
            align-items: end;
            min-height: 100%;
        }

        select {
            width: 100%;
            border-radius: 10px;
            border: 1px solid rgba(70, 65, 85, 0.2);
            padding: 0.68rem 0.72rem;
            font: inherit;
            background: #faf7fb;
            color: var(--prune-gris);
        }

        .report-grid {
            display: grid;
            gap: 1rem;
        }

        .metric,
        .report-card {
            min-width: 0;
            border: 1px solid rgba(48, 36, 58, 0.12);
            border-radius: 16px;
            padding: 1.1rem;
            background: rgba(255, 255, 255, 0.62);
        }

        .metric {
            background: rgba(250, 204, 188, 0.18);
        }

        .metric-label {
            margin: 0 0 0.35rem;
            font-size: 0.8rem;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            font-weight: 700;
            color: rgba(70, 65, 85, 0.78);
        }

        .metric-value {
            margin: 0;
            font-family: "Playfair Display", serif;
            font-size: clamp(2.4rem, 8vw, 4.2rem);
            line-height: 1;
            color: var(--aubergine);
        }

        .report-card h2 {
            margin: 0 0 1rem;
            font-family: "Playfair Display", serif;
            color: var(--aubergine);
            font-size: 1.25rem;
        }

        .report-card-head {
            display: flex;
            align-items: baseline;
            justify-content: space-between;
            gap: 1rem;
            margin-bottom: 1rem;
        }

        .report-card-head h2 {
            margin: 0;
        }

        .report-card-actions {
            display: inline-flex;
            align-items: center;
            justify-content: flex-end;
            gap: 0.65rem;
            flex-wrap: wrap;
        }

        .report-card-actions .btn-small {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
        }

        .result-count {
            color: rgba(70, 65, 85, 0.72);
            font-size: 0.86rem;
            font-weight: 700;
        }

        .dossier-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 1rem;
        }

        .dossier-main-card,
        .dossier-wide-card {
            grid-column: 1 / -1;
        }

        .dossier-responsibles-card {
            order: 1;
        }

        .dossier-payment-card {
            order: 2;
        }

        .dossier-comments-card {
            order: 3;
        }

        .dossier-wide-card {
            order: 4;
        }

        .detail-list {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 0.75rem 1rem;
            margin: 0;
        }

        .detail-list div {
            min-width: 0;
        }

        .detail-list .detail-list-wide {
            grid-column: 1 / -1;
        }

        .detail-list dt {
            margin: 0 0 0.18rem;
            color: rgba(70, 65, 85, 0.68);
            font-size: 0.75rem;
            font-weight: 800;
            letter-spacing: 0.08em;
            text-transform: uppercase;
        }

        .detail-list dd {
            margin: 0;
            color: var(--aubergine);
            font-weight: 650;
            overflow-wrap: anywhere;
        }

        .payment-total {
            color: var(--aubergine);
            font-size: 1.18rem;
            white-space: nowrap;
        }

        .payment-breakdown {
            display: grid;
            gap: 0.62rem;
        }

        .payment-breakdown-line {
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto;
            align-items: baseline;
            gap: 1rem;
            padding-bottom: 0.62rem;
            border-bottom: 1px solid rgba(48, 36, 58, 0.09);
            color: var(--aubergine);
        }

        .payment-breakdown-line span {
            min-width: 0;
            font-weight: 650;
            overflow-wrap: anywhere;
        }

        .payment-breakdown-line small {
            display: block;
            margin-top: 0.12rem;
            color: rgba(70, 65, 85, 0.68);
            font-weight: 600;
        }

        .payment-breakdown-line strong {
            font-weight: 800;
            white-space: nowrap;
        }

        .payment-breakdown-line.is-discount strong {
            color: #8c5a15;
        }

        .status-grid {
            display: flex;
            flex-wrap: wrap;
            gap: 0.45rem;
            margin-bottom: 1rem;
        }

        .dossier-list {
            display: grid;
            gap: 0.75rem;
        }

        .dossier-list-item {
            display: grid;
            gap: 0.25rem;
            padding: 0.75rem;
            border: 1px solid rgba(48, 36, 58, 0.1);
            border-radius: 12px;
            background: rgba(255, 255, 255, 0.58);
        }

        .dossier-list-item strong {
            color: var(--aubergine);
        }

        .dossier-list-item small {
            color: rgba(70, 65, 85, 0.74);
            overflow-wrap: anywhere;
        }

        .dossier-responsible-head {
            display: flex;
            align-items: baseline;
            justify-content: space-between;
            gap: 0.75rem;
        }

        .dossier-responsible-readonly {
            display: grid;
            gap: 0.25rem;
        }

        .dossier-edit-form {
            display: grid;
            gap: 0.9rem;
            margin-top: 0.3rem;
        }

        .dossier-edit-form[hidden],
        .dossier-readonly-hidden,
        .dossier-edit-field.is-hidden {
            display: none;
        }

        .dossier-edit-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 0.75rem 0.9rem;
        }

        .dossier-edit-field {
            display: grid;
            gap: 0.32rem;
            min-width: 0;
            color: rgba(70, 65, 85, 0.72);
            font-size: 0.76rem;
            font-weight: 800;
            letter-spacing: 0.06em;
            text-transform: uppercase;
        }

        .dossier-edit-field input,
        .dossier-edit-field select {
            width: 100%;
            min-width: 0;
            box-sizing: border-box;
            border: 1px solid rgba(48, 36, 58, 0.14);
            border-radius: 10px;
            padding: 0.62rem 0.7rem;
            background: rgba(255, 255, 255, 0.78);
            color: var(--aubergine);
            font: inherit;
            font-size: 0.92rem;
            font-weight: 650;
            letter-spacing: 0;
            text-transform: none;
        }

        .dossier-edit-field input:focus,
        .dossier-edit-field select:focus {
            outline: 3px solid rgba(79, 143, 202, 0.18);
            border-color: rgba(79, 143, 202, 0.5);
        }

        .dossier-edit-wide {
            grid-column: 1 / -1;
        }

        .dossier-edit-actions {
            display: flex;
            justify-content: flex-end;
            gap: 0.65rem;
            flex-wrap: wrap;
        }

        .dossier-comment {
            margin: 0;
            padding: 0.85rem;
            min-height: 5.2rem;
            border: 1px solid rgba(48, 36, 58, 0.1);
            border-radius: 12px;
            background: rgba(255, 255, 255, 0.58);
            color: var(--aubergine);
            font-weight: 650;
            line-height: 1.55;
            overflow-wrap: anywhere;
        }

        .dossier-comment-form {
            display: grid;
            gap: 0.8rem;
        }

        .dossier-comment-input {
            width: 100%;
            min-height: 7.5rem;
            box-sizing: border-box;
            resize: vertical;
            border: 1px solid rgba(48, 36, 58, 0.14);
            border-radius: 12px;
            padding: 0.85rem;
            background: rgba(255, 255, 255, 0.72);
            color: var(--aubergine);
            font: inherit;
            font-weight: 650;
            line-height: 1.55;
        }

        .dossier-comment-input:focus {
            outline: 3px solid rgba(79, 143, 202, 0.18);
            border-color: rgba(79, 143, 202, 0.5);
        }

        .bar-list {
            display: grid;
            gap: 0.7rem;
            width: min(100%, 980px);
        }

        .bar-row {
            display: grid;
            grid-template-columns: minmax(120px, 220px) minmax(0, 1fr) 42px;
            gap: 0.8rem;
            align-items: center;
            min-width: 0;
        }

        .bar-label,
        .course-title {
            font-weight: 700;
            color: var(--aubergine);
        }

        .bar-track,
        .gauge-track {
            position: relative;
            height: 14px;
            min-width: 0;
            border-radius: 999px;
            background: rgba(48, 36, 58, 0.12);
            overflow: hidden;
        }

        .bar-fill,
        .gauge-fill {
            height: 100%;
            border-radius: 999px;
            background: linear-gradient(135deg, var(--saumon-clair), var(--saumon));
        }

        .bar-total {
            text-align: right;
            font-weight: 700;
        }

        .age-plot {
            display: grid;
            grid-template-columns: 38px minmax(0, 1fr);
            grid-template-rows: 220px auto auto;
            column-gap: 0.7rem;
            row-gap: 0.32rem;
            width: min(100%, 980px);
            min-width: 0;
            padding-top: 0.25rem;
        }

        .age-y-axis {
            display: grid;
            grid-template-rows: repeat(3, 1fr);
            align-items: start;
            justify-items: end;
            color: var(--prune-gris);
            font-size: 0.78rem;
            font-weight: 700;
            line-height: 1;
        }

        .age-y-axis span:nth-child(2) {
            align-self: center;
        }

        .age-y-axis span:last-child {
            align-self: end;
        }

        .age-chart {
            position: relative;
            display: grid;
            grid-template-columns: repeat(78, minmax(0, 1fr));
            gap: clamp(0.06rem, 0.24vw, 0.22rem);
            align-items: end;
            min-width: 0;
            height: 220px;
            padding: 0 0.25rem;
            border-left: 2px solid rgba(48, 36, 58, 0.32);
            border-bottom: 2px solid rgba(48, 36, 58, 0.32);
            background:
                linear-gradient(to bottom, rgba(48, 36, 58, 0.08) 1px, transparent 1px) 0 0 / 100% 50%,
                linear-gradient(to bottom, transparent calc(100% - 1px), rgba(48, 36, 58, 0.08) calc(100% - 1px));
        }

        .age-bar {
            display: flex;
            align-items: end;
            justify-content: center;
            min-width: 0;
            height: 100%;
            cursor: help;
        }

        .age-column {
            width: min(100%, 30px);
            height: var(--bar-height);
            border-radius: 8px 8px 3px 3px;
            background: linear-gradient(180deg, var(--saumon), var(--saumon-clair));
        }

        .age-bar:not(.is-empty) .age-column {
            min-height: 4px;
        }

        .age-bar.is-empty .age-column {
            opacity: 0;
        }

        .age-x-ticks {
            grid-column: 2;
            display: grid;
            grid-template-columns: repeat(78, minmax(0, 1fr));
            gap: clamp(0.06rem, 0.24vw, 0.22rem);
            color: var(--prune-gris);
            font-size: 0.72rem;
            font-weight: 700;
            line-height: 1;
        }

        .age-x-ticks span {
            min-width: 0;
            text-align: center;
        }

        .age-x-ticks .is-visible::before {
            content: "";
            display: block;
            width: 1px;
            height: 6px;
            margin: -0.32rem auto 0.25rem;
            background: rgba(48, 36, 58, 0.32);
        }

        .age-x-axis {
            grid-column: 2;
            text-align: center;
            font-size: 0.78rem;
            font-weight: 700;
            color: var(--prune-gris);
        }

        .age-kpis {
            display: flex;
            flex-wrap: wrap;
            gap: 0.65rem 1rem;
            margin-top: 0.95rem;
            color: var(--prune-gris);
        }

        .age-kpis p {
            margin: 0;
            font-size: 0.88rem;
            font-weight: 700;
        }

        .age-kpis span {
            margin-right: 0.35rem;
            color: rgba(70, 65, 85, 0.72);
        }

        .age-kpis strong {
            color: var(--aubergine);
        }

        .course-list {
            display: grid;
            gap: 0.85rem;
        }

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

        .student-table th,
        .student-table td {
            padding: 0.72rem 0.65rem;
            border-bottom: 1px solid rgba(48, 36, 58, 0.1);
            text-align: left;
            vertical-align: top;
        }

        .student-table th {
            font-size: 0.76rem;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: rgba(70, 65, 85, 0.74);
        }

        .admin-student-summary-row {
            cursor: pointer;
            transition: background 0.18s ease, box-shadow 0.18s ease;
        }

        .admin-student-summary-row:hover,
        .admin-student-summary-row:focus-visible,
        .admin-student-summary-row.is-expanded {
            background: rgba(250, 204, 188, 0.18);
            outline: none;
        }

        .admin-student-summary-row td:first-child strong::before {
            content: "+";
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 1.25rem;
            height: 1.25rem;
            margin-right: 0.4rem;
            border-radius: 50%;
            background: rgba(48, 36, 58, 0.1);
            color: var(--aubergine);
            font-weight: 800;
        }

        .admin-student-summary-row.is-expanded td:first-child strong::before {
            content: "-";
        }

        .admin-student-detail-row > td {
            padding: 0;
            background: rgba(255, 255, 255, 0.5);
        }

        .admin-student-detail-panel {
            margin: 0.2rem 0 1rem;
            padding: 1rem;
            border: 1px solid rgba(48, 36, 58, 0.12);
            border-radius: 12px;
            background: rgba(255, 255, 255, 0.74);
        }

        .admin-detail-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
            margin-bottom: 0.85rem;
        }

        .admin-detail-head h3 {
            margin: 0;
            font-family: "Playfair Display", serif;
            color: var(--aubergine);
        }

        .admin-detail-head .btn-small {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
        }

        .admin-course-detail-table {
            width: 100%;
            border-collapse: collapse;
        }

        .admin-course-detail-table th,
        .admin-course-detail-table td {
            padding: 0.62rem 0.55rem;
            border-bottom: 1px solid rgba(48, 36, 58, 0.1);
            text-align: left;
            vertical-align: top;
        }

        .admin-course-detail-table th {
            font-size: 0.72rem;
            text-transform: uppercase;
            letter-spacing: 0.07em;
            color: rgba(70, 65, 85, 0.74);
        }

        .document-link {
            font-weight: 700;
            color: var(--aubergine);
        }

        .course-row {
            position: relative;
            display: grid;
            grid-template-columns: minmax(230px, 1.2fr) minmax(260px, 1fr);
            gap: 1rem;
            align-items: center;
            border: 1px solid rgba(48, 36, 58, 0.1);
            border-radius: 14px;
            padding: 1rem;
            background: rgba(255, 255, 255, 0.64);
        }

        .course-details {
            position: relative;
            display: block;
        }

        .course-summary {
            display: grid;
            grid-template-columns: minmax(230px, 1.2fr) minmax(260px, 1fr);
            gap: 1rem;
            align-items: center;
            cursor: pointer;
            list-style: none;
        }

        .course-summary::-webkit-details-marker {
            display: none;
        }

        .course-summary::after {
            content: "+";
            position: absolute;
            right: 1rem;
            top: 0.85rem;
            font-weight: 800;
            color: var(--aubergine);
        }

        .course-details[open] .course-summary::after {
            content: "-";
        }

        .course-meta {
            margin: 0.3rem 0 0;
            font-size: 0.88rem;
            color: rgba(70, 65, 85, 0.78);
        }

        .gauge-head {
            display: flex;
            justify-content: space-between;
            gap: 1rem;
            margin-bottom: 0.45rem;
            font-weight: 700;
        }

        .status-pill {
            display: inline-block;
            border-radius: 999px;
            padding: 0.18rem 0.55rem;
            font-size: 0.76rem;
            text-transform: uppercase;
            letter-spacing: 0.08em;
        }

        .status-pill.is-ok {
            background: rgba(79, 159, 104, 0.16);
            color: #25623d;
        }

        .status-pill.is-alert {
            background: rgba(217, 92, 92, 0.14);
            color: #8b3434;
        }

        .status-pill.is-info {
            background: rgba(79, 143, 202, 0.16);
            color: #285d8f;
        }

        .status-pill.is-progress {
            background: rgba(74, 175, 156, 0.16);
            color: #247466;
        }

        .status-pill.is-option-danse {
            background: linear-gradient(135deg, #8a6418 0%, #f5d77a 38%, #fff2b8 52%, #d6a83f 76%, #7b5512 100%);
            color: #3b2a08;
            font-weight: 700;
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 1px 3px rgba(92, 62, 12, 0.22);
        }

        .is-low .status-pill,
        .is-low .gauge-fill {
            background: #d95c5c;
            color: #fff;
        }

        .is-open .status-pill,
        .is-open .gauge-fill {
            background: #4f8fca;
            color: #fff;
        }

        .is-full .status-pill,
        .is-full .gauge-fill {
            background: #4f9f68;
            color: #fff;
        }

        .gauge-track {
            overflow: visible;
        }

        .gauge-marker {
            position: absolute;
            top: -5px;
            width: 2px;
            height: 24px;
            background: var(--aubergine);
        }

        .gauge-marker span {
            position: absolute;
            top: 26px;
            left: 50%;
            transform: translateX(-50%);
            font-size: 0.68rem;
            white-space: nowrap;
            color: rgba(48, 36, 58, 0.7);
        }

        .course-capacity-controls {
            display: flex;
            flex-wrap: wrap;
            gap: 0.7rem;
            margin-top: 1rem;
            padding-top: 0.85rem;
            border-top: 1px solid rgba(48, 36, 58, 0.1);
        }

        .capacity-control {
            display: inline-grid;
            grid-template-columns: auto 30px 34px 30px;
            gap: 0.35rem;
            align-items: center;
            padding: 0.35rem 0.5rem;
            border: 1px solid rgba(48, 36, 58, 0.12);
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.7);
        }

        .capacity-control span {
            font-size: 0.78rem;
            font-weight: 800;
            color: rgba(70, 65, 85, 0.74);
        }

        .capacity-control strong {
            text-align: center;
            color: var(--aubergine);
        }

        .capacity-step {
            width: 30px;
            height: 30px;
            border: 0;
            border-radius: 50%;
            background: rgba(48, 36, 58, 0.1);
            color: var(--aubergine);
            font: inherit;
            font-weight: 900;
            line-height: 1;
            cursor: pointer;
        }

        .capacity-step:hover,
        .capacity-step:focus-visible {
            background: var(--aubergine);
            color: #fff;
        }

        .capacity-step:disabled {
            cursor: default;
            opacity: 0.35;
        }

        .capacity-step:disabled:hover,
        .capacity-step:disabled:focus-visible {
            background: rgba(48, 36, 58, 0.1);
            color: var(--aubergine);
        }

        .capacity-save {
            align-self: center;
        }

        .capacity-save:disabled {
            cursor: default;
            opacity: 0.45;
        }

        .course-student-list {
            margin-top: 1rem;
            padding-top: 0.85rem;
            border-top: 1px solid rgba(48, 36, 58, 0.1);
        }

        .course-student-row {
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto auto;
            gap: 0.7rem;
            align-items: center;
            padding: 0.55rem 0;
            border-bottom: 1px solid rgba(48, 36, 58, 0.08);
        }

        .course-student-row:last-child {
            border-bottom: 0;
        }

        .course-student-name {
            font-weight: 800;
            color: var(--aubergine);
        }

        .course-student-name span {
            margin-left: 0.45rem;
            font-size: 0.8rem;
            font-weight: 700;
            color: rgba(70, 65, 85, 0.72);
        }

        .status-toggle {
            appearance: none;
            border: 0;
            border-radius: 999px;
            padding: 0.34rem 0.65rem;
            font: inherit;
            font-size: 0.76rem;
            font-weight: 800;
            cursor: pointer;
        }

        .status-toggle.is-muted {
            background: rgba(70, 65, 85, 0.16);
            color: rgba(70, 65, 85, 0.68);
        }

        .status-toggle.is-confirmed.is-active {
            background: #4f9f68;
            color: #fff;
        }

        .status-toggle.is-waiting.is-active {
            background: #4f8fca;
            color: #fff;
        }

        .status-toggle:disabled {
            cursor: default;
        }

        .course-refresh-actions {
            display: flex;
            justify-content: flex-end;
            margin-top: 0.85rem;
        }

        .course-student-list.is-dirty .btn-small {
            box-shadow: 0 0 0 3px rgba(79, 143, 202, 0.16);
        }

        .dossier-course-edit-only {
            display: none;
        }

        .is-editing .dossier-course-edit-only {
            display: table-cell;
        }

        .dossier-course-edit-only-table,
        .dossier-course-edit-table tr.is-cancelled-course {
            display: none;
        }

        .is-editing .dossier-active-empty {
            display: none;
        }

        .is-editing .dossier-course-edit-only-table {
            display: table;
        }

        .is-editing .dossier-course-edit-table tr.is-cancelled-course {
            display: table-row;
        }

        .dossier-course-edit-table tr.is-marked-for-removal td {
            opacity: 0.24;
            filter: grayscale(1);
            background: rgba(255, 255, 255, 0.24);
            text-decoration: line-through;
        }

        .dossier-course-edit-table tr.is-cancelled-course td {
            background: rgba(70, 65, 85, 0.045);
        }

        .dossier-course-edit-table tr.is-marked-for-reactivation td {
            background: rgba(79, 159, 104, 0.1);
        }

        .dossier-payment-edit {
            display: none;
            min-width: 150px;
            margin-top: 0.25rem;
            padding: 0.45rem 0.5rem;
            font-size: 0.82rem;
        }

        .is-editing .dossier-payment-readonly {
            display: none;
        }

        .is-editing .dossier-payment-edit {
            display: block;
        }

        .course-unregister-toggle,
        .course-reactivate-toggle,
        .course-new-remove {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.35rem;
            border: 1px solid rgba(194, 59, 59, 0.22);
            border-radius: 999px;
            padding: 0.35rem 0.6rem;
            background: rgba(217, 92, 92, 0.1);
            color: #8b3434;
            font: inherit;
            font-size: 0.78rem;
            font-weight: 800;
            cursor: pointer;
        }

        .course-unregister-toggle span,
        .course-reactivate-toggle span,
        .course-new-remove {
            font-size: 1rem;
            line-height: 1;
        }

        .course-unregister-toggle.is-active {
            background: #8b3434;
            color: #fff;
        }

        .course-reactivate-toggle {
            border-color: rgba(79, 159, 104, 0.28);
            background: rgba(79, 159, 104, 0.12);
            color: #25623d;
        }

        .course-reactivate-toggle.is-active {
            background: #4f9f68;
            color: #fff;
        }

        .dossier-new-courses {
            display: grid;
            gap: 0.75rem;
            margin-top: 1rem;
        }

        .dossier-new-course {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
            gap: 0.75rem;
            align-items: end;
            padding: 0.8rem;
            border: 1px solid rgba(48, 36, 58, 0.12);
            border-radius: 12px;
            background: rgba(216, 227, 229, 0.18);
        }

        .dossier-course-edit-actions {
            display: flex;
            justify-content: flex-end;
            gap: 0.7rem;
            flex-wrap: wrap;
            margin-top: 1rem;
        }

        .dossier-course-edit-actions[hidden] {
            display: none;
        }

        .admin-dialog {
            width: min(560px, calc(100vw - 2rem));
            border: 0;
            border-radius: 14px;
            padding: 1.2rem;
            color: var(--prune-gris);
            background: #fff;
            box-shadow: 0 24px 80px rgba(48, 36, 58, 0.26);
        }

        .admin-dialog::backdrop {
            background: rgba(31, 24, 39, 0.42);
        }

        .admin-dialog h2 {
            margin: 0 0 0.7rem;
            font-family: "Playfair Display", serif;
            color: var(--aubergine);
            font-size: 1.35rem;
        }

        .admin-dialog p {
            line-height: 1.55;
        }

        .admin-dialog-list {
            margin: 0.35rem 0 0;
            padding-left: 1.2rem;
            line-height: 1.6;
        }

        .admin-dialog-actions {
            display: flex;
            justify-content: flex-end;
            gap: 0.7rem;
            flex-wrap: wrap;
            margin-top: 1rem;
        }

        .dossier-change-summary-title {
            margin: 0.8rem 0 0.25rem;
            font-weight: 800;
        }

        .dossier-change-summary ul {
            margin: 0;
            padding-left: 1.2rem;
        }

        .empty-state {
            margin: 0;
            color: rgba(70, 65, 85, 0.75);
        }

        .admin-message {
            border-radius: 10px;
            padding: 0.75rem 0.9rem;
            margin: 0 0 1rem;
            font-weight: 700;
        }

        .admin-message.is-success {
            color: #25623d;
            background: rgba(79, 159, 104, 0.14);
        }

        .admin-message.is-error {
            color: #8b3434;
            background: rgba(217, 92, 92, 0.14);
        }

        .waiting-list {
            margin-top: 0.9rem;
            padding-top: 0.85rem;
            border-top: 1px solid rgba(48, 36, 58, 0.1);
        }

        .waiting-list-title {
            margin: 0 0 0.55rem;
            font-size: 0.82rem;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            font-weight: 700;
            color: rgba(70, 65, 85, 0.74);
        }

        .waiting-row {
            display: grid;
            grid-template-columns: 42px minmax(0, 1fr) auto;
            gap: 0.7rem;
            align-items: center;
            padding: 0.48rem 0;
            border-bottom: 1px solid rgba(48, 36, 58, 0.08);
        }

        .waiting-row:last-child {
            border-bottom: 0;
        }

        .waiting-position {
            font-weight: 700;
            color: var(--aubergine);
        }

        .waiting-name {
            font-weight: 700;
            color: var(--aubergine);
        }

        .waiting-contact {
            display: block;
            font-size: 0.78rem;
            color: rgba(70, 65, 85, 0.78);
        }

        .inline-form {
            margin: 0;
        }

        .btn-small {
            appearance: none;
            border: 1px solid var(--aubergine);
            border-radius: 999px;
            background: var(--aubergine);
            color: #fff;
            font: inherit;
            font-size: 0.78rem;
            font-weight: 700;
            padding: 0.42rem 0.72rem;
            cursor: pointer;
        }

        .btn-small:disabled {
            cursor: not-allowed;
            opacity: 0.48;
        }

        @media (max-width: 760px) {
            .admin-choice-list,
            .toolbar,
            .dossier-search-panel,
            .dossier-grid,
            .detail-list,
            .dossier-edit-grid,
            .bar-row,
            .course-row,
            .course-summary,
            .course-student-row,
            .dossier-new-course {
                grid-template-columns: 1fr;
            }

            .bar-total {
                text-align: left;
            }

            .admin-refresh-tab {
                margin-left: 0;
            }

            .student-table,
            .student-table tbody,
            .student-table tr,
            .student-table td,
            .admin-course-detail-table,
            .admin-course-detail-table tbody,
            .admin-course-detail-table tr,
            .admin-course-detail-table td {
                display: block;
            }

            .student-table thead,
            .admin-course-detail-table thead {
                display: none;
            }

            .student-table tr,
            .admin-course-detail-table tr {
                padding: 0.8rem 0;
                border-bottom: 1px solid rgba(48, 36, 58, 0.1);
            }

            .student-table td,
            .admin-course-detail-table td {
                border-bottom: 0;
                padding: 0.24rem 0;
            }

            .student-table td::before,
            .admin-course-detail-table td::before {
                content: attr(data-label) " : ";
                font-weight: 700;
                color: var(--aubergine);
            }

            .admin-student-detail-row > td::before {
                content: "";
            }

            .admin-detail-head {
                align-items: flex-start;
                flex-direction: column;
            }

            .waiting-row {
                grid-template-columns: 1fr;
                gap: 0.35rem;
            }

            .dossier-course-edit-only-table,
            .dossier-course-edit-table tr.is-cancelled-course {
                display: none;
            }

            .is-editing .dossier-course-edit-only-table,
            .is-editing .dossier-course-edit-table tr.is-cancelled-course {
                display: block;
            }
        }
