/* define colors */
:root {
    --color-blue-light: #00a7de;
    --color-blue-medium: #0069d9;
    --color-blue-dark: #0d4883;
    --color-yellow: #f0bf45;
    --color-red: #dd4646;
    --color-green: #70bf2b;
    --color-cyan: #27cfc3;
    --color-warning-dark: #BC9137;
    --color-warning-medium: #FFEEBB;
    --color-warning-light: #FFF3CD;
    --color-success-dark: #3c763d;
    --color-success-medium: #d6e9c6;
    --color-success-light: #dff0d8;

    --color-gray-extra-light: #fafafa;
    --color-gray-light: #f3f3f3;
    --color-gray-dark: #333333;
    --color-gray-secondary-btn: #6c757d;
    --color-light-slate-gray: lightslategray;
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    src: url("3rdparty/webfonts/poppins.v15.ttf") format('truetype');
}

input:required:invalid,
input:focus:invalid {
    background-image: url("../img/icon-no.svg");
}

input:required:valid {
    background-image: url("../img/check.png");
}

ul.messagelist li.success,
ul.messagelist li.info {
    background: #dfd url("../img/icon-yes.svg") 20px 12px no-repeat;
}

ul.messagelist li.warning,
ul.messagelist li.error {
    background: #FEDEDD url("../img/icon-no.svg") 20px 12px no-repeat;
}

html, body {
    height: 100%;
    font-family: 'Poppins';
    margin: 0;
    display: flex;
    flex-direction: column;
}

body > * {
    flex-shrink: 0;
}

.container-fluid {
    display: flex;
    flex-grow: 1;
}

.row {
    flex-grow: 1;
}

html {
    overflow: hidden;
}

body {
    overflow: auto;
    padding-top: 0px;
}

body, a, th, p, span, td, table {
    color: var(--color-blue-dark);
}

royal-blue {
    color: royalblue
}

.bg {
    background-position: center top;
    background-attachment: fixed;
    background-size: cover;
    background-color: white !important;
    background-image: url("../img/login-background.jpg");
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.6;
}

.link {
    color: var(--color-blue-dark);
    font-weight: bold;
    text-decoration: underline;
}

.btn {
    font-size: 1.4rem;
    line-height: 28px;
    font-weight: 400;
    border: 0;
    border-style: none;
    box-shadow: none;
    -border-radius: 200px;
    -webkit-border-radius: 200px;
}

.btn:hover:not(:disabled):not(.disabled),
.btn:hover:not(:disabled):not(.disabled):active,
.btn:hover:not(:disabled):not(.disabled):focus,
.btn:hover:not(:disabled):not(.disabled):active:focus,
.btn:hover:not(:disabled):not(.disabled) + .yellow-point {
    background-color: var(--color-blue-medium);
    color: white;
}

.btn.focus,
.btn:focus,
.btn:not(:disabled):not(.disabled):active:focus {
    box-shadow: none;
}

.btn-primary,
.btn-success,
.btn-primary:not(:disabled):not(.disabled):not(:hover),
.btn-success:not(:disabled):not(.disabled):not(:hover) {
    background-color: var(--color-yellow);
    color: var(--color-blue-dark);
}

.btn-secondary {
    background-color: var(--color-blue-dark);
    color: white;
}

.yellow-point {
    content: "";
    width: 30px;
    height: 30px;
    left: 10px;
    top: 7px;
    transition: 350ms;
    background-color: var(--color-yellow);
    display: block;
    border-radius: 9999px;
    position: relative;
    float: left;
}

span.asteriskField,
span.asteriskFieldNotPadded {
    color: var(--color-yellow);
}

span.asteriskField {
    padding-left: 4px;
}

/* Show 'disc' characters when unfocused. Only show visible text when in focus. */
.unfocused-discs:not(:focus) {
    font-family: 'text-security-disc'; /* Disc-only font because Firefox doesn't support 'text-security'. */
    -webkit-text-security: disc;
    text-security: disc;
}

.icon-nav {
    margin-right: 8px;
    color: var(--color-yellow);
}

.nav-nested-1 {
    margin-left: 15px;
}

.nav-nested-2 {
    margin-left: 30px;
}

.pointer {
    cursor: pointer;
}

.qr-alignment {
    left: -16px;
    position: relative;
}

form {
    font-size: 18px;
}

.form-check-label {
    padding-top: 0px;
}

form label {
    margin-left: 0;
}

.form-check-inline {
    width: 100%;
    margin-top: 5px;
    margin-bottom: 5px;
}

input,
select,
textarea,
form input.form-control,
form select.form-control,
form textarea.form-control {
    border: 0;
    background-color: rgba(0, 0, 0, 0.04);
    max-width: 600px;
}

/* Set yellow box-shadow for fields in focus. */
form input:focus,
form select:focus,
form textarea:focus,
form input.form-control:focus,
form select.form-control:focus,
form textarea.form-control:focus {
    box-shadow: 0 0 0 0.2rem var(--color-yellow);
}

