.datatable-editor {
  
  .bp4-form-group {
    margin-bottom: 0;
  }
  .table {
    border: 1px solid #d2dce2;
    border-left: transparent;
    background-color: #FFF;

    .th,
    .td {
      border-left: 1px solid #e2e2e2;

      &.index {
        text-align: center;

        span {
          width: 100%;
          font-weight: 500;
        }
      }
      &:first-child {
        border-left: 1px solid #d2dce2;
      }
    }

    .thead {
      .tr .th {
        padding: 10px 10px;
        background-color: #f0f2f8;
        font-size: 14px;
        color: #415060;
        border-bottom: 1px solid #d2dce2;

        &.index > div {
          width: 100%;
        }
      }
    }

    .tbody {
      .tr .td {
        padding: 4px;
        border-bottom: 0;
        border-top: 1px solid #d8d8d8;
        min-height: 40px;

        &.index {
          background-color: #f0f2f8;
          color: #718294;

          > span {
            margin-top: auto;
            margin-bottom: auto;
          }
        }

        &.landed-cost{
          
          .bp4-control{
            margin-top: 0;
            margin-left: 34px;
          }
          .bp4-control-indicator{
            height: 18px;
            width: 18px;
            border-color: #dbdbdb;
          }
        }
      }
      .tr {
        .bp4-form-group:not(.bp4-intent-danger) .bp4-input,
        .form-group--select-list .bp4-button {
          border-color: #ffffff;
          color: #222;
          border-radius: 3px;
        }
        .bp4-form-group:not(.bp4-intent-danger) .bp4-input {
          border-radius: 2px;
          padding-left: 4px;
          padding-right: 4px;

          &:focus {
            box-shadow: 0 0 0 2px #116cd0;
          }
        }
        .form-group--select-list .bp4-button {
          padding-left: 6px;
          padding-right: 6px;

          &:after {
            display: none;
          }
        }
        .form-group--select-list,
        .bp4-form-group {
          &.bp4-intent-danger {
            .bp4-button:not(.bp4-minimal),
            .bp4-input {
              border-color: #f7b6b6;
            }
          }
        }

        &:first-of-type {
          .td {
            border-top: 0;
          }
        }

        .td.actions {
          .bp4-button {
            background-color: transparent;
            color: #e66d6d;

            &:hover {
              color: #c23030;
            }

            svg {
              color: inherit;
            }
          }
        }
        &.row--total {
          .account.td,
          .debit.td,
          .credit.td {
            > span {
              padding-top: 2px;
            }
          }

        }
        .td {
          &.note {
            .bp4-form-group {
              width: 100%;
            }
          }
        }
      }
    }

    .tfooter{
      .td{
        min-height: 38px;
      }
    }
    .th {
      color: #444;
      font-weight: 600;
      border-bottom: 1px dotted #666;
    }

    .td {
      border-bottom: 1px dotted #999;
    }

    .actions.td {
      .bp4-button {
        background: transparent;
        margin: 0;
      }
    }


    .tbody,
    .thead,
    .tfooter{

      // .total,
      .quantity,
      .rate,
      .discount,
      .total{

        &,
        input{
          text-align: right;
        }
      }
    }
  }

  .table {
    .tbody {
      .tr .td.actions .bp4-button {
        background-color: transparent;
        color: #e66d6d;

        svg {
          color: inherit;
        }
      }
    }
  }

  &__actions {
    margin-top: 12px;

    .bp4-button {
      padding-left: 10px;
      padding-right: 10px;
    }

    .button--clear-lines {
      &.bp4-button:not([class*='bp4-intent-']):not(.bp4-minimal) {
        background-color: #fcefef;

        &:hover{
          background-color: #f8e4e4;
        }
      }
    }
  }

  .tfooter{
    .debit.td,
    .credit.td {
      > span {
        font-weight: 600;
        color: #444;
      }
    }
    .td {
      border-top-width: 2px;
      border-top-color: #e9e9ef;
      border-top-style: solid;
      min-height: 40px;
      font-weight: 500;


      &:not(.index) {
        background-color: #fcfcfd;
      }

      &:first-of-type{
        background-color: #f0f2f8;
      }


      &.index span {
        display: none;
      }
    }
  }
}
