@import url("../budget/styles.css?v=fa402c76");

.reports-page > * + * {
  margin-top: 1.5rem;
}

.report-sections {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.report-section {
  margin: 0;
}

.report-section h3 {
  margin: 0 0 1rem;
}

.report-section-actions,
.report-add {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem;
}

.report-add .app-field {
  margin: 0;
}

/* The dropdown and its button side by side, tops aligned. */
.report-add-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.75rem;
}

.report-add-row select {
  margin: 0;
  min-width: 14rem;
  width: auto;
}


.report-add-row button,
.report-section-actions button {
  margin: 0;
  width: auto;
}

.report-preview-head {
  display: block;
}

/* The buttons of the preview sit under its heading, at the left, as a tool's toolbar does. */
.report-preview-head .action-toolbar {
  margin: 0.5rem 0 1rem;
}

.report-preview-head h2 {
  margin: 0;
}

.mm-report-doc img {
  max-width: 100%;
  height: auto;
}

.mm-report-doc figcaption {
  color: var(--app-muted, #555);
  font-size: 0.9rem;
}

/* The form, the buttons and the Preview document. */
.report-form {
  margin: 0 0 1rem;
}

#report-output .table-block {
  margin-top: 1rem;
}



/* The Preview: the report as the document that Copy and Download hold. */
.mm-report-doc {
  padding: 1.5rem;
  border: 1px solid var(--app-border, #d0d0d0);
  border-radius: var(--app-radius, 0.5rem);
  overflow-x: auto;
}

.mm-report-doc table {
  width: 100%;
  border-collapse: collapse;
}

.mm-report-doc th,
.mm-report-doc td {
  border: 1px solid var(--app-control-border, #767676);
  padding: 0.4rem 0.6rem;
}

.report-open {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1rem;
}

.report-open .action-button {
  margin: 0;
}
