:root {
  --bg: #f4f7ff;
  --panel: rgba(255, 255, 255, 0.92);
  --panel-2: rgba(255, 255, 255, 0.98);
  --text: rgba(11, 16, 32, 0.92);
  --muted: rgba(11, 16, 32, 0.62);
  --border: rgba(11, 16, 32, 0.12);
  --accent: #2563eb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 600px at 10% 10%, rgba(37, 99, 235, 0.12), transparent),
    radial-gradient(800px 500px at 90% 30%, rgba(99, 102, 241, 0.10), transparent),
    var(--bg);
}

.container {
  max-width: 1920px;
  margin: 0 auto;
  padding: 14px 10px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}

/* Glavni vsebinski del - zavzame prvi stolpec */
.container > section#home,
.container > section#calculator {
  grid-column: 1;
  min-width: 0;
}

/* Seštevek - zavzame drugi stolpec */
.container > section.sumPanel {
  grid-column: 2;
  grid-row: 1 / span 2;
}

/* Ko je seštevek skrit, naj content zavzame celotno širino */
.container.table-view {
  display: block;
  max-width: 1920px;
}

/* Ko je seštevek skrit */
.container > section.sumPanel.hidden + section,
.container:has(.sumPanel.hidden) > section#home,
.container:has(.sumPanel.hidden) > section#calculator {
  grid-column: 1 / -1;
}

@media (max-width: 1100px) {
  .container {
    grid-template-columns: 1fr;
  }
  
  .container > section.sumPanel {
    grid-column: 1;
    grid-row: auto;
  }
}

.header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(12px);
  background: rgba(244, 247, 255, 0.7);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brandButton {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  text-align: left;
}

.brand__logo {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(99, 102, 241, 0.12));
  border: 1px solid var(--border);
  font-weight: 700;
  overflow: hidden;
}

.brand__logoImg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand__title {
  font-weight: 700;
  letter-spacing: 0.2px;
}

.brand__subtitle {
  color: var(--muted);
  font-size: 13px;
}

.hint {
  color: var(--muted);
  font-size: 13px;
}

h2 {
  margin: 18px 0 14px;
  font-size: 18px;
}

/* Glavni meni cenikov – 6 stolpcev (samo #servicesGrid / #productsGrid) */
.grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  column-gap: 18px;
  row-gap: 36px;
  align-items: start;
}
.homeSection h2 {
  margin-top: 0;
}

@media (max-width: 1400px) {
  .grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
@media (max-width: 1200px) {
  .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 980px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 460px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 22px 19px;
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease, border 120ms ease;
  min-height: 144px;
  display: grid;
  place-items: center;
  text-align: center;
  background-size: cover;
  background-position: center;
}
.cardWrap {
  display: grid;
  grid-template-rows: auto auto;
  gap: 10px;
  cursor: pointer;
  min-width: 0;
  height: 100%;
}
.card__titleSlot {
  min-height: calc(2 * 1.3em + 2px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.card__title--outside {
  font-weight: 700;
  color: #000;
  text-align: center;
  margin: 0;
  padding: 0 2px;
  line-height: 1.3;
  font-size: 14px;
  width: 100%;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  word-break: break-word;
}
.card--withImage {
  padding: 0;
  overflow: hidden;
  min-height: 144px;
  aspect-ratio: 36 / 25;
  width: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
  background-color: var(--panel-2);
}
.card--withImage.card--imgLoading {
  /* Statičen placeholder – brez shimmer animacije */
}
.cardWrap--loading {
  pointer-events: none;
  cursor: default;
}
.cardWrap:hover .card--withImage {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.28);
}
.card:hover {
  transform: translateY(-2px);
  background-color: var(--panel-2);
  border-color: rgba(37, 99, 235, 0.28);
}

.card__title {
  font-weight: 700;
  margin-bottom: 8px;
}
.card__desc {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  max-width: 36ch;
}

.calculator {
  margin-top: 18px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
}

.calculator__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

@media (max-width: 900px) {
  .columns {
    grid-template-columns: 1fr;
  }
}

.col {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
}

.col__title {
  font-weight: 700;
  margin-bottom: 10px;
}

.fields {
  display: grid;
  gap: 10px;
}

.step2Section {
  margin-bottom: 24px;
}
.step2Section:last-child {
  margin-bottom: 0;
}
.step2SectionTitle {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 12px 0;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.step2Section--ovitek {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.field label {
  display: block;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 6px;
  font-weight: 800;
}
.fieldLabelRow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}
.fieldLabelRow label {
  margin-bottom: 0;
}
.fieldInfoBtn {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 1px solid var(--accent);
  border-radius: 50%;
  background: rgba(214, 63, 63, 0.12);
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 18px;
  text-align: center;
  cursor: pointer;
}
.fieldInfoBtn:hover {
  background: rgba(214, 63, 63, 0.2);
}

.field input {
  width: 100%;
  padding: 10px 11px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  outline: none;
}

.field .select {
  width: 100%;
  padding: 10px 11px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  outline: none;
}

.selectWithZoom {
  display: flex;
  gap: 8px;
  align-items: center;
}
.selectWithZoom .select {
  flex: 1 1 auto;
  min-width: 0;
}
.selectZoomBtn {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted);
  cursor: pointer;
}
.selectZoomBtn:hover {
  border-color: rgba(37, 99, 235, 0.4);
  color: rgba(37, 99, 235, 0.95);
}

.selectHidden {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.dropdownWithImages {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}
.dropdownWithImages__btn {
  width: 100%;
  padding: 10px 11px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  outline: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.dropdownWithImages__right {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}
.dropdownWithImages__zoom,
.dropdownWithImages__optZoom {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted);
  cursor: pointer;
}
.dropdownWithImages__zoom:hover,
.dropdownWithImages__optZoom:hover {
  border-color: rgba(37, 99, 235, 0.4);
  color: rgba(37, 99, 235, 0.95);
}
.dropdownWithImages__caret {
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
}
.dropdownWithImages__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 2000;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(11, 16, 32, 0.18);
  padding: 6px;
  max-height: 280px;
  overflow: auto;
}
.dropdownWithImages__opt {
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--text);
  text-align: left;
}
.dropdownWithImages__opt:hover {
  background: rgba(37, 99, 235, 0.10);
  border-color: rgba(37, 99, 235, 0.25);
}
.dropdownWithImages__opt.is-selected {
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(37, 99, 235, 0.35);
}
.dropdownWithImages__optRight {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.field .select:focus {
  border-color: rgba(37, 99, 235, 0.5);
}

.field input:focus {
  border-color: rgba(37, 99, 235, 0.5);
}

/* Obvezna polja – oznaka z * je v labelu; ob napaki validacije rdeče */
.field--checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
}
.field--checkbox input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.field--error label,
.field--error .select,
.field--error input,
.field--error textarea {
  color: #b91c1c;
  border-color: #b91c1c;
}
.field--error input:focus,
.field--error .select:focus,
.field--error textarea:focus {
  border-color: #dc2626;
  outline-color: #b91c1c;
}

.field textarea {
  width: 100%;
  min-height: 90px;
  resize: vertical;
  padding: 10px 11px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  outline: none;
}

.field textarea:focus {
  border-color: rgba(37, 99, 235, 0.5);
}

/* Opcije znotraj cenika – ločen grid, ~3 v vrsto (ne .grid) */
.imageChoiceGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 900px) {
  .imageChoiceGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .imageChoiceGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}
