﻿:root {
    --duatec-blue: #2E9DD0;
    --duatec-red: #E30613;
    --duatec-gray: #727071;
    --almost-white: #FCFCFC;
    --theme-color-1: steelblue;
    --border-color: var(--bs-gray-400);
    --hover-color: var(--bs-gray-300);
    --navbar-width: 11.5rem;
}

.footer {
    line-height: 3em;
    position: relative !important;
}

    .footer > .container {
        padding-left: 0;
        padding-right: 0;
        text-align: center;
    }

header {
    width: 100vw;
    height: 3rem;
    border-bottom: 1px solid var(--border-color);
}

noscript {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    font-weight: 600;
    font-size: 4vw;
    width: 100%;
    height: 100%;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.border-top {
    border-top: 1px solid var(--border-color);
}

.border-bottom {
    border-bottom: 1px solid var(--border-color);
}

.box-shadow {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
    font-size: 1rem;
    line-height: inherit;
}

/* Common elements 
-------------------------------------------------- */
#select-language {
    height: 100%;
    margin: auto 0;
    display: flex;
    padding: 0 0.5em;
    align-items: center;
    border-left: 1px solid var(--border-color);
}

body {
    display: flex;
    flex-direction: column;
    width: 100vw;
    height: 100vh;
}

.main-container {
    width: 100vw;
    height: 100%;
    display: flex;
    flex-direction: row;
    overflow: hidden;
    flex: 1;
}

    .main-container > main {
        width: 100%;
        height: 100%;
        overflow: auto;
        padding: 1rem;
    }

/* Navigation bar 
-------------------------------------------------- */
.navbar {
    width: 100%;
    height: 100%;
    flex-direction: row;
    box-shadow: 0.25rem 0 0.75rem rgba(0, 0, 0, .05);
    justify-content: normal;
    padding: 0;
}

.navbar-container {
    padding: 0;
    flex-direction: row;
    width: 100%;
    height: 100%;
    display: flex;
}

.navbar-nav {
    width: 100%;
    height: 100%;
    flex-direction: row;
}

.navbar-brand {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
    height: 100%;
    min-width: var(--navbar-width);
    background-color: transparent;
    border-right: 1px solid var(--border-color);
}

    .navbar-brand > * {
        max-width: 100%;
        max-height: 100%;
        padding: 0.2rem 0;
    }

.nav-dropdown-content {
    transition-delay: unset !important;
}

.nav-item {
    min-width: 4rem;
}

.nav-link {
    height: 100%;
    transition: background-color linear 0.15s;
    padding: 0;
    font-size: 2em;
    margin: auto;
    display: flex;
    justify-content: center;
    align-content: center;
    flex-direction: column;
    text-align: center;
}

    .nav-link:hover, .nav-link.selected {
        background-color: var(--hover-color);
    }

.nav-account {
    font-size: 1rem;
    padding: 0 1em;
    white-space: nowrap;
}

.headline {
    padding-top: 1.2rem;
    padding-bottom: 0.5rem;
    padding-left: 1.25rem;
}

.flex-pad {
    flex: 1;
}

.copyright {
    display: flex;
    justify-content: center;
    align-content: center;
    flex-direction: column;
    text-align: center;
    border-left: 1px solid var(--border-color);
}

/* Secondary navigation
-------------------------------------------------- */
.sub-nav-container {
    position: relative;
    min-width: var(--navbar-width);
    height: 100%;
    border-right: 1px solid var(--border-color);
    box-shadow: 0.25rem 0 0.75rem rgba(0, 0, 0, .05);
    background-color: white;
}

.sub-nav {
    display: flex;
    flex-direction: column;
    width: var(--navbar-width);
    padding: 0;
    margin: 0;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    text-overflow: clip;
    white-space: nowrap;
}

.sub-nav-item {
    list-style: none;
    width: 100%;
}

.sub-sub-nav-item {
    font-size: 0.875em;
}

    .sub-sub-nav-item > .sub-nav-link {
        padding-left: 2.00rem;
    }

