@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@400;500;700&display=swap');

/* =========================================================================
   Schwarzmann Backend — Design System
   Stil aus dem "Geex"-Admin-Kit, Farb-/Schrift-/Icon-Thema aus der PWA
   (Bordeaux, Ubuntu, lucide). Hell-Theme, modern & frisch.
   ========================================================================= */

:root {
  --brand: #a4123f;
  --brand-strong: #8c1036;
  --brand-tint: #fbe9ef;

  --bg: #eceef3;
  --surface: #ffffff;
  --surface-2: #f5f6f9;
  --ink: #1f2430;
  --ink-soft: #5b6170;
  --muted: #9aa0ad;
  --border: #e8eaf0;

  --success: #12916a; --success-bg: #e6f4ee;
  --warn: #b5820a;    --warn-bg: #f9efd4;
  --danger: #d64550;  --danger-bg: #fbe9ea;
  --info: #3f6fd6;    --info-bg: #e9effb;

  --r-lg: 20px; --r-md: 14px; --r-sm: 10px; --r-pill: 999px;
  --shadow-card: 0 12px 30px -18px rgba(25, 28, 60, 0.28);
  --shadow-soft: 0 1px 2px rgba(25, 28, 60, 0.04), 0 10px 24px -18px rgba(25, 28, 60, 0.22);
  --sidebar-w: 260px;
}

* { box-sizing: border-box; }

html, body {
  -webkit-text-size-adjust: none;
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Ubuntu', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body { min-width: 900px; }

a { color: var(--brand); text-decoration: none; }
h1, h2, h3 { color: var(--ink); font-weight: 700; }

.clickCursor { cursor: pointer; }

/* Inline-Icon-Buttons (Tabellen/Listen) — lucide */
.iconBtn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 8px;
  color: var(--ink-soft); vertical-align: middle;
}
.iconBtn svg { width: 17px; height: 17px; }
.iconBtn:hover { background: var(--brand-tint); color: var(--brand); }
.iconBtn.redText, .addOrder.redText { color: var(--brand); }
.imgDelIcon svg { width: 15px; height: 15px; }

/* ----------------------------------------------------------------- Shell */
.app-shell {
  display: flex;
  min-height: 100vh;
  padding: 16px;
  gap: 16px;
}

.sidebar {
  width: var(--sidebar-w);
  flex: 0 0 var(--sidebar-w);
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  padding: 26px 18px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 16px;
  height: calc(100vh - 32px);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 8px 30px;
}
.sidebar-logo img { max-width: 100%; height: auto; max-height: 44px; width: auto; }
.sidebar-logo span { font-size: 22px; font-weight: 700; letter-spacing: -0.5px; }
/* Logo je nach Theme: Bordeaux im Light-, weiß im Dark-Mode */
.logo-dark { display: none; }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }

.sidebar-nav { display: flex; flex-direction: column; gap: 4px; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border-radius: var(--r-md);
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
.nav-item svg { width: 20px; height: 20px; stroke-width: 2; }
.nav-item:hover { background: var(--surface-2); color: var(--ink); }
.nav-item.active { background: var(--brand-tint); color: var(--brand); font-weight: 700; }

.sidebar-foot { margin-top: auto; padding-top: 20px; }
.nav-logout { color: var(--muted); }
.nav-logout:hover { background: var(--danger-bg); color: var(--danger); }
.sidebar-copy { padding: 18px 8px 0; font-size: 12px; color: var(--muted); }
.sidebar-credit { display: block; margin-top: 4px; font-size: 11px; color: var(--muted); opacity: 0.85; }
.sidebar-credit a { color: var(--brand); font-weight: 700; }
.sidebar-credit a:hover { text-decoration: underline; }

.main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding: 4px 8px 18px;
}
.topbar-user { display: flex; align-items: center; gap: 12px; }
.topbar-user .user-name { font-weight: 700; color: var(--ink); }
.user-avatar {
  width: 44px; height: 44px;
  border-radius: 14px;
  background: var(--brand-tint);
  color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  overflow: hidden;
}
.user-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Kleiner runder Avatar in der Benutzer-Tabelle. */
.table-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--brand-tint);
  color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
  overflow: hidden;
}
.table-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Profilbild auf der Profil-Seite (in der App hochgeladen). */
.profile-avatar {
  width: 96px; height: 96px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--brand-tint);
  color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  font-size: 34px; font-weight: 800;
  overflow: hidden;
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }

