/* sloppyfix – Asset & Maintenance Management
   Farbpalette: cream #f0e8d8 | olive #4a5a3a | sage #5a7a4a | brick-red #a83220 */

:root {
  --fix-dark:    #1a2410;
  --fix-mid:     #3a4a2a;
  --fix-cream:   #f0e8d8;
  --fix-forest:  #4a5a3a;
  --fix-emerald: #5a7a4a;
  --fix-red:     #a83220;
  --fix-green:   #5a7a4a;
  --fix-border:  #c8b898;
  --fix-gold:    #b8984a;
  --fix-shadow:  0 1px 3px rgba(0,0,0,.12), 0 1px 2px rgba(0,0,0,.08);
  --radius:      12px;

  /* Bootstrap variable overrides */
  --bs-body-bg:            #f0e8d8;
  --bs-body-bg-rgb:        240,232,216;
  --bs-secondary-bg:       #e8dcc8;
  --bs-secondary-bg-rgb:   232,220,200;
  --bs-tertiary-bg:        #dfd2ba;
  --bs-tertiary-bg-rgb:    223,210,186;
  --bs-body-color:         #2a2015;
  --bs-body-color-rgb:     42,32,21;
  --bs-emphasis-color:     #2a3420;
  --bs-border-color:       #c8b898;
  --bs-border-color-translucent: rgba(58,50,37,.15);
}

/* ── Layout ── */
body {
  background: var(--fix-cream);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #1a1510;
  min-height: 100vh;
}

/* ── Top Bar (replaces Bootstrap navbar) ── */
.sf-topbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.sf-topbar ::-webkit-scrollbar { display: none; }

