@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ==========================================================================
   AB Topbar — thin utility bar above the main navbar
   All new class names (ab-topbar*) to avoid collisions.
   ========================================================================== */
.ab-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  z-index: 1050;
  background: linear-gradient(135deg, #080d18 0%, #133868 100%);
  border-bottom: 1px solid #163050;
}
.ab-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 1.5rem;
  max-width: 1600px;
  margin: 0 auto;
}
.ab-topbar-left {
  display: flex;
  align-items: center;
}
.ab-topbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.25rem;
  color: #ffffff;
  letter-spacing: -0.025em;
}
.ab-topbar-brand img {
  height: 50px;
  /* width: 38px; */
  border-radius: 10px;
  object-fit: cover;
}
.ab-topbar-brand span {
  font-weight: 800;
  color: #ffffff;
  font-size: 1.25rem;
  letter-spacing: -0.025em;
}
.ab-topbar-right {
  display: flex;
  align-items: center;
  gap: 4px;
}
.ab-topbar-action {
  position: relative;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 10px;
  text-decoration: none;
  color: #cbd5e1;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  background: none;
  border: none;
  transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}
.ab-topbar-action:hover,
.ab-topbar-action:focus {
  background: #1e293b;
  color: #ffffff;
  text-decoration: none;
}
.ab-topbar-action i {
  font-size: 1.2rem;
}
.ab-topbar-lang {
  width: auto;
  height: 34px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0 0.5rem;
  border-radius: 8px;
  text-transform: uppercase;
}
.ab-topbar-lang.active-lang {
  background: #1e293b;
  color: #38bdf8;
}
.ab-topbar-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  border: 2px solid #475569;
}
.ab-topbar-username {
  font-weight: 600;
  font-size: 0.8125rem;
  color: #ffffff;
  line-height: 1.2;
}
.ab-topbar-caret {
  font-size: 0.65rem;
  color: #94a3b8;
  margin-left: 2px;
  transition: transform 200ms ease;
}
.ab-topbar-user.show > a .ab-topbar-caret {
  transform: rotate(180deg);
}
.ab-topbar-user {
  position: relative;
}
.ab-topbar-user > a.ab-topbar-action {
  width: auto;
  padding: 4px 12px 4px 4px;
  gap: 8px;
  border-radius: 14px;
}
.ab-topbar-user > a.ab-topbar-action:hover {
  background: #1e293b;
}
.ab-topbar-user .dropdown-menu {
  min-width: 180px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  padding: 0.35rem 0;
}
.ab-topbar-user .dropdown-menu .dropdown-item {
  padding: 0.45rem 1rem;
  font-size: 0.875rem;
  border-radius: 8px;
  margin: 0 0.35rem;
  width: auto;
}

/* Navbar Fixed to Top — pushed down below topbar */
.navbar-fixed-top {
  position: fixed !important;
  top: 72px !important;
  width: 100% !important;
  z-index: 1049 !important;
}
/* Pushes page content below the topbar + navbar */
body {
  padding-top: 124px !important; /* topbar(72px) + navbar(52px) */
  scroll-padding-top: 124px;
}
.mainCard {
    border-top: 0 !important;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
/*    box-shadow: 0 0 1px rgba(0, 0, 0, .125), 0 1px 3px rgba(0, 0, 0, .2) !important;*/
}

/* main-header: gradient background distinct from body */
.main-header,
.main-header.navbar-light,
.main-header.navbar-white {
  background: #1e3a5f !important;
  border-bottom: 1px solid #1a3352;
}

.brand-text {
    color: var(--nd-muted) !important;
}

.dataTables_paginate .page-item a {
    margin: 0px 2px;
    padding: 0.3rem 0.75rem !important;
    color: #2989bf !important;
}

.dataTables_paginate .page-item.active a {
    background-color: #2989bf !important;
    color: white !important;
}

.btn {
    overflow: hidden;
    position: relative;
}

.btn:active:after {
    transform: scale(0, 0);
    opacity: .2;
    transition: 0s;
}

.btn:after {
    content: "";
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, #fff 10%, transparent 10.01%);
    background-repeat: no-repeat;
    background-position: 50%;
    transform: scale(10, 10);
    opacity: 0;
    transition: transform .5s, opacity 2s;
    transform-origin: 50%;
    pointer-events: none;
}

.loader {
    width: 0;
    height: 4.8px;
    display: block;
    position: relative;
    /*  background: #FFF;*/
    background: #007bff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    box-sizing: border-box;
    animation: animFw 8s linear infinite;
}

.loader::after,
.loader::before {
    content: '';
    width: 10px;
    height: 1px;
    background: #FFF;
    position: absolute;
    top: 9px;
    right: -2px;
    opacity: 0;
    transform: rotate(-45deg) translateX(0px);
    box-sizing: border-box;
    animation: coli1 0.3s linear infinite;
}

.loader::before {
    top: -4px;
    transform: rotate(45deg);
    animation: coli2 0.3s linear infinite;
}

@keyframes animFw {
    0% {
        width: 0;
    }

    100% {
        width: 100%;
    }
}

@keyframes coli1 {
    0% {
        transform: rotate(-45deg) translateX(0px);
        opacity: 0.7;
    }

    100% {
        transform: rotate(-45deg) translateX(-45px);
        opacity: 0;
    }
}

@keyframes coli2 {
    0% {
        transform: rotate(45deg) translateX(0px);
        opacity: 1;
    }

    100% {
        transform: rotate(45deg) translateX(-45px);
        opacity: 0.7;
    }
}

.alert:not(.ab-flash) {
    padding: .40rem 1rem !important;
}

.alert-danger:not(.ab-flash) {
    color: #721c24 !important;
    background-color: #f8d7da !important;
    border-color: #f8d7da !important;
}

.alert-success:not(.ab-flash) {
    color: #155724 !important;
    background-color: #d4edda !important;
    border-color: #c3e6cb !important;
}

.alert-info:not(.ab-flash) {
    color: #153f57 !important;
    background-color: #d4e3ed !important;
    border-color: #c3cfe6 !important;
}

.alert-warning:not(.ab-flash) {
    color: #6e4f16 !important;
    background-color: #edead4 !important;
    border-color: #e6dec3 !important;
}

.buttons-html5{
    background-color: white!important;
    color: #2989bf !important;
    border-color: #2989bf !important;
}
.buttons-html5:hover{
    background-color: #2989bf!important;
    color: white !important;
    border-color: #2989bf !important;
}

.blockTitle{
    color: #1E3948;
}

.dropdown-menu .dropdown-item {
    color: #777777 !important;
}

.dropdown-menu .dropdown-item:active {
    background-color: #2989bf !important;
    color: white !important;
}
#customSearchWrapper {
    float: right;
    margin-bottom: 10px;
}

legend {
    display: block;
    width: 100%;
    padding: 0;
    margin-bottom: 22px;
    font-size: 21px;
    line-height: inherit;
    color: #31708f!important;
    border: 0;
    border-bottom: 1px solid #e5e5e5;
}

legend .text-info{
    color: #31708f!important;
    font-weight: 400;
}


.buttons-colvis{
    background-color: white!important;
    color: #2989bf !important;
    border-color: #2989bf !important;
}
.buttons-colvis:hover{
    background-color: #2989bf!important;
    color: white !important;
    border-color: #2989bf !important;
}

.margin-auto{
    margin: auto;

}
.dt-button-collection .dropdown-menu .dropdown-item {
    background-color: white  !important;
    color: #2989bf !important;
}

.dt-button-collection .dropdown-menu .dropdown-item.active {
 
    background-color: #2989bf !important;
    color:  white !important;
}
.dataTables_wrapper .top .dataTables_paginate{
    display: none; /* Hides both header and footer pagination */
}

/* Default Bootstrap dropdown alignment (right-aligned) */
.dropdown-menu-right {
    right: 0;
    left: auto;
}

/* Custom class for left-aligned dropdown */
.dropdown-menu-left {
    left: 0;
    right: auto;
}
.dropdown-header{
    text-align: left!important;
}


/* Navigation tab css for Contact */
.nav-div .nav {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    border-bottom: 2px solid #ddd; /* Bottom border for the tab container */
}

.nav-div .nav li {
    margin: 0;
}

/* Style for links */
.nav-div .nav a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #555; /* Default text color */
    border: 1px solid transparent; /* Border for hover effect */
    border-bottom: none; /* Prevent bottom border from affecting layout */
    background-color: #f9f9f9; /* Default tab background */
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Hover effect */
.nav-div .nav a:hover {
    background-color: #f1f1f1;
    color: #333;
}

/* nav-div active tabs: see _section_tabs_styles.html.twig */

