/* $blue-2: #E5F2FE; */
/* $blue-3: #F9FCFE; */
/* @import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400&display=swap'); */

@font-face {
    font-family: 'Kanit';
    src: url('../font/Kanit-Light.ttf') format('truetype');
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: 'Kanit';
    src: url('../font/Kanit-Regular.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}

label {
    font-family: 'Kanit', sans-serif;
    font-weight: 300;
}

input {
    font-family: 'Kanit', sans-serif;
    font-weight: 300;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-background-clip: text;
    /* -webkit-text-fill-color: #ffffff; */
    transition: background-color 1s ease-in-out 0s;
    box-shadow: inset 0 #23232329;
}

/* nav.php */

/* #warehouse-links {} */
.nav-heading {
    font-family: 'Kanit', sans-serif;
    font-size: 20px;
}

.header-logo {
    border-radius: 50%;
    background: #edf5fc;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.kalaset-logo {
    width: 100px;
    height: 100px;
    padding: 5px;
}

.active {
    background: #cae0f6;
}
#mobile-header {
    display: none;
}
/*
    @media (max-width: 992px) {

        #header {
            display: flex;
            width: 100%;
            height: 80px;
            grid-area: 1 / 1 / 2 / 1;
        }

        #footer {
            display: flex;
            grid-area: 3 / 1;
        }

    } */

#sidebar {
    top: 0;
    bottom: 0;
    background: #edf5fc;
    max-width: 460px;
    user-select: none;
    border-right: 1px;
    grid-area: side;
}
.hidden {
    display: none !important;
}
.nav-border {
    border-right: 1px solid #cae0f6;
}

.nav-title {
    margin-bottom: 20px;
    font-size: 12px;
    font-family: 'Kanit', sans-serif;
}

.child-title-header {
    border-radius: 16px;
    border: 0.5px solid #cae0f6;
    padding: 10px 15px 10px 15px;
    font-size: 14px;
    font-family: 'Kanit', sans-serif;
    font-weight: 400;
}

.child-title {
    margin-bottom: 20px;
    border-radius: 24px;
    padding: 12px 16px;
    font-size: 16px;
    font-family: 'Kanit', sans-serif;
}

.nav-highlight {
    border-radius: 16px;
    margin: 0 20px 0 20px;
    padding: 5px 0 5px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Colors */
.dark-blue {
    background-color: #185492;
}

.p-dark-blue {
    color: #185492;
}

small {
    font-size: 12px;
    font-family: 'Kanit', sans-serif;
}

/* jQuery-ui */
.ui-autocomplete {
    max-height: 300px;
    overflow-y: auto;
    /* prevent horizontal scrollbar */
    overflow-x: hidden;
    /* add padding to account for vertical scrollbar */
    z-index: 1000 !important;
}

.ui-autocomplete {
    z-index: 10000 !important;
}

/* Bootstrap datepicker */

.datepicker {
    padding: 10px;
}

/* Bootstrap inputs */
.form-control:focus,
.form-control:active {
    background: transparent;
    outline: none !important;
    box-shadow: none;
}

/* Bootstrap modal */

.modal-content {
    border: none;
    border-radius: 16px;
    padding: 40px;
    padding-top: 24px;
}

.modal-body {
    padding: 0px;
}

#main {
    display: grid;
    grid-template-columns: min-content auto;
    grid-template-rows: auto;
    grid-template-areas:
        "side content";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100vw;
}

.content {
    margin: 40px;
    border: 40px solid white;
    max-width: 100%;
    box-shadow: 0px 0px 50px rgba(0, 0, 0, 0.042);
    border-radius: 16px;
    overflow-y: auto;
    overflow-x: hidden;
    grid-area: 1 / 2;
}

#footer {
    display: none;
}

#header {
    display: none;
}

.message {
    display: flex;
    justify-content: center;
    position: absolute;
    width: 100%;
    padding: 8px;
}
#footer-toggle {
    display: none;
}
@media (max-width: 992px) {
    .button-collected-row .round-button {
        padding: 5px 10px !important;
    }
    .big-button {
        padding: 7px !important;
    }
    .nav-highlight {
        margin: 0;
    }

    .message {
        top: 77px;
        text-align: center;
        border-radius: 60px;
        border: 1px solid #212529;
        background: white;
        color: #212529;
    }

    #main {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: min-content auto min-content;
        position: absolute;
        top: 0;
        bottom: 0;
        width: 100vw;
    }

    #header {
        display: flex;
        width: 100%;
        grid-row-start: 1;
        grid-row-end: 2;
        grid-column-start: 1;
        grid-column-end: 1;
    }
    #mobile-header {
        display: none;
        width: 100%;
        height: 100%;
        background: white;
        position: absolute;
        top: 2%;
        z-index: 4;
    }
    #mobile-header .mx-2 {
        position: absolute;
        top: 23%;
    }
    #mobile-header .mx-2 .nav-highlight {
        background: #edf5fc;
    }
    .content {
        margin: 10px;
        border: none;
        border-radius: 0;
        grid-row-start: 2;
        grid-row-end: 3;
        grid-column-start: 1;
        grid-column-end: 1;
        box-shadow: none;
    }

    #footer {
        display: none;
        position: absolute;
        bottom: 0%;
        z-index: 9999;
    }
    #footer-toggle {
        display: block;
        z-index: 9999;
        position: absolute;
        top: 5vh;
        right: 9vw;
        border: 11px solid #edf5fc;
        border-radius: 100px;
    }
    .nav-title {
        margin: 0 !important;
    }
    .mobile-pills {
        width: 100%;
        text-align: center;
        margin-top: 1vh;
        margin-bottom: 1vh;
    }
}

