:root {
    --bs-primary: #027cc4;
    --bs-primary-hover: #0169a5;
    --bs-primary-active: #00598c;
    --bs-primary-rgb: 2, 124, 196;
    --bs-btn-bg: #027cc4;
    --bs-btn-border-color: #027cc4;
    --bs-dropdown-bg: #027cc4;
    --bs-link-color: #027cc4;
    --bs-link-hover-color: #025b91; /* optional: darker shade on hover */
    --background: #ccc;
    --bs-nav-link-color: white;
}
html,
body {
    height: 100%;
    font-family: Roboto, sans-serif;
    color: #444;
}
#main { padding-top: 70px; }
a {
    text-decoration: none;
    color: var(--bs-primary);
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto Slab', sans-serif;
}
h1 {
    background-color: var(--bs-primary);
    color: white;
    font-size: 1.8em;
    padding: 0.25em 0.5em;
}
h1 a { margin-left: 1em; }
h2 { font-size: 1.5em; font-weight: bold; }
h3 { font-size: 1.3em; }
h4 {
    font-size: 1.2em;
    color: var(--bs-primary);
    margin-top: 1em;
    padding-top: 0.5em;
    border-top: 1px solid darkgray;
}
h5 {
    font-size: 1.2em;
}
h6 {
    font-size: 1.2em;
    color: var(--bs-primary);
    margin-top: 1em;
    padding-top: 0.5em;
    border-top: 1px solid darkgray;
}

strong {
    font-weight: 700;
}

.wrap {
    min-height: 100%;
    height: auto;
    margin: 0 auto -60px;
    padding: 0 0 60px;
}

.jumbotron {
    text-align: center;
    background-color: transparent;
}

.jumbotron .btn {
    font-size: 21px;
    padding: 14px 24px;
}

/* .auth-submit-button:hover,
.auth-submit-button:focus {
    background-color: black;
    border-color: black;
    color: #fff;
} */

.btn-shadow-primary {
  background: linear-gradient(#0054a4, #1d7bf0);
  letter-spacing: 2px;
  color: white;
}

.btn-shadow-primary:hover, .btn-shadow-primary:hover {
  background: linear-gradient(#0069d9, #1d7bf0);
  color: white;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* NAVIGATION */
.loginLogo { height: 120px; }
.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-family: 'Roboto Slab', sans-serif;
    font-size: 1rem;
    letter-spacing: 0.02em;
    color: white;
}
.brand-lockup:hover,
.brand-lockup:focus {
    color: white;
}
.brand-mark {
    width: 2.1rem;
    height: 2.1rem;
    display: block;
    object-fit: contain;
}
.brand-wordmark {
    white-space: nowrap;
}
.nav-link {
    position: relative;
}
.dropdown:hover .dropdown-menu {
  display: block;
  margin-top: 0; /* prevents position shift */
}
.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    background-color: var(--bs-primary);
}
.nav-pills .material-symbols-outlined.fill {
    font-size: 36px;
}
.nav-item.dropdown.position-static .dropdown-menu {
    left: 0;
    right: 0;
    width: 100vw; /* Use viewport width for full-page span */
    border-radius: 0; /* Optional: Remove border-radius for a cleaner look */
}
.navbar {
    background-color: var(--bs-primary);
    color: var(--bs-primary);
}
.navbar a.nav-link, .navbar input, .navbar input::placeholder {
    color: rgba(255,255,255,0.55);
}
.form-control::placeholder {
    color: #adb5bd;
    opacity: 1;
}
.navbar a.nav-link.active {
    color: white;
}
#mainNav .form-select, #mainNav .form-control {
    background-color: var(--bs-primary-active);
    border-color: var(--bs-primary-active);
}
.navbar .form-select, .navbar .form-control  {
    color: white;
}
#mainNav .dropdown-menu {
    background-color: black;
}
#mainNav .dropdown-item {
    color: white;
}
#mainNav .dropdown-item:hover {
    background-color: #666;
}

.userPerm, .userPerm a { color: #666; position: relative; }
#maxPerm {
    position: absolute;
    font-style: normal;
    display: none;
    background-color: black;
    color: white;
    padding: 2px 6px;
    left: 13rem;
    bottom: 1.3rem;
    border-radius: 4px;
    /* margin-left: -40px; */
    border: 1px solid black;
    font-size: 80%;
}

#messages h6 {
    /* font-size: 14px; */
    font-weight: bold;
    color: #666;
    padding-top: 0.25em;
    padding-bottom: 0.5em;
    margin-bottom: 0.5em;
    border-bottom: 1px solid #027dc5;
}
#messages time {
    display: block;
    color: #ccc
}