.content { flex: 1 1 auto; }

/* ------------------------------------------------------- Page header/toolbar */
.page-head { padding: 0 4px 20px; }
.page-head h1 { font-size: 30px; margin: 0 0 4px; letter-spacing: -0.5px; }
.page-head p { margin: 0; color: var(--muted); font-size: 15px; }

.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.toolbar .spacer { flex: 1 1 auto; }

/* ----------------------------------------------------------------- Cards */
.card, .superBox, #loginCard, #profileCard, #pwResetCard, .defaultCardStyle {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-soft);
  padding: 24px;
}
.card-title, .superBox .headline {
  font-size: 18px; font-weight: 700; margin: 0 0 16px;
}
.superBox .smallHeadline { font-size: 14px; font-weight: 700; margin-bottom: 14px; }

/* Stat-Cards */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}
.stat-card {
  border-radius: var(--r-lg);
  padding: 22px 24px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
}
.stat-card .num { font-size: 32px; font-weight: 700; line-height: 1.1; }
.stat-card .lbl { font-size: 14px; opacity: 0.92; margin-top: 2px; }
.stat-card .ic {
  width: 52px; height: 52px; border-radius: 16px;
  background: rgba(255,255,255,0.22);
  display: flex; align-items: center; justify-content: center;
}
.stat-card .ic svg { width: 26px; height: 26px; color: #fff; }
.stat-brand   { background: linear-gradient(135deg, #a4123f, #c42a58); }
.stat-amber   { background: linear-gradient(135deg, #e0a100, #eebc3c); }
.stat-teal    { background: linear-gradient(135deg, #0f9d6e, #2bbd8a); }
.stat-ink     { background: linear-gradient(135deg, #2a2d3a, #444a5e); }

/* ----------------------------------------------------------------- Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
}
.badge svg { width: 14px; height: 14px; }
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-warn    { background: var(--warn-bg);    color: var(--warn); }
.badge-danger  { background: var(--danger-bg);  color: var(--danger); }
.badge-info    { background: var(--info-bg);    color: var(--info); }
.badge-brand   { background: var(--brand-tint); color: var(--brand); }
.badge-neutral { background: var(--surface-2);  color: var(--ink-soft); }

/* ----------------------------------------------------------------- Buttons */
#schwarzmann .uk-button, .btn {
  border-radius: var(--r-pill);
  background: var(--brand);
  color: #fff;
  border: none;
  padding: 11px 22px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  text-transform: none;
  cursor: pointer;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s, transform 0.1s;
  line-height: 1.2;
}
#schwarzmann .uk-button svg, .btn svg { width: 18px; height: 18px; }
#schwarzmann .uk-button:hover, .btn:hover { background: var(--brand-strong); color: #fff; }
#schwarzmann .uk-button:active, .btn:active { transform: scale(0.98); }
.btn-ghost, #schwarzmann .uk-button.btn-ghost {
  background: var(--surface); color: var(--brand);
  border: 1.5px solid var(--border); box-shadow: var(--shadow-soft);
}
.btn-ghost:hover, #schwarzmann .uk-button.btn-ghost:hover { background: var(--brand-tint); color: var(--brand); }
.btn-danger, #schwarzmann .uk-button.btn-danger { background: var(--danger); }
.btn-danger:hover, #schwarzmann .uk-button.btn-danger:hover { background: #b8323c; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 12px;
  border: none; background: var(--surface-2); color: var(--ink-soft);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.icon-btn:hover { background: var(--brand-tint); color: var(--brand); }
.icon-btn svg { width: 18px; height: 18px; }

/* ----------------------------------------------------------------- Forms */
#schwarzmann .uk-input,
#schwarzmann .uk-select,
#schwarzmann .uk-textarea,
.field {
  border-radius: var(--r-sm);
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  padding: 10px 14px;
  height: auto;
  min-height: 44px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
#schwarzmann .uk-textarea { min-height: 90px; }
#schwarzmann .uk-input:focus,
#schwarzmann .uk-select:focus,
#schwarzmann .uk-textarea:focus,
.field:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-tint);
  outline: none;
}
.uk-form-label, .field-label {
  font-size: 12.5px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 6px; display: block;
}
.highlight .uk-form-label, .uk-form-label.highlight { color: var(--brand); }

#schwarzmann .uk-checkbox {
  width: 20px; height: 20px; border-radius: 6px;
  border: 1.5px solid var(--border); background-color: var(--surface);
}
#schwarzmann .uk-checkbox:checked { background-color: var(--brand); border-color: var(--brand); }

#schwarzmann .uk-search { width: 100%; }
#schwarzmann .uk-search .uk-search-input { border-width: 0 0 1px 0; }

/* ----------------------------------------------------------------- Tabs */
.mainTabs, #schwarzmann .uk-tab {
  display: flex; gap: 8px; border: none; margin: 0 0 18px; padding: 0; list-style: none;
}
.mainTabs::before, #schwarzmann .uk-tab::before { display: none; }
.mainTabs li, #schwarzmann .uk-tab > * { padding: 0; }
.mainTabs a, #schwarzmann .uk-tab > * > a {
  display: block; padding: 9px 20px; border-radius: var(--r-pill);
  color: var(--ink-soft); font-size: 14px; font-weight: 700; border: none;
  text-transform: none;
}
.mainTabs a:hover, #schwarzmann .uk-tab > * > a:hover { background: var(--surface-2); color: var(--ink); }
#schwarzmann .uk-tab > .uk-active > a,
.mainTabs li.uk-active a { background: var(--brand); color: #fff; border: none; }

/* Ansicht-Umschalter (Segmente) — bewusst ruhiger als die Typ-Tabs */
.viewTabs {
  display: inline-flex; gap: 2px; margin: 0 0 18px; padding: 3px; list-style: none;
  background: var(--surface-2); border: 1.5px solid var(--border); border-radius: var(--r-pill);
}
.viewTabs a {
  display: block; padding: 6px 16px; border-radius: var(--r-pill);
  color: var(--ink-soft); font-size: 13.5px; font-weight: 700;
}
.viewTabs a:hover { color: var(--ink); }
.viewTabs li.uk-active a { background: var(--surface); color: var(--brand); box-shadow: var(--shadow-soft); }

/* ----------------------------------------------------------------- Tables */
.table-card {
  background: var(--surface); border-radius: var(--r-lg);
  box-shadow: var(--shadow-soft); padding: 8px 8px 4px; overflow: hidden;
}
#schwarzmann .uk-table {
  margin: 0; border-collapse: separate; border-spacing: 0 2px;
}
#schwarzmann .uk-table th {
  color: var(--muted); font-size: 12.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.4px;
  border: none; padding: 16px 14px; background: transparent;
}
#schwarzmann .uk-table td {
  border: none; padding: 16px 14px; color: var(--ink); font-size: 14.5px;
  border-top: 1px solid var(--border); vertical-align: middle;
}
#schwarzmann .uk-table tr:first-child td { border-top: none; }
#schwarzmann .uk-table-striped > tr:nth-of-type(odd),
#schwarzmann .uk-table-striped tbody tr:nth-of-type(odd) { background: transparent; }

/* Zeilen sind neutral (Status kommt über Badges, nicht über Zeilenfarbe) */
#tableProjects tr.status1, #tableProjects tr.status2, #tableProjects tr.status3,
#schwarzmann table tr.redRow, #schwarzmann table tr.blackRow { background: transparent; }
#tableProjects tr.status1, #tableProjects tr.status1 a,
#tableProjects tr.status3, #tableProjects tr.status3 a,
#schwarzmann table tr.redRow, #schwarzmann table tr.redRow a,
#schwarzmann table tr.blackRow, #schwarzmann table tr.blackRow a { color: var(--ink); }

#schwarzmann .uk-table-hover tbody tr:hover,
#schwarzmann .uk-table-hover > tr:hover { background: var(--surface-2); cursor: pointer; }
#schwarzmann .uk-table-hover tbody tr:hover a { color: var(--brand); }

.stickyTableHeader th, #schwarzmann .stickyTableHeader th {
  position: sticky; top: 0; z-index: 1; background: var(--surface);
}
#schwarzmann .uk-table-small td { padding: 10px 14px; }

