.main-header-container .header-link-icon{
    border: 1.6px solid #A1A1A1;
    color: #212B37;
    border-radius: 8px;
}

.main-header-container .header-link-icon path{
    stroke: #212B37;
}

.header-element .avatar{
    width: 2rem;
    height: 2rem;
    border-radius: 8px;
}

.app-header{
    border-block-end: none;
}

.app-sidebar{
    border-inline-end: none;
}

.app-sidebar .main-sidebar-header{
    border-block-end: none;
    border-inline-end: none;
    justify-content: start;
}

.app-sidebar .main-sidebar-header .header-logo img{
    height: 3.5rem;
}
[data-icon-overlay="open"] .main-header-container{
    margin-left: 165px;
}
:not([data-toggled="icon-overlay-close"]) .side-menu-icon,[data-icon-overlay="open"] .side-menu-icon{
    display: none;
}
[data-toggled="icon-overlay-close"]:not([data-icon-overlay="open"]) .side-menu-icon{
    display: block;
    font-size: 1.3rem;
}
[data-toggled="icon-overlay-close"]:not([data-icon-overlay="open"]) .side-menu__item{
    padding: 4px 4px;
}
body{
    background: #F9FAF8;
}
.app-sidebar .side-menu__item{
    font-weight: 600;
    font-size: 0.8125rem;
    color: var(--novabox-secondary);
}
.app-sidebar .side-menu__item.active{
    background-color: var(--primary-color);
    color: var(--novabox-white);
}
.app-sidebar .side-menu__item.active .side-menu__label, .app-sidebar .side-menu__item.active .side-menu__angle{
    color: var(--novabox-white);
}

[data-menu-styles=light] {
    --menu-prime-color: var(--menu-prime-color);
}

.open > a.side-menu__item {
    background-color: var(--novabox-primary-light) !important;
    color: var(--novabox-white);
}
/* .app-sidebar .side-menu__item:hover {
    background-color: transparent;
    color: var(--novabox-primary);
} */
.app-sidebar .side-menu__item:hover {
    background-color: var(--novabox-primary-light) !important;
    /* color: var(--novabox-white) !important; */
    color: var(--novabox-primary) !important;
}

.app-sidebar .has-sub.open > .side-menu__item:hover {
    background-color: var(--novabox-primary-light);
    color: var(--novabox-white);
}

.app-sidebar .has-sub.open .slide-menu .side-menu__item:hover{
    color: var(--novabox-primary);
}

.footer{
    border-block-start: none;
}
.main-menu{
    padding-top: 15px;
}

/* --- Nova Box Dashboard - Ultra Precision Version --- */

:root {
    --nova-radius: 12px;
    --nova-shadow: 0px 1px 50px 0px #00000014;
}

/* Titles and Header Floating */
.nova-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0.5rem 0 1.5rem 0;
}

.nova-floating-title {
    font-size: 2rem;
    font-weight: 400;
    color: var(--novabox-secondary);
    letter-spacing: -0.5px;
}

.nova-title-info-icon {
    font-size: 1.375rem;
    color: #9CA3AF;
    margin-left: 8px;
    opacity: 0.7;
}

/* Header Action Tools */
.nova-tool-row {
    display: flex;
    gap: 1.25rem;
}

.nova-filter-box {
    min-width: 130px;
    background: white;
    border: 1px solid var(--input-border);
    border-radius: 8px;
    height: 42px;
    padding: 0 2.5rem 0 1.25rem;
    font-size: 0.95rem;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23212B37' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.nova-search-wrapper {
    position: relative;
    max-width: 320px;
}

.nova-search-wrapper input {
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--input-border);
    border: 1px solid var(--input-border);
    height: 42px;
    padding: 0 3rem 0 1.25rem;
    font-size: 0.95rem;
    box-shadow: 0px 1px 50px 0px #00000014;
}

.nova-search-wrapper i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    color: var(--novabox-secondary);
}

