/*
 * SB Admin 2 theme, ported onto stock Bootstrap 5.3.3 (public/vendor/bootstrap-5.3.3).
 * Loaded AFTER bootstrap.min.css, BEFORE dark-mode.css, on every "-v5" page.
 *
 * This is NOT a SCSS recompile. Theme values live in two places:
 *   - Section A: root --bs-* custom properties, which BS5 utilities (.text-*, .bg-*,
 *     .text-bg-*, .border-*, .link-*, typography, radius, shadow) read via var() and
 *     pick up automatically.
 *   - Section B: component-scoped variable/property overrides for the surfaces BS5 does
 *     NOT wire to the root variables (buttons, form focus rings, checked inputs,
 *     nav-pills/pagination/list-group active states) — confirmed by reading the compiled
 *     bootstrap.min.css. Changing a Section A color does NOT change these; they must be
 *     kept in sync by hand.
 * Values sourced from public/scss/_variables.scss and the equivalent rules in the
 * current compiled public/css/sb-admin-2.css (BS4), so the ported theme matches the
 * live app pixel-for-pixel on brand colors/shadows/radius.
 */

/* ---------- Section A: root custom-property overrides ---------- */
:root {
  --bs-primary: #4e73df;
  --bs-primary-rgb: 78, 115, 223;
  --bs-success: #1cc88a;
  --bs-success-rgb: 28, 200, 138;
  --bs-info: #36b9cc;
  --bs-info-rgb: 54, 185, 204;
  --bs-warning: #f6c23e;
  --bs-warning-rgb: 246, 194, 62;
  --bs-danger: #e74a3b;
  --bs-danger-rgb: 231, 74, 59;
  --bs-secondary: #858796;
  --bs-secondary-rgb: 133, 135, 150;

  --bs-body-color: #858796;
  /* BS5 derives --bs-card-cap-bg, .text-body-secondary and the table accent colors from
     the -rgb form, which stays at Bootstrap's default #212529 if only --bs-body-color is
     set. Keep the pair in sync. */
  --bs-body-color-rgb: 133, 135, 150;

  /* Links read from their own variable set in BS5, NOT from --bs-primary. Without these
     every link in the app renders Bootstrap-blue instead of SB Admin's #4e73df. */
  --bs-link-color: #4e73df;
  --bs-link-color-rgb: 78, 115, 223;
  --bs-link-hover-color: #224abe;
  --bs-link-hover-color-rgb: 34, 74, 190;

  --bs-border-radius: 0.35rem;
  --bs-border-color: #e3e6f0;
  --bs-box-shadow-sm: 0 0.125rem 0.25rem 0 rgba(58, 59, 69, 0.2);
  --bs-box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
  --bs-font-sans-serif: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
    "Segoe UI Symbol", "Noto Color Emoji";
}

/* ---------- Section A.5: global page layout (ported from sb-admin-2.css's
   compiled "global.scss" output — the #wrapper flex layout that puts the
   sidebar and content side-by-side, previously missed by this port, which
   caused content to stack below the sidebar instead of beside it) ---------- */

html {
  position: relative;
  min-height: 100%;
}

body {
  height: 100%;
}

#wrapper {
  display: flex;
}

#wrapper #content-wrapper {
  background-color: #f8f9fc;
  width: 100%;
  overflow-x: hidden;
}

#wrapper #content-wrapper #content {
  flex: 1 0 auto;
}

.container,
.container-fluid {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.scroll-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  text-align: center;
  color: #fff;
  background: rgba(90, 92, 105, 0.5);
  line-height: 46px;
}

.scroll-to-top:focus,
.scroll-to-top:hover {
  color: white;
}

.scroll-to-top:hover {
  background: #5a5c69;
}

.scroll-to-top i {
  font-weight: 800;
}

