/*
 * Copyright (c) 2025 TechDivision GmbH
 * All rights reserved
 *
 * This product includes proprietary software developed at TechDivision GmbH, Germany
 * For more information see https://www.techdivision.com/
 *
 * To obtain a valid license for using this software please contact us at
 * license@techdivision.com
 */

.table {
  width: 100%;
  overflow-x: auto;
}

.table table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  font-size: var(--body-font-size-xs);

  @media (width >= 600px) {
    font-size: var(--body-font-size-s);
  }

  @media (width >= 900px) {
    font-size: var(--body-font-size-m);
  }

  p:last-of-type {
    margin-bottom: 0;
  }
}

.table table thead tr {
  border-top: 2px solid;
  border-bottom: 2px solid;
}

.table table tbody tr {
  border-bottom: 1px solid;
}

.table table th {
  font-weight: 700;
}

.table table th,
.table table td {
  padding: 8px 16px;
  text-align: left;
}

.table.no-header table tbody tr {
  border-top: 1px solid;
}

/* bordered variant */
.table.bordered table th,
.table.bordered table td {
  border: 1px solid;
}

/* borderless variant */
.table.no-border table thead tr {
  border-top: none;
  border-bottom: none;
}

.table.no-border table tbody tr {
  border-top: none;
  border-bottom: none;
}

/* striped variant */
.table.striped tbody tr:nth-child(odd) {
  background-color: var(--light-color);
}
