@import "variables";
.table{

  border-collapse: inherit;

  thead,
  tbody,
  tfoot{
    tr > th,
    tr > td{
      border-top: 1px solid var(--table-line-color);
    }
    tr.success{
      th,td{
        background-color: lighten($bg-success, 10%);
      }
      &:hover{
        th, td{
          background-color: lighten($bg-success, 5%);
        }
      }
    }

    tr.info{
      th,td{
        background-color: lighten($bg-info, 10%);
      }
      &:hover{
        th, td{
          background-color: lighten($bg-info, 5%);
        }
      }
    }

    tr.warning{
      th,td{
        background-color: lighten($bg-warning, 10%);
      }
      &:hover{
        th, td{
          background-color: lighten($bg-warning, 5%);
        }
      }
    }

    tr.danger{
      th,td{
        background-color: lighten($bg-danger, 10%);
      }
      &:hover{
        th, td{
          background-color: lighten($bg-danger, 5%);
        }
      }
    }
  }
  > thead > tr > th{
    border-bottom-width: 0;
    font-size: $font-size-h5;
    font-weight: $font-weight-light;
  }

  .radio,
  .checkbox{
    margin-top: 0;
    margin-bottom: 22px;
    padding: 0;
    width: 15px;
  }
  > thead > tr > th,
  > tbody > tr > th,
  > tfoot > tr > th,
  > thead > tr > td,
  > tbody > tr > td,
  > tfoot > tr > td{
    padding: 12px 11px;
    vertical-align: middle;
  }

  .th-description{
    max-width: 150px;
  }
  .td-price{
    font-size: 26px;
    font-weight: $font-weight-light;
    margin-top: 5px;
    text-align: right;
  }
  .td-total{
    font-weight: $font-weight-bold;
    font-size: $font-size-h5;
    padding-top: 20px;
    text-align: right;
  }

  .td-actions .btn{

    &.btn-sm,
    &.btn-xs{
      padding-left: 3px;
      padding-right: 3px;
    }
  }

  > tbody > tr{
    position: relative;
  }

  .has-switch{
    top: 9px;
    margin-top: -12px;
  }
}

.table-striped{
  tbody > tr:nth-of-type(2n+1) {
    background-color: var(--table-stripe-color);
  }
  > thead > tr > th,
  > tbody > tr > th,
  > tfoot > tr > th,
  > thead > tr > td,
  > tbody > tr > td,
  > tfoot > tr > td{
    padding: 15px 8px;
  }
}
.table-shopping{
  > thead > tr > th{
    color: var(--muted-color);
    font-size: 1.1em;
    font-weight: $font-weight-light;
  }
  > tbody > tr > td{
    font-size: $font-paragraph;
    padding: 30px 5px;
    b{
      display: block;
      margin-bottom: 5px;
    }
  }
  .td-number,
  .td-price,
  .td-total{
    font-size: 1.2em;
    min-width: 130px;
    text-align: right;
    padding-right: 20px;

    small{
      margin-right: 3px;
    }
  }
  .td-product{
    min-width: 170px;
    padding-left: 30px;
    strong{
      color: var(--default-states-color);
      font-size: 1.2em;
      font-weight: $font-weight-bold;
    }
  }
  .td-number,
  .td-total{
    color: var(--default-states-color);
    font-weight: $font-weight-bold;
  }
  .td-quantity{

    .btn-group{
      margin-left: 10px;
    }
  }
  .img-container{
    border-radius: $border-radius-large;
    display: block;
    height: 100px;
    overflow: hidden;
    width: 100px;
    margin-left: 10px;

    img{
      width: 100%;
    }
  }
  .tr-actions >td{
    border-top: 0;
  }


}

.table-icons{
  display: inline-block;
  min-width: 110px;
}

// Element UI override

.el-table td, .el-table th.is-leaf{
  border: none;
}
.el-table tr{
  z-index: 10;
}
.el-table {
  .el-checkbox__inner:hover,
  .el-checkbox__input.is-checked .el-checkbox__inner{
    background-color: var(--default-color);
    border-color: var(--default-color);
  }

  .el-checkbox__input.is-focus .el-checkbox__inner{
    border-color: var(--default-color);
  }
}

.el-table .el-table__footer .cell{
  font-weight: bold;
  font-size: $font-size-medium;
}
.el-table  {
  tbody tr td:first-child,
  thead tr th:first-child{
    padding-left: $padding-base-horizontal;
  }
}