.imageChoiceCard {
  border: 1px solid var(--border);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  overflow: hidden;
  text-align: center;
  transition: transform 120ms ease, border 120ms ease, box-shadow 120ms ease;
}
.imageChoiceCard:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}
.imageChoiceCard--selected {
  border-color: rgba(37, 99, 235, 0.95);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.26), 0 12px 28px rgba(15, 23, 42, 0.18);
  transform: translateY(-1px);
}
.imageChoiceCard:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.8);
  outline-offset: 2px;
}
.imageChoiceCard--disabled {
  cursor: not-allowed;
  filter: grayscale(0.65);
}
.imageChoiceCard--disabled:hover {
  transform: none;
  box-shadow: none;
}
.imageChoiceImgWrap {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 160px;
}
.imageChoiceImg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: transparent;
}
.imageChoiceLabel {
  padding: 8px 10px 6px;
  font-weight: 600;
  color: #000;
}
.imageChoiceCardInner {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
}
.imageChoiceZoom {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 6px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
}
.imageChoiceZoom:hover {
  background: rgba(37, 99, 235, 0.9);
  opacity: 1;
}
.imageChoiceCard--none {
  border-style: dashed;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.imageChoiceCard--none .imageChoiceImgWrap { display: none; }
.imageChoiceX {
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1;
}
.imageChoiceCard--none.imageChoiceCard--selected .imageChoiceX {
  color: var(--accent);
}
.fieldLabelRow.fieldLabel--collapsible {
  display: flex;
}
.fieldLabel--collapsible {
  user-select: none;
  padding: 8px 36px 8px 10px;
  position: relative;
  display: inline-block;
  border: 1px dashed var(--accent);
  border-radius: 10px;
  background: rgba(214, 63, 63, 0.08);
  color: var(--text);
  font-weight: 800;
}
.fieldLabel--collapsible::after {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2em;
  font-weight: 700;
  color: var(--accent);
  opacity: 1;
}
.fieldLabel--collapsible.fieldLabel--collapsed::after {
  content: "▾";
}
.fieldLabel--collapsible:not(.fieldLabel--collapsed)::after {
  content: "▴";
}
.fieldLabel--collapsed {
  box-shadow: inset 0 0 0 1px rgba(214, 63, 63, 0.2);
}

/* Revija/brošura: UV lak + topli tisk ovitek — brez črtkane modre obrobe, ohranjen razklop */
.fieldLabel--collapsibleSubtle {
  user-select: none;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-weight: 700;
}
/* Samo naslov (brez ℹ): puščica desno od besedila */
label.fieldLabel--collapsibleSubtle {
  display: inline-block;
  position: relative;
  padding: 6px 26px 6px 0;
  margin-bottom: 0;
}
/* Naslov + ℹ + puščica v eni vrstici: label | info | ▾ */
.fieldLabelRow.fieldLabel--collapsibleSubtle {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  position: relative;
  padding-right: 22px;
  margin-bottom: 6px;
  max-width: 100%;
}
.fieldLabelRow.fieldLabel--collapsibleSubtle label {
  margin-bottom: 0;
  flex: 0 1 auto;
  min-width: 0;
  font-weight: 700;
  color: var(--text);
}
.fieldLabelRow.fieldLabel--collapsibleSubtle .fieldInfoBtn {
  flex-shrink: 0;
  order: 0;
}
.fieldLabel--collapsibleSubtle.fieldLabel--collapsed::after {
  content: "▾";
}
.fieldLabel--collapsibleSubtle:not(.fieldLabel--collapsed)::after {
  content: "▴";
}
.fieldLabelRow.fieldLabel--collapsibleSubtle::after,
label.fieldLabel--collapsibleSubtle::after {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1em;
  font-weight: 700;
  color: var(--muted);
  opacity: 0.9;
  line-height: 1;
  pointer-events: none;
}
.fieldLabel--collapsibleSubtle.fieldLabel--collapsed {
  box-shadow: none;
}

/* Razmik nad 3D UV lakom (ovitek), da ni zlepljeno s plastifikacijo */
.field--uvOvitekSpaced {
  margin-top: 1.1rem;
}
.fieldSchemaCollapse.fieldSchemaCollapse--closed {
  display: none;
}

.dodelaveAuthWrap {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.dodelaveAuthWrap label { margin: 0; }
.dodelaveAuthWrap input { width: 120px; }
.dodelaveCheckboxes { display: flex; flex-direction: column; flex-wrap: wrap; max-height: 200px; }

/* Časi dodelav overlay (oblaček) */
.casidodelavOverlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 20px 20px;
  pointer-events: none;
}
.casidodelavOverlay:not(.hidden) {
  pointer-events: auto;
}
.casidodelavOverlay__backdrop {
  position: absolute;
  inset: 0;
  background: transparent;
  cursor: default;
}
.casidodelavOverlay__card {
  position: relative;
  z-index: 1;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 22px;
  min-width: 320px;
  max-width: 480px;
  box-shadow: 0 12px 40px rgba(11, 16, 32, 0.18);
  pointer-events: auto;
}
.casidodelavOverlay .dodelaveTimesTable__table {
  width: 100%;
  border-collapse: collapse;
}
.casidodelavOverlay .dodelaveTimesTable__table th,
.casidodelavOverlay .dodelaveTimesTable__table td {
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.casidodelavOverlay .dodelaveTimesTable__table th {
  font-weight: 600;
  color: var(--muted);
}

/* Zoom overlay */
.imageZoomOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  cursor: pointer;
  padding: 24px;
}
.imageZoomImg {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  pointer-events: none;
}
.imageZoomLabel {
  margin-top: 12px;
  color: #fff;
  font-size: 14px;
  text-align: center;
}

/* Mutacije */
.mutationWrap {
  display: grid;
  gap: 8px;
}
.mutationList {
  display: grid;
  gap: 8px;
}
.mutationRow {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 10px;
  align-items: center;
}
.mutationRow label {
  margin: 0;
}

/* Matrika cen (produkti) */
.priceMatrixWrap {
  display: grid;
  gap: 12px;
  position: relative;
}
.priceMatrixWrap.is-recalculating::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  pointer-events: none;
  background: linear-gradient(
    110deg,
    rgba(37, 99, 235, 0) 0%,
    rgba(37, 99, 235, 0.12) 35%,
    rgba(147, 197, 253, 0.35) 50%,
    rgba(37, 99, 235, 0.12) 65%,
    rgba(37, 99, 235, 0) 100%
  );
  background-size: 220% 100%;
  animation: matrixShimmer 1.2s linear infinite;
}
@keyframes matrixShimmer {
  from {
    background-position: 130% 0;
  }
  to {
    background-position: -130% 0;
  }
}
.priceMatrixWrap {
  display: flex;
  justify-content: center;
  position: relative;
}
.priceMatrixTable {
  width: 100%;
  min-width: 520px;
  max-width: 720px;
  border-collapse: separate;
  border-spacing: 6px;
}
.priceMatrixTable th,
.priceMatrixTable td {
  vertical-align: top;
}
.pm__left {
  width: 130px;
  color: var(--muted);
  font-weight: 700;
}
.pm__section {
  color: var(--muted);
  font-weight: 700;
  text-align: left;
}
.pm__head {
  font-weight: 800;
  text-align: left;
}
.pm__rowTitle {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}
.pm__inline {
  white-space: nowrap;
}
.pm__qtyText {
  font-weight: 700;
}
.pm__meta {
  font-size: 13px;
}
.pm__qtyVal {
  font-weight: 700;
}
.priceMatrix {
  display: grid;
  grid-template-columns: 160px repeat(3, minmax(140px, 1fr));
  gap: 8px;
}
.priceMatrix__corner,
.priceMatrix__head,
.priceMatrix__rowLabel {
  font-weight: 700;
  color: var(--muted);
}
.priceMatrix__corner {
  align-self: end;
}
.priceMatrix__head,
.priceMatrix__rowLabel {
  font-size: 13px;
}
.priceMatrix__cell {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  min-width: 140px;
  min-height: 52px;
  background: rgba(255, 255, 255, 0.9);
  text-align: left;
  cursor: pointer;
}
.priceMatrix__cell--selected {
  border-color: rgba(37, 99, 235, 0.8);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.18);
}
.priceMatrix__value {
  font-weight: 700;
  white-space: nowrap;
  line-height: 1.35;
}
.priceMatrix__value .priceMatrix__per {
  font-weight: 400;
  font-size: 0.85em;
  color: var(--muted);
}
.priceMatrix__value .priceMatrix__per {
  font-size: 0.85em;
  font-weight: 400;
  color: var(--muted);
}
.priceMatrix__value--inquiry {
  color: #b91c1c;
}
.priceMatrix__per {
  font-size: 12px;
  color: var(--muted);
}
.priceMatrix__value .priceMatrix__per {
  display: inline;
}
.priceMatrix__save {
  display: inline;
  font-size: 12px;
  color: #b91c1c;
  background: rgba(239, 68, 68, 0.12);
  padding: 2px 6px;
  border-radius: 999px;
  margin-left: 2px;
}
.priceMatrix__meta {
  font-size: 12px;
  color: var(--muted);
}

