﻿@import 'fonts.less';
@import 'colors.less';

* {
    .bordercolor-grey;
    border-style: solid;
    border-width: 0;
    margin: 0;
}

html {
    font-size: 15px;
    height: 100%;
}

body {
    .font-sofi200;
    height: 100%;
    line-height: 1.2;
    min-width: 320px;
    text-rendering: optimizeLegibility;
    width: 100%;
}


/* typo stuff */
small {
    font-size: smaller;
}

p {
    font-size: 0.90rem;
    line-height: 1.4;
}

p + p {
    margin-top: 0.30rem;
}

/* Endy typo stuff */

// only general styling of links. 
a {
    .txtcolor-black;
    .font-sofi100;
    cursor: pointer;
    text-decoration: none;

    &:hover {
        opacity: 0.6;
    }
}

@import 'form_elements.less';
@import 'dialog.less';
@import 'flex.less';
@import 'table.less';
@import 'tile.less';
@import 'sidemenu.less';
@import 'animations.less';

header {
    @background-size: 24px;
    @header-size: 64px;

    .bgcolor-white;
    .flexcontainer;
    .font-sofi200;
    border-width: 0;
    border-bottom-width: 1px;
    height: @header-size;
    justify-content: space-between;
    left: 0;
    position: relative;
    top: 0;
    width: 100%;
    z-index: 10;

    a {
        .font-sofi300;
        .txtcolor-graydark;
        font-size: 0.9em;

        &.brand {
            background: url("../../Content/Images/svg/volvo-wordmark-black.svg") no-repeat center;
            background-size: 98px auto;
            height: 100%;
            width: 98px;
        }
    }

    > span {
        .flexcontainer;
        flex: 1 1 10%;
        justify-content: flex-start;
        height: 100%;
        margin: 0 @background-size;
        position: relative;

        + span {
            justify-content: flex-end;

            > a {
                position: relative;

                > span {
                    .bgcolor-black;
                    display: none;
                    bottom: -12px;
                    left: 0;
                    position: absolute;
                    height: 1px;
                    width: 100%;
                }
            }
        }

        > a {
            &:hover {
                opacity: 1;

                > span {
                    display: block;
                }
            }
        }

        > a.menue {
            background: url('../Images/svg/ic_menu_black_24px.svg') no-repeat center;
            background-size: @background-size;
            height: @background-size;
            width: @background-size;
            border-radius: 6px;
            padding: 8px;
            margin-left: 8px;

            &:hover {
                .bgcolor-graylight
            }
        }

        > a.logout {
            background: url('../Images/svg/ic_account_circle_black_24px.svg') no-repeat center;
            background-size: @background-size;
            height: @background-size;
            width: @background-size;
            border-radius: 6px;
            padding: 8px;
            margin-left: 36px;

            &:hover {
                .bgcolor-graylight
            }
        }

        > a.search {
            background: url('../Images/svg/ic_close_black_24px.svg') no-repeat center;
            background-size: @background-size;
            height: @background-size;
            width: @background-size;
            border-radius: 6px;
            padding: 8px;

            &:hover {
                .bgcolor-graylight
            }
        }
    }

    &.search-off > span > a.search {
        background-image: url('../Images/svg/ic_search_black_24px.svg');
    }

    + .dealersearch {
        .bgcolor-white;
        border-bottom-width: 1px;
        height: 42px;
        left: 0;
        overflow: hidden;
        position: absolute;
        top: @header-size;
        transition: top 420ms ease-in-out 0ms;
        width: 100%;
        z-index: 6;

        form {
            height: 100%;
            width: 100%;

            > * {
                float: right;
            }

            > input {
                box-shadow: none;
                font-weight: bold;
                height: 100%;
                padding: 0 0.9rem;
                text-align: right;
                width: ~'calc(100% - @{header-size} - 1px - 1.8rem)';
            }

            > button[type=submit] {
                .bgcolor-cover;
                background-image: url('../Images/svg/ic_search_white_24px.svg');
                background-repeat: no-repeat;
                background-position: center;
                background-size: @background-size;
                height: 100%;
                transition: background-color 150ms linear 0ms;
                width: @header-size + 1px;

                &:hover {
                    .bgcolor-black;
                }
            }
        }
    }

    &.search-off + .dealersearch {
        top: 0;
    }
}

