/* ================================
   Transmissions Cordia - CSS Pro 2025
   Version CLEAN & OPTIMISÃ‰E (Option C)
   ================================= */

/* ---- RESET ---- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    background: #eef3f9;
    color: #1b2838;
}

/* ========================================
   HEADER
======================================== */

.header {
    background: #005b96;
    color: #fff;
    padding: 12px 34px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-content .logo {
    height: 52px;
}

.header-content h1 {
    font-size: 1.9rem;
    font-weight: 600;
}

.navbar {
    display: flex;
    gap: 10px;
}

.navbar button {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
}

.navbar button:hover {
    background: #0069d9;
}

.btn-astreinte-shortcut {
    background: #e7edf3;
    color: #263746;
    border: 1px solid #c5d0da;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
}

.btn-astreinte-shortcut:hover {
    background: #dce5ec;
}

.astreinte-page-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.astreinte-create-button {
    white-space: nowrap;
}

/* ========================================
   MAIN CARD
======================================== */

.main-content {
    width: 92%;
    max-width: 1300px;
    margin: 30px auto;
    padding: 25px 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
}

/* ========================================
   TITRES
======================================== */

h2 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 18px;
    color: #005b96;
}

/* ========================================
   FORMULAIRES PROFESSIONNELS MODERNES
======================================== */

.form-pro {
    max-width: 650px;
    margin: 20px auto;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 22px 26px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.row {
    display: flex;
    gap: 20px;
}

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

.field label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}

.field input,
.field select {
    height: 36px;
    padding: 6px 10px;
    font-size: 14px;
    border: 1px solid #bbb;
    border-radius: 5px;
}

/* Checkbox */
.checkbox-line {
    margin-top: 5px;
}

.checkbox-line label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-line input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #0066cc;
}

/* Boutons */
.btn-line {
    display: flex;
    justify-content: flex-end;
    gap: 14px;
    margin-top: 10px;
}

.btn-save,
.btn-cancel {
    padding: 8px 18px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    border: none;
}

.btn-save {
    background: #0066cc;
    color: white;
}

.btn-save:hover {
    background: #0052a1;
}

.btn-cancel {
    background: #ddd;
    color: #333;
    text-decoration: none;
}

.btn-cancel:hover {
    background: #ccc;
}

/* ========================================
   TABLEAUX
======================================== */

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

table th {
    background: #007bff;
    color: white;
    padding: 10px;
    font-size: 0.95rem;
}

table td {
    padding: 8px 10px;
    border-bottom: 1px solid #e5e5e5;
}

table tr:nth-child(even) {
    background: #f7f9fc;
}

table tr:hover {
    background: #eaf3ff;
}

table a {
    color: #007bff;
    text-decoration: none;
}

table a:hover {
    text-decoration: underline;
}

/* ========================================
   LOGIN (isolÃ© et protÃ©gÃ©)
======================================== */

