﻿/* ===== TEMP: global Manrope font (remove this block to revert) ===== */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700&display=swap');

body,
.h1, .h2, .h3, .h4, .h5, .h6,
h1, h2, h3, h4, h5, h6,
.btn, .badge, .nav, .card, input, select, textarea, button {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}
/* ===== END TEMP ===== */

@keyframes hidePreloader {
    0% {
        width: 100%;
        height: 100%
    }

    100% {
        width: 0;
        height: 0
    }
}

body > div.preloader {
    position: fixed;
    background: #fff;
    width: 100%;
    height: 100%;
    z-index: 1071;
    opacity: 0;
    transition: opacity .5s ease;
    overflow: hidden;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center
}

body:not(.loaded) > div.preloader {
    opacity: 1
}

body:not(.loaded) {
    overflow: hidden
}

body.loaded > div.preloader {
    animation: hidePreloader .5s linear .5s forwards
}

#notifs.badge-circle.badge-md {
    width: 2rem;
}

input[type='number'],
.numeric {
    text-align: right;
}

.card span.badge.badge-danger.badge-circle {
    display: inline;
    padding: 0 5px !important;
}

table.dataTable tbody td {
    white-space: normal;
}

#notifs.badge-circle.badge-md {
    display: inline;
    padding: 5px !important;
    width: auto;
}

.navbar-expand-lg .navbar-nav .nav-link {
    white-space: nowrap;
}

body {
    /* padding-bottom: 65px; */
    padding-top: 100px;
    min-height: 100vh;
}

    body.modal-open {
        overflow: visible;
    }

/* Sticky-footer pattern (not position:sticky):
   form is a flex column tall enough to fill the viewport below the fixed header;
   footer's margin-top:auto pushes it to the bottom on short pages.
   On tall pages the footer is at the end of flow, only visible after scrolling. */
form#form1 {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 100px); /* 100px = body padding-top for the fixed header */
}

#footer-main {
    margin-top: auto;
}

.footer.footer-info {
    padding-top: 1rem;
}

.list > tr:hover {
    box-shadow: 2px 2px 5px lightgrey;
}

hr {
    margin-top: 1rem;
    margin-bottom: 1rem;
}


.dropdown-toggle::after {
    border-top: 0 !important;
    vertical-align: middle !important;
}

.nav-link.btn {
    padding: 1rem;
}

.table-cards tbody tr td.dataTables_empty {
    border-radius: 0.75rem;
}

.card .table td {
    padding-left: 1rem;
    padding-right: 1rem;
    vertical-align: top;
}

.card .table tr.group td {
    background-color: transparent
}

.table-cards tbody tr.group td {
    border-radius: 0.75rem;
}

.disp-hidden {
    display: none;
}

.disp-error {
    color: red;
    font-weight: bold;
}

    .disp-error ~ * {
        border: 1px solid red;
    }

i.fa-provider {
    font-size: 2.8rem;
    /*    color: orange;*/
    /* border: 1px solid red; */
    padding: 0.6rem;
    background-color: #E2E8F0;
    border-radius: 5px;
}

.select2-selection--single {
    height: 100% !important;
}

.select2-selection__rendered {
    word-wrap: break-word !important;
    text-overflow: inherit !important;
    white-space: normal !important;
}

span.select2-selection.select2-selection--single {
    /* height: calc(4.5rem + 2px); */
    /* display: table; */
    border: 1px solid #E2E8F0;
}

.select2-container span.categoryCode {
    color: #008aff;
    font-weight: bold;
}

.select2-container span.categoryLabel {
    color: #afafaf;
}

.select2-container span.colorCode {
    color: #008aff;
    font-weight: bold;
}

.select2-container span.colorLabel {
    color: #afafaf;
}

.select2-container span.referenceCode {
    color: #008aff;
    font-weight: bold;
}

.select2-container span.referenceLabel {
    color: #afafaf;
}

table#MainContent_TblResultProduits > tbody > tr,
table#MainContent_TblResultOrders > tbody > tr,
table#MainContent_TblResultWarehouses > tbody > tr,
table#MainContent_TblResultCategories > tbody > tr,
table#MainContent_TblResultUtilisateurs > tbody > tr,
table#MainContent_TblResultWarehouses > tbody > tr {
    cursor: pointer;
}

td.productResultName {
    white-space: normal;
    font-weight: bold;
}

/* 
    Prevents modal from scrolling to top page
    Overrides QuickTheme shitty css
*/

.table-wrap tr td:not(.text-nowrap) {
    white-space: normal;
    max-width: 0;
}

.table-wrap-fix tr td:not(.text-nowrap) {
    max-width: initial;
}

.fc .fc-button {
    background-color: #FFBE3D !important;
    border-color: #FFBE3D !important;
}

.fc .fc-button-active {
    background-color: #ff6a00 !important;
    border-color: #ff6a00 !important;
}

