/* Add here all your CSS customizations */


.dataTables_wrapper .dataTables_paginate .paginate_button{
	margin-left: 0;
	padding: 0;
	border-style:none;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover{
	border-style:none;
	background:transparent;
}

.modal-z-index{
	z-index: 2147483648;
}

.progress .progress-bar-primary {
	background-color: #06b6d4;
}

div.rmsc-multi-select {
	--rmsc-main: #4285f4;
	--rmsc-hover: #f1f3f5;
	--rmsc-selected: #e2e6ea;
	--rmsc-border: rgb(229, 231, 233);
	--rmsc-gray: black;
	--rmsc-bg: #fff;
	--rmsc-p: 16px; /* Spacing */
	--rmsc-radius: 7px; /* Radius */
	--rmsc-h: 40px; /* Height */
	max-width:300px;
	width:100%;
}

select.filter-comp{
	font-size:1.3em;
	padding-left:1em;
	border-radius: 0 6px 6px 0;
}



.slideup, .slidedown {
	max-height: 0 !important;            
	overflow-y: hidden;
	transition: max-height 0.3s ease-in-out;
	margin-top: auto;
}

.slidedown {            
	margin-top: -150px ;                    
}  

/* .slide-up{
    transform:scaleY(0);
} */

table.table tr.listing-row:hover{
	cursor:pointer;
}

/* AI status pill in the top bar (left of the notification bell) */
.header-right .ia-status{
	float: left;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 15px 16px 0 0;
	padding: 6px 12px;
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1;
	border-radius: 20px;
	color: #1f9d6b;
	background: #e9f9f1;
	border: 1px solid #cdeedd;
	white-space: nowrap;
	user-select: none;
}
.header-right .ia-status .ia-status-dot{
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #1f9d6b;
	box-shadow: 0 0 0 3px rgba(31,157,107,.18);
}
/* Offline state (used once wired to a live endpoint) */
.header-right .ia-status.is-offline{
	color: #b4452f;
	background: #fdeceb;
	border-color: #f3c9c4;
}
.header-right .ia-status.is-offline .ia-status-dot{
	background: #d9534f;
	box-shadow: 0 0 0 3px rgba(217,83,79,.18);
}

/* Dashboard widget drag-and-drop reordering */
.cw-tools .cw-drag{
	cursor: grab;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.cw-tools .cw-drag:active{
	cursor: grabbing;
}
.cw-tools .cw-drag svg{
	vertical-align: middle;
}
.dashboard-widget-item.dashboard-widget-dragging{
	opacity: .5;
}
.dashboard-widget-placeholder{
	visibility: visible !important;
}
.dashboard-widget-placeholder > *{
	visibility: hidden;
}
.dashboard-widget-placeholder::before{
	content: "";
	display: block;
	width: 100%;
	min-height: 120px;
	height: 100%;
	border: 2px dashed #16b5d4;
	border-radius: 14px;
	background: rgba(22,181,212,.04);
}

/* Equal-height widgets per row: the card fills its (already stretched) column */
#dashboard-widgets-grid { align-items: stretch; }
#dashboard-widgets-grid .dashboard-widget-item{
	display: flex;
	flex-direction: column;
}
#dashboard-widgets-grid .dashboard-widget-item > .card{
	flex: 1 1 auto;
	height: 100%;
	margin-bottom: 0;
}

.transition{
    transition: all 0.3s;
}

/* =====================================================================
   REFONTE — Flyouts de sous-menu (sidebar repliée)
   Transforme la pop-up sombre Porto (.nav-children en position absolue)
   en une CARTE BLANCHE : en-tête = nom du groupe, item actif teal,
   badges de comptage, bouton « + », séparateur avant les items système.
   Scopé aux états repliés (sidebar-left-collapsed / big-icons) pour ne
   pas toucher la sidebar dépliée. La classe .nav-children-header et les
   badges sont posés par le partial item.blade.php.
   ===================================================================== */

/* En-tête de carte : masqué en mode déplié (le nom du groupe est déjà le parent),
   visible uniquement dans le flyout replié. */
.sidebar-left ul.nav-children > li.nav-children-header { display: none; }

/* --- La CARTE blanche (flyout) --- */
html.sidebar-left-collapsed   .sidebar-left .nav-main li.nav-parent > ul.nav-children,
html.sidebar-left-big-icons   .sidebar-left .nav-main li > ul.nav-children {
    background: #ffffff !important;
    border-left: none !important;
    border-radius: 14px !important;
    box-shadow: 0 14px 38px rgba(20,40,70,.18), 0 2px 8px rgba(20,40,70,.08) !important;
    min-width: 296px !important;
    padding: 8px !important;
    margin-left: 8px;
}
/* Hover bridge : le margin-left ci-dessus laisse un « trou » de 8px entre la colonne
   d'icônes et la carte. En le traversant, le pointeur quittait le :hover et le menu
   se refermait (il fallait aller très vite). Un ::before transparent, sur toute la
   hauteur du flyout et débordant à gauche par-dessus le trou, garde le pointeur dans
   la zone de survol tout le long du trajet. Fait partie du <ul> → survoler le pont
   = survoler le sous-menu = maintient le :hover du <li> parent. */
