/* 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: #94a3b8;
    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: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 0.88rem;
    box-sizing: border-box;
    margin: 0;
    outline: none;
    transition: all 0.2s ease;
}

#OPTION_LIST #search_input:focus {
    border-color: #3b82f6;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

#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: #007bff;
    color: #fff;
    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: #0056b3;
    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: #007bff;
    color: #fff;
    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: #0056b3;
    transform: translateY(-1px);
}

#OPTION_LIST .filter .fiter_label label {
    color: #007bff;
}

#OPTION_LIST .filter_active {
    position: relative;
}

#OPTION_LIST .filter_active.has-active-filters {
    background: var(--gradient-primary, linear-gradient(135deg, #0056b3, #00b4d8)) !important;
    box-shadow: 0 0 12px rgba(0, 180, 216, 0.45);
}

#OPTION_LIST .filter_active .filter-badge-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: #ffffff;
    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: 0 2px 5px rgba(0, 0, 0, 0.3);
    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 {
    z-index: 2100;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 22, 40, 0.65);
    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, #ffffff);
    color: var(--text-main, #1e293b);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
    border-radius: 20px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35), 0 0 30px rgba(0, 86, 179, 0.15);
    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, #0a1628 0%, #0d2137 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#OPTION_LIST .filter .filter_header_title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 700;
    font-family: var(--font-heading, inherit);
}

#OPTION_LIST .filter .filter_header_title i {
    color: #00b4d8;
    font-size: 1.1rem;
}

#OPTION_LIST .filter .filter_close {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #94a3b8;
    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: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #ef4444;
    transform: rotate(90deg);
}

#OPTION_LIST .filter .filter_list {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 60vh;
    overflow-y: auto;
    background: var(--bg-surface, #ffffff);
}

#OPTION_LIST .filter .filter_item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-radius: 12px;
    background: var(--bg-subtle, #f8fafc);
    border: 1.5px solid var(--border-color, #e2e8f0);
    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, #007bff);
    background: var(--bg-surface-hover, #f0f7ff);
    transform: translateX(3px);
}

#OPTION_LIST .filter .filter_item:has(input:checked) {
    background: rgba(0, 123, 255, 0.08);
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.12);
}

#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: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

#OPTION_LIST .filter .filter_status_indicator.status_review {
    background: #f59e0b;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
}

#OPTION_LIST .filter .filter_status_indicator.status_cancel {
    background: #ef4444;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}

#OPTION_LIST .filter .filter_status_indicator.status_wait {
    background: #00b4d8;
    box-shadow: 0 0 8px rgba(0, 180, 216, 0.6);
}

#OPTION_LIST .filter .filter_status_indicator.status_mix {
    background: #8b5cf6;
    box-shadow: 0 0 8px rgba(139, 92, 246, 0.6);
}

#OPTION_LIST .filter .filter_item_icon {
    color: #6366f1;
    font-size: 0.95rem;
}

#OPTION_LIST .filter .filter_item_text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main, #1e293b);
}

#OPTION_LIST .filter .filter_checkbox {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    accent-color: #007bff;
    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, #f8fafc);
    border-top: 1px solid var(--border-color, #e2e8f0);
}

#OPTION_LIST .filter .filter_reset_btn {
    background: transparent;
    border: 1.5px solid var(--border-color, #cbd5e1);
    color: var(--text-muted, #64748b);
    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: rgba(239, 68, 68, 0.08);
    border-color: #ef4444;
    color: #ef4444;
    transform: rotate(-30deg);
}

#OPTION_LIST .filter .filter_apply_btn {
    background: var(--gradient-primary, linear-gradient(135deg, #0056b3, #00b4d8));
    border: none;
    color: #ffffff;
    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: 0 4px 12px rgba(0, 86, 179, 0.25);
    transition: all 0.2s ease;
}

#OPTION_LIST .filter .filter_apply_btn:hover {
    transform: translateY(-1px) scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 86, 179, 0.35);
    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: rgba(255, 255, 255, 0.08);
    color: var(--text-main, #ffffff);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.15));
    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: rgba(255, 255, 255, 0.16);
    border-color: var(--primary, #3b82f6);
    color: var(--primary, #3b82f6);
    transform: translateY(-1px);
}

.search_col_item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--bg-subtle, rgba(255, 255, 255, 0.04));
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.88rem;
    color: var(--text-main, #ffffff);
}

.search_col_item:hover {
    background: var(--bg-surface-hover, rgba(255, 255, 255, 0.08));
    border-color: var(--primary, #3b82f6);
    transform: translateX(2px);
}

.search_col_item input[type="checkbox"] {
    width: 17px;
    height: 17px;
    accent-color: #3b82f6;
    cursor: pointer;
    margin: 0;
}

/* ── LIGNES DE GROUPEMENT PAR COMPTE (ACCORDÉON PROFILS) ─── */
tr.account-group-row {
    background: var(--bg-surface-hover, rgba(255, 255, 255, 0.03)) !important;
    cursor: pointer;
    transition: background 0.2s ease;
    border-top: 2px solid var(--border-color, rgba(255, 255, 255, 0.08)) !important;
}

