body {
    font-family: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
}
/* Fix Select2 dropdown hidden behind fixed navbar (z-index 1075) */
.select2-container--open .select2-dropdown {
    z-index: 1080;
}

.hide {
    display: none;
}

.dashboard-filter-button {
    margin-top: 45px;
}
.blockOverlay {
    z-index: 1040;
}
@media only screen and (max-width: 768px) {
    .dashboard-filter-button {
        margin-top: 15px;
    }
}

.loader_upload {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    height: 100%;
    z-index: 9999;
}

.loader_upload .line-scale-pulse-out {
    transform: translate(-50%, -50%);
    top: 50%;
    position: absolute;
    left: 50%;
    padding: 20px 20px;
    background: white;
    border-radius: 6px;
}

.center {
    text-align: center;
}

.highlight {
    background: #f7e7d3;
    min-height: 30px;
    list-style-type: none;
}

.handle {
    min-width: 18px;
    background: var(--bs-paper-bg, #fff);
    display: inline-block;
    cursor: move;
    margin-right: 10px;
    width: 100%;
    padding: 0.75rem 1.25rem;
}
.handle:hover,
.handle:focus {
    background: var(--bs-tertiary-bg, #f1f3f4);
}
.list-group-item {
    padding: 0;
    margin-bottom: 10px;
}

.dd-handle {
    height: 35px;
}

/****************refonte style*******************/
.app-theme-white .app-page-title {
    background: #0E0F0F;
    color: #fff;
}
.form-control {
    border-radius: 8px;
    border: solid 1px var(--bs-border-color, #d1d9e6);
    background-color: var(--bs-body-bg, #fff);
    color: var(--bs-body-color, inherit);
    min-height: 48px;
}
.btn.btn-wide {
    padding: 9px 20px;
}
.row-card-dashbord {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
}
.col-item-dashbord > .widget-chart {
    height: 100%;
    border-radius: 16px;
    border: none;
}
.bg-chiffre {
    background-color: #0E0F0F;
}
.bg-chiffre-net {
    background-color: #1a1a1c;
}
.bg-panier {
    background-color: #E40521;
}
.bg-commande {
    background-color: #E40521;
}
.bg-offre {
    background-color: #0E0F0F;
}
.bg-remise {
    background-color: #ffb43f;
}
.widget-chart .widget-subheading {
    opacity: 1;
}
.fixed-sidebar .app-main .app-main__outer {
    background: #f1f1f9;
}
.card-header,
.card-title {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.55;
    color: var(--bs-heading-color, #444050);
}
.icon-wrapper i {
    font-size: 34px;
    color: #fff !important;
}
.icon-wrapper .bg-white {
    background-color: transparent !important;
}
.table td {
    font-size: 14px;
    line-height: 1.71;
    color: var(--bs-body-color, #0f0f10);
    border-top: none;
}
.table tbody tr:nth-child(even) {
    background-color: var(--bs-tertiary-bg, #faf9fd);
}
.table thead th {
    border-bottom: 1px solid var(--bs-border-color, #c6ccd4);
}
.table th,
.table td {
    border-top: none;
}
.btn-group .btn.btn_dates {
    font-weight: 400;
    background: #fff;
    border: solid 1px #ebe8ea;
    border-radius: 0 !important;
    font-size: 12px;
    line-height: 2;
    text-align: center;
    color: #686a93;
}
.btn-group .btn.btn_dates:hover,
.btn-group .btn.btn_dates.active {
    color: #fff;
    background-color: #E40521;
    border-color: #E40521;
}
.btn-group .btn.btn_dates:first-child {
    border-radius: 8px 0 0 8px !important;
}
.btn-group .btn.btn_dates:last-child {
    border-radius: 0 8px 8px 0 !important;
}

/* Old ArchitectUI button/link color overrides removed — using Vuexy theme colors */
/************Custum Checkbox*******************/
.custum_checkbox {
    display: block;
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: normal;
    color: #0f0f10;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
.custum_checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}
.custum_checkbox .checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 24px;
    width: 24px;
    border-radius: 8px;
    border: solid 1px var(--bs-border-color, #d1d9e6);
    background-color: var(--bs-body-bg, #fff);
}
.custum_checkbox:hover input ~ .checkmark {
    /*background-color: #ccc;*/
}
.custum_checkbox input:checked ~ .checkmark {
    background-color: #686a93;
    border: solid 1px #686a93;
}
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}
.custum_checkbox input:checked ~ .checkmark:after {
    display: block;
}
.custum_checkbox .checkmark:after {
    left: 7px;
    top: 3px;
    width: 7px;
    height: 13px;
    border: solid white;
    border-width: 0 2px 2px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}
/************Custum Radio*******************/
.custum_radio {
    display: block;
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    cursor: pointer;
    /* old value : 16px*/
    font-size: 10px;
    font-weight: 400;
    letter-spacing: normal;
    color: #0f0f10;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
.custum_radio input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}
.custum_radio .checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 24px;
    width: 24px;
    border-radius: 50%;
    border: solid 1px var(--bs-border-color, #d1d9e6);
    background-color: var(--bs-body-bg, #fff);
}
.custum_radio:hover input ~ .checkmark {
    /*background-color: #ccc;*/
}
.custum_radio input:checked ~ .checkmark {
    background-color: #686a93;
    border: solid 1px #686a93;
}
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}
.custum_radio input:checked ~ .checkmark:after {
    display: block;
}
.custum_radio .checkmark:after {
    left: 5px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-width: 0 2px 2px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
    background: #fff;
    border-radius: 50%;
}
/************END Custum Radio*******************/

.form-check-inline {
    width: 30%;
}
.form-check {
    padding-left: 0;
}
.form-inline {
    margin-bottom: 20px;
}
table.dataTable thead .sorting:before,
table.dataTable thead .sorting:after,
table.dataTable thead .sorting_asc:before,
table.dataTable thead .sorting_asc:after,
table.dataTable thead .sorting_desc:before,
table.dataTable thead .sorting_desc:after,
table.dataTable thead .sorting_asc_disabled:before,
table.dataTable thead .sorting_asc_disabled:after,
table.dataTable thead .sorting_desc_disabled:before,
table.dataTable thead .sorting_desc_disabled:after {
    color: #0f0f10;
    font-size: 18px;
    opacity: 1;
}
.header-megamenu.nav > li > .nav-link {
    color: #0f0f10;
    font-size: 15px;
}
.nav-link .nav-link-icon {
    opacity: 1;
    color: #686a93;
    font-size: 18px;
    font-weight: bold;
}
@media (max-width: 991px) {
    .dropdown-menu {
        top: 31% !important;
    }
}

@media (max-width: 767px) {
    .col-item-dashbord {
        margin-bottom: 20px;
    }
    .form-check-inline {
        width: 45%;
    }
}
@media (max-width: 480px) {
    .form-check-inline {
        width: 100%;
        margin-right: 0;
    }
}
.row-to-clone {
    border-top: 1px solid #eaeaf2;
    padding-top: 15px;
}
.title_ingredients {
    margin: 0;
    font-size: 20px;
}

.btn-outline-light-blue {
    color: #fff;
    border-color: #4cccff;
    background-color: #4cccff;
}
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-top: 2px solid #007bff; /* Couleur du spinner */
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.page-title-actions {
    margin-bottom: 20px; /* Add spacing below the action bar */
}

.custom-filter {
    min-width: 300px; /* Ensure the dropdown is wide enough */
    padding-top: 5px;
}

.custom-select {
    text-align: center;
}

.custom-filter label {
    white-space: nowrap; /* Prevent label text from wrapping */
}

.form-check-input {
    display: inline-block !important;
    margin-top: 0.3rem;
    margin-right: 0.5rem;
}

.category-item {
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}

.subcategory-list {
    max-height: 200px;
    overflow-y: auto;
    padding: 0.5rem 2rem;
}

/* Make the category header sticky */
.category-header {
    position: sticky;
    top: 0;
    background: var(--bs-paper-bg, white);
    padding: 0.75rem 1rem;
    z-index: 1;
    border-bottom: 1px solid var(--bs-border-color, #eee);
}



@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* DataTables processing overlay — full table cover with centered spinner */
.dataTables_processing.card,
.dataTables_processing {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: var(--bs-paper-bg, rgba(255, 255, 255, 0.85)) !important;
    opacity: 0.85;
    z-index: 10 !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    align-items: center !important;
    justify-content: center !important;
}
/* When DataTables shows processing, use flex; when hidden it sets display:none which must win */
.dataTables_processing[style*="display: block"],
.dataTables_processing[style*="display:block"] {
    display: flex !important;
}
/* Hide default DataTable bouncing dots */
.dataTables_processing > div:last-child {
    display: none !important;
}

/* DataTables circular pagination */
.dataTables_wrapper .pagination .page-item .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.125rem;
    min-height: 2.125rem;
    padding: 0.3rem;
    border-radius: 50% !important;
    border: none;
    margin: 0 0.15rem;
    color: var(--bs-body-color);
    background-color: transparent;
    font-size: 0.9375rem;
    line-height: 1;
    transition: all 0.15s ease-in-out;
}
.dataTables_wrapper .pagination .page-item .page-link:hover {
    background-color: rgba(155, 58, 58, 0.08);
    color: #9B3A3A;
}
.dataTables_wrapper .pagination .page-item.active .page-link {
    background-color: #9B3A3A !important;
    color: #fff !important;
    border-color: #9B3A3A !important;
    box-shadow: 0 0.125rem 0.25rem rgba(155, 58, 58, 0.4);
}
.dataTables_wrapper .pagination .page-item.disabled .page-link {
    opacity: 0.5;
    pointer-events: none;
}
/* Pagination icon sizing */
.dataTables_wrapper .pagination .page-link .icon-base {
    display: inline-block;
    width: 1.125rem;
    height: 1.125rem;
    font-size: 1.125rem;
    vertical-align: middle;
}
/* Remove default pagination border between items */
.dataTables_wrapper .pagination {
    gap: 0.125rem;
}

/* DataTables card border */
.dataTables_wrapper {
    border: 1px solid var(--bs-border-color);
    border-radius: 0.375rem;
    padding: 0;
    overflow: hidden;
}
.dataTables_wrapper .row:first-child,
.dataTables_wrapper .row:last-child {
    padding: 0.75rem 1rem;
    margin: 0;
    background: var(--bs-paper-bg, #fff);
    color: var(--bs-body-color, inherit);
}
.dataTables_wrapper .row:first-child {
    border-bottom: 1px solid var(--bs-border-color);
}
.dataTables_wrapper .row:last-child {
    border-top: 1px solid var(--bs-border-color);
}

/* DataTables horizontal scroll for wide tables */
.dataTables_wrapper .row:nth-child(2) {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.dataTables_wrapper table.dataTable {
    min-width: 100%;
    white-space: nowrap;
}

/* Dropzone-style file upload */
.dropzone-wrapper {
    border: 2px dashed var(--bs-border-color, #d9dee3);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
    background: var(--bs-paper-bg, #fff);
    position: relative;
}
.dropzone-wrapper:hover,
.dropzone-wrapper.dragover {
    border-color: #9B3A3A;
    background-color: rgba(155, 58, 58, 0.04);
}
.dropzone-wrapper .dropzone-content,
.dropzone-wrapper .dropzone-content * {
    pointer-events: none;
}
.dropzone-wrapper .dropzone-remove {
    pointer-events: auto;
}
.dropzone-wrapper .dropzone-preview-img {
    border: 1px solid var(--bs-border-color, #d9dee3);
    padding: 0.25rem;
    background: #fff;
}
