﻿/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

a.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: break-all;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
    font-size: 14px;
    height: 100%;
    overflow: hidden;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.border-top {
    border-top: 1px solid #e5e5e5;
}

.border-bottom {
    border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
    font-size: 1rem;
    line-height: inherit;
}







/* Sticky footer styles
-------------------------------------------------- */
html {
    position: relative;
    min-height: 100%;
}











/* ######### Environment stripes - BEGIN #############*/
.navbar .environment-background {
    position: absolute;
    z-index: 5;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background-repeat: repeat-x;
    opacity: 0.5;
}

.navbar .environment-dev {
    background-image: url("/img/environments/dev.png");
}

.navbar .environment-ci {
    background-image: url("/img/environments/ci.png");
}

.navbar .environment-qualif {
    background-image: url("/img/environments/qualif.png");
}

.navbar .container {
    z-index: 10;
}
/* ######### Environment stripes - END #############*/


body {
    /* Margin bottom by footer height */
    margin-bottom: 60px;
    font-family: 'Inter', sans-serif;
}








a:focus,
button:focus {
    outline: 0;
}









/************** GLOBAL STYLES **************/
label[for] {
    cursor: pointer;
}

.form-control.search {
    background: url('../img/search.svg') right 10px top 50% no-repeat;
    background-size: 20px;
    padding-right: 40px;
    border-color: #D1D5DB;
    border-radius: 8px;
    transition: all 0.3s;
    height: 42px;
}

.form-control.search:hover,
.form-control.search:focus
{
    border-color: #9CA3AF;
    box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.05);
}

input.error,
select.error {
    border-color: red;
}

.errorMessage {
    width: 100%;
}

.searchDiv {
    position: relative;
    display: flex;
    margin: 0 0 20px;
}

.notification {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    border-radius: 0;
}

    .notification.notification-content {
        position: absolute;
    }

.btn .spinner-border {
    display: none;
}

.tagsJSON {
    display: none;
}

.tagify {
    height: auto;
}

.tagify__input {
    display: inline-block;
}

.btnAddTag {
    align-self: flex-start;
}

.priceField {
    width: 65px !important;
}

.autocomplete {
    background: #fff;
    border: 1px solid #CCC;
    list-style: none;
    padding: 0;
    margin: 0;
    position: absolute;
    left: 0;
    right: 0;
    display: none;
}

    .autocomplete:empty {
        display: none !important;
    }

    .autocomplete > li {
        cursor: pointer;
        padding: 10px 15px;
    }

        .autocomplete > li:hover,
        .autocomplete > li:focus {
            background: #CCC;
        }

        .autocomplete > li + li {
            border-top: 1px solid #CCC;
        }

/************** Switch ON OFF **************/
.switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 26px;
}

    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

    .slider:before {
        position: absolute;
        content: "";
        height: 18px;
        width: 18px;
        left: 4px;
        bottom: 4px;
        background-color: white;
        transition: .4s;
    }

input:checked + .slider {
    background-color: #2196F3;
}

input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
    transform: translateX(26px);
}
/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

    .slider.round:before {
        border-radius: 50%;
    }


/************** HEADER **************/
.mainHeader {
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    .mainHeader a {
        color: inherit;
        text-decoration: none;
    }

    .mainHeader .logo-site {
        width: auto;
        max-width: 125px;
        height: auto;
        max-height: 30px;
    }

    .mainHeader .tenant-logo {
        display: flex;
        align-items: center;
        margin-right: 1rem;
    }

        .mainHeader .tenant-logo:before {
            content: 'X';
            margin: 0 1rem;
        }

        .mainHeader .tenant-logo img {
            width: auto;
            max-width: 100px;
            height: auto;
            max-height: 30px;
        }

    .mainHeader .navbar {
        padding: 0;
    }

    .mainHeader .navbar-brand {
        padding: 10px 0;
        margin-right: 0;
    }

    .mainHeader .navbar .nav-link {
        display: flex;
        align-items: center;
        height: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
    }

        .mainHeader .navbar .nav-link:hover {
            background-color: #f8f9fa;
        }

        .mainHeader .navbar .nav-link.active {
            position: relative;
        }

            .mainHeader .navbar .nav-link.active:after {
                border-top: 5px solid;
                content: '';
                position: absolute;
                left: 0;
                right: 0;
                bottom: 0;
            }

    .mainHeader .username {
        margin: 0 10px;
        align-self: center;
    }

    .mainHeader .tenantname {
        margin: 0 10px;
        align-self: center;
    }

    .mainHeader .link-account {
        display: flex;
        align-items: center;
        align-self: center;
    }

    .mainHeader .link-unpersonation i:before {
        margin: 0 0 0 5px;
    }

    .mainHeader .link-tenant-selection i:before {
        margin: 0 0 0 5px;
    }

main {
    padding-top: 25px;
    position: relative;
}


/************** DROPDOWNS **************/
.dropdown[data-disabled] .dropdown-menu {
    display: none !important;
}

/************** FRIDGES LIST **************/
.fridgeItem {
    display: block;
    color: inherit;
    margin: 20px 0;
    text-align: center;
    transition: transform .2s;
    position: relative;
}

    .fridgeItem a {
        color: inherit;
        text-decoration: none;
        display: block;
    }

    .fridgeItem img {
        max-height: 200px;
        margin: 0 0 0 30px;
    }

    .fridgeItem .dropdown {
        position: absolute;
        top: 0;
        right: 0;
    }

    .fridgeItem .dropdown-toggle i {
        font-size: 25px;
    }

    .fridgeItem .dropdown-toggle:after {
        display: none;
    }

/************** PRODUCT LIST **************/

/* DLC column hidden for now */
#productsListTable .nbOfDaysInSaleHeadCell,
#productsListTable .nbOfDaysInSaleCell {
    display: none;
}

