/* NetVanta on Tabler — app-level overrides and the few utilities the views
   rely on that Tabler does not ship. Theme-aware via Tabler/Bootstrap vars. */
:root { --tblr-font-sans-serif: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; }

/* Tabler Icons webfont sizing: inherit colour, sit on the text baseline. */
.ti { font-size: 1.25rem; line-height: 1; vertical-align: -0.2em; }
.btn .ti, .dropdown-item .ti, .nav-link .ti, .badge .ti { font-size: 1.1rem; }
.btn-sm .ti { font-size: 1rem; }
.navbar-vertical .nav-link-icon .ti { font-size: 1.35rem; }
.icon-md { font-size: 1.35rem !important; }

/* Utilities missing from Tabler that the views use. */
.min-w-0 { min-width: 0 !important; }
.hide-arrow::after, .hide-arrow-xs::after { display: none !important; }
.text-sm { font-size: .875rem; }

/* Sneat-era avatars: `.avatar` now comes from Tabler; keep initials crisp. */
.avatar { font-weight: 600; }

/* Page body: clearance for the floating powered-by badge. */
.page-body { padding-bottom: 5rem; }

/* Brand in the vertical sidebar. */
.navbar-brand-image { max-height: 2rem; width: auto; }
.navbar-vertical .navbar-brand { padding: .75rem 0; }

/* Card headers: let toolbars wrap on narrow screens instead of overflowing. */
.card-header { flex-wrap: wrap; row-gap: .5rem; }
.card-header .card-title { margin: 0; }

/* Dropdown menus pinned statically on phones must stay inside the viewport. */
@media (max-width: 575.98px) {
  .dropdown-menu { max-width: calc(100vw - 1.5rem); max-height: calc(100vh - 5rem); overflow-y: auto; }
}

/* Modals: full-width on phones so forms are usable with a thumb. */
@media (max-width: 575.98px) {
  .modal-dialog { margin: .5rem; }
}

/* Help code blocks (shared by every help topic). */
.help-code-header {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  background: #1f2937; color: #e5e7eb;
  border-top-left-radius: var(--tblr-border-radius); border-top-right-radius: var(--tblr-border-radius);
  padding: .4rem .5rem .4rem .75rem; min-height: 2.25rem;
}
.help-code-label-spacer { flex: 1 1 auto; }
.help-code-header .help-code-label { margin: 0; }
.help-code-header .help-copy-btn { flex: 0 0 auto; }
.help-code {
  background: #111827; color: #e5e7eb; font-size: .82rem; overflow-x: auto; white-space: pre;
  border-top-left-radius: 0 !important; border-top-right-radius: 0 !important;
}
@media print {
  .navbar, .page-header, .footer, .no-print, .help-copy-btn, .powered-by-float { display: none !important; }
  .help-code-header { background: #f2f2f2; color: #000; border: 1px solid #ccc; border-bottom: 0; }
  .help-code { color: #000; background: #f2f2f2; border: 1px solid #ccc; }
  .card { border: 1px solid #ccc !important; break-inside: avoid; }
}
