/* Paperless-ngx (docs.bt): follows the OS light/dark scheme (data-bs-theme=auto), so only the accent is forced.
   the Angular UI derives every accent from --pngx-primary (hue, saturation) and
   --pngx-primary-lightness, so one override paints buttons, links, active nav, badges and toasts BT navy (#1d3767). */
:root, body, [data-color-scheme] {
  --pngx-primary: 219, 56% !important;
  --pngx-primary-lightness: 26% !important;
  --pngx-primary-text-contrast: #fff !important;
  --bs-link-color: #1d3767 !important;
  --bs-link-hover-color: #2f5aa8 !important;
}
body { font-family: "Roboto", "Noto Sans Hebrew", "Segoe UI", Arial, sans-serif !important; }
/* sidebar + top bar: navy chrome like the other apps */
.navbar, nav.navbar, .sidebar { background: #1d3767 !important; }
.navbar .navbar-brand, .navbar .navbar-brand *, .navbar .nav-link, .navbar .text-body, .navbar .form-control::placeholder { color: #fff !important; }
.navbar .navbar-brand img { max-height: 32px !important; width: auto !important; }
.sidebar .nav-link, .sidebar .sidebar-heading, .sidebar .nav-link svg { color: #dfe6f3 !important; }
.sidebar .nav-link.active, .sidebar .nav-link:hover { color: #fff !important; background: rgba(255, 255, 255, .08) !important; border-radius: 6px; }
.sidebar .nav-link.active svg { color: #9fc5ff !important; }
/* login page (only seen for a split second before the Authentik redirect) */
.form-signin .btn-primary, .btn-primary { background: #1d3767 !important; border-color: #1d3767 !important; }
.btn-primary:hover { background: #2f5aa8 !important; border-color: #2f5aa8 !important; }
/* room for the staff bar: the sidebar is position: sticky with a 100vh height */
html.bt-has-bar .sidebar { height: calc(100vh - 36px) !important; }
html.bt-has-bar body { padding-bottom: 0 !important; }
html.bt-has-bar .toasts, html.bt-has-bar pngx-toasts { bottom: 44px !important; }
