/* Panel zadania — wspólny (Harmonogram, Gantt, Obciążenie)
   WERSJA: 20260827c
*/
.zp-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.18);
  z-index: 4400;
}

.zp-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 45vw;
  max-width: 45vw;
  height: 100%;
  background: #fff;
  border-left: 1px solid #e5e7eb;
  z-index: 4500;
  display: flex;
  flex-direction: column;
  transform: translateX(105%);
  transition: transform 0.22s ease;
  color: #181c32;
  font-family: inherit;
}

.zp-panel.is-open {
  transform: translateX(0);
}

.zp-head {
  flex: 0 0 auto;
  padding: 14px 20px 0;
  border-bottom: 1px solid #eef0f4;
}

.zp-head-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.zp-path {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  min-width: 0;
  font-size: 12px;
  line-height: 1.4;
  color: #a1a5b7;
}

.zp-path-item {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 1px 4px;
  border-radius: 4px;
  cursor: pointer;
  color: #a1a5b7;
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 12px;
}

.zp-path-item[data-open-project] {
  cursor: pointer;
}

.zp-path-item:hover,
.zp-path-item.is-active {
  background: #f3f4f6;
  color: #3f4254;
}

.zp-path-sep {
  color: #d1d5db;
  flex: 0 0 auto;
}

.zp-close {
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: #6b7280;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  border-radius: 8px;
  flex: 0 0 auto;
}

.zp-close:hover {
  background: #f3f4f6;
  color: #111827;
}

.zp-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.zp-meta-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.zp-kod {
  font-size: 14px;
  color: #6b7280;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
}

.zp-people {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 6px;
  background: #f3f4f6;
  border-radius: 999px;
}

.zp-avatar {
  position: relative;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #111827;
  font-size: 11px;
  font-weight: 600;
  line-height: 22px;
  text-align: center;
  cursor: default;
}

.zp-tip {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #111827;
  color: #fff;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.3;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 5;
}

.zp-tip:after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 100%;
  margin-left: -5px;
  border: 5px solid transparent;
  border-bottom-color: #111827;
}

.zp-avatar:hover .zp-tip {
  opacity: 1;
  visibility: visible;
}

.zp-title {
  margin: 10px 0 14px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  color: #111827;
}

.zp-title-editable {
  cursor: text;
  border-radius: 6px;
  padding: 2px 4px;
  margin-left: -4px;
  margin-right: -4px;
}

.zp-title-editable:hover {
  background: #f3f4f6;
}

.zp-title.is-editing {
  padding: 0;
  background: transparent;
}

.zp-title-input {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 2.5em;
  margin: 0;
  padding: 6px 8px;
  border: 1px solid #009ef7;
  border-radius: 6px;
  background: #fff;
  color: #111827;
  font: inherit;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  resize: vertical;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 158, 247, 0.15);
}

.zp-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
}

.zp-tab {
  flex: 0 0 auto;
  padding: 10px 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: #6b7280;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.zp-tab:hover {
  color: #181c32;
}

.zp-tab.is-active {
  color: #181c32;
  font-weight: 600;
  border-bottom-color: #009ef7;
}

.zp-body {
  flex: 1 1 auto;
  overflow: auto;
  padding: 18px 20px 12px;
  min-height: 0;
}

.zp-body.is-kom {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.zp-pane[hidden] {
  display: none;
}

.zp-placeholder {
  color: #a1a5b7;
  font-size: 13px;
  padding: 12px 0;
}

.zp-kom {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
}

.zp-kom-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 0 0 auto;
  padding: 12px 14px 14px;
  border: 1px solid #eef0f4;
  border-radius: 10px;
  background: #f9fafb;
}

.zp-kom-label {
  font-size: 12px;
  font-weight: 600;
  color: #5e6278;
}

.zp-kom-select {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid #e4e6ef;
  border-radius: 8px;
  background: #fff;
  color: #181c32;
  font: inherit;
}