.productMatrixRow {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.productMatrixRow > .resultsList {
  flex: 1;
  min-width: 0;
}
.productDetailResults {
  width: 240px;
  flex-shrink: 0;
  font-size: 13px;
}
.productDetailResults__title {
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 14px;
}
.productDetailResults .resultRow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 4px 0;
  border-bottom: 1px solid var(--border);
  flex-wrap: nowrap;
  white-space: nowrap;
}
.productDetailResults .resultRow__name {
  flex-shrink: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.productDetailResults .resultRow__val {
  flex-shrink: 0;
  white-space: nowrap;
}
.productDetailResults .resultRow:last-child {
  border-bottom: none;
}

.fieldValidationComment {
  margin-top: 6px;
  font-size: 15px;
  font-weight: 700;
  color: #b91c1c;
  line-height: 1.4;
}

.fieldClientWarning {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #b45309;
  line-height: 1.45;
}
.fieldClientWarning.hidden {
  display: none;
}

.fieldInfoIcon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-left: 8px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: help;
  vertical-align: middle;
}
.fieldInfoPopup {
  position: fixed;
  z-index: 100;
  max-width: 320px;
  padding: 12px 16px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  font-size: 13px;
  line-height: 1.4;
  white-space: pre-wrap;
}
.priceMatrix__cell {
  position: relative;
  padding-top: 18px;
}
.priceMatrix__value {
  padding-right: 52px;
}

