/**
 * Meckannur ERP — mobile-only bottom navigation (authenticated).
 */
@media (min-width: 992px) {
    .pwa-bottom-nav,
    .pwa-bottom-nav__spacer {
        display: none !important;
    }
}

@media (max-width: 991.98px) {
    body.pwa-has-bottom-nav .page-wrapper {
        padding-bottom: calc(4.25rem + env(safe-area-inset-bottom, 0px));
    }

    body.pwa-has-bottom-nav .page-footer {
        margin-bottom: calc(3.75rem + env(safe-area-inset-bottom, 0px));
    }

    body.pwa-has-bottom-nav .back-to-top {
        bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
    }

    .pwa-bottom-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1040;
        display: flex;
        align-items: stretch;
        justify-content: space-around;
        gap: 0.15rem;
        padding: 0.35rem 0.5rem calc(0.35rem + env(safe-area-inset-bottom, 0px));
        background: #fff;
        border-top: 1px solid #e4e4e4;
        box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.08);
        max-width: 100vw;
        overflow-x: auto;
    }

    .pwa-bottom-nav__item {
        flex: 1 1 0;
        min-width: 3.25rem;
        max-width: 5.5rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.15rem;
        padding: 0.35rem 0.25rem;
        min-height: 3.25rem;
        color: #64748b;
        text-decoration: none;
        font-size: 0.6875rem;
        font-weight: 500;
        line-height: 1.15;
        text-align: center;
        border: none;
        background: transparent;
        border-radius: 0.5rem;
    }

    .pwa-bottom-nav__item i {
        font-size: 1.35rem;
        line-height: 1;
    }

    .pwa-bottom-nav__item.is-active,
    .pwa-bottom-nav__item:active {
        color: #008cff;
        background: rgba(0, 140, 255, 0.08);
    }

    .pwa-bottom-nav__item:focus-visible {
        outline: 2px solid #008cff;
        outline-offset: 2px;
    }

    body.pwa-has-bottom-nav .wrapper.toggled .sidebar-wrapper {
        z-index: 1050;
    }

    body.pwa-has-bottom-nav .wrapper.toggled .overlay.toggle-icon {
        z-index: 1045;
        cursor: pointer;
    }
}

.pwa-install-card {
    border-radius: 0.65rem;
}

.pwa-install-steps {
    font-size: 0.875rem;
    text-align: left;
    margin: 0;
    padding-left: 1.15rem;
}

.pwa-install-steps li {
    margin-bottom: 0.35rem;
}