.row-actions { display: inline-flex; gap: 6px; }
table a, table a:hover, .redText, .uk-icon.redText { color: var(--brand); }

/* ------------------------------------------------------- Page container */
#pageContainer { padding: 0; }
#pageContainer.borderless { padding: 0; }
.sidePadding { padding: 0; }
.floatPositionRight { position: static; }

/* ------------------------------------------------------- Auth / centered */
#profileCard, #pwResetCard, .defaultCardStyle {
  width: 100%; max-width: 400px; margin: 0 auto;
}
.auth-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 40px 24px;
  background:
    radial-gradient(60% 55% at 15% 0%, var(--brand-tint) 0%, transparent 60%),
    radial-gradient(55% 50% at 100% 100%, var(--brand-tint) 0%, transparent 55%),
    var(--bg);
}

.login-panel {
  width: 100%; max-width: 460px; margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  padding: 48px 48px 44px;
}

.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-logo img { height: 56px; width: auto; }

.login-title {
  font-size: 26px; font-weight: 700; line-height: 1.15;
  margin: 0 0 6px; text-align: center; letter-spacing: -0.4px;
}
.login-sub {
  font-size: 15px; color: var(--ink-soft);
  margin: 0 0 32px; text-align: center;
}

.login-error {
  display: flex; align-items: center; gap: 10px;
  background: var(--danger-bg); color: var(--danger);
  border-radius: var(--r-sm); padding: 12px 14px;
  font-size: 14px; font-weight: 500; margin-bottom: 22px;
}
.login-error svg { width: 18px; height: 18px; flex-shrink: 0; }

