/*
 * components.css — component library for Phase 8 redesign.
 * Consumes tokens from tokens.css. Must load AFTER tokens.css.
 * Layout:
 *   1. Buttons  (this plan 08-04)
 *   2. Badges   (this plan 08-04)
 *   3. Form controls (this plan 08-04)
 *   4. Tables   (Plan 08-05 appends)
 *   5. Modals   (Plan 08-05 appends)
 *   6. Sidebar  (Plan 08-05 appends)
 *   7. Wizard stepper (Plan 08-05 appends)
 *   8. Toast    (Plan 08-06 appends)
 *   9. Empty state (Plan 08-06 appends)
 *   10. Skeleton + shimmer (Plan 08-06 appends)
 * No bare hex allowed outside :root of tokens.css — all colors via var(--color-*).
 */

/* ==========================================================================
 * 1. BUTTONS — 4 variants × 4 sizes
 * ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  font-family: var(--font-sans);
  font-weight: var(--weight-medium);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  transition: background-color var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.btn:active:not(:disabled) {
  transform: scale(0.98);
}

.btn:focus-visible {
  outline: 2px solid var(--color-focus-ring);
  outline-offset: 2px;
}

/* Sizes */
.btn-sm { height: 28px; padding: 0 10px; font-size: var(--text-sm); }
.btn-md { height: 32px; padding: 0 12px; font-size: var(--text-sm); }
.btn-lg { height: 36px; padding: 0 16px; font-size: var(--text-base); }
.btn-xl { height: 40px; padding: 0 20px; font-size: var(--text-md); }

/* Default size = md when no size modifier */
.btn:not(.btn-sm):not(.btn-md):not(.btn-lg):not(.btn-xl) {
  height: 32px;
  padding: 0 12px;
  font-size: var(--text-sm);
}

/* Variant: primary */
.btn-primary {
  background: var(--color-accent);
  color: var(--color-text-primary);
  border-color: var(--color-accent);
}
.btn-primary:hover:not(:disabled) {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
}
.btn-primary:active:not(:disabled) {
  background: var(--color-accent-active);
}

/* Variant: secondary (default neutral) */
.btn-secondary,
.btn-outline {
  background: var(--color-bg-surface-2);
  color: var(--color-text-primary);
  border-color: var(--color-border-default);
}
.btn-secondary:hover:not(:disabled),
.btn-outline:hover:not(:disabled) {
  background: var(--color-bg-elevated);
  border-color: var(--color-border-strong);
}

/* Variant: ghost (transparent, subtle hover) */
.btn-ghost {
  background: transparent;
  color: var(--color-text-secondary);
  border-color: transparent;
}
.btn-ghost:hover:not(:disabled) {
  background: var(--color-hover-bg);
  color: var(--color-text-primary);
}

/* Variant: danger */
.btn-danger {
  background: var(--color-danger);
  color: var(--color-text-primary);
  border-color: var(--color-danger);
}
.btn-danger:hover:not(:disabled) {
  background: var(--color-danger-text);
  border-color: var(--color-danger-text);
}

/* Variant: success (used on scrape/sync buttons per CURRENT_UI_INVENTORY §2) */
.btn-success {
  background: var(--color-success);
  color: var(--color-text-primary);
  border-color: var(--color-success);
}
.btn-success:hover:not(:disabled) {
  background: var(--color-success-text);
  color: var(--color-text-inverse);
  border-color: var(--color-success-text);
}

/* Legacy size alias: btn-xs (5 uses in current index.html) — map to btn-sm */
.btn-xs { height: 24px; padding: 0 8px; font-size: var(--text-xs); }

/* ==========================================================================
 * 2. BADGES — 4 semantic + neutral + dot
 * ========================================================================== */

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  height: 20px;
  padding: 0 var(--space-2);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  border-radius: var(--radius-full);
  white-space: nowrap;
  line-height: 1;
}

.badge-sm { height: 16px; padding: 0 var(--space-1) 0 var(--space-1); font-size: 10px; }
.badge-lg { height: 24px; padding: 0 10px; font-size: var(--text-sm); }

.badge-success { background: var(--color-success-bg); color: var(--color-success-text); }
.badge-warning { background: var(--color-warning-bg); color: var(--color-warning-text); }
.badge-danger  { background: var(--color-danger-bg);  color: var(--color-danger-text); }
.badge-info    { background: var(--color-info-bg);    color: var(--color-info-text); }
.badge-neutral { background: var(--color-hover-bg-strong); color: var(--color-text-secondary); }

