#reports.reportsPage {
  --tf05-navy: #0b2d55;
  --tf05-blue: #2374d8;
  --tf05-teal: #0d817d;
  --tf05-line: #d9e4f1;
  --tf05-muted: #62748b;
  --tf05-surface: #ffffff;
  display: grid;
  min-width: 0;
  gap: 18px;
}

#reports.reportsPage.hidden {
  display: none;
}

#reports .modulePageHeader {
  overflow: hidden;
  min-width: 0;
  padding: 24px 28px;
  background:
    radial-gradient(circle at 86% 12%, rgba(67, 170, 221, 0.24), transparent 18rem),
    linear-gradient(118deg, #0b315e 0%, #0d5ba4 62%, #1689b8 100%);
  border: 1px solid rgba(128, 198, 235, 0.3);
  border-radius: 22px;
  box-shadow: 0 16px 34px rgba(17, 71, 121, 0.14);
}

#reports .pageTitleGroup,
#reports .pageTitleGroup > div {
  min-width: 0;
}

#reports .pageTitleGroup h2,
#reports .pageTitleGroup p {
  color: #ffffff;
}

#reports .pageTitleGroup p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.78);
}

#reports .pageTitleIcon {
  color: #8fd9f2;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
}

#reports .modulePrimaryAction {
  color: var(--tf05-navy);
  background: #ffffff;
  border-color: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 20px rgba(8, 48, 89, 0.2);
}

#reports .reportStats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  min-width: 0;
}

#reports .reportStats article {
  display: flex;
  min-width: 0;
  min-height: 112px;
  align-items: center;
  gap: 14px;
  padding: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.96)),
    var(--tf05-surface);
  border: 1px solid var(--tf05-line);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(24, 63, 103, 0.07);
}

#reports .reportStats article > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

#reports .reportStats small {
  overflow: hidden;
  color: #52657d;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

#reports .reportStats strong {
  color: #102d4d;
  font-size: 1.55rem;
  line-height: 1.1;
}

#reports .reportStats article > div > span {
  color: #8392a5;
  font-size: 0.7rem;
}

#reports .statIcon.teal {
  color: var(--tf05-teal);
  background: #e7f7f5;
}

#reports .reportToolbar {
  display: grid !important;
  grid-template-columns: minmax(220px, 1.4fr) minmax(170px, 0.9fr) minmax(170px, 0.9fr) minmax(170px, 0.8fr) minmax(170px, 0.8fr) auto;
  min-width: 0;
  align-items: end;
  gap: 12px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--tf05-line);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(24, 63, 103, 0.06);
}

#reports #reportFromFilter,
#reports #reportToFilter {
  display: block !important;
}

#reports .reportFilterField {
  display: grid;
  min-width: 0;
  gap: 7px;
  margin: 0;
}

#reports .reportFilterField > span:first-child {
  color: #455b74;
  font-size: 0.72rem;
  font-weight: 800;
}

#reports .reportFilterField input,
#reports .reportFilterField select,
#reports .reportFilterField .remoteSelect,
#reports .reportFilterField .ticketSearch {
  width: 100%;
  min-width: 0;
}

#reports .reportFilterField input,
#reports .reportFilterField select,
#reports .reportFilterField .remoteSelectInput {
  min-height: 46px;
  border-color: #cfdeed;
  border-radius: 12px;
  background: #fbfdff;
}

#reports .reportSearchField .ticketSearch {
  display: block;
  position: relative;
}

#reports .reportSearchField .ticketSearch svg {
  position: absolute;
  top: 50%;
  right: 14px;
  width: 17px;
  height: 17px;
  color: #6a7f98;
  transform: translateY(-50%);
  pointer-events: none;
}

#reports .filterButton {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  color: #ffffff;
  background: linear-gradient(135deg, #1768c4, #248cbe);
  border: 0;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(28, 105, 172, 0.2);
  font-weight: 800;
  white-space: nowrap;
}

#reports .filterButton svg {
  width: 16px;
  height: 16px;
}

#reports .operationPanel {
  min-width: 0;
  min-height: 340px;
  padding: 0;
  overflow: hidden;
  background: var(--tf05-surface);
  border: 1px solid var(--tf05-line);
  border-radius: 20px;
  box-shadow: 0 14px 30px rgba(24, 63, 103, 0.07);
}

#reports .reportPanelTitle {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  border-bottom: 1px solid #e3ebf4;
}