.login-form .field-group { margin-bottom: 20px; }
.login-form .uk-input { width: 100%; min-height: 50px; font-size: 15px; }

.login-submit {
  width: 100%; justify-content: center;
  min-height: 52px; margin-top: 8px; font-size: 15px;
}
.login-submit svg {
  transition: transform 0.18s ease;
}
.login-submit:hover svg { transform: translateX(3px); }

/* ------------------------------------------------------- Detail helpers */
.superBox { margin-bottom: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 1100px) { .grid-2 { grid-template-columns: 1fr; } }

.greyHr { margin: 18px 0; height: 1px; background: var(--border); }
.singleDefect, .singleWorktime { display: flex; align-items: center; gap: 8px; padding: 6px 0; }
.singleDefect .uk-icon, .singleWorktime .uk-icon { color: var(--brand); }

.singleProjectImgContainer, .singleBlogAttachmentContainer {
  display: flex; flex-wrap: wrap; gap: 12px;
}
.singleProjectImg, .singleBlogAttachment, .addImgBox, .addAttachmentBox {
  position: relative; border-radius: var(--r-md); overflow: hidden;
}
.singleProjectImg img, .singleBlogAttachment img {
  height: 104px; width: 104px; object-fit: cover; display: block;
}
.singleProjectImgDesc, .singleBlogAttachmentDesc {
  position: absolute; bottom: 4px; left: 6px; right: 6px;
  font-size: 10px; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.6);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.singleProjectImg .imgDelIcon {
  position: absolute; top: 6px; right: 6px; height: 24px; width: 24px;
  background: var(--brand); border-radius: 100%; color: #fff;
  padding: 4px; z-index: 11; box-sizing: border-box; cursor: pointer;
}
.addImgBox, .addAttachmentBox {
  height: 104px; width: 104px; display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px dashed var(--border); cursor: pointer; color: var(--muted); background: var(--surface-2);
}
.addImgBox div, .addAttachmentBox div { font-size: 32px; font-weight: 300; }

