/* reports page/module styles. Moved from styles.css for easier maintenance. */
body[data-theme="dark"] .hint-block,
body[data-theme="dark"] .profit-grid div,
body[data-theme="dark"] .preview-card {
  background: var(--panel-2);
}

.reports-sidebar-subnav {
  max-height: none;
  overflow: visible;
  position: relative;
  z-index: 20;
  background: var(--sidebar-bg);
}

.reports-sidebar-subnav button {
  min-height: 34px;
  padding-left: 42px;
  font-size: 13px;
}

.report-workspace {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100%;
  background: var(--bg);
}

.report-nav {
  display: grid;
  align-content: start;
  border-right: 1px solid var(--line);
  background: var(--panel);
}

.report-nav button {
  min-height: 36px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  text-align: left;
  padding: 0 14px;
}

.report-nav button.active {
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
}

.report-main {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr;
}

.report-filter-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 10px;
  align-items: end;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.report-filter-band:has([data-run-report="Rate per Mile"]) {
  grid-template-columns: repeat(4, minmax(190px, 1fr));
  align-items: start;
  padding: 18px 24px 20px;
}

.report-filter-band:has([data-run-report="Total Revenue"]) {
  grid-template-columns: repeat(5, minmax(170px, 1fr));
  align-items: start;
  padding: 18px 24px 20px;
}

.report-filter-band:has([data-run-report="Revenue by Dispatcher"]) {
  grid-template-columns: repeat(3, minmax(220px, 300px));
  justify-content: center;
  align-items: start;
  padding: 18px 24px 20px;
}

.report-filter-band:has([data-run-report="Gross Profit"]) {
  grid-template-columns: repeat(4, minmax(180px, 220px));
  justify-content: center;
  align-items: start;
  padding: 18px 24px 20px;
}

.report-filter-band:has([data-run-report="Profit & Loss"]) {
  grid-template-columns: repeat(4, minmax(180px, 220px));
  justify-content: center;
  align-items: start;
  gap: 8px 20px;
  padding: 18px 24px 20px;
}

.report-filter-band:has([data-run-report="Profit & Loss"]) .report-date-basis {
  grid-column: 1;
  grid-row: 2;
}

.report-filter-band:has([data-run-report="Gross Profit per Load"]) {
  grid-template-columns: repeat(4, minmax(180px, 220px));
  justify-content: center;
  align-items: start;
  gap: 12px 20px;
  padding: 18px 24px 20px;
}

.report-filter-band:has([data-run-report="Gross Profit per Load"]) .report-date-basis {
  grid-column: 1;
  grid-row: 2;
}

.report-filter-band:has([data-run-report="Gross Profit per Load"]) .report-group-by {
  grid-column: 1;
  grid-row: 3;
  margin-top: 18px;
}

.report-filter-band:has([data-run-report="Gross Profit per Load"]) .report-status-options {
  grid-column: 2;
  grid-row: 2 / span 2;
}

.report-filter-band label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.report-inline-check {
  min-height: var(--field-h);
  align-content: end;
  grid-auto-flow: column;
  grid-template-columns: auto 1fr;
  align-items: center;
  justify-content: start;
  text-transform: none !important;
  color: var(--text) !important;
  font-size: 13px !important;
}

.report-period-stack {
  display: grid;
  gap: 12px;
  align-content: start;
  min-width: 0;
}

.report-period-stack > label {
  min-width: 0;
}

.report-custom-date input {
  width: 100%;
  min-width: 0;
}

.report-inline-check input {
  width: 16px;
  height: 16px;
  min-height: 0;
  padding: 0;
}

.report-filter-band select,
.report-filter-band input {
  min-height: var(--field-h);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 5px 8px;
  color: var(--text);
  background: var(--panel);
}

.report-preview-shell {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 16px;
}

.report-preview-shell > .table-panel {
  min-height: 0;
  flex: 1 1 auto;
}

.emails-report-toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 58px;
  padding: 8px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

body.reports-email-mode .emails-report-toolbar {
  display: none;
}

.emails-report-table {
  border: 0;
  box-shadow: none;
}

