/**
 * EYECONCEPT - Portal – Automatisch generierte CSS-Datei
 * Version:  2026.4.0
 * Compiler: scssphp-manual
 * Erstellt: 2026-09-30 12:11:28
 * NICHT MANUELL BEARBEITEN – Änderungen in /assets/scss/ vornehmen
 */

@charset "UTF-8";
/**
 * style.scss – Haupt-SCSS für Eyeconcept CRM2Web
 * 
 * Importiert alle Partial-SCSS-Dateien in der korrekten Reihenfolge.
 * Variablen und Mixins müssen zuerst geladen werden.
 * 
 * HINWEIS: @import statt @use/@forward!
 * Der eingesetzte Compiler (scssphp) unterstützt das Sass-Modulsystem
 * (@use/@forward) bisher nicht – weder in Version 1.x noch 2.x. Alle
 * Partials binden ihre Variablen/Mixins daher global über @import ein
 * (kein Namespacing wie "vars.$farbe", einfach "$farbe").
 * 
 * Kompilierung: sass assets/scss/style.scss assets/css/style.css --style=compressed
 * Watch-Modus:  sass --watch assets/scss/style.scss:assets/css/style.css
 */
/**
 * _variables.scss – Design-Variablen & Mixins
 *
 * Alle Farben, Abstände, Schriften und Mixins zentral definiert.
 * Wird von allen anderen SCSS-Partials importiert.
 *
 * Farbschema (aus Briefing):
 *   Primärfarbe 1:   #D30020
 *   Sekundärfarbe 1: #B0B0B0
 *   Sekundärfarbe 2: #6C6B6B
 *   Basisfarbe:      #FFFFFF
 */
/**
 * _fonts.scss – Lokal gehostete "Inter"-Schriftart (Nutzerwunsch 2026-09-11)
 *
 * Ersetzt das bisherige Nachladen von Google Fonts (fonts.googleapis.com/
 * fonts.gstatic.com, siehe frühere Fassung von partials/html-head.php) -
 * dabei wurde bei JEDEM Seitenaufruf die IP-Adresse des Besuchers an
 * Google übertragen (2022 gab es dazu ein vielbeachtetes Münchner
 * Gerichtsurteil - seitdem hosten viele deutsche Websites ihre
 * Google-Fonts lieber selbst). Die Schriftdateien selbst wurden über das
 * offizielle, quelloffene @fontsource/inter-npm-Paket bezogen (SIL Open
 * Font License 1.1, siehe assets/fonts/inter/LICENSE.txt - freie
 * Weiterverteilung ausdrücklich erlaubt), NICHT direkt von Google
 * heruntergeladen.
 *
 * Bewusst nur die Unicode-Bereiche "latin" und "latin-ext" eingebunden
 * (deckt Deutsch inkl. Umlaute/ß sowie die meisten anderen europäischen
 * Sprachen ab, z.B. für internationale Kontaktnamen) - NICHT kyrillisch/
 * griechisch/vietnamesisch, um die zu ladende Datenmenge klein zu halten;
 * diese fehlenden Zeichensätze werden vom Browser bei Bedarf automatisch
 * mit einer Fallback-Schrift dargestellt (siehe font-family-Kette in
 * _variables.scss), nicht als Kästchen/Fehlzeichen.
 *
 * Nur .woff2 (kein zusätzliches .woff-Fallback) - .woff2 wird von allen
 * gängigen, aktuell noch unterstützten Browsern verstanden (Support seit
 * 2020), ein zusätzliches .woff-Fallback hätte nur unnötig Speicherplatz/
 * Ladezeit gekostet, ohne einen realistischen Nutzen für diese
 * Anwendung (kein IE11-Support nötig).
 */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 300;
  src: url("../fonts/inter/inter-latin-300-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 300;
  src: url("../fonts/inter/inter-latin-ext-300-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("../fonts/inter/inter-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("../fonts/inter/inter-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("../fonts/inter/inter-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("../fonts/inter/inter-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("../fonts/inter/inter-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("../fonts/inter/inter-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("../fonts/inter/inter-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("../fonts/inter/inter-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
:root {
  --color-primary:     #D30020;
  --color-primary-dark:#A80019;
  --color-primary-bg:  #FFF0F2;
  --color-success:     #2E7D32;
  --color-success-bg:  #E8F5E9;
  --color-warning:     #F57F17;
  --color-warning-bg:  #FFFDE7;
  --color-error:       #C62828;
  --color-error-bg:    #FFEBEE;
  --color-info:        #1565C0;
  --color-secondary-1: #B0B0B0;
  --color-secondary-2: #6C6B6B;
  --border-color:      #E0E0E0;
  --border-color-dark: #BDBDBD;
  --text-primary:       #212121;
  --text-secondary:     #757575;
  --text-muted:         #9E9E9E;
  --shadow-sm:          0 1px 3px rgba(0, 0, 0, 0.12);
  --shadow-lg:          0 10px 25px rgba(0, 0, 0, 0.1);
  --tab-bar-height:     36px;
  --nav-height:         56px;
  --header-total:       92px;
}
/**
 * _base.scss – CSS-Reset und Basis-Styles
 */
/**
 * _variables.scss – Design-Variablen & Mixins
 *
 * Alle Farben, Abstände, Schriften und Mixins zentral definiert.
 * Wird von allen anderen SCSS-Partials importiert.
 *
 * Farbschema (aus Briefing):
 *   Primärfarbe 1:   #D30020
 *   Sekundärfarbe 1: #B0B0B0
 *   Sekundärfarbe 2: #6C6B6B
 *   Basisfarbe:      #FFFFFF
 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
.rich-text-editable ul, .rich-text-editable ol {
  padding-left: 24px;
  margin: 4px 0;
}
.rich-text-editable li {
  margin-bottom: 2px;
}
html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #212121;
  background: #F5F5F5;
  min-height: 100vh;
  overflow-x: hidden;
}
body.app-loaded {
  overflow: hidden;
  height: 100vh;
}
a {
  color: #1976D2;
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover {
  color: #D30020;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
input, textarea, select, button {
  font-family: inherit;
  font-size: inherit;
}
button {
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  line-height: inherit;
}
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb {
  background: #B0B0B0;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #6C6B6B;
}
.hidden {
  display: none !important;
}
.invisible {
  visibility: hidden !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.d-flex {
  display: flex;
}
.align-center {
  align-items: center;
}
.justify-between {
  justify-content: space-between;
}
.justify-center {
  justify-content: center;
}
.flex-1 {
  flex: 1;
}
.flex-wrap {
  flex-wrap: wrap;
}
.gap-sm {
  gap: 8px;
}
.gap-md {
  gap: 16px;
}
.text-center {
  text-align: center;
}
.text-right {
  text-align: right;
}
.text-muted {
  color: #9E9E9E;
}
.text-danger {
  color: #C62828;
}
.text-success {
  color: #2E7D32;
}
.text-sm {
  font-size: 0.875rem;
}
.text-xs {
  font-size: 0.75rem;
}
.font-bold {
  font-weight: 700;
}
.font-semibold {
  font-weight: 600;
}
.font-medium {
  font-weight: 500;
}
.align-right {
  text-align: right !important;
}
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mt-sm {
  margin-top: 8px;
}
.mt-md {
  margin-top: 16px;
}
.mb-sm {
  margin-bottom: 8px;
}
.mb-md {
  margin-bottom: 16px;
}
.p-sm {
  padding: 8px;
}
.p-md {
  padding: 16px;
}
/**
 * _layout.scss – Grundgerüst, App-Wrapper, Content-Header, Seiten-Layouts
 *
 * Drei fixierte Ebenen übereinander:
 *   top:0      h:36px  → #tab-bar    (z:400)
 *   top:36px   h:56px  → #main-nav   (z:390)
 *   top:92px   bottom:0 → #app-wrapper (z:1)
 */
/**
 * _variables.scss – Design-Variablen & Mixins
 *
 * Alle Farben, Abstände, Schriften und Mixins zentral definiert.
 * Wird von allen anderen SCSS-Partials importiert.
 *
 * Farbschema (aus Briefing):
 *   Primärfarbe 1:   #D30020
 *   Sekundärfarbe 1: #B0B0B0
 *   Sekundärfarbe 2: #6C6B6B
 *   Basisfarbe:      #FFFFFF
 */
#app-wrapper {
  position: fixed;
  top: 92px;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  overflow: hidden;
  background: #F5F5F5;
  z-index: 1;
}
#tab-contents {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
#app-wrapper.sidebar-visible #tab-contents {
  margin-left: 280px;
}
.tab-content {
  display: none;
  flex: 1;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
  min-height: 0;
}
.tab-content.active {
  display: flex;
}
.content-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 14px;
  background: #D30020;
  flex-shrink: 0;
  height: auto;
  min-height: 48px;
  position: sticky;
  top: 0;
  z-index: 50;
  transform: translateZ(0);
  will-change: transform;
}
.content-header-title {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  white-space: normal;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  row-gap: 2px;
  column-gap: 8px;
  padding: 4px 0;
}
.content-header-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.content-header-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease;
  pointer-events: auto;
}
.content-header-btn:hover {
  background: rgba(255, 255, 255, 0.26);
  color: #fff;
}
.header-green {
  background: #2E7D32 !important;
}
.header-blue {
  background: #1565C0 !important;
}
.header-purple {
  background: #6A1B9A !important;
}
.header-teal {
  background: #00838F !important;
}
.header-orange {
  background: #E65100 !important;
}
.header-brown {
  background: #8D6E63 !important;
}
.header-indigo {
  background: #3949AB !important;
}
.page-list-layout {
  display: flex;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}
.page-list-sidebar {
  width: 300px;
  flex-shrink: 0;
  border-right: 1px solid #E0E0E0;
  display: flex;
  flex-direction: column;
  background: #fff;
  overflow: hidden;
  transition: width 0.15s ease;
}
.page-list-sidebar.tabelle-modus {
  width: 100%;
}
.page-list-sidebar.tabelle-modus ~ .page-list-main {
  display: none;
}
.page-list-main {
  flex: 1;
  overflow-y: auto;
  background: #F5F5F5;
  min-width: 0;
}
.artikel-grid {
  display: flex;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}
.artikel-liste-sidebar {
  width: 300px;
  flex-shrink: 0;
  border-right: 1px solid #E0E0E0;
  display: flex;
  flex-direction: column;
  background: #fff;
  overflow: hidden;
  transition: width 0.15s ease;
}
.artikel-liste-sidebar.tabelle-modus {
  width: 100%;
}
.artikel-liste-sidebar.tabelle-modus ~ #artikelDetail {
  display: none;
}
.ansicht-toggle-group {
  display: flex;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.ansicht-toggle-group .content-header-btn {
  border: none;
  border-radius: 0;
}
.ansicht-toggle-group .content-header-btn:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}
.view-toggle-btn.active {
  background: rgba(255, 255, 255, 0.9);
  color: #D30020;
}
#artikelDetail {
  flex: 1;
  overflow-y: auto;
  background: #F5F5F5;
  min-width: 0;
}
.section-box {
  border: 1px solid #E0E0E0;
  border-radius: 6px;
  margin-bottom: 12px;
  overflow: hidden;
}
.section-box-header {
  padding: 8px 12px;
  background: linear-gradient(135deg, #C2555F 0%, #A8434C 100%);
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-box-header.lieferant-header {
  background: #E65100;
}
.section-box-body {
  padding: 12px;
}
.filter-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 14px;
  background: #fafafa;
  border-bottom: 1px solid #E0E0E0;
  flex-shrink: 0;
}
.filter-bar .form-control {
  font-size: 0.8125rem;
  padding: 5px 10px;
  height: 32px;
  width: auto;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.page-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 6px;
  border-radius: 4px;
  font-size: 0.875rem;
  border: 1px solid #E0E0E0;
  background: #fff;
  cursor: pointer;
  transition: all 0.12s;
}
.page-btn:hover, .page-btn.active {
  background: #D30020;
  color: #fff;
  border-color: #D30020;
}
/**
 * _navigation.scss – Tab-Leiste und Hauptnavigation
 */
/**
 * _variables.scss – Design-Variablen & Mixins
 *
 * Alle Farben, Abstände, Schriften und Mixins zentral definiert.
 * Wird von allen anderen SCSS-Partials importiert.
 *
 * Farbschema (aus Briefing):
 *   Primärfarbe 1:   #D30020
 *   Sekundärfarbe 1: #B0B0B0
 *   Sekundärfarbe 2: #6C6B6B
 *   Basisfarbe:      #FFFFFF
 */
#tab-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 36px;
  background: #1A1A1A;
  z-index: 400;
  display: flex;
  align-items: flex-end;
  padding: 0 4px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  user-select: none;
}
#tab-bar::-webkit-scrollbar {
  display: none;
}
#tabs-container {
  display: flex;
  align-items: flex-end;
  height: 100%;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  height: 30px;
  border-radius: 6px 6px 0 0;
  background: #333;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
  cursor: pointer;
  white-space: nowrap;
  max-width: 200px;
  min-width: 80px;
  align-self: flex-end;
  border: none;
  outline: none;
  transition: background 0.15s, color 0.15s;
  pointer-events: auto;
  position: relative;
}
.tab:hover {
  background: #444;
  color: rgba(255, 255, 255, 0.92);
}
.tab.active {
  background: #F5F5F5;
  color: #212121;
  font-weight: 600;
}
.tab span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
  pointer-events: none;
}
.tab > i {
  pointer-events: none;
  flex-shrink: 0;
  font-size: 0.72rem;
}
.tab-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 3px;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
  opacity: 0.5;
  flex-shrink: 0;
  padding: 0;
  margin-left: 2px;
  transition: opacity 0.15s, background 0.15s;
  pointer-events: auto;
  position: relative;
  z-index: 2;
}
.tab-close:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.2);
}
.tab.active .tab-close:hover {
  background: rgba(0, 0, 0, 0.1);
}
.tab-close > i {
  pointer-events: none;
  font-size: 0.6rem;
}
#btn-new-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.45);
  border-radius: 4px;
  cursor: pointer;
  flex-shrink: 0;
  margin-bottom: 2px;
  transition: all 0.15s;
  pointer-events: auto;
}
#btn-new-tab:hover {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
}
#main-nav {
  position: fixed;
  top: 36px;
  left: 0;
  right: 0;
  height: 56px;
  background: #2C2C2C;
  z-index: 390;
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.nav-left {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}
.nav-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.15s;
  flex-shrink: 0;
  padding: 2px;
}
.nav-logo img {
  display: block;
  height: 100%;
  width: auto;
  border-radius: 4px;
}
.nav-logo:hover {
  background: rgba(255, 255, 255, 0.1);
}
.nav-items {
  display: flex;
  align-items: center;
  gap: 1px;
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 6px 9px 3px;
  color: rgba(255, 255, 255, 0.65);
  border-radius: 5px;
  font-size: 0.7rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: none;
  background: none;
  transition: all 0.15s;
  white-space: nowrap;
  min-width: 52px;
  text-align: center;
  pointer-events: auto;
}
.nav-item i {
  font-size: 0.95rem;
}
.nav-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.nav-item.active {
  background: #D30020;
  color: #fff;
}
.nav-center {
  flex: 1;
  max-width: 360px;
  margin: 0 auto;
}
.search-container {
  position: relative;
  display: flex;
  align-items: center;
}
.search-icon {
  position: absolute;
  left: 10px;
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.85rem;
  pointer-events: none;
  z-index: 1;
}
#global-search {
  width: 100%;
  padding: 6px 32px 6px 30px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  color: #fff;
  font-size: 0.875rem;
  outline: none;
  font-family: inherit;
  transition: all 0.15s;
}
#global-search::placeholder {
  color: rgba(255, 255, 255, 0.35);
}
#global-search:focus {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 0 3px rgba(211, 0, 32, 0.25);
}
.btn-search-clear {
  position: absolute;
  right: 9px;
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.75rem;
  padding: 4px;
  border: none;
  background: none;
  cursor: pointer;
  transition: color 0.15s;
}
.btn-search-clear:hover {
  color: rgba(255, 255, 255, 0.9);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}