#login {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100vw;
}


/* slider */

.switch {
    position: relative;
    display: flex;
    width: 60px;
    height: 30px;
    border-radius: 30px;
    background-color: white;
    border: 1px solid #cae0f6;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    -webkit-transition: .4s;
    border-radius: 30px;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 15px;
    width: 15px;
    top: 6.5px;
    left: 6.5px;
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 50%;
    background-color: #edf5fc;
}

input:checked+.switch {
    background-color: #cae0f6;
}

input:checked+.slider {
    background-color: #cae0f6;
}

input:checked+.slider:before {
    -webkit-transform: translateX(26px) scale(1.5);
    -ms-transform: translateX(26px) scale(1.5);
    transform: translateX(26px) scale(1.5);
}

/* text */

.heading-1 {
    font-size: 2.5rem;
    font-family: 'Kanit', sans-serif;
}

.heading-2 {
    font-size: 1.5rem;
    font-family: 'Kanit', sans-serif;
}

.heading-3 {
    font-size: 1rem;
    font-weight: 400;
    font-family: 'Kanit', sans-serif;
}

label {
    font-size: 1rem;
    font-weight: 300;
    font-family: 'Kanit', sans-serif;
}

.light-paragraph {
    font-size: 1rem;
    font-weight: 300;
    font-family: 'Kanit', sans-serif;
}

p {
    font-size: 1rem;
    font-family: 'Kanit', sans-serif;
}

.paragraph-1 {
    font-size: 1rem;
    font-family: 'Kanit', sans-serif;
}

.paragraph-2 {
    font-size: 0.9rem;
    font-weight: 300;
    font-family: 'Kanit', sans-serif;
}

.paragraph-3 {
    font-size: 0.8rem;
    font-weight: 300;
    font-family: 'Kanit', sans-serif;
}

.icon-append {
    position: absolute;
    right: 0;
}

.cursor-pointer {
    cursor: pointer;
}

.hover-fill:hover {
    background: #cae0f6;
}

.text-icon {
    vertical-align: bottom;
}

.login-border {
    border-radius: 16px;
    padding: 20px 40px;
    box-shadow: inset;
}


/* #supplierWrapper input::after {
    font-family: 'Material Icons';
    content: "expand_more";
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    -webkit-font-feature-settings: 'liga' 1;
    -moz-font-feature-settings: 'liga' 1;
    font-feature-settings: 'liga' 1;
} */

/* colors */
.light-blue {
    background: #edf5fc;
}

.blue {
    background: #CAE0F6;
}


.white {
    background: white;
}

.basic-input {
    /* padding: 5px 10px; */
    border-radius: 5px;
    border: none;
    display: flex;
    align-items: center;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.basic-input:focus-within {
    box-shadow: 0 0 2px 1px;
}

/* FIXME: bs5 not rounding right side of input borders without this */
.input-group:not(.has-validation)> :not(:last-child):not(.dropdown-toggle):not(.dropdown-menu):not(.form-floating),
.input-group:not(.has-validation)>.dropdown-toggle:nth-last-child(n+3),
.input-group:not(.has-validation)>.form-floating:not(:last-child)>.form-control,
.input-group:not(.has-validation)>.form-floating:not(:last-child)>.form-select {
    border-top-right-radius: 5px !important;
    border-bottom-right-radius: 5px !important;
}

/* d-flex justify-content-center align-items-center dark-blue border-0 */

.round-button {
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    border-radius: 26px;
    padding: 14px 20px;
}

.basic-button {
    padding: 5px 10px;
    border-radius: 5px;
}

.big-button {
    padding: 20px;
    border-radius: 5px;
    border: none;
}

.bg-none {
    background: none;
    background-color: none;
}

.order-row {
    border-radius: 5px;
    border: 1px solid #e4effa;
    padding: 10px;
    margin-bottom: 5px;
}

.invalid-message {
    border-radius: 5px;
    border: 1px solid #e4effa;
    padding: 10px;
    margin-bottom: 5px;
}

#addBtn {
    border-radius: 50%;
    background: #e4effa;
}

/* get rid of type number buttons */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    display: none;
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* collections */

.collection-row {
    border-radius: 8px;
    padding: 16px
}

.very-round-button {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding: 10px;
    border: none;
}

/* warehouses */
.panel-warehouse {
  padding: 0 18px;
  background-color: white;
  display: none;
  overflow: hidden;
}
.price-input {
    border: none;
    background: #edf5fc;
    padding: 5px;
    font-weight: 400;
    font-family: 'Kanit', sans-serif;
}