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

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

div#actuator-codes-by-options {
  display: flex;
  flex-direction: column;
  gap: 20px;
}



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

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

div#actuator-codes-by-options table.actuator-codes-by-options-table, table.actuator-codes-by-options-table th, table.actuator-codes-by-options-table td {
  border-collapse: collapse;
  border: 1px solid #ccc;
  min-width: 100px;
}

table.actuator-codes-by-options-table span {
  background: var(--color-actuator);
  margin: 2px !important;
  height: calc(100% - 24px);
  padding: 0px;
  border-radius: 2px;
  color: white;
  text-align: center;
  padding-left: 2px;
}

div#actuator-codes-by-options table.actuator-codes-by-options-table th {
  margin: 0;
  padding: 0 8px;
  font-weight: 700;
  background-color: var(--color-surface);
}

div#actuator-codes-by-options table.actuator-codes-by-options-table thead > tr:first-child > th:first-child {
  width: 250px;
}
div#actuator-codes-by-options table.actuator-codes-by-options-table tbody > tr > th:first-child {
  width: 250px;
}
div#actuator-codes-by-options table.actuator-codes-by-options-table thead tr:first-child > th:first-child, table.actuator-codes-by-options-table td.merged-cells {
  color: var(--color-on-actuator);
  background-color: var(--color-actuator);
  font-weight: 700;
}

div#actuator-codes-by-options div#legend {
  font-style: italic;
}

div#actuator-codes-by-options div#notice {
  color: var(--color-actuator);
  border: 1px solid var(--color-actuator);
  padding: 5px 30px;
}
