/* ============================================================
   Tagansicht: Wochenleiste, Zeilenraster als CSS-Grid (kein
   <table>, siehe Auswertung), Leistungsphasen-Auswahlliste,
   Ziehen und Ablegen, Schnellerfassung, Löschen mit Rückgängig.
   Eigenes day-*-Präfix aus demselben Grund wie rpt-* bei der
   Auswertung: .grid/.f/.gc/.chip/.panel wären in diesem Stylesheet
   ein Kollisionsrisiko (.panel und .btn sind bereits anderweitig
   belegt).
   ============================================================ */

/* ---------- Wochenleiste ---------- */
.day-weekbar {
  display: flex;
  border: 1px solid var(--border);
  margin-bottom: 24px;
}

/* .day-week-arrow ist ein <button> - überschreibt die globale
   Button-Grundregel (taupe-dark-Fläche, 44px min-height, fett),
   die sonst jedes <button>-Element im Haus abfängt. */
.day-week-arrow {
  width: 44px;
  min-height: 0;
  padding: 0;
  border: 0 !important;
  border-right: 1px solid var(--border) !important;
  background: #fff !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: normal;
  color: var(--muted) !important;
  line-height: 1;
}

.day-week-arrow:last-child {
  border-right: 0 !important;
  border-left: 1px solid var(--border) !important;
}

.day-week-arrow:hover {
  background: var(--taupe-wash) !important;
  color: var(--taupe-dark) !important;
}

.day-week-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  flex: 1;
}

.day-wd {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 10px 4px;
  min-height: var(--touch);
  border-right: 1px solid var(--border);
  background: #fff;
  text-decoration: none;
  cursor: pointer;
}

.day-wd:last-child {
  border-right: 0;
}

.day-wd:hover {
  background: var(--taupe-wash);
}

.day-wd-name {
  font-family: var(--f-ui);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.day-wd-date {
  font-family: var(--f-ui);
  font-size: 0.95rem;
}

.day-wd-hours {
  font-family: var(--f-bold);
  font-size: 0.86rem;
  font-variant-numeric: tabular-nums;
}

.day-wd-none {
  font-size: 0.86rem;
  color: var(--border-strong);
}

.day-wd.is-weekend {
  background: var(--surface-soft);
}

/* taupe-dark statt taupe: hier steht kleiner Text, Weiß auf taupe
   erreicht nur 4.09:1 */
.day-wd.is-current {
  background: var(--taupe-dark);
}

.day-wd.is-current .day-wd-name {
  color: #e8e5e1;
}

.day-wd.is-current .day-wd-date,
.day-wd.is-current .day-wd-hours,
.day-wd.is-current .day-wd-none {
  color: #fff;
}

.day-wd.is-current:hover {
  background: var(--taupe-dark);
}

.day-wd.is-today {
  border: 3px solid var(--today);
}

.day-wd.is-today .day-wd-date {
  color: var(--today);
  font-family: var(--f-bold);
}

.day-wd.is-current.is-today .day-wd-date {
  color: #fff;
}

/* ---------- Tageskopf mit Stundenstand-Balken ---------- */
.day-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.day-head-main {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}

.day-balance {
  min-width: 250px;
}

.day-balance-figures {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-bottom: 7px;
}

.day-balance-ist {
  font-family: var(--f-bold);
  font-size: 1.5rem;
  font-weight: normal;
  font-variant-numeric: tabular-nums;
}

.day-balance-of {
  font-size: 0.85rem;
  color: var(--muted);
}

.day-balance-soll {
  font-size: 0.95rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.day-balance-delta {
  margin-left: 6px;
  font-family: var(--f-ui);
  font-size: 0.82rem;
  padding: 2px 7px;
  font-variant-numeric: tabular-nums;
}

.day-balance-delta.is-over {
  background: var(--pos-wash);
  color: var(--pos);
}

.day-balance-delta.is-under {
  background: var(--neg-wash);
  color: var(--neg);
}

.day-balance-track {
  position: relative;
  height: 5px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  overflow: hidden;
}

.day-balance-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  background: var(--taupe);
  transition: width 0.2s ease;
}

/* ---------- Panel (Arbeitszeiten / Abwesenheiten) ---------- */
.day-panel {
  border: 1px solid var(--border);
  margin-bottom: 24px;
}

.day-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 24px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.day-panel-head-right {
  display: flex;
  align-items: center;
  gap: 24px;
  /* [class*="panel"] weiter oben erzwingt sonst einen weissen Kasten hier drin */
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.day-carry-hint {
  margin: 0;
  padding: 10px 24px;
  font-size: 0.85rem;
  color: var(--muted);
  background: var(--taupe-wash);
  border-bottom: 1px solid var(--border);
}

.day-carry-hint.is-gone {
  display: none;
}

/* Speicherstatus schweigt im Ruhezustand */
.day-save-state {
  font-size: 0.84rem;
  color: var(--muted);
  opacity: 0;
  transition: opacity 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.day-save-state.is-visible {
  opacity: 1;
}

.day-save-state.is-error {
  color: var(--neg);
  opacity: 1;
}

.day-save-state::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pos);
}

.day-save-state.is-saving::before {
  background: var(--taupe-light);
}

.day-save-state.is-error::before {
  background: var(--neg);
}

/* ---------- Schalter: Zeilen bearbeiten ---------- */
.day-switch {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  user-select: none;
}

.day-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.day-switch-track {
  width: 38px;
  height: 22px;
  background: var(--border-strong);
  position: relative;
  transition: background 0.16s ease;
  flex: 0 0 auto;
}

.day-switch-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: #fff;
  transition: transform 0.16s ease;
}

