/* fallback */
@font-face {
    font-family: 'MyFont';
    font-style: normal;
    font-weight: 400;
    src: url(../font/Poppins-Regular.ttf) format('truetype'),
        url(../font/Poppins-Black.ttf) format('truetype'),
        url(../font/Poppins-ExtraBold.ttf) format('truetype'),
        url(../font/Poppins-ExtraLight.ttf) format('truetype'),
        url(../font/Poppins-ExtraLightItalic.ttf) format('truetype'),
        url(../font/Poppins-Light.ttf) format('truetype'),
        url(../font/Poppins-Medium.ttf) format('truetype'),
        url(../font/Poppins-SemiBold.ttf) format('truetype'),
        url(../font/Poppins-Thin.ttf) format('truetype');
}

body {
    background-color: #f5f5f5 !important;
}

p {
    font-size: 18px;
}

h4 {
    font-size: 36px;
}

h5 {
    font-size: 26px;
}

small {
    font-size: 15px;
}

body * {
    font-family: 'MyFont' !important;
}

/* flex system */

.d-flex {
    display: flex;
}

.d-flex.a-center {
    align-items: center;
}

.d-flex.a-start {
    align-items: flex-start;
}

.d-flex.a-end {
    align-items: flex-end;
}

.d-flex.j-center {
    justify-content: center;
}

.d-flex.j-start {
    justify-content: flex-start;
}

.d-flex.j-end {
    justify-content: flex-end;
}

.d-flex.j-space-between {
    justify-content: space-between;
}

.d-flex.j-space-evenly {
    justify-content: space-evenly;
}

.d-flex.d-horizon {
    flex-direction: row;
}

.d-flex.d-vertical {
    flex-direction: column;
}

.d-flex.d-horizon.rtl {
    direction: rtl !important;
}

.d-flex.wrap {
    flex-wrap: wrap;
}

.d-flex.nowrap {
    flex-wrap: nowrap;
}

/* spacing system */

.m-0 {
    margin: 0 !important;
}

.ml-0 {
    margin-left: 0 !important;
}

.mr-0 {
    margin-right: 0 !important;
}