.productSummaryCard {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.92);
}
.productSummaryPrice {
  font-size: 32px;
  line-height: 1.1;
  font-weight: 800;
  color: #b91c1c;
}
.productSummaryNote {
  font-size: 13px;
  color: #b91c1c;
  margin-top: 4px;
  font-weight: 500;
}
.productSummaryMeta--changed {
  color: #b91c1c;
  animation: summaryHighlightMeta 2.5s ease-out forwards;
}
@keyframes summaryHighlightPrice {
  0%, 20% { color: #b91c1c; }
  100% { color: #b91c1c; }
}
@keyframes summaryHighlightMeta {
  0%, 20% { color: #b91c1c; }
  100% { color: var(--muted, #666); }
}
.productSummaryPrice--inquiry {
  font-size: 15px;
  font-weight: 600;
  color: #b91c1c;
}
.btn--inquiryLabel {
  font-size: 13px;
}
.productSummaryMeta {
  margin-top: 8px;
  display: grid;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
  transition: color 1.5s ease-out;
}
.productSummarySection {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.productSummarySectionTitle {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 4px;
}
.summaryShimmer {
  position: relative;
}
.summaryShimmer.is-recalculating::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  pointer-events: none;
  background: linear-gradient(110deg, rgba(37,99,235,0) 0%, rgba(147,197,253,0.35) 50%, rgba(37,99,235,0) 100%);
  background-size: 220% 100%;
  animation: matrixShimmer 1.2s linear infinite;
}
.matrixUpdateHint {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #dc2626;
  color: #fff;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.35);
  z-index: 30;
  animation: hintPulse 1.3s ease-in-out infinite;
}
@keyframes hintPulse {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
.countrySelect {
  min-width: 130px;
  height: 38px;
}
.priceMatrix__selected {
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 10px;
}
.priceMatrix__selectedTitle {
  font-weight: 700;
  margin-bottom: 6px;
}
.priceMatrix__selectedPrice {
  font-weight: 800;
}

.matrixConfigTable {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 12px;
}
.matrixConfigTable th,
.matrixConfigTable td {
  border: 1px solid var(--border);
  padding: 6px;
}
.matrixConfigTable th {
  background: rgba(15, 23, 42, 0.04);
}
.matrixConfigTable input {
  width: 100%;
}
.result__label {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 8px;
  font-weight: 800;
}

.kartonPriceRow {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 11px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
}

.kartonPriceVal {
  font-size: 28px;
  font-weight: 500;
  color: #dc2626; /* red */
}

.kartonPriceUnit {
  font-weight: 800;
  white-space: nowrap;
}

.kartonMeta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.result__value {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 0.2px;
  margin-bottom: 12px;
}

.resultsList {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.resultRow {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 11px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
}

.resultRow__name {
  font-size: 12px;
  color: var(--muted);
  word-break: break-word;
}

.resultRow__val {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.resultRow__val--vmesni {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.btn {
  border: 1px solid rgba(37, 99, 235, 0.35);
  background: rgba(37, 99, 235, 0.12);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
}
.btn:hover {
  border-color: rgba(37, 99, 235, 0.55);
  background: rgba(37, 99, 235, 0.16);
}

.btn--ghost {
  border: 1px solid var(--border);
  background: transparent;
}
.btn--ghost:hover {
  border-color: rgba(11, 16, 32, 0.22);
  background: rgba(11, 16, 32, 0.04);
}

.muted {
  color: var(--muted);
}
.small {
  font-size: 12px;
  line-height: 1.35;
}

.error {
  margin-top: 10px;
  padding: 10px 11px;
  border-radius: 12px;
  border: 1px solid rgba(248, 113, 113, 0.45);
  background: rgba(248, 113, 113, 0.12);
  color: rgba(11, 16, 32, 0.92);
  font-size: 13px;
}

.hidden {
  display: none !important;
}

.serviceLayout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.serviceCard {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
}

.serviceCard__title {
  font-weight: 800;
  margin-bottom: 10px;
}

.serviceActions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
  margin-bottom: 12px;
}

.offerBox {
  margin-top: 14px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.offerBox__title {
  font-weight: 800;
  margin-bottom: 10px;
}

.offerActions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.archiveList {
  display: grid;
  gap: 8px;
  max-height: 280px;
  overflow: auto;
  padding-right: 6px;
}

.archiveItem {
  display: grid;
  gap: 4px;
  padding: 10px 11px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
}

.archiveItem__top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.archiveItem__val {
  font-weight: 800;
}

.sumPanel {
  position: sticky;
  top: 80px;
  align-self: start;
}

.sumPanel__inner {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px 16px;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* Seštevek items brez notranjega scrolla - dinamična višina */
.sumItems {
  display: grid;
  gap: 8px;
  max-height: none;
  overflow: visible;
  margin-bottom: 10px;
}

@media (max-width: 1100px) {
  .sumPanel {
    position: relative;
    top: auto;
  }
}

.sumPanel__title {
  font-weight: 800;
  margin-bottom: 8px;
}

/* .sumItems stili so definirani zgoraj */

.sumItem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
}

.sumDetails {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  padding: 8px 10px;
  position: relative;
}

.sumDetails > summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  list-style: none;
  padding-right: 24px;
}

.sumDetails > summary::-webkit-details-marker {
  display: none;
}

.sumDetails__meta {
  color: var(--muted);
  font-size: 12px;
  flex: 1;
}

.sumDetails__price {
  font-weight: 900;
}

.sumDetails__body {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  white-space: pre-line;
}

.sumDetails__remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 20px;
  height: 20px;
  border: none;
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.sumDetails__remove:hover {
  background: rgba(239, 68, 68, 0.2);
}

.sumItem__name {
  color: var(--muted);
  font-size: 12px;
}

.sumItem__val {
  font-weight: 800;
}

.sumPanel__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.sumTotal__val {
  font-weight: 900;
  font-size: 18px;
  margin-left: 8px;
}

@media (max-width: 900px) {
  .serviceLayout {
    grid-template-columns: 1fr;
  }
}

code {
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 8px;
}

.tableLayout {
  margin-top: 12px;
}

.tableLayout .tableCard {
  /* Razpotegni čez celotno širino, brez čudne pozicije */
  width: 100%;
  max-width: none;
}

.tableCard {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
}

.tableCard__title {
  font-weight: 900;
  margin-bottom: 10px;
  text-align: left;
}

.tableWrap {
  overflow-x: auto;
  overflow-y: visible;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  max-width: 100%;
}

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

.dataTable td,
.dataTable th {
  border-bottom: 1px solid var(--border);
  padding: 7px 9px;
  vertical-align: top;
  white-space: normal;
  word-break: break-word;
}

.dataTable tr:nth-child(even) td {
  background: rgba(37, 99, 235, 0.03);
}

.dataTable tr:hover td {
  background: rgba(37, 99, 235, 0.04);
}

/* Drag & Drop ceniki */
.builderOverlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 16, 32, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}
.builderModal {
  width: min(1600px, 96vw);
  height: min(760px, 86vh);
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 18px;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
}
.builderHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.builderTitle {
  font-weight: 800;
}
.builderTabs {
  display: flex;
  gap: 8px;
}
.builderTab {
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.7);
  padding: 6px 10px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
}
.builderTab.active {
  border-color: rgba(37, 99, 235, 0.5);
  background: rgba(37, 99, 235, 0.12);
}
.builderBody {
  display: grid;
  grid-template-columns: 240px 1fr 280px;
  gap: 0;
  height: 100%;
  min-height: 0;
}
.builderBody > div {
  min-height: 0;
}
.builderPalette {
  border-right: 1px solid var(--border);
  padding: 12px;
  display: grid;
  gap: 10px;
  background: rgba(255,255,255,0.6);
  overflow-y: auto;
}
.builderPalette h4,
.builderPanel h4 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 800;
}
.builderPaletteItem {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px dashed var(--border);
  background: rgba(255,255,255,0.85);
  cursor: grab;
  font-size: 13px;
}
.builderTemplateBtn {
  width: 100%;
  text-align: left;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.9);
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 12px;
}
.builderTemplateBtn.active {
  border-color: rgba(37, 99, 235, 0.55);
  background: rgba(37, 99, 235, 0.12);
}
.builderTemplateBtn + .builderTemplateBtn {
  margin-top: 6px;
}
.builderCanvas {
  position: relative;
  background: radial-gradient(circle at 12px 12px, rgba(37,99,235,0.08) 1px, transparent 1px);
  background-size: 18px 18px;
  overflow: hidden;
}
.builderNode {
  position: absolute;
  width: 210px;
  min-width: 170px;
  max-width: 260px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.95);
  cursor: move;
  user-select: none;
  position: relative;
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}
.builderNode.is-selected {
  outline: 2px solid rgba(37, 99, 235, 0.55);
  outline-offset: 2px;
}
.builderNode__title {
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.builderNode__meta {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.builderNodeDuplicate {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(255,255,255,0.95);
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
}
.builderNodeDuplicate:hover {
  background: rgba(37,99,235,0.15);
  border-color: var(--accent);
}
.builderNode--calc {
  background: rgba(37,99,235,0.12);
  border-color: rgba(37,99,235,0.35);
}
.builderNode--result {
  background: rgba(16,185,129,0.12);
  border-color: rgba(16,185,129,0.35);
}
.builderConnector {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(37,99,235,0.6);
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  cursor: crosshair;
  pointer-events: auto;
}
.builderConnector.in {
  left: -6px;
  right: auto;
  background: rgba(16,185,129,0.7);
}
.builderPanel {
  border-left: 1px solid var(--border);
  padding: 12px;
  background: rgba(255,255,255,0.6);
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
}
.builderPanel #builderPanelFields {
  overflow-y: auto;
  min-height: 0;
}
.builderPalette,
.builderPanel {
  max-height: 100%;
}
.builderPanel .field label {
  font-size: 12px;
}
.builderPanel textarea,
.builderPanel input[type="text"] {
  width: 100%;
}
.builderPanel textarea {
  min-height: 70px;
  resize: vertical;
}
.builderFooter {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding: 12px;
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,0.7);
}
.builderAuth {
  display: grid;
  gap: 10px;
  padding: 16px;
}
.builderAuth input {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
}
.builderHidden {
  display: none !important;
}
.builderJson {
  width: 100%;
  min-height: 180px;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 10px 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  background: rgba(255,255,255,0.9);
}

.builderAuthModal {
  width: min(360px, 92vw);
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  display: grid;
  gap: 10px;
}
.builderAuthModal--inquiry textarea {
  min-height: 160px;
  resize: vertical;
}
.inquiryProductWrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.inquiryProductSchema {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
}
.inquirySchemaItem {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.inquirySchemaLabel {
  font-size: 0.75rem;
}
.inquiryProductSchema.hidden {
  display: none !important;
}
.inquirySchemaImg {
  max-width: 120px;
  max-height: 80px;
  object-fit: contain;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.builderNodeModal {
  width: min(720px, 92vw);
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
  display: block;
  padding: 16px;
}
.builderNodeFieldsWrap {
  padding: 4px 0;
  overflow: visible;
}
.builderConditionHint {
  font-size: 0.85rem;
  color: var(--muted, #666);
  margin-bottom: 10px;
  padding: 8px 10px;
  background: var(--panel-2, #f5f5f5);
  border-radius: 8px;
  line-height: 1.4;
}
.builderConditionHint code {
  font-size: 0.8em;
  background: rgba(0,0,0,0.06);
  padding: 1px 4px;
  border-radius: 4px;
}
.builderConditionChips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.builderChip {
  font-size: 0.8rem;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--panel-2);
  color: var(--text);
  cursor: pointer;
}
.builderChip:hover {
  background: rgba(37, 99, 235, 0.12);
  border-color: var(--accent);
}
.builderConditionalWrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.builderConditionalBlock {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel-2);
}
.builderConditionalBlock .field + .field { margin-top: 8px; }
.builderConditionalBlock .btn.small { margin-top: 8px; margin-right: 8px; }
.builderAuthActions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
.builderCanvasInner {
  position: absolute;
  inset: 0;
  transform-origin: 0 0;
}

/* SVG povezave: ne reži (clip) krivulj, ko gredo izven viewporta */
#builderLinks {
  overflow: visible;
}
.builderNode--input {
  background: rgba(37,99,235,0.08);
  border-color: rgba(37,99,235,0.25);
}
.builderNode--intermediate {
  background: rgba(234,179,8,0.12);
  border-color: rgba(234,179,8,0.35);
}
.builderNode--final {
  background: rgba(220,38,38,0.12);
  border-color: rgba(220,38,38,0.35);
}
.builderInfo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid var(--border);
  font-size: 11px;
  color: var(--muted);
  margin-left: 6px;
  cursor: help;
}

/* Header */
.headerActions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.adminAuthArea {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 4px;
  padding-left: 8px;
  border-left: 1px solid var(--border);
}

.adminLoggedInArea {
  display: flex;
  align-items: center;
  gap: 8px;
}

.adminUserLabel {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body:not(.is-admin) .adminOnly {
  display: none !important;
}

.btn--sm {
  padding: 6px 10px;
  font-size: 0.85rem;
}

/* Ponudbe */
.offers,
.offerPreview {
  grid-column: 1 / -1;
}

.offersLayout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 16px;
  align-items: start;
}

@media (max-width: 1100px) {
  .offersLayout {
    grid-template-columns: 1fr;
  }
}

.offersFolders,
.offersList {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.offersFolderRow,
.offersOfferRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255,255,255,0.75);
  cursor: pointer;
}

.offersFolderRow.active {
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10);
}

.offersFolderName {
  font-weight: 600;
}

.offersOfferMain {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.offersOfferTitle {
  font-weight: 600;
}

.offersRowActions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* Predogled ponudbe */
.offerPreviewLayout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 16px;
  align-items: start;
}

@media (max-width: 1100px) {
  .offerPreviewLayout {
    grid-template-columns: 1fr;
  }
}

.offerItemsEditor {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.offerItemRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255,255,255,0.75);
}

