@ampath/esm-reports-app 1.0.0-next.112 → 1.0.0-next.114

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/dist/410.js +1 -1
  2. package/dist/763.css +1 -0
  3. package/dist/763.css.map +1 -0
  4. package/dist/763.js +1 -0
  5. package/dist/763.js.map +1 -0
  6. package/dist/ampath-esm-reports-app.js +1 -1
  7. package/dist/routes.json +1 -1
  8. package/package.json +1 -1
  9. package/src/common/report-header/facility-clinics.component.tsx +42 -0
  10. package/src/common/report-header/facility-clinics.scss +61 -0
  11. package/src/common/report-header/index.ts +1 -0
  12. package/src/common/report-page/download-sheet-pdf.ts +2 -0
  13. package/src/common/report-register/index.ts +1 -0
  14. package/src/common/report-register/register-layout.component.tsx +3 -26
  15. package/src/common/report-register/register-layout.scss +0 -58
  16. package/src/common/report-register/xlsx.ts +263 -0
  17. package/src/dashboard/report-catalog.ts +39 -145
  18. package/src/dashboard/reports-dasboard.tsx +5 -4
  19. package/src/reports/moh-718/moh-718.component.tsx +1 -1
  20. package/src/reports/moh-740/line-list/moh-740-line-list.component.tsx +107 -0
  21. package/src/reports/moh-740/moh-740.component.tsx +1 -1
  22. package/src/reports/moh-740/registers/moh-740.columns.ts +1 -0
  23. package/src/reports/program/care-and-treatment/care-and-treatment-linelist.component.tsx +87 -0
  24. package/src/reports/program/care-and-treatment/care-and-treatment-table.component.tsx +1 -1
  25. package/src/reports/program/care-and-treatment/care-and-treatment.component.tsx +122 -59
  26. package/src/reports/program/care-and-treatment/care-and-treatment.config.ts +120 -2
  27. package/src/reports/program/program-report.component.tsx +11 -5
  28. package/src/reports/quality-improvement/case-surveillance.component.tsx +258 -0
  29. package/src/reports/quality-improvement/case-surveillance.config.ts +57 -0
  30. package/src/reports/quality-improvement/case-surveillance.scss +305 -0
  31. package/src/reports/quality-improvement/quality-improvement-linelist.component.tsx +137 -0
  32. package/src/reports/quality-improvement/quality-improvement.component.tsx +217 -0
  33. package/src/reports/quality-improvement/quality-improvement.config.ts +144 -0
  34. package/src/reports/quality-improvement/quality-improvement.scss +227 -0
  35. package/src/resources/care-and-treatment.resource.ts +1 -1
  36. package/src/resources/quality-improvement.resource.ts +91 -0
  37. package/src/root.component.tsx +29 -14
  38. package/dist/955.css +0 -1
  39. package/dist/955.css.map +0 -1
  40. package/dist/955.js +0 -1
  41. package/dist/955.js.map +0 -1
