/**
 * ============================================================================
 * TEHNIČNI CENTER CSS (files/assets/css/tehnicni-center.css)
 * ============================================================================
 * Stili za iskalnik tehničnih podatkov klimatskih naprav. Vsi razredi: tc-*
 * Videz usklajen z dimenzije-klime.css (barve, polmeri, sence).
 * ============================================================================
 */

.tc-hero {
  background: transparent;
  padding: 36px 20px 16px;
  text-align: center;
}

.tc-hero-inner {
  max-width: 960px;
  margin: 0 auto;
}

.tc-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #1e40af;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 9999px;
  margin-bottom: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.tc-hero-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
  margin: 0 0 16px;
}

.tc-hero-desc {
  font-size: 1.125rem;
  color: #475569;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 24px;
}

.tc-hero-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
}

.tc-stat {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

.tc-stat-number {
  font-size: 1.25rem;
  font-weight: 800;
  color: #2563eb;
  min-width: 2ch;
}

.tc-stat-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: #334155;
}

/* Glavni vsebnik */
.tc-main {
  width: 100%;
  min-width: 0; /* flex item in .page-wrapper: prevent wide table from stretching the page */
  max-width: none; /* širina določa .page-wrapper (1440 px), enako kot glava in noga */
  margin: 0;
  padding: 24px 0 48px;
}

.tc-section {
  margin-bottom: 40px;
  scroll-margin-top: 90px;
}

.tc-section-head {
  margin-bottom: 18px;
}

.tc-section-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 8px;
  line-height: 1.25;
}

.tc-section-lead {
  font-size: 1rem;
  color: #475569;
  line-height: 1.6;
  margin: 0;
  max-width: 820px;
}

/* Gumbi */
.tc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.tc-btn-primary {
  background: #2563eb;
  color: #ffffff;
}

.tc-btn-primary:hover:not(:disabled) {
  background: #1d4ed8;
}

.tc-btn-primary:disabled {
  background: #94a3b8;
  cursor: not-allowed;
}

.tc-btn-ghost {
  background: #ffffff;
  color: #334155;
  border-color: #cbd5e1;
}

.tc-btn-ghost:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
}

.tc-btn:focus-visible,
.tc-chip:focus-visible,
.tc-cmp-btn:focus-visible,
.tc-input:focus-visible,
.tc-select:focus-visible,
.tc-check input:focus-visible,
.tc-compare-chip-x:focus-visible,
.tc-glossary summary:focus-visible,
.tc-model-link:focus-visible,
.tc-quick-name:focus-visible,
.tc-link:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.55);
  outline-offset: 2px;
}

/* Hitri odgovori */
.tc-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.tc-quick-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
  min-height: 270px;
}

.tc-quick-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 4px;
}

.tc-quick-sub {
  font-size: 0.82rem;
  color: #64748b;
  margin: 0 0 12px;
  line-height: 1.4;
}

.tc-quick-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
}

.tc-quick-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  min-height: 58px;
}

.tc-quick-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
  text-decoration: none;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tc-quick-name:hover {
  color: #2563eb;
  text-decoration: underline;
}

.tc-quick-val {
  font-size: 0.85rem;
  font-weight: 800;
  color: #2563eb;
}

.tc-quick-empty,
.tc-quick-loading {
  color: #64748b;
  font-size: 0.88rem;
}

.tc-quick-btn {
  align-self: stretch;
}

/* Iskalnik */
.tc-finder {
  background: transparent;
}

.tc-mount {
  min-height: 640px;
}

.tc-controls {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-card, 24px);
  padding: 24px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
  margin-bottom: 20px;
}

.tc-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.tc-field label,
.tc-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #475569;
}

.tc-field-search {
  margin-bottom: 16px;
  max-width: 520px;
}

.tc-field-brands {
  margin-bottom: 16px;
}

.tc-input,
.tc-select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  background: #f8fafc;
  color: #0f172a;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.tc-select {
  cursor: pointer;
}

.tc-input:focus,
.tc-select:focus {
  outline: none;
  border-color: #2563eb;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.tc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tc-chip {
  padding: 7px 16px;
  border-radius: 9999px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tc-chip:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
}