/* Optional: adjust font for better readability */
.nav-div .nav a {
    font-family: Arial, sans-serif;
    font-size: 14px;
}

/* Style the popover if necessary */
.popover {
    pointer-events: none; /* Ensures smooth hover behavior */
    transition: opacity 0.3s ease; /* Smooth fade effect */
    max-width: 50%!important; /* Set your desired width */
    width: 50%!important;
}
.filter-instructions{
    color: #1E3948!important;
    margin-left: 10px;
    font-size: 20px!important;
}
/* Tab/pill colors: see templates/layout/_section_tabs_styles.html.twig (loaded in panel-layout) */

.h3Title{
    font-weight: bold;
}
.activeAnne{
    background-color: #3097D1;
    color: white!important;
}

/* Main dropdown menu */
/*.dropdown-menu {
  max-height: 80vh;
  overflow-y: auto;
}*/
.isValide {
   background-color: #f74848;
   color: #ffff;
   padding: 10px 0 0;
   font-weight: bold;
}

.text-navy{
    color: #31708f !important;
    font-weight: 400;
}

.btn-pill {
    padding-left: 1.25em;
    padding-right: 1.25em;
    border-radius: 1000em;
}
.customeh6{
    font-size: 14px!important;
    margin-top: 11px;
    margin-bottom: 11px;
    font-weight: 600;
}
.btn-primary-outline {
    color: #17a2b8; /* Bootstrap info blue */
    background-color: transparent; /* Transparent background */
    border: 1px solid #17a2b8; /* Blue border */
    border-radius: 4px; /* Slightly rounded corners */
    padding: 0.375rem 0.75rem; /* Padding for size */
    font-size: 1rem; /* Default font size */
    transition: all 0.3s ease-in-out; /* Smooth transition for hover effects */
    text-align: center;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}

.btn-primary-outline:hover,
.btn-primary-outline:focus {
    color: #fff; /* White text on hover */
    background-color: #17a2b8; /* Fill with info blue */
    border-color: #17a2b8; /* Maintain border color */
    text-decoration: none; /* No underline */
}

.btn-primary-outline:active {
    background-color: #138496; /* Darker blue for active state */
    border-color: #117a8b; /* Slightly darker border for active state */
    color: #fff; /* White text */
}

.btn-primary-outline:disabled {
    color: #b8e0e6; /* Faded blue */
    background-color: transparent;
    border-color: #b8e0e6;
    cursor: not-allowed;
    pointer-events: none;
}


.btn-success-outline {
    color: #28a745; /* Bootstrap success green */
    background-color: transparent; /* Transparent background */
    border: 1px solid #28a745; /* Green border */
    border-radius: 4px; /* Slightly rounded corners */
    padding: 0.375rem 0.75rem; /* Padding for size */
    font-size: 1rem; /* Default font size */
    transition: all 0.3s ease-in-out; /* Smooth transition for hover effects */
    text-align: center;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}

.btn-success-outline:hover,
.btn-success-outline:focus {
    color: #fff; /* White text on hover */
    background-color: #28a745; /* Fill with success green */
    border-color: #28a745; /* Maintain border color */
    text-decoration: none; /* No underline */
}

.btn-success-outline:active {
    background-color: #218838; /* Darker green for active state */
    border-color: #1e7e34; /* Slightly darker border for active state */
    color: #fff; /* White text */
}

.btn-success-outline:disabled {
    color: #c3e6cb; /* Faded green */
    background-color: transparent;
    border-color: #c3e6cb;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-xs, .btn-group-xs > .btn {
    padding: 1px 5px!important;
    font-size: 12px;
    line-height: 1.5;
    border-radius: 3px;
}

.btn-danger-outline {
    color: #dc3545; /* Bootstrap danger red */
    background-color: transparent; /* Transparent background */
    border: 1px solid #dc3545; /* Red border */
    border-radius: 4px; /* Slightly rounded corners */
    padding: 0.375rem 0.75rem; /* Padding for size */
    transition: all 0.3s ease-in-out; /* Smooth transition for hover effects */
    text-align: center;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}

.btn-danger-outline:hover,
.btn-danger-outline:focus {
    color: #fff; /* White text on hover */
    background-color: #dc3545; /* Fill with danger red */
    border-color: #dc3545; /* Maintain border color */
    text-decoration: none; /* No underline */
}

.btn-danger-outline:active {
    background-color: #c82333; /* Darker red for active state */
    border-color: #bd2130; /* Slightly darker border for active state */
    color: #fff; /* White text */
}

.btn-danger-outline:disabled {
    color: #e2aeb6; /* Faded red */
    background-color: transparent;
    border-color: #e2aeb6;
    cursor: not-allowed;
    pointer-events: none;
}

.spinner-wrapper {
    position: fixed; /* Fixed position for the spinner */
    top: 0;
    left: 0;
    width: 100vw; /* Full viewport width */
    height: 100vh; /* Full viewport height */
    background-color: rgba(255, 255, 255, 0.7); /* Semi-transparent background */
    display: flex; /* Use flexbox for centering */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    z-index: 2000; /* Above Bootstrap modals (1050) and backdrops */
}

.spinner-border {
    width: 3rem; /* Set width of the spinner */
    height: 3rem; /* Set height of the spinner */
    border: 0.25em solid rgba(0, 123, 255, 0.25); /* Light border */
    border-top-color: #007bff; /* Blue color for the spinning part */
    border-radius: 50%; /* Make it circular */
    animation: spinner-border 0.75s linear infinite; /* Spinning animation */
}

/* Keyframes for the spinner animation */
@keyframes spinner-border {
    100% {
        transform: rotate(360deg); /* Complete rotation */
    }
}

.spinner-wrapper.hidden {
    display: none;
}
.text-info {
    color: #31708f !important;
    font-weight: 400;
}

.yearDropdown > li > a {
    padding: 5px 20px;
}

.yearDropdown > li > a {
    display: block;
    padding: 3px 20px;
    clear: both;
    font-weight: normal;
    line-height: 1.6;
    color: #777;
    white-space: nowrap;
}

.yearDropdown > li > a:hover, .yearDropdown > li > a:focus {
    text-decoration: none;
    color: #172b36;
    background-color: #f5f8fa;
}

.yearDropdown li.active {
    color: white!important;
    background-color: #3097D1;
}
.hidden{
    display: none;
}

.text-primary{
    color: #3097D1!important;
}

.progress-bar-success{
    background-color: #4eb76e!important;
}

.label-info {
    background-color: #8eb4cb;
    display: inline;
    padding: .2em .6em .3em;
    font-size: 75%;
    font-weight: bold;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: .25em;
}

/* added to display li element under ul with no bullets and on single line  */
ul.no-bullets {
    display: ruby;
    list-style-type: none; 
    padding: 0; 
    margin: 0 ;
}

 ul.no-bullets li{
    padding-right: 5px;
} 


.label-danger{
    background-color: #bf5329;
    display: inline;
    padding: .2em .6em .3em;
    font-size: 75%;
    font-weight: bold;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: .25em;
}

.label-warning {
    background-color: #cbb956;
    display: inline;
    padding: .2em .6em .3em;
    font-size: 75%;
    font-weight: bold;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: .25em;
}

.label-success {
    background-color: #4eb76e;
    display: inline;
    padding: .2em .6em .3em;
    font-size: 75%;
    font-weight: bold;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: .25em;
}


.btn-warning-outline {
    color: #e79912;
    background-color: transparent;
    border: 1px solid #e79912;
    border-radius: 4px;
    padding: 0.375rem 0.75rem;
    transition: all 0.3s ease-in-out;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}

.btn-warning-outline:hover,
.btn-warning-outline:focus {
    color: #fff;
    background-color: #e79912;
    border-color: #e79912;
    text-decoration: none;
}

.btn-warning-outline:active {
    background-color: #cf870f;
    border-color: #cf870f;
    color: #fff;
}

.btn-warning-outline:disabled {
    color: #f0d4a8;
    background-color: transparent;
    border-color: #f0d4a8;
    cursor: not-allowed;
    pointer-events: none;
}

.selAllForDel{
    right: -20px!important;
}