@keyframes growIn {
  0% {
    transform: scale(0.9);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.animated--grow-in,
.sidebar .nav-item .collapse {
  animation-name: growIn;
  animation-duration: 200ms;
  animation-timing-function: transform cubic-bezier(0.18, 1.25, 0.4, 1), opacity cubic-bezier(0, 1, 0.4, 1);
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.animated--fade-in {
  animation-name: fadeIn;
  animation-duration: 200ms;
  animation-timing-function: opacity cubic-bezier(0, 1, 0.4, 1);
}

/* ---------- Section B: explicit component overrides (do not cascade from Section A) ---------- */

.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: #4e73df;
  --bs-btn-border-color: #4e73df;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #2e59d9;
  --bs-btn-hover-border-color: #2653d4;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #2653d4;
  --bs-btn-active-border-color: #244ec9;
  --bs-btn-focus-shadow-rgb: 105, 136, 228;
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #4e73df;
  --bs-btn-disabled-border-color: #4e73df;
}

.btn-success {
  --bs-btn-color: #fff;
  --bs-btn-bg: #1cc88a;
  --bs-btn-border-color: #1cc88a;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #17a673;
  --bs-btn-hover-border-color: #169b6b;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #169b6b;
  --bs-btn-active-border-color: #149063;
  --bs-btn-focus-shadow-rgb: 62, 208, 156;
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #1cc88a;
  --bs-btn-disabled-border-color: #1cc88a;
}

.btn-info {
  --bs-btn-color: #fff;
  --bs-btn-bg: #36b9cc;
  --bs-btn-border-color: #36b9cc;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #2c9faf;
  --bs-btn-hover-border-color: #2a96a5;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #2a96a5;
  --bs-btn-active-border-color: #278d9b;
  --bs-btn-focus-shadow-rgb: 84, 196, 212;
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #36b9cc;
  --bs-btn-disabled-border-color: #36b9cc;
}

.btn-warning {
  --bs-btn-color: #fff;
  --bs-btn-bg: #f6c23e;
  --bs-btn-border-color: #f6c23e;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #f4b619;
  --bs-btn-hover-border-color: #f4b30d;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #f4b30d;
  --bs-btn-active-border-color: #e8ab0c;
  --bs-btn-focus-shadow-rgb: 247, 203, 91;
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #f6c23e;
  --bs-btn-disabled-border-color: #f6c23e;
}

.btn-danger {
  --bs-btn-color: #fff;
  --bs-btn-bg: #e74a3b;
  --bs-btn-border-color: #e74a3b;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #e02d1b;
  --bs-btn-hover-border-color: #d52a1a;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #d52a1a;
  --bs-btn-active-border-color: #c92718;
  --bs-btn-focus-shadow-rgb: 235, 101, 88;
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #e74a3b;
  --bs-btn-disabled-border-color: #e74a3b;
}

/* .form-control:focus / .form-select:focus / .form-check-input:focus hardcode Bootstrap
   blue (#86b7fe border, rgba(13,110,253,.25) shadow) with no variable indirection. */
.form-control:focus,
.form-select:focus {
  border-color: #bac8f3;
  box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
}

.form-check-input:focus {
  border-color: #bac8f3;
  box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
}

.form-check-input:checked {
  background-color: #4e73df;
  border-color: #4e73df;
}

.nav-pills {
  --bs-nav-pills-link-active-color: #fff;
  --bs-nav-pills-link-active-bg: #4e73df;
}

.pagination {
  --bs-pagination-active-color: #fff;
  --bs-pagination-active-bg: #4e73df;
  --bs-pagination-active-border-color: #4e73df;
}

.list-group-item.active {
  color: #fff;
  background-color: #4e73df;
  border-color: #4e73df;
}

/* (A .custom-select alias used to sit here. It existed only because the four
   templates/linkus/* pages loaded DataTables' bootstrap4 integration, which hardcodes
   class="custom-select" on its "entries per page" <select>. Those pages now load
   vendor/datatables-1.13.8/dataTables.bootstrap5.*, which emits .form-select instead,
   so nothing in the app references .custom-select any more.) */

/* ---------- Section C: ported custom layout selectors (SB Admin 2's own classes, not
   Bootstrap's — safe to port near-verbatim; independent of Bootstrap version). Ported
   from public/css/sb-admin-2.css lines ~10503-11278. One change from the BS4 source:
   the sidebar's data-toggle="collapse" attribute selectors are updated to
   data-bs-toggle="collapse" to match fragments/sidebar-v5.html. ---------- */

.bg-gradient-primary {
  background-color: #4e73df;
  background-image: linear-gradient(180deg, #4e73df 10%, #224abe 100%);
  background-size: cover;
}

.bg-gradient-success {
  background-color: #1cc88a;
  background-image: linear-gradient(180deg, #1cc88a 10%, #13855c 100%);
  background-size: cover;
}

.bg-gradient-info {
  background-color: #36b9cc;
  background-image: linear-gradient(180deg, #36b9cc 10%, #258391 100%);
  background-size: cover;
}

.bg-gradient-warning {
  background-color: #f6c23e;
  background-image: linear-gradient(180deg, #f6c23e 10%, #dda20a 100%);
  background-size: cover;
}

.bg-gradient-danger {
  background-color: #e74a3b;
  background-image: linear-gradient(180deg, #e74a3b 10%, #be2617 100%);
  background-size: cover;
}

.bg-gray-100 { background-color: #f8f9fc !important; }
.bg-gray-200 { background-color: #eaecf4 !important; }
.bg-gray-300 { background-color: #dddfeb !important; }
.bg-gray-400 { background-color: #d1d3e2 !important; }
.bg-gray-500 { background-color: #b7b9cc !important; }
.bg-gray-600 { background-color: #858796 !important; }
.bg-gray-700 { background-color: #6e707e !important; }
.bg-gray-800 { background-color: #5a5c69 !important; }
.bg-gray-900 { background-color: #3a3b45 !important; }

.text-xs { font-size: .7rem; }
.text-m { font-size: .9rem; }
.text-lg { font-size: 1.2rem; }

.text-gray-100 { color: #f8f9fc !important; }
.text-gray-200 { color: #eaecf4 !important; }
.text-gray-300 { color: #dddfeb !important; }
.text-gray-400 { color: #d1d3e2 !important; }
.text-gray-500 { color: #b7b9cc !important; }
.text-gray-600 { color: #858796 !important; }
.text-gray-700 { color: #6e707e !important; }
.text-gray-800 { color: #5a5c69 !important; }
.text-gray-900 { color: #3a3b45 !important; }

.icon-circle {
  height: 2.5rem;
  width: 2.5rem;
  border-radius: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.border-left-primary { border-left: 0.25rem solid #4e73df !important; }
.border-left-success { border-left: 0.25rem solid #1cc88a !important; }
.border-left-info { border-left: 0.25rem solid #36b9cc !important; }
.border-left-warning { border-left: 0.25rem solid #f6c23e !important; }
.border-left-danger { border-left: 0.25rem solid #e74a3b !important; }

.border-bottom-primary { border-bottom: 0.25rem solid #4e73df !important; }
.border-bottom-success { border-bottom: 0.25rem solid #1cc88a !important; }
.border-bottom-info { border-bottom: 0.25rem solid #36b9cc !important; }
.border-bottom-warning { border-bottom: 0.25rem solid #f6c23e !important; }
.border-bottom-danger { border-bottom: 0.25rem solid #e74a3b !important; }

.progress-sm { height: .5rem; }

.rotate-15 { transform: rotate(15deg); }
.rotate-n-15 { transform: rotate(-15deg); }

.dropdown .dropdown-menu { font-size: 0.85rem; }

.dropdown .dropdown-menu .dropdown-header {
  font-weight: 800;
  font-size: 0.65rem;
  color: #b7b9cc;
}

.dropdown.no-arrow .dropdown-toggle::after { display: none; }

.sidebar .nav-item.dropdown .dropdown-toggle::after,
.topbar .nav-item.dropdown .dropdown-toggle::after {
  width: 1rem;
  text-align: center;
  float: right;
  vertical-align: 0;
  border: 0;
  font-weight: 900;
  content: '\f105';
  font-family: 'Font Awesome 5 Free';
}

.sidebar .nav-item.dropdown.show .dropdown-toggle::after,
.topbar .nav-item.dropdown.show .dropdown-toggle::after {
  content: '\f107';
}

.sidebar .nav-item .nav-link,
.topbar .nav-item .nav-link {
  position: relative;
}

.sidebar .nav-item .nav-link .badge-counter,
.topbar .nav-item .nav-link .badge-counter {
  position: absolute;
  transform: scale(0.7);
  transform-origin: top right;
  right: .25rem;
  margin-top: -.25rem;
}

.sidebar .nav-item .nav-link .img-profile,
.topbar .nav-item .nav-link .img-profile {
  height: 2rem;
  width: 2rem;
}

.topbar { height: 4.375rem; }
.topbar #sidebarToggleTop { height: 2.5rem; width: 2.5rem; }
.topbar #sidebarToggleTop:hover { background-color: #eaecf4; }
.topbar #sidebarToggleTop:active { background-color: #dddfeb; }
.topbar .navbar-search { width: 25rem; }
.topbar .navbar-search input { font-size: 0.85rem; }

.topbar .topbar-divider {
  width: 0;
  border-right: 1px solid #e3e6f0;
  height: calc(4.375rem - 2rem);
  margin: auto 1rem;
}

.topbar .nav-item .nav-link {
  height: 4.375rem;
  display: flex;
  align-items: center;
  padding: 0 0.75rem;
}

.topbar .nav-item .nav-link:focus { outline: none; }
.topbar .nav-item:focus { outline: none; }
.topbar .dropdown { position: static; }
.topbar .dropdown .dropdown-menu { width: calc(100% - 1.5rem); right: 0.75rem; }
.topbar .dropdown-list { padding: 0; border: none; overflow: hidden; }

.topbar .dropdown-list .dropdown-header {
  background-color: #4e73df;
  border: 1px solid #4e73df;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  color: #fff;
}

.topbar .dropdown-list .dropdown-item {
  white-space: normal;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  border-left: 1px solid #e3e6f0;
  border-right: 1px solid #e3e6f0;
  border-bottom: 1px solid #e3e6f0;
  line-height: 1.3rem;
}

.topbar .dropdown-list .dropdown-item .dropdown-list-image {
  position: relative;
  height: 2.5rem;
  width: 2.5rem;
}

.topbar .dropdown-list .dropdown-item .dropdown-list-image img {
  height: 2.5rem;
  width: 2.5rem;
}

.topbar .dropdown-list .dropdown-item .dropdown-list-image .status-indicator {
  background-color: #eaecf4;
  height: 0.75rem;
  width: 0.75rem;
  border-radius: 100%;
  position: absolute;
  bottom: 0;
  right: 0;
  border: 0.125rem solid #fff;
}

.topbar .dropdown-list .dropdown-item .text-truncate { max-width: 10rem; }

.topbar .dropdown-list .dropdown-item:active {
  background-color: #eaecf4;
  color: #3a3b45;
}

@media (min-width: 576px) {
  .topbar .dropdown { position: relative; }
  .topbar .dropdown .dropdown-menu { width: auto; right: 0; }
  .topbar .dropdown-list { width: 20rem !important; }
  .topbar .dropdown-list .dropdown-item .text-truncate { max-width: 13.375rem; }
}

.topbar.navbar-light .navbar-nav .nav-item .nav-link { color: #d1d3e2; }
.topbar.navbar-light .navbar-nav .nav-item .nav-link:hover { color: #b7b9cc; }
.topbar.navbar-light .navbar-nav .nav-item .nav-link:active { color: #858796; }

.sidebar { width: 6.5rem; min-height: 100vh; }
.sidebar .nav-item { position: relative; }
.sidebar .nav-item:last-child { margin-bottom: 1rem; }

.sidebar .nav-item .nav-link {
  text-align: center;
  padding: 0.75rem 1rem;
  width: 6.5rem;
}

.sidebar .nav-item .nav-link span { font-size: 0.65rem; display: block; }
.sidebar .nav-item.active .nav-link { font-weight: 700; }

.sidebar .nav-item .collapse {
  position: absolute;
  left: calc(6.5rem + 1.5rem / 2);
  z-index: 1;
  top: 2px;
}

.sidebar .nav-item .collapse .collapse-inner {
  border-radius: 0.35rem;
  box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
}

.sidebar .nav-item .collapsing { display: none; transition: none; }

.sidebar .nav-item .collapse .collapse-inner,
.sidebar .nav-item .collapsing .collapse-inner {
  padding: .5rem 0;
  min-width: 10rem;
  font-size: 0.85rem;
  margin: 0 0 1rem 0;
}

.sidebar .nav-item .collapse .collapse-inner .collapse-header,
.sidebar .nav-item .collapsing .collapse-inner .collapse-header {
  margin: 0;
  white-space: nowrap;
  padding: .5rem 1.5rem;
  text-transform: uppercase;
  font-weight: 800;
  font-size: 0.65rem;
  color: #b7b9cc;
}

.sidebar .nav-item .collapse .collapse-inner .collapse-item,
.sidebar .nav-item .collapsing .collapse-inner .collapse-item {
  padding: 0.5rem 1rem;
  margin: 0 0.5rem;
  display: block;
  color: #3a3b45;
  text-decoration: none;
  border-radius: 0.35rem;
  white-space: nowrap;
}

.sidebar .nav-item .collapse .collapse-inner .collapse-item:hover,
.sidebar .nav-item .collapsing .collapse-inner .collapse-item:hover {
  background-color: #eaecf4;
}

.sidebar .nav-item .collapse .collapse-inner .collapse-item:active,
.sidebar .nav-item .collapsing .collapse-inner .collapse-item:active {
  background-color: #dddfeb;
}

.sidebar .nav-item .collapse .collapse-inner .collapse-item.active,
.sidebar .nav-item .collapsing .collapse-inner .collapse-item.active {
  color: #4e73df;
  font-weight: 700;
}

.sidebar #sidebarToggle {
  width: 2.5rem;
  height: 2.5rem;
  text-align: center;
  margin-bottom: 1rem;
  cursor: pointer;
}

.sidebar #sidebarToggle::after {
  font-weight: 900;
  content: '\f104';
  font-family: 'Font Awesome 5 Free';
  margin-right: 0.1rem;
}

.sidebar #sidebarToggle:hover { text-decoration: none; }
.sidebar #sidebarToggle:focus { outline: none; }
.sidebar.toggled { width: 0 !important; overflow: hidden; }

.sidebar.toggled #sidebarToggle::after {
  content: '\f105';
  font-family: 'Font Awesome 5 Free';
  margin-left: 0.25rem;
}

.sidebar .sidebar-brand {
  height: 4.375rem;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 800;
  padding: 1.5rem 1rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
  z-index: 1;
}

.sidebar .sidebar-brand .sidebar-brand-icon i { font-size: 2rem; }
.sidebar .sidebar-brand .sidebar-brand-text { display: none; }
.sidebar hr.sidebar-divider { margin: 0 1rem 1rem; }

.sidebar .sidebar-heading {
  text-align: center;
  padding: 0 1rem;
  font-weight: 800;
  font-size: 0.65rem;
}

@media (min-width: 768px) {
  .sidebar { width: 14rem !important; }
  .sidebar .nav-item .collapse {
    position: relative;
    left: 0;
    z-index: 1;
    top: 0;
    animation: none;
  }
  .sidebar .nav-item .collapse .collapse-inner { border-radius: 0; box-shadow: none; }
  .sidebar .nav-item .collapsing { display: block; transition: height 0.15s ease; }
  .sidebar .nav-item .collapse,
  .sidebar .nav-item .collapsing { margin: 0 1rem; }
  .sidebar .nav-item .nav-link {
    display: block;
    width: 100%;
    text-align: left;
    padding: 1rem;
    width: 14rem;
  }
  .sidebar .nav-item .nav-link i { font-size: 0.85rem; margin-right: 0.25rem; }
  .sidebar .nav-item .nav-link span { font-size: 0.85rem; display: inline; }
  .sidebar .nav-item .nav-link[data-bs-toggle="collapse"]::after {
    width: 1rem;
    text-align: center;
    float: right;
    vertical-align: 0;
    border: 0;
    font-weight: 900;
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
  }
  .sidebar .nav-item .nav-link[data-bs-toggle="collapse"].collapsed::after { content: '\f105'; }
  .sidebar .sidebar-brand .sidebar-brand-icon i { font-size: 2rem; }
  .sidebar .sidebar-brand .sidebar-brand-text { display: inline; }
  .sidebar .sidebar-heading { text-align: left; }
  .sidebar.toggled { overflow: visible; width: 6.5rem !important; }
  .sidebar.toggled .nav-item .collapse {
    position: absolute;
    left: calc(6.5rem + 1.5rem / 2);
    z-index: 1;
    top: 2px;
    animation-name: growIn;
    animation-duration: 200ms;
    animation-timing-function: transform cubic-bezier(0.18, 1.25, 0.4, 1), opacity cubic-bezier(0, 1, 0.4, 1);
  }
  .sidebar.toggled .nav-item .collapse .collapse-inner {
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    border-radius: 0.35rem;
  }
  .sidebar.toggled .nav-item .collapsing { display: none; transition: none; }
  .sidebar.toggled .nav-item .collapse,
  .sidebar.toggled .nav-item .collapsing { margin: 0; }
  .sidebar.toggled .nav-item:last-child { margin-bottom: 1rem; }
  .sidebar.toggled .nav-item .nav-link { text-align: center; padding: 0.75rem 1rem; width: 6.5rem; }
  .sidebar.toggled .nav-item .nav-link span { font-size: 0.65rem; display: block; }
  .sidebar.toggled .nav-item .nav-link i { margin-right: 0; }
  .sidebar.toggled .nav-item .nav-link[data-bs-toggle="collapse"]::after { display: none; }
  .sidebar.toggled .sidebar-brand .sidebar-brand-icon i { font-size: 2rem; }
  .sidebar.toggled .sidebar-brand .sidebar-brand-text { display: none; }
  .sidebar.toggled .sidebar-heading { text-align: center; }
}

.sidebar-light .sidebar-brand { color: #6e707e; }
.sidebar-light hr.sidebar-divider { border-top: 1px solid #eaecf4; }
.sidebar-light .sidebar-heading { color: #b7b9cc; }
.sidebar-light .nav-item .nav-link { color: #858796; }
.sidebar-light .nav-item .nav-link i { color: #d1d3e2; }
.sidebar-light .nav-item .nav-link:active,
.sidebar-light .nav-item .nav-link:focus,
.sidebar-light .nav-item .nav-link:hover { color: #6e707e; }
.sidebar-light .nav-item .nav-link:active i,
.sidebar-light .nav-item .nav-link:focus i,
.sidebar-light .nav-item .nav-link:hover i { color: #6e707e; }
.sidebar-light .nav-item .nav-link[data-bs-toggle="collapse"]::after { color: #b7b9cc; }
.sidebar-light .nav-item.active .nav-link { color: #6e707e; }
.sidebar-light .nav-item.active .nav-link i { color: #6e707e; }
.sidebar-light #sidebarToggle { background-color: #eaecf4; }
.sidebar-light #sidebarToggle::after { color: #b7b9cc; }
.sidebar-light #sidebarToggle:hover { background-color: #dddfeb; }

.sidebar-dark .sidebar-brand { color: #fff; }
.sidebar-dark hr.sidebar-divider { border-top: 1px solid rgba(255, 255, 255, 0.15); }
.sidebar-dark .sidebar-heading { color: rgba(255, 255, 255, 0.4); }
.sidebar-dark .nav-item .nav-link { color: rgba(255, 255, 255, 0.8); }
.sidebar-dark .nav-item .nav-link i { color: rgba(255, 255, 255, 0.3); }
.sidebar-dark .nav-item .nav-link:active,
.sidebar-dark .nav-item .nav-link:focus,
.sidebar-dark .nav-item .nav-link:hover { color: #fff; }
.sidebar-dark .nav-item .nav-link:active i,
.sidebar-dark .nav-item .nav-link:focus i,
.sidebar-dark .nav-item .nav-link:hover i { color: #fff; }
.sidebar-dark .nav-item .nav-link[data-bs-toggle="collapse"]::after { color: rgba(255, 255, 255, 0.5); }
.sidebar-dark .nav-item.active .nav-link { color: #fff; }
.sidebar-dark .nav-item.active .nav-link i { color: #fff; }
.sidebar-dark #sidebarToggle { background-color: rgba(255, 255, 255, 0.2); }
.sidebar-dark #sidebarToggle::after { color: rgba(255, 255, 255, 0.5); }
.sidebar-dark #sidebarToggle:hover { background-color: rgba(255, 255, 255, 0.25); }
.sidebar-dark.toggled #sidebarToggle::after { color: rgba(255, 255, 255, 0.5); }

/* ---------- Section D: login page (ported from sb-admin-2.css's _login.scss output;
   used by login.html, which loads this theme file directly, not via the fragments) ---------- */

.bg-login-image {
  background: url("/img/wm.jpg");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  min-height: 600px;
}

form.user .form-check.small .form-check-label {
  line-height: 1.5rem;
}

form.user .form-control-user {
  font-size: 0.8rem;
  border-radius: 10rem;
  padding: 1.5rem 1rem;
}

form.user .btn-user {
  font-size: 0.8rem;
  border-radius: 10rem;
  padding: 0.75rem 1rem;
}

.btn-google {
  --bs-btn-color: #fff;
  --bs-btn-bg: #ea4335;
  --bs-btn-border-color: #fff;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #e12717;
  --bs-btn-hover-border-color: #e6e6e6;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #d62516;
  --bs-btn-active-border-color: #dfdfdf;
  --bs-btn-focus-shadow-rgb: 255, 255, 255;
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #ea4335;
  --bs-btn-disabled-border-color: #fff;
}

/* ---------- Section F: small widely-used custom components (ported from
   sb-admin-2.css's buttons.scss/cards.scss output) ---------- */

.btn-circle {
  border-radius: 100%;
  height: 2.5rem;
  width: 2.5rem;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-circle.btn-sm,
.btn-group-sm > .btn-circle.btn {
  height: 1.8rem;
  width: 1.8rem;
  font-size: 0.75rem;
}

.btn-circle.btn-lg,
.btn-group-lg > .btn-circle.btn {
  height: 3.5rem;
  width: 3.5rem;
  font-size: 1.35rem;
}

.btn-icon-split {
  padding: 0;
  overflow: hidden;
  display: inline-flex;
  align-items: stretch;
  justify-content: center;
}

.btn-icon-split .icon {
  background: rgba(0, 0, 0, 0.15);
  display: inline-block;
  padding: 0.375rem 0.75rem;
}

.btn-icon-split .text {
  display: inline-block;
  padding: 0.375rem 0.75rem;
}

.btn-icon-split.btn-sm .icon,
.btn-group-sm > .btn-icon-split.btn .icon {
  padding: 0.25rem 0.5rem;
}

.btn-icon-split.btn-sm .text,
.btn-group-sm > .btn-icon-split.btn .text {
  padding: 0.25rem 0.5rem;
}

.btn-icon-split.btn-lg .icon,
.btn-group-lg > .btn-icon-split.btn .icon {
  padding: 0.5rem 1rem;
}

.btn-icon-split.btn-lg .text,
.btn-group-lg > .btn-icon-split.btn .text {
  padding: 0.5rem 1rem;
}

.card .card-header .dropdown {
  line-height: 1;
}

.card .card-header .dropdown .dropdown-menu {
  line-height: 1.5;
}

/* Collapsible card-header chevron indicator. Selector updated from the
   original data-toggle="collapse" to data-bs-toggle="collapse" to match
   this migration's attribute rename. */
.card .card-header[data-bs-toggle="collapse"] {
  text-decoration: none;
  position: relative;
  padding: 0.75rem 3.25rem 0.75rem 1.25rem;
}

.card .card-header[data-bs-toggle="collapse"]::after {
  position: absolute;
  right: 0;
  top: 0;
  padding-right: 1.725rem;
  line-height: 51px;
  font-weight: 900;
  content: '\f107';
  font-family: 'Font Awesome 5 Free';
  color: #d1d3e2;
}

.card .card-header[data-bs-toggle="collapse"].collapsed {
  border-radius: 0.35rem;
}

.card .card-header[data-bs-toggle="collapse"].collapsed::after {
  content: '\f105';
}

/* ---------- Section D: Bootstrap 4 compatibility shims.
   The BS4→BS5 migration (commit d5ee1b17) deleted public/css/sb-admin-2.css, which was a
   full Bootstrap 4 build, not just the SB Admin theme. These classes went with it while
   the markup that uses them stayed, so ~2,200 usages across ~150 files were left with no
   styling at all. Values are copied verbatim from
   `git show d5ee1b17^:public/css/sb-admin-2.css` (vendor prefixes dropped).

   These are deliberate shims, not a design decision: prefer the BS5 equivalent
   (.mb-3, .fw-bold, .table-light, .dropdown-menu-end, .ratio ratio-16x9, .form-select)
   in NEW markup. Each block can be deleted once its usage count reaches zero. ---------- */

/* .form-group — 828 uses / 110 templates. The single largest source of the "forms look
   cramped" regression: every field lost 1rem of separation. */
.form-group {
  margin-bottom: 1rem;
}

/* BS5's reboot dropped `label { margin-bottom: .5rem }` and moved it onto .form-label,
   which only 206 of this app's 1,160 labels carry. Restore the BS4 default and re-apply
   BS4's own exceptions to it. */
label {
  margin-bottom: 0.5rem;
}

.form-check-label,
.col-form-label {
  margin-bottom: 0;
}

/* Typography utilities renamed to .fw-* / .font-monospace in BS5. 419 uses / 84 files —
   without these, "bold" text simply renders at normal weight. */
.font-weight-light {
  font-weight: 300 !important;
}

.font-weight-normal {
  font-weight: 400 !important;
}

.font-weight-bold {
  font-weight: 700 !important;
}

.font-weight-bolder {
  font-weight: bolder !important;
}

.font-italic {
  font-style: italic !important;
}

.text-monospace {
  font-family: var(--bs-font-monospace) !important;
}

/* Cells of a <table> whose `.table` class sits on a WRAPPER instead of the table itself.

   BS4 styled cells with a descendant selector — `.table th, .table td { padding: .75rem }`
   — so the very common
       <div class="scrollable-x table col-sm-12"><table id="listX">…</table></div>
   shape worked: the cells were descendants of .table. BS5's equivalent is a child chain,
   `.table > :not(caption) > * > *`, which stops dead at the wrapper <div>. Those cells
   then fall back to the browser's 1px UA default — no padding, no borders — which is the
   "distorted table" symptom.

   29 tables across 25 templates use this shape (mobileUser/list, admins/list, agents/list,
   role/list, privilege/list, ramciuser/list, referral/list, auction/list, deal/list,
   landmark/list, partnership/list, agreement/edit, agreement/{landlord,tenant}/edit,
   property/add, propertykey/edit, …). Values are BS4's verbatim.

   `:not(.table)` leaves a properly-classed nested table on Bootstrap's own rules, and the
   descendant border-color overrides in dark-mode.css reach these cells unchanged. */
.table table:not(.table) > * > tr > th,
.table table:not(.table) > * > tr > td {
  padding: 0.75rem;
  vertical-align: top;
  border-top: 1px solid #dddfeb;
}

.table table:not(.table) > thead > tr > th {
  vertical-align: bottom;
  border-bottom: 2px solid #dddfeb;
}

/* .thead-light — replaced by .table-light in BS5. 10 uses / 9 templates. */
.table .thead-light th {
  color: #6e707e;
  background-color: #eaecf4;
  border-color: #dddfeb;
}

/* .dropdown-menu-right — renamed .dropdown-menu-end. 7 uses / 4 templates; without it the
   topbar/table-action menus anchor left and run off the right edge of the viewport.
   Mirrors BS5's own .dropdown-menu-end implementation. */
.dropdown-menu-right {
  --bs-position: end;
}

.dropdown-menu-right[data-bs-popper] {
  right: 0;
  left: auto;
}

/* .form-inline — removed outright in BS5. 4 uses / 3 templates (search bars, which
   currently stack vertically). */
.form-inline {
  display: flex;
  flex-flow: row wrap;
  align-items: center;
}

.form-inline .form-check {
  width: 100%;
}

@media (min-width: 576px) {
  .form-inline label {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
  }

  .form-inline .form-group {
    display: flex;
    flex: 0 0 auto;
    flex-flow: row wrap;
    align-items: center;
    margin-bottom: 0;
  }

  .form-inline .form-control {
    display: inline-block;
    width: auto;
    vertical-align: middle;
  }

  .form-inline .form-control-plaintext {
    display: inline-block;
  }

  .form-inline .input-group,
  .form-inline .form-select {
    width: auto;
  }

  .form-inline .form-check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    padding-left: 0;
  }

  .form-inline .form-check-input {
    position: relative;
    margin-top: 0;
    margin-right: 0.25rem;
    margin-left: 0;
  }
}

/* .form-control-file / .form-control-range — BS5 styles file and range inputs through
   .form-control / .form-range instead. */
.form-control-file,
.form-control-range {
  display: block;
  width: 100%;
}

/* .embed-responsive — replaced by .ratio in BS5. 36 uses / 3 templates (the ARAP/claims
   card chat iframes, which otherwise collapse to the 150px default iframe height). */
.embed-responsive {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
}

.embed-responsive::before {
  display: block;
  content: "";
}

.embed-responsive-21by9::before {
  padding-top: 42.85714%;
}

.embed-responsive-16by9::before {
  padding-top: 56.25%;
}

.embed-responsive-4by3::before {
  padding-top: 75%;
}

.embed-responsive-1by1::before {
  padding-top: 100%;
}

.embed-responsive .embed-responsive-item,
.embed-responsive iframe,
.embed-responsive embed,
.embed-responsive object,
.embed-responsive video {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* .input-group-append / .input-group-prepend — BS5 dropped the wrapper element; buttons
   and .input-group-text are now direct children of .input-group. 17 uses / 12 templates.
   Shimmed rather than unwrapped because two of the wrappers carry ids that JS shows and
   hides (zoho/kanban/fragments/modal-filter.html#universalSearchClearBtn and
   modal-search.html#searchClearBtn), so unwrapping would mean editing those scripts too.

   BS5 already gives the wrapper itself the -1px overlap and squares the adjacent field's
   corners via its `.input-group > :not(:first-child)` rules — the only thing missing is
   squaring the corners of the control INSIDE the wrapper, which is what these do. */
.input-group > .input-group-append,
.input-group > .input-group-prepend {
  display: flex;
  align-items: stretch;
}

.input-group > .input-group-append > .btn,
.input-group > .input-group-append > .input-group-text {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.input-group > .input-group-prepend > .btn,
.input-group > .input-group-prepend > .input-group-text {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

/* Multiple controls inside one wrapper overlap their borders, as they did in BS4. */
.input-group > .input-group-append > * + *,
.input-group > .input-group-prepend > * + * {
  margin-left: calc(var(--bs-border-width) * -1);
}

/* ---------- Section E: SB Admin 2 component metrics.
   BS5 ships tighter padding than the BS4 build this app was designed against, and moved
   every value behind a component-scoped custom property. Sections A/B ported the brand
   colors but not the spacing, so the whole panel reads denser than it did pre-migration.
   Restoring through BS5's own variables (rather than overriding the properties) keeps the
   components' internal math — border-radius insets, .card-header rounding, .table-sm —
   consistent. Values from `git show d5ee1b17^:public/css/sb-admin-2.css`. ---------- */

/* .card-body 1.25rem (BS5: 1rem); .card-header .75rem/1.25rem + #f8f9fc (BS5: .5rem/1rem
   + a translucent gray derived from --bs-body-color-rgb). */
.card {
  --bs-card-spacer-y: 1.25rem;
  --bs-card-spacer-x: 1.25rem;
  --bs-card-cap-padding-y: 0.75rem;
  --bs-card-cap-padding-x: 1.25rem;
  --bs-card-cap-bg: #f8f9fc;
}

/* Table cells: .75rem in BS4, .5rem in BS5 — the most visible density change on the
   list pages. Unlike the other components here, BS5 5.3.3 hardcodes cell padding as a
   property rather than exposing a --bs-table-cell-padding-* variable, so this has to
   restate the selector. Same specificity as Bootstrap's own rule; this file loads after
   bootstrap.min.css, so it wins on order. Keep .table-sm below .table for the same
   reason. */
.table > :not(caption) > * > * {
  padding: 0.75rem 0.75rem;
}

.table-sm > :not(caption) > * > * {
  padding: 0.3rem 0.3rem;
}

.list-group {
  --bs-list-group-item-padding-y: 0.75rem;
  --bs-list-group-item-padding-x: 1.25rem;
}

.dropdown-menu {
  --bs-dropdown-item-padding-y: 0.25rem;
  --bs-dropdown-item-padding-x: 1.5rem;
}

.alert {
  --bs-alert-padding-y: 0.75rem;
  --bs-alert-padding-x: 1.25rem;
}

.badge {
  --bs-badge-padding-y: 0.25em;
  --bs-badge-padding-x: 0.4em;
  --bs-badge-font-size: 0.75em;
}

/* BS5 strips the breadcrumb's padding and background entirely. */
.breadcrumb {
  --bs-breadcrumb-padding-y: 0.75rem;
  --bs-breadcrumb-padding-x: 1rem;
  --bs-breadcrumb-bg: #eaecf4;
  --bs-breadcrumb-border-radius: var(--bs-border-radius);
}

/* BS5 renders <hr> at opacity .25. Scoped to unclassed rules so it does not fight
   .sidebar hr.sidebar-divider or dark-mode.css. */
hr:not([class]) {
  opacity: 1;
}

/* BS5 underlines every link by default and reads its color from --bs-link-*, which is a
   separate variable set from --bs-primary — so overriding --bs-primary in Section A left
   every link Bootstrap-blue AND underlined. SB Admin 2 underlines on hover only. */
a:not(.btn):not(.nav-link):not(.dropdown-item):not(.page-link):not(.list-group-item) {
  text-decoration: none;
}

a:not(.btn):not(.nav-link):not(.dropdown-item):not(.page-link):not(.list-group-item):hover {
  text-decoration: underline;
}
