/**
 * 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);
}
#actuator-connexions-and-lubrication-specs h2{
  color: var(--color-primary);
}
div#actuator-connexions-and-lubrication-specs {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

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

div#actuator-connexions-and-lubrication-specs table.actuator-connexions-and-lubrication-specs-table {
  border-collapse: collapse;
}
table.actuator-connexions-and-lubrication-specs-table th, table.actuator-connexions-and-lubrication-specs-table td {
  border: 1px solid #ccc;
  padding: 4px;
}

table.actuator-connexions-and-lubrication-specs-table td {
  background-color: white;
}

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

div#actuator-connexions-and-lubrication-specs table.actuator-connexions-and-lubrication-specs-table thead > tr:first-child > th:first-child {
  width: 250px;
  background-color: var(--color-actuator);
  color: white;
}
div#actuator-connexions-and-lubrication-specs table.actuator-connexions-and-lubrication-specs-table tbody > tr > th:first-child {
  width: 250px;
}
div#actuator-connexions-and-lubrication-specs table.actuator-connexions-and-lubrication-specs-table tbody > tr > td:first-child {
  background-color: #eee !important;
  font-weight: 800;
}
div#actuator-connexions-and-lubrication-specs table.actuator-connexions-and-lubrication-specs-table thead tr:first-child > th:first-child, table.actuator-connexions-and-lubrication-specs-table td.merged-cells {
  color: var(--color-on-actuator);
  background-color: var(--color-actuator);
  font-weight: 700;
}

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

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

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

.actuator-connexions-and-lubrication-specs-table + .legend{
  color: var(--color-actuator);
}

.actuator-connexions-and-lubrication-specs-table + .legend p{
  margin-top: 0 !important;
}

table.actuator-connexions-and-lubrication-specs-table tbody .chip{
  background-color: #fff;
  border: 1px solid var(--color-actuator);
  color: var(--color-actuator);
  padding: 0px 4px;
  margin: 0px 2px;
  border-radius: 10px;
}

table.actuator-connexions-and-lubrication-specs-table tbody td a{
  font-weight: 400 !important;
}
table.actuator-connexions-and-lubrication-specs-table tbody a:hover .chip{
  /*opacity: .8;*/
  color: white;
  background-color: var(--color-actuator);
}

table.actuator-connexions-and-lubrication-specs-table tbody .not-link.chip:hover{
  /*opacity: .8;*/
  color: white;
  background-color: var(--color-actuator);
  opacity: .8;
}