/* Chores report (views/chore-report.html) */
.rpt .bar { display: block; margin: 6px 0 4px; }
.rpt-bad { color: var(--danger); }
.rpt-member { align-items: flex-start; }
.rpt-member .avatar { margin-top: 2px; }
/* A share bar: one member's share, or a room's split by member */
.rpt-share { display: flex; height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin: 6px 0 4px; }
.rpt-share i { display: block; height: 100%; }
.rpt-share i + i { border-left: 2px solid var(--surface); }
.rpt-top { gap: 6px; margin-top: 8px; }
.chip.sm { min-height: 28px; padding: 0 10px; font-size: 12px; font-weight: 600; }

/* Trend: one stacked column per week or month */
.rpt-bars { display: grid; gap: 6px; align-items: end; height: 170px; }
.rpt-col { display: flex; flex-direction: column; align-items: center; height: 100%; min-width: 0; }
.rpt-n { font-size: 11px; color: var(--text-muted); height: 16px; }
.rpt-stack { flex: 1; width: 100%; max-width: 34px; display: flex; align-items: flex-end; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.rpt-stack.cur { outline: 2px solid var(--text-muted); outline-offset: 1px; }
.rpt-fill { width: 100%; display: flex; flex-direction: column-reverse; }
.rpt-fill i { display: block; width: 100%; }
.rpt-fill i + i { border-bottom: 2px solid var(--surface); }
.rpt-lbl { font-size: 10px; color: var(--text-muted); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.rpt-legend { gap: 12px; margin-top: 12px; font-size: 12px; color: var(--text-muted); }
.rpt-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }

/* In short: one sentence per line */
.rpt-summary { padding: 6px 16px; }
.rpt-line { display: flex; gap: 10px; padding: 8px 0; font-size: 14px; line-height: 1.45; }
.rpt-line + .rpt-line { border-top: 1px solid var(--border); }
.rpt-line.warn { color: var(--warn-text); }
.rpt-line.bad { color: var(--danger); }
.rpt-ico { flex: none; width: 20px; text-align: center; }

/* All chores x members: scrolls sideways inside its card on a phone */
.rpt-table-card { padding: 0; overflow: hidden; }
.rpt-scroll { overflow-x: auto; }
.rpt-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.rpt-table th, .rpt-table td { padding: 8px 6px; text-align: left; vertical-align: middle; }
.rpt-table thead th { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .03em; border-bottom: 1px solid var(--border); white-space: nowrap; }
.rpt-table .c-name { padding-left: 14px; min-width: 150px; }
.rpt-table .c-num { text-align: center; font-variant-numeric: tabular-nums; width: 1%; white-space: nowrap; }
.rpt-table .c-num:last-child { padding-right: 14px; }
.rpt-table thead .c-num { text-transform: none; letter-spacing: 0; }
.rpt-th-name { display: block; font-weight: 600; max-width: 64px; overflow: hidden; text-overflow: ellipsis; margin: 2px auto 0; }
.rpt-table thead .avatar.xs { margin: 0 auto; }
.rpt-room-row { background: var(--surface-2); }
.rpt-room-row th { font-weight: 700; font-size: 13px; }
.rpt-room-row .pill { font-size: 11px; margin-left: 6px; }
.rpt-table tbody tr + tr td { border-top: 1px solid var(--border); }
.rpt-table td.c-num { color: var(--text); }
.rpt-table tbody td.c-num:not(:last-child) { color: var(--text-muted); }
.rpt-table tbody td.c-num b { color: var(--text); }
.rpt-table a { display: block; }
.rpt-last { display: block; }
.rpt-zero .c-name span:first-child { color: var(--text-muted); }
.rpt-table .pill { padding: 1px 8px; font-size: 11px; }
.rpt-table tfoot th, .rpt-table tfoot td { border-top: 2px solid var(--border); font-weight: 700; }
.rpt-note { margin: 0; padding: 10px 14px 12px; border-top: 1px solid var(--border); }

/* Day by day */
.rpt-day + .rpt-day { border-top: 1px solid var(--border); }
.rpt-day-head { display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 12px 16px; border: 0; background: none; text-align: left; }
.rpt-day-head strong { display: block; font-size: 14px; margin-bottom: 4px; }
.rpt-day-line { display: flex; gap: 6px; align-items: flex-start; font-size: 13px; color: var(--text-muted); margin-top: 3px; }
.rpt-day-line b { color: var(--text); font-weight: 600; }
.rpt-day-line .avatar { margin-top: 1px; }
.rpt-day-logs { padding: 0 16px 12px; }
.rpt-log { padding: 10px 12px; border-radius: var(--radius-s); background: var(--surface-2); }
.rpt-log + .rpt-log { margin-top: 8px; }
.rpt-thumbs { display: flex; gap: 6px; margin-top: 8px; padding: 0; border: 0; background: none; }
.rpt-thumbs .ph { position: relative; width: 84px; height: 64px; border-radius: 8px; overflow: hidden; display: block; }
.rpt-thumbs img { width: 100%; height: 100%; object-fit: cover; }
