/* ─────────────────────────────────────────────────────────────────────────
 * Mitarbeiter-Redesign · Master-Detail-Layout
 * Alle Klassen mit ma-Präfix, um Kollisionen mit Bestand zu vermeiden.
 * Farbpalette nutzt bestehende CSS-Variablen wo möglich.
 * ───────────────────────────────────────────────────────────────────────── */

/* Page-Default überschreiben: full-bleed, kein Page-Padding, eigene Höhe.
 * Header ist 52px hoch (sticky), wir füllen den Rest. */
#page-zeit-mitarbeiter {
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
  width: 100% !important;
  height: calc(100vh - 52px);
  overflow: hidden;
}
#page-zeit-mitarbeiter.active { display: block; }

.ma-app {
  display: flex;
  height: 100%;
  min-height: 0;
  background: #F4F6FA;
  border-top: 0.5px solid #e0dfd7;
}

/* ── Linke Spalte: Liste ─────────────────────────────────────────────── */
.ma-list {
  width: 340px;
  background: #fff;
  border-right: 0.5px solid #e0dfd7;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}
.ma-list-hd {
  padding: 14px 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-bottom: 0.5px solid #f0efe8;
}
.ma-list-title-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ma-list-title { font-size: 16px; font-weight: 600; letter-spacing: -0.2px; color: #1a1a18; }
.ma-list-count { font-size: 11px; color: #aaa; margin-left: 4px; }
.ma-btn-add {
  display: inline-flex; align-items: center; gap: 5px;
  height: 30px; padding: 0 11px;
  background: var(--primary, #3F96FE); color: #fff;
  border: none; border-radius: 7px;
  font-size: 12.5px; font-weight: 500; cursor: pointer;
}
.ma-btn-add:hover { background: #0A67EA; }
.ma-list-search { position: relative; }
.ma-list-search input {
  width: 100%; height: 32px;
  padding: 0 10px 0 30px;
  font-size: 13px;
  background: #fafaf8;
  border: 0.5px solid #f0efe8;
  border-radius: 8px;
  outline: none;
}
.ma-list-search input:focus { border-color: var(--primary, #3F96FE); }
.ma-list-search-ico {
  position: absolute; left: 9px; top: 50%; transform: translateY(-50%);
  width: 14px; height: 14px;
  pointer-events: none;
  color: #aaa;
}

.ma-chip-row { display: flex; flex-wrap: wrap; gap: 5px; }
.ma-chip {
  height: 26px; padding: 0 9px;
  border: 0.5px solid #e0dfd7;
  border-radius: 7px;
  background: #fff; color: #666;
  font-size: 11.5px;
  display: inline-flex; align-items: center; gap: 4px;
  white-space: nowrap;
  cursor: pointer;
}
.ma-chip:hover { background: #f5f4f0; }
.ma-chip.active { background: #EBF4FF; border-color: var(--primary, #3F96FE); color: var(--primary, #3F96FE); font-weight: 500; }
.ma-chip-cnt {
  font-size: 10px; background: #f5f4f0; padding: 1px 5px; border-radius: 8px;
  color: #888;
}
.ma-chip.active .ma-chip-cnt { background: #fff; color: var(--primary, #3F96FE); }

.ma-list-scroll { flex: 1; overflow-y: auto; scrollbar-gutter: stable; }
.ma-list-group-hd {
  padding: 9px 14px 5px;
  font-size: 10px; font-weight: 500;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #fafaf8;
  border-top: 0.5px solid #f0efe8;
  border-bottom: 0.5px solid #f0efe8;
  position: sticky; top: 0; z-index: 1;
}
.ma-list-item {
  padding: 11px 14px;
  border-bottom: 0.5px solid #f0efe8;
  border-left: 3px solid transparent;
  display: flex; gap: 10px; align-items: center;
  cursor: pointer;
  transition: background .1s;
}
.ma-list-item:hover { background: #fafaf8; }
.ma-list-item.selected { background: #EBF4FF; border-left-color: var(--primary, #3F96FE); }
.ma-list-item.inaktiv { opacity: 0.55; }

.ma-av {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: #EBF4FF;
  color: var(--primary, #3F96FE);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 500;
  flex-shrink: 0;
  position: relative;
}
.ma-av-status {
  position: absolute; bottom: -1px; right: -1px;
  width: 11px; height: 11px;
  border-radius: 50%;
  border: 2px solid #fff;
}
.ma-li-body { flex: 1; min-width: 0; }
.ma-li-row1 { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ma-li-name { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ma-li-pnr { font-size: 10.5px; color: #aaa; font-family: ui-monospace, monospace; flex-shrink: 0; }
.ma-li-row2 { font-size: 11px; color: #888; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.ma-empty { padding: 40px 20px; text-align: center; color: #aaa; font-size: 13px; }

/* ── Rechte Spalte: Detail ───────────────────────────────────────────── */
.ma-detail {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: #F4F6FA;
}
.ma-detail-empty {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  color: #aaa; font-size: 14px;
}

/* PR3 23.05.2026: Loading-State während MA-Wechsel — alte Daten bleiben
   sichtbar, nur leicht ausgeblendet, kein harter Sprung */
.ma-detail.ma-loading {
  position: relative;
}
.ma-detail.ma-loading .ma-dt-body,
.ma-detail.ma-loading .ma-dt-head {
  opacity: 0.5;
  transition: opacity 0.15s ease;
  pointer-events: none;
}
.ma-detail .ma-dt-body,
.ma-detail .ma-dt-head {
  transition: opacity 0.15s ease;
}

.ma-dt-head {
  background: #fff;
  border-bottom: 0.5px solid #e0dfd7;
  padding: 18px 24px 0;
}
.ma-dt-top { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 14px; }
.ma-av-lg {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: #EBF4FF;
  color: var(--primary, #3F96FE);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 500;
  flex-shrink: 0;
}
.ma-dt-name { font-size: 22px; font-weight: 600; letter-spacing: -0.3px; line-height: 1.15; color: #1a1a18; }
.ma-dt-sub { font-size: 12.5px; color: #888; margin-top: 3px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ma-dt-sub .ma-dot { color: #ccc; }

.ma-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 500;
}
.ma-pill .ma-dot-i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: 0.85; }
.ma-pill-pulse .ma-dot-i { animation: ma-pulse 1.6s ease-in-out infinite; }
@keyframes ma-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* ── Tabs ───────────────────────────────────────────────────────────── */
.ma-tabs { display: flex; gap: 2px; margin-top: 6px; }
.ma-tab {
  padding: 10px 14px 11px;
  font-size: 13px;
  color: #888;
  font-weight: 500;
  border: none;
  background: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  display: inline-flex; align-items: center; gap: 6px;
}
.ma-tab:hover { color: #1a1a18; }
.ma-tab.active { color: var(--primary, #3F96FE); border-bottom-color: var(--primary, #3F96FE); }
.ma-tab-badge {
  font-size: 10px; background: #f5f4f0; color: #888;
  padding: 1px 6px; border-radius: 8px; font-weight: 500;
}
.ma-tab.active .ma-tab-badge { background: #EBF4FF; color: var(--primary, #3F96FE); }

.ma-dt-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 24px 60px;
  /* PR3-Hotfix 23.05.2026: reserviert Platz für Scrollbar auch wenn sie nicht
     sichtbar ist → verhindert Layout-Shift beim Tab/Filter-Wechsel mit
     unterschiedlicher Inhaltshöhe */
  scrollbar-gutter: stable;
}

/* ── Cards & KPIs ────────────────────────────────────────────────────── */
.ma-card {
  background: #fff;
  border: 0.5px solid #e0dfd7;
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 12px;
}
.ma-card-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; gap: 10px; }
.ma-card-tt { font-size: 13px; font-weight: 600; letter-spacing: -0.1px; }
.ma-card-lbl { font-size: 10.5px; font-weight: 500; color: #aaa; text-transform: uppercase; letter-spacing: 0.5px; }

.ma-kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 12px; }
.ma-kpi-row.three { grid-template-columns: repeat(3, 1fr); }
.ma-kpi { background: #fff; border: 0.5px solid #e0dfd7; border-radius: 10px; padding: 13px 15px; }
.ma-kpi-l { font-size: 10.5px; font-weight: 500; color: #aaa; text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 4px; }
.ma-kpi-v { font-size: 22px; font-weight: 500; letter-spacing: -0.3px; font-variant-numeric: tabular-nums; line-height: 1.1; }
.ma-kpi-v-sub { font-size: 14px; color: #aaa; font-weight: 400; }
.ma-kpi-s { font-size: 11px; color: #888; margin-top: 3px; }
.ma-kpi-bar { height: 5px; background: #f0efe8; border-radius: 3px; overflow: hidden; margin-top: 7px; }
.ma-kpi-bar > div { height: 100%; background: var(--primary, #3F96FE); border-radius: 3px; }

.ma-stat-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px 24px; }
.ma-stat-grid.two { grid-template-columns: 1fr 1fr; }
.ma-stat-l { font-size: 10.5px; color: #aaa; text-transform: uppercase; letter-spacing: 0.4px; font-weight: 500; margin-bottom: 3px; }
.ma-stat-v { font-size: 13.5px; color: #1a1a18; font-weight: 500; word-wrap: break-word; }
.ma-stat-v.mono { font-family: ui-monospace, monospace; font-size: 12.5px; }
.ma-stat-v.mute { color: #aaa; font-weight: 400; }

/* ── Live-Status ─────────────────────────────────────────────────────── */
.ma-live {
  background: linear-gradient(135deg, #EBF4FF 0%, #fff 60%);
  border: 0.5px solid #C7DEF7;
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 14px;
  display: flex; gap: 18px; align-items: center;
}
.ma-live-ico {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
  background: #fff;
  border: 0.5px solid #C7DEF7;
}
.ma-live-body { flex: 1; min-width: 0; }
.ma-live-st { font-size: 11px; font-weight: 500; color: #aaa; text-transform: uppercase; letter-spacing: 0.4px; }
.ma-live-tt { font-size: 18px; font-weight: 600; letter-spacing: -0.2px; margin-top: 2px; }
.ma-live-sub { font-size: 12.5px; color: #888; margin-top: 3px; }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.ma-btn {
  display: inline-flex; align-items: center; gap: 5px;
  height: 32px; padding: 0 12px;
  border: 0.5px solid #e0dfd7;
  border-radius: 7px;
  background: #fff; color: #1a1a18;
  font-size: 12.5px; font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}
.ma-btn:hover { background: #fafaf8; }
.ma-btn-primary { background: var(--primary, #3F96FE); color: #fff; border-color: var(--primary, #3F96FE); }
.ma-btn-primary:hover { background: #0A67EA; }
.ma-btn-ghost { border: none; color: #888; background: transparent; }
.ma-btn-ghost:hover { background: #f5f4f0; color: #1a1a18; }
.ma-btn-danger { color: #A32D2D; border-color: #F09595; background: #FCEBEB; }
.ma-btn-danger:hover { background: #f7c1c1; }
.ma-btn-ok { color: #3B6D11; border-color: #97C459; background: #EAF3DE; }
.ma-btn-ok:hover { background: #dcecc2; }
.ma-btn-sm { height: 28px; padding: 0 10px; font-size: 12px; }

/* ── Arbeitszeiten / Kalender ────────────────────────────────────────── */
.ma-az-hd { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.ma-az-month {
  display: flex; align-items: center; gap: 6px;
  background: #fff; border: 0.5px solid #e0dfd7;
  border-radius: 8px; padding: 3px 5px;
}
.ma-az-month button {
  width: 26px; height: 26px;
  border: none; background: none;
  border-radius: 6px;
  color: #888; font-size: 14px;
  cursor: pointer;
}
.ma-az-month button:hover { background: #f5f4f0; color: #1a1a18; }
.ma-az-month-lbl { font-size: 13.5px; font-weight: 500; min-width: 130px; text-align: center; font-variant-numeric: tabular-nums; }

.ma-seg { display: inline-flex; background: #fff; border: 0.5px solid #e0dfd7; border-radius: 8px; padding: 2px; gap: 2px; }
.ma-seg button {
  padding: 5px 11px;
  border: none; background: none;
  border-radius: 6px;
  font-size: 12px; color: #888; font-weight: 500;
  cursor: pointer;
}
.ma-seg button.active { background: var(--primary, #3F96FE); color: #fff; }

.ma-anom-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px;
  background: #FCEBEB; color: #A32D2D;
  border-radius: 7px;
  font-size: 12px; font-weight: 500;
}

.ma-cal { background: #fff; border: 0.5px solid #e0dfd7; border-radius: 10px; overflow: hidden; }
.ma-cal-week {
  display: grid; grid-template-columns: repeat(7, 1fr);
  border-bottom: 0.5px solid #f0efe8;
  background: #fafaf8;
}
.ma-cal-week div { padding: 9px 10px; font-size: 10.5px; font-weight: 500; color: #aaa; text-transform: uppercase; letter-spacing: 0.4px; }
.ma-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.ma-cal-day {
  aspect-ratio: 1.05;
  padding: 8px 10px;
  border-right: 0.5px solid #f0efe8;
  border-bottom: 0.5px solid #f0efe8;
  display: flex; flex-direction: column;
  cursor: pointer;
  background: #fff;
  position: relative;
  min-height: 80px;
  transition: background .1s;
}
.ma-cal-day:nth-child(7n) { border-right: none; }
.ma-cal-day:hover { background: #f0f6ff; }
.ma-cal-day.muted { background: #fafaf8; cursor: default; }
.ma-cal-day.muted .ma-cal-num { color: #ccc; }
.ma-cal-day.today { background: #EBF4FF; }
.ma-cal-day.today .ma-cal-num { color: var(--primary, #3F96FE); font-weight: 600; }
.ma-cal-day.selected { background: #D6E8FE; outline: 2px solid var(--primary, #3F96FE); outline-offset: -2px; z-index: 2; }
.ma-cal-day.weekend { background: #fafaf8; }
.ma-cal-day.empty-cell { cursor: default; background: #fafaf8; border-right-color: transparent; }
.ma-cal-num { font-size: 12.5px; font-weight: 500; color: #1a1a18; margin-bottom: auto; }
.ma-day-std { font-size: 13px; font-weight: 600; letter-spacing: -0.2px; font-variant-numeric: tabular-nums; margin-top: 4px; white-space: nowrap; }
.ma-day-sub { font-size: 10px; color: #aaa; }
.ma-day-bar { height: 4px; border-radius: 2px; display: flex; background: #f0efe8; overflow: hidden; margin-top: 4px; }
.ma-day-bar > div { height: 100%; }
.ma-day-bar .arbeit { background: #97C459; }
.ma-day-bar .pause { background: #EF9F27; }
.ma-day-tag {
  position: absolute; top: 5px; right: 6px;
  font-size: 10px; padding: 1px 6px; border-radius: 7px; font-weight: 500;
}
.ma-tag-urlaub { background: #E6F1FB; color: #185FA5; }
.ma-tag-krank { background: #FBEAF0; color: #993556; }
.ma-tag-frei { background: #FAEEDA; color: #854F0B; }
.ma-tag-anom { background: #FCEBEB; color: #A32D2D; }

/* ── Day Detail ──────────────────────────────────────────────────────── */
.ma-daydetail {
  margin-top: 14px;
  background: #fff;
  border: 0.5px solid #e0dfd7;
  border-radius: 10px;
  overflow: hidden;
}
.ma-dd-head {
  padding: 14px 18px;
  display: flex; align-items: center; gap: 14px;
  border-bottom: 0.5px solid #f0efe8;
  background: #fafaf8;
}
.ma-dd-date { font-size: 16px; font-weight: 600; letter-spacing: -0.2px; }
.ma-dd-meta { font-size: 12px; color: #888; margin-top: 2px; }
.ma-dd-actions { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }

.ma-timeline { padding: 24px 18px 14px; position: relative; }
.ma-tl-track {
  position: relative;
  height: 42px;
  background: #fafaf8;
  border-radius: 8px;
  overflow: hidden;
}
.ma-tl-seg {
  position: absolute; top: 0; bottom: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: #fff; font-weight: 500;
  overflow: hidden;
  white-space: nowrap;
}
.ma-tl-seg.arbeit { background: linear-gradient(180deg, #a8d56e, #97C459); }
.ma-tl-seg.pause { background: linear-gradient(180deg, #f0b14b, #EF9F27); }
.ma-tl-grid {
  display: flex; justify-content: space-between;
  margin-top: 6px;
  font-size: 10px; color: #aaa;
  font-variant-numeric: tabular-nums;
}
.ma-tl-now {
  position: absolute; top: 0; bottom: 0;
  width: 2px; background: #A32D2D;
  z-index: 5;
}
.ma-tl-now::after {
  content: 'jetzt';
  position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
  background: #A32D2D; color: #fff;
  font-size: 9px; padding: 1px 5px;
  border-radius: 8px; font-weight: 500; letter-spacing: 0.3px;
}
.ma-tl-marker {
  position: absolute; top: -4px; bottom: -4px;
  width: 2px; background: #1a1a18;
  z-index: 3;
}
.ma-tl-marker::before {
  content: '';
  position: absolute; top: -4px; left: 50%; transform: translateX(-50%);
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #1a1a18;
}

.ma-stempel-list { padding: 6px 18px 18px; }
.ma-stempel-row {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 0;
  border-bottom: 0.5px solid #f0efe8;
}
.ma-stempel-row:last-child { border-bottom: none; }
.ma-stempel-typ {
  display: inline-flex; align-items: center; gap: 7px;
  width: 160px; flex-shrink: 0;
  font-size: 13px; font-weight: 500;
}
.ma-stempel-typ .ico {
  width: 24px; height: 24px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
}
.ma-stempel-typ .ico.start { background: #EAF3DE; color: #3B6D11; }
.ma-stempel-typ .ico.pause { background: #FAEEDA; color: #854F0B; }
.ma-stempel-typ .ico.ende { background: #FCEBEB; color: #A32D2D; }
.ma-stempel-time {
  font-family: ui-monospace, monospace;
  font-size: 15px; font-weight: 500;
  font-variant-numeric: tabular-nums;
  padding: 5px 10px;
  background: #fafaf8;
  border: 0.5px solid #f0efe8;
  border-radius: 6px;
  cursor: pointer;
  min-width: 78px; text-align: center;
}
.ma-stempel-time:hover { background: #fff; border-color: var(--primary, #3F96FE); }
.ma-stempel-time.edit { padding: 0; background: #fff; border-color: var(--primary, #3F96FE); }
.ma-stempel-time.edit input {
  height: 30px; width: 78px;
  text-align: center;
  font-family: ui-monospace, monospace;
  font-size: 15px; font-weight: 500;
  border: none; padding: 0;
  outline: none;
}
.ma-stempel-flag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10.5px;
  padding: 2px 7px;
  border-radius: 7px;
  color: #888;
  background: #fafaf8;
}
.ma-stempel-flag.manuell { background: #E6F1FB; color: #185FA5; }
.ma-stempel-act { margin-left: auto; display: flex; gap: 4px; }
.ma-icobtn {
  width: 28px; height: 28px;
  border: none; background: none;
  border-radius: 6px;
  color: #aaa;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.ma-icobtn:hover { background: #f5f4f0; color: #1a1a18; }
.ma-icobtn.del:hover { color: #A32D2D; background: #FCEBEB; }

.ma-dd-foot {
  padding: 12px 18px;
  background: #fafaf8;
  border-top: 0.5px solid #f0efe8;
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
  font-size: 12px; color: #888;
}
.ma-dd-foot .summary { margin-left: auto; font-size: 12px; color: #888; }
.ma-dd-foot .summary b { color: #1a1a18; font-weight: 500; }

.ma-banner {
  display: flex; gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  margin: 12px 18px 0;
  background: #FCEBEB; color: #A32D2D;
  font-size: 12.5px;
  align-items: center;
  border: 0.5px solid #F09595;
}
.ma-banner.warn { background: #FAEEDA; color: #854F0B; border-color: #EF9F27; }
.ma-banner.info { background: #E6F1FB; color: #185FA5; border-color: #85B7EB; }

/* Liste-Ansicht statt Kalender */
.ma-list-rows { background: #fff; border: 0.5px solid #e0dfd7; border-radius: 10px; overflow: hidden; }
.ma-list-rows .row {
  padding: 12px 18px; border-bottom: 0.5px solid #f0efe8;
  display: flex; gap: 14px; align-items: center; cursor: pointer;
}
.ma-list-rows .row:last-child { border-bottom: none; }
.ma-list-rows .row:hover { background: #fafaf8; }
.ma-list-rows .row.selected { background: #EBF4FF; }
.ma-list-rows .date { width: 90px; font-size: 13px; font-weight: 500; }
.ma-list-rows .stempel-chain { flex: 1; font-size: 12px; color: #888; font-family: ui-monospace, monospace; }
.ma-list-rows .stempel-chain.empty { font-style: italic; }
.ma-list-rows .std { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; min-width: 80px; text-align: right; }

/* ── Abwesenheiten ───────────────────────────────────────────────────── */
.ma-abw-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0;
  border-bottom: 0.5px solid #f0efe8;
}
.ma-abw-row:last-child { border-bottom: none; }
.ma-abw-typ {
  width: 42px; height: 42px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}
.ma-abw-typ.urlaub { background: #E6F1FB; color: #185FA5; }
.ma-abw-typ.krank { background: #FBEAF0; color: #993556; }
.ma-abw-typ.frei { background: #FAEEDA; color: #854F0B; }
.ma-abw-body { flex: 1; min-width: 0; }
.ma-abw-tt { font-size: 13.5px; font-weight: 500; }
.ma-abw-meta { font-size: 11.5px; color: #888; margin-top: 2px; }
.ma-abw-tage { text-align: right; flex-shrink: 0; margin-right: 10px; }
.ma-abw-tage .n { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ma-abw-tage .l { font-size: 10px; color: #aaa; text-transform: uppercase; letter-spacing: 0.4px; }

/* ── Verlauf ─────────────────────────────────────────────────────────── */
.ma-vl-list { position: relative; padding-left: 24px; }
.ma-vl-list::before {
  content: '';
  position: absolute; left: 7px; top: 6px; bottom: 6px;
  width: 1px; background: #f0efe8;
}
.ma-vl-row {
  position: relative;
  padding: 8px 0 12px;
  display: flex; flex-direction: column; gap: 2px;
}
.ma-vl-row::before {
  content: '';
  position: absolute; left: -22px; top: 13px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #e0dfd7;
}
.ma-vl-row.stempel::before { border-color: #EF9F27; }
.ma-vl-row.stammdaten::before { border-color: #aaa; }
.ma-vl-row.antrag::before { border-color: #185FA5; }
.ma-vl-tt { font-size: 13px; color: #1a1a18; }
.ma-vl-meta { font-size: 11px; color: #aaa; }
.ma-vl-grund {
  font-size: 11.5px; color: #888;
  font-style: italic;
  margin-top: 2px;
  padding: 6px 9px;
  background: #fafaf8;
  border-radius: 6px;
  display: inline-block;
}

/* ── Modal (Edit/Anlegen/Tag-nachtragen/Stempel/Urlaub/Krank) ─────── */
.ma-modal-bd {
  position: fixed; inset: 0;
  background: rgba(15, 23, 42, 0.32);
  z-index: 200;
  display: none;
  align-items: center; justify-content: center;
  padding: 30px;
  backdrop-filter: blur(2px);
}
.ma-modal-bd.show { display: flex; }
.ma-modal {
  background: #fff;
  border-radius: 14px;
  width: 100%; max-width: 560px;
  max-height: 92vh;
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.18);
}
.ma-modal-hd { padding: 18px 22px 12px; border-bottom: 0.5px solid #f0efe8; }
.ma-modal-tt { font-size: 17px; font-weight: 600; letter-spacing: -0.2px; }
.ma-modal-sub { font-size: 12.5px; color: #888; margin-top: 4px; }
.ma-modal-bdx { padding: 18px 22px; flex: 1; overflow-y: auto; }
.ma-modal-ft {
  padding: 14px 22px;
  background: #fafaf8;
  border-top: 0.5px solid #f0efe8;
  display: flex; gap: 8px; justify-content: flex-end;
}
.ma-modal-ft .left { margin-right: auto; }

.ma-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ma-form-grid .ff.full { grid-column: 1 / -1; }
.ma-form-grid .ff { display: flex; flex-direction: column; gap: 5px; }
.ma-form-grid .ff label { font-size: 11.5px; color: #888; font-weight: 500; }
.ma-form-grid .ff input,
.ma-form-grid .ff select,
.ma-form-grid .ff textarea {
  height: 36px; font-size: 13.5px;
  border: 0.5px solid #e0dfd7; border-radius: 8px;
  padding: 0 10px;
  background: #fff;
  outline: none;
  font-family: inherit;
  color: inherit;
}
.ma-form-grid .ff input:focus,
.ma-form-grid .ff select:focus,
.ma-form-grid .ff textarea:focus { border-color: var(--primary, #3F96FE); }
.ma-form-grid .ff textarea { height: 64px; padding: 8px 10px; resize: vertical; }
.ma-form-grid .ff .hint { font-size: 11px; color: #aaa; font-weight: 400; }

.ma-info-box {
  margin-top: 14px;
  padding: 10px 14px;
  background: #E6F1FB; color: #185FA5;
  border-radius: 8px;
  font-size: 12px;
  border: 0.5px solid #85B7EB;
  display: flex; gap: 8px; align-items: flex-start;
}
.ma-warn-box {
  margin-top: 14px;
  padding: 10px 14px;
  background: #FCEBEB; color: #A32D2D;
  border-radius: 8px;
  font-size: 12px;
  border: 0.5px solid #F09595;
  display: flex; gap: 8px; align-items: flex-start;
}
.ma-calc-box {
  margin-top: 16px;
  padding: 12px 14px;
  background: #fafaf8;
  border-radius: 8px;
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.ma-calc-box .l { font-size: 12px; color: #888; }
.ma-calc-box .v-lbl { font-size: 10.5px; color: #aaa; text-transform: uppercase; letter-spacing: 0.4px; }
.ma-calc-box .v { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
