/*
   BigNumberViewComponent y BigNumberRowViewComponent (DS-Web, «Big number»).
   Variantes: Primary y Error son tarjeta (Error cambia fondo y color de texto); Plain va sin fondo ni borde.
*/
.sph-big-number {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 0;
    padding: 4px 8px;
    text-align: center;
    color: var(--sph-color);
}

.sph-big-number-data {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    max-width: 100%;
}

.sph-big-number-value {
    font-size: 18px;
    font-weight: 500;
    line-height: 20px;
    overflow-wrap: anywhere;
}

.sph-big-number-label {
    font-size: 10px;
    line-height: 12px;
    overflow-wrap: anywhere;
}

.sph-big-number-plain .sph-big-number-label {
    color: var(--sph-color-gray-700);
}

/* Primary y Error: tarjeta; el icono es una máscara que toma el color del texto con currentColor. */
.sph-big-number-card {
    gap: 4px;
    padding: 16px 8px;
    background-color: var(--sph-color-white);
    border: 1px solid var(--sph-color-gray-200);
    border-radius: 8px;
}

.sph-big-number-card .sph-big-number-value {
    font-weight: 400;
}

.sph-big-number-error {
    color: var(--sph-color-error-700);
    background-color: var(--sph-color-error-50);
}

/* Fila: los BigNumber se reparten el ancho a partes iguales, separados por un divisor de 32px de alto. */
.sph-big-number-row {
    display: flex;
    align-items: center;
    width: 100%;
}

.sph-big-number-row > .sph-big-number {
    flex: 1 1 0;
}

.sph-big-number-row-divider {
    flex-shrink: 0;
    width: 1px;
    height: 32px;
    background-color: var(--sph-color-gray-200);
}