body.login-body {
    background: #f5f7fa;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

.login-container {
    width: 100%;
    max-width: 360px;
}

.login-card {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    text-align: center;
}

.login-logo {
    width: 90px;
    margin-bottom: 8px;
}

.login-title {
    font-size: 22px;
    margin-bottom: 20px;
    font-weight: 700;
}

.login-card .form-group {
    text-align: left;
    margin-bottom: 15px;
}

.login-card label {
    font-size: 14px;
    font-weight: 600;
}

.login-card input,
.login-card select {
    width: 100%;
    height: 34px !important;
    padding: 6px 10px !important;
    border: 1px solid #bbb !important;
    border-radius: 4px !important;
    font-size: 14px !important;
}

.login-btn {
    width: 100%;
    padding: 9px 0;
    font-size: 15px;
    font-weight: 600;
    border-radius: 5px;
    background: #0066cc;
    color: white;
    border: none;
    cursor: pointer;
    margin-top: 10px;
}

.login-btn:hover {
    background: #0052a1;
}

.alert-danger {
    background: #ffd6d6;
    padding: 8px 10px;
    border-radius: 5px;
    margin-top: 12px;
    font-size: 14px;
    color: #a50000;
}


/* ========================================
   FLASH MESSAGES & FOOTER
======================================== */

.flash-container {
    margin-bottom: 15px;
}

.flash {
    padding: 8px 12px;
    border-radius: 5px;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.flash.success { background: #e3f6e8; color: #22693a; }
.flash.warning { background: #fff4d6; color: #8a6d1b; }
.flash.danger  { background: #ffe3e3; color: #a12222; }

.footer {
    text-align: center;
    font-size: 0.85rem;
    color: #777;
    margin: 10px 0 5px;
}

/* ========================================
   GENERIC CARD
======================================== */

.card {
    background: #ffffff;
    border-radius: 10px;
    padding: 18px 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

/* ========================================
   BUTTONS (GENERIC)
======================================== */

.btn,
.btn-small {
    display: inline-block;
    background: #007bff;
    color: #fff;
    border-radius: 5px;
    border: none;
    font-size: 0.9rem;
    padding: 7px 14px;
    cursor: pointer;
    text-decoration: none;
}

.btn:hover,
.btn-small:hover {
    background: #0069d9;
}

/* Version plus petite pour les liens Modifier */
.btn-small {
    padding: 4px 10px;
    font-size: 0.85rem;
}

/* ========================================
   TABLEAUX SPÃ‰CIFIQUES (search.html)
======================================== */

.styled-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.styled-table thead tr {
    background-color: #e6e6e6;
    border-bottom: 2px solid #000;
}

.styled-table th,
.styled-table td {
    border: 1px solid #000;
    padding: 6px 8px;
    vertical-align: top;
}

.styled-table tbody tr:nth-child(even) {
    background-color: #f7f7f7;
}

.styled-table td.col-texte,
td.col-texte {
    white-space: pre-wrap;
}

/* ========================================
   PAGE ACCUEIL - TABLEAU DE BORD
======================================== */

.page-title,
.results-title {
    margin-top: 10px;
    margin-bottom: 10px;
}

.meteo-niort {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 10px;
    border: 1px solid #dbe4ee;
    border-radius: 6px;
    background: #f7fafc;
    color: #314255;
    font-size: 0.9rem;
    font-weight: 600;
    margin-left: auto;
    margin-right: 14px;
    white-space: nowrap;
}

.meteo-icon {
    font-size: 1.1rem;
    line-height: 1;
}

/* ========================================
   PAGE STATISTIQUES
======================================== */

.stats-filter {
    margin-bottom: 18px;
}

.stats-filter form {
    display: flex;
    align-items: end;
    gap: 14px;
    flex-wrap: wrap;
}

.stats-filter label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.9rem;
    font-weight: 600;
}

.stats-filter input[type="date"] {
    padding: 7px 10px;
    border: 1px solid #cfd8dc;
    border-radius: 5px;
    font-size: 0.95rem;
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.stat-card {
    border: 1px solid #d9e2ec;
    border-radius: 8px;
    padding: 14px 16px;
    background: #f8fbfe;
}

.stat-label {
    display: block;
    color: #526273;
    font-size: 0.88rem;
    margin-bottom: 4px;
}

.stat-card strong {
    color: #005b96;
    font-size: 1.8rem;
}

.stats-charts-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
}

.stats-chart h3 {
    margin-bottom: 12px;
    color: #005b96;
    text-align: center;
}

.pie-wrap {
    display: flex;
    justify-content: center;
    padding: 10px 0 4px;
}

.pie-chart {
    width: min(360px, 100%);
    aspect-ratio: 1;
    border-radius: 50%;
    margin: 8px auto;
    border: 1px solid #d9e2ec;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.pie-chart-labeled {
    position: relative;
}

.pie-slice-label {
    position: absolute;
    transform: translate(-50%, -50%);
    max-width: 92px;
    padding: 3px 6px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.88);
    color: #1f2d3d;
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.14);
}

.pie-slice-label strong {
    color: #005b96;
}

.legend-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.pie-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px 12px;
    margin-top: 12px;
    font-size: 0.88rem;
}

.pie-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #314255;
    white-space: nowrap;
}

.pie-legend-item strong {
    color: #005b96;
}

.empty-stat {
    color: #64748b;
    font-style: italic;
}

@media (max-width: 800px) {
    .stats-cards,
    .stats-charts-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   FORMULAIRE DE RECHERCHE (search.html)
======================================== */

.search-container {
    max-width: 1100px;
    margin: 0 auto 20px auto;
}

#search-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.search-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px 20px;
}

.search-grid label {
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
    font-weight: 600;
}

.search-grid label span {
    margin-bottom: 4px;
}

.search-grid select,
.search-grid input[type="text"],
.search-grid input[type="date"] {
    padding: 7px 10px;
    border-radius: 5px;
    border: 1px solid #cfd8dc;
    font-size: 0.9rem;
}

/* Champ Mots-clÃ©s sur toute la largeur */
.search-grid .full {
    grid-column: 1 / -1;
}

/* Case Ã  cocher "Important" alignÃ©e proprement */
.important-container {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

/* Boutons Rechercher / PDF */
.search-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 8px;
}

/* ========================================
   FORMULAIRE DE SAISIE (saisie.html)
======================================== */

.form-transmission {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px 22px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.transmission-section {
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
}

.transmission-create-section {
    background: #f4f8fc;
    border-left: 5px solid #4c86b4;
}

.transmission-search-section {
    background: #f7f7f5;
    border-left: 5px solid #8a969f;
}

.section-heading {
    margin-bottom: 14px;
}

.section-heading h3 {
    color: #24445d;
    margin: 0 0 4px;
}

.section-heading p {
    color: #65727c;
    font-size: .9rem;
}

.badge-astreinte {
    display: inline-block;
    background: #e7edf3;
    color: #34495a;
    border: 1px solid #c5d0da;
    padding: 3px 7px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
}

/* Ligne de 2 colonnes */
.form-transmission > label {
    display: flex;
    flex-direction: column;
    font-size: 0.95rem;
    font-weight: 600;
}

.form-transmission > label input,
.form-transmission > label select {
    margin-top: 4px;
    height: 36px;
    padding: 6px 10px;
    border-radius: 5px;
    border: 1px solid #cfd8dc;
    font-size: 0.9rem;
}

/* Groupe DurÃ©e + Important */
.form-transmission .line-inline {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 4px;
}

.form-transmission .line-inline .field-inline {
    display: flex;
    flex-direction: column;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-transmission .line-inline .field-inline input[type="number"] {
    margin-top: 4px;
    width: 90px;
    height: 32px;
    padding: 4px 8px;
    border-radius: 5px;
    border: 1px solid #cfd8dc;
    font-size: 0.9rem;
}

/* Case Ã  cocher Important dans la ligne */
.form-transmission .line-inline .check-inline {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 18px;
}

.form-transmission .line-inline .check-inline input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #d9534f;
}

/* Zone de texte */
.form-transmission textarea[name="texte"] {
    margin-top: 4px;
    min-height: 220px;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #cfd8dc;
    font-size: 0.95rem;
    resize: vertical;
}

.attachment-field input[type="file"] {
    margin-top: 6px;
    padding: 9px;
    border: 1px dashed #9aabba;
    border-radius: 6px;
    background: #f7fafc;
}

.attachment-field small {
    margin-top: 5px;
    color: #667085;
    font-weight: 400;
}

.attachment-existing {
    padding: 12px;
    border: 1px solid #d9e2ec;
    border-radius: 7px;
    background: #f7fafc;
}

.attachment-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin-top: 8px;
}

.attachment-list a {
    display: inline-block;
    padding: 4px 8px;
    border: 1px solid #cbd5df;
    border-radius: 5px;
    background: #fff;
    color: #0b4f8a;
    text-decoration: none;
    font-size: .82rem;
    white-space: normal;
}

.attachment-list a:hover {
    background: #e8f2fb;
}

/* Bouton d'enregistrement */
.form-transmission button[type="submit"] {
    align-self: flex-end;
    margin-top: 10px;
    padding: 9px 20px;
    background: #007bff;
    color: #fff;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

/* Petit texte en bas de page */
.footer-page {
    margin-top: 16px;
    font-size: 0.8rem;
    color: #777;
    text-align: right;
}
/* --- Bouton Déconnexion (couleur différente) --- */
.btn-logout {
    background-color: #003f6b !important;  /* rouge doux professionnel */
    color: white !important;
    border: none;
    padding: 10px 18px;
    border-radius: 5px;
    cursor: pointer;
}

.btn-logout:hover {
    background-color: #c9302c !important;  /* rouge + foncé au hover */
}
.badge-confidentiel {
    display: inline-block;
    background-color: #005b96; /* bleu Cordia */
    color: white;
    padding: 3px 7px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
}
/* ---- BADGE CONFIDENTIEL ---- */

.badge-confidentiel {
    display: inline-block;
    background-color: #005B96;   /* Bleu Cordia */
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.80rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.badge-supprimee {
    display: inline-block;
    color: #b71c1c;
    font-size: 0.86rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.header h1 {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.subtitle {
    font-size: 0.6em;
    font-weight: normal;
   
}
.transmission-social {
    background-color: #fde8ec;
}
/* Social : rosé léger */
.t-fonction-social td { background-color: #fde8ec; }

/* Médical : saumon clair */
.t-fonction-medical td { background-color: #ffe2d6; }

/* Vie quotidienne : bleu gris clair */
.t-fonction-vie td { background-color: #e6edf2; }

/* Psychologue : vert de gris clair */
.t-fonction-psy td { background-color: #e4f0ec; }

.phrase-du-jour {
    margin: 15px 0 20px 0;
    padding: 10px 14px;
    background-color: #f5f7fa;
    border-left: 4px solid #6c8ebf;
    font-style: italic;
    color: #333;
}

/* PATCH FICHE URGENCE 2026-04-07 */
.field textarea {
    min-height: 90px;
    padding: 8px 10px;
    font-size: 14px;
    border: 1px solid #bbb;
    border-radius: 5px;
    resize: vertical;
    font-family: inherit;
}

.field.full {
    flex: 1 1 100%;
}

.section-card {
    border: 1px solid #d9e2ec;
    border-radius: 8px;
    padding: 16px 18px;
    background: #fafcfe;
}

.section-card h3 {
    margin: 0 0 8px 0;
    color: #0b4f8a;
    font-size: 1rem;
}

.hint {
    margin: 0 0 10px 0;
    color: #55606e;
    font-size: 0.92rem;
}

.page-hint {
    max-width: 900px;
    margin: 0 auto 14px auto;
}

.admissions-actions {
    margin-bottom: 12px;
}

.admissions-filter {
    margin-bottom: 16px;
}

.admissions-filter .row,
.admission-form .row,
.admission-action-form .row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.admissions-filter-button {
    flex: 0 0 130px;
}

.admissions-table th,
.admissions-table td {
    vertical-align: top;
}

.status-pill,
.priority-pill {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
}

.status-pill {
    color: #0b4f8a;
    background: #e8f2fb;
}

.priority-pill {
    color: #334155;
    background: #eef2f7;
}

.priority-haute {
    color: #8a4b00;
    background: #fff1d6;
}

.priority-urgente {
    color: #9f1239;
    background: #ffe4ec;
}

.muted {
    color: #667085;
}

.empty-row {
    color: #667085;
    text-align: center;
    padding: 18px;
}

.admission-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.admission-title h2 {
    margin-bottom: 4px;
}

.admission-title p {
    margin-top: 0;
}

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

.admission-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.details-list {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 8px 14px;
    margin: 0;
}

.details-list dt {
    color: #667085;
    font-weight: 700;
}

.details-list dd {
    margin: 0;
}

.pre-line {
    white-space: pre-wrap;
}

.admission-action-form {
    margin-bottom: 18px;
}

.admissions-actions-table {
    margin-top: 8px;
}

.admission-form {
    max-width: 1100px;
}

.admission-kpis {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.admission-kpi {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 14px 16px;
    border: 1px solid #d9e2ec;
    border-radius: 8px;
    background: #f7fafc;
}

.admission-kpi strong {
    color: #0b4f8a;
    font-size: 1.55rem;
}

.admission-kpi span {
    color: #52606d;
    font-size: .84rem;
}

.admission-kpi-alert {
    border-color: #f1b7c6;
    background: #fff5f7;
}

.admission-kpi-alert strong {
    color: #9f1239;
}

.waitlist-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.waitlist-panel {
    overflow-x: auto;
}

.waitlist-table {
    font-size: .88rem;
}

.waitlist-rank {
    color: #0b4f8a;
    font-size: 1.1rem;
    font-weight: 800;
    text-align: center;
}

.waitlist-suspended td {
    background: #f2f4f7;
    color: #667085;
}

.admission-subtitle {
    margin: 4px 0 12px;
    color: #0b4f8a;
}

.admission-section-heading {
    margin: 6px 0 14px;
}

.admission-section-heading .admission-subtitle {
    margin-bottom: 4px;
}

.admission-section-heading p {
    margin: 0;
    font-size: .9rem;
}

.waitlist-editor {
    margin: 14px 0;
    padding: 16px;
    border: 1px solid #c9d5e1;
    border-radius: 8px;
    background: #fff;
}

.waitlist-editor legend {
    padding: 0 8px;
    color: #0b4f8a;
    font-weight: 800;
}

.waitlist-help {
    margin-bottom: 8px;
}

.waitlist-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.waitlist-detail-card {
    padding: 14px;
    border: 1px solid #d9e2ec;
    border-radius: 7px;
    background: #fff;
}

.waitlist-detail-card h4 {
    margin: 0 0 12px;
    color: #0b4f8a;
}

.admission-closure {
    margin: 16px 0;
    border-left: 5px solid #9f1239;
    background: #fff5f7;
}

.pp-summary {
    margin-bottom: 16px;
    border-left: 5px solid #0b6fa4;
}

.pp-overview {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 14px 0 20px;
}

.pp-overview > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    border-radius: 7px;
    background: #fff;
    border: 1px solid #d9e2ec;
}

.pp-overview span,
.pp-overview small {
    color: #667085;
    font-size: .8rem;
}

.pp-status {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 12px;
    background: #e8f2fb;
    color: #0b4f8a;
    font-size: .82rem;
    font-weight: 800;
}

.pp-status-en-retard {
    background: #ffe4ec;
    color: #9f1239;
}

.pp-status-a-preparer,
.pp-status-a-anticiper {
    background: #fff1d6;
    color: #8a4b00;
}

.pp-content-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 22px;
}

.pp-content-grid h4 {
    margin: 0 0 10px;
    color: #344054;
}

.pp-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
}

.pp-form label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: .88rem;
    font-weight: 700;
}

.pp-form input,
.pp-form select,
.pp-form textarea {
    padding: 7px 9px;
    border: 1px solid #cbd5df;
    border-radius: 5px;
    font: inherit;
}

.pp-comment,
.pp-form button {
    grid-column: 1 / -1;
}

.pp-history-row {
    display: grid;
    grid-template-columns: 105px 100px 1fr;
    gap: 8px;
    padding: 9px 0;
    border-bottom: 1px solid #e3e8ee;
    font-size: .88rem;
}

.pp-history-row small {
    color: #667085;
}

@media (max-width: 780px) {
    .admission-title,
    .admission-grid {
        display: block;
    }

    .admission-title-actions {
        justify-content: flex-start;
        margin-bottom: 12px;
    }

    .admission-grid .section-card {
        margin-bottom: 14px;
    }

    .details-list {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .admission-kpis,
    .waitlist-grid,
    .waitlist-detail-grid,
    .pp-overview,
    .pp-content-grid {
        grid-template-columns: 1fr;
    }

    .pp-history-row {
        grid-template-columns: 1fr;
    }
}

/* Évaluations de l'autonomie */
.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.autonomie-summary {
    margin-bottom: 16px;
}

.autonomie-dashboard {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.75fr);
    gap: 24px;
    align-items: start;
}

.radar-panel canvas {
    display: block;
    max-width: 100%;
    margin: 0 auto;
}

.radar-legend {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 4px;
    font-size: 0.86rem;
}

.radar-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.radar-legend i {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.autonomie-history h4 {
    margin: 8px 0;
}

.evaluation-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #d9e2ec;
    color: #182230;
    text-decoration: none;
}

.evaluation-row:hover strong {
    color: #0b6fa4;
}

.evaluation-row small {
    display: block;
    margin-top: 3px;
    color: #667085;
}

.evaluation-count {
    color: #52606d;
    font-weight: 700;
    white-space: nowrap;
}

.empty-state {
    color: #667085;
    margin-bottom: 0;
}

.evaluation-meta {
    margin-bottom: 14px;
}

.evaluation-meta .row {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.evaluation-meta .field {
    flex: 1 1 240px;
}

.score-key {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin-top: 12px;
    color: #52606d;
    font-size: 0.82rem;
}

.evaluation-domain {
    margin-bottom: 12px;
    border: 1px solid #ced9e4;
    border-radius: 6px;
    background: #fff;
    overflow: hidden;
}

.evaluation-domain summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 16px;
    background: #edf5fa;
    color: #0b4f8a;
    font-weight: 700;
    cursor: pointer;
}

.evaluation-domain summary small {
    color: #667085;
    font-weight: 400;
}

.evaluation-items {
    padding: 0 16px;
}

.evaluation-item {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(270px, 0.8fr);
    align-items: center;
    gap: 20px;
    padding: 10px 0;
    border-bottom: 1px solid #e5eaf0;
}

.evaluation-item:last-child {
    border-bottom: 0;
}

.evaluation-item select {
    width: 100%;
}

.autonomie-form textarea {
    width: 100%;
    box-sizing: border-box;
    margin-top: 8px;
}

.evaluation-author {
    color: #667085;
    margin-top: -8px;
}

.evaluation-read-domain {
    margin-bottom: 12px;
}

.evaluation-read-items {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 24px;
}

.evaluation-read-item {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) 42px minmax(160px, 0.8fr);
    align-items: center;
    gap: 10px;
    min-height: 42px;
    border-bottom: 1px solid #e5eaf0;
}

.evaluation-read-item small {
    color: #667085;
}

.score-badge {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 34px;
    height: 28px;
    border-radius: 4px;
    color: #fff;
    background: #52606d;
}

.score-0 { background: #b42318; }
.score-1 { background: #d56b3f; }
.score-2 { background: #c58b17; }
.score-3 { background: #3f8c65; }
.score-4 { background: #176b4d; }
.score-nc { background: #667085; }

@media (max-width: 900px) {
    .autonomie-dashboard,
    .evaluation-read-items {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {
    .section-heading,
    .evaluation-item {
        display: block;
    }

    .section-heading .btn {
        display: inline-block;
        margin-bottom: 10px;
    }

    .evaluation-item select {
        margin-top: 7px;
    }

    .evaluation-read-item {
        grid-template-columns: minmax(130px, 1fr) 40px;
    }

    .evaluation-read-item small {
        grid-column: 1 / -1;
        padding-bottom: 7px;
    }
}
