﻿html {
  font-size: 14px;
  font-family: Calibri, sans-serif;
}

body {
  font-family: Calibri, sans-serif;
}

footer {
  line-height: 25px !important;
}

/* ─────────────────────────────────────────────────────────────
   Navbar — Refined Dark theme (navbar-tp)
   ───────────────────────────────────────────────────────────── */

.navbar-tp {
    background: #1a1d21;
    min-height: 52px;
    padding: 0 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,.35);
}

.navbar-tp .navbar-toggler {
    border-color: rgba(255,255,255,.2);
}

.navbar-tp .navbar-toggler-icon {
    filter: invert(1);
}

/* Top-level nav links */
.navbar-tp .nav-link {
    color: rgba(255,255,255,.72) !important;
    font-size: .82rem;
    font-weight: 500;
    letter-spacing: .04em;
    padding: 0 14px !important;
    line-height: 52px;
    border-bottom: 3px solid transparent;
    transition: color .15s, border-color .15s;
}

.navbar-tp .nav-link:hover,
.navbar-tp .nav-link:focus,
.navbar-tp .nav-link.show {
    color: #fff !important;
    border-bottom-color: #20c997;
}

/* Dropdown panel */
.navbar-tp .dropdown-menu {
    background: #23272b;
    border: none;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,.4);
    margin-top: 4px !important;
    min-width: 210px;
    padding: 6px 0;
}

/* Dropdown items */
.navbar-tp .dropdown-item {
    color: rgba(255,255,255,.78) !important;
    font-size: .82rem;
    padding: 7px 18px;
    transition: background .12s;
}

.navbar-tp .dropdown-item:hover,
.navbar-tp .dropdown-item:focus {
    background: rgba(255,255,255,.08);
    color: #fff !important;
}

/* Section sub-labels */
.navbar-tp .dropdown-item-text {
    color: rgba(255,255,255,.32) !important;
    font-size: .69rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    padding: 10px 18px 3px;
}

/* Divider */
.navbar-tp hr.dropdown-divider {
    border-color: rgba(255,255,255,.1);
    margin: 4px 0;
}

/* ─────────────────────────────────────────────────────────────
   Navbar — Deep Navy + White Dropdowns (navbar-tp-b)
   ───────────────────────────────────────────────────────────── */

.navbar-tp-b {
    background: linear-gradient(135deg, #1e3a5f 0%, #0d2137 100%);
    min-height: 52px;
    padding: 0 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,.4);
}

header:has(.navbar-tp-b) {
    position: sticky;
    top: 0;
    z-index: 1030;
}

.navbar-tp-b .navbar-toggler {
    border: 2px solid rgba(255,255,255,.7);
    border-radius: 6px;
    padding: 4px 8px;
}

.navbar-tp-b .navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(255,255,255,.25);
}

.navbar-tp-b .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 1.4em;
    height: 1.4em;
}

/* Top-level nav links */
.navbar-tp-b .nav-link {
    color: rgba(255,255,255,.72) !important;
    font-size: .82rem;
    font-weight: 500;
    letter-spacing: .04em;
    padding: 0 13px !important;
    line-height: 52px;
    border-radius: 6px;
    transition: background .15s, color .15s;
}

.navbar-tp-b .nav-link:hover,
.navbar-tp-b .nav-link:focus,
.navbar-tp-b .nav-link.show {
    background: rgba(255,255,255,.12);
    color: #fff !important;
}

/* Dropdown panel — white card */
.navbar-tp-b .dropdown-menu {
    background: #fff;
    border: none;
    border-radius: 10px;
    box-shadow: 0 10px 32px rgba(0,0,0,.22);
    margin-top: 6px !important;
    min-width: 210px;
    padding: 6px 0;
}

/* Dropdown items */
.navbar-tp-b .dropdown-item {
    color: #1e3a5f !important;
    font-size: .82rem;
    padding: 7px 16px;
    border-radius: 6px;
    margin: 1px 6px;
    width: auto;
    transition: background .12s;
}

.navbar-tp-b .dropdown-item:hover,
.navbar-tp-b .dropdown-item:focus {
    background: #e8f1fb;
    color: #0d2137 !important;
}

/* Section sub-labels */
.navbar-tp-b .dropdown-item-text {
    color: #aaa !important;
    font-size: .69rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    padding: 10px 16px 3px;
}

/* Divider */
.navbar-tp-b hr.dropdown-divider {
    border-color: #e9ecef;
    margin: 4px 0;
}

@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%;
}

body {
  margin-bottom: 60px;
}

/* ─────────────────────────────────────────────────────────────
   Select2 + Bootstrap form-floating integration
   Makes Select2 dropdowns blend seamlessly with form-floating
   inputs/selects across the whole product.
   ───────────────────────────────────────────────────────────── */

/* 1. Stretch Select2 container to fill the form-floating cell */
.form-floating > .select2-container {
    width: 100% !important;
}

/* 2. Style the Select2 selection box to match Bootstrap form-select */
.form-floating .select2-container--default .select2-selection--single {
    height: 58px;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    background-color: #fff;
    padding: 1.625rem 2.25rem 0.5rem 0.75rem; /* top-pad pushes value down leaving label room */
    line-height: 1.25;
    box-shadow: 0 .125rem .25rem rgba(0,0,0,.075);
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.form-floating .select2-container--default.select2-container--focus .select2-selection--single,
.form-floating .select2-container--default.select2-container--open .select2-selection--single {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13,110,253,.25);
    outline: 0;
}

/* 3. Selected value text position */
.form-floating .select2-selection--single .select2-selection__rendered {
    padding: 0;
    line-height: normal;
    color: #212529;
}

/* 4. Placeholder colour */
.form-floating .select2-selection--single .select2-selection__placeholder {
    color: #adb5bd;
}

/* 5. Arrow position */
.form-floating .select2-selection--single .select2-selection__arrow {
    height: 58px;
    right: 0.75rem;
}

/* 6. Always float the label when a Select2 widget is present
      (the native :not(:placeholder-shown) trick doesn't work
       because Select2 hides the native <select>) */
.form-floating:has(.select2-container) > label {
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
    opacity: 0.65;
}

/* 7. Dropdown results list — match Bootstrap sizing */
.select2-dropdown {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15);
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #198754; /* green to match the product theme */
}

.select2-search--dropdown .select2-search__field {
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    padding: 0.375rem 0.75rem;
    line-height: 1.5;
}