#reports .reportPanelTitle > div:first-child {
  min-width: 0;
  align-items: flex-start;
}

#reports .reportPanelTitle h3,
#reports .reportPanelTitle p {
  margin: 0;
}

#reports .reportPanelTitle p {
  margin-top: 4px;
  color: var(--tf05-muted);
  font-size: 0.76rem;
}

#reports .reportPanelMeta {
  display: grid;
  flex: 0 0 auto;
  justify-items: end;
  gap: 2px;
}

#reports .reportPanelMeta strong {
  color: var(--tf05-navy);
  font-size: 0.75rem;
}

#reports .reportPanelMeta small {
  color: #8190a3;
  font-size: 0.68rem;
}

#reports .reportCards {
  display: grid;
  min-width: 0;
  gap: 10px;
  padding: 18px 22px 6px;
}

#reports .reportCard {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(150px, 0.45fr) auto;
  min-width: 0;
  align-items: center;
  gap: 14px;
  padding: 15px;
  background: #fbfdff;
  border: 1px solid #dbe6f2;
  border-radius: 15px;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

#reports .reportCard:hover {
  border-color: #a9c9e8;
  box-shadow: 0 9px 22px rgba(25, 85, 139, 0.09);
  transform: translateY(-1px);
}

#reports .reportCardIcon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #176bc8;
  background: #eaf3ff;
  border-radius: 12px;
}

#reports .reportCardIcon svg {
  width: 20px;
  height: 20px;
}

#reports .reportCardMain,
#reports .reportCardMeta {
  display: grid;
  min-width: 0;
  gap: 3px;
}

#reports .reportCardMain strong,
#reports .reportCardMain span,
#reports .reportCardMain small,
#reports .reportCardMeta strong,
#reports .reportCardMeta small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#reports .reportCardMain strong,
#reports .reportCardMeta strong {
  color: #183651;
}

#reports .reportCardMain span,
#reports .reportCardMain small,
#reports .reportCardMeta small {
  color: var(--tf05-muted);
}

#reports .reportCard .itemActions {
  display: flex;
  justify-content: flex-end;
}

#reports .reportCard .actionLink {
  min-height: 40px;
  padding: 0 14px;
  color: #0e5ea9;
  background: #ffffff;
  border: 1px solid #bcd4eb;
  border-radius: 10px;
  font-weight: 800;
}

#reports .reportsPageEmpty,
#reports .emptyState {
  margin: 22px;
}

#reports #reportsMsg {
  margin: 12px 22px 20px;
}

@media (max-width: 1450px) {
  #reports .reportToolbar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #reports .reportSearchField {
    grid-column: span 2;
  }

  #reports .filterButton {
    align-self: end;
  }
}

@media (max-width: 1050px) {
  #reports .reportStats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #reports .reportToolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #reports .reportSearchField {
    grid-column: 1 / -1;
  }

  #reports .reportCard {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  #reports .reportCardMeta {
    grid-column: 2;
  }

  #reports .reportCard .itemActions {
    grid-column: 3;
    grid-row: 1 / span 2;
  }
}

@media (max-width: 700px) {
  #reports.reportsPage {
    gap: 13px;
  }

  #reports .modulePageHeader {
    align-items: stretch;
    padding: 18px;
    border-radius: 18px;
  }

  #reports .modulePrimaryAction {
    width: 100%;
    min-height: 46px;
    justify-content: center;
  }

  #reports .reportToolbar {
    grid-template-columns: minmax(0, 1fr);
    padding: 15px;
  }

  #reports .reportSearchField {
    grid-column: auto;
  }

  #reports .filterButton {
    width: 100%;
    min-height: 48px;
  }

  #reports .reportPanelTitle {
    align-items: flex-start;
    padding: 17px;
  }

  #reports .reportPanelMeta {
    display: none;
  }

  #reports .reportCards {
    padding: 14px 15px 4px;
  }

  #reports .reportCard {
    grid-template-columns: auto minmax(0, 1fr);
  }

  #reports .reportCardMeta {
    grid-column: 2;
  }

  #reports .reportCard .itemActions {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  #reports .reportCard .actionLink {
    width: 100%;
    min-height: 46px;
  }
}

@media (max-width: 460px) {
  #reports .reportStats {
    grid-template-columns: minmax(0, 1fr);
  }

  #reports .reportStats article {
    min-height: 92px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #reports .reportCard,
  #reports .filterButton,
  #reports .modulePrimaryAction {
    transition: none;
  }
}