.tc-chip.is-on {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

/* Skupine gumbov (tip enote, energijski razred) */
.tc-chipgroups {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 40px;
  margin-bottom: 18px;
}

/* Zložljiv razdelek "Več filtrov" */
.tc-more {
  margin: 4px 0 18px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}

.tc-more > summary {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 12px 16px;
  font-weight: 700;
  color: #1e293b;
  cursor: pointer;
  list-style: none;
}

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

.tc-more > summary::before {
  content: '';
  flex: 0 0 auto;
  align-self: center;
  width: 8px;
  height: 8px;
  border-right: 2px solid #64748b;
  border-bottom: 2px solid #64748b;
  transform: rotate(-45deg);
  transition: transform 0.15s ease;
}

.tc-more[open] > summary::before {
  transform: rotate(45deg);
}

.tc-more-sub {
  font-size: 0.82rem;
  font-weight: 500;
  color: #64748b;
}

.tc-more > summary:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.45);
  outline-offset: 2px;
  border-radius: 12px;
}

.tc-more > .tc-filter-grid {
  padding: 4px 16px 16px;
}

/* Mere in masa enot v tabeli */
.tc-unit-dim {
  display: block;
  white-space: nowrap;
}

.tc-unit-meta {
  display: block;
  margin-top: 2px;
  font-size: 0.78rem;
  color: #64748b;
  white-space: nowrap;
}

/* Povezava na stran modela / serije s tehničnimi podatki */
.tc-details-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.tc-details-link:hover {
  background: #dbeafe;
  border-color: #60a5fa;
}

.tc-details-link:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.45);
  outline-offset: 2px;
}

/* Znamke z logotipom */
.tc-chip-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 128px;
  height: 52px;
  padding: 8px 14px;
  border-radius: 12px;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  position: relative;
}

.tc-chip-logo:hover {
  background: #ffffff;
  border-color: #94a3b8;
}

.tc-chip-logo-img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(0.85);
  opacity: 0.8;
  transition: filter 0.15s ease, opacity 0.15s ease;
}

.tc-chip-logo:hover .tc-chip-logo-img,
.tc-chip-logo.is-on .tc-chip-logo-img {
  filter: none;
  opacity: 1;
}

.tc-chip.tc-chip-logo.is-on {
  background: #eff6ff;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

.tc-chip-logo.is-on::after {
  content: '';
  position: absolute;
  top: -6px;
  right: -6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #2563eb url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Drsniki */
.tc-slider {
  --tc-thumb: #94a3b8;
  --tc-fill: #cbd5e1;
  --tc-off: #e2e8f0;
  min-width: 0;
}

.tc-slider.is-active {
  --tc-thumb: #2563eb;
  --tc-fill: #2563eb;
}

.tc-slider-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.tc-slider-val {
  font-size: 0.88rem;
  font-weight: 700;
  color: #64748b;
  white-space: nowrap;
}

.tc-slider.is-active .tc-slider-val {
  color: #1d4ed8;
}

.tc-slider-scale {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: #94a3b8;
  margin-top: -2px;
}

.tc-range {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 24px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  outline: none;
}

.tc-range-min {
  --tc-track-bg: linear-gradient(to right, var(--tc-off) var(--pct, 0%), var(--tc-fill) var(--pct, 0%));
}

.tc-range-max {
  --tc-track-bg: linear-gradient(to right, var(--tc-fill) var(--pct, 100%), var(--tc-off) var(--pct, 100%));
}

.tc-range::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: var(--tc-track-bg, var(--tc-off));
}

.tc-range::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: var(--tc-track-bg, var(--tc-off));
}

.tc-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  margin-top: -8px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid var(--tc-thumb);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.25);
  cursor: grab;
  transition: transform 0.12s ease;
}

.tc-range::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid var(--tc-thumb);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.25);
  cursor: grab;
}

.tc-range:hover::-webkit-slider-thumb,
.tc-range:active::-webkit-slider-thumb {
  transform: scale(1.1);
}

.tc-range:active::-webkit-slider-thumb {
  cursor: grabbing;
}

.tc-range:focus-visible::-webkit-slider-thumb {
  outline: 3px solid rgba(37, 99, 235, 0.45);
  outline-offset: 2px;
}

