﻿* {
    box-sizing: border-box;
}

html {
    -ms-overflow-style: -ms-autohiding-scrollbar
}

html, body, form {
    height: 100%;
}

body {
    background: #f2f2f2;
    margin: 0;
    font-size: 12pt;
    font-family: 'Source Sans Pro';
}
a {
    cursor: pointer;
    color: #0095e2;
    text-decoration: none;
}

.hidden{
    display: none !important;
}

#main-wrapper {
    display: flex;
    height: 100%;
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
}

.flex-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
}

.flex-content {
    max-width: 1145px;
    width: 100%;
    min-width: 250px;
}

#menubar, #header, #main, #footer {
    padding-top: 28px;
    padding-left: 25px;
    padding-right: 25px;
    width: 100%;
    flex-shrink: 0;
}
#menubar {
    padding-top: 0;
    background: #fff;
    height: 40px;
}
    #menubar a {
        color: #000;
        text-decoration: none;
        width: 100%;
    }

#header {
    background-image: linear-gradient(to bottom, #000, #000 29px, #fff 29px, #fff);
    min-height: 120px;
}


#header .flex-content {
    display: flex;
}

#header #sub-header {
    width: 95px;
    height: 80px;
    background: #000;
    border-bottom-left-radius: 48px;
    border-bottom-right-radius: 48px;
    text-align: center;
    margin-left: 5px;
}

#header #header-right {
    flex-grow: 2;
    width: 100%;
}

#header #header-left, #header #header-right {
}

#header #sub-header img {
    margin-top: -2px;
    width: 64px;
}

#header #info-box {
    padding-top: 10px;
    display: flex;
}

    #header #info-box .info-box-mrf {
        padding-left: 14px;
    }

        #header #info-box .info-box-mrf .mrf-brand {
            font-size: 1.8em;
            font-family: 'Trim Bold';
        }

        #header #info-box .info-box-mrf .mrf-desc {
            font-family: 'Source Sans Pro';
            /*font-family: 'Trim Light';*/
        }

    #header #info-box .info-box-user {
        margin-left: auto;
        text-align: right;
    }

        #header #info-box .info-box-user .logout, #header #info-box .info-box-user .logout a {
            color: #F0703A;
            text-decoration: none;
            white-space: nowrap;
        }


.nav-menu {
    z-index: 1001;
    display: flex;
    align-items: center;
    font-family: 'Source Sans Bold';
}

.nav-item {
    position: relative;
    height: 40px;
    display: flex;
    align-items: center;
}

    .nav-item .nav-sub-item-header{
        cursor: default;
    }

    .nav-main-items {
        display: flex;
        align-items: center;
        height: 100%;
    }

.nav-sub-items {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 40px;
    z-index: 1;
    background: #fff;
    border: 1px solid #dddddd;
    box-shadow: 0 1px 6px #cecece;
    /*box-shadow: 0 -3px 0 #fff, 0 1px 6px #cecece;*/
    left: 0;
}

.nav-sub-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    cursor: pointer;
    white-space: nowrap;
}
    .nav-sub-items .nav-sub-item + .nav-sub-item {
        margin-left: 0;
        /*margin-top: 3px;*/
        border-top: 1px solid #dddddd;
    }

    .nav-sub-items .nav-sub-item a {
        display: block;
        padding: 5px 10px;
    }

.nav-menu-burger {
    display: none;
}

.nav-item + .nav-item, .nav-sub-item + .nav-sub-item {
    margin-left: 20px;
}

#menubar #searchbar {
    margin-left: auto;
    display: none;
    text-align: right;
}

    #menubar #searchbar .searchbox {
        border: 0;
        background: #f2f2f2;
        padding: 5px 8px;
        max-width: 200px;
        margin: 3px 0;
    }

#main {
    margin-bottom: 60px;
}

.card {
    padding-top: 10px;
    padding-left: 15px;
    padding-right: 15px;
    padding-bottom: 60px;
    display: flex;
    background: #fff;
}
.card-content{
    width: 100%;
}
.card.bilhandel a {
    color: #17428b;
    text-decoration: underline;
}

.card.verkstad a {
    color: #5B296B;
    text-decoration: underline;
}

.card.tungafordon a {
    color: #ed7102;
    text-decoration: underline;
}

.card.gdpr a {
    color: #00ab9f;
    text-decoration: underline;
}

