@import 'variables';

.ebom_section_content {
  width: 100%;
}

.ebom_form {
  margin: 25px 50px;
  border: 1px solid $light-border-color;

  &.hidden {
    display: none;
  }
}

.ebom_subsection {
  width: 100%;
  border-top: 1px solid $light-border-color;

  &.submit {
    text-align: left;
    padding: 25px;
    display: flex;

    .button {
      width: 100px;
      height: 45px;
      box-sizing: border-box;
      padding: 0;
      text-align: center;
      line-height: 45px;
    }

    .cancel_button {
      border: 2px solid $light-border-color;
      color: $grey-text;
      background: white;
      margin-left: 10px;
    }

    .delete_button {
      color: white;
      background: #CE0B24;
    }

    a.button {
      display: inline-block;
      text-decoration: none;
      margin-left: 10px;

      &.hidden {
        display: none;
      }
    }
  }
}

.inverter_form_row {
  .bold_header {
    font-weight: $semi-bold;
    font-size: 18px;
    margin-left: 25px;
  }

  .form_row {
    margin-top: 0;
  }
}

#standalone_inverter_form .inverter_form_row {
  margin-top: 20px;
  width: 100%;
}

.inverter_inputs_container {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  margin: 0 20px;

  .form_row {
    margin-left: 0;
    margin-right: 0;
  }

  input, select {
    font-size: 16px;
    letter-spacing: 0;
  }
}

.required_inverter_fields {
  display: flex;
  width: 68%;

  .inverter_strings {
    width: 28%;
  }

  .inverter_model {
    width: calc(100% - 20px);
    flex-grow: 1;
  }

  .quantity {
    width: 65px;
  }
}

.optional_inverter_fields {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 5px;

  .checkbox_form_row {
    width: 100%;
    margin-top: 0;
    text-align: center;
  }
}

.checkbox_form_row {
  input {
    width: auto;
  }
}

#aux_plug_row.checkbox_form_row {
  align-self: center;
}

.checkbox_row {
  display: flex;
  width: 100%;
}

.add_button {
  font-size: 18px;
  font-weight: normal;

  &.disabled {
    color: $disabled-text-color;

    .icon-plus {
      color: #D6EBF6;
    }
  }
}

.power_station_table, .standalone_inverter_table, .supervisor_monitor_table {
  margin: 50px;
  font-size: 14px;
  width: calc(100% - 100px);
  border-spacing: 0;

  td {
    padding-left: 15px;
    padding-right: 20px;

    &.narrow_line {
      line-height: 90%;
    }

    &.centered {
      text-align: center;
    }
  }

  th {
    text-align: left;
    font-weight: 500;
    color: $medium-blue;
    padding-left: 15px;
    padding-bottom: 5px;
    border-bottom: 2px solid $medium-blue;
  }

  .alternating_row_color:nth-child(odd) {
    background-color: $table-alternate-row-color;
  }

  tr.alternating_row_color.selected {
    background: $default-button-color;
    color: white;
  }

  i {
    color: $grey-text;
    font-size: 20px;
  }

  i.icon-ok {
    color: #0075C2;
  }

  .trash_can_link {
    display: inline-block;
    text-decoration: none;
  }
}

.standalone_inverter_table, .supervisor_monitor_table {
  td {
    padding-top: 10px;
    padding-bottom: 10px;
  }
}

.icon-plus {
  font-size: 25px;
  font-weight: bold;
  color: #0075C2;
}

.empty_state {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: $off-white;
  font-weight: 500;
  color: $grey-text;
  font-size: 18px;
}

.ebom_section_header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-left: 50px;
  margin-right: 50px;
  font-size: 20px;
  font-weight: $semi-bold;
}

.monitoring_tag {
  background: #FBE7C8;
  color: #BA842C;
  border: 1px solid #F0D09D;
  border-radius: 3px;
  padding: 0 5px;
}
