/* table filters and search bar */
#OPTION_LIST {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    height: auto;
    margin-bottom: 1rem;
}

#OPTION_LIST .search {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    gap: 10px;
    height: auto;
    margin-bottom: 0;
}

#OPTION_LIST .search .search-input-wrap {
    flex: 1 1 auto;
    min-width: 0;
    position: relative;
    display: flex;
    align-items: center;
}

#OPTION_LIST .search .search-input-wrap .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-subtle);
    pointer-events: none;
    font-size: 0.9rem;
}

#OPTION_LIST .search input,
#OPTION_LIST #search_input {
    width: 100%;
    height: 42px;
    padding: 0 16px 0 40px;
    border-radius: 10px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-size: 0.88rem;
    box-sizing: border-box;
    margin: 0;
    outline: none;
    transition: all 0.2s ease;
}

#OPTION_LIST #search_input:focus {
    border-color: var(--primary);
    background: var(--bg-subtle);
    box-shadow: var(--shadow-glow);
}

#OPTION_LIST .search button,
#OPTION_LIST #search_button {
    flex: 0 0 42px;
    width: 42px;
    min-width: 42px;
    height: 42px;
    padding: 0;
    margin: 0;
    border-radius: 10px;
    background: var(--primary);
    color: var(--text-on-primary);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

#OPTION_LIST #search_button:hover {
    background: var(--primary);
    transform: translateY(-1px);
}

#OPTION_LIST .filter {
    flex: 0 0 auto;
    width: auto;
    height: auto;
    position: relative;
    margin: 0;
}

#OPTION_LIST .filter .fiter_label {
    display: flex;
    align-items: center;
    width: auto;
    height: auto;
    margin: 0;
}

#OPTION_LIST .filter .fiter_label button,
#OPTION_LIST .filter_active {
    flex: 0 0 42px;
    width: 42px;
    min-width: 42px;
    height: 42px;
    padding: 0;
    margin: 0;
    border-radius: 10px;
    background: var(--primary);
    color: var(--text-on-primary);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

#OPTION_LIST .filter_active:hover {
    background: var(--primary);
    transform: translateY(-1px);
}

#OPTION_LIST .filter .fiter_label label {
    color: var(--primary);
}

#OPTION_LIST .filter_active {
    position: relative;
}

#OPTION_LIST .filter_active.has-active-filters {
    background: var(--gradient-primary, linear-gradient(135deg, var(--primary), var(--color-info))) !important;
    box-shadow: var(--shadow-glow);
}

#OPTION_LIST .filter_active .filter-badge-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--color-danger);
    color: var(--text-on-primary);
    font-size: 0.65rem;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    animation: pulseBadge 1.8s infinite;
}

@keyframes pulseBadge {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

/* ── MODAL DE FILTRE — DESIGN SYSTEM & ANIMATIONS ── */
#OPTION_LIST .filter .filter_select {
    /* 2026-11-28 : niveau des fenêtres ; avec --z-dropdown, la barre du haut et la recherche passaient au-dessus */
    z-index: var(--z-modal);
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: var(--bg-overlay);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
}

#OPTION_LIST .filter .filter_select.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

#OPTION_LIST .filter .filter_dialog {
    background: var(--bg-surface);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    width: 100%;
    max-width: 480px;
    max-height: 100%; /* 2026-11-28 : jamais plus haut que la zone visible du fond */
    box-shadow: var(--shadow-glow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.92) translateY(20px);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;
}

#OPTION_LIST .filter .filter_select.active .filter_dialog {
    transform: scale(1) translateY(0);
    opacity: 1;
}

#OPTION_LIST .filter .filter_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    background: linear-gradient(135deg, var(--bg-base) 0%, var(--bg-base) 100%);
    border-bottom: 1px solid var(--border-color);
}

#OPTION_LIST .filter .filter_header_title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
    font-size: 1.05rem;
    font-weight: 700;
    font-family: var(--font-heading, inherit);
}

#OPTION_LIST .filter .filter_header_title i {
    color: var(--color-info);
    font-size: 1.1rem;
}

#OPTION_LIST .filter .filter_close {
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    color: var(--text-subtle);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

#OPTION_LIST .filter .filter_close:hover {
    background: var(--color-danger-bg);
    border-color: var(--color-danger-border);
    color: var(--color-danger);
    transform: rotate(90deg);
}

#OPTION_LIST .filter .filter_list {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 60vh;
    max-height: 60dvh;
    flex: 1 1 auto;
    min-height: 0; /* 2026-11-28 : la liste rétrécit et défile si l'écran est petit */
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--bg-surface);
}

