@import '../styles/colors';

/* .square_table__card {
  padding: 25px;
  border-radius: 20px;
  background: $white-color;
}

.square_table__card_table {
  padding-bottom: 10px;
} */

.square_table__head {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  margin-bottom: 10px;
}

.square_table__note {
  display: none;
}

.square_table__title {
  margin-right: auto;
  font-family: 'Poppins', 'Montserrat',  sans-serif;
  line-height: 1.5;
  font-size: 16px;
  font-weight: 600;
}

.square_table__table {
  display: table;
  width: 100%;
}

.square_table__body {
  margin: 0 -15px;
}

.square_table__cell {
  display: table-cell;
  height: 52px;
  vertical-align: middle;
  padding: 0 10px;
  /* color: $dark-border-gray-color; */
}

.square_table__cell:first-child {
  /* padding-left: 15px; */
  font-family: 'Poppins', 'Montserrat',  sans-serif;
  line-height: 1.5;
  padding: 0px;
  /* color: #171725; */
}

.square_table__cell:last-child {
  /* padding-right: 15px; */
  padding: 0px;
}

.square_table__cell:not(:first-child) {
  text-align: right;
}

.square_table__row {
  display: table-row;
  &.bold {
    font-weight: 600 !important;
    text-transform: uppercase;
    .square_table__cell {
      color: inherit !important;
    }
  }
}



.square_table__row_head .square_table__cell {
  height: 38px;
  /* background: white-text; */
  font-family: 'Poppins', 'Montserrat',  sans-serif;
  line-height: 23px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .1px;
  text-transform: uppercase;
  /* color: $dark-border-gray-color; */
}

.square_table__row.square-table-divider {
  padding: 0px;
}



.square_table__row_head .square_table__cell:first-child {
  border-radius: 10px 0 0 10px;
}

.square_table__row_head .square_table__cell:last-child {
  border-radius: 0 10px 10px 0;
}

/* body.dark .square_table__row {
  border-color: $dark-border-gray-color;
}

body.dark .square_table__title {
  color: white-text;
}

body.dark .square_table__card {
  background: $body-dark;
} */

/* body.dark .square_table__row_head .square_table__cell {
  background: $primary-red-color;
  color: $primary-dark-gray-color;
} */

/* body.dark .square_table__cell {
  color: $primary-dark-gray-color;
} */

/* body.dark .square_table__cell:first-child {
  color: white-text;
}

body.dark .square_table__note {
  color: $primary-gray-color;
} */


@media only screen and (max-width: 1199px) {
  .square_table__card {
    padding: 20px;
  }

}

@media only screen and (max-width: 767px) {
  .square_table__card {
    padding: 20px 15px;
  }

  .square_table__row.square-table-divider {
    display: none;
  } 


  .square_table__table {
    display: block;
    margin-top: 20px;
  }


  .square_table__row {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 0 15px;
  }

  .square_table__row:not(:last-child) {
    margin-bottom: 10px;
    padding-bottom: 15px;
    border-bottom: 1px solid $gray-color;
  }

  .square_table__row_head {
    display: none;
  }

  .square_table__cell {
    display: block;
    height: auto;
    padding: 0;
    font-family: 'Poppins', 'Montserrat',  sans-serif;
    line-height: 1.5;
  }
  .square_table__cell:first-child {
    -webkit-box-ordinal-group: 2;
    -ms-flex-order: 1;
    order: 1;
    padding-left: 0;
    -webkit-box-flex: 0;
    -ms-flex: 0 0 calc(100% - 70px);
    flex: 0 0 calc(100% - 70px);
    font-weight: 600;
  }
  /* .square_table__cell:nth-child(2), .square_table__cell:nth-child(3) {
    -webkit-box-ordinal-group: 4;
    -ms-flex-order: 3;
    order: 3;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    width: 30%;
    padding-top: 15px;
    text-align: left;
  } */
  .square_table__cell:not(:first-child):not(:last-child) {
    -webkit-box-ordinal-group: 2;
    -ms-flex-order: 3;
    order: 3;
    -webkit-box-flex: 40%;
    -ms-flex: 40%;
    flex: 40%;
    padding-top: 15px;
  }
  .square_table__cell:last-child {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 70px;
    flex: 0 0 70px;
    -webkit-box-ordinal-group: 3;
    -ms-flex-order: 2;
    order: 2;
    padding-right: 0;
    font-family: 'Poppins', 'Montserrat',  sans-serif;
    line-height: 1.5;
    font-weight: 500;
  }

  body.dark .square_table__cell {
    color: white-text;
  }

  .square_table__note {
    position: relative;
    top: -1px;
    display: inline;
    margin-right: 6px;
    font-family: 'Poppins', 'Montserrat',  sans-serif;
    line-height: 1.5;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: black;
  }
}