/* MSHUB mobile app finetune. Loaded last as a focused stabilization layer. */
:root {
    --mshub-app-bg: #f6f8fb;
    --mshub-app-surface: #ffffff;
    --mshub-app-ink: #0f172a;
    --mshub-app-muted: #64748b;
    --mshub-app-line: rgba(15, 23, 42, 0.09);
    --mshub-app-blue: #2563eb;
    --mshub-app-cyan: #0ea5e9;
    --mshub-app-green: #14a37f;
    --mshub-app-radius: 18px;
    --mshub-app-shadow: 0 14px 36px rgba(15, 23, 42, 0.10);
    --mshub-app-bottom-nav-height: 70px;
    --mshub-app-bottom-nav-offset: clamp(6px, calc(env(safe-area-inset-bottom, 0px) * 0.35), 14px);
    --mshub-app-bottom-nav-top: calc(var(--mshub-app-bottom-nav-height) + var(--mshub-app-bottom-nav-offset));
    --mshub-app-bottom-space: calc(var(--mshub-app-bottom-nav-top) + 14px);
}

@media (max-width: 991.98px), (hover: none) and (pointer: coarse) {
    html body #warehouseSidebar.warehouse-sidebar .sidebar-header,
    html body #warehouseSidebar.warehouse-sidebar .mshub-warehouse-topbar {
        background: #ffffff !important;
        background-image: none !important;
        color: #0f172a !important;
        opacity: 1 !important;
        filter: none !important;
        -webkit-filter: none !important;
        text-shadow: none !important;
        border: 1px solid rgba(15, 23, 42, 0.12) !important;
        box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08) !important;
    }

    html body #warehouseSidebar.warehouse-sidebar .sidebar-title,
    html body #warehouseSidebar.warehouse-sidebar .sidebar-title h5,
    html body #warehouseSidebar.warehouse-sidebar #closeWarehouseSidebar,
    html body #warehouseSidebar.warehouse-sidebar #closeWarehouseSidebar i {
        color: #0f172a !important;
        opacity: 1 !important;
        filter: none !important;
        -webkit-filter: none !important;
        text-shadow: none !important;
        visibility: visible !important;
    }

    html body #warehouseSidebar.warehouse-sidebar .sidebar-title h5 {
        font-weight: 800 !important;
    }

    html body #warehouseSidebar.warehouse-sidebar .sidebar-title > i {
        color: #2563eb !important;
        background: rgba(37, 99, 235, 0.10) !important;
        opacity: 1 !important;
    }

    html body #warehouseSidebar.warehouse-sidebar #warehouseTotalItems {
        background: #2563eb !important;
        color: #ffffff !important;
        opacity: 1 !important;
        filter: none !important;
        text-shadow: none !important;
    }

    html body #warehouseSidebar.warehouse-sidebar #closeWarehouseSidebar {
        background: #ffffff !important;
        border: 1px solid rgba(15, 23, 42, 0.14) !important;
        box-shadow: 0 8px 18px rgba(15, 23, 42, 0.10) !important;
    }

    html body #addEquipmentModal.warehouse-pickup-modal .professional-modal-header,
    html body #addToWarehouseModal .professional-modal-header,
    html body #editWarehouseModal .professional-modal-header,
    html body #transferToWarehouseModal .professional-modal-header,
    html body #transferAllToWarehouseModal .professional-modal-header {
        background: #ffffff !important;
        background-image: none !important;
        color: #0f172a !important;
        opacity: 1 !important;
        filter: none !important;
        -webkit-filter: none !important;
        text-shadow: none !important;
        border-bottom: 1px solid rgba(15, 23, 42, 0.12) !important;
        box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08) !important;
        isolation: isolate !important;
    }

    html body #addEquipmentModal.warehouse-pickup-modal .professional-modal-header::before,
    html body #addToWarehouseModal .professional-modal-header::before,
    html body #editWarehouseModal .professional-modal-header::before,
    html body #transferToWarehouseModal .professional-modal-header::before,
    html body #transferAllToWarehouseModal .professional-modal-header::before {
        display: none !important;
        content: none !important;
    }

    html body #addEquipmentModal.warehouse-pickup-modal .modal-title,
    html body #addEquipmentModal.warehouse-pickup-modal .modal-subtitle,
    html body #addEquipmentModal.warehouse-pickup-modal .btn-close-premium,
    html body #addEquipmentModal.warehouse-pickup-modal .btn-close-premium i,
    html body #addToWarehouseModal .modal-title,
    html body #addToWarehouseModal .modal-subtitle,
    html body #addToWarehouseModal .btn-close-premium,
    html body #addToWarehouseModal .btn-close-premium i,
    html body #editWarehouseModal .modal-title,
    html body #editWarehouseModal .modal-subtitle,
    html body #editWarehouseModal .btn-close-premium,
    html body #editWarehouseModal .btn-close-premium i,
    html body #transferToWarehouseModal .modal-title,
    html body #transferToWarehouseModal .modal-subtitle,
    html body #transferToWarehouseModal .btn-close-premium,
    html body #transferToWarehouseModal .btn-close-premium i,
    html body #transferAllToWarehouseModal .modal-title,
    html body #transferAllToWarehouseModal .modal-subtitle,
    html body #transferAllToWarehouseModal .btn-close-premium,
    html body #transferAllToWarehouseModal .btn-close-premium i {
        color: #0f172a !important;
        opacity: 1 !important;
        filter: none !important;
        -webkit-filter: none !important;
        text-shadow: none !important;
        visibility: visible !important;
    }

    html body #addEquipmentModal.warehouse-pickup-modal .modal-subtitle,
    html body #addToWarehouseModal .modal-subtitle,
    html body #editWarehouseModal .modal-subtitle,
    html body #transferToWarehouseModal .modal-subtitle,
    html body #transferAllToWarehouseModal .modal-subtitle {
        color: #64748b !important;
    }

    html body #addEquipmentModal.warehouse-pickup-modal .modal-icon,
    html body #addToWarehouseModal .modal-icon,
    html body #editWarehouseModal .modal-icon,
    html body #transferToWarehouseModal .modal-icon,
    html body #transferAllToWarehouseModal .modal-icon {
        background: rgba(37, 99, 235, 0.10) !important;
        background-image: none !important;
        color: #2563eb !important;
        box-shadow: none !important;
    }

    html body #addEquipmentModal.warehouse-pickup-modal .modal-icon i,
    html body #addToWarehouseModal .modal-icon i,
    html body #editWarehouseModal .modal-icon i,
    html body #transferToWarehouseModal .modal-icon i,
    html body #transferAllToWarehouseModal .modal-icon i {
        color: #2563eb !important;
    }

    html body #addEquipmentModal.warehouse-pickup-modal .btn-close-premium,
    html body #addToWarehouseModal .btn-close-premium,
    html body #editWarehouseModal .btn-close-premium,
    html body #transferToWarehouseModal .btn-close-premium,
    html body #transferAllToWarehouseModal .btn-close-premium {
        background: #ffffff !important;
        border: 1px solid rgba(15, 23, 42, 0.14) !important;
        box-shadow: 0 8px 18px rgba(15, 23, 42, 0.10) !important;
    }
}