.emails-report > .emails-report-table.standard-page-grid {
  width: 100%;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.emails-report-table .table-wrap {
  width: 100%;
  min-width: 0;
  min-height: 0;
  height: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: auto;
  border: 0;
}

.emails-report-table table {
  min-width: 1120px;
}

.emails-report-table th {
  font-size: 11px;
  color: #111827;
  background: var(--panel);
  text-transform: uppercase;
}

.emails-report-table td {
  height: 52px;
  vertical-align: middle;
}

.emails-report-table td:nth-child(3) {
  max-width: 420px;
  white-space: normal;
}

.report-title-row,
.ifta-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.report-title-row h3 {
  margin: 0;
}

.report-title-row p {
  margin: 4px 0 0;
  color: var(--muted);
}

.report-run-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  grid-column: 1 / -1;
  justify-content: center;
}

.report-radios,
.report-checks {
  border: 0;
  margin: 0;
  padding: 0;
  display: grid;
  align-content: start;
  gap: 7px;
  color: var(--text);
  font-size: 13px;
  text-transform: none;
}

.report-radios legend,
.report-checks legend {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 2px;
  text-transform: uppercase;
}

.report-radios label,
.report-checks label {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 7px;
  color: var(--text);
  font-size: 13px;
  text-transform: none;
}

.report-radios input,
.report-checks input {
  min-height: 0;
  width: 16px;
  height: 16px;
  padding: 0;
}

.report-columns {
  grid-column: span 2;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
}

.report-empty-preview {
  min-height: 320px;
  display: grid;
  place-content: center;
  gap: 6px;
  color: var(--muted);
  border: 1px dashed var(--line);
  background: var(--panel);
}

.report-empty-preview strong {
  color: var(--text);
  font-size: 18px;
}

.report-pdf-viewer {
  min-height: 0;
  flex: 1 1 auto;
  overflow: auto;
  padding: 18px;
  background: #e8edf1;
  border: 1px solid var(--line);
}

