@import url( 'open-iconic/font/css/open-iconic-bootstrap.min.css' );

html,
body {
    font-family: 'Lato', Helvetica, Arial, sans-serif;
}

a,
.btn-link {
    color: #0366d6;
}

.btn-primary {
    background-color: #1b6ec2;
    border-color: #1861ac;
    color: #fff;
}

.valid.modified:not( [type=checkbox] ) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#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;
}

/* bar */

.b-bar-brand {
    background-color: #052767 !important;
    font-size: 1.2em;
}

.b-bar-vertical-inline {
    background-color: #f7931e !important;
}

.b-bar-menu {
    background-image: linear-gradient( 180deg, #243651 30%, #16a099 100% ) !important;
}

.b-bar-dropdown-menu {
    background-color: rgba( 0, 0, 0, 0.2 ) !important;
}

.b-bar-link.active,
.b-bar-dropdown-item.active {
    background-color: rgba( 255, 255, 255, 0.2 ) !important;
}

.b-bar-vertical-inline {
    color: rgba( 255, 255, 255, 0.7 ) !important;
}

.b-bar-horizontal {
    background-color: #f7931e !important;
}

.b-bar-horizontal * {
    color: #243651 !important;
}

.navbar-toggler-icon {
    background-image: url( "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28 36,  54,  81, 0.5%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e" ) !important;
}

.navbar-brand {
    padding-bottom: 3px !important;
    padding-top: 3px !important;
}

.navbar-brand a:hover {
    background: inherit !important;
}

.navbar-brand a,
.navbar-brand a.active {
    background: inherit !important;
}

.navbar-brand *,
.navbar-brand a.nav-link {
    color: #243651 !important;
    font-weight: bold;
}

/* Entities */
.simple-view {
    max-width: 100%;
}

.simple-single-view > .card > .card-header {
    font-weight: bold;
    font-size: 1.2em;
}

.entity-details-modal .modal-content > .row > .col > .card {
    margin: 0 !important;
}

.form-label {
    margin-bottom: 0;
    font-weight: bold;
}

.form-label > .explanation{
    font-weight: normal;
}

.buttons-list {
    text-align: end;
}

.buttons-list button {
    margin-right: 1em;
}

.buttons-list button:last-child {
    margin-right: 0;
}

.nav-tabs {
    font-weight: bold;
}

/* Display validation for Date picker in filters */
.flatpickr-wrapper:has( .is-invalid ) ~ .invalid-feedback {
    display: block;
}

/* fix calendar positioning bug */
.flatpickr-calendar.static {
    top: unset !important;
}

/* fix grid display */
.grid {
    display: table !important;
}

.icon {
    display: inline-block;
    width: 1.2rem;
    height: 1.2rem;
    background-repeat: no-repeat;
    background-size: contain;
}