/**
 * ==========================================================================
 * RSA Button Component (rsa-button.css)
 * Standardized Button Design System for e-RSA
 * 
 * Variants: Solid, Soft Label, Outline, Pill, Sizing, Icon Buttons & States
 * Breakpoints: Strictly locked to Mobile (< 768px) & Desktop (>= 768px)
 * ==========================================================================
 */

/* 1. Global Pill Radius & Foundation */
.btn {
  font-family: inherit;
  font-size: var(--bs-font-size-btn, 0.9375rem) !important;
  font-weight: 600;
  line-height: 1.5;
  border-radius: 50rem !important;
  border-width: 1px;
  border-style: solid;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  transition: var(--btn-transition, transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease) !important;
  transform-origin: center center;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
  box-sizing: border-box;
}

/* Instant Color Switch: Never animate text color or child elements during solid button state transitions */
.btn:not(.class-role-pill):not(.toolbar-pill):not(.content-tab-btn):not(.btn-tab-content):not(.toolbar-filter-btn):not(.toolbar-sort-btn):not(.btn-outline-primary):not(.btn-label-secondary):not(.btn-label-primary) *,
.btn:not(.class-role-pill):not(.toolbar-pill):not(.content-tab-btn):not(.btn-tab-content):not(.toolbar-filter-btn):not(.toolbar-sort-btn):not(.btn-outline-primary):not(.btn-label-secondary):not(.btn-label-primary) span,
.btn:not(.class-role-pill):not(.toolbar-pill):not(.content-tab-btn):not(.btn-tab-content):not(.toolbar-filter-btn):not(.toolbar-sort-btn):not(.btn-outline-primary):not(.btn-label-secondary):not(.btn-label-primary) i,
.btn:not(.class-role-pill):not(.toolbar-pill):not(.content-tab-btn):not(.btn-tab-content):not(.toolbar-filter-btn):not(.toolbar-sort-btn):not(.btn-outline-primary):not(.btn-label-secondary):not(.btn-label-primary) svg {
  transition: none !important;
}

/* Synchronized Smooth Transitions for Filter Pills, Tabs, and Toolbar Buttons */
.class-role-pill,
.class-role-pill *,
.class-role-pill span,
.class-role-pill i,
.class-role-pill svg,
.class-role-pill .badge,
.toolbar-pill,
.toolbar-pill *,
.toolbar-pill span,
.toolbar-pill i,
.toolbar-pill svg,
.toolbar-pill .badge,
.class-role-pills-scroll .btn,
.class-role-pills-scroll .btn *,
.toolbar-pills-scroll .btn,
.toolbar-pills-scroll .btn *,
.content-tab-btn,
.content-tab-btn *,
.btn-tab-content,
.btn-tab-content *,
.toolbar-filter-btn,
.toolbar-filter-btn *,
.toolbar-sort-btn,
.toolbar-sort-btn * {
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.18s ease,
              border-color 0.18s ease,
              color 0.18s ease,
              box-shadow 0.18s ease !important;
}

.btn i,
.btn span,
.btn svg {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  vertical-align: middle;
}

/* Hover Lift (Desktop Pointer Only >= 768px) - Universal Smooth Standard */
@media (min-width: 768px) and (hover: hover) and (pointer: fine) {

  .btn:hover:not(:active):not(:disabled):not(.disabled):not(.dropdown-item):not(.btn-close):not(.page-link):not(.accordion-button),
  .toolbar-filter-btn:hover:not(:active):not(:disabled):not(.disabled),
  .toolbar-sort-btn:hover:not(:active):not(:disabled):not(.disabled),
  .btn-back:hover:not(:active):not(:disabled):not(.disabled),
  .btn-icon:hover:not(:active):not(:disabled):not(.disabled),
  button[data-bs-target="#modalFilters"]:hover:not(:active):not(:disabled):not(.disabled) {
    transform: translateY(-2px) !important;
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease !important;
  }
}

.btn:not(.btn-close):not(.rsa-search-box__clear):active:not(:disabled):not(.disabled),
.btn:not(.btn-close):not(.rsa-search-box__clear):hover:active:not(:disabled):not(.disabled),
button:not(.btn-close):not(.rsa-search-box__clear):active:not(:disabled):not(.disabled),
button:not(.btn-close):not(.rsa-search-box__clear):hover:active:not(:disabled):not(.disabled),
input[type="button"]:active:not(:disabled),
input[type="submit"]:active:not(:disabled),
input[type="reset"]:active:not(:disabled),
.toolbar-filter-btn:active:not(:disabled):not(.disabled),
.toolbar-filter-btn:hover:active:not(:disabled):not(.disabled),
.toolbar-sort-btn:active:not(:disabled):not(.disabled),
.toolbar-sort-btn:hover:active:not(:disabled):not(.disabled),
.btn-back:active:not(:disabled):not(.disabled),
.btn-back:hover:active:not(:disabled):not(.disabled),
.btn-icon:active:not(:disabled):not(.disabled),
.btn-icon:hover:active:not(:disabled):not(.disabled),
.nav-circle-btn:active,
.nav-circle-btn:hover:active,
.class-role-pill:active:not(:disabled):not(.disabled),
.class-role-pill:hover:active:not(:disabled):not(.disabled),
.toolbar-pill:active:not(:disabled):not(.disabled),
.toolbar-pill:hover:active:not(:disabled):not(.disabled),
[role="button"]:not(.list-group-item):not(.list-group-item-action):not([aria-disabled="true"]):not(.btn-close):not(.rsa-search-box__clear):not(.cls-meet-accordion-header):active,
[role="button"]:not(.list-group-item):not(.list-group-item-action):not([aria-disabled="true"]):not(.btn-close):not(.rsa-search-box__clear):not(.cls-meet-accordion-header):hover:active {
  transform: scale(0.97) translateZ(0) !important;
  -webkit-transform: scale(0.97) translateZ(0) !important;
  transition: transform 0.08s ease !important;
}

/* 1.3 Focus States: Zero Outline, Zero Ring, Zero Box-Shadow Across All Buttons */
.btn:focus,
.btn:focus-visible,
button:focus,
button:focus-visible,
input[type="button"]:focus,
input[type="button"]:focus-visible,
input[type="submit"]:focus,
input[type="submit"]:focus-visible,
input[type="reset"]:focus,
input[type="reset"]:focus-visible,
.toolbar-filter-btn:focus,
.toolbar-filter-btn:focus-visible,
.toolbar-sort-btn:focus,
.toolbar-sort-btn:focus-visible,
.btn-back:focus,
.btn-back:focus-visible,
.btn-icon:focus,
.btn-icon:focus-visible,
.nav-circle-btn:focus,
.nav-circle-btn:focus-visible,
.nav-back-btn:focus,
.nav-back-btn:focus-visible,
.class-role-pill:focus,
.class-role-pill:focus-visible,
.toolbar-pill:focus,
.toolbar-pill:focus-visible,
[role="button"]:focus,
[role="button"]:focus-visible {
  outline: none !important;
  outline-offset: 0 !important;
  box-shadow: none !important;
  --bs-btn-focus-box-shadow: none !important;
}

/* 2. Global Button Sizing Standards */
/* Default / Regular Button (Exact 42px on Desktop, 44px on Mobile for Touch Target) */
.btn:not(.btn-sm):not(.btn-lg):not(.btn-xs):not(.dropdown-item):not(.btn-close):not(.accordion-button):not(.navbar-toggler):not(.btn-icon):not(.btn-link) {
  min-height: 42px;
  padding: 0.55rem 1.25rem;
}

@media (max-width: 767.98px) {
  .btn:not(.btn-sm):not(.btn-lg):not(.btn-xs):not(.dropdown-item):not(.btn-close):not(.accordion-button):not(.navbar-toggler):not(.btn-icon):not(.btn-link) {
    min-height: 44px;
    padding: 0.625rem 1.25rem;
  }

  /* No hover lift or hover transition on touch/mobile devices, but preserve tactile :active press scale */
  .btn:hover:not(:active),
  .btn:focus:not(:active) {
    transform: none !important;
    -webkit-transform: none !important;
    transition: none !important;
    -webkit-transition: none !important;
  }
}

/* Link Buttons & Table 3-Dots Action Buttons (Auto Height & Zero Row Bloat) */
.btn.btn-link,
button.btn.btn-link,
.btn-link,
.table .btn-link,
.table td .btn-link,
.table button.btn.btn-link,
.table .btn:has(.more_vert),
.btn:has(.more_vert) {
  min-height: auto !important;
  height: auto !important;
  max-height: none !important;
  width: auto !important;
  min-width: auto !important;
  padding: 0 !important;
  line-height: 1 !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  background-color: transparent !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  vertical-align: middle !important;
}

/* Ensure table 3-dots action dropdown never shows caret/arrow */
.table td .dropdown > button::after,
.table td .dropdown > .btn::after,
.table .btn:has(.more_vert)::after,
.btn:has(.more_vert)::after,
.table .btn:has(.more_vert)::before,
.btn:has(.more_vert)::before,
.hide-arrow::after,
.hide-arrow::before,
.dropdown-toggle.hide-arrow::after,
.dropdown-toggle.hide-arrow::before {
  display: none !important;
  content: none !important;
  border: none !important;
  margin: 0 !important;
  width: 0 !important;
  height: 0 !important;
}

