.uph-wrap {
  margin: 1rem 0;
  font-family: inherit;
}

.uph-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.uph-tab {
  border: var(--uph-tab-border-width, 1px) solid var(--uph-tab-border, #d0d7e2);
  background: var(--uph-tab-bg, transparent);
  border-radius: var(--uph-tab-radius, 12px);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: var(--uph-tab-pad-y, 12px) var(--uph-tab-pad-x, 20px);
  font-family: inherit;
  font-size: var(--uph-tab-font-size, 16px);
  line-height: 1.2;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--uph-tab-text, #344054);
  cursor: pointer;
}

.uph-tab.is-active {
  color: var(--uph-tab-active-text, #ffffff);
  border-color: var(--uph-tab-active-bg, #465fff);
  background: var(--uph-tab-active-bg, #465fff);
  box-shadow: none;
}

.uph-panel {
  display: none;
}

.uph-panel.is-active {
  display: block;
}

.uph-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 10px;
  color: #475467;
  font-weight: 500;
}

.uph-table-wrap {
  overflow-x: auto;
  background: #fff;
}

.uph-table-wrap table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
}

.uph-table-wrap th,
.uph-table-wrap td {
  border: 1px solid #e4e7ec;
  padding: 10px 12px;
  white-space: nowrap;
}

.uph-empty {
  padding: 12px 14px;
  border: 1px solid #f2d7d5;
  background: #fef5f4;
  border-radius: 10px;
  color: #b42318;
}



.uph-note-accordion[data-uph-note-accordion] {
  margin: 20px 0;
}

.uph-note-accordion[data-uph-note-accordion] .uph-note-row {
  margin: 0 0 14px;
}

.uph-note-accordion[data-uph-note-accordion] .uph-note-btn {
  width: 100%;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 22px;
  text-align: left;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: 0;
  background: var(--uph-note-btn-bg, #7d8cc3);
  color: var(--uph-note-btn-text, #ffffff);
}

.uph-note-accordion[data-uph-note-accordion] .uph-note-btn-icon {
  width: 16px;
  height: 16px;
  border-right: 4px solid var(--uph-note-btn-text, #ffffff);
  border-bottom: 4px solid var(--uph-note-btn-text, #ffffff);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  flex: 0 0 auto;
  margin-right: 4px;
}

.uph-note-accordion[data-uph-note-accordion] .uph-note-btn[aria-expanded="true"] .uph-note-btn-icon {
  transform: rotate(-135deg);
}

.uph-note-accordion[data-uph-note-accordion] .uph-note-content {
  display: none;
  padding: 18px 22px;
  background: var(--uph-note-content-bg, #ffffff);
  color: var(--uph-note-content-text, #334155);
}

.uph-note-accordion[data-uph-note-accordion] .uph-note-content.is-open {
  display: block;
}

.uph-tab-icon {
  display: inline-flex;
  flex: 0 0 auto;
}

/* Dodatni cenovnici organizatora: bez horizontalnog skrola, tekst se lomi u celijama. */
.uph-table-wrap.uph-fit {
  overflow-x: visible;
}

.uph-table-wrap.uph-fit table {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  table-layout: auto;
}

.uph-table-wrap.uph-fit th,
.uph-table-wrap.uph-fit td {
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: manual;
}

/* Bez crnog okvira/fokusa teme na tabovima (hover, fokus, klik). */
.uph-tab:focus,
.uph-tab:focus-visible,
.uph-tab:active,
.uph-tab:hover {
  outline: none !important;
  box-shadow: none !important;
}

.uph-tab.is-active,
.uph-tab.is-active:hover,
.uph-tab.is-active:focus,
.uph-tab.is-active:focus-visible,
.uph-tab.is-active:active {
  border-color: var(--uph-tab-active-bg, #465fff) !important;
}

/* Fiksirane prve kolone (podesava se po organizatoru); pozicije i pozadinu postavlja front.js. */
.uph-table-wrap [data-uph-sticky-cell] {
  position: sticky;
  z-index: 2;
}

.uph-table-wrap [data-uph-sticky-last] {
  box-shadow: 4px 0 6px -3px rgba(0, 0, 0, 0.25);
}