.dropdown-menu-overflow{
    max-height: 500px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Navigation tab css */
.document-nav .nav {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    border-bottom: 2px solid #ddd; /* Bottom border for the tab container */
}

.document-nav .nav li {
    margin: 0;
}

/* Style for links */
.document-nav .nav a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #007bff; /* Default text color */
    border: 1px solid transparent; /* Border for hover effect */
    border-bottom: none; /* Prevent bottom border from affecting layout */
    background-color: #f9f9f9; /* Default tab background */
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Hover effect */
.document-nav .nav a:hover {
    background-color: #f1f1f1;
    color: #333;
}

/* document-nav active tabs: see _section_tabs_styles.html.twig */

/* Optional: adjust font for better readability */
.document-nav .nav a {
    font-family: Arial, sans-serif;
    font-size: 14px;
}

.center-tabs .nav {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
    justify-content: center;
}

/* custom-pills-and-tab-secondary: see _section_tabs_styles.html.twig */

/* =============================================================================
   new2.html — Modern Blue Dashboard 2026 (scoped: body.layout-top-nav)
   CSS-only. Tokens mirror :root in new2.html (blue glass / soft radii).
   ============================================================================= */

body.layout-top-nav {
    --nd-primary: #4f46e5;
    --nd-primary-dark: #4338ca;
    --nd-primary-light: #eef2ff;
    --nd-secondary: #818cf8;
    --nd-secondary-dark: #6366f1;
    --nd-success: #10b981;
    --nd-warning: #e79912;
    --nd-danger: #ef4444;
    --nd-bg: #f0f2f8;
    --nd-bg2: #f8fafc;
    --nd-card: #fff;
    --nd-border: #e2e8f0;
    --nd-text: #0f172a;
    --nd-muted: #64748b;
    --nd-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 6px 16px rgba(0, 0, 0, 0.04);
    --nd-shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.06), 0 12px 28px rgba(0, 0, 0, 0.08);
    --nd-radius: 14px;
    --nd-radius-sm: 10px;
    font-family: 'Inter', 'Source Sans Pro', system-ui, -apple-system, sans-serif !important;
    background-color: #f0f2f8;
    background-image: radial-gradient(at 40% 20%, rgba(79, 70, 229, 0.04) 0, transparent 50%),
                      radial-gradient(at 80% 0%, rgba(129, 140, 248, 0.03) 0, transparent 50%),
                      radial-gradient(at 0% 50%, rgba(59, 130, 246, 0.03) 0, transparent 50%);
    background-attachment: fixed;
    color: var(--nd-text) !important;
}

/* Nav bar — Nexus nav: bg-nav rgba(255,255,255,0.88), border-bottom, blur */
body.layout-top-nav .main-header.navbar {
    height: 52px;
    min-height: 52px;
    padding-left: 0;
    padding-right: 0;
    background: #152f50 !important;
    border-bottom: 1px solid #1a3352 !important;
    box-shadow: none !important;
    align-items: center;
}

body.layout-top-nav .main-header .navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    margin-right: 1rem;
    height: 52px;
}

body.layout-top-nav .main-header .navbar-brand::before {
    content: '';
    display: block;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background-color: #fff;
    background-image: url('/favicon.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 24px 24px;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
    flex-shrink: 0;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

body.layout-top-nav .main-header .brand-text,
body.layout-top-nav .main-header .navbar-nav > .nav-item > .nav-link {
    color: #d6dbe2 !important;
    font-weight: 500;
    font-size: 13px;
}

body.layout-top-nav .main-header .brand-text {
    font-weight: 800 !important;
    font-size: 1.25rem !important;
    letter-spacing: -0.025em;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff;
}

body.layout-top-nav .main-header .navbar-nav .nav-link {
    border-radius: 10px;
    padding: 0.5rem 1rem !important;
    height: 40px;
    display: flex;
    align-items: center;
    font-size: 13px;
    font-weight: 500;
    color: #cbd5e1 !important;
    transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    border: none;
    background: transparent;
    gap: 6px;
}

body.layout-top-nav .main-header .navbar-nav .nav-link:hover,
body.layout-top-nav .main-header .navbar-nav .nav-link:focus {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff;
}

body.layout-top-nav .main-header .navbar-nav > .nav-item > .nav-link.active,
body.layout-top-nav .main-header .navbar-nav > .nav-item.show > .nav-link {
    background: #38bdf8 !important;
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a;
    font-weight: 600;
    box-shadow: none !important;
}

body.layout-top-nav .main-header .navbar-nav .nav-link i {
    font-size: 1.05rem;
}

body.layout-top-nav .main-header .navbar-nav .nav-link .nav-item-icon {
    font-size: 0.9rem;
    width: 1em;
    text-align: center;
    flex-shrink: 0;
}

body.layout-top-nav .main-header .navbar-toggler {
    border-radius: 10px;
    border: 1px solid #475569 !important;
    padding: 0.35rem 0.65rem;
}

body.layout-top-nav .main-header .navbar-nav .nav-link .menu-top-caret {
    font-size: 0.6rem;
    margin-left: 2px;
    opacity: 0.8;
    color: #94a3b8;
}

/* Menubar dropdown / submenu — Nexus-style white panel */
body.layout-top-nav .main-header .navbar-nav .dropdown-menu {
    background: #fff !important;
    padding: 0.5rem !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04) !important;
}

body.layout-top-nav .main-header .navbar-nav .dropdown-menu .dropdown-item,
body.layout-top-nav .main-header .navbar-nav .dropdown-menu .dropdown-header {
    color: #1e293b !important;
    -webkit-text-fill-color: #1e293b;
    border-radius: 10px;
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

body.layout-top-nav .main-header .navbar-nav .dropdown-menu .dropdown-item:hover,
body.layout-top-nav .main-header .navbar-nav .dropdown-menu .dropdown-item:focus {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a;
}

body.layout-top-nav .main-header .navbar-nav .dropdown-menu .dropdown-item.menu-submenu-active,
body.layout-top-nav .main-header .navbar-nav .dropdown-menu .dropdown-item.menu-submenu-active:hover,
body.layout-top-nav .main-header .navbar-nav .dropdown-menu .dropdown-item.menu-submenu-active:focus {
    background: #f1f5f9 !important;
    color: #4f46e5 !important;
    -webkit-text-fill-color: #4f46e5;
    font-weight: 600;
    box-shadow: none !important;
}

body.layout-top-nav .main-header .dropdown-submenu > .dropdown-item {
    display: flex;
    align-items: center;
}

body.layout-top-nav .main-header .dropdown-submenu > .dropdown-menu {
    display: none;
    background: #fff !important;
    border: 1px solid #e2e8f0;
    border-radius: 14px !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    overflow-y: auto;
    max-height: 70vh;
}

/* Parametres menu only: nested submenus open to the left (avoid clipping off-screen) */
body.layout-top-nav .main-header .menu-submenu-flyout-left .dropdown-submenu > .dropdown-menu {
    left: auto !important;
    right: 100% !important;
    margin-left: 0 !important;
    margin-right: 0.35rem !important;
    top: 0;
}

body.layout-top-nav .main-header .dropdown-submenu > .dropdown-menu.show {
    display: block;
}

/* Replace Bootstrap border-triangle carets with Font Awesome (see render-menus.html.twig) */
body.layout-top-nav .main-header .dropdown-submenu > .dropdown-item.dropdown-toggle::after,
body.layout-top-nav .main-header .navbar-nav > .nav-item.dropdown > .nav-link.dropdown-toggle::after {
    display: none !important;
    content: none !important;
}

body.layout-top-nav .main-header .menu-dropdown-link,
body.layout-top-nav .main-header .menu-nav-link {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    color: #cbd5e1 !important;
}

body.layout-top-nav .main-header .menu-dropdown-link {
    padding: 0.5rem 1rem !important;
    min-width: 11rem;
}

body.layout-top-nav .main-header .menu-item-icon {
    flex-shrink: 0;
    width: 1.15rem;
    text-align: center;
    font-size: 0.875rem;
    color: #d6dbe2 !important;
    opacity: 0.92;
}

body.layout-top-nav .main-header .menu-item-label {
    line-height: 1.35;
}

body.layout-top-nav .main-header .menu-submenu-caret {
    flex-shrink: 0;
    margin-left: auto;
    font-size: 0.65rem;
    color: var(--nd-muted);
    opacity: 0.85;
    transition: transform 0.2s ease, color 0.2s ease;
}

body.layout-top-nav .main-header .menu-top-caret {
    flex-shrink: 0;
    margin-left: 0.15rem;
    font-size: 0.6rem;
    opacity: 0.9;
    transition: transform 0.2s ease;
}

body.layout-top-nav .main-header .nav-item.show > .menu-nav-link .menu-top-caret {
    transform: rotate(180deg);
}

body.layout-top-nav .main-header .dropdown-submenu > .dropdown-item[aria-expanded="true"] .menu-submenu-caret {
    color: var(--nd-primary);
    opacity: 1;
}

body.layout-top-nav .main-header .dropdown-menu .dropdown-item:hover .menu-item-icon,
body.layout-top-nav .main-header .dropdown-menu .dropdown-item:focus .menu-item-icon,
body.layout-top-nav .main-header .dropdown-menu .dropdown-item.menu-submenu-active .menu-item-icon {
    color: var(--nd-primary);
    opacity: 1;
}

body.layout-top-nav .main-header .navbar-toggler {
    border-radius: 16px;
    border-color: var(--nd-border) !important;
}

body.layout-top-nav .main-header .img-circle {
    border-radius: 10px !important;
    border: 1px solid #e2e8f0 !important;
}

/* Main content canvas */
body.layout-top-nav .content-wrapper {
    background: #f0f2f8 !important;
}

body.layout-top-nav .content-wrapper > .container-fluid {
    padding-left: 2rem;
    padding-right: 2rem;
    padding-top: 1.5rem;
}

/* Primary content card shell */
body.layout-top-nav .content-wrapper .mainCard.card {
    border-radius: 14px !important;
    border: 1px solid #e2e8f0 !important;
    background: #fff !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 6px 16px rgba(0, 0, 0, 0.04) !important;
    overflow: visible;
}

body.layout-top-nav .content-wrapper .mainCard.card .card-body {
    padding-top: 1.75rem;
}

body.layout-top-nav .content-wrapper .blockTitle {
    font-weight: 800 !important;
    font-size: 1.5rem;
    letter-spacing: -0.025em;
    color: #0f172a !important;
}

/* Nested cards */
body.layout-top-nav .content-wrapper .card:not(.mainCard) {
    border-radius: 10px !important;
    border: 1px solid #e2e8f0 !important;
    background: #fff !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 6px 16px rgba(0, 0, 0, 0.04) !important;
    transition: box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1), transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

body.layout-top-nav .content-wrapper .card:not(.mainCard):hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06), 0 12px 28px rgba(0, 0, 0, 0.08) !important;
    transform: translateY(-2px);
}