.tc-range:focus-visible::-moz-range-thumb {
  outline: 3px solid rgba(37, 99, 235, 0.45);
  outline-offset: 2px;
}

/* Dvojni drsnik (od–do): dva prekrivajoča vnosa nad skupno sledjo */
.tc-range-dual {
  position: relative;
  height: 24px;
}

.tc-range-track {
  position: absolute;
  left: 0;
  right: 0;
  top: 9px;
  height: 6px;
  border-radius: 999px;
  background: var(--tc-off);
}

.tc-range-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  border-radius: 999px;
  background: var(--tc-fill);
}

.tc-range-dual .tc-range {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
}

.tc-range-dual .tc-range::-webkit-slider-runnable-track {
  background: transparent;
}

.tc-range-dual .tc-range::-moz-range-track {
  background: transparent;
}

.tc-range-dual .tc-range::-webkit-slider-thumb {
  pointer-events: auto;
}

.tc-range-dual .tc-range::-moz-range-thumb {
  pointer-events: auto;
}

/* Stikalo za Wi-Fi */
.tc-switch {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  position: relative;
  font-weight: 600;
  color: #334155;
}

.tc-switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.tc-switch-track {
  position: relative;
  flex: 0 0 auto;
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: #cbd5e1;
  transition: background-color 0.18s ease;
}

.tc-switch-track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.3);
  transition: transform 0.18s ease;
}

.tc-switch input:checked + .tc-switch-track {
  background: #2563eb;
}

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

.tc-switch input:focus-visible + .tc-switch-track {
  outline: 3px solid rgba(37, 99, 235, 0.45);
  outline-offset: 2px;
}

.tc-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.tc-filter-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px 18px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
}

.tc-field-check {
  justify-content: flex-end;
}

.tc-check {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  font-size: 0.92rem !important;
  color: #1e293b !important;
  cursor: pointer;
}

.tc-check input {
  width: 20px;
  height: 20px;
  accent-color: #2563eb;
  cursor: pointer;
}

.tc-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
}

.tc-count {
  margin: 0;
  font-size: 0.95rem;
  color: #64748b;
  min-height: 1.5em;
}

.tc-count strong {
  color: #0f172a;
  font-size: 1.05rem;
}

.tc-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
}

.tc-field-inline {
  min-width: 230px;
}

/* Rezultati: tabela */
.tc-results {
  min-height: 320px;
}

.tc-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.tc-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.tc-table thead th {
  background: #f8fafc;
  color: #334155;
  font-weight: 700;
  padding: 14px 12px;
  border-bottom: 2px solid #e2e8f0;
  white-space: nowrap;
  vertical-align: bottom;
}

/* Razvrščanje s klikom na glavo stolpca */
.tc-sort-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 0;
  margin: 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 700;
  color: inherit;
  cursor: pointer;
  white-space: nowrap;
}

.tc-sort-btn::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #94a3b8;
  opacity: 0.55;
}

.tc-sort-btn:hover::after {
  opacity: 1;
}

.tc-sort-btn.is-active::after {
  opacity: 1;
  border-top-color: #2563eb;
}

.tc-sort-btn.is-active[data-dir="asc"]::after {
  border-top: 0;
  border-bottom: 5px solid #2563eb;
}

.tc-sort-btn:hover {
  color: #1d4ed8;
}

.tc-sort-btn:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 3px;
  border-radius: 4px;
}

.tc-sort-sep {
  color: #94a3b8;
  font-weight: 500;
}

/* Paginacija */
.tc-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-top: 18px;
}

.tc-pager-info {
  margin: 0;
  font-size: 0.9rem;
  color: #64748b;
}

.tc-pager-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.tc-page-btn {
  min-width: 40px;
  padding: 8px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #ffffff;
  color: #334155;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.tc-page-btn:hover:not(:disabled):not(.is-current) {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.tc-page-btn.is-current {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
  cursor: default;
}

.tc-page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.tc-page-btn:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.tc-page-gap {
  padding: 0 4px;
  color: #94a3b8;
}

.tc-th-sub {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  color: #64748b;
}

.tc-table tbody tr {
  border-bottom: 1px solid #f1f5f9;
  transition: background-color 0.15s ease;
}

.tc-table tbody tr:hover {
  background-color: #f8fafc;
}

