/* historico-mobile-v4.css — Filtros do Histórico no MOBILE (V4). Mesmos valores visuais do
   layout aprovado, em seletores próprios. Só existe em (max-width: 768px); desktop intacto. */

.hc-mobile-v4 { display: none; }

@media (max-width: 768px) {
    .hc-mobile-v4 {
        display: block;
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .hc-mobile-v4-strip {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        justify-content: flex-start;
        gap: 6px;
        padding: 0 24px;
        box-sizing: border-box;
    }
    .hc-mobile-v4-strip::-webkit-scrollbar { display: none; }

    .hc-mobile-v4-label {
        display: block;
        text-align: center;
        font-size: 0.85rem;
        font-weight: 600;
        color: var(--neutral-700, #4b5563);
        margin-top: 1rem;
        margin-bottom: 2rem;
    }

    .hc-mobile-v4-filter {
        background: transparent;
        border: none;
        padding: 6px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50px;
        flex-shrink: 0;
        position: relative;
        outline: none;
        transition: all 0.2s ease;
        font-family: inherit;
    }

    .hc-mobile-v4-dot {
        display: block;
        width: 24px;
        height: 24px;
        border-radius: 50%;
        background: rgb(var(--f-rgb, 220, 100, 19));
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        opacity: 0.45;
        transition: all 0.2s ease;
    }

    .hc-mobile-v4-filter.is-active .hc-mobile-v4-dot {
        border: none;
        box-shadow: 0 0 0 2px var(--surface-canvas, #FBFBFA), 0 0 0 4px rgb(var(--f-rgb, 220, 100, 19));
        opacity: 1;
        transform: scale(1.05);
    }

    .hc-mobile-v4-filter.is-all {
        padding: 0 10px;
        height: 36px;
        border: 1px solid rgba(var(--f-rgb, 220, 100, 19), 0.3);
        color: rgb(var(--f-rgb, 220, 100, 19));
        font-size: 0.95rem;
        font-weight: 600;
    }

    .hc-mobile-v4-filter.is-all.is-active {
        background: rgb(var(--f-rgb, 220, 100, 19));
        color: #fff;
        border-color: transparent;
        box-shadow: 0 4px 12px rgba(var(--f-rgb, 220, 100, 19), 0.3);
    }

    /* Cards ocultos pelo filtro (card.hidden) */
    .hc-historico-card[hidden] { display: none !important; }
}

@media (max-width: 430px) {
    .hc-mobile-v4-strip { gap: 4px; padding: 0 20px; }
    .hc-mobile-v4-dot { width: 22px; height: 22px; }
    .hc-mobile-v4-filter { padding: 6px; }
    .hc-mobile-v4-filter.is-all { padding: 0 8px; height: 34px; }
}

@media (max-width: 374px) {
    .hc-mobile-v4-strip { gap: 2px; padding: 0 16px; }
    .hc-mobile-v4-dot { width: 20px; height: 20px; }
    .hc-mobile-v4-filter { padding: 5px; }
    .hc-mobile-v4-filter.is-all { padding: 0 6px; height: 30px; font-size: 0.75rem; }
    .hc-mobile-v4-filter.is-active .hc-mobile-v4-dot {
        box-shadow: 0 0 0 1px var(--surface-canvas, #FBFBFA), 0 0 0 2.5px rgb(var(--f-rgb, 220, 100, 19));
    }
}
