/* 
    Bootstrap theme overrides 
    Set Bootstrap controls with ADH site defaults.
    *This file reference should be placed after bootstrap.min.css
*/
:root {
    --adh-primary: rgb(9, 24, 60); /* overrides BS Primary color */
    --adh-primary-shaded: rgba(9, 24, 60, 0.85); /* Custom BS Primary color shaded */

    --adh-navbar-top: var(--adh-primary);
    --adh-navbar-middle: rgb(255, 255, 255);
    --adh-navbar-middle-border: rgb(86, 189, 255);
    --adh-navbar-bottom: rgb(0, 112, 190);
    --adh-logo-red: rgb(195, 32, 51);
    --adh-tooltip-bg: var(--adh-primary);
    --adh-tooltip-opacity: 1.0;
    --adh-tooltip-color: rgb(255,255,255);
}

/* Bootstrap overrides progress-bar */
.progress-bar {
    --bs-progress-bar-bg: var(--adh-primary-shaded);
}

.tooltip {
    --bs-tooltip-bg: var(--adh-tooltip-bg);
    --bs-tooltip-opacity: var(--adh-tooltip-opacity);
    --bs-tooltip-color: var(--adh-tooltip-color);
}

/* Bootstrap overrides btn-primary */
.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--adh-primary);
    --bs-btn-border-color: var(--adh-primary);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--adh-primary-shaded);
    --bs-btn-hover-border-color: #0a58ca;
    --bs-btn-focus-shadow-rgb: 49,132,253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #0a58ca;
    --bs-btn-active-border-color: #0a53be;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: var(--adh-primary);
    --bs-btn-disabled-border-color: var(--adh-primary);
}

/* Bootstrap overrides form checks selected colors */
.form-check-input:checked {
    background-color: var(--adh-primary);
    border-color: var(--adh-primary);
}

/*
  End Bootstrap theme overrides
*/

.adh-text-primary {
    --bs-text-opacity: 1;
    color: var(--adh-primary) !important;
}

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

.clickable {
    cursor: pointer !important;
}

.form-switch > label {
    cursor: pointer;
}

.home-left-slice {
    background-image: url('../images/home-login-left.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: left center;
    width: 80px;
    height: 412px;
}

.home-middle-section {
    background-color: rgb(231, 231, 231);
    height: 412px
}

.home-right-slice {
    background-image: url('../images/home-login-right.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: right center;
    width: 744px;
    height: 412px;
}

.yes-no-switch ~ .no-label {
    display: inline-block;
}

.yes-no-switch ~ .yes-label {
    display: none;
}

.yes-no-switch:checked ~ .no-label {
    display: none;
}

.yes-no-switch:checked ~ .yes-label {
    display: inline-block;
}

a.nav-link i {
    width: 25px;
    text-align: center;
}

.navbar-adh-initial {
    background-image: url('/images/banner-bkgr.png');
    background-repeat: repeat-x;
    background-size: auto 100%;
    background-position: center;
    position: relative;
    height: 140px;
}

.navbar-adh-text {
    color: var(--adh-primary);
    font-size: 1.5rem;
}

.navbar-adh {
    background-image: url('/images/banner-bkgr.png');
    background-repeat: repeat-x;
    background-size: auto 100%;
    background-position: center;
    position: relative;
    height: 70px;
}

.sidebar-nav {
    min-height: 0;
    min-width: 12rem;
    color: var(--adh-primary);
}

.sidebar-nav ul {
    padding-top: 5rem;
}

.sidebar-nav .nav-link {
    color: var(--adh-primary);
}

.sidebar-nav .nav-item:hover {
    color: var(--adh-primary);
    background-color: var(--bs-border-color);
}

.sidebar-nav .nav-item.active, .sidebar-nav .nav-item:active {
    color: var(--adh-primary);
}

.sidebar-nav .nav-item:focus {
    color: var(--adh-primary);
}

.sidebar-nav-divider {
    margin: 10px 8px 10px 8px;
    padding-left: 1rem;
}

label.required::after {
    content: " *";
    color: red;
    font-weight: bold;
}

/* jquery validation */
.form-control.input-validation-error {
    color: var(--bs-danger-text-emphasis) !important;
    border-color: var(--bs-danger-border-subtle) !important;
    background-color: var(--bs-danger-bg-subtle) !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right calc(.375em + .1875rem) center !important;
    background-size: calc(.75em + .375rem) calc(.75em + .375rem) !important;
    padding-right: calc(1.5em + .75rem) !important;
}

.field-validation-error {
    color: var(--bs-danger-text-emphasis);
    background-color: var(--bs-danger-bg-subtle);
    border-radius: var(--bs-border-radius-sm);
    font-size: .8rem;
    margin: 0 5px;
    padding: 0px 6px 2px;
}

.field-validation-valid {
    display: none;
}