/* Floating Action Circle Buttons */
.nova-action-btns-group {
    display: flex;
    gap: 0.35rem;
    margin-bottom: 1rem;
}

.btn-nova-square-action {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid var(--default-border);

    border-radius: 8px;
    color: var(--novabox-secondary);
    box-shadow: 0px 1px 50px 0px #00000014;
    transition: all 0.2s;
}

.btn-nova-square-action:hover {
    background: #f8fafc;
    transform: translateY(-1px);
}

/* The Tables and Form Cards */
.nova-card-white {
    background: #fff;
    border-radius: var(--nova-radius);
    box-shadow: var(--nova-shadow);
    border: 1px solid #E8E7E7;
    margin-bottom: 2.5rem; /* Reserve space for floating pagination */
    overflow: visible;
    position: relative;
}

/* Table Design Refined (Header) */
.nova-datatable-refined thead th {
    border-bottom: 1px solid var(--novabox-primary);
    font-size: 1rem !important;
    font-weight: 400 !important;
    color: #212B37 !important;
    padding: 0.85rem 0.25rem !important;
    background-color: transparent !important;
    position: relative;
    cursor: pointer;
    vertical-align: middle;
}

/* Remove default DataTables sorting arrows */
.nova-datatable-refined thead .sorting::before,
.nova-datatable-refined thead .sorting::after,
.nova-datatable-refined thead .sorting_asc::before,
.nova-datatable-refined thead .sorting_asc::after,
.nova-datatable-refined thead .sorting_desc::before,
.nova-datatable-refined thead .sorting_desc::after {
    display: none !important;
}

/* Custom Sorting Icons using background-image */
.nova-datatable-refined thead th.sorting,
.nova-datatable-refined thead th.sorting_asc,
.nova-datatable-refined thead th.sorting_desc {
    padding-right: 2rem !important; /* Make room for the arrows */
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
}

/* Default sorting arrows (Quiet) */
.nova-datatable-refined thead th.sorting {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23CAD1D9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 15 5 5 5-5'/%3E%3Cpath d='m7 9 5-5 5 5'/%3E%3C/svg%3E") !important;
}

/* Active Sorting Ascending */
.nova-datatable-refined thead th.sorting_asc {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238A9B75' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 15 5 5 5-5'/%3E%3Cpath d='m7 9 5-5 5 5' style='stroke: %23212B37;'/%3E%3C/svg%3E") !important;
}

/* Active Sorting Descending */
.nova-datatable-refined thead th.sorting_desc {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238A9B75' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 15 5 5 5-5' style='stroke: %23212B37;'/%3E%3Cpath d='m7 9 5-5 5 5'/%3E%3C/svg%3E") !important;
}

/* Action column (usually non-sortable) */
.nova-datatable-refined thead th:last-child {
    background-image: none !important;
    padding-right: 1.25rem !important;
    text-align: right;
}

.nova-datatable-refined tbody td {
    padding: 1.5rem 1.25rem !important;
    vertical-align: middle !important;
    color: #4B5563;
    border: none !important;
}

.nova-datatable-refined tbody tr {
    border: none !important;
}

/* Hide Default DataTables Search (Using custom one instead) */
.dataTables_filter {
    display: none;
}

/* Enlarged Row Action Buttons */
.btn-row-action {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    margin: 0 4px;
    transition: all 0.2s;
    box-shadow: 0px 1px 50px 0px #00000014;
    cursor: pointer;
}

.btn-row-action.btn-search {
    background: white;
    border: 1.5px solid #E2E8F0;
    color: #9CA3AF;
}

.btn-row-action.btn-edit {
    background: var(--novabox-primary);
    color: white;
}

.btn-row-action.btn-delete {
    background: #D9825B;
    color: white;
}

/* Pagination Footer Displacement (Outside Card) */
.nova-datatable-footer {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    margin-top: 1.5rem !important;
    padding: 0;
    z-index: 10;
}

/* Ensure parents allow the overflow */
.dataTables_wrapper {
    overflow: visible !important;
}

