Files
WebApp/src/app/indicadores/tab-indicadores.scss
T
Angel Capetillo Zavala d38c795c8a Hide the CaMa diagnosis-to-treatment card until the indicator is defined
The card read "Indicador no disponible" and the route listed a step with no
measure. Both are removed from the CaMa summary, and the opportunity grid sizes
its columns to the cards it has so the remaining ones fill the row.
2026-12-03 11:00:55 -06:00

308 lines
4.5 KiB
SCSS

:host {
display: block;
padding-top: var(--space-4);
}
.filters {
align-items: center;
display: flex;
flex-wrap: wrap;
gap: var(--space-4);
margin-bottom: var(--space-4);
}
.field {
display: flex;
flex-direction: column;
gap: var(--space-1);
}
.label {
color: var(--color-text-secondary);
font-size: 12px;
}
h2 {
font-size: 1.15rem;
font-weight: 500;
margin: var(--space-6) 0 var(--space-3);
}
.kpis {
display: grid;
gap: var(--space-3);
grid-template-columns: 1fr;
}
@media (min-width: 600px) {
.kpis {
grid-template-columns: repeat(2, 1fr);
}
}
@media (min-width: 1000px) {
.kpis {
grid-template-columns: repeat(var(--kpi-cols-md, 3), 1fr);
}
}
@media (min-width: 1350px) {
.kpis {
grid-template-columns: repeat(var(--kpi-cols-lg, 5), 1fr);
}
}
.kpi-title {
font-weight: 500;
min-height: 2.6em;
}
.kpi-value {
font-size: 2rem;
font-weight: 500;
margin: var(--space-2) 0;
line-height: 1.15;
}
.kpi-qualifier {
display: block;
font-size: 14px;
font-weight: 400;
color: var(--color-text-secondary);
}
.kpi-detail {
font-size: 13px;
}
.route {
margin-top: var(--space-4);
}
.route mat-card-header {
align-items: center;
display: flex;
flex-wrap: wrap;
gap: var(--space-3);
justify-content: space-between;
}
.clinical {
display: grid;
gap: var(--space-4);
grid-template-columns: 1fr;
}
@media (min-width: 1304px) {
.clinical {
grid-template-columns: repeat(2, 1fr);
}
}
.figure-title {
color: var(--color-text-secondary);
font-size: 14px;
font-weight: 500;
margin: var(--space-3) 0 0;
}
/* The old app's page: white sections with a title, cards inside. */
.card.opportunity,
.card.clinical-page {
background: var(--color-surface);
border: 1px solid var(--color-border);
border-radius: 8px;
margin-bottom: 24px;
padding: 20px;
}
.section-head {
align-items: baseline;
display: flex;
justify-content: space-between;
.period {
color: var(--color-text-secondary);
font-size: 12px;
}
}
.card h2 {
font-size: 20px;
font-weight: 500;
margin: 0 0 20px;
}
h3.kpi-title {
font-size: 16px;
font-weight: 500;
margin: 0;
min-height: 2.6em;
}
.kpi-detail {
color: var(--color-text-secondary);
}
h3.route-title {
font-size: 16px;
font-weight: 700;
margin: 24px 0 8px;
}
.figure-card {
margin-top: 24px;
}
h2.figure-card-title {
font-size: 18px;
font-weight: 500;
margin: 0 0 12px;
}
.figure-row {
display: grid;
gap: 24px;
grid-template-columns: 1fr;
}
@media (min-width: 1100px) {
.figure-row {
grid-template-columns: 1fr 1fr;
}
}
.figure h3 {
font-size: 16px;
font-weight: 700;
margin: 0 0 8px;
}
.state {
color: var(--color-text-secondary);
font-size: 14px;
}
.filters {
background: var(--color-surface);
border: 1px solid var(--color-border);
border-radius: 8px;
padding: 16px;
}
h2.filters-title {
flex-basis: 100%;
font-size: 16px;
font-weight: 500;
margin: 0;
}
h3.boxes-title {
font-size: 18px;
font-weight: 500;
margin: 24px 0 12px;
}
.box-grid {
display: grid;
gap: 16px;
grid-template-columns: 1fr;
}
@media (min-width: 1000px) {
.box-grid {
grid-template-columns: 1fr 1fr;
}
}
h2.box-title {
font-size: 18px;
font-weight: 500;
margin: 0 0 4px;
}
h2.box-subtitle {
font-size: 16px;
font-weight: 500;
margin: 8px 0 0;
}
.empty-figure {
align-items: center;
border: 1px solid var(--color-border);
border-radius: 8px;
color: var(--color-text-secondary);
display: flex;
justify-content: center;
min-height: 120px;
}
.kpi-value.pending {
font-size: 14px;
font-weight: 400;
}
.figure h3.light {
font-weight: 500;
}
.kpi.closing {
margin-top: 24px;
}
.summary {
margin-bottom: 24px;
p {
font-size: 20px;
line-height: 2.1;
margin: 0;
}
p.state {
font-size: 14px;
line-height: 1.5;
margin-top: 12px;
}
mark {
background: #f1f5df;
border: 1px solid #d8e3a8;
border-radius: 4px;
font-weight: 700;
padding: 1px 8px;
}
}
.grid-figures {
display: grid;
gap: 24px;
grid-template-columns: 1fr;
}
@media (min-width: 1100px) {
.grid-figures {
grid-template-columns: 1fr 1fr;
}
}
@media (min-width: 1000px) {
.box-grid.standalone {
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
}
.load-error {
align-items: center;
border: 1px solid var(--color-border);
border-radius: 8px;
display: flex;
gap: 16px;
margin-bottom: 16px;
padding: 12px 16px;
p {
margin: 0;
}
}