.day-switch input:checked + .day-switch-track {
  background: var(--taupe);
}

.day-switch input:checked + .day-switch-track .day-switch-knob {
  transform: translateX(16px);
}

.day-switch input:focus-visible + .day-switch-track {
  outline: 2px solid var(--taupe);
  outline-offset: 2px;
}

.day-switch-label {
  font-family: var(--f-ui);
  font-size: 0.9rem;
}

/* ---------- Zeilenraster ---------- */
.day-grid {
  --day-cols: 1.1fr 148px 108px 114px 1.3fr;
}

.day-grid.is-editing {
  --day-cols: 40px 1.1fr 148px 108px 114px 1.3fr 40px;
}

/* Abwesenheiten-Raster hat eigene Spalten (Art/Von/Bis/Notiz) und darf nicht
   das fuer Arbeitszeiten gedachte --day-cols der Basisklasse erben. */
#absence-grid {
  --day-cols: 1fr 165px 165px 1.6fr 110px;
}

#absence-grid.is-editing {
  --day-cols: 1fr 165px 165px 1.6fr 110px 40px;
}

.day-grid-head,
.day-grid-row {
  display: grid;
  grid-template-columns: var(--day-cols);
  align-items: center;
}

.day-grid-head {
  background: var(--surface-soft);
  border-bottom: 1px solid var(--border);
}