.zp-kom-input {
  width: 100%;
  min-height: 72px;
  max-height: 120px;
  resize: vertical;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid #e4e6ef;
  border-radius: 8px;
  background: #fff;
  color: #181c32;
  font: inherit;
  font-size: 13px;
  line-height: 1.45;
}

.zp-kom-input:focus {
  outline: none;
  border-color: #009ef7;
}

.zp-kom-form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.zp-kom-status {
  font-size: 12px;
  color: #7e8299;
}

.zp-kom-status.is-err {
  color: #f1416c;
}

.zp-kom-status.is-ok {
  color: #50cd89;
}

.zp-kom-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding-right: 2px;
}

.zp-kom-item {
  padding: 12px 14px;
  border: 1px solid #eef0f4;
  border-radius: 10px;
  background: #fff;
}

.zp-kom-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.zp-kom-osoba {
  font-size: 13px;
  font-weight: 600;
  color: #181c32;
}

.zp-kom-to {
  font-size: 12px;
  color: #3699ff;
  font-weight: 600;
  margin-right: auto;
}

.zp-kom-data {
  font-size: 12px;
  color: #7e8299;
  white-space: nowrap;
}

.zp-kom-opis {
  font-size: 13px;
  line-height: 1.5;
  color: #3f4254;
  white-space: pre-wrap;
  word-break: break-word;
}

.zp-mpk {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.zp-mpk-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.zp-mpk-section-title {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #181c32;
  line-height: 1.35;
}

.zp-mpk-hint {
  margin: -2px 0 0;
  font-size: 12px;
  color: #7e8299;
  line-height: 1.45;
}

.zp-mpk-pick-card {
  padding: 14px 16px;
  border: 1px solid #eef0f4;
  border-radius: 10px;
  background: #f9fafb;
}

.zp-mpk-form {
  gap: 0;
}

.zp-mpk-form .zp-row {
  align-items: flex-start;
}

.zp-mpk-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.zp-mpk-select {
  max-width: none;
}

.zp-mpk-path {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 2px;
  padding: 4px 0 2px;
}

.zp-mpk-path-item {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  position: relative;
  padding: 0 0 12px;
}

.zp-mpk-path-item:last-child {
  padding-bottom: 0;
}

.zp-mpk-path-item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 14px;
  bottom: 0;
  width: 2px;
  background: #e4e6ef;
  border-radius: 1px;
}

.zp-mpk-path-dot {
  width: 12px;
  height: 12px;
  margin-top: 3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 2px #c5d4f7;
  flex-shrink: 0;
}

.zp-mpk-path-item.is-current .zp-mpk-path-dot {
  background: #c5d4f7;
  box-shadow: inset 0 0 0 2px #7a94e8;
}

.zp-mpk-path-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding: 2px 10px 8px;
  border: 1px solid #eef0f4;
  border-radius: 8px;
  background: #fff;
}

.zp-mpk-path-item.is-current .zp-mpk-path-body {
  border-color: #c5d4f7;
  background: #f8faff;
}

.zp-mpk-path-lvl {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #a1a5b7;
}

.zp-mpk-path-val {
  font-size: 13px;
  color: #181c32;
  line-height: 1.45;
  word-break: break-word;
}

.zp-mpk-path-item.is-current .zp-mpk-path-val {
  font-weight: 600;
  color: #3148a8;
}

.zp-mpk-section .zp-empty {
  align-items: flex-start;
  padding: 16px 4px 8px;
  color: #a1a5b7;
}

.zp-mpk-section .zp-empty-img {
  display: none;
}

.zp-mpk-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.zp-mpk-actions .zp-btn-ghost {
  color: #3148a8;
  font-weight: 600;
}

.zp-mpk-actions .zp-btn-ghost:hover:not(:disabled) {
  background: #eef2ff;
  color: #253889;
}

.zp-mpk-actions .zp-btn-ghost:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.zp-mpk-status {
  font-size: 12px;
  color: #7e8299;
}

.zp-mpk-status.is-ok {
  color: #50cd89;
}

.zp-mpk-status.is-err {
  color: #f1416c;
}

