html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}


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

body {
  margin-bottom: 60px;
}

/* =========================================================================
   AXCELA ENTERPRISE DESIGN FOUNDATION: DUAL THEME TOKENS (LIGHT & DARK)
   Shared with Axcela.HRMS
   ========================================================================= */

/* 1. Global Typography: Inter as primary with Public Sans fallback across all elements */
body, .layout-page, .form-control, .form-select, .btn, .card, .table, #layout-menu, .menu {
  font-family: 'Inter', 'Public Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

/* 2. Common Form Control Dimensions (Applied equally in Light & Dark modes) */
.form-label {
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  margin-bottom: 0.35rem !important;
}
.form-control,
.form-select {
  height: 42px !important;
  font-size: 0.92rem !important;
  border-radius: 0.5rem !important;
  transition: all 0.2s ease !important;
}
textarea.form-control {
  height: auto !important;
}

/* Select2 Common Normalization */
.select2-container {
  width: 100% !important;
}
.select2-container .select2-selection--single {
  height: 42px !important;
  border-radius: 0.5rem !important;
  display: flex !important;
  align-items: center !important;
  transition: all 0.2s ease !important;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 40px !important;
  padding-left: 0.85rem !important;
  padding-right: 50px !important;
  font-size: 0.92rem !important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 40px !important;
  right: 8px !important;
}
.select2-container--default .select2-selection--single .select2-selection__clear {
  position: absolute !important;
  right: 28px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 4px !important;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  color: #94a3b8 !important;
  cursor: pointer !important;
  z-index: 5 !important;
  transition: color 0.15s ease, transform 0.15s ease !important;
}
.select2-container--default .select2-selection--single .select2-selection__clear:hover {
  color: #ef4444 !important;
  transform: translateY(-50%) scale(1.15) !important;
}