.day-gh {
  padding: 10px 12px;
  font-family: var(--f-ui);
  font-size: 0.74rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.day-gh-num {
  text-align: right;
}

.day-gh-mid {
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.day-gh-drag {
  display: none;
}

.day-grid.is-editing .day-gh-drag,
.day-grid.is-editing .day-gc-drag {
  display: flex;
  align-items: center;
  justify-content: center;
}

.day-grid-row {
  border-bottom: 1px solid var(--border);
  position: relative;
  background: #fff;
}

.day-grid-row:last-child {
  border-bottom: 0;
}

.day-gc {
  padding: 5px 12px;
  min-width: 0;
}

.day-gc-drag {
  display: none;
}

/* Sonderstunden markieren die Zeile am linken Rand statt einer
   eigenen Spalte - passend zum Bearbeiten-Kontext der Tagansicht. */
.day-grid-row.is-billable {
  background: #fbfaf9;
  box-shadow: inset 3px 0 0 var(--taupe-dark);
}

.day-grid-row.is-dragging {
  opacity: 0.5;
}

/* ---------- Felder ---------- */
.day-f {
  width: 100%;
  font-family: var(--f-body);
  font-size: 0.93rem;
  color: var(--text);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 0;
  padding: 8px 9px;
  min-height: 38px;
  transition: border-color 0.12s ease, background 0.12s ease;
}

.day-f:hover {
  border-color: var(--border);
  background: #fff;
}

.day-f:focus {
  outline: none;
  border-color: var(--taupe);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(134, 124, 114, 0.16);
}

select.day-f {
  appearance: none;
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 15px) 52%, calc(100% - 10px) 52%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 28px;
  text-overflow: ellipsis;
}

.day-f-hours {
  text-align: right;
  font-family: var(--f-bold);
  font-variant-numeric: tabular-nums;
  font-size: 1.02rem;
}

.day-f-hours.is-empty {
  color: var(--border-strong);
}

.day-f-note {
  font-size: 0.88rem;
  color: var(--muted);
}

.day-f-note::placeholder {
  color: #8a847d;
}

.day-f-note:focus {
  color: var(--text);
}

/* Neu hinzugefuegte Zeile: Entfernen-Knopf direkt in der Notiz-Zelle,
   damit er unabhaengig vom "Zeilen bearbeiten"-Schalter immer sichtbar
   ist (die eigentliche Entfernen-Spalte bleibt bis dahin ausgeblendet). */
.day-gc-note-new {
  display: flex;
  align-items: center;
  gap: 6px;
}

.day-gc-note-new .row-note {
  flex: 1;
  min-width: 0;
}

/* Gesperrt außerhalb des Bearbeiten-Modus */
.day-grid:not(.is-editing) .day-f-lock {
  border-color: transparent !important;
  background: transparent !important;
  cursor: default;
  pointer-events: none;
  background-image: none;
  padding-right: 9px;
  box-shadow: none;
}

/* Datumsfelder (Abwesenheiten) gesperrt: Kalender-Icon des Browsers
   ausblenden, sonst wirkt das Feld trotz pointer-events:none bedienbar. */
.day-grid:not(.is-editing) .day-f-lock::-webkit-calendar-picker-indicator {
  display: none;
}

/* ---------- Leistungsphase: kurz geschlossen, ausgeschrieben beim Öffnen ---------- */
/* .day-lph ist ein <button> - siehe Hinweis bei .day-week-arrow */
.day-lph {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-family: var(--f-body);
  font-size: 0.93rem;
  font-weight: normal;
  color: var(--text) !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  padding: 8px 9px;
  min-height: 38px;
  cursor: pointer;
  text-align: left;
}

.day-lph:hover {
  border-color: var(--border) !important;
  background: #fff !important;
}

.day-lph[aria-expanded="true"] {
  border-color: var(--taupe) !important;
  background: #fff !important;
}

.day-lph.is-empty span:first-child {
  color: #8a847d;
}

.day-lph .day-caret {
  width: 5px;
  height: 5px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg) translate(-1px, -1px);
  flex: 0 0 auto;
}

/* Neu hinzugefuegte Zeilen (.day-grid-row-new) sind bewusst ausgenommen:
   ihre Leistungsphase soll wie das Projektfeld sofort waehlbar sein, ohne
   "Zeilen bearbeiten" einzuschalten. */
.day-grid:not(.is-editing) .day-grid-row:not(.day-grid-row-new) .day-lph {
  pointer-events: none;
}

.day-grid:not(.is-editing) .day-grid-row:not(.day-grid-row-new) .day-lph .day-caret {
  display: none;
}

.day-lph-pop {
  position: absolute;
  z-index: 70;
  background: #fff;
  border: 1px solid var(--border-strong);
  box-shadow: 0 14px 34px rgba(26, 26, 26, 0.14);
  min-width: 290px;
  max-height: 320px;
  overflow-y: auto;
  padding: 4px 0;
}

/* .day-lph-opt ist ein <button> - siehe Hinweis bei .day-week-arrow */
.day-lph-opt {
  display: flex;
  gap: 10px;
  align-items: baseline;
  width: 100%;
  padding: 9px 14px;
  background: none !important;
  border: 0 !important;
  cursor: pointer;
  text-align: left;
  font-family: var(--f-body);
  font-weight: normal;
  color: var(--text) !important;
  font-size: 0.92rem;
  min-height: var(--touch);
}

.day-lph-opt:hover,
.day-lph-opt.is-active {
  background: var(--taupe-wash) !important;
}

.day-lph-opt[aria-selected="true"] {
  background: var(--surface-soft) !important;
}

.day-lph-code {
  font-family: var(--f-bold);
  flex: 0 0 52px;
  font-variant-numeric: tabular-nums;
}

.day-lph-name {
  color: var(--muted);
}

/* ---------- Sonderstunden-Kästchen ---------- */
.day-bill-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--touch);
  cursor: pointer;
}

