:root {
  --cell-boders: rgb(151 151 151 / 38%);
}

table,
th,
td {
  border: 1px solid #808080f2;
  border-collapse: collapse;
}


td {
  padding: 2px;
  border-right: solid 1px var(--cell-boders);
}

tr {
  padding: 2px;
  border-bottom: solid 1px var(--cell-boders);
}

tbody tr {
  padding: auto;
}

tfoot tr {

  color: var(--table-head-color);
  font-size: larger;
  font-weight: bold;
}


.table-outer-container {
  box-shadow: 0 4px 14px hsl(355deg 25% 15%/10%);
  border-radius: 12px;
  padding: 10px;
  position: relative;
  background-color: white;
  height: 100%;
  height: -webkit-fill-available;
  height: -moz-available;
}

.table-inner-container {
  background-color: white;
  /*  overflow: auto; */
  /* max-height: 397px; */
  /* min-height: 394px; */
}

.table_container {
  width: -webkit-fill-available;
  width: -moz-available;
  font-size: 0.9rem;
}

.table-inner-container thead {
  background: var(--table-head-color);
  color: white;
  position: sticky;
  /* make the table heads sticky */
  top: 0px;
  z-index: 8;
}

.table-inner-container tfoot {
  position: sticky;
  background-color: gray;
  /* make the table heads sticky */
  bottom: 0px;
  z-index: 8;
}

.footer_cell_container {
  background-color: var(--table-head-color);
  color: white;
  padding: 4px;
  padding-left: 10px;
  padding-right: 10px;
  border-radius: 10px;
  font-size: medium;
}

.table-inner-container th,
.table-inner-container td {
  padding: 5px;
  text-align: left;
}

.table_container th {
  border-right: solid 1px white;
}

table.table_container th,
table.table_container td {
  padding: 2px;
  padding-left: 3px;
  padding-right: 3px;
}

.tr-no-data {
  display: block;
}

.td-no-data {
  display: table-cell;
  column-span: all;
  /* width: max-content; */
  table-layout: fixed;
  align-items: center;
  text-align: center;
}

.td-no-data-body {
  display: flex;
  align-content: center;
  justify-content: center;
  padding: 10px;
}

.table_container th {
  text-align: center;
}

.th-hidden {
  display: none;
}

.tr-even-row {
  background: none;
  border-bottom: solid 1px var(--cell-boders);
}

.tr-odd-row {
  background: #efefef;
  border-bottom: solid 1px var(--cell-boders);
}

.tr-checked-row {
  background: var(--table-row-hover-color);
}

tbody tr:hover {
  background: var(--table-row-hover-color);
}

tbody tr:focus {
  background: var(--table-row-hover-color);
}

.td-command-column,
.th-command-column {
  display: flex;
}

.td-select-column,
.th-select-column {
  width: 10px;
}

.checkbox-container {
  /* height: 20px; */
  display: block;
  position: relative;
  /* padding-left: 35px; */
  /* margin-bottom: 12px; */
  cursor: pointer;
  font-size: 22px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  height: 20px;
  width: 20px;
}

.table-title-container,
.page-title-container {
  display: flex;
  width: 100%;
  justify-content: center;
  border-bottom: 3px solid var(--second-color);
  padding: 2px 0px;
}

.table-title,
.page-title {
  display: flex;
  background-color: var(--second-color);
  color: white;
  padding: 5px;
  border-top-right-radius: 10px;
  border-top-left-radius: 10px;
  width: fit-content;
  min-width: 245px;
  justify-content: center;
  font-weight: bold;
}

.table_inputs {
  width: -webkit-fill-available;
  width: -moz-available;
  display: block;
  padding: 1px;
}

.edited_cell {
  background-color: var(--table-row-hover-color);
}

/* Hide the browser's default checkbox */

.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}


/* Create a custom checkbox */

.checkmark {
  position: absolute;
  /* top: -5px; */
  left: 0px;
  height: 15px;
  width: 16px;
  background-color: #eee;
  border: groove 4px white;
}


/* On mouse-over, add a grey background color */

.checkbox-container:hover input~.checkmark {
  background-color: #ccc;
}


/* When the checkbox is checked, add a blue background */

.checkbox-container input:checked~.checkmark {
  background-color: var(--second-color);
}


/* Create the checkmark/indicator (hidden when not checked) */

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}


/* Show the checkmark when checked */

