/* ==========================================================================
   Dienstplan & Arbeitszeit (nur auf /alltag/dienstplan und /d/… geladen)
   Farben der Schichten setzt das Skript per DOM (CSP erlaubt keine Inline-Styles).
   ========================================================================== */
.dp { --dp-gap: 0.7rem; }
.dp input[type="text"], .dp input[type="number"], .dp select, .dp input[type="date"], .dp input[type="time"] { font-size: 16px; }
.dp input[type="date"], .dp input[type="time"] { height: 2.9rem; box-sizing: border-box; width: 100%; }
.dp h3 { margin: 0 0 0.6rem; }
.dp-sub { margin: 1.6rem 0 0.7rem; font-size: 1.15rem; }
.dp-span { grid-column: 1 / -1; }
.dp-linkbtn { border: 0; background: none; padding: 0; font: inherit; color: var(--accent); text-decoration: underline; cursor: pointer; }
.dp-x { flex: none; width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--muted); font-size: 1.2rem; line-height: 1; cursor: pointer; }
.dp-x:hover, .dp-x:focus-visible { color: var(--bad); border-color: var(--bad); }
.dp-file { cursor: pointer; }

/* Kopf: Planauswahl und Reiter */
.dp-planbar { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-bottom: 0.8rem; }
.dp-planbar label { font-weight: 600; }
.dp-planbar select { flex: 1 1 12rem; width: auto; min-width: 0; }
.dp-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0.25rem; background: var(--paper); padding: 0.25rem; border-radius: 12px; margin-bottom: 1rem; }
.dp-tabs button { border: 0; background: transparent; color: var(--ink); font: inherit; font-weight: 600; padding: 0.6rem 0.2rem; border-radius: 9px; cursor: pointer; line-height: 1.2; }
.dp-tabs button[aria-selected="true"] { background: var(--card); color: var(--accent); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.dp-bar { display: flex; align-items: center; gap: 0.5rem; margin: 0.4rem 0 0.8rem; flex-wrap: wrap; }
.dp-title { margin: 0; font-size: 1.35rem; min-width: 9.5rem; text-align: center; }
.dp-remind { border: 1px solid var(--signal); background: var(--warn-soft); border-radius: var(--r); padding: 0.8rem 1rem; margin-bottom: 1rem; }
.dp-remind p { margin: 0; }
.dp-remind .btn-row { margin-top: 0.6rem; }

/* Schicht-Kürzel */
.dp-chip { display: inline-flex; align-items: center; gap: 0.25rem; min-width: 1.6rem; justify-content: center; padding: 0.05rem 0.35rem; border-radius: 6px; font-weight: 700; font-size: 0.8rem; line-height: 1.35; background: var(--line); color: var(--ink); border: 1.5px solid transparent; white-space: nowrap; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.dp-chip small { font-weight: 500; font-size: 0.68rem; opacity: 0.9; }
.dp-chip-o { background: transparent !important; border-style: dashed; font-weight: 600; }
.dp-chip-empty { background: transparent; border: 1.5px dashed var(--line); color: var(--muted); }

/* Schnell eintragen */
.dp-stamp { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; margin-bottom: 0.6rem; }
.dp-lbl { font-weight: 600; margin-right: 0.2rem; font-size: 0.92rem; }
.dp-sbtn { display: inline-flex; align-items: center; gap: 0.3rem; min-height: 2.5rem; padding: 0.2rem 0.45rem; border-radius: 10px; border: 2px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-size: 0.9rem; cursor: pointer; }
.dp-sbtn .dp-chip { font-size: 0.9rem; min-width: 2rem; }
.dp-sbtn.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.dp-tn { font-size: 0.85rem; }
.dp-cmp { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; margin-bottom: 0.7rem; }
.dp-cmp label:first-child { font-weight: 600; }
.dp-cmp select { width: auto; flex: 0 1 16rem; min-width: 0; }

/* Monatsgitter */
.dp-cal { display: grid; gap: 2px; background: var(--line); border: 2px solid var(--line); border-radius: var(--r-s, 8px); overflow: hidden; margin-bottom: 0.8rem; }
.dp-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)) 3.4rem; gap: 2px; }
.dp-cal.no-wk .dp-row { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.dp-hc { background: var(--paper); text-align: center; font-weight: 700; font-size: 0.85rem; padding: 0.35rem 0; }
.dp-hc.is-we { color: var(--muted); }
.dp-day { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 0.15rem; min-height: 5.2rem; padding: 0.3rem 0.3rem 0.35rem; border: 0; border-radius: 0; background: var(--card); color: var(--ink); font: inherit; text-align: left; cursor: pointer; min-width: 0; overflow: hidden; }
div.dp-day { cursor: default; }
button.dp-day:hover { background: color-mix(in srgb, var(--accent) 7%, var(--card)); }
button.dp-day:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; z-index: 1; }
.dp-day.is-we, .dp-day.is-hol { background: var(--paper); }
.dp-day.is-out { background: var(--paper); opacity: 0.45; }
.dp-day.is-today .dp-dn { background: var(--accent); color: var(--accent-ink); border-radius: 999px; padding: 0 0.4rem; }
.dp-day.is-sel { box-shadow: inset 0 0 0 2px var(--accent); }
.dp-day.is-free2 { background: var(--ok-soft, #e3f4ea); }
.dp-dn { font-weight: 700; font-size: 0.9rem; line-height: 1.4; }
.dp-day.is-hol .dp-dn, .dp-row > .dp-day:nth-child(7) .dp-dn { color: var(--bad); }
.dp-cal .dp-row > .dp-day.is-today .dp-dn { color: var(--accent-ink); }
.dp-hol { font-size: 0.66rem; line-height: 1.15; color: var(--bad); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dp-chips { display: flex; flex-wrap: wrap; gap: 0.15rem; max-width: 100%; }
.dp-chips .dp-chip { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.dp-other .dp-chip { font-size: 0.7rem; }
.dp-note { font-size: 0.75rem; color: var(--muted); }
.dp-evs { display: flex; flex-direction: column; gap: 0.05rem; font-size: 0.68rem; line-height: 1.2; color: #6b4fa0; max-width: 100%; }
:root[data-theme="dark"] .dp-evs { color: #c4b0ec; }
@media (prefers-color-scheme: dark) { :root[data-theme="auto"] .dp-evs { color: #c4b0ec; } }
.dp-evs > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dp-wk { background: var(--paper); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.1rem; font-size: 0.85rem; }
.dp-hc.dp-wk { flex-direction: row; }
.dp-kw { font-size: 0.66rem; color: var(--muted); }
.dp-key { display: inline-block; width: 1rem; height: 1rem; border-radius: 4px; vertical-align: -0.15rem; border: 1px solid var(--line); }
.dp-key-free { background: var(--ok-soft, #e3f4ea); }
.dp-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; padding: 0; margin: 0.4rem 0 1rem; font-size: 0.88rem; }
.dp-legend li { display: flex; align-items: center; gap: 0.35rem; }

/* Kennzahlen */
.dp-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: 0.5rem; margin-bottom: 1rem; }
.dp-stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-s, 8px); padding: 0.55rem 0.7rem; display: flex; flex-direction: column; gap: 0.1rem; }
.dp-stat span { font-size: 0.8rem; color: var(--muted); }
.dp-stat strong { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.dp-stat.is-neg strong { color: var(--bad); }
.dp-stat.is-pos strong { color: var(--ok); }
.dp-stat.is-job { border-style: dashed; }
.dp-hints { border: 1px solid var(--signal); background: var(--warn-soft); border-radius: var(--r-s, 8px); padding: 0.6rem 0.9rem; margin-bottom: 1rem; }
.dp-hints summary { font-weight: 700; cursor: pointer; }
.dp-hints ul { margin: 0.5rem 0 0.3rem; padding-left: 1.1rem; }
.dp-hints li { margin: 0.2rem 0; }

/* Jahr */
.dp-ywrap { margin-bottom: 0.8rem; }
.dp-year { border-collapse: collapse; width: 100%; min-width: 46rem; table-layout: fixed; font-size: 0.72rem; }
.dp-year th, .dp-year td { border: 1px solid var(--line); padding: 0; text-align: center; height: 2rem; }
.dp-year thead th { background: var(--paper); font-weight: 600; height: 1.5rem; }
.dp-year th:first-child { width: 3.2rem; background: var(--paper); }
.dp-year td.is-we { background: var(--paper); }
.dp-year td.is-hol { background: var(--bad-soft, #fbe4e2); }
.dp-year td.is-none { background: repeating-linear-gradient(45deg, var(--paper), var(--paper) 3px, var(--line) 3px, var(--line) 4px); }
.dp-year td.is-today { outline: 2px solid var(--accent); outline-offset: -2px; }
.dp-year td button { display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 1px; width: 100%; height: 100%; min-height: 2rem; padding: 1px; border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; position: relative; }
.dp-year td > .dp-ychip { display: block; margin: 1px; }
.dp-ychip { display: block; border-radius: 3px; font-weight: 700; font-size: 0.66rem; line-height: 1.35; overflow: hidden; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.dp-ydot { position: absolute; right: 2px; bottom: 2px; width: 5px; height: 5px; border-radius: 50%; background: #6b4fa0; }
.dp-year th button { font-size: 0.75rem; }
.dp-ytab td.num, .dp-ytab th { white-space: nowrap; }
.dp-ytab th, .dp-ytab td { text-align: right; }
.dp-ytab thead th:first-child, .dp-ytab tbody th, .dp-ytab tfoot th { text-align: left; }
.dp-ytab tfoot th, .dp-ytab tfoot td { font-weight: 700; border-top: 2px solid var(--line); }
.dp-cards2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: var(--dp-gap); margin: 1rem 0; }

/* Karten und Formulare */
.dp-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 1rem; margin-bottom: 1rem; }
.dp-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); gap: var(--dp-gap); align-items: start; }
.dp-form > .check, .dp-target > .check, .dp-type .dp-f-cred { align-self: end; min-height: 2.9rem; display: flex; align-items: center; gap: 0.45rem; margin: 0; }
.dp-form > .check > input, .dp-target > .check > input, .dp-type .dp-f-cred input { margin-top: 0; }
.dp-type .dp-f-cred > .check { display: flex; align-items: center; gap: 0.45rem; min-height: 2.9rem; margin: 0; }
.dp-welcome .dp-form { margin-bottom: 2rem; }
.dp-welcome h3 { margin-top: 1.5rem; }
.dp-form .field { margin: 0; }
.dp-form .btn-row { margin-top: 0.2rem; }
.dp-form-sm { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 22rem; margin-bottom: 0.6rem; }
.dp-form fieldset, .dp-shareform fieldset { border: 1px solid var(--line); border-radius: var(--r-s, 8px); padding: 0.6rem 0.8rem; margin: 0; display: flex; flex-wrap: wrap; gap: 0.3rem 1.2rem; }
.dp-form legend, .dp-shareform legend { font-weight: 600; padding: 0 0.3rem; }
.dp-types { display: grid; gap: 0.6rem; }
.dp-type { display: grid; grid-template-columns: 4.2rem minmax(8rem, 1.6fr) 3.4rem minmax(9rem, 1.3fr) 7.6rem 7.6rem 5.4rem 5.4rem auto; gap: 0.45rem; align-items: end; padding: 0.6rem; border: 1px solid var(--line); border-radius: var(--r-s, 8px); background: var(--paper); }
.dp-type .field { margin: 0; min-width: 0; }
.dp-type label { font-size: 0.78rem; }
.dp-type .dp-f-job { grid-column: span 2; }
.dp-type .dp-f-cred { grid-column: span 2; align-self: center; }
.dp-type .dp-f-cred label { font-size: 0.85rem; }
.dp-type input[type="color"] { width: 100%; height: 2.9rem; padding: 0.15rem; border: 2px solid var(--line); border-radius: var(--r-s, 8px); background: var(--card); cursor: pointer; }
.dp-type .dp-x { align-self: center; }
.dp-inline { display: flex; gap: 0.5rem; align-items: center; margin-bottom: 0.5rem; }
.dp-inline input { flex: 1 1 auto; min-width: 0; }
.dp-target { display: grid; grid-template-columns: 10rem 8rem 6rem 8rem 6rem 1fr auto; gap: 0.45rem; align-items: end; padding: 0.6rem; border: 1px solid var(--line); border-radius: var(--r-s, 8px); background: var(--paper); margin-bottom: 0.5rem; }
.dp-target .field { margin: 0; min-width: 0; }
.dp-target label { font-size: 0.78rem; }
.dp-target .check { align-self: center; font-size: 0.85rem; }
.dp-pat { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; padding: 0.5rem 0; border-bottom: 1px solid var(--line); }
.dp-seq { display: inline-flex; flex-wrap: wrap; gap: 0.2rem; }
.dp-seq-edit { min-height: 2.6rem; padding: 0.4rem; border: 1px dashed var(--line); border-radius: var(--r-s, 8px); }
.dp-seqbtn { border: 0; background: none; padding: 0.1rem; cursor: pointer; }
.dp-seqbtn:hover .dp-chip { text-decoration: line-through; }
.dp-patedit { margin: 0.8rem 0; padding: 0.8rem; border: 1px solid var(--accent); border-radius: var(--r-s, 8px); }
.dp-apply { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.dp-evlist { list-style: none; padding: 0; margin: 0 0 1rem; }
.dp-evlist li { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; padding: 0.3rem 0; border-bottom: 1px solid var(--line); }
.dp-evlist .dp-x { width: 1.8rem; height: 1.8rem; margin-left: auto; }
.dp-evform .check { align-self: center; }

/* Teilen */
.dp-share { border: 1px solid var(--line); border-radius: var(--r-s, 8px); padding: 0.8rem; margin-bottom: 0.8rem; background: var(--paper); }
.dp-share-h { margin-bottom: 0.5rem; }
.dp-linkrow { display: flex; gap: 0.5rem; align-items: center; }
.dp-linkrow input { flex: 1 1 auto; min-width: 0; font-family: var(--mono, monospace); font-size: 0.9rem; }
.dp-qrbox canvas { max-width: 14rem; width: 100%; height: auto; image-rendering: pixelated; border-radius: 6px; margin-top: 0.5rem; }
.dp-shareform { display: grid; gap: 0.8rem; margin-top: 0.6rem; }
.dp-shareform .field { margin: 0; max-width: 24rem; }
.dp-sub-row { display: flex; flex-wrap: wrap; gap: 0.3rem 0.8rem; align-items: center; padding: 0.5rem 0; border-bottom: 1px solid var(--line); }
.dp-sub-btns { margin-left: auto; display: flex; gap: 0.4rem; }
.dp-guide { margin-top: 0.8rem; border: 1px solid var(--line); border-radius: var(--r-s, 8px); padding: 0.6rem 0.9rem; }
.dp-guide summary { font-weight: 700; cursor: pointer; }
.dp-guide ol { margin: 0.6rem 0 0.3rem; padding-left: 1.2rem; }
.dp-guide li { margin: 0.4rem 0; }
.dp-viewhead h2 { margin: 0 0 0.2rem; }

/* Dialog */
html.dp-noscroll { overflow: hidden; }
.dp-modal { position: fixed; inset: 0; z-index: 60; background: rgba(10, 18, 26, 0.55); display: flex; align-items: flex-end; justify-content: center; }
.dp-sheet { background: var(--card); color: var(--ink); width: 100%; max-width: 38rem; max-height: 92vh; max-height: 92dvh; overflow-y: auto; border-radius: 16px 16px 0 0; padding: 1rem 1rem 1.3rem; box-shadow: 0 -6px 30px rgba(0, 0, 0, 0.25); outline: none; overscroll-behavior: contain; }
@media (min-width: 700px) { .dp-modal { align-items: center; } .dp-sheet { border-radius: 16px; } }
.dp-mhead { display: flex; align-items: center; gap: 0.4rem; margin-bottom: 0.6rem; position: sticky; top: -1rem; background: var(--card); padding: 0.4rem 0; z-index: 1; }
.dp-mhead h3 { flex: 1 1 auto; margin: 0; font-size: 1.05rem; text-align: center; }
.dp-holline { color: var(--bad); font-weight: 600; margin: 0 0 0.6rem; }
.dp-entry { border: 1px solid var(--line); border-radius: var(--r-s, 8px); padding: 0.6rem; margin-bottom: 0.6rem; background: var(--paper); }
.dp-entry-h { display: flex; gap: 0.5rem; align-items: center; }
.dp-entry-h select { flex: 1 1 auto; min-width: 0; }
.dp-entry-f { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; margin-top: 0.5rem; align-items: end; }
.dp-entry-f .field { margin: 0; min-width: 0; }
.dp-entry-f label { font-size: 0.78rem; }
.dp-entry .hint { margin: 0.4rem 0 0; }
.dp-dayhints { margin: 0.6rem 0; padding: 0.5rem 0.8rem 0.5rem 1.6rem; border: 1px solid var(--signal); background: var(--warn-soft); border-radius: var(--r-s, 8px); }
.dp-dayhints:empty { display: none; }
.dp-addev { margin-top: 0.8rem; }
.dp-addev summary { cursor: pointer; font-weight: 600; color: var(--accent); }
.dp-addev .dp-form { margin-top: 0.6rem; }
.dp-welcome { max-width: 46rem; }

/* Mobil */
@media (max-width: 640px) {
  .dp-row { grid-template-columns: repeat(7, minmax(0, 1fr)) 2.3rem; gap: 1px; }
  .dp-cal { gap: 1px; }
  .dp-day { min-height: 3.9rem; padding: 0.2rem 0.15rem; gap: 0.1rem; }
  .dp-hol, .dp-evt, .dp-chip small, .dp-note { display: none; }
  .dp-evs { flex-direction: row; font-size: 0.7rem; }
  .dp-chip { font-size: 0.68rem; padding: 0 0.15rem; min-width: 0; border-radius: 4px; }
  .dp-chips { gap: 1px; }
  .dp-dn { font-size: 0.8rem; }
  .dp-hc { font-size: 0.75rem; }
  .dp-wk { font-size: 0.7rem; }
  .dp-wk .dp-kw { font-size: 0.58rem; }
  .dp-tabs button { font-size: 0.9rem; }
  .dp-type { grid-template-columns: 4rem minmax(0, 1fr) 3rem auto; }
  .dp-type .dp-f-cat, .dp-type .dp-f-job, .dp-type .dp-f-cred { grid-column: 1 / 4; }
  .dp-type .dp-f-time, .dp-type .dp-f-num { grid-column: span 2; }
  .dp-type .dp-x { grid-column: 4; grid-row: 1; }
  .dp-target { grid-template-columns: repeat(2, minmax(0, 1fr)) auto; }
  .dp-target .dp-x { grid-column: 3; grid-row: 1; }
  .dp-target .check { grid-column: 1 / 3; }
  .dp-entry-f { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dp-form-sm { grid-template-columns: 1fr 1fr; }
  .dp-sub-btns { margin-left: 0; }
}

/* Druck: nur die erzeugte Druckansicht, A4 quer */
.dp-print { display: none; }
@media print {
  @page { size: A4 landscape; margin: 9mm; }
  body.dp-printing > *:not(.dp-print) { display: none !important; }
  body.dp-printing { background: #fff !important; }
  body.dp-printing .dp-print { display: block; color: #000; font-size: 9pt; }
  .dp-print h1 { font-size: 15pt; margin: 0 0 3mm; }
  .dp-print .dp-cal { border-color: #999; background: #999; margin-bottom: 3mm; }
  .dp-print .dp-row { grid-template-columns: repeat(7, minmax(0, 1fr)) 15mm; }
  .dp-print .dp-cal.no-wk .dp-row { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .dp-print .dp-hc, .dp-print .dp-wk { background: #eef1f4 !important; color: #000; }
  .dp-print .dp-day { min-height: 0; height: 20mm; background: #fff; color: #000; }
  .dp-print .dp-day.is-we, .dp-print .dp-day.is-hol { background: #f1f3f6 !important; }
  .dp-print .dp-day.is-out { opacity: 1; background: #f7f8fa !important; color: #b8c0c8; }
  .dp-print .dp-day.is-out .dp-chips, .dp-print .dp-day.is-out .dp-evs { display: none; }
  .dp-print .dp-day.is-today .dp-dn { background: none; color: #000; padding: 0; }
  .dp-print .dp-hol, .dp-print .dp-evt, .dp-print .dp-chip small { display: inline; }
  .dp-print .dp-evs { color: #4b2f80; }
  .dp-print .dp-hc, .dp-print .dp-day, .dp-print .dp-wk, .dp-print .dp-chip, .dp-print .dp-ychip, .dp-print td { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .dp-print .dp-stats { grid-template-columns: repeat(7, 1fr); gap: 2mm; margin: 0 0 2mm; }
  .dp-print .dp-stat { padding: 1mm 2mm; border-color: #bbb; background: #fff; }
  .dp-print .dp-stat strong { font-size: 10pt; color: #000 !important; }
  .dp-print .dp-year { min-width: 0; font-size: 6.5pt; }
  .dp-print .dp-year th, .dp-print .dp-year td { height: 9mm; border-color: #aaa; }
  .dp-print .dp-ywrap, .dp-print .table-wrap { overflow: visible; }
  .dp-print .dp-ytab { font-size: 7.5pt; }
  .dp-print .dp-ytab th, .dp-print .dp-ytab td { padding: 0.6mm 1.5mm; }
  .dp-print .dp-legend { font-size: 8pt; margin: 2mm 0; }
  .dp-pfoot { font-size: 7pt; color: #666; margin-top: 2mm; }
}

.dp-autoexp { margin-top: 1rem; max-width: 30rem; }

/* Mehrfachauswahl und Druckeinstellungen */
.dp-cal { -webkit-user-select: none; user-select: none; }
.dp-day.is-pick { box-shadow: inset 0 0 0 3px var(--accent); background: color-mix(in srgb, var(--accent) 16%, var(--card)); }
.dp-mousehint { display: none; }
@media (hover: hover) and (pointer: fine) { .dp-mousehint { display: block; margin-top: -0.2rem; } }
.dp-h4 { margin: 1.2rem 0 0.5rem; font-size: 1rem; }
.dp-pcolors { display: flex; flex-wrap: wrap; gap: 0.6rem 1.2rem; align-items: center; }
.dp-pcolors label { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; }
.dp-printrow .check { display: inline-flex; align-items: center; gap: 0.4rem; margin: 0 0 0 0.4rem; }
.dp-shrange { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.dp-shrange .field { flex: 0 1 12rem; }
@media print {
  body.dp-printing { min-height: 0 !important; height: auto !important; display: block !important; }
  body.dp-printing .dp-print > :last-child { margin-bottom: 0; }
  .dp-print, .dp-print * { color: #000; }
  .dp-print .dp-day.is-we, .dp-print .dp-year td.is-we { background: var(--dp-psat, #eef2f6) !important; }
  .dp-print .dp-day.is-sun, .dp-print .dp-year td.is-sun { background: var(--dp-psun, #dce3eb) !important; }
  .dp-print .dp-day.is-hol, .dp-print .dp-year td.is-hol { background: var(--dp-phol, #f8e1df) !important; }
  .dp-print .dp-day.is-hol .dp-dn, .dp-print .dp-row > .dp-day:nth-child(7) .dp-dn, .dp-print .dp-hol { color: #b3261e; }
  .dp-print .dp-day.is-out, .dp-print .dp-day.is-out * { color: #b8c0c8; }
  .dp-print .dp-kw { color: #666; }
  .dp-print .dp-year thead th, .dp-print .dp-year th:first-child { background: #eef1f4 !important; color: #000; }
  .dp-print .dp-year td { background: #fff; }
  .dp-print .dp-year td.is-none { background: #d9dee4 !important; }
  .dp-print .dp-year td.is-today { outline: 0; }
  .dp-print .dp-ychip { color: inherit; }
  .dp-print .dp-ytab, .dp-print .dp-ytab th, .dp-print .dp-ytab td { background: #fff !important; border-color: #bbb !important; font-family: inherit; }
  .dp-print.dp-pw6 .dp-day { height: 19mm; }
  .dp-print.dp-pw5 .dp-day { height: 23mm; }
  .dp-print.dp-pw4 .dp-day { height: 28mm; }
  .dp-print.dp-py .dp-year th, .dp-print.dp-py .dp-year td { height: 10mm; }
  .dp-print.dp-py .dp-ytab { break-before: auto; }
}

.dp-type .dp-f-cred { align-self: end; }

/* Ausrichtung: Checkboxen und ×-Knöpfe mittig zum Eingabefeld daneben */
.dp-target > .check, .dp-evform > .check, .dp-form > .check { align-self: end; }
.dp-target > .dp-x, .dp-type > .dp-x { align-self: end; margin-bottom: 0.35rem; }
@media print {
  .dp-print.dp-pfull.dp-pw6 .dp-day { height: 25mm; }
  .dp-print.dp-pfull.dp-pw5 .dp-day { height: 30mm; }
  .dp-print.dp-pfull.dp-pw4 .dp-day { height: 37mm; }
}

/* Zusätzlich freie Tage */
.dp-hol.dp-xfree { color: var(--ok); }
.dp-day.is-xfree { background: color-mix(in srgb, var(--ok) 9%, var(--card)); }
.dp-year td.is-xfree { background: color-mix(in srgb, var(--ok) 14%, var(--card)); }
.dp-freelist { list-style: none; padding: 0; margin: 0 0 0.6rem; }
.dp-freerow { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.8rem; padding: 0.4rem 0; border-bottom: 1px solid var(--line); }
.dp-freerow select { width: auto; margin-left: auto; }
.dp-freeform { margin-top: 0.6rem; }
@media print {
  .dp-print .dp-hol.dp-xfree { color: #1f7a4d; }
  .dp-print .dp-day.is-xfree, .dp-print .dp-year td.is-xfree { background: #e6f3ec !important; }
}

.dp-form > .dp-checks { align-self: end; min-height: 2.9rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 1.4rem; }
.dp-checks > .check { display: inline-flex; align-items: center; gap: 0.45rem; margin: 0; }
.dp-checks > .check > input { margin-top: 0; }

/* Zweitjob */
.dp-jobvac { display: flex; align-items: center; gap: 0.4rem; font-weight: 500; white-space: nowrap; }
.dp-jobvac input { width: 4.5rem; }
.dp-type .dp-f-job1 { grid-column: span 1; }
@media (max-width: 640px) { .dp-type .dp-f-job1 { grid-column: 1 / 4; } .dp-inline { flex-wrap: wrap; } }