/* Badge rounded-pill inside buttons */
.btn .badge.rounded-pill {
  font-size: 0.72rem !important;
  padding: 0.22em 0.6em !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  vertical-align: middle !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.btn-outline-warning .badge.rounded-pill,
.btn-outline-warning:hover .badge.rounded-pill,
.btn-outline-warning:focus .badge.rounded-pill,
.btn-outline-warning:active .badge.rounded-pill,
.btn-outline-warning.active .badge.rounded-pill {
  background-color: var(--bs-warning) !important;
  color: var(--rsa-color-white, #ffffff) !important;
}

/* Small Buttons (.btn-sm) - Exact 34px */
.btn-sm:not(.dropdown-item):not(.btn-close):not(.page-link):not(.btn-icon):not(.class-role-pill):not(.toolbar-pill):not(.btn-link) {
  min-height: 34px;
  font-size: 0.8125rem !important;
  padding: 0.35rem 0.95rem !important;
}

/* Large Buttons (.btn-lg) - Exact 50px */
.btn-lg:not(.dropdown-item):not(.btn-close):not(.page-link):not(.btn-icon):not(.btn-link) {
  min-height: 50px;
  font-size: 1.05rem !important;
  padding: 0.75rem 1.75rem !important;
}

/* Extra Small Buttons (.btn-xs) - Exact 28px */
.btn-xs:not(.dropdown-item):not(.btn-close):not(.btn-icon):not(.btn-link) {
  min-height: 28px;
  font-size: 0.75rem !important;
  padding: 0.2rem 0.65rem !important;
}

/* 3. Icon Buttons (.btn-icon) */
.btn-icon {
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  min-height: 42px;
  min-width: 42px;
}

.btn-icon.d-none {
  display: none !important;
}

@media (min-width: 576px) {
  .btn-icon.d-sm-none {
    display: none !important;
  }

  .btn-icon.d-sm-inline-flex {
    display: inline-flex !important;
  }
}

@media (min-width: 768px) {
  .btn-icon.d-md-none {
    display: none !important;
  }

  .btn-icon.d-md-inline-flex,
  .btn-icon.d-none.d-md-inline-flex {
    display: inline-flex !important;
  }
}

@media (min-width: 992px) {
  .btn-icon.d-lg-none {
    display: none !important;
  }

  .btn-icon.d-lg-inline-flex {
    display: inline-flex !important;
  }
}

@media (min-width: 1200px) {
  .btn-icon.d-xl-none {
    display: none !important;
  }

  .btn-icon.d-xl-inline-flex {
    display: inline-flex !important;
  }
}

.btn-icon.btn-sm {
  width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  min-width: 34px !important;
}

.btn-icon.btn-lg {
  width: 50px !important;
  height: 50px !important;
  min-height: 50px !important;
  min-width: 50px !important;
}

.btn-icon.rounded-circle,
.rounded-circle.btn-icon {
  border-radius: 50% !important;
}

/* 4. Solid Variants - Standard Pure Brand Primary */
.btn-primary:not(:disabled):not(.disabled),
.btn-primary.active:not(:disabled):not(.disabled),
.btn-primary[aria-selected="true"]:not(:disabled):not(.disabled),
.btn-primary:hover:not(:disabled):not(.disabled),
.btn-primary:focus:not(:disabled):not(.disabled),
.btn-primary:focus-visible:not(:disabled):not(.disabled),
.btn-primary:active:not(:disabled):not(.disabled) {
  background-color: var(--bs-primary) !important;
  border-color: var(--bs-primary) !important;
  color: var(--bs-white, #ffffff) !important;
  box-shadow: none !important;
  filter: none !important;
}

.btn-primary *,
.btn-primary span,
.btn-primary i,
.btn-primary .material-symbols-outlined {
  color: inherit !important;
}

/* 4b. Dark Mode: btn-warning styled as soft btn-label-warning */
[data-bs-theme="dark"] .btn-warning:not(:disabled):not(.disabled) {
  background-color: rgba(var(--bs-warning-rgb), 0.16) !important;
  border-color: transparent !important;
  color: var(--bs-warning) !important;
  box-shadow: none !important;
  filter: none !important;
}

[data-bs-theme="dark"] .btn-warning.active:not(:disabled):not(.disabled),
[data-bs-theme="dark"] .btn-warning[aria-selected="true"]:not(:disabled):not(.disabled),
[data-bs-theme="dark"] .btn-warning:hover:not(:disabled):not(.disabled),
[data-bs-theme="dark"] .btn-warning:focus:not(:disabled):not(.disabled),
[data-bs-theme="dark"] .btn-warning:focus-visible:not(:disabled):not(.disabled),
[data-bs-theme="dark"] .btn-warning:active:not(:disabled):not(.disabled) {
  background-color: var(--bs-warning) !important;
  border-color: var(--bs-warning) !important;
  color: var(--bs-white, #ffffff) !important;
  box-shadow: none !important;
  filter: none !important;
}

.btn-warning *,
.btn-warning span,
.btn-warning i,
.btn-warning .material-symbols-outlined {
  color: inherit !important;
}

/* 4c. Loading State: Primary Buttons Maintain Primary Styling (Never Flash to Secondary Gray) */
.btn-primary.btn-is-loading,
.btn-primary.btn-is-loading:disabled,
.btn-primary.btn-is-loading.disabled,
button.btn-primary.btn-is-loading:disabled {
  background-color: var(--bs-primary) !important;
  border-color: var(--bs-primary) !important;
  color: var(--bs-white, #ffffff) !important;
  opacity: 0.88 !important;
  transition: none !important;
}

.btn-primary.btn-is-loading .spinner-border,
.btn-primary.btn-is-loading * {
  color: var(--bs-white, #ffffff) !important;
}

.btn-label-primary.btn-is-loading,
.btn-label-primary.btn-is-loading:disabled,
.btn-label-primary.btn-is-loading.disabled,
button.btn-label-primary.btn-is-loading:disabled {
  background-color: rgba(var(--bs-primary-rgb), 0.22) !important;
  border-color: transparent !important;
  color: var(--bs-primary) !important;
  opacity: 0.92 !important;
  transition: none !important;
}

.btn-label-primary.btn-is-loading .spinner-border,
.btn-label-primary.btn-is-loading * {
  color: var(--bs-primary) !important;
}

/* 4d. Loading State: Danger Buttons Maintain Danger Styling (Never Flash to Secondary Gray) */
.btn-danger.btn-is-loading,
.btn-danger.btn-is-loading:disabled,
.btn-danger.btn-is-loading.disabled,
button.btn-danger.btn-is-loading:disabled,
[data-bs-theme="dark"] .btn-danger.btn-is-loading,
[data-bs-theme="dark"] .btn-danger.btn-is-loading:disabled,
[data-bs-theme="dark"] .btn-danger.btn-is-loading.disabled,
[data-bs-theme="dark"] button.btn-danger.btn-is-loading:disabled {
  background-color: var(--bs-danger, #ff3e1d) !important;
  border-color: var(--bs-danger, #ff3e1d) !important;
  color: var(--bs-white, #ffffff) !important;
  opacity: 0.88 !important;
  transition: none !important;
}

.btn-danger.btn-is-loading .spinner-border,
.btn-danger.btn-is-loading *,
[data-bs-theme="dark"] .btn-danger.btn-is-loading .spinner-border,
[data-bs-theme="dark"] .btn-danger.btn-is-loading * {
  color: var(--bs-white, #ffffff) !important;
}

.btn-label-danger.btn-is-loading,
.btn-label-danger.btn-is-loading:disabled,
.btn-label-danger.btn-is-loading.disabled,
button.btn-label-danger.btn-is-loading:disabled,
[data-bs-theme="dark"] .btn-label-danger.btn-is-loading,
[data-bs-theme="dark"] .btn-label-danger.btn-is-loading:disabled,
[data-bs-theme="dark"] .btn-label-danger.btn-is-loading.disabled,
[data-bs-theme="dark"] button.btn-label-danger.btn-is-loading:disabled {
  background-color: rgba(var(--bs-danger-rgb, 255, 62, 29), 0.22) !important;
  border-color: transparent !important;
  color: var(--bs-danger, #ff3e1d) !important;
  opacity: 0.92 !important;
  transition: none !important;
}

.btn-label-danger.btn-is-loading .spinner-border,
.btn-label-danger.btn-is-loading *,
[data-bs-theme="dark"] .btn-label-danger.btn-is-loading .spinner-border,
[data-bs-theme="dark"] .btn-label-danger.btn-is-loading * {
  color: var(--bs-danger, #ff3e1d) !important;
}

.btn-is-loading,
.btn-is-loading *,
.btn.btn-is-loading {
  transition: none !important;
}

/* Disabled State: Default Neutral / Secondary Button Styling (excluding loading buttons) */
.btn-secondary:disabled:not(.btn-is-loading),
.btn-secondary.disabled:not(.btn-is-loading),
button.btn-secondary:disabled:not(.btn-is-loading),
a.btn-secondary.disabled:not(.btn-is-loading),
input[type="submit"]:disabled.btn-secondary:not(.btn-is-loading),
input[type="button"]:disabled.btn-secondary:not(.btn-is-loading) {
  transition: none !important;
  opacity: var(--bs-btn-disabled-opacity, 0.55) !important;
  cursor: not-allowed !important;
  pointer-events: auto !important;
  background-color: rgba(var(--bs-secondary-rgb, 112, 112, 112), 0.14) !important;
  background: rgba(var(--bs-secondary-rgb, 112, 112, 112), 0.14) !important;
  border: 1px solid transparent !important;
  border-color: transparent !important;
  color: var(--bs-secondary, #707070) !important;
  box-shadow: none !important;
  transform: none !important;
}

[data-bs-theme="dark"] .btn-secondary:disabled:not(.btn-is-loading),
[data-bs-theme="dark"] .btn-secondary.disabled:not(.btn-is-loading),
[data-bs-theme="dark"] button.btn-secondary:disabled:not(.btn-is-loading),
[data-bs-theme="dark"] a.btn-secondary.disabled:not(.btn-is-loading),
.dark-style .btn-secondary:disabled:not(.btn-is-loading),
.dark-style .btn-secondary.disabled:not(.btn-is-loading) {
  background-color: rgba(255, 255, 255, 0.08) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid transparent !important;
  border-color: transparent !important;
  color: var(--bs-gray-700, #cecece) !important;
}

.btn-secondary,
[data-bs-theme="light"] .btn-secondary,
:root:not([data-bs-theme="dark"]) .btn-secondary {
  background-color: rgba(var(--bs-secondary-rgb, 112, 112, 112), 0.14) !important;
  border: none !important;
  border-color: transparent !important;
  color: var(--bs-secondary, #707070) !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}

.btn-secondary *,
.btn-secondary span,
.btn-secondary i,
.btn-secondary .material-symbols-outlined {
  color: inherit !important;
}

.btn-secondary:hover:not(:disabled):not(.disabled),
[data-bs-theme="light"] .btn-secondary:hover:not(:disabled):not(.disabled),
:root:not([data-bs-theme="dark"]) .btn-secondary:hover:not(:disabled):not(.disabled) {
  background-color: var(--bs-secondary, #707070) !important;
  border-color: transparent !important;
  color: var(--bs-white, #ffffff) !important;
}

[data-bs-theme="dark"] .btn-secondary,
.dark-style .btn-secondary {
  background-color: rgba(255, 255, 255, 0.08) !important;
  border: none !important;
  border-color: transparent !important;
  color: var(--bs-gray-700, #cecece) !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}

[data-bs-theme="dark"] .btn-secondary:hover:not(:disabled):not(.disabled),
.dark-style .btn-secondary:hover:not(:disabled):not(.disabled) {
  background-color: rgba(255, 255, 255, 0.16) !important;
  border-color: transparent !important;
  color: var(--bs-white, #ffffff) !important;
}

[data-bs-theme="dark"] .btn-secondary:focus,
[data-bs-theme="dark"] .btn-secondary:focus-visible,
.dark-style .btn-secondary:focus,
.dark-style .btn-secondary:focus-visible {
  background-color: rgba(255, 255, 255, 0.12) !important;
  border-color: transparent !important;
  color: var(--bs-white, #ffffff) !important;
  box-shadow: none !important;
}

[data-bs-theme="dark"] .btn-secondary:active,
.dark-style .btn-secondary:active {
  background-color: rgba(255, 255, 255, 0.2) !important;
  border-color: transparent !important;
  color: var(--bs-white, #ffffff) !important;
  transform: scale(0.98) !important;
}

.btn-success {
  background-color: var(--bs-success, #71dd37) !important;
  border-color: var(--bs-success, #71dd37) !important;
  color: var(--bs-white, #ffffff) !important;
}

.btn-danger {
  background-color: var(--bs-danger, #ff3e1d) !important;
  border-color: var(--bs-danger, #ff3e1d) !important;
  color: var(--bs-white, #ffffff) !important;
}

/* Warning Solid (Light Mode Default) */
:root:not([data-bs-theme="dark"]) .btn-warning,
.btn-warning {
  background-color: var(--bs-warning, #ffab00) !important;
  border-color: var(--bs-warning, #ffab00) !important;
  color: var(--bs-white, #ffffff) !important;
}

/* Loading State for Warning Buttons */
.btn-warning.btn-is-loading,
.btn-warning.btn-is-loading:disabled,
.btn-warning.btn-is-loading.disabled,
button.btn-warning.btn-is-loading:disabled {
  background-color: var(--bs-warning, #ffab00) !important;
  border-color: var(--bs-warning, #ffab00) !important;
  color: var(--bs-white, #ffffff) !important;
  opacity: 0.88 !important;
  transition: none !important;
}

.btn-warning.btn-is-loading .spinner-border,
.btn-warning.btn-is-loading * {
  color: var(--bs-white, #ffffff) !important;
}

[data-bs-theme="dark"] .btn-warning.btn-is-loading,
[data-bs-theme="dark"] .btn-warning.btn-is-loading:disabled,
[data-bs-theme="dark"] .btn-warning.btn-is-loading.disabled,
[data-bs-theme="dark"] button.btn-warning.btn-is-loading:disabled {
  background-color: rgba(var(--bs-warning-rgb, 255, 171, 0), 0.22) !important;
  border-color: transparent !important;
  color: var(--bs-warning, #ffab00) !important;
  opacity: 0.92 !important;
  transition: none !important;
}

[data-bs-theme="dark"] .btn-warning.btn-is-loading .spinner-border,
[data-bs-theme="dark"] .btn-warning.btn-is-loading * {
  color: var(--bs-warning, #ffab00) !important;
}

.btn-info {
  background-color: var(--bs-info, #03c3ec) !important;
  border-color: var(--bs-info, #03c3ec) !important;
  color: var(--bs-white, #ffffff) !important;
}

.btn-success *,
.btn-success span,
.btn-success i,
.btn-success .material-symbols-outlined,
.btn-danger *,
.btn-danger span,
.btn-danger i,
.btn-danger .material-symbols-outlined,
.btn-info *,
.btn-info span,
.btn-info i,
.btn-info .material-symbols-outlined {
  color: inherit !important;
}

/* 5. Soft Label Variants (btn-label-*) */
.btn-label-primary {
  background-color: rgba(var(--bs-primary-rgb), 0.12) !important;
  border-color: transparent !important;
  color: var(--bs-primary) !important;
}

.btn-label-primary *,
.btn-label-primary span,
.btn-label-primary i,
.btn-label-primary .material-symbols-outlined {
  color: inherit !important;
}

.btn-label-primary:hover:not(:disabled):not(.disabled),
.btn-label-primary:focus:not(:disabled):not(.disabled),
.btn-label-primary:active:not(:disabled):not(.disabled) {
  background-color: var(--bs-primary) !important;
  border-color: var(--bs-primary) !important;
  color: var(--bs-white, #ffffff) !important;
}

[data-bs-theme="dark"] .btn-label-primary {
  background-color: rgba(var(--bs-primary-rgb), 0.14) !important;
  border-color: transparent !important;
  color: var(--bs-primary) !important;
}

[data-bs-theme="dark"] .btn-label-primary:hover:not(:disabled):not(.disabled),
[data-bs-theme="dark"] .btn-label-primary:focus:not(:disabled):not(.disabled),
[data-bs-theme="dark"] .btn-label-primary:active:not(:disabled):not(.disabled) {
  background-color: var(--bs-primary) !important;
  border-color: var(--bs-primary) !important;
  color: var(--bs-white, #ffffff) !important;
}

/* Secondary Label: Pure monochrome neutral (Saturation = 0) from root.css */
.btn-label-secondary,
[data-bs-theme="light"] .btn-label-secondary,
:root:not([data-bs-theme="dark"]) .btn-label-secondary {
  background-color: rgba(var(--bs-secondary-rgb, 112, 112, 112), 0.14) !important;
  border-color: transparent !important;
  color: var(--bs-body-color, #3a3a3a) !important;
}

.btn-label-secondary *,
.btn-label-secondary span,
.btn-label-secondary i,
.btn-label-secondary .material-symbols-outlined {
  color: inherit !important;
}

.btn-label-secondary:hover:not(:disabled):not(.disabled),
.btn-label-secondary:focus:not(:disabled):not(.disabled),
.btn-label-secondary:active:not(:disabled):not(.disabled),
[data-bs-theme="light"] .btn-label-secondary:hover:not(:disabled):not(.disabled),
[data-bs-theme="light"] .btn-label-secondary:focus:not(:disabled):not(.disabled),
[data-bs-theme="light"] .btn-label-secondary:active:not(:disabled):not(.disabled),
:root:not([data-bs-theme="dark"]) .btn-label-secondary:hover:not(:disabled):not(.disabled),
:root:not([data-bs-theme="dark"]) .btn-label-secondary:focus:not(:disabled):not(.disabled),
:root:not([data-bs-theme="dark"]) .btn-label-secondary:active:not(:disabled):not(.disabled) {
  background-color: var(--bs-secondary, #707070) !important;
  border-color: var(--bs-secondary, #707070) !important;
  color: var(--bs-white, #ffffff) !important;
}

[data-bs-theme="dark"] .btn-label-secondary {
  background-color: var(--bs-secondary-bg) !important;
  border-color: var(--bs-secondary-bg) !important;
  color: var(--bs-gray-700, #cecece) !important;
}

[data-bs-theme="dark"] .btn-label-secondary:hover:not(:disabled):not(.disabled),
[data-bs-theme="dark"] .btn-label-secondary:focus:not(:disabled):not(.disabled),
[data-bs-theme="dark"] .btn-label-secondary:active:not(:disabled):not(.disabled) {
  background-color: color-mix(in sRGB, var(--bs-white, #ffffff) 15%, var(--bs-secondary-bg)) !important;
  border-color: color-mix(in sRGB, var(--bs-white, #ffffff) 15%, var(--bs-secondary-bg)) !important;
  color: var(--bs-white, #ffffff) !important;
}

.btn-label-success {
  background-color: rgba(var(--bs-success-rgb, 113, 221, 55), 0.14) !important;
  border-color: transparent !important;
  color: var(--bs-success, #71dd37) !important;
}

.btn-label-success *,
.btn-label-success span,
.btn-label-success i,
.btn-label-success .material-symbols-outlined {
  color: inherit !important;
}

.btn-label-success:hover:not(:disabled):not(.disabled),
.btn-label-success:focus:not(:disabled):not(.disabled),
.btn-label-success:active:not(:disabled):not(.disabled) {
  background-color: var(--bs-success, #71dd37) !important;
  border-color: var(--bs-success, #71dd37) !important;
  color: var(--bs-white, #ffffff) !important;
}

.btn-label-danger {
  background-color: rgba(var(--bs-danger-rgb, 255, 62, 29), 0.14) !important;
  border-color: transparent !important;
  color: var(--bs-danger, #ff3e1d) !important;
}

.btn-label-danger *,
.btn-label-danger span,
.btn-label-danger i,
.btn-label-danger .material-symbols-outlined {
  color: inherit !important;
}

.btn-label-danger:hover:not(:disabled):not(.disabled),
.btn-label-danger:focus:not(:disabled):not(.disabled),
.btn-label-danger:active:not(:disabled):not(.disabled) {
  background-color: var(--bs-danger, #ff3e1d) !important;
  border-color: var(--bs-danger, #ff3e1d) !important;
  color: var(--bs-white, #ffffff) !important;
}

.btn-label-warning {
  background-color: rgba(var(--bs-warning-rgb, 255, 171, 0), 0.15) !important;
  border-color: transparent !important;
  color: var(--bs-warning-label, #e69500) !important;
}

.btn-label-warning *,
.btn-label-warning span,
.btn-label-warning i,
.btn-label-warning .material-symbols-outlined {
  color: inherit !important;
}

.btn-label-warning:hover:not(:disabled):not(.disabled),
.btn-label-warning:focus:not(:disabled):not(.disabled),
.btn-label-warning:active:not(:disabled):not(.disabled) {
  background-color: var(--bs-warning, #ffab00) !important;
  border-color: var(--bs-warning, #ffab00) !important;
  color: var(--bs-white, #ffffff) !important;
}

[data-bs-theme="dark"] .btn-label-warning {
  background-color: rgba(var(--bs-warning-rgb, 255, 171, 0), 0.16) !important;
  border-color: transparent !important;
  color: var(--bs-warning, #ffab00) !important;
}

[data-bs-theme="dark"] .btn-label-warning:hover:not(:disabled):not(.disabled),
[data-bs-theme="dark"] .btn-label-warning:focus:not(:disabled):not(.disabled),
[data-bs-theme="dark"] .btn-label-warning:active:not(:disabled):not(.disabled) {
  background-color: var(--bs-warning, #ffab00) !important;
  border-color: var(--bs-warning, #ffab00) !important;
  color: var(--bs-white, #ffffff) !important;
}

.btn-label-warning.btn-is-loading,
.btn-label-warning.btn-is-loading:disabled,
.btn-label-warning.btn-is-loading.disabled,
button.btn-label-warning.btn-is-loading:disabled {
  background-color: rgba(var(--bs-warning-rgb, 255, 171, 0), 0.22) !important;
  border-color: transparent !important;
  color: var(--bs-warning, #ffab00) !important;
  opacity: 0.92 !important;
  transition: none !important;
}

.btn-label-warning.btn-is-loading .spinner-border,
.btn-label-warning.btn-is-loading * {
  color: var(--bs-warning, #ffab00) !important;
}

.btn-label-info {
  background-color: rgba(var(--bs-info-rgb, 3, 195, 236), 0.14) !important;
  border-color: transparent !important;
  color: var(--bs-info, #03c3ec) !important;
}

.btn-label-info *,
.btn-label-info span,
.btn-label-info i,
.btn-label-info .material-symbols-outlined {
  color: inherit !important;
}

.btn-label-info:hover:not(:disabled):not(.disabled),
.btn-label-info:focus:not(:disabled):not(.disabled),
.btn-label-info:active:not(:disabled):not(.disabled) {
  background-color: var(--bs-info, #03c3ec) !important;
  border-color: var(--bs-info, #03c3ec) !important;
  color: var(--bs-white, #ffffff) !important;
}

/* 6. Outline Variants */
.btn-outline-primary {
  background-color: transparent !important;
  border-color: var(--bs-primary) !important;
  color: var(--bs-primary) !important;
  transition: var(--btn-transition, transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.18s ease, border-color 0.18s ease) !important;
}

.btn-outline-primary * {
  background: transparent !important;
  background-color: transparent !important;
}

.btn-outline-primary:hover:not(:disabled):not(.disabled) {
  background-color: rgba(var(--bs-primary-rgb), 0.1) !important;
  color: var(--bs-primary) !important;
}

.btn-outline-primary:active:not(:disabled):not(.disabled),
.btn-outline-primary.active:not(:disabled):not(.disabled) {
  background-color: rgba(var(--bs-primary-rgb), 0.2) !important;
  color: var(--bs-primary) !important;
}

.btn-outline-secondary,
[data-bs-theme="light"] .btn-outline-secondary,
:root:not([data-bs-theme="dark"]) .btn-outline-secondary {
  background-color: transparent !important;
  border-color: var(--bs-secondary, #707070) !important;
  color: var(--bs-secondary, #707070) !important;
}

.btn-outline-secondary *,
.btn-outline-secondary span,
.btn-outline-secondary i,
.btn-outline-secondary .material-symbols-outlined {
  color: inherit !important;
}

.btn-outline-secondary:hover:not(:disabled):not(.disabled),
.btn-outline-secondary:focus:not(:disabled):not(.disabled),
.btn-outline-secondary:active:not(:disabled):not(.disabled),
.btn-outline-secondary.active:not(:disabled):not(.disabled),
[data-bs-theme="light"] .btn-outline-secondary:hover:not(:disabled):not(.disabled),
[data-bs-theme="light"] .btn-outline-secondary:focus:not(:disabled):not(.disabled),
[data-bs-theme="light"] .btn-outline-secondary:active:not(:disabled):not(.disabled),
[data-bs-theme="light"] .btn-outline-secondary.active:not(:disabled):not(.disabled),
:root:not([data-bs-theme="dark"]) .btn-outline-secondary:hover:not(:disabled):not(.disabled),
:root:not([data-bs-theme="dark"]) .btn-outline-secondary:focus:not(:disabled):not(.disabled),
:root:not([data-bs-theme="dark"]) .btn-outline-secondary:active:not(:disabled):not(.disabled),
:root:not([data-bs-theme="dark"]) .btn-outline-secondary.active:not(:disabled):not(.disabled) {
  background-color: var(--bs-secondary-bg, #f0f0f0) !important;
  border-color: var(--bs-secondary, #707070) !important;
  color: var(--bs-heading-color, #242424) !important;
}

[data-bs-theme="dark"] .btn-outline-secondary {
  background-color: transparent !important;
  border-color: var(--bs-border-color) !important;
  color: var(--bs-body-color, #a9a9a9) !important;
}

[data-bs-theme="dark"] .btn-outline-secondary:hover:not(:disabled):not(.disabled),
[data-bs-theme="dark"] .btn-outline-secondary:focus:not(:disabled):not(.disabled),
[data-bs-theme="dark"] .btn-outline-secondary:active:not(:disabled):not(.disabled) {
  background-color: rgba(255, 255, 255, 0.08) !important;
  border-color: var(--bs-border-color) !important;
  color: var(--bs-white, #ffffff) !important;
}

.btn-outline-danger {
  background-color: transparent !important;
  border-color: var(--bs-danger, #ff3e1d) !important;
  color: var(--bs-danger, #ff3e1d) !important;
}

.btn-outline-danger *,
.btn-outline-danger span,
.btn-outline-danger i,
.btn-outline-danger .material-symbols-outlined {
  color: inherit !important;
}

.btn-outline-danger:hover:not(:disabled):not(.disabled) {
  background-color: rgba(var(--bs-danger-rgb, 255, 62, 29), 0.1) !important;
  color: var(--bs-danger, #ff3e1d) !important;
}

.btn-outline-white {
  background-color: transparent !important;
  border: 1px solid var(--bs-white, #ffffff) !important;
  border-color: var(--bs-white, #ffffff) !important;
  color: var(--bs-white, #ffffff) !important;
}

.btn-outline-white *,
.btn-outline-white span,
.btn-outline-white i,
.btn-outline-white .material-symbols-outlined {
  color: inherit !important;
}

.btn-outline-white:hover:not(:disabled):not(.disabled) {
  background-color: rgba(255, 255, 255, 0.12) !important;
  border-color: var(--bs-white, #ffffff) !important;
  color: var(--bs-white, #ffffff) !important;
}

.btn-outline-white:focus,
.btn-outline-white:focus-visible,
.btn-outline-white.focus {
  background-color: rgba(255, 255, 255, 0.08) !important;
  border-color: var(--bs-white, #ffffff) !important;
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25) !important;
  color: var(--bs-white, #ffffff) !important;
  outline: none !important;
}

.btn-outline-white:active,
.btn-outline-white.active {
  background-color: rgba(255, 255, 255, 0.18) !important;
  border-color: var(--bs-white, #ffffff) !important;
  color: var(--bs-white, #ffffff) !important;
}

/* 7. Disabled States (Strictly NO hover effects, NO color changes, NO background changes, NO transform) */
.btn:disabled,
.btn.disabled,
button:disabled,
a.btn.disabled,
a.btn[disabled],
input[type="button"]:disabled,
input[type="submit"]:disabled,
input[type="reset"]:disabled,
.btn:disabled:hover,
.btn.disabled:hover,
button:disabled:hover,
a.btn.disabled:hover,
a.btn[disabled]:hover,
.btn:disabled:focus,
.btn.disabled:focus,
button:disabled:focus,
a.btn.disabled:focus,
.btn:disabled:active,
.btn.disabled:active,
button:disabled:active,
a.btn.disabled:active {
  opacity: var(--bs-btn-disabled-opacity, var(--app-disabled-opacity, 0.55)) !important;
  pointer-events: auto !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
  transform: none !important;
  transition: none !important;
  animation: none !important;
}

/* Disabled Outline Buttons: locked text & border colors, transparent bg (0-saturation monochrome) */
.btn-outline-secondary:disabled,
.btn-outline-secondary.disabled,
.btn-outline-secondary:disabled:hover,
.btn-outline-secondary.disabled:hover,
.btn-outline-secondary:disabled:focus,
.btn-outline-secondary.disabled:focus,
.btn-outline-secondary:disabled:active,
.btn-outline-secondary.disabled:active,
[data-bs-theme="light"] .btn-outline-secondary:disabled,
[data-bs-theme="light"] .btn-outline-secondary.disabled,
:root:not([data-bs-theme="dark"]) .btn-outline-secondary:disabled,
:root:not([data-bs-theme="dark"]) .btn-outline-secondary.disabled {
  background-color: transparent !important;
  background: transparent !important;
  border: 1.5px solid var(--bs-gray-200, #cccccc) !important;
  border-color: var(--bs-gray-200, #cccccc) !important;
  color: var(--bs-gray-500, #808080) !important;
  opacity: var(--bs-btn-disabled-opacity, var(--app-disabled-opacity, 0.55)) !important;
  box-shadow: none !important;
  transform: none !important;
}

.btn-outline-secondary:disabled *,
.btn-outline-secondary.disabled * {
  color: inherit !important;
}

[data-bs-theme="dark"] .btn-outline-secondary:disabled,
[data-bs-theme="dark"] .btn-outline-secondary.disabled,
[data-bs-theme="dark"] .btn-outline-secondary:disabled:hover,
[data-bs-theme="dark"] .btn-outline-secondary.disabled:hover,
[data-bs-theme="dark"] .btn-outline-secondary:disabled:focus,
[data-bs-theme="dark"] .btn-outline-secondary.disabled:focus,
[data-bs-theme="dark"] .btn-outline-secondary:disabled:active,
[data-bs-theme="dark"] .btn-outline-secondary.disabled:active {
  background-color: transparent !important;
  background: transparent !important;
  border: 1.5px solid var(--bs-border-color, #404040) !important;
  border-color: var(--bs-border-color, #404040) !important;
  color: var(--bs-gray-500, #808080) !important;
  opacity: var(--bs-btn-disabled-opacity, var(--app-disabled-opacity, 0.55)) !important;
  box-shadow: none !important;
  transform: none !important;
}

/* Disabled Label Buttons (e.g. btn-label-secondary like Buku Catatan / Pengaturan) */
.btn-label-secondary:disabled,
.btn-label-secondary.disabled,
.btn-label-secondary:disabled:hover,
.btn-label-secondary.disabled:hover,
.btn-label-secondary:disabled:focus,
.btn-label-secondary.disabled:focus,
.btn-label-secondary:disabled:active,
.btn-label-secondary.disabled:active,
a.btn-label-secondary.disabled:hover {
  background-color: rgba(var(--bs-secondary-rgb, 112, 112, 112), 0.1) !important;
  border-color: transparent !important;
  color: var(--bs-secondary, #707070) !important;
  opacity: var(--bs-btn-disabled-opacity, var(--app-disabled-opacity, 0.55)) !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
  transform: none !important;
}

.btn-label-secondary:disabled *,
.btn-label-secondary.disabled * {
  color: inherit !important;
}

[data-bs-theme="dark"] .btn-label-secondary:disabled,
[data-bs-theme="dark"] .btn-label-secondary.disabled,
[data-bs-theme="dark"] .btn-label-secondary:disabled:hover,
[data-bs-theme="dark"] .btn-label-secondary.disabled:hover {
  background-color: rgba(var(--bs-secondary-rgb, 128, 128, 128), 0.16) !important;
  border-color: transparent !important;
  color: var(--bs-gray-700, #cecece) !important;
  opacity: var(--bs-btn-disabled-opacity, var(--app-disabled-opacity, 0.55)) !important;
  cursor: not-allowed !important;
}

/* ==========================================================================
   7b. Card & Modal-Card Disabled Buttons - Higher Opacity & Better Contrast
   ========================================================================== */
.card .btn:disabled,
.card .btn.disabled,
.card button:disabled,
.card [role="button"][aria-disabled="true"],
.modal .card .btn:disabled,
.modal .card .btn.disabled,
.modal .card button:disabled {
  opacity: 0.85 !important;
  --bs-btn-disabled-opacity: 0.85 !important;
}

.card .btn-outline-secondary:disabled,
.card .btn-outline-secondary.disabled,
.modal .card .btn-outline-secondary:disabled,
.modal .card .btn-outline-secondary.disabled {
  opacity: 0.88 !important;
  background-color: transparent !important;
  border: 1.5px solid var(--bs-secondary, #707070) !important;
  border-color: var(--bs-secondary, #707070) !important;
  color: var(--bs-secondary, #707070) !important;
}

.card .btn-outline-secondary:disabled *,
.card .btn-outline-secondary.disabled *,
.modal .card .btn-outline-secondary:disabled *,
.modal .card .btn-outline-secondary.disabled * {
  color: inherit !important;
}

[data-bs-theme="dark"] .card .btn-outline-secondary:disabled,
[data-bs-theme="dark"] .card .btn-outline-secondary.disabled,
[data-bs-theme="dark"] .modal .card .btn-outline-secondary:disabled,
[data-bs-theme="dark"] .modal .card .btn-outline-secondary.disabled {
  opacity: 0.88 !important;
  background-color: rgba(255, 255, 255, 0.04) !important;
  border-color: var(--bs-border-color, #383838) !important;
  color: var(--bs-body-color, #a9a9a9) !important;
}

[data-bs-theme="light"] .card .btn-outline-secondary:disabled,
[data-bs-theme="light"] .card .btn-outline-secondary.disabled,
[data-bs-theme="light"] .modal .card .btn-outline-secondary:disabled,
[data-bs-theme="light"] .modal .card .btn-outline-secondary.disabled {
  opacity: 0.88 !important;
  background-color: rgba(0, 0, 0, 0.02) !important;
  border-color: var(--bs-secondary, #707070) !important;
  color: var(--bs-secondary, #707070) !important;
}

/* ==========================================================================
   7c. Standardized Full-Rounded Action Buttons in Modals
   ========================================================================== */
.modal-footer .btn,
.modal-footer button,
.modal-footer a.btn,
.btn-confirm-pill,
#sessionStatusModal #confirmSessionBtn,
#confirmEditProgressBtn,
#confirmStartSessionBtn {
  border-radius: 50rem !important;
}

/* 7a. Disabled Solid Semantic Buttons (Strict Variant Color Preservation, 0.55 Opacity) */
.btn-warning:disabled,
.btn-warning.disabled,
.btn-warning[disabled],
.btn-warning[aria-disabled="true"],
button.btn-warning:disabled,
button.btn-warning.disabled,
a.btn-warning.disabled,
a.btn-warning[disabled],
a.btn-warning[aria-disabled="true"] {
  background-color: var(--bs-warning, #ffab00) !important;
  background: var(--bs-warning, #ffab00) !important;
  border-color: var(--bs-warning, #ffab00) !important;
  color: var(--bs-white, #ffffff) !important;
  opacity: var(--bs-btn-disabled-opacity, 0.55) !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
  pointer-events: auto !important;
  transform: none !important;
}

.btn-primary:disabled,
.btn-primary.disabled,
.btn-primary[disabled],
.btn-primary[aria-disabled="true"],
button.btn-primary:disabled,
button.btn-primary.disabled,
a.btn-primary.disabled,
a.btn-primary[disabled],
a.btn-primary[aria-disabled="true"] {
  background-color: rgba(var(--bs-secondary-rgb, 112, 112, 112), 0.16) !important;
  background: rgba(var(--bs-secondary-rgb, 112, 112, 112), 0.16) !important;
  border-color: transparent !important;
  color: var(--bs-secondary, #707070) !important;
  opacity: 0.65 !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  transform: none !important;
}

[data-bs-theme="dark"] .btn-primary:disabled,
[data-bs-theme="dark"] .btn-primary.disabled,
[data-bs-theme="dark"] .btn-primary[disabled],
[data-bs-theme="dark"] .btn-primary[aria-disabled="true"],
[data-bs-theme="dark"] button.btn-primary:disabled,
[data-bs-theme="dark"] button.btn-primary.disabled,
[data-bs-theme="dark"] a.btn-primary.disabled,
[data-bs-theme="dark"] a.btn-primary[disabled],
[data-bs-theme="dark"] a.btn-primary[aria-disabled="true"] {
  background-color: rgba(255, 255, 255, 0.08) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: transparent !important;
  color: var(--bs-gray-700, #cecece) !important;
  opacity: var(--bs-btn-disabled-opacity, var(--app-disabled-opacity, 0.55)) !important;
}

.btn-primary:disabled *,
.btn-primary.disabled *,
button.btn-primary:disabled *,
button.btn-primary.disabled *,
a.btn-primary.disabled * {
  color: inherit !important;
  transition: none !important;
}

.btn-danger:disabled,
.btn-danger.disabled,
.btn-danger[disabled],
.btn-danger[aria-disabled="true"],
button.btn-danger:disabled,
button.btn-danger.disabled,
a.btn-danger.disabled,
a.btn-danger[disabled],
a.btn-danger[aria-disabled="true"] {
  background-color: var(--bs-danger, #ff3e1d) !important;
  background: var(--bs-danger, #ff3e1d) !important;
  border-color: var(--bs-danger, #ff3e1d) !important;
  color: var(--bs-white, #ffffff) !important;
  opacity: var(--bs-btn-disabled-opacity, 0.55) !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
  pointer-events: auto !important;
  transform: none !important;
}

.btn-success:disabled,
.btn-success.disabled,
.btn-success[disabled],
.btn-success[aria-disabled="true"],
button.btn-success:disabled,
button.btn-success.disabled,
a.btn-success.disabled,
a.btn-success[disabled],
a.btn-success[aria-disabled="true"] {
  background-color: var(--bs-success, #71dd37) !important;
  background: var(--bs-success, #71dd37) !important;
  border-color: var(--bs-success, #71dd37) !important;
  color: var(--bs-white, #ffffff) !important;
  opacity: var(--bs-btn-disabled-opacity, 0.55) !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
  pointer-events: auto !important;
  transform: none !important;
}

.btn-info:disabled,
.btn-info.disabled,
.btn-info[disabled],
.btn-info[aria-disabled="true"],
button.btn-info:disabled,
button.btn-info.disabled,
a.btn-info.disabled,
a.btn-info[disabled],
a.btn-info[aria-disabled="true"] {
  background-color: var(--bs-info, #03c3ec) !important;
  background: var(--bs-info, #03c3ec) !important;
  border-color: var(--bs-info, #03c3ec) !important;
  color: var(--bs-white, #ffffff) !important;
  opacity: var(--bs-btn-disabled-opacity, 0.55) !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
  pointer-events: auto !important;
  transform: none !important;
}

.btn-dark:disabled,
.btn-dark.disabled,
button.btn-dark:disabled,
button.btn-dark.disabled,
a.btn-dark.disabled {
  background-color: var(--bs-dark, #242424) !important;
  background: var(--bs-dark, #242424) !important;
  border-color: var(--bs-dark, #242424) !important;
  color: var(--bs-white, #ffffff) !important;
  opacity: var(--bs-btn-disabled-opacity, 0.55) !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
  pointer-events: auto !important;
  transform: none !important;
}

.btn-warning:disabled *,
.btn-warning.disabled *,
button.btn-warning:disabled *,
button.btn-warning.disabled *,
a.btn-warning.disabled *,
.btn-danger:disabled *,
.btn-danger.disabled *,
button.btn-danger:disabled *,
button.btn-danger.disabled *,
a.btn-danger.disabled *,
.btn-success:disabled *,
.btn-success.disabled *,
button.btn-success:disabled *,
button.btn-success.disabled *,
a.btn-success.disabled *,
.btn-info:disabled *,
.btn-info.disabled *,
button.btn-info:disabled *,
button.btn-info.disabled *,
a.btn-info.disabled *,
.btn-dark:disabled *,
.btn-dark.disabled *,
button.btn-dark:disabled *,
button.btn-dark.disabled *,
a.btn-dark.disabled * {
  color: inherit !important;
  transition: none !important;
}

/* 7b. Disabled Outline Semantic Buttons (Strict Variant Color Preservation, 0.55 Opacity) */
.btn-outline-warning:disabled,
.btn-outline-warning.disabled,
.btn-outline-warning[disabled],
.btn-outline-warning[aria-disabled="true"],
button.btn-outline-warning:disabled,
button.btn-outline-warning.disabled,
a.btn-outline-warning.disabled,
a.btn-outline-warning[disabled],
a.btn-outline-warning[aria-disabled="true"] {
  background-color: transparent !important;
  background: transparent !important;
  border-color: var(--bs-warning, #ffab00) !important;
  color: var(--bs-warning, #ffab00) !important;
  opacity: var(--bs-btn-disabled-opacity, 0.55) !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
  pointer-events: auto !important;
  transform: none !important;
}

.btn-outline-primary:disabled,
.btn-outline-primary.disabled,
.btn-outline-primary[disabled],
.btn-outline-primary[aria-disabled="true"],
button.btn-outline-primary:disabled,
button.btn-outline-primary.disabled,
a.btn-outline-primary.disabled,
a.btn-outline-primary[disabled],
a.btn-outline-primary[aria-disabled="true"] {
  background-color: transparent !important;
  background: transparent !important;
  border-color: var(--bs-primary) !important;
  color: var(--bs-primary) !important;
  opacity: var(--bs-btn-disabled-opacity, 0.55) !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
  pointer-events: auto !important;
  transform: none !important;
}

.btn-outline-danger:disabled,
.btn-outline-danger.disabled,
.btn-outline-danger[disabled],
.btn-outline-danger[aria-disabled="true"],
button.btn-outline-danger:disabled,
button.btn-outline-danger.disabled,
a.btn-outline-danger.disabled,
a.btn-outline-danger[disabled],
a.btn-outline-danger[aria-disabled="true"] {
  background-color: transparent !important;
  background: transparent !important;
  border-color: var(--bs-danger, #ff3e1d) !important;
  color: var(--bs-danger, #ff3e1d) !important;
  opacity: var(--bs-btn-disabled-opacity, 0.55) !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
  pointer-events: auto !important;
  transform: none !important;
}

.btn-outline-success:disabled,
.btn-outline-success.disabled,
.btn-outline-success[disabled],
.btn-outline-success[aria-disabled="true"],
button.btn-outline-success:disabled,
button.btn-outline-success.disabled,
a.btn-outline-success.disabled,
a.btn-outline-success[disabled],
a.btn-outline-success[aria-disabled="true"] {
  background-color: transparent !important;
  background: transparent !important;
  border-color: var(--bs-success, #71dd37) !important;
  color: var(--bs-success, #71dd37) !important;
  opacity: var(--bs-btn-disabled-opacity, 0.55) !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
  pointer-events: auto !important;
  transform: none !important;
}

.btn-outline-info:disabled,
.btn-outline-info.disabled,
.btn-outline-info[disabled],
.btn-outline-info[aria-disabled="true"],
button.btn-outline-info:disabled,
button.btn-outline-info.disabled,
a.btn-outline-info.disabled,
a.btn-outline-info[disabled],
a.btn-outline-info[aria-disabled="true"] {
  background-color: transparent !important;
  background: transparent !important;
  border-color: var(--bs-info, #03c3ec) !important;
  color: var(--bs-info, #03c3ec) !important;
  opacity: var(--bs-btn-disabled-opacity, 0.55) !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
  pointer-events: auto !important;
  transform: none !important;
}

.btn-outline-dark:disabled,
.btn-outline-dark.disabled,
button.btn-outline-dark:disabled,
button.btn-outline-dark.disabled,
a.btn-outline-dark.disabled {
  background-color: transparent !important;
  background: transparent !important;
  border-color: var(--bs-dark, #242424) !important;
  color: var(--bs-dark, #242424) !important;
  opacity: var(--bs-btn-disabled-opacity, 0.55) !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
  pointer-events: auto !important;
  transform: none !important;
}

.btn-outline-warning:disabled *,
.btn-outline-warning.disabled *,
button.btn-outline-warning:disabled *,
button.btn-outline-warning.disabled *,
a.btn-outline-warning.disabled *,
.btn-outline-primary:disabled *,
.btn-outline-primary.disabled *,
button.btn-outline-primary:disabled *,
button.btn-outline-primary.disabled *,
a.btn-outline-primary.disabled *,
.btn-outline-danger:disabled *,
.btn-outline-danger.disabled *,
button.btn-outline-danger:disabled *,
button.btn-outline-danger.disabled *,
a.btn-outline-danger.disabled *,
.btn-outline-success:disabled *,
.btn-outline-success.disabled *,
button.btn-outline-success:disabled *,
button.btn-outline-success.disabled *,
a.btn-outline-success.disabled *,
.btn-outline-info:disabled *,
.btn-outline-info.disabled *,
button.btn-outline-info:disabled *,
button.btn-outline-info.disabled *,
a.btn-outline-info.disabled *,
.btn-outline-dark:disabled *,
.btn-outline-dark.disabled *,
button.btn-outline-dark:disabled *,
button.btn-outline-dark.disabled *,
a.btn-outline-dark.disabled * {
  color: inherit !important;
}

/* 7c. Disabled Soft Label Buttons */
.btn-label-warning:disabled,
.btn-label-warning.disabled,
.btn.bg-label-warning:disabled,
.btn.bg-label-warning.disabled,
a.btn.bg-label-warning.disabled {
  background-color: rgba(var(--bs-warning-rgb), 0.16) !important;
  border-color: rgba(var(--bs-warning-rgb), 0.35) !important;
  color: var(--bs-warning, #ffab00) !important;
  opacity: var(--bs-btn-disabled-opacity, 0.55) !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
  pointer-events: auto !important;
  transform: none !important;
}

.btn-label-primary:disabled,
.btn-label-primary.disabled,
.btn.bg-label-primary:disabled,
.btn.bg-label-primary.disabled,
a.btn.bg-label-primary.disabled {
  background-color: rgba(var(--bs-primary-rgb), 0.16) !important;
  border-color: rgba(var(--bs-primary-rgb), 0.35) !important;
  color: var(--bs-primary) !important;
  opacity: var(--bs-btn-disabled-opacity, 0.55) !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
  pointer-events: auto !important;
  transform: none !important;
}

.btn-label-danger:disabled,
.btn-label-danger.disabled,
.btn.bg-label-danger:disabled,
.btn.bg-label-danger.disabled,
a.btn.bg-label-danger.disabled {
  background-color: rgba(var(--bs-danger-rgb, 255, 62, 29), 0.16) !important;
  border-color: rgba(var(--bs-danger-rgb, 255, 62, 29), 0.35) !important;
  color: var(--bs-danger, #ff3e1d) !important;
  opacity: var(--bs-btn-disabled-opacity, 0.55) !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
  pointer-events: auto !important;
  transform: none !important;
}

.btn-label-success:disabled,
.btn-label-success.disabled,
.btn.bg-label-success:disabled,
.btn.bg-label-success.disabled,
a.btn.bg-label-success.disabled {
  background-color: rgba(var(--bs-success-rgb, 113, 221, 55), 0.16) !important;
  border-color: rgba(var(--bs-success-rgb, 113, 221, 55), 0.35) !important;
  color: var(--bs-success, #71dd37) !important;
  opacity: var(--bs-btn-disabled-opacity, 0.55) !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
  pointer-events: auto !important;
  transform: none !important;
}

.btn-label-info:disabled,
.btn-label-info.disabled,
.btn.bg-label-info:disabled,
.btn.bg-label-info.disabled,
a.btn.bg-label-info.disabled {
  background-color: rgba(var(--bs-info-rgb, 3, 195, 236), 0.16) !important;
  border-color: rgba(var(--bs-info-rgb, 3, 195, 236), 0.35) !important;
  color: var(--bs-info, #03c3ec) !important;
  opacity: var(--bs-btn-disabled-opacity, 0.55) !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
  pointer-events: auto !important;
  transform: none !important;
}

.btn-label-warning:disabled *,
.btn-label-warning.disabled *,
.btn.bg-label-warning:disabled *,
.btn.bg-label-warning.disabled *,
a.btn.bg-label-warning.disabled *,
.btn-label-primary:disabled *,
.btn-label-primary.disabled *,
.btn.bg-label-primary:disabled *,
.btn.bg-label-primary.disabled *,
a.btn.bg-label-primary.disabled *,
.btn-label-danger:disabled *,
.btn-label-danger.disabled *,
.btn.bg-label-danger:disabled *,
.btn.bg-label-danger.disabled *,
a.btn.bg-label-danger.disabled *,
.btn-label-success:disabled *,
.btn-label-success.disabled *,
.btn.bg-label-success:disabled *,
.btn.bg-label-success.disabled *,
a.btn.bg-label-success.disabled *,
.btn-label-info:disabled *,
.btn-label-info.disabled *,
.btn.bg-label-info:disabled *,
.btn.bg-label-info.disabled *,
a.btn.bg-label-info.disabled * {
  color: inherit !important;
}

/* 7d. Neutral Fallback Disabled Buttons (strictly for unbranded buttons without variant class, excluding dropdown items) */
.btn:not([class*="btn-"]):not(.dropdown-item):disabled,
.btn:not([class*="btn-"]):not(.dropdown-item).disabled,
a.btn:not([class*="btn-"]):not(.dropdown-item).disabled,
button:not([class*="btn-"]):not(.dropdown-item):disabled,
button:not([class*="btn-"]):not(.dropdown-item).disabled {
  background-color: rgba(var(--bs-secondary-rgb, 112, 112, 112), 0.14) !important;
  background: rgba(var(--bs-secondary-rgb, 112, 112, 112), 0.14) !important;
  border: 1px solid transparent !important;
  border-color: transparent !important;
  color: var(--bs-secondary, #707070) !important;
  opacity: var(--bs-btn-disabled-opacity, 0.55) !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
  pointer-events: auto !important;
  transform: none !important;
}

[data-bs-theme="dark"] .btn:not([class*="btn-"]):not(.dropdown-item):disabled,
[data-bs-theme="dark"] .btn:not([class*="btn-"]):not(.dropdown-item).disabled,
[data-bs-theme="dark"] a.btn:not([class*="btn-"]):not(.dropdown-item).disabled,
[data-bs-theme="dark"] button:not([class*="btn-"]):not(.dropdown-item):disabled,
[data-bs-theme="dark"] button:not([class*="btn-"]):not(.dropdown-item).disabled,
.dark-style .btn:not([class*="btn-"]):not(.dropdown-item):disabled,
.dark-style .btn:not([class*="btn-"]):not(.dropdown-item).disabled {
  background-color: rgba(255, 255, 255, 0.08) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid transparent !important;
  border-color: transparent !important;
  color: var(--bs-gray-500, #808080) !important;
  opacity: var(--bs-btn-disabled-opacity, 0.55) !important;
}

/* 7e. Disabled Dropdown Items: Strictly Transparent Background, Text Opacity Only (Zero Background) */
.dropdown-item:disabled,
.dropdown-item.disabled,
.dropdown-item[disabled],
.dropdown-item[aria-disabled="true"],
button.dropdown-item:disabled,
button.dropdown-item.disabled,
a.dropdown-item.disabled,
a.dropdown-item[disabled],
.dropdown-menu .dropdown-item:disabled,
.dropdown-menu .dropdown-item.disabled,
.dropdown-menu .dropdown-item[disabled],
.dropdown-menu .dropdown-item[aria-disabled="true"],
.dropdown-menu button.dropdown-item:disabled,
.dropdown-menu button.dropdown-item.disabled,
.dropdown-menu a.dropdown-item.disabled,
.dropdown-menu a.dropdown-item[disabled],
.dropdown-menu li:has(> .dropdown-item:disabled),
.dropdown-menu li:has(> .dropdown-item.disabled) {
  background: transparent !important;
  background-color: transparent !important;
  color: var(--bs-dropdown-link-disabled-color, rgba(255, 255, 255, 0.38)) !important;
  opacity: var(--bs-btn-disabled-opacity, 0.5) !important;
  cursor: default !important;
  pointer-events: auto !important;
  box-shadow: none !important;
  border: none !important;
  outline: none !important;
  transform: none !important;
  transition: none !important;
}

.dropdown-item:disabled *,
.dropdown-item.disabled *,
.dropdown-item[disabled] *,
.dropdown-item[aria-disabled="true"] *,
button.dropdown-item:disabled *,
button.dropdown-item.disabled *,
a.dropdown-item.disabled *,
a.dropdown-item[disabled] *,
.dropdown-menu .dropdown-item:disabled *,
.dropdown-menu .dropdown-item.disabled *,
.dropdown-menu .dropdown-item[disabled] *,
.dropdown-menu .dropdown-item[aria-disabled="true"] *,
.dropdown-menu button.dropdown-item:disabled *,
.dropdown-menu button.dropdown-item.disabled *,
.dropdown-menu li:has(> .dropdown-item:disabled) *,
.dropdown-menu li:has(> .dropdown-item.disabled) * {
  cursor: default !important;
  pointer-events: none !important;
  background: transparent !important;
  background-color: transparent !important;
  color: inherit !important;
}

/* Strictly Prevent Hover, Focus, and Active Effects on Disabled Dropdown Items */
.dropdown-item:disabled:hover,
.dropdown-item.disabled:hover,
.dropdown-item[disabled]:hover,
.dropdown-item[aria-disabled="true"]:hover,
button.dropdown-item:disabled:hover,
button.dropdown-item.disabled:hover,
a.dropdown-item.disabled:hover,
a.dropdown-item[disabled]:hover,
.dropdown-menu .dropdown-item:disabled:hover,
.dropdown-menu .dropdown-item.disabled:hover,
.dropdown-menu .dropdown-item[disabled]:hover,
.dropdown-menu .dropdown-item[aria-disabled="true"]:hover,
.dropdown-menu button.dropdown-item:disabled:hover,
.dropdown-menu button.dropdown-item.disabled:hover,
.dropdown-item:disabled:focus,
.dropdown-item.disabled:focus,
.dropdown-item[disabled]:focus,
.dropdown-menu .dropdown-item:disabled:focus,
.dropdown-menu .dropdown-item.disabled:focus,
.dropdown-item:disabled:active,
.dropdown-item.disabled:active,
.dropdown-menu .dropdown-item:disabled:active,
.dropdown-menu .dropdown-item.disabled:active,
.dropdown-menu li:has(> .dropdown-item:disabled):hover,
.dropdown-menu li:has(> .dropdown-item.disabled):hover,
.dropdown-menu li:has(> .dropdown-item:disabled):focus-within,
.dropdown-menu li:has(> .dropdown-item.disabled):focus-within {
  background: transparent !important;
  background-color: transparent !important;
  color: var(--bs-dropdown-link-disabled-color, rgba(255, 255, 255, 0.38)) !important;
  opacity: var(--bs-btn-disabled-opacity, 0.5) !important;
  box-shadow: none !important;
  border: none !important;
  outline: none !important;
  cursor: default !important;
  transform: none !important;
}

.dropdown-item:disabled:hover *,
.dropdown-item.disabled:hover *,
.dropdown-item[disabled]:hover *,
.dropdown-item[aria-disabled="true"]:hover *,
button.dropdown-item:disabled:hover *,
button.dropdown-item.disabled:hover *,
a.dropdown-item.disabled:hover *,
a.dropdown-item[disabled]:hover *,
.dropdown-menu .dropdown-item:disabled:hover *,
.dropdown-menu .dropdown-item.disabled:hover *,
.dropdown-menu .dropdown-item[disabled]:hover *,
.dropdown-menu .dropdown-item[aria-disabled="true"]:hover *,
.dropdown-menu button.dropdown-item:disabled:hover *,
.dropdown-menu button.dropdown-item.disabled:hover *,
.dropdown-item:disabled:focus *,
.dropdown-item.disabled:focus *,
.dropdown-menu .dropdown-item:disabled:focus *,
.dropdown-menu .dropdown-item.disabled:focus *,
.dropdown-item:disabled:hover i,
.dropdown-item.disabled:hover i,
.dropdown-menu .dropdown-item:disabled:hover i,
.dropdown-menu .dropdown-item.disabled:hover i,
.dropdown-item:disabled:focus i,
.dropdown-item.disabled:focus i,
.dropdown-menu .dropdown-item:disabled:focus i,
.dropdown-menu .dropdown-item.disabled:focus i {
  background: transparent !important;
  background-color: transparent !important;
  color: inherit !important;
  box-shadow: none !important;
  border: none !important;
  cursor: default !important;
  pointer-events: none !important;
}

/* Dark Theme Explicit Colors */
[data-bs-theme="dark"] .dropdown-item:disabled,
[data-bs-theme="dark"] .dropdown-item.disabled,
[data-bs-theme="dark"] .dropdown-item[disabled],
[data-bs-theme="dark"] .dropdown-menu .dropdown-item:disabled,
[data-bs-theme="dark"] .dropdown-menu .dropdown-item.disabled,
[data-bs-theme="dark"] .dropdown-item:disabled:hover,
[data-bs-theme="dark"] .dropdown-item.disabled:hover,
[data-bs-theme="dark"] .dropdown-menu .dropdown-item:disabled:hover,
[data-bs-theme="dark"] .dropdown-menu .dropdown-item.disabled:hover,
[data-bs-theme="dark"] .dropdown-item:disabled:hover *,
[data-bs-theme="dark"] .dropdown-item.disabled:hover *,
[data-bs-theme="dark"] .dropdown-menu .dropdown-item:disabled:hover *,
[data-bs-theme="dark"] .dropdown-menu .dropdown-item.disabled:hover * {
  color: rgba(255, 255, 255, 0.38) !important;
  background: transparent !important;
  background-color: transparent !important;
  cursor: default !important;
}

/* Light Theme Explicit Colors */
[data-bs-theme="light"] .dropdown-item:disabled,
[data-bs-theme="light"] .dropdown-item.disabled,
[data-bs-theme="light"] .dropdown-item[disabled],
[data-bs-theme="light"] .dropdown-menu .dropdown-item:disabled,
[data-bs-theme="light"] .dropdown-menu .dropdown-item.disabled,
[data-bs-theme="light"] .dropdown-item:disabled:hover,
[data-bs-theme="light"] .dropdown-item.disabled:hover,
[data-bs-theme="light"] .dropdown-menu .dropdown-item:disabled:hover,
[data-bs-theme="light"] .dropdown-menu .dropdown-item.disabled:hover,
[data-bs-theme="light"] .dropdown-item:disabled:hover *,
[data-bs-theme="light"] .dropdown-item.disabled:hover *,
[data-bs-theme="light"] .dropdown-menu .dropdown-item:disabled:hover *,
[data-bs-theme="light"] .dropdown-menu .dropdown-item.disabled:hover * {
  color: var(--bs-gray-500, #808080) !important;
  background: transparent !important;
  background-color: transparent !important;
  cursor: default !important;
}

/* Universal Disabled Button State: Strictly Zero Animations, Zero Transitions, Zero Transforms */
.btn:disabled,
.btn.disabled,
.btn[disabled],
.btn[aria-disabled="true"],
button:disabled,
button.disabled,
button[disabled],
button[aria-disabled="true"],
a.btn.disabled,
a.btn[disabled],
a.btn[aria-disabled="true"],
.btn-icon:disabled,
.btn-icon.disabled,
.btn-back:disabled,
.btn-back.disabled,
.toolbar-filter-btn:disabled,
.toolbar-filter-btn.disabled,
.toolbar-sort-btn:disabled,
.toolbar-sort-btn.disabled,
.class-role-pill:disabled,
.class-role-pill.disabled,
.toolbar-pill:disabled,
.toolbar-pill.disabled,
.btn:disabled:hover,
.btn.disabled:hover,
.btn:disabled:active,
.btn.disabled:active,
.btn:disabled:focus,
.btn.disabled:focus,
button:disabled:hover,
button.disabled:hover,
button:disabled:active,
button.disabled:active,
button:disabled:focus,
button.disabled:focus,
a.btn.disabled:hover,
a.btn.disabled:active,
a.btn.disabled:focus,
[role="button"][aria-disabled="true"],
[role="button"][aria-disabled="true"]:hover,
[role="button"][aria-disabled="true"]:active {
  transform: none !important;
  -webkit-transform: none !important;
  transition: none !important;
  -webkit-transition: none !important;
  animation: none !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}

.btn:disabled *:not(.spinner-border):not(.spinner-grow):not(.icon-spin):not([class*="spin"]):not([class*="loader"]):not([class*="loading"]),
.btn.disabled *:not(.spinner-border):not(.spinner-grow):not(.icon-spin):not([class*="spin"]):not([class*="loader"]):not([class*="loading"]),
button:disabled *:not(.spinner-border):not(.spinner-grow):not(.icon-spin):not([class*="spin"]):not([class*="loader"]):not([class*="loading"]),
button.disabled *:not(.spinner-border):not(.spinner-grow):not(.icon-spin):not([class*="spin"]):not([class*="loader"]):not([class*="loading"]),
a.btn.disabled *:not(.spinner-border):not(.spinner-grow):not(.icon-spin):not([class*="spin"]):not([class*="loader"]):not([class*="loading"]) {
  transform: none !important;
  -webkit-transform: none !important;
  transition: none !important;
  -webkit-transition: none !important;
  animation: none !important;
}

/* Ensure loading spinners inside buttons (including disabled & loading states) always spin smoothly without freezing */
@keyframes spinner-border {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@-webkit-keyframes spinner-border {
  0% {
    -webkit-transform: rotate(0deg);
  }

  100% {
    -webkit-transform: rotate(360deg);
  }
}

/* Universal hardware-accelerated continuous spinner rotation (Compositor GPU Layer) */
.btn .spinner-border:not(.d-none),
.btn:disabled .spinner-border:not(.d-none),
.btn.disabled .spinner-border:not(.d-none),
button:disabled .spinner-border:not(.d-none),
button.disabled .spinner-border:not(.d-none),
.btn-is-loading .spinner-border:not(.d-none),
.spinner-border:not(.d-none) {
  display: inline-block !important;
  animation: spinner-border 0.75s linear infinite !important;
  -webkit-animation: spinner-border 0.75s linear infinite !important;
  transform-origin: center center !important;
  will-change: transform !important;
  backface-visibility: hidden !important;
  -webkit-backface-visibility: hidden !important;
}

.btn .spinner-border.d-none,
button .spinner-border.d-none,
.spinner-border.d-none {
  display: none !important;
}

.btn .icon-spin,
.btn:disabled .icon-spin,
.btn.disabled .icon-spin,
button:disabled .icon-spin,
button.disabled .icon-spin,
.btn-is-loading .icon-spin {
  display: inline-block !important;
  animation: spinner-border 1.2s linear infinite !important;
  -webkit-animation: spinner-border 1.2s linear infinite !important;
  transform-origin: center center !important;
  will-change: transform !important;
  backface-visibility: hidden !important;
  -webkit-backface-visibility: hidden !important;
}

.btn .spinner-grow,
.btn:disabled .spinner-grow,
.btn.disabled .spinner-grow,
button:disabled .spinner-grow,
button.disabled .spinner-grow,
.btn-is-loading .spinner-grow {
  display: inline-block !important;
  animation: var(--bs-spinner-animation-speed, 0.75s) linear infinite var(--bs-spinner-animation-name, spinner-grow) !important;
  -webkit-animation: var(--bs-spinner-animation-speed, 0.75s) linear infinite var(--bs-spinner-animation-name, spinner-grow) !important;
  will-change: transform, opacity !important;
  backface-visibility: hidden !important;
  -webkit-backface-visibility: hidden !important;
}

/* 8. Global Elimination of Button Glow / Colored Box-Shadows */
.btn,
.btn:hover,
.btn:focus,
.btn:active,
.btn:not(:focus, :active),
.btn-primary,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-secondary,
.btn-success,
.btn-danger,
.btn-warning,
.btn-info {
  box-shadow: none !important;
  --bs-btn-box-shadow: none !important;
  --bs-btn-focus-box-shadow: none !important;
  --bs-btn-active-shadow: none !important;
  filter: none !important;
}

/* 9. Mobile Button Adjustments (< 768px) */
@media (max-width: 767.98px),
(hover: none),
(pointer: coarse) {
  /* Note: Universal hover lift disable is standardized in section 2 */

  /* Modal Close Button: Fixed Vertical Centering (Zero Jitter/Shift) */
  .modal .btn-close,
  .modal-header .btn-close,
  .modal .modal-header .btn-close,
  .bottom-sheet-modal .modal-header .btn-close,
  .offcanvas-header .btn-close,
  .offcanvas .btn-close,
  #modalAllNotifications .btn-close,
  .modal .btn-close:hover,
  .modal-header .btn-close:hover,
  .modal .modal-header .btn-close:hover,
  .bottom-sheet-modal .modal-header .btn-close:hover,
  .offcanvas-header .btn-close:hover,
  .offcanvas .btn-close:hover,
  #modalAllNotifications .btn-close:hover,
  .modal .btn-close:focus,
  .modal-header .btn-close:focus,
  .modal .modal-header .btn-close:focus,
  .bottom-sheet-modal .modal-header .btn-close:focus,
  .offcanvas-header .btn-close:focus,
  .offcanvas .btn-close:focus,
  #modalAllNotifications .btn-close:focus {
    transform: translateY(-50%) !important;
    -webkit-transform: translateY(-50%) !important;
  }
}

/* 10. Universal Tactile Click Scale Feedback is standardized above under section 1.2 */

.modal .btn-close:active,
.modal .btn-close:hover:active,
.modal-header .btn-close:active,
.modal-header .btn-close:hover:active,
.modal .modal-header .btn-close:active,
.modal .modal-header .btn-close:hover:active,
.bottom-sheet-modal .modal-header .btn-close:active,
.bottom-sheet-modal .modal-header .btn-close:hover:active,
.offcanvas-header .btn-close:active,
.offcanvas-header .btn-close:hover:active,
.offcanvas .btn-close:active,
.offcanvas .btn-close:hover:active,
#modalAllNotifications .btn-close:active,
#modalAllNotifications .btn-close:hover:active,
button.btn-close:active,
button.btn-close:hover:active,
.btn-close:active,
.btn-close:hover:active {
  transform: translateY(-50%) scale(0.90) !important;
  -webkit-transform: translateY(-50%) scale(0.90) !important;
  transition: transform 0.08s ease !important;
}

/* ==========================================================================
   11. Standardized Back Buttons (Desktop & Mobile Unified Soft-Chip Style)
   Synchronizes desktop in-page .btn-back with mobile .nav-circle-btn
   ========================================================================== */
.btn-back,
a.btn-back,
.btn-back.btn-icon,
.btn-icon.btn-back,
.page-header-row .btn-back,
.page-header-row a.btn-back,
#btnBackToDetail,
.btn-back:not(.d-none),
a.btn-back:not(.d-none),
.btn-back.btn-icon:not(.d-none),
.btn-icon.btn-back:not(.d-none),
.page-header-row .btn-back:not(.d-none),
.page-header-row a.btn-back:not(.d-none),
#btnBackToDetail:not(.d-none) {
  width: var(--bs-control-height, 44px) !important;
  height: var(--bs-control-height, 44px) !important;
  min-width: var(--bs-control-height, 44px) !important;
  min-height: var(--bs-control-height, 44px) !important;
  max-width: var(--bs-control-height, 44px) !important;
  max-height: var(--bs-control-height, 44px) !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: none !important;
  border-width: 0 !important;
  box-shadow: none !important;
  cursor: pointer !important;
  text-decoration: none !important;
  flex-shrink: 0 !important;
  transition: var(--btn-transition, transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.18s ease) !important;
}

.btn-back i,
a.btn-back i {
  font-size: 1.35rem !important;
  line-height: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Light Theme: Soft Tinted Chip (Identical to Mobile .nav-circle-btn) */
:root:not([data-bs-theme="dark"]) .btn-back,
:root:not([data-bs-theme="dark"]) a.btn-back,
[data-bs-theme="light"] .btn-back,
[data-bs-theme="light"] a.btn-back,
html:not([data-bs-theme="dark"]) .btn-back,
html:not([data-bs-theme="dark"]) a.btn-back {
  background: var(--bs-btn-circle-bg, #e5e5e5) !important;
  background-color: var(--bs-btn-circle-bg, #e5e5e5) !important;
  color: var(--bs-btn-circle-color, #2c2c2c) !important;
  border: none !important;
}

:root:not([data-bs-theme="dark"]) .btn-back:hover,
:root:not([data-bs-theme="dark"]) a.btn-back:hover,
[data-bs-theme="light"] .btn-back:hover,
[data-bs-theme="light"] a.btn-back:hover {
  background: var(--bs-secondary, #707070) !important;
  background-color: var(--bs-secondary, #707070) !important;
  color: var(--bs-white, #ffffff) !important;
}

.btn-back *,
.btn-back i,
a.btn-back *,
a.btn-back i {
  color: inherit !important;
}

/* Dark Theme: Soft Tinted Chip (Identical to Mobile .nav-circle-btn) */
[data-bs-theme="dark"] .btn-back,
[data-bs-theme="dark"] a.btn-back,
.dark-style .btn-back,
.dark-style a.btn-back {
  background: rgba(var(--bs-secondary-rgb, 128, 128, 128), 0.16) !important;
  background-color: rgba(var(--bs-secondary-rgb, 128, 128, 128), 0.16) !important;
  color: var(--bs-gray-700, #cecece) !important;
  border: none !important;
}

[data-bs-theme="dark"] .btn-back:hover,
[data-bs-theme="dark"] a.btn-back:hover,
.dark-style .btn-back:hover,
.dark-style a.btn-back:hover {
  background: rgba(var(--bs-secondary-rgb, 128, 128, 128), 0.32) !important;
  background-color: rgba(var(--bs-secondary-rgb, 128, 128, 128), 0.32) !important;
  color: var(--bs-white, #ffffff) !important;
}

/* Universal Button Badge & Counter Standards */
.btn > .badge,
.btn .badge {
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.375rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  border-radius: 50rem !important;
  margin-left: 0.375rem !important;
  vertical-align: middle;
  transition: all 0.15s ease !important;
}

.btn>.badge:not(:first-child),
.btn span+.badge,
.btn .badge:not(:only-child),
.btn .selection-count-badge,
.btn .selection-count-text {
  margin-left: 0.375rem !important;
}

/* 1. Outline Warning Button - Keep consistent warning badge color across all states */
.btn-outline-warning .badge,
.btn-outline-warning .badge.bg-warning,
.btn-outline-warning:hover .badge,
.btn-outline-warning:focus .badge,
.btn-outline-warning:active .badge,
.btn-outline-warning.active .badge,
.btn-outline-warning.show .badge {
  background-color: var(--bs-warning) !important;
  color: var(--rsa-color-white, #ffffff) !important;
}

/* 2. Outline Primary Button */
.btn-outline-primary .badge,
.btn-outline-primary .badge.bg-primary,
.btn-outline-primary:hover .badge,
.btn-outline-primary:focus .badge,
.btn-outline-primary:active .badge,
.btn-outline-primary.active .badge,
.btn-outline-primary.show .badge {
  background-color: var(--bs-primary, #ff5911) !important;
  color: var(--bs-white, #ffffff) !important;
}

/* 3. Solid Primary Button */
.btn-primary .badge,
.btn-primary .badge.bg-white {
  background-color: var(--bs-white, #ffffff) !important;
  color: var(--bs-primary, #ff5911) !important;
}

.btn-primary:hover .badge,
.btn-primary:focus .badge,
.btn-primary:active .badge {
  background-color: rgba(255, 255, 255, 0.9) !important;
  color: var(--bs-primary, #ff5911) !important;
}

/* 4. Outline Danger Button */
.btn-outline-danger .badge,
.btn-outline-danger .badge.bg-danger,
.btn-outline-danger:hover .badge,
.btn-outline-danger:focus .badge,
.btn-outline-danger:active .badge,
.btn-outline-danger.active .badge,
.btn-outline-danger.show .badge {
  background-color: var(--bs-danger, #ff3e1d) !important;
  color: var(--bs-white, #ffffff) !important;
}

/* 5. Outline Secondary Button */
.btn-outline-secondary .badge {
  background-color: rgba(255, 255, 255, 0.18) !important;
  color: var(--bs-white, #ffffff) !important;
}

.btn-outline-secondary:hover .badge {
  background-color: var(--rsa-bg-dark, #141414) !important;
  color: var(--bs-white, #ffffff) !important;
}

/* Universal Button / Nav Pill Badge Color Sync:
   When button/item is active: Badge has white background and primary orange text.
   When button/item is inactive: Badge has primary orange background and white text. */
.btn:not([class*="btn-outline-"]).active .badge,
.btn-primary.active .badge,
.btn:not([class*="btn-outline-"]).show .badge,
.nav-link.active .badge,
.nav-pills .nav-link.active .badge,
.toolbar-filter-btn.active .badge,
.list-group-item.active .badge,
.mobile-menu-item.active .badge,
.mobile-nav-link.active .badge {
  background-color: var(--bs-white, #ffffff) !important;
  color: var(--bs-primary, #ff5911) !important;
}

.btn:not(.active):not(.show) .badge.badge-primary,
.btn:not(.active):not(.show) .badge.bg-primary,
.nav-link:not(.active) .badge.badge-primary,
.nav-link:not(.active) .badge.bg-primary,
.toolbar-filter-btn:not(.active) .badge,
.list-group-item:not(.active) .badge.badge-primary,
.mobile-menu-item:not(.active) .badge {
  background-color: var(--bs-primary, #ff5911) !important;
  color: var(--bs-white, #ffffff) !important;
}

/* 9. Standard Active Dropdown Item State: Label Primary Background, and BOTH Text & ALL Icons must be Primary Color (excludes Danger items) */
.dropdown-menu .dropdown-item.active:not(.text-danger):not([class*="danger"]):not(.delete-user-btn),
.dropdown-item.active:not(.text-danger):not([class*="danger"]):not(.delete-user-btn) {
  background-color: rgba(var(--bs-primary-rgb, 255, 89, 17), 0.16) !important;
  color: var(--bs-primary, #ff5911) !important;
}

.dropdown-menu .dropdown-item.active:not(.text-danger):not([class*="danger"]):not(.delete-user-btn) *,
.dropdown-item.active:not(.text-danger):not([class*="danger"]):not(.delete-user-btn) * {
  color: var(--bs-primary, #ff5911) !important;
}

/* ==========================================================================
   10. STANDARD DANGER ZONE DROPDOWN ITEMS (Hapus, Reset, Delete, Logout)
   Universal across all pages: hover/focus always gives bg-label-danger (soft red),
   active (press/click) gives deeper danger tint, text and icons remain red.
   Strictly never turns primary or inherits neutral gray.
   ========================================================================== */
.dropdown-item.text-danger,
.dropdown-item[class*="text-danger"],
.dropdown-item.delete-user-btn,
.dropdown-menu .dropdown-item.text-danger,
.dropdown-menu .dropdown-item[class*="text-danger"],
.dropdown-menu .dropdown-item.delete-user-btn {
  color: var(--bs-danger, #ff3e1d) !important;
}

.dropdown-item.text-danger *,
.dropdown-item[class*="text-danger"] *,
.dropdown-item.delete-user-btn *,
.dropdown-menu .dropdown-item.text-danger *,
.dropdown-menu .dropdown-item[class*="text-danger"] *,
.dropdown-menu .dropdown-item.delete-user-btn * {
  color: inherit !important;
}

.dropdown-item.text-danger:hover,
.dropdown-item.text-danger:focus,
.dropdown-item.text-danger:focus-visible,
.dropdown-item[class*="text-danger"]:hover,
.dropdown-item[class*="text-danger"]:focus,
.dropdown-item[class*="text-danger"]:focus-visible,
.dropdown-item.delete-user-btn:hover,
.dropdown-item.delete-user-btn:focus,
.dropdown-menu .dropdown-item.text-danger:hover,
.dropdown-menu .dropdown-item.text-danger:focus,
.dropdown-menu .dropdown-item.text-danger:focus-visible,
.dropdown-menu .dropdown-item[class*="text-danger"]:hover,
.dropdown-menu .dropdown-item[class*="text-danger"]:focus,
.dropdown-menu .dropdown-item[class*="text-danger"]:focus-visible,
.dropdown-menu .dropdown-item.delete-user-btn:hover,
.dropdown-menu .dropdown-item.delete-user-btn:focus {
  color: var(--bs-danger, #ff3e1d) !important;
  background-color: rgba(var(--bs-danger-rgb, 255, 62, 29), 0.12) !important;
}

.dropdown-item.text-danger:active,
.dropdown-item.text-danger.active,
.dropdown-item[class*="text-danger"]:active,
.dropdown-item[class*="text-danger"].active,
.dropdown-item.delete-user-btn:active,
.dropdown-item.delete-user-btn.active,
.dropdown-menu .dropdown-item.text-danger:active,
.dropdown-menu .dropdown-item.text-danger.active,
.dropdown-menu .dropdown-item[class*="text-danger"]:active,
.dropdown-menu .dropdown-item[class*="text-danger"].active,
.dropdown-menu .dropdown-item.delete-user-btn:active,
.dropdown-menu .dropdown-item.delete-user-btn.active {
  color: var(--bs-danger, #ff3e1d) !important;
  background-color: rgba(var(--bs-danger-rgb, 255, 62, 29), 0.22) !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Dark Theme explicit bg-label-danger contrast */
[data-bs-theme="dark"] .dropdown-item.text-danger:hover,
[data-bs-theme="dark"] .dropdown-item.text-danger:focus,
[data-bs-theme="dark"] .dropdown-item[class*="text-danger"]:hover,
[data-bs-theme="dark"] .dropdown-item[class*="text-danger"]:focus,
[data-bs-theme="dark"] .dropdown-item.delete-user-btn:hover,
[data-bs-theme="dark"] .dropdown-menu .dropdown-item.text-danger:hover,
[data-bs-theme="dark"] .dropdown-menu .dropdown-item.text-danger:focus,
[data-bs-theme="dark"] .dropdown-menu .dropdown-item[class*="text-danger"]:hover,
[data-bs-theme="dark"] .dropdown-menu .dropdown-item[class*="text-danger"]:focus,
[data-bs-theme="dark"] .dropdown-menu .dropdown-item.delete-user-btn:hover {
  color: var(--bs-danger-light, #ff5b40) !important;
  background-color: rgba(var(--bs-danger-rgb, 255, 62, 29), 0.16) !important;
}

[data-bs-theme="dark"] .dropdown-item.text-danger:active,
[data-bs-theme="dark"] .dropdown-item.text-danger.active,
[data-bs-theme="dark"] .dropdown-item[class*="text-danger"]:active,
[data-bs-theme="dark"] .dropdown-item[class*="text-danger"].active,
[data-bs-theme="dark"] .dropdown-item.delete-user-btn:active,
[data-bs-theme="dark"] .dropdown-menu .dropdown-item.text-danger:active,
[data-bs-theme="dark"] .dropdown-menu .dropdown-item.text-danger.active,
[data-bs-theme="dark"] .dropdown-menu .dropdown-item[class*="text-danger"]:active,
[data-bs-theme="dark"] .dropdown-menu .dropdown-item[class*="text-danger"].active,
[data-bs-theme="dark"] .dropdown-menu .dropdown-item.delete-user-btn:active {
  color: var(--bs-danger-light, #ff5b40) !important;
  background-color: rgba(var(--bs-danger-rgb, 255, 62, 29), 0.26) !important;
  box-shadow: none !important;
  outline: none !important;
}
