.gl-statement-workspace {
  --statement-line: #d9e3eb;
  --statement-section: #edf3f7;
  --statement-total: #e1eef4;
  color: var(--gl-ink);
}

.gl-statement-workspace .gl-statement-toolbar { margin-block: 0 10px; }
.gl-statement-toolbar > label { display: flex; gap: 8px; align-items: center; }
.gl-statement-view-controls { border-block: 1px solid var(--statement-line); padding-block: 8px; }
.gl-statement-export { position: relative; }
.gl-statement-export-menu {
  position: absolute;
  z-index: 8;
  top: calc(100% + 4px);
  right: 0;
  display: grid;
  width: max-content;
  padding: 6px;
  gap: 4px;
  background: white;
  border: 1px solid var(--statement-line);
  border-radius: 6px;
  box-shadow: 0 4px 12px #1739541a;
}
.gl-statement-export-menu button { text-align: left; }
.gl-statement-workspace .gl-statement-dialog,
.gl-statement-workspace .gl-report-batch-dialog { border: 0; color: inherit; }
.gl-statement-dialog p { margin-block: 12px; color: var(--gl-muted); line-height: 1.6; }
.gl-statement-reclass-options, .gl-report-batch-kinds {
  display: grid;
  gap: 7px;
  padding: 9px 12px 12px;
  border: 1px solid var(--statement-line);
  border-radius: 5px;
}
.gl-statement-reclass-options label, .gl-report-batch-kinds label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.gl-report-batch-dialog p { margin-block: 8px 0; }

.gl-statement-heading { padding: 12px 14px 10px; }
.gl-statement-heading h3 { font-size: 23px; font-weight: 650; text-align: center; margin: 0 0 9px; }
.gl-statement-metadata { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; color: var(--gl-muted); }
.gl-statement-metadata span:first-child { overflow-wrap: anywhere; }
.gl-statement-metadata span:not(:first-child) { white-space: nowrap; }
.gl-statement-subtext { margin: 0 0 8px; padding-inline: 14px; color: #345d75; font-size: 12px; }
.gl-statement-grid { overflow-x: auto; }
.gl-statement-grid-split { display: grid; grid-template-columns: repeat(2, minmax(440px, 1fr)); align-items: start; gap: 8px; }
.gl-statement-grid table { table-layout: fixed; border: 1px solid var(--statement-line); }
.gl-statement-number-col { width: 54px; }
.gl-statement-amount-col { width: 21%; }
.gl-book-shell .gl-statement-grid :is(th, td) { padding: 6px 10px; border: 1px solid var(--statement-line); }
.gl-book-shell .gl-statement-grid tbody th { position: static; }
.gl-book-shell .gl-statement-grid :is(th, td):nth-child(2) { text-align: center; color: var(--gl-muted); }
.gl-statement-grid thead th:nth-child(n+3) { text-align: right; }
.gl-book-shell .gl-statement-grid tbody th[scope='row'] { background: transparent; color: inherit; font-weight: inherit; white-space: normal; }
.gl-book-shell .gl-statement-section th { background: var(--statement-section); color: #315870; font-weight: 650; }
.gl-book-shell .gl-statement-subtotal { background: var(--statement-section); font-weight: 650; }
.gl-book-shell .gl-statement-total { background: var(--statement-total); color: #224b64; font-weight: 700; }
.gl-statement-grid .gl-number { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; white-space: normal; }
.gl-statement-footer { padding: 10px 2px 0; color: var(--gl-muted); font-size: 12px; }
.gl-statement-footer p { margin-block: 5px 0; }
.gl-statement-checks { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.gl-statement-batch-print { display: none; }

@media print {
  .gl-statement-workspace [role='alert'], .gl-statement-workspace dialog,
  .gl-statement-workspace dialog::backdrop { display: none !important; }
  .gl-statement-workspace[data-batch-print='true'] .gl-statement-current { display: none; }
  .gl-statement-batch-print { display: block; }
  .gl-statement-batch-print > .gl-statement-sheet + .gl-statement-sheet { break-before: page; }
  .gl-statement-heading { padding: 0 0 7px; }
  .gl-statement-heading h3 { font-size: 16pt; margin: 0 0 4px; }
  .gl-statement-metadata, .gl-statement-subtext, .gl-statement-footer { font-size: 8pt; }
  .gl-statement-grid { overflow: visible; }
  .gl-statement-grid-split { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
  .gl-statement-number-col { width: 9%; }
  .gl-statement-amount-col { width: 23%; }
  .gl-book-shell .gl-statement-grid :is(th, td) { padding: 2px 4px; color: #222; font-size: 8pt; }
  .gl-statement-section { break-after: avoid; }
  .gl-statement-grid :is(thead, .gl-statement-section, .gl-statement-subtotal, .gl-statement-total) {
    print-color-adjust: exact;
  }
}
