/* Seiten-Anordnung Zeiten (Entwurf Zeiten.dc.html). Breiten: Handy < 768, schmal 768 bis 1179, breit ab 1180. */
.zt { display: flex; flex-direction: column; gap: var(--s5); }
.zt .ph { margin: 0; }
.zt .bar { margin: 0; gap: 10px; }
.zt-exp .zt-cd { font-size: 14px; }
.zt-exp { border-radius: var(--r-md); padding: 0 16px; }
.zt .ph .acts .btn.primary { border-radius: var(--r-md); padding: 0 16px; }

/* Monatswahl: helle Box mit zwei 34er-Knoepfen */
.zt-month, .zp-nav { display: inline-flex; align-items: center; gap: var(--s1); padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.zt-month button, .zp-nav button { width: 34px; height: 34px; border: 0; border-radius: var(--r-xs); background: transparent; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); }
.zt-month button .ic, .zp-nav button .ic { font-size: 18px; }
.zt-month button:hover, .zp-nav button:hover { background: var(--surface-2); }
.zt-month .lbl { min-width: 120px; text-align: center; font-weight: 700; font-size: var(--fs-body); }
.zt-bar .select { min-width: 170px; }

/* Werte-Farben wie im Entwurf */
.zt-neg { color: var(--bad); }
.zt-pos { color: #4A6630; }
.zt-zero { color: var(--text-3); }
.zt .r { text-align: right; }

/* Team: vier Kennzahlen */
.zt-tstats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: var(--s3); }
.zt-ts { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; }
.zt-ts .l, .zt-k .l { font: 600 12px/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.zt-ts .v { font: 400 36px/1 var(--serif); margin-top: 10px; font-variant-numeric: tabular-nums; }
.zt-ts .v.zt-pos, .zt-ts .v.zt-zero { color: var(--ink); }

/* Team: Tabelle als Raster */
.zt-team { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.zt-th, .zt-tr { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) 56px 56px 84px 70px 18px; gap: var(--s4); align-items: center; }
.zt-th { padding: 12px 20px; background: var(--surface-2); font: 600 12px/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.zt-th > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zt-tr { width: 100%; padding: 14px 20px; border: 0; border-top: 1px solid #EAE3D6; background: transparent; text-align: left; cursor: pointer; font: 400 var(--fs-body)/1.45 var(--sans); color: var(--ink); }
.zt-tr:hover { background: #FFFDF9; }
.zt-tr.inactive { opacity: .7; }
.zt-who { display: flex; align-items: center; gap: var(--s3); min-width: 0; }
.zt-who .av { width: 38px; height: 38px; font-size: 12px; font-weight: 700; }
.zt-who .nm { min-width: 0; }
.zt-who .n { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zt-who .s { display: block; font-size: 13px; color: var(--text-3); }
.zt-prog { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.zt-pbar { position: relative; display: block; height: 10px; margin: 0; border-radius: 6px; background: #EAE3D6; overflow: hidden; }
.zt-pbar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; background: var(--accent-deep); }
.zt-pbar i.good { background: #5F7F40; }
.zt-pm { display: none; font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.zt-ist { font-weight: 600; font-variant-numeric: tabular-nums; }
.zt-sl { color: var(--text-2); font-variant-numeric: tabular-nums; }
.zt-kt { font-weight: 600; color: var(--text-2); font-variant-numeric: tabular-nums; }
.zt-kt.zt-neg { color: var(--bad); }
.zt-chev .ic { font-size: 18px; color: var(--text-3); }
.zt-pill { display: inline-block; padding: 4px 10px; border-radius: var(--r-pill); font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; background: var(--surface-2); color: var(--text-2); }
.zt-pill.zt-neg { background: #F8E9E4; color: var(--bad); }
.zt-pill.zt-pos { background: #EEF3E8; color: #4A6630; }
.zt-foot { margin: 0; font-size: 13px; color: var(--text-3); max-width: 760px; text-wrap: pretty; }

/* Einzelansicht: Stundenkonto und vier Kennzahlen */
.zt-sumgrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s4); align-items: stretch; }
.zt-konto { background: #FDF1E7; border: 1px solid #F3D5BB; border-radius: var(--r-sheet); padding: 24px 26px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.zt-konto .kicker { margin: 0; }
.zt-konto .big { font: 400 64px/.9 var(--serif); font-variant-numeric: tabular-nums; }
.zt-konto .txt { color: var(--text-2); margin-top: 10px; font-size: var(--fs-ui); }
.zt-konto .pl { display: flex; justify-content: space-between; gap: var(--s3); font-size: 13px; color: var(--text-2); margin-bottom: 6px; }
.zt-konto .pb { height: 10px; border-radius: 6px; background: rgba(46, 44, 41, .06); overflow: hidden; }
.zt-konto .pb i { display: block; height: 100%; background: var(--accent); border-radius: 6px; }
.zt-k4 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.zt-k { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; }
.zt-k .v { margin-top: 8px; display: flex; align-items: baseline; gap: 6px; }
.zt-k .n { font: 400 32px/1 var(--serif); font-variant-numeric: tabular-nums; }
.zt-k .n.zt-zero { color: var(--ink); }
.zt-k .u { font-size: 13px; color: var(--text-3); }

/* Einzelansicht: Tagesliste als Raster */
.zt-days { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.zt-dh, .zt-r { display: grid; grid-template-columns: 84px minmax(0, 1fr) 112px 44px 48px 44px 76px 34px; gap: var(--s3); align-items: center; }
.zt-dh { padding: 12px 20px; background: var(--surface-2); font: 600 12px/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.zt-dh > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zt-r { padding: 12px 20px; border-top: 1px solid #EAE3D6; font-size: var(--fs-body); min-height: 46px; }
.zt-r.zt-cont { border-top-style: dashed; }
.zt-r.zt-empty { background: #FCF6F2; }
.zt-r.zt-hol { background: #F6F2EA; }
.zt-day { display: flex; align-items: baseline; gap: var(--s2); }
.zt-day .wd { width: 22px; font: 700 12px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.zt-day .wd.we { color: var(--accent-deep); }
.zt-day .dt { font-weight: 600; font-variant-numeric: tabular-nums; }
.zt-span { grid-column: 2 / 6; min-width: 0; }
.zt-span-all { grid-column: 2 / -1; min-width: 0; }
.zt-none { color: var(--text-3); font-style: italic; }
.zt-tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--r-pill); background: var(--surface-2); font-size: 13px; font-weight: 600; color: var(--text-2); }
.zt-tag .ic { font-size: 12px; }
.zt-r.zt-hol .zt-tag { background: #EFE9DF; }
.zt-loc { color: var(--text-2); min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.zt-sub { display: block; font-size: 13px; color: var(--text-3); }
.zt-sub.zt-hint { display: inline-flex; align-items: center; gap: 6px; color: #6F4D25; }
.zt-sub.zt-hint .ic { font-size: 13px; color: var(--warn); }
.zt-time { font-variant-numeric: tabular-nums; white-space: nowrap; }
.zt-pause { color: var(--text-2); font-variant-numeric: tabular-nums; }
.zt-work { font-weight: 700; font-variant-numeric: tabular-nums; }
.zt-soll { color: var(--text-3); font-variant-numeric: tabular-nums; }
.zt-diff { font-weight: 700; font-variant-numeric: tabular-nums; }
.zt-m { display: none; min-width: 0; }
.zt-m .t { display: block; font-weight: 600; font-variant-numeric: tabular-nums; }
.zt-m .s { display: block; font-size: 13px; color: var(--text-3); }
.zt-act { display: flex; justify-content: flex-end; gap: 2px; }
.zt-edit { width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--text-2); }
.zt-edit .ic { font-size: 15px; }
.zt-edit:hover { background: var(--surface-2); }
.zt-r.zt-sum { border-top: 1px solid var(--line-2); background: var(--surface-2); font-weight: 700; font-variant-numeric: tabular-nums; }
.zt-info { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--text-3); max-width: 780px; }
.zt-info .ic { font-size: 16px; margin-top: 1px; flex: none; }
.zt-info span { text-wrap: pretty; }

/* Aenderungsprotokoll (nicht im Entwurf, im Stil der Tagesliste) */
.zt-prot .sec-title { margin: 0 0 var(--s3); }
.zt-auditbox { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.zt-audit > li { align-items: flex-start; border-top-color: #EAE3D6; padding: 14px 20px; }
.zt-ch { display: grid; grid-template-columns: 72px 1fr; gap: var(--s2); font-size: 13px; margin-top: var(--s1); }
.zt-more { margin-top: var(--s2); }

/* Dialog Eintrag */
.zt-form { display: flex; flex-direction: column; gap: var(--s4); }
.zt-g3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--s3); }
.zt-calc { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: 14px 16px; border-radius: var(--r-lg); background: var(--surface-2); }
.zt-calc.on { background: var(--accent-soft); }
.zt-calc .lbl { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-2); }
.zt-calc .lbl .ic { font-size: 18px; color: var(--accent-deep); flex: none; }
.zt-calc .v { font: 400 28px/1 var(--serif); font-variant-numeric: tabular-nums; }
.zt-l { font-size: 14px; font-weight: 600; margin-bottom: var(--s2); }
.zt-opt { font-weight: 400; color: var(--text-3); font-size: 13px; }
/* Auswahl-Chips (Pause, Vorlagen), auch vom Dienstplan genutzt */
.zp-chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.zp-chip { height: 36px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: var(--surface); font: 600 14px/1 var(--sans); color: var(--ink); cursor: pointer; font-variant-numeric: tabular-nums; }
.zp-chip.on { border-color: var(--accent-deep); background: var(--accent-soft); }

/* Druckansicht */
.zt-pph { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s4); margin-bottom: var(--s4); }
.zt-pkv { margin-bottom: var(--s5); }
.zt-print col.c-date { width: 90px; }
.zt-print col.c-time { width: 130px; }
.zt-print col.c-n { width: 70px; }

/* breit ab 1180 */
@media (min-width: 1180px) {
  .zt-th, .zt-tr { grid-template-columns: minmax(200px, 1.6fr) minmax(180px, 1.6fr) 90px 90px 110px 110px 28px; }
  .zt-dh, .zt-r { grid-template-columns: 110px minmax(140px, 1fr) 150px 70px 70px 70px 90px 72px; }
  .zt-sumgrid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
}
/* 1920: mehr Luft in den Zeilen, Kennzahlen behalten ihre Breite */
@media (min-width: 1700px) {
  .zt-th, .zt-tr { grid-template-columns: minmax(240px, 1.4fr) minmax(260px, 2fr) 110px 110px 130px 130px 28px; }
  .zt-dh, .zt-r { grid-template-columns: 120px minmax(220px, 1.4fr) 180px 90px 90px 90px 110px 72px; }
}
/* Handy */
@media (max-width: 767px) {
  .zt { gap: var(--s5); }
  .zt .ph .acts { flex: 0 0 auto; }
  .zt .ph .acts:has(.btn.primary) { flex: 1 1 100%; }
  .zt-th, .zt-tr .zt-c { display: none; }
  .zt-tr { grid-template-columns: minmax(0, 1fr) 90px auto; padding: 14px 16px; }
  .zt-pm { display: block; }
  .zt-r { padding: 12px 14px; }
  .zt-konto .big { font-size: 56px; }
}
/* Tagesliste kompakt bis 899 (Handy und iPad hoch), wie die Handy-Ansicht des Entwurfs */
@media (max-width: 899px) {
  .zt-dh, .zt-days .zt-c { display: none; }
  .zt-r { grid-template-columns: 88px minmax(0, 1fr) 64px 36px; }
  .zt-m { display: block; }
  .zt-span, .zt-span-all { grid-column: auto; }
  .zt-r.zt-hol .zt-span-all { grid-column: 2 / -1; }
}
