html {
    height: 100%;
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin-bottom: 60px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0.5rem;
    z-index: 10000;
    padding: 0.5rem 1rem;
    background: #000;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.skip-link:focus,
.skip-link:focus-visible {
    left: 0.5rem;
    outline: 2px solid #fff;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.spin {
    animation: tspan-spin 1s linear infinite;
}

@keyframes tspan-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .spin {
        animation: none;
    }
}

@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;
}

/* Unchecked radios/checkboxes: darker/thicker ring so the empty state reads clearly next to filled blue checked state */
.form-check-input[type="radio"]:not(:checked):not(:disabled),
.form-check-input[type="checkbox"]:not(:checked):not(:disabled):not(:indeterminate) {
  border-width: 2px;
  border-color: #343a40;
}

/* Keep Bootstrap validation border when parent form was validated or field has .is-invalid */
.was-validated .form-check-input[type="radio"]:invalid,
.form-check-input[type="radio"].is-invalid,
.was-validated .form-check-input[type="checkbox"]:invalid,
.form-check-input[type="checkbox"].is-invalid {
  border-color: var(--bs-form-invalid-border-color);
}

/* Review tab (Form.io): fields are disabled for display; Bootstrap's 0.5 opacity washes out radios/checkboxes */
.formio-component-reviewComponent .form-check-input:disabled,
.formio-component-reviewComponent .form-check-input[disabled] {
  opacity: 1;
  filter: none;
  border-width: 2px;
}
.formio-component-reviewComponent .form-check-input[type="radio"]:disabled:not(:checked),
.formio-component-reviewComponent .form-check-input[type="radio"][disabled]:not(:checked),
.formio-component-reviewComponent .form-check-input[type="checkbox"]:disabled:not(:checked):not(:indeterminate),
.formio-component-reviewComponent .form-check-input[type="checkbox"][disabled]:not(:checked):not(:indeterminate) {
  border-color: #343a40;
  background-color: var(--bs-body-bg, #fff);
}
.formio-component-reviewComponent .form-check-input:disabled:checked,
.formio-component-reviewComponent .form-check-input[disabled]:checked {
  background-color: #0d6efd;
  border-color: #0a58ca;
}
.formio-component-reviewComponent .form-check-input[type="checkbox"]:disabled:indeterminate,
.formio-component-reviewComponent .form-check-input[type="checkbox"][disabled]:indeterminate {
  background-color: #0d6efd;
  border-color: #0a58ca;
}
.formio-component-reviewComponent .form-check-input:disabled ~ .form-check-label,
.formio-component-reviewComponent .form-check-input[disabled] ~ .form-check-label {
  opacity: 1;
  color: #343a40;
}
.formio-component-reviewComponent .form-check label:has(.form-check-input:disabled),
.formio-component-reviewComponent .form-check label:has(.form-check-input[disabled]) {
  opacity: 1;
  color: #343a40;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

@media print {
    .ButtonGroup {
        display: none;
    }
}

.form-group label {
    vertical-align: top;
    margin: 0 20px 0 0;
    max-width: 100%;
}

.form-control {
    display: inline-block;
}

#AppHeader {
    background: rgb(49,75,28);
    background: linear-gradient(180deg, rgba(49,75,28,1) 0%, rgba(63,97,36,1) 100%);
    min-height: 85px;
    height: auto;
    width: 100%;
}

#AppHeader .container {
    min-height: 85px;
}

    #AppHeader img, #AppHeader .title {
        margin: 0px 0 0 0;
        color: #fff;
    }

    #AppHeader h2 {
        margin-top: 15px;
    }

.navbar-blue {
    background-color: #934910;
    border-radius: 0;
    border: 0;
    margin-bottom: 0px;
}

    .navbar-blue a {
        color: #fff;
    }

        .navbar-blue a:hover {
            color: #934910;
        }

.ThumbnailLink:hover, .ThumbnailLink:focus {
    text-decoration: none;
}

    .ThumbnailLink:hover div.thumbnail {
        box-shadow: 5px 5px 5px 0 #ddd;
    }

.thumbnail .caption h3, .thumbnail .caption h4 {
    margin-top: 10px;
    margin-bottom: 10px;
}

.BlockHeader {
    margin-top: 0;
    border-bottom: 1px solid #aaa;
}

.bold, .strong {
    font-weight: bold;
}

.spacer, .Spacer {
    height: 20px;
}

.input-xsmall {
    width: 75px !important;
}

.input-small {
    width: 125px !important;
}

.input-large {
    width: 250px !important;
}

.input-xlarge {
    width: 350px !important;
}

.block {
    display: block !important;
    width: 100% !important;
}

.inline {
    display: inline !important;
    width: auto !important;
}

.inline-block {
    display: inline-block !important;
    width: auto !important;
}

