﻿/* =========================
   MasterDetailSelector
   ========================= */

.myMasterDetailSelector {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    /* 🔑 empêche le "ça grandit" */
    height: 320px; /* ou max-height si tu préfères, mais height = stable */
    min-height: 200px;
    background: #fff;
}

    /* -------- LEFT -------- */
    .myMasterDetailSelector .mds-left {
        width: 220px;
        flex: 0 0 220px;
        border-right: 1px solid #eee;
        overflow-y: auto;
        overflow-x: hidden;
        background: #f7f7f7; /* comme prod */
    }

        .myMasterDetailSelector .mds-left .mds-item {
            display: flex;
            align-items: center;
            padding: 6px 10px;
            cursor: pointer;
            user-select: none;
            border-left: 3px solid transparent;
            background: transparent;
        }

            .myMasterDetailSelector .mds-left .mds-item:hover {
                background: #f0f0f0;
            }

            .myMasterDetailSelector .mds-left .mds-item.is-selected {
                background: #ffffff;
                border-left-color: #2f78ff; /* liseré bleu */
                font-weight: 600;
            }

        /* petit badge compteur (si tu l’as) */
        .myMasterDetailSelector .mds-left .mds-badge {
            margin-left: auto;
            font-size: 11px;
            line-height: 16px;
            padding: 0 6px;
            border-radius: 10px;
            background: #2f78ff;
            color: #fff;
        }

    /* -------- RIGHT -------- */
    .myMasterDetailSelector .mds-right {
        flex: 1 1 auto;
        min-width: 220px; /* 🔑 évite le débordement flex */
        padding: 10px 12px;
        overflow-y: auto; /* 🔑 scroll interne */
        overflow-x: hidden;
        background: #fff;
    }

    /* entête droite (titre + bouton vider) */
    .myMasterDetailSelector .mds-right-head {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 8px;
    }

    .myMasterDetailSelector .mds-right-title {
        font-weight: 600;
        flex: 1 1 auto;
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .myMasterDetailSelector .mds-clear-col {
        padding: 4px 10px;
        border: 1px solid #ddd;
        border-radius: 4px;
        background: #f6f6f6;
        cursor: pointer;
    }

    /* lignes à droite (tes filter-line) */
    .myMasterDetailSelector .filter-line {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 6px 6px;
        border-radius: 4px;
    }

        .myMasterDetailSelector .filter-line:hover {
            background: #f6f8ff;
        }

        .myMasterDetailSelector .filter-line input[type="checkbox"] {
            margin: 0; /* 🔑 alignement */
        }

        .myMasterDetailSelector .filter-line span {
            flex: 1 1 auto;
            min-width: 0;
        }