.card-left {
    padding-left: 0px;
}

.bilhandel, .verkstad, .tungafordon, .gdpr{
    padding-top: 15px;
}

.bilhandel .card-content, .verkstad .card-content, .tungafordon .card-content, .gdpr .card-content {
    padding-top: 26px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.bilhandel {
    background-image: linear-gradient(to bottom, #17428b, #17428b 15px, #fff 15px, #fff);
    border-color: #17428b;
    color: #17428b;
    padding-right: 0;
    justify-content: space-between;
}

.verkstad {
    background-image: linear-gradient(to bottom, #5B296B, #5B296B 15px, #fff 15px, #fff);
    border-color: #5B296B;
    color: #5B296B;
    padding-right: 0;
    justify-content: space-between;
}

.tungafordon {
    background-image: linear-gradient(to bottom, #ed7102, #ed7102 15px, #fff 15px, #fff);
    border-color: #ed7102;
    color: #ed7102;
    padding-right: 0;
    justify-content: space-between;
}

.gdpr {
    background-image: linear-gradient(to bottom, #00ab9f, #00ab9f 15px, #fff 15px, #fff);
    border-color: #00ab9f;
    color: #00ab9f;
    padding-right: 0;
    justify-content: space-between;
}

.card:not([style*="display: none"]) + .card {
    margin-top: 25px;
}

.card-title {
    font-size: 1.2em;
    margin-bottom: 20px;
    color: black;
    font-family: 'Source Sans Bold';
}

.bilhandel .card-title, .verkstad .card-title, .tungafordon .card-title, .gdpr .card-title {
    font-size: 1.6em;
    font-family: 'Trim Bold';
}

.card-subtitle {
    margin-bottom: 20px;
    color: black;
    font-family: 'Source Sans Pro';
    max-width: 500px;
    /*font-family: 'Trim Light';*/
}

.card-subgrid {
    display: flex;
    max-width: 620px;
    flex-wrap: wrap;
    justify-content: space-between;
    border-color: inherit;
    padding-left: 20px;
    padding-right: 20px;
    align-items: center;
}

    .card-subgrid .card-subgrid-item div {
        /*padding: 7px 20px 5px 35px;*/
        padding: 5px 20px 5px 35px;
        border: 1px solid;
        border-color: inherit;
        border-radius: 5px;
        /*font-size: 0.9em;*/
        line-height: 14pt;
    }

    .card-subgrid .card-subgrid-item {
        width: 270px;
        margin-bottom: 10px;
        position: relative;
        height: 48px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        border-color: inherit;
    }

        .card-subgrid .card-subgrid-item::before {
            content: url('../resources/doc.png');
            position: absolute;
            border: 1px solid;
            border-radius: 100%;
            height: 46px;
            width: 46px;
            top: 0px;
            left: -20px;
            color: #fff;
            text-align: center;
            line-height: 56px;
        }

.bilhandel .card-subgrid .card-subgrid-item::before {
    border-color: #17428b;
    background: #17428b;
}

.verkstad .card-subgrid .card-subgrid-item::before {
    border-color: #5B296B;
    background: #5B296B;
}

.tungafordon .card-subgrid .card-subgrid-item::before {
    border-color: #ed7102;
    background: #ed7102;
}

.gdpr .card-subgrid .card-subgrid-item::before {
    border-color: #00ab9f;
    background: #00ab9f;
}

.card-image {
    margin-left: auto;
}

.card-left .card-image {
    margin-left: unset;
}

.card-content + .card-content {
    margin-top: 20px;
}

.card-left .card-content {
    margin-left: 15px;
}

.card-image img {
    max-width: 350px;
    border-radius: 0 0 0 30px;
}

.card-left .card-image img {
    max-width: 350px;
    border-radius: 0 0 30px 0;
}



.bilhandel .card-title, .bilhandel .card-subtitle, .bilhandel .card-subgrid,
.verkstad .card-title, .verkstad .card-subtitle, .verkstad .card-subgrid,
.tungafordon .card-title, .tungafordon .card-subtitle, .tungafordon .card-subgrid,
.gdpr .card-title, .gdpr .card-subtitle, .gdpr .card-subgrid {
    flex-basis: 100%;
    max-width: 620px;
}

.login-card {
    flex-wrap: wrap;
    padding: 0;
}

.login-title {
    flex-basis: 100%;
    background: #00ab9f;
    color: #f2f2f2;
    text-transform: uppercase;
    padding: 5px 10px;
}

.login-card-content {
    margin: auto;
    padding: 20px 0;
}

#tab-menu, #toolbar, .popup-panel-title {
    min-height: 32px;
    align-content: center;
    display: flex;
}
#toolbar {
    display: none;
}

.tab-menu-items, .toolbar-items, .popup-panel-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #00ab9f;
    color: #f2f2f2;
    padding: 5px 10px;
    width: 100%;
}

.tab-menu-title, #toolbar-title {
    text-transform: uppercase;
}

.tab-menu-buttons, #toolbar-buttons {
    display: flex;
}