/* Legacy aliases used by existing JS (CURRENT_UI_INVENTORY §2): badge-green / -yellow / -blue */
.badge-green  { background: var(--color-success-bg); color: var(--color-success-text); }
.badge-yellow { background: var(--color-warning-bg); color: var(--color-warning-text); }
.badge-red    { background: var(--color-danger-bg);  color: var(--color-danger-text); }
.badge-blue   { background: var(--color-info-bg);    color: var(--color-info-text); }
.badge-gray   { background: var(--color-hover-bg-strong); color: var(--color-text-tertiary); }

/* Dot prefix (e.g., status indicator) */
.badge-dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* ==========================================================================
 * 3. FORM CONTROLS — input, select, textarea
 * ========================================================================== */

.input,
.select,
.textarea,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="url"],
input[type="date"],
input[type="datetime-local"],
input[type="time"],
input[type="search"],
select,
textarea {
  width: 100%;
  height: 32px;
  padding: 0 10px;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--color-text-primary);
  background: var(--color-bg-surface-1);
  border: 1px solid var(--color-border-default);
  border-radius: var(--radius-md);
  transition: border-color var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out);
  box-sizing: border-box;
}

.input::placeholder,
input::placeholder,
textarea::placeholder {
  color: var(--color-text-tertiary);
}

.input:hover,
input[type]:not(:disabled):hover,
select:not(:disabled):hover,
textarea:not(:disabled):hover {
  border-color: var(--color-border-strong);
}

.input:focus-visible,
input[type]:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-focus-ring-alpha);
}

.input:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.input[aria-invalid="true"],
input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--color-danger);
}
.input[aria-invalid="true"]:focus-visible,
input[aria-invalid="true"]:focus-visible,
select[aria-invalid="true"]:focus-visible,
textarea[aria-invalid="true"]:focus-visible {
  box-shadow: 0 0 0 3px var(--color-danger-bg);
}

textarea,
.textarea {
  height: auto;
  min-height: 72px;
  padding: var(--space-2) 10px;
  resize: vertical;
}

/* Select caret — default arrow visible, only normalize background */
select {
  cursor: pointer;
}

/* Form field label helpers (used across all page forms) */
.form-group,
.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin-bottom: var(--space-3);
}

.form-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--color-text-secondary);
}
.form-label .required {
  color: var(--color-danger);
  margin-left: 2px;
}
.form-helper,
.hint {
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
  margin-top: 2px;
}
.form-error {
  font-size: var(--text-xs);
  color: var(--color-danger-text);
  margin-top: var(--space-1);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}
.form-error::before {
  content: "⚠";
  font-size: var(--text-sm);
}

/* ==========================================================================
 * 4. TABLES — dense default (D-04: row 32px, cell padding 8px, no toggle)
 * ========================================================================== */

.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  font-variant-numeric: tabular-nums;
}

.table thead th {
  height: var(--table-header-h);
  padding: 0 var(--table-cell-px);
  text-align: left;
  font-weight: var(--weight-medium);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--color-text-tertiary);
  background: var(--color-bg-surface-1);
  border-bottom: 1px solid var(--color-border-default);
  position: sticky;
  top: 0;
  z-index: 1;
  white-space: nowrap;
}

.table tbody td {
  height: var(--table-row-h);
  padding: var(--table-cell-py) var(--table-cell-px);
  border-bottom: 1px solid var(--color-border-subtle);
  color: var(--color-text-secondary);
  vertical-align: middle;
}

.table tbody tr {
  transition: background-color var(--duration-fast) var(--ease-out);
}
.table tbody tr:hover td {
  background: var(--color-hover-bg);
}

.table td.num,
.table th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum';
}

.table td.mono {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
}

/* Empty/loading-row fallback compat (matches existing .loading-row in current HTML) */
.table .loading-row td,
.table .empty-row td {
  text-align: center;
  color: var(--color-text-tertiary);
  padding: var(--space-6) var(--table-cell-px);
}

/* ==========================================================================
 * 5. MODAL — overlay, shell, size variants, animations
 * ========================================================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--color-bg-overlay);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  justify-content: center;
  align-items: center;
  animation: modal-overlay-in var(--duration-slow) var(--ease-out);
}
.modal-overlay.active,
.modal-overlay.open {
  display: flex;
}

.modal {
  position: relative;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border-default);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  z-index: 1001;
  animation: modal-enter var(--duration-slow) var(--ease-out);
  color: var(--color-text-primary);
}

/* Size variants */
.modal-sm   { width: 400px; }
.modal-md   { width: 560px; }
.modal-lg   { width: 800px; }
.modal-xl   { width: 960px; }
.modal-full { width: 90vw; max-width: 1200px; }