@@ -0,0 +1,258 @@
1
+ import React, { useCallback, useRef, useState } from 'react';
2
+ import { useNavigate } from 'react-router-dom';
3
+ import dayjs from 'dayjs';
4
+ import classNames from 'classnames';
5
+ import { Layer, Tab, TabList, TabPanel, TabPanels, Tabs } from '@carbon/react';
6
+ import { Calendar, Location } from '@carbon/react/icons';
7
+ import { useSession } from '@openmrs/esm-framework';
8
+
9
+ import { ReportFiltersComponent, type ReportPeriod, useRestorePeriod } from '../../common/report-filters';
10
+ import { downloadSheetsPdf } from '../../common/report-page';
11
+ import { showReportError } from '../../common/report-error';
12
+ import { ReportPlaceholder, useGeneratedLocation } from '../../common/report-placeholder';
13
+ import { ReportSkeleton } from '../../common/report-skeleton';
14
+ import { FacilityClinics, useFacility } from '../../common/report-header';
15
+ import { type ReportDefinition } from '../../dashboard/report-catalog';
16
+ import { type CaseSurveillanceCard, getCaseSurveillance } from '../../resources/quality-improvement.resource';
17
+ import {
18
+ CASE_SURVEILLANCE_CARDS,
19
+ GAP_ALERT_PERCENT,
20
+ type CaseSurveillanceCardDefinition,
21
+ } from './case-surveillance.config';
22
+ import { QUALITY_IMPROVEMENT_LINELIST_PATH } from './quality-improvement.config';
23
+ import styles from './case-surveillance.scss';
24
+
25
+ interface CaseSurveillanceReportProps {
26
+ report: ReportDefinition;
27
+ }
28
+
29
+ /** A share of the denominator, to one decimal; 0 when there is none */
30
+ const percentOf = (part: number, whole: number) => (whole > 0 ? Math.round((part / whole) * 1000) / 10 : 0);
31
+
32
+ /**
33
+ * Case Surveillance Report (Reports tab → Quality Improvement Reports), as the
34
+ * POC's case surveillance dashboard lays it out: for the period chosen, at the
35
+ * session location's whole facility, a card per gap -- the clients needing an
36
+ * action out of those it applies to, and its share, flagged red at 25% or
37
+ * more -- and a progress tracker of what has been done. Either figure opens
38
+ * the list of its clients.
39
+ */
40
+ const CaseSurveillanceReport: React.FC<CaseSurveillanceReportProps> = ({ report }) => {
41
+ const [result, setResult] = useState<{ statusMonth: string; cards: Record<string, CaseSurveillanceCard> } | null>(
42
+ null,
43
+ );
44
+ const [isLoading, setIsLoading] = useState(false);
45
+ const [period, setPeriod] = useState<{ startDate: string; endDate: string }>({ startDate: '', endDate: '' });
46
+ const sheetRef = useRef<HTMLElement>(null);
47
+ const navigate = useNavigate();
48
+
49
+ const session = useSession();
50
+ const locationUuids = session?.sessionLocation?.uuid ?? '';
51
+ /* the figures cover the session location's whole facility, so it is named by its parent location (MTRH) */
52
+ const facilityDetails = useFacility(locationUuids, session?.sessionLocation?.display ?? '');
53
+ const facility = facilityDetails.name;
54
+ const { isForCurrentLocation, hasLocationChanged, markGenerated } = useGeneratedLocation('caseSurveillanceLocation');
55
+ const isReportGenerated = result !== null && isForCurrentLocation;
56
+
57
+ const generate = useCallback(
58
+ async ({ startDate, endDate }: ReportPeriod) => {
59
+ setIsLoading(true);
60
+ setPeriod({ startDate, endDate });
61
+ try {
62
+ setResult(await getCaseSurveillance({ locationUuids, startDate, endDate }));
63
+ markGenerated(locationUuids);
64
+ } catch (error) {
65
+ showReportError('the Case Surveillance report', error);
66
+ } finally {
67
+ setIsLoading(false);
68
+ }
69
+ },
70
+ // eslint-disable-next-line react-hooks/exhaustive-deps
71
+ [locationUuids],
72
+ );
73
+
74
+ useRestorePeriod(generate);
75
+
76
+ /* the list behind a figure, which leads back here */
77
+ const open = (indicator: string, label: string) => {
78
+ const params = new URLSearchParams({
79
+ i: indicator,
80
+ label,
81
+ startDate: period.startDate,
82
+ endDate: period.endDate,
83
+ locationUuids,
84
+ from: 'case-surveillance',
85
+ });
86
+ navigate(`${QUALITY_IMPROVEMENT_LINELIST_PATH}?${params}`);
87
+ };
88
+
89
+ const isWholeMonth =
90
+ Boolean(period.startDate) &&
91
+ dayjs(period.startDate).isSame(dayjs(period.startDate).startOf('month'), 'day') &&
92
+ dayjs(period.endDate).isSame(dayjs(period.startDate).endOf('month'), 'day');
93
+ const periodLabel = !period.endDate
94
+ ? ''
95
+ : isWholeMonth
96
+ ? dayjs(period.endDate).format('MMMM YYYY')
97
+ : `${dayjs(period.startDate).format('DD-MMM-YYYY')} to ${dayjs(period.endDate).format('DD-MMM-YYYY')}`;
98
+ const statusMonth = result?.statusMonth ? dayjs(result.statusMonth).format('DD-MMM-YYYY') : '';
99
+ const fileName = [
100
+ 'Case-Surveillance',
101
+ facility,
102
+ isWholeMonth ? period.endDate.slice(0, 7) : `${period.startDate}_${period.endDate}`,
103
+ ]
104
+ .filter(Boolean)
105
+ .join('_')
106
+ .replace(/[^a-z0-9_-]+/gi, '-');
107
+
108
+ /* Download PDF saves the sheet, on the tab showing, as one A4 landscape page */
109
+ const downloadPdf = async () => {
110
+ if (sheetRef.current) {
111
+ await downloadSheetsPdf([sheetRef.current], `${fileName}.pdf`, { orientation: 'landscape' });
112
+ }
113
+ };
114
+
115
+ const figure = (amount: number, indicator: string, label: string, className: string) =>
116
+ amount > 0 ? (
117
+ <button
118
+ type="button"
119
+ className={classNames(styles.figure, className)}
120
+ onClick={() => open(indicator, label)}
121
+ title={`List the ${amount.toLocaleString()} clients`}
122
+ >
123
+ {amount.toLocaleString()}
124
+ </button>
125
+ ) : (
126
+ <span className={classNames(styles.figure, className)}>0</span>
127
+ );
128
+
129
+ /* a card's figures: the gap, the clients it applies to and its share; red at 25% or more */
130
+ const figuresOf = (definition: CaseSurveillanceCardDefinition) => {
131
+ const card = result?.cards[definition.id];
132
+ const numerator = Number(card?.numerator ?? 0);
133
+ const denominator = Number(card?.denominator ?? 0);
134
+ const percent = percentOf(numerator, denominator);
135
+ return { card, numerator, denominator, percent, isAlert: percent >= GAP_ALERT_PERCENT };
136
+ };
137
+
138
+ const renderGapCard = (definition: CaseSurveillanceCardDefinition) => {
139
+ const { card, numerator, denominator, percent, isAlert } = figuresOf(definition);
140
+ return (
141
+ <article key={definition.id} className={classNames(styles.card, isAlert ? styles.alert : styles.good)}>
142
+ <header className={styles.cardHeader}>
143
+ <h5 className={styles.cardTitle}>{definition.title}</h5>
144
+ <span className={styles.status}>{isAlert ? 'Needs action' : 'On track'}</span>
145
+ </header>
146
+ <div className={styles.cardValue}>
147
+ <span className={styles.figures}>
148
+ {figure(numerator, card?.numeratorIndicator ?? '', definition.title, styles.numerator)}
149
+ <span className={styles.slash}>/</span>
150
+ {figure(
151
+ denominator,
152
+ card?.denominatorIndicator ?? '',
153
+ `${definition.title} - all clients`,
154
+ styles.denominator,
155
+ )}
156
+ </span>
157
+ <span className={styles.percent}>{percent}%</span>
158
+ </div>
159
+ {/* the gap's share of the clients it applies to */}
160
+ <div className={styles.gapTrack} aria-hidden="true">
161
+ <div className={styles.gapBar} style={{ width: `${Math.min(percent, 100)}%` }} />
162
+ </div>
163
+ <p className={styles.cardDescription}>{definition.description}</p>
164
+ </article>
165
+ );
166
+ };
167
+
168
+ const renderProgress = (definition: CaseSurveillanceCardDefinition) => {
169
+ const { numerator, denominator, isAlert } = figuresOf(definition);
170
+ const done = Math.max(denominator - numerator, 0);
171
+ const percent = percentOf(done, denominator);
172
+ return (
173
+ <li key={definition.id} className={classNames(styles.progressRow, isAlert ? styles.alert : styles.good)}>
174
+ <div className={styles.progressLabel}>
175
+ <span className={styles.progressTitle}>{definition.title}</span>
176
+ <span className={styles.progressCount}>
177
+ {definition.achieved}: <strong>{done.toLocaleString()}</strong> of {denominator.toLocaleString()}
178
+ </span>
179
+ </div>
180
+ <div
181
+ className={styles.track}
182
+ role="progressbar"
183
+ aria-label={definition.title}
184
+ aria-valuemin={0}
185
+ aria-valuemax={100}
186
+ aria-valuenow={percent}
187
+ >
188
+ <div className={styles.bar} style={{ width: `${percent}%` }} />
189
+ </div>
190
+ <span className={styles.progressPercent}>{denominator > 0 ? `${percent}%` : '—'}</span>
191
+ </li>
192
+ );
193
+ };
194
+
195
+ return (
196
+ <>
197
+ <ReportFiltersComponent
198
+ reportName={report.name}
199
+ /* a month, or any dates: the viral load cards read the end of the month the period ends in */
200
+ mode="both"
201
+ defaultTab="monthly"
202
+ onGenerate={generate}
203
+ isLoading={isLoading}
204
+ isReportGenerated={isReportGenerated}
205
+ generatedPeriod={period}
206
+ onDownloadPdf={downloadPdf}
207
+ backLink={{ label: 'Quality Improvement Reports', to: '/?group=quality-improvement' }}
208
+ />
209
+ {isLoading && <ReportSkeleton blocks={2} />}
210
+ {!isLoading && !isReportGenerated && (
211
+ <ReportPlaceholder reportName={report.name} isLocationChanged={result !== null && hasLocationChanged} />
212
+ )}
213
+ {!isLoading && isReportGenerated && (
214
+ <Layer as="section" className={styles.sheet} ref={sheetRef}>
215
+ <header className={styles.masthead}>
216
+ <div>
217
+ <h4 className={styles.title}>Case Surveillance Report</h4>
218
+ <p className={styles.subtitle}>
219
+ Gaps in care, out of the clients each applies to. Select a figure to list its clients.
220
+ </p>
221
+ </div>
222
+ <p className={styles.meta}>
223
+ <span className={styles.metaItem}>
224
+ <Location size={12} />
225
+ <FacilityClinics name={facility} clinics={facilityDetails.clinics} />
226
+ </span>
227
+ <span className={styles.metaItem}>
228
+ <Calendar size={12} />
229
+ {periodLabel}
230
+ </span>
231
+ </p>
232
+ </header>
233
+ <Tabs>
234
+ <TabList aria-label="Case surveillance views" className={styles.tabs}>
235
+ <Tab>Realtime gap review</Tab>
236
+ <Tab>Progress tracker</Tab>
237
+ </TabList>
238
+ <TabPanels>
239
+ <TabPanel className={styles.panel}>
240
+ <div className={styles.cardGrid}>{CASE_SURVEILLANCE_CARDS.map(renderGapCard)}</div>
241
+ </TabPanel>
242
+ <TabPanel className={styles.panel}>
243
+ <ul className={styles.progressList}>{CASE_SURVEILLANCE_CARDS.map(renderProgress)}</ul>
244
+ </TabPanel>
245
+ </TabPanels>
246
+ </Tabs>
247
+ <p className={styles.note}>
248
+ Figures are for the whole facility. The viral load and EAC cards are each client&rsquo;s status on ART at
249
+ the month&rsquo;s end ({statusMonth}); the rest are for the period. A gap of {GAP_ALERT_PERCENT}% or more
250
+ needs action.
251
+ </p>
252
+ </Layer>
253
+ )}
254
+ </>
255
+ );
256
+ };
257
+
258
+ export default CaseSurveillanceReport;
@@ -0,0 +1,57 @@
1
+ /**
2
+ * The Case Surveillance report's gap review cards, in their order on the page.
3
+ * Each `id` is the ETL's card (case-surveillance), which gives its gap and the
4
+ * clients it applies to, and the indicators listing each.
5
+ */
6
+
7
+ export interface CaseSurveillanceCardDefinition {
8
+ id: string;
9
+ title: string;
10
+ description: string;
11
+ /** What the clients not in the gap have had done, for the progress tracker */
12
+ achieved: string;
13
+ }
14
+
15
+ export const CASE_SURVEILLANCE_CARDS: CaseSurveillanceCardDefinition[] = [
16
+ {
17
+ id: 'not-linked',
18
+ title: 'HIV +ve not linked',
19
+ description: 'HIV positive clients not linked to ART',
20
+ achieved: 'Linked to ART',
21
+ },
22
+ {
23
+ id: 'pbfw-not-on-prep',
24
+ title: 'High risk -ve PBFW not on PrEP',
25
+ description: 'High risk -ve PBFW not linked to PrEP',
26
+ achieved: 'On PrEP',
27
+ },
28
+ {
29
+ id: 'delayed-eac',
30
+ title: 'Delayed enhanced adherence counselling',
31
+ description: 'Virally unsuppressed clients without EAC within 2 weeks',
32
+ achieved: 'Had EAC',
33
+ },
34
+ {
35
+ id: 'missed-vl',
36
+ title: 'Missed opportunity in viral load testing',
37
+ description: 'Clients on ART who visited the facility and were eligible for VL but no VL was done',
38
+ achieved: 'VL done',
39
+ },
40
+ {
41
+ id: 'hei-without-pcr',
42
+ title: 'HEI (6–8 weeks) without DNA-PCR results',
43
+ description: 'HEI (6–8 weeks) without DNA PCR results',
44
+ achieved: 'DNA PCR done',
45
+ },
46
+ {
47
+ id: 'hei-without-outcome',
48
+ title: 'Undocumented final outcome',
49
+ description: '24 months old HEI without documented outcome',
50
+ achieved: 'Outcome documented',
51
+ },
52
+ ];
53
+
54
+ /** A gap at or above this share of its clients is flagged red */
55
+ export const GAP_ALERT_PERCENT = 25;
56
+
57
+ export const CASE_SURVEILLANCE_PATH = '/quality-improvement/case-surveillance';
@@ -0,0 +1,305 @@
1
+ @use '@carbon/layout';
2
+ @use '@carbon/type';
3
+ @use '@openmrs/esm-styleguide/src/vars' as *;
4
+
5
+ /* a card's status colour, and an ink dark enough for text on its tint */
6
+ $good: #24a148;
7
+ $good-ink: #0e6027;
8
+ $alert: #da1e28;
9
+ $alert-ink: #a2191f;
10
+ $figure: #0f62fe;
11
+
12
+ .sheet {
13
+ margin: layout.$spacing-05 0;
14
+ padding: layout.$spacing-06;
15
+ background-color: $ui-02;
16
+ border: 1px solid $ui-03;
17
+ }
18
+
19
+ /* the title, facility and period, as on the Quality Improvement Report */
20
+ .masthead {
21
+ display: flex;
22
+ flex-wrap: wrap;
23
+ align-items: center;
24
+ justify-content: space-between;
25
+ gap: layout.$spacing-03 layout.$spacing-07;
26
+ padding-bottom: layout.$spacing-04;
27
+ margin-bottom: layout.$spacing-04;
28
+ border-bottom: 1px solid $ui-03;
29
+ }
30
+
31
+ .title {
32
+ @include type.type-style('productive-heading-02');
33
+ color: $color-gray-100;
34
+ }
35
+
36
+ .subtitle {
37
+ @include type.type-style('label-01');
38
+ margin-top: layout.$spacing-01;
39
+ color: $text-02;
40
+ }
41
+
42
+ .meta {
43
+ @include type.type-style('label-01');
44
+ display: flex;
45
+ flex-wrap: wrap;
46
+ gap: layout.$spacing-03;
47
+ }
48
+
49
+ .metaItem {
50
+ display: inline-flex;
51
+ align-items: center;
52
+ gap: layout.$spacing-02;
53
+ padding: layout.$spacing-01 layout.$spacing-03;
54
+ font-weight: 600;
55
+ color: $color-gray-100;
56
+ background-color: $ui-01;
57
+ border-radius: 1rem;
58
+
59
+ svg {
60
+ fill: $text-02;
61
+ }
62
+ }
63
+
64
+ /* Realtime gap review / Progress tracker: the selected one underlined in the brand colour */
65
+ .tabs {
66
+ :global(.cds--tabs__nav-item) {
67
+ padding: 0 layout.$spacing-05;
68
+ border-bottom: 2px solid $ui-03;
69
+ }
70
+
71
+ :global(.cds--tabs__nav-item--selected) {
72
+ font-weight: 600;
73
+ border-bottom-color: var(--brand-01);
74
+ }
75
+
76
+ :global(.cds--tabs__nav-item:focus) {
77
+ outline: none;
78
+ }
79
+
80
+ :global(.cds--tabs__nav-item:focus-visible) {
81
+ outline: 2px solid var(--brand-01);
82
+ outline-offset: -2px;
83
+ }
84
+ }
85
+
86
+ .panel {
87
+ padding: layout.$spacing-05 0 0;
88
+ }
89
+
90
+ /* each card and progress row takes its status colour */
91
+ .good {
92
+ --status: #{$good};
93
+ --status-ink: #{$good-ink};
94
+ }
95
+
96
+ .alert {
97
+ --status: #{$alert};
98
+ --status-ink: #{$alert-ink};
99
+ }
100
+
101
+ /* the gap review: three cards to a row, fewer on narrower screens */
102
+ .cardGrid {
103
+ display: grid;
104
+ grid-template-columns: repeat(3, minmax(0, 1fr));
105
+ gap: layout.$spacing-04;
106
+ }
107
+
108
+ /* a card: its status as a pill, and the gap's share */
109
+ .card {
110
+ display: flex;
111
+ flex-direction: column;
112
+ gap: layout.$spacing-03;
113
+ padding: layout.$spacing-04 layout.$spacing-05;
114
+ background-color: $ui-02;
115
+ border: 1px solid $ui-03;
116
+ border-radius: 0.375rem;
117
+ transition: box-shadow 110ms;
118
+
119
+ &:hover {
120
+ box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
121
+ }
122
+ }
123
+
124
+ .cardHeader {
125
+ display: flex;
126
+ align-items: flex-start;
127
+ justify-content: space-between;
128
+ gap: layout.$spacing-03;
129
+ }
130
+
131
+ .cardTitle {
132
+ @include type.type-style('body-compact-01');
133
+ font-weight: 600;
134
+ color: $color-gray-100;
135
+ }
136
+
137
+ .status {
138
+ @include type.type-style('label-01');
139
+ flex: none;
140
+ padding: 0 layout.$spacing-03;
141
+ font-weight: 600;
142
+ line-height: 1.25rem;
143
+ white-space: nowrap;
144
+ color: var(--status-ink);
145
+ background-color: color-mix(in srgb, var(--status) 12%, #{$ui-02});
146
+ border-radius: 1rem;
147
+ }
148
+
149
+ .cardValue {
150
+ display: flex;
151
+ align-items: baseline;
152
+ justify-content: space-between;
153
+ gap: layout.$spacing-03;
154
+ }
155
+
156
+ .figures {
157
+ display: inline-flex;
158
+ align-items: baseline;
159
+ gap: layout.$spacing-02;
160
+ }
161
+
162
+ .figure {
163
+ @include type.type-style('heading-compact-02');
164
+ padding: 0;
165
+ font-variant-numeric: tabular-nums;
166
+ background: none;
167
+ border: 0;
168
+ }
169
+
170
+ .numerator {
171
+ color: $figure;
172
+ }
173
+
174
+ .denominator {
175
+ color: $text-02;
176
+ }
177
+
178
+ button.figure {
179
+ cursor: pointer;
180
+
181
+ &:hover {
182
+ text-decoration: underline;
183
+ }
184
+ }
185
+
186
+ .slash {
187
+ @include type.type-style('body-compact-01');
188
+ color: $ui-04;
189
+ }
190
+
191
+ .percent {
192
+ @include type.type-style('heading-compact-01');
193
+ font-variant-numeric: tabular-nums;
194
+ color: var(--status-ink);
195
+ }
196
+
197
+ .gapTrack {
198
+ height: 0.25rem;
199
+ overflow: hidden;
200
+ background-color: $ui-01;
201
+ border-radius: 0.125rem;
202
+ }
203
+
204
+ .gapBar {
205
+ height: 100%;
206
+ background-color: var(--status);
207
+ border-radius: 0.125rem;
208
+ }
209
+
210
+ .cardDescription {
211
+ @include type.type-style('helper-text-01');
212
+ color: $text-02;
213
+ }
214
+
215
+ /* the progress tracker: what has been done, out of the clients each card applies to */
216
+ .progressList {
217
+ border: 1px solid $ui-03;
218
+ border-radius: 0.375rem;
219
+ }
220
+
221
+ .progressRow {
222
+ display: grid;
223
+ grid-template-columns: minmax(12rem, 20rem) 1fr 3.5rem;
224
+ align-items: center;
225
+ gap: layout.$spacing-05;
226
+ padding: layout.$spacing-04 layout.$spacing-05;
227
+
228
+ & + & {
229
+ border-top: 1px solid $ui-03;
230
+ }
231
+ }
232
+
233
+ .progressLabel {
234
+ display: flex;
235
+ flex-direction: column;
236
+ gap: layout.$spacing-01;
237
+ }
238
+
239
+ .progressTitle {
240
+ @include type.type-style('body-compact-01');
241
+ font-weight: 600;
242
+ color: $color-gray-100;
243
+ }
244
+
245
+ .progressCount {
246
+ @include type.type-style('helper-text-01');
247
+ color: $text-02;
248
+
249
+ strong {
250
+ font-weight: 600;
251
+ color: $color-gray-100;
252
+ }
253
+ }
254
+
255
+ .track {
256
+ height: 0.25rem;
257
+ overflow: hidden;
258
+ background-color: $ui-01;
259
+ border-radius: 0.125rem;
260
+ }
261
+
262
+ .bar {
263
+ height: 100%;
264
+ background-color: var(--status);
265
+ border-radius: 0.125rem;
266
+ }
267
+
268
+ .progressPercent {
269
+ @include type.type-style('heading-compact-01');
270
+ text-align: right;
271
+ font-variant-numeric: tabular-nums;
272
+ color: var(--status-ink);
273
+ }
274
+
275
+ .note {
276
+ @include type.type-style('label-01');
277
+ padding-top: layout.$spacing-04;
278
+ margin-top: layout.$spacing-05;
279
+ color: $text-02;
280
+ border-top: 1px solid $ui-03;
281
+ }
282
+
283
+ @media (max-width: 66rem) {
284
+ .cardGrid {
285
+ grid-template-columns: repeat(2, minmax(0, 1fr));
286
+ }
287
+ }
288
+
289
+ @media (max-width: 42rem) {
290
+ .sheet {
291
+ padding: layout.$spacing-05 layout.$spacing-04;
292
+ }
293
+
294
+ .cardGrid {
295
+ grid-template-columns: minmax(0, 1fr);
296
+ }
297
+
298
+ .progressRow {
299
+ grid-template-columns: 1fr 3.5rem;
300
+ }
301
+
302
+ .progressLabel {
303
+ grid-column: 1 / -1;
304
+ }
305
+ }