/* ==================================================
   LE SÉLECTEUR DU THÈME D'INTERVENTION
   (Vincent, 08/10/2026)

   Fenêtres « Ajouter un intervenant » et « Modifier une
   intervention » : le libellé du thème, son pictogramme
   à sa droite. Le comportement vit dans
   /codage/codage-selecteur-de-theme.js.
   ================================================== */

.selecteur-theme {
    position: relative;
}

.selecteur-theme-bouton {
    display: flex;
    align-items: center;
    gap: 10px;

    min-height: 38px;

    text-align: left;

    cursor: pointer;
}

.selecteur-theme-bouton::after {
    content: "";

    width: 7px;
    height: 7px;
    min-width: 7px;

    margin-left: auto;

    border-right: 2px solid #475569;
    border-bottom: 2px solid #475569;

    transform: rotate(45deg) translateY(-2px);
}

.selecteur-theme-panneau {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 5;

    max-height: 280px;

    overflow-y: auto;

    border: 1px solid #cbd5e1;
    border-radius: 8px;

    background: #ffffff;

    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.14);
}

/* Le titre d'un groupe de thèmes. */
.selecteur-theme-groupe {
    padding: 10px 12px 4px 12px;

    color: #071a3d;

    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
}

.selecteur-theme-ligne {
    display: flex;
    align-items: center;
    gap: 10px;

    width: 100%;

    box-sizing: border-box;

    padding: 7px 12px 7px 24px;

    border: 0;

    background: none;
    color: #0f172a;

    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    text-align: left;

    cursor: pointer;
}

.selecteur-theme-ligne:hover,
.selecteur-theme-ligne.choisie {
    background: #f1f5f9;
}

.selecteur-theme-nom {
    min-width: 0;

    overflow: hidden;

    white-space: nowrap;
    text-overflow: ellipsis;
}

/* La durée indicative du thème : en petit et en gris. */
.selecteur-theme-duree {
    flex-shrink: 0;

    color: #94a3b8;

    font-size: 12px;
    font-weight: 400;
    white-space: nowrap;
}

/* Le pictogramme du thème, à droite de son libellé. */
.selecteur-theme-picto {
    width: 18px;
    height: 18px;

    flex-shrink: 0;

    fill: none;
    stroke: #1e3a5f;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
