
/* NOSSA CASA - INICIO COMPACTO V3 */

/*
 * Os quatro atalhos repetem a navegação principal.
 * Mantemos o HTML original por compatibilidade,
 * mas ele deixa de ocupar espaço visual.
 */
[data-page-view="inicio"] > .quick-grid {
    display: none !important;
}

/*
 * O primeiro home-section é o antigo bloco:
 * Agora / Nossa Casa / Sistema conectado.
 */
[data-page-view="inicio"] > .home-section:first-of-type {
    display: none !important;
}

.nossacasa-health-v3 {
    position: relative;
    width: 29px;
    height: 29px;
    min-width: 29px;
    padding: 0;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    cursor: help;
    border: 0;
    border-radius: 999px;
    line-height: 1;
    font-size: 13px;
    font-weight: 1000;
    transition:
        background .15s ease,
        color .15s ease,
        transform .15s ease;
}

.nossacasa-health-v3:hover {
    transform: translateY(-1px);
}

.nossacasa-health-v3.checking {
    color: #777075;
    background: #eee9ec;
}

.nossacasa-health-v3.ok {
    color: #397653;
    background: #e7f5ec;
}

.nossacasa-health-v3.error {
    color: #a94355;
    background: #fdecef;
}

.nossacasa-health-v3::after {
    content: attr(data-tooltip);
    position: absolute;
    z-index: 99999;
    top: calc(100% + 9px);
    right: -41px;
    width: max-content;
    max-width: min(320px, 78vw);
    padding: 8px 10px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-3px);
    color: #fff;
    background: #433c40;
    border-radius: 8px;
    box-shadow:
        0 8px 24px
        rgba(35, 28, 31, .18);
    font-size: 9px;
    font-weight: 700;
    line-height: 1.4;
    text-align: left;
    white-space: normal;
    transition:
        opacity .12s ease,
        transform .12s ease;
}

.nossacasa-health-v3::before {
    content: "";
    position: absolute;
    z-index: 100000;
    top: calc(100% + 4px);
    right: 9px;
    width: 9px;
    height: 9px;
    opacity: 0;
    pointer-events: none;
    transform: rotate(45deg);
    background: #433c40;
    transition: opacity .12s ease;
}

.nossacasa-health-v3:hover::after,
.nossacasa-health-v3:hover::before,
.nossacasa-health-v3:focus-visible::after,
.nossacasa-health-v3:focus-visible::before {
    opacity: 1;
}

.nossacasa-health-v3:hover::after,
.nossacasa-health-v3:focus-visible::after {
    transform: translateY(0);
}

/*
 * Agora que os atalhos/status antigo saíram,
 * reduzimos um pouco o respiro antes dos próximos blocos.
 */
[data-page-view="inicio"] .welcome {
    margin-bottom: 14px;
}

@media (max-width: 620px) {
    .nossacasa-health-v3 {
        width: 27px;
        height: 27px;
        min-width: 27px;
        font-size: 12px;
    }

    .nossacasa-health-v3::after {
        right: -44px;
    }

    [data-page-view="inicio"] .welcome {
        margin-bottom: 10px;
    }
}
