/* =========================================
   Shared table styling
========================================= */

.responsive-table {
  width: 100%;
  border: 2px solid #efefef;
  border-collapse: collapse;
  table-layout: fixed;
  text-align: center;
}

.responsive-table th {
  padding: 20px;
  text-align: center;
  text-transform: uppercase;
  font-weight: 300;
  font-size: 20px;
  border: none !important;
}

.responsive-table td {
  padding: 20px;
  border-top: 2px solid #efefef;
  border-right: 2px solid #efefef;
  text-align: center;
  color: #7d7b7b;
}

.responsive-table td > b {
  color: #000;
  display: block;
}

.responsive-table tbody > tr:nth-child(odd) > td,
.responsive-table tbody > tr:nth-child(odd) > th {
  background-color: transparent;
}

.responsive-table tbody tr:hover,
.responsive-table tbody tr:hover > td,
.responsive-table tbody tr:hover > th {
  background: #f1f4f5;
}


/* =========================================
   Mode 1: Schedule table
   Class: schedule-table
========================================= */

.mobile-schedule-table {
  display: none;
}

@media (max-width: 1024px) {
  table.schedule-table {
    display: none;
  }

  .mobile-schedule-table {
    display: grid;
    gap: 24px;
  }

  .mobile-schedule-day {
    border: 2px solid #efefef;
    background: #fff;
  }

  .mobile-schedule-day-title {
    padding: 18px 20px;
    text-align: center;
    text-transform: uppercase;
    font-weight: 300;
    font-size: 20px;
    color: #000;
    border-bottom: 2px solid #efefef;
  }

  .mobile-schedule-item {
    padding: 18px 20px;
    text-align: center;
    color: #7d7b7b;
    border-bottom: 2px solid #efefef;
  }

  .mobile-schedule-item:last-child {
    border-bottom: none;
  }

  .mobile-schedule-item b {
    color: #000;
    display: block;
  }
}


/* =========================================
   Mode 2: General stacked table
   Class: stacked-table
========================================= */

@media (max-width: 1024px) {
  table.stacked-table,
  table.stacked-table thead,
  table.stacked-table tbody,
  table.stacked-table tr,
  table.stacked-table th,
  table.stacked-table td {
    display: block;
    width: 100%;
  }

  table.stacked-table {
    border: none;
  }

  table.stacked-table thead,
  table.stacked-table tr:first-child:has(th) {
    display: none;
  }

  table.stacked-table tr {
    margin-bottom: 24px;
    border: 2px solid #efefef;
    background: #fff;
  }

  table.stacked-table td {
    display: flex;
    padding: 18px 20px;
    border-right: none;
    border-top: none;
    border-bottom: 2px solid #efefef;
    text-align: left;
    word-break: normal;
    overflow-wrap: anywhere;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: flex-start;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
  }

  table.stacked-table td::before {
    content: attr(data-label);
    display: block;
    font-weight: 600;
    color: #000;
    text-align: left;
  }

  table.stacked-table td:last-child {
    border-bottom: none;
  }

  table.stacked-table td:empty {
    display: none;
  }

}