:root {
    --primary-hover: #071b4a;
    --primary: #0c2d7a;
    --menu-hover: #93b0e5;
    --menu-expand: #d4dff4;
    --menu-background: #e9eff9;
    --background-color: rgb(249, 249, 249);
}

html {
    _position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 100px;
    background-color: var(--background-color);
}

html {
    font-size: 14px;
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-primary,
.btn-outline-primary:hover {
    background-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

a {
    color: var(--primary);
}

input[type="radio"] {
    color: var(--primary);
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: var(--menu-background);
}

.container {
    max-width: 100%;
    padding-right: 0px;
    padding-left: 0px;
}

#hamburgerBtn {
    display: none;
}

#topbar {
    display: flex;
    flex-direction: row;
    padding: 10px;
    padding-left: 30px;
    padding-right: 30px;
    border-bottom: 1px solid var(--menu-expand);
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    background-color: var(--menu-background);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
}

#topmenu a {
    color: var(--primary);
}

#bottombar {
    display: none;
}

#logo {
    height: 38px;
    width: 191px;
    background-image: url(../images/logo.png);
    background-size: contain;
    background-repeat: no-repeat;
}

body.darkmode #logo {
    background-image: url(../images/logo_night.png);    
}

#companyname {
    margin-left: 20px;
}

#topmenu {
    padding-right: 20px;
}

#topmenu a.active {
    font-weight: bold;
}

.btn-group .btn-dark {
    font-weight: bold;
}

h2 {
    font-size: 24px;
}

footer {
    margin-top: 20px;
    padding-top: 10px;
    text-align: center;
    margin-bottom: 10px;
    margin-right: 2.5%;
    margin-left: 2.5%;
    position: absolute;
    bottom: 0;
    width: 95%;
}

.right {
    text-align: right;
    justify-content: flex-end;
}

.center {
    text-align: center;
}

.flex-row {
    display: flex;
    flex-direction: row;
}

.save-alert {
    float: right;
}

.form-control[readonly] {
    background: rgba(0, 0, 0, .05);
}

.tt-query,
/* UPDATE: newer versions use tt-input instead of tt-query */
.tt-hint {
    width: 330px;
    height: 30px;
    padding: 8px 12px;
    font-size: 24px;
    line-height: 30px;
    border: 2px solid #ccc;
    border-radius: 8px;
    outline: none;
}

.tt-query {
    /* UPDATE: newer versions use tt-input instead of tt-query */
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
}

.tt-hint {
    visibility: hidden;
}

.tt-menu {
    /* UPDATE: newer versions use tt-menu instead of tt-dropdown-menu */
    width: 330px;
    margin-top: 12px;
    padding: 8px 0;
    background-color: #fff;
    border: 1px solid #ccc;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, .2);
}

.tt-suggestion {
    padding: 3px 20px;
    font-size: 18px;
    line-height: 24px;
}

.tt-suggestion.tt-is-under-cursor {
    /* UPDATE: newer versions use .tt-suggestion.tt-cursor */
    color: #fff;
    background-color: #0097cf;

}

.tt-suggestion p {
    margin: 0;
}

.input-group>.twitter-typeahead {
    flex: 1 1 auto;
    width: auto;
}

#bottombar {
    display: none;
}

#bottombar-filler {
    display: none;
}

ul.secondary-nav {
    float: right;
    margin-bottom: 20px;
}

ul.secondary-nav li:not(:first-child) {
    margin-left: 20px;
}

.btn-mobile {
    display: none;
}

#topmenu {
    display: flex;
    align-items: center;
}

.container-background {
    display: none;
}

.search-container {
    display: flex;
    margin-top: 10px;
}

.bilar-page {
    margin-top: 44px;
}

.custom-page .bilar-page {
    margin-top: 15px;
}

.search-container #platenumber {
    margin-right: 10px;
}


#container {
    box-sizing: border-box;
    flex: 1;
    flex-grow: 1;
    z-index: 0;
    padding-top: 30px;
    padding-left: 30px;
    padding-right: 30px;
}

.selectize-control.single .selectize-input {
    background-image: none !important;
    background-color: white !important;
    border-radius: 4px !important;
    border-color: rgb(206, 212, 218) !important;
    font-size: 16px !important;
}