.sub-nav-link, .sub-nav-header {
    transition: background-color linear 0.15s, padding-left ease-in-out 0.15s;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0.25rem 1.25rem;
    color: rgb(var(--bs-dark-rgb));
    text-decoration: none;
    border-left: none;
}

    .sub-nav-link:hover {
        color: unset;
    }

    .sub-nav-link.selected {
        font-weight: 600;
    }

    .sub-nav-link:hover, .sub-nav-link.selected {
        background-color: var(--hover-color);
        padding-left: 1.75rem;
    }

    .sub-nav-header.selected {
        background-color: var(--hover-color);
    }

.sub-sub-nav-item > .sub-nav-link:hover, .sub-sub-nav-item > .sub-nav-link.selected {
    padding-left: 2.55rem;
}

.sub-nav:hover > :not(:hover) > .sub-nav-link {
    padding-left: 1.25rem;
}

.sub-nav:hover > .sub-sub-nav-item:not(:hover) > .sub-nav-link {
    padding-left: 2.00rem;
}

.sub-nav-toggle {
    display: none;
    position: absolute;
    text-align: center;
    left: 100%;
    border-start-start-radius: 0;
    border-end-start-radius: 0;
    padding: 0;
    width: 1em;
    height: 2em;
    background-color: white;
}

/* Toolbar items 
-------------------------------------------------- */
.toolbar {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    padding-left: 1rem;
    display: flex;
    flex-direction: row;
    /* Negative spread to prevent shadow from peaking up on top */
    box-shadow: 0 1rem 0.75rem -0.75em rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid var(--border-color);
}

.headline,
.toolbar {
    /*background-color: whitesmoke;*/
    width: 100%;
    margin: 0;
    color: var(--theme-color-1);
    background-color: var(--almost-white);
}

.btn-with-icon,
.btn-toolbar {
    padding: calc(0.125em - 1px) 0.125em calc(0.125em + 1px);
    height: 1.25em;
    width: 1.25em;
}

.form-group-nopad {
    margin-bottom: 0;
}

.relative {
    position: relative;
}

.inner-btn-small-icon {
    font-size: 0.725em;
    line-height: calc(1em / 0.725);
    height: 100%;
}

.inner-btn-text {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 65%;
    text-align: center;
    text-shadow: white 0 1px 0, white 0 -1px 0, white 1px 0 0, white -1px 0 0;
    font-weight: 600;
}

.inner-btn-icon {
    position: absolute;
    top: 0;
    left: 0;
    padding: calc(0.125em - 1px) 0.125em calc(0.125em + 1px);
    height: 100%;
}

.inline-wrapper {
    display: contents;
}

.form-group {
    position: relative;
    padding-bottom: 0.5em;
}

button[disabled] {
    /* Reset cursor for disabled buttons */
    cursor: default;
}

.hiding-checkbox:checked ~ div > .hidable {
    display: none;
}

.hiding-checkbox:not(:checked) ~ div > .unhidable {
    display: none;
}

.mobile-scroll-box {
    display: contents;
}

@media screen and (max-width: 667px) {
    /* Nicer mobile display */
    main {
        min-width: 100vw;
    }

    .navbar-brand {
        font-size: 1em;
        min-width: 7em;
        border-bottom: 1px solid var(--border-color);
    }

        .navbar-brand > * {
            padding: 0.1em 0.5em;
        }

    .nav-item {
        min-width: 3rem;
    }

    .nav-account {
        padding: 0 0.5em;
    }

    .nav-account-user {
        text-overflow: ellipsis;
        overflow-x: hidden;
    }

    .navbar-nav-container {
        grid-column: 2;
        grid-row: 1 / span 2;
        width: calc(100vw - 7em);
    }

    .navbar-nav {
        overflow-x: auto;
    }

    .copyright {
        grid-row: 2;
        grid-column: 1;
        border-left: unset;
        display: block;
        white-space: nowrap;
        border-right: 1px solid var(--border-color);
        font-size: 0.6em;
    }

        .copyright > .container {
            padding: 0 0.2em;
        }

    .navbar-container {
        display: grid;
        grid-template-columns: 7em 1fr;
        grid-template-rows: 2rem 1rem;
    }

    .sub-nav-container {
        position: absolute;
        min-width: unset;
        z-index: 100;
        height: calc(100vh - 3em);
    }

    .sub-nav {
        width: 0;
        transition: width ease-in-out 0.2s;
        max-width: 75vw;
    }

    .sub-nav-toggle {
        display: block;
    }

    .mobile-scroll-box {
        display: block;
        width: 100%;
        overflow-x: auto;
    }
}
