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

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

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

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


.options-container .title-container .title{
  width: 100%;
  background-color: var(--color-motor);
  color: white;
  text-align: left;
  padding-left: 5px;
  padding-top: 2px;
  padding-bottom: 2px;
}

table.motor-model-options-table{
  width: 100%;
  text-align: center;
  font-size: .9em;
  border-spacing: 0;
  border: none !important;
  border-collapse: collapse !important;
  display: block !important;
  overflow: auto !important;
}

/*table.motor-model-options-table {
  width: 100%;
  text-align: center;
  font-size: .9em;
  border-spacing: 0;
}*/

table.motor-model-options-table, table.motor-model-options-table th, table.motor-model-options-table td {
  border-collapse: collapse;
  border: 1px solid #ccc;
}

table.motor-model-options-table tbody tr td:first-child:before{
  content: "";
  position: absolute;
  top: 0;
  left: -1px;
  height: 100%;
  width: 1px;
  background-color: #ccc;
  z-index: 1;
  box-sizing: border-box;
}
table.motor-model-options-table tbody tr td:first-child:after{
  content: "";
  position: absolute;
  top: 0;
  right: -1px;
  height: 100%;
  width: 1px;
  background-color: #ccc;
  z-index: 2;
  box-sizing: border-box;
}

table.motor-model-options-table tbody tr td:first-child,  table.motor-model-options-table tfoot tr th:first-child{
  width: 240px;
 /* max-width: 280px;*/
  min-width: 240px;
}

table.motor-model-options-table tbody tr td:not(:first-child),  table.motor-model-options-table tfoot tr th:not(:first-child){
  width: 150px;
  /*max-width: 40px;*/
  min-width: 60px;
}

@media only screen and (max-width: 600px){
  table.motor-model-options-table tbody tr td:first-child,  table.motor-model-options-table tfoot tr th:first-child{
    width: 175px;
    /*max-width: 280px;*/
    min-width: 175px;  
  }

  table.motor-model-options-table tbody tr td:not(:first-child),  table.motor-model-options-table tfoot tr th:not(:first-child){
    width: 150px;
    /*max-width: 40px;*/
    min-width: 45px;
  }
}

table.motor-model-options-table .header{
  font-size: 14px;
  font-weight: 600;
  background-color: #eee;
}

table.motor-model-options-table tbody tr td div.option-checked-chip-container{
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  padding-left: 0px;
  justify-content: center;
}
table.motor-model-options-table tbody tr td span.option-checked-chip{
  background-color: var(--color-motor);
  height: 10px;
  width: 10px;
  display: flex;
}

table.motor-model-options-table 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-motor);
  border-top-color: transparent;
  border-right-color: transparent;
  border-bottom-color: transparent;
}

table.motor-model-options-table{
  table-layout: fixed;
}

table.motor-model-options-table tbody tr td:first-child, 
table.motor-model-options-table tfoot tr th:first-child{
  position: sticky;
  left: 0;
  padding-left: 0;
  padding-right: 0;
}

