:root {
  --tb-text: #3a3f46;
  --tb-muted: #6f7680;
  --tb-line: #d8dce2;
  --tb-line-strong: #b9bec6;
  --tb-head: #4a4f57;
  --tb-accent: #cf2b1e;
  --tb-bg: #ffffff;
  --tb-alt: #f5f6f8;
  --tb-radius: 10px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

.disto-comparison {
  margin: 24px 0;
}

.disto-comparison__intro h2 {
  margin: 0 0 10px;
  font-size: 30px;
  line-height: 1.1;
  font-weight: 700;
  color: var(--tb-text);
}

.disto-comparison__intro p {
  margin: 0 0 18px;
  font-size: 16px;
  color: var(--tb-muted);
}

.comparison-table-wrap {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--tb-line);
  border-radius: var(--tb-radius);
  background: var(--tb-bg);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  line-height: 1.25;
  color: var(--tb-text);
  background: var(--tb-bg);
}

.comparison-table a {
  color: inherit;
  text-decoration: none;
}

.comparison-table a:hover {
  text-decoration: underline;
}

.comparison-table col.col-section {
  width: 15%;
}

.comparison-table col.col-feature {
  width: 30%;
}

.comparison-table th,
.comparison-table td {
  padding: 7px 8px;
  border: 1px solid var(--tb-line);
  vertical-align: middle;
  background: var(--tb-bg);
}

.comparison-table thead th {
  background: var(--tb-head);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  text-align: center;
  line-height: 1.2;
  white-space: normal;
}

.comparison-table thead th.col-group,
.comparison-table thead th.col-feature {
  text-align: left;
}

.comparison-table tbody th[scope="rowgroup"] {
  color: var(--tb-accent);
  font-weight: 700;
  font-size: 14px;
  text-align: left;
  vertical-align: top;
  white-space: normal;
  word-break: break-word;
}

.comparison-table tbody th[scope="row"] {
  font-weight: 400;
  text-align: left;
  white-space: normal;
  word-break: break-word;
}

.comparison-table tbody td {
  text-align: center;
  white-space: normal;
  word-break: break-word;
}

.comparison-table tbody tr:nth-child(even) td,
.comparison-table tbody tr:nth-child(even) th[scope="row"] {
  background: var(--tb-alt);
}

.comparison-table tbody tr.section-row > * {
  border-top: 2px solid var(--tb-line-strong);
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  vertical-align: middle;
}

.dot--yes {
  background: #6aa84f;
}

.dot--no {
  background: #b7bcc4;
}

.cell-note {
  margin-left: 2px;
  font-weight: 700;
  color: var(--tb-text);
  font-size: 11px;
}

.comparison-notes {
  margin: 10px 0 0;
  font-size: 11px;
  line-height: 1.45;
  color: var(--tb-muted);
}

/* Variant compacta tipus fitxa tècnica Leica */
.taula-tecnica-icon .comparison-table-wrap {
  border: 0;
  border-radius: 0;
  overflow-x: auto;
}

.taula-tecnica-icon .comparison-table {
  font-size: 11px;
  line-height: 1.15;
  border-collapse: collapse;
  table-layout: fixed;
}

.taula-tecnica-icon .comparison-table col.col-section {
  width: 20%;
}

.taula-tecnica-icon .comparison-table col.col-feature {
  width: 28%;
}

.taula-tecnica-icon .comparison-table th,
.taula-tecnica-icon .comparison-table td {
  padding: 4px 6px;
  border: 0;
  border-bottom: 1px solid #8f949b;
  background: #fff;
  vertical-align: middle;
}

.taula-tecnica-icon .comparison-table thead th {
  background: #fff;
  color: #3a3f46;
  font-weight: 700;
  font-size: 13px;
  text-align: center;
  border-bottom: 2px solid #6a7078;
}

.taula-tecnica-icon .comparison-table tbody th[scope="rowgroup"] {
  color: #222;
  background: #eceef1;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  text-align: left;
  vertical-align: middle;
}

.taula-tecnica-icon .comparison-table tbody th[scope="row"] {
  color: #2f343b;
  font-weight: 400;
  text-align: left;
  background: #fff;
}

.taula-tecnica-icon .comparison-table tbody td {
  text-align: center;
  color: #2f343b;
  background: #fff;
}

.taula-tecnica-icon .comparison-table tbody tr.section-row > * {
  border-top: 2px solid #6a7078;
}

.taula-tecnica-icon .comparison-table tbody tr:nth-child(even) td,
.taula-tecnica-icon .comparison-table tbody tr:nth-child(even) th[scope="row"] {
  background: #fff;
}

.taula-tecnica-icon .comparison-table td[colspan="2"] {
  text-align: center;
}

.taula-tecnica-icon .comparison-table a {
  color: inherit;
  text-decoration: none;
}

.taula-tecnica-icon .comparison-table a:hover {
  text-decoration: underline;
}

.taula-tecnica-icon .comparison-notes {
  font-size: 10px;
  color: #444;
  margin-top: 10px;
}

.taula-tecnica-icon .comparison-table td,
.taula-tecnica-icon .comparison-table th[scope="row"] {
  text-align: left;
}

.taula-tecnica-icon .comparison-table thead th:not(.col-feature) {
  text-align: center;
}

.taula-tecnica-icon .comparison-table tbody td:has(.dot) {
  text-align: center;
}

@media (min-width: 1100px) {
  .comparison-table {
    font-size: 13px;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 7px 8px;
  }

  .comparison-table thead th {
    font-size: 15px;
  }

  .comparison-table tbody th[scope="rowgroup"] {
    font-size: 15px;
  }
  
  .product-spec-sheet .comparison-table col.col-section {
  width: 18%;
}

.product-spec-sheet .comparison-table col.col-feature {
  width: 30%;
}

.product-spec-sheet .comparison-table tbody td {
  text-align: left;
}

.product-spec-sheet .comparison-table tbody th[scope="rowgroup"] {
  vertical-align: top;
}

.product-spec-sheet .comparison-table tbody th[scope="row"] {
  font-weight: 400;
}

.product-spec-sheet .subsection,
.product-spec-sheet .subsection-row th[scope="row"] {
  color: var(--tb-accent);
  font-weight: 700;
}

.product-spec-sheet .subsection-row td {
  background: #fff;
}

.product-spec-sheet .comparison-notes p {
  margin: 0 0 6px;
}

@media (max-width: 900px) {
  .product-spec-sheet .comparison-table {
    min-width: 760px;
  }
}
  
}

@media (max-width: 900px) {
  .comparison-table {
    font-size: 11px;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 4px 5px;
  }

  .comparison-table col.col-section {
    width: 16%;
  }

  .comparison-table col.col-feature {
    width: 32%;
  }

  .comparison-notes {
    font-size: 10px;
  }

  .taula-tecnica-icon .comparison-table {
    font-size: 10px;
    min-width: 760px;
  }

  .taula-tecnica-icon .comparison-table-wrap {
    overflow-x: auto;
  }
}