@import url('https://fonts.googleapis.com/css2?family=Barlow&display=swap');
body {
    font-family: 'Barlow', sans-serif;
    padding: 0;
    margin: 0;
}

a:hover {
    text-decoration: none;
}

.border-left {
    border-left: 2px solid var(--primary) !important;
}

.sidebar {
    top: 0;
    left: 0;
    z-index: 100;
}

.overlay {
    background-color: rgb(0 0 0 / 45%);
    z-index: 99;
}

a {
    cursor: pointer;
}


/* USER PROFILE */

.userprofile {
    height: 75px;
    width: 75px;
    border-radius: 50%;
    border: 2px solid #007bff;
}


/* Font AWESOME ICONS STYLING */

.bigicon {
    color: #007bff;
    font-size: 17px;
}

.bigicon label {
    font-family: 'Courier New', Courier, monospace;
    font-weight: 500;
}


/* SNACKBAR */

#snackbar-login,
#snackbar-add-customer,
#snackbar-edit-customer,
#snackbar-update-customer,
#snackbar-add-sales,
#snackbar-edit-sales,
#snackbar-edit-products {
    visibility: hidden;
    min-width: 350px;
    max-width: min-content;
    margin-left: -85px;
    background-color: #aaa;
    color: #fff;
    text-align: center;
    border-radius: 2px;
    padding: 16px;
    position: fixed;
    z-index: 1;
    right: 0%;
    top: 2%;
    bottom: 30px;
    height: 70px;
    font-size: 17px;
    min-height: fit-content;
    max-height: min-content;
}

#snackbar-login.show_error,
#snackbar-add-customer.show_error,
#snackbar-edit-customer.show_error,
#snackbar-update-customer.show_error,
#snackbar-add-sales.show_error,
#snackbar-edit-sales.show_error,
#snackbar-edit-products.show_error {
    visibility: visible;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 17px;
    border-radius: 12px;
    background-color: #cc3f3f;
    -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

#snackbar-login.show_success,
#snackbar-add-customer.show_success,
#snackbar-edit-customer.show_success,
#snackbar-update-customer.show_success,
#snackbar-add-sales.show_success,
#snackbar-edit-sales.show_success,
#snackbar-edit-products.show_success {
    visibility: visible;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 17px;
    border-radius: 12px;
    background-color: #4a8a5b;
    -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

@-webkit-keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }
    to {
        bottom: 30px;
        opacity: 1;
    }
}

@keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }
    to {
        bottom: 30px;
        opacity: 1;
    }
}

@-webkit-keyframes fadeout {
    from {
        bottom: 30px;
        opacity: 1;
    }
    to {
        bottom: 0;
        opacity: 0;
    }
}

@keyframes fadeout {
    from {
        bottom: 30px;
        opacity: 1;
    }
    to {
        bottom: 0;
        opacity: 0;
    }
}

.dataTables_scrollHead,
.dataTables_scrollHeadInner,
.dataTables_scrollFoot,
.dataTables_scrollFootInner,
.dataTable {
    width: 100% !important;
}

.dataTables_wrapper {
    margin: -30px 10px 10px 10px!important;
}


/* FORM HEADER DESIGN */

header {
    width: 100%;
    height: 150px;
    background-color: #edecfa;
    display: flex;
    flex-direction: column;
}

header .top_element {
    height: 60%;
    background-color: #edecfa;
}

header .main_search_element {
    height: 40%;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

header .main_search_element .search_icon_circle {
    width: 100px;
    height: 100px;
    background: #ffffff;
    display: block;
    border-radius: 100px/100px;
    position: relative;
    top: -22px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease-in;
}

header .main_search_element .search_icon_circle .search_icon_background {
    width: 55px;
    height: 55px;
    background-color: #908ae0;
    box-shadow: 10px 10px 20px 0px #d7d3f3;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 100px/100px;
    position: relative;
    top: -15px;
    cursor: pointer;
    transition: all 0.4s ease-in;
}

header .main_search_element .search_icon_circle .search_icon_background .fa {
    color: #ffffff;
    left: 2px;
    position: relative;
}

header .main_search_element .search_icon_circle .search_icon_background .fa-times {
    display: none;
}

header .main_search_element .search_icon_circle .search_icon_background input {
    transition: all 0.4s ease-in;
    opacity: 0;
    width: 0;
    background: #908ae0;
    border: none;
    outline: none;
    color: #fff;
}

header .main_search_element.expand .search_icon_circle {
    border-radius: 20px;
    width: 300px;
}

header .main_search_element.expand .search_icon_circle .search_icon_background {
    width: 260px;
    border-radius: 10px;
    padding-left: 8px;
    padding-right: 8px;
}

header .main_search_element.expand .search_icon_circle .search_icon_background .fa-times {
    display: block;
}

header .main_search_element.expand .search_icon_circle .search_icon_background input {
    width: 220px;
    opacity: 1;
    padding-left: 10px;
    outline: none;
    border: none;
    font-size: 110%;
    font-weight: 900;
    letter-spacing: 3px;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}


/* SALES FILTER DESIGN  START*/

.cover {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    height: fit-content;
    width: 100%;
    position: relative;
    /*position is required to use z-index*/
    z-index: 9;
}

.input-icons {
    margin: 0px auto;
}


/*Hack to get them to align properly */

.flex-form>*:not([type="date"]) {
    border-top: 1px solid white;
    border-bottom: 1px solid white;
}

.flex-form input[type="button"],
.buttons-print {
    background: #FF5A5F !important;
    border-top: 1px solid #FF5A5F !important;
    border-bottom: 1px solid #FF5A5F !important;
    color: white !important;
}

.flex-form>* {
    padding: 10px;
    background: white;
    line-height: 35px;
    font-size: 20px;
    border-radius: 0;
    outline: 0;
    border-top: 1px solid white;
    border-bottom: 1px solid white;
    border-right: 1px solid rgba(0, 0, 0, 0.2);
    -webkit-appearance: none;
}

.flex-form>*:last-child {
    border-right: 0;
}


/*Flexbox Starts Here*/


/*1st Flex Container*/


/*2nd Flex Container; 1st Flex Item*/

.flex-form {
    display: flex;
    border-radius: 5px;
    border: 0px solid rgba(0, 0, 0, 0.3);
}


/* SALES FILTER DESIGN  END*/


/* sidebar for small screens */

@media screen and (max-width: 767px) {
    .sidebar {
        max-width: 18rem;
        transform: translateX(-100%);
        transition: transform 0.4s ease-out;
    }
    .sidebar.active {
        transform: translateX(0);
    }
}

@media (max-width: 1200px) {
    .modal-dialog {
        max-width: 95%;
        margin: 30px auto;
    }
}