/* Wide dialogs, scoped so other settings windows retain their layout. */
#reportModal,
#filterModal {
  position: fixed;
  width: min(1180px, calc(100vw - 32px));
  left: max(16px, calc((100vw - 1180px) / 2));
  top: 8vh;
  height: auto;
  touch-action: auto;
}
#reportsContent {
  padding: 18px;
  color: #243e5b;
}
.report-controls,
.report-actions,
.report-pages {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}
.report-controls label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.report-controls select {
  max-width: 100%;
  width: 420px;
}
.report-controls input[type="number"] {
  width: 105px;
}
#reportsContent button,
#reportsContent select,
#reportsContent input {
  font: inherit;
  padding: 7px 10px;
}
#reportsContent button {
  cursor: pointer;
}
#reportsContent button:disabled {
  cursor: default;
  opacity: 0.5;
}
.report-note {
  margin: 8px 0 14px;
  font-size: 13px;
  line-height: 1.5;
}
.report-table-wrap {
  overflow: auto;
  max-height: 44vh;
  border: 1px solid #ccd6e0;
  margin-bottom: 12px;
}
.report-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}
.report-table th,
.report-table td {
  padding: 9px;
  border-bottom: 1px solid #dce3eb;
  min-width: 100px;
  vertical-align: top;
}
.report-table th {
  position: sticky;
  top: 0;
  background: #edf2f7;
  white-space: nowrap;
}
.report-table td:nth-child(2) {
  min-width: 230px;
}
.report-table tbody tr:nth-child(even) {
  background: #f7f9fc;
}
#filterWrapper {
  display: block;
  box-sizing: border-box;
  padding: 18px;
  overflow-x: auto;
}
#filterModal .filterSelections {
  display: grid;
  grid-template-columns: 80px minmax(180px, 1.15fr) minmax(200px, 1.3fr) minmax(
      170px,
      1fr
    ) minmax(170px, 1fr);
  gap: 12px;
  min-width: 870px;
  height: auto;
  padding: 12px 0;
  align-items: center;
  flex-wrap: nowrap;
}
#filterModal .filterSelection {
  min-width: 0;
}
#filterModal .filterSelection input,
#filterModal .filterSelection select {
  width: 100%;
  box-sizing: border-box;
  min-height: 36px;
  font-size: 13px;
  padding: 7px;
}
#filterModal .addRemoveButtons,
#filterSelections3 {
  display: none;
}
#filterModal .filterCheckBoxes {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 20px;
}
#filterModal .filterButtons {
  padding-top: 12px;
}
#filterModal .filterButton {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 7px 14px;
}
@media (max-width: 750px) {
  #reportModal,
  #filterModal {
    transform: none;
  }
  .report-controls label {
    flex-wrap: wrap;
  }
  .report-controls select {
    width: min(420px, calc(100vw - 74px));
  }
}
@media print {
  #printSchedule .report-table th,
  #printSchedule .report-table td {
    min-width: 0;
    position: static;
    white-space: normal;
  }
}