/* Axcela Emerald On-Line Border for Hover, Focus, and Selection (No outer ring / no extra space) */
.form-control:hover,
.form-control:focus,
.form-control:active,
.form-select:hover,
.form-select:focus,
.form-select:active,
html[data-bs-theme="dark"] .form-control:hover,
html[data-bs-theme="dark"] .form-control:focus,
html[data-bs-theme="dark"] .form-control:active,
html[data-bs-theme="dark"] .form-select:hover,
html[data-bs-theme="dark"] .form-select:focus,
html[data-bs-theme="dark"] .form-select:active,
html[data-bs-theme="light"] .form-control:hover,
html[data-bs-theme="light"] .form-control:focus,
html[data-bs-theme="light"] .form-control:active,
html[data-bs-theme="light"] .form-select:hover,
html[data-bs-theme="light"] .form-select:focus,
html[data-bs-theme="light"] .form-select:active {
  border-color: #00d084 !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Select2 Single Selection On-Line Hover & Focus */
.select2-container--default .select2-selection--single:hover,
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single,
html[data-bs-theme="dark"] .select2-container--default .select2-selection--single:hover,
html[data-bs-theme="dark"] .select2-container--default.select2-container--focus .select2-selection--single,
html[data-bs-theme="dark"] .select2-container--default.select2-container--open .select2-selection--single,
html[data-bs-theme="light"] .select2-container--default .select2-selection--single:hover,
html[data-bs-theme="light"] .select2-container--default.select2-container--focus .select2-selection--single,
html[data-bs-theme="light"] .select2-container--default.select2-container--open .select2-selection--single {
  border-color: #00d084 !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Input Group Focus Within */
.input-group:focus-within .form-control,
.input-group:focus-within .input-group-text,
html[data-bs-theme="dark"] .input-group:focus-within .form-control,
html[data-bs-theme="dark"] .input-group:focus-within .input-group-text,
html[data-bs-theme="light"] .input-group:focus-within .form-control,
html[data-bs-theme="light"] .input-group:focus-within .input-group-text {
  border-color: #00d084 !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Tenant Organization Pill (Shared Geometry) */
.tenant-pill {
  border-radius: 20px;
  padding: 0.35rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  cursor: default;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.tenant-badge-code {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

/* -------------------------------------------------------------------------
   LIGHT THEME SURFACE & PALETTE TOKENS (html[data-bs-theme="light"])
   ------------------------------------------------------------------------- */
html[data-bs-theme="light"] {
  --bs-body-bg: #f8fafc;
  --bs-body-bg-rgb: 248, 250, 252;
  --bs-paper-bg: #ffffff;
  --bs-secondary-bg: #f1f5f9;
  --bs-border-color: #e2e8f0;
  --bs-card-border-color: #e2e8f0;
  --bs-navbar-bg: #ffffff;
  --bs-body-color: #334155; 
  --bs-heading-color: #0f172a; 
  --bs-secondary-color: #64748b;
}

html[data-bs-theme="light"] .layout-page,
html[data-bs-theme="light"] .content-wrapper {
  background-color: #f8fafc;
}

html[data-bs-theme="light"] .form-label {
  color: #334155 !important;
}

html[data-bs-theme="light"] .form-control,
html[data-bs-theme="light"] .form-select {
  background-color: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
}
html[data-bs-theme="light"] .form-control::placeholder {
  color: #94a3b8 !important;
}

html[data-bs-theme="light"] .select2-container .select2-selection--single {
  background-color: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
}
html[data-bs-theme="light"] .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #0f172a !important;
}
html[data-bs-theme="light"] .select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: #94a3b8 !important;
}

html[data-bs-theme="light"] .card,
html[data-bs-theme="light"] .form-section-card {
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03) !important;
}
html[data-bs-theme="light"] .card-header {
  background-color: #ffffff !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

html[data-bs-theme="light"] .tenant-pill {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #334155;
}
html[data-bs-theme="light"] .tenant-badge-code {
  background: rgba(0, 208, 132, 0.12);
  color: #059669;
  border: 1px solid rgba(0, 208, 132, 0.3);
}

/* -------------------------------------------------------------------------
   DARK THEME SURFACE & PALETTE TOKENS (html[data-bs-theme="dark"])
   Obsidian Canvas & Matte Carbon Surfaces (Zero Muddy Blue Tint)
   ------------------------------------------------------------------------- */
html[data-bs-theme="dark"] {
  --bs-body-bg: #0b0f19;
  --bs-body-bg-rgb: 11, 15, 25;
  --bs-paper-bg: #111624;
  --bs-secondary-bg: #111624;
  --bs-border-color: rgba(255, 255, 255, 0.08);
  --bs-card-border-color: rgba(255, 255, 255, 0.08);
  --bs-navbar-bg: #111624;
  --bs-body-color: #cbd5e1; 
  --bs-heading-color: #f8fafc; 
  --bs-secondary-color: #8da4be;
}

html[data-bs-theme="dark"] .layout-page,
html[data-bs-theme="dark"] .content-wrapper {
  background-color: #0b0f19 !important;
}

/* Full-Width Docked Navbar Architecture (Zero gap, touches sidebar and screen edges) */
.layout-navbar {
  width: auto !important;
  right: 0 !important;
  inset-inline-end: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
  padding-block: 0.65rem !important;
  border-top: none !important;
  border-left: none !important;
  border-right: none !important;
  z-index: 1020 !important;
}
.layout-navbar .container-fluid {
  width: 100% !important;
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
}

html[data-bs-theme="dark"] .layout-navbar {
  background-color: #111624 !important; /* Elegant Matte Carbon surface linked directly to the sidebar */
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35) !important;
}

html[data-bs-theme="light"] .layout-navbar {
  background-color: #ffffff !important;
  border-bottom: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04) !important;
}

/* Centered & Widened Navbar Search Command Bar */
.navbar-nav-right {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  width: 100% !important;
}

@media (min-width: 992px) {
  .navbar-search-box-container {
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin: 0 !important;
    z-index: 10 !important;
  }
}

.navbar-search-wrapper {
  margin-bottom: 0 !important;
  width: 100% !important;
  max-width: 440px !important;
}

.navbar-search-wrapper .search-toggler {
  width: 100% !important;
  min-width: 380px !important;
  max-width: 440px !important;
  height: 40px !important;
  border-radius: 20px !important;
  padding: 0.35rem 1.15rem !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.65rem !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  cursor: pointer !important;
}

.navbar-search-wrapper #autocomplete {
  width: 100% !important;
  display: block !important;
}

