/* Responsive Table Styles */
.responsive-table {
  width: 100%;
  margin-bottom: 20px;
  overflow-x: auto; /* Allow horizontal scrolling on smaller screens if needed */
  text-align: left;
}
.responsive-table .header-row {
  background: #F6F6FF;
  display: flex;
  width: 100%;
  border-bottom: 1px solid #ddd;
  font-weight: bold;
  padding: 8px 0;
}
.responsive-table ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}
.responsive-table li {
  border-bottom: 1px solid #f1f1f1;
}
.responsive-table li:hover {
  background-color: #f9f9f9;
}
.responsive-table li a {
  display: flex;
  width: 100%;
  color: inherit;
  text-decoration: none;
  padding: 8px 0;
  white-space: normal;
  align-items: stretch; /* Make all items stretch to same height */
}
/* Icon style */
.icon-container {
  width: 20px;
  display: inline-flex;
  margin-right: 5px;
}
/* Base column styles - mobile first */
.po-column {
  flex: 1 1 auto;
  padding: 0 5px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 200px;
  white-space: normal;
  height: 100%; /* Take full height of parent */
}
.taken-column {
  flex: 0 0 100px;
  padding: 0 5px;
  display: flex; /* Always visible */
  align-items: center;
  justify-content: flex-start;
  white-space: normal;
  height: 100%; /* Take full height of parent */
}
/* Hidden columns by default on mobile */
.responsive-table .header-row .county-column,
.responsive-table li a .county-column,
.responsive-table .header-row .photographer-column,
.responsive-table li a .photographer-column,
.responsive-table .header-row .notes-column,
.responsive-table li a .notes-column {
  display: none !important;
  padding: 0;
  width: 0;
  flex: 0;
  overflow: hidden;
  white-space: normal;
}
/* Mobile view (base) - only post office name and taken date visible */
.responsive-table .header-row,
.responsive-table li a {
  display: flex;
  flex-wrap: nowrap; /* Prevent wrapping */
  justify-content: space-between;
}
/* Tablet view (576px - 767px) - show county */
@media (min-width: 576px) {
  .responsive-table .header-row .county-column,
  .responsive-table li a .county-column {
    display: flex !important;
    flex: 1 1 150px;
    padding: 0 5px;
    align-items: center;
    justify-content: flex-start;
    width: auto;
    overflow: visible;
    white-space: normal;
    height: 100%; /* Take full height of parent */
  }
  .po-column {
    flex: 1 1 200px;
  }
}
/* Desktop view (768px and above) - show all columns */
@media (min-width: 768px) {
  .responsive-table .header-row .photographer-column,
  .responsive-table li a .photographer-column {
    display: flex !important;
    flex: 1 1 150px;
    padding: 0 5px;
    align-items: center;
    justify-content: flex-start;
    width: auto;
    overflow: visible;
    white-space: normal;
    height: 100%; /* Take full height of parent */
  }
  .responsive-table .header-row .notes-column,
  .responsive-table li a .notes-column {
    display: flex !important;
    flex: 1 1 200px;
    padding: 0 5px;
    align-items: center;
    justify-content: flex-start;
    width: auto;
    overflow: visible;
    white-space: normal;
    height: 100%; /* Take full height of parent */
  }
}