﻿
.dealer fieldset {
    margin-bottom: 2rem;
    padding: 1.5rem;
    text-align: left;
}

.downloads fieldset {
    margin-top: 1.5rem;
}

.dealer legend,
.downloads legend {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    color: #000000;
    font-size: 1.3rem;
}

.dealer fieldset p,
.dealer fieldset p {
    margin-top: 0;
}

.dealer fieldset h3,
.dealer fieldset h3 {
    margin-top: 0px !important;
}




div.useraccount {
    text-align: left;
    padding: 5px;
    background-color: #e4e4e4;
    border-bottom-color: #999966;
    border-bottom-width: 1px;
    border-bottom-style: solid;
}

    div.useraccount span.company {
        float: right;
        font-size: 14px;
        color: #333;
    }

    div.useraccount span.user {
        text-align: left;
        padding-left: 2px;
    }



div.accountsheader {
    text-align: left;
    padding: 5px;
    background-color: #fff;
    border-bottom-color: #999966;
    border-bottom-width: 1px;
    border-bottom-style: solid;
    height: 30px;
}

    div.accountsheader span.companybdt {
        float: left;
        padding: 8px 0 0 5px;
        font-family: 'Times New Roman',Times,serif;
        font-size: 22px;
        color: #333;
    }

    div.accountsheader span.logo {
        float: right;
        padding-left: 2px;
    }

.search-spares {
    background: #f1f1f1;
    padding: 0.3rem;
    margin-left: 2rem;
    vertical-align: middle;
    min-height: 2rem;
    border-style: solid;
    border-width: 1px;
    border-color: #ccc;
    min-width: 200px;
    float: right;
}
    .search-spares table {
        margin: 0.3rem;
    }
        .search-spares table td {
            padding: 0.3rem;
            font-size: 1rem;
            line-height: 0;
            vertical-align: middle;
        }