/* ------------------------------------------------------- Misc / overrides */
.modalInnerHtml { background: var(--surface); border-radius: var(--r-lg); }
.pageHeader { display: flex; justify-content: space-between; align-items: center; }
.pageHeader h2 { margin: 0; }
.buttonContainer { text-align: center; padding-bottom: 12px; }

#searchArt {
  width: 240px; background: var(--surface); border-radius: var(--r-pill);
  border: 1.5px solid var(--border); padding: 9px 16px; font-weight: normal;
}
.editOrderAmount { position: relative; }
.editOrderAmount .amount { padding-left: 20px; }
.editOrderAmount .uk-icon { position: absolute; top: 12px; left: 4px; color: var(--brand); }

/* flatpickr accent */
.flatpickr-day.selected, .flatpickr-day.startRange, .flatpickr-day.endRange,
.flatpickr-day.selected:hover, .flatpickr-day.selected:focus {
  background: var(--brand) !important; border-color: var(--brand) !important; color: #fff;
}

[data-projecttype="1"] .hideForType1,
[data-projecttype="2"] .hideForType2 { display: none; }

/* Preloader */
.preloader { position: fixed; inset: 0; display: none; }

/* ------------------------------------------------------- Loading / Skeleton */
.skeleton {
  display: block;
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--border) 37%, var(--surface-2) 63%);
  background-size: 400% 100%;
  animation: skeleton-shimmer 1.3s ease infinite;
  border-radius: 6px;
}
@keyframes skeleton-shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.skel-cell { height: 12px; margin: 4px 0; }

/* Sanftes Einblenden des Seiteninhalts bei jeder Navigation */
.content { animation: content-in 0.24s ease; }
@keyframes content-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------- Topbar-Suche (⌘K) */
.topbar-search {
  margin-right: auto;
  display: inline-flex; align-items: center; gap: 10px;
  min-width: 240px; max-width: 340px;
  padding: 9px 12px 9px 14px;
  border: 1.5px solid var(--border); border-radius: var(--r-pill);
  background: var(--surface); color: var(--muted);
  font: inherit; font-size: 14px; cursor: pointer;
  transition: border-color 0.15s, color 0.15s, box-shadow 0.15s;
}
.topbar-search:hover { border-color: var(--brand); color: var(--ink-soft); box-shadow: 0 0 0 3px var(--brand-tint); }
.topbar-search svg { width: 18px; height: 18px; flex-shrink: 0; }
.topbar-search span { flex: 1 1 auto; text-align: left; }
.topbar-search kbd, .cmdk kbd {
  font-family: inherit; font-size: 12px; font-weight: 700; color: var(--ink-soft);
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px;
  padding: 2px 7px; line-height: 1.4;
}

/* ------------------------------------------------------- Command-Palette */
.cmdk { position: fixed; inset: 0; z-index: 60; display: flex; justify-content: center; align-items: flex-start; }
.cmdk[hidden] { display: none; }
.cmdk-backdrop { position: absolute; inset: 0; background: rgba(15, 17, 24, 0.45); backdrop-filter: blur(2px); animation: cmdk-fade 0.12s ease; }
.cmdk-panel {
  position: relative; margin: 12vh 20px 20px; width: 100%; max-width: 640px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--shadow-card);
  overflow: hidden; animation: cmdk-pop 0.14s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes cmdk-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes cmdk-pop { from { opacity: 0; transform: translateY(-8px) scale(0.985); } to { opacity: 1; transform: none; } }