.zp-czas {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.zp-czas-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.zp-czas-title {
  font-size: 13px;
  font-weight: 600;
  color: #181c32;
}

.zp-czas-error {
  color: #f1416c;
}

.zp-czas-wrap {
  overflow: auto;
}

.zp-czas-table {
  width: 100%;
  min-width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 13px;
}

.zp-czas-table th {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: #7e8299;
  padding: 8px 6px;
  border-bottom: 1px solid #eff2f5;
  white-space: nowrap;
}

.zp-czas-table td {
  padding: 8px 6px;
  border-bottom: 1px solid #f4f6f8;
  color: #3f4254;
  vertical-align: middle;
}

.zp-czas-table tbody tr:hover td {
  background: #fafafa;
}

.zp-czas-table tfoot td {
  font-weight: 600;
  color: #181c32;
  border-bottom: 0;
  padding-top: 10px;
}

.zp-czas-av {
  width: 48px;
}

.zp-czas-table .zp-person-av {
  position: relative;
  width: 24px;
  height: 24px;
  line-height: 22px;
  font-size: 11px;
  background: #fff;
  border: 1px solid #e5e7eb;
  display: inline-block;
}

.zp-czas-table .zp-person-av .zp-tip {
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
}

.zp-czas-table .zp-person-av:hover .zp-tip {
  opacity: 1;
  visibility: visible;
}

.zp-czas-h {
  text-align: right;
  white-space: nowrap;
  width: 72px;
}

.zp-czas-ico {
  width: 32px;
  text-align: center;
}

.zp-czas-more-col {
  width: 40px;
}

.zp-czas-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: #9ca3af;
}

.zp-czas-glyph svg {
  width: 14px;
  height: 14px;
}

.zp-czas-glyph.is-empty {
  opacity: 0.28;
}

.zp-czas-more {
  position: relative;
  display: flex;
  justify-content: flex-end;
}

.zp-czas-menu {
  position: absolute;
  right: 0;
  top: 28px;
  min-width: 140px;
  padding: 6px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  z-index: 5;
}

.zp-czas-menu button {
  display: block;
  width: 100%;
  padding: 6px 10px;
  border: 0;
  background: transparent;
  text-align: left;
  font: inherit;
  font-size: 13px;
  color: #181c32;
  border-radius: 6px;
  cursor: pointer;
}

.zp-czas-menu button:hover {
  background: #f3f4f6;
}

.zp-czas-pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #6b7280;
}

.zp-czas-pager-info {
  margin-right: auto;
}

.zp-czas-page-btn {
  min-width: 28px;
  height: 28px;
  padding: 0 6px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
  color: #181c32;
  cursor: pointer;
}

.zp-czas-page-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.zp-czas-page-btn.is-active {
  border-color: #009ef7;
  color: #009ef7;
  font-weight: 600;
}

.zp-czas-pagesize {
  height: 28px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
  font: inherit;
  font-size: 12px;
  color: #181c32;
  padding: 0 6px;
}

.zp-czas-report {
  padding: 14px;
  border: 1px solid #eef0f4;
  border-radius: 10px;
  background: #fafafa;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.zp-czas-report-title {
  font-size: 16px;
  font-weight: 600;
  color: #1e3a5f;
}

.zp-czas-row {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.zp-czas-row-top {
  align-items: start;
}

.zp-czas-row > span:first-child {
  color: #1e3a5f;
  font-weight: 600;
  font-size: 13px;
}

.zp-czas-row input,
.zp-czas-row select,
.zp-czas-row textarea {
  display: block;
  width: 100%;
  min-height: 34px;
  box-sizing: border-box;
  border: 1px solid #cfd6e4;
  border-radius: 8px;
  padding: 7px 10px;
  font: inherit;
  font-size: 13px;
  color: #1f2937;
  background: #fff;
}

.zp-czas-row .zp-datewrap {
  max-width: none;
  width: 100%;
}

.zp-czas-row .zp-datewrap .zp-date-input {
  cursor: pointer;
}

.zp-czas-row input[readonly] {
  background: #f3f4f6;
  color: #374151;
}

.zp-czas-row textarea {
  min-height: 72px;
  resize: vertical;
}

.zp-czas-hours-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.zp-czas-hours-wrap input[type="number"] {
  flex: 0 0 72px;
  width: 72px;
  min-width: 72px;
  text-align: center;
}

.zp-szac-switch {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.zp-szac-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.zp-szac-track {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: #d1d5db;
  transition: background 0.15s ease;
}

.zp-szac-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.25);
  transition: transform 0.15s ease;
}

