/* Progress bar active tab colors */
.list-group-item.active {
  background-color: #58001D;
  border-color: #58001D;
}

/* Rounding active tab in progress bar */
html[dir="ltr"] ol.progress.top li.active {
  border-top-left-radius: 6px;
  border-bottom-left-radius: 6px;
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;
}

/* Progress bar rounded corners */
.progress.list-group {
  border-top-left-radius: 6px;
  border-bottom-left-radius: 6px;
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;
}

/* Description text color */
.description {
  color: #8f949c;
  font-style: italic;
}

/* Added spacing for descriptions in Personal Info tab */
td.picklist-cell .description {
  margin-top: 6px;
}

td.picklist-cell .description.below {
  margin-top: 0px;
}

/* Description in Jeff's Javascript popup */
.description.alert {
  font-style: normal;
}

/* Styling link in Jeff's Javascript popup */
.description.below.alert a,
.description.below.alert a:visited {
  color: #0f5132;
  font-weight: 600;
  text-decoration: underline;
}

.description.below.alert a:hover {
  color: #ffffff;
}


/* Apparently browsers ignore this unless you force it via the inspect tool. Therefore this is just the standard blue when we hover. */
.form-select option:hover {
  background-color: #58001D;
  color: #ffffff;
}

/* Hide the default radio and change the appearance when not clicked*/
input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid #d1d1d1;
  border-radius: 50%;
  cursor: pointer;
  vertical-align: middle;
  margin-right: 10px;
  background-color: #fff;
  position: relative;
}

/* The new inner dot */
input[type="radio"]::before {
  content: "";
  width: 10px;
  height: 10px;
  background-color: #58001D;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.15s ease-in-out;
}

/* Border for when the new radio is checked */
input[type="radio"]:checked {
  border-color: #58001D;
}

input[type="radio"]:checked::before {
  transform: translate(-50%, -50%) scale(1);
}

/* Border around label */
.picklist.vertical label {
  display: inline-block;
  width: calc(100% - 28px);
  /* leaves room for the radio */
  border: 1px solid #d1d1d1;
  border-radius: 6px;
  padding: 10px 12px;
  margin-bottom: 8px;
  cursor: pointer;
  vertical-align: middle;
  line-height: 1.4;
}

.picklist.vertical label:hover {
  border-color: #58001D;
}

.picklist.vertical input[type="radio"]:checked+label {
  border-color: #58001D;
  background-color: rgba(88, 0, 29, 0.04);
}

/* To keep the button red when clicked */
.btn-sm,
.btn-sm:disabled,
.btn-sm.disabled,
.submit-btn,
.submit-btn:disabled,
.submit-btn.disabled {
  background-color: #58001D;
  border-color: #58001D;
  color: #fff;
}

.btn-sm:hover,
.btn-sm:focus{
  background-color: #7d0023;
  border-color: #7d0023;
}


/* Style home page */
/* Gray background spans full width */
.page-background {
  background-color: #f5f6f8;
  padding: 48px 16px;
}

/* White card */
.application-card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 24px;
  max-width: 1100px;
  margin: 0 auto;
  margin-top: 50px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

/* Remove awkward gap at top of card */
.application-card h1 {
  margin-top: 0;
}

/* Tab header */
h2.tab-title {
  font-size: 24px;
  font-weight: 400;
  margin-top: 21px;
  margin-bottom: 10.5px;
}

/* Changing previous button colors */
input.previous-btn {
  border-color: #58001d;
  border-radius: 6px;
  font-family: Inter;
  font-weight: 600;
  font-size: 14px;
  padding: 6px 20px;
  width: fit-content;
  border-style: solid;
  background-color: #FFFFFF;
  color: #58001d;
}

input.previous-btn:hover {
  background-color: #f5e9ed;
  color: #58001d;
}

/* Increase logo size */
.site-logo {
  height: 56px;
  width: auto;
  margin: 0 10px;
}

/* Mobing the radius to the base style to fix the flicker issue */
a.nav-link {
  border-radius: 6px;
}

/* Removing underline on navbar hover */
a.nav-link:hover,
a.nav-link:focus,
a.nav-link:active {
  text-decoration: none !important;
}