.offerItemTitle {
  font-weight: 600;
}

.offerDocWrap {
  min-width: 0;
}

.offerDoc {
  background: white;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  box-shadow: 0 14px 50px rgba(11,16,32,0.12);
  padding: 20px 26px;
  max-width: 980px;
  margin: 0 auto;
}

.offerDocHeader {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 10px;
}

.offerDocCompanyHeader {
  margin-bottom: 16px;
}
.offerDocCompanyLogo {
  height: 40px;
  object-fit: contain;
  margin-bottom: 8px;
}
.offerDocCompanyLine {
  height: 1px;
  background: rgba(0,0,0,0.15);
  margin: 10px 0;
}
.offerDocCompanyInfo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  font-size: 0.9rem;
  color: rgba(11,16,32,0.85);
}
.offerDocCompanyLeft {
  white-space: pre-wrap;
  line-height: 1.5;
}
.offerDocCompanyRight {
  text-align: right;
  white-space: pre-wrap;
  line-height: 1.5;
}

.offerDocMeta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 16px;
}
.offerDocCustomerFields {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.offerDocCustomerFields input {
  width: 100%;
  max-width: 280px;
  padding: 6px 10px;
  border: 1px dashed rgba(0,0,0,0.15);
  border-radius: 8px;
  font-size: 0.95rem;
}
.offerDocDatePlace {
  flex-shrink: 0;
  font-size: 0.95rem;
  color: rgba(11,16,32,0.8);
}

.offerDocNumber {
  font-weight: 800;
  letter-spacing: 0.5px;
  color: rgba(11,16,32,0.78);
  margin-bottom: 12px;
}

.offerDocBody {
  font-size: 0.98rem;
  line-height: 1.45;
}

.offerPara {
  white-space: pre-wrap;
  margin: 8px 0 12px;
}

.offerEditable {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px dashed rgba(0,0,0,0.15);
  background: rgba(37,99,235,0.04);
}

.offerEditable:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10);
}

