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;
}

@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;
}

.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%);*/
    height: 120px;
    width: 100%;
    border-bottom: 8px solid #a59c9b;
}

    #AppHeader img, #AppHeader .title {
        margin: 0px 0 0 0;
        color: #655C5B;
    }

    #AppHeader h2 {
        margin-top: 15px;
    }

.navbar-blue {
    background-color: #44464a;
    border-radius: 0;
    border: 0;
    margin-bottom: 0px;
}

    .navbar-blue a {
        color: #fff;
    }

        .navbar-blue a:hover {
            color: #44464a;
        }

.nav li.dropdown:hover > ul.dropdown-menu {
    display: block;
}

.nav > li:hover {
    text-decoration: none;
    background-color: #eee;
}

    .nav > li:hover a {
        color: #44464a;
    }

.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;
}

/* Make navbar a medium-dark gray and ensure contrast */
.navbar-custom {
    background-color: #495057; /* medium-dark gray */
}

    .navbar-custom .navbar-nav .nav-link {
        color: #f8f9fa; /* light text */
    }

    .navbar-custom .navbar-brand img {
        filter: brightness(0) invert(1);
    }

/* Show dropdown menus on hover for larger screens while preserving mobile click */
@@media (min-width: 992px) {
    .navbar-custom .dropdown:hover > .dropdown-menu {
        display: block;
        margin-top: 0;
    }
    /* optional slight fade-in */
    .navbar-custom .dropdown .dropdown-menu {
        -webkit-transform-origin: top center;
        transform-origin: top center;
        transition: opacity .15s ease-in-out, visibility .15s ease-in-out;
    }
}
.well .thumbnail {
    margin-bottom: 10px;
}

.collapseHeader, .collapseHeader:hover, .collapseHeader:focus {
    color: #333;
    text-decoration: none;
}

.container {
    width: 1170px;
}

a.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: break-all;
}

a {
    color: #0077cc;
}

.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;
}

[role="region"][aria-labelledby="app-form-heading"],
[role="region"][aria-labelledby="form-heading"] {
    margin-top: 1.25rem;
}