body.layout-top-nav .content-wrapper .card-outline.card-primary {
    border-top: 3px solid var(--nd-primary) !important;
}

body.layout-top-nav .content-wrapper .card-outline.card-secondary {
    border-top: 3px solid var(--nd-secondary) !important;
}

body.layout-top-nav .content-wrapper .card-outline.card-success {
    border-top: 3px solid var(--nd-success) !important;
}

body.layout-top-nav .content-wrapper .card-header {
    border-bottom: 1px solid var(--nd-border);
    background: transparent;
}

body.layout-top-nav .content-wrapper .card-title {
    font-weight: 700;
    color: var(--nd-text);
}

/* Buttons — content area only (preserves navbar toggler / header controls) */
body.layout-top-nav .content-wrapper .btn {
    border-radius: 18px;
    font-weight: 700;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

body.layout-top-nav .content-wrapper .btn-primary,
body.layout-top-nav .content-wrapper .btn-info {
    background: linear-gradient(135deg, var(--nd-primary), var(--nd-secondary)) !important;
    border: none !important;
    color: #fff !important;
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.25);
}

body.layout-top-nav .content-wrapper .btn-primary:hover,
body.layout-top-nav .content-wrapper .btn-info:hover {
    box-shadow: 0 18px 36px rgba(37, 99, 235, 0.3);
    transform: translateY(-2px);
    color: #fff !important;
}