.mt-0 {
    margin-top: 0 !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.m-1 {
    margin: 1rem !important;
}

.ml-1 {
    margin-left: 1rem !important;
}

.mr-1 {
    margin-right: 1rem !important;
}

.mt-1 {
    margin-top: 1rem !important;
}

.mb-1 {
    margin-bottom: 1rem !important;
}

.mr-auto {
    margin-right: auto !important;
}

.ml-auto {
    margin-left: auto !important;
}

.mt-auto {
    margin-top: auto !important;
}

.mb-auto {
    margin-bottom: auto !important;
}

.p-0 {
    padding: 0 !important;
}

.pl-0 {
    padding-left: 0 !important;
}

.pr-0 {
    padding-right: 0 !important;
}

.pt-0 {
    padding-top: 0 !important;
}

.pb-0 {
    padding-bottom: 0 !important;
}

.p-1 {
    padding: 1rem !important;
}

.pl-1 {
    padding-left: 1rem !important;
}

.pr-1 {
    padding-right: 1rem !important;
}

.pt-1 {
    padding-top: 1rem !important;
}

.pb-1 {
    padding-bottom: 1rem !important;
}

/* border */

.border {
    border: 1px solid #ddd !important;
}

.border-top {
    border-top: 1px solid #ddd !important;
}

.border-right {
    border-right: 1px solid #ddd !important;
}

.border-left {
    border-left: 1px solid #ddd !important;
}

.border-bottom {
    border-bottom: 1px solid #ddd !important;
}

/* border darius */

.round-2 {
    border-radius: 2px !important;
}

.round-4 {
    border-radius: 4px !important;
}

.round-8 {
    border-radius: 8px !important;
}

.round-16 {
    border-radius: 16px !important;
}

.round-32 {
    border-radius: 32px !important;
}

/* overflow */

.no-scroll{
    overflow: hidden;
}

.no-horizontal-scroll{
    overflow-x: hidden;
}

.no-vertical-scroll{
    overflow-y: hidden;
}

/* custom */

::-webkit-scrollbar {
    width: 2px;
    height: 2px;
}

.full-width {
    width: 100%;
}

.navbar {
    position: fixed;
    background-color: white;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 99;
    box-shadow: 0px 0px 26px 0px rgba(0, 0, 0, 0.1);
    -webkit-box-shadow: 0px 0px 26px 0px rgba(0, 0, 0, 0.1);
}

.container {
    margin-top: 6rem;
    letter-spacing: 1px;
    min-height: calc(100vh - 9rem);
    width: 98%;
}

.card {
    box-shadow: 0px 8px 26px 0px rgba(0, 0, 0, 0.1);
    -webkit-box-shadow: 0px 8px 26px 0px rgba(0, 0, 0, 0.1);
    transition: .3s;
    min-height: 160px;
}

.card .img-wrapper {
    width: 90px;
}

.card .img-wrapper.main {
    width: 100px;
    height: auto;
}

.card .img-wrapper img {
    height: 90px;
    margin: auto;
    max-width: 90px;
    object-fit: cover;
}

.card .img-wrapper.main img {
    max-width: 100px;
    height: 100%;
    margin: auto 0;
    object-fit: contain;
}

.swiper-row{
    width: 100vw;
    margin-left: -1vw;
    height: calc(146px + 3rem);
}

@media only screen and (min-width: 993px) {
    .container {
        max-width: unset;
        max-width: unset;
        width: 100%;
        padding: 0 3rem;
    }
    .swiper-row{
        width: 100vw;
        margin-left: -3rem;
    }
}


.card:hover {
    transform: translateY(-5px);
    background-color: #9b27b010;
}

input,
textarea,
.file-field input.file-path {
    box-sizing: border-box !important;
}

.file-field input.file-path {
    border-style: dashed !important;
}

.file-field input.file-path::placeholder {
    padding: 0 1rem;
}

.btn.choose-file {
    position: absolute;
    width: calc(100% - .75rem);
    box-sizing: border-box;
    left: 0;
    top: -.5rem;
    border-radius: 16px;
    opacity: 0;
}

.add-img-preview {
    height: 70px !important;
}

.add-img-preview img {
    object-fit: contain;
    height: 70px;
    margin: auto;
    width: 100%;
}

textarea {
    min-height: 84px !important;
}

input:focus,
textarea:focus,
input.valid:not([type]),
input.valid:not([type]):focus,
input.valid[type=text]:not(.browser-default),
input.valid[type=text]:not(.browser-default):focus,
input.valid[type=password]:not(.browser-default),
input.valid[type=password]:not(.browser-default):focus,
input.valid[type=email]:not(.browser-default),
input.valid[type=email]:not(.browser-default):focus,
input.valid[type=url]:not(.browser-default),
input.valid[type=url]:not(.browser-default):focus,
input.valid[type=time]:not(.browser-default),
input.valid[type=time]:not(.browser-default):focus,
input.valid[type=date]:not(.browser-default),
input.valid[type=date]:not(.browser-default):focus,
input.valid[type=datetime]:not(.browser-default),
input.valid[type=datetime]:not(.browser-default):focus,
input.valid[type=datetime-local]:not(.browser-default),
input.valid[type=datetime-local]:not(.browser-default):focus,
input.valid[type=tel]:not(.browser-default),
input.valid[type=tel]:not(.browser-default):focus,
input.valid[type=number]:not(.browser-default),
input.valid[type=number]:not(.browser-default):focus,
input.valid[type=search]:not(.browser-default),
input.valid[type=search]:not(.browser-default):focus,
textarea.materialize-textarea.valid,
textarea.materialize-textarea.valid:focus,
.select-wrapper.valid>input.select-dropdown {
    border-color: #9c27b0 !important;
    box-shadow: 0 0 0 !important;
}

.select-dropdown {
    margin-bottom: 0 !important;
}

.select-dropdown li img {
    object-fit: contain;
}

.search-input {
    position: relative;
}

.search-input input {
    padding-right: 3rem !important;
    padding-left: 1rem !important;
}

.search-input a svg {
    position: absolute;
    right: 2rem;
    top: 1rem;
    color: #ddd;
    transition: .3s;
    cursor: pointer;
}

input:focus~a svg {
    color: #9c27b0 !important;
}

.chip {
    font-size: 18px;
    padding: 0 1rem;
    background-color: transparent;
    border: 1px solid #9c27b0 !important;
    color: #9c27b0 !important;
}

.chip.nutrition {
    font-size: 14px;
    height: auto;
    line-height: normal;
    padding: .25rem 1rem;
    color: #fff !important;
    border: none !important;
    background-color: #00000050;
}

.chip:hover {
    background-color: #9b27b0;
    color: white !important;
}

.chips.focus {
    box-shadow: 0 0 0;
}

button {
    transition: .3s;
    border: none !important;
    cursor: pointer;
}

button:focus {
    background-color: #9b27b0 !important;
    color: white !important;
}

button.disabled {
    pointer-events: none;
    background-color: #9c27b0 !important;
    color: #ffffff !important;
    cursor: default;
}

.input-field>label {
    background-color: transparent;
    color: #9e9e9e;
    position: absolute;
    top: 0;
    left: 0;
    font-size: 1rem;
    padding: 0 1rem;
    cursor: text;
    transition: .2s;
    -webkit-transition: color .2s ease-out, -webkit-transform .2s ease-out;
    transition: color .2s ease-out, -webkit-transform .2s ease-out;
    transition: transform .2s ease-out, color .2s ease-out;
    transition: transform .2s ease-out, color .2s ease-out, -webkit-transform .3s ease-out;
    -webkit-transform-origin: 0% 100%;
    transform-origin: 0% 100%;
    text-align: initial;
    -webkit-transform: translateY(10px);
    transform: translateY(10px);
    z-index: -1;
}

.input-field>label:not(.label-icon).active {
    transition: .2s;
    -webkit-transform: translateY(-.75rem) translateX(1rem);
    transform: translateY(-.75rem) translateX(1rem);
    -webkit-transform-origin: 0;
    transform-origin: 0;
    background-color: #f5f5f5;
    font-size: .8rem;
    color: #9b27b0 !important;
    z-index: 1;
}

.select-wrapper input.select-dropdown,
.materialize-textarea {
    border: 1px solid #ddd !important;
    border-radius: 16px !important;
    padding: 0 1rem;
    /* color: #9e9e9e; */
}

.select-wrapper .caret {
    right: .5rem;
    fill: #9e9e9e;
}

.dropdown-content {
    border-radius: 16px;
}

.dropdown-content li>a,
.dropdown-content li>span {
    color: #9b27b0 !important;
}

.input-field>label.rtl {
    left: auto;
    right: .75rem !important;
}

.input-field>label.rtl:not(.label-icon).active {
    -webkit-transform: translateY(-.75rem) translateX(-1rem);
    transform: translateY(-.75rem) translateX(-1rem);
    -webkit-transform-origin: 0;
    transform-origin: 0;
}

.material-placeholder {
    border: 1px solid #ddd;
    border-radius: 16px;
    border-style: dashed;
    width: 100%;
    max-height: 60vw;
}

@media only screen and (max-width: 600px) {
    .add-img-preview {
        height: unset !important;
        /* max-height: calc(60vw + 4rem) !important; */
        margin-top: 0 !important;
        margin-bottom: 1rem !important;
        padding: 1rem;

    }

    .add-img-preview img {
        width: 100%;
        height: 100%;
        max-height: 59vw;
    }
}

/* login page */

.login-form {
    max-width: 450px;
    margin: 4rem auto;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0px 0px 26px 0px rgba(0, 0, 0, 0.1);
    -webkit-box-shadow: 0px 0px 26px 0px rgba(0, 0, 0, 0.1);
}

@media only screen and (max-width: 600px) {
    .login-form {
        max-width: unset;
        margin: 0 auto;
        box-shadow: 0 0 0;
        -webkit-box-shadow: 0 0 0;
    }
}

.btn-login {
    width: 100%;
    margin-bottom: 1.52rem;
}

tr .material-placeholder {
    border: none;
}

.td-img-wrapper {
    padding: 0 5px;
}

td img {
    height: 30px;
    width: 30px;
    object-fit: contain;
}

.switch label input[type=checkbox]:checked+.lever:after {
    background-color: #4caf50;
}

.switch label input[type=checkbox]:checked+.lever {
    background-color: #4caf5050;
}

.switch label small {
    font-size: 12px;
    margin: 0 .5rem;
}

.switch-wrapper {
    height: 3rem;
}

td.truncate {
    max-width: 6rem;
    display: table-cell;
}

.carousel.carousel-slider {
    height: calc(100vh - 15rem) !important;
    overflow-y: hidden;
    display: flex;
}

.red-border .select-wrapper input.select-dropdown {
    border-color: #F44336 !important;
}

.red-border {
    border-color: #F44336 !important;
}

.red-border::placeholder {
    color: #F44336 !important;
}

.tabs .indicator {
    background-color: #9b27b050;
}

.tabs .tab a:focus,
.tabs .tab a.active,
.tabs .tab a:focus.active {
    background-color: transparent !important;
    color: #9b27b0 !important;
}

.fixed-action-btn {
    padding: 0 !important;
    border-radius: 100%;
    height: 56px;
    width: 56px;
}

.fixed-action-btn ul {
    right: 0;
    left: auto;
    bottom: 3rem;
    width: max-content;
    text-align: right;
    padding: 0;
    padding-bottom: 1rem;
}

.fixed-action-btn ul li a.btn-floating {
    border-radius: 16px !important;
    width: max-content;
}

.modal.bottom-sheet {
    max-height: 95vh !important;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

.modal .modal-content {
    padding: 1rem;
}

tr td,
tr th {
    height: calc((100vh - 15rem) / 10);
    padding: 0;
}

.tabs,
.tabs a {
    height: 5rem !important;
}

ul.dropdown-content {
    height: 300px;
    width: 100% !important;
}

ul.dropdown-content li a {
    height: 100px !important;
    width: 100%;
    padding: 0;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.btn-floating.btn-large {
    margin: 0;
}

@media only screen and (max-width: 600px) {
    .tabs>.tab a h4 b {
        font-size: 26px;
    }
}

#toast-container {
    top: 7rem !important;
    bottom: auto !important;
    padding: 0 1rem;
    right: 0;
}

.switch label {
    cursor: pointer;
    display: flex;
    margin-left: auto;
    justify-content: space-between;
    align-items: center;
    width: min-content;
}

.switch label small {
    width: min-content;
    min-width: 70px;
    transition: .2s;
}

.rtl .switch span {
    transform: rotate(180deg);
}

.rtl .switch label .lever:after {
    transform: rotate(180deg);
}

.btn-theme svg {
    transition: .5s;
}

.btn-theme:focus>svg {
    transform: rotate(360deg) !important;
}

.default-dish {
    height: 90px;
    font-size: 4.5rem;
    color: #9c27b0;
}

img.not-found {
    width: 100%;
    max-width: 600px;
}

.modal-img-wrapper {
    max-width: 100%;
    max-height: 650px;
}

.modal-img {
    width: 100%;
    max-height: 650px;
    height: auto;
    object-fit: cover;
}

@media only screen and (min-width: 900px) {
    .modal.bottom-sheet {
        top: 10%;
        width: 30%;
        margin: 0 auto;
        border-radius: 16px;
        bottom: auto !important;
    }
}

.gallery-add-img-preview {
    display: flex;
    width: calc((100% - 2rem) / 2);
    height: calc((100vw - 7rem) / 2);
    margin-bottom: 1rem;
    position: relative;
}

@media only screen and (min-width: 600px) {

    .gallery-add-img-preview {
        width: calc((100% - 4rem) / 4);
        height: calc((100vw - 12rem) / 4);
    }

}

@media only screen and (min-width: 993px) {

    .gallery-add-img-preview {
        width: calc((100% - 4rem) / 4);
        height: calc((100vw - 12rem) / 4);
    }

}

.gallery-add-img-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gallery-add-img-preview .material-placeholder {
    border: none !important;
    height: 100%;
    width: 100%;
    max-height: unset;
    margin: auto;
}

@media only screen and (max-width: 600px) {

    .gallery-add-img-preview:nth-child(2n) {
        margin-right: auto;
        margin-left: 2rem;
    }

}

.btn.circle {
    border-radius: 50% !important;
    width: 3rem;
    height: 3rem;
    top: auto;
    bottom: 0;
}

.btn.circle.delete {
    right: 0;
    left: auto;
    top: 0;
    bottom: auto;
}

.gallery-add-img-preview .btn.circle {
    position: absolute;
    border-radius: 50% !important;
    width: 2rem;
    height: 2rem;
    z-index: +2;
    padding: 0 !important;
}

@media only screen and (max-width: 600px) {

    .gallery-add-img-preview .btn.circle {
        position: absolute;
        border-radius: 50% !important;
        width: 1.25rem;
        height: 1.25rem;
        z-index: +2;
        padding: 0 !important;
    }

    .gallery-add-img-preview .btn.circle svg {
        width: .6em !important;
    }

}

.gallery-add-img-preview .btn.circle:focus {
    background-color: transparent !important;
}

.gallery-add-img-preview .btn.circle.active {
    color: #4caf50 !important;
    background-color: white !important;
}

.product-img {
    width: 100%;
    position: relative;
}

.product-img img {
    width: 100%;
    height: calc(49vw - 10rem);
    object-fit: cover;
}

.product-img button{
    position: absolute;
    bottom: 1rem !important;
    left: 1rem;
}

.product-img button:last-child{
    left: auto;
    right: 1rem;
}

.product-img.s3 img {
    height: calc((50vw - 12.25rem) / 4);
    object-fit: cover;
}

.product-img.s3.active img{
    border: #4caf50 2px solid !important;
}

@media only screen and (max-width: 993px) {
    
    
    .product-img img {
        height: calc(99vw - 19rem);
    }
    
    .product-img.s3 img {
        height: calc((99vw - 20rem) / 4);
    }

}

@media only screen and (max-width: 600px) {
    
    
    .product-img img {
        height: calc(99vw - 12rem);
    }
    
    .product-img.s3 img {
        height: calc((99vw - 10rem) / 4);
    }

}

.z-depth-1 {
    box-shadow: 0px 8px 26px 0px rgb(0 0 0 / 10%) !important;
    -webkit-box-shadow: 0px 8px 26px 0px rgb(0 0 0 / 10%) !important;
}

.loader-wrapper {
    width: 320px;
    margin: 0 auto;
}

.card-loader {
    box-shadow: 0px 8px 26px 0px rgb(0 0 0 / 10%) !important;
    -webkit-box-shadow: 0px 8px 26px 0px rgb(0 0 0 / 10%) !important;
    padding: 1rem 2rem;
    position: relative;
    border-radius: 2px;
    margin-bottom: 0;
    height: 10rem;
    overflow: hidden;
}

.card-loader.chip {
    height: 2.25rem;
    border: none !important;
}

.card-loader.chip:first-child {
    width: 20%;
    max-width: 120px;
}

.card-loader.chip:nth-child(2) {
    width: 35%;
    max-width: 100px;
}

.card-loader.chip:nth-child(3) {
    width: 20%;
    max-width: 135px;
}

.card-loader.chip:last-child {
    width: 25%;
    max-width: 90px;
}

.card-loader:only-child {
    margin-top: 0;
}

.card-loader .mr-1 {
    content: "";
    width: 70%;
    display: block;
}

.card-loader .mr-1 .p-1 {
    background-color: #00000020;
    width: 90%;
}

.card-loader .mr-1 .p-1:last-child {
    background-color: #00000010;
    width: 70%;
}

.card-loader .image {
    content: "";
    height: 110px;
    width: 110px;
    display: block;
    background-color: #00000020;
    margin: auto;
}

.card-loader:after {
    content: "";
    background-color: #333;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    animation-duration: 0.6s;
    animation-iteration-count: infinite;
    animation-name: loader-animate;
    animation-timing-function: linear;
    background: -webkit-linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(0, 0, 0, .08) 50%, rgba(255, 255, 255, 0) 91%);
    background: -o-linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(0, 0, 0, .08) 50%, rgba(255, 255, 255, 0) 91%);
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(0, 0, 0, .08) 50%, rgba(255, 255, 255, 0) 91%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#00ffffff", endColorstr="#00ffffff", GradientType=1);
}


@keyframes loader-animate {
    0% {
        transform: translate3d(-100%, 0, 0);
    }

    100% {
        transform: translate3d(100%, 0, 0);
    }
}

.spinner-blue, .spinner-blue-only {
     border-color: #9c27b0 !important;
    
}


progress {
     height: .5rem;
    
}


 progress[value]::-webkit-progress-bar {
     background-color: #9c27b050;
         border-radius: 2px;
         height: .5rem;
         border-radius: 32px;
        
    }

    
     progress[value]::-webkit-progress-value {
         background: #9c27b0;
         border-radius: 2px;
         height: .5rem;
         border-radius: 32px;
        
    }

    
     progress > .determinate {
        
    }