/* Seiten-Anordnung Dienstplan (Entwurf Dienstplan.dc.html). Raster ab 768, Tageskarten am Handy, breit ab 1180. */
.dp { display: flex; flex-direction: column; gap: var(--s5); }
.dp .ph { margin: 0; }
.dp .ph .acts .btn { border-radius: var(--r-md); padding: 0 16px; }
.dp .bar { margin: 0; gap: 10px; }
.dp-pub { background: #FDF1E7; border-color: #F3D5BB; font-weight: 700; }
.dp-pub:hover:not(:disabled) { background: #FBE4D1 !important; }
.dp-nav .lbl { min-width: 110px; text-align: center; font-weight: 700; }
.dp-bar .select { min-width: 170px; }
.dp-note { margin: 0; font-size: 13px; color: var(--text-3); }

/* Legende rechts in der Leiste */
.dp-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-left: auto; font-size: 13px; color: var(--text-2); }
.dp-legend span { display: inline-flex; align-items: center; gap: 6px; }
.dp-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; }
.dp-legend i.dr { border: 1.5px dashed var(--text-3); }
.dp-legend i.lv { background: var(--surface-2); border: 1px solid var(--line-2); }
.dp-legend i.lv .ic { display: none; }

/* Mitarbeiter: naechste Schicht und Woche */
.dp-my { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
.dp-next { background: #FDF1E7; border: 1px solid #F3D5BB; border-radius: var(--r-sheet); padding: 24px 26px; display: flex; flex-direction: column; gap: 14px; }
.dp-next .kicker { margin: 0; }
.dp-next .big { font: 400 44px/1 var(--serif); }
.dp-next .big.sm { font-size: 34px; }
.dp-next .txt { color: var(--text-2); font-size: var(--fs-body); }
.dp-week { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sheet); padding: 22px 24px; }
.dp-week .l { font: 600 12px/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.dp-week .v { display: flex; align-items: baseline; gap: var(--s2); margin-top: 10px; }
.dp-week .n { font: 400 40px/1 var(--serif); font-variant-numeric: tabular-nums; }
.dp-week .u { color: var(--text-3); font-size: 14px; }
.dp-wrs { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; font-size: 14px; }
.dp-wr { display: flex; justify-content: space-between; gap: var(--s3); font-weight: 600; }
.dp-wr.done { color: var(--text-3); font-weight: 400; }
.dp-wr .num { font-variant-numeric: tabular-nums; text-align: right; }

/* Raster als Tabelle */
.dp-grid { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); overflow-x: auto; }
.dp-t { width: 100%; min-width: 760px; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.dp-t col.c-who { width: 150px; }
.dp-t th { text-align: left; vertical-align: top; padding: 12px; border-left: 1px solid #EAE3D6; border-bottom: 1px solid var(--line); background: transparent; font-weight: 400; }
.dp-t th.dp-team { border-left: 0; padding: 14px 16px; vertical-align: bottom; font: 600 12px/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.dp-t th .wd { display: block; font: 700 12px/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.dp-t th .dn { display: block; font: 400 24px/1.1 var(--serif); }
.dp-t th .tot { display: block; min-height: 17px; font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dp-t th .hol { display: block; font-size: 11px; color: var(--bad); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-t th.today { background: var(--accent-soft); }
.dp-t th.today .wd, .dp-t th.today .dn { color: var(--accent-deep); }
.dp-t td { border-bottom: 1px solid #EAE3D6; vertical-align: top; }
.dp-t tbody tr:last-child td { border-bottom: 0; }
.dp-who { padding: 14px 16px; vertical-align: middle !important; }
.dp-wi { display: flex; align-items: center; gap: 10px; min-width: 0; }
.dp-wi .av { width: 36px; height: 36px; font-size: 12px; font-weight: 700; }
.dp-wi .av.dp-open { background: var(--surface-2); color: var(--text-3); }
.dp-wi .nm { min-width: 0; }
.dp-wi .n { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-wi .s { display: block; font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-t tr.me td.dp-who { background: #FDF3EA; }
.dp-t td.cell { padding: 8px; border-left: 1px solid #EAE3D6; height: 76px; }
.dp-t td.cell.we { background: #F7F3EC; }
.dp-t td.cell.today { background: #FDF6EF; }
.dp-t td.cell.can { cursor: pointer; }
.dp-in { display: flex; flex-direction: column; gap: 4px; min-height: 60px; height: 100%; }
.dp-add { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 58px; border: 1px dashed transparent; border-radius: var(--r-sm); color: transparent; font-size: 18px; transition: border-color 150ms ease, color 150ms ease; }
.dp-t td.cell.can:hover .dp-add { border-color: #C9BBA5; color: var(--text-3); }

/* Schicht-Chip */
.dp-chip { flex: 1; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; width: 100%; min-width: 0; padding: 8px 10px; border-radius: var(--r-sm); border: 1px solid transparent; background: #EFE9DF; text-align: left; cursor: pointer; font: inherit; color: var(--ink); }
.dp-chip.ro { cursor: default; }
.dp-chip .tm { font: 700 13px/1.2 var(--sans); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dp-chip .sb { font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.dp-chip.draft { background: var(--surface); border: 1.5px dashed var(--text-3); }
.dp-chip.mine { border: 2px solid var(--accent-deep); }
.dp-chip.draft.mine { border: 2px dashed var(--accent-deep); }
.dp-lv { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); font-size: 12px; color: var(--text-2); }
.dp-lv .ic { font-size: 13px; color: var(--accent-deep); flex: none; }
.dp-lv.pending { border-style: dashed; border-color: var(--text-3); background: var(--surface); }

/* Tageskarten (Handy) */
.dp-list { display: none; flex-direction: column; gap: 10px; }
.dp-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; }
.dp-card.today { background: #FDF3EA; border-color: #F6CFAF; }
.dp-ch { display: flex; align-items: baseline; gap: var(--s2); margin-bottom: 10px; }
.dp-ch .l { font-weight: 700; }
.dp-card.today .dp-ch .l { color: var(--accent-deep); }
.dp-ch .dt { color: var(--text-3); font-size: 14px; }
.dp-ch .hol { font-size: 12px; color: var(--bad); }
.dp-ch .td { margin-left: auto; font: 700 12px/1 var(--sans); color: var(--accent-deep); }
.dp-items { display: flex; flex-direction: column; gap: 6px; }
.dp-chip.li { flex-direction: row; align-items: center; gap: var(--s3); padding: 10px 12px; border-radius: var(--r-md); }
.dp-chip.li .tm { font-size: var(--fs-body); }
.dp-chip.li .wh { flex: 1; min-width: 0; font-size: 14px; }
.dp-chip.li .wh b { font-weight: 600; }
.dp-chip.li .wh span { color: var(--text-2); }
.dp-items .dp-lv { padding: 10px 12px; border-radius: var(--r-md); font-size: 14px; }
.dp-none { font-size: 14px; color: var(--text-3); }

/* Dialog Schicht */
.dp-form { display: flex; flex-direction: column; gap: var(--s4); }
.dp-g3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: var(--s3); }
.dp-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.dp-tile { display: flex; align-items: center; justify-content: center; gap: var(--s2); height: 42px; padding: 0 var(--s2); border-radius: var(--r-md); border: 1.5px solid var(--line); background: var(--surface); font: 600 14px/1 var(--sans); color: var(--ink); cursor: pointer; min-width: 0; }
.dp-tile i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.dp-tile.on { border-color: var(--accent-deep); background: var(--accent-soft); }

@media (max-width: 1299px) {
  .dp-t .dp-chip .tm .a, .dp-t .dp-chip .tm .b { display: block; }
}
@media (max-width: 1179px) {
  .dp-who { padding: 14px 12px; }
  .dp-wi { gap: 8px; }
  .dp-wi .av { width: 32px; height: 32px; font-size: 11px; }
}
@media (max-width: 1023px) {
  .dp-t { min-width: 820px; }
}
@media (min-width: 1180px) {
  .dp-t col.c-who { width: 200px; }
  .dp-my { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
}
@media (min-width: 1700px) {
  .dp-t col.c-who { width: 240px; }
  .dp-t td.cell { height: 88px; }
}
@media (max-width: 767px) {
  .dp-grid { display: none; }
  .dp-list { display: flex; }
  .dp-legend { margin-left: 0; width: 100%; justify-content: flex-end; }
  .dp .ph .acts { flex: 1 1 100%; }
  .dp .ph .acts .btn { flex: 1 1 auto; }
  .dp-next .big { font-size: 40px; }
}