/************** PRODUCT MODAL **************/
.addProductModal--refill .addProductBtn {
    min-width: 150px;
}

    .addProductModal--refill .addProductBtn .fa-plus {
        display: none;
    }

.addProductModal--refill .rowThirdPartyReference,
.addProductModal--refill .rowVatRate,
.addProductModal--refill .rowContainerId,
.addProductModal--refill .rowTags {
    display: none;
}

#addProductModal .modal-left .priceHeadCell,
#addProductModal .modal-left .priceCell {
    width: 160px;
}

.addProductModal--refill .modal-left .table .labelHeadCell,
.addProductModal--refill .modal-left .table .labelCell {
    max-width: 130px;
    width: 130px;
}

.addProductModal--refill .modal-left .table .priceHeadCell,
.addProductModal--refill .modal-left .table .priceCell {
    max-width: 160px;
}

.addProductModal--refill .modal-left .table tbody {
    max-height: 450px;
}

.addProductModal--refill .modal-left .pagination {
    margin: 0;
}

@media screen and (min-width: 1000px) {
    .addProductModal--refill .modal-dialog {
        margin-left: 450px;
    }

    .addProductModal--refill .modal-left,
    .addProductModal--refill .modal-form {
        background: #fff;
        border-radius: .3rem;
        padding: 1rem;
    }

    .addProductModal--refill .modal-left {
        position: absolute;
        right: 100%;
        margin-right: 20px;
        top: -81px;
        min-width: 380px;
    }

        .addProductModal--refill .modal-left .table .labelHeadCell,
        .addProductModal--refill .modal-left .table .labelCell {
            max-width: 130px;
            width: 130px;
        }

    .addProductModal--refill .modal-dialog {
        max-width: 500px;
    }

    .addProductModal--refill .modal-content {
        background: none;
        border: 0;
    }

    .addProductModal--refill .modal-header {
        background: #fff;
    }

    .addProductModal--refill .modal-body {
        padding: 0;
    }

    .addProductModal--refill .modal-form {
        border-top-left-radius: 0;
        border-top-right-radius: 0;
    }

    .addProductModal--refill .addProductBtn {
        min-width: 0;
    }

        .addProductModal--refill .addProductBtn span {
            display: none;
        }

        .addProductModal--refill .addProductBtn .fa-plus {
            display: inline-block;
        }
}

@media screen and (min-width: 1400px) {
    .addProductModal--refill .modal-dialog {
        margin-left: auto;
    }
}

/************** PRODUCT FORM **************/
#productForm .form-group {
    margin-bottom: 1.5rem;
}



#productForm .dropdownIconPreview {
    height: 38px;
    border: 1px solid#ced4da;
    border-radius: .25rem;
    cursor: pointer;
    display: block;
}

.productForm-planogram .icon-when-disabled img {
    background-color: #E9ECEF;
    cursor: unset !important;
}

#productForm .dropdown[data-disabled] .dropdownIconPreview {
    background: #e9ecef;
}

#productForm .dropdownIcons {
    display: inline-block;
}

    #productForm .dropdownIcons .dropdown-toggle {
        display: flex;
        align-items: center;
        color: inherit;
    }

    #productForm .dropdownIcons .dropdown-menu {
        padding: 0;
    }

        #productForm .dropdownIcons .dropdown-menu.show {
            display: flex;
            flex-wrap: wrap;
            width: 210px;
        }

    #productForm .dropdownIcons .dropdown-item {
        border: 1px solid transparent;
        padding: 0;
        width: auto;
    }

        #productForm .dropdownIcons .dropdown-item:hover,
        #productForm .dropdownIcons .dropdown-item:focus {
            border-color: #ced4da;
        }

        #productForm .dropdownIcons .dropdown-item img {
            width: 50px;
        }

#productForm.product-edit label.required {
    font-weight: bold;
}

    #productForm.product-edit label.required:after {
        content: '*';
        margin-left: 5px;
    }

#productForm [data-toggle="tooltip"] {
    color: #c0c0c0;
    font-size: 40px;
}

#productForm .dlcField {
    display: none;
}


