/* ============================================================
   PZ Wizard — Elegantní Mytí brand redesign
   Powered by colors_and_type.css tokens.
   ============================================================ */

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; -webkit-font-smoothing: antialiased; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--em-bg-soft);
  color: var(--em-text);
  font-family: var(--font-body);
  min-height: 100vh;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

/* Hide native number spinners */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"] { -moz-appearance: textfield; }

#loading {
  padding: 80px 24px; text-align: center;
  color: var(--em-text-mute); font-size: var(--fs-body);
  font-weight: 600;
}
.hidden { display: none !important; }

/* ========================================================
   HEADER
   ======================================================== */
.pz-header {
  position: relative; overflow: hidden;
  background: linear-gradient(155deg, #0D2A4E 0%, #1A8FD9 60%, #2EBED2 100%);
  color: #fff;
  padding-top: 12px;
}
.pz-header-decor {
  position: absolute; inset: 0;
  width: 100%; height: 100%; pointer-events: none;
}
.pz-header-inner {
  position: relative;
  padding: 12px 20px 28px;
}
.pz-top-row {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 18px;
}
.pz-mark {
  width: 32px; height: 32px; border-radius: 10px;
  background: rgba(255,255,255,.18); backdrop-filter: blur(10px);
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.25);
  font-family: var(--font-heading); font-weight: 800; font-size: 12px;
  letter-spacing: -0.03em;
  flex: none;
}
.pz-meta {
  display: flex; flex-direction: column; min-width: 0; flex: 1;
}
.pz-eyebrow {
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  opacity: 0.8; font-weight: 700; white-space: nowrap;
}
.pz-meta-sub {
  font-size: 13px; opacity: 0.7; font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pz-progress-count {
  font-size: 15px; opacity: 0.95;
  display: flex; align-items: center; gap: 6px;
  white-space: nowrap; flex: none;
}
.pz-progress-count b { font-variant-numeric: tabular-nums; font-weight: 700; }
.pz-progress-count .lbl { opacity: 0.7; }

.pz-klient {
  font-family: var(--font-heading); font-size: 28px; font-weight: 700;
  letter-spacing: -0.025em; line-height: 1.05;
  margin: 0 0 10px;
  word-wrap: break-word;
}
.pz-adresa {
  display: flex; align-items: center; gap: 8px;
  font-size: 15px; opacity: 0.95; margin-bottom: 14px;
  font-weight: 600; line-height: 1.35;
}

.pz-plan-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  margin-bottom: 16px;
}
.pz-plan-pill {
  background: rgba(255,255,255,.14); border-radius: 12px;
  padding: 8px 12px;
  display: flex; align-items: baseline; gap: 6px; white-space: nowrap;
  min-width: 0;
}
.pz-plan-pill .lbl {
  font-size: 11px; opacity: 0.75; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.pz-plan-pill .num {
  font-family: var(--font-heading); font-size: 18px; font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.pz-plan-pill .unit {
  font-size: 13px; opacity: 0.85; font-weight: 600;
}

.pz-progress-bar {
  height: 6px; border-radius: 999px;
  background: rgba(255,255,255,.18);
  overflow: hidden; position: relative;
}
.pz-progress-bar > div {
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, #8AD7FF, #fff);
  transition: width 0.4s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 0 12px rgba(255,255,255,.6);
}

.pz-status-pill {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 12px; padding: 6px 12px;
  font-size: 12px; font-weight: 700;
  border-radius: 999px;
}
.pz-status-pill.vraceno { background: rgba(255,188,125,.25); color: #FFBC7D; border: 1px solid rgba(255,188,125,.4); }
.pz-status-pill.ceka    { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.3); }

/* ========================================================
   SECTIONS
   ======================================================== */
.pz-content {
  margin-top: -14px; position: relative; z-index: 2;
  padding: 0 12px;
}

.pz-section {
  background: #fff;
  border-radius: 22px;
  padding: 22px 20px;
  margin-bottom: 18px;
  border: 1.5px solid #DCEEFF;
  box-shadow: 0 2px 8px rgba(13,42,78,.05);
  transition: box-shadow .25s, border-color .25s;
}
.pz-section.complete {
  border-color: var(--em-success);
  border-width: 2px;
  box-shadow: 0 2px 6px rgba(16,185,129,.12);
}

.pz-section-head {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 18px;
}
.pz-section-icon {
  width: 52px; height: 52px; border-radius: 16px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #F0FBFF 0%, #DCEEFF 100%);
  color: #1A8FD9;
  flex: none;
  transition: all .25s;
}
.pz-section.complete .pz-section-icon {
  background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  color: #fff;
}
.pz-section-num {
  font-size: 13px; font-weight: 700; color: var(--em-text-mute);
  margin-bottom: 2px;
}
.pz-section-title {
  font-family: var(--font-heading); font-size: 22px; font-weight: 700;
  color: var(--em-navy); letter-spacing: -0.015em; margin: 0;
}
.pz-section-titlebox { flex: 1; min-width: 0; }
.pz-done-badge {
  font-size: 14px; font-weight: 700; color: #fff;
  background: var(--em-success);
  padding: 6px 12px; border-radius: 999px;
  flex: none;
}

.pz-hint {
  font-size: 15px; color: #3d4f63;
  margin-bottom: 16px; line-height: 1.5;
}

/* ========================================================
   CHIPS (people, impregnace, plosina)
   ======================================================== */
.pz-chip-row {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 16px;
}
.pz-chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 2px solid #DCEEFF;
  background: #fff;
  color: var(--em-navy);
  font-family: var(--font-body); font-weight: 700; font-size: 17px;
  min-height: 52px;
  cursor: pointer; user-select: none;
  transition: all .2s;
  font-family: inherit;
}
.pz-chip.has-avatar { padding-left: 10px; }
.pz-chip.active {
  background: var(--em-navy);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(13,42,78,.18);
}
.pz-chip:active { transform: scale(0.97); }

.pz-chip-grad-active {
  background: linear-gradient(135deg, #1A8FD9, #2EBED2) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 4px 14px rgba(26,143,217,.3);
}
.pz-baleni {
  font-size: 13px; font-weight: 500; opacity: 0.7;
  margin-left: 2px;
}
.pz-chip.pz-chip-grad-active .pz-baleni { opacity: 0.85; }
.pz-quick-fills {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 8px;
}
.pz-quick-fill {
  flex: 1; min-width: 0;
  padding: 12px 14px;
  border: 1.5px solid #BFDFFF; border-radius: 10px;
  background: linear-gradient(180deg, #F8FCFF, #F0FBFF);
  color: var(--em-navy); font-weight: 700; font-size: 14px;
  cursor: pointer; font-family: inherit;
}
.pz-quick-fill:active { transform: scale(.97); background: #DCEEFF; }

/* Copy time button (na druhém+ člověku) */
.pz-copy-time {
  grid-column: 1 / -1;
  margin-top: 6px;
  padding: 8px 12px;
  background: rgba(255,255,255,.6);
  border: 1.5px dashed #8AD7FF;
  border-radius: 10px;
  color: #1A8FD9;
  font: 600 13px/1 var(--font-body);
  cursor: pointer;
  font-family: inherit;
}
.pz-copy-time:active { transform: scale(.98); background: #DCEEFF; }

/* Cena display (default zobrazuje plán) */
.pz-cena-display {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 4px;
  padding: 18px 20px;
  background: linear-gradient(180deg, #F8FCFF 0%, #F0FBFF 100%);
  border: 2px solid #DCEEFF;
  border-radius: 16px;
  margin-bottom: 12px;
}
.pz-cena-display .lbl {
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--em-text-mute);
}
.pz-cena-display .num {
  font-family: var(--font-heading); font-weight: 800; font-size: 32px;
  color: var(--em-navy); letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.pz-cena-display .sub {
  font-size: 13px; color: var(--em-text-mute); font-weight: 600;
  font-style: italic;
}
.pz-cena-jina, .pz-cena-zpet, .pz-faktura-zavrit {
  width: 100%;
  padding: 12px;
  background: #fff;
  border: 1.5px solid #BFDFFF;
  border-radius: 12px;
  color: #1A8FD9;
  font: 700 14px/1 var(--font-body);
  cursor: pointer;
  font-family: inherit;
  margin-top: 4px;
}
.pz-cena-jina:active, .pz-cena-zpet:active, .pz-faktura-zavrit:active {
  transform: scale(.98); background: #F0FBFF;
}

/* Faktura collapsed expander */
.pz-faktura-collapsed {
  display: flex; align-items: center; gap: 14px;
  width: 100%;
  padding: 16px 20px;
  margin-bottom: 18px;
  background: #fff;
  border: 1.5px solid #DCEEFF;
  border-radius: 16px;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}
.pz-faktura-collapsed:active { transform: scale(.99); background: #F8FCFF; }
.pz-faktura-collapsed .ico {
  width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(135deg, #F0FBFF 0%, #DCEEFF 100%);
  color: #1A8FD9;
  display: grid; place-items: center; flex: none;
}
.pz-faktura-collapsed .body { flex: 1; min-width: 0; }
.pz-faktura-collapsed .ttl {
  font: 700 16px/1.2 var(--font-heading);
  color: var(--em-navy); letter-spacing: -0.01em;
}
.pz-faktura-collapsed .sub {
  font-size: 13px; color: var(--em-text-mute);
  margin-top: 2px;
}
.pz-faktura-collapsed .chev {
  font-size: 22px; color: var(--em-text-mute);
}

.pz-avatar {
  width: 32px; height: 32px; border-radius: 999px;
  display: grid; place-items: center;
  font-family: var(--font-heading); font-weight: 700; font-size: 14px;
  color: #fff; flex: none;
}
.pz-chip.active .pz-avatar {
  box-shadow: 0 0 0 2px rgba(255,255,255,.25), 0 2px 6px var(--avatar-shadow, rgba(71,191,255,.35));
}

/* ========================================================
   LIDE TIME ROW (selected employee card)
   ======================================================== */
.pz-lide-times { display: grid; gap: 10px; }
.pz-lide-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center; gap: 12px;
  padding: 14px;
  background: linear-gradient(180deg, #F8FCFF 0%, #F0FBFF 100%);
  border-radius: 16px;
  border: 1.5px solid #BFDFFF;
}
.pz-lide-row .av { width: 36px; height: 36px; }
.pz-lide-row .name {
  font-size: 17px; font-weight: 700; color: var(--em-navy);
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pz-lide-remove {
  width: 36px; height: 36px; border-radius: 999px;
  border: 1.5px solid #DCEEFF; background: #fff;
  color: var(--em-text-mute);
  display: grid; place-items: center;
  cursor: pointer; flex: none; padding: 0;
}
.pz-lide-times-row {
  grid-column: 1 / -1;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding-top: 4px;
}
.pz-time-input {
  background: #fff; border: 1.5px solid #BFDFFF;
  border-radius: 10px; padding: 10px 8px;
  font-family: var(--font-heading); font-size: 18px; font-weight: 700;
  color: var(--em-navy); font-variant-numeric: tabular-nums;
  width: 96px; text-align: center; min-height: 48px;
  font-family: inherit;
}
.pz-time-arrow { color: #3d4f63; font-size: 22px; font-weight: 700; }
.pz-hours-summary {
  margin-top: 6px; padding: 10px 14px;
  font-size: 15px; color: #3d4f63; font-weight: 600;
  display: flex; align-items: center; gap: 8px;
}
.pz-hours-summary b { color: var(--em-navy); font-variant-numeric: tabular-nums; }

/* ========================================================
   NUMBER STEPPER
   ======================================================== */
.pz-numfield-label {
  font-size: 15px; font-weight: 700; color: #3d4f63;
  margin-bottom: 8px;
}
.pz-numfield {
  display: flex; align-items: center; gap: 8px;
  background: linear-gradient(180deg, #F8FCFF 0%, #F0FBFF 100%);
  border: 2px solid #DCEEFF;
  border-radius: 16px;
  padding: 8px 10px;
  transition: border-color .2s, box-shadow .2s;
  min-width: 0; /* allow shrink in narrow grid columns */
}
.pz-numfield.large { padding: 12px; }
.pz-numfield.has-value { border-color: var(--accent-color, #1A8FD9); }
.pz-numfield.accent-warm.has-value { border-color: #FAB82D; }
.pz-numfield:focus-within {
  border-color: var(--accent-color, #1A8FD9);
  box-shadow: 0 0 0 3px rgba(26,143,217,.12);
}
.pz-stepbtn {
  width: 44px; height: 44px; border-radius: 12px;
  background: #fff; border: 1.5px solid #BFDFFF;
  color: #1A8FD9; display: grid; place-items: center;
  cursor: pointer; flex: none; padding: 0;
  box-shadow: 0 2px 4px rgba(13,42,78,.06);
  font-family: inherit;
}
.pz-stepbtn:active { transform: scale(.95); }
.pz-numfield input {
  flex: 1; min-width: 0; width: 100%;
  border: none; background: transparent; text-align: center;
  font-family: var(--font-heading); font-weight: 700;
  font-size: 22px;
  color: var(--em-navy); letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  outline: none;
  padding: 8px 4px;
  cursor: text;
  /* iOS: ensure tap focuses input (some default forms could intercept) */
  pointer-events: auto;
  -webkit-user-select: text;
  user-select: text;
  -webkit-tap-highlight-color: rgba(26,143,217,.1);
}
.pz-numfield input:focus {
  background: rgba(255,255,255,.6);
  border-radius: 8px;
}
.pz-numfield.large input { font-size: 36px; padding: 10px 4px; }
.pz-numfield .suffix {
  font-family: var(--font-body); font-weight: 700;
  font-size: 14px; color: #3d4f63;
  padding: 0 2px; white-space: nowrap;
  flex: none;
}
.pz-numfield.large .suffix { font-size: 18px; padding: 0 4px; }

/* Compact stepper inside M² 2-col grid (saves horizontal space) */
.pz-m2-grid .pz-numfield { padding: 6px; gap: 4px; }
.pz-m2-grid .pz-numfield .pz-stepbtn { width: 36px; height: 36px; border-radius: 9px; }
.pz-m2-grid .pz-numfield input { font-size: 20px; padding: 6px 2px; }
.pz-m2-grid .pz-numfield .suffix { font-size: 13px; padding: 0; }

/* ========================================================
   M² SECTION
   ======================================================== */
.pz-m2-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pz-m2-cell .label-row {
  margin-bottom: 8px;
}
.pz-m2-cell .name {
  font-size: 16px; font-weight: 700; color: var(--em-navy); margin-bottom: 2px;
}
.pz-m2-cell .plan {
  font-size: 13px; font-weight: 600; color: #5b7088;
  font-variant-numeric: tabular-nums;
}
.pz-m2-cell .plan b { color: var(--em-navy); font-weight: 700; }
.pz-diff-badge {
  margin-top: 6px;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 999px;
  font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.pz-diff-badge.up   { background: rgba(16,185,129,.12); color: #059669; }
.pz-diff-badge.down { background: rgba(250,184,45,.18); color: #b76e00; }
.pz-diff-badge.neutral { background: rgba(255,255,255,.22); color: inherit; }

.pz-m2-sum {
  margin-top: 14px;
  border-radius: 14px;
  padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between;
  position: relative; overflow: hidden;
  background: #F0FBFF; color: var(--em-text-mute);
}
.pz-m2-sum.has-value {
  background: linear-gradient(135deg, #0D2A4E 0%, #1A8FD9 100%);
  color: #fff;
}
.pz-m2-sum::after {
  content: '';
  position: absolute; right: -20px; top: -20px;
  width: 100px; height: 100px; border-radius: 50%;
  background: radial-gradient(circle, rgba(138,215,255,.5), transparent 70%);
  opacity: 0;
}
.pz-m2-sum.has-value::after { opacity: 1; }
.pz-m2-sum-left { position: relative; z-index: 1; }
.pz-m2-sum .lbl {
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  opacity: 0.85;
}
.pz-m2-sum .num {
  font-family: var(--font-heading); font-weight: 800; font-size: 28px;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
}
.pz-m2-sum .num span { font-size: 16px; font-weight: 600; opacity: 0.8; }
.pz-m2-sum-right {
  text-align: right; position: relative; z-index: 1;
}
.pz-m2-sum-right .plan-line { font-size: 13px; opacity: 0.85; margin-bottom: 4px; font-weight: 600; }
.pz-m2-sum .pz-diff-badge.neutral { background: rgba(255,255,255,.22); color: #fff; }

/* ========================================================
   CENA — diff line below
   ======================================================== */
.pz-cena-meta {
  margin-top: 14px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 15px; color: #3d4f63; font-weight: 600;
}
.pz-cena-meta b { color: var(--em-navy); font-variant-numeric: tabular-nums; }
.pz-cena-meta .pz-diff-badge.up   { background: rgba(16,185,129,.12); color: #059669; }
.pz-cena-meta .pz-diff-badge.down { background: rgba(239,68,68,.12);  color: #dc2626; }

/* ========================================================
   DATUM + RATING
   ======================================================== */
.pz-date-input {
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(180deg, #F8FCFF 0%, #F0FBFF 100%);
  border: 2px solid #DCEEFF;
  border-radius: 16px; padding: 16px 18px; min-height: 60px;
}
.pz-date-input.has-value { border-color: #1A8FD9; }
.pz-date-input input {
  flex: 1; border: none; background: transparent; outline: none;
  font-family: var(--font-body); font-size: 18px; font-weight: 700;
  color: var(--em-navy);
  font-family: inherit;
}

.pz-rating-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px;
}
.pz-rating-head .lbl { font-size: 15px; font-weight: 700; color: #3d4f63; }
.pz-rating-head .picked { font-size: 15px; font-weight: 700; color: var(--em-navy); }
.pz-rating-grid {
  display: flex; justify-content: space-between; gap: 6px;
}
.pz-rating-btn {
  flex: 1; height: 64px;
  background: #F8FCFF;
  border: 2px solid #DCEEFF;
  border-radius: 14px;
  display: grid; place-items: center;
  color: #9aa8b9;
  cursor: pointer; transition: all .2s;
  padding: 0;
  font-family: inherit;
}
.pz-rating-btn.active {
  background: linear-gradient(135deg, #FAB82D, #FFBC7D);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 3px 10px rgba(250,184,45,.35);
}

/* ========================================================
   PHOTO GRID
   ======================================================== */
.pz-photo-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  margin-bottom: 12px;
}
.pz-photo-tile {
  position: relative; aspect-ratio: 1; border-radius: 12px;
  overflow: hidden; border: 1px solid #DCEEFF;
  background: #F0FBFF;
}
.pz-photo-tile img { width: 100%; height: 100%; object-fit: cover; }
.pz-photo-tile .remove {
  position: absolute; top: 4px; right: 4px;
  width: 22px; height: 22px; border-radius: 999px;
  background: rgba(13,42,78,.7); backdrop-filter: blur(6px);
  border: none; color: #fff;
  display: grid; place-items: center; cursor: pointer; padding: 0;
}
.pz-photo-tile.uploading::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(13,42,78,.4);
}
.pz-photo-tile.errored { border-color: var(--em-danger); }

.pz-tile-video { position: relative; width: 100%; height: 100%; }
.pz-tile-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.pz-tile-video-badge {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: rgba(13,42,78,.18);
  pointer-events: none;
}
.pz-tile-video-badge svg {
  filter: drop-shadow(0 2px 6px rgba(13,42,78,.5));
  width: 28px; height: 28px;
}

.pz-tile-spinner {
  position: absolute; top: 50%; left: 50%;
  width: 28px; height: 28px;
  margin: -14px 0 0 -14px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  animation: pz-spin .9s linear infinite;
  z-index: 2;
}
@keyframes pz-spin { to { transform: rotate(360deg); } }
.pz-photo-add {
  aspect-ratio: 1; border-radius: 14px;
  border: 2.5px dashed #8AD7FF;
  background: linear-gradient(135deg, #F0FBFF 0%, #DCEEFF 100%);
  color: #1A8FD9;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; padding: 8px;
  font-family: inherit; font-weight: 700; font-size: 14px;
}
#pz-photo-status { margin: 8px 0; font-size: 13px; min-height: 16px; }
#pz-photo-status .ok  { color: var(--em-success); font-weight: 600; }
#pz-photo-status .err { color: var(--em-danger); font-weight: 600; }

/* ========================================================
   TOGGLE ROW
   ======================================================== */
.pz-toggle {
  display: flex; align-items: center; gap: 14px;
  padding: 16px;
  border-radius: 16px;
  background: #F8FCFF;
  border: 2px solid #DCEEFF;
  cursor: pointer;
  transition: all .2s; min-height: 68px;
  user-select: none;
}
.pz-toggle.on {
  background: linear-gradient(135deg, #F0FBFF, #DCEEFF);
  border-color: #8AD7FF;
}
.pz-toggle .check {
  width: 32px; height: 32px; border-radius: 9px;
  background: #fff;
  border: 2px solid #BFDFFF;
  display: grid; place-items: center; flex: none;
  color: #fff;
}
.pz-toggle.on .check {
  background: linear-gradient(135deg, #1A8FD9, #2EBED2);
  border-color: transparent;
  box-shadow: 0 3px 8px rgba(26,143,217,.3);
}
.pz-toggle .check svg { opacity: 0; transition: opacity .15s; }
.pz-toggle.on .check svg { opacity: 1; }
.pz-toggle .body { flex: 1; }
.pz-toggle .ttl { font-size: 17px; font-weight: 700; color: var(--em-navy); }
.pz-toggle .sub { font-size: 14px; color: #3d4f63; margin-top: 2px; }

/* ========================================================
   PLATBA — 3-col tiles
   ======================================================== */
.pz-platba-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px;
}
.pz-platba-btn {
  padding: 20px 6px; border-radius: 16px;
  border: 2px solid #DCEEFF;
  background: #fff;
  color: var(--em-navy);
  cursor: pointer; min-height: 100px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  transition: all .2s;
  font-family: inherit;
}
.pz-platba-btn.active { border-color: transparent; color: #fff; box-shadow: 0 6px 16px rgba(13,42,78,.18); }
.pz-platba-btn[data-platba="Hotově"].active           { background: linear-gradient(135deg,#10b981,#34d399); }
.pz-platba-btn[data-platba="Faktura"].active          { background: linear-gradient(135deg,#1A8FD9,#47BFFF); }
.pz-platba-btn[data-platba="Hotově s Fakturou"].active { background: linear-gradient(135deg,#FAB82D,#FFBC7D); }
.pz-platba-btn .glyph { font-size: 30px; line-height: 1; }
.pz-platba-btn .label { font-family: var(--font-body); font-weight: 700; font-size: 16px; }

/* ========================================================
   FAKTURA inputs
   ======================================================== */
.pz-input-large {
  width: 100%; padding: 16px 18px; border-radius: 14px;
  border: 2px solid #DCEEFF;
  background: linear-gradient(180deg,#F8FCFF,#F0FBFF);
  font-family: var(--font-heading); font-weight: 700; font-size: 22px;
  color: var(--em-navy); letter-spacing: 0.05em;
  font-variant-numeric: tabular-nums;
  outline: none; min-height: 60px; box-sizing: border-box;
  font-family: inherit;
}
.pz-input-large.has-value { border-color: #1A8FD9; }
.pz-textarea {
  width: 100%; padding: 16px 18px; border-radius: 14px;
  border: 2px solid #DCEEFF; background: #F8FCFF;
  font-family: var(--font-body); font-size: 17px; font-weight: 600;
  color: var(--em-navy);
  outline: none; box-sizing: border-box; resize: vertical;
  min-height: 80px;
  font-family: inherit;
}

.pz-field-label {
  font-size: 15px; font-weight: 700; color: #3d4f63;
  margin-bottom: 8px; display: block;
}

/* ========================================================
   SUBMIT BAR (sticky) + status
   ======================================================== */
.pz-submitbar {
  position: sticky; bottom: 0; left: 0; right: 0;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0));
  background: linear-gradient(180deg, rgba(240,251,255,0) 0%, #F0FBFF 30%);
  padding-top: 24px;
  z-index: 5;
  transition: opacity .15s, transform .15s;
}
/* Hide submit bar while user is typing (prevents covering inputs above keyboard) */
body.kbd-open .pz-submitbar {
  opacity: 0; pointer-events: none;
  transform: translateY(20px);
}
.pz-submit {
  width: 100%; padding: 22px 20px;
  border-radius: 18px; border: none;
  background: linear-gradient(135deg, #1A8FD9 0%, #47BFFF 50%, #2EBED2 100%);
  color: #fff;
  font-family: var(--font-heading); font-weight: 800; font-size: 20px;
  letter-spacing: -0.01em;
  min-height: 64px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(26,143,217,.4), inset 0 0 0 1px rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center; gap: 12px;
  transition: all .25s;
  font-family: inherit;
}
.pz-submit:disabled {
  background: #CFDDEC;
  cursor: not-allowed;
  box-shadow: none;
}
.pz-submit:not(:disabled):active { transform: scale(.98); }

.pz-submit-status {
  text-align: center;
  font-size: 12px; color: var(--em-text-mute); font-weight: 600;
  margin-top: 8px; min-height: 16px;
}
.pz-submit-errors {
  text-align: center;
  font-size: 14px; color: var(--em-danger); font-weight: 700;
  margin-top: 6px;
}
.pz-submit-errors:empty { display: none; }

.pz-submit-missing {
  margin-top: 8px;
  padding: 10px 12px;
  background: rgba(250,184,45,.15);
  border: 1.5px solid rgba(250,184,45,.5);
  border-radius: 12px;
  color: #b76e00;
  font-size: 13px; font-weight: 600;
  line-height: 1.4;
}
.pz-submit-missing b { color: #8a4f00; }

/* ========================================================
   EMPLOYEE TYP TAGS + ADD CHIP + MODAL
   ======================================================== */
.pz-emp-tag {
  margin-left: 6px;
  padding: 2px 7px; border-radius: 999px;
  background: rgba(250,184,45,.18);
  color: #b76e00;
  font-size: 10px; font-weight: 800; letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}
.pz-chip.is-subdodavka:not(.active) {
  border-style: dashed;
  border-color: #FAB82D;
  background: rgba(250,184,45,.04);
}
.pz-chip.is-brigadnik:not(.active) {
  border-color: #BFDFFF;
}
.pz-chip-add {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px;
  background: rgba(255,255,255,.6);
  border: 2px dashed #8AD7FF;
  color: #1A8FD9;
  font-weight: 700;
}
.pz-chip-add svg { color: #1A8FD9; }

/* Modal */
.pz-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(13,42,78,.55);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  z-index: 50;
  animation: pz-fade-in .15s ease-out;
}
@keyframes pz-fade-in { from { opacity: 0; } to { opacity: 1; } }
.pz-modal {
  background: #fff; border-radius: 22px;
  padding: 22px;
  width: 100%; max-width: 420px;
  box-shadow: 0 24px 48px rgba(13,42,78,.3);
  animation: pz-slide-up .2s cubic-bezier(.4,0,.2,1);
}
@keyframes pz-slide-up { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.pz-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.pz-modal-head h3 {
  font-family: var(--font-heading); font-size: 22px; font-weight: 700;
  color: var(--em-navy); letter-spacing: -0.015em; margin: 0;
}
.pz-modal-x {
  width: 36px; height: 36px; border-radius: 999px;
  border: 1.5px solid #DCEEFF; background: #fff;
  color: var(--em-text-mute);
  display: grid; place-items: center; cursor: pointer; padding: 0;
}
.pz-modal-warn {
  padding: 10px 14px; border-radius: 12px;
  background: rgba(239,68,68,.08); color: #b3261e;
  font-size: 14px; font-weight: 600;
  margin-bottom: 14px;
}
.pz-modal-field { display: block; margin-bottom: 16px; }
.pz-modal-field .lbl {
  display: block;
  font-size: 14px; font-weight: 700; color: #3d4f63;
  margin-bottom: 8px;
}
.pz-modal-field input {
  width: 100%; padding: 14px 16px;
  border: 2px solid #DCEEFF; border-radius: 12px;
  background: linear-gradient(180deg, #F8FCFF, #F0FBFF);
  font: 600 18px/1.4 var(--font-body);
  color: var(--em-navy);
  outline: none;
  font-family: inherit;
}
.pz-modal-field input:focus { border-color: #1A8FD9; box-shadow: 0 0 0 3px rgba(26,143,217,.12); }
.pz-modal-field input:disabled { opacity: .5; cursor: not-allowed; }
.pz-modal-typ-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px;
}
.pz-typ-chip {
  padding: 12px 8px; border-radius: 12px;
  border: 2px solid #DCEEFF; background: #fff;
  color: var(--em-navy);
  font: 700 15px/1 var(--font-body);
  cursor: pointer;
  font-family: inherit;
}
.pz-typ-chip.active {
  background: linear-gradient(135deg, #1A8FD9, #2EBED2);
  color: #fff; border-color: transparent;
}
.pz-typ-chip:disabled { opacity: .5; cursor: not-allowed; }
.pz-modal-err {
  color: var(--em-danger); font-size: 14px; font-weight: 600;
  margin-bottom: 12px;
}
.pz-modal-footer {
  display: flex; gap: 10px; justify-content: flex-end;
  margin-top: 8px;
}
.pz-modal-btn {
  padding: 14px 22px; border-radius: 12px;
  font: 700 16px/1 var(--font-body); cursor: pointer;
  font-family: inherit;
}
.pz-modal-btn-ghost {
  background: #fff; border: 2px solid #DCEEFF;
  color: var(--em-text-mute);
}
.pz-modal-btn-primary {
  background: linear-gradient(135deg, #1A8FD9, #47BFFF, #2EBED2);
  border: none; color: #fff;
  box-shadow: 0 4px 12px rgba(26,143,217,.3);
}
.pz-modal-btn-primary:disabled {
  background: #CFDDEC; box-shadow: none; cursor: not-allowed;
}

/* ========================================================
   MULTIDAY BANNER + DAY CARDS
   ======================================================== */
.pz-multiday-banner {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  margin-bottom: 14px;
  border-radius: 18px;
  background: #fff;
  border: 1.5px solid #DCEEFF;
  box-shadow: 0 2px 8px rgba(13,42,78,.05);
  cursor: pointer;
  transition: all .2s;
  user-select: none;
}
.pz-multiday-banner.on {
  background: linear-gradient(135deg, #F0FBFF 0%, #DCEEFF 100%);
  border-color: #8AD7FF;
  box-shadow: 0 4px 14px rgba(26,143,217,.12);
}
.pz-multiday-banner .emoji { font-size: 24px; flex: none; }
.pz-multiday-banner .body { flex: 1; min-width: 0; }
.pz-multiday-banner .ttl {
  display: block;
  font-family: var(--font-heading); font-weight: 700; font-size: 17px;
  color: var(--em-navy); letter-spacing: -0.01em;
}
.pz-multiday-banner .sub {
  display: block; font-size: 13px; color: #3d4f63; margin-top: 2px;
}
.pz-switch {
  flex: none;
  width: 48px; height: 28px; border-radius: 999px;
  background: #BFDFFF; position: relative;
  transition: background .2s;
}
.pz-switch .knob {
  position: absolute; top: 2px; left: 2px;
  width: 24px; height: 24px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 4px rgba(13,42,78,.18);
  transition: transform .2s;
}
.pz-switch.on { background: linear-gradient(135deg, #1A8FD9, #2EBED2); }
.pz-switch.on .knob { transform: translateX(20px); }

/* Day stack */
.pz-day-stack { display: grid; gap: 12px; margin-bottom: 12px; }
.pz-day-card {
  background: linear-gradient(180deg, #F8FCFF 0%, #F0FBFF 100%);
  border: 1.5px solid #BFDFFF;
  border-radius: 16px;
  overflow: hidden;
}
.pz-day-head {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  background: rgba(255,255,255,.55);
  border-bottom: 1px solid #DCEEFF;
}
.pz-day-num {
  font-family: var(--font-heading); font-weight: 700; font-size: 14px;
  color: #fff;
  background: linear-gradient(135deg, #1A8FD9, #2EBED2);
  padding: 6px 12px; border-radius: 999px;
  white-space: nowrap;
  flex: none;
}
.pz-day-date {
  flex: 1; min-width: 0;
  border: 1.5px solid #BFDFFF;
  border-radius: 10px;
  padding: 8px 12px;
  font-family: var(--font-body); font-size: 15px; font-weight: 600;
  color: var(--em-navy);
  background: #fff;
  outline: none;
  font-family: inherit;
}
.pz-day-date:focus { border-color: #1A8FD9; box-shadow: 0 0 0 3px rgba(26,143,217,.12); }
.pz-day-remove {
  width: 36px; height: 36px; border-radius: 999px;
  border: 1.5px solid #DCEEFF;
  background: #fff;
  color: var(--em-text-mute);
  display: grid; place-items: center;
  cursor: pointer; flex: none; padding: 0;
}
.pz-day-body { padding: 14px; }
.pz-day-sub {
  font-size: 12px; color: var(--em-text-mute); font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}
.pz-day-grid2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin-top: 10px;
}
.pz-day-grid2 label { margin-bottom: 0; }

.pz-add-day-btn {
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px;
  border: 2px dashed #8AD7FF;
  border-radius: 14px;
  background: linear-gradient(135deg, #F0FBFF 0%, rgba(220,238,255,.5) 100%);
  color: #1A8FD9;
  font-family: var(--font-heading); font-weight: 700; font-size: 16px;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
  margin-bottom: 12px;
}
.pz-add-day-btn:active { transform: scale(.98); background: #DCEEFF; }
.pz-add-day-btn svg { color: #1A8FD9; }

.pz-day-summary {
  text-align: center;
  font-size: 14px; color: #3d4f63; font-weight: 500;
  padding: 10px 14px;
  background: #F0FBFF;
  border-radius: 12px;
}
.pz-day-summary b { color: var(--em-navy); font-variant-numeric: tabular-nums; font-weight: 700; }

/* Compact stepper inside day-grid2 (same as M² grid) */
.pz-day-grid2 .pz-numfield { padding: 6px; gap: 4px; }
.pz-day-grid2 .pz-numfield .pz-stepbtn { width: 36px; height: 36px; border-radius: 9px; }
.pz-day-grid2 .pz-numfield input { font-size: 20px; padding: 6px 2px; }
.pz-day-grid2 .pz-numfield .suffix { font-size: 13px; padding: 0; }

/* ========================================================
   DEV MODE
   ======================================================== */
body.dev-mode::before {
  content: "DEV MODE";
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  background: var(--em-warning); color: #fff;
  padding: 3px 14px; border-radius: 0 0 8px 8px;
  font-family: var(--font-heading); font-weight: 700; font-size: 10px;
  letter-spacing: 0.1em;
  z-index: 100;
}