nav {
    .font-sofi100;
    height: 100%;
    left: 0;
    overflow: hidden;
    position: absolute;
    top: 0;
    transition: height 900ms ease-in-out 0ms;
    width: 100%;
    z-index: 6;

    a {
        .txtcolor-black;
        &:hover {
            opacity: 1.0;
        }
    }

    > .back {
        .bgcolor-cover;
        display: block;
        height: 100%;
        left: 0;
        opacity: 1;
        position: absolute;
        top: 0;
        transition: opacity 600ms ease-in-out 300ms;
        width: 100%;
        z-index: -1;
    }

    > div {
        .bgcolor-white;
        .flexcontainer;
        .txtcolor-black;
        align-content: flex-start;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 111px 15px 30px;
        position: relative;
        z-index: 2;

        > div {
            flex: 1 1 10%;
            margin: 15px;

            > a {
                .bordercolor-grey;
                border-width: 0;
                border-top-width: 1px;
                display: block;
                font-size: 1.05em;
                padding: 12px 0;

                > span:after {
                    background: url("../Images/svg/ic_keyboard_arrow_right_blue_24px.svg") no-repeat center;
                    background-size: 1.5rem;
                    content: '';
                    display: inline-block;
                    height: 1.2rem;
                    margin-bottom: -0.27rem;
                    margin-left: 0.6rem;
                    transition: margin-left 150ms linear 0ms;
                    width: 1rem;
                }
            }

            > a:hover span:after {
                margin-left: 1.2rem;
            }

            > span {
                .font-sofi100;
                display: block;
                font-size: 1.5em;
                padding-bottom: 21px;
            }

            > span + span {
                .bordercolor-grey;
                border-width: 0;
                border-top-width: 1px;
                font-size: 0.9em;
                min-height: 2.4rem;
                padding: 18px 0;
            }
        }

        > .close {
            background: url("../Images/svg/ic_close_black_24px.svg") no-repeat center;
            background-size: 24px;
            display: block;
            height: 30px;
            position: absolute;
            right: 0;
            top: 124px;
            width: 81px;
        }
    }

    &.nav-off {
        height: 0;
    }
}

.submenu {
    .bgcolor-graydark;
    .flexcontainer;
    .font-sofi300;
    height: 42px;
    justify-content: space-between;
    left: 0;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 4;

    a {
        font-size: 0.9em;
        .txtcolor-white;
        &:hover {
            opacity: 1.0;
        }
    }

    .location {
        padding: 0;
        background-color: white;
        border-radius: 100%;
        height: 1.80rem;
        width: 1.80rem;
        background-position: center;
        background-size: 72% auto;
        margin: 0 12px 0 8px;

        &:hover {
            transform: scale(1.20);
        }
    }

    > span {
        .flexcontainer;
        height: 100%;
        margin: 30px;

        > a {
            .flexcontainer;
            height: 100%;
            margin-left: 24px;
            overflow: hidden;
            position: relative;

            > span {
                bottom: -4px;
                height: 3px;
                left: 0;
                position: absolute;
                transition: bottom 150ms linear 0ms;
                width: 100%;
            }
        }

        > a:hover > span {
            .bgcolor-white;
            bottom: 0;
        }

        &.left {

            >span {
                border-right-color: white;
                border-right-width: 2px;
                display: flex;
                align-items: center;
                height: 100%;
                margin-right: 10px;
            }

            > a {
                margin-left: 5px;
                font-size: 1em;
                .font-sofi300;
            }
        }
    }
}

.dealersearch ~ .submenu {
    .bgcolor-bluedark;
}

#dealerdetail {
    .bgcolor-black;
}

.loginbackground {
    background: url('../Images/jpg/intro.jpg');
    background-size: cover;
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
}

.login {
    .bgcolor-cover;
    .flexcontainer;
    flex-flow: column wrap;
    height: 100%;
    width: 100%;

    > * {
        margin: 0 auto 24px;
        max-width: 420px;
        text-align: center;
    }

    > img {
        height: auto;
        width: 115px;
        margin: 0 auto 48px;
    }

    > span {
        font: normal 1.5em/1 'sofi-300';
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }

    .validation-summary-errors > ul {
        list-style-type: none;
        margin: 0;
        padding: 0;
        color: red;
    }

    > form {
        .flexcontainer;
        flex-flow: column wrap;

        > input {
            .txtcolor-black;
            border-width: 1px;
            height: 42px;
            margin: 0 auto -1px;
            text-align: center;
            width: 420px;
            font-size: 0.9rem;
            box-shadow: 0 0 0 0 rgba(000,000,000,0.30);
            border-radius: 0;
        }

        > a {
            .txtcolor-white;
            border: 1px solid white;
            letter-spacing: 0.025em;
            margin-top: 36px;
            padding: 18px 45px;
            transition: all 150ms linear 0ms;

            &:hover {
                .bgcolor-white;
            }
        }
    }

    button[type=submit] {
        display: inline-block;
        margin-top: 36px;
        border-width: 1px;
        .bordercolor-white;
        .bgcolor_transparent_white;
        padding: 18px 45px;
        letter-spacing: 0.025em;
        .font-sofi100;
        transition: all 150ms linear 0ms;
        text-transform: none;

        &:hover {
            .bgcolor-white;
        }
    }
}