.sf-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .35rem .6rem;
  border-radius: 8px;
  font-size: .8rem;
  font-weight: 500;
  color: var(--fix-mid, #4a5a3a);
  text-decoration: none;
  white-space: nowrap;
  transition: background .12s, color .12s;
  flex-shrink: 0;
}
.sf-nav-btn i { font-size: .9rem; }
.sf-nav-btn:hover { background: rgba(74,90,58,.1); color: var(--fix-dark, #2a3420); }
.sf-nav-btn.active { background: rgba(74,90,58,.15); color: var(--fix-dark, #2a3420); font-weight: 700; }

/* Mobile: hide text labels, show only icons */
@media (max-width: 768px) {
  .sf-nav-btn span { display: none; }
  .sf-nav-btn { padding: .4rem .5rem; }
  .sf-nav-btn i { font-size: 1.1rem; }
}

/* Keep old navbar rules for dark mode compatibility */
.navbar { background: var(--fix-cream) !important; }
.navbar-toggler { border-color: var(--fix-border); }
.navbar-toggler-icon { filter: invert(0); }

/* ── Cards ── */
.card {
  border: 1px solid var(--fix-border);
  border-radius: var(--radius);
  box-shadow: var(--fix-shadow);
  background: #faf6ee;
}
.card-header {
  background: var(--fix-forest);
  color: #f0e8d8;
  border-radius: var(--radius) var(--radius) 0 0 !important;
  font-weight: 600;
  padding: .75rem 1.25rem;
  border-bottom: none;
}

/* ── Stat cards (dashboard) ── */
.stat-card {
  border-radius: var(--radius);
  padding: .5rem .75rem;
  box-shadow: var(--fix-shadow);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.stat-card .stat-value { font-size: 1.1rem; font-weight: 700; line-height: 1; }
.stat-card .stat-label { font-size: .7rem; opacity: .85; margin-top: .15rem; }
.stat-card-primary  { background: var(--fix-dark); }
.stat-card-success  { background: var(--fix-green); }
.stat-card-warning  { background: var(--fix-gold); }
.stat-card-danger   { background: var(--fix-red); }

/* ── Warning badge ── */
.warning-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  background: #fde2e0;
  color: var(--fix-red);
  border: 1px solid #d4a09a;
  border-radius: 6px;
  padding: .15rem .5rem;
  font-size: .78rem;
  font-weight: 700;
  white-space: nowrap;
}
.warning-badge svg { width: 14px; height: 14px; }

/* ── Status badges ── */
.status-pending    { background: #fef3c3; color: #854d0e; border: 1px solid #fde68a; }
.status-ok         { background: #e2eed8; color: #3a5a2a; border: 1px solid #b8d4a8; }
.status-overdue    { background: #fde2e0; color: #8a2218; border: 1px solid #d4a09a; }
.status-completed  { background: #f1f5f9; color: #64748b; border: 1px solid #cbd5e1; }

/* ── Asset status badges ── */
.asset-status-active         { background: #e2eed8; color: #3a5a2a; border: 1px solid #b8d4a8; }
.asset-status-inactive       { background: #f1f5f9; color: #64748b; border: 1px solid #cbd5e1; }
.asset-status-decommissioned { background: #fde2e0; color: #8a2218; border: 1px solid #d4a09a; }

/* ── Finding severity badges ── */
.finding-badge-gering   { background: #dbeafe; color: #1e40af; border: 1px solid #93c5fd; }
.finding-badge-mittel   { background: #fef3c3; color: #854d0e; border: 1px solid #e8c868; }
.finding-badge-hoch     { background: #fde8d0; color: #9a4412; border: 1px solid #e0a870; }
.finding-badge-kritisch { background: #fde2e0; color: #8a2218; border: 1px solid #d4a09a; }

/* ── Buttons ── */
.btn-fix {
  background: var(--fix-emerald);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
}
.btn-fix:hover { background: #4a6a3a; color: #fff; }

/* ── Form controls (light mode) ── */
.form-control,
.form-select {
  background-color: #faf8f0;
  border-color: var(--fix-border);
}
.form-control:focus,
.form-select:focus {
  background-color: #faf8f0;
  border-color: var(--fix-emerald);
  box-shadow: 0 0 0 0.2rem rgba(90,122,74,.2);
}

/* ── Table ── */
.table { font-size: .9rem; }
/* Header bewusst NEUTRAL — Olive-Header war zu dominant
   (modern.css ueberschreibt sowieso auf bs-tertiary-bg). */
.table thead th {
  background: var(--bs-tertiary-bg);
  color: var(--bs-body-color);
  font-weight: 600;
  border: none;
  white-space: nowrap;
}
.table tbody tr:hover { background: #ece4d0; }

/* ── Striped column highlight: dezent (vorher 0.08, sehr gruenlich) ── */
.table-striped-col > tbody > tr > td:nth-child(even),
.table-striped-col > tbody > tr > th:nth-child(even) {
  background: rgba(74,90,58,.035);
}

/* ── Login page (glassmorphism) ── */
.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1510 0%, #2a3420 100%);
}
.login-card {
  width: 100%;
  max-width: 400px;
  border-radius: var(--radius);
  box-shadow: 0 20px 40px rgba(0,0,0,.35);
  backdrop-filter: blur(12px);
  background: rgba(240,232,216,.85);
}
.login-logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--fix-dark);
  text-align: center;
  margin-bottom: .25rem;
}
.login-logo span { color: var(--fix-emerald); }

/* ── Sidebar nav (admin) ── */
.admin-sidebar .nav-link {
  color: var(--fix-mid) !important;
  border-radius: 8px;
  padding: .5rem .75rem;
  margin-bottom: .15rem;
}
.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
  background: var(--fix-forest);
  color: #fff !important;
}
.admin-sidebar .nav-link.active { font-weight: 600; }

/* ── Alerts ── */
.alert { border-radius: 10px; border: none; }

/* ── Warning banner ── */
.warning-alert {
  background: #fde2e0;
  border: 2px solid var(--fix-red);
  border-radius: var(--radius);
  color: var(--fix-red);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .stat-card .stat-value { font-size: 1rem; }
  .table { font-size: .8rem; }
}

/* ── Nav user block ── */
.nav-user-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.2;
}
.nav-user-name {
  font-size: .82rem;
  font-weight: 600;
  color: var(--fix-dark);
}
.nav-user-role {
  font-size: .68rem;
  font-weight: 700;
  padding: .05rem .35rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.role-admin   { background: #fde2e0; color: #8a2218; }
.role-manager { background: #fef3c7; color: #92400e; }
.role-user    { background: #e2e8f0; color: #475569; }
.btn-logout {
  background: none;
  border: 1px solid var(--fix-border);
  color: var(--fix-red);
  border-radius: 6px;
  padding: .2rem .6rem;
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
  white-space: nowrap;
}
.btn-logout:hover {
  background: #fde2e0;
  border-color: var(--fix-red);
}
/* Hide Bootstrap dropdown caret on icon-only nav items */
.nav-no-caret::after { display: none !important; }

/* ── Custom icons ── */
.nav-icon {
  width: 57px; height: 57px;
  object-fit: contain;
  vertical-align: middle;
  mix-blend-mode: multiply;
  opacity: .85;
  flex-shrink: 0;
}
.nav-icon-sm {
  width: 47px; height: 47px;
  object-fit: contain;
  vertical-align: middle;
  mix-blend-mode: multiply;
  opacity: .85;
  flex-shrink: 0;
}
.content-icon {
  object-fit: contain;
  mix-blend-mode: multiply;
}
[data-bs-theme="dark"] .content-icon {
  filter: invert(1);
  mix-blend-mode: screen;
}

/* ── Dark mode – Bootstrap CSS variable overrides ── */
[data-bs-theme="dark"] {
  --bs-body-bg:                   #1a1510;
  --bs-body-bg-rgb:               26,21,16;
  --bs-body-color:                #e0d0b8;
  --bs-body-color-rgb:            224,208,184;
  --bs-secondary-bg:              #2a2218;
  --bs-secondary-bg-rgb:          42,34,24;
  --bs-tertiary-bg:               #201a12;
  --bs-tertiary-bg-rgb:           32,26,18;
  --bs-emphasis-color:            #e0d0b8;
  --bs-emphasis-color-rgb:        224,208,184;
  --bs-secondary-color:           #7a6a58;
  --bs-secondary-color-rgb:       122,106,88;
  --bs-border-color:              #4a3e30;
  --bs-border-color-translucent:  rgba(200,184,152,.15);
  --bs-link-color:                #b8984a;
  --bs-link-color-rgb:            184,152,74;
  --bs-link-hover-color:          #d0b060;
  --bs-heading-color:             #d8c8a8;
}

/* ── Dark mode – component overrides ── */
[data-bs-theme="dark"] body {
  background: #1a1510;
  color: #e0d0b8;
}
[data-bs-theme="dark"] .card {
  background: #2a2218;
  border-color: #4a3e30;
}
[data-bs-theme="dark"] .card-header {
  background: #342a1e;
  color: #c8b898;
  border-color: #4a3e30;
  font-weight: 600;
  letter-spacing: .02em;
}
/* Tables */
[data-bs-theme="dark"] .table {
  color: #c8b898;
  --bs-table-bg: transparent;
}
[data-bs-theme="dark"] .table thead th {
  background: #241e15;
  color: #c8b898;
  border-color: #4a3e30;
}
[data-bs-theme="dark"] .table > :not(caption) > * > * {
  border-color: #4a3e30;
  background-color: transparent;
}
[data-bs-theme="dark"] .table tbody tr:hover td {
  background: #342a1e !important;
}
/* Fix table-danger in dark mode */
[data-bs-theme="dark"] .table-danger,
[data-bs-theme="dark"] .table-danger td,
[data-bs-theme="dark"] .table-danger th {
  --bs-table-bg: rgba(168,50,32,.15) !important;
  --bs-table-hover-bg: rgba(168,50,32,.28) !important;
  background-color: rgba(168,50,32,.15) !important;
  color: #c8b898 !important;
}
[data-bs-theme="dark"] .table-danger:hover td,
[data-bs-theme="dark"] .table tbody tr.table-danger:hover td {
  background: rgba(168,50,32,.28) !important;
  color: #c8b898 !important;
}
[data-bs-theme="dark"] .table-danger a,
[data-bs-theme="dark"] .table-danger td a,
[data-bs-theme="dark"] .table-danger th a {
  color: #c8b898 !important;
}
[data-bs-theme="dark"] .table-danger a:hover,
[data-bs-theme="dark"] .table-danger td a:hover {
  color: #e0d0b8 !important;
}
/* Modals */
[data-bs-theme="dark"] .modal-content {
  background: #2a2218;
  color: #c8b898;
  border-color: #4a3e30;
}
[data-bs-theme="dark"] .modal-header {
  border-color: #4a3e30;
}
/* Forms */
[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select {
  background: #1a1510;
  border-color: #4a3e30;
  color: #c8b898;
}
[data-bs-theme="dark"] .form-control::placeholder { color: #7a6a58; }
[data-bs-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .form-select:focus {
  background: #1a1510;
  color: #e0d0b8;
  border-color: #b8984a;
  box-shadow: 0 0 0 0.2rem rgba(184,152,74,.2);
}
[data-bs-theme="dark"] .form-text,
[data-bs-theme="dark"] .form-check-label { color: #7a6a58; }
/* Alerts */
[data-bs-theme="dark"] .alert-info    { background: #1a1e25; color: #7ab0d8; border-color: #2a3a45; }
[data-bs-theme="dark"] .alert-warning { background: #2a2010; color: #c09030; border-color: #4a3a18; }
[data-bs-theme="dark"] .alert-danger  { background: #2a1510; color: #c07070; border-color: #4a2a20; }
[data-bs-theme="dark"] .alert-success { background: #1a2010; color: #8a9a6a; border-color: #3a4a28; }
/* Dropdown */
[data-bs-theme="dark"] .dropdown-menu {
  background: #2a2218;
  border-color: #4a3e30;
}
[data-bs-theme="dark"] .dropdown-item { color: #c8b898; }
[data-bs-theme="dark"] .dropdown-item:hover { background: #342a1e; color: #e0d0b8; }
[data-bs-theme="dark"] .dropdown-divider { border-color: #4a3e30; }
/* Footer */
[data-bs-theme="dark"] footer { border-top-color: #4a3e30 !important; color: #7a6a58; }
[data-bs-theme="dark"] footer a { color: #7a6a58 !important; }
/* Warning */
[data-bs-theme="dark"] .warning-badge { background: rgba(168,50,32,.25); color: #e07060; border-color: rgba(168,50,32,.4); }
[data-bs-theme="dark"] .warning-alert { background: rgba(168,50,32,.15); border-color: rgba(168,50,32,.4); color: #e07060; }
/* Status badges */
[data-bs-theme="dark"] .status-pending    { background: rgba(120,80,0,.25); color: #b09040; border-color: rgba(120,80,0,.4); }
[data-bs-theme="dark"] .status-ok         { background: rgba(60,80,40,.25);  color: #8a9a6a; border-color: rgba(60,80,40,.4); }
[data-bs-theme="dark"] .status-overdue    { background: rgba(168,50,32,.2); color: #e07060; border-color: rgba(168,50,32,.4); }
[data-bs-theme="dark"] .status-completed  { background: rgba(74,62,48,.5);  color: #8a8a90; border-color: rgba(74,62,48,.8); }
/* Asset status badges dark mode */
[data-bs-theme="dark"] .asset-status-active         { background: rgba(60,80,40,.25);  color: #8a9a6a; border-color: rgba(60,80,40,.4); }
[data-bs-theme="dark"] .asset-status-inactive       { background: rgba(30,45,66,.5);  color: #5070a0; border-color: rgba(30,45,66,.8); }
[data-bs-theme="dark"] .asset-status-decommissioned { background: rgba(168,50,32,.2); color: #e07060; border-color: rgba(168,50,32,.4); }
/* Finding severity badges dark mode */
[data-bs-theme="dark"] .finding-badge-gering   { background: rgba(30,64,175,.25); color: #60a5fa; border-color: rgba(30,64,175,.4); }
[data-bs-theme="dark"] .finding-badge-mittel   { background: rgba(120,80,0,.25);  color: #b09040; border-color: rgba(120,80,0,.4); }
[data-bs-theme="dark"] .finding-badge-hoch     { background: rgba(154,52,18,.25); color: #fb923c; border-color: rgba(154,52,18,.4); }
[data-bs-theme="dark"] .finding-badge-kritisch { background: rgba(168,50,32,.2);  color: #e07060; border-color: rgba(168,50,32,.4); }
/* Buttons */
[data-bs-theme="dark"] .btn-outline-secondary { color: #b8a888; border-color: #5a4e3e; }
[data-bs-theme="dark"] .btn-outline-secondary:hover { background: #3a3028; color: #d8c8a8; }
[data-bs-theme="dark"] .btn-outline-primary  { color: #b8984a; border-color: #5a4a30; }
[data-bs-theme="dark"] .btn-outline-primary:hover { background: #342a1e; color: #d0b060; }
[data-bs-theme="dark"] .btn-outline-danger  { color: #e07060; border-color: #4a2218; }
[data-bs-theme="dark"] .btn-outline-warning { color: #c09030; border-color: #4a3a10; }
[data-bs-theme="dark"] .btn-outline-success { color: #8a9a6a; border-color: #3a4a28; }
/* Text */
[data-bs-theme="dark"] .text-dark   { color: #c8b898 !important; }
[data-bs-theme="dark"] .text-body   { color: #c8b898 !important; }
[data-bs-theme="dark"] .text-muted  { color: #9a8a78 !important; }
[data-bs-theme="dark"] .fw-semibold { color: #d8c8a8 !important; }
/* General link color in dark mode */
[data-bs-theme="dark"] a:not(.btn):not(.nav-link):not(.navbar-brand):not(.dropdown-item):not(.lang-toggle-btn) {
  color: #b8984a;
}
[data-bs-theme="dark"] a:not(.btn):not(.nav-link):not(.navbar-brand):not(.dropdown-item):not(.lang-toggle-btn):hover {
  color: #d0b060;
}
[data-bs-theme="dark"] code { color: #b8984a; background: rgba(0,0,0,.3); padding: .1em .3em; border-radius: 4px; }
/* Admin sidebar */
[data-bs-theme="dark"] .admin-sidebar .nav-link { color: #7a6a58 !important; }
[data-bs-theme="dark"] .admin-sidebar .nav-link:hover,
[data-bs-theme="dark"] .admin-sidebar .nav-link.active { background: #342a1e; color: #c8b898 !important; }
/* Badge in dark mode */
[data-bs-theme="dark"] .badge.bg-warning { color: #1a1200 !important; }
/* Theme toggle button */
.theme-toggle-btn {
  background: none;
  border: 1px solid var(--fix-border);
  color: var(--fix-mid);
  border-radius: 6px;
  padding: .2rem .5rem;
  font-size: .85rem;
  cursor: pointer;
  transition: all .15s;
}
.theme-toggle-btn:hover {
  background: rgba(58,50,37,.08);
  color: var(--fix-dark);
  border-color: var(--fix-mid);
}
/* Lang toggle */
.lang-toggle-btn {
  background: none;
  border: 1px solid var(--fix-border);
  color: var(--fix-mid);
  border-radius: 6px;
  padding: .2rem .5rem;
  font-size: .8rem;
  cursor: pointer;
  text-decoration: none;
  transition: all .15s;
}
.lang-toggle-btn:hover {
  background: rgba(58,50,37,.08);
  color: var(--fix-dark);
  border-color: var(--fix-mid);
}
.lang-toggle-btn.active {
  background: rgba(90,122,74,.15);
  border-color: #5a7a4a;
  color: #5a7a4a;
}
/* Dark mode: invert nav icons */
[data-bs-theme="dark"] .nav-icon,
[data-bs-theme="dark"] .nav-icon-sm {
  filter: invert(1);
  mix-blend-mode: screen;
}
/* Dark mode navbar / topbar */
[data-bs-theme="dark"] .navbar,
[data-bs-theme="dark"] .sf-topbar {
  background: #1e1810 !important;
  border-bottom-color: #4a3e30;
}
[data-bs-theme="dark"] .sf-nav-btn { color: #b8984a; }
[data-bs-theme="dark"] .sf-nav-btn:hover { background: rgba(184,152,74,.15); color: #e0d0b8; }
[data-bs-theme="dark"] .sf-nav-btn.active { background: rgba(184,152,74,.2); color: #e0d0b8; }
[data-bs-theme="dark"] .nav-link { color: #b8984a !important; }
[data-bs-theme="dark"] .nav-link:hover,
[data-bs-theme="dark"] .nav-link.active { color: #e0d0b8 !important; }
[data-bs-theme="dark"] .theme-toggle-btn {
  border-color: #4a3e30; color: #b8984a;
}
[data-bs-theme="dark"] .theme-toggle-btn:hover {
  background: rgba(184,152,74,.1); color: #e0d0b8; border-color: #b8984a;
}
[data-bs-theme="dark"] .lang-toggle-btn {
  border-color: #4a3e30; color: #b8984a;
}
[data-bs-theme="dark"] .lang-toggle-btn:hover {
  background: rgba(184,152,74,.1); color: #e0d0b8; border-color: #b8984a;
}
[data-bs-theme="dark"] .lang-toggle-btn.active {
  background: rgba(184,152,74,.2); border-color: #b8984a; color: #b8984a;
}
[data-bs-theme="dark"] .navbar-toggler { border-color: #4a3e30; }
[data-bs-theme="dark"] .navbar-toggler-icon { filter: invert(1); }

/* ══════════════════════════════════════════════════════════
   Asset list – card rows (touch-optimized)
   ══════════════════════════════════════════════════════════ */
.vlist { display: flex; flex-direction: column; gap: .5rem; }

.vlist-row {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--fix-border);
  border-radius: var(--radius);
  background: #faf6ee;
  overflow: hidden;
  transition: box-shadow .12s, border-color .12s;
  min-height: 72px;
}
.vlist-row:hover {
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  border-color: var(--fix-forest);
}

/* Warning row */
.vlist-row-warning {
  border-left: 4px solid var(--fix-red);
  background: #faf0ee;
}

/* ── Status strip (4px left border) ── */
.vlist-status-strip {
  width: 5px;
  flex-shrink: 0;
}
.vlist-row-warning .vlist-status-strip { display: none; }
.vlist-strip-pending    { background: #b8984a; }
.vlist-strip-ok         { background: var(--fix-green); }
.vlist-strip-overdue    { background: var(--fix-red); }
.vlist-strip-completed  { background: #94a3b8; }

/* ── Clickable main area ── */
.vlist-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem 1rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.vlist-body:hover { color: inherit; }

.vlist-info { flex: 1; min-width: 0; }

.vlist-name {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--fix-dark);
}
.vlist-meta {
  font-size: .82rem;
  color: #6a5a48;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .15rem;
  margin-top: .15rem;
}
.vlist-sep::before {
  content: '\00b7';
  margin: 0 .3rem;
  color: #b8a890;
}

.vlist-zones {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  margin-top: .35rem;
}
.vlist-zone-badge {
  display: inline-block;
  padding: .1rem .45rem;
  border-radius: 4px;
  font-size: .7rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
}

.vlist-times {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .25rem;
  text-align: right;
}
.vlist-time-label {
  font-size: .8rem;
  color: #6a5a48;
  white-space: nowrap;
}
.vlist-status-badge {
  border-radius: 6px;
  font-size: .78rem;
  padding: .2rem .6rem;
}
.vlist-presence-warn {
  font-size: .72rem;
  color: var(--fix-red);
  font-weight: 600;
}
.vlist-presence-ok {
  font-size: .72rem;
  color: var(--fix-green);
  font-weight: 600;
}

/* ── Action buttons (large, touch-friendly) ── */
.vlist-actions {
  display: flex;
  align-items: stretch;
  flex-shrink: 0;
}
.vlist-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 80px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: filter .12s, background .12s;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  min-height: 44px;
}
.vlist-btn:active { filter: brightness(.85); }

.vlist-btn-icon {
  width: 26px;
  height: 26px;
  margin-bottom: .15rem;
}
.vlist-btn-label {
  font-size: .68rem;
  letter-spacing: .02em;
  line-height: 1.2;
  text-align: center;
}

.vlist-btn-checkin {
  background: #e2eed8;
  color: #3a5a2a;
}
.vlist-btn-checkin:hover { background: #d0e4c0; }

.vlist-btn-checkout {
  background: #f1f5f9;
  color: #475569;
}
.vlist-btn-checkout:hover { background: #e2e8f0; }

.vlist-btn-done {
  background: transparent;
  color: #94a3b8;
  cursor: default;
  width: 56px;
}

/* ── Full-HD ── */
@media (min-width: 1400px) {
  .vlist-body { padding: .85rem 1.25rem; }
  .vlist-name { font-size: 1.1rem; }
  .vlist-btn { width: 90px; }
  .vlist-btn-icon { width: 28px; height: 28px; }
}

/* ── Tablet / Touch ── */
@media (max-width: 768px) {
  .vlist-body {
    flex-direction: column;
    align-items: flex-start;
    gap: .35rem;
    padding: .65rem .75rem;
  }
  .vlist-times {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem;
  }
  .vlist-btn { width: 68px; }
  .vlist-btn-icon { width: 24px; height: 24px; }
  .vlist-btn-label { font-size: .62rem; }
}

/* ── Dark mode list ── */
[data-bs-theme="dark"] .vlist-row {
  background: #2a2218;
  border-color: #4a3e30;
}
[data-bs-theme="dark"] .vlist-row:hover {
  border-color: #b8984a;
  box-shadow: 0 2px 12px rgba(0,0,0,.2);
}
[data-bs-theme="dark"] .vlist-row-warning {
  background: rgba(168,50,32,.1);
  border-left-color: var(--fix-red);
}
[data-bs-theme="dark"] .vlist-name { color: #d8c8a8; }
[data-bs-theme="dark"] .vlist-meta { color: #7a6a58; }
[data-bs-theme="dark"] .vlist-sep::before { color: #4a3e30; }
[data-bs-theme="dark"] .vlist-time-label { color: #7a6a58; }
[data-bs-theme="dark"] .vlist-btn-checkin {
  background: rgba(60,80,40,.25);
  color: #8a9a6a;
}
[data-bs-theme="dark"] .vlist-btn-checkin:hover { background: rgba(60,80,40,.4); }
[data-bs-theme="dark"] .vlist-btn-checkout {
  background: rgba(74,62,48,.5);
  color: #b8984a;
}
[data-bs-theme="dark"] .vlist-btn-checkout:hover { background: rgba(74,62,48,.8); }
[data-bs-theme="dark"] .vlist-btn-done { color: #4a3e30; }

/* ── Settings page (Chrome-style flat rows) ── */
.settings-section-title {
  font-size: .82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--fix-mid);
  margin: 2rem 0 .6rem;
  padding-left: .25rem;
}
.settings-section-title:first-child { margin-top: .5rem; }

.settings-panel {
  border: 1px solid var(--fix-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #faf6ee;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 1.1rem;
  border-bottom: 1px solid var(--fix-border);
  min-height: 56px;
}
.settings-row:last-child { border-bottom: none; }

.settings-row-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: background .12s;
}
.settings-row-link:hover {
  background: rgba(74,90,58,.08);
  color: inherit;
}

.settings-row-stacked {
  flex-direction: column;
  align-items: stretch;
  gap: .5rem;
}

.settings-label { flex: 1; min-width: 0; }
.settings-label-main {
  font-size: .92rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--fix-dark);
}
.settings-label-desc {
  font-size: .78rem;
  color: #6a5a48;
  line-height: 1.35;
  margin-top: .15rem;
}

.settings-control { flex-shrink: 0; }
.settings-control-wide { width: 100%; }

.settings-select {
  min-width: 150px;
  border-radius: 8px;
  font-size: .85rem;
}

.settings-toggle {
  width: 2.8em !important;
  height: 1.5em;
  cursor: pointer;
}

.settings-chevron {
  font-size: 1.4rem;
  font-weight: 300;
  color: #b8a890;
  line-height: 1;
}

.settings-save-row {
  margin: 1rem 0 1.5rem;
  text-align: right;
}

/* Dark mode settings */
[data-bs-theme="dark"] .settings-panel {
  background: #2a2218;
  border-color: #4a3e30;
}
[data-bs-theme="dark"] .settings-row {
  border-bottom-color: #4a3e30;
}
[data-bs-theme="dark"] .settings-row-link:hover {
  background: rgba(184,152,74,.06);
}
[data-bs-theme="dark"] .settings-label-main {
  color: #d8c8a8;
}
[data-bs-theme="dark"] .settings-label-desc {
  color: #7a6a58;
}
[data-bs-theme="dark"] .settings-section-title {
  color: #7a6a58;
}
[data-bs-theme="dark"] .settings-chevron {
  color: #7a6a58;
}
[data-bs-theme="dark"] .settings-select {
  background: #1a1510;
  border-color: #4a3e30;
  color: #c8b898;
}

/* Result cards */
.result-granted {
  background: #e2eed8;
  border: 2px solid #5a7a4a;
  border-radius: 12px;
  color: #3a5a2a;
  padding: 1.5rem;
  text-align: center;
}
.result-denied {
  background: #fde2e0;
  border: 2px solid #a83220;
  border-radius: 12px;
  color: #a83220;
  padding: 1.5rem;
  text-align: center;
}

/* ═══ Asset Cards ═══ */
.asset-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.1), 0 0 0 1px rgba(0,0,0,.04);
  transition: box-shadow .2s, transform .15s;
  background: #faf6ee;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 0;
}
.asset-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,.15);
  transform: translateY(-2px);
}
.asset-card-active  { }
.asset-card-inactive { opacity: .5; filter: grayscale(.4); }
.asset-card-inactive:hover { opacity: .85; filter: none; }
.asset-card-decommissioned { opacity: .4; filter: grayscale(.6); }
.asset-card-overdue { box-shadow: 0 2px 10px rgba(0,0,0,.1), 0 0 0 2px var(--fix-red); }

/* Header – Olive bar */
.asset-card-header {
  background: linear-gradient(135deg, var(--fix-emerald) 0%, #4a5a3a 100%);
  color: #f0e8d8;
  padding: 3px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 24px;
}
.asset-card-header-title {
  font-size: .5rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.asset-card-header-brand {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: .5rem;
  font-weight: 700;
  opacity: .9;
}
.asset-card-logo {
  width: 14px;
  height: 14px;
  border-radius: 2px;
}

/* Body */
.asset-card-inner {
  display: flex;
  gap: 8px;
  padding: 6px 8px 4px;
  align-items: flex-start;
  flex: 1;
}

/* Photo */
.asset-card-photo {
  flex-shrink: 0;
  width: 48px;
  height: 62px;
}
.asset-card-photo img {
  width: 48px;
  height: 62px;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid #c8b898;
}
.asset-card-nophoto {
  width: 48px;
  height: 62px;
  border-radius: 2px;
  background: #e8dcc8;
  color: #6a5a48;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .03em;
  border: 1px solid #c8b898;
}

/* Data */
.asset-card-data {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.asset-card-label {
  font-size: .42rem;
  color: #6a5a48;
  text-transform: uppercase;
  letter-spacing: .05em;
  line-height: 1;
  margin-top: 1px;
}
.asset-card-label:first-child { margin-top: 0; }
.asset-card-name {
  font-size: .78rem;
  font-weight: 800;
  color: #3a3225;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: .02em;
}
.asset-card-type {
  font-size: .68rem;
  font-weight: 600;
  color: #4a4035;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.asset-card-location {
  font-size: .58rem;
  color: #5a5040;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.asset-card-serial {
  font-size: .6rem;
  font-family: monospace;
  font-weight: 700;
  color: #3a3225;
  letter-spacing: .03em;
}

/* Tags bar */
.asset-card-tags-bar {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  flex-wrap: wrap;
  border-top: 1px solid #e8dcc8;
}
.asset-card-tags-bar .vlist-zone-badge {
  font-size: .48rem;
  padding: .02rem .25rem;
  border-radius: 2px;
}

/* Maintenance date */
.asset-card-maintenance {
  font-size: .5rem;
  color: #6a5a48;
  padding: 0 8px 2px;
  font-style: italic;
}

/* Status bar */
.asset-card-status {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  font-size: .55rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.asset-card-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.asset-card-status-active {
  background: #e2eed8;
  color: #3a5a2a;
}
.asset-card-status-active .asset-card-status-dot {
  background: #5a7a4a;
  box-shadow: 0 0 4px rgba(90,122,74,.5);
}
.asset-card-status-inactive {
  background: #f1f5f9;
  color: #94a3b8;
}
.asset-card-status-inactive .asset-card-status-dot { background: #94a3b8; }
.asset-card-status-decommissioned {
  background: #fde2e0;
  color: #8a2218;
}
.asset-card-status-decommissioned .asset-card-status-dot { background: #a83220; }

/* Dark mode asset cards */
[data-bs-theme="dark"] .asset-card { background: #2a2218; }
[data-bs-theme="dark"] .asset-card-header { background: linear-gradient(135deg, #4a5a3a 0%, #3a4a2a 100%); }
[data-bs-theme="dark"] .asset-card-name { color: #e0d0b8; }
[data-bs-theme="dark"] .asset-card-type { color: #c8b898; }
[data-bs-theme="dark"] .asset-card-serial { color: #e0d0b8; }
[data-bs-theme="dark"] .asset-card-nophoto { background: #342a1e; border-color: #4a3e30; color: #7a6a58; }
[data-bs-theme="dark"] .asset-card-photo img { border-color: #4a3e30; }
[data-bs-theme="dark"] .asset-card-tags-bar { border-color: #342a1e; }
[data-bs-theme="dark"] .asset-card-status-active { background: #2a3420; color: #8a9a6a; }
[data-bs-theme="dark"] .asset-card-status-inactive { background: #2a2218; color: #7a6a58; }
[data-bs-theme="dark"] .asset-card-status-decommissioned { background: #2a1510; color: #e07060; }

/* Footer: status + actions */
.asset-card-footer {
  border-top: 1px solid rgba(0,0,0,.08);
  margin-top: auto;
  background: #f0e8d8;
  border-radius: 0 0 10px 10px;
  overflow: hidden;
}
.asset-card-actions {
  display: flex;
  gap: 4px;
  padding: 6px 8px 7px;
  align-items: center;
}
.asset-action-btn {
  border: none;
  border-radius: 5px;
  padding: .3rem .65rem;
  font-size: .68rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s, transform .1s, box-shadow .15s;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0,0,0,.12);
  min-height: 30px;
  display: inline-flex;
  align-items: center;
}
.asset-action-btn:active { transform: scale(.95); }
.asset-action-maintain {
  background: #5a7a4a;
  color: #fff;
}
.asset-action-maintain:hover { background: #4a6a3a; box-shadow: 0 2px 8px rgba(90,122,74,.4); }
.asset-action-decommission {
  background: #64748b;
  color: #fff;
}
.asset-action-decommission:hover { background: #475569; }

[data-bs-theme="dark"] .asset-action-maintain { background: #5a7a4a; color: #fff; }
[data-bs-theme="dark"] .asset-action-decommission { background: #475569; color: #fff; }
[data-bs-theme="dark"] .asset-card-footer { border-color: rgba(255,255,255,.06); background: #1e1810; }

@media (max-width: 576px) {
  .asset-card { aspect-ratio: auto; }
  .asset-card-photo { width: 44px; height: 56px; }
  .asset-card-photo img { width: 44px; height: 56px; }
  .asset-card-nophoto { width: 44px; height: 56px; font-size: .8rem; }
  .asset-card-name { font-size: .72rem; }
  .asset-card-inner { padding: 6px; gap: 6px; }
}

/* ══════════════════════════════════════════════════════════
   Maintenance Checklist – touch-optimized large checkboxes
   ══════════════════════════════════════════════════════════ */
.maintenance-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .85rem 1rem;
  border: 1px solid var(--fix-border);
  border-radius: var(--radius);
  background: #faf6ee;
  min-height: 56px;
  cursor: pointer;
  transition: background .12s, border-color .12s, box-shadow .12s;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.checklist-item:hover {
  background: #ece4d0;
  border-color: var(--fix-forest);
}
.checklist-item:active {
  box-shadow: inset 0 1px 3px rgba(0,0,0,.1);
}

.checklist-item input[type="checkbox"] {
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  accent-color: var(--fix-emerald);
  cursor: pointer;
  border-radius: 6px;
  flex-shrink: 0;
}

.checklist-item label {
  font-size: 1rem;
  font-weight: 500;
  color: var(--fix-dark);
  cursor: pointer;
  line-height: 1.4;
  flex: 1;
}

.checklist-item.checked {
  background: #e2eed8;
  border-color: #b8d4a8;
}
.checklist-item.checked label {
  color: #3a5a2a;
  text-decoration: line-through;
  text-decoration-color: rgba(58,90,42,.4);
}

.checklist-item .checklist-note {
  font-size: .78rem;
  color: #6a5a48;
  margin-top: .15rem;
}

/* Touch-friendly: ensure min 44px touch targets */
@media (pointer: coarse) {
  .checklist-item {
    min-height: 56px;
    padding: 1rem 1.1rem;
  }
  .checklist-item input[type="checkbox"] {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
  }
  .checklist-item label {
    font-size: 1.05rem;
  }
  .vlist-btn {
    min-height: 56px;
    width: 80px;
  }
  .btn-fix,
  .asset-action-btn {
    min-height: 44px;
    padding: .5rem 1rem;
  }
}

/* Dark mode checklist */
[data-bs-theme="dark"] .checklist-item {
  background: #2a2218;
  border-color: #4a3e30;
  color: #c8b898;
}
[data-bs-theme="dark"] .checklist-item:hover {
  background: #342a1e;
  border-color: #b8984a;
}
[data-bs-theme="dark"] .checklist-item label {
  color: #d8c8a8;
}
[data-bs-theme="dark"] .checklist-item.checked {
  background: rgba(60,80,40,.25);
  border-color: rgba(60,80,40,.5);
}
[data-bs-theme="dark"] .checklist-item.checked label {
  color: #8a9a6a;
}
[data-bs-theme="dark"] .checklist-item .checklist-note {
  color: #7a6a58;
}

/* ══════════════════════════════════════════════════════════
   QR Label – print-ready styling
   ══════════════════════════════════════════════════════════ */
.qr-label {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  padding: .75rem;
  border: 2px solid #2a3420;
  border-radius: 8px;
  background: #fff;
  text-align: center;
  width: 200px;
}
.qr-label img,
.qr-label svg,
.qr-label canvas {
  width: 150px;
  height: 150px;
}
.qr-label-title {
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #2a3420;
}
.qr-label-id {
  font-size: .6rem;
  font-family: monospace;
  font-weight: 700;
  color: #4a4035;
}
.qr-label-name {
  font-size: .75rem;
  font-weight: 600;
  color: #2a3420;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ══════════════════════════════════════════════════════════
   Print styles – QR labels & reports
   ══════════════════════════════════════════════════════════ */
@media print {
  /* Hide non-printable elements */
  .navbar,
  .admin-sidebar,
  .btn-logout,
  .theme-toggle-btn,
  .lang-toggle-btn,
  footer,
  .no-print {
    display: none !important;
  }

  body {
    background: #fff !important;
    color: #000 !important;
    font-size: 10pt;
  }

  .card {
    border: 1px solid #ccc !important;
    box-shadow: none !important;
    break-inside: avoid;
  }
  .card-header {
    background: #eee !important;
    color: #000 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  /* QR labels: grid for label sheets */
  .qr-label-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10mm;
    justify-content: flex-start;
  }
  .qr-label {
    border: 1px solid #000;
    border-radius: 4px;
    break-inside: avoid;
    page-break-inside: avoid;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  /* Tables */
  .table thead th {
    background: #ddd !important;
    color: #000 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .table { font-size: 9pt; }

  /* Checklist print */
  .checklist-item {
    border: 1px solid #ccc;
    break-inside: avoid;
  }
  .checklist-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    min-width: 16px;
    min-height: 16px;
  }

  /* Asset cards in print */
  .asset-card {
    box-shadow: none !important;
    break-inside: avoid;
  }
  .asset-card-header {
    background: #5a7a4a !important;
    color: #fff !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  /* Finding badges should show color in print */
  .finding-badge-gering,
  .finding-badge-mittel,
  .finding-badge-hoch,
  .finding-badge-kritisch,
  .asset-status-active,
  .asset-status-inactive,
  .asset-status-decommissioned {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

/* ── Global overflow prevention ── */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}
.container-fluid {
  overflow-x: hidden;
}

/* ── Sub-navigation (admin/sysadmin) ── */
nav .d-flex.flex-wrap .btn {
  font-size: .78rem;
  padding: .25rem .6rem;
  white-space: nowrap;
}
@media (max-width: 576px) {
  nav .d-flex.flex-wrap .btn {
    font-size: .7rem;
    padding: .2rem .45rem;
  }
  nav .d-flex.flex-wrap .btn .bi {
    display: none;
  }
}

/* ── Table cell overflow ── */
.table td, .table th {
  word-break: break-word;
  max-width: 300px;
}
.table .font-monospace {
  word-break: break-all;
}
/* Explicit card-header style for inline overrides migrated to class */
.sf-card-header { background: #4a5a3a; color: #f0e8d8; }
[data-bs-theme="dark"] .sf-card-header { background: #2d3d2d; color: #d0e0d0; }

/* ═══════════════════════════════════════════════════════════
   SLOPPY DESIGN SYSTEM – Glass + Paper + Organic
   ═══════════════════════════════════════════════════════════ */

/* Paper texture background */
body {
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(90,122,74,.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(184,152,74,.05) 0%, transparent 50%);
  background-attachment: fixed;
}

/* Glass cards */
.card {
  background: rgba(250,246,238,.75) !important;
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid rgba(200,184,152,.35) !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 24px rgba(42,52,32,.08), 0 1px 3px rgba(0,0,0,.06),
              inset 0 1px 0 rgba(255,255,255,.5) !important;
  transition: transform .15s, box-shadow .15s;
}
.card:hover {
  box-shadow: 0 8px 32px rgba(42,52,32,.12), 0 2px 6px rgba(0,0,0,.08),
              inset 0 1px 0 rgba(255,255,255,.5) !important;
}

/* Card header — neutral wie scan/plan/rent. Vorher: olive-Verlauf,
   der die UI dominiert hat (User-Feedback 2026-05-04). Brand-Farbe
   bleibt nur in Buttons + Sidebar, nicht auf jedem Card-Header. */
.card-header, .sf-card-header {
  background: transparent !important;
  border-bottom: 1px solid var(--fix-border, #c8b898) !important;
  border-radius: 16px 16px 0 0 !important;
  padding: .85rem 1.25rem !important;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--fix-dark, #2a3420);
}

/* Top bar — frosted glass */
.sf-topbar {
  background: rgba(240,232,216,.8) !important;
  backdrop-filter: blur(20px) saturate(1.4) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.4) !important;
  border-bottom: 1px solid rgba(200,184,152,.3) !important;
  box-shadow: 0 2px 16px rgba(0,0,0,.06) !important;
}

/* Nav buttons — pill shape */
.sf-nav-btn {
  border-radius: 20px !important;
  padding: .4rem .7rem !important;
  font-weight: 600 !important;
  transition: all .2s ease !important;
}
.sf-nav-btn:hover {
  background: rgba(74,90,58,.12) !important;
  transform: translateY(-1px);
}
.sf-nav-btn.active {
  background: rgba(74,90,58,.18) !important;
  box-shadow: 0 2px 8px rgba(74,90,58,.15);
}

/* ── PLASTISCHE BUTTONS ── */
.btn {
  border-radius: 10px !important;
  font-weight: 600 !important;
  transition: all .2s ease !important;
  position: relative;
}

/* ── Solid Buttons: flach wie scan/plan/rent (kein Verlauf) ── */
.btn-success, .btn-fix {
  background: #4a7a3a !important;
  color: #ffffff !important;
  border: none !important;
}
.btn-success:hover, .btn-fix:hover {
  background: #3a6a2a !important;
  color: #ffffff !important;
}

.btn-danger {
  background: #a83220 !important;
  color: #ffffff !important;
  border: none !important;
}
.btn-danger:hover {
  background: #8a2218 !important;
  color: #ffffff !important;
}

.btn-warning {
  background: #b8984a !important;
  color: #ffffff !important;
  border: none !important;
}
.btn-warning:hover {
  background: #a08230 !important;
  color: #ffffff !important;
}

.btn-info {
  background: #4a7a9a !important;
  color: #ffffff !important;
  border: none !important;
}
.btn-info:hover {
  background: #2a5a7a !important;
  color: #ffffff !important;
}

.btn-primary {
  background: var(--fix-forest, #4a5a3a) !important;
  color: #ffffff !important;
  border: none !important;
}
.btn-primary:hover {
  background: #3a4a2a !important;
  color: #ffffff !important;
}

.btn-secondary {
  background: #6a5a48 !important;
  color: #ffffff !important;
  border: none !important;
}
.btn-secondary:hover {
  background: #4a3a28 !important;
  color: #ffffff !important;
}

/* ── Outline Buttons: colored border + text, white bg ── */
.btn-outline-success {
  color: #2a5a1a !important;
  border: 2px solid #4a7a3a !important;
  background: rgba(255,255,255,.6) !important;
}
.btn-outline-success:hover {
  background: #3a6a2a !important;
  color: #ffffff !important;
}
.btn-outline-danger {
  color: #8a2218 !important;
  border: 2px solid #a83220 !important;
  background: rgba(255,255,255,.6) !important;
}
.btn-outline-danger:hover {
  background: #a83220 !important;
  color: #ffffff !important;
}
.btn-outline-warning {
  color: #7a6020 !important;
  border: 2px solid #b8984a !important;
  background: rgba(255,255,255,.6) !important;
}
.btn-outline-warning:hover {
  background: #a08030 !important;
  color: #ffffff !important;
}
.btn-outline-secondary {
  color: #4a3a28 !important;
  border: 2px solid #8a7a68 !important;
  background: rgba(255,255,255,.6) !important;
}
.btn-outline-secondary:hover {
  background: #6a5a48 !important;
  color: #ffffff !important;
}
.btn-outline-info {
  color: #2a4a6a !important;
  border: 2px solid #4a7a9a !important;
  background: rgba(255,255,255,.6) !important;
}
.btn-outline-info:hover {
  background: #3a6a8a !important;
  color: #ffffff !important;
}

/* ── Shared hover lift ── */
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* ── Background utility classes ── */
.bg-success  { background-color: #4a7a3a !important; color: #fff !important; }
.bg-danger   { background-color: #a83220 !important; color: #fff !important; }
.bg-warning  { background-color: #b8984a !important; color: #fff !important; }
.bg-info     { background-color: #4a6a8a !important; color: #fff !important; }
.bg-primary  { background-color: #3a4a2a !important; color: #fff !important; }
.bg-secondary { background-color: #6a5a48 !important; color: #fff !important; }
.text-success { color: #2a5a1a !important; }
.text-danger  { color: #8a2218 !important; }
.text-warning { color: #7a6020 !important; }
.text-info    { color: #2a5a7a !important; }

/* Outline buttons — subtle glass */
.btn-outline-secondary, .btn-outline-success, .btn-outline-danger, .btn-outline-warning, .btn-outline-info {
  backdrop-filter: blur(4px);
  background: rgba(255,255,255,.3) !important;
  border-width: 1.5px !important;
}
.btn-outline-secondary:hover, .btn-outline-success:hover, .btn-outline-danger:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0,0,0,.1);
}
/* Dark-Mode: weisser Tint kollidiert mit dem dunklen Surface (Tabellen-
   Edit-Icons in /tenant-admin/users wirkten "cremig hell"). Auf
   transparenten Tint umstellen damit Outline-Buttons sich richtig in den
   Dark-Layout einfuegen. */
[data-bs-theme="dark"] .btn-outline-secondary,
[data-bs-theme="dark"] .btn-outline-success,
[data-bs-theme="dark"] .btn-outline-danger,
[data-bs-theme="dark"] .btn-outline-warning,
[data-bs-theme="dark"] .btn-outline-info {
  background: rgba(255,255,255,.05) !important;
}
[data-bs-theme="dark"] .btn-outline-secondary:hover,
[data-bs-theme="dark"] .btn-outline-success:hover,
[data-bs-theme="dark"] .btn-outline-danger:hover,
[data-bs-theme="dark"] .btn-outline-warning:hover,
[data-bs-theme="dark"] .btn-outline-info:hover {
  background: rgba(255,255,255,.10) !important;
  color: #f8fafc !important;
}

/* ── Tables — flach (Audit-Feedback: keine Verlaufs-Header). Light: bs-tertiary-bg,
   Dark: dark-bs-tertiary-bg. Backdrop-filter weg, weil unter dem dezenten BG ohne
   Wirkung und nur Performance-Kosten verursacht. */
.table thead th {
  background: var(--bs-tertiary-bg) !important;
  color: var(--bs-body-color) !important;
}
.table tbody tr {
  transition: background .15s, transform .1s;
}
.table tbody tr:hover {
  background: var(--bs-tertiary-bg) !important;
}

/* ── Form controls — inset paper ── */
.form-control, .form-select {
  border-radius: 10px !important;
  box-shadow: inset 0 2px 4px rgba(0,0,0,.04) !important;
  border: 1.5px solid rgba(200,184,152,.5) !important;
  transition: all .2s !important;
}
.form-control:focus, .form-select:focus {
  border-color: var(--fix-emerald) !important;
  box-shadow: inset 0 2px 4px rgba(0,0,0,.04), 0 0 0 3px rgba(90,122,74,.15) !important;
  transform: scale(1.005);
}

/* ── Badges — softer, pill shape ── */
.badge {
  border-radius: 20px !important;
  padding: .3em .7em !important;
  font-weight: 600 !important;
  letter-spacing: .02em;
}

/* ── Admin cards (dashboard) — hover lift ── */
.admin-card {
  transition: transform .2s, box-shadow .2s !important;
}
.admin-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 24px rgba(42,52,32,.15) !important;
}

/* ── Stat cards — flach (kein Verlauf, einheitliche Brand-Akzentlinie) ──
   Alle KPI-Cards bekommen die Brand-Farbe als Linksrand — Severity wird
   ueber Zahl/Icon kommuniziert, nicht ueber Border-Color (Audit-Feedback,
   sonst wirkt die Reihenfolge zufaellig). */
.stat-card {
  border-radius: 14px !important;
  background: var(--bs-secondary-bg) !important;
  border-left: 4px solid var(--fix-forest) !important;
  box-shadow: 0 2px 6px rgba(0,0,0,.06) !important;
  color: var(--bs-body-color) !important;
}
.stat-card .stat-number,
.stat-card .stat-label { color: var(--bs-body-color) !important; }
.stat-card-primary,
.stat-card-success,
.stat-card-warning,
.stat-card-danger   { border-left-color: var(--fix-forest) !important; }

/* ── Modals — glass effect ── */
.modal-content {
  background: rgba(250,246,238,.92) !important;
  backdrop-filter: blur(20px) saturate(1.3) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.3) !important;
  border: 1px solid rgba(200,184,152,.3) !important;
  border-radius: 18px !important;
  box-shadow: 0 20px 60px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.4) !important;
}
.modal-header {
  border-radius: 18px 18px 0 0 !important;
}

/* ── Alerts — softer ── */
.alert {
  border-radius: 14px !important;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0,0,0,.06) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

/* ── Dropdown — glass ── */
.dropdown-menu {
  border-radius: 14px !important;
  backdrop-filter: blur(16px) saturate(1.3) !important;
  background: rgba(250,246,238,.92) !important;
  box-shadow: 0 8px 32px rgba(0,0,0,.15) !important;
  border: 1px solid rgba(200,184,152,.3) !important;
  padding: .5rem !important;
}
.dropdown-item {
  border-radius: 8px !important;
  transition: background .15s !important;
}

/* ── Scrollbar styling ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(74,90,58,.2);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(74,90,58,.35); }

/* ═══ DARK MODE GLASS ═══ */
[data-bs-theme="dark"] body {
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(90,122,74,.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(184,152,74,.04) 0%, transparent 50%) !important;
}
[data-bs-theme="dark"] .card {
  background: rgba(42,34,24,.7) !important;
  backdrop-filter: blur(16px) saturate(1.2) !important;
  border: 1px solid rgba(74,62,48,.5) !important;
  box-shadow: 0 4px 24px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.03) !important;
}
[data-bs-theme="dark"] .sf-topbar {
  background: rgba(26,21,16,.8) !important;
  backdrop-filter: blur(20px) saturate(1.4) !important;
}
[data-bs-theme="dark"] .modal-content {
  background: rgba(42,34,24,.92) !important;
  backdrop-filter: blur(20px) !important;
}
[data-bs-theme="dark"] .dropdown-menu {
  background: rgba(42,34,24,.92) !important;
  backdrop-filter: blur(16px) !important;
}
[data-bs-theme="dark"] .stat-card {
  background: rgba(42,34,24,.7) !important;
  border-left: 4px solid #5a7a4a !important;
}

/* ── Status-Pill in Asset-Liste (details>summary) ──
   Browser zeigen sonst ihren Default-Disclosure-Pfeil („▶") vor dem
   Summary-Text. Der eigene Caret-Icon im Markup ist genug. */
.status-pill-picker { display: inline-block; position: relative; }
.status-pill-picker > summary { list-style: none; cursor: pointer; }
.status-pill-picker > summary::-webkit-details-marker { display: none; }
.status-pill-picker > summary::marker { content: ''; }
.status-pill {
  display: inline-flex;
  align-items: center;
  padding: .15rem .55rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  border: 1px solid var(--bs-border-color, #c8b898);
  background: var(--bs-secondary-bg);
  color: var(--bs-body-color);
  white-space: nowrap;
}
.status-pill.status-active       { background: rgba(74,122,58,.12); color: #2a5a1a; border-color: rgba(74,122,58,.3); }
.status-pill.status-inactive     { background: rgba(184,152,74,.18); color: #7a5a10; border-color: rgba(184,152,74,.3); }
.status-pill.status-decommissioned { background: rgba(168,50,32,.12); color: #8a2218; border-color: rgba(168,50,32,.3); }
.status-pill-menu {
  position: absolute; top: 100%; left: 0; z-index: 10;
  background: var(--bs-body-bg, #fff);
  border: 1px solid var(--bs-border-color);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
  margin-top: 4px; padding: 4px; min-width: 140px;
}
.status-pill-opt {
  display: block; width: 100%; text-align: left;
  border: none; background: transparent;
  padding: .35rem .55rem; border-radius: 6px;
  font-size: .8rem; cursor: pointer;
}
.status-pill-opt:hover { background: var(--bs-tertiary-bg); }

/* v-sloppy-design */
