/* paperless.systems – Design für die Verwaltung (paperless-ngx) */
@font-face{font-family:Ubuntu;font-weight:400;font-display:swap;src:url(/ui/fonts/ubuntu-400.woff2) format("woff2")}
@font-face{font-family:Ubuntu;font-weight:500;font-display:swap;src:url(/ui/fonts/ubuntu-500.woff2) format("woff2")}
@font-face{font-family:Ubuntu;font-weight:700;font-display:swap;src:url(/ui/fonts/ubuntu-700.woff2) format("woff2")}
:root,[data-bs-theme],body{
  --pngx-primary:352,100% !important;--pngx-primary-lightness:39% !important;
  --pngx-primary-text-contrast:#fff !important;
  --bs-font-sans-serif:Ubuntu,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  --bs-body-font-family:var(--bs-font-sans-serif);
  --bs-body-color:#1C2930;--bs-secondary-color:#5A6670;
  --bs-body-bg:#F3F5F6;--bs-light:#ffffff;--bs-light-rgb:255,255,255;
  --bs-border-color:#DFE3E6;--bs-border-radius:.5rem;--bs-border-radius-lg:.75rem;
  --pngx-bg-alt:#f7f8f9;--pngx-bg-darker:#F3F5F6;
  --pngx-body-font-size:.95rem;
}
body{font-family:var(--bs-font-sans-serif)!important;background:#F3F5F6!important;color:#1C2930}
h1,h2,h3,h4,h5,.h1,.h2,.h3,.h4,.h5{font-family:var(--bs-font-sans-serif);color:#1C2930}

/* Obere Leiste dunkel wie die Oberfläche */
.navbar.bg-primary{background:#1C2930!important;box-shadow:none!important;border-bottom:1px solid #2b3c45}
.navbar .form-control,.navbar .search-container input{background:#2b3c45!important;border-color:#37505D!important;color:#fff!important}
.navbar .form-control::placeholder{color:#a9b6bc!important}
.navbar .btn-outline-light,.navbar .btn.btn-outline-primary,.navbar .btn-outline-secondary{border-color:#C90019!important;background:#C90019!important;color:#fff!important}

/* Marke: /paperless.systems */
.navbar-brand pngx-brand-mark,.navbar-brand .brand-mark,.navbar-brand img{display:none!important}
.navbar-brand .brand-copy{margin-left:.25rem!important}
.navbar-brand .brand-title{font-size:0!important;letter-spacing:0}
.navbar-brand .brand-title::before{content:"/paperless";font-size:1.15rem;font-weight:400;color:#fff}
.navbar-brand .brand-title::after{content:".systems";font-size:1.15rem;font-weight:700;color:#fff}
.navbar-brand .byline{font-size:0!important}
.navbar-brand .byline::before{content:"Verwaltung";font-size:.62rem;letter-spacing:.14em;color:#ff6b7d;font-family:Ubuntu,sans-serif;font-weight:500}

/* Seitenleiste */
.sidebar{background:#fff!important;border-right:1px solid #DFE3E6!important;box-shadow:none!important}
.sidebar .nav-link{color:#37505D!important;border-radius:.5rem;font-weight:400}
.sidebar .nav-link:hover{background:#eef1f2!important;color:#1C2930!important}
.sidebar .nav-link.active{background:#fbe6e9!important;color:#C90019!important;font-weight:500}
.sidebar .nav-link.active svg{color:#C90019!important}
.sidebar-heading,.sidebar h6{color:#5A6670!important;letter-spacing:.12em}

/* Karten, Tabellen, Formulare */
.card{border:1px solid #DFE3E6!important;border-radius:.75rem!important;box-shadow:0 1px 2px rgba(28,41,48,.04)}
.card-header{background:#fff!important;border-bottom:1px solid #DFE3E6!important;font-weight:500}
.table{--bs-table-bg:#fff}
.table>thead th{color:#5A6670;font-weight:500;background:#f7f8f9!important}
.form-control,.form-select{border-color:#DFE3E6;border-radius:.5rem}
.form-control:focus,.form-select:focus{border-color:#37505D!important;box-shadow:0 0 0 .2rem rgba(55,80,93,.15)!important}
.btn{border-radius:.5rem}
.btn-primary{background:#C90019!important;border-color:#C90019!important;color:#fff!important}
.btn-primary:hover,.btn-primary:focus{background:#a30014!important;border-color:#a30014!important}
.btn-outline-primary,.btn-outline-secondary{color:#37505D!important;border-color:#c9d0d5!important;background:#fff!important}
.btn-outline-primary:hover,.btn-outline-secondary:hover,.btn-outline-primary.active,.btn-outline-primary:active,.btn-check:checked+.btn-outline-primary,.btn-outline-primary.show{background:#1C2930!important;border-color:#1C2930!important;color:#fff!important}
.btn-outline-primary svg,.btn-outline-secondary svg{color:inherit!important}
.badge.bg-primary,.badge.text-bg-primary{background:#C90019!important;color:#fff!important}
a{color:#C90019}
.page-header,.pngx-page-header{border-bottom-color:#DFE3E6!important}

/* Anmeldeseite (Django) */
.form-accounts,form.form-accounts{max-width:360px}
body.text-center .text-primary,.form-accounts .text-primary,svg.logo{color:#1C2930!important}

/* Zurück-Link zur Oberfläche */
#psx-back{position:fixed;right:18px;bottom:18px;z-index:2000;display:inline-flex;align-items:center;gap:8px;background:#1C2930;color:#fff!important;text-decoration:none;font:500 .85rem/1 Ubuntu,sans-serif;padding:11px 16px;border-radius:999px;box-shadow:0 6px 18px rgba(28,41,48,.25)}
#psx-back:hover{background:#C90019}
.form-accounts h1 svg{display:none!important}
.form-accounts h1 .ms-2{font-size:0!important;margin:0!important;display:inline-flex;align-items:center}
.form-accounts h1 .ms-2 .x{display:none}
.form-accounts h1{position:relative}
.form-accounts h1 .ms-2::before{content:"paperless";font-size:2.1rem;font-weight:400;color:#1C2930;padding-left:52px;background:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%20512%20512%22%3E%3Crect%20x%3D%228%22%20y%3D%228%22%20width%3D%22496%22%20height%3D%22496%22%20rx%3D%22112%22%20fill%3D%22%231C2930%22%20stroke%3D%22%234A5D68%22%20stroke-width%3D%2216%22/%3E%3Cpath%20d%3D%22M168%20112h124l88%2088v168a32%2032%200%200%201-32%2032H168a32%2032%200%200%201-32-32V144a32%2032%200%200%201%2032-32z%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-width%3D%2230%22%20stroke-linejoin%3D%22round%22/%3E%3Cpath%20d%3D%22M288%20116v68a16%2016%200%200%200%2016%2016h72%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-width%3D%2230%22%20stroke-linejoin%3D%22round%22%20stroke-linecap%3D%22round%22/%3E%3Crect%20x%3D%22150%22%20y%3D%22281%22%20width%3D%22212%22%20height%3D%2230%22%20rx%3D%2215%22%20fill%3D%22%23C90019%22%20stroke%3D%22none%22/%3E%3C/svg%3E") left center/40px 40px no-repeat;line-height:44px;display:inline-block}
.form-accounts h1 .ms-2::after{content:".systems";font-size:2.1rem;font-weight:700;color:#C90019}
.form-accounts h1 .byline{font-size:0!important}
.form-accounts h1 .byline::before{content:"Verwaltung";font-size:.7rem;letter-spacing:.14em;color:#C90019;font-family:Ubuntu,sans-serif;font-weight:500}
