:root {
    --vm-primary: #22c55e;
}

#masthead, #colophon {
	display: none;
}
.navbar-nav {
	margin-left: 0!important;
}
.page-wrapper {
	width: 100%;
}
.startbar {
	background-color: #202221;
}
.startbar .startbar-menu .navbar-nav .nav-item .nav-link {
	color: #a1a8bd;
}
.startbar .startbar-menu .navbar-nav .nav-item .nav-link.active, .startbar .startbar-menu .navbar-nav .nav-item .nav-link:hover {
	color: #22c55e;
}
.startbar .startbar-menu .navbar-nav .nav-item .nav-link.active {
    background-color: rgba(34, 197, 94, .05);
}
.startbar .startbar-menu .navbar-nav .nav-item .nav-link.active i {
    color: #22c55e;
}
.ast-container {
	background-color:#f3f3f3;
}
body[data-sidebar-size="default"] .logo-small {
	display: none;
}
@media all and (min-width:1200px){
	body[data-sidebar-size="default"] .startbar .brand {
		padding-left: 25px;
		padding-right: 25px;
	}
}

ul.parsley-errors-list {
    margin-left: 0;
    padding-left: 0;
}
ul.parsley-errors-list li {
	list-style-type: none;
	color: #f53e3e;
    font-style: italic;
}
a.nav-link:focus {
	outline: none;
}

/** Bootstrap **/
.btn-primary {
    --bs-btn-color: #ffffff;
    --bs-btn-bg: #222222;
    --bs-btn-border-color: #222222;
    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: #555555;
    --bs-btn-hover-border-color: #555555;
    --bs-btn-focus-shadow-rgb: 12, 12, 12;
    --bs-btn-active-color: #ffffff;
    --bs-btn-active-bg: #555555;
    --bs-btn-active-border-color: #555555;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #ffffff;
    --bs-btn-disabled-bg: #aaaaaa;
    --bs-btn-disabled-border-color: #aaaaaa;
}

.btn-danger:focus {
    background-color: #ef4d56;
    border-color: #ef4d56;
}
.btn-close {
	box-shadow: none;
}
.btn-close:hover {
	background-color: transparent;
}

#stats_generales_wrap {
    row-gap: 15px;
}

.table-responsive img {
    max-width: 15%;
    height: 50px;
    object-fit: cover;
    object-position: center;
}
/*.table td, .table th {
    white-space: nowrap;
}*/

@media all and (min-width:1200px) {
    body[data-sidebar-size="default"] .page-wrapper .page-content {
        width: calc(100vw - 288px);
    }
    body[data-sidebar-size="default"] .apexcharts-canvas {
        width: 100% !important;
    }
    body[data-sidebar-size="default"] .apexcharts-svg {
        width: 100%;
    }
    #offcanvasStockDetails {
        width: 50%;
    }
    #offcanvasOrderDetails {
        width: 50%;
    }
}

/* Skeleton Dashboard */

.skeleton-card {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 8px;
    background-color: #ffffff;
    min-height: 94px;
    border: 1px solid #e2e7f1;
    gap: 15px;
}
.skeleton-icon {
    height: 24px;
    width: 24px;
    background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
    background-size: 200% 100%;
    border-radius: 50%;
    animation: shimmer 1.5s infinite linear;
}
.skeleton-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.skeleton-line {
    height: 14px;
    width: 60%;
    background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite linear;
    border-radius: 4px;
}
.skeleton-number {
    height: 18px;
    width: 30%;
    background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite linear;
    border-radius: 4px;
}
.skeleton-percentage {
    height: 11px;
    width: 20%;
    background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite linear;
    border-radius: 4px;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Skeleton Chart */

.chart-container {
    width: 100%;
    max-width: 100%;
    height: 300px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    position: relative;
}

.skeleton-bar {
    width: 12%; /* Large barre */
    background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite linear;
    border-radius: 5px 5px 0 0;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Hauteur variable des barres */
.skeleton-bar:nth-child(1) { height: 40%; }
.skeleton-bar:nth-child(2) { height: 70%; }
.skeleton-bar:nth-child(3) { height: 60%; }
.skeleton-bar:nth-child(4) { height: 90%; }
.skeleton-bar:nth-child(5) { height: 50%; }
.skeleton-bar:nth-child(6) { height: 72%; }

.custom_range_input, .box_select_season, .custom_date_input {
    display: none;
}
.custom_date_input {
    background-color: #fff;
}
.custom_date_input:focus, .custom_range_input:focus {
    background-color: #fff;
    border-color: #D1D5DB!important;
}

@media all and (min-width: 1200px){
    .date-picker-wrapper .month-wrapper {
        width: 450px!important;
    }
    .custom_range_input, .custom_date_input {
        width: 300px!important;
    }
}

@media all and (min-width: 1024px){
    .dashboard_section_title {
        display: flex;
        gap: 10px;
        align-items: center;
    }
    .dashboard_section_title hr {
        flex-grow: 1;
        margin: 0px;
    }
}

.sortable i {
    font-size: 16px;
}
.sortable {
    cursor: pointer;
}
.sortable:hover span {
    text-decoration: underline;
}

@keyframes fadeInOut {
    0% {
      opacity: 0.15;
    }
    25% {
      opacity: 0.07;
    }
    50% {
      opacity: 0.05;
    }
    75% {
      opacity: 0.07;
    }
    100% {
      opacity: 0.15;
    }
}
  
.placeholder {
    animation: fadeInOut 1.5s infinite ease-in-out;
}
.placeholder.vm-dark {
    color: #cecece;
}
.ui-widget.ui-widget-content {
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
}
.box_search {
    width: 150%;
    position: relative;
}
.box_search .clear_search {
    position: absolute;
    right: 2%;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 20px;
    display: none;
}
.box_search_gen {
    width: 150%;
    position: relative;
}
.box_search_gen .clear_search {
    position: absolute;
    right: 2%;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 20px;
    display: none;
}
.search_product_gen, .search_product_gen::placeholder {
    font-size: 13px !important;
    padding-right: 13% !important;
}
.search_product, .search_product::placeholder {
    font-size: 13px!important;
}
.search_customer, .search_customer::placeholder {
    font-size: 13px!important;
}
.box_filters_table {
    display: flex;
    gap: 10px;
    align-items: center;
    width: 100%;
}
.box_filters_table > * {
    flex: 1;
}
.select2-container .select2-selection--single {
    height: 38px;
}
.select2-container .select2-selection--single .select2-selection__rendered {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 50%;
    transform: translateY(-50%);
}
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--vm-primary)!important;
}
.select2-container--default .select2-selection--single .select2-selection__clear {
    font-size:30px;
}

.donut-skeleton {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: conic-gradient(
        #e0e0e0 0% 25%,
        #f5f5f5 25% 50%,
        #e0e0e0 50% 75%,
        #f5f5f5 75% 100%
    );
    animation: spin 1.2s linear infinite;
    margin: 0 auto;
    position: relative;
}

.donut-skeleton::after {
    content: '';
    position: absolute;
    top: 25%;
    left: 25%;
    width: 50%;
    height: 50%;
    background-color: white;
    border-radius: 50%;
}

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

.form-control:disabled {
    background-color: #f3f3f3;
    opacity: 0.5;
    border-color: #c4c4c4;
    color: rgba(0, 0, 0, 0.5);
}
#toast-container>div {
    opacity: 1;
    box-shadow: none;
}
tr.commandes_mt {
    background-color: #f6bfff;
}