.acc-tabs,
.acc-actions,
.acc-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.acc-tabs { margin-top: 20px; }
.acc-heading { justify-content: space-between; margin-bottom: 20px; }
.acc-heading h2 { margin: 0; }
.acc-money { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.acc-journal small { display: block; }
.acc-report-table { width: 100%; table-layout: fixed; }
.acc-report-table th:last-child,
.acc-report-table td:last-child { text-align: right; }
.acc-result { padding: 14px; background: var(--bg, #f3f6f8); border-radius: 8px; }
.acc-report h2:not(:first-child) { margin-top: 32px; }
.acc-storno { min-width: 90px; }
.acc-storno form { min-width: 240px; display: grid; gap: 12px; padding-top: 16px; }
.acc-storno summary { cursor: pointer; color: var(--petrol); }
.acc-form button { margin-top: 20px; }

.acc-payment-dialog {
  width: min(780px, calc(100% - 28px));
  max-height: calc(100dvh - 28px);
  padding: 24px;
  border: 1px solid #dce6eb;
  border-radius: 14px;
  color: var(--text);
  background: #f5f7f9;
  overflow-y: auto;
}
.acc-payment-dialog::backdrop { background: rgb(19 42 50 / 48%); }
.acc-dialog-close { display: block; margin-left: auto; margin-bottom: 12px; }
.acc-payment-dialog .page-title h1 { font-size: 28px; }
.acc-payment-dialog .page-title { margin-bottom: 20px; }
.acc-payment-dialog .module-panel { margin-bottom: 0; }

@media (max-width: 650px) {
  .acc-tabs .button { flex: 1 1 45%; text-align: center; white-space: normal; }
  .acc-toolbar .module-filter { align-items: stretch; }
  .acc-toolbar .module-filter label { min-width: 0; width: 100%; }
  .acc-heading .acc-actions { width: 100%; }
}