.tc-table tbody tr.is-selected {
  background-color: #eff6ff;
  box-shadow: inset 3px 0 0 #2563eb;
}

.tc-table td {
  padding: 12px;
  vertical-align: middle;
  color: #1e293b;
}

.tc-table th.is-sorted,
.tc-table td.is-sorted {
  background-color: rgba(37, 99, 235, 0.06);
}

.tc-table th.is-sorted {
  color: #1d4ed8;
  box-shadow: inset 0 -3px 0 #2563eb;
}

.tc-model {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 260px;
}

.tc-thumb {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.tc-thumb-empty {
  display: inline-block;
  background: #f1f5f9;
}

.tc-model-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.tc-model-link {
  font-weight: 700;
  font-size: 0.95rem;
  color: #0f172a;
  text-decoration: none;
  line-height: 1.3;
}

a.tc-model-link:hover {
  color: #2563eb;
  text-decoration: underline;
}

.tc-series {
  font-size: 0.8rem;
  color: #64748b;
}

.tc-code {
  font-family: monospace;
  font-size: 0.76rem;
  color: #475569;
}

.tc-na {
  color: #94a3b8;
}

.tc-wifi {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  background: #f1f5f9;
  color: #475569;
}

.tc-wifi.is-builtin {
  background: #dcfce7;
  color: #166534;
}

.tc-price {
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
}

.tc-price-ask {
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
}

/* Gumb Primerjaj (checkbox slog) */
.tc-cmp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.tc-cmp-btn:hover:not(:disabled) {
  border-color: #2563eb;
  color: #2563eb;
}

.tc-cmp-box {
  width: 16px;
  height: 16px;
  border: 2px solid #94a3b8;
  border-radius: 4px;
  background: #ffffff;
  flex-shrink: 0;
  position: relative;
}

.tc-cmp-btn.is-selected {
  background: #eff6ff;
  border-color: #2563eb;
  color: #1d4ed8;
}

.tc-cmp-btn.is-selected .tc-cmp-box {
  background: #2563eb;
  border-color: #2563eb;
}

.tc-cmp-btn.is-selected .tc-cmp-box::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 0;
  width: 4px;
  height: 8px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.tc-cmp-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Gumb v prvem stolpcu (pod imenom modela) */
.tc-model-text .tc-cmp-btn {
  align-self: flex-start;
  margin-top: 8px;
  padding: 5px 10px;
  font-size: 0.78rem;
}

/* Okno primerjave dveh modelov */
body.tc-modal-open {
  overflow: hidden;
}

body.tc-modal-open .floating-call-btn {
  display: none;
}

.tc-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(15, 23, 42, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.tc-modal[hidden] {
  display: none;
}

.tc-modal-dialog {
  background: #ffffff;
  border-radius: 20px;
  width: 100%;
  max-width: 1000px;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35);
}

.tc-modal-top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid #e2e8f0;
}

.tc-modal-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
  margin-right: auto;
}

.tc-modal-diff {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
}

.tc-modal-close {
  width: 36px;
  height: 36px;
  border: 1px solid #cbd5e1;
  border-radius: 50%;
  background: #ffffff;
  font-size: 1.4rem;
  line-height: 1;
  color: #334155;
  cursor: pointer;
}

.tc-modal-close:hover {
  border-color: #2563eb;
  color: #2563eb;
}

.tc-modal-scroll {
  overflow: auto;
}

.tc-cmp-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.tc-cmp-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #ffffff;
  border-bottom: 2px solid #e2e8f0;
  padding: 14px 16px;
  vertical-align: top;
}

.tc-cmp-corner {
  width: 32%;
}

.tc-cmp-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-align: left;
}

.tc-cmp-name {
  font-weight: 800;
  font-size: 0.98rem;
  color: #0f172a;
  line-height: 1.3;
}

.tc-cmp-table tbody th,
.tc-cmp-table tbody td {
  padding: 10px 16px;
  border-bottom: 1px solid #f1f5f9;
  text-align: left;
  font-size: 0.9rem;
  color: #1e293b;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.tc-cmp-table tbody th {
  font-weight: 600;
  color: #475569;
}

.tc-cmp-table tbody th.is-hl {
  color: #0f172a;
  font-weight: 800;
}

