﻿﻿html {
    position: relative;
    min-height: 100%;
    overscroll-behavior: none;
}

body {
    /* Margin bottom by footer height */
    margin-bottom: 60px;
    overscroll-behavior: none;
    overflow-x: hidden;
    overflow-y: auto;
}

.main {
    margin-top: 80px;
    height: auto;
    margin-bottom: -70px; /* footer height + space */
    min-height: 100%;
    padding-bottom: 70px; /* footer height + space */
    box-sizing: border-box;
    /* no overscroll-behavior here: .main is a scroll container (overflow) that never overflows itself,
       and "none" would stop the wheel from reaching the page scroll (Chrome swallows the event) */
    overflow-x: hidden;
    overflow-y: auto;
}



.background-video {
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: -1;
    opacity: .5; /* the circuit-board video competes with the text at full strength */
}

/* The logo hangs 11px below the white bar on purpose (4.2rem image in a 60px bar with 0.5rem padding);
   the wrapper covers that strip in the page colour so scrolling content never shows through the logo. */
.header-space {
    position: fixed;
    top: -100px;
    left: 0;
    right: 0;
    padding-bottom: 11px;
    background-color: var(--bs-body-bg);
    z-index: 10;
}

.header {
    padding-top: 100px;
    height: 160px !important;
    border: none;
}

.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    /* Set the fixed height of the footer here */
    height: 60px;
    background-color: #f5f5f5;
    z-index: 10;
    border: none;
}

/* Text links on the dark page: Bootstrap's dark-blue link colour is invisible on the dark ground.
   Buttons and menu entries keep their own colours; links inside an alert take the alert's colour. */
a:not(.btn):not(.nav-link):not(.dropdown-item) {
    color: var(--bs-body-color);
}

a:not(.btn):not(.nav-link):not(.dropdown-item):hover {
    color: var(--bs-warning);
}

.alert a:not(.btn):not(.nav-link):not(.dropdown-item),
.alert a:not(.btn):not(.nav-link):not(.dropdown-item):hover {
    color: inherit;
}

/* Outline buttons take the text colour of the surface they sit on: white on the dark page, the alert's
   own colour inside an alert. Bootstrap's dark-blue outline-primary is invisible on the dark ground and
   the white outline-secondary is invisible on the light alerts; hover keeps Bootstrap's filled states. */
.btn-outline-primary:not(:hover) {
    color: var(--bs-body-color);
    border-color: currentColor;
}

.alert .btn-outline-primary:not(:hover),
.alert .btn-outline-secondary:not(:hover) {
    color: inherit;
    border-color: currentColor;
}

/* menu entries the customer lacks the role for: visibly greyed out, icon included */
.footer .nav-link.disabled {
    opacity: .4;
}

/* embedded OneBoard mask: fills the space between header and footer instead of growing the page
   (.main: margin-top 80px, padding-bottom 70px); the customer scrolls inside the mask, not the portal */
.oneboard-frame {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 150px);
    height: calc(100dvh - 150px);
}

.oneboard-frame iframe {
    flex: 1 1 auto;
    min-height: 20rem; /* below this the mask is unusable; short landscape phones scroll instead */
}

.sidebar-button {
    position: fixed;
    left: 0px;
    top: 60px;
    width: 20px;
    height: 50px;
    padding-top: 15px;
    border: none;
}

.offcanvas-with-header {
    top: 60px;
    bottom: 60px;
    width: 350px;
}


.datetime-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('');
    padding-right: 0.75rem;
}

.mlm-element {
    width: 5rem;
    min-height: 2rem;
    border: 3px solid;
    cursor: pointer;
    border-color: var(--bs-primary);
    background: var(--bs-body-bg);
}

.mlm-element-None {
    width: 5rem;
    min-height: 2rem;
    border: 3px solid;
    cursor: pointer;
    border-color: var(--bs-primary);
    background: var(--bs-body-bg);
}

.mlm-element-Credited {
    width: 5rem;
    min-height: 2rem;
    border: 3px solid;
    cursor: pointer;
    border-color: var(--bs-warning);
    background: var(--bs-body-bg);
}

.mlm-element-Received {
    width: 5rem;
    min-height: 2rem;
    border: 3px solid;
    cursor: pointer;
    border-color: var(--bs-warning);
    background: var(--bs-body-bg);
}

.mlm-element-Borrowed {
    width: 5rem;
    min-height: 2rem;
    border: 3px solid;
    cursor: pointer;
    border-color: var(--bs-primary) var(--bs-warning) var(--bs-warning) var(--bs-primary);
    background: var(--bs-body-bg);
}

.mlm-separator {
    width: 5rem;
    height: 2rem;
    border: none;
}

.rz-tick-text {
    stroke: #ffffff;
    font-size: 0.65rem;
    font-family: Prometeo;
    font-weight: lighter;
}

.rz-axis .rz-grid-line {
    stroke: #ffffff;
}

.rz-axis .rz-axis-title {
    stroke: #ffffff;
    font-size: 0.65rem;
    font-family: Prometeo;
    font-weight: lighter;
}

.modal-fullscreen {
    width: 100vw;
    max-width: none;
    top: 60px;
    height: calc(100vh - 60px);
    min-height: calc(100vh - 60px);
    margin: 0;
}

.input-group-text {
    background: white;
    color: #46466f;
}

@font-face {
    font-family: 'Prometeo';
    font-style: normal;
    font-weight: 400;
    font-display: block;
    src: url("../fonts/Prometo.woff2") format("woff2");
}

@font-face {
    font-family: 'Myriad';
    font-style: normal;
    font-weight: 400;
    font-display: block;
    src: url("../fonts/MyriadPro-Regular.woff2") format("woff2");
}

@font-face {
    font-family: 'Myriad';
    font-style: normal;
    font-weight: 600;
    font-display: block;
    src: url("../fonts/MyriadPro-Semibold.woff2") format("woff2");
}

ol {
    counter-reset: item;
}

    ol > li {
        counter-increment: item;
    }

    ol ol > li {
        display: block;
    }

        ol ol > li:before {
            content: counters(item, ".") ". ";
            margin-left: -20px;
        }


/*        
    Bootstrap-alike - Extensions
*/
.w-33 {
    width: 33% !important;
}

/* Stat tiles (dashboard, account tab): Bootstrap 5.1's .card is white with a dark border; on the dark page the
   tile is a slightly lighter pane with a faint light border instead. Values are tabular so amounts line up. */
.stat-tile {
    background-color: rgba(var(--bs-body-color-rgb), .06);
    border-color: rgba(var(--bs-body-color-rgb), .2);
    color: var(--bs-body-color);
}

.stat-tile-label {
    font-size: .8rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .75;
}

.stat-tile-value {
    font-size: 1.75rem;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.stat-tile-value-sub {
    font-size: 1.1rem;
}

.stat-tile-at {
    font-size: 1rem;
    opacity: .55;
}

.stat-tile-secondary {
    font-size: .875rem;
    opacity: .75;
}

/* Tabs (dashboard) sit on the dark page background; Bootstrap's defaults are dark on dark */
.nav-tabs .nav-link {
    color: #fff;
}

.nav-tabs .nav-link.active {
    color: #fff;
    font-weight: bold;
}