.report-viewer-actions {
  max-width: 980px;
  margin: 0 auto 8px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.report-viewer-actions button {
  min-height: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  padding: 0;
  text-decoration: underline;
  font-weight: 700;
}

.report-rate-per-mile .report-viewer-actions,
.report-rate-per-mile .report-sheet {
  width: 1570px;
  max-width: none;
}

.report-rate-per-mile .report-sheet {
  min-height: 520px;
}

.report-rate-per-mile .report-sheet-table {
  table-layout: auto;
  font-size: 11px;
}

.report-rate-per-mile .report-sheet-table th,
.report-rate-per-mile .report-sheet-table td {
  white-space: nowrap;
  overflow-wrap: normal;
}

.report-rate-per-mile .report-sheet-table th:nth-child(7),
.report-rate-per-mile .report-sheet-table td:nth-child(7) {
  min-width: 220px;
  white-space: normal;
}

.report-gross-profit-per-load .report-viewer-actions,
.report-gross-profit-per-load .report-sheet {
  max-width: 1570px;
}

.report-gross-profit-per-load .report-sheet {
  min-height: 420px;
}

.report-gross-profit-per-load .report-sheet-table {
  table-layout: auto;
}

.report-gross-profit .report-viewer-actions,
.report-gross-profit .report-sheet {
  max-width: 956px;
}

.report-profit-loss .report-viewer-actions,
.report-profit-loss .report-sheet {
  max-width: 956px;
}

.report-sheet {
  max-width: 980px;
  min-height: 720px;
  margin: 0 auto;
  padding: 44px 44px 28px;
  background: #fff !important;
  color: #1d2c38 !important;
  border: 1px solid #d4dde4;
  box-shadow: 0 8px 22px rgba(21, 32, 43, 0.18);
  color-scheme: light;
  overflow: hidden;
}

.report-sheet,
.report-sheet * {
  color-scheme: light;
}

body[data-theme="dark"] .report-sheet,
body[data-theme="auto"] .report-sheet {
  background: #fff !important;
  color: #1d2c38 !important;
}

.report-sheet-head {
  display: grid;
  grid-template-columns: 1fr 270px;
  gap: 28px;
  align-items: start;
  margin-bottom: 28px;
}

.report-sheet-head h1 {
  margin: 16px 0 8px;
  font-size: 24px;
  font-weight: 600;
  color: #102033 !important;
}

.report-sheet-head p {
  margin: 0;
  color: #536575 !important;
}

.report-sheet-meta {
  display: grid;
  gap: 5px;
  margin-top: 18px;
  color: #102033 !important;
  font-size: 12px;
}

.report-sheet-meta p {
  margin: 0;
  color: #102033 !important;
}

.report-sheet-meta strong {
  color: #102033 !important;
}

.report-sheet-head address {
  justify-self: end;
  width: max-content;
  max-width: 100%;
  text-align: left;
  font-style: normal;
  font-size: 12px;
  line-height: 1.35;
  color: #1d2c38 !important;
}

.report-sheet-head address span,
.report-sheet-head address strong {
  display: block;
}

.report-logo {
  width: 116px;
  max-height: 86px;
  object-fit: contain;
}

.report-logo-mark {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #102538;
  color: #1c9a67 !important;
  font-size: 26px;
  font-weight: 900;
}

.report-sheet-table {
  width: 100%;
  max-width: 100%;
  min-width: 0 !important;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 12px;
  background: #fff !important;
}

.report-sheet-table th,
.report-sheet-table td {
  border: 1px solid #d5dde4;
  padding: 8px 9px;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
  word-break: normal;
  background: #fff !important;
  color: #1d2c38 !important;
}

.report-sheet-table th {
  background: #eef3f6 !important;
  color: #405263 !important;
  font-size: 11px;
  text-transform: none;
}

.report-sheet-table .right {
  text-align: right;
  white-space: normal;
  font-variant-numeric: tabular-nums;
}

.report-sheet-table .report-total-row td {
  background: #fbfcfd !important;
  font-weight: 800;
}

.report-sheet-table .report-group-row td {
  background: #f1f1f1 !important;
  font-weight: 800;
}

.report-gross-profit .report-sheet {
  min-height: 594px;
}

.report-gross-profit .report-sheet-head {
  margin-bottom: 24px;
}

.report-gross-profit .report-sheet-table th:first-child {
  color: transparent !important;
}

.report-gross-profit .report-sheet-table th,
.report-gross-profit .report-sheet-table td {
  background: #f4f4f4 !important;
}

.report-gross-profit .report-sheet-table th {
  text-align: right;
}

.report-gross-profit .report-sheet-table td:first-child {
  font-weight: 700;
}

.report-profit-loss .report-sheet {
  min-height: 594px;
}

.report-profit-loss .report-sheet-head {
  margin-bottom: 24px;
}

.report-profit-loss .report-sheet-table th:first-child {
  color: transparent !important;
}

.report-profit-loss .report-sheet-table th,
.report-profit-loss .report-sheet-table td {
  background: #f4f4f4 !important;
}

.report-profit-loss .report-sheet-table th {
  text-align: right;
}

.report-profit-loss .report-profit-loss-section-row td {
  font-weight: 700;
}

.report-profit-loss .report-profit-loss-detail-row td {
  background: #fff !important;
}

.report-profit-loss .report-profit-loss-detail-row td:first-child {
  padding-left: 32px;
}

.report-detail-modal .table-wrap {
  max-height: 52vh;
}

.report-detail-modal th,
.report-detail-modal td {
  white-space: nowrap;
}

.report-detail-total {
  margin-top: 14px;
  padding-right: 18%;
  text-align: right;
  font-weight: 800;
}

.report-sheet-summary {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 2px solid #d5dde4;
  text-align: right;
  font-weight: 800;
  color: #102033 !important;
}

.profit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.profit-grid div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  background: var(--panel-2);
}

.profit-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.profit-grid strong {
  display: block;
  margin-top: 6px;
  font-size: 18px;
}

.report-card {
  align-content: start;
}

.report-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.report-preview {
  min-height: 0;
  display: grid;
  gap: 12px;
}

.report-preview .table-wrap {
  max-height: 58vh;
}

/* Operational report screens */
body.reports-mode #primaryAction,
body.reports-mode [data-action="export"] {
  display: none !important;
}

body.reports-mode:not(.reports-email-mode) .search {
  display: none !important;
}

body.reports-mode .pagebar {
  min-height: 58px;
  padding: 14px 24px;
  background: #fff;
}

body.reports-mode .pagebar h1 {
  font-size: 22px;
}

body.reports-mode .pagebar p {
  display: none;
}

