
.btn-disabled {
    cursor: default !important;
}

.hidden {
    display: none !important;
}

/*info box*/
#info-box {
    display: none;
    position: fixed;
    top: 100px;
    left: calc(50% - 150px);
    z-index: 1700;
    width: 300px;
    padding: 10px 20px;
    text-align: center;
    font-size: 14px;
}
.msg-info {
    background-color: #a8f4a8;
    border: 2px solid #0c680c;
    color: black;
}
.msg-notif {
    background-color: #f4f509;
    border: 2px solid #ccc;
    color: black;
}
.msg-warning {
    background-color: #fde0d7;
    border: 2px solid #ce3808;
    color: black;
}

/*auxiliary*/
.product-search {
    position: relative;
    flex: 0 0 auto;
    width: 100%;
}

.product-search #prod-name-filter {
    padding-right: 40px;
}

.product-search #clear-prod-search-btn {
    position: absolute;
    top: 50%;
    right: 0;
    width: auto;
    margin: 0;
    transform: translateY(-50%);
}
.scrollbar-measure {
    width: 100px;
    height: 100px;
    overflow: scroll;
    position: absolute;
    top: -9999px;
}

.no-link {
    cursor: default;
}
.no-link:hover {
    text-decoration: none;
}

body.price-list-page {
    min-width: 800px;
    min-height: 600px;
}

body.price-list-page .content {
    min-height: calc(100vh - 62px);
    padding-bottom: 0 !important;
    box-sizing: border-box;
}

body.price-list-page .content > .col-md-9 {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 67px);
}

/*product list */
.product-list-scroll {
    flex: 1 1 auto;
    min-height: 150px;
    height: max(200px, calc(100vh - 306px));
    overflow: auto;
}

#filters-toggle,
#filters-close,
#filters-backdrop {
    display: none;
}

#page-action-row {
    display: none;
}

.header > .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: auto;
    min-height: 60px;
    margin-bottom: 0;
}

.header .logo {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    height: auto;
    min-height: 0;
}

.header .logo img {
    display: block;
    margin: 10px 0;
}

.header .topbar {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    padding: 0;
}

.header .topbar ul.loginbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    float: none;
    padding: 0;
}

.header .topbar ul.loginbar > li {
    display: inline-flex;
    align-items: center;
    padding: 0;
    white-space: nowrap;
}

.header .topbar ul.loginbar > li.topbar-devider {
    height: 14px;
    margin: 0;
}

@media (max-width: 1199px) {
    body.price-list-page .content {
        min-height: calc(100vh - 63px);
    }

    body.price-list-page .content > .col-md-9 {
        float: none;
        width: 100%;
        height: calc(100vh - 117px);
    }

    .header .mega-menu {
        display: none !important;
    }

    .header > .container {
        min-height: 60px;
    }

    #page-action-row {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 12px;
        min-height: 40px;
        margin: 0 15px 8px;
    }

    #filters-toggle {
        position: static;
        display: inline-flex;
        align-items: center;
        gap: 7px;
        padding: 9px 12px;
    }

    .product-list-scroll {
        height: max(200px, calc(100vh - 334px));
    }

    #filters-backdrop {
        position: fixed;
        inset: 62px 0 0;
        z-index: 1500;
        display: block;
        visibility: hidden;
        background: rgba(0, 0, 0, 0.35);
        opacity: 0;
        transition: opacity 0.25s ease, visibility 0.25s ease;
    }

    #filters-drawer {
        position: fixed;
        top: 62px;
        right: 0;
        bottom: 0;
        z-index: 1501;
        width: min(360px, calc(100vw - 48px));
        padding: 0 15px 20px;
        overflow-y: auto;
        background: #fff;
        box-shadow: -4px 0 16px rgba(0, 0, 0, 0.2);
        transform: translateX(100%);
        visibility: hidden;
        transition: transform 0.25s ease, visibility 0.25s ease;
    }

    body.filters-drawer-open #filters-drawer {
        transform: translateX(0);
        visibility: visible;
    }

    body.filters-drawer-open #filters-toggle {
        visibility: hidden;
    }

    body.filters-drawer-open #filters-backdrop {
        visibility: visible;
        opacity: 1;
    }

    #filters-close {
        float: right;
        border: 0;
        padding: 0 4px;
        background: transparent;
        color: inherit;
        font-size: 26px;
        line-height: 1;
    }

    #filters-drawer .sky-form > header {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    #filters-close {
        display: block;
    }
}

@media (max-height: 650px) {
    .product-list-scroll {
        height: max(150px, calc(100vh - 340px));
    }
}