.user-block {
    padding: 0.3rem;
    border: 1px solid #999966;
    vertical-align: top;
    width: auto;
    min-height: 20px;
    margin-bottom: 2rem;
    background: #e4e4e4;
    background: -webkit-gradient(linear, left top, left bottom, from(#f1f1f1), to(#ddd));
    background: -webkit-linear-gradient(top, #f1f1f1, #ddd);
    background: -moz-linear-gradient(top, #f1f1f1, #ddd);
    background: -o-linear-gradient(top, #f1f1f1, #ddd);
    background: linear-gradient(top, #f1f1f1, #ddd);
}

    .user-block .rule {
        border-bottom-style: dashed;
        border-bottom-width: 1px;
        border-bottom-color: #999966;
        padding-bottom: 0.25rem;
        margin-bottom: 1rem;
    }







/* --- accounts --- */
table.accounts {
    border-left: 1px solid #999;
    border-top: 1px solid #999;
}

    table.accounts td,
    table.accounts th {
        padding: 5px 10px 5px 10px;
        vertical-align: top;
        border-right: 1px solid #999;
        border-bottom: 1px solid #999;
    }

    table.accounts th {
        text-align: left;
        background-color: #e4e4e4;
        border-bottom-style: double;
        border-bottom-color: #999;
    }

        table.accounts th.center,
        table.accounts td.center {
            text-align: center;
        }

        table.accounts th.middle,
        table.accounts td.middle {
            vertical-align: middle;
        }

        table.accounts th.right,
        table.accounts td.right {
            text-align: right;
        }

    table.accounts.menu th {
        text-align: right;
        font-weight: normal;
        background-color: #fff;
    }

    table.accounts.menu thead th {
        text-align: center;
        background-color: #000;
        font-weight: bold;
        color: #fff;
    }

    table.accounts tr.alt th,
    table.accounts tr.alt td,
    table.accounts tr th.alt,
    table.accounts tr td.alt {
        background-color: beige;
    }

    table.accounts tr.overdue td {
        background-color: #e4e4e4;
        font-weight: bold;
    }

    table.accounts tr.overdue th {
        background-color: #e4e4e4;
        color: #cc0000;
        font-weight: bold;
    }

    table.accounts tr.total td,
    table.accounts tr.total th {
        border-top-style: double;
        border-top-color: #999;
        background-color: #e4e4e4;
        font-weight: bold;
    }

    table.accounts tr.company th {
        background-color: #000;
        font-weight: bold;
        color: #fff;
        text-align: left;
        padding-top: 1.5rem;
    }

    table.accounts tr.order-header th {
        font-weight: bold;
        text-align: left;
        padding-top: 1.5rem;
    }

/*make small sticky*/
table.accounts {
    position: relative;
    border-collapse: collapse;
}

    table.accounts thead td,
    table.accounts thead th {
        background-color: #e4e4e4;
        position: -webkit-sticky;
        position: sticky;
        z-index: 20;
        top: 0;
    }




div.accounts h2:first-child {
    margin-top: 1rem;
}

div.accounts .group {
    margin: 1.5rem 0;
    padding: 0.5rem;
    background: #e3e3e3;
    border: 1px solid #bbbbbb;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    -ms-border-radius: 4px;
    -o-border-radius: 4px;
    border-radius: 4px;
}
    div.accounts .group.issue {
        border-color: #dc3545;
        background: #ffeaec;
    }
    div.accounts .group .row {
        padding: 0.25rem;
        flex-wrap: nowrap;
    }
    div.accounts .group .row.header {
        font-weight: bold;
        color: #333;
    }
        div.accounts .group .row.item {
            background: #fff;
            xborder-left: 1px solid #e3e3e3;
            xborder-right: 1px solid #e3e3e3;
            border-bottom: 1px solid #e3e3e3;
        }
        div.accounts .group .row.item.header {
            background: #fff;
            xborder-top: 1px solid #e3e3e3;
        }


align-content: center;
/* --- pricelist --- */
.pricelist,
.pricelist td,
.pricelist th {
    font-size: 1rem;
    line-height: 1.5em;
    padding: 0.3rem;
}
.pricelist table {
    border: 1px solid #999;
}

    .pricelist table td {
        vertical-align: top;
    }

    .pricelist table th {
        text-align: left;
    }


.pricelist tr {
    background-color: #fff;
}

    .pricelist tr.alt {
        background-color: #f5f5f5;
    }

.pricelist thead tr {
    background-color: #999;
}

    .pricelist thead td,
    .pricelist thead th {
        color: #fff;
        font-weight: bold;
        vertical-align: middle;
        font-size: 0.9rem;
        line-height: 1.2rem;
    }
    .pricelist td.item,
    .pricelist td.ets,
    .pricelist td.rrp {
        width: 60px
    }

.pricelist thead td i,
.pricelist thead th i {
    font-weight: normal;
}


.pricelist tr.category td {
    border-top: 1px solid #999;
}

.pricelist tr.category h2 {
    padding: 2.5rem 5rem 0.5rem 0.3rem;
    margin: 0;
    color: #000;
}
.pricelist tr.category h3 {
    padding: 0.3rem;
    margin: 0;
}
.pricelist tr.category h5 {
    padding: 0.3rem;
    margin: 0;
}
.pricelist tr.category .nav-up {
    margin-top: 2rem;
    float: right;
}

.pricelist tr.item td {
    border-top: 1px solid #999;
}
.pricelist tr.item td:first-child {
    word-break: break-all;
}
.pricelist tr.component td {
    font-size: 0.9rem;
    border-top: 1px solid #e4e4e4;
}
.pricelist td.stock {
    font-size: 0.9rem;
}
    .pricelist td.stock.warning {
        font-size: 0.9rem;
        background-color: #f3ead1;
       
        text-align: center;
    }

.pricelist tr.list td {
    font-size: 0.9rem;
    border-top: 1px solid #e4e4e4;
    border-left: 1px solid #e4e4e4;
}

    .pricelist tr.list td:first-child {
        border-left: none;
    }

.pricelist tr.list.divider td {
    border-top: 1px solid #999;
}

.pricelist td.price {
    color: #cc0000;
    font-weight: bold;
}
.pricelist tbody td.ets {
    color: #cc0000;
}
.pricelist P,
.pricelist_notes P {
    margin: 3px 0px 0px 0px;
}

.pricelist_notes {
    padding: 5px;
    border-style: solid;
    border-width: 1px;
    border-color: #999;
    margin-top: 15px;
}

@media (min-width: 760px) {
    .pricelist,
    .pricelist td,
    .pricelist th {
        font-size: 1.2rem;
        padding: 0.5rem;
    }
        .pricelist tr.component td,
        .pricelist td.stock,
        .pricelist tr.list td {
            font-size: 1rem;
        }

        .pricelist tr.category h2 {
            padding: 4.5rem 0.5rem 0.5rem 0.5rem;
            margin: 0;
            color: #000;
        }
        .pricelist tr.category h3,
        .pricelist tr.category h5 {
            padding: 0.5rem;
        }

        .pricelist tr.category h2 {
            padding: 4.5rem 5rem 0.5rem 0.3rem;
        }

        .pricelist tr.category .nav-up {
            margin-top: 4rem;
            float: right;
        }

    .sticky table {
        position: relative;
        border-collapse: collapse;
    }

    .sticky thead td,
    .sticky thead th {
        background-color: #999;
        position: -webkit-sticky;
        position: sticky;
        z-index: 20;
        top: 0;
    }
}



div.sticky-outer {
    overflow-x: auto;
    cursor: all-scroll;
}

    div.sticky-outer::-webkit-scrollbar {
        width: 20px;
    }

    div.sticky-outer::-webkit-scrollbar-track {
        box-shadow: inset 0 0 2px grey;
        border-radius: 10px;
    }

    div.sticky-outer::-webkit-scrollbar-thumb {
        background: #0598ED;
        border-radius: 10px;
    }

div.sticky-wrapper {
    position: relative;
    width: 100%;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2rem;
}

    div.sticky-wrapper.sticky-yx {
        height: auto;
        overflow-x: auto;
        overflow-y: auto;
        max-height: 80vh;
        max-width: 100%;
    }

    div.sticky-wrapper table {
        text-align: left;
        border-collapse: collapse;
    }

    div.sticky-wrapper thead.sticky th {
        position: -webkit-sticky;
        position: sticky;
        min-width: 120px;
        top: 0;
        vertical-align: top;
        z-index: 20;
    }

    div.sticky-wrapper tbody.sticky th {
        position: -webkit-sticky;
        position: sticky;
        min-width: 12rem;
        left: 0;
        z-index: 10;
    }

    div.sticky-wrapper thead.sticky th.is-stuck {
        box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.4);
    }

    div.sticky-wrapper tbody.sticky th.is-stuck {
        box-shadow: 2px 0 2px -1px rgba(0, 0, 0, 0.4);
    }





img.refrigerant {
    float: right;
    height: 65px;
    margin-left: 1rem;
}

.files img.refrigerant {
    float: right;
    height: 45px;
    margin-left: 1rem;
}



.code-block {
    background: #ececec;
    border: 1px dashed #333;
    border-radius: 0.5rem;
}

    .code-block pre {
        background: #ececec;
        margin: 1em;
    }

.web-code .comment {
    color: #46904c;
}




@media screen and (max-width: 560px) {
    div.accounts .group {
      font-size: 0.9rem
    }

    .dealerpanes {
        padding: 0.5rem;
    }
}