.offerBlock {
  margin: 14px 0;
  padding-top: 6px;
}

.offerBlockTitle {
  font-weight: 700;
  margin-bottom: 8px;
}

.offerKv {
  border-top: 1px solid rgba(0,0,0,0.08);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.offerKvRow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 4px 0;
}

.offerKvKey {
  color: rgba(11,16,32,0.68);
}

.offerKvVal {
  text-align: right;
  font-weight: 600;
}

.offerAddFieldWrap {
  margin-top: 6px;
}

.offerPrices,
.offerTotals {
  margin-top: 10px;
}

.offerPricesHorizontal .offerPriceRowGrid {
  display: grid;
  grid-template-columns: 140px repeat(auto-fill, minmax(70px, 1fr));
  gap: 12px;
  padding: 4px 0;
  align-items: center;
}

.offerPricesHorizontal .offerPriceRowGrid .offerQtyInput {
  width: 100%;
  min-width: 60px;
}

.offerQtyActionsRow .offerPriceKey {
  visibility: hidden;
}

.offerQtyDeleteBtn {
  width: 32px;
  min-width: 32px;
  padding: 2px 0;
  justify-self: start;
}

.offerPriceRow {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 0;
}

.offerPriceKey {
  color: rgba(11,16,32,0.68);
}