.zp-szac-input:checked + .zp-szac-track {
  background: #2563eb;
}

.zp-szac-input:checked + .zp-szac-track::after {
  transform: translateX(20px);
}

.zp-szac-input:disabled + .zp-szac-track {
  opacity: 0.75;
  cursor: default;
}

.zp-szac-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 10px 12px;
  border: 1px dashed #93c5fd;
  border-radius: 10px;
  background: #f8fbff;
}

.zp-szac-box[hidden] {
  display: none;
}

.zp-szac-odch {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #334155;
}

.zp-szac-odch.is-over {
  color: #dc2626;
}

.zp-szac-odch.is-under {
  color: #15803d;
}

.zp-czas-hours-unit {
  color: #64748b;
  font-weight: 600;
}

.zp-czas-report-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.zp-czas-report-status {
  min-height: 16px;
  font-size: 12px;
  color: #b45309;
}

.zp-czas-report-status.is-err {
  color: #f1416c;
}

.zp-czas-report-status.is-ok {
  color: #047857;
}

@media (max-width: 560px) {
  .zp-czas-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

.zp-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.zp-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 12px;
  align-items: center;
}

.zp-label {
  font-size: 13px;
  color: #6b7280;
}

.zp-form input[type="text"],
.zp-form input[type="number"],
.zp-form input[type="date"],
.zp-form input[type="search"],
.zp-form select.zp-select {
  width: 100%;
  max-width: 280px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid #e4e6ef;
  border-radius: 6px;
  font-size: 13px;
  color: #181c32;
  background: #fff;
}

.zp-form select.zp-select {
  appearance: auto;
  cursor: pointer;
}

.zp-form input[type="number"][readonly] {
  background: #f9fafb;
  color: #5e6278;
  cursor: default;
}

.zp-checks {
  display: flex;
  gap: 16px;
  align-items: center;
}

.zp-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #3f4254;
  cursor: pointer;
}

.zp-check input {
  width: 16px;
  height: 16px;
  margin: 0;
  cursor: pointer;
  accent-color: #009ef7;
}

.zp-obc-done {
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
}

.zp-datewrap {
  position: relative;
  max-width: 280px;
  display: flex;
  align-items: center;
}

.zp-datewrap .zp-date-input {
  width: 100%;
  max-width: none;
  padding-right: 36px;
  cursor: pointer;
  background: #fff;
  color: #181c32;
}

.zp-date-btn {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.zp-date-btn svg {
  width: 14px;
  height: 14px;
}

.zp-date-btn:hover {
  background: #f3f4f6;
  color: #111827;
}

.zp-cal {
  position: fixed;
  z-index: 10050;
  display: none;
  width: 280px;
  padding: 10px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
}

.zp-cal.is-open,
.zp-cal:not([hidden]) {
  display: block;
}

.zp-cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.zp-cal-title {
  font-size: 13px;
  font-weight: 600;
  color: #181c32;
}

.zp-cal-nav {
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  border-radius: 6px;
  font-size: 18px;
  line-height: 1;
  color: #4b5563;
  cursor: pointer;
}

.zp-cal-nav:hover {
  background: #f3f4f6;
}

.zp-cal-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 4px;
  font-size: 11px;
  color: #9ca3af;
  text-align: center;
}

.zp-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.zp-cal-empty {
  height: 32px;
}

.zp-cal-day {
  height: 32px;
  border: 0;
  background: transparent;
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  color: #181c32;
  cursor: pointer;
}

.zp-cal-day:hover {
  background: #f3f4f6;
}

.zp-cal-day.is-today {
  box-shadow: inset 0 0 0 1px #7a94e8;
}

