

:root {
  --bs-font-sans-serif: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ad-font-display: "Syne", var(--bs-font-sans-serif);
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6,
.navbar-brand {
  font-family: var(--ad-font-display);
  letter-spacing: -0.02em;
}
.navbar-brand { font-weight: 800; }

body { letter-spacing: -0.003em; }

html { height: 100%; }

.card { border-radius: 0.85rem; }

.card > .table-responsive { border-radius: inherit; }
.card.shadow-sm { box-shadow: 0 1px 2px rgba(0,0,0,0.18), 0 10px 28px -16px rgba(0,0,0,0.45) !important; }
[data-bs-theme="dark"] .card { border-color: rgba(255,255,255,0.06); }
[data-bs-theme="dark"] .card.shadow-sm { box-shadow: 0 1px 2px rgba(0,0,0,0.4), 0 14px 36px -18px rgba(0,0,0,0.7) !important; }

.table > thead th {
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  font-weight: 600;
  color: var(--bs-tertiary-color);
  border-bottom-color: var(--bs-border-color);
}
.table > :not(caption) > * > * { padding-top: 0.8rem; padding-bottom: 0.8rem; }

.btn, .form-control, .form-select { border-radius: 0.55rem; }
.form-control:focus, .form-select:focus {
  border-color: rgba(217,255,78,0.5);
  box-shadow: 0 0 0 0.2rem rgba(217,255,78,0.18);
}

.badge { font-weight: 600; border-radius: 0.5rem; }

[data-bs-theme="dark"] .navbar.bg-body-tertiary { border-bottom: 1px solid rgba(255,255,255,0.05); }

.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

@media (min-width: 576px) { .fs-sm-5 { font-size: 1.25rem !important; } }

@media (max-width: 767.98px) {
  .table th.col-actions, .table td.col-actions {
    position: sticky; right: 0; z-index: 2;
    box-shadow: -8px 0 8px -8px rgba(0, 0, 0, 0.35);
  }
  [data-bs-theme="dark"] .table th.col-actions,
  [data-bs-theme="dark"] .table td.col-actions { background-color: #2b3035; }
  [data-bs-theme="light"] .table th.col-actions,
  [data-bs-theme="light"] .table td.col-actions { background-color: #ffffff; }
}

@media (max-width: 575.98px) {
  main > section, main > header { padding-top: 1.75rem !important; padding-bottom: 1.75rem !important; }
  .container.px-4 { padding-left: 1rem !important; padding-right: 1rem !important; }
}

[data-bs-theme="light"] {
  --bs-body-bg: #f2f3f5;
  --bs-body-bg-rgb: 242, 243, 245;
  --bs-tertiary-bg: #ffffff;
  --bs-border-color: #e5e8ec;
  --bs-border-color-translucent: rgba(0, 0, 0, 0.075);
}
[data-bs-theme="light"] .card { background-color: #ffffff; border-color: #e8eaee; }
[data-bs-theme="light"] .navbar.bg-body-tertiary { border-bottom: 1px solid #e6e9ed; }
[data-bs-theme="light"] footer.bg-body-tertiary { border-top: 1px solid #e6e9ed; }