.nav-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 6px 9px 3px;
  color: rgba(255, 255, 255, 0.7);
  border-radius: 5px;
  font-size: 0.7rem;
  font-weight: 500;
  border: none;
  background: none;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  pointer-events: auto;
}
.nav-action-btn i {
  font-size: 0.95rem;
}
.nav-action-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.nav-action-primary {
  background: #D30020 !important;
  color: #fff !important;
}
.nav-action-primary:hover {
  background: #A80019 !important;
}
.nav-btn-label {
  font-size: 0.68rem;
  line-height: 1;
}
.icon-with-badge {
  position: relative;
  display: inline-block;
}
.icon-with-badge .icon-badge {
  position: absolute;
  top: -3px;
  right: -6px;
  font-size: 0.5em;
  color: inherit;
}
.nav-user {
  position: relative;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  color: rgba(255, 255, 255, 0.7);
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.8125rem;
  transition: all 0.15s;
  user-select: none;
}
.nav-user:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.nav-user-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  min-width: 160px;
  overflow: hidden;
  display: none;
  border: 1px solid #E0E0E0;
  z-index: 500;
}
.nav-user.dropdown-open .nav-user-dropdown {
  display: block;
}
.nav-user-dropdown a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  color: #212121;
  font-size: 0.875rem;
  transition: background 0.12s;
  text-decoration: none;
}
.nav-user-dropdown a:hover {
  background: #F5F5F5;
  color: #D30020;
}
#search-sidebar {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 280px;
  background: #fff;
  border-right: 1px solid #E0E0E0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.08);
}
#search-sidebar.hidden {
  display: none;
}
.search-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid #E0E0E0;
  background: #fafafa;
  font-size: 0.875rem;
  font-weight: 500;
  flex-shrink: 0;
}
.search-sidebar-header button {
  color: #9E9E9E;
  padding: 4px;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 3px;
  transition: all 0.12s;
}
.search-sidebar-header button:hover {
  background: #E0E0E0;
  color: #212121;
}
#search-results-list {
  flex: 1;
  overflow-y: auto;
  padding: 4px 0;
}
.search-result-item {
  padding: 8px 12px;
  cursor: pointer;
  transition: background 0.12s;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}
.search-result-item:hover {
  background: #FFF0F2;
}
.search-result-type {
  font-size: 0.72rem;
  color: #9E9E9E;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 2px;
}
.search-result-name {
  font-weight: 500;
  font-size: 0.875rem;
  color: #212121;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.search-result-sub {
  font-size: 0.8rem;
  color: #757575;
}
/**
 * _buttons.scss – Button-Stile
 */