.cmdk-input-row { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.cmdk-input-row > svg { width: 20px; height: 20px; color: var(--muted); flex-shrink: 0; }
#cmdkInput { flex: 1 1 auto; min-width: 0; border: none; background: none; outline: none; font: inherit; font-size: 16px; color: var(--ink); }
#cmdkInput::placeholder { color: var(--muted); }

.cmdk-results { max-height: 60vh; overflow-y: auto; padding: 8px; }
.cmdk-group { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); padding: 12px 12px 6px; }
.cmdk-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-sm); color: var(--ink); text-decoration: none; cursor: pointer; }
.cmdk-row.active { background: var(--brand-tint); }
.cmdk-row-ic { width: 34px; height: 34px; border-radius: 10px; background: var(--surface-2); color: var(--ink-soft); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cmdk-row.active .cmdk-row-ic { background: var(--brand); color: #fff; }
.cmdk-row-ic svg { width: 18px; height: 18px; }
.cmdk-row-text { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.cmdk-row-title { font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmdk-row-sub { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmdk-row-enter { width: 16px; height: 16px; color: var(--brand); opacity: 0; flex-shrink: 0; }
.cmdk-row.active .cmdk-row-enter { opacity: 1; }
.cmdk-empty { padding: 34px 16px; text-align: center; color: var(--muted); font-size: 14px; }
.cmdk-skel { pointer-events: none; }
.cmdk-skel .skeleton-ic { width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0; }
.cmdk-skel .cmdk-row-text { gap: 6px; }
.cmdk-skel .skeleton-line { height: 11px; }

/* ----------------------------------------------------------------- Dark Mode */
:root[data-theme="dark"] {
  --brand: #e0567f;
  --brand-strong: #ce4870;
  --brand-tint: rgba(224, 86, 127, 0.16);

  --bg: #15171e;
  --surface: #1e2029;
  --surface-2: #262a35;
  --ink: #eceef4;
  --ink-soft: #b0b6c3;
  --muted: #7b8291;
  --border: #2d313d;

  --success: #34c99a; --success-bg: rgba(18, 145, 106, 0.18);
  --warn: #e6bc57;    --warn-bg: rgba(181, 130, 10, 0.20);
  --danger: #f0757e;  --danger-bg: rgba(214, 69, 80, 0.18);
  --info: #7ba0ef;    --info-bg: rgba(63, 111, 214, 0.18);

  --shadow-card: 0 14px 34px -18px rgba(0, 0, 0, 0.65);
  --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.35), 0 12px 26px -18px rgba(0, 0, 0, 0.55);
}

/* Stat-Cards etwas kräftiger im Dark Mode */
:root[data-theme="dark"] .stat-card { box-shadow: 0 14px 34px -20px rgba(0, 0, 0, 0.8); }

/* Theme-Toggle */
.theme-toggle { background: var(--surface-2); color: var(--ink-soft); }
.theme-toggle:hover { background: var(--brand-tint); color: var(--brand); }

/* Detail-Seite (Auftrag) */
.back-link {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--muted); font-weight: 600; font-size: 14px; margin-bottom: 10px;
}
.back-link:hover { color: var(--brand); }
.back-link svg { width: 16px; height: 16px; }
.page-head-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.page-head-row h1 { margin: 0; }
.detail-actions {
  display: flex; gap: 12px; margin-top: 22px; padding: 4px;
}

/* UIkit-Modals ans Design anpassen */
#schwarzmann .uk-modal-dialog {
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
#schwarzmann .uk-modal-title { font-size: 20px; font-weight: 700; color: var(--ink); }
