/* Harmonogram — Wszystkie zadania
   WERSJA: 20260816p
*/
html.embz-fixed-view,
body.embz-fixed-view {
  overflow: hidden !important;
  height: 100% !important;
  max-height: 100% !important;
}

#embZadania,
#embZadania.embz-shell {
  --embz-accent: #4e73df;
  --embz-accent-hover: #3b5cc9;
  font-size: 10pt;
  color: #3f4254;
  position: relative;
  background: #fff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 8px 12px 8px;
}

#embZadania.embz-shell-filters-open {
  overflow: visible;
}
/* Profil projektu: #projektProfil #embZadania ma wyższą specyficzność — bez tego lista MultiPick jest ucięta */
#projektProfil #embZadania.embz-shell-filters-open,
#projektProfil.prp-embz-filters-open #embZadania {
  overflow: visible;
}
#projektProfil.prp-embz-filters-open,
#projektProfil.prp-embz-filters-open .prp-scroll {
  overflow: visible;
}
#projektProfil.prp-embz-filters-open #embZadania .embz-table-wrap {
  overflow: auto;
  min-height: 0;
  flex: 1 1 auto;
}
#embZadania.embz-shell-filters-open .embz-toolbar,
#embZadania.embz-shell-filters-open .embz-filters-wrap {
  position: relative;
  z-index: 90;
  overflow: visible;
}

#embZadania * {
  box-sizing: border-box;
}

.embz-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  flex-wrap: wrap;
  flex: 0 0 auto;
}

.embz-toolbar-btns {
  display: flex;
  gap: 4px;
}

.embz-tool-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid #e4e6ef;
  border-radius: 6px;
  background: #fff;
  color: #5e6278;
  cursor: pointer;
}

.embz-tool-btn:hover {
  border-color: #b5b5c3;
  background: #f9f9f9;
}

.embz-tool-btn svg {
  width: 14px;
  height: 14px;
  display: block;
}

.embz-search {
  flex: 0 0 160px;
  width: 160px;
  min-width: 120px;
  max-width: 180px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid #e4e6ef;
  border-radius: 6px;
  font-size: 13px;
  color: #3f4254;
}

.embz-search:focus {
  outline: none;
  border-color: #009ef7;
}

.embz-count {
  font-size: 12px;
  color: #a1a5b7;
  white-space: nowrap;
}

.embz-toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-wrap: wrap;
}

.embz-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  margin: 0;
  height: 32px;
  box-sizing: border-box;
  padding: 0 10px 0 6px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid #e4e6ef;
}
.embz-switch-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.embz-switch-track {
  position: relative;
  width: 34px;
  height: 18px;
  border-radius: 999px;
  background: #d1d5db;
  transition: background 0.18s ease;
  flex: 0 0 auto;
}
.embz-switch-track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.18);
  transition: transform 0.18s ease;
}
.embz-switch-input:checked + .embz-switch-track {
  background: #93c5fd;
}
.embz-switch-input:checked + .embz-switch-track::after {
  transform: translateX(16px);
  background: #eff6ff;
}
.embz-switch-label {
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  color: #5e6278;
}
.embz-switch-input:checked ~ .embz-switch-label {
  color: #1e3a8a;
}