#OPTION_LIST .filter .filter_item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-radius: 12px;
    background: var(--bg-subtle);
    border: 1.5px solid var(--border-color);
    cursor: pointer;
    user-select: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0;
    width: 100%;
    box-sizing: border-box;
}

#OPTION_LIST .filter .filter_item:hover {
    border-color: var(--primary);
    background: var(--bg-surface-hover);
    transform: translateX(3px);
}

#OPTION_LIST .filter .filter_item:has(input:checked) {
    background: var(--primary-light);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

#OPTION_LIST .filter .filter_item_left {
    display: flex;
    align-items: center;
    gap: 12px;
}

#OPTION_LIST .filter .filter_status_indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

#OPTION_LIST .filter .filter_status_indicator.status_ok {
    background: var(--color-success);
    box-shadow: var(--shadow-glow);
}

#OPTION_LIST .filter .filter_status_indicator.status_review {
    background: var(--color-warning);
    box-shadow: var(--shadow-glow);
}

#OPTION_LIST .filter .filter_status_indicator.status_cancel {
    background: var(--color-danger);
    box-shadow: var(--shadow-glow);
}

#OPTION_LIST .filter .filter_status_indicator.status_wait {
    background: var(--color-info);
    box-shadow: var(--shadow-glow);
}

#OPTION_LIST .filter .filter_status_indicator.status_mix {
    background: var(--secondary);
    box-shadow: var(--shadow-glow);
}

#OPTION_LIST .filter .filter_item_icon {
    color: var(--primary);
    font-size: 0.95rem;
}

#OPTION_LIST .filter .filter_item_text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
}

#OPTION_LIST .filter .filter_checkbox {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    accent-color: var(--primary);
    cursor: pointer;
    margin: 0;
    flex-shrink: 0;
}

#OPTION_LIST .filter .filter_action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--bg-subtle);
    border-top: 1px solid var(--border-color);
}

#OPTION_LIST .filter .filter_reset_btn {
    background: transparent;
    border: 1.5px solid var(--border-color);
    color: var(--text-muted);
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 12px;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

#OPTION_LIST .filter .filter_reset_btn:hover {
    background: var(--color-danger-bg);
    border-color: var(--color-danger);
    color: var(--color-danger);
    transform: rotate(-30deg);
}

#OPTION_LIST .filter .filter_apply_btn {
    background: var(--gradient-primary, linear-gradient(135deg, var(--primary), var(--color-info)));
    border: none;
    color: var(--text-on-primary);
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 12px;
    font-size: 1.05rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow);
    transition: all 0.2s ease;
}

#OPTION_LIST .filter .filter_apply_btn:hover {
    transform: translateY(-1px) scale(1.05);
    box-shadow: var(--shadow-glow);
    filter: brightness(1.08);
}

/* ── BOUTON & MODAL DES COLONNES DE RECHERCHE ───────────── */
#OPTION_LIST .search_cols_btn {
    flex: 0 0 42px;
    width: 42px;
    min-width: 42px;
    height: 42px;
    padding: 0;
    margin: 0;
    border-radius: 10px;
    background: var(--bg-subtle);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

#OPTION_LIST .search_cols_btn:hover {
    background: var(--bg-subtle);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
}

.search_col_item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.88rem;
    color: var(--text-main);
}

.search_col_item:hover {
    background: var(--bg-surface-hover);
    border-color: var(--primary);
    transform: translateX(2px);
}

.search_col_item input[type="checkbox"] {
    width: 17px;
    height: 17px;
    accent-color: var(--primary);
    cursor: pointer;
    margin: 0;
}

/* ── LIGNES DE GROUPEMENT PAR COMPTE (ACCORDÉON PROFILS) ─── */
tr.account-group-row {
    background: var(--bg-surface-hover) !important;
    cursor: pointer;
    transition: background 0.2s ease;
    border-top: 2px solid var(--border-color) !important;
}

tr.account-group-row:hover {
    background: var(--primary-light) !important;
}

tr.account-group-row td {
    padding: 12px 16px !important;
    vertical-align: middle;
}

tr.account-group-row .group-chevron {
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    color: var(--primary);
    font-size: 0.88rem;
}

tr.account-group-row.expanded .group-chevron {
    transform: rotate(90deg);
}

tr.profile-subrow {
    background: transparent;
    transition: background 0.2s ease;
}

tr.profile-subrow.subrow-hidden {
    display: none !important;
}

tr.profile-subrow td:first-child {
    padding-left: 28px !important;
    position: relative;
}

