
.table {
  width: 100%;
  margin-bottom: 0;
  vertical-align: middle;
  border-collapse: separate;
  border-spacing: 0;
  --bs-table-hover-bg: #f8fafc;
  --bs-table-hover-color: #0f172a;

  thead,
  thead.table-success,
  thead.table-light {
    --bs-table-bg: transparent;
    --bs-table-color: var(--primary-color, #2b5240);
    --bs-table-border-color: rgba(43, 82, 64, 0.1);

    th {
      background-color: #f4f7f5 !important;
      color: #2b5240 !important;
      font-weight: 600 !important;
      font-size: 0.775rem !important;
      text-transform: uppercase;
      letter-spacing: 0.04em;
      border-top: none !important;
      border-bottom: 1px solid rgba(43, 82, 64, 0.12) !important;
      vertical-align: middle;
      padding: 0.85rem 1rem;
      white-space: nowrap;
      transition: background-color 0.15s ease, color 0.15s ease;
    }
  }

  thead.table-light th {
    background-color: #f8fafc !important;
    color: #475569 !important;
    border-bottom: 1px solid #e2e8f0 !important;
  }

  tbody {
    td {
      vertical-align: middle;
      font-size: 0.845rem;
      color: #334155;
      border-top: none;
      border-bottom: 1px solid #f1f5f9;
      padding: 0.875rem 1rem;
      background-color: #ffffff;
      transition: color 0.15s ease, background-color 0.15s ease;
    }

    tr {
      transition: background-color 0.15s ease-in-out;

      &:hover td {
        background-color: #f8fafc !important;
        color: #0f172a;
      }

      &:last-child td {
        border-bottom: 1px solid #edf2f7;
      }
    }
  }
}

.table-responsive {
  min-height: 220px;
  overflow-x: auto;
  border: 1px solid #edf2f7;
  border-radius: 10px;
  background-color: #ffffff;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.03);
  margin-bottom: 2rem !important;
  padding-bottom: 1rem !important;

  &::-webkit-scrollbar {
    height: 6px;
    width: 6px;
  }
  &::-webkit-scrollbar-track {
    background: #f8fafc;
    border-radius: 4px;
  }
  &::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
    &:hover {
      background: #94a3b8;
    }
  }

  .table {
    thead th:first-child {
      border-top-left-radius: 9px;
    }
    thead th:last-child {
      border-top-right-radius: 9px;
    }
  }
}