/* Fallback size when no variant class is present — matches current wizard (900px) */
.modal:not(.modal-sm):not(.modal-md):not(.modal-lg):not(.modal-xl):not(.modal-full) {
  width: 900px;
  max-width: 90vw;
}

.modal-header {
  padding: var(--space-5) var(--space-6) var(--space-4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--color-border-subtle);
}
.modal-title {
  margin: 0;
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
}
.modal-close {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-tertiary);
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: var(--text-xl);
  line-height: 1;
  transition: color var(--duration-fast) var(--ease-out),
              background-color var(--duration-fast) var(--ease-out);
}
.modal-close:hover {
  color: var(--color-text-primary);
  background: var(--color-hover-bg);
}
.modal-close:focus-visible {
  outline: 2px solid var(--color-focus-ring);
  outline-offset: 2px;
}

.modal-body {
  padding: var(--space-5) var(--space-6);
  overflow-y: auto;
  flex: 1;
  color: var(--color-text-secondary);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
}

.modal-footer {
  padding: var(--space-4) var(--space-6);
  display: flex;
  justify-content: flex-end;
  gap: var(--space-2);
  border-top: 1px solid var(--color-border-subtle);
}

@keyframes modal-overlay-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes modal-enter {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}

/* ==========================================================================
 * 6. SIDEBAR — 240px width per D-02, Linear-style active indicator
 * ========================================================================== */

.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 240px;
  padding: var(--space-5) var(--space-3);
  background: var(--color-bg-surface-1);
  border-right: 1px solid var(--color-border-subtle);
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 100;
  overflow-y: auto;
}

.sidebar .logo {
  padding: 0 var(--space-2) var(--space-5) var(--space-2);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
  letter-spacing: var(--tracking-tight);
}
.sidebar .logo span {
  color: var(--color-accent);
}

.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-item,
.sidebar-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 32px;
  padding: 0 10px;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-secondary);
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out);
}

.nav-item:hover,
.sidebar-item:hover {
  background: var(--color-hover-bg);
  color: var(--color-text-primary);
}

.nav-item:focus-visible,
.sidebar-item:focus-visible {
  outline: 2px solid var(--color-focus-ring);
  outline-offset: 2px;
}

/* Active indicator: subtle bg tint + 2px left bar (Linear D-02) */
.nav-item.active,
.sidebar-item[aria-current="page"] {
  background: var(--color-accent-subtle);
  color: var(--color-accent);
}
.nav-item.active::before,
.sidebar-item[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--color-accent);
  border-radius: var(--radius-xs);
}

.nav-item .icon,
.sidebar-item .icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: currentColor;
}

/* Main content offset for sidebar — used by index.html .main wrapper */
.main {
  margin-left: 240px;
  padding: var(--space-6) var(--space-8);
  min-height: 100vh;
}

/* ==========================================================================
 * 7. WIZARD STEPPER — active/complete indicators, separators
 * ========================================================================== */

.wizard {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.wizard-steps {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--color-border-subtle);
}

.wizard-step {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
}

.wizard-step-indicator {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-bg-surface-2);
  border: 1px solid var(--color-border-default);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--color-text-tertiary);
  transition: background-color var(--duration-base) var(--ease-out),
              border-color var(--duration-base) var(--ease-out),
              color var(--duration-base) var(--ease-out);
}

.wizard-step[data-state="active"],
.wizard-step.active {
  color: var(--color-text-primary);
}
.wizard-step[data-state="active"] .wizard-step-indicator,
.wizard-step.active .wizard-step-indicator {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-text-primary);
}

.wizard-step[data-state="complete"] .wizard-step-indicator,
.wizard-step.complete .wizard-step-indicator {
  background: var(--color-success);
  border-color: var(--color-success);
  color: var(--color-text-primary);
}

.wizard-step-separator {
  flex: 0 0 24px;
  height: 1px;
  background: var(--color-border-default);
}

.wizard-body {
  padding: var(--space-6);
  flex: 1;
  overflow-y: auto;
}

.wizard-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--color-border-subtle);
}

/* ==========================================================================
 * 8. TOAST — preserves legacy .toast.error for 116 callers (CONTEXT §6)
 * ========================================================================== */

.toast {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  min-width: 320px;
  max-width: 420px;
  padding: var(--space-3) var(--space-4);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--color-text-primary);
  z-index: 2000;
  animation: toast-in var(--duration-slow) var(--ease-spring);
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

/* Dual selector: .toast.error = current callers (toast(msg, true) sets className='toast error')
   + .toast-error = forward-compat BEM-flat form. Remove neither — CONTEXT §6 pins the signature. */
