/**
 * All of the CSS for the public-facing CSS source
 * for the MODEC actuator's specs.
 */

:root {
  --color-actuator: var(--color-primary);
  --color-on-actuator: var(--color-on-primary);
}

div#actuator-specs {
  display: flex;
  flex-direction: column;
  /*gap: 20px;*/
}

div#actuator-specs.actuator-motorization-electric {
  --color-actuator: var(--color-actuator-electric);
  --color-on-actuator: var(--color-on-primary);
}
div#actuator-specs.actuator-motorization-gas {
  --color-actuator: var(--color-actuator-gas);
  --color-on-actuator: var(--color-on-primary);
}
div#actuator-specs.actuator-motorization-pneumatic {
  --color-actuator: var(--color-actuator-pneumatic);
  --color-on-actuator: var(--color-on-primary);
}

div#actuator-specs table.actuator-specs-table {
  width: 100%;
  text-align: center;
  font-size: .9em;
  border-spacing: 0;
  white-space: nowrap;
}

div#actuator-specs table.actuator-specs-table{
  border-collapse: collapse;
}
table.actuator-specs-table th, table.actuator-specs-table td {
  border: 1px solid #ccc;
}
table.actuator-specs-table td {
  background-color:white;
}

table.actuator-specs-table thead th{
  /*background-color: var(--color-actuator) !important;*/
  color: white;
}

div#actuator-specs table.actuator-specs-table th {
  margin: 0;
  padding: 0 8px;
  font-weight: 600;
  color: #374047;
  background-color: #eee;
}

div#actuator-specs table.actuator-specs-table thead > tr:first-child > th:first-child {
  width: 250px;
  color: white;
  background-color: var(--color-surface);
}
div#actuator-specs table.actuator-specs-table tbody > tr > td:first-child {
  font-weight: 800;
  background-color: #eee !important;
  width: 250px;
}
div#actuator-specs table.actuator-specs-table thead tr:first-child > th:first-child, table.actuator-specs-table td.merged-cells {
  color: var(--color-on-actuator);
  background-color: var(--color-actuator);
  font-weight: 700;
}
div#actuator-specs table.actuator-specs-table tbody .not-available-cell {
  background-color: var(--color-actuator);
  color: white;
}
div#actuator-specs table.actuator-specs-table tbody .not-available-cell a{
  color: #00000085;
  text-decoration: underline;
}

div#actuator-specs table.actuator-specs-table tbody > tr > td:has(span.actuator-option-code-chip) {
  text-align: left;
  padding: 4px;
}
div#actuator-specs table.actuator-specs-table tbody > tr > td > span.actuator-option-code-chip {
  padding: 2px 8px;
  border-radius: 4px;
  color: var(--color-on-actuator);
  background-color: var(--color-actuator);
}

div#actuator-specs div#legend {
  font-style: italic;
}

div#actuator-specs div#notice {
  color: var(--color-actuator);
  border: 1px solid var(--color-actuator);
  padding: 5px 30px;
  background-color: white;
}

.actuator-specs-title{
  color: var(--color-primary);
  font-weight: 500;
  margin-bottom: 20px;
}

div#actuator-specs tbody tr td div.option-checked-chip-container {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  padding-left: 0px;
  justify-content: center;
}

div#actuator-specs tbody tr td span.option-checked-chip {
  background-color: var(--color-actuator);
  height: 10px;
  width: 10px;
  display: flex;
}

div#actuator-specs tbody tr td span.option-checked-chip-arrow {
  background-color: transparent;
  display: flex;
  border-style: solid;
  border-top-width: 5px;
  border-bottom-width: 5px;
  border-left-width: 6px;
  width: 0px;
  border-color: var(--color-actuator);
  border-top-color: transparent;
  border-right-color: transparent;
  border-bottom-color: transparent;
}

#technical-specs-legend p {
  margin-top: 0 !important;
}
#legend {
  margin-top: 5px !important;
  font-style: italic;
}