@media (max-width: 767px) {
    :root {
        --mobile-shell-ink: #10212b;
        --mobile-shell-muted: #61717d;
        --mobile-shell-primary: #115e9d;
        --mobile-shell-surface: rgba(255, 255, 255, 0.96);
        --mobile-shell-line: rgba(16, 33, 43, 0.12);
        --mobile-shell-shadow: 0 -10px 28px rgba(16, 33, 43, 0.16);
        --mobile-bottom-nav-height: 70px;
    }

    html {
        -webkit-tap-highlight-color: transparent;
        scroll-behavior: smooth;
    }

    body.retail-shell {
        --mobile-shell-primary: var(--industry-accent, #115e9d);
        padding-bottom: calc(var(--mobile-bottom-nav-height) + env(safe-area-inset-bottom, 0px) + 14px);
        overscroll-behavior-y: contain;
        touch-action: pan-y;
        background: var(--industry-soft, #f5f8fb);
    }

    body.retail-shell .wrapper > .container {
        width: 100%;
        padding-left: 12px;
        padding-right: 12px;
    }

    body.retail-shell .topbar {
        position: sticky;
        top: 0;
        z-index: 1032;
    }

    body.retail-shell .navbar-modern {
        top: 0;
        z-index: 1031;
    }

    body.retail-shell .navbar-header {
        min-height: 56px;
    }

    body.retail-shell .navbar-brand {
        min-height: 56px;
        display: inline-flex;
        align-items: center;
        max-width: calc(100vw - 86px);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    body.retail-shell .navbar-toggle {
        min-width: 46px;
        min-height: 46px;
        margin-top: 5px;
        margin-bottom: 5px;
        border-radius: 8px;
    }

    body.retail-shell .navbar-collapse {
        max-height: calc(100vh - 112px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    body.retail-shell .navbar .navbar-nav > li > a,
    body.retail-shell .navbar .dropdown-menu li a,
    body.retail-shell .btn,
    body.retail-shell button,
    body.retail-shell input[type="submit"],
    body.retail-shell input[type="button"] {
        min-height: 44px;
    }

    body.retail-shell .navbar .navbar-nav > li > a,
    body.retail-shell .navbar .dropdown-menu li a {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 12px 14px !important;
        border-radius: 8px;
    }

    body.retail-shell .navbar .menu-icon {
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
    }

    body.retail-shell .navbar .menu-icon img,
    body.retail-shell .navbar .menu-icon .glyphicon {
        margin: 0;
        flex: 0 0 auto;
    }

    body.retail-shell .fixed-table-toolbar .btn,
    body.retail-shell .bootstrap-select > .dropdown-toggle,
    body.retail-shell .form-control {
        min-height: 44px;
        font-size: 16px;
    }

    body.retail-shell .table-responsive,
    body.retail-shell .fixed-table-container {
        -webkit-overflow-scrolling: touch;
    }

    body.retail-shell .modal-footer .btn,
    body.retail-shell .form-actions .btn,
    body.retail-shell .manage-page-header .btn,
    body.retail-shell .items-page-header .btn {
        min-width: 44px;
        min-height: 44px;
        padding-left: 14px;
        padding-right: 14px;
    }

    .mobile-bottom-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1040;
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(0, 1fr);
        min-height: calc(var(--mobile-bottom-nav-height) + env(safe-area-inset-bottom, 0px));
        padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
        border-top: 1px solid var(--mobile-shell-line);
        background: var(--mobile-shell-surface);
        box-shadow: var(--mobile-shell-shadow);
        backdrop-filter: blur(14px);
    }

    .mobile-bottom-nav__item {
        display: flex;
        min-width: 0;
        min-height: 58px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        border-radius: 8px;
        color: var(--mobile-shell-muted);
        font-size: 11px;
        font-weight: 700;
        line-height: 1.1;
        text-decoration: none;
    }

    .mobile-bottom-nav__item:hover,
    .mobile-bottom-nav__item:focus {
        color: var(--mobile-shell-primary);
        text-decoration: none;
        background: rgba(17, 94, 157, 0.08);
        outline: none;
    }

    .mobile-bottom-nav__item.is-active {
        color: var(--mobile-shell-primary);
        background: rgba(17, 94, 157, 0.12);
    }

    .mobile-bottom-nav__item .glyphicon {
        font-size: 20px;
    }

    .mobile-bottom-nav__item img {
        width: 22px;
        height: 22px;
        object-fit: contain;
    }

    .mobile-bottom-nav__label {
        display: block;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-refresh-indicator {
        position: fixed;
        top: 10px;
        left: 50%;
        z-index: 5200;
        display: inline-flex;
        align-items: center;
        min-height: 34px;
        padding: 0 14px;
        border-radius: 999px;
        background: #ffffff;
        color: var(--mobile-shell-ink);
        font-size: 12px;
        font-weight: 700;
        box-shadow: 0 10px 24px rgba(16, 33, 43, 0.18);
        transform: translate(-50%, -56px);
        transition: transform 0.18s ease;
        pointer-events: none;
    }

    .mobile-refresh-indicator.is-visible {
        transform: translate(-50%, 0);
    }
}

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