/**
 * Past Reports Module Styles
 * 
 * Styles for the past reports module, matching staff-filter-row styling
 */

/* Past Reports Container */
.past-reports-container {
  width: 100%;
  margin: 0 auto;
  padding: 0px;
}

/* Filter Row */
.past-reports-filter-row {
  background-color: #ffffff;
  padding: 0 20px;
}

.past-reports-filter-inner {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 0;
}

.past-reports-filter-label {
  font-size: 24px;
  font-weight: 400;
  color: #ffffff;
  padding: 0;
  display: none;
  align-items: center;
}

/* Mobile: Show Dropdown, Hide Buttons */
.past-reports-filter-buttons {
  display: none;
}

.past-reports-filter-dropdown {
  display: block;
  width: 100%;
  max-width: 400px;
  position: relative;
}

.past-reports-filter-select {
  width: 100%;
  padding: 16px 20px 14px;
  background-color: var(--primary-color);
  border: 2px solid var(--primary-color);
  color: #ffffff;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
  border-radius: 0;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url('data:image/svg+xml;charset=UTF-8,%3csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23fff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3e%3cpolyline points="6 9 12 15 18 9"%3e%3c/polyline%3e%3c/svg%3e');
  background-repeat: no-repeat;
  background-position: right 1em center;
  background-size: 26px;
  padding-right: 40px;
}

.past-reports-filter-select:focus,
.past-reports-filter-select:active {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
  border-color: var(--primary-color);
  background-color: var(--primary-color);
  color: #ffffff;
}

.past-reports-filter-select:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.past-reports-filter-dropdown::before {
  content: '';
  position: absolute;
  top: -1px;
  right: -1px;
  width: 1em;
  height: 1em;
  background-color: #ffffff;
  clip-path: polygon(0 0, 100% 0, 100% 100%);
  z-index: 1;
  pointer-events: none;
}

/* Desktop Buttons (hidden on mobile) */
.past-reports-filter-btn {
  padding: 0 30px;
  background-color: var(--secondary-color);
  border: none;
  color: #ffffff;
  font-size: 26px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
  margin: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 1.5em 21px;
  max-height: 80px;
  text-decoration: none;
}

.past-reports-filter-btn:hover,
.past-reports-filter-btn:focus {
  background-color: var(--tertiary-color);
  color: var(--secondary-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.past-reports-filter-btn:focus-visible {
  outline: 2px solid var(--tertiary-color);
  outline-offset: 2px;
}

/* Tablet: 2 columns */
@media screen and (min-width: 768px) {
  .past-reports-filter-row {
    background-color: var(--secondary-color);
    padding: 0 38px;
  }

  .past-reports-filter-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
  }

  .past-reports-filter-label {
    font-size: 18px;
    padding: 24px 1em 21px;
    margin: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
  }

  .past-reports-filter-label::after {
    content: ':';
    margin-right: 10px;
  }

  /* Desktop: Hide Dropdown, Show Buttons */
  .past-reports-filter-dropdown {
    display: none;
  }

  .past-reports-filter-buttons {
    display: contents;
  }

  .past-reports-filter-btn {
    font-size: 18px;
  }
}

@media screen and (min-width: 980px) {
  .past-reports-filter-label {
    font-size: 26px;
  }

  .past-reports-filter-btn {
    font-size: 26px;
  }
}

@media screen and (min-width: 980px) and (max-width: 1199px) {
  .past-reports-filter-label,
  .past-reports-filter-btn,
  .past-reports-filter-dropdown {
    font-size: 20px;
  }
}