.tc-cmp-unit {
  font-weight: 500;
  color: #94a3b8;
}

.tc-cmp-table tr.tc-cmp-section th {
  background: #f1f5f9;
  color: #0f172a;
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 8px 16px;
}

.tc-modal.only-diff tr.is-same {
  display: none;
}

@media (max-width: 640px) {
  .tc-modal {
    padding: 0;
  }
  .tc-modal-dialog {
    border-radius: 0;
    height: 100%;
  }
  .tc-modal-top {
    flex-wrap: wrap;
    gap: 8px 12px;
    padding: 12px 14px;
  }
  .tc-cmp-corner {
    width: 28%;
  }
  .tc-cmp-table thead th,
  .tc-cmp-table tbody th,
  .tc-cmp-table tbody td {
    padding: 8px 10px;
    font-size: 0.82rem;
  }
}

/* Nalaganje, napaka, prazno stanje */
.tc-loading,
.tc-error,
.tc-empty {
  text-align: center;
  padding: 48px 20px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  color: #475569;
}

.tc-loading {
  min-height: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.tc-empty p,
.tc-error p {
  margin: 0 0 12px;
}

.tc-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #e2e8f0;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: tcSpin 0.8s linear infinite;
  margin: 0 auto 16px;
}

@keyframes tcSpin {
  to { transform: rotate(360deg); }
}

/* Spodnja vrstica za primerjavo */
.tc-compare-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid #cbd5e1;
  box-shadow: 0 -6px 20px rgba(15, 23, 42, 0.12);
  padding: 12px 20px;
}

.tc-compare-bar[hidden] {
  display: none;
}

/* Plavajoči gumb "Pokličite nas" dvignemo nad vrstico za primerjavo */
body.tc-has-bar .floating-call-btn {
  bottom: 88px !important;
}

.tc-compare-inner {
  max-width: 1380px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.tc-compare-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.tc-compare-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 260px;
  padding: 4px 6px 4px 12px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #1e3a8a;
}

.tc-compare-chip-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tc-compare-chip-x {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border: none;
  border-radius: 50%;
  background: #dbeafe;
  color: #1e3a8a;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.tc-compare-chip-x:hover {
  background: #2563eb;
  color: #ffffff;
}

body.tc-has-bar {
  padding-bottom: 76px;
}

/* Lestvica hrupa */
.tc-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-card, 24px);
  padding: 32px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
}

.tc-scale {
  position: relative;
  margin: 28px 8px 8px;
  padding-top: 8px;
}

.tc-scale-track {
  position: relative;
  height: 14px;
  border-radius: 9999px;
  background: linear-gradient(90deg, #bbf7d0 0%, #fde68a 55%, #fecaca 100%);
  border: 1px solid #e2e8f0;
}

.tc-tick {
  position: absolute;
  top: 100%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: #475569;
  padding-top: 4px;
}

.tc-tick::before {
  content: "";
  position: absolute;
  top: -14px;
  width: 2px;
  height: 14px;
  background: #64748b;
}

.tc-scale-axis {
  height: 36px;
}

.tc-pin {
  position: absolute;
  top: -10px;
  width: 22px;
  height: 22px;
  margin-left: -11px;
  border-radius: 50%;
  border: 3px solid #ffffff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.35);
  z-index: 2;
}

.tc-pin.is-min,
.tc-pin-legend-item.is-min .tc-pin-dot { background: #16a34a; }
.tc-pin.is-median,
.tc-pin-legend-item.is-median .tc-pin-dot { background: #2563eb; }
.tc-pin.is-max,
.tc-pin-legend-item.is-max .tc-pin-dot { background: #dc2626; }

.tc-ref-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.tc-ref-list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 0.9rem;
  color: #334155;
}

.tc-ref-db {
  font-weight: 800;
  color: #2563eb;
  white-space: nowrap;
  min-width: 4.8em;
}

.tc-pin-legend {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  min-height: 24px;
}

.tc-pin-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #334155;
}

.tc-pin-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
}

.tc-noise-note {
  margin: 18px 0 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #475569;
}

/* Slovar */
.tc-glossary {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tc-glossary details {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
}

.tc-glossary summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 20px;
  font-size: 1.02rem;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 14px;
}

.tc-glossary summary::-webkit-details-marker {
  display: none;
}

.tc-glossary summary::after {
  content: "+";
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #eff6ff;
  color: #2563eb;
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tc-glossary details[open] summary::after {
  content: "\2212";
}

.tc-glossary details[open] {
  border-color: #93c5fd;
}

.tc-glossary-body {
  padding: 0 20px 18px;
}

.tc-glossary-body p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.7;
  color: #334155;
}

/* FAQ */
.tc-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.tc-faq-item {
  background: #f8fafc;
  padding: 24px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
}

.tc-faq-item h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 10px;
}