/* Align columns within the displaced footer */
.nova-datatable-footer .col-4:first-child { text-align: left; }
.nova-datatable-footer .col-4:last-child { text-align: right; }

/* Info Styling */
.dataTables_info {
    padding-top: 0 !important;
    font-weight: 400;
    color: #212B37;
}

/* Length Selector Styling */
.dataTables_length {
    margin-bottom: 0 !important;
}

.dataTables_length label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    color: #212B37;
}

.dataTables_length select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='10' viewBox='0 0 24 24' fill='none' stroke='%23212B37' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 5px center;
    padding: 0 30px 0 10px !important;
    border: 1px solid var(--novabox-secondary);
    border-radius: 4px;
    height: 30px;
    background-color: white;
}

/* Pagination Buttons Styling */
.dataTables_paginate {
    display: flex;
    justify-content: flex-end;
}

.pagination {
    margin-bottom: 0;
    gap: 4px;
    display: flex;
    list-style: none;
    padding: 0;
}

.dataTables_paginate .page-item .page-link,
.dataTables_paginate .paginate_button {
    border: none !important;
    padding: 0;
    color: #212B37 !important;
    background: transparent !important;
    font-weight: 400;
    border-radius: 4px;
    transition: all 0.2s;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.75rem;
    padding: 0.5rem 0.10rem;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* Je veux selectionner les boutons de chiffres (entre précédent et suivant) */
.dataTables_paginate .pagination li.page-item:not(.previous):not(.next) .page-link {
    font-size: 1rem;
}

/* Active Page Circle */
.dataTables_paginate .page-item.active .page-link,
.dataTables_paginate .paginate_button.current {
    background: #8A9B75 !important;
    color: white !important;
    border-radius: 50% !important;
    width: 32px;
    height: 32px;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(138, 155, 117, 0.3);
}

.dataTables_paginate .page-item.disabled .page-link,
.dataTables_paginate .paginate_button.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.dataTables_paginate .page-item:not(.active):not(.disabled) .page-link:hover,
.dataTables_paginate .paginate_button:not(.current):not(.disabled):hover {
    color: #8A9B75 !important;
}

/* Form Specifics */
.nova-form-section {
    padding: 2.25rem 2.5rem;
}

.nova-field-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--novabox-secondary);
    margin-bottom: 0.6rem;
}

.nova-field-input {
    width: 100%;
    border: 1px solid var(--input-border);
    border-radius: 8px;
    height: 42px;
    padding: 0 1.25rem;
    font-size: 0.95rem;
    color: var(--novabox-secondary);
    background: #fff;
    transition: border-color 0.2s;
}

.nova-icon-circle-secondary {
    width: 32px;
    height: 32px;
    background-color: var(--novabox-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin: 0 5px;
}

.nova-icon-circle-secondary img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

textarea.nova-field-input {
    height: auto !important;
    min-height: 100px !important;
    padding: 12px 1.25rem !important;
    line-height: 1.6 !important;
}

/* Nova Box Custom Modal */
.nova-modal-card {
    border-radius: 10px !important;
    border: none !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1) !important;
    overflow: hidden;
}

.btn-nova-modal-cancel {
    background-color: #FDEEE7 !important;
    color: #FE7C58 !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 10px 30px !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    transition: filter 0.2s;
}

.btn-nova-modal-confirm {
    background-color: #FE7C58 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 10px 30px !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    transition: filter 0.2s;
}

.btn-nova-modal-cancel:hover, .btn-nova-modal-confirm:hover {
    filter: brightness(0.95);
}

.nova-modal-text {
    color: #212B37;
    font-size: 1.15rem;
    line-height: 1.4;
    margin-bottom: 0;
}

/* Simple Modal Classes */
.nova-modal-card.simple .modal-body {
    text-align: left !important;
}

.nova-modal-card.simple .nova-modal-text {
    text-align: left !important;
    font-size: 1.25rem !important;
    margin-bottom: 1.2rem !important;
}