.navbar-search-wrapper .aa-Autocomplete,
.navbar-search-wrapper .aa-DetachedSearchButton {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
}

.navbar-search-wrapper .aa-DetachedSearchButtonPlaceholder {
  font-size: 0.88rem !important;
  letter-spacing: 0.01em !important;
  font-weight: 500 !important;
}

html[data-bs-theme="light"] .navbar-search-wrapper .search-toggler {
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  color: #64748b !important;
}
html[data-bs-theme="light"] .navbar-search-wrapper .search-toggler:hover {
  background: #e2e8f0 !important;
  border-color: #00d084 !important;
  color: #0f172a !important;
}
html[data-bs-theme="dark"] .navbar-search-wrapper .search-toggler {
  background: #0b0f19 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #8da4be !important;
}
html[data-bs-theme="dark"] .navbar-search-wrapper .search-toggler:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(0, 208, 132, 0.4) !important;
  color: #f8fafc !important;
}

html[data-bs-theme="dark"] .form-label {
  color: #e2e8f0 !important;
}

/* Inputs & Dropdowns in Dark Mode: Recessed into Matte Carbon Card */
html[data-bs-theme="dark"] .form-control,
html[data-bs-theme="dark"] .form-select {
  background-color: #0b0f19 !important;
  color: #f8fafc !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}
html[data-bs-theme="dark"] .form-control::placeholder {
  color: #64748b !important;
}

html[data-bs-theme="dark"] .select2-container .select2-selection--single {
  background-color: #0b0f19 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}
html[data-bs-theme="dark"] .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #f8fafc !important;
}
html[data-bs-theme="dark"] .select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: #64748b !important;
}
html[data-bs-theme="dark"] .select2-dropdown {
  background-color: #111624 !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #f8fafc !important;
}
html[data-bs-theme="dark"] .select2-container--default .select2-search--dropdown .select2-search__field {
  background-color: #0b0f19 !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #f8fafc !important;
}
html[data-bs-theme="dark"] .select2-container--default .select2-results__option {
  color: #cbd5e1 !important;
}
html[data-bs-theme="dark"] .select2-container--default .select2-results__option--highlighted[aria-selected] {
  background-color: rgba(0, 208, 132, 0.18) !important;
  color: #00d084 !important;
}