.zp-cal-day.is-selected {
  background: #c5d4f7;
  color: #3148a8;
}

.zp-ludzie {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.zp-ludzie-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.zp-ludzie-bar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.zp-btn-assign {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid #b8c9f4;
  border-radius: 6px;
  background: #c5d4f7;
  color: #3148a8;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.zp-btn-assign svg {
  width: 14px;
  height: 14px;
}

.zp-btn-assign:hover {
  background: #3b5cc9;
  border-color: #3b5cc9;
}

.zp-btn-assign:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.zp-icon-btn {
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: #6b7280;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.zp-icon-btn svg {
  width: 16px;
  height: 16px;
}

.zp-icon-btn:hover {
  background: #f3f4f6;
  color: #111827;
}

.zp-search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 12px;
  background: #f5f5f5;
  border-radius: 999px;
  min-width: 180px;
}

.zp-search svg {
  width: 14px;
  height: 14px;
  color: #9ca3af;
  flex: 0 0 auto;
}

.zp-search input {
  border: 0 !important;
  background: transparent !important;
  height: 34px !important;
  padding: 0 !important;
  max-width: none !important;
  width: 140px;
  font-size: 13px;
  outline: none;
}

.zp-assign-drop {
  position: absolute;
  top: 48px;
  left: 0;
  z-index: 15;
  width: min(380px, 100%);
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
  padding: 10px;
}

.zp-pick {
  position: relative;
}

.zp-pick-field {
  position: relative;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #fff;
}

.zp-pick-field:after {
  content: "";
  position: absolute;
  right: 12px;
  top: 16px;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #9ca3af;
  pointer-events: none;
}

.zp-pick-field input {
  width: 100%;
  height: 36px;
  border: 0;
  background: transparent;
  padding: 0 28px 0 10px;
  font: inherit;
  font-size: 13px;
  color: #181c32;
  outline: none;
  box-sizing: border-box;
}

.zp-pick-drop {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 2px);
  z-index: 20;
  background: #fff;
  border: 1px solid #5897fb;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  max-height: 240px;
  overflow: auto;
}

.zp-pick-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 7px 10px;
  border: 0;
  background: transparent;
  text-align: left;
  font: inherit;
  font-size: 13px;
  color: #181c32;
  cursor: pointer;
}

.zp-pick-opt:hover {
  background: #f3f4f6;
}

.zp-pick-opt .zp-person-av {
  width: 24px;
  height: 24px;
  line-height: 24px;
  font-size: 10px;
}

.zp-pick-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  font-size: 13px;
  color: #181c32;
}

.zp-pick-table td {
  padding: 7px 4px;
  border-bottom: 1px solid #eef0f4;
  vertical-align: middle;
}

.zp-pick-table .zp-pick-x {
  width: 28px;
  text-align: right;
}

.zp-pick-x button {
  width: 22px;
  height: 22px;
  border: 0;
  background: transparent;
  color: #9ca3af;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  border-radius: 4px;
}

.zp-pick-x button:hover {
  background: #f3f4f6;
  color: #111827;
}

.zp-assign-empty {
  padding: 12px 8px;
  color: #9ca3af;
  font-size: 13px;
  text-align: center;
}

.zp-assign-actions {
  display: flex;
  justify-content: flex-end;
  padding: 8px 0 0;
  border-top: 1px solid #f3f4f6;
  margin-top: 8px;
}

.zp-ludzie-list {
  display: flex;
  flex-direction: column;
}

.zp-person {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 4px 0;
  border: 0;
  background: transparent;
  width: 100%;
  text-align: left;
  font: inherit;
}

.zp-person-main {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
}

.zp-person-av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e5e7eb;
  color: #111827;
  font-size: 12px;
  font-weight: 600;
  line-height: 32px;
  text-align: center;
  flex: 0 0 auto;
}

.zp-person-name {
  font-size: 14px;
  color: #181c32;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zp-person-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  flex: 0 1 auto;
  align-items: center;
}

.zp-person-flags .zp-check {
  font-size: 12px;
  white-space: nowrap;
}

