/* ==========================================================================
   MALERPLUS PREMIUM KPI STANDARD — STUNDENLISTE / MEINE STUNDEN (#mwhKpiRow)
   Vorgang: MP-20261004-006
   Marcel: „Wie in diesem Modul müssen wir auch noch meinen neuen Style
   In die KPI bringen Das ist ja hier noch Restüberbleibsel Dass das auch so
   immer im neuen Style ist weißt du" (media_1791095668075.png)
   ========================================================================== */

/* ── Äußere Karte (Panel) im einheitlichen MalerPlus Premium Style (MP-20261004-019) ── */
html:not(#mpkk):not(#mpkk-2) body #view-meine-stunden #mwhKpiPanel,
#view-meine-stunden #mwhKpiPanel {
  display: block !important;
  border-radius: 20px !important;
  background: var(--mp-card, #ffffff) !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04) !important;
  padding: 16px !important;
  margin: 0 0 16px 0 !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

#view-meine-stunden #mwhKpiPanelHead {
  display: none !important;
}

#view-meine-stunden #mwhKpiRow {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px !important;
  margin: 0 !important;
  padding: 0 !important;
}

@media (max-width: 767px) {
  html:not(#mpkk):not(#mpkk-2) body #view-meine-stunden #mwhKpiPanel,
  #view-meine-stunden #mwhKpiPanel {
    border-radius: 16px !important;
    padding: 10px !important;
    margin: 0 0 12px 0 !important;
  }
  #view-meine-stunden #mwhKpiRow {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}

/* ── Kachel-Karte ────────────────────────────────────────── */
html:not(#mpkk):not(#mpkk-2) body #view-meine-stunden #mwhKpiRow .dash-kpi,
#view-meine-stunden #mwhKpiRow .dash-kpi {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 12px 14px !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
  min-height: auto !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease !important;
  cursor: default !important;
}

html:not(#mpkk):not(#mpkk-2) body #view-meine-stunden #mwhKpiRow .dash-kpi:hover,
#view-meine-stunden #mwhKpiRow .dash-kpi:hover {
  border-color: rgba(43, 176, 255, 0.4) !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06) !important;
  transform: translateY(-1px) !important;
}

/* Primär-Kachel (Diese Woche) mit feiner MalerPlus-Lichtkante */
html:not(#mpkk):not(#mpkk-2) body #view-meine-stunden #mwhKpiRow .dash-kpi.is-primaer,
#view-meine-stunden #mwhKpiRow .dash-kpi.is-primaer {
  border-color: rgba(43, 176, 255, 0.28) !important;
  box-shadow: 0 2px 6px rgba(43, 176, 255, 0.08) !important;
}

/* ── KPI Iconbox ─────────────────────────────────────────── */
#view-meine-stunden #mwhKpiRow .mp-kpi-icon {
  flex: 0 0 38px !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 11px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

#view-meine-stunden #mwhKpiRow .mp-kpi-icon svg {
  width: 19px !important;
  height: 19px !important;
}

#view-meine-stunden #mwhKpiRow .mp-kpi-icon--amber {
  background: rgba(245, 158, 11, 0.12) !important;
  color: #d97706 !important;
}

#view-meine-stunden #mwhKpiRow .mp-kpi-icon--blue {
  background: rgba(43, 176, 255, 0.12) !important;
  color: #0284c7 !important;
}

#view-meine-stunden #mwhKpiRow .mp-kpi-icon--indigo {
  background: rgba(99, 102, 241, 0.12) !important;
  color: #4f46e5 !important;
}

#view-meine-stunden #mwhKpiRow .mp-kpi-icon--green {
  background: rgba(16, 185, 129, 0.12) !important;
  color: #059669 !important;
}

/* ── KPI Content ─────────────────────────────────────────── */
#view-meine-stunden #mwhKpiRow .mp-kpi-content {
  min-width: 0 !important;
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}

#view-meine-stunden #mwhKpiRow .dash-kpi-label {
  display: block !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: .06em !important;
  text-transform: uppercase !important;
  color: #64748b !important;
  line-height: 1.25 !important;
  margin: 0 0 2px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  text-align: left !important;
}

#view-meine-stunden #mwhKpiRow .dash-kpi-value {
  display: block !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  font-variant-numeric: tabular-nums !important;
  color: #0f172a !important;
  line-height: 1.15 !important;
  margin: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  text-align: left !important;
}

#view-meine-stunden #mwhKpiRow .dash-kpi-meta {
  display: block !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  color: #94a3b8 !important;
  margin-top: 1px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  text-align: left !important;
}

/* ── Dark Mode ───────────────────────────────────────────── */
html.dark body #view-meine-stunden #mwhKpiRow .dash-kpi,
[data-theme="dark"] body #view-meine-stunden #mwhKpiRow .dash-kpi {
  background: rgba(30, 41, 59, 0.75) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

html.dark body #view-meine-stunden #mwhKpiRow .dash-kpi:hover,
[data-theme="dark"] body #view-meine-stunden #mwhKpiRow .dash-kpi:hover {
  border-color: rgba(43, 176, 255, 0.45) !important;
  background: rgba(30, 41, 59, 0.95) !important;
}

html.dark body #view-meine-stunden #mwhKpiRow .dash-kpi.is-primaer,
[data-theme="dark"] body #view-meine-stunden #mwhKpiRow .dash-kpi.is-primaer {
  border-color: rgba(43, 176, 255, 0.35) !important;
}

html.dark body #view-meine-stunden #mwhKpiRow .dash-kpi-value,
[data-theme="dark"] body #view-meine-stunden #mwhKpiRow .dash-kpi-value {
  color: #f8fafc !important;
}

html.dark body #view-meine-stunden #mwhKpiRow .dash-kpi-label,
[data-theme="dark"] body #view-meine-stunden #mwhKpiRow .dash-kpi-label {
  color: #94a3b8 !important;
}

html.dark body #view-meine-stunden #mwhKpiRow .dash-kpi-meta,
[data-theme="dark"] body #view-meine-stunden #mwhKpiRow .dash-kpi-meta {
  color: #64748b !important;
}

html.dark body #view-meine-stunden #mwhKpiRow .mp-kpi-icon--amber,
[data-theme="dark"] body #view-meine-stunden #mwhKpiRow .mp-kpi-icon--amber {
  background: rgba(245, 158, 11, 0.18) !important;
  color: #fbbf24 !important;
}

html.dark body #view-meine-stunden #mwhKpiRow .mp-kpi-icon--blue,
[data-theme="dark"] body #view-meine-stunden #mwhKpiRow .mp-kpi-icon--blue {
  background: rgba(43, 176, 255, 0.18) !important;
  color: #38bdf8 !important;
}

html.dark body #view-meine-stunden #mwhKpiRow .mp-kpi-icon--indigo,
[data-theme="dark"] body #view-meine-stunden #mwhKpiRow .mp-kpi-icon--indigo {
  background: rgba(99, 102, 241, 0.18) !important;
  color: #818cf8 !important;
}

html.dark body #view-meine-stunden #mwhKpiRow .mp-kpi-icon--green,
[data-theme="dark"] body #view-meine-stunden #mwhKpiRow .mp-kpi-icon--green {
  background: rgba(16, 185, 129, 0.18) !important;
  color: #34d399 !important;
}

html.dark body #view-meine-stunden #mwhKpiPanel,
[data-theme="dark"] body #view-meine-stunden #mwhKpiPanel {
  background: #0f1722 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