/* On-line border hover and focus states with zero outer ring / extra space */
.form-control:hover,
.form-control:focus,
.form-control:active,
.form-select:hover,
.form-select:focus,
.form-select:active,
html[data-bs-theme="dark"] .form-control:hover,
html[data-bs-theme="dark"] .form-control:focus,
html[data-bs-theme="dark"] .form-control:active,
html[data-bs-theme="dark"] .form-select:hover,
html[data-bs-theme="dark"] .form-select:focus,
html[data-bs-theme="dark"] .form-select:active,
html[data-bs-theme="light"] .form-control:hover,
html[data-bs-theme="light"] .form-control:focus,
html[data-bs-theme="light"] .form-control:active,
html[data-bs-theme="light"] .form-select:hover,
html[data-bs-theme="light"] .form-select:focus,
html[data-bs-theme="light"] .form-select:active,
.select2-container--default .select2-selection--single:hover,
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single,
html[data-bs-theme="dark"] .select2-container--default .select2-selection--single:hover,
html[data-bs-theme="dark"] .select2-container--default.select2-container--focus .select2-selection--single,
html[data-bs-theme="dark"] .select2-container--default.select2-container--open .select2-selection--single,
html[data-bs-theme="light"] .select2-container--default .select2-selection--single:hover,
html[data-bs-theme="light"] .select2-container--default.select2-container--focus .select2-selection--single,
html[data-bs-theme="light"] .select2-container--default.select2-container--open .select2-selection--single {
  border-color: #00d084 !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Cards & Surfaces: Seamless Matte Carbon with Hairline Edge */
html[data-bs-theme="dark"] .card,
html[data-bs-theme="dark"] .form-section-card {
  background-color: #111624 !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35) !important;
}
html[data-bs-theme="dark"] .card-header {
  background-color: #111624 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

/* Dark Mode Nav Pills (e.g., Guide Handbook navigation) */
html[data-bs-theme="dark"] .nav-pills .nav-link.active,
html[data-bs-theme="dark"] .nav-pills .nav-link.active:hover {
  background: linear-gradient(135deg, rgba(0, 208, 132, 0.18) 0%, rgba(5, 150, 105, 0.22) 100%) !important;
  color: #00d084 !important;
  border: 1px solid rgba(0, 208, 132, 0.35) !important;
}
html[data-bs-theme="dark"] .nav-pills .nav-link:not(.active) {
  color: #cbd5e1 !important;
}
html[data-bs-theme="dark"] .nav-pills .nav-link:not(.active):hover {
  background-color: rgba(255, 255, 255, 0.05) !important;
  color: #ffffff !important;
}

/* Tenant Pill in Dark Mode */
html[data-bs-theme="dark"] .tenant-pill {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #f1f5f9 !important;
}
html[data-bs-theme="dark"] .tenant-badge-code {
  background: rgba(0, 208, 132, 0.15) !important;
  color: #00d084 !important;
  border: 1px solid rgba(0, 208, 132, 0.35) !important;
}

/* =========================================================================
   VERTICAL SIDEBAR: ENTERPRISE HIGH-CONTRAST & MINIMALIST HIERARCHY
   (Applies to BOTH Light & Dark Themes: Dark Navy #111624 Corporate Standard)
   ========================================================================= */
#layout-menu.menu-vertical,
html[data-bs-theme="light"] #layout-menu.menu-vertical,
html[data-bs-theme="dark"] #layout-menu.menu-vertical {
  background-color: #111624 !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  box-shadow: 0 0.125rem 0.5rem 0 rgba(10, 15, 25, 0.4) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.06) !important;
}

/* App Brand Logo & Title in Sidebar (Clean & Seamless) */
#layout-menu.menu-vertical .app-brand {
  border-bottom: none !important;
  padding-bottom: 0.5rem !important;
}
#layout-menu.menu-vertical .app-brand .app-brand-text {
  color: #ffffff !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
}

/* Grouping Headers: Distraction-Free Proximity Hierarchy (Zero Lines) */
#layout-menu.menu-vertical .menu-header {
  position: relative !important;
  margin-top: 1.4rem !important;
  padding: 0.25rem 1.25rem 0.35rem 1.25rem !important;
}
#layout-menu.menu-vertical .menu-header:first-of-type {
  margin-top: 0.5rem !important;
}

/* Complete removal of arbitrary horizontal divider lines / pseudo-elements */
#layout-menu.menu-vertical .menu-header::before,
#layout-menu.menu-vertical .menu-header::after {
  display: none !important;
  content: none !important;
}

/* Section Header Typography: Understated, Confident, Elegant Muted Slate */
#layout-menu.menu-vertical .menu-header .menu-header-text {
  color: #64748b !important;
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.09em !important;
  text-transform: uppercase !important;
  opacity: 0.9 !important;
  display: inline-block !important;
}

