/**
 * VisionSmart — Bootstrap 5–aligned components (scoped under .vs-ds)
 * Does not replace AdminLTE/Bootstrap 3 globally.
 */
@import url('vs-tokens.css');

/* ── Scope base ── */
.vs-ds {
  font-family: var(--vs-font);
  font-size: var(--vs-text-base);
  line-height: 1.5;
  color: var(--vs-text);
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}

.vs-ds *,
.vs-ds *::before,
.vs-ds *::after {
  box-sizing: border-box;
}

.vs-ds .text-muted { color: var(--vs-text-muted) !important; }
.vs-ds .font-monospace { font-family: var(--vs-font-mono); font-variant-numeric: tabular-nums; }

/* ── Buttons (BS5 API) ── */
.vs-ds .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--vs-space-2);
  min-height: var(--vs-touch-min);
  padding: 0.5rem 1rem;
  font-size: var(--vs-text-base);
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--vs-radius-sm);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
  user-select: none;
  white-space: nowrap;
}

.vs-ds .btn:active:not(:disabled) { transform: scale(0.98); }
.vs-ds .btn:disabled, .vs-ds .btn.disabled { opacity: 0.55; pointer-events: none; }
.vs-ds .btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(0, 173, 239, 0.25); }

.vs-ds .btn-primary {
  color: #fff;
  background: var(--vs-primary);
  border-color: var(--vs-primary);
}
.vs-ds .btn-primary:hover { background: var(--vs-primary-hover); border-color: var(--vs-primary-hover); color: #fff; }

.vs-ds .btn-secondary {
  color: var(--vs-text);
  background: var(--vs-surface);
  border-color: var(--vs-border-strong);
}
.vs-ds .btn-secondary:hover { background: var(--vs-surface-2); color: var(--vs-text); }

.vs-ds .btn-outline-primary {
  color: var(--vs-primary-hover);
  background: transparent;
  border-color: var(--vs-primary);
}
.vs-ds .btn-outline-primary:hover { color: #fff; background: var(--vs-primary); }

.vs-ds .btn-outline-secondary {
  color: var(--vs-text-muted);
  background: transparent;
  border-color: var(--vs-border-strong);
}
.vs-ds .btn-outline-secondary:hover {
  color: var(--vs-text);
  background: var(--vs-surface-2);
  border-color: var(--vs-border-strong);
}

.vs-ds .btn-danger { color: #fff; background: var(--vs-danger); border-color: var(--vs-danger); }
.vs-ds .btn-success { color: #fff; background: var(--vs-success); border-color: var(--vs-success); }

.vs-ds .btn-brand {
  color: #fff;
  background: var(--vs-gradient-brand);
  border: 0;
  box-shadow: var(--vs-shadow);
}
.vs-ds .btn-brand:hover { color: #fff; filter: brightness(1.05); }

.vs-ds .btn-ghost {
  color: var(--vs-primary-hover);
  background: transparent;
  border-color: transparent;
}
.vs-ds .btn-ghost:hover { background: var(--vs-cyan-50); }

.vs-ds .btn-sm { min-height: 36px; padding: 0.35rem 0.75rem; font-size: var(--vs-text-xs); }
.vs-ds .btn-lg { min-height: 48px; padding: 0.65rem 1.25rem; font-size: var(--vs-text-md); }
.vs-ds .btn-icon {
  width: var(--vs-touch-min);
  min-width: var(--vs-touch-min);
  padding: 0;
  border-radius: var(--vs-radius-full);
}

.vs-ds .btn-group { display: inline-flex; gap: 0; }
.vs-ds .btn-group .btn { border-radius: 0; }
.vs-ds .btn-group .btn:first-child { border-radius: var(--vs-radius-sm) 0 0 var(--vs-radius-sm); }
.vs-ds .btn-group .btn:last-child { border-radius: 0 var(--vs-radius-sm) var(--vs-radius-sm) 0; }

/* ── Forms ── */
.vs-ds .form-label {
  display: block;
  margin-bottom: var(--vs-space-1);
  font-size: var(--vs-text-sm);
  font-weight: 700;
  color: var(--vs-text);
}

.vs-ds .form-text {
  margin-top: var(--vs-space-1);
  font-size: var(--vs-text-xs);
  color: var(--vs-text-muted);
}

.vs-ds .form-control,
.vs-ds .form-select {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 0.5rem 0.75rem;
  font-size: var(--vs-text-base);
  font-weight: 500;
  color: var(--vs-text);
  background: var(--vs-surface-2);
  border: 1px solid var(--vs-border);
  border-radius: var(--vs-radius-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.vs-ds.vs-ds-admin .form-control,
.vs-ds.vs-ds-admin .form-select {
  min-height: 40px;
  font-size: var(--vs-text-sm);
}

.vs-ds .form-control:focus,
.vs-ds .form-select:focus {
  outline: none;
  border-color: var(--vs-primary);
  box-shadow: 0 0 0 3px rgba(0, 173, 239, 0.15);
  background: var(--vs-surface);
}

.vs-ds .form-control.is-invalid,
.vs-ds .was-validated .form-control:invalid {
  border-color: var(--vs-danger);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.vs-ds .invalid-feedback {
  display: none;
  margin-top: var(--vs-space-1);
  font-size: var(--vs-text-xs);
  font-weight: 600;
  color: #b91c1c;
}
.vs-ds .was-validated .form-control:invalid ~ .invalid-feedback,
.vs-ds .form-control.is-invalid ~ .invalid-feedback { display: block; }

.vs-ds .input-group {
  display: flex;
  align-items: stretch;
}
.vs-ds .input-group .form-control { border-radius: 0; flex: 1; }
.vs-ds .input-group .form-control:first-child { border-radius: var(--vs-radius-sm) 0 0 var(--vs-radius-sm); }
.vs-ds .input-group .form-control:last-child { border-radius: 0 var(--vs-radius-sm) var(--vs-radius-sm) 0; }
.vs-ds .input-group-text {
  display: flex;
  align-items: center;
  padding: 0 0.75rem;
  font-size: var(--vs-text-sm);
  color: var(--vs-text-muted);
  background: var(--vs-surface-2);
  border: 1px solid var(--vs-border);
}

.vs-ds .form-check {
  display: flex;
  align-items: center;
  gap: var(--vs-space-2);
  min-height: var(--vs-touch-min);
}
.vs-ds .form-check-input {
  width: 1.125rem;
  height: 1.125rem;
  accent-color: var(--vs-primary);
}

/* ── Cards ── */
.vs-ds .card {
  background: var(--vs-surface);
  border: 1px solid var(--vs-border);
  border-radius: var(--vs-radius-lg);
  box-shadow: var(--vs-shadow-sm);
  overflow: hidden;
}

.vs-ds .card-elevated {
  box-shadow: var(--vs-shadow);
  position: relative;
}
.vs-ds .card-elevated::before {
  content: "";
  display: block;
  height: 3px;
  background: var(--vs-gradient-brand);
}

.vs-ds .card-header {
  padding: var(--vs-space-4);
  background: var(--vs-surface);
  border-bottom: 1px solid var(--vs-border);
  font-weight: 700;
  font-size: var(--vs-text-lg);
}

.vs-ds .card-body { padding: var(--vs-space-4); }
.vs-ds .card-footer {
  padding: var(--vs-space-3) var(--vs-space-4);
  background: var(--vs-surface-2);
  border-top: 1px solid var(--vs-border);
}

.vs-ds .card-stat {
  color: #fff;
  border: 0;
  min-height: 88px;
}
.vs-ds .card-stat .card-body { padding: var(--vs-space-3) var(--vs-space-4); }
.vs-ds .card-stat .stat-label {
  font-size: var(--vs-text-xs);
  font-weight: 700;
  text-transform: uppercase;
  opacity: 0.9;
  letter-spacing: 0.03em;
}
.vs-ds .card-stat .stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.vs-ds .card-stat-left { background: var(--vs-gradient-stat-left); }
.vs-ds .card-stat-right { background: var(--vs-gradient-stat-right); }

/* ── Tables ── */
.vs-ds .table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--vs-radius);
  border: 1px solid var(--vs-border);
}

.vs-ds .table {
  width: 100%;
  margin-bottom: 0;
  border-collapse: collapse;
  font-size: var(--vs-text-sm);
}

.vs-ds .table thead th {
  padding: 0.65rem 0.75rem;
  font-size: var(--vs-text-xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #374151;
  background: var(--vs-surface-2);
  border-bottom: 1px solid var(--vs-border);
  white-space: nowrap;
}

.vs-ds .table tbody td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--vs-border);
  vertical-align: middle;
}

.vs-ds .table tbody tr:last-child td { border-bottom: 0; }
.vs-ds .table tbody tr:hover td { background: #f8fbff; }
.vs-ds .table-striped tbody tr:nth-child(even) td { background: #fbfdff; }
.vs-ds .table td.num, .vs-ds .table th.num { text-align: right; font-variant-numeric: tabular-nums; }

.vs-ds .table-dark thead th {
  background: var(--vs-navy-900);
  color: #fff;
  border-color: var(--vs-navy-800);
}

/* ── Badges ── */
.vs-ds .badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.2em 0.65em;
  font-size: var(--vs-text-xs);
  font-weight: 700;
  line-height: 1.4;
  border-radius: var(--vs-radius-full);
  white-space: nowrap;
}

.vs-ds .badge-primary { background: var(--vs-cyan-50); color: var(--vs-primary-hover); }
.vs-ds .badge-success, .vs-ds .bg-success { background: #dcfce7 !important; color: #16a34a !important; }
.vs-ds .badge-danger, .vs-ds .bg-danger { background: #fee2e2 !important; color: #dc2626 !important; }
.vs-ds .badge-warning, .vs-ds .bg-warning { background: #fef3c7 !important; color: #b45309 !important; }
.vs-ds .badge-info, .vs-ds .bg-info { background: #e0f2fe !important; color: #0369a1 !important; }
.vs-ds .badge-muted, .vs-ds .bg-secondary { background: #f1f5f9 !important; color: var(--vs-text-muted) !important; }

/* ── Alerts ── */
.vs-ds .alert {
  position: relative;
  padding: var(--vs-space-3) var(--vs-space-4);
  margin-bottom: var(--vs-space-3);
  border: 1px solid transparent;
  border-radius: var(--vs-radius-sm);
  font-size: var(--vs-text-sm);
  font-weight: 600;
}

.vs-ds .alert-success { color: #166534; background: #dcfce7; border-color: #bbf7d0; }
.vs-ds .alert-danger { color: #991b1b; background: #fee2e2; border-color: #fecaca; }
.vs-ds .alert-warning { color: #92400e; background: #fef3c7; border-color: #fde68a; }
.vs-ds .alert-info { color: #1e3a8a; background: #dbeafe; border-color: #bfdbfe; }

.vs-ds .alert-dismissible { padding-right: 2.5rem; }
.vs-ds .alert .btn-close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 1.25rem;
  height: 1.25rem;
  padding: 0;
  border: 0;
  background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/1em no-repeat;
  opacity: 0.5;
  cursor: pointer;
}
.vs-ds .alert .btn-close:hover { opacity: 0.85; }

.vs-ds .btn-close {
  width: 1.25rem;
  height: 1.25rem;
  padding: 0;
  border: 0;
  background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/1em no-repeat;
  opacity: 0.55;
  cursor: pointer;
}
.vs-ds .btn-close:hover { opacity: 0.85; }

/* ── Modals ── */
.vs-ds .modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1050;
  background: var(--vs-overlay);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.vs-ds .modal-backdrop.show { opacity: 1; visibility: visible; }

.vs-ds .modal {
  position: fixed;
  inset: 0;
  z-index: 1055;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--vs-space-4);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.vs-ds .modal.show { opacity: 1; visibility: visible; pointer-events: auto; }

.vs-ds .modal-dialog {
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 2rem);
  display: flex;
  flex-direction: column;
}

.vs-ds .modal-content {
  background: var(--vs-surface);
  border-radius: var(--vs-radius-lg);
  box-shadow: var(--vs-shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: inherit;
}

.vs-ds .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--vs-space-4);
  border-bottom: 1px solid var(--vs-border);
}
.vs-ds .modal-title { margin: 0; font-size: var(--vs-text-lg); font-weight: 800; }
.vs-ds .modal-body { padding: var(--vs-space-4); overflow-y: auto; flex: 1; }
.vs-ds .modal-footer {
  display: flex;
  flex-wrap: wrap;
  gap: var(--vs-space-2);
  justify-content: flex-end;
  padding: var(--vs-space-3) var(--vs-space-4);
  border-top: 1px solid var(--vs-border);
  background: var(--vs-surface-2);
}

@media (max-width: 767.98px) {
  .vs-ds .modal-sheet .modal-dialog {
    align-self: flex-end;
    max-width: 100%;
    margin: 0;
  }
  .vs-ds .modal-sheet .modal-content {
    border-radius: var(--vs-radius-lg) var(--vs-radius-lg) 0 0;
  }
  .vs-ds .modal-sheet.modal { align-items: flex-end; padding: 0; }
}

/* ── Loaders ── */
.vs-ds .spinner-border {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  border: 0.2em solid var(--vs-cyan-50);
  border-top-color: var(--vs-primary);
  border-radius: 50%;
  animation: vs-ds-spin 0.7s linear infinite;
}
.vs-ds .spinner-border-sm { width: 1.25rem; height: 1.25rem; border-width: 0.15em; }

.vs-ds .vs-loading-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.75);
  z-index: 10;
  border-radius: inherit;
}

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

/* ── Skeletons ── */
.vs-ds .placeholder,
.vs-ds .vs-skeleton {
  display: block;
  background: linear-gradient(90deg, #eef2f7 25%, #f8fafc 50%, #eef2f7 75%);
  background-size: 200% 100%;
  animation: vs-ds-shimmer 1.2s ease-in-out infinite;
  border-radius: var(--vs-radius-sm);
}

.vs-ds .vs-skeleton-text { height: 12px; margin-bottom: var(--vs-space-2); }
.vs-ds .vs-skeleton-text.w-75 { width: 75%; }
.vs-ds .vs-skeleton-text.w-50 { width: 50%; }
.vs-ds .vs-skeleton-title { height: 20px; width: 40%; margin-bottom: var(--vs-space-3); }
.vs-ds .vs-skeleton-avatar {
  width: var(--vs-touch-min);
  height: var(--vs-touch-min);
  border-radius: var(--vs-radius-full);
}
.vs-ds .vs-skeleton-card { height: 88px; border-radius: var(--vs-radius); }

@keyframes vs-ds-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .vs-ds .spinner-border,
  .vs-ds .placeholder,
  .vs-ds .vs-skeleton { animation: none; }
}

/* ── Filters ── */
.vs-ds .vs-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--vs-space-3);
  padding: var(--vs-space-3);
  background: var(--vs-surface);
  border: 1px solid var(--vs-border);
  border-radius: var(--vs-radius);
  margin-bottom: var(--vs-space-4);
}

.vs-ds .vs-filter-bar .filter-field {
  flex: 1 1 140px;
  min-width: 120px;
}

.vs-ds .vs-filter-bar .filter-actions {
  display: flex;
  gap: var(--vs-space-2);
  flex: 0 0 auto;
}

.vs-ds .vs-search-input {
  position: relative;
}
.vs-ds .vs-search-input .bi {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--vs-text-muted);
  pointer-events: none;
}
.vs-ds .vs-search-input .form-control {
  padding-left: 2.25rem;
}

/* ── Pagination ── */
.vs-ds .pagination {
  display: flex;
  flex-wrap: wrap;
  gap: var(--vs-space-1);
  list-style: none;
  padding: 0;
  margin: var(--vs-space-4) 0 0;
}

.vs-ds .page-item .page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: var(--vs-touch-min);
  min-height: 36px;
  padding: 0 0.65rem;
  font-size: var(--vs-text-sm);
  font-weight: 600;
  color: var(--vs-text);
  text-decoration: none;
  background: var(--vs-surface);
  border: 1px solid var(--vs-border);
  border-radius: var(--vs-radius-sm);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.vs-ds .page-item .page-link:hover {
  background: var(--vs-cyan-50);
  border-color: var(--vs-primary);
  color: var(--vs-primary-hover);
}

.vs-ds .page-item.active .page-link {
  background: var(--vs-primary);
  border-color: var(--vs-primary);
  color: #fff;
}

.vs-ds .page-item.disabled .page-link {
  opacity: 0.45;
  pointer-events: none;
}

/* ── Navigation ── */
.vs-ds .vs-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--vs-header-member);
  padding: 0 var(--vs-space-4);
  background: var(--vs-surface);
  border-bottom: 1px solid var(--vs-border);
  box-shadow: var(--vs-shadow-sm);
}

.vs-ds .vs-topbar-brand {
  display: flex;
  align-items: center;
  gap: var(--vs-space-2);
  font-weight: 800;
  color: var(--vs-text);
  text-decoration: none;
}
.vs-ds .vs-topbar-brand img { height: 36px; width: auto; }

.vs-ds .vs-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1030;
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  min-height: var(--vs-bottom-nav);
  padding-bottom: env(safe-area-inset-bottom, 0);
  background: var(--vs-surface);
  border-top: 1px solid var(--vs-border);
  box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.06);
}

.vs-ds .vs-bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: var(--vs-space-2);
  font-size: 0.625rem;
  font-weight: 700;
  color: var(--vs-text-muted);
  text-decoration: none;
  min-height: var(--vs-bottom-nav);
}
.vs-ds .vs-bottom-nav a .bi { font-size: 1.25rem; }
.vs-ds .vs-bottom-nav a.active { color: var(--vs-primary-hover); }
.vs-ds .vs-bottom-nav a.active .bi { color: var(--vs-primary); }

.vs-ds .vs-sidebar-nav {
  list-style: none;
  margin: 0;
  padding: var(--vs-space-2);
}

.vs-ds .vs-sidebar-nav a {
  display: flex;
  align-items: center;
  gap: var(--vs-space-3);
  min-height: var(--vs-touch-min);
  padding: 0 var(--vs-space-3);
  border-radius: var(--vs-radius-sm);
  font-size: var(--vs-text-sm);
  font-weight: 600;
  color: #cbd5e1;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.vs-ds .vs-sidebar-nav a:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.vs-ds .vs-sidebar-nav a.active {
  background: rgba(0, 173, 239, 0.18);
  color: #fff;
  box-shadow: inset 3px 0 0 var(--vs-primary);
}

.vs-ds .vs-nav-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--vs-space-1);
  border-bottom: 1px solid var(--vs-border);
  margin-bottom: var(--vs-space-4);
  padding: 0;
  list-style: none;
}