body.reports-mode .board,
body.reports-mode .report-workspace,
body.reports-mode .report-main,
body.reports-mode .report-filter-band {
  background: #fff;
}

body.reports-mode .report-filter-band {
  border-bottom: 1px solid #e4e4e4;
}

body.reports-mode .report-filter-band:has([data-run-report="Total Revenue"]),
body.reports-mode .report-filter-band:has([data-run-report="Rate per Mile"]) {
  max-width: 1080px;
  margin: 0 auto;
  padding: 18px 0 20px;
  grid-template-columns: repeat(5, minmax(160px, 1fr));
  align-items: start;
  border-bottom: 0;
}

body.reports-mode .report-filter-band:has([data-run-report="Revenue by Dispatcher"]) {
  max-width: 1080px;
  margin: 0 auto;
  padding: 18px 0 20px;
  grid-template-columns: repeat(3, minmax(220px, 300px));
  justify-content: center;
  align-items: start;
  border-bottom: 0;
}

body.reports-mode .report-filter-band:has([data-run-report="Gross Profit"]) {
  max-width: 960px;
  margin: 0 auto;
  padding: 18px 0 20px;
  grid-template-columns: repeat(4, minmax(180px, 220px));
  justify-content: center;
  align-items: start;
  border-bottom: 0;
}

body.reports-mode .report-filter-band:has([data-run-report="Profit & Loss"]) {
  max-width: 960px;
  margin: 0 auto;
  padding: 18px 0 20px;
  grid-template-columns: repeat(4, minmax(180px, 220px));
  justify-content: center;
  align-items: start;
  gap: 8px 20px;
  border-bottom: 0;
}

body.reports-mode .report-filter-band:has([data-run-report="Profit & Loss"]) .report-date-basis {
  grid-column: 1;
  grid-row: 2;
}

body.reports-mode .report-filter-band:has([data-run-report="Gross Profit per Load"]) {
  max-width: 860px;
  margin: 0 auto;
  padding: 18px 0 20px;
  grid-template-columns: repeat(4, minmax(180px, 200px));
  justify-content: center;
  align-items: start;
  gap: 12px 20px;
  border-bottom: 0;
}

body.reports-mode .report-filter-band:has([data-run-report="Gross Profit per Load"]) .report-date-basis {
  grid-column: 1;
  grid-row: 2;
}

body.reports-mode .report-filter-band:has([data-run-report="Gross Profit per Load"]) .report-group-by {
  grid-column: 1;
  grid-row: 3;
  margin-top: 18px;
}

body.reports-mode .report-filter-band:has([data-run-report="Gross Profit per Load"]) .report-status-options {
  grid-column: 2;
  grid-row: 2 / span 2;
}

body.reports-mode .report-filter-band:has([data-run-report="Payment Summary"]) {
  max-width: 960px;
  margin: 0 auto;
  padding: 18px 0 20px;
  grid-template-columns: repeat(4, minmax(180px, 220px));
  justify-content: center;
  align-items: start;
  gap: 12px 20px;
  border-bottom: 0;
}

body.reports-mode .report-filter-band:has([data-run-report="Expenses"]) {
  max-width: 780px;
  margin: 0 auto;
  padding: 18px 0 20px;
  grid-template-columns: minmax(260px, 300px) minmax(260px, 300px) minmax(170px, 170px);
  justify-content: center;
  align-items: start;
  border-bottom: 0;
}

body.reports-mode .report-filter-band label {
  color: #111;
  font-size: 13px;
  text-transform: none;
}

body.reports-mode .report-filter-band select,
body.reports-mode .report-filter-band input {
  border-radius: 3px;
  border-color: #cfd6dc;
  background: #fff;
  color: #111;
  accent-color: #52bd78;
}

body.reports-mode .report-filter-band .native-searchable-input {
  border-radius: 3px;
  border-color: #cfd6dc;
  background: #fff;
  color: #111;
}

body.reports-mode .report-filter-band .native-searchable-toggle {
  background: #fff;
  border-left-color: #cfd6dc;
}

body.reports-mode .report-filter-band .native-searchable-menu {
  border-radius: 3px;
  border-color: #cfd6dc;
  background: #fff;
  color: #111;
}

body.reports-mode .report-filter-band .native-searchable-menu button {
  color: #111;
}