.selectize-dropdown-content,
.selectize-control.single .selectize-input input {
    font-size: 16px !important;
}

.selectize-dropdown-content div.option.selected {
    background: var(--menu-hover) !important;
}

.selectize-control.single .selectize-input.disabled {
    background-color: rgba(0, 0, 0, 0.05) !important;
    opacity: 1 !important;
}

@media (min-width: 768px) {
    body.loggedin #container {
        margin-left: 225px;
    }
}

.header-container {
    display: flex;
}

.header-container .backArrow {
    margin-right: 15px;
    font-size: 18px;
    margin-top: 7px;
}

.text-error {
    color: red;
    margin-bottom: 10px;
}

.modal {
    top: 100px;
}

#modal-customer-car .form-group {
    text-align: left;
}

#modal-customer-car .modal-footer {
    flex-direction: row-reverse;
}

#modal-customer-car .save-alert {
    right: 12px;
    position: absolute;
    padding: 0.375rem 0.75rem;
}

#modal-add-cars .form-group {
    text-align: left;
}

#modal-add-cars .modal-footer {
    flex-direction: row-reverse;
}

#modal-add-cars .text-danger {
    font-style: italic;
    font-size: 14px;
}

.select2-container--open .select2-dropdown--below {
    margin-top: -36px;
}

.select2-container--default .select2-selection--single {
    padding: 4px;
    height: calc(1.5em + 0.75rem + 2px) !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100% !important;
}

.nav-tabs .nav-item.show .nav-link,
.nav-tabs .nav-link.active {
    background-color: var(--background-color);
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

@media (max-width: 767px) {

    #topbar {
        padding: 10px;
    }

    .loggedin #logo {
        height: 38px;
        width: 150px;
        background-image: url(../images/logo_text.png);
        background-size: contain;
        background-repeat: no-repeat;
    }

    .loggedin #hamburgerBtn {
        display: block;
    }

    #topmenu {
        display: none;
        position: absolute;
        flex-direction: column;
        align-items: flex-start;
        top: 58px;
        left: 0;
        bottom: 0;
        background: white;
        z-index: 0;
        padding: 20px;
        border-right: 1px solid #e0e0e0;
        width: 30%;
        min-width: 200px;
        z-index: 1;
        padding: 13px;
    }

    #bottombar {
        z-index: 0;
    }

    .btn-mobile {
        display: block;
        border: 1px solid var(--primary);
        margin-right: 10px;
    }

    .container {
        box-sizing: border-box;
        margin-left: 0;
        margin-right: 0;
    }

    #container {
        padding-left: 20px;
        padding-top: 20px;
        padding-right: 20px;
    }

    #topmenu,
    footer {
        display: none;
    }

    #bottombar.visible {
        display: flex;
        position: fixed;
        bottom: 0;
        width: 100%;
        background: linear-gradient(rgb(255, 255, 255), rgb(242, 242, 242));
        border-top: 1px solid rgb(212, 212, 212);
        box-shadow: rgba(0, 0, 0, 0.1) 0px -1px 10px 0px;
        padding-top: 5px;
    }

    #bottombar a {
        width: 20%;
        text-align: center;
        padding: 10px;
        color: var(--primary);
        font-size: 12px;
    }

    #bottombar a i {
        margin-bottom: 7px;
    }

    .hidden-phone {
        display: none !important;
    }

    #container {
        _margin-bottom: 100px;
        margin-left: 0;
    }

    #bottombar-filler.visible {
        display: block;
        height: 100px;
    }

    #debugDiv {
        display: none;
    }
}

@media (max-width: 480px) {
    ul.secondary-nav {
        display: flex;
        flex-direction: column;
        float: none;
        text-align: center;
    }

    ul.secondary-nav li {
        margin-top: 5px;
        margin-bottom: 5px;
    }

    ul.secondary-nav li:not(:first-child) {
        margin-left: 0;
    }

    #cashBtn,
    #swishBtn,
    #invoiceBtn,
    #cancelBtn {
        padding-left: 5px;
        padding-right: 5px;
    }
}

