/* This file sets the styles for all tables generated by views */
/* The tables are rendered by themes/custom/tmod/templates/views/views-view-table.html.twig */

.views-table {
  margin-bottom: 4rem;
  table-layout: fixed;
  width: 100%;
}

.views-table:last-child {
  margin-bottom: 0;
}

.views-table td,
.views-table th,
.views-table caption {
  text-align: left;
}

.views-table caption {
  margin-bottom: 0.5rem;
  font-size: var(--font-size-l);
  font-weight: 600;
  color: var(--dark-grey);
}

.views-table th {
  margin-bottom: 0.5rem;
  font-size: --font-size-m;
  font-weight: 400;
}

.views-table td {
  padding-left: 0.5rem;
  padding-top: 0.7rem;
  padding-bottom: 0.5rem;
  padding-right: 1.5rem;
}

.views-table tr:last-child td {
  padding-bottom: 0;
}

.views-table tr:first-child td {
  padding-top: 0;
}

.views-table tr {
  border-bottom: 1px solid var(--dark-grey-o-02);
}

.views-table tr:last-child {
  border-bottom: 0;
}

.views-table .inline-title {
  display: none;
}

/* Responsive table design */
@media only screen and (max-width: 1200px) {
  .views-table thead {
    display: none;
  }

  .views-table tr {
    display: grid;
    grid-template-columns: max-content auto;
    gap: 0.3rem 1rem;
    padding: 0.5rem 0.5rem 0.5rem 0.5rem;
  }

  .views-table td {
    display: block;
    padding: 0;
  }

  .views-table .inline-title,
  .views-table .inline-content {
    display: inline-block;
  }
}
