/*
|--------------------------------------------------------------------------
| File: public/assets/css/tables.css
|--------------------------------------------------------------------------
*/

.table-card{
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.table-shell{
  position: relative;
}

.table-fade{
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.table-responsive{
  width: 100%;
  overflow-x: auto;
}

.table{
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.table thead th{
  background: var(--accent-color);
  color: #111827;
  font-weight: 700;
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.table tbody td{
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.table tbody tr:hover{
  background: #F9FAFB;
}

/*-------------------------------------------------------------------------- 
| Table helpers
|--------------------------------------------------------------------------*/

.table-actions{
  white-space: nowrap;
  text-align: center;
}

.table-actions a{
  display: inline-block;
  margin: 0 4px;
  font-size: 13px;
}

.table .text-right{
  text-align: right;
}

/*-------------------------------------------------------------------------- 
| Member Month summary table (Group Month view)
|--------------------------------------------------------------------------*/

.member-month-summary-table th,
.member-month-summary-table td {
  padding: 8px 10px;
  font-size: 13px;
  vertical-align: middle;
  white-space: nowrap;
}

.member-month-summary-table th:nth-child(1),
.member-month-summary-table td:nth-child(1) {
  width: 12%;
}

.member-month-summary-table th:nth-child(2),
.member-month-summary-table td:nth-child(2) {
  width: 22%;
  white-space: normal;
}

.member-month-summary-table th:nth-child(3),
.member-month-summary-table td:nth-child(3),
.member-month-summary-table th:nth-child(4),
.member-month-summary-table td:nth-child(4),
.member-month-summary-table th:nth-child(5),
.member-month-summary-table td:nth-child(5),
.member-month-summary-table th:nth-child(6),
.member-month-summary-table td:nth-child(6),
.member-month-summary-table th:nth-child(7),
.member-month-summary-table td:nth-child(7) {
  width: 10%;
  text-align: right;
}

.member-month-summary-table th:nth-child(8),
.member-month-summary-table td:nth-child(8),
.member-month-summary-table th:nth-child(9),
.member-month-summary-table td:nth-child(9) {
  width: 8%;
  text-align: center;
}

.member-month-summary-table tbody tr:hover{
  background: #F9FAFB;
}

/*-------------------------------------------------------------------------- 
| Compact table tuning
|--------------------------------------------------------------------------*/

.table.compact th,
.table.compact td{
  padding: 6px 8px;
  font-size: 12.5px;
}

.table.compact thead th{
  font-size: 12.5px;
}

/*-------------------------------------------------------------------------- 
| Responsive tuning
|--------------------------------------------------------------------------*/

@media (max-width: 768px){
  .table{
    min-width: 640px;
  }

  .member-month-summary-table th,
  .member-month-summary-table td{
    font-size: 12px;
  }
}

@media (max-width: 576px){
  .table{
    min-width: 560px;
  }
}