.embz-filters-wrap {
  position: relative;
}
#embZadaniaBtnFilters {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid #e4e6ef;
  border-radius: 6px;
  background: #fff;
  color: #3f4254;
  font-size: 13px;
  cursor: pointer;
}
#embZadaniaBtnFilters:hover {
  background: #f9f9f9;
}
#embZadaniaBtnFilters.has-filters {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #1e3a8a;
}
.embz-filter-icon {
  width: 14px;
  height: 14px;
  display: inline-block;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M3 5h18l-7 8v5l-4 2v-7L3 5z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M3 5h18l-7 8v5l-4 2v-7L3 5z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.embz-filters-popover.flt-pop,
.embz-filters-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 420px;
  max-width: min(420px, calc(100vw - 32px));
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16);
  padding: 12px;
  box-sizing: border-box;
  z-index: 200;
  overflow: visible;
  color: #111827;
}
.embz-filters-popover .flt-row {
  position: relative;
  z-index: 1;
  margin-bottom: 10px;
}
.embz-filters-popover .flt-row:has(.mpick.is-open),
.embz-filters-popover .mpick.is-open {
  z-index: 50;
  position: relative;
}
.embz-filters-popover .mpick.is-open .mpick-drop {
  z-index: 60;
}
#embZadaniaBtnFilters .flt-badge {
  margin-left: 4px;
}
.embz-filters-popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-weight: 600;
  font-size: 15px;
  color: #111827;
}
.embz-filters-popover button {
  box-sizing: border-box;
  font-family: inherit;
  line-height: 1.2;
}
.embz-link-btn {
  border: none !important;
  background: transparent !important;
  color: #5b7c9a !important;
  cursor: pointer;
  font-size: 13px !important;
  font-weight: 600 !important;
  padding: 2px 4px !important;
  height: auto !important;
  min-height: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.embz-link-btn:hover {
  color: #3d5a73 !important;
  background: transparent !important;
  text-decoration: underline;
}
.embz-btn-outline {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  height: auto !important;
  min-height: 0 !important;
  padding: 6px 12px !important;
  border: 1px solid #009ef7 !important;
  border-radius: 6px !important;
  background: #fff !important;
  color: #009ef7 !important;
  cursor: pointer;
  font-size: 13px !important;
  font-weight: 500 !important;
  box-shadow: none !important;
}
.embz-btn-outline:hover:not(:disabled) {
  background: #eff6ff !important;
}
.embz-btn-outline[aria-expanded="true"] {
  background: #eff6ff !important;
}
.embz-btn-outline:disabled { opacity: 0.45; cursor: not-allowed; }
.embz-plus { font-weight: 700; font-size: 16px; line-height: 1; }
.embz-filters-active {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.embz-filter-add-wrap {
  position: relative;
  margin-top: 10px;
}
.embz-btn-outline .embz-chevron {
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 4px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #009ef7;
}
.embz-filter-type-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  width: min(280px, 100%);
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  padding: 8px;
  z-index: 80;
  box-sizing: border-box;
}
.embz-filter-type-search { margin-bottom: 6px; }
.embz-filter-type-search input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  background: #f9fafb;
  color: #374151;
  outline: none;
}
.embz-filter-type-search input:focus {
  border-color: #3b82f6;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.35);
}
.embz-filter-type-opt {
  display: block !important;
  width: 100% !important;
  text-align: left !important;
  border: none !important;
  background: transparent !important;
  padding: 8px 10px !important;
  border-radius: 6px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #111827 !important;
  cursor: pointer;
  height: auto !important;
  min-height: 0 !important;
  box-shadow: none !important;
}
.embz-filter-type-opt:hover {
  background: #f3f4f6 !important;
}
.embz-filter-row {
  display: grid;
  grid-template-columns: 130px 1fr 36px;
  gap: 10px;
  align-items: start;
  position: relative;
  z-index: 1;
}
.embz-filter-row.is-open { z-index: 40; }
.embz-filter-type {
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  padding: 8px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #f9fafb;
  box-sizing: border-box;
  line-height: 1.25;
  min-height: 36px;
  display: flex;
  align-items: center;
}
.embz-filter-value { min-width: 0; }
.embz-icon-btn {
  width: 32px !important;
  height: 32px !important;
  min-height: 32px !important;
  padding: 0 !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 6px !important;
  background: #fff !important;
  color: #6b7280 !important;
  cursor: pointer;
  font-size: 18px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  box-shadow: none !important;
}
.embz-icon-btn:hover {
  background: #f3f4f6 !important;
  color: #111827 !important;
}
.embz-filters-popover .chosen-container,
.embz-filters-popover .chosen-container-multi {
  width: 100% !important;
  font-size: 13px;
  z-index: 1;
  position: relative;
  display: block !important;
}
.embz-filters-popover .embz-filter-value:has(.chosen-container) > select {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}
.embz-filters-popover .chosen-container.chosen-with-drop,
.embz-filters-popover .chosen-container.embz-force-open {
  z-index: 50 !important;
}
.embz-filters-popover .chosen-container-multi::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 18px;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #9ca3af;
  pointer-events: none;
  z-index: 3;
}
.embz-filters-popover .chosen-container .chosen-drop {
  z-index: 60 !important;
  position: absolute !important;
  top: 100% !important;
  left: -9999px !important;
  right: auto !important;
  width: 100% !important;
  border: 1px solid #5897fb;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  max-height: none !important;
  overflow: visible !important;
  display: none !important;
  margin-top: 2px;
  border-radius: 6px;
}
.embz-filters-popover .chosen-container.chosen-with-drop .chosen-drop,
.embz-filters-popover .chosen-container.embz-force-open .chosen-drop {
  left: 0 !important;
  right: 0 !important;
  display: block !important;
}
.embz-filters-popover .chosen-container .chosen-results {
  max-height: 280px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  margin: 0;
  padding: 0 0 6px;
}
.embz-filters-popover .chosen-container .chosen-results li.result-selected {
  display: list-item !important;
  position: relative;
  background: #e6f4ff !important;
  color: #1677ff !important;
  padding-right: 28px !important;
  cursor: pointer !important;
}
.embz-filters-popover .chosen-container .chosen-results li.result-selected.highlighted {
  background: #bae0ff !important;
  color: #0958d9 !important;
}
.embz-filters-popover .chosen-container .chosen-results li.result-selected::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 5px;
  height: 10px;
  margin-top: -7px;
  border: solid #1677ff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  pointer-events: none;
}
.embz-filters-popover .chosen-choices {
  min-height: 36px;
  padding: 5px 28px 5px 8px !important;
  border-radius: 6px !important;
  background: #fff !important;
  border: 1px solid #d1d5db !important;
  box-shadow: none !important;
  box-sizing: border-box;
  background-image: none !important;
}
.embz-filters-popover .chosen-container-active .chosen-choices,
.embz-filters-popover .chosen-container-active.chosen-with-drop .chosen-choices {
  border-color: #93c5fd !important;
  box-shadow: 0 0 0 2px rgba(147, 197, 253, 0.35) !important;
}
.embz-filters-popover .chosen-choices li.search-field {
  margin: 0 !important;
  padding: 0 !important;
}
.embz-filters-popover .chosen-choices li.search-field input[type="text"] {
  height: 24px !important;
  line-height: 24px !important;
  margin: 0 !important;
  padding: 0 2px !important;
}
.embz-filters-popover select {
  width: 100%;
  min-height: 36px;
}
.embz-add-btn,
.embz-import-btn,
.embz-fs-btn {
  height: 32px;
  padding: 0 12px;
  border: 1px solid #e4e6ef;
  border-radius: 6px;
  background: #fff;
  color: #3f4254;
  font-size: 13px;
  cursor: pointer;
}
.embz-add-btn {
  border-color: var(--embz-accent);
  background: var(--embz-accent);
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
}
.embz-add-btn:hover {
  background: var(--embz-accent-hover);
  border-color: var(--embz-accent-hover);
}
.embz-import-btn {
  border-color: var(--embz-accent);
  color: var(--embz-accent-hover);
  background: rgba(78, 115, 223, 0.12);
  font-weight: 500;
}
.embz-import-btn:hover {
  background: rgba(78, 115, 223, 0.22);
  border-color: var(--embz-accent-hover);
  color: var(--embz-accent-hover);
}
.embz-fs-btn {
  background: var(--embz-accent) !important;
  color: #fff !important;
  border-color: var(--embz-accent) !important;
  font-weight: 500;
}
.embz-fs-btn:hover {
  background: var(--embz-accent-hover) !important;
  border-color: var(--embz-accent-hover) !important;
  color: #fff !important;
}