.vs-ds .vs-nav-tabs .nav-link {
  display: block;
  padding: var(--vs-space-2) var(--vs-space-4);
  font-size: var(--vs-text-sm);
  font-weight: 600;
  color: var(--vs-text-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.vs-ds .vs-nav-tabs .nav-link.active {
  color: var(--vs-primary-hover);
  border-bottom-color: var(--vs-primary);
}

.vs-ds .has-bottom-nav { padding-bottom: calc(var(--vs-bottom-nav) + var(--vs-space-4)); }

/* ── Page header (shared; works under v1 AdminLTE + v2 shell) ── */
.vs-page-header {
  padding: 12px 15px;
  margin-bottom: 0;
}

.vs-page-header .vs-page-title,
.vs-page-header h1.vs-page-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--vs-text, #0F172A);
}

.vs-page-header .vs-page-subtitle {
  margin: 4px 0 0;
  font-size: 0.8125rem;
  color: var(--vs-text-muted, #64748B);
}

.vs-page-header .vs-page-breadcrumb .breadcrumb,
.vs-page-header ol.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  background: transparent;
  font-size: 0.75rem;
  gap: 0.25rem;
}

.vs-page-header .breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  float: none;
  padding-right: 0.35rem;
  color: var(--vs-text-muted, #64748B);
}

.vs-page-header .breadcrumb-item a {
  color: var(--vs-primary, #00ADEF);
  text-decoration: none;
}

.vs-page-header .breadcrumb-item a .bi {
  margin-right: 0.2rem;
}

.vs-page-header .breadcrumb-item.active {
  color: var(--vs-text-muted, #64748B);
}

@media (max-width: 767px) {
  .vs-page-header--mobile-hide {
    display: none;
  }
}

/* BS5-ish centered form layout helpers under legacy grid */
.vs-panel-form-layout .row.justify-content-center {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.vs-panel-form-layout .row.g-3 {
  margin-left: -0.5rem;
  margin-right: -0.5rem;
}

.vs-panel-form-layout .row.g-3 > [class*="col-"] {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  box-sizing: border-box;
}

.vs-panel-form-layout .col-12 {
  flex: 0 0 100%;
  max-width: 100%;
  width: 100%;
}

@media (min-width: 768px) {
  .vs-panel-form-layout .col-md-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
  }
}

@media (min-width: 992px) {
  .vs-panel-form-layout .col-lg-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

/* ── Utilities ── */
.vs-ds .d-flex { display: flex; }
.vs-ds .flex-wrap { flex-wrap: wrap; }
.vs-ds .gap-2 { gap: var(--vs-space-2); }
.vs-ds .gap-3 { gap: var(--vs-space-3); }
.vs-ds .justify-content-between { justify-content: space-between; }
.vs-ds .align-items-center { align-items: center; }
.vs-ds .mb-0 { margin-bottom: 0; }
.vs-ds .mb-3 { margin-bottom: var(--vs-space-3); }
.vs-ds .mb-4 { margin-bottom: var(--vs-space-4); }
.vs-ds .w-100 { width: 100%; }
.vs-ds .visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (min-width: 768px) {
  .vs-ds .vs-bottom-nav { display: none; }
  .vs-ds .has-bottom-nav { padding-bottom: 0; }
}

@media (max-width: 767.98px) {
  .vs-ds .vs-filter-bar .filter-actions { width: 100%; }
  .vs-ds .vs-filter-bar .filter-actions .btn { flex: 1; }
}