/* Fridge Module */
.fridge-module .fridge-img {
    width: 88%;
    margin: 10px 0;
    position: relative;
    left: 15%;
}

/************** ComboBox **************/

.combo-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    color: #6B7280;
    padding: 0px 8px 0px 0px;
    margin: 0px;
    border-radius: 8px;
    border: 1px solid #D1D5DB;
    background-color: transparent;
    transition: all 0.3s;
}

.combo-box:disabled {
    background-color: rgba(0, 0, 0, 0.05);
    cursor: not-allowed;
}

.combo-box-prepend {
    margin: 0px;
    background-color: #e9ecef;
    padding: 10px 14px;
    border-radius: 7px 0px 0px 7px;
    border-right: 1px solid #D1D5DB;
    transition: all 0.3s;
}

.combo-box-title {
    margin: 0px;
    padding: 10px 8px;
    white-space: nowrap;
}

.combo-box:hover,
.combo-box:focus,
.combo-box:hover .combo-box-prepend,
.combo-box:focus .combo-box-prepend {
    border-color: #9CA3AF;
    box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.05);
}

.combo-box svg {
    width: 25px;
    height: 25px;
    fill: #6B7280;
}

.combo-box-menu {
    width: 100%;
    border-radius: 8px;
    margin: 0px;
    padding: 0px;
    animation: fadeIn 0.3s;
}

    .combo-box-menu li {
        cursor: pointer;
        color: #6B7280;
        font-size: 12px;
        font-weight: 500;
        line-height: 16px;
        margin: 4px 0px;
        padding: 8px 24px;
        transition: all 0.3s;
    }

        .combo-box-menu li:hover {
            background-color: #F9FAFB;
        }

/************** Custom button **************/

.custom-btn {
    padding: 5px 12px;
    height: 42px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #F3F4F6;
    color: #6B7280;
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    transition: all 0.3s;
    white-space: nowrap;
    border: none;
}

.custom-btn:hover {
    background-color: #E5E7EB;
}

.custom-btn:focus {
    background-color: #D1D5DB;
}

.custom-btn:disabled {
    cursor: not-allowed;
    color: #9CA3AF;
    background-color: #E5E7EB;
}

.table-btn {
    background-color: #F3F4F6;
    color: #6B7280;
}

.table-btn:hover {
    background-color: #6B7280;
    color: #F3F4F6;
}

/************** Custom input **************/

.custom-input {
    border-radius: 8px;
    height: 42px;
}

    .custom-input:hover,
    .custom-input:focus {
        border-color: #9CA3AF;
        box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.05);
    }

/************** Dropdown **************/

.custom-dropdown {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: solid 2px black;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    outline: none !important;
    background-color: white;
    color: #6b7280;
    fill: #6b7280;
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

.custom-dropdown:hover {
    color: #374151;
    fill: #374151;
}

.custom-dropdown-menu {
    position: absolute;
    max-height: 0px;
    opacity: 0;
    overflow: hidden;
    z-index: 50;
    background-color: white;
    border: solid 2px;
    border-color: #e5e7eb;
    width: fit-content;
    border-radius: 0.5rem;
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
    list-style: none;
    padding: 0px;
    transform: translate(0, 0);
}

.custom-dropdown-menu button {
    border: none;
    background-color: white;
}

.custom-dropdown-menu.open {
    max-height: 250px;
    opacity: 1;
    transform: translate(0, 5px);
}

.custom-dropdown-menu.open::-webkit-scrollbar {
    width: 5px;
    height: 5px;
    background-color: #d1fae5;
    border-radius: 9999px;
}

.custom-dropdown-menu.open::-webkit-scrollbar-thumb {
    width: 5px;
    background-color: #34d399;
    border-radius: 9999px;
}

.custom-dropdown-menu-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    white-space: nowrap;
    padding: 0.5rem 1rem;
    text-decoration: none !important;
    color: #6b7280;
    fill: #6b7280;
}

.custom-dropdown-menu-item:hover {
    background-color: #f3f4f6;
    color: #374151;
    fill: #374151;
}

/* Sites Dropdown */
#sites-dropdown {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    color: #6B7280;
    padding: 0px 8px 0px 0px;
    margin: 0px;
    border-radius: 8px;
    border: 1px solid #D1D5DB;
    background-color: transparent;
    transition: all 0.3s;
}

#sites-dropdown:disabled {
    background-color: rgba(0, 0, 0, 0.05);
    cursor: not-allowed;
}

#sites-dropdown:hover,
#sites-dropdown:focus,
#sites-dropdown:hover .combo-box-prepend,
#sites-dropdown:focus .combo-box-prepend {
    border-color: #9CA3AF;
    box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.05);
}

#sites-dropdown svg {
    width: 25px;
    height: 25px;
    fill: #6B7280;
}

@media screen and (max-width: 1280px) {
}

@media screen and (max-width: 1024px) {
}

@media screen and (max-width: 768px) {
}

@media screen and (max-width: 640px) {
}


@media screen and (max-width: 425px) {
}