/**
 * _variables.scss – Design-Variablen & Mixins
 *
 * Alle Farben, Abstände, Schriften und Mixins zentral definiert.
 * Wird von allen anderen SCSS-Partials importiert.
 *
 * Farbschema (aus Briefing):
 *   Primärfarbe 1:   #D30020
 *   Sekundärfarbe 1: #B0B0B0
 *   Sekundärfarbe 2: #6C6B6B
 *   Basisfarbe:      #FFFFFF
 */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  white-space: nowrap;
  user-select: none;
  text-decoration: none;
  line-height: 1.4;
}
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}
.btn-primary {
  background: #D30020;
  color: #fff;
  border-color: #D30020;
}
.btn-primary:hover {
  background: #A80019;
  border-color: #A80019;
  color: #fff;
}
.btn-secondary {
  background: #f5f5f5;
  color: #212121;
  border-color: #E0E0E0;
}
.btn-secondary:hover {
  background: #e9e9e9;
}
.btn-success {
  background: #2E7D32;
  color: #fff;
  border-color: #2E7D32;
}
.btn-success:hover {
  background: #1B5E20;
}
.btn-danger {
  background: #C62828;
  color: #fff;
  border-color: #C62828;
}
.btn-danger:hover {
  background: #a01010;
  color: #fff;
}
.btn-outline {
  background: transparent;
  border-color: #D30020;
  color: #D30020;
}
.btn-outline:hover {
  background: #FFF0F2;
}
.btn-sm {
  padding: 4px 10px;
  font-size: 0.8125rem;
}
.btn-lg {
  padding: 12px 24px;
  font-size: 1rem;
}
.btn-icon {
  padding: 6px;
  border-radius: 4px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
/**
 * _cards.scss – Karten (Cards) und Modals
 */
/**
 * _variables.scss – Design-Variablen & Mixins
 *
 * Alle Farben, Abstände, Schriften und Mixins zentral definiert.
 * Wird von allen anderen SCSS-Partials importiert.
 *
 * Farbschema (aus Briefing):
 *   Primärfarbe 1:   #D30020
 *   Sekundärfarbe 1: #B0B0B0
 *   Sekundärfarbe 2: #6C6B6B
 *   Basisfarbe:      #FFFFFF
 */
.card {
  background: #FFFFFF;
  border-radius: 8px;
  border: 1px solid #E0E0E0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}
.card--overflow-sichtbar {
  overflow: visible;
}
.card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  background: linear-gradient(135deg, #D30020 0%, #A80019 100%);
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  flex-wrap: wrap;
  border-radius: 7px 7px 0 0;
}
.card-header.green-header {
  background: linear-gradient(135deg, #2E7D32 0%, #1B5E20 100%);
}
.card-header.blue-header {
  background: linear-gradient(135deg, #1565C0 0%, #0D47A1 100%);
}
.card-header.grey-header {
  background: linear-gradient(135deg, #455A64 0%, #263238 100%);
}
.card-header.darkred-header {
  background: linear-gradient(135deg, #8B0000 0%, #5C0000 100%);
}
.card-body {
  padding: 14px;
  border-radius: 0 0 7px 7px;
}
.card-footer {
  padding: 10px 14px;
  border-top: 1px solid #E0E0E0;
  background: #fafafa;
  border-radius: 0 0 7px 7px;
}
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
  z-index: 600;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.modal-overlay.active {
  display: flex;
}
.modal {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 800px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  animation: modalSlideIn 0.2s ease;
  position: relative;
  z-index: 700;
}
.modal-sm {
  max-width: 460px;
}
.modal-md {
  max-width: 620px;
}
.modal-lg {
  max-width: 940px;
}
.modal-xl {
  max-width: 1200px;
}
.modal-fullscreen {
  max-width: 98vw;
  max-height: 96vh;
}
@keyframes modalSlideIn {
  from {
    transform: translateY(-16px) scale(0.97);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: linear-gradient(135deg, #D30020 0%, #A80019 100%);
  color: #fff;
  border-radius: 8px 8px 0 0;
  flex-shrink: 0;
  cursor: move;
  user-select: none;
}
.modal-header.red-header {
  background: linear-gradient(135deg, #D30020 0%, #A80019 100%);
}
.modal-header.blue-header {
  background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
}
.modal-header.green-header {
  background: linear-gradient(135deg, #2E7D32 0%, #1B5E20 100%);
}
.modal-header.grey-header {
  background: linear-gradient(135deg, #455A64 0%, #263238 100%);
}
.modal-header h2 {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}
.modal-controls {
  display: flex;
  align-items: center;
  gap: 3px;
}
.modal-btn-minimize, .modal-btn-maximize, .modal-btn-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.12s;
  font-size: 0.8rem;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
}
.modal-btn-minimize:hover, .modal-btn-maximize:hover {
  background: rgba(255, 255, 255, 0.15);
}
.modal-btn-close:hover {
  background: rgba(255, 0, 0, 0.3);
  color: #fff;
}
.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
}
.modal-body-no-padding {
  padding: 0;
}
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 10px 18px;
  border-top: 1px solid #E0E0E0;
  background: #fafafa;
  border-radius: 0 0 8px 8px;
  flex-shrink: 0;
}
/**
 * _forms.scss – Formular-Elemente
 */
/**
 * _variables.scss – Design-Variablen & Mixins
 *
 * Alle Farben, Abstände, Schriften und Mixins zentral definiert.
 * Wird von allen anderen SCSS-Partials importiert.
 *
 * Farbschema (aus Briefing):
 *   Primärfarbe 1:   #D30020
 *   Sekundärfarbe 1: #B0B0B0
 *   Sekundärfarbe 2: #6C6B6B
 *   Basisfarbe:      #FFFFFF
 */
.form-group {
  margin-bottom: 14px;
}
.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #757575;
  margin-bottom: 4px;
}
.form-control {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #E0E0E0;
  border-radius: 4px;
  font-size: 0.9375rem;
  color: #212121;
  background-color: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  font-family: inherit;
}
.form-control:focus {
  border-color: #D30020;
  box-shadow: 0 0 0 3px rgba(211, 0, 32, 0.12);
}
.form-control:read-only, .form-control[readonly] {
  background: #fafafa;
  color: #757575;
}
.form-control:disabled {
  background: #f5f5f5;
  opacity: 0.7;
  cursor: not-allowed;
  pointer-events: none;
}
textarea.form-control {
  resize: vertical;
  min-height: 80px;
  line-height: 1.5;
}
select.form-control {
  cursor: pointer;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236C6B6B' d='M6 8L0 0h12z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 10px center !important;
  padding-right: 30px !important;
}
.form-check {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.form-check input[type="checkbox"], .form-check input[type="radio"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #D30020;
  flex-shrink: 0;
}
.password-wrapper {
  position: relative;
}
.password-wrapper .form-control {
  padding-right: 40px;
}
.btn-password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #9E9E9E;
  padding: 4px;
  border: none;
  background: none;
  cursor: pointer;
  transition: color 0.15s ease;
}
.btn-password-toggle:hover {
  color: #212121;
}
.dropdown-item-aktiv {
  background: #FFF0F2 !important;
}
/**
 * _alerts.scss – Alerts, Badges, Spinner, Empty-State, Toasts
 */
/**
 * _variables.scss – Design-Variablen & Mixins
 *
 * Alle Farben, Abstände, Schriften und Mixins zentral definiert.
 * Wird von allen anderen SCSS-Partials importiert.
 *
 * Farbschema (aus Briefing):
 *   Primärfarbe 1:   #D30020
 *   Sekundärfarbe 1: #B0B0B0
 *   Sekundärfarbe 2: #6C6B6B
 *   Basisfarbe:      #FFFFFF
 */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 4px;
  margin-bottom: 14px;
  font-size: 0.9rem;
  border: 1px solid transparent;
}
.alert-success {
  background: #E8F5E9;
  color: #1B5E20;
  border-color: #A5D6A7;
}
.alert-warning {
  background: #FFFDE7;
  color: #E65100;
  border-color: #FFE082;
}
.alert-danger {
  background: #FFEBEE;
  color: #B71C1C;
  border-color: #EF9A9A;
}
.alert-info {
  background: #E3F2FD;
  color: #0D47A1;
  border-color: #90CAF9;
}
.doc-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 26px;
  white-space: nowrap;
  line-height: 1.4;
}
.spinner {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 3px solid #E0E0E0;
  border-top-color: #D30020;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
  flex-shrink: 0;
}
.spinner-sm {
  width: 16px;
  height: 16px;
  border-width: 2px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  border-radius: inherit;
}
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
  color: #9E9E9E;
  text-align: center;
  gap: 12px;
  flex: 1;
  min-height: 200px;
}
.empty-state i {
  font-size: 2.8rem;
  opacity: 0.22;
}
.empty-state p {
  font-size: 0.9375rem;
  max-width: 300px;
  line-height: 1.5;
}
.empty-state .btn {
  margin-top: 4px;
}
#toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 6px;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-left: 4px solid #1565C0;
  min-width: 240px;
  max-width: 380px;
  animation: toastSlideIn 0.25s ease, toastFadeOut 0.3s ease 2.7s forwards;
  font-size: 0.875rem;
  pointer-events: auto;
}
.toast-success {
  border-left-color: #2E7D32;
}
.toast-error {
  border-left-color: #C62828;
}
.toast-warning {
  border-left-color: #F57F17;
}
@keyframes toastSlideIn {
  from {
    transform: translateX(110%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
@keyframes toastFadeOut {
  to {
    opacity: 0;
    transform: translateX(110%);
  }
}
/**
 * _login.scss – Login-Seite und Passwort-Reset
 */
/**
 * _variables.scss – Design-Variablen & Mixins
 *
 * Alle Farben, Abstände, Schriften und Mixins zentral definiert.
 * Wird von allen anderen SCSS-Partials importiert.
 *
 * Farbschema (aus Briefing):
 *   Primärfarbe 1:   #D30020
 *   Sekundärfarbe 1: #B0B0B0
 *   Sekundärfarbe 2: #6C6B6B
 *   Basisfarbe:      #FFFFFF
 */
body.login-page {
  background: linear-gradient(135deg, #1A1A1A 0%, #2C2C2C 50%, #A80019 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: auto;
}
.login-container {
  width: 100%;
  max-width: 420px;
}
.login-box {
  background: #fff;
  border-radius: 12px;
  padding: 38px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: loginSlideIn 0.38s ease;
}
@keyframes loginSlideIn {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.login-logo {
  text-align: center;
  margin-bottom: 26px;
}
.login-logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  box-shadow: 0 4px 16px rgba(211, 0, 32, 0.38);
  border-radius: 6px;
  overflow: hidden;
}
.login-logo-icon img {
  display: block;
  width: 90px;
  height: auto;
}
.login-logo h1 {
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: -0.3px;
}
.login-subtitle {
  font-size: 0.85rem;
  color: #9E9E9E;
  margin-top: 4px;
}
.btn-login {
  width: 100%;
  justify-content: center;
  padding: 11px;
  font-size: 0.9375rem;
  border-radius: 6px;
  margin-top: 6px;
}
.forgot-pw-link {
  color: #9E9E9E;
  font-size: 0.8125rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  transition: color 0.15s ease;
}
.forgot-pw-link:hover {
  color: #D30020;
}
#passwordStrength {
  margin-top: 6px;
}
.strength-bar-wrapper {
  height: 4px;
  background: #E0E0E0;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 3px;
}
#strengthBar {
  height: 100%;
  width: 0;
  border-radius: 2px;
  transition: width 0.3s ease, background 0.3s ease;
}
#strengthLabel {
  font-size: 0.75rem;
}
#matchIndicator {
  font-size: 0.75rem;
  margin-top: 4px;
}
.caps-warning, .login-client-error {
  font-size: 0.8rem;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.caps-warning {
  color: #F57F17;
}
.login-client-error {
  color: #C62828;
}
.legal-page-container {
  width: 100%;
  max-width: 760px;
  margin: 40px auto;
}
.legal-page-box {
  background: #fff;
  border-radius: 12px;
  padding: 42px 48px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  line-height: 1.65;
  color: #212121;
}
.legal-page-box h1 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid #E0E0E0;
}
.legal-page-box h2 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 28px 0 10px 0;
  color: #A80019;
}
.legal-page-box p, .legal-page-box li {
  font-size: 0.9375rem;
  color: #757575;
}
.legal-page-box ul {
  margin: 6px 0 6px 20px;
  padding: 0;
}
.legal-page-box a {
  color: #D30020;
  text-decoration: none;
}
.legal-page-box a:hover {
  text-decoration: underline;
}
.legal-page-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  opacity: 0.85;
  font-size: 0.875rem;
  text-decoration: none;
  margin-bottom: 16px;
}
.legal-page-back:hover {
  opacity: 1;
  text-decoration: underline;
}
/**
 * _dashboard.scss – Startseite / Dashboard
 */
/**
 * _variables.scss – Design-Variablen & Mixins
 *
 * Alle Farben, Abstände, Schriften und Mixins zentral definiert.
 * Wird von allen anderen SCSS-Partials importiert.
 *
 * Farbschema (aus Briefing):
 *   Primärfarbe 1:   #D30020
 *   Sekundärfarbe 1: #B0B0B0
 *   Sekundärfarbe 2: #6C6B6B
 *   Basisfarbe:      #FFFFFF
 */
.dashboard-wrapper {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  min-height: 0;
}
.dashboard-top-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.dashboard-card {
  background: #FFFFFF;
  border-radius: 8px;
  border: 1px solid #E0E0E0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  max-height: 350px;
  display: flex;
  flex-direction: column;
}
.dashboard-card-header {
  padding: 9px 14px;
  background: linear-gradient(135deg, #D30020 0%, #A80019 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.dashboard-card-header.blue {
  background: linear-gradient(135deg, #1565C0 0%, #0D47A1 100%);
}
.dashboard-card-header.indigo {
  background: #3949AB;
}
.dashboard-card-header.purple {
  background: #6A1B9A;
}
.dashboard-card-body {
  flex: 1;
  overflow-y: auto;
  padding: 4px 0;
}
.recently-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 7px 12px;
  cursor: pointer;
  transition: background 0.12s;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}
.recently-item:hover {
  background: #FFF0F2;
}
.recently-item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 5px;
  flex-shrink: 0;
  font-size: 0.8rem;
}
.recently-item-content {
  flex: 1;
  min-width: 0;
}
.recently-item-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: #212121;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.recently-item-sub {
  font-size: 0.78rem;
  color: #9E9E9E;
}
.newest-doc-item {
  display: flex;
  flex-direction: column;
  padding: 6px 12px;
  cursor: pointer;
  transition: background 0.12s;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  gap: 2px;
}
.newest-doc-item:hover {
  background: #E3F2FD;
}
.newest-doc-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
}
.newest-doc-company {
  font-size: 0.875rem;
  font-weight: 500;
  color: #212121;
}
.newest-doc-title {
  font-size: 0.8rem;
  color: #757575;
}
.portal-aktion-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  transition: background 0.12s;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  font-size: 0.875rem;
  color: #212121;
}
.portal-aktion-item.klickbar {
  cursor: pointer;
}
.portal-aktion-item.klickbar:hover {
  background: #E3F2FD;
}
.portal-aktion-item .portal-aktion-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}
.portal-aktion-item .portal-aktion-text {
  flex: 1;
  min-width: 0;
}
.portal-aktion-item .portal-aktion-firma {
  color: #9E9E9E;
}
.portal-aktion-item .portal-aktion-zeit {
  text-align: right;
  color: #9E9E9E;
  font-size: 0.78rem;
  white-space: nowrap;
}
.dashboard-wiedervorlage {
  background: #FFFFFF;
  border-radius: 8px;
  border: 1px solid #E0E0E0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.wiedervorlage-header {
  padding: 9px 14px;
  background: linear-gradient(135deg, #D30020 0%, #A80019 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.wiedervorlage-filter-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  font-size: 0.78rem;
  cursor: pointer;
  border: none;
  color: #fff;
  transition: background 0.12s;
}
.wiedervorlage-filter-btn:hover {
  background: rgba(255, 255, 255, 0.32);
}
.wiedervorlage-counter {
  margin-left: auto;
  font-size: 0.85rem;
  opacity: 0.85;
  display: flex;
  align-items: center;
  gap: 6px;
}
.wiedervorlage-table-container {
  overflow-x: auto;
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}
/**
 * _artikel.scss – Artikel-Bereich
 */
/**
 * _variables.scss – Design-Variablen & Mixins
 *
 * Alle Farben, Abstände, Schriften und Mixins zentral definiert.
 * Wird von allen anderen SCSS-Partials importiert.
 *
 * Farbschema (aus Briefing):
 *   Primärfarbe 1:   #D30020
 *   Sekundärfarbe 1: #B0B0B0
 *   Sekundärfarbe 2: #6C6B6B
 *   Basisfarbe:      #FFFFFF
 */
.artikel-liste-item {
  display: flex;
  flex-direction: column;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: background 0.12s;
  gap: 3px;
}
.artikel-liste-item:hover {
  background: #FFF0F2;
}
.artikel-liste-item.active {
  background: #FFF0F2;
  border-left: 3px solid #D30020;
}
tr.artikel-liste-item {
  display: table-row;
  padding: 0;
  gap: 0;
}
.artikel-liste-item-titel {
  font-weight: 500;
  font-size: 0.875rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.artikel-liste-item-meta {
  font-size: 0.78rem;
  color: #9E9E9E;
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.artikel-preis-badge {
  font-size: 0.72rem;
  padding: 2px 6px;
  background: #FFF0F2;
  color: #D30020;
  border-radius: 3px;
  font-weight: 600;
  white-space: nowrap;
}
.service-tag {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 6px;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-primary);
}
.service-tag .sv-remove {
  color: var(--text-muted);
  font-size: 0.7rem;
  flex-shrink: 0;
}
.kategorien-content, .branchen-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}
.kategorien-content .table-container, .branchen-content .table-container {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  min-height: 0;
  border: none;
  border-radius: 0;
  margin-bottom: 0;
}
#kategorienTableWrapper, #branchenTableWrapper {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}
#kategorienTableWrapper thead th, #branchenTableWrapper thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fafafa;
}
#kategorienTableWrapper .inline-input, #branchenTableWrapper .inline-input {
  border: none;
  background: transparent;
  width: 100%;
  font-size: 0.875rem;
  padding: 2px 3px;
  outline: none;
  font-family: inherit;
}
#kategorienTableWrapper .inline-input:focus, #branchenTableWrapper .inline-input:focus {
  border-bottom: 2px solid #D30020;
  background: #fff;
}
#kategorienTableWrapper tr.editable-row:hover td, #branchenTableWrapper tr.editable-row:hover td {
  background: #FFF0F2;
}
.kat-pfad-autocomplete-dropdown, .branche-pfad-autocomplete-dropdown {
  position: fixed;
  z-index: 2000;
  background: #fff;
  border: 1px solid #E0E0E0;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  max-height: 220px;
  overflow-y: auto;
  display: none;
}
.kat-pfad-item, .branche-pfad-item {
  padding: 7px 12px;
  cursor: pointer;
  font-size: 0.875rem;
  outline: none;
  white-space: nowrap;
}
.kat-pfad-item:hover, .kat-pfad-item:focus, .branche-pfad-item:hover, .branche-pfad-item:focus {
  background: #FFF0F2;
  color: #D30020;
}
.artikel-ansicht-btn.active {
  background: #D30020;
  color: #fff;
  border-color: #D30020;
}
.artikel-formular.ansicht-intern .artikel-bereich-web {
  display: none !important;
}
.artikel-formular.ansicht-web .artikel-bereich-intern {
  display: none !important;
}
#artikelUnterposTable thead th {
  padding: 8px 8px;
}
#artikelUnterposTable tbody td {
  padding: 0;
}
#artikelUnterposTable .inline-input {
  border: none;
  background: transparent;
  width: 100%;
  font-size: 0.875rem;
  padding: 6px 8px;
  outline: none;
  font-family: inherit;
}
#artikelUnterposTable .inline-input:focus {
  border-bottom: 2px solid #D30020;
  background: #fff;
}
#artikelUnterposTable select.inline-input {
  appearance: auto;
  -webkit-appearance: menulist;
  cursor: pointer;
}
#artikelUnterposTable td {
  vertical-align: middle;
}
.artikel-felder-grid {
  margin-bottom: 14px;
}
.artikel-felder-grid > .card {
  margin-bottom: 14px;
}
.masonry-spalte > .card {
  margin-bottom: 0;
}
.artikel-fusszeile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: start;
}
.artikel-fusszeile-grid > .card {
  margin-bottom: 0;
}
.artikel-zeile-hover {
  border-radius: 4px;
  transition: background 0.12s;
}
.artikel-zeile-hover:hover {
  background: #FFF0F2;
}
#artikelUnterartikelBox .data-table tbody td {
  vertical-align: top;
}
/**
 * _kontakte.scss – Kontakte-Bereich
 *
 * War bisher eine leere Stub-Datei. Die meisten Klassen in kontakte.js
 * nutzen bereits andere, definierte Klassen (.btn, .card, .section-box,
 * .form-control usw.) – hier nur die paar wirklich Kontakte-eigenen
 * Klassen, die sonst nirgends gestylt wären.
 */