.zp-cal-day.is-disabled,
.zp-cal-day:disabled {
  opacity: 0.28;
  cursor: not-allowed;
  pointer-events: none;
  background: #f3f4f6;
  color: #9ca3af;
}

.zp-obc-info.err {
  color: #991b1b;
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.zp-obc-table {
  min-width: 0;
}

.zp-obc-table-plan {
  min-width: 780px;
}

.zp-obc-table-plan .zp-obc-col-hours {
  width: 1%;
  white-space: nowrap;
  padding-left: 4px;
  padding-right: 4px;
}

.zp-obc-table-plan .zp-obc-col-hours .zp-obc-hours,
.zp-obc-table-plan .zp-obc-col-hours.zp-obc-num-cell {
  width: 52px;
  max-width: 56px;
  text-align: right;
}

.zp-obc-table-plan .zp-obc-col-pct {
  width: 1%;
  white-space: nowrap;
  padding-left: 2px;
  padding-right: 2px;
}

.zp-obc-table-plan .zp-obc-col-pct .zp-obc-pct,
.zp-obc-table-plan .zp-obc-col-pct.zp-obc-num-cell {
  width: 42px;
  max-width: 46px;
  min-width: 42px;
  text-align: center;
  padding-left: 4px;
  padding-right: 4px;
}

.zp-obc-table-plan .zp-obc-col-days .zp-obc-days,
.zp-obc-table-plan .zp-obc-col-days.zp-obc-num-cell {
  text-align: center;
}

.zp-obc-table-plan th.zp-obc-col-hours,
.zp-obc-table-plan th.zp-obc-col-pct,
.zp-obc-table-plan th.zp-obc-col-days,
.zp-obc-table-plan th.zp-obc-col-rbhd {
  text-align: center;
}

.zp-obc-table-plan th.zp-obc-col-hours {
  text-align: right;
}

.zp-obc-table-plan .zp-obc-col-date {
  width: 1%;
  white-space: nowrap;
  padding-left: 4px;
  padding-right: 4px;
}

.zp-obc-table-plan .zp-obc-col-date .zp-datewrap {
  min-width: 0;
  max-width: 118px;
  width: 118px;
}

.zp-obc-table-plan .zp-obc-col-date .zp-date-input {
  padding: 0 30px 0 8px;
  font-size: 12px;
}

.zp-obc-table-plan .zp-obc-col-date .zp-date-btn {
  width: 26px;
  height: 26px;
  right: 2px;
}

.zp-obc-table-plan .zp-obc-col-rbhd {
  width: 52px;
  text-align: right;
  white-space: nowrap;
}

.zp-obc-table-rl {
  min-width: 760px;
}

.zp-obc-table .zp-obc-status,
.zp-obc.zp-form select.zp-select.zp-obc-status {
  min-width: 140px;
  max-width: 200px;
  height: 34px;
  padding: 0 8px;
  font-size: 12px;
}

.zp-obc-done-cell {
  text-align: center;
}

.zp-rollup {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: #374151;
}

.zp-rollup-line strong {
  color: #111827;
}

.zp-rollup-actions {
  margin-top: 4px;
}

.zp-rollup-actions .zp-btn-assign:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
}

.zp-person-pick {
  cursor: pointer;
  border-radius: 8px;
}

.zp-person-pick:hover {
  background: #f9fafb;
}

.zp-person-remove {
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: #f87171;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.zp-person-remove svg {
  width: 16px;
  height: 16px;
}

.zp-person-remove:hover {
  background: #fef2f2;
  color: #dc2626;
}

.zp-switch {
  position: relative;
  min-width: 64px;
  height: 22px;
  padding: 0 8px 0 24px;
  border: 0;
  border-radius: 100px;
  background: #d9d9d9;
  color: #fff;
  cursor: pointer;
  flex: 0 0 auto;
}

