|
|
@@ -0,0 +1,186 @@
|
|
|
+/* Shared dashboard-card composition, scoped to the seven overview summaries. */
|
|
|
+.overview-metrics:not(.trend-summary) > article {
|
|
|
+ display: grid !important;
|
|
|
+ grid-template-columns: minmax(0, 1fr) auto;
|
|
|
+ grid-template-rows: auto 1fr;
|
|
|
+ align-items: center;
|
|
|
+ column-gap: 12px;
|
|
|
+ row-gap: 0;
|
|
|
+ min-width: 0;
|
|
|
+ min-height: 124px;
|
|
|
+}
|
|
|
+
|
|
|
+.overview-metrics:not(.trend-summary) > article > span {
|
|
|
+ grid-column: 1;
|
|
|
+ grid-row: 1;
|
|
|
+ align-self: start;
|
|
|
+ min-width: 0;
|
|
|
+ line-height: 1.35;
|
|
|
+}
|
|
|
+
|
|
|
+.overview-metrics:not(.trend-summary) > article > small {
|
|
|
+ grid-column: 1;
|
|
|
+ grid-row: 2;
|
|
|
+ align-self: end;
|
|
|
+ min-width: 0;
|
|
|
+ margin: 0;
|
|
|
+ line-height: 1.4;
|
|
|
+ white-space: normal;
|
|
|
+ overflow-wrap: anywhere;
|
|
|
+}
|
|
|
+
|
|
|
+.overview-metrics:not(.trend-summary) > article > strong {
|
|
|
+ grid-column: 2;
|
|
|
+ grid-row: 1 / span 2;
|
|
|
+ justify-self: end;
|
|
|
+ align-self: center;
|
|
|
+ min-width: 0;
|
|
|
+ max-width: 100%;
|
|
|
+ margin: 0;
|
|
|
+ color: #21493c;
|
|
|
+ font-size: clamp(38px, 3vw, 54px) !important;
|
|
|
+ line-height: 1;
|
|
|
+ font-variant-numeric: tabular-nums;
|
|
|
+ text-align: right;
|
|
|
+ white-space: nowrap;
|
|
|
+}
|
|
|
+
|
|
|
+/* Amounts need more horizontal space than counts, especially with a currency sign. */
|
|
|
+app-operations-payroll .payroll-metrics.overview-metrics {
|
|
|
+ grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
|
|
|
+}
|
|
|
+
|
|
|
+app-operations-payroll .payroll-metrics.overview-metrics > article > strong {
|
|
|
+ font-size: clamp(30px, 2.35vw, 43px) !important;
|
|
|
+ white-space: normal;
|
|
|
+ overflow-wrap: anywhere;
|
|
|
+}
|
|
|
+
|
|
|
+/* The selected day is context; the four live figures are the metrics. */
|
|
|
+app-admin-dashboard .trend-summary.overview-metrics {
|
|
|
+ grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
|
+}
|
|
|
+
|
|
|
+app-admin-dashboard .trend-summary.overview-metrics .selected-date {
|
|
|
+ grid-column: 1 / -1;
|
|
|
+ min-height: 58px;
|
|
|
+ border-right: 0;
|
|
|
+ border-bottom: 1px solid #e3eae7;
|
|
|
+}
|
|
|
+
|
|
|
+app-admin-dashboard .trend-summary.overview-metrics .trend-stat {
|
|
|
+ display: grid;
|
|
|
+ grid-template-columns: minmax(0, 1fr) auto;
|
|
|
+ grid-template-rows: auto 1fr;
|
|
|
+ align-items: center;
|
|
|
+ min-height: 120px;
|
|
|
+ column-gap: 10px;
|
|
|
+}
|
|
|
+
|
|
|
+app-admin-dashboard .trend-summary.overview-metrics .trend-stat > span {
|
|
|
+ grid-column: 1;
|
|
|
+ grid-row: 1;
|
|
|
+ align-self: start;
|
|
|
+}
|
|
|
+
|
|
|
+app-admin-dashboard .trend-summary.overview-metrics .trend-stat > small {
|
|
|
+ grid-column: 1;
|
|
|
+ grid-row: 2;
|
|
|
+ align-self: end;
|
|
|
+ min-width: 0;
|
|
|
+ line-height: 1.3;
|
|
|
+}
|
|
|
+
|
|
|
+app-admin-dashboard .trend-summary.overview-metrics .trend-stat > strong {
|
|
|
+ grid-column: 2;
|
|
|
+ grid-row: 1 / span 2;
|
|
|
+ justify-self: end;
|
|
|
+ align-self: center;
|
|
|
+ min-width: 0;
|
|
|
+ margin: 0;
|
|
|
+ font-size: clamp(36px, 2.6vw, 50px) !important;
|
|
|
+ font-variant-numeric: tabular-nums;
|
|
|
+ text-align: right;
|
|
|
+ white-space: nowrap;
|
|
|
+}
|
|
|
+
|
|
|
+app-admin-dashboard .trend-summary.overview-metrics .trend-stat.pay > strong {
|
|
|
+ font-size: clamp(29px, 2.1vw, 42px) !important;
|
|
|
+}
|
|
|
+
|
|
|
+app-admin-dashboard .trend-summary.overview-metrics .trend-stat:is(.coaches, .pay) {
|
|
|
+ padding-right: 24px;
|
|
|
+}
|
|
|
+
|
|
|
+app-admin-dashboard .trend-summary.overview-metrics .trend-stat > lucide-icon {
|
|
|
+ top: 17px !important;
|
|
|
+ right: 8px !important;
|
|
|
+ transform: none !important;
|
|
|
+}
|
|
|
+
|
|
|
+app-admin-dashboard .welcome h2 {
|
|
|
+ overflow-wrap: anywhere;
|
|
|
+}
|
|
|
+
|
|
|
+@media (max-width: 1600px) {
|
|
|
+ app-operations-learning-reports .report-metrics.overview-metrics {
|
|
|
+ grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+@media (max-width: 1250px) {
|
|
|
+ app-admin-dashboard .trend-summary.overview-metrics {
|
|
|
+ grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
|
+ }
|
|
|
+
|
|
|
+ app-admin-dashboard .trend-summary.overview-metrics .trend-stat:nth-child(odd) {
|
|
|
+ border-right: 0;
|
|
|
+ }
|
|
|
+
|
|
|
+ app-admin-dashboard .trend-summary.overview-metrics .trend-stat:nth-child(-n+3) {
|
|
|
+ border-bottom: 1px solid #e3eae7;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+@media (max-width: 760px) {
|
|
|
+ app-operations-learning-reports .report-metrics.overview-metrics {
|
|
|
+ grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
|
+ }
|
|
|
+
|
|
|
+ .overview-metrics:not(.trend-summary) > article {
|
|
|
+ min-height: 108px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .overview-metrics:not(.trend-summary) > article > strong {
|
|
|
+ font-size: clamp(32px, 7vw, 44px) !important;
|
|
|
+ }
|
|
|
+
|
|
|
+ app-admin-dashboard .trend-summary.overview-metrics .trend-stat > strong {
|
|
|
+ font-size: clamp(30px, 6vw, 42px) !important;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+@media (max-width: 620px) {
|
|
|
+ app-operations-learning-reports .report-metrics.overview-metrics {
|
|
|
+ grid-template-columns: minmax(0, 1fr);
|
|
|
+ }
|
|
|
+
|
|
|
+ app-admin-dashboard .trend-summary.overview-metrics {
|
|
|
+ grid-template-columns: minmax(0, 1fr);
|
|
|
+ }
|
|
|
+
|
|
|
+ app-admin-dashboard .trend-summary.overview-metrics .trend-stat {
|
|
|
+ min-height: 100px;
|
|
|
+ border-right: 0;
|
|
|
+ border-bottom: 1px solid #e3eae7;
|
|
|
+ }
|
|
|
+
|
|
|
+ app-admin-dashboard .trend-summary.overview-metrics .trend-stat:last-child {
|
|
|
+ border-bottom: 0;
|
|
|
+ }
|
|
|
+
|
|
|
+ app-admin-dashboard .trend-summary.overview-metrics .trend-stat > strong,
|
|
|
+ app-admin-dashboard .trend-summary.overview-metrics .trend-stat.pay > strong {
|
|
|
+ font-size: clamp(38px, 10vw, 48px) !important;
|
|
|
+ }
|
|
|
+}
|