.embz-import-hint {
  font-size: 13px;
  color: #6b7280;
  margin: 0 0 12px;
  line-height: 1.45;
}
.embz-import-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 14px;
}
.embz-import-cols span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #374151;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  padding: 3px 8px;
}
.embz-import-file-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.embz-import-file-row input[type="file"] {
  font-size: 13px;
  max-width: 100%;
}
.embz-import-filename {
  font-size: 13px;
  color: #111827;
  font-weight: 500;
}
.embz-import-preview-wrap {
  max-height: 280px;
  overflow: auto;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-top: 8px;
}
.embz-import-preview {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.embz-import-preview th,
.embz-import-preview td {
  padding: 6px 8px;
  border-bottom: 1px solid #f3f4f6;
  text-align: left;
  white-space: nowrap;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.embz-import-preview th {
  position: sticky;
  top: 0;
  background: #f9fafb;
  font-weight: 600;
  color: #374151;
  z-index: 1;
}
.embz-import-preview tr.is-bad td {
  background: #fef2f2;
  color: #991b1b;
}
.embz-import-stats {
  margin-top: 10px;
  font-size: 12px;
  color: #6b7280;
}

#embZadania.embz-fs-open {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2000 !important;
  margin: 0 !important;
  padding: 12px 16px !important;
  background: #fff;
  width: 100vw !important;
  height: 100vh !important;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
#embZadania.embz-fs-open .embz-table-wrap {
  flex: 1 1 auto;
  min-height: 0;
}
body.embz-fs-open {
  overflow: hidden;
}

#embZadaniaStatus {
  padding: 4px 0 8px;
  font-size: 13px;
  color: #7e8299;
  flex: 0 0 auto;
}

