/* =========================================================
   THEME-ERWEITERUNG: Darkmode (Navigation + Hell/Dunkel-Schalter liegen in nav.css)
   Wird nach style.css geladen. Der Abschnitt "AUTOMATISCH ERZEUGT"
   stammt aus tools/gen_dark.py und kann bei CSS-Änderungen neu erzeugt werden.
========================================================= */

/* ---------- Darkmode: Farbvariablen ---------- */
html[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0f1716 !important; --bg-soft: #131d1c !important;
    --surface: #17211f !important; --surface-soft: #1b2826 !important; --surface-green: #173430 !important;
    --text: #e3eeeb !important; --text-soft: #bfd3ce !important; --muted: #8fa5a0 !important;
    --primary: #2cc6a5 !important; --primary-dark: #5fd6bb !important; --primary-deep: #a8eedd !important; --accent: #1f4a41 !important;
    --danger: #ff8a7f !important; --success: #4fd39e !important; --warning: #f0b45a !important;
    --border: #273634 !important; --border-strong: #33504a !important;
    --shadow: 0 24px 60px rgba(0, 0, 0, .35) !important; --shadow-soft: 0 12px 34px rgba(0, 0, 0, .28) !important;
    --cp-bg: #0f1716 !important; --cp-surface: #17211f !important; --cp-border: #273634 !important; --cp-text: #e3eeeb !important; --cp-muted: #8fa5a0 !important;
    --cp-teal: #3cc0b4 !important; --cp-teal-dark: #8fe0d6 !important; --cp-green: #4fd39e !important;
    --nova-bg: #0f1716 !important; --nova-surface: #17211f !important; --nova-ink: #e3eeeb !important; --nova-muted: #8fa5a0 !important;
    --nova-line: #263533 !important; --nova-green: #3cc9a9 !important; --nova-green-dark: #0d7a68 !important; --nova-soft: #183a33 !important;
    --nova-danger: #ff8a7f !important; --nova-shadow: 0 8px 28px rgba(0, 0, 0, .3) !important;
    --interaction-soft: #183a33 !important; --interaction-soft-strong: #1f4a41 !important; --interaction-border: #33504a !important;
}
html[data-theme="light"] { color-scheme: light; }

