/* Container for the whole content */
.summary-container {
  max-width: 1200px;
  margin: 2rem auto;
  background-color: var(--bg-secondary);
  padding: 1.5rem 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  font-family: Roboto, Arial, sans-serif;
}

/* Form styling (date + button) */
.summary-form {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  align-items: center;
}

.summary-date-input {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--text-primary);
  border-radius: 6px;
  font-size: 1rem;
  color: var(--primary);
  cursor: pointer;
}

.summary-button {
  padding: 0.6rem 1.25rem;
  background-color: var(--primary);
  border: none;
  border-radius: 6px;
  color: var(--primary-light);
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-decoration: none;
}

.summary-button:hover {
  background-color: var(--primary-dark);
}

/* Headings */
.summary-title,
.summary-location-title {
  color: var(--primary);
  margin-bottom: 1rem;
}

/* Tables */
.summary-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 3rem;
  font-size: 1rem;
  color: var(--text-primary);
  background-color: var(--bg-secondary);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

.summary-table-header,
.summary-table-cell {
  padding: 0.6rem 0.9rem;
  text-align: center;
  border-bottom: 1px solid var(--primary-light);
}

.summary-table-header {
  background-color: var(--primary);
  color: var(--primary-light);
  font-weight: 700;
  border-bottom: 2px solid var(--primary-dark);
}

.summary-table-row:hover {
  background-color: var(--primary-light);
  color: var(--primary-dark);
}

.summary-user-cell {
  font-weight: 600;
  color: var(--primary-dark);
  text-align: left;
}

.summary-total-cell {
  font-weight: 700;
  color: var(--primary);
}

.producing-summary-table {
  width: auto;
  border-collapse: collapse;
  margin-bottom: 3rem;
  font-size: 1rem;
  color: var(--text-primary);
  background-color: var(--bg-secondary);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}


.segmented-control {
  display: inline-flex;
  border: 1px solid var(--primary-light);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  background-color: var(--bg-secondary);
}

/* Hide the actual radio button */
.segmented-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* Style the label as a button */
.segmented-label {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.5rem;
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  border-right: 1px solid var(--primary-light);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

/* Remove right border on last button */
.segmented-label:last-child {
  border-right: none;
}

/* Selected (checked) state */
.segmented-input:checked + .segmented-label {
  background-color: var(--primary);
  color: var(--primary-light);
  font-weight: 600;
}

/* Hover effect */
.segmented-label:hover {
  background-color: var(--primary-light);
  color: var(--primary-dark);
}

/* Selected + Hover */
.segmented-input:checked + .segmented-label:hover {
  background-color: var(--primary-dark);
  color: var(--primary-light);
}

/* Focus outline for accessibility */
.segmented-input:focus + .segmented-label {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}

/* Material Icons inside */
.segmented-label .material-icons {
  font-size: 22px;
  vertical-align: middle;
  color: var(--primary);
  transition: color 0.2s ease;
}

.segmented-input:checked + .segmented-label .material-icons {
  color: var(--primary-light); /* e.g. white */
}

.summary-download-container {
  display: flex;
  justify-content: left;
  margin-bottom: 1rem;
}

@media (max-width: 1300px) {
  .location-summary-container {
    display: none;
  }

}