#embZadaniaStatus.error {
  color: #f1416c;
}

.embz-table-wrap {
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  border: 1px solid #eff2f5;
  border-radius: 8px;
  background: #fff;
  -webkit-overflow-scrolling: touch;
}

#embZadaniaTable {
  width: 100%;
  border-collapse: collapse;
}

#embZadaniaTable thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f9f9f9;
  font-weight: 600;
  font-size: calc(11px + 2pt);
  color: #7e8299;
  text-align: left;
  padding: 8px 8px;
  border-bottom: 1px solid #eff2f5;
  white-space: nowrap;
}

#embZadaniaTable tbody td,
#embZadaniaTable tfoot td {
  padding: 6px 8px;
  border-bottom: 1px solid #f4f6f8;
  vertical-align: middle;
  font-family: inherit;
  font-size: 10pt;
  font-weight: 400;
  color: #3f4254;
}

#embZadaniaTable tbody tr {
  cursor: pointer;
}

#embZadaniaTable tbody tr:hover td {
  background: #f9f9f9;
}

#embZadaniaTable tbody tr.embz-parent td {
  background: #fcfcfd;
}

#embZadaniaTable tbody tr {
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
}

#embZadaniaTable tbody tr.embz-selected td {
  background: #dbeafe !important;
}

#embZadaniaTable tbody tr.embz-selected:hover td {
  background: #bfdbfe !important;
}

#embZadaniaTable tbody tr.embz-hidden {
  display: none;
}

#embZadaniaTable tfoot td {
  background: #f9f9f9;
}

.embz-col-check {
  width: 42px;
  text-align: center;
}

.embz-col-rbh {
  width: 72px;
  text-align: right;
  white-space: nowrap;
}

.embz-col-date {
  width: 92px;
  white-space: nowrap;
}

.embz-col-days {
  width: 64px;
  text-align: right;
}

.embz-col-status,
.embz-col-person {
  white-space: nowrap;
}

.embz-col-actions {
  width: 92px;
  text-align: right;
}

.embz-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  white-space: nowrap;
}

.embz-btn-add-row,
.embz-btn-del-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 6px;
  border: 1px solid #e4e6ef;
  background: #fff;
  font-size: 12px;
  cursor: pointer;
}

.embz-btn-add-row {
  border-color: #4e73df;
  color: #4e73df;
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  padding: 0 10px;
}

