﻿
/* paging */
html.dark .page-link {
    color: #fff !important;
}
.page-link {
    color: #383f48 !important;
}

html.dark .pagination > li, html.dark .pagination > li > span {
    background-color: #2c3237;
    border-color: #282d31;
}
li.page-item.active {
    background: black;
    color: white !important;
}
html.dark li.page-item.active {
    background: grey;
}
li.page-item:first-child  {
    margin-left: 0;
    border-top-left-radius: 0.25rem;
    border-bottom-left-radius: 0.25rem;
}
li.page-item:last-child {
    margin-left: 0;
    border-top-right-radius: 0.25rem;
    border-bottom-right-radius: 0.25rem;
}

.icon-edited {
    position: relative;
    top: -61px;
    left: 10px;
    z-index: 2;
    color: darkgreen;
}

.companylogo {
    max-height: 50px !important;
    overflow: hidden;
    border: 5px solid transparent;
    border-radius: 2px;
    cursor: pointer;
}

.companylogosmall {
    max-height: 40px !important;
    overflow: hidden;
    border: 5px solid transparent;
    border-radius: 2px;
    cursor: pointer;
}

.item .fa-tv-retro {
    color: #ea6161 !important;
}

.lastitem {
    border: 1px solid transparent;
    border-radius: 5px;
    padding: 5px;
    color: black;
    font-size: 0.9em;
    line-height: 1.4;
    font-weight: 600;
    height: 89.2%;
}

/* sortering */
.dropdown-item.active, .dropdown-item:active {
    background-color: #e6e6e6;
}

html.dark .dropdown-item.active, html.dark .dropdown-item:active {
    background-color: #000000;
    color: white;
}

/* filter */
.filter-area {
    border: 1px solid #f3f3f3;
    border-radius: 3px;
    background-color: #fdfdfd;
}

html.dark .filter-area {
    border: 1px solid #312f2f;
    background-color: var(--darkmode-plate);
}

.filter-counter {
    background-color: var(--darktextgreen);
    color: white;
    width: 20px;
    height: 20px;
    top: 0px;
    left: 4px;
}

html.dark .btn-light {
    background-color: transparent !important;
}

    html.dark .btn-light:hover {
        background-color: #1b1c1e !important;
        border: 1px solid #808080;
    }

/* resten av sidan */

.companylogo {
    max-height: 50px !important;
    overflow: hidden;
    border: 5px solid transparent;
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    top: -15px;
}

.productitem {
    position: relative;
    z-index: 1;
}

.custom-image-fit {
    margin-bottom: 8px;
}

.companylogoaction {
    background-color: #fff;
    color: #bdb8b2 !important;
    padding: 3px 5px;
    z-index: 1;
    position: relative;
    cursor: pointer;
    top: -6px; /* lyfter upp boxen något */
    padding-bottom: 5px;
    border-bottom: 1px solid #dee2e6;
    border-bottom-left-radius: 4px;
    border-left: 1px solid #dee2e6;
    border-bottom-right-radius: 4px;
    border-right: 1px solid #dee2e6;
}

html.dark .companylogoaction {
    background-color: #2c3237;
    border-left: 1px solid #2c3237;
    border-bottom: 1px solid #2c3237;
    border-right: 1px solid #2c3237;
}

.productcompany {
    background-color: #b1b1b1;
    padding: 3px 6px;
    font-size: 0.7em;
    color: white;
    border-radius: 3px;
}

html.dark .productcompany {
    background-color: #242528;
}

.companylink {
    padding-left: 3px;
    color: #989da3;
    font-weight: 600;
}

html.dark .companylink {
    color: #a3a3a3;
}

.text-decoration-none, a:link, a:visited, a:hover {
    text-decoration: none;
}

@media(min-width: 1770px) {
    .custom-image-fit {
        height: 240px !important;
    }
}

@media(max-width: 1770px) and (min-width: 1365px) {
    .custom-image-fit {
        height: 200px !important;
        object-fit: cover;
    }
}