@media (max-width: 991.98px) {
    body:has(.chat-container) {
        padding-bottom: 0 !important;
        overflow: hidden !important;
    }

    body:has(.chat-container) .modern-navbar {
        display: none !important;
    }

    body:has(.chat-container) .main-content,
    body:has(.chat-container) .container-fluid {
        height: 100dvh !important;
        padding: 0 !important;
        overflow: hidden !important;
    }

    body:has(.chat-container) .chat-container {
        height: 100dvh !important;
        min-height: 100dvh !important;
        border-radius: 0 !important;
        background: #f6f8fb !important;
    }

    body:has(.chat-container) .chat-command-header {
        display: none !important;
    }

    body:has(.chat-container) .chat-wrapper {
        height: 100dvh !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    body:has(.chat-container) .chat-conversation-header {
        min-height: calc(62px + env(safe-area-inset-top, 0px)) !important;
        padding-top: max(10px, env(safe-area-inset-top, 0px)) !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
        gap: 8px !important;
        background: rgba(255, 255, 255, 0.96) !important;
        backdrop-filter: blur(18px) saturate(170%) !important;
        -webkit-backdrop-filter: blur(18px) saturate(170%) !important;
    }

    body:has(.chat-container) .chat-user-info {
        min-width: 0 !important;
    }

    body:has(.chat-container) .chat-user-info h3,
    body:has(.chat-container) .chat-user-info p {
        max-width: 44vw !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    body:has(.chat-container) .chat-messages-container {
        padding: 12px 10px calc(var(--mshub-app-bottom-nav-top) + 86px) !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    body:has(.chat-container) .chat-message-form {
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        bottom: calc(var(--mshub-app-bottom-nav-top) + 8px) !important;
        z-index: 1110 !important;
        padding: 8px 10px !important;
        border-radius: 0 !important;
        background: rgba(255, 255, 255, 0.97) !important;
        border-top: 1px solid rgba(15, 23, 42, 0.09) !important;
        backdrop-filter: blur(18px) saturate(170%) !important;
        -webkit-backdrop-filter: blur(18px) saturate(170%) !important;
    }

    body:has(.chat-container) .message-input-wrapper {
        gap: 8px !important;
        align-items: flex-end !important;
    }

    body:has(.chat-container) .message-input {
        min-height: 44px !important;
        max-height: 112px !important;
        border-radius: 18px !important;
        padding: 11px 14px !important;
        line-height: 1.35 !important;
    }

    body:has(.chat-container) .send-btn {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
        border-radius: 16px !important;
    }

    body:has(.chat-container) .mobile-bottom-nav {
        display: flex !important;
    }
}

@media (max-width: 991.98px), (hover: none) and (pointer: coarse) {
    :root,
    html,
    body {
        --primary-color: #2563eb !important;
        --primary-dark: #1d4ed8 !important;
        --primary-light: #0ea5e9 !important;
        --primary-lighter: #7dd3fc !important;
        --primary-orange: #2563eb !important;
        --orange-light: #0ea5e9 !important;
        --orange-dark: #1d4ed8 !important;
        --premium-orange: #2563eb !important;
        --modal-orange-primary: #2563eb !important;
        --neo-amber: #2563eb !important;
        --icon-orange: #2563eb !important;
        --ms-primary: #2563eb !important;
        --ms-primary-light: #0ea5e9 !important;
        --ms-primary-dark: #1d4ed8 !important;
        --ms-warning: #facc15 !important;
        --shadow-glow: 0 0 18px rgba(37, 99, 235, 0.20) !important;
        --glass-border: rgba(37, 99, 235, 0.16) !important;
    }

    html,
    body,
    body::before,
    body::after {
        background-color: var(--mshub-app-bg) !important;
    }

    body::before,
    body::after {
        background-image: none !important;
        box-shadow: none !important;
    }

    .btn-orange,
    .material-fab,
    .mobile-nav-badge,
    .badge-warning,
    .stat-card.attention .stat-icon,
    .quick-action-btn.warning,
    .ios-btn.warning {
        background: linear-gradient(135deg, #2563eb, #0ea5e9) !important;
        border-color: rgba(37, 99, 235, 0.24) !important;
        box-shadow: 0 8px 18px rgba(37, 99, 235, 0.18) !important;
    }

    .text-warning,
    .link-warning,
    .btn-link-warning,
    [style*="#ff6b"],
    [style*="#FF6B"],
    [style*="#f97316"],
    [style*="#fb923c"] {
        color: #2563eb !important;
    }
}

html {
    background: var(--mshub-app-bg);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    background: var(--mshub-app-bg) !important;
    color: var(--mshub-app-ink);
    min-width: 0;
    overflow-x: clip !important;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body::after,
body.pwa-standalone::after,
.pwa-standalone-badge {
    content: none !important;
    display: none !important;
}

.mshub-compact-toggle,
.mshub-push-toggle {
    position: fixed;
    right: 14px;
    z-index: 1042;
    width: 42px;
    height: 42px;
    min-width: 42px !important;
    min-height: 42px !important;
    border: 1px solid rgba(15, 23, 42, 0.10);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    color: #2563eb;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.14);
    display: none;
    align-items: center;
    justify-content: center;
}

.mshub-compact-toggle { bottom: calc(var(--mshub-app-bottom-space) + 14px); }
.mshub-push-toggle { bottom: calc(var(--mshub-app-bottom-space) + 62px); }
body:has(.chat-container) .mshub-push-toggle {
    top: calc(env(safe-area-inset-top, 0px) + 74px);
    bottom: auto;
}
.mshub-compact-toggle.is-active,
.mshub-push-toggle.is-active { background: #2563eb; color: #ffffff; }

.mshub-message-badge,
.mshub-app-center-dot {
    background: #dc2626 !important;
    color: #ffffff !important;
    border: 2px solid #ffffff;
    box-shadow: 0 8px 18px rgba(220, 38, 38, 0.28) !important;
}

.mshub-message-badge[hidden],
.mshub-app-center-dot[hidden] {
    display: none !important;
}

.mshub-app-center-fab {
    position: fixed;
    right: 14px;
    top: calc(env(safe-area-inset-top, 0px) + 126px);
    z-index: 1041;
    width: 42px;
    height: 42px;
    min-width: 42px !important;
    min-height: 42px !important;
    display: none;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(15, 23, 42, 0.10);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);
    color: #2563eb;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.14);
}

.mshub-app-center-dot {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
}

.mshub-app-center {
    position: fixed;
    inset: 0;
    z-index: 1040;
    display: none;
    padding: max(12px, env(safe-area-inset-top, 0px)) 12px calc(88px + env(safe-area-inset-bottom, 0px));
    background: rgba(15, 23, 42, 0.32);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.mshub-app-center.is-open {
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.mshub-app-center-panel {
    width: min(100%, 520px);
    max-height: min(76vh, 640px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
}

.mshub-app-center-header,
.mshub-app-status-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mshub-app-center-header {
    justify-content: space-between;
    padding: 14px 14px 10px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.mshub-app-center-header strong,
.mshub-app-center-header small {
    display: block;
}

.mshub-app-center-header strong {
    font-size: 16px;
    font-weight: 850;
    color: #0f172a;
}

.mshub-app-center-header small {
    margin-top: 2px;
    font-size: 12px;
    color: #64748b;
}

.mshub-app-center-close {
    width: 38px;
    height: 38px;
    min-width: 38px !important;
    border: 0;
    border-radius: 8px;
    background: #f1f5f9;
    color: #0f172a;
}

.mshub-app-status-row {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    overflow-x: auto;
}

.mshub-app-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 7px 10px;
    border-radius: 8px;
    background: rgba(20, 163, 127, 0.12);
    color: #047857;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.mshub-app-status-pill.is-offline {
    background: rgba(220, 38, 38, 0.10);
    color: #b91c1c;
}

.mshub-app-status-pill.is-attention {
    background: rgba(37, 99, 235, 0.11);
    color: #1d4ed8;
}

.mshub-app-center-list {
    overflow-y: auto;
    padding: 8px;
}

.mshub-app-notice-section + .mshub-app-notice-section {
    margin-top: 8px;
}

.mshub-app-notice-section-title {
    padding: 7px 8px 5px;
    color: #64748b;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.mshub-app-notice {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    color: #0f172a;
    text-decoration: none;
}

.mshub-app-notice:active,
.mshub-app-notice:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.mshub-app-notice-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: rgba(37, 99, 235, 0.10);
    color: #2563eb;
}

.mshub-app-notice.is-warning .mshub-app-notice-icon {
    background: rgba(250, 204, 21, 0.16);
    color: #a16207;
}

.mshub-app-notice.is-danger .mshub-app-notice-icon {
    background: rgba(220, 38, 38, 0.11);
    color: #b91c1c;
}

.mshub-app-notice-body {
    min-width: 0;
}

.mshub-app-notice-body strong,
.mshub-app-notice-body small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mshub-app-notice-body strong {
    font-size: 13px;
    font-weight: 850;
    white-space: nowrap;
}

.mshub-app-notice-body small {
    margin-top: 2px;
    font-size: 12px;
    color: #64748b;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.mshub-app-notice-time {
    align-self: start;
    padding-top: 2px;
    font-size: 11px;
    color: #94a3b8;
    white-space: nowrap;
}

.mshub-app-center-empty {
    padding: 28px 16px;
    color: #64748b;
    text-align: center;
    font-size: 13px;
}

.mshub-pull-refresh {
    position: fixed;
    top: max(8px, env(safe-area-inset-top, 0px));
    left: 50%;
    z-index: 1045;
    display: none;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 12px;
    transform: translateX(-50%);
    border-radius: 8px;
    background: #0f172a;
    color: #ffffff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.24);
    font-size: 12px;
    font-weight: 800;
}

.mshub-pull-refresh.is-visible {
    display: none !important;
}

.mshub-pull-refresh.is-ready i {
    transform: rotate(180deg);
}

.mshub-app-center-menu-trigger {
    position: relative;
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
}

.mshub-app-menu-action {
    font: inherit;
    cursor: pointer;
}

.mshub-app-menu-action .mobile-nav-badge {
    position: static !important;
    margin-left: auto !important;
    transform: none !important;
    min-width: 20px !important;
    height: 20px !important;
    padding: 2px 6px !important;
}

body:not(.mobile-menu-open) .mobile-menu-overlay:not(.active),
.sidebar-backdrop:not(.active),
#warehouseOverlay:not(.show) {
    pointer-events: none !important;
    visibility: hidden !important;
}

body:not(.modal-open) .modal-backdrop:not(.show) {
    pointer-events: none !important;
}

.mobile-page-skeleton {
    position: fixed;
    inset: 0;
    z-index: 14000;
    display: none;
    padding: max(16px, env(safe-area-inset-top, 0px)) 12px max(94px, calc(72px + env(safe-area-inset-bottom, 0px)));
    background: rgba(246, 248, 251, 0.94);
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    pointer-events: auto;
}

.mobile-page-skeleton.is-visible {
    display: block;
}

.mobile-page-skeleton-shell {
    width: min(100%, 520px);
    margin: 0 auto;
    display: grid;
    gap: 12px;
}

.mobile-page-skeleton-top,
.mobile-page-skeleton-tabs,
.mobile-page-skeleton-grid,
.mobile-page-skeleton-list {
    display: grid;
    gap: 10px;
}

.mobile-page-skeleton-top {
    grid-template-columns: 48px 1fr;
    align-items: center;
}

.mobile-page-skeleton-tabs,
.mobile-page-skeleton-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mobile-page-skeleton-tabs span:last-child {
    display: none;
}

.mobile-page-skeleton-top span,
.mobile-page-skeleton-title,
.mobile-page-skeleton-tabs span,
.mobile-page-skeleton-card,
.mobile-page-skeleton-grid span,
.mobile-page-skeleton-list span {
    display: block;
    border-radius: 16px;
    background: linear-gradient(90deg, #e7edf5 0%, #f8fafc 45%, #e7edf5 90%);
    background-size: 220% 100%;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.045);
    animation: mshub-skeleton-sweep 1.05s ease-in-out infinite;
}

.mobile-page-skeleton-top span:first-child {
    width: 48px;
    height: 48px;
    border-radius: 17px;
}

.mobile-page-skeleton-top span:last-child {
    height: 44px;
}

.mobile-page-skeleton-title {
    width: 72%;
    height: 28px;
    margin-top: 4px;
}

.mobile-page-skeleton-tabs span {
    height: 42px;
}

.mobile-page-skeleton-card {
    height: 138px;
    border-radius: 20px;
}

.mobile-page-skeleton-grid span {
    height: 76px;
    border-radius: 18px;
}

.mobile-page-skeleton-list span {
    height: 64px;
    border-radius: 18px;
}

body.mobile-page-transitioning {
    cursor: progress;
}

@keyframes mshub-skeleton-sweep {
    0% { background-position: 120% 0; }
    100% { background-position: -120% 0; }
}

@media (min-width: 992px) {
    .mobile-page-skeleton {
        display: none !important;
    }

    .mshub-app-center,
    .mshub-app-center-fab {
        display: none !important;
    }
}

@media (max-width: 991.98px), (hover: none) and (pointer: coarse) {
    .mshub-app-center-fab,
    .mshub-compact-toggle,
    .mshub-push-toggle {
        display: inline-flex;
    }

    .mshub-app-center-fab[hidden],
    #mshubAppCenterToggle {
        display: none !important;
    }

    body:has(.chat-container) .mshub-app-center-fab {
        top: calc(env(safe-area-inset-top, 0px) + 126px);
        bottom: auto;
    }
}

@media (max-width: 420px) {
    .mshub-app-notice {
        grid-template-columns: 36px minmax(0, 1fr);
    }

    .mshub-app-notice-time {
        grid-column: 2;
        padding-top: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mobile-page-skeleton-top span,
    .mobile-page-skeleton-title,
    .mobile-page-skeleton-tabs span,
    .mobile-page-skeleton-card,
    .mobile-page-skeleton-grid span,
    .mobile-page-skeleton-list span {
        animation: none !important;
    }
}

@media (hover: none), (pointer: coarse) {
    .btn:hover,
    button:hover,
    a:hover,
    .card:hover,
    .history-card:hover,
    .professional-item:hover,
    .equipment-card:hover,
    .warehouse-item:hover {
        transform: none !important;
    }

    .btn:active,
    button:active,
    a:active,
    .mobile-nav-item:active {
        transform: scale(0.98) !important;
        opacity: 0.92 !important;
    }
}

@media (max-width: 991.98px) {
    body {
        padding-top: 0 !important;
        padding-bottom: var(--mshub-app-bottom-space) !important;
        overscroll-behavior-y: contain;
    }

    .main-content,
    .content-wrapper,
    .container-fluid,
    .main-container,
    main:not(.auth-shell) {
        max-width: 100vw !important;
        min-width: 0 !important;
        overflow-x: clip !important;
    }

    .container,
    .container-fluid,
    .main-container {
        padding-left: max(12px, env(safe-area-inset-left, 0px)) !important;
        padding-right: max(12px, env(safe-area-inset-right, 0px)) !important;
    }

    .mshub-compact-toggle,
    .mshub-push-toggle {
        display: inline-flex;
    }

    body.mshub-compact-lists .car-card,
    body.mshub-compact-lists .employee-card,
    body.mshub-compact-lists .ios-user-card,
    body.mshub-compact-lists .admin-card,
    body.mshub-compact-lists .warehouse-item,
    body.mshub-compact-lists .professional-item {
        padding: 10px !important;
        border-radius: 8px !important;
        min-height: 0 !important;
        gap: 8px !important;
    }

    body.mshub-compact-lists .car-info-grid,
    body.mshub-compact-lists .equipment-list,
    body.mshub-compact-lists .contact-info,
    body.mshub-compact-lists .user-meta,
    body.mshub-compact-lists .card-footer,
    body.mshub-compact-lists .service-lock-panel {
        display: none !important;
    }

    body.mshub-compact-lists .car-card-header,
    body.mshub-compact-lists .employee-header,
    body.mshub-compact-lists .user-card-header,
    body.mshub-compact-lists .admin-header {
        margin-bottom: 0 !important;
        gap: 8px !important;
    }

    body.mshub-compact-lists .card-actions,
    body.mshub-compact-lists .ios-actions,
    body.mshub-compact-lists .quick-verify-actions,
    body.mshub-compact-lists .employee-actions {
        gap: 6px !important;
    }

    body.mshub-compact-lists .card-actions .btn,
    body.mshub-compact-lists .ios-btn.small,
    body.mshub-compact-lists .quick-action-btn,
    body.mshub-compact-lists .btn-action {
        min-height: 36px !important;
        padding: 7px 9px !important;
        font-size: 12px !important;
    }

    .modern-navbar {
        position: sticky !important;
        top: max(3px, env(safe-area-inset-top, 0px)) !important;
        margin: 3px 10px 10px !important;
        border-radius: 22px !important;
        background: rgba(255, 255, 255, 0.94) !important;
        border: 1px solid var(--mshub-app-line) !important;
        box-shadow: 0 12px 34px rgba(15, 23, 42, 0.10) !important;
        backdrop-filter: blur(22px) saturate(180%) !important;
        -webkit-backdrop-filter: blur(22px) saturate(180%) !important;
    }

    .mobile-bottom-nav {
        display: block !important;
        position: fixed !important;
        left: max(10px, env(safe-area-inset-left, 0px)) !important;
        right: max(10px, env(safe-area-inset-right, 0px)) !important;
        bottom: var(--mshub-app-bottom-nav-offset) !important;
        width: auto !important;
        height: var(--mshub-app-bottom-nav-height) !important;
        min-height: var(--mshub-app-bottom-nav-height) !important;
        padding: 8px !important;
        gap: 5px !important;
        border-radius: 24px !important;
        background: rgba(255, 255, 255, 0.96) !important;
        border: 1px solid var(--mshub-app-line) !important;
        box-shadow: 0 18px 48px rgba(15, 23, 42, 0.18) !important;
        backdrop-filter: blur(24px) saturate(180%) !important;
        -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
        z-index: 1100 !important;
        animation: none !important;
    }

    html body .mobile-bottom-nav {
        bottom: var(--mshub-app-bottom-nav-offset) !important;
    }

    .mobile-nav-item,
    .bottom-nav-item {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        max-width: none !important;
        min-height: 54px !important;
        height: 54px !important;
        padding: 6px 4px !important;
        border-radius: 18px !important;
        color: #64748b !important;
        -webkit-text-fill-color: #64748b !important;
        background: transparent !important;
        text-decoration: none !important;
        box-shadow: none !important;
        overflow: hidden !important;
    }

    .mobile-nav-item::before,
    .mobile-nav-item::after,
    .bottom-nav-item::before,
    .bottom-nav-item::after {
        display: none !important;
    }

    .mobile-nav-item i,
    .bottom-nav-item i {
        color: currentColor !important;
        -webkit-text-fill-color: currentColor !important;
        font-size: 20px !important;
        line-height: 1 !important;
        margin: 0 0 3px !important;
        filter: none !important;
    }

    .mobile-nav-item span,
    .bottom-nav-item span {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        color: currentColor !important;
        -webkit-text-fill-color: currentColor !important;
        font-size: 10px !important;
        line-height: 1.1 !important;
        font-weight: 800 !important;
        letter-spacing: 0 !important;
        opacity: 1 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .mobile-nav-item.active,
    .bottom-nav-item.active {
        color: var(--mshub-app-blue) !important;
        -webkit-text-fill-color: var(--mshub-app-blue) !important;
        background: linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(14, 165, 233, 0.10)) !important;
        box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.12) !important;
    }

    .card,
    .glass-container,
    .professional-card,
    .summary-card,
    .employee-card,
    .equipment-card,
    .history-card,
    .warehouse-item,
    .report-card,
    .service-card {
        border-radius: var(--mshub-app-radius) !important;
        border: 1px solid var(--mshub-app-line) !important;
        box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08) !important;
        background-color: var(--mshub-app-surface) !important;
    }

    .card + .card,
    .history-card + .history-card,
    .equipment-card + .equipment-card,
    .professional-card + .professional-card {
        margin-top: 10px;
    }

    .stats-grid,
    .ios-stats-grid,
    .warehouse-stats,
    .dashboard-stats,
    .summary-stats {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
        margin-top: 12px !important;
        margin-bottom: 14px !important;
    }

    .stats-grid > .stat-card,
    .ios-stats-grid > .ios-stat-card,
    .warehouse-stats > .stat-card,
    .dashboard-stats > .stat-card,
    .summary-stats > .stat-card {
        min-height: 74px !important;
        padding: 10px 11px !important;
        border-radius: 16px !important;
        display: grid !important;
        grid-template-columns: 38px minmax(0, 1fr) !important;
        grid-template-rows: auto auto !important;
        align-items: center !important;
        align-content: center !important;
        column-gap: 9px !important;
        row-gap: 0 !important;
        text-align: left !important;
        background: rgba(255, 255, 255, 0.94) !important;
        box-shadow: 0 8px 22px rgba(15, 23, 42, 0.07) !important;
        overflow: hidden !important;
    }

    .stats-grid > .stat-card::before,
    .ios-stats-grid > .ios-stat-card::before,
    .warehouse-stats > .stat-card::before,
    .dashboard-stats > .stat-card::before,
    .summary-stats > .stat-card::before {
        display: none !important;
    }

    .stats-grid > .stat-card .stat-icon,
    .ios-stats-grid > .ios-stat-card .stat-icon,
    .warehouse-stats > .stat-card > i,
    .dashboard-stats > .stat-card .stat-icon,
    .summary-stats > .stat-card .stat-icon,
    .summary-stats > .stat-card > i {
        grid-row: 1 / 3 !important;
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        margin: 0 !important;
        border-radius: 12px !important;
        font-size: 18px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: none !important;
    }

    .stats-grid > .stat-card .stat-value,
    .ios-stats-grid > .ios-stat-card .stat-value,
    .warehouse-stats > .stat-card .stat-value,
    .dashboard-stats > .stat-card .stat-value,
    .summary-stats > .stat-card .stat-value {
        grid-column: 2 !important;
        font-size: 1.28rem !important;
        line-height: 1.05 !important;
        margin: 0 0 2px !important;
        letter-spacing: 0 !important;
        text-align: left !important;
    }

    .stats-grid > .stat-card .stat-label,
    .ios-stats-grid > .ios-stat-card .stat-label,
    .warehouse-stats > .stat-card .stat-label,
    .dashboard-stats > .stat-card .stat-label,
    .summary-stats > .stat-card .stat-label {
        grid-column: 2 !important;
        min-width: 0 !important;
        font-size: 0.72rem !important;
        line-height: 1.15 !important;
        margin: 0 !important;
        color: var(--mshub-app-muted) !important;
        letter-spacing: 0 !important;
        text-transform: none !important;
        text-align: left !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
    }

    .warehouse-stats > .stat-card > div,
    .summary-stats > .stat-card > div {
        min-width: 0 !important;
    }

    .page-header,
    .dashboard-header,
    .equipment-header,
    .history-header,
    .inventory-header,
    .report-header {
        border-radius: 20px !important;
        border: 1px solid var(--mshub-app-line) !important;
        box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08) !important;
        background: rgba(255, 255, 255, 0.94) !important;
        color: var(--mshub-app-ink) !important;
    }

    .page-heading,
    .equipment-header h1,
    .dashboard-header h1,
    .history-header h1,
    .page-header h1,
    h1 {
        font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.65rem) !important;
        line-height: 1.15 !important;
        letter-spacing: 0 !important;
    }

    h2 { font-size: clamp(1.12rem, 1rem + 0.5vw, 1.38rem) !important; }
    h3 { font-size: clamp(1rem, 0.95rem + 0.35vw, 1.18rem) !important; }

    .btn,
    button,
    [role="button"] {
        min-height: 44px !important;
        border-radius: 14px !important;
        font-weight: 800 !important;
        letter-spacing: 0 !important;
    }

    input,
    select,
    textarea,
    .form-control,
    .form-select,
    .filter-select,
    .search-input,
    .premium-input,
    .premium-select,
    .premium-textarea {
        min-height: 44px !important;
        font-size: 16px !important;
        border-radius: 14px !important;
        border: 1px solid rgba(15, 23, 42, 0.11) !important;
        background-color: #ffffff !important;
        color: var(--mshub-app-ink) !important;
        box-shadow: none !important;
    }

    textarea,
    .premium-textarea {
        min-height: 96px !important;
        line-height: 1.45 !important;
    }

    .filter-section,
    .filters-section,
    .search-filter-section,
    .toolbar,
    .action-bar,
    .header-actions {
        max-width: 100% !important;
        min-width: 0 !important;
        gap: 8px !important;
    }

    .filter-section .search-box,
    .search-box {
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .table-responsive {
        border-radius: 16px !important;
        border: 1px solid var(--mshub-app-line) !important;
        background: rgba(255, 255, 255, 0.82) !important;
        box-shadow: none !important;
    }

    .table,
    table {
        font-size: 0.88rem !important;
    }

    .modal,
    .modal-backdrop {
        z-index: 12000 !important;
    }

    .mobile-menu-overlay,
    .sidebar-overlay {
        z-index: 1090 !important;
    }

    .mobile-menu-overlay.active,
    .sidebar-overlay.show {
        z-index: 12000 !important;
    }

    .modal-dialog {
        margin: auto 0 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .modal-content {
        max-height: min(88dvh, 760px) !important;
        border-radius: 24px 24px 0 0 !important;
        border: 1px solid var(--mshub-app-line) !important;
        box-shadow: 0 -20px 58px rgba(15, 23, 42, 0.24) !important;
        overflow: hidden !important;
    }

    .modal-header,
    .modal-footer {
        flex-shrink: 0 !important;
    }

    .modal-body {
        max-height: calc(88dvh - 132px) !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .dropdown-menu,
    .select2-dropdown {
        border-radius: 16px !important;
        border: 1px solid var(--mshub-app-line) !important;
        box-shadow: var(--mshub-app-shadow) !important;
    }

    .alert,
    .premium-toast-alert,
    .network-alert {
        left: 12px !important;
        right: 12px !important;
        width: auto !important;
        max-width: none !important;
        border-radius: 16px !important;
        box-shadow: var(--mshub-app-shadow) !important;
    }

    .mobile-menu-content {
        color: var(--mshub-app-ink) !important;
        background: #ffffff !important;
        border-radius: 24px 24px 0 0 !important;
    }

    .mobile-menu-content *,
    .mobile-menu-item,
    .mobile-menu-item span,
    .mobile-user-info strong,
    .mobile-user-info small {
        text-shadow: none !important;
    }

    #pwa-install-banner {
        bottom: calc(var(--mshub-app-bottom-space) + 8px) !important;
        z-index: 11900 !important;
    }

    body .cars-header,
    body .equipment-header {
        margin: 0 0 10px !important;
        padding: 12px !important;
        border-radius: 16px !important;
        box-shadow: none !important;
        background: rgba(255, 255, 255, 0.94) !important;
    }

    body .cars-header .header-content,
    body .equipment-header .header-content {
        gap: 10px !important;
        align-items: center !important;
    }

    body .cars-header h1,
    body .equipment-header h1,
    body .page-heading {
        font-size: 1.12rem !important;
        line-height: 1.15 !important;
        margin: 0 !important;
    }

    body .page-subtitle,
    body .cars-header .header-title + p,
    body .equipment-header .page-subtitle {
        display: none !important;
    }

    body .header-actions,
    body .equipment-header .header-actions,
    body .cars-header .header-actions {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        align-items: center !important;
        justify-content: flex-start !important;
    }

    body .header-actions .btn,
    body .equipment-header .btn,
    body .cars-header .btn {
        min-height: 40px !important;
        padding: 0.55rem 0.75rem !important;
        border-radius: 12px !important;
        font-size: 0.82rem !important;
        white-space: normal !important;
        line-height: 1.15 !important;
    }

    body .equipment-header .header-actions {
        display: grid !important;
        grid-template-columns: 52px minmax(0, 1fr) !important;
        gap: 8px !important;
        width: 100% !important;
    }

    body .equipment-header .header-actions .view-filter-toggle {
        grid-column: 1 / -1 !important;
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    body .equipment-header .header-actions .view-filter-toggle .btn {
        width: 100% !important;
        min-width: 0 !important;
        justify-content: center !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    body .equipment-header #toggleWarehouseBtn {
        grid-column: 1 !important;
        width: 52px !important;
        min-width: 52px !important;
        max-width: 52px !important;
        padding: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    body .equipment-header #toggleWarehouseBtn .btn-text {
        display: none !important;
    }

    body .equipment-header #toggleWarehouseBtn i {
        margin: 0 !important;
        font-size: 1rem !important;
    }

    body .equipment-header .header-actions > .btn-premium {
        grid-column: 2 !important;
        width: 100% !important;
        min-width: 0 !important;
        justify-content: center !important;
        overflow: hidden !important;
    }

    body .equipment-header .header-actions > .btn-premium .btn-text {
        min-width: 0 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    body .filter-section,
    body .filters-section,
    body .search-filter-section {
        margin: 0 0 10px !important;
        padding: 0 !important;
        gap: 8px !important;
        background: transparent !important;
        box-shadow: none !important;
        border: 0 !important;
    }

    body .filter-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 8px !important;
        width: 100% !important;
    }

    body .search-box,
    body .search-box-wrapper,
    body .filter-group,
    body .filter-select,
    body .search-input {
        min-width: 0 !important;
        width: 100% !important;
    }

    body .search-box,
    body .filter-select,
    body .premium-search,
    body .premium-select {
        min-height: 42px !important;
        padding: 0.55rem 0.75rem !important;
        border-radius: 12px !important;
        font-size: 16px !important;
        box-shadow: none !important;
    }

    body .filter-label {
        display: none !important;
    }

    body .stats-grid,
    body .equipment-summary {
        display: none !important;
    }

    body .cars-grid,
    body .equipment-grid,
    body #employeeEquipmentGrid,
    body .equipment-grid > .row {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        margin: 0 !important;
    }

    body #employeeEquipmentGrid > [class*="col-"],
    body .employee-equipment-card {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 auto !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    body .car-card,
    body .employee-card {
        display: block !important;
        margin: 0 !important;
        padding: 10px 12px !important;
        border-radius: 14px !important;
        background: #ffffff !important;
        background-image: none !important;
        border: 1px solid rgba(15, 23, 42, 0.08) !important;
        box-shadow: 0 6px 18px rgba(15, 23, 42, 0.055) !important;
        overflow: hidden !important;
        transform: none !important;
    }

    body .car-card::before,
    body .car-card::after,
    body .employee-card::before,
    body .employee-card::after,
    body .equipment-glow,
    body .summary-glow {
        display: none !important;
        content: none !important;
    }

    body .car-card-header,
    body .employee-header {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        gap: 8px !important;
        align-items: center !important;
        margin: 0 !important;
        padding: 0 0 8px !important;
        border-bottom: 1px solid rgba(15, 23, 42, 0.07) !important;
    }

    body .car-title,
    body .employee-info {
        min-width: 0 !important;
        display: grid !important;
        grid-template-columns: auto minmax(0, 1fr) !important;
        gap: 8px !important;
        align-items: center !important;
    }

    body .employee-info {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    body .car-icon,
    body .employee-avatar,
    body .equipment-icon-wrapper,
    body .info-icon {
        inline-size: 34px !important;
        block-size: 34px !important;
        min-inline-size: 34px !important;
        border-radius: 11px !important;
        font-size: 0.95rem !important;
        box-shadow: none !important;
    }

    body .license-plate {
        width: fit-content !important;
        max-width: 100% !important;
        padding: 0.46rem 0.72rem !important;
        border-radius: 11px !important;
        font-size: 0.9rem !important;
        line-height: 1.1 !important;
        letter-spacing: 0 !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
        box-shadow: none !important;
    }

    body .employee-name {
        margin: 0 !important;
        font-size: 0.98rem !important;
        line-height: 1.2 !important;
        font-weight: 900 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    body .employee-department {
        margin: 2px 0 0 !important;
        font-size: 0.78rem !important;
        line-height: 1.2 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 1 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    body .car-actions,
    body .employee-actions {
        display: flex !important;
        gap: 6px !important;
        align-items: center !important;
        justify-content: flex-end !important;
        min-width: max-content !important;
    }

    body .action-btn,
    body .btn-action,
    body .btn-transfer,
    body .service-icon-btn {
        inline-size: auto !important;
        block-size: auto !important;
        min-inline-size: 36px !important;
        min-block-size: 36px !important;
        padding: 0.45rem !important;
        border-radius: 11px !important;
        font-size: 0.9rem !important;
        box-shadow: none !important;
        transform: none !important;
    }

    body .notification-badge {
        top: -5px !important;
        right: -5px !important;
        min-width: 14px !important;
        height: 14px !important;
        font-size: 8px !important;
    }

    body .car-info-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        margin: 6px 0 0 !important;
        padding: 0 !important;
        border: 1px solid rgba(15, 23, 42, 0.06) !important;
        border-radius: 13px !important;
        overflow: hidden !important;
        background: #ffffff !important;
    }

    body .info-item {
        display: grid !important;
        grid-template-columns: 30px minmax(0, 1fr) !important;
        gap: 8px !important;
        align-items: center !important;
        margin: 0 !important;
        padding: 8px 10px !important;
        border: 0 !important;
        border-bottom: 1px solid rgba(15, 23, 42, 0.06) !important;
        border-radius: 0 !important;
        background: #ffffff !important;
        box-shadow: none !important;
        transform: none !important;
    }

    body .info-item:last-child {
        border-bottom: 0 !important;
    }

    body .info-icon {
        inline-size: 28px !important;
        block-size: 28px !important;
        min-inline-size: 28px !important;
        font-size: 0.82rem !important;
        background: rgba(37, 99, 235, 0.09) !important;
        color: #1d4ed8 !important;
        -webkit-text-fill-color: #1d4ed8 !important;
    }

    body .info-content,
    body .equipment-details {
        min-width: 0 !important;
    }

    body .info-label {
        margin: 0 !important;
        font-size: 0.68rem !important;
        line-height: 1.1 !important;
        letter-spacing: 0 !important;
        text-transform: none !important;
        color: var(--mshub-app-muted) !important;
    }

    body .info-value {
        margin: 1px 0 0 !important;
        font-size: 0.88rem !important;
        line-height: 1.2 !important;
        font-weight: 850 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        overflow-wrap: anywhere !important;
    }

    body .car-badges {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 6px !important;
        margin: 8px 0 0 !important;
    }

    body .status-badge {
        min-height: 34px !important;
        padding: 0.42rem 0.5rem !important;
        border-radius: 11px !important;
        font-size: 0.72rem !important;
        line-height: 1.1 !important;
        letter-spacing: 0 !important;
        text-transform: none !important;
        white-space: normal !important;
        box-shadow: none !important;
    }

    body .oil-indicator {
        margin: 8px 0 0 !important;
        padding: 9px 10px !important;
        border-radius: 13px !important;
        box-shadow: none !important;
    }

    body .oil-header {
        margin-bottom: 7px !important;
    }

    body .oil-title,
    body .oil-percentage {
        font-size: 0.84rem !important;
        line-height: 1.15 !important;
    }

    body .oil-progress {
        height: 6px !important;
    }

    body .card-actions {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 7px !important;
        margin: 9px 0 0 !important;
    }

    body .card-actions .btn {
        min-height: 39px !important;
        width: auto !important;
        min-width: 0 !important;
        padding: 0.5rem 0.55rem !important;
        border-radius: 12px !important;
        font-size: 0.78rem !important;
        line-height: 1.12 !important;
        white-space: normal !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        box-shadow: none !important;
    }

    body .expandable-section.active {
        margin-top: 8px !important;
        max-height: min(58dvh, 460px) !important;
        overflow-y: auto !important;
    }

    body .equipment-list {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        margin: 8px 0 0 !important;
        border: 1px solid rgba(15, 23, 42, 0.06) !important;
        border-radius: 13px !important;
        overflow: hidden !important;
    }

    body .equipment-item.professional-item {
        display: grid !important;
        grid-template-columns: 34px minmax(0, 1fr) minmax(54px, auto) 38px !important;
        gap: 8px !important;
        align-items: center !important;
        min-height: 58px !important;
        margin: 0 !important;
        padding: 8px 9px !important;
        border: 0 !important;
        border-bottom: 1px solid rgba(15, 23, 42, 0.06) !important;
        border-radius: 0 !important;
        background: #ffffff !important;
        box-shadow: none !important;
        text-align: left !important;
        transform: none !important;
    }

    body .equipment-item.professional-item:last-child {
        border-bottom: 0 !important;
    }

    body .equipment-icon-wrapper {
        inline-size: 32px !important;
        block-size: 32px !important;
        min-inline-size: 32px !important;
        background: rgba(20, 163, 127, 0.1) !important;
        color: #0f766e !important;
        -webkit-text-fill-color: #0f766e !important;
    }

    body .equipment-icon-wrapper .equipment-icon,
    body .equipment-icon {
        width: auto !important;
        height: auto !important;
        background: transparent !important;
        color: currentColor !important;
        -webkit-text-fill-color: currentColor !important;
        font-size: 0.92rem !important;
    }

    body .equipment-details {
        display: flex !important;
        flex-direction: column !important;
        gap: 2px !important;
    }

    body .equipment-name {
        font-size: 0.9rem !important;
        line-height: 1.18 !important;
        font-weight: 900 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        overflow-wrap: anywhere !important;
    }

    body .equipment-quantity,
    body .equipment-serial {
        font-size: 0.72rem !important;
        line-height: 1.18 !important;
        color: var(--mshub-app-muted) !important;
        display: block !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
    }

    body .equipment-status {
        min-width: 0 !important;
        justify-self: end !important;
        max-width: 74px !important;
        overflow: hidden !important;
    }

    body .equipment-status .status-badge,
    body .professional-badge {
        max-width: 74px !important;
        min-height: 28px !important;
        padding: 0.32rem 0.45rem !important;
        border-radius: 999px !important;
        font-size: 0.68rem !important;
        line-height: 1.05 !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
    }

    body .equipment-transfer-action {
        position: static !important;
        inset: auto !important;
        opacity: 1 !important;
        transform: none !important;
        display: flex !important;
        justify-content: flex-end !important;
        justify-self: end !important;
        width: 38px !important;
        min-width: 38px !important;
        z-index: 1 !important;
    }

    body .equipment-transfer-action .btn-transfer {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
        padding: 0 !important;
    }

    body .card-footer {
        margin: 7px 0 0 !important;
        padding: 7px 0 0 !important;
        border-top: 1px solid rgba(15, 23, 42, 0.06) !important;
        background: transparent !important;
    }

    body .card-footer small {
        font-size: 0.72rem !important;
        line-height: 1.2 !important;
        display: block !important;
    }
}

/* Mobile touch safety layer: keep modals clickable above menus, backdrops and skeletons. */
body.modal-open .mobile-page-skeleton,
body.modal-open.mobile-page-transitioning .mobile-page-skeleton {
    display: none !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

@media (max-width: 991.98px) {
    html.mshub-modal-active,
    body.mshub-modal-active {
        overflow: hidden !important;
        overscroll-behavior: contain !important;
        filter: none !important;
        -webkit-filter: none !important;
    }

    html.mshub-warehouse-active,
    body.mshub-warehouse-active,
    body.warehouse-sidebar-open {
        overflow: hidden !important;
        overscroll-behavior: contain !important;
        filter: none !important;
        -webkit-filter: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    body.warehouse-sidebar-open .mobile-page-skeleton,
    body.mshub-warehouse-active .mobile-page-skeleton,
    body.warehouse-sidebar-open .mobile-bottom-nav,
    body.mshub-warehouse-active .mobile-bottom-nav,
    body.warehouse-sidebar-open #pwa-install-banner,
    body.mshub-warehouse-active #pwa-install-banner {
        pointer-events: none !important;
        filter: none !important;
        -webkit-filter: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    body #warehouseOverlay.sidebar-overlay,
    body #warehouseOverlay.sidebar-overlay.show,
    body.warehouse-sidebar-open #warehouseOverlay,
    body.mshub-warehouse-active #warehouseOverlay {
        position: fixed !important;
        inset: 0 !important;
        z-index: 2147483000 !important;
        display: block !important;
        visibility: visible !important;
        pointer-events: auto !important;
        background: rgba(15, 23, 42, 0.12) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        filter: none !important;
        -webkit-filter: none !important;
        touch-action: manipulation !important;
    }

    body.warehouse-sidebar-open #warehouseOverlay.show,
    body.mshub-warehouse-active #warehouseOverlay.show,
    body.warehouse-sidebar-open #warehouseOverlay.sidebar-overlay.show,
    body.mshub-warehouse-active #warehouseOverlay.sidebar-overlay.show {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
        opacity: 0 !important;
        z-index: -1 !important;
    }

    body #warehouseOverlay.sidebar-overlay:not(.show),
    body:not(.warehouse-sidebar-open):not(.mshub-warehouse-active) #warehouseOverlay {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    body .warehouse-sidebar.open,
    body.warehouse-sidebar-open .warehouse-sidebar,
    body.mshub-warehouse-active .warehouse-sidebar {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        min-width: 0 !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior: contain !important;
        z-index: 2147483400 !important;
        display: flex !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: none !important;
        opacity: 1 !important;
        filter: none !important;
        -webkit-filter: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        isolation: isolate !important;
        background: #f8fafc !important;
    }

    body.warehouse-sidebar-open .warehouse-sidebar.open,
    body.mshub-warehouse-active .warehouse-sidebar.open {
        display: flex !important;
        visibility: visible !important;
        pointer-events: auto !important;
        z-index: 2147483600 !important;
    }

    body.mshub-warehouse-active .warehouse-sidebar .sidebar-header {
        margin: 4px 0 0 !important;
        min-height: 58px !important;
        padding: max(8px, env(safe-area-inset-top, 0px)) 10px 8px !important;
    }

    body.mshub-warehouse-active .warehouse-sidebar .sidebar-title {
        min-width: 0 !important;
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        color: #0f172a !important;
    }

    body.mshub-warehouse-active .warehouse-sidebar .sidebar-title i,
    body.mshub-warehouse-active .warehouse-sidebar .btn-close-sidebar {
        width: 30px !important;
        height: 30px !important;
        min-width: 30px !important;
        min-height: 30px !important;
    }

    body.mshub-warehouse-active .warehouse-sidebar .sidebar-header {
        position: sticky !important;
        top: 0 !important;
        z-index: 2147483602 !important;
        pointer-events: auto !important;
        background: #ffffff !important;
        color: #0f172a !important;
        border-bottom: 1px solid rgba(15, 23, 42, 0.10) !important;
        box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08) !important;
        isolation: isolate !important;
    }

    body.mshub-warehouse-active .warehouse-sidebar .btn-close-sidebar,
    body.warehouse-sidebar-open .warehouse-sidebar .btn-close-sidebar {
        position: relative !important;
        z-index: 2147483603 !important;
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
        padding: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        pointer-events: auto !important;
        touch-action: manipulation !important;
        background: #ffffff !important;
        border: 1px solid rgba(15, 23, 42, 0.12) !important;
        border-radius: 14px !important;
        box-shadow: 0 8px 18px rgba(15, 23, 42, 0.10) !important;
    }

    body.mshub-warehouse-active .warehouse-sidebar .sidebar-title h5 {
        max-width: 42vw !important;
        margin: 0 !important;
        font-size: 1rem !important;
        line-height: 1.12 !important;
        color: #0f172a !important;
        opacity: 1 !important;
        text-shadow: none !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    body.mshub-warehouse-active .warehouse-sidebar .sidebar-title i {
        color: #2563eb !important;
        background: rgba(37, 99, 235, 0.10) !important;
        border-radius: 12px !important;
    }

    body.mshub-warehouse-active .warehouse-sidebar #warehouseTotalItems {
        color: #ffffff !important;
        background: #2563eb !important;
        border: 0 !important;
        box-shadow: none !important;
    }

    body.mshub-warehouse-active .warehouse-sidebar .sidebar-search,
    body.mshub-warehouse-active .warehouse-sidebar .sidebar-filters,
    body.mshub-warehouse-active .warehouse-sidebar .warehouse-actions {
        padding: 6px 4px !important;
        gap: 6px !important;
    }

    body.mshub-warehouse-active .warehouse-sidebar .sidebar-search .premium-search,
    body.mshub-warehouse-active .warehouse-sidebar .filter-group .premium-select {
        height: 36px !important;
        min-height: 36px !important;
        border-radius: 12px !important;
    }

    body.mshub-warehouse-active .warehouse-sidebar .sidebar-filters {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    body.mshub-warehouse-active .warehouse-sidebar .filter-group label {
        display: none !important;
    }

    body.mshub-warehouse-active .warehouse-sidebar .warehouse-actions {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 42px !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 8 !important;
        background: #f8fafc !important;
        border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
    }

    body.mshub-warehouse-active .warehouse-sidebar .warehouse-actions .btn {
        min-height: 38px !important;
        height: 38px !important;
        border-radius: 12px !important;
    }

    body.mshub-warehouse-active .warehouse-sidebar #exportWarehouseBtn {
        font-size: 0 !important;
        padding: 0 !important;
    }

    body.mshub-warehouse-active .warehouse-sidebar #exportWarehouseBtn i {
        font-size: 1rem !important;
    }

    body.mshub-warehouse-active .warehouse-sidebar .warehouse-container {
        flex: none !important;
        min-height: 0 !important;
        overflow-y: visible !important;
        padding: 6px 4px 14px !important;
    }

    body.mshub-warehouse-active .warehouse-sidebar .sidebar-footer {
        position: relative !important;
        inset: auto !important;
        z-index: 9 !important;
        min-height: 34px !important;
        max-height: none !important;
        margin: 6px 4px max(10px, env(safe-area-inset-bottom, 0px)) !important;
        padding: 6px 8px !important;
        flex-shrink: 0 !important;
        transform: none !important;
        order: initial !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 32px !important;
        align-items: center !important;
        gap: 8px !important;
        border-radius: 12px !important;
        background: rgba(255, 255, 255, 0.9) !important;
        border: 1px solid rgba(15, 23, 42, 0.08) !important;
        box-shadow: none !important;
    }

    body.mshub-warehouse-active .warehouse-sidebar .sidebar-footer .last-updated {
        min-width: 0 !important;
        font-size: 0.64rem !important;
        line-height: 1.1 !important;
        color: #64748b !important;
        display: flex !important;
        align-items: center !important;
    }

    body.mshub-warehouse-active .warehouse-sidebar .sidebar-footer .last-updated span {
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    body.mshub-warehouse-active .warehouse-sidebar .sidebar-footer .last-updated #warehouseLastUpdated {
        color: #64748b !important;
    }

    body.mshub-warehouse-active .warehouse-sidebar .warehouse-refresh-btn {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        min-height: 32px !important;
        max-width: 32px !important;
        max-height: 32px !important;
        justify-self: end !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        background: #ffffff !important;
        color: #0f172a !important;
        border: 1px solid rgba(15, 23, 42, 0.1) !important;
        box-shadow: none !important;
    }

    body.mshub-warehouse-active .warehouse-sidebar #refreshWarehouseBtn.btn.btn-premium-sm.warehouse-refresh-btn {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        min-height: 32px !important;
        max-width: 32px !important;
        max-height: 32px !important;
        padding: 0 !important;
        line-height: 1 !important;
    }

    body.mshub-warehouse-active .warehouse-sidebar .sidebar-footer .last-updated i,
    body.mshub-warehouse-active .warehouse-sidebar .warehouse-refresh-btn i {
        color: inherit !important;
    }

    body .warehouse-sidebar:not(.open) {
        display: none !important;
        left: 100vw !important;
        right: auto !important;
        width: 0 !important;
        height: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        opacity: 0 !important;
        transform: translateX(100%) !important;
        box-shadow: none !important;
        border: 0 !important;
        filter: none !important;
        -webkit-filter: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        transition: none !important;
        overflow: hidden !important;
    }

    body .warehouse-sidebar:not(.open) * {
        visibility: hidden !important;
        pointer-events: none !important;
    }

    body .warehouse-sidebar *,
    body .warehouse-sidebar button,
    body .warehouse-sidebar a,
    body .warehouse-sidebar input,
    body .warehouse-sidebar select,
    body .warehouse-sidebar textarea,
    body .warehouse-sidebar [role="button"] {
        visibility: visible !important;
        pointer-events: auto !important;
        touch-action: manipulation !important;
        filter: none !important;
        -webkit-filter: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        opacity: 1 !important;
    }

    body.mshub-warehouse-active .warehouse-sidebar button,
    body.mshub-warehouse-active .warehouse-sidebar a,
    body.mshub-warehouse-active .warehouse-sidebar input,
    body.mshub-warehouse-active .warehouse-sidebar select,
    body.mshub-warehouse-active .warehouse-sidebar textarea,
    body.mshub-warehouse-active .warehouse-sidebar [role="button"],
    body.mshub-warehouse-active .warehouse-sidebar .btn-close-sidebar,
    body.mshub-warehouse-active .warehouse-sidebar .premium-search,
    body.mshub-warehouse-active .warehouse-sidebar .premium-select {
        position: relative !important;
        z-index: 20 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    body.warehouse-sidebar-open .main-content,
    body.mshub-warehouse-active .main-content,
    body.warehouse-sidebar-open .modern-navbar,
    body.mshub-warehouse-active .modern-navbar,
    body.warehouse-sidebar-open .mobile-bottom-nav,
    body.mshub-warehouse-active .mobile-bottom-nav {
        pointer-events: none !important;
    }

    body .mobile-menu-overlay,
    body .ms-mobile-menu,
    body .sidebar-backdrop,
    body #warehouseOverlay,
    body .sidebar-overlay {
        z-index: 12400 !important;
    }

    body .mobile-menu-overlay:not(.active),
    body .ms-mobile-menu:not(.active),
    body .sidebar-backdrop:not(.active),
    body #warehouseOverlay:not(.show),
    body .sidebar-overlay:not(.show) {
        pointer-events: none !important;
        visibility: hidden !important;
    }

    body.warehouse-sidebar-open #warehouseOverlay.show,
    body.mshub-warehouse-active #warehouseOverlay.show {
        pointer-events: none !important;
        visibility: hidden !important;
        touch-action: manipulation !important;
    }

    body .modal-backdrop,
    body .modal-backdrop.show {
        z-index: 2147483500 !important;
        pointer-events: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        filter: none !important;
        -webkit-filter: none !important;
        opacity: 0.34 !important;
    }

    body .modal,
    body .modal.show {
        position: fixed !important;
        inset: 0 !important;
        z-index: 2147483600 !important;
        pointer-events: auto !important;
        touch-action: manipulation !important;
        filter: none !important;
        -webkit-filter: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    body .modal-dialog,
    body .modal-dialog.show,
    body .modal-content,
    body .modal-header,
    body .modal-body,
    body .modal-footer,
    body .modal button,
    body .modal a,
    body .modal input,
    body .modal select,
    body .modal textarea,
    body .modal [role="button"],
    body .language-option,
    body .ms-lang-btn {
        pointer-events: auto !important;
        touch-action: manipulation !important;
        filter: none !important;
        -webkit-filter: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        opacity: 1 !important;
    }

    body .modal-content {
        position: relative !important;
        z-index: 2147483601 !important;
        background: #ffffff !important;
        isolation: isolate !important;
    }

    body.modal-open .mobile-bottom-nav,
    body.modal-open #pwa-install-banner,
    body.modal-open .mobile-menu-overlay,
    body.modal-open .ms-mobile-menu,
    body.modal-open .sidebar-backdrop,
    body.modal-open #warehouseOverlay,
    body.modal-open .sidebar-overlay {
        pointer-events: none !important;
    }

    body.modal-open .modal,
    body.modal-open .modal *,
    body.modal-open .modal-backdrop {
        pointer-events: auto !important;
    }

    body.modal-open .modal-backdrop {
        pointer-events: none !important;
    }

    body.modal-open .modern-navbar,
    body.modal-open .mobile-bottom-nav,
    body.modal-open .mobile-page-skeleton,
    body.modal-open .liquid-background,
    body.mshub-modal-active .modern-navbar,
    body.mshub-modal-active .mobile-bottom-nav,
    body.mshub-modal-active .mobile-page-skeleton,
    body.mshub-modal-active .liquid-background {
        filter: none !important;
        -webkit-filter: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
}

@media (max-width: 575.98px) {
    :root {
        --mshub-app-bottom-nav-height: 66px;
        --mshub-app-bottom-space: calc(var(--mshub-app-bottom-nav-top) + 14px);
    }

    .container,
    .container-fluid,
    .main-container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .mobile-bottom-nav {
        left: max(8px, env(safe-area-inset-left, 0px)) !important;
        right: max(8px, env(safe-area-inset-right, 0px)) !important;
        height: 66px !important;
        min-height: 66px !important;
        padding: 7px !important;
        border-radius: 22px !important;
    }

    .mobile-nav-item,
    .bottom-nav-item {
        min-height: 50px !important;
        height: 50px !important;
        border-radius: 16px !important;
    }

    .mobile-nav-item i,
    .bottom-nav-item i {
        font-size: 19px !important;
    }

    .mobile-nav-item span,
    .bottom-nav-item span {
        font-size: 9px !important;
    }

    .auth-shell {
        min-height: 100dvh !important;
        display: block !important;
        padding: max(14px, env(safe-area-inset-top, 0px)) 12px 18px !important;
    }

    .auth-story {
        padding: 0 0 12px !important;
        gap: 14px !important;
    }

    .auth-story .brand-row,
    .auth-brand,
    .auth-footnote,
    .story-copy,
    .signal-row {
        max-width: 100% !important;
    }

    .auth-panel-wrap {
        min-height: auto !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
    }

    .auth-panel {
        width: 100% !important;
        max-width: 100% !important;
        padding: 20px !important;
        border-radius: 22px !important;
        box-shadow: 0 14px 38px rgba(15, 23, 42, 0.12) !important;
    }

    .auth-input,
    .auth-submit {
        min-height: 48px !important;
        border-radius: 15px !important;
    }

    .home-lang-trigger {
        min-height: 44px !important;
    }

    .stats-grid,
    .ios-stats-grid,
    .warehouse-stats,
    .dashboard-stats,
    .summary-stats {
        gap: 8px !important;
    }

    .stats-grid > .stat-card,
    .ios-stats-grid > .ios-stat-card,
    .warehouse-stats > .stat-card,
    .dashboard-stats > .stat-card,
    .summary-stats > .stat-card {
        min-height: 68px !important;
        padding: 9px !important;
        grid-template-columns: 34px minmax(0, 1fr) !important;
        column-gap: 8px !important;
        border-radius: 15px !important;
    }

    .stats-grid > .stat-card .stat-icon,
    .ios-stats-grid > .ios-stat-card .stat-icon,
    .warehouse-stats > .stat-card > i,
    .dashboard-stats > .stat-card .stat-icon,
    .summary-stats > .stat-card .stat-icon,
    .summary-stats > .stat-card > i {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        border-radius: 11px !important;
        font-size: 16px !important;
    }

    .stats-grid > .stat-card .stat-value,
    .ios-stats-grid > .ios-stat-card .stat-value,
    .warehouse-stats > .stat-card .stat-value,
    .dashboard-stats > .stat-card .stat-value,
    .summary-stats > .stat-card .stat-value {
        font-size: 1.15rem !important;
    }

    .stats-grid > .stat-card .stat-label,
    .ios-stats-grid > .ios-stat-card .stat-label,
    .warehouse-stats > .stat-card .stat-label,
    .dashboard-stats > .stat-card .stat-label,
    .summary-stats > .stat-card .stat-label {
        font-size: 0.66rem !important;
    }

    body .warehouse-sidebar .warehouse-stats,
    body .warehouse-sidebar.open .warehouse-stats {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }

    body #addEquipmentModal.warehouse-pickup-modal {
        z-index: 13050 !important;
        overscroll-behavior: contain !important;
    }

    body #addEquipmentModal.warehouse-pickup-modal + .modal-backdrop,
    body .modal-backdrop.show {
        z-index: 13040 !important;
    }

    body #addEquipmentModal.warehouse-pickup-modal .modal-dialog {
        width: 100% !important;
        max-width: 100% !important;
        height: 100dvh !important;
        margin: 0 !important;
        display: flex !important;
        align-items: flex-end !important;
        pointer-events: none !important;
    }

    body #addEquipmentModal.warehouse-pickup-modal .modal-content,
    body #addEquipmentModal.warehouse-pickup-modal .professional-modal-content {
        width: 100% !important;
        height: min(91dvh, 760px) !important;
        max-height: min(91dvh, 760px) !important;
        margin: 0 !important;
        border-radius: 24px 24px 0 0 !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
        pointer-events: auto !important;
        transform: none !important;
    }

    body #addEquipmentModal.warehouse-pickup-modal .modal-header,
    body #addEquipmentModal.warehouse-pickup-modal .professional-modal-header {
        min-height: auto !important;
        padding: 16px 18px 14px !important;
        gap: 12px !important;
    }

    body #addEquipmentModal.warehouse-pickup-modal .modal-title-content {
        flex-wrap: nowrap !important;
        gap: 12px !important;
    }

    body #addEquipmentModal.warehouse-pickup-modal .modal-icon {
        width: 44px !important;
        height: 44px !important;
        flex-basis: 44px !important;
        border-radius: 15px !important;
    }

    body #addEquipmentModal.warehouse-pickup-modal .modal-title {
        font-size: 1.12rem !important;
        line-height: 1.12 !important;
    }

    body #addEquipmentModal.warehouse-pickup-modal .modal-subtitle,
    body #addEquipmentModal.warehouse-pickup-modal .pickup-employee-section,
    body #addEquipmentModal.warehouse-pickup-modal .pickup-guidance-section,
    body #addEquipmentModal.warehouse-pickup-modal .pickup-notes-section {
        display: none !important;
    }

    body #addEquipmentModal.warehouse-pickup-modal .btn-close-premium {
        width: 46px !important;
        height: 46px !important;
        flex-basis: 46px !important;
        border-radius: 16px !important;
    }

    body #addEquipmentModal.warehouse-pickup-modal .modal-body,
    body #addEquipmentModal.warehouse-pickup-modal .professional-modal-body {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        max-height: none !important;
        padding: 12px 12px 108px !important;
        overflow-y: auto !important;
        overscroll-behavior: contain !important;
        -webkit-overflow-scrolling: touch !important;
        background: #f8fafc !important;
    }

    body #addEquipmentModal.warehouse-pickup-modal .premium-form {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
    }

    body #addEquipmentModal.warehouse-pickup-modal .form-section {
        padding: 12px !important;
        border-radius: 16px !important;
        box-shadow: none !important;
    }

    body #addEquipmentModal.warehouse-pickup-modal .pickup-stock-section .section-header {
        margin-bottom: 10px !important;
    }

    body #addEquipmentModal.warehouse-pickup-modal .pickup-stock-section .section-header > i,
    body #addEquipmentModal.warehouse-pickup-modal .pickup-selected-section .section-header > i {
        width: 28px !important;
        height: 28px !important;
        flex-basis: 28px !important;
        border-radius: 10px !important;
    }

    body #addEquipmentModal.warehouse-pickup-modal .section-header h6 {
        font-size: 0.96rem !important;
    }

    body #addEquipmentModal.warehouse-pickup-modal .warehouse-stock-refresh-btn .refresh-label {
        display: none !important;
    }

    body #addEquipmentModal.warehouse-pickup-modal .warehouse-stock-refresh-btn {
        width: 42px !important;
        min-width: 42px !important;
        padding: 0 !important;
    }

    body #addEquipmentModal.warehouse-pickup-modal .warehouse-stock-container,
    body #addEquipmentModal.warehouse-pickup-modal .warehouse-stock-grid,
    body #addEquipmentModal.warehouse-pickup-modal .selected-items-list {
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        border-radius: 0 !important;
    }

    body #addEquipmentModal.warehouse-pickup-modal .warehouse-stock-container {
        min-height: 0 !important;
    }

    body #addEquipmentModal.warehouse-pickup-modal .warehouse-stock-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        margin-top: 0 !important;
    }

    body #addEquipmentModal.warehouse-pickup-modal .warehouse-stock-item {
        min-height: 72px !important;
        gap: 10px !important;
        padding: 10px !important;
        border-radius: 14px !important;
        box-shadow: none !important;
    }

    body #addEquipmentModal.warehouse-pickup-modal .warehouse-stock-item .stock-icon {
        width: 38px !important;
        height: 38px !important;
        border-radius: 12px !important;
        font-size: 1rem !important;
    }

    body #addEquipmentModal.warehouse-pickup-modal .warehouse-stock-item .stock-info h6 {
        font-size: 0.94rem !important;
        line-height: 1.18 !important;
        margin-bottom: 4px !important;
    }

    body #addEquipmentModal.warehouse-pickup-modal .warehouse-stock-item .stock-meta {
        gap: 4px !important;
        margin: 0 !important;
    }

    body #addEquipmentModal.warehouse-pickup-modal .warehouse-stock-item .stock-meta .badge {
        font-size: 0.7rem !important;
        padding: 0.28rem 0.42rem !important;
        border-radius: 999px !important;
    }

    body #addEquipmentModal.warehouse-pickup-modal .warehouse-stock-item .stock-serial {
        display: none !important;
    }

    body #addEquipmentModal.warehouse-pickup-modal .selected-item-card {
        padding: 10px !important;
        gap: 8px !important;
        border-radius: 14px !important;
        box-shadow: none !important;
    }

    body #addEquipmentModal.warehouse-pickup-modal .selected-item-icon {
        width: 34px !important;
        height: 34px !important;
        border-radius: 11px !important;
    }

    body #addEquipmentModal.warehouse-pickup-modal .selected-item-details h6 {
        font-size: 0.9rem !important;
    }

    body #addEquipmentModal.warehouse-pickup-modal .selected-item-quantity {
        min-width: 76px !important;
    }

    body #addEquipmentModal.warehouse-pickup-modal .selected-item-quantity small,
    body #addEquipmentModal.warehouse-pickup-modal .selected-item-quantity label {
        display: none !important;
    }

    body #addEquipmentModal.warehouse-pickup-modal .modal-footer,
    body #addEquipmentModal.warehouse-pickup-modal .professional-modal-footer {
        position: absolute !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 8px !important;
        padding: 10px 12px max(12px, env(safe-area-inset-bottom, 0px)) !important;
        background: rgba(255, 255, 255, 0.97) !important;
        border-top: 1px solid rgba(15, 23, 42, 0.09) !important;
        box-shadow: 0 -12px 28px rgba(15, 23, 42, 0.10) !important;
    }

    body #addEquipmentModal.warehouse-pickup-modal .modal-footer .btn,
    body #addEquipmentModal.warehouse-pickup-modal .professional-modal-footer .btn {
        width: 100% !important;
        min-height: 48px !important;
        border-radius: 16px !important;
    }
}