body.layout-top-nav .content-wrapper .btn-success {
    background: linear-gradient(135deg, #10b981, #34d399) !important;
    border: none !important;
    color: #fff !important;
}

body.layout-top-nav .content-wrapper .btn-outline-primary,
body.layout-top-nav .content-wrapper .btn-outline-info,
body.layout-top-nav .content-wrapper .btn-outline-secondary,
body.layout-top-nav .content-wrapper .btn-outline-success,
body.layout-top-nav .content-wrapper .btn-default {
    background: rgba(255, 255, 255, 0.75) !important;
    border: 1px solid var(--nd-border) !important;
    color: var(--nd-primary) !important;
    box-shadow: none;
}

body.layout-top-nav .content-wrapper .btn-outline-primary:hover,
body.layout-top-nav .content-wrapper .btn-outline-info:hover,
body.layout-top-nav .content-wrapper .btn-outline-secondary:hover,
body.layout-top-nav .content-wrapper .btn-outline-success:hover,
body.layout-top-nav .content-wrapper .btn-default:hover {
    border-color: var(--nd-border) !important;
    color: var(--nd-primary) !important;
    background: var(--nd-primary-light) !important;
}

body.layout-top-nav .content-wrapper .btn-warning {
    background: linear-gradient(135deg, #e79912, #f0b040) !important;
    border: none !important;
    color: #fff !important;
    box-shadow: 0 14px 30px rgba(231, 153, 18, 0.25);
}

body.layout-top-nav .content-wrapper .btn-warning:hover,
body.layout-top-nav .content-wrapper .btn-warning:focus {
    background: linear-gradient(135deg, #cf870f, #e79912) !important;
    border: none !important;
    color: #fff !important;
    box-shadow: 0 18px 36px rgba(231, 153, 18, 0.3);
    transform: translateY(-2px);
}

body.layout-top-nav .content-wrapper .btn-warning-outline {
    background: rgba(255, 255, 255, 0.75) !important;
    border: 1px solid #e79912 !important;
    color: #e79912 !important;
    box-shadow: none;
}

body.layout-top-nav .content-wrapper .btn-warning-outline:hover,
body.layout-top-nav .content-wrapper .btn-warning-outline:focus {
    background: #e79912 !important;
    border-color: #e79912 !important;
    color: #fff !important;
}

body.layout-top-nav .content-wrapper .btn-danger {
    border-radius: 18px;
    font-weight: 700;
}

/* Form controls — unified height for text inputs & selects (avoid clipped text / mismatched rows) */
body.layout-top-nav .content-wrapper .form-control {
    border-radius: 18px !important;
    border: 1px solid var(--nd-border) !important;
    background: rgba(255, 255, 255, 0.85) !important;
    box-sizing: border-box !important;
    min-height: 2.75rem;
    height: auto;
    line-height: 1.5;
    padding: 0.625rem 1rem;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

body.layout-top-nav .content-wrapper select.form-control,
body.layout-top-nav .content-wrapper select.custom-select {
    min-height: 2.75rem;
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
    padding-right: 2.25rem;
    line-height: 1.5;
    vertical-align: middle;
}

body.layout-top-nav .content-wrapper textarea.form-control {
    min-height: 6rem;
    height: auto;
    line-height: 1.5;
}

body.layout-top-nav .content-wrapper .form-control-sm {
    min-height: 2.125rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

body.layout-top-nav .content-wrapper select.form-control.form-control-sm,
body.layout-top-nav .content-wrapper select.custom-select.custom-select-sm {
    min-height: 2.125rem;
    padding-top: 0.375rem;
    padding-bottom: 0.375rem;
    padding-right: 1.75rem;
}

body.layout-top-nav .content-wrapper .form-control:focus {
    border-color: var(--nd-primary) !important;
    background: #fff !important;
    box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.08) !important;
}

body.layout-top-nav .content-wrapper label,
body.layout-top-nav .content-wrapper .col-form-label {
    font-weight: 700;
    color: #1e293b;
}

body.layout-top-nav .content-wrapper .input-group-text {
    border-radius: 18px !important;
    border: 1px solid var(--nd-border) !important;
    background: rgba(255, 255, 255, 0.85) !important;
}

/* -------------------------------------------------------------------------
   Checkbox & radio — new2.html Modern Controls (global form inputs)
   ------------------------------------------------------------------------- */
body.layout-top-nav {
    --nd-check-border: #bfdbfe;
    --nd-check-size: 24px;
    --nd-check-radius: 8px;
    --nd-label-text: #1e3945;
}

/* Shared scope: panel content, modals, auth login */
body.layout-top-nav .content-wrapper input[type="checkbox"]:not(.toggle):not(.custom-control-input),
body.layout-top-nav .content-wrapper input[type="radio"]:not(.custom-control-input),
body.layout-top-nav .modal input[type="checkbox"]:not(.toggle):not(.custom-control-input),
body.layout-top-nav .modal input[type="radio"]:not(.custom-control-input),
body.login-page input[type="checkbox"]:not(.toggle),
body.login-page input[type="radio"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: var(--nd-check-size, 24px);
    height: var(--nd-check-size, 24px);
    min-width: var(--nd-check-size, 24px);
    min-height: var(--nd-check-size, 24px);
    margin: 0;
    flex-shrink: 0;
    border: 2px solid var(--nd-check-border, #bfdbfe);
    background: #fff;
    cursor: pointer;
    vertical-align: middle;
    position: relative;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    float: none;
}

body.layout-top-nav .content-wrapper input[type="checkbox"]:not(.toggle):not(.custom-control-input),
body.layout-top-nav .modal input[type="checkbox"]:not(.toggle):not(.custom-control-input),
body.login-page input[type="checkbox"]:not(.toggle) {
    border-radius: var(--nd-check-radius, 8px);
}

body.layout-top-nav .content-wrapper input[type="radio"]:not(.custom-control-input),
body.layout-top-nav .modal input[type="radio"]:not(.custom-control-input),
body.login-page input[type="radio"] {
    border-radius: 50%;
}

body.layout-top-nav .content-wrapper input[type="checkbox"]:not(.toggle):not(.custom-control-input):checked,
body.layout-top-nav .modal input[type="checkbox"]:not(.toggle):not(.custom-control-input):checked,
body.login-page input[type="checkbox"]:not(.toggle):checked {
    background: linear-gradient(135deg, var(--nd-primary, #2563eb), var(--nd-secondary, #38bdf8));
    border-color: transparent;
}

body.layout-top-nav .content-wrapper input[type="checkbox"]:not(.toggle):not(.custom-control-input):checked::after,
body.layout-top-nav .modal input[type="checkbox"]:not(.toggle):not(.custom-control-input):checked::after,
body.login-page input[type="checkbox"]:not(.toggle):checked::after {
    content: '';
    position: absolute;
    left: 8px;
    top: 4px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

body.layout-top-nav .content-wrapper input[type="radio"]:not(.custom-control-input):checked,
body.layout-top-nav .modal input[type="radio"]:not(.custom-control-input):checked,
body.login-page input[type="radio"]:checked {
    border-color: var(--nd-primary, #2563eb);
    background: #fff;
}

body.layout-top-nav .content-wrapper input[type="radio"]:not(.custom-control-input):checked::after,
body.layout-top-nav .modal input[type="radio"]:not(.custom-control-input):checked::after,
body.login-page input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--nd-primary, #2563eb);
}

body.layout-top-nav .content-wrapper input[type="checkbox"]:not(.toggle):focus,
body.layout-top-nav .content-wrapper input[type="radio"]:focus,
body.layout-top-nav .modal input[type="checkbox"]:not(.toggle):focus,
body.layout-top-nav .modal input[type="radio"]:focus,
body.login-page input[type="checkbox"]:not(.toggle):focus,
body.login-page input[type="radio"]:focus {
    outline: none;
    box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.08);
}

body.layout-top-nav .content-wrapper input[type="checkbox"]:disabled,
body.layout-top-nav .content-wrapper input[type="radio"]:disabled,
body.layout-top-nav .modal input[type="checkbox"]:disabled,
body.layout-top-nav .modal input[type="radio"]:disabled,
body.login-page input[type="checkbox"]:disabled,
body.login-page input[type="radio"]:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Bootstrap Symfony: .form-check */
body.layout-top-nav .content-wrapper .form-check,
body.layout-top-nav .content-wrapper .form-check-inline,
body.layout-top-nav .modal .form-check,
body.layout-top-nav .modal .form-check-inline {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-left: 0;
    min-height: var(--nd-check-size, 24px);
}

body.layout-top-nav .content-wrapper .form-check-input,
body.layout-top-nav .modal .form-check-input {
    position: relative;
    margin-left: 0 !important;
    margin-top: 0 !important;
}

body.layout-top-nav .content-wrapper .form-check-label,
body.layout-top-nav .modal .form-check-label {
    font-weight: 600;
    color: var(--nd-label-text, #1e3945);
    margin-bottom: 0;
    cursor: pointer;
}

/* Bootstrap custom-control (Symfony checkbox-custom / radio-custom) */
body.layout-top-nav .content-wrapper .custom-control,
body.layout-top-nav .content-wrapper .custom-control-inline,
body.layout-top-nav .modal .custom-control,
body.layout-top-nav .modal .custom-control-inline {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-left: 0;
    min-height: var(--nd-check-size, 24px);
}

body.layout-top-nav .content-wrapper .custom-control-label::before,
body.layout-top-nav .content-wrapper .custom-control-label::after,
body.layout-top-nav .modal .custom-control-label::before,
body.layout-top-nav .modal .custom-control-label::after {
    display: none !important;
}

body.layout-top-nav .content-wrapper .custom-control-input,
body.layout-top-nav .modal .custom-control-input {
    position: relative;
    opacity: 1;
    z-index: 1;
}

body.layout-top-nav .content-wrapper .custom-control-label,
body.layout-top-nav .modal .custom-control-label {
    font-weight: 600;
    color: var(--nd-label-text, #1e3945);
    cursor: pointer;
}

body.layout-top-nav .content-wrapper .custom-control-input,
body.layout-top-nav .modal .custom-control-input {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: var(--nd-check-size, 24px);
    height: var(--nd-check-size, 24px);
    min-width: var(--nd-check-size, 24px);
    min-height: var(--nd-check-size, 24px);
    margin: 0;
    flex-shrink: 0;
    border: 2px solid var(--nd-check-border, #bfdbfe);
    background: #fff;
    cursor: pointer;
    vertical-align: middle;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

body.layout-top-nav .content-wrapper .custom-checkbox .custom-control-input,
body.layout-top-nav .modal .custom-checkbox .custom-control-input {
    border-radius: var(--nd-check-radius, 8px);
}

body.layout-top-nav .content-wrapper .custom-radio .custom-control-input,
body.layout-top-nav .modal .custom-radio .custom-control-input {
    border-radius: 50%;
}

body.layout-top-nav .content-wrapper .custom-checkbox .custom-control-input:checked,
body.layout-top-nav .modal .custom-checkbox .custom-control-input:checked {
    background: linear-gradient(135deg, var(--nd-primary, #2563eb), var(--nd-secondary, #38bdf8));
    border-color: transparent;
}

body.layout-top-nav .content-wrapper .custom-checkbox .custom-control-input:checked::after,
body.layout-top-nav .modal .custom-checkbox .custom-control-input:checked::after {
    content: '';
    position: absolute;
    left: 8px;
    top: 4px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

body.layout-top-nav .content-wrapper .custom-radio .custom-control-input:checked,
body.layout-top-nav .modal .custom-radio .custom-control-input:checked {
    border-color: var(--nd-primary, #2563eb);
    background: #fff;
}

body.layout-top-nav .content-wrapper .custom-radio .custom-control-input:checked::after,
body.layout-top-nav .modal .custom-radio .custom-control-input:checked::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--nd-primary, #2563eb);
}

/* AdminLTE legacy: .checkbox / .radio */
body.layout-top-nav .content-wrapper .checkbox,
body.layout-top-nav .content-wrapper .radio,
body.layout-top-nav .modal .checkbox,
body.layout-top-nav .modal .radio {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

body.layout-top-nav .content-wrapper .checkbox label,
body.layout-top-nav .content-wrapper .radio label,
body.layout-top-nav .modal .checkbox label,
body.layout-top-nav .modal .radio label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding-left: 0 !important;
    margin-bottom: 0;
    font-weight: 600;
    color: var(--nd-label-text, #1e3945);
    cursor: pointer;
}

/* new2.html markup: label.checkbox / label.radio with decorative span */
body.layout-top-nav label.checkbox:has(> span),
body.layout-top-nav label.radio:has(> span),
body.layout-top-nav .content-wrapper .checkbox label:has(> span),
body.layout-top-nav .content-wrapper .radio label:has(> span) {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: 600;
    color: var(--nd-label-text, #1e3945);
    margin-bottom: 0;
}

body.layout-top-nav label.checkbox:has(> span) > input,
body.layout-top-nav label.radio:has(> span) > input,
body.layout-top-nav .content-wrapper .checkbox label:has(> span) > input,
body.layout-top-nav .content-wrapper .radio label:has(> span) > input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
    pointer-events: none;
}

body.layout-top-nav label.checkbox:has(> span) > span,
body.layout-top-nav .content-wrapper .checkbox label:has(> span) > span {
    width: var(--nd-check-size, 24px);
    height: var(--nd-check-size, 24px);
    border-radius: var(--nd-check-radius, 8px);
    border: 2px solid var(--nd-check-border, #bfdbfe);
    background: #fff;
    position: relative;
    flex-shrink: 0;
    transition: background 0.3s ease, border-color 0.3s ease;
}

body.layout-top-nav label.radio:has(> span) > span,
body.layout-top-nav .content-wrapper .radio label:has(> span) > span {
    width: var(--nd-check-size, 24px);
    height: var(--nd-check-size, 24px);
    border-radius: 50%;
    border: 2px solid var(--nd-check-border, #bfdbfe);
    background: #fff;
    position: relative;
    flex-shrink: 0;
    transition: border-color 0.3s ease;
}

body.layout-top-nav label.checkbox:has(> span) > input:checked + span,
body.layout-top-nav .content-wrapper .checkbox label:has(> span) > input:checked + span {
    background: linear-gradient(135deg, var(--nd-primary, #2563eb), var(--nd-secondary, #38bdf8));
    border: none;
}

body.layout-top-nav label.checkbox:has(> span) > input:checked + span::after,
body.layout-top-nav .content-wrapper .checkbox label:has(> span) > input:checked + span::after {
    content: '';
    position: absolute;
    left: 8px;
    top: 4px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

body.layout-top-nav label.radio:has(> span) > input:checked + span,
body.layout-top-nav .content-wrapper .radio label:has(> span) > input:checked + span {
    border-color: var(--nd-primary, #2563eb);
}

body.layout-top-nav label.radio:has(> span) > input:checked + span::after,
body.layout-top-nav .content-wrapper .radio label:has(> span) > input:checked + span::after {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--nd-primary, #2563eb);
    position: absolute;
    top: 4px;
    left: 4px;
}

body.layout-top-nav label.checkbox:has(> span) > input:focus-visible + span,
body.layout-top-nav label.radio:has(> span) > input:focus-visible + span,
body.layout-top-nav .content-wrapper .checkbox label:has(> span) > input:focus-visible + span,
body.layout-top-nav .content-wrapper .radio label:has(> span) > input:focus-visible + span {
    box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.08);
}

/* Horizontal option groups */
body.layout-top-nav .content-wrapper .options,
body.layout-top-nav .modal .options {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* icheck-bootstrap (auth layout) — align pseudo-controls with new2 */
body.login-page {
    --nd-primary: #2563eb;
    --nd-secondary: #38bdf8;
    --nd-check-border: #bfdbfe;
    --nd-check-size: 24px;
    --nd-check-radius: 8px;
    --nd-label-text: #1e3945;
}

body.login-page [class*='icheck-'] > label {
    padding-left: calc(var(--nd-check-size, 24px) + 12px) !important;
    min-height: var(--nd-check-size, 24px);
    line-height: var(--nd-check-size, 24px);
    font-weight: 600;
    color: var(--nd-label-text, #1e3945);
}

body.login-page [class*='icheck-'] > input:first-child + label::before,
body.login-page [class*='icheck-'] > input:first-child + input[type='hidden'] + label::before {
    width: var(--nd-check-size, 24px) !important;
    height: var(--nd-check-size, 24px) !important;
    margin-left: calc(-1 * (var(--nd-check-size, 24px) + 12px)) !important;
    border: 2px solid var(--nd-check-border, #bfdbfe) !important;
    background: #fff !important;
    border-radius: var(--nd-check-radius, 8px) !important;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

body.login-page [class*='icheck-'] > input[type='radio']:first-child + label::before,
body.login-page [class*='icheck-'] > input[type='radio']:first-child + input[type='hidden'] + label::before {
    border-radius: 50% !important;
}

body.login-page [class*='icheck-'] > input:first-child:checked + label::before,
body.login-page [class*='icheck-'] > input:first-child:checked + input[type='hidden'] + label::before {
    background: linear-gradient(135deg, var(--nd-primary), var(--nd-secondary)) !important;
    border: none !important;
}

body.login-page [class*='icheck-'] > input[type='radio']:first-child:checked + label::before,
body.login-page [class*='icheck-'] > input[type='radio']:first-child:checked + input[type='hidden'] + label::before {
    background: #fff !important;
    border: 2px solid var(--nd-primary, #2563eb) !important;
}

body.login-page [class*='icheck-'] > input:first-child:checked + label::after,
body.login-page [class*='icheck-'] > input:first-child:checked + input[type='hidden'] + label::after {
    top: 4px !important;
    left: 0 !important;
    width: 5px !important;
    height: 10px !important;
    border: solid #fff !important;
    border-width: 0 2px 2px 0 !important;
    transform: translate(9.5px, 4px) rotate(45deg) !important;
}

body.login-page [class*='icheck-'] > input[type='radio']:first-child:checked + label::after,
body.login-page [class*='icheck-'] > input[type='radio']:first-child:checked + input[type='hidden'] + label::after {
    width: 12px !important;
    height: 12px !important;
    border: none !important;
    border-radius: 50% !important;
    background: var(--nd-primary, #2563eb) !important;
    transform: translate(6px, 6px) !important;
}

body.login-page [class*='icheck-'] > input:first-child:focus + label::before,
body.login-page [class*='icheck-'] > input:first-child:focus + input[type='hidden'] + label::before {
    box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.08);
}

/* Tables — DataTables + plain tables inside content */
body.layout-top-nav .content-wrapper table.dataTable thead th,
body.layout-top-nav .content-wrapper table.table thead th {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--nd-primary) !important;
    background: #eff6ff !important;
    border-bottom: 1px solid var(--nd-border) !important;
    padding: 0.85rem 1rem !important;
}

body.layout-top-nav .content-wrapper table.dataTable tbody td,
body.layout-top-nav .content-wrapper table.table tbody td {
    border-top: 1px solid #eff6ff !important;
    padding: 0.85rem 1rem !important;
    vertical-align: middle;
}

body.layout-top-nav .content-wrapper table.dataTable tbody tr:hover,
body.layout-top-nav .content-wrapper table.table tbody tr:hover {
    background: #f8fbff !important;
}

/* ---------- DataTables — chrome aligned with new design (overrides BS4 DT theme load order) ---------- */
body.layout-top-nav .content-wrapper div.dataTables_wrapper {
    color: var(--nd-muted);
    font-size: 0.875rem;
}

body.layout-top-nav .content-wrapper div.dataTables_wrapper div.row {
    margin-bottom: 0.75rem;
    align-items: center;
}

body.layout-top-nav .content-wrapper div.dataTables_length label,
body.layout-top-nav .content-wrapper div.dataTables_filter label {
    font-weight: 600 !important;
    color: var(--nd-text) !important;
    white-space: nowrap;
}

body.layout-top-nav .content-wrapper div.dataTables_length select {
    display: inline-block !important;
    width: auto !important;
    min-width: 4.5rem;
    margin: 0 0.35rem !important;
    padding: 0.4rem 2rem 0.4rem 0.75rem !important;
    border-radius: 16px !important;
    border: 1px solid var(--nd-border) !important;
    background: rgba(255, 255, 255, 0.9) !important;
    font-weight: 600 !important;
    color: var(--nd-text) !important;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.06);
    appearance: auto;
}

body.layout-top-nav .content-wrapper div.dataTables_filter input[type="search"],
body.layout-top-nav .content-wrapper div.dataTables_filter input.form-control {
    display: inline-block !important;
    border-radius: 999px !important;
    border: 1px solid var(--nd-border) !important;
    background: rgba(255, 255, 255, 0.9) !important;
    padding: 0.45rem 1.1rem !important;
    min-width: 14rem;
    margin-left: 0.5rem !important;
    font-weight: 500;
    color: var(--nd-text) !important;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.06);
}

body.layout-top-nav .content-wrapper div.dataTables_filter input[type="search"]:focus,
body.layout-top-nav .content-wrapper div.dataTables_filter input.form-control:focus {
    border-color: var(--nd-primary) !important;
    box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.08) !important;
    outline: none !important;
}

/* Buttons: Excel, ColVis, etc. */
body.layout-top-nav .content-wrapper div.dt-buttons .btn,
body.layout-top-nav .content-wrapper div.dt-buttons .dt-button,
body.layout-top-nav .content-wrapper div.dt-buttons button.dt-button,
body.layout-top-nav .content-wrapper div.dt-buttons a.dt-button {
    border-radius: 16px !important;
    font-weight: 600 !important;
    padding: 0.4rem 1rem !important;
    margin-right: 0.35rem;
    margin-bottom: 0.25rem;
    border: 1px solid var(--nd-border) !important;
    background: rgba(255, 255, 255, 0.85) !important;
    color: var(--nd-primary) !important;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.06);
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

body.layout-top-nav .content-wrapper div.dt-buttons .btn:hover,
body.layout-top-nav .content-wrapper div.dt-buttons .dt-button:hover,
body.layout-top-nav .content-wrapper div.dt-buttons button.dt-button:hover,
body.layout-top-nav .content-wrapper div.dt-buttons a.dt-button:hover {
    background: linear-gradient(135deg, var(--nd-primary), var(--nd-secondary)) !important;
    color: #fff !important;
    border-color: transparent !important;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.22);
    transform: translateY(-2px);
}

body.layout-top-nav .content-wrapper .buttons-colvis {
    background: rgba(255, 255, 255, 0.85) !important;
    color: var(--nd-primary) !important;
    border-color: var(--nd-border) !important;
}

body.layout-top-nav .content-wrapper .buttons-colvis:hover {
    background: linear-gradient(135deg, var(--nd-primary), var(--nd-secondary)) !important;
    color: #fff !important;
    border-color: transparent !important;
}

body.layout-top-nav .content-wrapper .dt-button-collection .dropdown-menu .dropdown-item {
    color: var(--nd-primary) !important;
    background: #fff !important;
    border-radius: 8px;
    margin: 2px 6px;
}

body.layout-top-nav .content-wrapper .dt-button-collection .dropdown-menu .dropdown-item:hover {
    background: var(--nd-primary-light) !important;
}

body.layout-top-nav .content-wrapper .dt-button-collection .dropdown-menu .dropdown-item.active {
    background: linear-gradient(135deg, var(--nd-primary), var(--nd-secondary)) !important;
    color: #fff !important;
}

/* Scroll container (horizontal / fixedHeader) */
body.layout-top-nav .content-wrapper div.dataTables_scroll {
    border: 1px solid var(--nd-border);
    border-radius: var(--nd-radius-sm);
    overflow: hidden;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--nd-shadow);
}

body.layout-top-nav .content-wrapper div.dataTables_scrollHead {
    background: #eff6ff;
    overflow: hidden !important;
}

body.layout-top-nav .content-wrapper div.dataTables_scrollBody {
    border-top: none;
    scrollbar-color: rgba(37, 99, 235, 0.45) #eff6ff;
    scrollbar-width: thin;
}

/*
 * scrollX sizing clone in scrollBody: keep for width calculation, hide visually (not display:none).
 */
body.layout-top-nav .content-wrapper div.dataTables_scrollBody > table > thead tr,
body.layout-top-nav .mainCard div.dataTables_scrollBody > table > thead tr {
    height: 0 !important;
    max-height: 0 !important;
    line-height: 0 !important;
    border: none !important;
}

body.layout-top-nav .content-wrapper div.dataTables_scrollBody > table > thead th,
body.layout-top-nav .content-wrapper div.dataTables_scrollBody > table > thead td,
body.layout-top-nav .mainCard div.dataTables_scrollBody > table > thead th,
body.layout-top-nav .mainCard div.dataTables_scrollBody > table > thead td {
    height: 0 !important;
    max-height: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border-top: none !important;
    border-bottom: none !important;
    line-height: 0 !important;
    font-size: 0 !important;
    overflow: hidden !important;
    vertical-align: top !important;
}

body.layout-top-nav .content-wrapper div.dataTables_scrollBody > table > thead .dataTables_sizing,
body.layout-top-nav .mainCard div.dataTables_scrollBody > table > thead .dataTables_sizing {
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    line-height: 0 !important;
    white-space: nowrap !important;
}

body.layout-top-nav .content-wrapper div.dataTables_scrollBody::-webkit-scrollbar {
    height: 10px;
    width: 10px;
}

body.layout-top-nav .content-wrapper div.dataTables_scrollBody::-webkit-scrollbar-thumb {
    background: rgba(37, 99, 235, 0.35);
    border-radius: 999px;
}

body.layout-top-nav .content-wrapper div.dataTables_scrollBody::-webkit-scrollbar-track {
    background: #eff6ff;
}

body.layout-top-nav .content-wrapper .dataTables_scrollBody tfoot,
body.layout-top-nav .mainCard .dataTables_scrollBody tfoot {
    display: none !important;
}

body.layout-top-nav .content-wrapper div.dataTables_scrollFoot {
    background: #eff6ff;
    border-top: 1px solid var(--nd-border);
}

body.layout-top-nav .content-wrapper div.dataTables_scrollFoot table tfoot th,
body.layout-top-nav .content-wrapper div.dataTables_scrollFoot table tfoot td {
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--nd-primary) !important;
    background: #eff6ff !important;
    padding: 0.55rem 0.75rem !important;
    border-top: 1px solid var(--nd-border) !important;
}

/* Per-column filter row (only when thead uses tr.filters — avoids styling DataTables scroll clones) */
body.layout-top-nav .content-wrapper table.dataTable thead tr.filters th,
body.layout-top-nav .content-wrapper table.dataTable thead tr.filters td {
    background: #f8fbff !important;
    border-bottom: 1px solid var(--nd-border) !important;
    padding: 0.45rem 0.35rem !important;
    vertical-align: middle;
}

body.layout-top-nav .content-wrapper table.dataTable thead tr.filters input,
body.layout-top-nav .content-wrapper table.dataTable thead tr.filters select {
    border-radius: 12px !important;
    border: 1px solid var(--nd-border) !important;
    background: rgba(255, 255, 255, 0.95) !important;
    font-size: 0.8125rem !important;
    padding: 0.3rem 0.45rem !important;
    width: 100%;
    max-width: 100%;
}

body.layout-top-nav .content-wrapper table.dataTable thead tr.filters input:focus,
body.layout-top-nav .content-wrapper table.dataTable thead tr.filters select:focus {
    border-color: var(--nd-primary) !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1) !important;
    outline: none !important;
}

/* Sorting arrows — tint primary */
body.layout-top-nav .content-wrapper table.dataTable thead .sorting:before,
body.layout-top-nav .content-wrapper table.dataTable thead .sorting:after,
body.layout-top-nav .content-wrapper table.dataTable thead .sorting_asc:before,
body.layout-top-nav .content-wrapper table.dataTable thead .sorting_asc:after,
body.layout-top-nav .content-wrapper table.dataTable thead .sorting_desc:before,
body.layout-top-nav .content-wrapper table.dataTable thead .sorting_desc:after {
    color: var(--nd-primary);
    opacity: 0.35 !important;
}

body.layout-top-nav .content-wrapper table.dataTable thead .sorting_asc:before,
body.layout-top-nav .content-wrapper table.dataTable thead .sorting_desc:after {
    opacity: 0.95 !important;
}

/* Empty state */
body.layout-top-nav .content-wrapper table.dataTable td.dataTables_empty {
    padding: 2.5rem 1rem !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    color: var(--nd-muted) !important;
    background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%) !important;
    border: none !important;
}

/* Processing */
body.layout-top-nav .content-wrapper div.dataTables_processing {
    border-radius: var(--nd-radius-sm) !important;
    background: rgba(255, 255, 255, 0.96) !important;
    border: 1px solid var(--nd-border) !important;
    box-shadow: var(--nd-shadow) !important;
    color: var(--nd-primary) !important;
    font-weight: 600 !important;
}

/* Info text */
body.layout-top-nav .content-wrapper div.dataTables_info {
    padding-top: 0.75rem !important;
    font-weight: 500;
    color: var(--nd-muted) !important;
}

/* Pagination (BS4 integration inside wrapper) */
body.layout-top-nav .content-wrapper div.dataTables_paginate ul.pagination {
    gap: 0.25rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

body.layout-top-nav .content-wrapper div.dataTables_paginate ul.pagination .page-item .page-link {
    border-radius: 12px !important;
    border: 1px solid var(--nd-border) !important;
    color: var(--nd-primary) !important;
    font-weight: 600;
    padding: 0.35rem 0.65rem;
    margin: 0 2px;
    background: rgba(255, 255, 255, 0.9) !important;
}

body.layout-top-nav .content-wrapper div.dataTables_paginate ul.pagination .page-item .page-link:hover {
    background: var(--nd-primary-light) !important;
    border-color: var(--nd-border) !important;
}

body.layout-top-nav .content-wrapper div.dataTables_paginate ul.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--nd-primary), var(--nd-secondary)) !important;
    color: #fff !important;
    border-color: transparent !important;
}

body.layout-top-nav .content-wrapper div.dataTables_paginate ul.pagination .page-item.disabled .page-link {
    opacity: 0.45;
    color: var(--nd-muted) !important;
}

/* Badges / pills in content */
body.layout-top-nav .content-wrapper .badge {
    border-radius: 999px;
    font-weight: 600;
    padding: 0.35em 0.65em;
}

body.layout-top-nav .content-wrapper .badge-primary,
body.layout-top-nav .content-wrapper .badge-info {
    background: var(--nd-primary-light) !important;
    color: var(--nd-primary) !important;
}

/* Dropdown menus inside content & header */
body.layout-top-nav .dropdown-menu {
    border-radius: var(--nd-radius-sm);
    border: 1px solid var(--nd-border);
    box-shadow: var(--nd-shadow);
}

/* Alerts */
body.layout-top-nav .content-wrapper .alert {
    border-radius: var(--nd-radius-sm);
    border: none;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

/* Pagination (DataTables) */
body.layout-top-nav .content-wrapper .page-link {
    border-radius: 10px !important;
    margin: 0 2px;
}

body.layout-top-nav .content-wrapper .page-item.active .page-link {
    background: linear-gradient(135deg, var(--nd-primary), var(--nd-secondary)) !important;
    border-color: transparent !important;
}

body.layout-top-nav .content-wrapper .dataTables_paginate .page-item a {
    color: var(--nd-primary) !important;
}

body.layout-top-nav .content-wrapper .dataTables_paginate .page-item.active a {
    background: linear-gradient(135deg, var(--nd-primary), var(--nd-secondary)) !important;
    color: #fff !important;
    border-color: transparent !important;
}

/* Optional: modern form helpers (new2.html) — add classes in Twig as needed */
body.layout-top-nav .content-wrapper .modern-input-icon {
    position: relative;
}

body.layout-top-nav .content-wrapper .modern-input-icon > i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    z-index: 2;
    pointer-events: none;
}

body.layout-top-nav .content-wrapper .modern-input-icon .form-control,
body.layout-top-nav .content-wrapper .modern-input-icon .icon-input {
    padding-left: 2.75rem;
}

body.layout-top-nav .content-wrapper select.modern-select,
body.layout-top-nav .content-wrapper .modern-select {
    width: 100%;
    border-radius: 18px !important;
    border: 1px solid var(--nd-border) !important;
    background: rgba(255, 255, 255, 0.85) !important;
    padding: 0.65rem 1rem;
    appearance: none;
    -webkit-appearance: none;
}

body.layout-top-nav .content-wrapper .modern-options {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

body.layout-top-nav .content-wrapper .filter-chip {
    padding: 0.65rem 1.1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--nd-border);
    color: var(--nd-primary);
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
    display: inline-block;
}

body.layout-top-nav .content-wrapper .filter-chip:hover {
    transform: translateY(-2px);
    background: var(--nd-primary-light);
    color: var(--nd-primary);
    border-color: var(--nd-border);
}

body.layout-top-nav .content-wrapper .filter-chip.active {
    background: linear-gradient(135deg, var(--nd-primary), var(--nd-secondary));
    color: #fff;
    border: none;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.22);
}

body.layout-top-nav .main-footer {
    background: rgba(255, 255, 255, 0.95) !important;
    border-top: 1px solid var(--nd-border) !important;
    color: var(--nd-muted) !important;
}

@media (max-width: 1100px) {
    body.layout-top-nav .content-wrapper > .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Panel mainCard: calmer forms + lists (layout optimization; scoped to top-nav shell) */
body.layout-top-nav .mainCard .card-body fieldset {
    margin-bottom: 1.25rem;
}

body.layout-top-nav .mainCard .card-body fieldset > legend {
    margin-bottom: 0.65rem;
}

body.layout-top-nav .mainCard .dataTables_wrapper {
    margin-top: 0.35rem;
}

body.layout-top-nav .mainCard .dataTables_filter,
body.layout-top-nav .mainCard .dataTables_length,
body.layout-top-nav .mainCard .dt-buttons {
    margin-bottom: 0.5rem;
}

body.layout-top-nav .mainCard .card + .card {
    margin-top: 1rem;
}

/* /auditeur/list/* — auditor list page + DataTable shell (matches mainCard / nd tokens) */
body.layout-top-nav .mainCard .auditor-list-page {
    margin-top: 0.25rem;
}

body.layout-top-nav .mainCard .aud-list-filter-card {
    border-radius: var(--nd-radius-sm) !important;
    background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%) !important;
    border: 1px solid var(--nd-border) !important;
}

body.layout-top-nav .mainCard .aud-list-filter-card .card-body {
    padding: 1rem 1.25rem;
}

body.layout-top-nav .mainCard .aud-list-filter-form .form-control {
    min-width: 14rem;
    border-radius: 12px !important;
    border: 1px solid var(--nd-border) !important;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.06);
}

body.layout-top-nav .mainCard .aud-list-search-btn {
    border-radius: 12px !important;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.12);
}

body.layout-top-nav .mainCard .aud-list-table-card {
    border-radius: var(--nd-radius-sm) !important;
    overflow: visible;
    border: 1px solid var(--nd-border) !important;
    background: rgba(255, 255, 255, 0.98) !important;
}

body.layout-top-nav .mainCard .aud-list-table-card > .card-body {
    background: #fff;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

body.layout-top-nav .mainCard .aud-list-table-card .dataTables_wrapper {
    padding: 0.75rem 1rem 1rem;
    min-width: 0;
}

body.layout-top-nav .mainCard .dt-toolbar-auditors {
    margin-bottom: 0.5rem !important;
}

body.layout-top-nav .mainCard .aud-list-table-card table#all-auditeurs.dataTable.table-sm thead th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--nd-muted);
    font-weight: 700;
    white-space: nowrap;
    border-bottom-width: 2px !important;
    border-bottom-color: var(--nd-border) !important;
    background: #eff6ff !important;
}

body.layout-top-nav .mainCard .aud-list-table-card table.dataTable.table-sm tbody td {
    font-size: 0.8125rem;
    vertical-align: middle;
}

body.layout-top-nav .mainCard .aud-list-fiche-btn {
    white-space: nowrap;
}

/* /planning/relance_auditeur/{id}/list_relance — filter + nav toolbar */
body.layout-top-nav .mainCard .relance-auditeur-list-page {
    margin-top: 0.25rem;
}

body.layout-top-nav .mainCard .relance-list-toolbar {
    gap: 0.75rem;
}

body.layout-top-nav .mainCard .relance-list-nav .btn {
    font-weight: 600;
    border-radius: 0;
}

body.layout-top-nav .mainCard .relance-list-nav .btn:first-child {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

body.layout-top-nav .mainCard .relance-list-nav .btn:last-child {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

/* Wide auditor table (scrollX off): native horizontal scroll, no sizing-thead ghost row */
body.layout-top-nav .mainCard .auditeurs-norme-list-dt .dataTables_wrapper {
    overflow-x: auto;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
}

/* -------------------------------------------------------------------------
   Period / navigation filter pills (facture & devis listings, planning, etc.)
   ------------------------------------------------------------------------- */
.filter-pills {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.filter-pills--center {
    justify-content: center;
}

.filter-pills--tight {
    margin-bottom: 0.5rem;
}

a.filter-pill,
.filter-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.45rem 1rem;
    border-radius: 9999px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: 0.8125rem;
    line-height: 1.25;
    text-decoration: none !important;
    border: 1px solid #e0e6ed;
    background: #fff;
    color: #3b71ca !important;
    box-sizing: border-box;
    transition: color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    cursor: pointer;
    vertical-align: middle;
}

a.filter-pill:hover,
.filter-pill:hover {
    color: #2563eb !important;
    border-color: #cbd5e1;
    text-decoration: none !important;
}

.filter-pill i,
.filter-pill .fa,
.filter-pill .fas,
.filter-pill .far {
    color: inherit;
}

.filter-pill--active,
a.filter-pill.filter-pill--active,
.filter-pill.filter-pill--active {
    color: #fff !important;
    background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%);
    border-color: transparent;
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.38);
}

.filter-pill--active:hover,
a.filter-pill.filter-pill--active:hover,
.filter-pill.filter-pill--active:hover {
    color: #fff !important;
    border-color: transparent;
    box-shadow: 0 3px 12px rgba(59, 130, 246, 0.45);
}

.client-show-comment-actions .btn-success {
    background-color: #7743c7;
    border-color: #6400ff;
    min-width: 120px;
}

.client-show-comment-actions .btn-success:hover,
.client-show-comment-actions .btn-success:focus {
    background-color: #6400ff;
    border-color: #5200d6;
}

.client-show-summary {
    background-color: #fafbfc;
}

.client-show-summary .panel-menu {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.panel-profile.shadow-sm .panel-profile-img {
    object-fit: cover;
    width: 100px;
    height: 100px;
}

/* Online Users */
.online-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #22c55e;
    margin-right: 8px;
    box-shadow: 0 0 6px rgba(34,197,94,0.5);
    flex-shrink: 0;
}

.online-user-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: #374151;
    transition: background-color 0.15s;
}

.online-user-item:hover {
    background-color: #f3f4f6;
}

.online-user-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.online-dropdown .nc-dropdown-header {
    background-color: #fafbfc;
    border-radius: 0.375rem 0.375rem 0 0;
}