/* reports pages: the list, one report, the monthly and annual summary, the activity log. */

.report-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.report-tile { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; text-decoration: none; color: inherit; min-height: 128px; }
a.report-tile:hover { border-color: var(--line-strong); }
.tile-title { font-weight: 800; margin-top: 4px; }
.tile-figure { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.tile-figure.good { color: var(--good); }
.tile-figure.bad { color: var(--bad); }
.tile-figure.info { color: var(--navy); }
.tile-sub { color: var(--text2); font-size: 12.5px; font-weight: 700; }
.registers { padding: 4px 12px; }
.register-figure { color: var(--navy); font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .report-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .report-tile { padding: 12px; } }

.period-picker { display: flex; flex-direction: column; gap: 10px; }
.period-dates { max-width: 520px; }
.sort-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sort-row .chips { flex: 1; }
.report-table { overflow: hidden; }
.report-table td { white-space: nowrap; }
.report-table td.long { white-space: normal; min-width: 240px; }
.report-table td.strong { font-weight: 700; }
.totals-card { display: flex; flex-direction: column; gap: 12px; }
.totals-head { display: flex; flex-direction: column; gap: 2px; }
.totals-label { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.totals-big { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.totals-others { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.totals-other { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--muted-bg); min-width: 0; }
.totals-other .stat-label { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; }
.totals-other .stat-value { font-size: 15px; }

/* Monthly and annual summary: the headline and the account beside the months on a wide screen, above them on a phone. */
.summary-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; align-items: start; }
.summary-side { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; gap: 12px; position: sticky; top: 16px; }
.summary-main { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
@media (max-width: 1000px) {
  .summary-grid { grid-template-columns: minmax(0, 1fr); }
  .summary-side, .summary-main { grid-column: 1; grid-row: auto; position: static; }
}
.summary-head { background: linear-gradient(150deg, var(--navy) 0%, var(--navy-dark) 100%); color: #fff; border-radius: 16px; padding: 12px 8px 16px 16px; }
.summary-head .hero-accent { color: var(--accent); font-weight: 800; text-transform: uppercase; font-size: 12.5px; letter-spacing: .04em; }
.summary-profit { font-size: 32px; font-weight: 800; font-variant-numeric: tabular-nums; }
.summary-profit.masked { font-size: 26px; }
.summary-sub { color: rgba(255, 255, 255, .85); }
.summary-title { color: var(--navy); }
.month { padding: 4px 14px 10px; }
.month-head { width: 100%; display: flex; align-items: center; gap: 10px; background: none; border: 0; padding: 8px 0 4px; text-align: left; cursor: pointer; }
.month-head b { font-variant-numeric: tabular-nums; }
.month-bar { display: block; height: 6px; border-radius: 3px; background: var(--muted-bg); overflow: hidden; }
.month-bar span { display: block; height: 100%; border-radius: 3px; background: var(--good); }
.month-bar span.loss { background: var(--bad); }
.month-account { margin-top: 8px; padding: 4px 12px; border-radius: 12px; background: var(--muted-bg); }
.account { display: flex; flex-direction: column; }
.account-line { display: flex; align-items: center; gap: 10px; padding: 5px 0; }
.account-line b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.account-line.total { border-top: 1px solid var(--text2); margin-top: 2px; padding-top: 7px; font-weight: 800; }

/* Activity log */
.audit-entry { padding: 0 16px; }
.audit-head { width: 100%; display: flex; align-items: flex-start; gap: 10px; background: none; border: 0; padding: 12px 0; text-align: left; cursor: pointer; }
.audit-note { display: block; margin-top: 4px; }
.audit-details { padding: 0 0 14px; display: flex; flex-direction: column; gap: 12px; }
.audit-changes td { word-break: break-word; }
.audit-details .table-wrap { border: 1px solid var(--line); border-radius: 10px; }
.audit-snapshot { display: flex; flex-direction: column; gap: 4px; }