@supports (-webkit-touch-callout: none) {
    @media (max-width: 991.98px) {
        :root {
            --mshub-app-bottom-nav-offset: clamp(4px, calc(env(safe-area-inset-bottom, 0px) * 0.18), 8px);
        }

        html body .mobile-bottom-nav {
            bottom: var(--mshub-app-bottom-nav-offset) !important;
        }
    }
}

@media (min-width: 576px) and (max-width: 991.98px) {
    .mobile-bottom-nav {
        width: min(540px, calc(100vw - 32px)) !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
    }
}

@media (max-width: 926px) and (orientation: landscape) {
    :root {
        --mshub-app-bottom-nav-height: 56px;
        --mshub-app-bottom-space: calc(var(--mshub-app-bottom-nav-top) + 8px);
    }

    .modern-navbar {
        margin-top: 3px !important;
        margin-bottom: 8px !important;
        padding-top: 6px !important;
        padding-bottom: 6px !important;
    }

    .mobile-bottom-nav {
        width: min(460px, calc(100vw - 28px)) !important;
        height: 56px !important;
        min-height: 56px !important;
        padding: 6px !important;
        border-radius: 20px !important;
    }

    .mobile-nav-item,
    .bottom-nav-item {
        height: 44px !important;
        min-height: 44px !important;
    }

    .mobile-nav-item span,
    .bottom-nav-item span {
        display: none !important;
    }

    .modal-content {
        max-height: 90dvh !important;
    }
}