/**
 * _variables.scss – Design-Variablen & Mixins
 *
 * Alle Farben, Abstände, Schriften und Mixins zentral definiert.
 * Wird von allen anderen SCSS-Partials importiert.
 *
 * Farbschema (aus Briefing):
 *   Primärfarbe 1:   #D30020
 *   Sekundärfarbe 1: #B0B0B0
 *   Sekundärfarbe 2: #6C6B6B
 *   Basisfarbe:      #FFFFFF
 */
.merkmal-remove {
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.12s;
}
.merkmal-remove:hover {
  opacity: 1;
}
.clickable-row {
  cursor: pointer;
  transition: background 0.12s;
}
.clickable-row:hover {
  background: #FFF0F2;
}
.kontakt-typ-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
}
.kontakt-typ-badge.kunde {
  background: #D30020;
}
.kontakt-typ-badge.lieferant {
  background: #E65100;
}
.kontakt-typ-badge.interessent {
  background: #F57F17;
}
.kontakt-typ-badge.mitarbeiter {
  background: #1565C0;
}
.kontakt-typ-badge.dienstleister {
  background: #6A1B9A;
}
.kontakt-felder-grid {
  margin-bottom: 14px;
}
.kontakt-felder-grid > .card {
  margin-bottom: 14px;
}
.ap-kontextmenu-item:hover {
  background: #FFF0F2;
}
/**
 * _dokumente.scss – Dokumente-Bereich (Angebote, Rechnungen, Verträge, ...)
 *
 * War bisher eine leere Stub-Datei (siehe SCSS-Compiler-Fix ganz zu Beginn
 * dieser Session) – sämtliche Klassen aus dokumente.js hatten dadurch nie
 * eine echte Gestaltung. Das Modul selbst funktionierte, sah aber
 * unformatiert aus (Felder untereinander statt in Zeilen, keine
 * Tabellen-Optik bei den Positionen usw.).
 */