.day-cbx {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.day-cbx-box {
  width: 19px;
  height: 19px;
  border: 1.5px solid var(--border-strong);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  transition: all 0.12s ease;
}

.day-cbx:checked + .day-cbx-box {
  background: var(--taupe-dark);
  border-color: var(--taupe-dark);
}

.day-cbx:checked + .day-cbx-box::after {
  content: "";
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}

.day-cbx:focus-visible + .day-cbx-box {
  outline: 2px solid var(--taupe);
  outline-offset: 2px;
}

.day-bill-label {
  display: none;
}

/* .day-help-dot, .day-icon-btn und .day-handle sind <button>-Elemente -
   siehe Hinweis bei .day-week-arrow. Ohne die Overrides unten würden
   sie alle die taupe-dark-Fläche und 44px-Mindesthöhe jedes <button>
   im Haus erben. */
.day-help-dot {
  width: 16px;
  height: 16px;
  min-height: 0;
  flex: 0 0 16px;
  aspect-ratio: 1;
  border-radius: 50% !important;
  border: 1px solid var(--border-strong) !important;
  background: #fff !important;
  color: var(--muted) !important;
  font-size: 0.68rem;
  font-weight: normal;
  line-height: 1;
  cursor: help;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-family: var(--f-ui);
}

.day-help-dot:hover {
  border-color: var(--taupe) !important;
  color: var(--taupe-dark) !important;
}

/* ---------- Griff und Entfernen ---------- */
.day-icon-btn {
  width: 32px;
  height: 32px;
  min-height: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent !important;
  background: none !important;
  cursor: pointer;
  color: var(--muted) !important;
  font-size: 1rem;
  font-weight: normal;
  line-height: 1;
  padding: 0;
}

.day-icon-btn:hover {
  border-color: var(--border-strong) !important;
  color: var(--taupe-dark) !important;
  background: #fff !important;
}

.day-icon-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.day-handle {
  width: 32px;
  height: 34px;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 0 !important;
  background: none !important;
  cursor: grab;
  touch-action: none;
  padding: 0;
}

.day-handle:active {
  cursor: grabbing;
}

.day-handle span {
  display: block;
  width: 15px;
  height: 1.5px;
  background: var(--border-strong);
}

.day-handle:hover span {
  background: var(--taupe-dark);
}

/* ---------- Fuß, Schnellerfassung ---------- */
.day-add-area {
  padding: 12px 24px;
  border-top: 1px solid var(--border);
}

/* .day-btn ist ein <button> - siehe Hinweis bei .day-week-arrow */
.day-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-ui);
  font-size: 0.94rem;
  font-weight: normal;
  line-height: 1;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  white-space: nowrap;
  min-height: var(--touch);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.day-btn-ghost {
  background: transparent !important;
  color: var(--text) !important;
  border-color: var(--border-strong) !important;
}

.save-absence {
  padding: 8px 12px;
  font-size: 0.88rem;
  background: var(--taupe) !important;
  color: #fff !important;
  border-color: var(--taupe) !important;
}

.save-absence:hover {
  background: var(--taupe-dark) !important;
  border-color: var(--taupe-dark) !important;
}

.day-btn-ghost:hover {
  border-color: var(--taupe) !important;
  color: var(--taupe-dark) !important;
  background: transparent !important;
}

.day-panel-foot {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 24px;
  border-top: 1px solid var(--border);
  /* [class*="panel"] weiter oben erzwingt sonst weiss statt --surface-soft */
  background: var(--surface-soft) !important;
}

.day-kbd-hint {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  flex: 1;
}

.day-kbd-hint kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  background: #fff;
  border: 1px solid var(--border-strong);
  padding: 1px 5px;
}