@media (max-width: 991.98px), (hover: none) and (pointer: coarse) {
    html,
    body {
        background-color: var(--mshub-app-bg) !important;
        overscroll-behavior-y: contain !important;
    }

    .liquid-background,
    .ms-bg-shape,
    .animated-bg,
    .floating-shape,
    .particle,
    .orb,
    .gradient-orb {
        display: none !important;
        animation: none !important;
        transform: none !important;
    }

    .glass-container,
    .auth-panel,
    .auth-panel-wrap,
    .modern-navbar,
    .mobile-bottom-nav,
    .bottom-nav,
    .employee-card,
    .equipment-item,
    .warehouse-sidebar,
    .warehouse-item-card,
    .professional-card,
    .professional-modal-content,
    .modal-content,
    .card,
    .premium-card {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        filter: none !important;
        -webkit-filter: none !important;
    }

    .auth-panel,
    .employee-card,
    .warehouse-item-card,
    .professional-card,
    .premium-card,
    .card {
        box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08) !important;
    }

    .mobile-bottom-nav,
    .bottom-nav,
    .modern-navbar {
        box-shadow: 0 4px 16px rgba(15, 23, 42, 0.10) !important;
    }

    .btn,
    button,
    a,
    .mobile-nav-item,
    .bottom-nav-item,
    .equipment-item,
    .employee-card,
    .warehouse-item-card {
        transition-duration: 0.12s !important;
    }

    .mobile-page-skeleton,
    .modal-backdrop,
    .sidebar-overlay {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
}