.tab-menu-button, .toolbar-button {
    background: #fff;
    color: #000;
    padding: 3px 6px;
    font-size: 0.8em;
    cursor: pointer;
    min-height: 22px;
}
    .tab-menu-button + .tab-menu-button, .toolbar-button + .toolbar-button {
        margin-left: 10px;
    }

    .tab-menu-button.selected {
        background: #00ab9f;
        color: #f2f2f2;
        border: 1px solid #f2f2f2;
    }

.login-table {
    border-collapse: collapse;
}
.login-field-name {
    width: 120px;
    padding-right: 10px;
    padding-top: 7px;
    padding-bottom: 3px;
}
.login-field {
    width: 180px;
    padding: 2px;
}
.login-button {
    margin-right: 8px;
}
.login-failed-msg {
    padding: 6px;
}

    .card-table {
    border-collapse: collapse;
    width: 100%;
}

    .card-table th {
        background: #00ab9f;
        color: #f2f2f2;
        text-transform: uppercase;
        font-weight: normal;
        text-align: left;
    }

    .even {
        background: #f2f2f2;
    }
        .even + tr {
            background: #fcfcfc;
        }

    .odd + tr {
        background: #f2f2f2;
    }

    .card-table td, .card-table th {
        padding: 5px 10px;
    }

        .card-table td + td {
            padding-left: 10px;
        }

.card-table-field-name {
    font-family: 'Source Sans Bold';
}

.card-table a {
    cursor: pointer;
}

.card-table td.remove {
    padding-left: 15px;
}

.card-table td.edit, .card-table td.remove {
    width: 75px;
}

.flextable {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
}

.flextable-header {
    padding: 5px 10px;
    background: #00ab9f;
    color: #f2f2f2;
    display: flex;
    justify-content: space-between;
    height: 32px;
}
.flextable-header div{
    align-self: center;
}

.flextable-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    padding-left: 10px;
    padding-right: 10px;
}
.flextable-row.no-padding {
    padding: 0;
}
    .flextable-column, .flextable-subcolumn {
    padding: 5px 0;
    display: flex;
    /*flex-direction: column;*/
    flex-wrap: nowrap;
    flex-grow: 1;
}
    .flextable-column + .flextable-column {
        padding-left: 10px;
    }
    .flextable-subcolumn {
        padding: 0;
    }


.flextable .fg0 {
    flex-grow: 0;
}
.flextable .fg1 {
    flex-grow: 1;
}

.flextable .fg2 {
    flex-grow: 2;
}

.flextable .fg3 {
    flex-grow: 3;
}

.flextable .fg4 {
    flex-grow: 4;
}

.flextable .fg5 {
    flex-grow: 5;
}

.flextable .fg6 {
    flex-grow: 6;
}

.flextable .fg7 {
    flex-grow: 7;
}

.flextable .fg8 {
    flex-grow: 8;
}




    input[type=button], input[type=submit] {
        background: #00ab9f;
        color: #f2f2f2;
        padding: 5px 10px;
        border: 0;
        cursor: pointer;
        height: 22px;
        line-height: 11px;
    }

    input[type=button] + input[type=button], input[type=submit] + input[type=submit] {
        margin-left: 10px;
    }

#footer {
    margin-top: auto;
    background: #000;
    color: #fff;
    padding-bottom: 48px;
}

.footer-top {
    display: flex;
    align-items: center;
}

.footer-logo img {
    width: 100%;
    max-height: 140px;
}

.footer-text {
    font-size: 1.6em;
    flex-grow: 2;
}

.fine-print {
    margin-top: 10px;
    font-size: 10px;
    color: #999999;
}


.WideTableScrollWrapper{
    overflow-x: scroll;
    padding-bottom: 15px;
}