html.sidebar-left-collapsed .sidebar-left .nav-main li.nav-parent > ul.nav-children::before,
html.sidebar-left-big-icons  .sidebar-left .nav-main li > ul.nav-children::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -12px;
    width: 14px;
    background: transparent;
}

/* En-tête visible dans le flyout */
html.sidebar-left-collapsed .sidebar-left ul.nav-children > li.nav-children-header,
html.sidebar-left-big-icons  .sidebar-left ul.nav-children > li.nav-children-header {
    display: block;
    list-style: none;
    color: #1c3c5a;
    font-size: 15px;
    font-weight: 800;
    padding: 8px 12px 10px;
    margin: 0;
}

/* Lignes d'items dans la carte */
html.sidebar-left-collapsed .sidebar-left ul.nav-children li,
html.sidebar-left-big-icons  .sidebar-left ul.nav-children li { position: relative; }

html.sidebar-left-collapsed .sidebar-left ul.nav-children li > a,
html.sidebar-left-big-icons  .sidebar-left ul.nav-children li > a {
    display: flex !important;
    align-items: center;
    gap: 10px;
    color: #2b3a4a !important;
    background: transparent !important;
    padding: 9px 40px 9px 12px !important;   /* place réservée à droite pour le « + » */
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.2;
    overflow: visible;
}
html.sidebar-left-collapsed .sidebar-left ul.nav-children li > a:hover,
html.sidebar-left-big-icons  .sidebar-left ul.nav-children li > a:hover {
    background: #f1f5f9 !important;
    color: #1c3c5a !important;
}
html.sidebar-left-collapsed .sidebar-left ul.nav-children li > a > i,
html.sidebar-left-big-icons  .sidebar-left ul.nav-children li > a > i {
    color: #8a96a3 !important;
    font-size: 1rem !important;
    width: 18px;
    text-align: center;
    margin: 0 !important;
}

/* Item ACTIF → bleu clair + teal */
html.sidebar-left-collapsed .sidebar-left ul.nav-children li.nav-active > a,
html.sidebar-left-collapsed .sidebar-left ul.nav-children li > a.active,
html.sidebar-left-big-icons  .sidebar-left ul.nav-children li.nav-active > a,
html.sidebar-left-big-icons  .sidebar-left ul.nav-children li > a.active {
    background: #e8f5fb !important;
    color: #1c9cb8 !important;
}
html.sidebar-left-collapsed .sidebar-left ul.nav-children li.nav-active > a > i,
html.sidebar-left-big-icons  .sidebar-left ul.nav-children li.nav-active > a > i {
    color: #1c9cb8 !important;
}

/* Badge de comptage */
.sidebar-left ul.nav-children .nav-count-badge {
    margin-left: auto;
    flex: none;
    background: #eef1f4;
    color: #6b7785;
    font-size: 12px;
    font-weight: 700;
    line-height: 18px;
    min-width: 24px;
    text-align: center;
    padding: 0 8px;
    border-radius: 12px;
}
.sidebar-left ul.nav-children li.nav-active > a .nav-count-badge { background: #ffffff; color: #1c9cb8; }

/* Bouton « + » repositionné à droite de la ligne (la carte réserve 40px de padding) */
html.sidebar-left-collapsed .sidebar-left ul.nav-children .append,
html.sidebar-left-big-icons  .sidebar-left ul.nav-children .append {
    right: 8px !important;
    top: 50% !important;
    transform: translateY(-50%);
}
html.sidebar-left-collapsed .sidebar-left ul.nav-children .append > a,
html.sidebar-left-big-icons  .sidebar-left ul.nav-children .append > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 7px;
    color: #9aa6b2 !important;
}
html.sidebar-left-collapsed .sidebar-left ul.nav-children .append > a:hover,
html.sidebar-left-big-icons  .sidebar-left ul.nav-children .append > a:hover {
    background: #e8f5fb;
    color: #1c9cb8 !important;
}

/* Séparateur : 1er item « système » (sans « + ») suivant un item de rôle (avec « + ») */
html.sidebar-left-collapsed .sidebar-left ul.nav-children > li:has(> a.hasAppend) + li:not(:has(> a.hasAppend)):not(.nav-children-header),
html.sidebar-left-big-icons  .sidebar-left ul.nav-children > li:has(> a.hasAppend) + li:not(:has(> a.hasAppend)):not(.nav-children-header) {
    border-top: 1px solid #eef1f4;
    margin-top: 6px;
    padding-top: 6px;
}