/* Mobile audit pass for heavy operational pages. */
@media (max-width: 991.98px) {
    body .container-fluid.px-4,
    body .container-fluid.py-4 {
        padding-left: max(10px, env(safe-area-inset-left, 0px)) !important;
        padding-right: max(10px, env(safe-area-inset-right, 0px)) !important;
        padding-top: 10px !important;
        padding-bottom: calc(var(--mshub-app-bottom-space) + 12px) !important;
    }

    body .glass-container.mb-4.p-4,
    body .service-plan-header,
    body .form-section,
    body .professional-modal-content .form-section {
        padding: 14px !important;
        border-radius: 16px !important;
        box-shadow: 0 8px 22px rgba(15, 23, 42, 0.07) !important;
    }

    body .glass-container .d-flex.justify-content-between.align-items-center,
    body .container-fluid > .glass-container .d-flex.justify-content-between.align-items-center {
        align-items: stretch !important;
        gap: 10px !important;
        flex-wrap: wrap !important;
    }

    body .container-fluid > .glass-container .btn,
    body .container-fluid > .glass-container a.btn {
        min-width: 0 !important;
        max-width: 100% !important;
        white-space: normal !important;
        justify-content: center !important;
    }

    body .container-fluid > .row,
    body .row.g-4,
    body .row.justify-content-center {
        --bs-gutter-x: 0 !important;
        --bs-gutter-y: 10px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    body .row.g-4 > [class*="col-"],
    body .row.justify-content-center > [class*="col-"] {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    body .service-lock-panel {
        grid-template-columns: 38px minmax(0, 1fr) !important;
        gap: 10px !important;
        padding: 10px !important;
        border-radius: 14px !important;
        text-align: left !important;
        justify-items: stretch !important;
    }

    body .service-lock-icon {
        width: 38px !important;
        height: 38px !important;
        border-radius: 12px !important;
        font-size: 1rem !important;
    }

    body .service-lock-copy {
        min-width: 0 !important;
    }

    body .service-lock-title,
    body .service-lock-meta {
        overflow-wrap: anywhere !important;
    }

    body .service-lock-panel .btn-service-release {
        grid-column: 1 / -1 !important;
        width: 100% !important;
        min-width: 0 !important;
        margin-top: 2px !important;
    }

    body .transfer-card,
    body .car-transfer-info,
    body .employee-profile-card,
    body .premium-radio-card .radio-card-content {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 8px !important;
        text-align: left !important;
        min-width: 0 !important;
    }

    body .transfer-arrow {
        transform: rotate(90deg) !important;
        justify-self: center !important;
    }

    body .checklist-grid,
    body .bulk-actions-grid,
    body .quick-add-fields,
    body .transfer-options,
    body .equipment-selection-list,
    body .selected-items-list {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 8px !important;
        min-width: 0 !important;
    }

    body .view-filter-toggle,
    body .btn-group.view-filter-toggle {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        width: 100% !important;
        gap: 7px !important;
    }

    body .view-filter-toggle .btn,
    body .btn-group.view-filter-toggle .btn {
        width: 100% !important;
        margin: 0 !important;
        min-width: 0 !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
        overflow: hidden !important;
    }

    body .view-filter-toggle .btn-text,
    body .equipment-header .btn-text {
        min-width: 0 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    body .equipment-header .header-actions > .btn:not(.view-filter-toggle .btn),
    body .equipment-header .header-actions > button:not(.view-filter-toggle .btn) {
        flex: 1 1 calc(50% - 4px) !important;
        min-width: 0 !important;
    }

    body .modal-title-content,
    body .section-header,
    body .selection-header {
        min-width: 0 !important;
        gap: 10px !important;
    }

    body .modal-title,
    body .modal-subtitle,
    body .section-header h6,
    body .selection-header h6 {
        min-width: 0 !important;
        overflow-wrap: anywhere !important;
    }

    body .table-container,
    body .equipment-list-container,
    body .warehouse-stock-container,
    body .equipment-selection-list,
    body .colleagues-grid {
        max-width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    body .table-premium,
    body #equipmentTable {
        min-width: 620px !important;
    }

    body .modal-footer,
    body .professional-modal-footer,
    body .dark-footer {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }

    body .modal-footer .btn,
    body .modal-footer button,
    body .professional-modal-footer .btn,
    body .dark-footer .btn,
    body .dark-footer button {
        width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        justify-content: center !important;
    }
}

@media (max-width: 380px) {
    body .equipment-item.professional-item {
        grid-template-columns: 32px minmax(0, 1fr) 36px !important;
    }

    body .equipment-status {
        display: none !important;
    }

    body .card-actions,
    body .car-badges,
    body .view-filter-toggle,
    body .btn-group.view-filter-toggle {
        grid-template-columns: 1fr !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

/* Final warehouse visibility rescue. Kept at the end of the file so it wins the cascade on installed PWAs. */
@media (max-width: 991.98px), (hover: none) and (pointer: coarse) {
    html body:has(#warehouseSidebar) #warehouseSidebar .sidebar-header,
    html body:has(#warehouseSidebar) #warehouseSidebar .warehouse-actions,
    html body:has(#warehouseSidebar) .premium-modal .professional-modal-header,
    html body #warehouseSidebar .mshub-warehouse-topbar,
    html body #addEquipmentModal .professional-modal-header,
    html body #addToWarehouseModal .professional-modal-header,
    html body #editWarehouseModal .professional-modal-header,
    html body #transferEquipmentModal .professional-modal-header,
    html body #transferToWarehouseModal .professional-modal-header,
    html body #transferAllToWarehouseModal .professional-modal-header {
        background: #ffffff !important;
        background-image: none !important;
        color: #0f172a !important;
        opacity: 1 !important;
        visibility: visible !important;
        filter: none !important;
        -webkit-filter: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        text-shadow: none !important;
        border-color: rgba(15, 23, 42, 0.12) !important;
        border-bottom: 1px solid rgba(15, 23, 42, 0.12) !important;
        box-shadow: inset 0 -3px 0 #2563eb, 0 8px 18px rgba(15, 23, 42, 0.08) !important;
        isolation: isolate !important;
    }

    html body:has(#warehouseSidebar) #warehouseSidebar .sidebar-header *,
    html body:has(#warehouseSidebar) #warehouseSidebar .sidebar-search *,
    html body:has(#warehouseSidebar) #warehouseSidebar .sidebar-filters *,
    html body:has(#warehouseSidebar) .premium-modal .professional-modal-header *,
    html body #addEquipmentModal .professional-modal-header *,
    html body #addToWarehouseModal .professional-modal-header *,
    html body #editWarehouseModal .professional-modal-header *,
    html body #transferEquipmentModal .professional-modal-header *,
    html body #transferToWarehouseModal .professional-modal-header *,
    html body #transferAllToWarehouseModal .professional-modal-header * {
        color: #0f172a !important;
        opacity: 1 !important;
        visibility: visible !important;
        filter: none !important;
        -webkit-filter: none !important;
        text-shadow: none !important;
        -webkit-text-fill-color: currentColor !important;
    }

    html body:has(#warehouseSidebar) #warehouseSidebar .sidebar-title > i,
    html body:has(#warehouseSidebar) .premium-modal .professional-modal-header .modal-icon,
    html body #addEquipmentModal .professional-modal-header .modal-icon,
    html body #addToWarehouseModal .professional-modal-header .modal-icon,
    html body #editWarehouseModal .professional-modal-header .modal-icon,
    html body #transferEquipmentModal .professional-modal-header .modal-icon,
    html body #transferToWarehouseModal .professional-modal-header .modal-icon,
    html body #transferAllToWarehouseModal .professional-modal-header .modal-icon {
        background: rgba(37, 99, 235, 0.10) !important;
        background-image: none !important;
        color: #2563eb !important;
        box-shadow: none !important;
    }

    html body:has(#warehouseSidebar) #warehouseSidebar .sidebar-title > i *,
    html body:has(#warehouseSidebar) .premium-modal .professional-modal-header .modal-icon *,
    html body #addEquipmentModal .professional-modal-header .modal-icon *,
    html body #addToWarehouseModal .professional-modal-header .modal-icon *,
    html body #editWarehouseModal .professional-modal-header .modal-icon *,
    html body #transferEquipmentModal .professional-modal-header .modal-icon *,
    html body #transferToWarehouseModal .professional-modal-header .modal-icon *,
    html body #transferAllToWarehouseModal .professional-modal-header .modal-icon * {
        color: #2563eb !important;
    }

    html body:has(#warehouseSidebar) #closeWarehouseSidebar,
    html body:has(#warehouseSidebar) .premium-modal .professional-modal-header .btn-close-premium,
    html body #addEquipmentModal .professional-modal-header .btn-close-premium,
    html body #addToWarehouseModal .professional-modal-header .btn-close-premium,
    html body #editWarehouseModal .professional-modal-header .btn-close-premium,
    html body #transferEquipmentModal .professional-modal-header .btn-close-premium,
    html body #transferToWarehouseModal .professional-modal-header .btn-close-premium,
    html body #transferAllToWarehouseModal .professional-modal-header .btn-close-premium {
        background: #ffffff !important;
        color: #0f172a !important;
        border: 1px solid rgba(15, 23, 42, 0.14) !important;
        box-shadow: 0 8px 18px rgba(15, 23, 42, 0.10) !important;
    }

    html body:has(#warehouseSidebar) #warehouseSidebar .warehouse-actions .btn,
    html body:has(#warehouseSidebar) #warehouseSidebar .warehouse-actions .btn *,
    html body:has(#warehouseSidebar) #warehouseSidebar #addToWarehouseBtn,
    html body:has(#warehouseSidebar) #warehouseSidebar #addToWarehouseBtn *,
    html body:has(#warehouseSidebar) #warehouseSidebar #exportWarehouseBtn,
    html body:has(#warehouseSidebar) #warehouseSidebar #exportWarehouseBtn * {
        opacity: 1 !important;
        visibility: visible !important;
        filter: none !important;
        -webkit-filter: none !important;
        text-shadow: none !important;
    }

    html body:has(#warehouseSidebar) #warehouseSidebar #addToWarehouseBtn {
        background: linear-gradient(135deg, #2563eb, #0ea5e9) !important;
        background-color: #2563eb !important;
        color: #ffffff !important;
        -webkit-text-fill-color: #ffffff !important;
        border-color: rgba(37, 99, 235, 0.24) !important;
        box-shadow: 0 8px 18px rgba(37, 99, 235, 0.18) !important;
    }

    html body:has(#warehouseSidebar) #warehouseSidebar #addToWarehouseBtn * {
        color: #ffffff !important;
        -webkit-text-fill-color: #ffffff !important;
    }

    html body:has(#warehouseSidebar) #warehouseSidebar #exportWarehouseBtn {
        background: #ffffff !important;
        background-image: none !important;
        color: #2563eb !important;
        -webkit-text-fill-color: #2563eb !important;
        border-color: rgba(37, 99, 235, 0.22) !important;
        box-shadow: none !important;
    }

    html body:has(#warehouseSidebar) #warehouseSidebar #exportWarehouseBtn * {
        color: #2563eb !important;
        -webkit-text-fill-color: #2563eb !important;
    }
}

/* Final bottom navigation docking for iOS/PWA devices. */
@media (max-width: 991.98px), (hover: none) and (pointer: coarse) {
    :root {
        --mshub-app-bottom-nav-offset: 0px !important;
        --mshub-app-bottom-space: 96px !important;
    }

    html body .mobile-bottom-nav,
    html body nav.mobile-bottom-nav,
    html body.pwa-standalone .mobile-bottom-nav {
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: calc(72px + max(20px, env(safe-area-inset-bottom, 0px))) !important;
        min-height: calc(72px + max(20px, env(safe-area-inset-bottom, 0px))) !important;
        padding: 8px max(8px, env(safe-area-inset-right, 0px)) max(20px, env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px)) !important;
        border-radius: 18px 18px 0 0 !important;
        box-sizing: border-box !important;
        transform: none !important;
    }

    html body .mobile-bottom-nav .mobile-nav-item,
    html body .mobile-bottom-nav .bottom-nav-item {
        transform: none !important;
    }

    html body::after,
    html body.pwa-standalone::after {
        content: "" !important;
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        display: block !important;
        height: max(34px, env(safe-area-inset-bottom, 0px)) !important;
        background: #ffffff !important;
        z-index: 1099 !important;
        pointer-events: none !important;
    }

    html.mshub-ios-webkit,
    html.mshub-ios-webkit body {
        background: #ffffff !important;
    }

    html.mshub-ios-webkit {
        --mshub-app-bottom-nav-offset: 0px !important;
        --mshub-app-bottom-space: 52px !important;
    }

    html.mshub-ios-webkit body::after,
    html.mshub-ios-webkit body.pwa-standalone::after {
        content: none !important;
        display: none !important;
        height: 0 !important;
        background: transparent !important;
    }

    html.mshub-ios-webkit body .mobile-bottom-nav,
    html.mshub-ios-webkit body nav.mobile-bottom-nav,
    html.mshub-ios-webkit body.pwa-standalone .mobile-bottom-nav {
        bottom: 0 !important;
        height: 62px !important;
        min-height: 62px !important;
        max-height: 62px !important;
        padding: 5px max(8px, env(safe-area-inset-right, 0px)) 5px max(8px, env(safe-area-inset-left, 0px)) !important;
        border-radius: 10px 10px 0 0 !important;
        overflow: visible !important;
        transform: translateY(24px) !important;
    }

    html.mshub-ios-webkit body .mobile-bottom-nav .mobile-nav-item,
    html.mshub-ios-webkit body .mobile-bottom-nav .bottom-nav-item {
        height: 42px !important;
        min-height: 42px !important;
        max-height: 42px !important;
        padding: 1px 3px !important;
        border-radius: 10px !important;
        transform: translateY(-17px) !important;
    }

    @supports (-webkit-touch-callout: none) {
        :root {
            --mshub-app-bottom-nav-offset: 0px !important;
            --mshub-app-bottom-space: 52px !important;
        }

        html,
        html body {
            background: #ffffff !important;
        }

        html body .mobile-bottom-nav,
        html body nav.mobile-bottom-nav,
        html body.pwa-standalone .mobile-bottom-nav {
            bottom: 0 !important;
            height: 62px !important;
            min-height: 62px !important;
            max-height: 62px !important;
            padding: 5px max(8px, env(safe-area-inset-right, 0px)) 5px max(8px, env(safe-area-inset-left, 0px)) !important;
            border-radius: 10px 10px 0 0 !important;
            overflow: visible !important;
            transform: translateY(24px) !important;
        }

        html body .mobile-bottom-nav .mobile-nav-item,
        html body .mobile-bottom-nav .bottom-nav-item {
            height: 42px !important;
            min-height: 42px !important;
            max-height: 42px !important;
            padding: 1px 3px !important;
            border-radius: 10px !important;
            transform: translateY(-17px) !important;
        }
    }
}