/* Menu Items (Inactive Top-Level Links) - High-Brightness Crisp Silver-White */
#layout-menu.menu-vertical .menu-inner > .menu-item > .menu-link {
  color: #f1f5f9 !important; /* Bright silver-white text that never blends into background */
  font-size: 0.90rem !important;
  font-weight: 500 !important;
  padding: 0.625rem 1rem !important;
  border-radius: 0.5rem !important;
  margin: 0.15rem 0.75rem !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
#layout-menu.menu-vertical .menu-inner > .menu-item > .menu-link .menu-icon {
  color: #94a3b8 !important;
  font-size: 1.25rem !important;
  margin-right: 0.75rem !important;
  transition: all 0.2s ease !important;
}

/* Top-Level Menu Items Hover State */
#layout-menu.menu-vertical .menu-inner > .menu-item:not(.active) > .menu-link:hover {
  background-color: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}
#layout-menu.menu-vertical .menu-inner > .menu-item:not(.active) > .menu-link:hover .menu-icon {
  color: #00d084 !important;
  transform: translateX(2px) !important;
}

/* Active Top-Level Leaf Items (without submenu) - Axcela Emerald Signature Pill */
#layout-menu.menu-vertical .menu-inner > .menu-item.active:not(.open) > .menu-link:not(.menu-toggle) {
  background: linear-gradient(135deg, #00d084 0%, #059669 100%) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 14px rgba(0, 208, 132, 0.38) !important;
}
#layout-menu.menu-vertical .menu-inner > .menu-item.active:not(.open) > .menu-link:not(.menu-toggle) .menu-icon {
  color: #ffffff !important;
}

/* Active Parent Menu Toggle when expanded - Elegant subtle highlight so it doesn't clash with child active button */
#layout-menu.menu-vertical .menu-item.open > .menu-link.menu-toggle {
  background: rgba(0, 208, 132, 0.12) !important;
  color: #00d084 !important;
  box-shadow: none !important;
  font-weight: 600 !important;
}
#layout-menu.menu-vertical .menu-item.open > .menu-link.menu-toggle .menu-icon {
  color: #00d084 !important;
}

/* ==========================================================================
   SUBMENU ITEMS (Fix overlapping bullet icons & ensure clean icon spacing)
   ========================================================================== */
/* 1. Eliminate Sneat's overlapping pseudo-element bullet circle */
#layout-menu.menu-vertical .menu-sub > .menu-item > .menu-link::before {
  display: none !important;
}

/* 2. Submenu Link Indentation & Typography */
#layout-menu.menu-vertical .menu-sub {
  padding-left: 0 !important;
}
#layout-menu.menu-vertical .menu-sub .menu-item .menu-link {
  color: #cbd5e1 !important;
  font-size: 0.85rem !important;
  font-weight: 400 !important;
  padding: 0.5rem 1rem 0.5rem 1.85rem !important; /* Clean indentation for submenu */
  border-radius: 0.375rem !important;
  margin: 0.1rem 0.75rem !important;
  transition: all 0.2s ease !important;
}
#layout-menu.menu-vertical .menu-sub .menu-item .menu-link .menu-icon {
  font-size: 1.15rem !important;
  margin-right: 0.65rem !important;
  color: #94a3b8 !important;
  transition: all 0.2s ease !important;
}

/* 3. Submenu Inactive Hover State */
#layout-menu.menu-vertical .menu-sub .menu-item:not(.active) .menu-link:hover {
  background-color: rgba(255, 255, 255, 0.06) !important;
  color: #ffffff !important;
}
#layout-menu.menu-vertical .menu-sub .menu-item:not(.active) .menu-link:hover .menu-icon {
  color: #00d084 !important;
  transform: translateX(2px) !important;
}

/* 4. Active Submenu Item Pill */
#layout-menu.menu-vertical .menu-sub .menu-item.active > .menu-link {
  background: linear-gradient(135deg, #00d084 0%, #059669 100%) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  box-shadow: 0 3px 10px rgba(0, 208, 132, 0.32) !important;
}
#layout-menu.menu-vertical .menu-sub .menu-item.active > .menu-link .menu-icon {
  color: #ffffff !important;
}

