/* SKIV unified accessible admin theme — loaded last */
:root{--skiv-accent:#9333ea;--skiv-text:#f6f3fa;--skiv-muted:#c3bacd;--skiv-panel:#18141f;--skiv-border:#40354c}
body{color:var(--skiv-text)}
.main .panel,.main .sk-widget,.main .stat-card{border-color:var(--skiv-border)}
button,.button,[role="button"],input[type="submit"],select{font:inherit}
.button,button.button,a.button,.sk-hero-action,.hero-edit-btn{background:#9333ea;color:#fff!important;border:1px solid #a855f7;font-weight:750;text-decoration:none;line-height:1.35}
.button:hover,button.button:hover,a.button:hover,.sk-hero-action:hover{background:#7924c5;color:#fff!important}
.button.secondary,a.button.secondary,button.button.secondary{background:#282032;color:#f8f5ff!important;border-color:#77648c}
.button.secondary:hover,a.button.secondary:hover{background:#3a2b4a;color:#fff!important}
button:disabled,.button:disabled{opacity:.7;cursor:not-allowed}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #c084fc!important;outline-offset:3px}
input,textarea,select{color:#f8f5ff;background:#211b2a;border:1px solid #695875;border-radius:9px}
input::placeholder,textarea::placeholder{color:#bdb0c7;opacity:1}
select option{background:#211b2a;color:#fff}
label,.panel label,.detail-card small{color:#ddd3e5}
.main a:not(.button):not(.skiv-notes-shortcut):not(.skiv-category-links a){text-underline-offset:3px}
.skiv-category{background:#1b1622!important;border-color:#4b3b57!important}
.skiv-category-title strong,.skiv-category-links a strong{color:#fff!important}
.skiv-category-title small,.skiv-category-links a small,.skiv-category-count{color:#d4c6df!important}
.skiv-category-links a{background:#261e30!important;border-color:#4c3c5a!important;color:#fff!important}
.skiv-category-links a:hover{background:#3a294b!important}
.skiv-notes-shortcut{background:#352244!important;color:#fff!important;border-color:#76518f!important}
.skiv-dashboard-intro p{color:#cfc3d7!important}
.skiv-expense-privacy{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.skiv-privacy-toggle{background:#30223c!important;color:#fff!important;border:1px solid #8f68ad!important;border-radius:9px;padding:9px 13px;cursor:pointer;font-weight:750}
.skiv-private-amount.is-hidden{filter:blur(7px);user-select:none;pointer-events:none}
.skiv-expense-private.is-hidden td:last-child{filter:blur(7px);user-select:none}
/* Order detail: centered modal with comfortable scrolling and clear contrast */
#drawer.drawer{align-items:center;justify-content:center;padding:22px;background:rgba(7,5,11,.78);backdrop-filter:blur(5px);z-index:1000}
#drawer .drawer-panel{width:min(960px,100%);height:auto;max-height:min(92vh,1000px);overflow:auto;background:#17121e;color:#f7f3fb;border:1px solid #665075;border-radius:20px;padding:clamp(18px,3vw,34px);box-shadow:0 26px 100px #000a}
#drawer .drawer-head{position:sticky;top:-34px;z-index:5;background:#17121e;padding:8px 0 18px;margin-bottom:16px;border-bottom:1px solid #4b3b58}
#drawer .drawer-head h2{color:#fff;font-size:clamp(22px,3vw,32px);margin:4px 0}
#drawer .drawer-head small{color:#d9b5ff;letter-spacing:.12em;font-weight:800}
#drawer .drawer-close{background:#342540;color:#fff;border-color:#86669e;padding:11px 16px}
#drawer .detail-grid{gap:14px}
#drawer .detail-card{background:#231b2b;border:1px solid #554365;border-radius:14px;padding:18px;color:#fff;min-width:0;overflow-wrap:anywhere}
#drawer .detail-card small{color:#cdbbd9}
#drawer .detail-card strong{color:#fff;font-size:15px}
#drawer .button{padding:11px 15px;min-height:43px;white-space:normal;text-align:center}
#drawer #detailContent>p:has(>button){display:flex;gap:10px;flex-wrap:wrap}
#drawer table{width:100%}#drawer td,#drawer th{color:#f4edf9;border-color:#4b3b58}

/* ==========================================
   SKIV MOTO – NOTES DARK MODE
   Nur für die Notizen- und Aufgabenseite
   ========================================== */

body:has(.skiv-notes-page) {
  background: #100d15 !important;
  color: #f6f3fa !important;
}

.skiv-notes-page {
  color: #f6f3fa !important;
}

/* Überschrift */
.skiv-notes-head h1 {
  color: #ffffff !important;
}

.skiv-notes-head p {
  color: #bdb3c9 !important;
}

.skiv-back {
  color: #c084fc !important;
}

.skiv-back:hover {
  color: #e9d5ff !important;
}

/* Karten */
.skiv-notes-card {
  background: #1b1623 !important;
  border: 1px solid #453750 !important;
  box-shadow: 0 12px 35px rgba(0, 0, 0, .18);
  color: #f6f3fa !important;
}

.skiv-notes-card h2 {
  color: #ffffff !important;
}

/* Formular */
.skiv-note-field {
  color: #e8e0f0 !important;
}

.skiv-note-field input,
.skiv-note-field textarea,
.skiv-note-field select,
.skiv-note-filter {
  background: #241c2e !important;
  color: #ffffff !important;
  border: 1px solid #665373 !important;
  border-radius: 10px;
}

.skiv-note-field input::placeholder,
.skiv-note-field textarea::placeholder {
  color: #b6a8c3 !important;
  opacity: 1;
}

.skiv-note-field input:focus,
.skiv-note-field textarea:focus,
.skiv-note-field select:focus,
.skiv-note-filter:focus {
  border-color: #b36aff !important;
  outline: 2px solid rgba(168, 85, 247, .25);
}

.skiv-note-field select option,
.skiv-note-filter option {
  background: #241c2e;
  color: #ffffff;
}

/* Hauptbuttons */
.skiv-note-btn,
button.skiv-note-btn {
  background: #9333ea !important;
  color: #ffffff !important;
  border: 1px solid #a855f7 !important;
  font-weight: 800;
  transition: background .2s, transform .2s;
}

.skiv-note-btn:hover {
  background: #7e22ce !important;
  transform: translateY(-1px);
}

/* Sekundärbuttons */
.skiv-note-btn.secondary,
button.skiv-note-btn.secondary {
  background: #34283f !important;
  color: #ffffff !important;
  border-color: #705883 !important;
}

.skiv-note-btn.secondary:hover {
  background: #493558 !important;
}

/* Löschen */
.skiv-note-btn.danger,
button.skiv-note-btn.danger {
  background: #49232d !important;
  color: #ffb7c3 !important;
  border-color: #8c4555 !important;
}

.skiv-note-btn.danger:hover {
  background: #632b39 !important;
}

/* Einzelne Notizen */
.skiv-note-item {
  background: #251d30 !important;
  border: 1px solid #4c3b5b !important;
  color: #ffffff !important;
}

.skiv-note-top h3 {
  color: #ffffff !important;
}

.skiv-note-body {
  color: #d7ccdf !important;
}

.skiv-note-meta {
  color: #bcaec9 !important;
}

/* Status */
.skiv-note-status {
  background: #43235e !important;
  color: #e9d5ff !important;
}

.skiv-note-status.progress {
  background: #493819 !important;
  color: #fcd34d !important;
}

.skiv-note-status.done {
  background: #173d30 !important;
  color: #86efac !important;
}

/* Bearbeiten / Löschen / Statuswechsel */
.skiv-note-item-actions button {
  background: #34283f !important;
  color: #ffffff !important;
  border: 1px solid #725c83 !important;
}

.skiv-note-item-actions button:hover {
  background: #4a355a !important;
  border-color: #b36aff !important;
}

/* Meldungen */
.skiv-note-alert {
  background: #4a202b !important;
  color: #ffc2cb !important;
  border: 1px solid #914557;
}

.skiv-note-empty {
  color: #bdb3c9 !important;
}

/* Mobile */
@media (max-width: 650px) {
  .skiv-notes-page {
    padding: 20px 12px 48px;
  }

  .skiv-notes-card {
    padding: 17px !important;
    border-radius: 14px;
  }

  .skiv-note-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .skiv-note-actions .skiv-note-btn {
    width: 100%;
    min-height: 46px;
  }

  .skiv-note-item-actions button {
    min-height: 40px;
  }
}

@media(max-width:650px){#drawer.drawer{padding:0;align-items:stretch}#drawer .drawer-panel{max-height:100dvh;height:100dvh;border-radius:0;padding:18px}#drawer .drawer-head{top:-18px}#drawer .detail-grid{grid-template-columns:1fr}}