.tc-faq-item p {
  font-size: 0.96rem;
  line-height: 1.65;
  color: #475569;
  margin: 0;
}

/* Povezana orodja */
.tc-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 14px;
  padding: 20px 24px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
}

.tc-links-title {
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 8px 0 0;
}

.tc-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #2563eb;
  text-decoration: none;
  transition: all 0.2s ease;
}

.tc-link:hover {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

/* Odzivnost */
@media (max-width: 1100px) {
  .tc-quick-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .tc-filter-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tc-ref-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tabela se na mobilnih napravah pretvori v kartice */
@media (max-width: 768px) {
  .tc-table-wrap {
    border: none;
    background: transparent;
    box-shadow: none;
    overflow: visible;
  }
  .tc-table,
  .tc-table tbody {
    display: block;
  }
  .tc-table thead {
    display: none;
  }
  .tc-table tbody {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .tc-table tbody tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  }
  .tc-table tbody tr.is-selected {
    background: #eff6ff;
    border-color: #2563eb;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.15);
  }
  .tc-table td {
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-weight: 600;
  }
  .tc-table td::before {
    content: attr(data-label);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
  }
  .tc-table td.tc-td-model,
  .tc-table td.tc-td-cmp {
    grid-column: 1 / -1;
  }
  .tc-table td.tc-td-model::before,
  .tc-table td.tc-td-cmp::before {
    display: none;
  }
  .tc-table td.tc-td-model {
    padding-top: 0;
  }
  .tc-table td.tc-td-cmp {
    border-bottom: none;
    padding-bottom: 0;
    padding-top: 12px;
  }
  .tc-table td.is-sorted {
    background: rgba(37, 99, 235, 0.07);
    border-radius: 6px;
    padding-left: 8px;
    padding-right: 8px;
  }
  .tc-model {
    min-width: 0;
  }
  .tc-faq-grid {
    grid-template-columns: 1fr;
  }
  .tc-card {
    padding: 22px 18px;
  }
}

@media (max-width: 640px) {
  .tc-hero {
    padding: 24px 16px 12px;
  }
  .tc-main {
    padding: 16px 0 40px;
  }
  .tc-section-title {
    font-size: 1.4rem;
  }
  .tc-quick-grid {
    grid-template-columns: 1fr;
  }
  .tc-quick-card {
    min-height: 0;
  }
  .tc-controls {
    padding: 16px;
  }
  .tc-filter-grid {
    grid-template-columns: 1fr;
  }
  .tc-field-inline {
    min-width: 0;
    width: 100%;
  }
  .tc-toolbar-actions {
    width: 100%;
  }
  .tc-toolbar-actions .tc-btn {
    width: 100%;
  }
  .tc-ref-list {
    grid-template-columns: 1fr;
  }
  .tc-compare-bar {
    padding: 10px 12px;
  }
  .tc-compare-inner {
    gap: 10px;
  }
  /* Ena vrstica: čipi se pomikajo vodoravno, gumb ostane desno */
  .tc-compare-chips {
    flex: 1 1 auto;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .tc-compare-chips::-webkit-scrollbar {
    display: none;
  }
  .tc-compare-chip {
    flex: 0 0 auto;
    max-width: 180px;
  }
  .tc-compare-inner > .tc-btn {
    flex: 0 0 auto;
    white-space: nowrap;
  }
  body.tc-has-bar {
    padding-bottom: 80px;
  }
  .tc-links {
    padding: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tc-spinner {
    animation-duration: 2s;
  }
  .tc-btn,
  .tc-chip,
  .tc-cmp-btn,
  .tc-link {
    transition: none;
  }
}
