/*
 * Listes harmonisées (js/resineo-listes.js) : « Devis & commandes » et « Mes simulations » côté commercial
 * (tableau de bord SalesKing / DashLite) et « Mes simulations » côté client (Mon compte).
 */

/* ── Redimensionnement des colonnes ── */
table.dataTable thead th { position: relative; }
table.dataTable thead th .resineo-redim {
	position: absolute; top: 0; right: -4px; width: 8px; height: 100%;
	cursor: col-resize; z-index: 5;
}
table.dataTable thead th .resineo-redim:hover,
table.dataTable thead th .resineo-redim:active { background: rgba(133, 79, 255, .25); }
table.dataTable thead th:last-child .resineo-redim { right: 0; }
/* Une fois redimensionné : disposition fixe, le contenu passe à la ligne dans sa colonne */
table.dataTable.resineo-redimensionne { table-layout: fixed; }
.dataTables_wrapper.resineo-defile { overflow-x: auto; }
table.dataTable.resineo-redimensionne th,
table.dataTable.resineo-redimensionne td { overflow: hidden; overflow-wrap: anywhere; }

/* ── Recherches par colonne : 2e ligne d'en-tête (tr.resineo-filtres) ── */
table.dataTable thead tr.resineo-filtres th {
	padding: 6px 8px; font-weight: normal; text-transform: none; letter-spacing: normal; cursor: default;
}
table.dataTable thead tr.resineo-filtres th:before,
table.dataTable thead tr.resineo-filtres th:after { display: none !important; }
table.dataTable .resineo-filtre {
	width: 100%; min-width: 0; box-sizing: border-box;
	height: auto; padding: 6px 8px; font-size: 13px; line-height: 1.3;
	border: 1px solid #dbdfea; border-radius: 4px; background: #fff;
}

/* ── Glisser-déposer des colonnes (ColReorder) ── */
table.resineo-liste-prete thead tr:first-child th { cursor: move; }
table.DTCR_clonedTable.dataTable { position: absolute !important; background-color: rgba(255, 255, 255, .8); z-index: 202; }
div.DTCR_pointer { width: 2px; background-color: #854fff; z-index: 201; }
/* Colonnes fixes (case à cocher, actions) : ni tri ni déplacement */
table.dataTable thead th.resineo-fixe { cursor: default; }

/* ── Mobile : tableau empilé, pas de recherche par colonne ── */
@media (max-width: 768px) {
	/* !important : la mise en page mobile du tableau client force display:block !important sur les lignes */
	table.resineo-liste-prete thead tr.resineo-filtres { display: none !important; }
}

/* ── « Mes simulations » côté client : flèches ↑↓ identiques au tableau de bord commercial (DashLite),
      à la place des triangles du CSS DataTables 1.13 chargé par B2BKing ── */
.woocommerce-simulations table.dataTable thead > tr > th.sorting,
.woocommerce-simulations table.dataTable thead > tr > th.sorting_asc,
.woocommerce-simulations table.dataTable thead > tr > th.sorting_desc {
	cursor: pointer; position: relative; padding-right: 30px;
}
.woocommerce-simulations table.dataTable thead > tr > th.sorting:before,
.woocommerce-simulations table.dataTable thead > tr > th.sorting:after,
.woocommerce-simulations table.dataTable thead > tr > th.sorting_asc:before,
.woocommerce-simulations table.dataTable thead > tr > th.sorting_asc:after,
.woocommerce-simulations table.dataTable thead > tr > th.sorting_desc:before,
.woocommerce-simulations table.dataTable thead > tr > th.sorting_desc:after {
	position: absolute; top: 50%; bottom: auto; transform: translateY(-50%);
	display: block; opacity: .3; font-size: 1em; line-height: 1; color: #8094ae;
}
.woocommerce-simulations table.dataTable thead > tr > th.sorting:before,
.woocommerce-simulations table.dataTable thead > tr > th.sorting_asc:before,
.woocommerce-simulations table.dataTable thead > tr > th.sorting_desc:before { right: 1em; content: "\2191"; }
.woocommerce-simulations table.dataTable thead > tr > th.sorting:after,
.woocommerce-simulations table.dataTable thead > tr > th.sorting_asc:after,
.woocommerce-simulations table.dataTable thead > tr > th.sorting_desc:after { right: .5em; content: "\2193"; }
.woocommerce-simulations table.dataTable thead > tr > th.sorting_asc:before,
.woocommerce-simulations table.dataTable thead > tr > th.sorting_desc:after { opacity: 1; }
.woocommerce-simulations .dataTables_wrapper .dataTables_info { padding-top: 12px; font-size: 13px; }
.woocommerce-simulations .dataTables_wrapper .dataTables_paginate { padding-top: 8px; font-size: 13px; }
