/* ===== CAPTION - GROUP HEADER (v2: cold neutrals + orange) ===== */
.views-element-container table caption {
  caption-side: top;
  padding-bottom: 4px;
}

.views-element-container table caption .d-flex {
  margin-bottom: 0 !important;
  background-color: #F5F6F8 !important;
  border-left-color: #FF7A00 !important;
  border-left-width: 4px !important;
  padding: 8px 12px !important;
  border-radius: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

.views-element-container table caption .d-flex > div {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 0 !important;
  margin: 0 !important;
}

.views-element-container table caption .d-flex > div > span {
  font-size: 0.82rem !important;
  line-height: 1 !important;
  font-family: inherit !important;
  padding: 0 !important;
  margin: 0 !important;
  white-space: nowrap;
  display: inline-block !important;
  vertical-align: middle !important;
  position: relative;
  top: 0px;
}

.views-element-container table caption .d-flex > div > span.font-monospace {
  font-family: "Cascadia Code", SFMono-Regular, Consolas, "Liberation Mono", monospace !important;
  font-size: 0.85rem !important;
  line-height: 1 !important;
  display: inline-block !important;
  vertical-align: middle !important;
  position: relative;
  top: 1px;
}

.views-element-container table caption .d-flex > div > span:first-child {
  font-size: 0.82rem !important;
  position: relative;
  top: 0px;
}

/* Hex hodnota */
.views-element-container table caption .text-muted {
  color: #7A828E !important;
  font-size: 0.82rem !important;
  position: relative;
  top: 0px;
}

/* Description span */
.views-element-container table caption .text-dark {
  color: #2A2F38 !important;
  font-size: 0.82rem !important;
  position: relative;
  top: 0px;
}

.views-element-container table caption .flex-grow-1 {
  flex-grow: 1 !important;
  min-width: 0;
}

.views-element-container table caption .text-primary {
  color: #E56700 !important;
  font-weight: 700 !important;
  font-size: 0.82rem !important;
  position: relative;
  top: 0px;
}

.views-element-container table caption .vr {
  display: inline-block !important;
  width: 1px !important;
  height: 1rem !important;
  background-color: #C9CED6 !important;
  opacity: 0.8 !important;
  flex-shrink: 0 !important;
  align-self: center !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* ===== TABULKA HLAVICKA ===== */
.view-error-codes .table thead tr th {
  font-family: "Bahnschrift", "Arial Narrow", system-ui, sans-serif;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: #7A828E !important;
  background-color: #F5F6F8 !important;
  border: none !important;
  border-bottom: 2px solid #C9CED6 !important;
  padding: 7px 12px;
}

/* ===== PEVNE SIRKY STLPCOV ===== */
.view-error-codes .table {
  table-layout: fixed;
  width: 100%;
}

.view-error-codes .table thead th:nth-child(1) {
  width: 30%;
}

.view-error-codes .table thead th:nth-child(2) {
  width: 40%;
}

.view-error-codes .table thead th:nth-child(3) {
  width: 30%;
}

/* ===== TABULKA BODY ===== */
.views-element-container .table {
  font-size: 0.82rem;
  border-color: #E4E7EB;
  margin-bottom: 2rem;
}

.views-element-container .table tbody tr {
  vertical-align: top;
}

.views-element-container .table tbody td {
  padding: 10px 12px;
  border-color: #EEF0F3;
  color: #2A2F38;
  line-height: 1.5;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.views-element-container .table tbody td p {
  margin: 0 0 4px 0;
}

.views-element-container .table tbody td p:last-child {
  margin-bottom: 0;
}

.views-element-container .table-striped tbody tr:nth-of-type(odd) {
  background-color: #FAFBFC;
}

.views-element-container .table-hover tbody tr:hover {
  background-color: #F1F3F5;
  transition: background-color 0.15s ease;
}

/* ===== MEDZERA MEDZI SKUPINAMI ===== */
.views-element-container .view-content table {
  margin-bottom: 2rem;
}