/* TABLE BASE */
table {
  width: 100%;
  border-collapse: collapse;
  border: 0.5px solid #373638;
}

th,
td {
  height: 60px;
  border: 0.5px solid #373638;
  padding: 10px;
  text-align: center;
  font-size: 14px;
  border-left: unset;
  border-right: unset;
}

/* Labels */
.label {
  background-color: #2b2b2b;
  text-transform: uppercase;
  font-weight: 600;
  width: 160px;
}

@media (min-width: 768px) {
  .label {
    width: 224px;
  }
}

/* Values */
.value {
  color: #d1d1d1;
  width: calc(100% - 160px);
}

@media (min-width: 768px) {
  .value {
    width: calc(100% - 224px);
  }
}

.value small {
  font-size: 12px;
}

.value span {
  color: #f1e67e;
}

/* Section headers */
.section-header,
.total-power {
  padding: 14px 16px;
  border: 0.5px solid #a1a1a1;
  font-size: 14px;
  text-transform: uppercase;
  font-weight: 600;
  text-align: center;
  background-color: #333;
}

.section-header {
  border-bottom: 0;
}

.total-power {
  border-top: 0;
}

/* Spec container */
.spec-container {
  max-width: 560px;
  color: #fff;
  overflow: hidden;
  width: 100%;
}

/* INPUT TABLE */
.input-table table {
  table-layout: fixed;
}

.input-table td.value {
  width: calc((100% - 160px) / 2);
}

@media (min-width: 768px) {
  .input-table td.value {
    width: calc((100% - 224px) / 2);
  }
}

/* OUTPUT TABLE */
.output-table table {
  table-layout: fixed;
}

.output-table th.label-output {
  width: calc((100% - 160px) / 2);
}

@media (min-width: 768px) {
  .output-table th.label-output {
    width: calc((100% - 224px) / 2);
  }
}

.output-table .output-header {
  border: 0.5px solid #a1a1a1;
  border-top: 0;
}

.output-table .output-header th {
  height: 36px;
  letter-spacing: 2px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  background-color: #333;
  border: 0;
}

/* CABLE LISTING */
.cable-listing {
  width: 1000px;
  margin-top: 20px;
  overflow-x: auto;
}

@media (max-width: 767px) {
  .cable-listing {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

.cable-table {
  border-collapse: collapse;
  width: 100%;
}

/* Table headers */
.cable-table th.label {
  font-size: 11px;
  height: 43px;
  color: #c1c6c8;
  text-transform: uppercase;
  background-color: #262626;
  line-height: normal;
  width: auto;
}

@media (max-width: 767px) {
  .cable-table th.label {
    display: table-cell;
    white-space: nowrap;
  }

  .cable-table thead tr {
    display: table-row;
  }

  .cable-table th.label:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    background-color: #262626;
    box-shadow: 2px 0 6px rgba(0, 0, 0, 0.5);
  }
}

/* Table values */
.cable-table td.value {
  color: #fff;
  font-size: 12px;
  padding: 12px;
  width: auto;
  min-height: 45px;
}

@media (min-width: 768px) {
  .cable-table td.value {
    height: 43px;
    padding: 32px 8px;
  }
}

.cable-table td.value img {
  max-width: 80%;
}

/* Mobile value group */
@media (max-width: 767px) {
  .cable-table {
    min-width: 640px;
  }

  .cable-table tbody {
    display: table-row-group;
  }

  .cable-table tbody tr {
    display: table-row;
  }

  .cable-table tbody tr td.value {
    border: 0.5px solid #373638;
  }

  .cable-table td.value:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    background-color: #1f1f1f;
    text-align: left;
    box-shadow: 2px 0 6px rgba(0, 0, 0, 0.5);
  }
}

/* Scroll hint */
.scroll-hint {
  display: none;
  font-size: 11px;
  color: #888;
  text-align: right;
  margin-bottom: 6px;
}

@media (max-width: 767px) {
  .scroll-hint {
    display: block;
  }

  .value__group p:first-child {
    display: none;
  }
}