tr.account-group-row:hover {
    background: rgba(59, 130, 246, 0.08) !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, #3b82f6);
    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, rgba(255, 255, 255, 0.12));
}

tr.profile-subrow td:first-child::after {
    content: '';
    position: absolute;
    left: 14px;
    top: 50%;
    width: 10px;
    height: 2px;
    background: var(--border-color, rgba(255, 255, 255, 0.12));
}

/* 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([style*="display: none"]), tr.client-row:not([style*="display: none"]) {
    display: table-row !important;
}

tr.client_item[style*="display: none"], tr.client-row[style*="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: hsla(0, 0%, 50%, 0.05);
}

tr.client_item.bigBro_2 td {
    background-color: hsla(0, 84%, 60%, 0.05);
}

tr.client_item.bigBro_3 td {
    background-color: hsla(199, 89%, 48%, 0.05);
}

.client_item.OPEN_ROW {
    z-index: 800;
    position: fixed;
    width: 96vw;
    min-height: 76vh;
    max-height: 76vh;
    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: 9999 !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;
    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;
}

.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: white;
}

.client_item.info_a.NUMBUS .inf_a>p {
    display: none;
}

.client_item.bigBro_0 .inf_e {
    background: rgb(255, 145, 145);
}

.client_item.bigBro_2 .inf_e {
    background: rgb(255, 210, 106);
}

.client_item.bigBro_3 .inf_e {
    background: #6ab2ff;
}

.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: rgb(98, 255, 98);
    color: white;
    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: white;
    background-color: #007bff;
    transition: all 0.3s ease;
}

.client_item .inf_a>div._NONEPAY {
    border-style: solid;
    border-width: 3px;
    border-color: rgb(0, 21, 255);
}

.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: #ffffff;
    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: #007bff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    max-height: 0px;
    overflow: hidden;
    z-index: 9999;
    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: white;
    padding: 0.5rem;
    /* max-height:0px; */
}

#message_container .all_info,
.client_item.OPEN_ROW .all_info {
    max-height: 68vh;
    overflow-y: auto;

}

.client_item .ctt_menu.OPEN_CTT {
    max-height: 80vh;
    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, #d16ba5, #c777b9, #ba83ca, #aa8fd8, #9a9ae1, #8aa7ec, #79b3f4, #69bff8, #52cffe, #41dfff, #46eefa, #5ffbf1);
}

/* Met en évidence les clients non payés */
.client_item ._NONEPAY {
    background: #ff1744 !important;
    border: 3px solid #ff1744 !important;
    box-shadow: 0 0 16px 2px #ff1744, 0 0 2px 1px #fff;
    color: #fff !important;
    font-weight: bold;
    animation: none;
}

/* Optionnel : effet lumineux animé */
@keyframes redGlow {
    0% {
        box-shadow: 0 0 8px 2px #ff1744, 0 0 2px 1px #fff;
    }

    50% {
        box-shadow: 0 0 24px 6px #ff1744, 0 0 4px 2px #fff;
    }

    100% {
        box-shadow: 0 0 8px 2px #ff1744, 0 0 2px 1px #fff;
    }
}

.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;
        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;
    }

    #OPTION_LIST .filter .filter_list {
        margin-top: 100px;
    }


}

/* 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, rgba(59,130,246,0.07) 0%, rgba(30,41,59,0.55) 100%) !important;
    cursor: pointer;
    user-select: none;
    border-left: 3px solid rgba(59,130,246,0.40);
    transition: background 0.18s ease, border-color 0.18s ease;
}

tr.account-group-row:hover {
    background: linear-gradient(90deg, rgba(59,130,246,0.14) 0%, rgba(30,41,59,0.70) 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: rgba(15, 23, 42, 0.3) !important;
    border-left: 3px solid rgba(59,130,246,0.15);
    transition: background 0.18s ease;
}

tr.profile-subrow:hover {
    background: rgba(59,130,246,0.06) !important;
}

/* Boutons expand/collapse all */
#btn_expand_all_groups:hover {
    background: rgba(59,130,246,0.20) !important;
    border-color: var(--primary) !important;
    color: var(--primary) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59,130,246,0.20);
}

#btn_collapse_all_groups:hover {
    background: rgba(100,116,139,0.20) !important;
    border-color: rgba(100,116,139,0.4) !important;
    color: var(--text-main) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}