/**
 * _variables.scss – Design-Variablen & Mixins
 *
 * Alle Farben, Abstände, Schriften und Mixins zentral definiert.
 * Wird von allen anderen SCSS-Partials importiert.
 *
 * Farbschema (aus Briefing):
 *   Primärfarbe 1:   #D30020
 *   Sekundärfarbe 1: #B0B0B0
 *   Sekundärfarbe 2: #6C6B6B
 *   Basisfarbe:      #FFFFFF
 */
.dokument-wrapper {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}
.dokument-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  background: #F5F5F5;
}
.dokument-felder-grid {
  margin-bottom: 14px;
}
.dokument-felder-grid > .card {
  margin-bottom: 14px;
}
.dokument-meta-row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.dokument-meta-field {
  display: flex;
  flex-direction: column;
  min-width: 140px;
}
.dokument-meta-field label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #757575;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.dokument-belegnr-input {
  font-weight: 600;
  min-width: 140px;
}
.dokument-address-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 14px;
}
.dokument-address-block {
  min-height: 64px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #E0E0E0;
  border-radius: 4px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #212121;
  resize: vertical;
}
.dokument-text-block {
  margin-bottom: 14px;
}
.btn-text-select {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: none;
  background: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.12s;
}
.btn-text-select:hover {
  background: rgba(0, 0, 0, 0.06);
}
.doc-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  margin-right: 6px;
}
.dok-vorgang-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 4px;
  background: #E3F2FD;
  color: #1565C0;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.dok-vorgang-link:hover {
  background: #D2E9FB;
}
.dok-vorgang-link i {
  font-size: 0.7rem;
}
.dok-vorgang-anlegen-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border: 1px solid #FFCC80;
  border-radius: 4px;
  background: #FFF3E0;
  color: #E65100;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.12s;
}
.dok-vorgang-anlegen-btn:hover {
  background: #FFE0B2;
}
.dok-vorgang-anlegen-btn i {
  font-size: 0.7rem;
}
.position-add-dropdown-group {
  padding: 8px 14px 4px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #9E9E9E;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.position-add-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  font-size: 0.875rem;
  color: #212121;
  cursor: pointer;
  transition: background 0.12s;
  white-space: nowrap;
}
.position-add-dropdown-item i {
  width: 16px;
  text-align: center;
  color: #757575;
}
.position-add-dropdown-item:hover {
  background: #FFF0F2;
}
.pos-artikel-grid-zelle {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  min-width: 0;
  overflow: hidden;
}
.pos-artikel-add:hover .pos-artikel-grid-zelle {
  background: #F5F5F5;
}
.pos-artikel-grid-zelle.markiert {
  background: #FFF0F2;
}
.pos-artikel-add:hover .pos-artikel-grid-zelle.markiert {
  background: #FFF0F2;
}
.pos-artikel-grid {
  display: grid;
  grid-template-columns: 26px 70px 2.4fr 95px 1.6fr;
}
@media (max-width: 560px) {
  .pos-artikel-grid {
    grid-template-columns: 26px 60px 2.4fr 85px 1.4fr;
  }
  .pos-artikel-grid .col-kategorien {
    display: none;
  }
}
.pos-kontakt-grid-zelle {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  min-width: 0;
  overflow: hidden;
}
.pos-kontakt-add:hover .pos-kontakt-grid-zelle {
  background: #F5F5F5;
}
.pos-kontakt-grid-zelle.markiert {
  background: #FFF0F2;
}
.pos-kontakt-add:hover .pos-kontakt-grid-zelle.markiert {
  background: #FFF0F2;
}
.pos-kontakt-grid {
  display: grid;
  grid-template-columns: 30px 1.3fr 1.3fr 1fr;
}
@media (max-width: 560px) {
  .pos-kontakt-grid {
    grid-template-columns: 26px 1.1fr 0.9fr;
  }
  .pos-kontakt-grid .col-branche {
    display: none;
  }
}
.lagerort-dropdown-item:hover {
  background: #F5F5F5 !important;
}
.text-auswahl-item {
  display: block !important;
  text-align: left;
  cursor: pointer;
}
.text-auswahl-item > div {
  text-align: left;
}
.text-auswahl-item.position-add-dropdown-item:hover {
  background: #F5F5F5;
}
.text-auswahl-item.markiert {
  background: #FFF0F2;
}
.text-auswahl-item.markiert:hover {
  background: #FFF0F2;
}
#posAddDropdown .position-add-dropdown-item {
  padding: 6px 12px;
  gap: 7px;
}
#posAddDropdown .position-add-dropdown-item i {
  font-size: 0.8125rem;
}
.positions-card {
  overflow: visible;
}
.position-toolbar {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px;
  background: #fafafa;
  border-left: 1px solid #E0E0E0;
  border-right: 1px solid #E0E0E0;
  border-radius: 0;
  position: sticky;
  top: -16px;
  z-index: 40;
}
.pos-toolbar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: none;
  background: none;
  border-radius: 4px;
  color: #757575;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}
.pos-toolbar-btn:hover {
  background: #fff;
  color: #D30020;
}
.pos-add-btn {
  position: relative;
}
.pos-add-marker {
  position: absolute;
  right: 4px;
  width: 7px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}