/* ===== AUTOMATISCH ERZEUGT ===== */
/* Automatisch erzeugt aus style.css (tools/gen_dark.py) – nicht von Hand bearbeiten */
html[data-theme="dark"] body{background:radial-gradient(circle at 0% 18%, rgba(19, 184, 151, .16), transparent 26%),
        radial-gradient(circle at 100% 20%, rgba(19, 184, 151, .14), transparent 28%),
        linear-gradient(180deg, #142a21 0%, #1c2c27 45%, #142a21 100%)!important}
html[data-theme="dark"] .cp-login-page{background:radial-gradient(circle at 15% 10%, rgba(19, 184, 151, .24), transparent 28%),
        radial-gradient(circle at 85% 18%, rgba(34,69,62,0.55), transparent 30%),
        radial-gradient(circle at 50% 100%, rgba(7, 52, 47, .10), transparent 38%),
        linear-gradient(135deg, #142a21 0%, #1d2e28 100%)!important}
html[data-theme="dark"] .login-card,
html[data-theme="dark"] .cp-login-card{background:rgba(28,31,30,0.92)!important}
html[data-theme="dark"] .cp-login-panel{background:radial-gradient(circle at 18% 12%, rgba(34,69,62,0.28), transparent 28%),
        radial-gradient(circle at 80% 82%, rgba(19, 184, 151, .26), transparent 34%),
        linear-gradient(160deg, #07342f 0%, #052b27 100%)!important}
html[data-theme="dark"] .cp-login-panel::after{background:rgba(34,69,62,0.12)!important}
html[data-theme="dark"] .cp-login-kicker{background:#22453e!important}
html[data-theme="dark"] .cp-login-panel .cp-login-kicker{color:#a6f2ea!important;background:rgba(34,69,62,0.95)!important}
html[data-theme="dark"] .cp-login-features div{border:1px solid rgba(44,81,73,0.18)!important}
html[data-theme="dark"] .brand-mark{color:#a6f2ea!important}
html[data-theme="dark"] .nav a.active{color:#a6f2ea!important;background:#22453e!important}
html[data-theme="dark"] .sidebar-footer a{color:#a6f2ea!important;background:#1c1f1e!important}
html[data-theme="dark"] .topbar{border-bottom:1px solid rgba(49,67,62,0.8)!important;background:rgba(28,31,30,0.82)!important}
html[data-theme="dark"] .menu-toggle{background:rgba(28,31,30,0.9)!important}
html[data-theme="dark"] .card{background:rgba(28,31,30,0.9)!important}
html[data-theme="dark"] .stat,
html[data-theme="dark"] .stat-card{background:radial-gradient(circle at 100% 0%, rgba(19, 184, 151, .10), transparent 34%),
        rgba(28,31,30,0.92)!important}
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea{background:#1c1f1e!important}
html[data-theme="dark"] select{background-image:linear-gradient(45deg, transparent 50%, #0d7a68 50%),
        linear-gradient(135deg, #0d7a68 50%, transparent 50%)!important}
html[data-theme="dark"] .btn{background:linear-gradient(135deg, var(--primary), #0d7a68)!important}
html[data-theme="dark"] .btn.primary,
html[data-theme="dark"] .btn-primary{background:linear-gradient(135deg, var(--primary), #0d7a68)!important}
html[data-theme="dark"] .alert.error,
html[data-theme="dark"] .alert-error{background:#2d1716!important;border-color:#4b2c28!important}
html[data-theme="dark"] .alert.success,
html[data-theme="dark"] .alert-success{background:#193023!important;border-color:#2f4b3a!important}
html[data-theme="dark"] .ring-badge{background:#192c28!important}
html[data-theme="dark"] .status-badge.new{background:#172430!important;color:#9fcaf1!important;border-color:#2c4052!important}
html[data-theme="dark"] .status-badge.care{background:#192f24!important;color:#a6f2d1!important;border-color:#344f41!important}
html[data-theme="dark"] .status-badge.observation{background:#312818!important;color:#f1cf9f!important;border-color:#5a4a30!important}
html[data-theme="dark"] .status-badge.release-prepared{color:#f2d8a6!important;background:#352f19!important;border-color:#5d5432!important}
html[data-theme="dark"] .status-badge.long-term-care{color:#aae0ee!important;background:#182b31!important;border-color:#32494e!important}
html[data-theme="dark"] .status-badge.archived{background:#1f2227!important;color:#abb4be!important;border-color:#373b41!important}
html[data-theme="dark"] .status-badge.deceased{background:#2d1716!important;color:#e78888!important;border-color:#52312f!important}
html[data-theme="dark"] .status-badge.released{background:#20172f!important;color:#a78cda!important;border-color:#34294d!important}
html[data-theme="dark"] .status-badge.transferred{background:#1c1730!important;color:#a67ce8!important;border-color:#332b50!important}
html[data-theme="dark"] .table-wrap{background:#1c1f1e!important}
html[data-theme="dark"] .table-actions a:hover{background:#1c1f1e!important}
html[data-theme="dark"] .detail-list div{border-bottom:1px solid rgba(49,67,62,0.75)!important}
html[data-theme="dark"] .timeline-item{background:radial-gradient(circle at 100% 0%, rgba(19, 184, 151, .08), transparent 32%),
        #1c1f1e!important}
html[data-theme="dark"] .case-timeline-marker{background:linear-gradient(135deg, #1c1f1e, var(--surface-soft))!important}
html[data-theme="dark"] .case-timeline-card{background:radial-gradient(circle at 100% 0%, rgba(19, 184, 151, .07), transparent 34%),
        linear-gradient(180deg, rgba(28,31,30,0.96), rgba(20,42,33,0.88))!important}
html[data-theme="dark"] .timeline-info-box{background:rgba(25,46,39,0.72)!important}
html[data-theme="dark"] .timeline-info-grid div{border:1px solid rgba(53,76,71,0.85)!important;background:rgba(28,31,30,0.78)!important}
html[data-theme="dark"] .medication-period-pill{background:rgba(28,31,30,0.86)!important}
html[data-theme="dark"] .medication-info{background:radial-gradient(circle at 100% 0%, rgba(19, 184, 151, .10), transparent 34%),
        rgba(25,46,39,0.82)!important}
html[data-theme="dark"] .timeline-warning{color:#f2d3a6!important;background:#302917!important}
html[data-theme="dark"] .timeline-type-medication .case-timeline-marker{background:linear-gradient(135deg, #1c1f1e, #19302a)!important}
html[data-theme="dark"] .timeline-type-weight .case-timeline-marker{background:linear-gradient(135deg, #1c1f1e, #16232e)!important}
html[data-theme="dark"] .timeline-type-vet .case-timeline-marker,
html[data-theme="dark"] .timeline-type-care .case-timeline-marker{background:linear-gradient(135deg, #1c1f1e, #332d19)!important}
html[data-theme="dark"] .checkbox-label{background:#1c1f1e!important}
html[data-theme="dark"] .alert-danger{background:#2d1716!important;border-color:#4b2c28!important}
html[data-theme="dark"] .image-card,
html[data-theme="dark"] .image-preview-item{background:#1c1f1e!important}
html[data-theme="dark"] .upload-dropzone{background:radial-gradient(circle at top left, rgba(19, 184, 151, .11), transparent 36%),
        linear-gradient(180deg, #1c1f1e 0%, #1a2724 100%)!important}
html[data-theme="dark"] .upload-dropzone:hover,
html[data-theme="dark"] .upload-dropzone.dragover{background:radial-gradient(circle at top left, rgba(19, 184, 151, .18), transparent 38%),
        linear-gradient(180deg, #1c1f1e 0%, #1b2b27 100%)!important}
html[data-theme="dark"] .upload-icon{color:#a6f2ea!important}
html[data-theme="dark"] .upload-pill{color:#a9efe8!important}
html[data-theme="dark"] .image-card-content .checkline{color:#ecacac!important;background:rgba(103,50,50,0.09)!important}
html[data-theme="dark"] .image-card-content .checkline input[type="checkbox"]{accent-color:#ea7a7a!important}
html[data-theme="dark"] .lightbox-close{background:#1c1f1e!important}
html[data-theme="dark"] .finance-empty{background:#1c1f1e!important}
html[data-theme="dark"] .finance-item{background:#1c1f1e!important}
html[data-theme="dark"] .amount-positive{color:#a6f2d8!important}
html[data-theme="dark"] .amount-negative{color:#f09a94!important}
html[data-theme="dark"] .badge.green{color:#a6f2d8!important;background:#193023!important;border-color:#2f4b3a!important}
html[data-theme="dark"] .badge.red{color:#f09a94!important;background:#2d1716!important;border-color:#4b2c28!important}
html[data-theme="dark"] .badge.orange{color:#ecc791!important;background:#302917!important;border-color:#53462d!important}
html[data-theme="dark"] .medication-card{background:rgba(28,31,30,0.92)!important}
html[data-theme="dark"] .medication-note{background:#142a24!important}
@media (max-width: 1420px){
  html[data-theme="dark"] tr{background:#1c1f1e!important}
}
@media (max-width: 680px){
  html[data-theme="dark"] tr{background:#1c1f1e!important}
}
html[data-theme="dark"] .member-list{background:#1c1f1e!important}
html[data-theme="dark"] .member-item{background:#1c1f1e!important}
html[data-theme="dark"] .member-details{background:linear-gradient(180deg, #1c1f1e 0%, #142a21 100%)!important}
html[data-theme="dark"] .member-empty{background:#1c1f1e!important}
html[data-theme="dark"] .table-wrap{background:#1c1f1e!important}
@media (max-width: 1180px){
  html[data-theme="dark"] .table-wrap tr{background:radial-gradient(circle at 100% 0%, rgba(19, 184, 151, .06), transparent 34%),
            #1c1f1e!important}
}
html[data-theme="dark"] .donation-pill{background:rgba(34,69,62,0.85)!important}
html[data-theme="dark"] .donor-mode-card{background:rgba(28,31,30,0.82)!important}
html[data-theme="dark"] .donation-checkbox{background:#1c1f1e!important}
html[data-theme="dark"] .daily-care-check{background:#1c1f1e!important}
html[data-theme="dark"] .daily-care-check-icon::after{border:solid #2e3332!important}
html[data-theme="dark"] .daily-care-check:has(input:checked){background:radial-gradient(circle at 100% 0%, rgba(19, 184, 151, .12), transparent 38%),
        #1c1f1e!important}
html[data-theme="dark"] .daily-care-check:has(input:checked) .daily-care-check-icon{background:linear-gradient(135deg, var(--primary), #0d7a68)!important}
html[data-theme="dark"] .user-list{background:#1c1f1e!important}
html[data-theme="dark"] .user-item{background:#1c1f1e!important}
html[data-theme="dark"] .user-details{background:linear-gradient(180deg, #1c1f1e 0%, #142a21 100%)!important}
html[data-theme="dark"] .user-empty{background:#1c1f1e!important}
html[data-theme="dark"] .badge.gold{color:#ecc791!important;background:#302917!important;border-color:#53462d!important}
html[data-theme="dark"] .daily-check-item{background:#1c1f1e!important}
html[data-theme="dark"] .daily-check-mini-status span.open{background:#1c1f1e!important}
html[data-theme="dark"] .daily-check-details{background:linear-gradient(180deg, #1c1f1e 0%, #142a21 100%)!important}
html[data-theme="dark"] .sidebar{border-right:1px solid rgba(44,81,73,0.08)!important}
html[data-theme="dark"] .brand{border-bottom:1px solid rgba(46,51,50,0.08)!important}
html[data-theme="dark"] .brand-mark,
html[data-theme="dark"] .brand-logo{border:1px solid rgba(44,81,73,0.16)!important}
html[data-theme="dark"] .nav-section-summary::after{border-right:2px solid rgba(46,51,50,0.48)!important;border-bottom:2px solid rgba(46,51,50,0.48)!important}
html[data-theme="dark"] .nav-section[open] > .nav-section-summary::after{border-color:rgba(44,81,73,0.95)!important}
html[data-theme="dark"] .nav-section-code{border:1px solid rgba(44,81,73,0.12)!important}
html[data-theme="dark"] .nav-section-links::before{background:rgba(34,69,62,0.14)!important}
html[data-theme="dark"] .nav-section-links a.active{color:#a6f2ea!important;background:linear-gradient(135deg, #22453e, #19352f)!important}
html[data-theme="dark"] .nav-section-links a.active::before{background:#22453e!important}
html[data-theme="dark"] .sidebar-footer{border-top:1px solid rgba(46,51,50,0.08)!important}
html[data-theme="dark"] .sidebar-user{border:1px solid rgba(44,81,73,0.14)!important}
html[data-theme="dark"] .sidebar-footer a{color:#a6f2ea!important;background:#1c1f1e!important}
html[data-theme="dark"] .sidebar-footer a:hover{background:#22453e!important}
html[data-theme="dark"] .helper-hour-item{background:#1c1f1e!important}
html[data-theme="dark"] .helper-hour-details{background:linear-gradient(180deg, #1c1f1e 0%, #142a21 100%)!important}
html[data-theme="dark"] .helper-hour-text-box{background:rgba(28,31,30,0.78)!important}
html[data-theme="dark"] body{background:radial-gradient(circle at 8% 12%, rgba(19, 184, 151, .14), transparent 28%),
        radial-gradient(circle at 92% 16%, rgba(34,69,62,0.58), transparent 30%),
        linear-gradient(180deg, #142a23 0%, #1c2c27 42%, #142a21 100%)!important}
html[data-theme="dark"] .cp-topnav{border-bottom:1px solid rgba(53,76,71,0.82)!important}
html[data-theme="dark"] .cp-brand-logo{background:rgba(25,46,39,0.86)!important}
html[data-theme="dark"] .cp-nav-link:hover,
html[data-theme="dark"] .cp-nav-dropdown > summary:hover{background:rgba(25,46,39,0.86)!important}
html[data-theme="dark"] .cp-dropdown-panel,
html[data-theme="dark"] .cp-user-panel{background:rgba(28,31,30,0.96)!important}
html[data-theme="dark"] .cp-dropdown-panel::before,
html[data-theme="dark"] .cp-user-panel::before{background:rgba(28,31,30,0.96)!important}
html[data-theme="dark"] .cp-user-dropdown > summary:hover,
html[data-theme="dark"] .cp-user-dropdown[open] > summary{background:rgba(25,46,39,0.9)!important}
html[data-theme="dark"] .cp-user-avatar{background:linear-gradient(135deg, #1c342c, #22453e)!important}
html[data-theme="dark"] .cp-mobile-toggle{background:rgba(28,31,30,0.9)!important}
html[data-theme="dark"] .cp-mobile-toggle span{background:#2a3a38!important}
html[data-theme="dark"] .dashboard-hero{border:1px solid rgba(53,76,71,0.78)!important;background:radial-gradient(circle at 82% 42%, rgba(19, 184, 151, .12), transparent 32%),
        linear-gradient(135deg, rgba(28,31,30,0.96), rgba(25,46,39,0.72))!important}
html[data-theme="dark"] .stat-with-icon .stat-icon,
html[data-theme="dark"] .feature-icon{background:linear-gradient(135deg, #192e27, #1e3630)!important}
html[data-theme="dark"] .quick-link-card{background:linear-gradient(180deg, #1c1f1e, #142a21)!important}
html[data-theme="dark"] .activity-item{border:1px solid rgba(49,67,62,0.78)!important;background:rgba(20,42,33,0.75)!important}
@media (max-width: 1280px){
  html[data-theme="dark"] .cp-dropdown-panel{background:rgba(25,46,39,0.72)!important}
}
html[data-theme="dark"] .activity-link:hover{background:#1c1f1e!important}
@media (max-width: 1280px){
  html[data-theme="dark"] .cp-primary-nav{background:rgba(28,31,30,0.96)!important}
  html[data-theme="dark"] .cp-dropdown-panel{background:rgba(25,46,39,0.72)!important}
}
html[data-theme="dark"] .cp-topnav-polished{background:rgba(20,42,33,0.94)!important;border-bottom:1px solid rgba(49,67,62,0.95)!important}
html[data-theme="dark"] .cp-topnav-polished .cp-brand-logo{background:#192e27!important}
html[data-theme="dark"] .cp-topnav-polished .cp-primary-nav{border:1px solid rgba(49,67,62,0.95)!important;background:rgba(28,31,30,0.86)!important}
html[data-theme="dark"] .cp-topnav-polished .cp-nav-link:hover,
html[data-theme="dark"] .cp-topnav-polished .cp-nav-dropdown > summary:hover{background:rgba(25,46,39,0.95)!important}
html[data-theme="dark"] .cp-topnav-polished .cp-nav-link.active,
html[data-theme="dark"] .cp-topnav-polished .cp-nav-dropdown.active > summary,
html[data-theme="dark"] .cp-topnav-polished .cp-nav-dropdown[open] > summary{color:#a6f2ea!important;background:#22453e!important}
html[data-theme="dark"] .cp-topnav-polished .cp-user-dropdown > summary{border:1px solid rgba(49,67,62,0.95)!important;background:rgba(28,31,30,0.72)!important}
html[data-theme="dark"] .quick-link-card .quick-link-icon,
html[data-theme="dark"] .quick-link-icon{background:linear-gradient(135deg, #192e27, #1e3630)!important}
@media (max-width: 1180px){
  html[data-theme="dark"] .cp-topnav-polished .cp-primary-nav{background:rgba(28,31,30,0.96)!important}
  html[data-theme="dark"] .cp-topnav-polished .cp-nav-link,
html[data-theme="dark"] .cp-topnav-polished .cp-nav-dropdown > summary{background:#1c1f1e!important;border:1px solid rgba(49,67,62,0.8)!important}
  html[data-theme="dark"] .cp-topnav-polished .cp-nav-link.active,
html[data-theme="dark"] .cp-topnav-polished .cp-nav-dropdown.active > summary,
html[data-theme="dark"] .cp-topnav-polished .cp-nav-dropdown[open] > summary{background:#192e27!important}
  html[data-theme="dark"] .cp-topnav-polished .cp-dropdown-panel{background:rgba(25,46,39,0.72)!important}
}
html[data-theme="dark"] .cp-topnav-polished{background:rgba(28,31,30,0.92)!important;border-bottom:1px solid rgba(53,76,71,0.95)!important}
html[data-theme="dark"] .cp-topnav-polished .cp-dropdown-panel{border:1px solid rgba(49,67,62,0.95)!important;background:rgba(28,31,30,0.98)!important}
html[data-theme="dark"] .cp-topnav-polished .cp-user-dropdown > summary:hover,
html[data-theme="dark"] .cp-topnav-polished .cp-user-dropdown[open] > summary{background:rgba(25,46,39,0.82)!important}
@media (max-width: 1320px){
  html[data-theme="dark"] .cp-topnav-polished .cp-nav-link,
html[data-theme="dark"] .cp-topnav-polished .cp-nav-dropdown > summary{background:rgba(28,31,30,0.68)!important}
  html[data-theme="dark"] .cp-topnav-polished .cp-nav-link.active,
html[data-theme="dark"] .cp-topnav-polished .cp-nav-dropdown.active > summary,
html[data-theme="dark"] .cp-topnav-polished .cp-nav-dropdown[open] > summary{background:#192e27!important}
  html[data-theme="dark"] .cp-topnav-polished .cp-dropdown-panel a{background:rgba(25,46,39,0.62)!important}
}
@media (max-width: 1320px){
  html[data-theme="dark"] .cp-topnav-polished .cp-nav-dropdown{background:rgba(28,31,30,0.62)!important}
  html[data-theme="dark"] .cp-topnav-polished .cp-nav-dropdown[open],
html[data-theme="dark"] .cp-topnav-polished .cp-nav-dropdown.active{background:rgba(25,46,39,0.92)!important}
  html[data-theme="dark"] .cp-topnav-polished .cp-nav-link,
html[data-theme="dark"] .cp-topnav-polished .cp-nav-dropdown > summary{background:rgba(28,31,30,0.62)!important}
  html[data-theme="dark"] .cp-topnav-polished .cp-nav-link.active,
html[data-theme="dark"] .cp-topnav-polished .cp-nav-dropdown.active > summary,
html[data-theme="dark"] .cp-topnav-polished .cp-nav-dropdown[open] > summary{background:rgba(28,52,44,0.95)!important}
  html[data-theme="dark"] .cp-topnav-polished .cp-dropdown-panel a + a{border-top:1px solid rgba(53,76,71,0.42)!important}
  html[data-theme="dark"] .cp-topnav-polished .cp-dropdown-panel a:hover,
html[data-theme="dark"] .cp-topnav-polished .cp-dropdown-panel a.active{background:rgba(28,31,30,0.72)!important}
  html[data-theme="dark"] .cp-topnav-polished .cp-mobile-toggle{background:rgba(28,31,30,0.75)!important}
  html[data-theme="dark"] .cp-topnav-polished .cp-mobile-toggle.active{background:#1c1f1e!important}
}
@media (max-width: 1320px){
  html[data-theme="dark"] .cp-topnav-polished{background:rgba(20,42,33,0.98)!important}
  html[data-theme="dark"] .cp-topnav-polished .cp-nav-link,
html[data-theme="dark"] .cp-topnav-polished .cp-nav-dropdown > summary{border:1px solid rgba(49,67,62,0.9)!important;background:rgba(28,31,30,0.86)!important}
  html[data-theme="dark"] .cp-topnav-polished .cp-nav-link.active,
html[data-theme="dark"] .cp-topnav-polished .cp-nav-dropdown.active > summary,
html[data-theme="dark"] .cp-topnav-polished .cp-nav-dropdown[open] > summary{background:linear-gradient(135deg, rgba(28,52,44,0.98), rgba(28,31,30,0.92))!important}
  html[data-theme="dark"] .cp-topnav-polished .cp-dropdown-panel{border:1px solid rgba(49,67,62,0.82)!important;background:rgba(28,31,30,0.78)!important}
  html[data-theme="dark"] .cp-topnav-polished .cp-dropdown-panel a,
html[data-theme="dark"] .cp-topnav-polished .cp-dropdown-panel a + a{background:rgba(25,46,39,0.58)!important}
  html[data-theme="dark"] .cp-topnav-polished .cp-dropdown-panel a:hover,
html[data-theme="dark"] .cp-topnav-polished .cp-dropdown-panel a.active{background:#1c1f1e!important}
  html[data-theme="dark"] .cp-topnav-polished .cp-mobile-toggle{background:#1c1f1e!important}
  html[data-theme="dark"] .cp-topnav-polished .cp-mobile-toggle.active{background:#1c1f1e!important}
}
@media (max-width: 1320px){
  html[data-theme="dark"] .cp-topnav-polished{background:rgba(20,42,33,0.98)!important;border-bottom:1px solid rgba(53,76,71,0.55)!important}
  html[data-theme="dark"] .cp-topnav-polished .cp-nav-link,
html[data-theme="dark"] .cp-topnav-polished .cp-nav-dropdown > summary{border:1px solid rgba(53,76,71,0.58)!important;background:rgba(28,31,30,0.72)!important}
  html[data-theme="dark"] .cp-topnav-polished .cp-nav-link:hover,
html[data-theme="dark"] .cp-topnav-polished .cp-nav-dropdown > summary:hover,
html[data-theme="dark"] .cp-topnav-polished .cp-nav-link.active,
html[data-theme="dark"] .cp-topnav-polished .cp-nav-dropdown.active > summary,
html[data-theme="dark"] .cp-topnav-polished .cp-nav-dropdown[open] > summary{background:rgba(28,52,44,0.92)!important}
  html[data-theme="dark"] .cp-topnav-polished .cp-dropdown-panel a,
html[data-theme="dark"] .cp-topnav-polished .cp-dropdown-panel a + a{background:rgba(28,31,30,0.62)!important}
  html[data-theme="dark"] .cp-topnav-polished .cp-dropdown-panel a:hover,
html[data-theme="dark"] .cp-topnav-polished .cp-dropdown-panel a.active{background:rgba(25,46,39,0.95)!important}
  html[data-theme="dark"] .cp-topnav-polished .cp-mobile-toggle{background:rgba(28,31,30,0.86)!important}
}
html[data-theme="dark"] .cp-login-page-compact{background:radial-gradient(circle at 16% 12%, rgba(19, 184, 151, .18), transparent 28%),
        radial-gradient(circle at 88% 18%, rgba(34,69,62,0.54), transparent 30%),
        radial-gradient(circle at 50% 100%, rgba(7, 52, 47, .08), transparent 34%),
        linear-gradient(135deg, #14291e 0%, #1c2c27 100%)!important}
html[data-theme="dark"] .cp-login-card-pro{border:1px solid rgba(53,76,71,0.9)!important;background:radial-gradient(circle at 100% 0%, rgba(19, 184, 151, .12), transparent 36%),
        rgba(28,31,30,0.94)!important}
html[data-theme="dark"] .cp-login-card-pro::after{background:rgba(34,69,62,0.28)!important}
html[data-theme="dark"] .cp-login-logo-pro{background:linear-gradient(180deg, #1c1f1e, #192c26)!important}
html[data-theme="dark"] .cp-login-card-pro .cp-login-kicker{background:rgba(34,69,62,0.72)!important}
html[data-theme="dark"] .cp-login-card-pro input:not([type="checkbox"]):not([type="radio"]){border-color:rgba(53,76,71,0.95)!important;background:rgba(28,31,30,0.92)!important}
html[data-theme="dark"] .member-name small{background:rgba(25,46,39,0.72)!important}
html[data-theme="dark"] .case-hero-card{background:radial-gradient(circle at 0% 0%, rgba(19, 184, 151, .16), transparent 34%),
        linear-gradient(135deg, rgba(28,31,30,0.96), rgba(25,46,39,0.92))!important}
html[data-theme="dark"] .case-soft-badge{background:#1c1f1e!important}
html[data-theme="dark"] .case-hero-image,
html[data-theme="dark"] .case-hero-placeholder{background:#1c1f1e!important}
html[data-theme="dark"] .case-hero-placeholder{background:linear-gradient(135deg, #1c1f1e, var(--surface-soft))!important}
html[data-theme="dark"] .case-mini-card{background:rgba(28,31,30,0.92)!important}
html[data-theme="dark"] .case-info-panel,
html[data-theme="dark"] .case-section-details{background:rgba(28,31,30,0.94)!important}
html[data-theme="dark"] .case-hero-card{border:1px solid rgba(53,76,71,0.95)!important;background:radial-gradient(circle at 0% 0%, rgba(19, 184, 151, .08), transparent 32%),
        linear-gradient(135deg, rgba(28,31,30,0.97), rgba(28,31,30,0.9))!important}
html[data-theme="dark"] .case-profile-fact{border:1px solid rgba(49,67,62,0.95)!important;background:radial-gradient(circle at 100% 0%, rgba(19, 184, 151, .06), transparent 36%),
        rgba(28,31,30,0.92)!important}
html[data-theme="dark"] .case-hero-image,
html[data-theme="dark"] .case-hero-placeholder{border:1px solid rgba(49,67,62,0.85)!important}
html[data-theme="dark"] .case-mini-card{border:1px solid rgba(49,67,62,0.95)!important;background:radial-gradient(circle at 100% 0%, rgba(19, 184, 151, .06), transparent 35%),
        rgba(28,31,30,0.94)!important}
html[data-theme="dark"] .case-kpi-notes::before{color:#ecac7d!important}
html[data-theme="dark"] .case-kpi-logs::before{background:rgba(53,51,102,0.1)!important}
html[data-theme="dark"] .case-info-panel,
html[data-theme="dark"] .case-section-details,
html[data-theme="dark"] .case-images-section,
html[data-theme="dark"] .daily-care-card,
html[data-theme="dark"] .case-log-section{border:1px solid rgba(49,67,62,0.95)!important;background:rgba(28,31,30,0.94)!important}
html[data-theme="dark"] .case-images-section > summary::before{color:#7097eb!important}
html[data-theme="dark"] .case-section-details:not(.case-images-section):not(.daily-care-card):not(.case-log-section) > summary::before{background:rgba(53,51,102,0.1)!important}
html[data-theme="dark"] .case-info-panel > summary::after,
html[data-theme="dark"] .case-section-details > summary::after,
html[data-theme="dark"] .case-images-section > summary::after,
html[data-theme="dark"] .daily-care-card > summary::after,
html[data-theme="dark"] .case-log-section > summary::after{background:rgba(28,31,30,0.9)!important}
html[data-theme="dark"] .case-info-panel[open] > summary,
html[data-theme="dark"] .case-section-details[open] > summary,
html[data-theme="dark"] .case-images-section[open] > summary,
html[data-theme="dark"] .daily-care-card[open] > summary,
html[data-theme="dark"] .case-log-section[open] > summary{border-bottom:1px solid rgba(49,67,62,0.75)!important}
html[data-theme="dark"] .case-detail-tiles.detail-list.compact div{border:1px solid rgba(53,76,71,0.95)!important;background:rgba(25,46,39,0.78)!important}
html[data-theme="dark"] .mileage-hero{background:radial-gradient(circle at 100% 0%, rgba(19, 184, 151, .14), transparent 38%),
        rgba(28,31,30,0.94)!important}
html[data-theme="dark"] .mileage-item{background:#1c1f1e!important}
html[data-theme="dark"] .mileage-active-card{background:linear-gradient(145deg,#1c1f1e,#192e27)!important}
html[data-theme="dark"] .mileage-active-grid > div{background:rgba(28,31,30,0.78)!important}
html[data-theme="dark"] .mileage-history-main{background:#1c1f1e!important}
html[data-theme="dark"] .mileage-route-preview{background:#1c1f1e!important}
html[data-theme="dark"] .mileage-remove-stop{border:1px solid #4b2c28!important;background:#2d1716!important}
html[data-theme="dark"] .mileage-active-card::before{background:linear-gradient(180deg, var(--primary), #0d7a68)!important}
html[data-theme="dark"] .status-badge.first-aid{background:#352a19!important;color:#f2cea6!important;border-color:#5f4e33!important}
html[data-theme="dark"] .status-badge.stabilized{background:#1d2f29!important;color:#a6f2e2!important;border-color:#38524b!important}
html[data-theme="dark"] .status-badge.secured{background:#172130!important;color:#9abae7!important;border-color:#2f3c50!important}
html[data-theme="dark"] .status-badge.veterinary{background:#22172f!important;color:#b99ad9!important;border-color:#3f2e4f!important}
html[data-theme="dark"] .status-stat-list a{background:#1c1f1e!important}
html[data-theme="dark"] .btn-danger{background:#2d1716!important;color:#f09a94!important;border:1px solid #52312f!important}
html[data-theme="dark"] .animal-empty-state{background:#1c1f1e!important}
html[data-theme="dark"] body{background:#212224!important}
html[data-theme="dark"] .cp-brand-logo{background:#1c1f1e!important}
html[data-theme="dark"] .cp-dropdown-panel,
html[data-theme="dark"] .cp-user-panel{background:#1c1f1e!important}
html[data-theme="dark"] .cp-dropdown-panel a,
html[data-theme="dark"] .cp-user-panel a{color:#bacbde!important}
html[data-theme="dark"] .cp-dropdown-panel a:hover,
html[data-theme="dark"] .cp-dropdown-panel a.active,
html[data-theme="dark"] .cp-user-panel a:hover{color:#a6ccf2!important;background:#182431!important}
html[data-theme="dark"] .cp-user-avatar{color:#8cbeef!important;background:#1c1f1e!important}
html[data-theme="dark"] .cp-user-panel-head{background:#232626!important}
html[data-theme="dark"] .cp-mobile-toggle span{background:#1c1f1e!important}
html[data-theme="dark"] .page-header h1{color:#bacbde!important}
html[data-theme="dark"] .page-header p{color:#b2b4b7!important}
html[data-theme="dark"] .card,
html[data-theme="dark"] .stat-card,
html[data-theme="dark"] .dashboard-panel,
html[data-theme="dark"] .animal-overview-card,
html[data-theme="dark"] .animal-status-panel,
html[data-theme="dark"] .quick-link-card,
html[data-theme="dark"] .activity-item,
html[data-theme="dark"] .feature-card{background:#1c1f1e!important}
html[data-theme="dark"] .dashboard-hero{border:1px solid #2c4051!important;background:linear-gradient(100deg, #1c1f1e 0%, #16232e 100%)!important}
html[data-theme="dark"] .eyebrow{color:#a6ccf2!important;background:#1b2a39!important}
html[data-theme="dark"] .dashboard-hero p{color:#beccda!important}
html[data-theme="dark"] .stat-with-icon .stat-icon,
html[data-theme="dark"] .feature-icon{color:#8cbeef!important;background:#182431!important}
html[data-theme="dark"] .stat-with-icon small{color:#b2b4b7!important}
html[data-theme="dark"] .stat-with-icon strong{color:#bacbde!important}
html[data-theme="dark"] .quick-link-card:hover{background:#15202b!important}
html[data-theme="dark"] .quick-link-card span{color:#8cbeef!important;background:#182431!important}
html[data-theme="dark"] .activity-item{background:#1c1f1e!important}
html[data-theme="dark"] .activity-item > span{color:#8cbeef!important;background:#182431!important}
html[data-theme="dark"] .btn.secondary,
html[data-theme="dark"] .btn-secondary{color:#8cbeef!important;background:#1c1f1e!important}
html[data-theme="dark"] .btn.danger,
html[data-theme="dark"] .btn-danger{color:#f19d9d!important;background:#1c1f1e!important}
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea,
html[data-theme="dark"] .form-control{background:#1c1f1e!important}
html[data-theme="dark"] .table-wrap{background:#1c1f1e!important}
html[data-theme="dark"] .table{background:#1c1f1e!important}
html[data-theme="dark"] .table th{color:#beccda!important;background:#232626!important;border-bottom:1px solid #464d4c!important}
html[data-theme="dark"] .table td{border-bottom:1px solid #343938!important}
html[data-theme="dark"] .table tbody tr:hover td{background:#15202b!important}
html[data-theme="dark"] .status-badge.active,
html[data-theme="dark"] .status-badge.success{color:#a6f2c6!important;background:#1d2b21!important;border-color:#3c5142!important}
html[data-theme="dark"] .animal-summary-total,
html[data-theme="dark"] .animal-empty-state{background:#202423!important}
html[data-theme="dark"] .animal-summary-total strong{color:#8cbeef!important}
html[data-theme="dark"] .animal-status-panel{background:#1c1f1e!important}
html[data-theme="dark"] .login-page,
html[data-theme="dark"] .cp-login-page{background:#212529!important}
html[data-theme="dark"] .cp-login-kicker{color:#a6ccf2!important;background:#1b2a39!important}
html[data-theme="dark"] .cp-login-security{background:#202423!important}
@media (max-width: 1280px){
  html[data-theme="dark"] .cp-dropdown-panel{background:#1c1f1e!important}
}
html[data-theme="dark"] .cp-topnav{background:#0d6b63!important}
html[data-theme="dark"] .cp-brand-logo{border-color:rgba(46,51,50,0.18)!important}
html[data-theme="dark"] .cp-dropdown-panel a:hover,
html[data-theme="dark"] .cp-dropdown-panel a.active,
html[data-theme="dark"] .cp-user-panel a:hover{background:#222e2c!important}
html[data-theme="dark"] .workspace-date{background:#1c1f1e!important}
html[data-theme="dark"] .operations-dashboard{background:#1c1f1e!important}
html[data-theme="dark"] .operations-summary{background:#202525!important}
html[data-theme="dark"] .care-gauge{background:conic-gradient(var(--cp-green) var(--gauge), #2b3232 0)!important}
html[data-theme="dark"] .care-gauge::before{background:#202525!important}
html[data-theme="dark"] .status-workgroup-head{border-bottom:1px solid #4b5252!important}
html[data-theme="dark"] .status-work-tile{border-bottom:1px solid #363c3c!important}
html[data-theme="dark"] .status-work-tile:nth-child(odd){border-right:1px solid #363c3c!important}
html[data-theme="dark"] .status-work-tile:hover{background:#1e2b27!important}
html[data-theme="dark"] .operations-empty{background:#202525!important}
html[data-theme="dark"] .operations-activity{background:#1d2121!important}
html[data-theme="dark"] .operations-activity-item{border-bottom:1px solid #363d3d!important}
html[data-theme="dark"] .operations-activity-item:hover{background:#1e2b27!important}
html[data-theme="dark"] .cp-login-page-compact{background:linear-gradient(115deg,#0d6b63 0 42%,#242c2b 42% 100%)!important}
html[data-theme="dark"] .cp-login-page-compact::before{border:90px solid rgba(46,51,50,0.035)!important}
html[data-theme="dark"] .cp-login-card-pro{background:#1c1f1e!important}
html[data-theme="dark"] .cp-login-card-head{background:linear-gradient(155deg,var(--cp-teal),#0d6b63)!important}
html[data-theme="dark"] .cp-login-logo-pro{border:1px solid rgba(46,51,50,0.2)!important}
html[data-theme="dark"] .cp-login-card-pro input:not([type=checkbox]):not([type=radio]){border:1px solid #424a4a!important;background:#1d2323!important}
@media (max-width: 760px){
  html[data-theme="dark"] .cp-login-page-compact{background:#0d6b63!important}
}
html[data-theme="dark"] a{color:#a6ebf2!important}
html[data-theme="dark"] a:hover{color:#a6ebf2!important}
html[data-theme="dark"] .eyebrow,
html[data-theme="dark"] .cp-login-kicker,
html[data-theme="dark"] .animal-summary-total strong,
html[data-theme="dark"] .stat-with-icon .stat-icon,
html[data-theme="dark"] .feature-icon,
html[data-theme="dark"] .quick-link-card span,
html[data-theme="dark"] .activity-item > span{color:#a6f2d7!important}
html[data-theme="dark"] .btn.secondary,
html[data-theme="dark"] .btn-secondary{color:#a6ebf2!important;background:#1c1f1e!important}
html[data-theme="dark"] .btn.secondary:hover,
html[data-theme="dark"] .btn-secondary:hover{background:#1f2a29!important}
html[data-theme="dark"] .table tbody tr:hover td{background:#1f2927!important}
html[data-theme="dark"] .quick-link-card:hover{background:#1f2927!important}
html[data-theme="dark"] .status-badge.secured{background:#212d2c!important;color:#a6ebf2!important;border-color:#3c4b4a!important}
html[data-theme="dark"] .case-images-section > summary::before{color:#a6ebf2!important}
html[data-theme="dark"] .cp-user-dropdown > summary:hover,
html[data-theme="dark"] .cp-user-dropdown[open] > summary,
html[data-theme="dark"] .cp-topnav-polished .cp-user-dropdown > summary:hover,
html[data-theme="dark"] .cp-topnav-polished .cp-user-dropdown[open] > summary{border-color:rgba(46,51,50,0.14)!important}
html[data-theme="dark"] .cp-user-panel{background:#1c1f1e!important;color:#b6dee2!important;border:1px solid #3c4444!important}
html[data-theme="dark"] .cp-user-panel-head{background:#212928!important;border-bottom:1px solid #394140!important}
html[data-theme="dark"] .cp-user-panel-head strong{color:#a6ebf2!important}
html[data-theme="dark"] .cp-user-panel-head span{color:#acbabb!important}
html[data-theme="dark"] .cp-user-panel a{color:#b6dee2!important}
html[data-theme="dark"] .cp-user-panel a:hover,
html[data-theme="dark"] .cp-user-panel a.active{background:#212c2a!important;color:#a6ebf2!important}
html[data-theme="dark"] .page-header h1,
html[data-theme="dark"] .card h1,
html[data-theme="dark"] .card h2,
html[data-theme="dark"] .card h3{color:#b5dfe3!important}
html[data-theme="dark"] .stat-card small,
html[data-theme="dark"] .stat-card .label{color:#acbabb!important}
html[data-theme="dark"] .stat-card strong{color:#a6ebf2!important}
html[data-theme="dark"] body:has(.cp-auth-page){background:#222928!important}
html[data-theme="dark"] .cp-auth-page{background:radial-gradient(circle at 15% 15%, rgba(8,122,82,.09), transparent 30%),
        linear-gradient(135deg, #222928 0%, #1c2422 100%)!important}
html[data-theme="dark"] .cp-auth-card{border:1px solid #3b4443!important;background:#1c1f1e!important}
html[data-theme="dark"] .cp-auth-brandmark{border:1px solid rgba(46,51,50,0.17)!important}
html[data-theme="dark"] .cp-auth-kicker{color:#a6f2d7!important}
html[data-theme="dark"] .cp-auth-content h1{color:#a6ebf2!important}
html[data-theme="dark"] .cp-auth-intro{color:#acbabb!important}
html[data-theme="dark"] .cp-auth-form label{color:#bbdbdd!important}
html[data-theme="dark"] .cp-auth-form input{border:1px solid #464d4d!important;background:#1c1f1e!important;color:#b5dfe3!important}
html[data-theme="dark"] .cp-auth-note{border-top:1px solid #363d3c!important;color:#a6b1b3!important}
html[data-theme="dark"] .cp-user-dropdown > summary:hover,
html[data-theme="dark"] .cp-user-dropdown > summary:focus-visible,
html[data-theme="dark"] .cp-user-dropdown[open] > summary,
html[data-theme="dark"] .cp-topnav-polished .cp-user-dropdown > summary:hover,
html[data-theme="dark"] .cp-topnav-polished .cp-user-dropdown > summary:focus-visible,
html[data-theme="dark"] .cp-topnav-polished .cp-user-dropdown[open] > summary{border-color:rgba(46,51,50,0.18)!important}
html[data-theme="dark"] .table tbody tr:hover td,
html[data-theme="dark"] .table tbody tr:focus-within td,
html[data-theme="dark"] tbody tr:hover td,
html[data-theme="dark"] tbody tr:focus-within td{background:#1f2927!important}
html[data-theme="dark"] .card:hover,
html[data-theme="dark"] .status-work-tile:hover,
html[data-theme="dark"] .operations-activity-item:hover,
html[data-theme="dark"] .quick-link-card:hover,
html[data-theme="dark"] .member-item summary:hover,
html[data-theme="dark"] .user-summary:hover,
html[data-theme="dark"] .helper-hour-summary:hover,
html[data-theme="dark"] .daily-care-check:hover,
html[data-theme="dark"] .daily-check-summary:hover{border-color:#404b4a!important;background-color:#1c2623!important}
html[data-theme="dark"] .admin-finance-overview{border:1px solid #3b4544!important;background:#1c1f1e!important}
html[data-theme="dark"] .admin-finance-heading h2{color:#b5dfe3!important}
html[data-theme="dark"] .admin-finance-heading p{color:#abb9bb!important}
html[data-theme="dark"] .admin-finance-card{border:1px solid #37413f!important;background:#1c2422!important}
html[data-theme="dark"] .admin-finance-card-budget{border-color:#445351!important;background:#1e2b28!important}
html[data-theme="dark"] .admin-finance-card span,
html[data-theme="dark"] .admin-finance-card small{color:#acbcbd!important}
html[data-theme="dark"] .admin-finance-card strong{color:#a6ebf2!important}
html[data-theme="dark"] .admin-finance-card-expense{border-color:#4d3636!important;background:#2b1515!important}
html[data-theme="dark"] .admin-finance-card-expense span,
html[data-theme="dark"] .admin-finance-card-expense strong{color:#f09a94!important}
html[data-theme="dark"] .admin-finance-card-expense small{color:#c6a9a7!important}
html[data-theme="dark"] .documentation-attachments{border-top:1px solid #37413f!important}
html[data-theme="dark"] .documentation-attachments>strong,
html[data-theme="dark"] .documentation-attachments h3{color:#b5dfe3!important}
html[data-theme="dark"] .documentation-image{border:1px solid #37413f!important;background:#212927!important}
html[data-theme="dark"] .documentation-document{border:1px solid #37413f!important;background:#1c2422!important}
html[data-theme="dark"] .documentation-file-row{border:1px solid #37413f!important;background:#1c2422!important}
html[data-theme="dark"] .documentation-document-name>i{color:#b6dee2!important}
html[data-theme="dark"] .documentation-file-action{border:1px solid #3d4544!important;background:#1c1f1e!important}
html[data-theme="dark"] .documentation-file-action:hover{background:#202a29!important}
html[data-theme="dark"] .documentation-lightbox-close,
html[data-theme="dark"] .documentation-lightbox-nav{border:1px solid rgba(46,51,50,0.32)!important}
html[data-theme="dark"] .weight-chart-point-link:hover .weight-chart-point-halo,
html[data-theme="dark"] .weight-chart-point-link:focus .weight-chart-point-halo{fill:rgba(166,235,242,0.14)!important}
html[data-theme="dark"] .weight-chart-summary .is-positive{color:#a6f2d7!important}
html[data-theme="dark"] .weight-chart-summary .is-negative{color:#e58e93!important}
html[data-theme="dark"] .archive-file-card{background:#1c1f1e!important}
html[data-theme="dark"] .archive-preview-image{background:#212928!important}
html[data-theme="dark"] .archive-file-icon{background:#212928!important}
html[data-theme="dark"] .danger-zone{border-color:#4d3331!important}
html[data-theme="dark"] .danger-zone h2{color:#eba19c!important}
html[data-theme="dark"] .payment-list{background:#1c1f1e!important}
html[data-theme="dark"] .payment-item{background:#1c1f1e!important}
html[data-theme="dark"] .payment-details{background:linear-gradient(180deg, #1c1f1e 0%, #142a21 100%)!important}
html[data-theme="dark"] .case-group-section{border:1px solid var(--border-color, #383e40)!important}
html[data-theme="dark"] .case-group-animal{border:1px solid var(--border-color, #383e40)!important;background:#1c1f1e!important}
html[data-theme="dark"] .case-animal-card{border:1px solid var(--border-color, #383e40)!important;background:#1c1f1e!important}
html[data-theme="dark"] .case-animal-card-head span,
html[data-theme="dark"] .case-log-animal-badge{color:#a6ebf2!important}
html[data-theme="dark"] .case-switcher-arrow{background:var(--surface,#1c1f1e)!important}
html[data-theme="dark"] .case-switcher-select{background:var(--surface,#1c1f1e)!important}
@media (max-width: 760px){
  html[data-theme="dark"] .pigeon-cases-mobile .pigeon-mobile-case-card{border:1px solid var(--cp-border, #3a4141)!important;background:#1c1f1e!important;color:var(--cp-text, #b6dee2)!important}
  html[data-theme="dark"] .pigeon-cases-mobile .pigeon-mobile-case-card:hover,
html[data-theme="dark"] .pigeon-cases-mobile .pigeon-mobile-case-card:focus-visible{border-color:#4b5857!important;background:#1c2424!important;color:var(--cp-text, #b6dee2)!important}
  html[data-theme="dark"] .pigeon-mobile-case-number{color:#b2d0e6!important}
  html[data-theme="dark"] .pigeon-mobile-case-name{color:#b3cfe5!important}
  html[data-theme="dark"] .pigeon-mobile-case-subline{color:var(--cp-muted, #acbabb)!important}
  html[data-theme="dark"] .pigeon-mobile-case-meta > span{background:#1f2727!important;color:#b2c7c9!important}
  html[data-theme="dark"] .pigeon-mobile-case-meta b{color:#aab6b8!important}
  html[data-theme="dark"] .pigeon-mobile-case-open{border-top:1px solid #343b3b!important;color:var(--interaction-primary, #a6ebf2)!important}
}
html[data-theme="dark"] .reimbursement-delete-link{color:#f09a94!important}
html[data-theme="dark"] .reimbursement-details > div{border-bottom:1px solid var(--border, #36383b)!important}
html[data-theme="dark"] .inventory-summary span{color:var(--muted,#a6adbb)!important}
html[data-theme="dark"] .inventory-summary small{color:var(--muted,#a6adbb)!important}
html[data-theme="dark"] .status-badge.status-treatment{background:#2d1617!important;color:#ef92a9!important}
html[data-theme="dark"] .status-badge.status-young{background:#2e2416!important;color:#f0ae93!important}
html[data-theme="dark"] .status-badge.status-ready{background:#172f21!important;color:#a6f2d2!important}
html[data-theme="dark"] .status-badge.status-rehab{background:#16232e!important;color:#84abed!important}
html[data-theme="dark"] .status-badge.status-permanent{background:#17152c!important;color:#9a7aea!important}
html[data-theme="dark"] .status-badge.status-archived{background:#1f2227!important;color:#b2bcca!important}
html[data-theme="dark"] .status-badge.status-open{background:#162e1e!important;color:#abedc4!important}
html[data-theme="dark"] .nova-sidebar{background:#1c1f1e!important}
html[data-theme="dark"] .nova-navitem{color:#bcc9c7!important}
html[data-theme="dark"] .nova-navitem i{color:#aab4b2!important}
html[data-theme="dark"] .nova-navitem:hover{background:#202624!important}
html[data-theme="dark"] .card,
html[data-theme="dark"] .form-card,
html[data-theme="dark"] .admin-finance-overview,
html[data-theme="dark"] .operations-column,
html[data-theme="dark"] .table-card,
html[data-theme="dark"] .panel{background:#1c1f1e!important}
html[data-theme="dark"] .btn-secondary,
html[data-theme="dark"] .btn.secondary{background:#1c1f1e!important}
html[data-theme="dark"] input:not([type=checkbox]):not([type=radio]),
html[data-theme="dark"] select,
html[data-theme="dark"] textarea,
html[data-theme="dark"] .form-control{border:1px solid #39403e!important;background:#1c1f1e!important}
html[data-theme="dark"] .form-group label{color:#bdccc9!important}
html[data-theme="dark"] th{background:#1d2422!important;color:#afbab8!important}
html[data-theme="dark"] th,
html[data-theme="dark"] td{border-bottom:1px solid #323937!important}
html[data-theme="dark"] .nova-toast{background:#20322a!important;color:#a9efd7!important;border:1px solid #354b41!important}
html[data-theme="dark"] .nova-date{background:#1c1f1e!important}
html[data-theme="dark"] .nova-action{background:#1c1f1e!important}
html[data-theme="dark"] .nova-panel{background:#1c1f1e!important}
html[data-theme="dark"] .nova-stat{background:#1d2422!important}
html[data-theme="dark"] .nova-activity{border-bottom:1px solid #323937!important}
html[data-theme="dark"] .nova-money>div{background:#1d2422!important}
@media (max-width:760px){
  html[data-theme="dark"] .nova-mobilebar{background:rgba(28,31,30,0.96)!important}
  html[data-theme="dark"] .nova-bottom{background:#1c1f1e!important}
  html[data-theme="dark"] .nova-bottom a,
html[data-theme="dark"] .nova-bottom button{color:#aab4b2!important}
  html[data-theme="dark"] .nova-sheet{background:#1c1f1e!important}
  html[data-theme="dark"] .nova-sheet-handle{background:#2e3332!important}
  html[data-theme="dark"] .nova-sheet-grid a{background:#1f2624!important}
  html[data-theme="dark"] .nova-entry-page .form-grid{background:#1c1f1e!important}
}
html[data-theme="dark"] .daily-case-head small{color:var(--muted,#acb9b7)!important}
html[data-theme="dark"] .daily-count{background:#1f2d29!important}
html[data-theme="dark"] .daily-savebar{background:rgba(28,31,30,0.94)!important;border-top:1px solid #373f3d!important}
html[data-theme="dark"] .application-list{background:#1c1f1e!important}
@media (max-width:760px){
  html[data-theme="dark"] .application-row{background:#1c1f1e!important}
}

/* =========================================================
   HANDGEPFLEGTE ERGÄNZUNGEN (nach dem automatisch erzeugten Teil)
========================================================= */

/* ---------- Darkmode: Feinschliff für Bereiche, die die Automatik nicht erfasst ---------- */
html[data-theme="dark"] body { background: var(--nova-bg) !important; color: var(--nova-ink); }
html[data-theme="dark"] img[src$="favicon.png"] { filter: brightness(1.25) saturate(1.1); }

html[data-theme="dark"] .card,
html[data-theme="dark"] .form-card,
html[data-theme="dark"] .nova-panel,
html[data-theme="dark"] .nova-action,
html[data-theme="dark"] .stat-card,
html[data-theme="dark"] .table-card,
html[data-theme="dark"] .panel { background: var(--nova-surface) !important; border-color: var(--nova-line) !important; color: var(--nova-ink); }
html[data-theme="dark"] .nova-action:first-child { background: var(--nova-green-dark) !important; color: #fff !important; }
html[data-theme="dark"] .nova-stat,
html[data-theme="dark"] .nova-money > div { background: #1b2826 !important; }

html[data-theme="dark"] input:not([type=checkbox]):not([type=radio]):not([type=range]),
html[data-theme="dark"] select,
html[data-theme="dark"] textarea,
html[data-theme="dark"] .form-control { background: #111a19 !important; border-color: #2e3f3c !important; color: var(--nova-ink) !important; }
html[data-theme="dark"] input::placeholder, html[data-theme="dark"] textarea::placeholder { color: #6f8682 !important; }
html[data-theme="dark"] input[readonly], html[data-theme="dark"] textarea[readonly] { background: #172220 !important; color: #a9bcb8 !important; }
html[data-theme="dark"] .form-group label, html[data-theme="dark"] label { color: #c3d4d0 !important; }
html[data-theme="dark"] input[type=date]::-webkit-calendar-picker-indicator { filter: invert(.85); }

html[data-theme="dark"] .btn-secondary,
html[data-theme="dark"] .btn.secondary { background: #1b2826 !important; border-color: #2e3f3c !important; color: var(--nova-ink) !important; }
html[data-theme="dark"] .btn-secondary:hover, html[data-theme="dark"] .btn.secondary:hover { background: #22322f !important; }
html[data-theme="dark"] .btn-danger, html[data-theme="dark"] .btn.danger { background: #8f2a22 !important; border-color: #8f2a22 !important; color: #fff !important; }

html[data-theme="dark"] table { color: var(--nova-ink); }
html[data-theme="dark"] th { background: #1a2624 !important; color: #8ea39f !important; }
html[data-theme="dark"] th, html[data-theme="dark"] td { border-color: #24322f !important; }
html[data-theme="dark"] tr:hover td { background: rgba(255, 255, 255, .02); }
html[data-theme="dark"] .table-wrap, html[data-theme="dark"] .table-responsive, html[data-theme="dark"] .decl-table { background: var(--nova-surface) !important; border-color: var(--nova-line) !important; }

html[data-theme="dark"] .alert.success, html[data-theme="dark"] .alert-success, html[data-theme="dark"] .nova-toast { background: #12352a !important; color: #8fe3bf !important; border-color: #1d4a3a !important; }
html[data-theme="dark"] .alert.error, html[data-theme="dark"] .alert-error, html[data-theme="dark"] .alert-danger { background: #3a1714 !important; color: #ffb4ab !important; border-color: #57221d !important; }
html[data-theme="dark"] .alert.warning { background: #3a2c12 !important; color: #f4cf8a !important; }

html[data-theme="dark"] .badge { background: #22322f; color: #c3d4d0; }
html[data-theme="dark"] .badge.green { background: #14392c !important; color: #86e0b8 !important; }
html[data-theme="dark"] .badge.red { background: #3e1a17 !important; color: #ffaaa1 !important; }
html[data-theme="dark"] .badge.gold, html[data-theme="dark"] .badge.orange { background: #3b2e14 !important; color: #f2c879 !important; }

html[data-theme="dark"] a { color: #6fdcc2; }
html[data-theme="dark"] .small, html[data-theme="dark"] small, html[data-theme="dark"] .muted { color: var(--nova-muted); }
html[data-theme="dark"] h1, html[data-theme="dark"] h2, html[data-theme="dark"] h3, html[data-theme="dark"] h4 { color: var(--nova-ink) !important; }
html[data-theme="dark"] hr { border-color: var(--nova-line); }
html[data-theme="dark"] code { background: #1b2826; color: #bfe9de; border-radius: 6px; padding: 1px 5px; }
html[data-theme="dark"] .empty-state { color: var(--nova-muted); }
html[data-theme="dark"] .daily-savebar { background: rgba(19, 28, 27, .94) !important; border-color: var(--nova-line) !important; }
html[data-theme="dark"] .decl-sig { background: #fff !important; } /* Unterschriften bleiben auf weißem Grund lesbar */
html[data-theme="dark"] img.signature, html[data-theme="dark"] .signature-preview img { background: #fff; }
html[data-theme="dark"] ::-webkit-scrollbar-thumb { background: #2c3c39; }

/* ---------- Handy: Aktions-Buttons im Seitenkopf zweispaltig statt untereinander ---------- */
@media (max-width: 760px) {
    .page-header > div:last-child:not(:first-child) { display: flex !important; flex-wrap: wrap !important; gap: 8px !important; }
    .page-header > div:last-child:not(:first-child) > .btn,
    .page-header > div:last-child:not(:first-child) > form { flex: 1 1 calc(50% - 8px) !important; margin: 0 !important; }
    .page-header > div:last-child:not(:first-child) > form .btn { width: 100%; }
    .page-header > div:last-child:not(:first-child) > .btn-primary:last-child { flex-basis: 100% !important; }
}

