:root {
    --link-color: #0070B7;
    --dfn-blue: #0070B7;
    --dfn-lightblue: #0099CC;
    --dfn-green: #99CC33;
    --dfn-orange: #FF9900;
    --dfn-violett: #660066;
    --dfn-darkgray: #5d5d5d;
}

body {
    padding-top: 0;
    min-height: 100vh;
}

/*************
    NAVBAR
**************/
#navbar {
    position: sticky;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1045;
}

.navbar {
    justify-content: space-between;
    align-items: stretch;
}

#dax-dataversion {
    color: #333;
    font-size: 90%;
}

/* Header */
#header-logo {
    height: 4rem;
}

/* User widget */
#user-widget {
    display: flex;
    align-items: center;
}

#user-widget .dropdown-toggle {
    display: flex;
    cursor: pointer;
}

#user-widget .dropdown-toggle::after {
    margin: auto 0 auto 0.5em;
}

#user-widget .dropdown-menu .active {
    background: none;
    color: var(--link-color);
}

#user-widget .user-icon {
    margin: auto;
    color: #212529;
}

#user-widget .user-info {
    max-width: 20em;
    color: #212529;
}

#user-widget .user-info:hover {
    text-decoration-line: underline;
}

#user-widget .user-name, #user-widget .user-email {
    text-overflow: ellipsis;
    overflow: hidden;
}

#user-widget .impersonated * {
    color: red !important;
}

.loading-results {
    display: none;
}

/**********
   Sidebar
 **********/
.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    z-index: 1040; /* Behind the navbar */
    padding: 5rem 0 0; /* Height of navbar */
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
    width: 20rem;
    height: 100%;
}

.sidebar-sticky {
    position: relative;
    top: 0;
    height: calc(100vh - 4rem);
    overflow-x: hidden;
    overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-bottom: 1.5rem;
}

.default-item {
    margin-top: 1rem;
}

.default-item ~ .default-item {
    margin-top: 0;
}

.default-item a.nav-link {
    color: var(--dfn-violett);
}

@supports ((position: -webkit-sticky) or (position: sticky)) {
    .sidebar-sticky {
        position: -webkit-sticky;
        position: sticky;
    }
}

@media (max-width: 767.98px) {
    .sidebar {
        position: sticky;
        top: 79px;
        padding: 0;
    }

    .sidebar-sticky {
        position: inherit;
        height: auto;
        padding-top: 0;
    }
}


.sidebar .nav-link {
    font-weight: 500;
    color: #333;
}

.sidebar .nav-link .feather {
    margin-right: 4px;
    color: #999;
}

.sidebar .nav-link.active {
    color: var(--link-color);
}

.sidebar .nav-link:hover .feather,
.sidebar .nav-link.active .feather {
    color: inherit;
}

.sidebar-heading {
    font-size: .75rem;
    text-transform: uppercase;
}

.sidebar .nav-item .nav-item li {
    font-size: 90%;
}

.nav-seperator {
    margin: 0.25em 0;
}


#impersonation-notice {
    z-index: 10000;
    position: absolute;
    top: 5px;
    width: 100%;
    text-align: center;
}


.link-button {
    background: none !important;
    border: none;
    padding: 0 !important;
    font-family: arial, sans-serif;
    color: #069;
    text-decoration: underline;
    cursor: pointer;
}


.page-break-after {
    page-break-after: always;
}

#portal-version {
    opacity: 0.5;
}

#dax-dataversion {
    opacity: 0.5;
    color: white !important;
}

.landing-page-content .col {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Mark external link (identified by target="_blank") */
a[target="_blank"]::after {
    font-family: "Material Icons";
    content: "launch";
    opacity: 0.75;
    margin-left: 0.25rem;
}

.plain-links a {
    text-decoration: none;
    color: inherit;
}

table.stretched-links td {
    padding: 0;
}

table.stretched-links td div.position-relative {
    padding: 0.5rem;
}

.td-icon {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.table-edit-icon {
    font-size: 1em;
}

.collapse-toggle.collapsed {
    display: block;
}

.collapse-toggle {
    display: none;
}

.cursor-pointer {
    cursor: pointer;
}

.state-active {
    color: green;
    font-weight: bold;
}

.flex-1 {
    flex: 1;
}

/* list classes */
.left-circle {
    margin-left: -1em;
    list-style-type: circle;
}

/* Disable iOS button styles */
button,
[type="button"],
[type="reset"],
[type="submit"] {
    -webkit-appearance: none !important;
}


.support {
    border: 1px solid gray;
    border-radius: 5px;
    min-width: 15em;
}

.support-header {
    padding: 0.5em 0.5em 0.1em 0.5em;
    font-weight: bold;
    background-color: lightgray;
}

.support-body {
    padding: 0.5em;
}

.support span, .support a {
    display: block;
}

.user-profile table tr td:first-child {
    width: 15em;
}

.body-content {
    min-height: 100vh;
    background-color: white;
}