.pos-add-marker-oben {
  top: 4px;
}
.pos-add-marker-unten {
  bottom: 4px;
}
.pos-toolbar-separator {
  width: 1px;
  height: 20px;
  background: #E0E0E0;
  margin: 0 4px;
}
.positions-table.betraege-ausgeblendet .pos-preis-zelle {
  visibility: hidden;
}
.positions-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid #E0E0E0;
  font-size: 0.875rem;
}
.positions-table thead th {
  padding: 8px 6px;
  background: #fafafa;
  border-bottom: 2px solid #E0E0E0;
  font-weight: 600;
  color: #757575;
  font-size: 0.75rem;
  text-align: left;
  white-space: nowrap;
}
.positions-table thead th.align-right {
  text-align: right;
}
.positions-table tbody td {
  padding: 6px;
  border-bottom: 1px solid #E0E0E0;
  vertical-align: top;
}
.positions-table-scroll {
  overflow: visible;
}
@media (min-width: 1025px) {
  .positions-table thead th {
    position: sticky;
    top: 26px;
    z-index: 39;
  }
}
.positions-row {
  scroll-margin-top: 70px;
  cursor: default;
}
.positions-row:hover {
  background: #fafafa;
}
.positions-row.selected-row {
  background: #FFF0F2;
}
.positions-row.wird-gezogen {
  opacity: 0.4;
}
.positions-row.drop-ziel {
  background: rgba(46, 125, 50, 0.18) !important;
  box-shadow: inset 0 0 0 2px #2E7D32;
}
.positions-row[data-ebene="1"] [data-field="bezeichnung"], .positions-row[data-ebene="1"] [data-field="beschreibung"] {
  margin-left: 20px !important;
  width: calc(100% - 20px) !important;
}
.positions-row[data-ebene="2"] [data-field="bezeichnung"], .positions-row[data-ebene="2"] [data-field="beschreibung"] {
  margin-left: 40px !important;
  width: calc(100% - 40px) !important;
}
.positions-row[data-ebene="3"] [data-field="bezeichnung"], .positions-row[data-ebene="3"] [data-field="beschreibung"] {
  margin-left: 60px !important;
  width: calc(100% - 60px) !important;
}
.positions-row[data-ebene="4"] [data-field="bezeichnung"], .positions-row[data-ebene="4"] [data-field="beschreibung"] {
  margin-left: 80px !important;
  width: calc(100% - 80px) !important;
}
.positions-row[data-ebene="5"] [data-field="bezeichnung"], .positions-row[data-ebene="5"] [data-field="beschreibung"] {
  margin-left: 100px !important;
  width: calc(100% - 100px) !important;
}
.positions-row.pos-gruppe > td {
  border-left: 2px dashed #8D6E63;
  border-right: 2px dashed #8D6E63;
  border-bottom: none;
}
.positions-row.pos-gruppe-start > td {
  border-top: 2px dashed #8D6E63;
}
.positions-row.pos-gruppe-ende > td {
  border-bottom: 2px dashed #8D6E63;
}
.positions-row.pos-gruppe-anker {
  background: rgba(141, 110, 99, 0.08);
}
.positions-row.pos-gruppe-anker:hover {
  background: rgba(141, 110, 99, 0.14);
}
.positions-row.pos-gruppe-anker > td {
  border-bottom: none;
}
.positions-row.pos-alternativ-gruppe {
  background: rgba(245, 124, 0, 0.14);
  border-left: 4px solid #F57C00;
}
.positions-row.pos-alternativ-gruppe:hover {
  background: rgba(245, 124, 0, 0.2);
}
.pos-drop-indikator {
  display: block;
  position: absolute;
  width: 40px;
  height: 6px;
  margin-top: -3px;
  border: 1px solid #2E7D32;
  border-radius: 2px;
  background: rgba(46, 125, 50, 0.12);
  pointer-events: auto;
  z-index: 50;
  transition: background 0.08s;
}
.pos-drop-indikator.aktiv {
  background: #2E7D32;
  height: 8px;
  margin-top: -4px;
}
body.dokument-drag-aktiv .positions-table tbody tr.positions-row {
  cursor: crosshair;
}
.pos-select {
  cursor: pointer;
  accent-color: #D30020;
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  margin: 0;
  border: 1.5px solid #E0E0E0;
  border-radius: 4px;
  background: #fff;
  vertical-align: top;
  position: relative;
  transition: background 0.12s, border-color 0.12s, box-shadow 0.12s;
}
.pos-select:hover {
  border-color: #D30020;
}
.pos-select:checked {
  background: #D30020;
  border-color: #D30020;
  box-shadow: 0 1px 3px rgba(211, 0, 32, 0.35);
}
.pos-select:checked::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 44%;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: translate(-50%, -50%) rotate(45deg);
}
.pos-type-icon {
  font-size: 0.8rem;
  color: #757575;
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}
.pos-meta-zelle {
  white-space: nowrap;
  padding: 6px 4px !important;
}
.pos-meta-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
}
.pos-drag-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 3px;
  flex-shrink: 0;
  border-radius: 4px;
  cursor: move;
  background: #ECEFF1;
  transition: background 0.12s;
}
.pos-drag-handle:hover {
  background: #CFD8DC;
}
.pos-drag-handle .pos-nr {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #455A64;
}
.pos-fett-slot {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}
.pos-fett-toggle, .pos-kontakt-insert-btn, .pos-kontakt-ansehen-btn, .pos-artikel-ansehen-btn, .pos-weblink-toggle, .pos-weblink-vorschau-btn {
  font-size: 0.78rem;
  width: 20px;
  height: 20px;
  display: inline-block !important;
  line-height: 20px !important;
  text-align: center;
  position: relative;
  top: 1px;
  border-radius: 3px;
  cursor: pointer;
  color: #9E9E9E;
  transition: color 0.12s;
}
.pos-fett-toggle:hover, .pos-kontakt-insert-btn:hover, .pos-kontakt-ansehen-btn:hover, .pos-artikel-ansehen-btn:hover, .pos-weblink-toggle:hover, .pos-weblink-vorschau-btn:hover {
  color: #D30020;
}
.pos-weblink-toggle:hover {
  color: #1565C0;
}
.pos-weblink-toggle.weblink-aktiv {
  color: #D30020;
}
.pos-weblink-toggle.weblink-aktiv:hover {
  color: #A50018;
}
.pos-weblink-vorschau-btn.weblink-nicht-verfuegbar {
  opacity: 0.35;
  cursor: not-allowed;
}
.pos-weblink-vorschau-btn.weblink-nicht-verfuegbar:hover {
  color: #9E9E9E;
}
.pos-beschreibung-toggle {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 0.7rem;
  color: #9E9E9E;
  cursor: pointer;
  transition: color 0.12s, transform 0.15s;
}
.pos-beschreibung-toggle:hover {
  color: #D30020;
}
.pos-beschreibung-toggle.aktiv {
  color: #D30020;
  transform: rotate(180deg);
}
.pos-fett-toggle.fett-aktiv {
  color: #D30020;
}
.pos-fett-toggle.fett-aktiv:hover {
  color: #A50018;
}
.pos-alternativ-toggle.alternativ-aktiv {
  color: #D30020;
}
.pos-alternativ-toggle.alternativ-aktiv:hover {
  color: #A50018;
}
.pos-input {
  width: 100%;
  border: none;
  border-bottom: 1px solid transparent;
  background: transparent;
  padding: 5px 6px;
  font-size: 0.875rem;
  text-align: right;
  font-family: inherit;
  color: #212121;
  box-sizing: border-box;
  resize: none;
  overflow-y: hidden;
  transition: border-color 0.12s, background 0.12s;
}
.pos-input:hover {
  border-bottom-color: #E0E0E0;
}
.pos-input:focus {
  outline: none;
  border-bottom: 2px solid #D30020;
  background: #fff;
}
.pos-input-left {
  text-align: left;
}
.pos-autogrow {
  min-height: 30px;
}
.price-ek {
  text-align: right;
  color: #D30020;
}
.price-vk {
  text-align: right;
  color: #1565C0;
}
.pos-gesamt {
  display: block;
  text-align: right;
  font-weight: 600;
  padding: 5px 6px;
}
.pos-zwischen-wert {
  font-weight: 700;
}
.positions-summary {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #E0E0E0;
  border-top: none;
  border-radius: 0 0 6px 6px;
}
.summary-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
}
.summary-label {
  color: #757575;
  min-width: 90px;
  text-align: right;
}
.summary-value-ek {
  color: #757575;
  font-variant-numeric: tabular-nums;
}
.summary-value-vk {
  color: #212121;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}
.summary-value-margin {
  color: #2E7D32;
  font-size: 0.75rem;
}
.summary-vat-row {
  padding-top: 6px;
  border-top: 1px solid #E0E0E0;
  margin-top: 4px;
}
.summary-brutto {
  padding-top: 6px;
  border-top: 2px solid #212121;
  margin-top: 4px;
}
.vat-input {
  width: 56px;
  padding: 4px 6px;
  border: 1px solid #E0E0E0;
  border-radius: 4px;
  text-align: right;
  font-size: 0.875rem;
}
.vat-input:focus {
  outline: none;
  border-color: #D30020;
}
.pos-kontextmenu-item:not(.pos-kontextmenu-disabled):hover {
  background: #FFF0F2;
}
.einheit-vorschlag-item:hover {
  background: #FFF0F2;
}
/**
 * _vorgaenge.scss – Styles für die Vorgang-Detailansicht (assets/js/vorgaenge.js)
 */
/**
 * _variables.scss – Design-Variablen & Mixins
 *
 * Alle Farben, Abstände, Schriften und Mixins zentral definiert.
 * Wird von allen anderen SCSS-Partials importiert.
 *
 * Farbschema (aus Briefing):
 *   Primärfarbe 1:   #D30020
 *   Sekundärfarbe 1: #B0B0B0
 *   Sekundärfarbe 2: #6C6B6B
 *   Basisfarbe:      #FFFFFF
 */
.vorgang-dokumente-liste {
  display: flex;
  flex-direction: column;
}
.vorgang-dokumente-kopf, .vorgang-dokument-zeile {
  display: grid;
  grid-template-columns: 100px 1fr 110px 150px;
  gap: 10px;
  align-items: center;
  padding: 8px 4px;
}
.vorgang-dokumente-kopf {
  font-size: 0.75rem;
  font-weight: 700;
  color: #9E9E9E;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 1px solid #E0E0E0;
}
.vorgang-dokument-zeile {
  color: #212121;
  text-decoration: none;
  border-bottom: 1px solid #F0F0F0;
  font-size: 0.8125rem;
  transition: background 0.12s;
}
.vorgang-dokument-zeile:hover {
  background: #FAFAFA;
}
.vorgang-dokument-zeile:last-child {
  border-bottom: none;
}
.vorgang-dokument-typ {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vorgang-dokument-status {
  display: inline-flex;
  justify-content: center;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
}
.vorgang-felder-grid {
  margin-bottom: 16px;
}
.vorgang-felder-grid > .card {
  margin-bottom: 16px;
}
/**
 * _statistik.scss – Statistik-Bereich
 *
 * War bisher eine leere Stub-Datei (siehe SCSS-Compiler-Fix ganz zu Beginn
 * dieser Session) – die Klassen aus statistik.js hatten dadurch nie eine
 * echte Gestaltung, obwohl das Modul selbst funktionierte.
 */
/**
 * _variables.scss – Design-Variablen & Mixins
 *
 * Alle Farben, Abstände, Schriften und Mixins zentral definiert.
 * Wird von allen anderen SCSS-Partials importiert.
 *
 * Farbschema (aus Briefing):
 *   Primärfarbe 1:   #D30020
 *   Sekundärfarbe 1: #B0B0B0
 *   Sekundärfarbe 2: #6C6B6B
 *   Basisfarbe:      #FFFFFF
 */
.statistik-wrapper {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}
#statistikContent {
  flex: 1;
  overflow-y: auto;
}
.table-container {
  background: #fff;
  border: 1px solid #E0E0E0;
  border-radius: 6px;
  margin-bottom: 16px;
  overflow: hidden;
}
.table-container-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #fafafa;
  border-bottom: 1px solid #E0E0E0;
  min-height: 52px;
}
.table-container-title {
  font-weight: 600;
  font-size: 0.875rem;
  color: #212121;
  display: flex;
  align-items: center;
  gap: 8px;
}
.table-responsive {
  overflow-x: auto;
}
.stat-count-link {
  text-decoration: none;
}
.stat-count-link:hover {
  text-decoration: underline;
}
th.sortable {
  cursor: pointer;
  user-select: none;
}
th.sortable:hover {
  background: #f0f0f0;
}
.map-layout {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  gap: 0;
}
.map-filter-leiste {
  display: flex;
  flex-direction: column;
  padding: 12px 16px;
  background: #FFFFFF;
  border-bottom: 1px solid #E0E0E0;
  flex-shrink: 0;
}
.map-filter-zeile {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 18px;
}
.map-filter-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.map-filter-block label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #757575;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.map-typ-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  white-space: nowrap;
}
.map-typ-check input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  min-width: 16px;
  border: 2px solid var(--farbe, #BDBDBD);
  border-radius: 3px;
  background: #fff;
  cursor: pointer;
  position: relative;
  margin: 0;
  flex-shrink: 0;
}
.map-typ-check input[type="checkbox"]:checked {
  background: var(--farbe, #D30020);
}
.map-typ-check input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 0px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.map-karten-bereich {
  flex: 1;
  min-height: 0;
}
#mapContainer {
  height: 100%;
}
.map-popup-oeffnen {
  color: #D30020;
  font-size: 0.8125rem;
  font-weight: 600;
}
.map-pin-puls {
  animation: mapPinPuls 1.6s ease-out infinite;
}
@keyframes mapPinPuls {
  0% {
    box-shadow: 0 0 0 0 rgba(211, 0, 32, 0.55);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(211, 0, 32, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(211, 0, 32, 0);
  }
}
@media (max-width: 700px) {
  .map-filter-leiste {
    flex-direction: column;
    gap: 10px;
  }
}
/**
 * _einstellungen.scss – Einstellungen-Modal
 */
/**
 * _variables.scss – Design-Variablen & Mixins
 *
 * Alle Farben, Abstände, Schriften und Mixins zentral definiert.
 * Wird von allen anderen SCSS-Partials importiert.
 *
 * Farbschema (aus Briefing):
 *   Primärfarbe 1:   #D30020
 *   Sekundärfarbe 1: #B0B0B0
 *   Sekundärfarbe 2: #6C6B6B
 *   Basisfarbe:      #FFFFFF
 */
.settings-toolbar {
  position: sticky;
  top: -18px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: -18px -18px 14px -18px;
  padding: 14px 18px 10px 18px;
  background: #fff;
  border-bottom: 1px solid #E0E0E0;
}
.settings-search {
  position: relative;
}
.settings-search i {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: #9E9E9E;
  font-size: 0.875rem;
  pointer-events: none;
}
.settings-search input {
  width: 100%;
  padding: 7px 12px 7px 32px;
  border: 1px solid #E0E0E0;
  border-radius: 6px;
  font-size: 0.875rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.12s;
}
.settings-search input:focus {
  border-color: #D30020;
}
.settings-category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}
.settings-category-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: none;
  border-bottom: 2px solid transparent;
  background: none;
  color: #757575;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.12s, border-color 0.12s;
}
.settings-category-tab:hover {
  color: #D30020;
}
.settings-category-tab:focus-visible {
  outline: 2px solid #D30020;
  outline-offset: -2px;
}
.settings-category-tab.active {
  color: #D30020;
  border-bottom-color: #D30020;
}
.settings-category-panel {
  display: none;
}
.settings-empty-state {
  display: none;
  padding: 34px 14px;
  text-align: center;
  color: #9E9E9E;
  font-size: 0.875rem;
}
.settings-empty-state i {
  margin-right: 6px;
}
.settings-accordion {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.settings-accordion-item {
  border: 1px solid #E0E0E0;
  border-radius: 6px;
  overflow: hidden;
}
.settings-accordion-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: linear-gradient(135deg, #C2555F 0%, #A8434C 100%);
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  user-select: none;
  transition: opacity 0.12s;
}
.settings-accordion-header:hover {
  opacity: 0.92;
}
.settings-accordion-header:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -4px;
}
.settings-accordion-header.dark-header {
  background: linear-gradient(135deg, #8B0000 0%, #5C0000 100%);
}
.accordion-arrow {
  transition: transform 0.2s ease;
  transform-origin: center;
}
.settings-accordion-item.open .settings-accordion-header .accordion-arrow {
  transform: rotate(180deg);
}
.settings-accordion-body {
  padding: 14px;
  background: #fff;
  max-height: 50vh;
  overflow-y: auto;
}
.settings-accordion-body:has(.settings-editable-table) {
  padding-top: 0;
}
.settings-editable-table {
  width: 100%;
  margin-top: 14px;
  border-collapse: separate;
  border-spacing: 0;
}
.settings-editable-table th, .settings-editable-table td {
  padding: 5px 9px;
  text-align: left;
  border-bottom: 1px solid #E0E0E0;
  font-size: 0.875rem;
}
.settings-editable-table th {
  font-weight: 600;
  color: #757575;
  background: #fafafa;
  position: sticky;
  top: 0;
  z-index: 2;
  box-shadow: 0 1px 0 #E0E0E0;
}
.settings-editable-table th.sortable {
  cursor: pointer;
  user-select: none;
}
.settings-editable-table th.sortable:hover {
  background: #f0f0f0;
  color: #212121;
}
.settings-editable-table th.sort-asc::after {
  content: " ↑";
  color: #D30020;
}
.settings-editable-table th.sort-desc::after {
  content: " ↓";
  color: #D30020;
}
.settings-editable-table tr:hover td {
  background: #FFF0F2;
}
.settings-editable-table tr.editing td {
  background: #EDE7F6;
}
.settings-editable-table .inline-input {
  border: none;
  background: transparent;
  width: 100%;
  font-size: 0.875rem;
  padding: 2px 3px;
  outline: none;
  font-family: inherit;
}
.settings-editable-table .inline-input:focus {
  border-bottom: 2px solid #D30020;
  background: #fff;
}
.settings-new-row td {
  background: #f0f8ff !important;
}
.user-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.user-list-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 9px 12px;
  background: #fafafa;
  border: 1px solid #E0E0E0;
  border-radius: 6px;
  transition: background 0.12s;
}
.user-list-item:hover {
  background: #FFF0F2;
}
.user-list-item-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.user-name {
  flex: 1;
  font-weight: 500;
}
.user-fullname {
  font-weight: 400;
  color: #9E9E9E;
  margin-left: 4px;
}
.user-permissions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.user-perm-badge {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 500;
  background: #E3F2FD;
  color: #1565C0;
}
.user-perm-none {
  font-size: 0.75rem;
  color: #9E9E9E;
  font-style: italic;
}
.user-status {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 600;
}
.user-status.active {
  background: #E8F5E9;
  color: #2E7D32;
}
.user-status.inactive {
  background: #F5F5F5;
  color: #757575;
}
/**
 * _historie.scss – Änderungshistorie (Verlauf-Modal + Gesamtübersicht)
 */