.card-plain .el-table {
  background-color: transparent;
  tr {
    background-color: transparent;
  }
}

.table.table-fixed {
  table-layout: fixed;
  > tbody > tr > td:first-child{
      width: 145px !important;
  }

  tfoot{
    tr > th,
    tr > td{
      word-break: break-word;
    }
  }
}


// VGT TABLE

@import 'vue-good-table/src/styles/style.scss';




.vgt-responsive {
    width: 100%;
    overflow-x: inherit;
    position: relative;
}
.vgt-table.rd-table{
  border: 0 solid;
  background-color: var(--white);

  & tr.clickable {
    &:hover{
      background-color: var(--grey-100);
    }
  }

  // td
  & td {
    border-left: 0 solid;
    border-right: 0 solid;
    border-bottom:  1px solid var(--grey-400);
    color: var(--black);
  }

  //th
  & th.line-numbers, & th.vgt-checkbox-col {
    color: var(--black);
    border-right: 0 solid;
    background: var(--white);
  }
  thead{
    border: 1px solid var(--grey-400);
    .vgt-checkbox-col{
      background: var(--grey-200);
      border-right: 0 solid;
    }
  }
  tbody{
    border-right: 1px solid var(--grey-400);
  }
  thead th{
    color: var(--black);
    border-bottom:  1px solid var(--grey-400);
    background: var(--grey-200);
    border: 0 solid;
    &.sortable {
      // color: lighten(var(--black), 15%);
      &:before{
        border-top-color: var(--grey-700);
      }
      &:after{
        border-bottom-color: var(--grey-700);
      }
      &.sorting-asc{
        color: var(--indigo-500);
        &:after{
          border-bottom-color: var(--blue-500);
        }
      }
      &.sorting-desc {
        color: var(--indigo-500);
        &:before{
          border-top-color: var(--blue-500);
        }
      }
    }
  }

  //bordered
  &.bordered td, &.bordered th {
    border-top: 1px solid var(--grey-400);
    border-bottom: 1px solid var(--grey-400);
  }

  //input
  .vgt-input, .vgt-select{
    color: var(--black);
    background-color: --grey-400;
    border: 1px solid var(--grey-400);
    &::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
      color: var(--black);
      opacity: 0.3; /* Firefox */
    }
  }
}
.vgt-inner-wrap{
  box-shadow: none;
}


.vgt-wrap.nocturnal{
  .vgt-wrap__footer{
    color: var(--black);
    border: 1px solid var(--grey-400);
    background: linear-gradient(var(--white), var(--grey-200));
    .footer__row-count{
      position: relative;
      &__label{
        color: var(--grey-700);
      }
      &__select{
        color:  var(--black);
        background: var(--grey-400);
        border: none;
        -webkit-appearance: none; 
        -moz-appearance: none;
        appearance: none;
        padding-right: 15px;
        padding-left: 10px;
        border-radius: 3px;
        text-align: center;
        &:focus{
          border-color: var(--blue-500);
        }
      }
      &::after{
        content: '';
        display: block;
        position: absolute;
        height: 0px;
        width: 0px;
        right: 6px;
        top: 50%;
        margin-top: -1px;
        border-top:  6px solid var(--black);
        border-left: 6px solid transparent;
        border-right: 6px solid transparent;
        border-bottom: none;
        pointer-events: none
      }
    }
    .footer__navigation{
      &__page-btn{
        color: var(--black);
        &.disabled,
        &.disabled:hover {
          .chevron.left:after{
            border-right-color: var(--black);
          }
          .chevron.right:after{
            border-left-color: var(--black);
          }
        }
      }
      &__info, &__page-info{
        color: var(--grey-700);
      }
    }
  }

  // control bar
  .vgt-global-search{
    border:  1px solid var(--grey-400);
    background: linear-gradient(var(--white), var(--grey-200));
  }
  .vgt-global-search__input{
    .input__icon{
      .magnifying-glass{
        border: 2px solid var(--grey-400);
        &:before{
          background: var(--grey-400);
        }
      }
    }
    .vgt-input, .vgt-select{
      color: var(--black);
      background-color: var(--grey-200);
      border: 1px solid var(--grey-400);
      &::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
        color: var(--black);
        opacity: 0.3; /* Firefox */
      }
    }
  }
}