body.reports-mode .report-radios,
body.reports-mode .report-checks {
  color: #111;
  font-size: 13px;
}

body.reports-mode .report-radios legend,
body.reports-mode .report-checks legend {
  color: #111;
  font-size: 13px;
  font-weight: 400;
  text-transform: none;
}

body.reports-mode .report-radios label,
body.reports-mode .report-checks label {
  color: #111;
  font-size: 13px;
}

body.reports-mode .report-radios input,
body.reports-mode .report-checks input {
  accent-color: #52bd78;
}

body.reports-mode .report-columns {
  grid-column: auto;
  grid-template-columns: 1fr;
}

body.reports-mode .report-preview-shell {
  padding: 16px 0 28px;
  border-top: 1px solid #e0e0e0;
  background: #fff;
  overflow: auto;
}

body.reports-mode .report-pdf-viewer {
  padding: 24px 0;
  border: 0;
  background: #fff;
}

body.reports-mode .report-viewer-actions {
  margin-bottom: 4px;
}

body.reports-mode .report-viewer-actions button {
  font-size: 12px;
  font-weight: 400;
}

body.reports-mode .report-sheet {
  max-width: 980px;
  padding: 42px 42px 28px;
  border: 0;
  box-shadow: 0 0 18px rgba(0, 0, 0, .22);
  color: #000 !important;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 400;
}

body.reports-mode .report-sheet-head {
  margin-bottom: 30px;
}

body.reports-mode .report-sheet-head h1 {
  margin: 26px 0 18px;
  color: #001b35 !important;
  font-size: 28px;
  font-weight: 400;
}

body.reports-mode .report-sheet-meta {
  gap: 7px;
  margin-top: 0;
  color: #000 !important;
  font-size: 12px;
}

body.reports-mode .report-logo-mark {
  display: none;
}

body.reports-mode .report-sheet-table {
  table-layout: auto;
  font-size: 12px;
}

body.reports-mode .report-sheet-table th,
body.reports-mode .report-sheet-table td {
  background: #fff !important;
  color: #000 !important;
  border-color: #d5dde4;
  padding: 8px 9px;
  overflow-wrap: normal;
}

body.reports-mode .report-sheet-table th {
  font-size: 12px;
  font-weight: 700;
}

body.reports-mode .report-sheet-table .report-total-row td {
  background: #fff !important;
  font-weight: 800;
}

body.reports-mode .report-sheet-table .report-group-row td {
  background: #f1f1f1 !important;
  font-weight: 800;
}

body.reports-mode .report-sheet-summary {
  display: none;
}

body.reports-mode .report-gross-profit .report-viewer-actions,
body.reports-mode .report-gross-profit .report-sheet {
  max-width: 956px;
}

body.reports-mode .report-gross-profit .report-sheet {
  min-height: 594px;
}

body.reports-mode .report-gross-profit .report-sheet-head {
  margin-bottom: 24px;
}

body.reports-mode .report-gross-profit .report-sheet-table th:first-child {
  color: transparent !important;
}

body.reports-mode .report-gross-profit .report-sheet-table th,
body.reports-mode .report-gross-profit .report-sheet-table td {
  background: #f4f4f4 !important;
}

body.reports-mode .report-gross-profit .report-sheet-table th {
  text-align: right;
}

body.reports-mode .report-gross-profit .report-sheet-table td:first-child {
  font-weight: 700;
}

body.reports-mode .report-profit-loss .report-viewer-actions,
body.reports-mode .report-profit-loss .report-sheet {
  max-width: 956px;
}

body.reports-mode .report-profit-loss .report-sheet {
  min-height: 594px;
}

body.reports-mode .report-profit-loss .report-sheet-head {
  margin-bottom: 24px;
}

body.reports-mode .report-profit-loss .report-sheet-table th:first-child {
  color: transparent !important;
}

body.reports-mode .report-profit-loss .report-sheet-table th,
body.reports-mode .report-profit-loss .report-sheet-table td {
  background: #f4f4f4 !important;
}

body.reports-mode .report-profit-loss .report-sheet-table th {
  text-align: right;
}

body.reports-mode .report-profit-loss .report-profit-loss-section-row td {
  font-weight: 700;
}

body.reports-mode .report-profit-loss .report-profit-loss-detail-row td {
  background: #fff !important;
}

