/* Web mobile — visual alinhado ao app Android; cores do perfil via --cor-azul no _Layout */
:root {
    --app-navy: var(--cor-azul, #0066CC);
    --app-navy-dark: var(--cor-azul, #0066CC);
    --app-bg: #F3F4F6;
    --app-success: #10B981;
    --app-card-radius: 16px;
}

@media (max-width: 767.98px) {
    body.app-mobile-shell {
        background: var(--app-bg);
        padding-bottom: 72px;
    }

    body.app-mobile-shell .navbar,
    body.app-mobile-shell header nav.bg-primary {
        background-color: var(--app-navy) !important;
    }

    body.app-mobile-shell .container-fluid.py-3,
    body.app-mobile-shell main#conteudo-principal {
        padding-left: 12px;
        padding-right: 12px;
    }

    body.app-mobile-shell .page-header {
        background: transparent;
        border: none;
        padding: 8px 0 12px;
        margin-bottom: 0;
    }

    body.app-mobile-shell .page-header h1 {
        font-size: 1.35rem;
        font-weight: 700;
        color: #111827;
    }

    body.app-mobile-shell .page-header p {
        font-size: 0.85rem;
        color: #6B7280;
    }

    body.app-mobile-shell .card,
    body.app-mobile-shell .dashboard-card {
        border: none;
        border-radius: var(--app-card-radius);
        box-shadow: 0 2px 12px rgba(15, 36, 56, 0.08);
    }

    body.app-mobile-shell .dashboard-card .card-value {
        font-size: 1.35rem;
        font-weight: 700;
        color: #111827;
    }

    body.app-mobile-shell .dashboard-card .card-title {
        font-size: 0.68rem;
        font-weight: 700;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        color: #6B7280;
    }

    /* Bottom navigation */
    .app-mobile-bottom-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1030;
        display: flex;
        align-items: stretch;
        justify-content: space-around;
        background: var(--app-navy);
        padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.15);
    }

    .app-mobile-bottom-nav a {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        color: rgba(255, 255, 255, 0.65);
        text-decoration: none;
        font-size: 0.65rem;
        font-weight: 600;
        padding: 4px 2px;
        min-height: 52px;
    }

    .app-mobile-bottom-nav a.active {
        color: #fff;
    }

    .app-mobile-bottom-nav a i {
        font-size: 1.15rem;
    }

    .app-mobile-bottom-nav a.app-nav-fab {
        flex: 0 0 auto;
        margin-top: -18px;
    }

    .app-mobile-bottom-nav a.app-nav-fab span.fab-circle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 52px;
        height: 52px;
        border-radius: 50%;
        background: #fff;
        color: var(--app-navy);
        font-size: 1.6rem;
        font-weight: 700;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    .app-mobile-quick-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        margin: 16px 0;
    }

    .app-mobile-quick-tile {
        background: #fff;
        border-radius: 14px;
        padding: 14px 8px;
        text-align: center;
        text-decoration: none;
        color: #111827;
        box-shadow: 0 2px 10px rgba(15, 36, 56, 0.07);
        font-size: 0.75rem;
        font-weight: 700;
    }

    .app-mobile-quick-tile i {
        display: block;
        font-size: 1.4rem;
        margin-bottom: 6px;
        color: var(--app-navy);
    }
}

@media (min-width: 768px) {
    .app-mobile-bottom-nav,
    .app-mobile-only {
        display: none !important;
    }
}