tr.profile-subrow td:first-child::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 0;
    bottom: 50%;
    width: 2px;
    background: var(--border-color);
}

tr.profile-subrow td:first-child::after {
    content: '';
    position: absolute;
    left: 14px;
    top: 50%;
    width: 10px;
    height: 2px;
    background: var(--border-color);
}

/* show clients — Native HTML Tables (Design System) */
tbody#LIST_MOD {
    display: table-row-group !important;
    width: 100%;
}

tr.client_item, tr.client-row {
    position: static !important;
    width: auto !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    background-color: transparent;
}

tr.client_item:not([data-display="none"]), tr.client-row:not([data-display="none"]) {
    display: table-row !important;
}

tr.client_item[data-display="none"], tr.client-row[data-display="none"], tr.client_item.client-row-hidden {
    display: none !important;
}

tr.client_item td {
    vertical-align: middle;
}

tr.client_item.row-selected {
    background-color: hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0.08) !important;
}

/* Fallback status highlights on table row */
tr.client_item.bigBro_0 td {
    background-color: var(--bg-subtle);
}

tr.client_item.bigBro_2 td {
    background-color: var(--color-danger-bg);
}

tr.client_item.bigBro_3 td {
    background-color: var(--color-info-bg);
}

.client_item.OPEN_ROW {
    z-index: calc(var(--z-dropdown) - 2);
    position: fixed;
    width: 96vw;
    min-height: 76vh;
    max-height: 76vh;
    max-height: 76dvh;
    margin-top: 0px;
    margin-bottom: 0px;
    top: 18vh;
    left: 2vw;
}

@media (min-width: 769px) {
    .client_item.OPEN_ROW {
        width: calc(96vw - 250px);
        left: calc(2vw + 250px);
    }
}

.client_item.OPEN_CTT_HOVER,
.client_item:has(.ctt_menu.OPEN_CTT) {
    z-index: calc(var(--z-modal-backdrop) - 1) !important;
}

.client_item .data_of_user {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: start;
    width: 100%;
}

#message_container .all_info,
.client_item .all_info {
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    width: 70%;
    max-height: 0px;
    margin-top: 1px;
    margin-bottom: 0em;
    overflow: hidden;
}

#message_container .send_message,
.client_item .send_message {
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    min-width: 0%;
    max-width: 0%;
    overflow: hidden;
    max-height: 0vh;
    max-height: 0dvh;
    margin-top: 1px;
    margin-bottom: 0em;

}

#message_container .all_info,
.client_item.OPEN_ROW .all_info {
    margin-bottom: 1em;
    overflow-y: auto;
}

#message_container .send_message,
.client_item.OPEN_ROW .send_message {
    min-width: 27%;
    max-width: 27%;
    max-height: 60vh;
    max-height: 60dvh;
}

.client_item .mini_info_bar {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: start;
    align-items: center;
    height: 60px;
    width: 96%;
    margin-bottom: 1px;
}

.client_item .inf_a {
    display: flex;
    flex-direction: row;
    justify-content: start;
    align-items: center;
    width: 50%;
    height: 100%;
    margin-right: 0px;
}

.client_item.bigBro .inf_a>p {
    color: var(--text-main);
}

.client_item.info_a.NUMBUS .inf_a>p {
    display: none;
}

.client_item.bigBro_0 .inf_e {
    background: var(--color-danger);
}

.client_item.bigBro_2 .inf_e {
    background: var(--color-warning);
}

.client_item.bigBro_3 .inf_e {
    background: var(--primary);
}

.client_item .inf_e {
    cursor: pointer;
    position: absolute;
    top: 18px;
    right: 115px;
    display: flex;
    flex-direction: row;
    justify-content: start;
    align-items: center;
    width: 25px;
    max-width: 25px;
    height: 25px;
    border-radius: 50%;
    margin-right: 0px;
    margin-right: 5px;
    padding-left: 0.3rem;
    padding-right: 0.3rem;
    background: var(--color-success);
    color: var(--text-on-primary);
    transition: all 0.3s ease;
}

.client_item.info_a.NUMBUS .inf_e {
    display: none;
}

.client_item.info_e .inf_e {
    top: 5px;
    right: 115px;
    width: auto;
    max-width: 30%;
    height: 50px;
    border-radius: 10px;
}

.client_item .inf_e p {
    opacity: 0;
    margin-right: -500px;
}

.client_item.info_e .inf_e p {
    margin-right: 5px;
    opacity: 1;
}