#spar-loading {
    width: 260px;
    height: 123px;
    margin: 1rem auto 0 auto;
}

@media (min-width: 768px) {
    #spar-loading {
        width: 300px;
        float: right;
        margin: 0;
    }
}

.loader,
.loader:before,
.loader:after {
    border-radius: 50%;
    width: 2.5em;
    height: 2.5em;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
    -webkit-animation: load7 1.8s infinite ease-in-out;
    animation: load7 1.8s infinite ease-in-out;
}

.loader {
    color: var(--menu-background);
    font-size: 10px;
    margin: 0px auto 40px auto;
    position: relative;
    text-indent: -9999em;
    -webkit-transform: translateZ(0);
    -ms-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-animation-delay: -0.16s;
    animation-delay: -0.16s;
}

.loader:before,
.loader:after {
    content: '';
    position: absolute;
    top: 0;
}

.loader:before {
    left: -3.5em;
    -webkit-animation-delay: -0.32s;
    animation-delay: -0.32s;
}

.loader:after {
    left: 3.5em;
}

@-webkit-keyframes load7 {

    0%,
    80%,
    100% {
        box-shadow: 0 2.5em 0 -1.3em;
    }

    40% {
        box-shadow: 0 2.5em 0 0;
    }
}

@keyframes load7 {

    0%,
    80%,
    100% {
        box-shadow: 0 2.5em 0 -1.3em;
    }

    40% {
        box-shadow: 0 2.5em 0 0;
    }
}

.pricing-header {
    max-width: 700px;
}

.card-deck .card {
    min-width: 220px;
}

.public-header-buttons a {
    margin: 0 2.5px;
}

.table-header-big {
    font-weight: bold;
    font-size: larger;
}

@keyframes animate {

    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
        border-radius: 0;
    }

    100% {
        transform: translateY(-1000px) rotate(720deg);
        opacity: 0;
        border-radius: 50%;
    }

}

.dropdown {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.dropdown.open {
    background-color: var(--menu-expand);
}

.dropdown-content {
    display: none;
    position: static;
    width: 100%;
    z-index: 1;
    padding-bottom: 10px;

}

.dropdown-content a {
    padding-left: 53px !important;
    line-height: 30px;
}

.dropdown-btn {
    border: none;
    color: var(--primary);
    background: transparent;
    font-size: 15px;
    padding: 10px;
    padding-left: 15px;
}

.dropdown-btn:focus {
    outline: none;
}

.dropdown-btn:hover {
    cursor: pointer;
    color: var(--background-color);
    background-color: var(--menu-hover);
}

.dropdown a:hover {
    background-color: var(--menu-hover)
}

.dropdown div {
    width: 100%;
}

.sidemenuBtn {
    padding: 5px;
    display: flex;
    flex-direction: row;
    align-items: baseline;
    width: 100%;
    color: var(--primary);
    font-size: 20px;
    justify-content: space-between;
}

.sidemenuBtn a {
    width: 100%;
    padding-left: 10px;
}

.sidemenuBtn i {
    width: 18px;
}

.sidemenuBtn:hover {
    background-color: var(--menu-hover);
}

#loginBtn1 {
    cursor: pointer;
    justify-content: flex-start;
}

.far.fa-trash-alt:hover {
    cursor: pointer;
    transform: scale(1.2);
    color: red;
}

#page-container {
    display: flex;
    transition: margin-left 0.5s ease;
}

.sidemenu {
    position: fixed;
    display: flex;
    align-items: center;
    width: 225px;
    flex-direction: column;
    overflow-y: auto;
    height: calc(100vh - 55px);
    padding-top: 20px;
    left: 0;
    z-index: 5;
    transition: all 0.3s ease-in-out;
    _border-right: 1px solid #ccc;
    border-right: 1px solid var(--menu-expand);
    background-color: var(--menu-background);
    _box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

#page-content {
    flex-grow: 1;
}

.sidemenu a:hover {
    color: var(--menu-background);
    text-decoration: none;
}

.sidemenu .dropdown-menu {
    position: static;
}

.sidemenu a {
    display: block;
    font-size: 16px;
}

.sidemenu a i {
    font-size: 18px;
    width: 24px;
    text-align: center;
    margin-right: 8px;
}