/* Disable box-shadow for readonly fields. */
form input:read-only,
form textarea:read-only,
form input.form-control:read-only,
form textarea.form-control:read-only {
    box-shadow: none;
}

/* Make current selection in dropdown bold. */
form select option:checked {
    font-weight: bold;
}

.logo {
    padding-top: 25px;
    padding-bottom: 20px;
    margin: 0 auto;
}

.logo img {
    max-height: 200px;
    max-width: 310px; /* The available width on the login form */
}

.page-footer {
    background-color: var(--color-gray-dark) !important;
    border-bottom: none !important;
}

.page-footer a {
    color: white !important;
}

.page-footer a:hover {
    color: var(--color-cyan);
}

.red,
.error,
.delete {
    color: var(--color-red);
}

.green {
    color: var(--color-green);
}

.float_bottom_right {
    position: fixed;
    bottom: 0;
    right: 0;
}

input:required:invalid,
input:focus:invalid {
    background-position: right 5px center;
    background-repeat: no-repeat;
    -moz-box-shadow: none;
}

input:required:valid {
    background-position: right 5px center;
    background-repeat: no-repeat;
}

input[list]:required:invalid,
input[list]:focus:invalid {
    background-image: none;
}

input[type="checkbox"],
input[type="radio"] {
    display: inline;
    width: auto;
    margin-right: 10px;
    flex: 0 0 16px;
}

input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

.tooltip-icon {
    color: lightgrey;
}

.tooltip-icon + .tooltip-text {
    font-size: 0.8rem;
    color: darkgrey;
    display: none;
}

.tooltip-icon + .tooltip-text.pinned {
    display: inline;
}

label {
    margin-bottom: 0;
    padding: 0;
}

.container-top {
    width: 100%;
}

.container {
    width: 100%;
    max-width: 660px;
    padding: 0px 20px;
}

.container-base {
    background-color: var(--color-gray-light);
    border-radius: 8px;
    padding: 15px 0px 15px 0px;
}

/* table for showing details */
.detail-table-container {
    flex-flow: row wrap;
}

.detail-table {
    /* Not more than 275 because of iPhone 5/SE screen width. */
    min-width: 275px;
}

.detail-table th {
    font-weight: bold;
    border-bottom: 2px solid var(--color-yellow);
    padding-top: 15px;
}

.detail-table tr td {
    padding: 6px 0px;
}

.detail-table tr td:first-child {
    /* Not more than 40 because of limited space on mobile (iPhone 5/SE). */
    padding-right: 40px;
    padding-left: 5px;
}

.detail-table img {
    max-width: 50%;
}

.disabled-entry * {
    color: var(--color-light-slate-gray);
}

/* card buttons */
.card-button-container {
    max-width: 600px;
    margin-top: 10px;
    flex-flow: row wrap;
}

.card-button {
    border: 2px solid var(--color-blue-dark);
    padding: 10px;
    border-radius: 5px;
    margin: 0px 10px 10px 0px;
    /* Width 275 because of iPhone 5/SE screen width. */
    width: 275px;
    display: inline-block;
}

.card-button i {
    margin-right: 15px;
    color: var(--color-yellow);
}

/* for displaying messages */
ul.messagelist {
    padding: 0;
    margin: 0;
    display: block;
    list-style-type: disc;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
}

ul.messagelist li.success,
ul.messagelist li.info {
    display: block;
    font-weight: 400;
    font-size: 13px;
    padding: 10px 10px 10px 65px;
    margin: 0 0 10px 0;
    background-size: 16px auto;
    color: var(--color-gray-dark);
    list-style-type: square;
    line-height: 20px;
    text-align: -webkit-match-parent;
}

ul.messagelist li.warning,
ul.messagelist li.error {
    display: block;
    font-weight: 400;
    font-size: 13px;
    padding: 10px 10px 10px 65px;
    margin: 0 0 10px 0;
    background-size: 16px auto;
    color: var(--color-gray-dark);
    list-style-type: square;
    line-height: 20px;
    text-align: -webkit-match-parent;
}

.fa-link {
    margin-right: 4px;
}

/*override grid framework settings*/
.col-sm-10 {
    max-width: 100%;
}

/* For non mobile devices */
@media only screen and (min-width: 768px) {
    .container-base {
        margin-top: 40px;
        margin-bottom: 40px;
    }
}

/*
For screens smaller than medium (768px) we show a navbar-toggler (icon ≡) in the top left to toggle our #sidebarMenu.
When scrolled to the bottom of a page, after toggling the sidebarMenu was only visible after scrolling back to the top.
Therefore: Hide the main section when showing the sidebarMenu and also during the animation (collapsing).
*/
@media (max-width: 768px) {
    #sidebarMenu.show + main,
    #sidebarMenu.collapsing + main {
        display: none;
    }
}

.show-on-hover {
  filter: blur(5px);
  pointer-events: none;
  transition: filter 0.3s ease;
}

.hover-to-show:hover .show-on-hover {
  filter: blur(0);
  pointer-events: auto;
}