.hist-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.hist-filter .form-control {
  width: auto;
  min-width: 130px;
  flex: 0 1 auto;
}
.hist-filter #histFQ {
  flex: 1 1 160px;
}
.hist-wrap {
  overflow-x: auto;
}
.hist-info, .hist-paging {
  font-size: 0.8125rem;
  color: var(--text-muted, #777);
  margin: 6px 0;
}
.hist-paging {
  text-align: center;
  margin-top: 12px;
}
.hist-leer {
  padding: 22px;
  text-align: center;
  color: var(--text-muted, #777);
}
.hist-tabelle {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}
.hist-tabelle th {
  text-align: left;
  padding: 6px 8px;
  border-bottom: 2px solid var(--border-color, #ddd);
  white-space: nowrap;
}
.hist-tabelle td {
  padding: 6px 8px;
  border-bottom: 1px solid var(--border-color, #e5e5e5);
  vertical-align: top;
}
.hist-tabelle .hist-zeit {
  white-space: nowrap;
  color: var(--text-muted, #777);
}
.hist-tabelle .hist-text {
  min-width: 280px;
}
.hist-zeile {
  padding: 1px 0;
}
.hist-von {
  color: #b3261e;
  text-decoration: line-through;
  text-decoration-color: rgba(179, 38, 30, 0.45);
}
.hist-auf {
  color: #1b7f3b;
  font-weight: 600;
}
.hist-pfeil {
  margin: 0 6px;
  color: var(--text-muted, #888);
  font-size: 0.75rem;
}
.hist-badge {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 10px;
  font-size: 0.6875rem;
  font-weight: 600;
  background: #eceff1;
  color: #37474f;
  margin-right: 4px;
  white-space: nowrap;
}
.hist-badge.hist-badge-angelegt, .hist-badge.hist-badge-ergaenzt {
  background: #e3f4e8;
  color: #1b7f3b;
}
.hist-badge.hist-badge-geaendert {
  background: #e3edf9;
  color: #1a56a0;
}
.hist-badge.hist-badge-geloescht, .hist-badge.hist-badge-entfernt {
  background: #fbe6e4;
  color: #b3261e;
}
/**
 * _modals.scss – Platzhalter
 *
 * TODO: Dieser Bereich ist im ersten Entwurf noch nicht ausgestaltet.
 * Wird von style.scss bereits importiert, damit die Kompilierung nicht
 * fehlschlägt – hier können die Styles für den modals-Bereich ergänzt werden.
 */
/**
 * _variables.scss – Design-Variablen & Mixins
 *
 * Alle Farben, Abstände, Schriften und Mixins zentral definiert.
 * Wird von allen anderen SCSS-Partials importiert.
 *
 * Farbschema (aus Briefing):
 *   Primärfarbe 1:   #D30020
 *   Sekundärfarbe 1: #B0B0B0
 *   Sekundärfarbe 2: #6C6B6B
 *   Basisfarbe:      #FFFFFF
 */
/**
 * _tables.scss – Tabellen und Tabellen-Container
 */
/**
 * _variables.scss – Design-Variablen & Mixins
 *
 * Alle Farben, Abstände, Schriften und Mixins zentral definiert.
 * Wird von allen anderen SCSS-Partials importiert.
 *
 * Farbschema (aus Briefing):
 *   Primärfarbe 1:   #D30020
 *   Sekundärfarbe 1: #B0B0B0
 *   Sekundärfarbe 2: #6C6B6B
 *   Basisfarbe:      #FFFFFF
 */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.data-table thead th {
  padding: 8px 12px;
  text-align: left;
  font-weight: 600;
  font-size: 0.8rem;
  color: #757575;
  background: #fafafa;
  border-bottom: 2px solid #E0E0E0;
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 10;
}
.data-table thead th.sortable {
  cursor: pointer;
  user-select: none;
}
.data-table thead th.sortable:hover {
  background: #f0f0f0;
  color: #212121;
}
.data-table thead th.sort-asc::after {
  content: " ↑";
  color: #D30020;
}
.data-table thead th.sort-desc::after {
  content: " ↓";
  color: #D30020;
}
.data-table tbody tr {
  border-bottom: 1px solid rgba(0, 0, 0, 0.055);
  transition: background 0.12s;
}
.data-table tbody tr:hover {
  background: rgba(211, 0, 32, 0.03);
}
.data-table tbody tr.selected {
  background: #E3F2FD;
}
.data-table tbody td {
  padding: 7px 12px;
  color: #212121;
  vertical-align: middle;
}
.table-actions {
  display: flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}
.table-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  color: #757575;
  transition: all 0.12s;
  font-size: 0.85rem;
  border: none;
  background: none;
  cursor: pointer;
  pointer-events: auto;
}
.table-action-btn:hover {
  background: #E0E0E0;
  color: #212121;
}
.table-action-btn.edit:hover {
  background: #E3F2FD;
  color: #1565C0;
}
.table-action-btn.delete:hover {
  background: #FFEBEE;
  color: #C62828;
}
.table-action-btn.view:hover {
  background: #E8F5E9;
  color: #2E7D32;
}
.table-container {
  background: #FFFFFF;
  border-radius: 8px;
  border: 1px solid #E0E0E0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}
.table-container-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  border-bottom: 1px solid #E0E0E0;
  gap: 10px;
  flex-wrap: wrap;
  background: #fafafa;
}
.table-container-title {
  font-weight: 600;
  font-size: 0.9375rem;
}
.table-responsive {
  overflow-x: auto;
  overflow-y: auto;
}
.table-striped tbody tr:nth-child(even) {
  background: #fafafa;
}
.table-striped tbody tr:nth-child(even):hover {
  background: rgba(211, 0, 32, 0.03);
}
.table-compact thead th {
  padding: 5px 10px;
}
.table-compact tbody td {
  padding: 4px 10px;
  font-size: 0.8125rem;
}
.table-bordered {
  border: 1px solid #E0E0E0;
}
.table-bordered thead th, .table-bordered tbody td {
  border: 1px solid #E0E0E0;
}
/**
 * _responsive.scss – Responsive / Mobile Anpassungen
 *
 * WICHTIG: Dies ist die eigentliche QUELLE für alle Responsive-Regeln -
 * der Compiler generiert daraus style.css automatisch bei Änderungen neu
 * (siehe ScssCompiler::compileIfChanged()). Änderungen NUR hier vornehmen,
 * NICHT direkt in der kompilierten style.css - sonst gehen sie beim
 * nächsten automatischen Kompilieren (ausgelöst durch Änderung einer
 * BELIEBIGEN anderen .scss-Datei) wieder verloren.
 */
/**
 * _variables.scss – Design-Variablen & Mixins
 *
 * Alle Farben, Abstände, Schriften und Mixins zentral definiert.
 * Wird von allen anderen SCSS-Partials importiert.
 *
 * Farbschema (aus Briefing):
 *   Primärfarbe 1:   #D30020
 *   Sekundärfarbe 1: #B0B0B0
 *   Sekundärfarbe 2: #6C6B6B
 *   Basisfarbe:      #FFFFFF
 */
/* ── Tablet (≤ 1024px) ──────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  /* Beschriftungen unter Nav-Buttons ausblenden */
  /* Dashboard: zwei Spalten → eine Spalte */
  /* Dokument: Meta-Zeile umbrechen */
  /* Schmalere Sidebars */
  .nav-btn-label {
    display: none;
  }
  .nav-action-btn {
    padding: 4px 8px;
  }
  .dashboard-top-row {
    grid-template-columns: 1fr;
  }
  .dokument-meta-row {
    grid-template-columns: auto auto;
    gap: 10px;
  }
  .page-list-sidebar {
    width: 250px;
  }
  .artikel-liste-sidebar {
    width: 250px;
  }
}
/* ── Mobil (≤ 768px) ────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Hauptmenü-Items verstecken (Hamburger via JS) */
  /* Tab-Texte verstecken, nur Icons */
  /* Layouts: übereinander statt nebeneinander - Liste füllt die komplette
       verfügbare Höhe, der (auf Mobil ungenutzte) Detailbereich daneben
       wird ausgeblendet, statt als leerer grauer Bereich Platz zu verschwenden. */
  /* Modals: volle Breite */
  /* Dokument-Maske: Spalten untereinander */
  /* Positions-Tabelle horizontal scrollbar - .positions-table-scroll
       (siehe _dokumente.scss) ist dort bewusst overflow:visible, das
       wird hier auf schmalen Bildschirmen gezielt wieder auf
       overflow-x:auto zurückgesetzt (Voraussetzung fürs horizontale
       Scrollen bei min-width:700px unten). Als Nebeneffekt wird dadurch
       die Desktop-sticky-Kopfzeile hier automatisch wirkungslos - genau
       gewünscht, siehe Kommentar dort. */
  /* Verknüpfte-Dokumente-Liste im Vorgang: "Erstellt am" fällt weg
       (siehe .hidden-mobile auf der Spalte selbst), Grid entsprechend
       auf drei statt vier Spalten reduzieren. */
  /* Weniger wichtige Spalten ausblenden */
  /* Ansicht-Umschaltung (Tabelle/Liste) ausblenden - unterhalb dieser
       Breite wird ohnehin immer die Listenansicht erzwungen (siehe
       CRMUtils.istMobilAnsicht()), die Auswahl wäre also wirkungslos. */
  /* Filterleisten als Accordion: eingeklappt zeigt nur den Umschalter,
       die eigentlichen Filterfelder (alle direkten Kind-Elemente der
       Filterleiste) werden versteckt. Der Container selbst muss dabei
       ebenfalls "schrumpfen" (Padding/Rahmen weg), sonst bleibt trotz
       ausgeblendeter Kinder ein leerer grauer Bereich stehen. */
  /* Liste soll die komplette Seite natürlich ausfüllen und mit der
       Seite selbst scrollen, statt in einer eigenen, höhenbegrenzten
       Box (overflow-y:auto) zu stecken - auf Mobil gibt es ja ohnehin
       keinen Detailbereich mehr daneben, der eine feste Höhen-
       Aufteilung nötig machen würde (Details öffnen stattdessen in
       einem eigenen Tab, siehe CRMUtils.effektiverNavigationsModus()). */
  /* Die o.g. Freigabe allein reicht nicht - das App-Grundgerüst
       (body.app-loaded, #app-wrapper, .tab-content) ist normalerweise
       bewusst auf die Viewport-Höhe fixiert mit overflow:hidden, damit
       NUR einzelne Bereiche intern scrollen (Desktop-App-Gefühl). Auf
       Mobil wird das auf allen drei Ebenen aufgehoben, damit wirklich
       die GANZE SEITE natürlich scrollt, statt in einer fixierten Box
       eingesperrt zu bleiben. */
  .nav-items {
    display: none;
  }
  #main-nav {
    padding: 0 8px;
  }
  .nav-center {
    max-width: none;
  }
  #tabs-container .tab span {
    display: none;
  }
  .tab {
    min-width: 34px;
    padding: 0 9px;
  }
  .page-list-layout {
    flex-direction: column;
  }
  .page-list-sidebar {
    width: 100%;
    flex: 1;
    height: auto;
    border-right: none;
    border-bottom: none;
  }
  .page-list-sidebar ~ .page-list-main {
    display: none;
  }
  .artikel-grid {
    flex-direction: column;
  }
  .artikel-liste-sidebar {
    width: 100%;
    flex: 1;
    height: auto;
    border-right: none;
    border-bottom: none;
  }
  .artikel-liste-sidebar ~ #artikelDetail {
    display: none;
  }
  .modal-lg, .modal-xl {
    max-width: 100%;
  }
  .dokument-meta-row {
    grid-template-columns: 1fr;
  }
  .dokument-address-row {
    grid-template-columns: 1fr;
  }
  .positions-table-scroll {
    overflow-x: auto;
  }
  .positions-table {
    min-width: 700px;
  }
  .vorgang-dokumente-kopf, .vorgang-dokument-zeile {
    grid-template-columns: 78px 1fr 90px;
  }
  .hidden-mobile {
    display: none !important;
  }
  .ansicht-toggle-group {
    display: none !important;
  }
  .filter-bar {
    padding: 7px 10px;
  }
  .dashboard-top-row {
    gap: 10px;
  }
  .table-container-header.filter-collapsed {
    padding: 0 !important;
    border-bottom: none !important;
    min-height: 0 !important;
  }
  .table-container-header.filter-collapsed > * {
    display: none !important;
  }
  #artikelListeItems, #kontakteListeItems, #dokumenteListeItems, #vorgaengeListeItems {
    overflow-y: visible !important;
    flex: none !important;
    min-height: 0 !important;
  }
  body.app-loaded {
    overflow: visible !important;
    height: auto !important;
  }
  #app-wrapper {
    position: static !important;
    overflow: visible !important;
    height: auto !important;
    margin-top: var(--header-total) !important;
  }
  .tab-content {
    overflow: visible !important;
    height: auto !important;
    min-height: 0 !important;
  }
}
/* Filter-Umschalter selbst: auf Desktop nie sichtbar (dort ist die
   Filterleiste immer ausgeklappt), auf Mobil sichtbar gemacht. */