#opsMenu.nav {
    margin-bottom: 5px;
}
#opsMenu.nav > li > a {
    color: #027dc5;
}
#opsMenu {
    padding: 0.5em 0;
}
#opsMenu a.nav-link {
    padding: 0 0.5em 0 0;
}

.persist {
    color: #ed1c24;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    position: relative;
    top: 1px;
    display: inline-block;
    font-family: 'Glyphicons Halflings';
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    padding-left: 5px;
}

a.asc:after {
    content: /*"\e113"*/ "\e151";
}

a.desc:after {
    content: /*"\e114"*/ "\e152";
}

.sort-numerical a.asc:after {
    content: "\e153";
}

.sort-numerical a.desc:after {
    content: "\e154";
}

.sort-ordinal a.asc:after {
    content: "\e155";
}

.sort-ordinal a.desc:after {
    content: "\e156";
}
.grid-view.table-xs {
    font-size: 80%;
}
.grid-view.table-xs td,
.grid-view.table-xs th {
    padding: 0.2em;
}
.grid-view.table-xs .form-control,
.grid-view.table-xs .form-select {
    font-size: inherit;
}
.grid-view th, table.sticky th {
  position: sticky;
  top: 60px;
  background-color: white;
}
.grid-view th:last-child {
    min-width: 80px;
}


.form-group.persist {
    margin-left: auto;
}
.persist a i {
    color: red;
}
.form-label {
    font-weight: bold;
}

span.required, .help-block {
    color: red;
}
.has-error input {
    border: 1px solid red;
}
/* .control-label {
    font-size: 16px;
    color: #444;
} */
.form-control {
    font-size: 16px;
    color: #444;
}
.required label.form-label:after {
    content: ' *';
    color: red;
}

.footerLogo {
  height: 60px;
  /* margin-top: 10px; */
}
.input-group-text {
    color: white;
}

.pagination li a {
    display: block;
    padding: 6px 12px;
    margin-left: -1px;
    line-height: 1.42857143;
    color: #337ab7;
    text-decoration: none;
    background-color: #fff;
    border: 1px solid #ddd;
}

.pagination li.active a {
    display: block;
    padding: 6px 12px;
    margin-left: -1px;
    line-height: 1.42857143;
    color: white;
    text-decoration: none;
    background-color: #027dc5;
    border: 1px solid #027dc5;
}

.pagination li span {
    display: block;
    padding: 6px 12px;
    margin-left: -1px;
    line-height: 1.42857143;
    color: #337ab7;
    text-decoration: none;
    background-color: #fff;
    border: 1px solid #ddd;
}

#loader {
    border: 20px solid #f3f3f3; /* Light grey */
    border-top: 20px solid var(--bs-primary); /* Blue */
    border-radius: 50%;
    width: 180px;
    height: 180px;
    animation: spin 2s linear infinite;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 9999;
}

#loader.is-active {
    opacity: 1;
    visibility: visible;
    transition:
        visibility 0s linear 1s,
        opacity 0.2s linear 1s;
}

#loader:not(.is-active) {
    transition:
        visibility 0s linear 0s,
        opacity 0.2s linear 0s;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

span.tt {
    margin-left: 0.5em;
    background-color: #999;
    display: inline-block;
    min-width: 10px;
    padding: 3px 7px;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: top;
    border-radius: 50%;
}
.btn-primary {
  --bs-btn-bg: var(--bs-primary);
  --bs-btn-border-color: var(--bs-primary);
  --bs-btn-hover-bg: var(--bs-primary-hover); /* Darker for hover */
  --bs-btn-hover-border-color: var(--bs-primary-hover);
  --bs-btn-active-bg: var(--bs-primary-active); /* Even darker for active */
  --bs-btn-active-border-color: var(--bs-primary-active);
 }
 .bg-primary {
     background-color: var(--bs-primary);
 }

.ui-autocomplete {
    z-index: 1050 !important; /* adjust as needed */
}
.fill {
    font-variation-settings:
        'FILL' 1,
        'wght' 400,
        'GRAD' 0,
        'opsz' 24;
}
/* .nav-link {
    display: inline-flex;
    align-items: center;
} */

/* mobile */
@media (max-width: 767px) {
    #main {
        padding-top: 70px;
    }
}

/* tablets */
@media (max-width: 991px) and (min-width: 768px) {
    #main {
        padding-top: 140px;
    }
}

/* laptops */
@media (max-width: 1199px) and (min-width: 992px) {
}

/* desktops */
@media (min-width: 1200px) {
}
