/* The on-screen report (Views/Shared/_ReportPanel.cshtml, wwwroot/js/report-viewer.js), used by the
   Reports page and the public Sample report page. */
.rc-report { display: none; }
.rc-report h3 { margin: 0; color: var(--irc-text); font-size: 16px; font-weight: 600; }
.rc-report-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.rc-report-head button { padding: 6px 14px; font-size: 13px; white-space: nowrap; }
.rc-report-actions { display: flex; gap: 8px; }
.rc-report-actions form { margin: 0; }
.rc-locked { color: var(--irc-sub); font-size: 13px; text-align: right; margin: -4px 0 10px; }
.rc-note {border-left: 3px solid #d97706; background: #fffbeb; padding: 10px 12px; border-radius: 6px; margin-bottom: 14px; font-size: 14px; }
.rc-section-head { font-size: 15px; font-weight: 600; color: var(--irc-text); text-transform: none; margin: 10px 0 10px; }
.rc-box { background: #fff; border: 1px solid var(--irc-line); border-radius: var(--irc-radius); margin-bottom: 14px; overflow: hidden; }
.rc-box-head { padding: 10px 14px 6px; }
.rc-box-title { color: var(--irc-text); font-size: 15px; font-weight: 600; }
.rc-box-title small { color: var(--irc-sub); font-size: 12px; font-weight: 400; margin-left: 4px; }
.rc-box-dates { color: var(--irc-sub); font-size: 12px; margin-top: 2px; }
.rc-box-dates span + span { margin-left: 16px; }
.rc-box-chart { padding: 4px 12px 2px; height: 240px; }
.rc-box-chart-line { height: 288px; }
/* minmax(0, ...): a column may always shrink below its chart's current pixel width. Otherwise a chart drawn
   before the page's scrollbar appeared keeps its column too wide and the grid sticks out past the panel. */
.rc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; }
.rc-box, .rc-box-chart { min-width: 0; }
.rc-box-chart canvas { max-width: 100%; }
.rc-grid .rc-box-chart { height: 200px; }
/* Smaller charts: Begin and End always on their own lines, so every box looks the same. */
.rc-grid .rc-box-dates span { display: block; }
.rc-grid .rc-box-dates span + span { margin-left: 0; }
@media (max-width: 600px) { .rc-grid { grid-template-columns: minmax(0, 1fr); } }
/* Totals in three fixed columns, label over amount, so long amounts never wrap differently. */
.rc-box-foot {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 12px;
    border-top: 1px solid var(--irc-line); background: #f9fafb; color: var(--irc-text); font-size: 12px; padding: 8px 14px;
}
.rc-box-foot span { min-width: 0; overflow-wrap: anywhere; }
.rc-box-foot em { display: block; font-style: normal; color: var(--irc-sub); }
.rc-message { color: var(--irc-sub); padding: 24px 0; }

/* Top row: logo, legend and account details beside the Account Life chart (stacked on phones). */
.rc-life-row { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 14px; align-items: stretch; }
/* The Life chart grows to the panel's height (the canvas follows its box). */
.rc-life-cell { display: flex; flex-direction: column; }
.rc-life-cell > .rc-box { flex: 1 1 auto; display: flex; flex-direction: column; }
.rc-life-cell > .rc-box > .rc-box-chart { flex: 1 1 auto; min-height: 240px; }
@media (max-width: 600px) { .rc-life-row { grid-template-columns: minmax(0, 1fr); } }
.rc-info { background: #fff; border: 1px solid var(--irc-line); border-radius: var(--irc-radius); padding: 12px 14px; margin-bottom: 14px; font-size: 12px; color: var(--irc-text); }
.rc-info-logo { display: block; width: 100%; max-width: 160px; height: auto; margin-bottom: 10px; }
.rc-legend { list-style: none; padding: 0; margin: 0 0 10px; }
.rc-legend li { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.rc-swatch { flex: 0 0 auto; width: 28px; height: 14px; border: 1px solid rgba(0, 0, 0, 0.15); }
.rc-details p { margin: 0 0 4px; overflow-wrap: anywhere; }
.rc-details b { font-weight: 600; }
