﻿@import url(bootstrap/bootstrap-custom-standalone.min.css);
@import url(telerik/brand/stratus.telerik.css);

/* FUNCTIONAL CSS */

.page, main, form, article, .st-vscroll {
    position: relative;
    display: flex;
    flex-direction: column;
}

body {
    overflow: hidden;
}

body, .page {
    height: 100vh;
}

main {
    flex: 1;
    height: 100%;
}

.st-vcontent, form {
    flex: 1;
    overflow-y: auto;
}

.st-vscroll {
    flex: 1;
    overflow-y: auto;
}

article {
    flex: 1;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.validation-message {
    color: red;
}

/* HAMBURGER MENU */
.st-site-common-header {
    position: relative;
    z-index: 500;
    line-height: 1;
}

.st-site-common-header .e-menu-wrapper {
    display: inline-block;
    vertical-align: top;
}

.st-site-common-header .e-menu-header {
    height: 58px;
}

.st-site-common-header .e-menu-header .e-menu-icon {
    line-height: 58px;
}

#page-menu {
    width: 640px;
    max-width: 100vw;
}

/* APPLICATION & DATABASE BAR */
.st-app-db-header {
    background: #eee;
    padding: 0.4rem 1rem;
    font-weight: 600;
}
.st-app-db-header.st-test-mode {
    background-image: linear-gradient(135deg, #ebce2a 12.50%, #fff 12.50%, #fff 25%, #bdbdbd 25%, #bdbdbd 37.50%, #fff 37.50%, #fff 50%, #ebce2a 50%, #ebce2a 62.50%, #fff 62.50%, #fff 75%, #bdbdbd 75%, #bdbdbd 87.50%, #fff 87.50%, #fff 100%);
    background-size: 113.14px 113.14px;
}

.st-site-common-header .st-brand-logo {
    display: inline-block;
    height: 0px;
    overflow: hidden;
    padding: 50px 0 0 0;
    margin: 4px 0 0 1em;
    font-size: 100%;
}

.st-site-common-header .st-brand-logo-2 {
    display: inline-block;
    height: 0px;
    overflow: hidden;
    padding: 50px 0 0 0;
    margin: 4px 0 0 1em;
    font-size: 100%;
    vertical-align: middle;
}

.st-page-header {
    background: #444;
    border-bottom: 2px #eba724 solid;
}

.st-page-header .card {
    background: #444;
}

.st-page-header .card {
    background: #444;
}

.st-action-menu .e-menu-container {
    width: 100%;
    background: #222;
}

.st-action-menu .e-menu-container .e-menu-item {
    color: white;
}

.st-action-menu .e-menu-container .e-menu-item.e-focused,
.st-action-menu .e-menu-container .e-menu-item.e-selected {
    background: rgba(255,255,255,0.3);
}

/* COLOUR + BRAND CSS */

.st-site-common-header {
    background: white;
}

/* FLOATING LOGIN */
#loginbox > .modal-dialog .modal-header .modal-title {
    display: none;
}

#loginbox > .modal-dialog .modal-header:before, #loginbox > .modal-dialog .modal-header:after {
    content: '';
    display: block;
    width: 140px;
}

#loginbox > .modal-dialog .modal-header:before {
    background: url(/css/images/ia-logo-horiz-grey.svg) no-repeat;
    height: 30px;
}

#loginbox > .modal-dialog .modal-header:after {
    content: 'User Login';
    position: absolute;
    right: 0.5em;
    top: 0.7em;
    padding-left: 1.5em;
    background: url(/css/images/padlock.svg) top left no-repeat;
    background-size: 14%;
    font-size: 120%;
    font-weight: 500;
}

#loginbox > .modal-dialog .modal-content {
    border: 2px solid #c6c6c6;
    box-shadow: 4px 4px 5px rgba(128, 128, 128, 0.3);
    border-radius: 0px;
}

#loginbox > .modal-dialog .e-error {
    font-size: 120%;
    font-weight: 500;
}

#loginbox > .modal-dialog .e-welcome-message {
    font-size: 120%;
    font-weight: 500;
}

#loginbox > .modal-dialog .e-username-group, #loginbox > .modal-dialog .e-password-group {
    border: 2px solid #c6c6c6;
    box-shadow: 4px 4px 5px rgba(128, 128, 128, 0.3);
    width: 450px;
    margin: 0 auto;
}

#loginbox > .modal-dialog .e-username-group > .col-12, .e-password-group > .col-12 {
    padding: 0;
    display: flex;
}

#loginbox > .modal-dialog .e-username-group label, .e-password-group label {
    display: block;
    overflow: hidden;
    width: 4em;
    height: 0;
    padding-top: 4em;
    border-right: 1px solid #c6c6c6;
}

#loginbox > .modal-dialog .e-username-group label {
    background: url(/css/images/email.svg) center no-repeat;
    background-size: 50%;
}

#loginbox > .modal-dialog .e-password-group label {
    background: url(/css/images/padlock.svg) center no-repeat;
    background-size: 42%;
}

#loginbox > .modal-dialog .e-username-group .e-control-wrapper, #loginbox > .modal-dialog .e-password-group .e-control-wrapper {
    height: 100%;
    border: none;
}

#loginbox > .modal-dialog .e-username-group .e-control-wrapper input.e-input, #loginbox > .modal-dialog .e-password-group .e-control-wrapper input.e-input {
    height: 100%;
    font-weight: 500;
    font-size: 160%;
    border: none;
}

#loginbox > .modal-dialog #btSignIn {
    border-radius: 0;
    background-color: #eba724;
    height: 2.5em; /* 4em divided by 160% */
    border: none;
    width: 450px;
    font-size: 160%;
    font-weight: 500;
}