.day-foot-total {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.day-foot-total span {
  font-family: var(--f-ui);
  font-size: 0.74rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

.day-foot-total strong {
  font-family: var(--f-bold);
  font-size: 1.16rem;
  font-weight: normal;
  font-variant-numeric: tabular-nums;
}

.day-quick-add {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 24px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.day-quick-label {
  font-family: var(--f-ui);
  font-size: 0.74rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

.day-quick-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* .day-chip ist ein <button> - siehe Hinweis bei .day-week-arrow */
.day-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 6px 13px;
  border: 1px solid var(--border-strong) !important;
  background: #fff !important;
  cursor: pointer;
  font-family: var(--f-body);
  font-weight: normal;
  font-size: 0.88rem;
  color: var(--text) !important;
  text-align: left;
}

.day-chip:hover {
  border-color: var(--taupe) !important;
  background: var(--taupe-wash) !important;
  color: var(--taupe-dark) !important;
}

.day-chip-name {
  font-family: var(--f-body);
}

.day-chip-code {
  font-family: var(--f-bold);
  font-size: 0.78rem;
  color: var(--muted);
  border-left: 1px solid var(--border);
  padding-left: 8px;
}

.day-chip:hover .day-chip-code {
  color: var(--taupe-dark);
  border-color: var(--taupe-light);
}

.day-empty-block {
  padding: 32px 24px;
  text-align: center;
}

.day-empty-title {
  font-family: var(--f-ui);
  margin: 0 0 5px;
}

.day-empty-sub {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- Rückgängig-Hinweis nach dem Löschen ---------- */
.day-toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 14px);
  background: var(--text);
  color: #fff;
  padding: 11px 18px;
  font-size: 0.9rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 90vw;
}

.day-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.day-toast button {
  background: none;
  border: 0;
  color: #fff;
  font-family: var(--f-ui);
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  padding: 0;
  white-space: nowrap;
}

/* ---------- Abwesenheit ---------- */
.day-absence-empty {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 24px;
  border: 1px dashed var(--border-strong);
  color: var(--muted);
  font-size: 0.93rem;
}

.day-absence-fields {
  display: grid;
  grid-template-columns: 1fr 160px 160px;
  gap: 16px;
  padding: 16px 24px;
}

.day-fld {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.day-fld-wide {
  grid-column: 1 / -1;
}

.day-fld-label {
  font-family: var(--f-ui);
  font-size: 0.74rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

.day-f-boxed {
  border-color: var(--border-strong);
  background: #fff;
}

/* ============================================================
   Abwesenheit am selben Tag
   Arbeitszeiten werden zurückgenommen, aber nicht gesperrt: wer an
   einem Urlaubstag zwei Stunden gearbeitet hat, muss sie eintragen
   können. Die Felder bleiben deshalb weiß und voll bedienbar, nur
   die Fläche ringsum tritt zurück.
   ============================================================ */
.day-notice-band {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 13px 24px;
  background: #dcd7d1;
  border-bottom: 1px solid #c9c3bb;
  font-size: 0.94rem;
  color: var(--text);
}

.day-notice-band strong {
  font-family: var(--f-ui);
  font-weight: normal;
}

.day-notice-mark {
  width: 3px;
  align-self: stretch;
  min-height: 18px;
  background: var(--taupe-dark);
  flex: 0 0 3px;
}

.day-panel.is-muted {
  /* [class*="panel"] weiter oben erzwingt sonst Weiss statt der Abwesenheits-Abtoenung */
  background: #e7e3de !important;
  border-color: var(--border-strong) !important;
}

.day-panel.is-muted .day-panel-head,
.day-panel.is-muted .day-add-area,
.day-panel.is-muted .day-quick-add {
  border-color: #d5d0c9 !important;
}

.day-panel.is-muted .day-grid-row {
  border-color: #d5d0c9;
  background: transparent;
}

.day-panel.is-muted .day-grid-row.is-billable {
  background: rgba(255, 255, 255, 0.45);
}

.day-panel.is-muted .day-panel-head {
  background: transparent !important;
}

.day-panel.is-muted .day-grid-head {
  background: #dcd7d1;
  border-color: #c9c3bb;
}

/* Kopftext abdunkeln: --muted erreicht auf dieser Fläche nur 4.02:1 */
.day-panel.is-muted .day-gh {
  color: #544e48;
}

.day-panel.is-muted .day-panel-foot .day-foot-total span,
.day-panel.is-muted .day-quick-label {
  color: #544e48;
}

/* Eingabefelder bleiben weiß, damit sie lesbar und bedienbar bleiben */
.day-panel.is-muted .day-f,
.day-panel.is-muted .day-lph {
  background: #fff;
  border-color: #cfc9c2;
}

.day-panel.is-muted .day-f:focus {
  border-color: var(--taupe);
}

.day-panel.is-muted .day-grid:not(.is-editing) .day-f-lock {
  background: #fff !important;
  border-color: #cfc9c2 !important;
}

.day-panel.is-muted .day-grid:not(.is-editing) .day-lph {
  background: #fff;
}

.day-panel.is-muted .day-add-area .btn {
  background: #fff;
}

.day-panel.is-muted .day-panel-foot {
  background: #dcd7d1 !important;
}

.absence-pending-badge {
  margin-top: 4px;
  min-height: 22px;
  padding: 2px 7px;
  font-size: 0.74rem;
}

