/* Mein Zeitprotokoll (.zp-*) und Wochenstatistik K25-K28 (.zps-*), Regeln des Ist (public_html/index.html 1667-1760).
   Gemeinsame Teile (.zp-info, .zp-caret, .zp-icon, .zp-badge) stehen schon in wochenplanung.css und basis.css. */
.zp-input-row{display:flex; gap:8px; flex-wrap:wrap;}
.zp-input-row .btn-primary{align-self:stretch;}
.zp-input-row input{flex:1 1 280px; min-width:0; font:inherit; font-size:14px; padding:9px 12px; border:1px solid var(--border); border-radius:var(--radius-sm); background:var(--page); color:var(--text-primary);}
.zp-input-row input:focus{border-color:var(--accent);}
.zp-input-row input.zp-editing{border-color:var(--status-warning); background:color-mix(in srgb, var(--status-warning) 10%, var(--page));}
.zp-picker{display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-top:8px; font-size:12px; color:var(--text-secondary);}
.zp-picker[hidden]{display:none;}
.zp-picker input{font:inherit; padding:5px 8px; border:1px solid var(--border); border-radius:var(--radius-sm); background:var(--page); color:var(--text-primary);}
.zp-info.is-edit{color:var(--status-warning-text);}
.zp-toolbar{display:flex; align-items:center; gap:8px; flex-wrap:wrap; justify-content:flex-end;}
.zp-day{margin-bottom:12px;}
.zp-head{display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; cursor:pointer; user-select:none; padding:7px 10px; border-radius:var(--radius-sm);}
.zp-head.day{background:color-mix(in srgb, var(--text-primary) 6%, var(--surface-1)); font-weight:var(--fw-semibold); font-size:13.5px;}
.zp-head.kunde{margin:6px 0 0 14px; border-left:3px solid var(--accent); border-radius:0 var(--radius-sm) var(--radius-sm) 0; font-size:13px; font-weight:var(--fw-semibold); color:var(--text-secondary);}
.zp-head-title{background:none; border:none; padding:0; font:inherit; color:inherit; cursor:pointer; display:flex; align-items:center; gap:6px; text-align:left; min-width:0;}
.zp-head.is-collapsed .zp-caret{transform:rotate(-90deg);}
.zp-badges{display:flex; align-items:center; gap:6px; flex-shrink:0;}
.zp-badge{font-size:11.5px; padding:2px 8px; border-radius:10px; background:var(--surface-1); border:1px solid var(--border); color:var(--text-secondary); font-weight:var(--fw-regular); white-space:nowrap;}
.zp-badge.neg{border-color:var(--status-warning); color:var(--status-warning-text);}
.zp-badge.zero{border-color:var(--status-good); color:var(--success-text);}
.zp-badge.pos{border-color:var(--accent); color:var(--accent);}
.zp-icon.danger:hover{color:var(--status-critical-text);}
.zp-entries{list-style:none; margin:4px 0 0 30px; padding:0;}
.zp-entry{display:flex; align-items:baseline; gap:12px; padding:6px 6px; border-bottom:1px solid var(--border); font-size:13px;}
.zp-entry:last-child{border-bottom:none;}
.zp-entry.is-nf{background:color-mix(in srgb, var(--status-critical) 7%, var(--surface-1));}
.zp-time{color:var(--accent); font-variant-numeric:tabular-nums; white-space:nowrap;}
.zp-text{flex:1; min-width:0; word-break:break-word;}
.zp-nf{display:inline-block; margin-left:6px; font-size:11px; font-weight:var(--fw-bold); color:var(--status-critical-text); border:1px solid var(--status-critical); border-radius:3px; padding:0 4px; vertical-align:middle;}
.zp-note{color:var(--text-secondary); border-color:var(--border); font-weight:var(--fw-semibold);}
.zp-min{color:var(--text-muted); font-style:italic; white-space:nowrap; font-variant-numeric:tabular-nums;}
.zp-actions{display:flex; gap:2px; white-space:nowrap;}
.zps-sum{flex:1 1 320px; display:flex; flex-wrap:wrap; gap:4px 16px; font-size:12.5px; color:var(--text-secondary); font-variant-numeric:tabular-nums;}
.zps-sum strong{color:var(--text-primary); font-weight:var(--fw-semibold);}
.zps-sum .pos, .zps-big.pos{color:var(--zps-ueber);}
.zps-sum .neg, .zps-big.neg{color:var(--zps-unter);}
.zps-toggle{display:inline-flex; align-items:center; gap:6px;}
.zps-toggle[aria-expanded="false"] .zp-caret{transform:rotate(-90deg);}
.zps-grid{display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.35fr) minmax(0,.7fr) minmax(0,1.25fr); gap:18px;}
.zps-grid > .zps-w + .zps-w{border-left:1px solid var(--grid); padding-left:18px;}
@media (max-width: 1280px){
  .zps-grid{grid-template-columns:repeat(2, minmax(0,1fr));}
  .zps-grid > .zps-w:nth-child(2n+1){border-left:0; padding-left:0;}
  .zps-grid > .zps-w:nth-child(n+3){border-top:1px solid var(--grid); padding-top:14px;}
}
@media (max-width: 900px){
  .zps-grid{grid-template-columns:minmax(0,1fr);}
  .zps-grid > .zps-w + .zps-w{border-left:0; padding-left:0; border-top:1px solid var(--grid); padding-top:14px;}
}
.zps-w{display:flex; flex-direction:column; gap:10px; min-width:0;}
.zps-title{font-size:12px; font-weight:var(--fw-semibold); color:var(--text-secondary); display:flex; justify-content:space-between; gap:8px; flex-wrap:wrap;}
.zps-title span{font-weight:var(--fw-regular); color:var(--text-muted);}
.zps-w svg{display:block; max-width:100%; height:auto; overflow:visible;}
.zps-ink{fill:var(--text-primary);}
.zps-ink2{fill:var(--text-secondary);}
.zps-mut{fill:var(--text-muted);}
.zps-title-stack{flex-direction:column; justify-content:flex-start; gap:2px;}
.zps-donut{display:flex; justify-content:center; align-items:flex-start; gap:12px 20px; flex-wrap:wrap;}
.zps-donut-col{display:flex; flex-direction:column; gap:12px; width:210px; max-width:100%;}
.zps-donut-col svg{align-self:center;}
.zps-kv{display:flex; flex-direction:column; gap:4px; font-size:12.5px;}
.zps-nf table{width:100%; border-collapse:collapse; font-size:15px; font-variant-numeric:tabular-nums;}
.zps-nf th, .zps-nf td{padding:9px 6px; border-bottom:1px solid var(--grid); text-align:left;}
.zps-nf th{font-size:12px; font-weight:var(--fw-semibold); color:var(--text-muted); padding-top:4px;}
.zps-nf td:nth-child(3){font-weight:var(--fw-semibold);}
.zps-nf td:last-child{color:var(--text-secondary);}
.zps-nf th:not(:first-child), .zps-nf td:not(:first-child){text-align:right;}
.zps-nf td small{color:var(--text-muted); font-size:11.5px; font-weight:var(--fw-regular); margin-left:6px;}
.zps-kv > div{display:flex; align-items:center; gap:8px;}
.zps-kv b{margin-left:auto; font-weight:var(--fw-semibold); font-variant-numeric:tabular-nums;}
.zps-sw{width:10px; height:10px; border-radius:3px; flex-shrink:0; display:inline-block;}
.zps-sw.ist{background:var(--zps-ist);}
.zps-sw.rest{background:var(--zps-track);}
.zps-sw.ueber{background:var(--zps-ueber);}
.zps-sw.unter{background:var(--zps-unter);}
.zps-sw.lauf{background:repeating-linear-gradient(45deg, var(--zps-ist) 0 2px, transparent 2px 5px); border:1px solid var(--zps-ist);}
.zps-legend{display:flex; flex-wrap:wrap; gap:10px; font-size:11.5px; color:var(--text-secondary);}
.zps-legend span{display:inline-flex; align-items:center; gap:5px;}
.zps-big{font-size:32px; font-weight:var(--fw-bold); line-height:1.05; font-variant-numeric:tabular-nums;}
.zps-big.zero{color:var(--text-muted);}
.zps-foot{font-size:11.5px; color:var(--text-muted);}
.zps-chips{display:flex; flex-wrap:wrap; gap:6px;}
.zps-chip{font-variant-numeric:tabular-nums;}
.zps-chip.pos{border-color:var(--zps-ueber); color:var(--zps-ueber);}
.zps-chip.neg{border-color:var(--zps-unter); color:var(--zps-unter);}
.zps-chip.today{border-style:dashed; color:var(--text-muted);}
/* K25 Wochenstatistik: blau = Soll erreicht, rot = unter Soll, grün = über Soll */
.zps{--zps-ist:#33558e; --zps-unter:var(--status-critical); --zps-ueber:var(--status-good); --zps-track:var(--grid);}
:root[data-theme="dark"] .zps{--zps-ist:#85a5e9;}
.zps .panel-head{flex-wrap:wrap;}
.zps.is-collapsed .panel-head{padding-bottom:14px;}
/* Read-Only Intern: kein Erfassen, kein TXT-Import (der Server lehnt Schreiben ohnehin mit 403 ab) */
body.ro .panel:has(#zpInput), body.ro #zpImportBtn{display:none !important;}