@media (max-width: 500px) {
    .header > .container {
        gap: 8px;
    }

    .header .logo img {
        width: 110px;
        height: auto;
    }

    .header .topbar ul.loginbar {
        flex-wrap: wrap;
        column-gap: 8px;
        row-gap: 4px;
    }

    .header .topbar ul.loginbar > li:first-child {
        flex: 0 0 100%;
        justify-content: flex-end;
        white-space: normal;
        text-align: right;
    }

    .header .topbar ul.loginbar > li.topbar-devider {
        display: none;
    }

    .header .topbar ul.loginbar > li > a {
        font-size: 10px;
    }
}

#prod-list-tbl {
    width: 100%;
    table-layout: auto;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 0 !important;
}

#prod-list-tbl th {
    position: sticky;
    top: 0;
    z-index: 5;
    background-color: #fff;
    background-clip: padding-box;
    text-align: center;
    vertical-align: middle;
}

#prod-list-tbl thead {
    position: static;
}

#prod-list-tbl td {
    vertical-align: top;
}
#prod-list-tbl td:last-child {
    text-align: center;
}

#prod-list-tbl td:nth-child(6),
#prod-list-tbl td:nth-child(7) {
    text-align: center;
}

#prod-list-tbl th,
#prod-list-tbl td {
    width: 1%;
    white-space: nowrap;
}

#prod-list-tbl th {
    white-space: normal;
    overflow-wrap: break-word;
}

#prod-list-tbl th:nth-child(4),
#prod-list-tbl td:nth-child(4) {
    display: none;
}

#prod-list-tbl .product-description {
    width: 100%;
    white-space: normal;
    overflow-wrap: break-word;
}

.order-quant-input {
    display: block;
    width: 60px;
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
}

@media (max-width: 1024px) {
    .order-quant-input {
        width: 50px;
    }
}

/*total price and quantity of order*/
#totals-table {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(500px, 2fr);
    align-items: center;
    width: 100%;
    max-width: 100%;
    margin-top: 12px;
    text-align: center;
}
#totals-table .order-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
}
#totals-table .order-total {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    text-align: center;
}
#totals-table .order-total + .order-total {
    border-left: 1px solid #ccc;
}
#totals-table .order-total strong {
    font-size: 38px !important;
    line-height: 38px !important;
    font-weight: 400;
    text-align: center !important;
}
#totals-table .order-total span {
    font-size: 16px;
    line-height: 20px;
}
#totals-table .order-buttons {
    min-width: 0;
}
#totals-table .order-buttons table {
    width: 100%;
    table-layout: fixed;
}
#totals-table .order-buttons table tr td {
    text-align: center !important;
}
#totals-table .order-buttons button {
    margin-top: 5px;
}

/*manufacturer and country accordion*/
.scrollable-accordion {
    overflow-x: hidden;
    overflow-y: auto;
    max-height: 200px;
}

/*accordeon restyling, #4765a0*/
.acc-v1 .panel-heading a {
    color: #fff;
    background: #4765a0;
}
.acc-v1 .panel-heading a.collapsed {
    color: #000;
    background: #fff;
}
.acc-v1 .panel-heading a:hover {
    color: #fff;
}
.acc-v1 .panel-heading a.collapsed:hover {
    color: #000;
    background: #fff;
}

#show-all-groups-btn {
    margin: 10px auto 10px auto;
}


/********************************/
/********INVOICE****************/
#invoice-info {
    margin: 10px 20px;
}
#invoice-info th, #invoice-info td {
    padding: 5px 7px;
}
#invoice-info th {
    background-color: #4765a0;
    color: white;
    border: 1px solid #4765a0;
}
#invoice-info td {
    border: 1px solid #ccc;
}
#invoice-totals th {
    text-align: center;
}

/*** block to output invoice ***/
#invoice-overlay-off {
    position: fixed;
    top: 100px;
    left: 10%;
    width: 80%;
    background-color: pink;
}


/********************************/
/******ORDERS********************/
#left-block td {
    vertical-align: middle;
}
#order-details-container {
    vertical-align: top;
}
#close-details-btn {
    width: 32px;
    height: 32px;
    background: url('../img/icons/cancel-button.png') no-repeat;
    position: fixed;
    top: 50%;
    top: calc(50% - 32px);
    left: 5px;
    z-index: 5500;
    cursor: pointer;
}


/********************************/
/******LOGIN*********************/
#preloader-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #333;
    opacity: 0.7;
    z-index: 9999;
    display: none;
}

#preloader-overlay img {
    margin: 400px 50%;
    margin: 400px calc(50% - 32px);
}

/* Product details modal */

/* The Modal (background) */
.modal2 {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content/Box */
.modal-content2 {
    background-color: #fefefe;
    margin: 1% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 90%; /* Could be more or less, depending on screen size */
}

/* The Close Button */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}


.popupTarget {
    cursor: pointer;
    position: relative;
}

.popupBox {
    position: fixed; /* So it follows the mouse */
    background-color: #333;
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}