input {
    margin-right: 4px;
}

.ButtonGroup {
    text-align: center;
    border-top: 1px solid #ddd;
}

    .ButtonGroup input {
        margin: 20px;
        min-width: 125px;
        display: inline-block;
    }

.nomargin {
    margin: 0 !important;
}

.pointer {
    cursor: pointer;
}

.has-error {
    color: #a94442;
}

    .has-error .form-control, .has-error input, .has-error select, .has-error textarea {
        background-color: #f2dede !important;
        border-color: #a94442 !important;
    }

.ReqIcon {
    color: #a94442;
    font-weight: bold;
    font-size: 18px;
    vertical-align: middle;
    display: inline-block;
    line-height: 10px;
}

.SubHeader {
    font-size: 22px;
    border-bottom: 1px solid #999;
    color: #999;
    margin-bottom: 5px;
    margin-top: 25px;
}

    .SubHeader:first-child {
        margin-top: 0;
    }

#AlertNav .badge {
    background-color: #fff;
    color: #396A92;
}

#AlertNav:hover .badge {
    background-color: #961919;
    color: #fff;
}

#AlertDropDown li:not(:last-child) {
    border-bottom: 1px solid #ddd;
}

#AlertDropDown li a {
    padding: 10px 15px;
}

    #AlertDropDown li a h4 {
        margin: 0;
    }

.disabled, .Disabled {
    cursor: not-allowed;
    background-color: #eee;
}

.form-group label span {
    font-weight: normal;
    display: inline;
}

.topDialog {
    z-index: 9999 !important;
}

.ui-autocomplete {
    z-index: 9999 !important;
}

.navbar-custom {
    background-color: #934910; 
    padding: 0rem 0rem;
}

    .navbar-custom .navbar-nav .nav-link {
        color: #f8f9fa; /* light text */
    }

    .navbar-custom .navbar-brand img {
        filter: brightness(0) invert(1);
    }

.well .thumbnail {
    margin-bottom: 10px;
}

.collapseHeader, .collapseHeader:hover, .collapseHeader:focus {
    color: #333;
    text-decoration: none;
}

.container {
    width: 100%;
    max-width: 1170px;
}

a.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: break-all;
}

a {
    color: #005a8c;
}

a:focus-visible {
    outline: 2px solid #005a8c;
    outline-offset: 2px;
}

.navbar-custom .nav-link:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.border-top {
    border-top: 1px solid #e5e5e5;
}

.border-bottom {
    border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
    font-size: 1rem;
    line-height: inherit;
}

.footer {
    position: relative;
    width: 100%;
    white-space: nowrap;
    line-height: 60px;
}

.footer .container {
    max-width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
    word-break: break-word;
    overflow-wrap: break-word;
}

.footer p {
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
    line-height: 1.1; /* Reduce line spacing */
    font-size: 0.92rem; /* Optional: slightly smaller text */
    margin-bottom: 0;
    margin-top: 0;
    padding: 0;
}

#formio label {
    font-weight: bold;
}

/* Home: profile photo + glass overlay (parity with admin Nurse/Modules/photoViewer.ascx).
   Fixed pixel box + !important so the image cannot expand the row (flex/img-fluid elsewhere). */
.home-profile-header .portal-photo-viewer {
    position: relative;
    width: 96px !important;
    height: 96px !important;
    max-width: 96px !important;
    max-height: 96px !important;
    min-width: 96px;
    overflow: hidden;
    border-radius: 0.25rem;
    border: 1px solid rgba(0, 0, 0, 0.12);
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .home-profile-header .portal-photo-viewer {
        width: 120px !important;
        height: 120px !important;
        max-width: 120px !important;
        max-height: 120px !important;
        min-width: 120px;
    }
}

.portal-photo-glass {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.25rem;
    box-sizing: border-box;
    background-color: rgba(204, 204, 204, 0.7);
    z-index: 3;
    pointer-events: auto;
}

/* Keep controls visible while keyboard focus is inside (hover alone is insufficient for a11y). */
.portal-photo-viewer:focus-within .portal-photo-glass {
    display: flex;
    opacity: 1;
}

.home-profile-header .portal-photo-viewer .portal-profile-photo {
    position: relative;
    z-index: 1;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
    border: 0;
    display: block;
}

.home-profile-header .portal-photo-viewer .portal-profile-photo--placeholder {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e9ecef;
    color: #6c757d;
    width: 100%;
    height: 100%;
    border-radius: 0;
    border: 0;
}

.home-profile-header .portal-photo-viewer .portal-profile-photo--placeholder .fa-user {
    font-size: 2.5rem;
}

@media (min-width: 768px) {
    .home-profile-header .portal-photo-viewer .portal-profile-photo--placeholder .fa-user {
        font-size: 3rem;
    }
}