.product-package-table {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 2px;
}

.product-package-row {
  display: flex;
  align-items: stretch;
  padding-right: 0.5em;
  border-radius: 6px;
  color: #fff;
  gap: 20px;
  transition: all 0.2s ease-in-out;
}

.product-package-row:hover {
  transform: scale(1.01);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 2;
  position: relative;
}

.product-package-row:nth-child(odd) {
  background-color: #f5f5f5;
  transition: all .125s ease-in-out;
}

.product-package-row .column {
  padding: 5px;
}

/* Use percentages to maintain equal spacing */
.product-package-row .date {
  flex: 0 0 20%;
  display: flex;
  font-weight: bold;
  font-size: 1.1em;
  text-align: center;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #ccc;
  /* fallback in case class is missing */
  color: #000;
}

.product-package-row .details {
  flex: 1 1 60%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #666;
  font-size: 0.85em;
}

.product-package-row .details div {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0.2rem 0;
}

.product-package-row .details i {
  margin-right: 5px;
  color: #333;
}

.product-package-row .details i.fa-calendar-times-o {
  margin-left: 0.5em;
}

.fa-map-marker:before,
.fa-ticket:before {
  padding-left: 2px;
}

.product-package-row .action {
  flex: 0 0 20%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.module-name {
  font-weight: bold;
  font-size: 1.1em;
  color: #1a1a1a;
}

.info-btn {
  font-size: 0.85em;
  padding: 8px;
  text-align: center;
  text-decoration: none;
  font-weight: bold;
  color: #fff;
  border-radius: 4px;
  display: inline-block;
  width: 100%;
  transition: background-color 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.info-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  color: #fff;
}

.modul-a .date,
.modul-a .action a {
  background-color: #01b1ed;
}

.modul-b .date,
.modul-b .action a {
  background-color: #81d742;
}

.info-btn.modul-a {
  background-color: #01b1ed;
}

.info-btn.modul-b {
  background-color: #81d742;
}

/* Date formatting blocks */
.date-range,
.date-range a,
.date-range a:hover {
  text-align: center;
  color: #fff;
}

.date-range .range-days {
  font-size: 1.1em;
  font-weight: bold;
  display: block;
}

.date-range .range-month {
  font-size: 0.85em;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  font-weight: bold;
}

/* For multi-month formatting */
.multi-month-block {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.multi-month-block .date-block {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.multi-month-block .date-block .day {
  font-size: 1.1em;
  font-weight: bold;
}

.multi-month-block .date-block .month {
  font-size: 0.85em;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: bold;
}

.multi-month-block .separator {
  font-size: 0.85em;
  font-weight: bold;
  line-height: 0.85;
}

@media screen and (max-width: 768px) {
  .product-package-row {
    flex-direction: column;
    align-items: center;
    padding-right: initial;
    margin-bottom: 1em;
    padding-bottom: 0.5em;
  }

  .product-package-row:nth-child(even) {
    background-color: #f5f5f5;
  }

  .product-package-row .date,
  .product-package-row .action {
    flex: 1 1 auto;
    text-align: center;
    width: 100%;
  }

  .product-package-row .details {
    flex: 1 1 auto;
    text-align: center;
  }

}