.currentpage {
    background-color: var(--menu-hover);
}

#main-content {
    display: flex;
    padding-top: 55px;
    justify-content: space-around;
}

@media (max-width: 768px) {
    .sidemenu {
        top: 56px;
        left: -250px;
        box-shadow: none;
        height: calc(100vh - 57px);
    }

    .sidemenu.open {
        left: 0;
        box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    }
}

@media (min-width: 768px) {
    #loginform-desktop {
        display: flex;
        flex-direction: row;
    }

    #loginform-desktop .form-group {
        margin-bottom: 0;
        margin-left: 5px;
        margin-right: 5px;
    }

    #loginform-desktop button {
        margin-left: 5px;
    }

    .loggedin #fiscalYear {
        display: block
    }
}

body.loggedin #loginform-desktop {
    display: none;
}

#fiscalYear {
    display: none;
}

form.login-form {
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    padding: 20px;
    border: 1px solid #E0E0E0;
    border-radius: 5px;
}

form.login-form h2 {
    text-align: center;
    margin-bottom: 20px;
}


#remove-tableheader {
    display: none;
    width: 40px;
}

.select2-search__field {
    outline: none;
}

.disabled-button {
    background-color: gray !important;
    pointer-events: none !important;
    border-color: gray !important;
}

.disabled-button:hover {
    cursor: not-allowed !important;
}

.form-control.select2#supplier {
    width: calc(100% - 45px);
    display: inline-block;
}

.selectize-input {
    white-space: normal;
}

.selectize-dropdown-content .option {
    white-space: normal;
    text-overflow: unset;
    overflow: visible;
}

.inputrows {
    width: 150px;
}

.container-flex-end {
    display: flex;
    justify-content: flex-end;
}

.fa-file-pdf {
    color: var(--secondary);
}

.fa-file-pdf:hover {
    cursor: pointer;
    color: var(--secondary-hover);
}

#closedYear {
    color: var(--menu-hover) !important;
    margin-right: 10px;
}

body.darkmode {
    --primary-hover: #c2c2c2 !important;
    --primary: white !important;
    --menu-hover: #575757 !important;
    --menu-expand: #3f3f3f !important;
    --menu-background: #282828 !important;
    --background-color: #121212 !important;
    color: var(--primary) !important;
}

body.darkmode .btn-primary {
    color: var(--primary) !important;
    border-color: var(--menu-hover) !important;
    background-color: var(--menu-expand) !important;
}

body.darkmode .form-control {
    background-color: var(--menu-expand) !important;
    border-color: var(--menu-hover) !important;
    color: var(--primary) !important;
}

body.darkmode .selectize-input,
body.darkmode .selectize-control.single .selectize-input,
body.darkmode .selectize-input input::placeholder,
body.darkmode .selectize-dropdown {
    background-color: var(--menu-expand) !important;
    border-color: var(--menu-hover) !important;
    color: var(--primary) !important;
}

body.darkmode .modal-content {
    background-color: var(--menu-expand) !important;
}

body.darkmode .fas.fa-bars,
body.darkmode .table,
body.darkmode ::placeholder,
body.darkmode .td,
body.darkmode .right,
body.darkmode .modal-content .close {
    color: var(--primary) !important;
}

body.darkmode #bottombar {
    background: linear-gradient(var(--menu-background), var(--menu-expand));
    border-top: 1px solid var(--menu-hover);
    box-shadow: rgba(0, 0, 0, 0.1) 0px -1px 10px 0px;
}

body.darkmode .sidemenu a:hover,
body.darkmode .sidemenu i:hover {
    color: var(--primary-hover) !important;
    opacity: 1;
}

.darkmodeswitch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 26px;
    margin-top: 15px;
}

.darkmodeswitch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 5px;
    bottom: 3px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked+.slider {
    background-color: #2196F3;
}

input:focus+.slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked+.slider:before {
    -webkit-transform: translateX(16px);
    -ms-transform: translateX(16px);
    transform: translateX(16px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.link {
    cursor: pointer;
}

.article {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.article h1 {
    color: var(--primary);
    font-size: 30px;
}

.article h3 {
    font-size: 24px;
}