.zp-switch-handle {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.zp-switch-text {
  font-size: 11px;
  font-weight: 600;
  line-height: 22px;
}

.zp-switch.is-on {
  background: #1677ff;
  padding: 0 24px 0 8px;
}

.zp-switch.is-on .zp-switch-handle {
  left: auto;
  right: 2px;
}

.zp-empty-text {
  text-align: center;
}

.zp-obc {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}

.zp-obc-info {
  font-size: 12px;
  line-height: 1.35;
  color: #4b5563;
  padding: 8px 10px;
  border-radius: 6px;
  background: #f8f9fb;
}

.zp-obc-info.warn {
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fcd34d;
}

.zp-obc-info.ok {
  color: #065f46;
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
}

.zp-obc-wrap {
  overflow: auto;
}

.zp-obc-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.zp-obc-block-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #3b5cc9;
}

.zp-obc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.zp-obc-table th {
  text-align: left;
  font-weight: 600;
  color: #5e6278;
  font-size: 11px;
  letter-spacing: 0.02em;
  padding: 6px 6px 8px;
  border-bottom: 1px solid #eef0f4;
}

.zp-obc-table-rl th {
  text-align: center;
  white-space: nowrap;
  font-weight: 400;
}

.zp-obc-table-rl .zp-obc-name-head {
  text-align: left;
  font-weight: 600;
  vertical-align: bottom;
}

.zp-obc-ghead {
  text-align: center;
  font-weight: 700 !important;
  letter-spacing: 0.02em;
  padding: 6px 6px 4px !important;
  border-bottom: 1px solid #e5e7eb;
}

.zp-obc-ghead-rbh {
  color: #1e3a8a;
}

.zp-obc-ghead-szac {
  color: #6b21a8;
}

.zp-obc-ghead-real {
  color: #9a3412;
}

.zp-obc-ghead-prog {
  color: #155e75;
}

.zp-obc-table-rl .zp-obc-prog-col {
  width: 40px;
  max-width: 44px;
  padding-left: 2px;
  padding-right: 2px;
  box-sizing: border-box;
}

.zp-obc-table-rl th.zp-obc-prog-col {
  white-space: normal;
  line-height: 1.15;
  font-size: 10px;
}

.zp-obc-table-rl .zp-obc-odch-col {
  width: 34px;
  max-width: 38px;
  padding-left: 1px;
  padding-right: 1px;
}

.zp-obc-table td {
  padding: 6px 4px;
  vertical-align: middle;
  border-bottom: 1px solid #f3f4f6;
}

.zp-obc-num-cell {
  text-align: center;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  color: #374151;
}