.fc .fc-submitbutton-button {
    background-color: #ff6a00 !important;
    border-color: #ff6a00 !important;
}

[visible=False] {
    display: none !important;
}

.nav-item {
    cursor: pointer;
}


.form-control.is-invalid.select2-hidden-accessible + span > span > span {
    border-color: #dc3545;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url(data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e);
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.modal-vertical.modal-vertical-xl {
    width: 1000px;
    max-width: 100%;
}

.modal-vertical.modal-vertical-max {
    width: 1250px;
    max-width: 100%;
}

.modal-vertical.modal-vertical-l {
    width: 712px;
    max-width: 100%;
}

.modal-vertical.modal-vertical-md {
    width: 500px;
    max-width: 100%;
}

table#tableLists {
    min-width: 100% !important;
}

.scale-hover {
    transition: transform 0.2s;
}

    .scale-hover:hover {
        transform: scale(1.01);
    }

.darken-hover:not(:has(.show)):hover {
    background-color: #f9f8f8;
}

.collapsibleCustomBorderTop.show {
    border-top: 1px solid #E2E8F0 !important;
}

.fs-c1 {
    font-size: 14px;
}

.fs-sc1 {
    font-size: 12px !important;
}

.showVal span {
    display: block;
}

.showVal input {
    display: none;
}

.showInput span {
    display: none;
}

.showInput input {
    display: block;
}

.parentShowHide .toggle1 {
    display: block;
}

.parentShowHide .toggle2 {
    display: block;
}

.classChildrenHide {
    display: none;
}

.toggleHide > .classChildrenHide {
    display: inline-block;
}

.tableCustom td,
.tableCustom .th {
    word-break: break-word;
    white-space: break-spaces;
    word-wrap: break-word;
}

table.customTableReducePadding .form-control {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
}

table.customTableReducePadding td,
table.customTableReducePadding th {
    padding-left: 0.6rem !important;
    padding-right: 0.6rem !important;
}

.list-group-item:first-child {
    border-radius: 0;
}

.list-group-item {
    border-left: 0;
    border-radius: 0;
}


.accordion .card {
    margin-bottom: 30px;
    border: 0;
}

    .accordion .card .card-header {
        border: 0;
        -webkit-box-shadow: 0 0 20px 0 rgba(213, 213, 213, 0.5);
        box-shadow: 0 0 20px 0 rgba(213, 213, 213, 0.5);
        border-radius: 2px;
        padding: 0;
    }

        .accordion .card .card-header .btn-header-link {
            color: #fff;
            display: block;
            text-align: left;
            background: #FFE472;
            color: #222;
            padding: 20px;
        }

            .accordion .card .card-header .btn-header-link:after {
                content: "\f107";
                font-family: 'Font Awesome 5 Free';
                font-weight: 900;
                float: right;
            }

            .accordion .card .card-header .btn-header-link.collapsed {
                background: #A541BB;
                color: #fff;
            }

                .accordion .card .card-header .btn-header-link.collapsed:after {
                    content: "\f106";
                }

    .accordion .card .collapsing {
        background: #FFE472;
        line-height: 30px;
    }

    .accordion .card .collapse {
        border: 0;
    }

        .accordion .card .collapse.show {
            background: #FFE472;
            line-height: 30px;
            color: #222;
        }



@media (min-width: 992px) {
    .navbar-expand-lg .navbar-nav .nav-link {
        padding-right: 0.45rem;
        padding-left: 0.45rem;
    }
}

@media print {
    table {
        color: black !important;
    }
}

/*HIDING LICENSE KEY TODO*/
.fc-license-message {
    display: none !important;
}
.table.dataTable tbody tr,
.table.table-cards tbody tr[role='row'],
.table.table-cards tbody tr[onclick],
.card[onclick] {
    box-shadow: 0 0 0.5rem 0.5rem #efefef;
    transition: 0.2s all;
    cursor: pointer;
}

    .table.dataTable tbody tr:hover,
    .table.table-cards tbody tr[role='row']:hover,
    .table.table-cards tbody tr[onclick]:hover,
    .card[onclick]:hover {
        box-shadow: 0 0 0.5rem 0.5rem #c7c7c7;
    }

.table.table-cards tbody tr.group {
    box-shadow: none;
    cursor: initial;
}

    .table.table-cards tbody tr.group:hover {
        box-shadow: none;
        cursor: initial;
    }