@media(max-width: 575px) and (min-width: 380px) {
    .custom-image-fit {
        height: 50vw !important;
    }

        .custom-image-fit img {
            max-height: none !important;
        }
}
/* ser till att multiselect dropdown-listorna blir 100% breda, lägg över i common.css senare */
.multiselect-container > li > a > label.checkbox {
    width: 100%;
}

.btn-group > .btn:first-child {
    width: 100%;
}

.img-fluid {
    object-fit: cover;
}

.modal-xlg {
    max-width: 80% !important;
}

.testdrive {
    position: absolute;
    background-color: #4b661b;
    color: #eee !important;
    padding: 0px 8px 0px 8px;
    z-index: 1;
    position: absolute;
    cursor: pointer;
    bottom: 98px;
    right: 10px;
    border-radius: 5px;
    font-size: 0.8em;
}

/* bevakning */
i.far.fa-times.fa-fw.remove-itm {
    display: block !important;
    float: right !important;
}

.remove-itm:before {
    padding-left: 7%;
    position: relative;
    top: 5px;
}

.dropdown-toggle-split {
    border-color: #cccccc;
}

html.dark .dropdown-toggle-split {
    border-color: #383f48;
}

/* formaterar ikonen sålt fordon */
.sold {
    position: absolute;
    padding-top: 14px;
    background-color: #e43e31;
    border-radius: 133px;
    left: auto;
    right: 7px;
    top: 7px;
    text-shadow: none;
    width: 43px;
    height: 27px;
    line-height: 0px;
    display: inline-block;
    text-align: center;
    z-index: 2;
    -webkit-box-shadow: none;
    box-shadow: none;
    font-size: 0.8em;
    font-weight: bold;
    color: white;
    border-bottom: 2px solid transparent;
}

/* varningsbakgrund inga träffar */
.bg-color-lightred {
    background-color: #FF5A4f;
    border: 1px solid #c53e35;
}

    .bg-color-lightred p {
        color: white;
    }

.input-group-prepend {
    width: 100%;
}

a#ContentPlaceHolder1_dialogMonitor {
    width: 100%;
    text-align: left
}

/* radioknappar som vanliga knappar */
.radio-toolbar {
    margin: 0px;
}

.radio-toolbar input[type="radio"] {
    opacity: 0;
    position: fixed;
    width: 0;
}

.radio-toolbar label {
    display: inline-block;
    background-color: #f1f1f1;
    padding: 5px 10px 5px 10px;
    border-radius: 4px;
    border: 1px solid #bdb8b2;
    color: #5d5e5f;
    font-size: 0.9em;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}

html.dark .radio-toolbar label {
    background-color: transparent;
    border: 1px solid #383f48;
    color: white;
}

.radio-toolbar label:hover {
    filter: brightness(110%);
}

.radio-toolbar input[type="radio"]:focus + label {
    /*border: 2px dashed #444;*/
}

.radio-toolbar input[type="radio"]:checked + label {
    background-color: #135221d9;
    border: 1px solid #135221d9;
    color: white;
}

.button-cta {
    border-top-right-radius: 3px !important;
    border-bottom-right-radius: 3px !important;
}

.toggle-searchfilter {
    border-top-left-radius: 3px !important;
    border-bottom-left-radius: 3px !important;
}

.scrollable-tabs-container a {
    padding: 3px 15px !important;
}

.modal-body h4 {
    margin-bottom: 10px;
}

.scrollable-tabs-container .scrolltab-item span {
    color: #777;
    text-decoration: none;
    background: rgb(247, 246, 245);
    padding: 4px 15px;
    display: inline-block;
    border-radius: 25px;
    user-select: none;
    white-space: nowrap;
    font-weight: 600;
    font-size: 0.8em;
    display: inline-block;
}

.scrollable-tabs-container li.scrolltab-item span.active {
    background: var(--background-active-light-background);
    color: var(--background-active-light-foreground);
}

/* markerar den man klickar på */
.scrollable-tabs-container .scrolltab-item.active span {
    background: var(--background-active-light-background);
    color: var(--background-active-light-foreground);
}

/* skeleton */

.skeleton-img img {
    background: #f9f9f9;
    animation: skeleton-loading 1s linear infinite alternate;
}

html.dark .skeleton-img img {
    background: #25282a !important;
}