.filter-toggle-btn {
  display: none;
}
@media (max-width: 768px) {
  .filter-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 11px 14px;
    background: #fff;
    border: none;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
  }
  .filter-toggle-btn span {
    display: flex;
    align-items: center;
    gap: 7px;
  }
  .filter-toggle-btn i.fa-sliders-h {
    color: var(--color-primary);
  }
  .filter-toggle-btn i.fa-chevron-down, .filter-toggle-btn i.fa-chevron-up {
    transition: transform 0.15s;
    color: var(--text-muted);
  }
}
/* ── Klein (≤ 480px) ────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  /* Toasts: volle Breite */
  .login-box {
    padding: 22px 16px;
  }
  #main-nav {
    gap: 4px;
  }
  .content-header {
    padding: 6px 10px;
  }
  .content-header-title {
    font-size: 0.875rem;
  }
  .btn {
    padding: 6px 10px;
    font-size: 0.8125rem;
  }
  #toast-container {
    bottom: 10px;
    right: 10px;
    left: 10px;
  }
  .toast {
    min-width: auto;
  }
}
/* ── Print ──────────────────────────────────────────────────────────────── */
@media print {
  /* Steuerelemente ausblenden */
  /* Body: normaler Fluss, keine fixed-Elemente mehr */
  #tab-bar, #main-nav, #search-sidebar, .position-toolbar, .content-header-actions, #toast-container, .modal-overlay {
    display: none !important;
  }
  body {
    background: #fff;
    overflow: auto;
    height: auto;
  }
  #app-wrapper {
    position: static;
    top: auto;
    bottom: auto;
  }
  #tab-contents {
    margin-left: 0 !important;
  }
  .tab-content {
    display: flex !important;
  }
}