.backline {
    height: 50px;
    width: 100%;
    text-align: center;
    /*line-height: 50px; // same as height for vertical align*/
}

footer {
    .bgcolor-black;
    .font-sofi100;
    font-size: 0.84em;
    height: 90px;
    line-height: 90px; // same as height for vertical align
    position: relative;
    text-align: center;
    width: 100%;
    z-index: 5;
}

#phone {
    position: fixed;
    z-index: 998;
    top: 0;
    left: 0;
    width: 100.0%;
    height: 100.0%;
    display: none;
    flex-flow: row wrap;
    justify-content: center;
    align-content: center;
    align-items: center;
    background-image: url("../Images/jpg/intro.jpg");
    background-position: center;
    background-size: cover;

    > div {
        position: relative;
        width: 60.00vw;
        display: flex;
        flex-flow: row wrap;
        justify-content: center;
        align-content: center;
        align-items: center;

        > img {
            width: 100.0%;
            max-width: 24.00vw;
            margin-bottom: 4.00vw;
        }

        > p {
            width: calc(100.0% - 4.80vw);
            padding: 3.00vw 2.40vw;
            border-radius: 0.90vw;
            font-size: 3.00vw;
            line-height: 1.4;
            text-align: center;
            background-color: rgba(000,000,000,0.60);
            color: #fff;
        }
    }
}

@media screen and (min-width: 0) and (max-width: 768px) {
    #phone {
        display: flex;
    }
}

@media screen and (min-width : 769px) and (max-width : 1024px)
{	
	html	{	font-size: 12px; }    
}

@media screen and (min-width : 1025px)
{		
	html	{	font-size: 15px; }
}   

/*@media screen and (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    #phone {
        display: flex;
    }
}*/

.content {
    height: auto;
    margin: 0 auto;
    min-height: ~'calc(100% - 65px - 42px - 90px - 50px - 4.8em)';
    padding: 2.4em 0;
    position: relative;
    width: ~'calc(100% - 84px)';

    .flexbox {
        .flexcontainer-stretch;
        justify-content: flex-start;
        margin-left: -1.2em;
        width: ~'calc(100% + 2.4em)';
    }
}

.error {
    .background {
        background-image: url('../Images/jpg/Error.jpg');
        background-position: center bottom;
        background-repeat: no-repeat;
        background-size: cover;
        height: 100%;
        left: 0;
        position: fixed;
        top: 0;
        width: 100%;
    }

    .submenu {
        .txtcolor-yellow;
    }

    .content {
        .flexcontainer;

        > div {
            max-width: 80%;
            text-align: center;

            > img {
                height: 12rem;
                margin: 0 auto;
                width: auto;

                &.servererror {
                    animation-delay: 3.0s;
                    animation-duration: 3.0s;
                    animation-iteration-count: infinite;
                    animation-name: moveall;
                    animation-timing-function: ease-in-out;
                    transform: perspective(1000px) scaleX(1.00) rotateY(00deg);
                    transform-origin: 50.00% 50.00%;
                }

                &.insufficientpermission {
                    animation-duration: 1.50s;
                    animation-name: moveright;
                    animation-timing-function: ease-in-out;
                }
            }

            > p {
                .txtcolor-yellow;
                font-size: 1.50rem;
                letter-spacing: 0.06em;
                margin: 1.20rem 0 3.00rem;
                text-align: center;
                width: 100.0%;
            }

            > div.code {
                .bgcolor-white;
                border-width: 1px;
                margin-bottom: 3.00rem;
                opacity: 0.84;
                overflow: hidden;
                overflow-y: auto;
                padding: 15px 24px;

                > pre {
                    .txtcolor-black;
                    letter-spacing: 0.05em;
                    text-align: left;

                    > small {
                        .font-sofi200;
                    }
                }
            }
        }
    }
}

.kennung {
    margin-bottom: 2.40rem;
    padding: 0.6em;
    border-width: 1px;
    .bgcolor-graylight;
    font-family: Arial;
    width: 100%;

    th{
        vertical-align: middle;
    }
}