.client_item .inf_a>div {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    min-width: 50px;
    max-width: 50px;
    min-height: 50px;
    max-height: 50px;
    margin-right: 2em;
    border-radius: 10px;
    color: var(--text-on-primary);
    background-color: var(--primary);
    transition: all 0.3s ease;
}

.client_item .inf_a>div._NONEPAY {
    border-style: solid;
    border-width: 3px;
    border-color: var(--primary);
}

.client_item .inf_a>div .mix_list {
    display: none;
    flex-direction: row;
    justify-content: start;
    align-items: center;
    min-width: 50%;
    max-width: 50%;
    min-height: 40px;
    max-height: 40px;
    margin-left: 2em;
    border-radius: 10px;
    background-color: var(--bg-surface);
    transition: all 0.3s ease;
}

.client_item.info_a.NUMBUS .inf_a>div .mix_list {
    display: flex;
}

.client_item.info_a.NUMBUS .inf_a>div .mix_list div {
    min-width: 40px;
    max-width: 40px;
    min-height: 40px;
    max-height: 40px;
    border-radius: 5px;
}

.client_item.info_a.NUMBUS .inf_a>div .mix_list div img {
    width: 38px;
    height: auto;
}

.client_item.info_a.NUMBUS .inf_a {
    justify-content: start;
    align-items: center;
    min-width: 80%;
    max-width: 80%;
}

.client_item.info_a.NUMBUS .inf_a>div {
    justify-content: start;
    align-items: center;
    padding-left: 2em;
    min-width: 100%;
    max-width: 100%;
}

.client_item .fast_action_full {
    position: absolute;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    height: 100%;
    right: 0.3rem;
    top: 0px;
}

.client_item.info_a.NUMBUS .fast_action_full {
    display: none;
}

.client_item .ctt_menu {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    width: 90%;
    max-width: 360px;
    border-radius: 12px;
    background-color: var(--primary);
    box-shadow: var(--shadow-lg);
    max-height: 0px;
    overflow: hidden;
    z-index: calc(var(--z-modal-backdrop) - 1);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

#global_ctt_overlay {
    display: none !important;
}

.client_item .ctt_menu .ctt_menu_item {
    display: flex;
    flex-direction: row;
    justify-content: start;
    align-items: center;
    width: 90%;
    border-radius: 10px;
    margin-top: 2px;
    margin-bottom: 2px;
    color: var(--text-main);
    padding: 0.5rem;
    /* max-height:0px; */
}

#message_container .all_info,
.client_item.OPEN_ROW .all_info {
    max-height: 68vh;
    max-height: 68dvh;
    overflow-y: auto;

}