/* Fix sidebar jump on hover */
.layout-menu-hover .menu-vertical .menu-inner > .menu-item > .menu-link,
.layout-menu-hover .menu-vertical .menu-inner > .menu-header {
  padding-inline-start: var(--bs-menu-vertical-link-padding-x) !important;
}

/* ==========================================================================
   LIGHT MODE: HIGH-CONTRAST & VIBRANT BADGES, LABELS, KPA CODES & STAT CARDS
   (Strictly isolated to light theme - dark theme remains 100% untouched)
   ========================================================================== */

/* 1. Global Badge & Label System in Light Mode */
html[data-bs-theme="light"] .badge {
    font-weight: 600;
    letter-spacing: 0.015em;
}

/* Primary (Emerald) */
html[data-bs-theme="light"] .badge.bg-label-primary,
html[data-bs-theme="light"] .bg-label-primary:not(.card) {
    background-color: #d1fae5 !important;
    color: #047857 !important;
    border: 1px solid rgba(5, 150, 105, 0.35) !important;
}

/* Warning / In-Progress / Contractor (Golden Amber) */
html[data-bs-theme="light"] .badge.bg-label-warning,
html[data-bs-theme="light"] .bg-label-warning:not(.card) {
    background-color: #fef3c7 !important;
    color: #b45309 !important;
    border: 1px solid rgba(217, 119, 6, 0.4) !important;
}

/* Info / Codes / Roles (Vibrant Electric Cyan-Ocean Blue) */
html[data-bs-theme="light"] .badge.bg-label-info,
html[data-bs-theme="light"] .bg-label-info:not(.card) {
    background-color: #e0f2fe !important;
    color: #0369a1 !important;
    border: 1px solid rgba(2, 132, 199, 0.35) !important;
}

/* Success / Active / Resolved (Lush Leaf Green) */
html[data-bs-theme="light"] .badge.bg-label-success,
html[data-bs-theme="light"] .bg-label-success:not(.card) {
    background-color: #dcfce7 !important;
    color: #15803d !important;
    border: 1px solid rgba(22, 163, 74, 0.35) !important;
}

/* Danger / Urgent / Locked (Coral Crimson) */
html[data-bs-theme="light"] .badge.bg-label-danger,
html[data-bs-theme="light"] .bg-label-danger:not(.card) {
    background-color: #fee2e2 !important;
    color: #b91c1c !important;
    border: 1px solid rgba(220, 38, 38, 0.35) !important;
}

/* Secondary / Category / Neutral (Refined Slate) */
html[data-bs-theme="light"] .badge.bg-label-secondary,
html[data-bs-theme="light"] .bg-label-secondary:not(.card) {
    background-color: #f1f5f9 !important;
    color: #475569 !important;
    border: 1px solid rgba(148, 163, 184, 0.35) !important;
}

/* Dark label badge */
html[data-bs-theme="light"] .badge.bg-label-dark,
html[data-bs-theme="light"] .bg-label-dark:not(.card) {
    background-color: #e2e8f0 !important;
    color: #1e293b !important;
    border: 1px solid rgba(100, 116, 139, 0.35) !important;
}

/* Active Nav-Pill Badges: keep white on active solid background */
html[data-bs-theme="light"] .nav-pills .nav-link.active .badge {
    background-color: rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
}

/* 2. Text Emphasis Colors in Light Mode for high WCAG AA contrast */
html[data-bs-theme="light"] .text-primary {
    color: #059669 !important;
}
html[data-bs-theme="light"] .text-success {
    color: #15803d !important;
}
html[data-bs-theme="light"] .text-warning {
    color: #b45309 !important;
}
html[data-bs-theme="light"] .text-info {
    color: #0284c7 !important;
}
html[data-bs-theme="light"] .text-danger {
    color: #b91c1c !important;
}