.zp-obc-name-cell {
  text-align: left;
  font-weight: 500;
  color: #181c32;
  white-space: nowrap;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zp-obc-table-rl tr.zp-obc-sum td {
  border-bottom: 1px solid #cfd6e4;
  background: #f4f6fb;
  font-weight: 700;
  color: #181c32;
}

.zp-obc-sum-name {
  font-weight: 700;
  color: #1e3a8a;
}

.zp-obc-odch-plus {
  color: #b45309;
  font-weight: 600;
}

.zp-obc-odch-minus {
  color: #047857;
  font-weight: 600;
}

.zp-obc-table .zp-obc-person,
.zp-obc.zp-form select.zp-select.zp-obc-person {
  min-width: 120px;
  width: 100%;
  max-width: 220px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid #e4e6ef;
  border-radius: 6px;
  font-size: 13px;
  color: #181c32;
  background: #fff;
  appearance: auto;
  cursor: pointer;
  box-sizing: border-box;
  font-family: inherit;
}

.zp-obc-person-cell {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.zp-obc-you {
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1d4ed8;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 4px;
  padding: 2px 5px;
  line-height: 1.2;
}

.zp-obc-table tr.zp-obc-mine td {
  background: #f8fbff;
}

.zp-obc-table tr.zp-obc-unassigned td {
  background: #e8edf3;
  color: #334155;
  border: 0;
  box-shadow: none;
}

.zp-obc-table tr.zp-obc-unassigned.is-hidden {
  display: none;
}

.zp-obc-unassigned-label {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}

.zp-obc-unassigned-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #d5dce6;
  color: #475569;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.zp-person-remove:disabled,
.zp-person-remove.is-disabled {
  opacity: 0.35;
  cursor: not-allowed;
  color: #94a3b8;
}

.zp-person-remove:disabled:hover,
.zp-person-remove.is-disabled:hover {
  background: transparent;
  color: #94a3b8;
}

.zp-obc-wyk {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: #6b7280;
  font-size: 12px;
}

.zp-obc-wyk.is-part {
  color: #b45309;
}

.zp-obc-wyk.is-done {
  color: #047857;
  font-weight: 600;
}

.zp-obc-wyk.is-wait {
  color: #9ca3af;
}

.zp-obc-actions {
  white-space: nowrap;
}

.zp-obc-actions .zp-person-remove {
  margin-left: 2px;
}

.zp-obc-czas {
  color: #2563eb;
}

.zp-czas-obc-hint {
  font-size: 12px;
  line-height: 1.4;
  color: #374151;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 8px 10px;
}

.zp-czas-obc-target .zp-obc-you {
  margin-left: 6px;
  vertical-align: middle;
}

.zp-obc-num,
.zp-obc.zp-form .zp-obc-num {
  width: 58px;
  max-width: 72px;
  height: 34px;
  padding: 0 8px;
  border: 1px solid #e4e6ef;
  border-radius: 6px;
  font: inherit;
  font-size: 13px;
  color: #181c32;
  background: #fff;
  box-sizing: border-box;
}

.zp-obc-days,
.zp-obc.zp-form .zp-obc-days {
  width: 48px;
  max-width: 56px;
  text-align: center;
}

.zp-obc-table .zp-datewrap {
  position: relative;
  min-width: 160px;
  max-width: 280px;
  width: 100%;
  display: flex;
  align-items: center;
}

.zp-obc-table .zp-datewrap .zp-date-input,
.zp-obc.zp-form .zp-datewrap .zp-date-input {
  width: 100%;
  max-width: none;
  height: 34px;
  padding: 0 36px 0 10px;
  border: 1px solid #e4e6ef;
  border-radius: 6px;
  font-size: 13px;
  color: #181c32;
  background: #fff;
  cursor: pointer;
  box-sizing: border-box;
}

.zp-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0 8px;
  color: #9ca3af;
  font-size: 12px;
}

.zp-divider:before,
.zp-divider:after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: #eef0f4;
}

.zp-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 8px;
  color: #9ca3af;
  font-size: 13px;
}

.zp-empty-img {
  width: 64px;
  height: 40px;
  background:
    radial-gradient(ellipse at 50% 85%, #e5e7eb 0 32px, transparent 33px),
    linear-gradient(#d9d9d9, #d9d9d9) 12px 8px / 40px 18px no-repeat;
  opacity: 0.9;
}

.zp-foot {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px 18px;
  border-top: 1px solid #eef0f4;
}

.zp-foot .zp-btn-trash {
  margin-left: auto;
  color: #b42318;
  border: 1px solid #fecdca;
  background: #fef3f2;
}

.zp-foot .zp-btn-trash:hover {
  background: #fee4e2;
  border-color: #fda29b;
  color: #912018;
}

.zp-foot .zp-btn-trash svg {
  width: 14px;
  height: 14px;
  margin-right: 6px;
}

.zp-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 12px;
  border: 1px solid #b8c9f4;
  border-radius: 6px;
  background: #c5d4f7;
  color: #3148a8;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.zp-btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.zp-btn-primary:hover:not(:disabled) {
  background: #b4c6f2;
}

.zp-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #4b5563;
  font-size: 13px;
  cursor: pointer;
}

.zp-btn-ghost:hover {
  background: #f3f4f6;
}

.zp-save-status {
  font-size: 12px;
  color: #6b7280;
  margin-left: 4px;
}

.zp-save-status.is-error {
  color: #c0392b;
}

.zp-foot.is-saving .zp-btn-assign {
  opacity: 0.6;
  pointer-events: none;
}

@media (max-width: 720px) {
  .zp-panel {
    width: 100%;
    max-width: 100vw;
  }
  .zp-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