.embz-btn-add-row:hover {
  background: rgba(78, 115, 223, 0.1);
}

.embz-btn-del-row {
  color: #b42318;
  border-color: #fecaca;
}

.embz-btn-del-row:hover {
  background: #fef2f2;
}

.embz-zad-cell {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 220px;
}

.embz-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: #7e8299;
}

.embz-toggle .embz-chevron {
  display: inline-flex;
  transition: transform 0.15s ease;
}

.embz-toggle.is-open .embz-chevron {
  transform: rotate(90deg);
}

.embz-name {
  display: block;
  font: inherit;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.embz-name:hover,
.embz-name:focus {
  color: #009ef7;
  text-decoration: underline;
}

.embz-name-kod {
  font: inherit;
  color: inherit;
}

.embz-empty {
  padding: 24px 10px;
  text-align: center;
  color: #a1a5b7;
}

.embz-param-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--embz-accent);
  border-radius: 6px;
  background: var(--embz-accent);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}

.embz-param-btn:hover {
  background: var(--embz-accent-hover);
  border-color: var(--embz-accent-hover);
  color: #fff;
}

.embz-param-btn.is-active {
  box-shadow: 0 0 0 3px rgba(78, 115, 223, 0.25);
}

.embz-param-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #fff;
  color: #009ef7;
  font-size: 11px;
  font-weight: 700;
}

body.embz-modal-open {
  overflow: hidden;
}

.embz-modal-root {
  --embz-accent: #009ef7;
  --embz-accent-hover: #0088d6;
  position: fixed;
  inset: 0;
  z-index: 5000;
}

.embz-modal-root[hidden] {
  display: none !important;
}

.embz-modal-back {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.38);
}

.embz-modal {
  position: relative;
  z-index: 1;
  width: 560px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 48px);
  margin: 48px auto 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.22);
  display: flex;
  flex-direction: column;
  color: #181c32;
}

.embz-modal.embz-modal-wide {
  width: min(860px, 96vw);
}

.embz-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px 12px;
  border-bottom: 1px solid #eef0f4;
}

.embz-modal-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #181c32;
}

.embz-modal-sub {
  margin-top: 4px;
  font-size: 12px;
  color: #a1a5b7;
}

.embz-modal-x {
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: #6b7280;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  border-radius: 8px;
}

.embz-modal-x:hover {
  background: #f3f4f6;
  color: #111827;
}

.embz-modal-body {
  padding: 14px 20px 8px;
  overflow: auto;
}

.embz-modal-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px 16px;
  border-top: 1px solid #eef0f4;
}

.embz-modal-msg {
  flex: 1 1 auto;
  font-size: 12px;
  color: #7e8299;
}

.embz-modal-msg.is-error {
  color: #f1416c;
}

.embz-btn-primary {
  padding: 8px 16px;
  border: 0;
  border-radius: 8px;
  background: #009ef7 !important;
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.embz-btn-primary:hover:not(:disabled) {
  background: #0088d6 !important;
  color: #fff !important;
}

.embz-btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.embz-btn-ghost {
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #4b5563;
  font-size: 13px;
  cursor: pointer;
}

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

.embz-param-tasks {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  max-height: 120px;
  overflow: auto;
  border: 1px solid #eff2f5;
  border-radius: 8px;
}

.embz-param-tasks li {
  padding: 6px 10px;
  font-size: 12px;
  color: #3f4254;
  border-bottom: 1px solid #f4f6f8;
}

.embz-param-tasks li:last-child {
  border-bottom: 0;
}

.embz-param-tasks code {
  display: inline-block;
  margin-right: 6px;
  font-size: 11px;
  color: #7e8299;
}

.embz-param-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.embz-param-section {
  margin-top: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #a1a5b7;
}

.embz-param-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
  align-items: center;
}

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

.embz-param-input {
  width: 100%;
  max-width: 280px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid #e4e6ef;
  border-radius: 6px;
  font: inherit;
  font-size: 13px;
  color: #181c32;
  background: #fff;
}