.order-1 {
    order: 1;
}
.order-2 {
    order: 2;
}
.order-3 {
    order: 3;
}
.order-4 {
    order: 4;
}


@media (max-width: 1024px) {
    .bilhandel .card-content, .verkstad .card-content, .tungafordon .card-content, .gdpr .card-content {
        max-width: 350px;
    }

    .card-left .card-image {
        margin-left: 0;
    }
    .mobile-order-1{
        order: 1;
    }
    .mobile-order-2{
        order: 2;
    }
}
@media (max-width: 905px) {
    .nav-menu-burger {
        display: block;
        cursor: pointer;
    }

    .nav-menu {
        position: relative;
        overflow: hidden;
    }

    .nav-main-items {
        flex-direction: column;
        position: absolute;
        top: 40px;
        z-index: 1;
        background: #fff;
        border: 1px solid #dddddd;
        box-shadow: 0 -3px 0px #fff, 0 1px 6px #cecece;
        left: 0;
        height: auto;
        align-items: stretch;
    }

    .nav-item, .nav-sub-item {
        min-height: 34px;
        height: 100%;
    }

        .nav-item a {
            display: block;
            padding: 5px 10px;
        }

        .nav-item + .nav-item {
            margin-left: 0;
            /*margin-top: 3px;*/
            border-top: 1px solid #dddddd;
        }

    .nav-sub-items {
        top: -1px;
        left: 100%;
    }
}
@media (max-width: 725px) {
    .card-image {
        display: none;
    }
}
@media (max-width: 675px) {
    .card-table td + td{
        padding-left: 10px;
    }
}
@media (max-width: 410px) {
    .nav-sub-items {
        left: 50%;
    }
}
@media (max-width: 400px) {
    #searchbar_extra {
        display: none;
    }
}
@media (max-width: 370px) {
    .card-subgrid .card-subgrid-item {
        width: 100%;
    }
}

.ui-widget-overlay{
    background: #000;
}
.ui-widget {
    font-family: 'Source Sans Pro';
}
    .ui-widget.ui-widget-content {
        border: 0;
    }
    .ui-dialog {
        position: fixed !important;
        z-index: 5;
        padding: 0;
        border: 0;
        border-radius: 0;
    }
.ui-dialog .ui-dialog-content{
    padding: 20px 25px;
}
.ui-dialog .ui-dialog-titlebar {
    background: #00ab9f;
    color: #f2f2f2;
    padding: 5px 10px;
    border: 0;
    border-radius: 0;
}
    .ui-dialog .ui-dialog-title{
        margin: 0;
    }
.ui-widget-header{
    font-weight: normal;
}
.ui-dialog-content label{
    font-family: 'Source Sans Bold';
}

.overflow{
    overflow: visible;
}



table.list_table {
    border-collapse: collapse;
    border-width: 0px;
}
    table.list_table tr td {
        padding: 3px;
    }

    table.list_table tr {
        height: 20px;
    }

        /*table.list_table tr td.edit_cell {
            padding: 10px;
        }

        table.list_table tr td.name {
            width: 160px;
        }

        table.list_table tr td.username {
            width: 100px;
        }*/

        table.list_table tr td.edit {
            /*width: 50px;*/
            text-align: center;
        }

        table.list_table tr td.remove {
            /*width: 50px;*/
            text-align: right;
        }

        /*table.list_table tr td.edit_header {
            width: 50px;
        }

        table.list_table tr td.remove_header {
            width: 50px;
        }


        table.list_table tr td.user_header_notification {
            width: 20px;
        }

        table.list_table tr td.user_header_name {
            width: 140px;
        }

        table.list_table tr td.user_header_username {
            width: 130px;
        }

        table.list_table tr td.user_header_description {
            width: 150px;
        }

        table.list_table tr td.user_header_accounttype {
            width: 106px;
        }

        table.list_table tr td.user_usage_header {
            width: 84px;
        }§

        table.list_table tr td.user_notification {
            width: 20px;
        }

        table.list_table tr td.user_name {
            width: 140px;
        }

        table.list_table tr td.user_username {
            width: 130px;
        }

        table.list_table tr td.user_description {
            width: 150px;
        }

        table.list_table tr td.user_accounttype {
            width: 106px;
        }

        table.list_table tr td.user_usage {
            width: 84px;
        }*/