.offerPriceVal {
  font-weight: 800;
}
.offerQtyInput {
  width: 80px;
  padding: 4px 8px;
}

.offerTotalRow .offerPriceVal {
  font-size: 1.02rem;
}

.offerTerms {
  margin-top: 16px;
  padding-top: 10px;
  border-top: 1px solid rgba(0,0,0,0.10);
}

.offerTermsTitle {
  font-weight: 700;
  margin-bottom: 6px;
}

.offerTermsList {
  margin: 0 0 12px 18px;
  padding: 0;
}

.offerSignoff {
  white-space: pre-wrap;
  font-weight: 700;
}

.offerDocFooter {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(0,0,0,0.10);
  display: flex;
  justify-content: flex-start;
}

.offerDocLogo {
  height: 44px;
  object-fit: contain;
}

/* Fiksna vrednost polja (npr. brošura – strani ovitka) */
.field--readOnlyValue .fieldReadonlyValue {
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(11, 16, 32, 0.04);
  color: var(--text);
  font-weight: 500;
}

/* Mobilni prikaz produktnih izbir in cenovne matrike. */
@media (max-width: 640px) {
  .header__inner {
    gap: 6px;
  }

  .brand {
    gap: 6px;
    min-width: 0;
  }

  .brand__logo {
    width: 32px;
    height: 32px;
    border-radius: 9px;
  }

  .brand__title {
    max-width: 48px;
    font-size: 12px;
    line-height: 1.15;
  }

  .headerActions {
    min-width: 0;
    gap: 4px;
  }

  .countrySelect {
    width: 102px;
    min-width: 0;
    height: 34px;
    padding-inline: 6px;
    font-size: 12px;
  }

  .adminAuthArea {
    min-width: 0;
    margin-left: 0;
    padding-left: 4px;
    gap: 4px;
  }

  #adminLoginBtn,
  #adminLogoutBtn {
    padding: 8px 6px;
    font-size: 11px;
  }

  .imageChoiceGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .imageChoiceCard {
    min-width: 0;
    border-radius: 12px;
  }

  .imageChoiceImgWrap {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .imageChoiceLabel {
    padding: 7px 5px 8px;
    font-size: 12px;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  .imageChoiceZoom {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }

  .imageChoiceCard--none {
    min-height: 92px;
  }

  .imageChoiceX {
    font-size: 2rem;
  }

  .productMatrixRow {
    display: block;
  }

  .productDetailResults {
    width: 100%;
    margin-top: 16px;
  }

  .priceMatrixWrap {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow: visible;
  }

  .priceMatrixTable {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: none;
    border-spacing: 0;
    table-layout: fixed;
  }

  .priceMatrixTable tbody {
    display: block;
  }

  .priceMatrixTable tr {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    width: 100%;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
  }

  .priceMatrixTable tr:last-child {
    border-bottom: 0;
  }

  .priceMatrixTable tr > :first-child {
    grid-column: 1 / -1;
    width: auto;
    margin-bottom: 2px;
  }

  .priceMatrixTable th,
  .priceMatrixTable td {
    display: block;
    min-width: 0;
    padding: 0;
  }

  .pm__section,
  .pm__rowTitle {
    font-size: 12px;
    line-height: 1.3;
    white-space: normal;
  }

  .pm__head {
    font-size: 12px;
    text-align: center;
  }

  .pm__meta,
  .pm__inline {
    white-space: normal;
  }

  .pm__meta {
    font-size: 10.5px;
    line-height: 1.25;
    text-align: center;
  }

  .priceMatrix__cell {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: 64px;
    padding: 10px 4px;
    text-align: center;
  }

  .priceMatrix__value {
    padding-right: 0;
    font-size: 13px;
    line-height: 1.25;
    white-space: normal;
  }

  .priceMatrix__value .priceMatrix__per {
    display: block;
    margin-top: 2px;
    font-size: 10.5px;
  }

  .priceMatrix__save {
    display: block;
    width: fit-content;
    margin: 4px auto 0;
    font-size: 10.5px;
  }
}

@media (max-width: 360px) {
  .imageChoiceGrid {
    gap: 8px;
  }

  .imageChoiceLabel {
    font-size: 11px;
  }

  .priceMatrixTable tr {
    gap: 4px;
  }

  .priceMatrix__value {
    font-size: 12px;
  }
}