.checkbox-container input:checked~.checkmark:after {
  display: block;
}


/* Style the checkmark/indicator */

.checkbox-container .checkmark:after {
  left: 6px;
  top: 1px;
  width: 5px;
  height: 8px;
  border: solid white;
  border-width: 0 3px 4px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

.table-selection-controls {
  display: flex;
  align-items: center;
}

.tbl-btn-container {
  display: flex;
  justify-content: center;
}

.tbl-btn,
.tbl-btn-only-icon {
  align-self: center;
  margin: 1px;
  display: inline-block;
  font-weight: bold;
  background: var(--primary-color);
  border: 3px solid transparent;
  color: var(--bg-color);
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  padding: 0.375rem 0.75rem;
  font-size: 16px;
  line-height: -3.5;
  border-radius: 0.25rem;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.tbl-btn:hover {
  background: var(--hover-color);
  border: solid 3px white;
  outline: 1px solid var(--text-color);
  transition: 0.3s;
}

.tbl-btn-with-text {
  width: 100px;
}

.tbl-btn-only-icon {
  width: 55px;
}

.tbl-btn-edit {
  display: block;
}

.tbl-btn-edit:hover {
  background-color: var(--hover-color);
}

.tbl-btn-delete {
  display: block;
  background-color: red;
  color: white
}

.tbl-btn-delete:hover {
  background-color: var(--danger-color);
}

.tbl-btn-update {
  display: block;
}

.tbl-btn-cancel {
  display: block;
}

.tbl-btn-more-options {
  display: block;
  background-color: var(--second-color);
  min-width: 9px;
}

.td-more-options-column,
.th-more-options-column {
  width: 10px;
  min-width: 10px;
}

.tbl-fixed-column {
  /* position: absolute;
  margin-left: -100px;*/
  outline: none;
}

.fixed_col {
  position: -webkit-sticky;
  position: sticky;
  width: 5em;
  left: 0;
  top: auto;
  border-top-width: 1px;
  /*only relevant for first row*/
  margin-top: -1px;
  /*compensate for top border*/
}


.fixed_cell {
  transition: 0.8 ease;
  background-color: var(--table-head-color);
  color: white;
}

.fixed_col_header {
  background-color: var(--table-head-color);
  color: white;
}

.table-summary-container {
  display: flex;
  justify-content: space-between;
}

.table-entries-total {
  tab-size: 20px;
}

.table-pagination-container {
  display: flex;
}

.tbl-page-btn {
  /* align-self: center; */
  margin: 2px;
  display: flex;
  /* font-weight: 400; */
  background: var(--second-color);
  border: 1px solid transparent;
  color: var(--bg-color);
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  padding: 0.375rem 0.75rem;
  font-size: 12px;
  /* line-height: 1.5; */
  width: 27px;
  height: 28px;
  /* border-radius: 50%; */
  /* border: 3px groove white; */
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  justify-content: center;
  align-items: center;
}

.tbl-page-btn-disabled {
  background: #ada8a8;
  cursor: auto;
}

.rowLimit-select {
  display: flex;
  min-width: 175px;
  position: relative;
  align-items: center;
}

.rowLimit-select select {
  width: 55px;
  align-items: center;
  text-align: center;
  padding: 2px;
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-color);
  background-color: var(--bg-color);
  background-clip: padding-box;
  border: 1px solid #ced4da;
  outline: none;
  border-radius: 10px;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.table-outer-container .table-refresh-modal {
  display: none;
  height: -webkit-fill-available;
  height: -moz-available;
  width: -webkit-fill-available;
  width: -moz-available;
  position: absolute;
  z-index: 999;
  justify-content: center;
  background-color: #00000075;
}

.table-refresh-modal-content {
  background-color: var(--black-transparent);
  display: flex;
  /* display: block; */
  position: relative;
  width: 147px;
  height: 147px;
  border-radius: 10px;
  top: 50%;
  /* left: unset; */
  color: white;
  font-weight: bolder;
  /* height: -webkit-fill-available; */
  /* position: absolute; */
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.table-refresh-modal-img {
  display: block;
  height: 43px;
}

.tbl-header-container {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
}

.table-img {
  cursor: zoom-in;
}

.col-header-container {
  display: flex;
  justify-content: space-between;
  cursor: pointer;
}

.col-header-text {
  display: block;
  width: -webkit-fill-available;
  width: -moz-available;
  font-size: smaller;
}

.col-header-sort-icon {
  display: flex;
  align-items: center;
}

.td-input-container {
  display: flex;
  width: -webkit-fill-available;
  width: -moz-available;
  height: -webkit-fill-available;
  height: -moz-available;
  justify-content: center;
}

.td-input-checkbox td {
  padding: 5px;
  max-width: 100px;
}

.grouped-row {
  display: table-row;
  background-color: #991700;
  color: white;
}

.grouped-row tr {
  padding: 10px;
}

.grouped-row-td {
  display: table-cell;
  column-span: 1000;
}

.tbl-group-row-container {
  padding-left: 10px;
  font-weight: bolder;
  border-bottom: 1px solid white;
}

.tbl-group-row-second-index {
  padding-left: 28px;
}

.grouped-row:hover {
  background-color: var(--second-color);
}

.table-message {
  background-color: var(--black-transparent);
  color: white;
  min-width: 352px;
  max-width: 222px;
  position: absolute;
  display: none;
  right: 0;
  bottom: 5px;
  min-height: 74px;
  /* border-radius: 10px; */
  border-bottom-left-radius: 10px;
  border-top-left-radius: 10px;
  align-items: center;
  transition: 0.6s ease;
  /* transform: translate(0%, -50%);
  -ms-transform: translate(0%, -50%); */
}

.table-message-body {
  display: flex;
  width: 100%;
  height: -webkit-fill-available;
  height: -moz-available;
  padding: 10px;
}

.tbl-btn-bottom {
  display: block;
  background-color: var(--table-head-color);
  color: white;
  cursor: pointer;
}

.table-bottom-container {
  padding: 5px;
  padding-left: 9px;
  padding-right: 9px;
  font-size: smaller;
  min-width: 70px;
  text-align: center;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
}

.table-bottom-container button {
  padding: 5px;
  padding-left: 5px;
  padding-right: 5px;
  font-size: smaller;
  min-width: 70px;
  text-align: center;
  border-radius: 10px;
  border: 0px;
}

.table-bottom-container button:hover {
  background-color: var(--second-color);
}

.table-bottom-container button:disabled {
  background-color: rgb(196, 196, 196);
  color: rgb(121, 119, 119);
}

.btn-batch-edit {
  display: block;
}

.tbl-command-column {
  width: 132px;
}

.details-container {
  /* height: -webkit-fill-available; */
  display: block;
  /* position: relative; */
  background-color: rgb(219 219 219 / 53%);
  margin: 10px;
  overflow: auto;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 4px 14px hsl(391deg 12.08% 14.89% / 53%);
}

.details-title {
  display: block;
  font-weight: bolder;
  font-size: x-large;
}

.details-inner-container {
  display: flex;
}

.left-details-side {
  display: block;
}

.details-pic {
  display: block;
  width: 237px;
}

.right-details-side {
  display: block;
  width: -webkit-fill-available;
  width: -moz-available;
  border: 1px solid var(--cell-boders);
  border-radius: 10px;
  margin: 10px;
}

.details-table {
  width: 100%;
  border-spacing: 0px;
  border-collapse: collapse;
}

.detail-row {
  display: table-row;
  border-bottom: 14px solid transparent;
  outline: 1px dashed var(--cell-boders);
}

.detail-caption {
  display: block;
  display: table-cell;
  font-weight: bold;
  max-width: 243px;
}

.detail-value {
  display: table-cell;
}

.filter-row {
  display: flex;
  margin-top: 6px;
}

.filter-icon {
  display: flex;
  width: 50px;
  font-size: xx-large;
  align-items: center;
  justify-content: center;
  color: var(--text-color);
}

.filter-fields-container {
  display: flex;
  width: -webkit-fill-available;
  width: -moz-available;
}

.filter-fields-form-container {
  padding: 0px;
}

.filter-field-control {
  max-width: 159px;
  padding-left: 2px;
  padding-right: 2px;
}

.filter-field-control input,
select {
  display: block;
}

.filter-caption {
  display: flex;
  margin: auto;
}

.exp-options-container {
  display: flex;
}

.btn-export {
  display: block;
  min-width: 100px;
  height: 38px;
  font-size: medium;
  background-color: var(--second-color);
  color: white;
  border-collapse: collapse;
  outline: none;
  border: 0px solid;
  border-radius: 6px;
  cursor: pointer;
}

.exp-icon {
  display: block;
  font-size: xx-large;
}

.tbl-more-options-container {
  display: flex;
  justify-content: center;
  position: relative;
}


.tbl-contextMenu {
  display: none;
  position: absolute;
  /* transform-origin: top left; */
  /* transform: scale(0); */
  min-width: 100px;
  width: max-content;
  left: -144px;
  right: 0;
  padding: 5px;
  background: rgba(250, 250, 250, 0.98);
  box-shadow: 2px 2px 12px 4px rgba(100, 100, 100, 0.4);
  transition: transform 400ms ease-in-out 50ms;
}

.tbl-contextMenu table {
  border-collapse: collapse;
  border-spacing: 0;
  width: -webkit-fill-available;
  width: -moz-available;
}

.tbl-contextMenu table tr {
  border-collapse: collapse;
  border-spacing: 0;
  cursor: pointer;
}

.tbl-contextMenu td {
  border-collapse: collapse;
  border-spacing: 0;
}

.tbl-contextMenu.visible {
  transform: scale(1);
}

​.table-inner-container {
  position: relative;

  .tbl-more-options-container {
    position: absolute;

    .tbl-contextMenu {
      position: fixed;
    }
  }
}

/* Loan table style (start)  */
.penality_col {
  background-color: #515050a6;
  color: white;
}

.expected_total_col {
  background-color: black;
  color: white;
  font-weight: bold;
}

.recovered_col {
  color: black;
}

.recovered_total_col {
  background-color: #0000ff91;
  color: white;
  font-weight: bold;
}

.balance_col {
  color: black;
}

.balance_total_col {
  background-color: #be1701b3;
  color: white;
  font-weight: bold;
}

.cleared_status_col {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: green;
  font-weight: bold;
  color: white;
  height: -webkit-fill-available;
  height: -moz-available;
  padding: 2px;
  border-radius: 10px;
}

.reduced_status_col {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: black;
  font-weight: bold;
  color: white;
  height: -webkit-fill-available;
  height: -moz-available;
  padding: 2px;
  border-radius: 10px;
}

.recapitalisation_cat_col {
  width: 100%;
  background: var(--second-color);
  color: white;
  font-weight: bold;
  font-size: small;
  padding: 3px 6px;
  border-radius: 9px;
  text-align: center;
}

.recapitalised_cat_col {
  width: 100%;
  background-color: black;
  color: white;
  font-weight: bold;
  font-size: small;
  padding: 3px 6px;
  border-radius: 9px;
  text-align: center;
}

.reduced_cat_col {
  width: 100%;
  background-color: rgb(99, 97, 97);
  color: white;
  font-weight: bold;
  font-size: small;
  padding: 3px 6px;
  border-radius: 9px;
  text-align: center;
}

.uncleared_status_col {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: medium;
  padding: 2px;
  font-weight: bold;
  border-radius: 10px;
}

.defaulted_status_col {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: medium;
  background-color: red;
  color: white;
  padding: 2px;
  font-weight: bold;
  border-radius: 10px;
}

/* Loan table style (end)   */
.inst_pay_btn {
  align-self: center;
  margin: 1px;
  display: inline-block;
  font-weight: bold;
  background: var(--second-color);
  border: 3px solid transparent;
  color: var(--bg-color);
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  /* padding: 0.375rem 0.75rem; */
  font-size: 16px;
  line-height: -3.5;
  border-radius: 0.25rem;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.inst_pay_btn:hover {
  border: 3px solid white;
  outline-color: black;
  outline-style: solid;
  outline-width: 1px;
}

/*  Card View */
.card_container {

  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, auto));
  justify-content: center;
  gap: 1.5rem;
  background-color: var(--black-transparent);
  padding: 10px;
}

.card_box {
  width: -webkit-fill-available;
  width: -moz-available;
  border: 9px transparent solid;
  background-color: white;
  box-shadow: 0 4px 14px hsl(355deg 25% 15%/10%);
  padding: 15px;
  border-radius: 0.5rem;
  transition: 1s ease;
}

.card_box_inner_container {
  display: block;
}

.card_box:hover {
  border: 9px var(--hover-color) solid;
}

.card_row_caption_container {
  font-size: medium;
  font-weight: bold;
}





/*  Card View */

@media(max-width:706px) {
  .tbl-header-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .filter-icon {
    display: none;
  }

  .filter-row {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}