.loading-anim {
    animation-duration: 1s;
    animation-fill-mode: forwards;
    animation-iteration-count: infinite;
    animation-name: wave;
    animation-timing-function: linear;
    -webkit-animation-duration: 1s;
    -webkit-animation-fill-mode: forwards;
    -webkit-animation-iteration-count: infinite;
    -webkit-animation-name: wave;
    -webkit-animation-timing-function: linear;
    -moz-animation-duration: 1s;
    -moz-animation-fill-mode: forwards;
    -moz-animation-iteration-count: infinite;
    -moz-animation-name: wave;
    -moz-animation-timing-function: linear;
    background: #dddddd;
    background-image: -webkit-gradient(linear, left center, right center, from(#dddddd), color-stop(.2, #f5f5f5), color-stop(.4, #e5e5e5), to(#dddddd));
    background-image: -webkit-linear-gradient(left, #dddddd 0%, #f5f5f5 20%, #e5e5e5 40%, #dddddd 100%);
    background-image: -moz-gradient(linear, left center, right center, from(#dddddd), color-stop(.2, #f5f5f5), color-stop(.4, #e5e5e5), to(#dddddd));
    background-image: -moz-linear-gradient(left, #dddddd 0%, #f5f5f5 20%, #e5e5e5 40%, #dddddd 100%);
    background-repeat: no-repeat;
    background-size: 800px 104px;
    position: relative;
}

@-webkit-keyframes wave {
    0% {
        background-position: -468px 0;
    }

    100% {
        background-position: 468px 0;
    }
}

@-moz-keyframes wave {
    0% {
        background-position: -468px 0;
    }

    100% {
        background-position: 468px 0;
    }
}

.tableNormal td,
.tableNormal th {
    font-size: 0.8125rem;
    white-space: normal;
}

.bg-dark-blue {
    background-color: #00518d !important;
}

.autocomplete {
    position: relative;
    display: inline-block;
}

.autocomplete-items {
    position: absolute;
    border: 1px solid #d4d4d4;
    border-bottom: none;
    border-top: none;
    z-index: 99;
    /*position the autocomplete items to be the same width as the container:*/
    top: 100%;
    left: 0;
    right: 0;
    max-height: 226px;
    overflow-y: scroll;
}

    .autocomplete-items div {
        padding: 10px;
        cursor: pointer;
        background-color: #fff;
        border-bottom: 1px solid #d4d4d4;
    }

        /*when hovering an item:*/
        .autocomplete-items div:hover {
            background-color: #e9e9e9;
        }

/*when navigating through the items using the arrow keys:*/
.autocomplete-active {
    background-color: DodgerBlue !important;
    color: #ffffff;
}

.quoteReminderCard {
    position: fixed;
    bottom: 80px;
    right: 16px;
    height: 150px;
    width: 360px;
    z-index: 5;
}

td.ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}

.hideAlertDetailBtn {
    display: none;
}

.showOrderAlertDetail .hideAlertDetailBtn {
    display: block;
}

.showOrderAlertDetail .showAlertDetailBtn {
    display: none;
}

div.dataTables_wrapper div.dataTables_filter > label {
    display: flex;
    align-items: center;
}

    div.dataTables_wrapper div.dataTables_filter > label > input {
        display: block;
        width: 100%;
    }

.comment {
    padding: 0.25rem 0;
}

    .comment q {
        background-color: #f1f1f1;
        padding: 0.5rem;
        border-radius: 0.5rem;
        white-space: normal;
        display: block;
        border: 0.5px solid #d1d0d0;
        font-style: italic;
    }

a.gotoproduct {
    display: inline-flex;
    flex-direction: row;
    align-items: flex-start;
}

    a.gotoproduct .reference {
        margin-right: 0.5rem;
    }

    a.gotoproduct .description {
        white-space: normal;
    }

.group {
    padding: 1rem;
    border-radius: 0.75rem;
}

.cursor-pointer {
    cursor: pointer;
}

span.acTitle {
    font-weight: bold;
    font-size: 0.9rem;
    display: block;
}

span.acDetail {
    display: block;
    font-size: 0.8rem;
}

span.acPrice {
    /* background-color: #00ff9c; */
    padding: 0 0.3rem;
    border-radius: 0.25rem;
    /* position: absolute; */
    font-size: 0.7rem;
    /* float: right; */
    margin-right: 0.2rem;
}

.topFixed .topFixedBtn {
    position: fixed;
    bottom: 0;
    /* background-color: red; */
    right: 0;
    margin-right: 3rem;
    margin-bottom: 6rem;
}

.table-pointer tbody tr {
    cursor: pointer;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.splide__track.splide__track--draggable {
    user-select: unset;
    -webkit-user-select: unset;
}

.fs--8 {
    font-size: 10px;
}

.listIcon {
    font-size: 2.8rem !important;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.move-line {
    cursor: pointer;
    border: 2px dashed #35383a !important;
    border-radius: 5px;
    margin: 5px 0;
}

.move-line:hover {
    background-color: #f8f9fa;
    border: 2px solid #35383a !important;
}

.move-line:hover i {
    color: #35383a;
}


.table-cards tbody tr td:only-child {
    border-radius: 0.75rem !important;
}

.font-style-bold {
    font-weight: bold !important;
}

.font-style-italic {
    font-style: italic !important;
}