/* Layout */
.tabell-padding-wrapper {
  margin: 0 auto;
  padding: 80px 0;
}
.cmp-intro {
  margin: 0 0 24px 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: inherit;
  opacity: 0.9;
}

/* Table wrapper with scroll */
.cmp-table-wrap {
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
  background: #fff;
}

.cmp-table-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

/* Table grid */
.cmp-grid {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 600px;
  margin: 0;
  background: #53162d;
}

/* Headers */
.cmp-grid thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  font-weight: 600!important;
  color: black!importan;
  background: #FFD492;
}

.cmp-grid thead th h5 {
  margin: 0;
  font-weight:500;
}

.icon-text img {
  height:19px;
  width:19px;
}


.icon-text {
  display:flex;
  gap:8px;
}


/* Sticky first column */
.cmp-grid th.cmp-sticky:first-child,
.cmp-grid tbody th {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #fff8f2;
  color: black;
}

/* Cells */
.cmp-grid th,
.cmp-grid td {
  padding: 16px 20px;
  vertical-align: middle;
  text-align: left;
  font-size: 0.95rem;
}

.cmp-grid tbody td {
  color: black;
  background-color: #fff8f2;
}

/* Rounded corners */
.cmp-grid thead th:first-child { border-top-left-radius: 12px; }
.cmp-grid thead th:last-child  { border-top-right-radius: 12px; }
.cmp-grid tbody tr:last-child th { border-bottom-left-radius: 12px; }
.cmp-grid tbody tr:last-child td:last-child { border-bottom-right-radius: 12px; }

/* Legend */
.cmp-legend {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.9rem;
}
.cmp-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  color: black;
  font-weight: 500;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .tabell-padding-wrapper { padding: 60px 0; }
  .cmp-intro { font-size: 1rem; }
  .cmp-grid th, .cmp-grid td { padding: 14px 16px; font-size: 0.9rem; }
  .cmp-grid thead th h5 { font-size: 1rem; }
  .cmp-table-scroll {
    position: relative;
    mask-image: linear-gradient(to right, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, black 90%, transparent);
  }
}

@media (max-width: 640px) {
  .tabell-padding-wrapper { padding: 40px 0; }
  .cmp-intro { font-size: 0.95rem; margin-bottom: 20px; }
  .cmp-grid th, .cmp-grid td { padding: 12px 14px; font-size: 0.875rem; }
  .cmp-grid thead th h5 { font-size: 0.95rem; }
  .cmp-legend { flex-direction: column; align-items: flex-start; gap: 10px; }
  .cmp-legend span { font-size: 0.8rem; padding: 6px 10px; }
}

/* Fix for top-left header cell */
.cmp-grid thead th.cmp-sticky:first-child {
  background: #FFD492; 
  color: black;
  z-index: 5; 
}

.cmp-table-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 30px;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(to left, rgba(0,0,0,0.1), transparent);
  opacity: 1;
  transition: opacity 0.3s ease;
}

.cmp-table-wrap.is-scrolling::after {
  opacity: 0;
}


.cmp-grid tbody tr:nth-child(odd) td,
.cmp-grid tbody tr:nth-child(odd) th {
  background-color: #fff;
}

.cmp-grid tbody tr:nth-child(even) td,
.cmp-grid tbody tr:nth-child(even) th {
  background-color: #fff3e8;
}

.cmp-grid th,
.cmp-grid td {
  border: none;
}
.cmp-grid thead th {
  border: none;
}
.cmp-grid th.cmp-sticky:first-child,
.cmp-grid tbody th {
  border-right: none;
}

.child_theme table td, .child_theme table th{
  border:none;
  padding: 16px 20px!important;
  border-right: 1px solid #FFEBD9!important;
}

.child_theme table th {
  font-weight:500;
}

tbody {
  border:1px solid #fff4e8!important;
}

th {
  font-weight:400:
}

.cmp-grid tbody tr:nth-child(odd) td, .cmp-grid tbody tr:nth-child(odd) th, .cmp-grid tbody tr:nth-child(even) td{
    border-right: 1px solid #FFEBD9;
}

.cmp-grid thead th.cmp-sticky:first-child {
    border-right: 1px solid #FFEBD9;
}

.child_theme table th {
    border-right: 1px solid #FFEBD9;
}