.mobile-appbar {
    display: none;
}

.quote-field {
    min-width: 0;
}

.quote-field label {
    display: block;
    margin-bottom: 5px;
    color: #68748a;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
}

.quote-field .form-control {
    width: 100%;
}

.quote-product {
    min-width: 0;
}

.quote-product strong,
.quote-product small {
    display: block;
}

@media (max-width: 760px) {
    .app-body {
        padding-bottom: 92px;
    }

    .mobile-appbar {
        position: fixed;
        z-index: 1000 !important;
        left: 12px;
        right: 12px;
        bottom: calc(10px + env(safe-area-inset-bottom));
        height: 68px;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        align-items: center;
        padding: 7px 8px;
        border: 1px solid rgba(255, 255, 255, .62);
        border-radius: 24px;
        background: rgba(255, 255, 255, .70);
        box-shadow: 0 18px 50px rgba(31, 41, 55, .18), inset 0 1px 0 rgba(255, 255, 255, .75);
        backdrop-filter: blur(26px) saturate(180%);
        -webkit-backdrop-filter: blur(26px) saturate(180%);
    }

    .mobile-appbar-item {
        min-width: 0;
        min-height: 54px;
        border: 0;
        background: transparent;
        color: #68748a;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        border-radius: 18px;
        text-decoration: none;
        font-size: 11px !important;
        line-height: 1.2 !important;
        font-weight: 700;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-appbar-item > .mobile-appbar-icon {
        font-size: 18px !important;
        line-height: 20px !important;
        font-weight: 700;
    }

    .mobile-appbar-item > span:last-child {
        font-size: 11px !important;
        line-height: 1.2 !important;
        font-weight: 700;
    }

    .mobile-appbar-item.is-active {
        color: #3559e8;
        background: rgba(53, 89, 232, .09);
    }

    .mobile-appbar-main {
        width: 54px;
        height: 54px;
        justify-self: center;
        display: grid;
        place-items: center;
        border-radius: 19px;
        color: #fff;
        background: linear-gradient(145deg, #536df5, #3154dd);
        box-shadow: 0 10px 24px rgba(53, 89, 232, .28), inset 0 1px 0 rgba(255, 255, 255, .35);
        text-decoration: none;
        font-size: 32px !important;
        font-weight: 400;
        line-height: 1 !important;
        transform: translateY(-12px);
    }

    .mobile-appbar-main > span {
        font-size: 30px !important;
        line-height: 1 !important;
        font-weight: 400 !important;
    }

    .mobile-appbar-main:active {
        transform: translateY(-10px) scale(.97);
    }

    .mobile-appbar-more {
        font-family: inherit;
    }

    /* Keep the complete navigation drawer above the quick bar. */
    .app-body .sidebar {
        z-index: 1100 !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
    }

    .app-body .sidebar-nav {
        min-height: 0 !important;
        overflow-y: auto !important;
    }

    .app-body .sidebar-footer {
        position: relative;
        z-index: 1;
        flex: 0 0 auto;
        background: rgba(255, 255, 255, .96);
    }

    .app-body.sidebar-open .mobile-appbar {
        display: none !important;
    }

    .app-body.sidebar-open .topbar {
        visibility: hidden;
        pointer-events: none;
    }

    .quote-item {
        grid-template-columns: minmax(0, 1fr) minmax(105px, .6fr) minmax(105px, .6fr) !important;
        align-items: end !important;
    }

    .quote-item > .quote-product {
        grid-column: 1 / -1 !important;
    }

    .quote-item > .quote-field {
        min-width: 0;
        width: 100%;
    }

    .quote-item > .remove-item {
        grid-column: 1 / -1 !important;
        width: 100%;
        min-width: 0;
    }

    @media (max-width: 380px) {
        .mobile-appbar {
            left: 8px;
            right: 8px;
            height: 64px;
            border-radius: 22px;
        }

        .mobile-appbar-item {
            min-height: 50px;
            font-size: 10px !important;
        }

        .mobile-appbar-item > span:last-child {
            font-size: 10px !important;
        }

        .mobile-appbar-main {
            width: 50px;
            height: 50px;
        }
    }

    @media (max-width: 520px) {
        .quote-item {
            grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
        }

        .quote-item > .quote-product {
            grid-column: 1 / -1 !important;
        }

        .quote-item > .remove-item {
            grid-column: 1 / -1 !important;
        }
    }
}
