html.theme-dark,
body.theme-dark,
body.theme-dark .app-shell,
body.theme-dark .workspace {
  background: #071522 !important;
  color: #edf6ff !important;
}

body.theme-dark .topbar {
  background: #071522 !important;
  border-bottom-color: #244b70 !important;
  box-shadow: 0 1px 0 rgba(148, 183, 225, 0.08) !important;
}

body.theme-dark .page-content {
  background: #071522 !important;
  color: #edf6ff !important;
}

body.theme-dark .page-heading h1,
body.theme-dark .page-heading h2,
body.theme-dark .page-heading h3,
body.theme-dark .eyebrow {
  color: #edf6ff !important;
}

body.theme-dark .page-heading p,
body.theme-dark .project-search-meta,
body.theme-dark .project-search-quick > span {
  color: #9fb5cc !important;
}

body.theme-dark .table-panel,
body.theme-dark .project-search-toolbar,
body.theme-dark .data-table-wrap {
  background: #10283d !important;
  border-color: #244b70 !important;
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.24) !important;
}

body.theme-dark .table-toolbar {
  background: #10283d !important;
  border-bottom-color: #244b70 !important;
}

body.theme-dark .project-search-box,
body.theme-dark .global-search {
  color: #dbeafe !important;
  background: #071827 !important;
  border-color: #244b70 !important;
}

body.theme-dark .project-search-box input,
body.theme-dark .global-search input {
  color: #edf6ff !important;
  background: transparent !important;
}

body.theme-dark .project-search-box input::placeholder,
body.theme-dark .global-search input::placeholder {
  color: #7f96b0 !important;
}

body.theme-dark .theme-toggle-button,
body.theme-dark .icon-button,
body.theme-dark .user-summary,
body.theme-dark .secondary-button,
body.theme-dark .project-search-meta button,
body.theme-dark .project-search-quick button {
  color: #dbeafe !important;
  background: #10243a !important;
  border-color: #244b70 !important;
}

/* The profile trigger is navigation, not a second dark panel in the topbar. */
body.theme-dark .user-summary {
  background: transparent !important;
  border-left-color: transparent !important;
  padding-left: 0 !important;
}

body.theme-dark .theme-toggle-button:hover,
body.theme-dark .icon-button:hover,
body.theme-dark .secondary-button:hover,
body.theme-dark .project-search-meta button:hover,
body.theme-dark .project-search-quick button:hover,
body.theme-dark .project-search-quick button.is-active {
  color: #ffffff !important;
  background: #143657 !important;
  border-color: #5a9cff !important;
}

body.theme-dark .data-table {
  background: #10283d !important;
  color: #dbeafe !important;
}

body.theme-dark .data-table thead th,
body.theme-dark .data-table th {
  color: #9fb5cc !important;
  background: #0b1e31 !important;
  border-color: #244b70 !important;
}

body.theme-dark .data-table tbody tr,
body.theme-dark .data-table tbody td,
body.theme-dark .data-table td {
  color: #dbeafe !important;
  background: #10283d !important;
  border-color: #244b70 !important;
}

body.theme-dark .data-table td strong,
body.theme-dark .data-table strong {
  color: #edf6ff !important;
}

body.theme-dark .data-table td small,
body.theme-dark .data-table small {
  color: #9fb5cc !important;
}

body.theme-dark .data-table tr:hover td {
  background: #143657 !important;
}

body.theme-dark .project-number,
body.theme-dark .data-table a {
  color: #72abff !important;
}

body.theme-dark .status-badge,
body.theme-dark .status-pill {
  border: 1px solid rgba(148, 183, 225, 0.18) !important;
}

body.theme-dark .project-filter-popover,
body.theme-dark .global-search-results {
  color: #dbeafe !important;
  background: #10283d !important;
  border-color: #244b70 !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42) !important;
}

body.theme-dark .project-filter-popover input,
body.theme-dark .project-filter-popover select,
body.theme-dark .global-search-results button {
  color: #edf6ff !important;
  background: #071827 !important;
  border-color: #244b70 !important;
}

body.theme-dark .global-search-results button:hover {
  background: #143657 !important;
}

body.theme-dark .global-search-results strong {
  color: #edf6ff !important;
}

body.theme-dark .global-search-results em,
body.theme-dark .global-search-results small {
  color: #9fb5cc !important;
}

body.theme-dark .dashboard-rebuild,
body.theme-dark .placeholder-page {
  color: #9fb5cc !important;
  background: #071522 !important;
}

/* Auftragsübersicht: horizontale Scrollbar entfernen, Tabelle in die Karte einpassen. */
.data-table-wrap:has(.projects-table) {
  max-width: 100% !important;
  overflow-x: hidden !important;
  scrollbar-width: none !important;
}

.data-table-wrap:has(.projects-table)::-webkit-scrollbar {
  display: none !important;
}

.projects-table {
  width: 100% !important;
  min-width: 0 !important;
  table-layout: fixed;
}

.projects-table th,
.projects-table td {
  min-width: 0;
}

.projects-table td {
  overflow: hidden;
  text-overflow: ellipsis;
}