/* Tabelle auf der Händlerdetailseite */
#CompanyDetail,
.companyDetail {
    margin-bottom: 2.40rem;
    .bgcolor-graylight;
    font-family: Arial;
    border-width: 1px;

    .rb {
        border-right-width: 2px;
    }
}

/*Button-Zeile oben auf Seiten*/
.control {
    .flexcontainer;
    justify-content: flex-end;
    margin-bottom: 2.40rem;
    width: 100%;

    > :not(:last-child),
    > div > :not(:last-child) {
        margin-right: 2.40rem;
    }
}

/* Button Zeile unten auf Seiten */
.control.bottom {
    margin-bottom: 0;
    padding-top: 2.40rem;

    > * {
        margin-right: 0;
    }
}


/* Tabelle auf der Händlerdetailseite */
.companyDetail {     
     .bgcolor-graylight;
    font-family: Arial;
    border-width: 1px;

    .rb {
        border-right-width: 2px;
    }

    + h3 {
        margin-top: 1.50rem;
    }
}





td.booked_packages {
    height: 70px;
    padding: 0;

    > span {
        .flexcontainer;
        flex-wrap: nowrap;
        height: 100%;
        width: 100%;
        white-space: nowrap;

        > span {
            border-right-width: 1px;
            flex: 1 1 auto;
            height: 100%;
            line-height: 70px;
            text-transform: uppercase;

            &:first-child {
                border-left-width: 0;
            }

            &:last-child {
                border-right-width: 0;
                padding-right: 1px;
            }
        }
    }

    &.list {
        height: 30px;

        span {
            line-height: 30px;
        }
    }
}

/* für einen Text mit Bild SKR Häkchen in Händleransicht*/
span.ico {
    display:inline-block;
    height: 24px;
    line-height: 24px;
    padding-left: 24px;
    background-repeat: no-repeat;
    
    vertical-align:middle;
}

h3 {
    margin-bottom: 1.50rem;
    opacity: 0.42;
}

#stafflist {
    display: flex;
    flex-wrap: wrap;    
}

.staffbox {
    margin-left: 0;
    font-family: Arial;
    min-width: 320px;

    > div, > form {
        .bgcolor-graylight;
        padding: 0.84em;

        > div {
            .bgcolor-white;
            padding: 0 0.6em;
            display: flex;
            flex-direction: column;
            height: 350px;

            > div {
                .bordercolor-grey;
                border-top-width: 1px;
            }
        }
    }

    span.row {
        display: inline-block;
        width: 100%;
        font-size: 0.9em * 0.9em;


        &:last-of-type {
            flex-grow: 1;
            margin-top: 0.78em;

            > label {
                padding: 0;
                padding-top: 0.78em;
                vertical-align: top;
            }
        }
    }

    label {
        display: inline-block;
        width: 25%;
        font-size: 0.9em;
        max-width: 40%;
        opacity: 0.6;
        font-family: Arial;
        padding-top: 20px;
    }

    input {
        width: 65%;
    }

    span.select2 {
        padding-top: 0;
        padding-bottom: 0;

        span {
            font-size: 0.9rem * 0.9rem;

            &.selection {
                padding: 0;
                height: 1.9rem;
            }
        }

        .select2-selection {
            padding: 0;
        }

        .select2-selection__choice {
            padding-top: 2px;
        }

        .select2-selection__choice__remove {
            width: 4px;
            padding-top: 0;
            padding-bottom: 0;
        }

        span.dropdown-wrapper {
            width: unset;
            padding: 0;
        }
    }

    .control {
        padding-top: 0;
    }

    a.ico {
        padding: 1em;
        background-position-x: center;
        margin-bottom: 3px;
        margin-top: 3px;
    }

    a.save {
        float: right;
    }
}

    /* zur Anzeige auf der CampaignsPotentialDetail Seite */

    @iconsize: 3.6em;

    .illustration > img {
        -moz-box-sizing: border-box;
        box-sizing: border-box;
        display: inline-block;
        background-position: center;
        background-repeat: no-repeat;
        background-size: @iconsize;
        height: @iconsize;
        padding-left: @iconsize;
        width: @iconsize;

        &.mail {
            background-image: url('../Images/svg/baseline-mail_outline-24px.svg');
        }

        &.file {
            background-image: url('../Images/svg/baseline-insert_drive_file-24px.svg');
        }

        &.phone {
            background-image: url('../Images/svg/baseline-phone-24px.svg');
        }
    }

    ul.offerlist {
        margin-left: 1em;
        padding: 0;
    }



    @import 'components.less';