body.reports-mode .report-profit-loss .report-profit-loss-detail-row td:first-child {
  padding-left: 32px;
}

body.reports-mode .report-gross-profit-per-load .report-viewer-actions,
body.reports-mode .report-gross-profit-per-load .report-sheet {
  max-width: 1570px;
}

body.reports-mode .report-gross-profit-per-load .report-sheet {
  min-height: 420px;
}

body.reports-mode .report-gross-profit-per-load .report-sheet-table {
  table-layout: auto;
}

body.reports-mode .report-rate-per-mile .report-viewer-actions,
body.reports-mode .report-rate-per-mile .report-sheet {
  width: 1570px;
  max-width: none;
}

body.reports-mode .report-rate-per-mile .report-sheet {
  min-height: 520px;
}

body.reports-mode .report-rate-per-mile .report-sheet-table {
  table-layout: auto;
  font-size: 11px;
}

body.reports-mode .report-rate-per-mile .report-sheet-table th,
body.reports-mode .report-rate-per-mile .report-sheet-table td {
  white-space: nowrap;
}

body.reports-mode .report-rate-per-mile .report-sheet-table th:nth-child(7),
body.reports-mode .report-rate-per-mile .report-sheet-table td:nth-child(7) {
  min-width: 220px;
  white-space: normal;
}

.checkbox-field,
.radio-row label,
.report-radios label,
.report-checks label {
  min-height: 34px;
  align-items: center;
  gap: 8px;
}

.radio-row,
.report-radios,
.report-checks {
  gap: 12px;
}

.radio-row label,
.report-radios label,
.report-checks label,
.checkbox-field {
  min-height: 28px;
}

body.reports-mode .report-filter-band {
  width: min(1180px, calc(100% - 48px)) !important;
  max-width: 1180px !important;
  margin: 18px auto 20px !important;
  padding: 18px 20px !important;
  border: 1px solid #dde5ec !important;
  border-radius: 6px !important;
  background: #fff !important;
  box-shadow: none !important;
}

body.reports-mode .report-filter-band:has([data-run-report="Total Revenue"]) {
  grid-template-columns: repeat(5, minmax(150px, 1fr)) !important;
  gap: 14px 18px !important;
  align-items: start !important;
}

body.reports-mode .report-filter-band label,
body.reports-mode .report-filter-band label > span:first-child,
body.reports-mode .report-radios legend,
body.reports-mode .report-checks legend {
  color: #344054 !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

body.reports-mode .report-radios,
body.reports-mode .report-checks {
  display: grid !important;
  gap: 8px !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 10px 12px !important;
  border: 1px solid #e4ebf1 !important;
  border-radius: 5px !important;
  background: #f8fafc !important;
  color: #344054 !important;
}

body.reports-mode .report-radios label,
body.reports-mode .report-checks label {
  display: flex !important;
  grid-template-columns: none !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 7px !important;
  min-height: 20px !important;
  color: #344054 !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1.25 !important;
}

body.reports-mode .report-radios input,
body.reports-mode .report-checks input {
  width: 14px !important;
  height: 14px !important;
  min-height: 0 !important;
  margin: 0 !important;
}

body.reports-mode .report-filter-band:has([data-run-report="Total Revenue"]) .report-radios {
  grid-column: 1 / span 2 !important;
  grid-template-columns: repeat(2, max-content) !important;
  align-content: start !important;
}

body.reports-mode .report-filter-band:has([data-run-report="Total Revenue"]) .report-group-by {
  grid-column: 3 / span 3 !important;
  grid-template-columns: repeat(3, max-content) !important;
}

body.reports-mode .report-filter-band:has([data-run-report="Total Revenue"]) .report-checks {
  align-content: start !important;
}

body.reports-mode .report-filter-band:has([data-run-report="Total Revenue"]) .report-status-options {
  grid-column: 1 / span 2 !important;
}

body.reports-mode .report-filter-band:has([data-run-report="Total Revenue"]) .report-columns {
  grid-column: 1 / -1 !important;
  grid-template-columns: repeat(3, minmax(130px, 1fr)) !important;
}

body.reports-mode .report-run-actions {
  grid-column: 1 / -1 !important;
  display: flex !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  padding-top: 6px !important;
}
