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

:root {
  --color-motor: var(--color-primary);
}

table.motor-model-specs.power-range-05 { --color-motor: var(--color-power-range-05); }
table.motor-model-specs.power-range-07 { --color-motor: var(--color-power-range-07); }
table.motor-model-specs.power-range-08 { --color-motor: var(--color-power-range-08); }
table.motor-model-specs.power-range-10 { --color-motor: var(--color-power-range-10); }
table.motor-model-specs.power-range-20 { --color-motor: var(--color-power-range-20); }
table.motor-model-specs.power-range-25 { --color-motor: var(--color-power-range-25); }
table.motor-model-specs.power-range-30 { --color-motor: var(--color-power-range-30); }

table.motor-model-specs {
  width: 100%;
  text-align: center;
  font-size: .9em;
  border-spacing: 0;
  max-height: 500px;
  /*display: block !important;*/
}

table.motor-model-specs {
  display: block !important;
  overflow: auto;
}

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

table.motor-model-specs thead th, table.motor-model-specs tbody th {
  margin: 0;
  padding: 4px;
  font-size: .9em;
  font-weight: 600;
  vertical-align: center;
  color: #374047;
  background-color: #eee;
  
}
table.motor-model-specs thead th:not(:first-child) {
  min-width: 75px;
  
}
table.motor-model-specs thead tr:first-child th:first-child {
  color: var(--color-on-primary);
  background-color: var(--color-motor);
}
table.motor-model-specs thead th:first-child {
  width: 100%;
}

table.motor-model-specs thead tr:first-child th:first-child {
  width: 100%;
  position: sticky;
  left: 0;
  z-index: 100;
}
table.motor-model-specs thead {
  position: sticky;
  top:0;
  z-index: 1;
}

table.motor-model-specs thead th{
  position: relative;
}

table.motor-model-specs thead th::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: #ccc;
  z-index: -1;
}
table.motor-model-specs thead th::after {
  content: "";
  position: absolute;
  top: 0;
  right: -1px;
  width: 1px;
  height: 100%;
  background-color: #ccc;
  z-index: -1;
}

table.motor-model-specs + .legend{
  margin: 0;
  margin-top: 5px;
  font-size: .8em;
  font-style: italic;
  color: #717171;
}



/*
table.motor-model-specs th.model{
  position: relative;
}
table.motor-model-specs th.model span.curves{
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  bottom: 5px;
  right: 5px;
  border-radius: 50%;
  background-color: var(--color-primary);
  height: 20px;
  width: 20px;
}
table.motor-model-specs th.model span.curves i{
  color: white;
  font-size: 12px;
}*/