.toast.error,
.toast-error {
  border-color: var(--color-danger);
  color: var(--color-danger-text);
}

.toast.success,
.toast-success {
  border-color: var(--color-success);
  color: var(--color-success-text);
}

.toast.warning,
.toast-warning {
  border-color: var(--color-warning);
  color: var(--color-warning-text);
}

.toast.info,
.toast-info {
  border-color: var(--color-info);
  color: var(--color-info-text);
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(var(--space-5)); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
 * 9. EMPTY STATE — minimalist icon + text + 1 action (D-09)
 * ========================================================================== */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-12) var(--space-6);
  gap: var(--space-3);
  text-align: center;
  color: var(--color-text-tertiary);
}

.empty-state-icon {
  width: 32px;
  height: 32px;
  color: var(--color-text-tertiary);
  opacity: 0.6;
  margin-bottom: var(--space-2);
}

.empty-state-title {
  font-family: var(--font-sans);
  font-size: var(--text-md);
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
  margin: 0;
}

.empty-state-desc {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
  max-width: 320px;
  line-height: var(--leading-normal);
  margin: 0;
}

.empty-state-action {
  margin-top: var(--space-3);
}

/* ==========================================================================
 * 10. SKELETON + SPINNER (D-06: skeleton rows with shimmer, spinner for inline)
 * ========================================================================== */

.skeleton {
  display: block;
  background: linear-gradient(
    90deg,
    var(--color-bg-surface-2) 0%,
    var(--color-bg-elevated) 50%,
    var(--color-bg-surface-2) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
  height: 14px;
  width: 100%;
}

.skeleton-text    { height: 14px; }
.skeleton-title   { height: 18px; width: 60%; }
.skeleton-avatar  { height: 32px; width: 32px; border-radius: var(--radius-full); }
.skeleton-button  { height: 32px; width: 120px; border-radius: var(--radius-md); }

.skeleton-row {
  /* a <tr> used inside .table tbody during load; cells contain .skeleton blocks */
}
.skeleton-row td {
  padding: var(--table-cell-py) var(--table-cell-px);
  border-bottom: 1px solid var(--color-border-subtle);
}

@keyframes shimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

/* Spinner — inline actions only (D-06) */
.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid var(--color-border-default);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spin 600ms linear infinite;
  vertical-align: middle;
}
.spinner-lg { width: 24px; height: 24px; border-width: 3px; }

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
 * 11. ALERT BANNER (dashboard-level notifications; used by alerts_banner.js)
 * ========================================================================== */

.alerts-banner {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}
.alerts-banner.hidden {
  display: none;
}

.alert {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  line-height: var(--leading-snug);
}
.alert-info,
.alert.info {
  background: var(--color-info-bg);
  border-color: var(--color-info-border);
  color: var(--color-info-text);
}
.alert-success,
.alert.success {
  background: var(--color-success-bg);
  border-color: var(--color-success-border);
  color: var(--color-success-text);
}
.alert-warning,
.alert.warning {
  background: var(--color-warning-bg);
  border-color: var(--color-warning-border);
  color: var(--color-warning-text);
}
.alert-danger,
.alert.danger,
.alert-critical,
.alert.critical {
  background: var(--color-danger-bg);
  border-color: var(--color-danger-border);
  color: var(--color-danger-text);
}

.alert-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
}
.alert-body {
  flex: 1;
  color: var(--color-text-primary);
}
.alert-title {
  font-weight: var(--weight-semibold);
  margin-bottom: 2px;
}
.alert-actions {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

/* ==========================================================================
 * 12. ICON UTILITY — normalises inline SVG produced by components/icons.js
 * ========================================================================== */

.icon {
  display: inline-block;
  flex-shrink: 0;
  color: currentColor;
  vertical-align: middle;
  width: 16px;
  height: 16px;
}

/* When an icon sits inside a button or alert body, align it with the text baseline */
.btn > .icon,
.alert > .icon,
.alert-icon.icon {
  margin-right: var(--space-2);
}

/* Placeholder for unknown icon names — clearly visible during development */
.icon-unknown {
  color: var(--color-danger);
  opacity: 0.5;
}

/* ==========================================================================
 * 13. ACCESSIBILITY UTILITIES — visually-hidden content for screen readers
 *
 * Plan 08-13 (UX-03 / UX-05 WCAG 2.1 AA) — sole owner of .sr-only.
 * Used by <label class="form-label sr-only"> on inline filter inputs that
 * have no visible label text, so screen readers still announce them.
 * ========================================================================== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