.client_item .ctt_menu.OPEN_CTT {
    max-height: 80vh;
    max-height: 80dvh;
    overflow-y: auto;
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

#message_container .all_info .info_item,
.client_item .all_info .info_item {
    position: relative;
    opacity: 0;
    display: flex;
    flex-direction: row;
    justify-content: start;
    align-items: center;
    width: 98%;
    min-height: 6.5vh;
    border-radius: 10px;
    padding: 0.3em;
    background-color: antiquewhite;
    margin-top: 4px;
}

#message_container .all_info .info_item,
.client_item.OPEN_ROW .all_info .info_item {
    opacity: 1;
}

#message_container .all_info .info_item p:nth-child(1),
.client_item .all_info .info_item p:nth-child(1) {
    position: absolute;
    top: 0.2em;
    left: 0.2em;
    font-weight: bolder;
    font-size: small;
}

#message_container .all_info .info_item p:nth-child(2),
.client_item .all_info .info_item p:nth-child(2) {
    margin-top: 0.6em;
}

#message_container .all_info .info_item .copy-button,
.client_item .all_info .info_item .copy-button {
    position: absolute;
    bottom: 0.2em;
    right: 0.2em;
    font-weight: bolder;
    font-size: small;
    padding: 4px;
}

.client_item .ctt_menu .ctt_menu_item {
    opacity: 0;
}

.client_item .ctt_menu.OPEN_CTT .ctt_menu_item {
    opacity: 1;
}

.client_item.NUMBUS {
    background-image: linear-gradient(to right top, var(--secondary), var(--secondary), var(--secondary), var(--secondary), var(--primary), var(--primary), var(--primary), var(--color-info), var(--color-info), var(--color-info), var(--color-info), var(--color-info));
}

/* Met en évidence les clients non payés */
.client_item ._NONEPAY {
    background: var(--color-danger) !important;
    border: 3px solid var(--color-danger) !important;
    box-shadow: var(--shadow-glow);
    color: var(--text-on-primary) !important;
    font-weight: bold;
    animation: none;
}

/* Optionnel : effet lumineux animé */
@keyframes redGlow {
    0% {
        box-shadow: var(--shadow-glow);
    }

    50% {
        box-shadow: var(--shadow-glow);
    }

    100% {
        box-shadow: var(--shadow-glow);
    }
}

.client_item ._NONEPAY {
    animation: redGlow 1.2s infinite;
}

@media (max-width: 768px) {

    #OPTION_LIST .search button,
    #OPTION_LIST #search_button {
        flex: 0 0 42px;
        width: 42px;
        min-width: 42px;
        margin-right: 0;
    }

    #OPTION_LIST .filter {
        width: auto;
        min-width: 0;
    }

    #OPTION_LIST {
        display: flex;
        flex-direction: row;
        align-items: center;
        width: 100%;
        height: auto;
    }

    .client_item.OPEN_ROW {

        top: 12vh;
        left: 2vw;
    }

    .client_item .data_of_user {
        flex-direction: row;
        align-items: stretch;
        justify-content: space-between;
    }

    #message_container .all_info,
    .client_item.OPEN_ROW .all_info {
        min-width: 65%;
        max-width: 65%;
        margin-bottom: 5px;
    }

    #message_container .send_message,
    .client_item.OPEN_ROW .send_message {
        min-width: 33% !important;
        max-width: 33% !important;
        margin-bottom: 5px;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
        max-height: 65vh !important;
        max-height: 65dvh !important;
        padding-right: 2px;
    }

    .client_item .fast_action_full>button {
        margin: 2px;
    }

    .client_item .inf_e {

        right: 75px;

    }

    #OPTION_LIST .filter .fiter_label button {
        min-width: 10vw;
    }

    .filter_action button {
        min-width: 30vw;
    }

    /* 2026-11-28 : ancien décalage de 100px retiré ; il compensait la barre du haut qui recouvrait
       le panneau de filtres. Le panneau est maintenant au niveau des fenêtres, au-dessus de cette barre. */


}

/* Animation for .action_nav reduction */
.action_nav {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease !important;
    transform-origin: bottom right;
}

.action_nav.reduced {
    transform: translateY(120%) scale(0.5);
    opacity: 0;
    pointer-events: none;
}

/* ── ACCORDÉON PROFILS ──────────────────────────────────────────────── */

/* Lignes de groupe Compte */
tr.account-group-row {
    background: linear-gradient(90deg, var(--primary-light) 0%, var(--bg-overlay) 100%) !important;
    cursor: pointer;
    user-select: none;
    border-left: 3px solid var(--primary);
    transition: background 0.18s ease, border-color 0.18s ease;
}

tr.account-group-row:hover {
    background: linear-gradient(90deg, var(--primary-light) 0%, var(--bg-overlay) 100%) !important;
    border-left-color: var(--primary);
}

/* Chevron animé */
.group-chevron {
    font-size: 0.82rem;
    color: var(--primary);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    transform: rotate(0deg);
    flex-shrink: 0;
}

tr.account-group-row.expanded .group-chevron {
    transform: rotate(90deg) !important;
}

/* Sous-lignes profils masquées par défaut */
tr.profile-subrow.subrow-hidden {
    display: none !important;
}

/* Sous-lignes profils visibles */
tr.profile-subrow {
    background: var(--bg-subtle) !important;
    border-left: 3px solid var(--primary);
    transition: background 0.18s ease;
}

tr.profile-subrow:hover {
    background: var(--primary-light) !important;
}

/* Boutons expand/collapse all */
#btn_expand_all_groups:hover {
    background: var(--primary-light) !important;
    border-color: var(--primary) !important;
    color: var(--primary) !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow);
}

#btn_collapse_all_groups:hover {
    background: var(--bg-subtle) !important;
    border-color: var(--border-color-hover) !important;
    color: var(--text-main) !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Retrait des groupes imbriqués : --group-indent posé par client_table_view.js, 2026-11-13 */
tr.account-group-row td:first-child {
    padding-left: calc(var(--group-indent, 0px) + 16px) !important;
}

/* Largeur commune des badges d'identifiant, calculée par uniformizeBadgeWidths(), src/js/variables.js, 2026-11-13 */
.client_item .inf_a > div:first-child.is-measuring { width: max-content; }
.client_item .inf_a > div:first-child.is-uniform {
    width: var(--client-badge-width);
    display: flex;
    justify-content: center;
    align-items: center;
}
.client_item .inf_a > div:first-child.is-uniform p {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