.skeleton {
    animation: skeleton-loading 1s linear infinite alternate;
}

html.dark .skeleton {
    animation: skeleton-loading-dark 1s linear infinite alternate;
}

.skeleton-text {
    width: 100%;
    height: 1rem;
    margin-bottom: .25rem;
    border-radius: .125rem;
}

    .skeleton-text:last-child {
        margin-bottom: 0;
        width: 80%;
    }

@keyframes skeleton-loading {
    0% {
        background: hsl(0, 0%, 92%);
    }

    100% {
        background-color: hsl(0, 0%, 97%);
    }
}

@keyframes skeleton-loading-dark {
    0% {
        background: hsl(210, 10%, 20%);
    }

    100% {
        background-color: hsl(210, 10%, 15%);
    }
}



.item .fa-tv-retro {
    color: #ea6161 !important;
}

/* resten av sidan */
.productitem {
    position: relative;
    z-index: 1;
}

.custom-image-fit {
    margin-bottom: 8px;
}

.companylogoaction {
    background-color: #fff;
    color: #bdb8b2 !important;
    padding: 3px 5px;
    z-index: 1;
    position: relative;
    cursor: pointer;
    top: -6px; /* lyfter upp boxen något */
    padding-bottom: 5px;
    border-bottom: 1px solid #dee2e6;
    border-bottom-left-radius: 4px;
    border-left: 1px solid #dee2e6;
    border-bottom-right-radius: 4px;
    border-right: 1px solid #dee2e6;
}

html.dark .companylogoaction {
    background-color: #2c3237;
    border-left: 1px solid #2c3237;
    border-bottom: 1px solid #2c3237;
    border-right: 1px solid #2c3237;
}

.productcompany {
    background-color: #b1b1b1;
    padding: 3px 6px;
    font-size: 0.7em;
    color: white;
    border-radius: 3px;
}

html.dark .productcompany {
    background-color: #242528;
}

.companylink {
    padding-left: 3px;
    color: #989da3;
    font-weight: 600;
}

html.dark .companylink {
    color: #a3a3a3;
}

.text-decoration-none, a:link, a:visited, a:hover {
    text-decoration: none;
}

@media(min-width: 1770px) {
    .custom-image-fit {
        height: 240px !important;
    }
}

@media(max-width: 1770px) and (min-width: 1365px) {
    .custom-image-fit {
        height: 200px !important;
        object-fit: cover;
    }
}

@media(max-width: 575px) and (min-width: 380px) {
    .custom-image-fit {
        height: 50vw !important;
    }

        .custom-image-fit img {
            max-height: none !important;
        }
}

.modal-xlg {
    max-width: 80% !important;
}

.testdrive {
    position: absolute;
    background-color: #4b661b;
    color: #eee !important;
    padding: 0px 8px 0px 8px;
    z-index: 1;
    position: absolute;
    cursor: pointer;
    bottom: 97px;
    right: 10px;
    border-radius: 5px;
    font-size: 0.8em;
}
/* formaterar ikonen sålt fordon */
.sold {
    position: absolute;
    padding-top: 14px;
    background-color: #e43e31;
    border-radius: 133px;
    left: auto;
    right: 3px;
    top: 3px;
    text-shadow: none;
    width: 43px;
    height: 27px;
    line-height: 0px;
    display: inline-block;
    text-align: center;
    z-index: 2;
    -webkit-box-shadow: none;
    box-shadow: none;
    font-size: 0.8em;
    font-weight: bold;
    color: white;
    border-bottom: 2px solid transparent;
}

/* varningsbakgrund inga träffar */
.bg-color-lightred {
    background-color: #FF5A4f;
    border: 1px solid #c53e35;
}

    .bg-color-lightred p {
        color: white;
    }

.text-5 {
    font-weight: 600;
    color: #444343;
}

html.dark .text-5 {
    color: #bdb8b2;
}


.pagingitems {
    display: flex;
    gap: 0px; /* Avstånd mellan element */
}

    .pagingitems .page-item {
        display: inline-block; /* Gör att de blir så breda som innehållet */
        padding: 5px 10px;
    }