.nova-modal-separator {
    height: 1px;
    background-color: #F0F0F0;
    margin: 1.5rem 0;
}

.btn-nova-modal-primary {
    background-color: var(--novabox-primary) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 12px 25px !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    width: 100%;
}

.btn-nova-modal-secondary {
    background-color: var(--novabox-secondary) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 12px 25px !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    width: 100%;
}

.nova-field-input:focus {
    border-color: var(--novabox-primary);
    outline: none;
}

/* Custom File Input Styling */
.nova-field-input[type="file"] {
    position: relative;
    cursor: pointer;
    line-height: 40px; /* Align text vertically */
}

.nova-field-input[type="file"]::-webkit-file-upload-button {
    display: none;
}

.nova-field-input[type="file"]::file-selector-button {
    display: none;
}

.nova-field-input[type="file"] {
    text-align: center;
    color: var(--novabox-secondary);
}

/* Calendar Box Styling */
.nova-calendar-input-wrapper {
    position: relative;
}

/* Hide the default date placeholder when empty */
input[type="date"].empty {
    color: transparent !important;
}

input[type="date"].empty::-webkit-datetime-edit {
    color: transparent !important;
}

input[type="date"].empty:focus {
    color: inherit !important;
}

input[type="date"].empty:focus::-webkit-datetime-edit {
    color: inherit !important;
}

.nova-calendar-box {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 1px solid var(--input-border);
    color: #9CA3AF;
    cursor: pointer;
    z-index: 1;
}

/* Hide native browser date picker icon (global) */
.nova-calendar-input-wrapper input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 2;
}

/* Specific Add Button for Function */
.btn-nova-inline-add {
    width: 44px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--input-border);
    border-radius: 8px;
    background: white;
    color: #6B7280;
    transition: all 0.2s;
}

/* Outside Form Footer Buttons */
.nova-form-footer-outside {
    display: flex;
    justify-content: flex-end;
    gap: 1.25rem;
    margin-top: 2.5rem;
    padding-bottom: 2rem;
}

.main-content{
    padding-left: 0;
}
footer{
    /* position: fixed; */
    bottom: 0;
    width: 100%;
    padding-left: 0 !important;
}
.btn-nova-final {
    padding: 0.75rem 2.75rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    transition: all 0.2s;
}

.btn-nova-final:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.btn-nova-final.btn-dark { background: #1F2937; color: white; }
.btn-nova-final.btn-green { background: var(--novabox-primary); color: white; }

.custom-toggle-switch > label::before{
    border: 1.5px solid var(--novabox-secondary);
}

/* Mettre les paires en couleur */
table.dataTable.table-striped>tbody>tr.odd>*{
    box-shadow: inset 0 0 0 9999px rgb(255 255 255 / 5%);
}

/* Mettre les impaires en couleur */
table.dataTable.table-striped>tbody>tr.even>*{
    box-shadow: inset 0 0 0 9999px #F5F5F580;
}
.avatar-header{
   border: 1.6px solid #A1A1A1;
   border-radius: 0.5rem;
   width: 2rem;
   height: 2rem;
}

.btn-fixed-bottom {
        position: sticky !important;
        bottom: 35px !important;
        z-index: 10 !important;
        padding: 15px 0 !important;
}

/* ========================================
   Select2 - Global Arrow Customization
   ======================================== */

/* Hide the default Select2 triangle arrow completely */
.select2-container--default .select2-selection--single .select2-selection__arrow b {
    display: none !important;
}

/* Style the arrow container and use SVG chevron */
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100% !important;
    right: 12px !important;
    top: 0 !important;
    width: 20px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 16px !important;
}

/* Multiple select - search icon on the right */
.select2-container--default .select2-selection--multiple {
    padding-right: 40px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 16px !important;
}

/* Multiple select - clean up clear button */
.select2-container--default .select2-selection--multiple .select2-selection__clear {
    margin-right: 8px;
}
