/* Report page spacing and controls */
.hercules-reports-page { gap: 18px; }
.hercules-reports-page .report-form-card { padding: 20px; border-color: #d4e0e8; box-shadow: 0 2px 8px rgba(43, 66, 85, .05); }
.hercules-reports-page .report-card-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; }
.hercules-reports-page .report-card-heading h2 { margin: 0; font-size: 16px; color: #314d65; }
.hercules-reports-page .report-form-card > p { margin: 0 0 18px; font-size: 12px; line-height: 1.5; color: #62788a; }
.hercules-reports-page .report-criteria { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: flex-start; gap: 14px; }
.hercules-reports-page .report-criteria label { display: flex; flex-direction: column; flex: 0 0 auto; width: 160px; font-size: 12px; color: #465c70; }
.hercules-reports-page .product-report-criteria label:first-child { width: 220px; }
.hercules-reports-page .report-criteria input, .hercules-reports-page .report-criteria select { width: 100%; min-width: 0; box-sizing: border-box; height: 40px; }
.hercules-reports-page .report-criteria input[type="date"] { width: 160px; padding: 8px; font-size: 13px; }
.hercules-reports-page .report-run-button { min-width: 210px; padding: 0 16px; }
.hercules-reports-page button { border-radius: 8px; }
.hercules-reports-page .report-run-button, .hercules-reports-page .button.primary { background: #577b98; color: #fff; border: 1px solid #577b98; }
.hercules-reports-page .report-run-button:hover, .hercules-reports-page .button.primary:hover { background: #446783; }
.hercules-reports-page .button.secondary, .hercules-reports-page .button.ghost, .hercules-reports-page .report-order-pagination button { background: #eaf1f6; color: #3c607c; border: 1px solid #cadbe7; }
.hercules-reports-page .button.secondary:hover, .hercules-reports-page .button.ghost:hover, .hercules-reports-page .report-order-pagination button:hover { background: #dce8f1; }
.hercules-reports-page button:disabled { opacity: .5; cursor: default; }
.hercules-reports-page button:focus-visible { outline: 3px solid #92b8d2; outline-offset: 3px; }
.hercules-reports-page .report-clear-button { flex: 0 0 auto; min-width: 120px; font-size: 12px; }
.hercules-reports-page .report-result-strip { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 16px; align-items: center; margin-top: 18px; padding-top: 16px; }
.hercules-reports-page .report-result-strip > span { min-width: 0; line-height: 1.6; }
.hercules-reports-page .report-result-strip > button, .hercules-reports-page .report-output-actions { grid-column: 2; width: 220px; }
.hercules-reports-page .report-output-actions { display: flex; flex-direction: column; gap: 8px; }
.hercules-reports-page .report-print-button { width: 220px; min-height: 40px; }
@media (max-width: 700px) {
  .hercules-reports-page .report-form-card { padding: 16px; }
  .hercules-reports-page .report-card-heading { gap: 10px; }
  .hercules-reports-page .report-card-heading h2 { font-size: 14px; }
  .hercules-reports-page .product-report-criteria label:first-child { width: 100%; }
  .hercules-reports-page .report-result-strip { grid-template-columns: minmax(0, 1fr); }
  .hercules-reports-page .report-result-strip > button, .hercules-reports-page .report-output-actions { grid-column: 1; width: 100%; }
  .hercules-reports-page .report-print-button { width: 100%; }
}
@media (max-width: 400px) {
  .hercules-reports-page .report-criteria label { flex: 1 1 140px; width: auto; }
  .hercules-reports-page .report-criteria input[type="date"] { width: 100%; }
  .hercules-reports-page .report-run-button { width: 100%; }
}
@media print { .hercules-reports-page .report-card-heading button, .hercules-reports-page .report-result-strip, .hercules-reports-page .report-criteria { display: none; } }
/* Shared criteria with six aligned report actions */
.hercules-reports-page .multiple-report-options { margin-top: 20px; padding-top: 16px; border-top: 1px solid #e1e8ed; color: #465c70; }
.hercules-reports-page .multiple-report-options summary { cursor: pointer; font-size: 13px; font-weight: 600; }
.hercules-reports-page .shared-selection-actions { display: flex; gap: 10px; margin: 14px 0; }
.hercules-reports-page .shared-report-options { display: flex; flex-wrap: wrap; gap: 12px 22px; }
.hercules-reports-page .shared-report-options label { display: flex; flex-direction: row; align-items: center; gap: 8px; font-size: 13px; }
.hercules-reports-page .shared-report-options input { width: 16px; height: 16px; margin: 0; }
.hercules-reports-page .report-launcher-grid { display: grid; gap: 12px; }
.hercules-reports-page .report-launcher-grid > .report-form-card { display: grid; grid-template-columns: 250px minmax(0, 1fr) 120px; align-items: center; gap: 16px; padding: 16px 20px; }
.hercules-reports-page .report-launcher-grid > .report-form-card > .report-card-heading { grid-column: 3; grid-row: 1; margin: 0; }
.hercules-reports-page .report-launcher-grid > .report-form-card > .report-card-heading h2 { display: none; }
.hercules-reports-page .report-launcher-grid > .report-form-card > p { display: none; }
.hercules-reports-page .report-launcher-grid > .report-form-card > .report-criteria { grid-column: 1; grid-row: 1; }
.hercules-reports-page .report-launcher-grid .report-run-button { width: 250px; min-width: 0; height: auto; min-height: 44px; padding: 10px 14px; }
.hercules-reports-page .report-launcher-grid > .report-form-card > .report-result-strip { grid-column: 2; grid-row: 1; border: 0; padding: 0; margin: 0; }
.hercules-reports-page .report-launcher-grid > .report-form-card > .notice,
.hercules-reports-page .report-launcher-grid > .report-form-card > .daily-input-results,
.hercules-reports-page .report-launcher-grid > .report-form-card > .report-summary { grid-column: 1 / -1; }
@media (max-width: 1100px) {
  .hercules-reports-page .report-launcher-grid > .report-form-card { grid-template-columns: 230px minmax(0, 1fr); }
  .hercules-reports-page .report-launcher-grid .report-run-button { width: 230px; }
  .hercules-reports-page .report-launcher-grid > .report-form-card > .report-card-heading { grid-column: 2; justify-content: flex-end; }
  .hercules-reports-page .report-launcher-grid > .report-form-card > .report-result-strip { grid-column: 1 / -1; grid-row: 2; padding-top: 12px; border-top: 1px solid #e1e8ed; }
}
@media (max-width: 600px) {
  .hercules-reports-page .report-launcher-grid > .report-form-card { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .hercules-reports-page .report-launcher-grid > .report-form-card > .report-card-heading { grid-column: 1; grid-row: 3; }
  .hercules-reports-page .report-launcher-grid .report-run-button { width: 100%; }
  .hercules-reports-page .report-launcher-grid > .report-form-card > .report-criteria { width: 100%; }
}
/* One Endicia action with product choices alongside it, at the end. */
.hercules-reports-page .report-launcher-grid > .endicia-unified-card > .endicia-selections { grid-column: 2; grid-row: 1; }
.hercules-reports-page .endicia-selections .shared-selection-actions { margin: 0 0 12px; }
.hercules-reports-page .endicia-selections small { display: block; margin-top: 12px; color: #62788a; }
.hercules-reports-page .report-launcher-grid > .endicia-unified-card > .report-result-strip { grid-column: 1 / -1; grid-row: 2; padding-top: 12px; border-top: 1px solid #e1e8ed; }
@media (max-width: 1100px) {
  .hercules-reports-page .report-launcher-grid > .endicia-unified-card > .endicia-selections { grid-column: 1 / -1; grid-row: 2; }
  .hercules-reports-page .report-launcher-grid > .endicia-unified-card > .report-result-strip { grid-row: 3; }
}
@media (max-width: 600px) {
  .hercules-reports-page .report-launcher-grid > .endicia-unified-card > .report-card-heading { grid-row: 4; }
}