.embz-param-input:focus {
  outline: none;
  border-color: #009ef7;
  box-shadow: 0 0 0 3px rgba(0, 158, 247, 0.15);
}

.embz-param-select {
  max-width: 280px;
  appearance: auto;
  cursor: pointer;
}

.embz-param-select-wide {
  max-width: 100%;
}

.embz-param-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.embz-param-chk {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-size: 13px;
  color: #5e6278;
  cursor: pointer;
  user-select: none;
}

.embz-param-chk-danger {
  color: #f1416c;
  font-weight: 600;
}

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

.embz-param-chk-danger input {
  accent-color: #f1416c;
}

.embz-param-hint {
  margin: 0 0 10px;
  font-size: 12px;
  color: #a1a5b7;
  line-height: 1.35;
}

.embz-param-block > .embz-param-hint {
  margin: 0 0 2px 0;
  padding-left: 120px;
}

@media (max-width: 520px) {
  .embz-param-block > .embz-param-hint {
    padding-left: 0;
  }
}

.embz-seg {
  display: inline-flex;
  border: 1px solid #e4e6ef;
  border-radius: 8px;
  overflow: hidden;
}

.embz-seg-btn {
  border: 0;
  background: #fff;
  padding: 7px 12px;
  font: inherit;
  font-size: 12px;
  color: #5e6278;
  cursor: pointer;
}

.embz-seg-btn + .embz-seg-btn {
  border-left: 1px solid #e4e6ef;
}

.embz-seg-btn.is-on {
  background: #009ef7 !important;
  color: #fff !important;
}

.embz-param-people {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.embz-param-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.embz-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px 4px 4px;
  background: #f3f6f9;
  border-radius: 999px;
  font-size: 12px;
  color: #3f4254;
}

.embz-chip-av {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #dbeafe;
  color: #1e40af;
  font-size: 10px;
  font-weight: 700;
}

.embz-chip-x {
  width: 18px;
  height: 18px;
  border: 0;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
  border-radius: 50%;
  line-height: 1;
  font-size: 14px;
}

.embz-chip-x:hover {
  background: #e5e7eb;
  color: #111827;
}

.embz-pick {
  position: relative;
  max-width: 320px;
}

.embz-pick .embz-param-input {
  max-width: none;
}

.embz-pick-drop {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 2;
  max-height: 220px;
  overflow: auto;
  background: #fff;
  border: 1px solid #e4e6ef;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.embz-pick-item {
  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: #3f4254;
  cursor: pointer;
}

.embz-pick-item:hover {
  background: #f3f6f9;
}

.embz-pick-empty {
  padding: 10px;
  font-size: 12px;
  color: #a1a5b7;
}

.tpl-proj-shell .tpl-proj-inp {
  border: 1px solid transparent;
  background: transparent;
  font: inherit;
  padding: 2px 4px;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}
.tpl-proj-shell .tpl-proj-kod {
  max-width: 72px;
  flex: 0 0 72px;
}
.tpl-proj-shell .tpl-proj-opis {
  flex: 1 1 auto;
}
.tpl-proj-shell .tpl-proj-rbh {
  width: 100%;
  text-align: right;
}
.tpl-proj-shell .tpl-proj-inp:hover,
.tpl-proj-shell .tpl-proj-inp:focus {
  border-color: #c8d0dc;
  background: #fff;
}
.tpl-proj-shell .tpl-proj-date,
.tpl-proj-shell .tpl-proj-sel {
  width: 100%;
  max-width: 100%;
  font: inherit;
  padding: 2px 4px;
  border: 1px solid transparent;
  background: transparent;
}
.tpl-proj-shell .tpl-proj-date:focus,
.tpl-proj-shell .tpl-proj-sel:focus {
  border-color: #c8d0dc;
  background: #fff;
}
.tpl-proj-shell .embz-zad-cell {
  display: flex;
  align-items: center;
  gap: 4px;
}
#tplProjTable tbody tr.embz-hidden {
  display: none;
}