/* Getting rid of blue glow on text boxes */
input[type="text"],
input[type="email"],
input[type="password"],
textarea {
  border: 2px solid #ccc;
  /* default border */
  outline: none;
  /* removes default focus outline */
  transition: border 0.2s;
  /* smooth transition when focus changes */
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus {
  border: 0.15rem solid #58001d;
  /* your desired focus color and thickness */
  box-shadow: none;
  /* removes blue glow completely */
}

/* Sign in page styling */

/* Changing the "Forgot Password" button colors */
a[href*="ForgotPassword"] {
  border-color: #58001d;
  border-radius: 6px;
  font-family: Inter;
  font-weight: 600;
  font-size: 14px;
  padding: 6px 20px;
  width: fit-content;
  border-style: solid;
  background-color: #FFFFFF;
  color: #58001d;
}

a[href*="ForgotPassword"]:hover {
  background-color: #f5e9ed;
  color: #58001d;
}

/* Sign in navbar options */
/* Reset the default tab look */
.nav-account {
  border-bottom: none;
  background: #f5f6f8;
  padding: 6px;
  border-radius: 10px;
  display: inline-flex;
  gap: 4px;
}

/* Style the tabs */
.nav-account .nav-link {
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  color: #6b6b6b;
  font-weight: 500;
  background: transparent;
  transition: all 0.2s ease;
}


/* Active tab */
.nav-account .nav-link.active {
  background-color: #58001D;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

/* Hover and focus */
.nav-account .nav-link:hover:not(.active),
.nav-account .nav-link:focus:not(.active) {
  background-color: #e9ebef;
  color: #333;
}

/* Icon alignment */
.nav-account .fa {
  margin-right: 6px;
  font-size: 0.95em;
}

.form-check-input {
  accent-color: #58001D;
  background-image: none;
}

/* Unchecked */
.form-check-input:not(:checked) {
  border-color: #58001D;
}

/* Checked */
.form-check-input:checked {
  background-color: #58001D;
  border-color: #58001D;
}

/* Focus */
.form-check-input:focus {
  box-shadow: none;
  outline: 2px solid #58001D;
  outline-offset: 2px;
}

/* Background on application dashboard */
.wrapper-body{
  background-color: #f5f6f8;
}

/* Application Dashboard headers styling */
thead th a {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  text-decoration: none;
}

thead th a:not(.btn):hover {
  text-decoration: none !important;
}

thead th a:not(.btn):focus {
  text-decoration: none;
}

thead th.sort,
thead th.sort-asc,
thead th.sort-desc {
  background-color: #58001d;
}

thead th.sort a,
thead th.sort-asc a,
thead th.sort-desc a {
  color: #ffffff;
}


/*****************************
   Modal styling
*****************************/

/* =========================
   1) Rounded row "checkboxes"
   ========================= */

.modal .entity-grid tbody span[role="checkbox"]{
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: #fff;
  line-height: 1;
}

.modal .entity-grid tbody span[role="checkbox"].fa-check{
  background: rgba(88, 0, 29, 0.10);
  border-color: var(--brand);
  color: var(--brand);
}

/* =========================
   2) GRID HEADER IMPROVEMENTS
   ========================= */

.modal .entity-grid table thead th{
  background: var(--brand);
  color: var(--header-text);
  font-weight: 600;
  font-size: 14px;
  padding: 12px 16px;
  border: none;
  overflow: hidden;
}

.modal .entity-grid table thead tr{
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.modal .entity-grid table thead th a{
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.modal .entity-grid table thead th a:hover{
  opacity: 0.85;
}

.modal .entity-grid table thead th .fa{
  font-size: 12px;
  opacity: 0.9;
}

.modal .entity-grid table thead th:first-child{
  border-top-left-radius: 12px;
}

.modal .entity-grid table thead th:last-child{
  border-top-right-radius: 12px;
}

/* =========================
   3) Soft Rounded Pill Pagination
   ========================= */

.modal .entity-grid .pagination{
  gap: 6px;
}

/* Base pill */
.modal .entity-grid .pagination .page-link{
  border: none;
  background: transparent;
  color: var(--brand);
  border-radius: 8px;
  padding: 6px 12px;
  transition: all 0.15s ease;
  text-decoration: none !important; /* remove underline */
}

/* Hover */
.modal .entity-grid .pagination .page-link:hover{
  background: var(--brand-soft);
  text-decoration: none !important; /* ensure no underline */
}

/* Focus / active state */
.modal .entity-grid .pagination .page-link:focus,
.modal .entity-grid .pagination .page-link:active{
  box-shadow: 0 0 0 0.25rem var(--brand-glow) !important;
  outline: none !important;
  text-decoration: none !important;
}

/* Active page = red pill */
.modal .entity-grid .pagination .page-item.active .page-link{
  background-color: var(--brand) !important;
  border-color: var(--brand) !important;
  color: #fff !important;
  box-shadow: none !important;
  text-decoration: none !important;
}

/* =========================
   4) Select Button Branding
   ========================= */

.modal .modal-footer .btn.btn-primary{
  background: var(--brand) !important;
  border-color: var(--brand) !important;
  color: #fff !important;
}

.modal .modal-footer .btn.btn-primary:hover{
  background: var(--brand-dark) !important;
  border-color: var(--brand-dark) !important;
}

.modal .modal-footer .btn.btn-primary:focus{
  box-shadow: none;
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
/* Instructional helper text */
.modal .entity-grid .view-grid > span[aria-label="Choose one record and click Select to continue"]{
  display: block;
  font-size: 13px;
  color: #6c757d;      /* bootstrap gray */
  font-weight: 400;
  margin: 0 0 10px;
}

.modal .entity-grid table tbody tr.table-info,
.modal .entity-grid table tbody tr.selected {
  background-color: #e9ecef !important;
}

/* =========================================================
   AUTH PAGES (Register + Sign In)
   Scoped via: body.portal-auth
   ========================================================= */

/* Grey full page background */
/* body.portal-auth .page-content {
  background: #f5f6f8;
  min-height: 100vh;
  padding: 60px 20px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
} */

/* Override the row and col-md-6 constraints */
body.portal-auth .page-content > .row {
  width: 100%;
  justify-content: center;
}

body.portal-auth .page-content .col-md-6 {
  flex: 0 0 auto !important;
  width: 100% !important;
  max-width: 560px !important;
  padding: 0 !important;
}

/* White card */
body.portal-auth .portal-form {
  background: #ffffff !important;
  border: 1px solid #e2e4e8 !important;
  border-radius: 16px !important;
  padding: 40px !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06) !important;
  max-width: 560px !important;
  width: 100% !important;
  margin: 0 auto !important;
  text-align: center !important;
}

/* Heading */
body.portal-auth .portal-form .login-heading-section {
  text-align: center;
  margin-bottom: 18px;
  font-size: 28px;
  font-weight: 700;
}

/* Labels */
body.portal-auth .portal-form label {
  text-align: left !important;
  font-weight: 600;
  margin-bottom: 6px;
}

/* Inputs: consistent look */
body.portal-auth .portal-form input[type="text"],
body.portal-auth .portal-form input[type="email"],
body.portal-auth .portal-form input[type="password"],
body.portal-auth .portal-form input.form-control,
body.portal-auth .portal-form select.form-control,
body.portal-auth .portal-form textarea.form-control {
  border-radius: 10px;
  padding: 12px 14px;
  border: 1px solid #e2e4e8;
}

/* Help text / muted text consistency */
body.portal-auth .portal-form .description,
body.portal-auth .portal-form .text-muted {
  font-size: 0.95rem;
}

/* Center rows inside form */
body.portal-auth .portal-form .row {
  justify-content: center;
}

/* Remove bootstrap offset centering quirks on these pages */
body.portal-auth .portal-form .offset-md-4 {
  margin-left: 0 !important;
}

/* Injected blocks */
body.portal-auth .auth-actions,
body.portal-auth .auth-switch {
  margin-top: 18px;
  text-align: center;
}

body.portal-auth .auth-btn {
  margin: 6px 6px 0 6px;
  min-width: 160px;
  border-radius: 10px;
  padding: 10px 18px;
}

body.portal-auth .auth-switch__text {
  font-size: 1.05rem;
  margin: 0 0 10px 0;
}

/* Divider used in injected blocks */
body.portal-auth .auth-divider {
  margin: 18px 0;
  border: 0;
  border-top: 1px solid #e2e4e8;
}

/* Mobile */
@media (max-width: 768px) {
  body.portal-auth .portal-form {
    padding: 28px 20px !important;
  }

  body.portal-auth .page-content {
    padding: 30px 16px;
  }

  body.portal-auth .auth-btn {
    width: 100%;
    min-width: 0;
    margin: 10px 0 0 0;
  }
}

/* =========================================================
   AUTH LAYOUT FIX: break out of Bootstrap .container wrapper
   ========================================================= */

/* Make the page background truly full-viewport */
body.portal-auth {
  background: #f5f6f8;
}

/* Power Pages wraps content in a fixed-width .container */
body.portal-auth #content-container.container.wrapper-body {
  max-width: none !important;     /* remove container max width */
  width: 100% !important;
  padding-left: 0 !important;     /* remove container gutters */
  padding-right: 0 !important;
}

/* Ensure the main content area can span full width */
body.portal-auth #content,
body.portal-auth #mainContent.page-content {
  width: 100% !important;
}

/* Keep your existing centering/card rules */
body.portal-auth .page-content {
  background: transparent;
  min-height: 100vh;
  padding: 60px 20px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}