/* 3. KPA, Entity Codes & Monospace Badges (e.g. TCK-2026-001, MIN001) */
html[data-bs-theme="light"] .font-monospace.text-primary {
    background-color: #d1fae5;
    color: #047857 !important;
    padding: 0.15rem 0.45rem;
    border-radius: 0.35rem;
    border: 1px solid rgba(5, 150, 105, 0.35);
    font-weight: 700;
    display: inline-block;
}

html[data-bs-theme="light"] .badge.font-monospace {
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    padding: 0.3em 0.55em;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

/* Specific styling for Cyan / Info Employee Codes (e.g. MIN001) */
html[data-bs-theme="light"] .badge.bg-label-info.font-monospace {
    background-color: #e0f2fe !important;
    color: #0369a1 !important;
    border: 1px solid rgba(2, 132, 199, 0.45) !important;
    font-weight: 700;
}

/* 4. Avatars with bg-label in Light Mode */
html[data-bs-theme="light"] .avatar.bg-label-primary {
    background-color: #d1fae5 !important;
    color: #047857 !important;
    border: 1px solid rgba(5, 150, 105, 0.3);
}
html[data-bs-theme="light"] .avatar.bg-label-success {
    background-color: #dcfce7 !important;
    color: #15803d !important;
    border: 1px solid rgba(22, 163, 74, 0.3);
}
html[data-bs-theme="light"] .avatar.bg-label-info {
    background-color: #e0f2fe !important;
    color: #0284c7 !important;
    border: 1px solid rgba(2, 132, 199, 0.3);
}
html[data-bs-theme="light"] .avatar.bg-label-warning {
    background-color: #fef3c7 !important;
    color: #b45309 !important;
    border: 1px solid rgba(217, 119, 6, 0.35);
}
html[data-bs-theme="light"] .avatar.bg-label-secondary {
    background-color: #f1f5f9 !important;
    color: #475569 !important;
    border: 1px solid rgba(148, 163, 184, 0.3);
}

/* User/Employee initials avatar in table rows */
html[data-bs-theme="light"] .user-avatar.bg-label-primary,
html[data-bs-theme="light"] .emp-avatar.bg-label-primary {
    background-color: #d1fae5 !important;
    color: #047857 !important;
    border: 1px solid rgba(5, 150, 105, 0.35);
    font-weight: 600;
}

/* 5. Stat & Metric KPI Cards in Light Mode */
html[data-bs-theme="light"] .card.bg-label-primary {
    background: #ffffff !important;
    border: 1px solid rgba(16, 185, 129, 0.28) !important;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.08) !important;
}
html[data-bs-theme="light"] .card.bg-label-primary .avatar.bg-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35) !important;
}

html[data-bs-theme="light"] .card.bg-label-warning {
    background: #ffffff !important;
    border: 1px solid rgba(245, 158, 11, 0.3) !important;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.08) !important;
}
html[data-bs-theme="light"] .card.bg-label-warning .avatar.bg-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35) !important;
}

html[data-bs-theme="light"] .card.bg-label-info {
    background: #ffffff !important;
    border: 1px solid rgba(14, 165, 233, 0.28) !important;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.08) !important;
}
html[data-bs-theme="light"] .card.bg-label-info .avatar.bg-info {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%) !important;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.35) !important;
}

html[data-bs-theme="light"] .card.bg-label-success {
    background: #ffffff !important;
    border: 1px solid rgba(34, 197, 94, 0.28) !important;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.08) !important;
}
html[data-bs-theme="light"] .card.bg-label-success .avatar.bg-success {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.35) !important;
}

/* 6. Help Banner in Light Mode */
html[data-bs-theme="light"] .card.bg-label-primary.border-0.text-center {
    background: linear-gradient(180deg, #ecfdf5 0%, #d1fae5 100%) !important;
    border: 1px solid rgba(5, 150, 105, 0.25) !important;
    box-shadow: 0 2px 10px rgba(5, 150, 105, 0.06) !important;
}
