/* GRID DAS BOLSAS */

.estoque-grid {

    display: grid;

    grid-template-columns: repeat(8, 1fr);
}

/* CARD */

.tipo-sanguineo {

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 8px;
}

/* TIPO */

.tipo-label {

    font-family: var(--fonte-destaque);

    font-size: 16px;

    color: var(--cor-primaria);
}

/* STATUS */

.status-box {

    font-size: 13px;

    color: #64748b;

    font-weight: 600;

    text-align: center;
}

/* SVG */

.gota-wrapper {

    display: flex;

    align-items: center;

    justify-content: center;
}

.bolsa-svg {

    width: 58px;

    height: auto;

    display: block;

    transition: .3s ease;
}

.tipo-sanguineo:hover .bolsa-svg,
.hemoam-dashboard-item:hover .bolsa-svg {

    transform: translateY(-4px);
}

/* =========================================
   ONDA = NÍVEL DO SANGUE
========================================= */

.onda {

    fill: rgba(213, 0, 0, .92);

    animation: ondaHorizontal 4s ease-in-out infinite;

    transition: .6s ease;

    transform-box: fill-box;

    transform-origin: center;
}

.tipo-sanguineo.otimo .onda,
.hemoam-dashboard-item.otimo .onda {
    transform: translateY(-15px);
}

.tipo-sanguineo.bom .onda,
.hemoam-dashboard-item.bom .onda {
    transform: translateY(15px);
}

.tipo-sanguineo.alerta .onda,
.hemoam-dashboard-item.alerta .onda {
    transform: translateY(45px);
}

.tipo-sanguineo.critico .onda,
.hemoam-dashboard-item.critico .onda {
    transform: translateY(70px);
}

/* =========================================
   ANIMAÇÕES
========================================= */

@keyframes ondaHorizontal {

    0% {
        d: path("M0,40 C40,20 80,60 120,40 L120,180 L0,180 Z");
    }

    50% {
        d: path("M0,45 C40,65 80,25 120,45 L120,180 L0,180 Z");
    }

    100% {
        d: path("M0,40 C40,20 80,60 120,40 L120,180 L0,180 Z");
    }
}