/* MSHUB cross-device stability layer. Loaded last for browser and viewport fixes. */
:root {
    --mshub-safe-top: env(safe-area-inset-top, 0px);
    --mshub-safe-right: env(safe-area-inset-right, 0px);
    --mshub-safe-bottom: env(safe-area-inset-bottom, 0px);
    --mshub-safe-left: env(safe-area-inset-left, 0px);
    --mshub-mobile-nav-height: 54px;
    --mshub-mobile-bottom-gap: calc(var(--mshub-mobile-nav-height) + var(--mshub-safe-bottom));
}

/* 20260701e: Equipment mobile action polish - keep transfer controls and toast clear of phone chrome. */
@media (max-width: 575.98px), (hover: none) and (pointer: coarse) {
    html body.mshub-equipment-page .premium-toast-alert {
        top: max(10px, env(safe-area-inset-top, 0px)) !important;
        left: max(10px, env(safe-area-inset-left, 0px)) !important;
        right: max(10px, env(safe-area-inset-right, 0px)) !important;
        width: auto !important;
        max-width: none !important;
        min-height: 58px !important;
        padding: 10px 10px 10px 12px !important;
        border-radius: 16px !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 44px !important;
        align-items: center !important;
        gap: 8px !important;
        z-index: 2147483000 !important;
    }

    html body.mshub-equipment-page .premium-toast-alert .alert-content {
        min-width: 0 !important;
        display: grid !important;
        grid-template-columns: 38px minmax(0, 1fr) !important;
        align-items: center !important;
        gap: 9px !important;
    }

    html body.mshub-equipment-page .premium-toast-alert .premium-toast-icon {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    html body.mshub-equipment-page .premium-toast-alert .alert-message {
        min-width: 0 !important;
        font-size: 14px !important;
        line-height: 1.25 !important;
        overflow-wrap: anywhere !important;
    }

    html body.mshub-equipment-page .premium-toast-alert .btn-close-premium {
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
        min-height: 42px !important;
        border-radius: 14px !important;
        margin: 0 !important;
    }

    html body.mshub-equipment-page #transferEquipmentModal .professional-modal-footer,
    html body.mshub-equipment-page #transferToWarehouseModal .professional-modal-footer,
    html body.mshub-equipment-page #addEquipmentModal.warehouse-pickup-modal .professional-modal-footer {
        position: sticky !important;
        bottom: 0 !important;
        padding-bottom: max(10px, env(safe-area-inset-bottom, 0px)) !important;
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(14px) !important;
        -webkit-backdrop-filter: blur(14px) !important;
        box-shadow: 0 -10px 24px rgba(15, 23, 42, 0.08) !important;
        z-index: 5 !important;
    }

    html body.mshub-equipment-page #transferEquipmentModal .professional-modal-footer .btn,
    html body.mshub-equipment-page #transferToWarehouseModal .professional-modal-footer .btn,
    html body.mshub-equipment-page #addEquipmentModal.warehouse-pickup-modal .professional-modal-footer .btn,
    html body.mshub-equipment-page .btn-transfer,
    html body.mshub-equipment-page .transfer-to-warehouse,
    html body.mshub-equipment-page .warehouse-stock-refresh-btn,
    html body.mshub-equipment-page .warehouse-item-checkbox,
    html body.mshub-equipment-page .selected-item-remove .btn {
        min-width: 44px !important;
        min-height: 44px !important;
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: transparent !important;
    }

    html body.mshub-equipment-page #transferEquipmentModal .professional-modal-body,
    html body.mshub-equipment-page #transferToWarehouseModal .professional-modal-body,
    html body.mshub-equipment-page #addEquipmentModal.warehouse-pickup-modal .professional-modal-body {
        overscroll-behavior: contain !important;
        -webkit-overflow-scrolling: touch !important;
    }
}

html {
    width: 100%;
    min-width: 320px;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scrollbar-gutter: stable both-edges;
}

body {
    width: 100%;
    min-width: 320px;
    min-height: 100vh;
    min-height: 100svh;
    overflow-x: clip;
    overflow-wrap: break-word;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: none;
}

@supports not (overflow: clip) {
    body,
    .main-content {
        overflow-x: hidden !important;
    }
}

img,
picture,
video,
canvas,
svg,
iframe {
    max-width: 100%;
}

img,
picture,
video,
canvas,
iframe {
    height: auto;
}

table {
    max-width: 100%;
}

.table-responsive,
.overflow-auto,
.overflow-scroll,
[data-scroll-x],
.mshub-horizontal-scroll {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-inline: contain;
}

button,
.btn,
a,
input,
select,
textarea,
[role="button"],
[tabindex]:not([tabindex="-1"]) {
    touch-action: manipulation;
}

input,
select,
textarea,
.form-control,
.form-select,
.input-group-text {
    max-width: 100%;
}

input,
select,
textarea,
.form-control,
.form-select {
    font-size: max(16px, 1rem) !important;
}

textarea,
input[type="text"],
input[type="search"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="datetime-local"] {
    min-width: 0;
}

.modal,
.offcanvas,
.dropdown-menu,
.mshub-app-center {
    -webkit-overflow-scrolling: touch;
}

.modal-dialog {
    max-width: min(100% - 16px, var(--bs-modal-width, 500px));
}

.modal-content,
.offcanvas,
.dropdown-menu {
    max-width: 100%;
}

.modal-body,
.offcanvas-body {
    overscroll-behavior: contain;
}

.main-content,
.container,
.container-fluid,
.row,
[class*="col-"] {
    min-width: 0;
}

.card,
.glass-container,
.professional-card,
.summary-card,
.employee-card,
.equipment-card,
.warehouse-card,
.service-card,
.report-card {
    min-width: 0;
    overflow-wrap: anywhere;
}

.btn,
button,
.dropdown-item,
.nav-link,
.mobile-nav-item {
    min-height: 44px;
}

.btn,
button {
    white-space: normal;
}

.badge,
.mobile-nav-badge,
.mshub-message-badge {
    white-space: nowrap;
}

@media (max-width: 991.98px) {
    html {
        height: 100%;
        height: 100svh;
        scrollbar-gutter: auto;
    }

    body:not(.modal-open):not(.mobile-menu-open):not(.warehouse-sidebar-open):not(.mshub-warehouse-active):not(.mshub-language-modal-open):not(.mshub-mobile-language-sheet-open) {
        min-height: 100vh !important;
        min-height: 100svh !important;
        max-height: none !important;
        overflow-y: auto !important;
        padding-bottom: calc(var(--mshub-mobile-bottom-gap) + 12px) !important;
    }

    @supports (height: 100dvh) {
        body:not(.modal-open):not(.mobile-menu-open):not(.warehouse-sidebar-open):not(.mshub-warehouse-active):not(.mshub-language-modal-open):not(.mshub-mobile-language-sheet-open) {
            min-height: 100dvh !important;
        }
    }

    .main-content,
    .main-content > .main-content,
    .container,
    .container-fluid {
        max-width: 100vw !important;
    }

    .container,
    .container-fluid {
        padding-left: max(12px, var(--mshub-safe-left)) !important;
        padding-right: max(12px, var(--mshub-safe-right)) !important;
    }

    .row {
        --bs-gutter-x: clamp(0.75rem, 3vw, 1.25rem);
    }

    .modal {
        padding-left: max(4px, var(--mshub-safe-left)) !important;
        padding-right: max(4px, var(--mshub-safe-right)) !important;
    }

    .modal-dialog {
        margin: max(8px, var(--mshub-safe-top)) auto max(8px, var(--mshub-safe-bottom)) !important;
    }

    .modal-content {
        max-height: calc(100vh - 16px - var(--mshub-safe-top) - var(--mshub-safe-bottom));
        max-height: calc(100svh - 16px - var(--mshub-safe-top) - var(--mshub-safe-bottom));
        display: flex;
        flex-direction: column;
    }

    @supports (height: 100dvh) {
        .modal-content {
            max-height: calc(100dvh - 16px - var(--mshub-safe-top) - var(--mshub-safe-bottom));
        }
    }

    .modal-body {
        min-height: 0;
        overflow-y: auto;
    }

    .table-responsive table,
    .table-responsive .table {
        min-width: max-content;
    }

    .dropdown-menu {
        max-width: calc(100vw - 16px);
        overflow-x: hidden;
    }

    .mobile-bottom-nav,
    nav.mobile-bottom-nav {
        contain: layout paint;
        transform: translateZ(0) !important;
        -webkit-transform: translateZ(0) !important;
    }

    .mobile-bottom-nav .mobile-nav-item {
        min-width: 0 !important;
        -webkit-user-select: none;
        user-select: none;
    }

    .mobile-bottom-nav .mobile-nav-item span:not(.mobile-nav-badge) {
        overflow-wrap: normal;
    }

    .mshub-app-center,
    .mobile-menu-overlay,
    .warehouse-overlay {
        min-height: 100vh;
        min-height: 100svh;
    }

    @supports (height: 100dvh) {
        .mshub-app-center,
        .mobile-menu-overlay,
        .warehouse-overlay {
            min-height: 100dvh;
        }
    }

    body:has(.chat-container) .chat-container,
    body:has(.chat-container) .chat-wrapper,
    body:has(.chat-container) .main-content,
    body:has(.chat-container) .container-fluid {
        height: 100vh !important;
        height: 100svh !important;
    }

    @supports (height: 100dvh) {
        body:has(.chat-container) .chat-container,
        body:has(.chat-container) .chat-wrapper,
        body:has(.chat-container) .main-content,
        body:has(.chat-container) .container-fluid {
            height: 100dvh !important;
        }
    }
}

@media (max-width: 575.98px) {
    .btn-toolbar,
    .btn-group:not(.mobile-bottom-nav .btn-group),
    .input-group.flex-nowrap {
        flex-wrap: wrap !important;
    }

    .input-group > .form-control,
    .input-group > .form-select {
        min-width: min(100%, 12rem);
    }

    .modal-header,
    .modal-footer {
        gap: 8px;
    }

    .modal-footer {
        flex-wrap: wrap;
    }

    .modal-footer > * {
        margin: 0 !important;
    }

    .modal-footer .btn {
        flex: 1 1 140px;
    }
}

/* 20260618g-last: keep this after every legacy mobile rule for iPhone/Safari. */
@supports (-webkit-touch-callout: none) {
    @media (max-width: 991.98px) {
        html body.mshub-authenticated,
        html body.mshub-authenticated:not(.modal-open):not(.mobile-menu-open):not(.warehouse-sidebar-open):not(.mshub-warehouse-active):not(.mshub-language-modal-open):not(.mshub-mobile-language-sheet-open) {
            width: 100% !important;
            max-width: 100% !important;
            min-height: -webkit-fill-available !important;
            overflow-x: hidden !important;
            overflow-y: auto !important;
            padding-top: 0 !important;
            padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)) !important;
            background: #f6f8fb !important;
        }

        html body.mshub-authenticated .main-content {
            width: 100% !important;
            max-width: 100% !important;
            margin-left: 0 !important;
            padding: max(6px, env(safe-area-inset-top, 0px)) 0 calc(102px + env(safe-area-inset-bottom, 0px)) !important;
            overflow-x: hidden !important;
        }

        html body.mshub-authenticated .main-content > .modern-navbar,
        html body.mshub-authenticated .modern-navbar.glass-container {
            position: relative !important;
            top: auto !important;
            left: auto !important;
            right: auto !important;
            width: auto !important;
            max-width: none !important;
            min-height: 68px !important;
            margin: 0 max(10px, env(safe-area-inset-right, 0px)) 12px max(10px, env(safe-area-inset-left, 0px)) !important;
            padding: 8px 9px !important;
            border-radius: 20px !important;
            transform: none !important;
            -webkit-transform: none !important;
            overflow: hidden !important;
        }

        html body.mshub-authenticated nav.mobile-bottom-nav,
        html body.mshub-authenticated .mobile-bottom-nav {
            left: max(10px, env(safe-area-inset-left, 0px)) !important;
            right: max(10px, env(safe-area-inset-right, 0px)) !important;
            bottom: max(8px, env(safe-area-inset-bottom, 0px)) !important;
            width: auto !important;
            max-width: none !important;
            height: 68px !important;
            min-height: 68px !important;
            max-height: 68px !important;
            padding: 5px !important;
            border-radius: 21px !important;
            gap: 4px !important;
            overflow: visible !important;
        }

        html body.mshub-authenticated nav.mobile-bottom-nav .mobile-nav-item,
        html body.mshub-authenticated .mobile-bottom-nav .mobile-nav-item {
            min-height: 56px !important;
            height: 56px !important;
            max-height: 56px !important;
            padding: 5px 2px 4px !important;
            border-radius: 16px !important;
            gap: 3px !important;
        }

        html body.mshub-authenticated nav.mobile-bottom-nav .mobile-nav-item i,
        html body.mshub-authenticated .mobile-bottom-nav .mobile-nav-item i {
            font-size: 20px !important;
        }

        html body.mshub-authenticated nav.mobile-bottom-nav .mobile-nav-item span:not(.mobile-nav-badge),
        html body.mshub-authenticated .mobile-bottom-nav .mobile-nav-item span:not(.mobile-nav-badge) {
            font-size: 9.8px !important;
            line-height: 1.05 !important;
        }

        html body.mshub-authenticated .admin-command-center,
        html body.mshub-authenticated .user-dashboard-page,
        html body.mshub-authenticated .main-container {
            width: 100% !important;
            max-width: 100% !important;
            overflow-x: hidden !important;
            padding-left: max(10px, env(safe-area-inset-left, 0px)) !important;
            padding-right: max(10px, env(safe-area-inset-right, 0px)) !important;
            padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px)) !important;
        }

        html body.mshub-cars-page .cars-header,
        html body.mshub-cars-page .filter-section,
        html body.mshub-cars-page .car-card {
            backdrop-filter: none !important;
            -webkit-backdrop-filter: none !important;
        }

        html body.mshub-cars-page .stats-grid,
        html body.mshub-cars-page .car-info-grid,
        html body.mshub-cars-page .car-badges,
        html body.mshub-cars-page .oil-indicator,
        html body.mshub-cars-page .service-lock-panel,
        html body.mshub-cars-page .card-actions {
            display: none !important;
        }
    }
}

/* 20260618g: final iPhone/Safari authenticated compact shell. */
@supports (-webkit-touch-callout: none) {
    @media (max-width: 991.98px) {
        html body.mshub-authenticated,
        html body.mshub-authenticated:not(.modal-open):not(.mobile-menu-open):not(.warehouse-sidebar-open):not(.mshub-warehouse-active):not(.mshub-language-modal-open):not(.mshub-mobile-language-sheet-open) {
            width: 100% !important;
            max-width: 100% !important;
            min-height: -webkit-fill-available !important;
            overflow-x: hidden !important;
            overflow-y: auto !important;
            padding-top: 0 !important;
            padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)) !important;
            background: #f6f8fb !important;
        }

        html body.mshub-authenticated .main-content {
            width: 100% !important;
            max-width: 100% !important;
            margin-left: 0 !important;
            padding: max(6px, env(safe-area-inset-top, 0px)) 0 calc(102px + env(safe-area-inset-bottom, 0px)) !important;
            overflow-x: hidden !important;
        }

        html body.mshub-authenticated .main-content > .modern-navbar,
        html body.mshub-authenticated .modern-navbar.glass-container {
            position: relative !important;
            top: auto !important;
            left: auto !important;
            right: auto !important;
            width: auto !important;
            max-width: none !important;
            min-height: 68px !important;
            margin: 0 max(10px, env(safe-area-inset-right, 0px)) 12px max(10px, env(safe-area-inset-left, 0px)) !important;
            padding: 8px 9px !important;
            border-radius: 20px !important;
            transform: none !important;
            -webkit-transform: none !important;
            overflow: hidden !important;
        }

        html body.mshub-authenticated nav.mobile-bottom-nav,
        html body.mshub-authenticated .mobile-bottom-nav {
            left: max(10px, env(safe-area-inset-left, 0px)) !important;
            right: max(10px, env(safe-area-inset-right, 0px)) !important;
            bottom: max(8px, env(safe-area-inset-bottom, 0px)) !important;
            width: auto !important;
            max-width: none !important;
            height: 68px !important;
            min-height: 68px !important;
            max-height: 68px !important;
            padding: 5px !important;
            border-radius: 21px !important;
            gap: 4px !important;
            overflow: visible !important;
        }

        html body.mshub-authenticated nav.mobile-bottom-nav .mobile-nav-item,
        html body.mshub-authenticated .mobile-bottom-nav .mobile-nav-item {
            min-height: 56px !important;
            height: 56px !important;
            max-height: 56px !important;
            padding: 5px 2px 4px !important;
            border-radius: 16px !important;
            gap: 3px !important;
        }

        html body.mshub-authenticated nav.mobile-bottom-nav .mobile-nav-item i,
        html body.mshub-authenticated .mobile-bottom-nav .mobile-nav-item i {
            font-size: 20px !important;
        }

        html body.mshub-authenticated nav.mobile-bottom-nav .mobile-nav-item span:not(.mobile-nav-badge),
        html body.mshub-authenticated .mobile-bottom-nav .mobile-nav-item span:not(.mobile-nav-badge) {
            font-size: 9.8px !important;
            line-height: 1.05 !important;
        }

        html body.mshub-authenticated .admin-command-center,
        html body.mshub-authenticated .user-dashboard-page,
        html body.mshub-authenticated .main-container {
            width: 100% !important;
            max-width: 100% !important;
            overflow-x: hidden !important;
            padding-left: max(10px, env(safe-area-inset-left, 0px)) !important;
            padding-right: max(10px, env(safe-area-inset-right, 0px)) !important;
            padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px)) !important;
        }

        html body.mshub-cars-page .cars-header,
        html body.mshub-cars-page .filter-section,
        html body.mshub-cars-page .car-card {
            backdrop-filter: none !important;
            -webkit-backdrop-filter: none !important;
        }

        html body.mshub-cars-page .stats-grid,
        html body.mshub-cars-page .car-info-grid,
        html body.mshub-cars-page .car-badges,
        html body.mshub-cars-page .oil-indicator,
        html body.mshub-cars-page .service-lock-panel,
        html body.mshub-cars-page .card-actions {
            display: none !important;
        }
    }
}

@media (max-width: 380px) {
    .container,
    .container-fluid {
        padding-left: max(10px, var(--mshub-safe-left)) !important;
        padding-right: max(10px, var(--mshub-safe-right)) !important;
    }

    .btn,
    button,
    .form-control,
    .form-select,
    .dropdown-item {
        min-height: 42px !important;
    }

    .mobile-bottom-nav .mobile-nav-item span:not(.mobile-nav-badge) {
        font-size: 8.5px !important;
    }
}

/* 20260618j: final override. Floating notification/compact tools are disabled; use Meniu. */
@media (max-width: 991.98px), (hover: none) and (pointer: coarse) {
    html body.mshub-authenticated .mshub-app-center-fab,
    html body.mshub-authenticated #mshubAppCenterToggle,
    html body.mshub-authenticated .mshub-compact-toggle,
    html body.mshub-authenticated .mshub-push-toggle {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    html body.mshub-authenticated #mshubCompactMenuToggle:not([hidden]),
    html body.mshub-authenticated #mshubAppCenterMenuToggle {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
}

/* 20260618l: Management Masini mobile card density pass. */
@media (max-width: 575.98px) {
    html body.mshub-cars-page .main-container {
        padding-left: max(6px, env(safe-area-inset-left, 0px)) !important;
        padding-right: max(6px, env(safe-area-inset-right, 0px)) !important;
    }

    html body.mshub-cars-page .cars-header,
    html body.mshub-cars-page .filter-section,
    html body.mshub-cars-page .car-card {
        border-radius: 14px !important;
    }

    html body.mshub-cars-page .cars-header {
        padding: 12px 10px !important;
        margin-bottom: 10px !important;
    }

    html body.mshub-cars-page .filter-section {
        padding: 10px !important;
        margin-bottom: 10px !important;
    }

    html body.mshub-cars-page .filter-grid {
        gap: 8px !important;
    }

    html body.mshub-cars-page .search-box,
    html body.mshub-cars-page .search-input,
    html body.mshub-cars-page .filter-select,
    html body.mshub-cars-page .select2-container .select2-selection--single {
        min-height: 40px !important;
        height: 40px !important;
        border-radius: 10px !important;
    }

    html body.mshub-cars-page .car-card {
        padding: 10px !important;
        margin-bottom: 10px !important;
        overflow: visible !important;
        box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08) !important;
    }

    html body.mshub-cars-page .car-card-header {
        align-items: center !important;
        gap: 8px !important;
        margin-bottom: 8px !important;
        padding-bottom: 8px !important;
    }

    html body.mshub-cars-page .car-title {
        min-width: 0 !important;
        gap: 7px !important;
    }

    html body.mshub-cars-page .car-icon,
    html body.mshub-cars-page .service-icon-btn {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        border-radius: 10px !important;
        font-size: 14px !important;
    }

    html body.mshub-cars-page .license-plate {
        max-width: 140px !important;
        padding: 7px 10px !important;
        border-radius: 9px !important;
        font-size: 13px !important;
        line-height: 1 !important;
        letter-spacing: 0 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    html body.mshub-cars-page .car-actions {
        flex: 0 0 auto !important;
        gap: 6px !important;
        margin-left: auto !important;
    }

    html body.mshub-cars-page .action-btn {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        border-radius: 10px !important;
        border-width: 1px !important;
        font-size: 13px !important;
    }

    html body.mshub-cars-page .notification-badge {
        min-width: 16px !important;
        height: 16px !important;
        padding: 0 4px !important;
        font-size: 10px !important;
        line-height: 16px !important;
        top: -6px !important;
        right: -6px !important;
    }

    html body.mshub-cars-page .car-info-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        grid-auto-rows: auto !important;
        align-items: stretch !important;
        gap: 7px !important;
        margin: 0 0 8px !important;
    }

    html body.mshub-cars-page .car-info-grid > .info-item {
        min-height: 54px !important;
        height: auto !important;
        padding: 7px !important;
        gap: 6px !important;
        border-radius: 10px !important;
        align-items: center !important;
    }

    html body.mshub-cars-page .car-info-grid > .info-item:nth-child(5) {
        grid-column: 1 / -1 !important;
    }

    html body.mshub-cars-page .info-icon {
        width: 26px !important;
        height: 26px !important;
        min-width: 26px !important;
        border-radius: 8px !important;
        font-size: 12px !important;
    }

    html body.mshub-cars-page .info-label {
        font-size: 9px !important;
        line-height: 1 !important;
        margin-bottom: 2px !important;
    }

    html body.mshub-cars-page .info-value {
        font-size: 11px !important;
        line-height: 1.1 !important;
        font-weight: 800 !important;
    }

    html body.mshub-cars-page .oil-indicator,
    html body.mshub-cars-page .service-lock-panel {
        margin-top: 8px !important;
        padding: 8px !important;
        border-radius: 10px !important;
    }

    html body.mshub-cars-page .card-actions {
        gap: 6px !important;
        margin-top: 8px !important;
    }

    html body.mshub-cars-page .card-actions .btn {
        min-height: 36px !important;
        padding: 7px 8px !important;
        border-radius: 10px !important;
        font-size: 11px !important;
    }
}

/* 20260618m-final: filters must beat all mobile card display rules. */
html body.mshub-cars-page .car-card[hidden],
html body.mshub-cars-page .car-card.mshub-filter-hidden {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* 20260620k: Chat create-group modal touch shield and mobile sheet polish. */
html body.mshub-chat-page.mshub-modal-active,
html body.mshub-chat-page.modal-open {
    overflow: hidden !important;
    touch-action: none !important;
    overscroll-behavior: none !important;
}

html body.mshub-chat-page.mshub-modal-active .main-content,
html body.mshub-chat-page.mshub-modal-active .chat-container,
html body.mshub-chat-page.mshub-modal-active .mobile-bottom-nav,
html body.mshub-chat-page.mshub-modal-active .mshub-mobile-bottom-nav,
html body.mshub-chat-page.mshub-modal-active .mshub-app-center {
    pointer-events: none !important;
}

html body.mshub-chat-page #createGroupModal:not(.show) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

html body.mshub-chat-page #createGroupModal:not(.show) *,
html body.mshub-chat-page:not(.mshub-modal-active) #createGroupModal * {
    visibility: hidden !important;
    pointer-events: none !important;
}

html body.mshub-chat-page.mshub-modal-active #createGroupModal,
html body.mshub-chat-page #createGroupModal.show {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100svh !important;
    height: 100dvh !important;
    margin: 0 !important;
    padding: max(10px, env(safe-area-inset-top, 0px)) max(10px, env(safe-area-inset-right, 0px)) max(10px, env(safe-area-inset-bottom, 0px)) max(10px, env(safe-area-inset-left, 0px)) !important;
    z-index: 2147483600 !important;
    overflow: hidden !important;
    pointer-events: auto !important;
    touch-action: none !important;
    overscroll-behavior: contain !important;
    background: rgba(15, 23, 42, 0.58) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}

html body.mshub-chat-page.mshub-modal-active #createGroupModal .modal-dialog,
html body.mshub-chat-page #createGroupModal.show .modal-dialog {
    position: relative !important;
    z-index: 2147483601 !important;
    width: min(100%, 620px) !important;
    max-width: min(100%, 620px) !important;
    height: auto !important;
    max-height: calc(100dvh - 20px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) !important;
    margin: auto !important;
    pointer-events: auto !important;
    touch-action: auto !important;
    display: flex !important;
    align-items: stretch !important;
}

html body.mshub-chat-page.mshub-modal-active #createGroupModal .modern-modal-content,
html body.mshub-chat-page #createGroupModal.show .modern-modal-content {
    position: relative !important;
    z-index: 2147483602 !important;
    width: 100% !important;
    max-height: inherit !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    pointer-events: auto !important;
    touch-action: auto !important;
    background: #ffffff !important;
    border: 1px solid rgba(226, 232, 240, 0.95) !important;
    border-radius: 18px !important;
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.34) !important;
}

html body.mshub-chat-page.mshub-modal-active #createGroupModal form,
html body.mshub-chat-page #createGroupModal.show form {
    min-height: 0 !important;
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

html body.mshub-chat-page.mshub-modal-active #createGroupModal .modern-modal-body,
html body.mshub-chat-page #createGroupModal.show .modern-modal-body {
    min-height: 0 !important;
    flex: 1 1 auto !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-y !important;
    overscroll-behavior: contain !important;
}

html body.mshub-chat-page.mshub-modal-active #createGroupModal input,
html body.mshub-chat-page.mshub-modal-active #createGroupModal textarea,
html body.mshub-chat-page.mshub-modal-active #createGroupModal button,
html body.mshub-chat-page.mshub-modal-active #createGroupModal label,
html body.mshub-chat-page.mshub-modal-active #createGroupModal .member-item,
html body.mshub-chat-page.mshub-modal-active #createGroupModal .checkbox-label,
html body.mshub-chat-page.mshub-modal-active #createGroupModal .members-selection-modern,
html body.mshub-chat-page.mshub-modal-active #createGroupModal .selected-members-preview,
html body.mshub-chat-page #createGroupModal.show input,
html body.mshub-chat-page #createGroupModal.show textarea,
html body.mshub-chat-page #createGroupModal.show button,
html body.mshub-chat-page #createGroupModal.show label,
html body.mshub-chat-page #createGroupModal.show .member-item,
html body.mshub-chat-page #createGroupModal.show .checkbox-label,
html body.mshub-chat-page #createGroupModal.show .members-selection-modern,
html body.mshub-chat-page #createGroupModal.show .selected-members-preview {
    pointer-events: auto !important;
    touch-action: manipulation !important;
}

html body.mshub-chat-page.mshub-modal-active #createGroupModal .modern-btn-close,
html body.mshub-chat-page.mshub-modal-active #createGroupModal .modern-btn,
html body.mshub-chat-page #createGroupModal.show .modern-btn-close,
html body.mshub-chat-page #createGroupModal.show .modern-btn {
    min-width: 44px !important;
    min-height: 44px !important;
}

html body.mshub-chat-page #createGroupModal .modal-backdrop,
html body.mshub-chat-page .modal-backdrop.show {
    z-index: 2147483599 !important;
    pointer-events: auto !important;
}

@media (max-width: 575.98px) {
    html body.mshub-chat-page.mshub-modal-active #createGroupModal,
    html body.mshub-chat-page #createGroupModal.show {
        display: flex !important;
        align-items: flex-end !important;
        justify-content: center !important;
        padding: max(8px, env(safe-area-inset-top, 0px)) max(8px, env(safe-area-inset-right, 0px)) max(8px, env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px)) !important;
    }

    html body.mshub-chat-page.mshub-modal-active #createGroupModal .modal-dialog,
    html body.mshub-chat-page #createGroupModal.show .modal-dialog {
        width: 100% !important;
        max-width: 100% !important;
        max-height: calc(100dvh - 16px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) !important;
        margin: 0 !important;
        transform: none !important;
    }

    html body.mshub-chat-page.mshub-modal-active #createGroupModal .modern-modal-content,
    html body.mshub-chat-page #createGroupModal.show .modern-modal-content {
        border-radius: 18px !important;
        max-height: inherit !important;
    }

    html body.mshub-chat-page.mshub-modal-active #createGroupModal .modern-modal-header,
    html body.mshub-chat-page #createGroupModal.show .modern-modal-header {
        grid-template-columns: 44px minmax(0, 1fr) 44px !important;
        gap: 4px 10px !important;
        padding: 13px 14px 12px !important;
        flex: 0 0 auto !important;
    }

    html body.mshub-chat-page.mshub-modal-active #createGroupModal .modal-icon-circle,
    html body.mshub-chat-page #createGroupModal.show .modal-icon-circle {
        width: 42px !important;
        height: 42px !important;
        border-radius: 13px !important;
    }

    html body.mshub-chat-page.mshub-modal-active #createGroupModal .modal-icon-circle i,
    html body.mshub-chat-page #createGroupModal.show .modal-icon-circle i {
        font-size: 18px !important;
    }

    html body.mshub-chat-page.mshub-modal-active #createGroupModal .modern-modal-title,
    html body.mshub-chat-page #createGroupModal.show .modern-modal-title {
        font-size: 18px !important;
        line-height: 1.15 !important;
    }

    html body.mshub-chat-page.mshub-modal-active #createGroupModal .modern-modal-subtitle,
    html body.mshub-chat-page #createGroupModal.show .modern-modal-subtitle {
        font-size: 12px !important;
        line-height: 1.25 !important;
    }

    html body.mshub-chat-page.mshub-modal-active #createGroupModal .modern-btn-close,
    html body.mshub-chat-page #createGroupModal.show .modern-btn-close {
        width: 44px !important;
        height: 44px !important;
        border-radius: 13px !important;
    }

    html body.mshub-chat-page.mshub-modal-active #createGroupModal .modern-modal-body,
    html body.mshub-chat-page #createGroupModal.show .modern-modal-body {
        max-height: none !important;
        padding: 14px !important;
    }

    html body.mshub-chat-page.mshub-modal-active #createGroupModal .form-group-modern,
    html body.mshub-chat-page #createGroupModal.show .form-group-modern {
        margin-bottom: 14px !important;
    }

    html body.mshub-chat-page.mshub-modal-active #createGroupModal .modern-input,
    html body.mshub-chat-page.mshub-modal-active #createGroupModal .modern-search-input,
    html body.mshub-chat-page.mshub-modal-active #createGroupModal .modern-textarea,
    html body.mshub-chat-page #createGroupModal.show .modern-input,
    html body.mshub-chat-page #createGroupModal.show .modern-search-input,
    html body.mshub-chat-page #createGroupModal.show .modern-textarea {
        min-height: 46px !important;
        font-size: 16px !important;
        border-radius: 13px !important;
    }

    html body.mshub-chat-page.mshub-modal-active #createGroupModal .modern-textarea,
    html body.mshub-chat-page #createGroupModal.show .modern-textarea {
        min-height: 84px !important;
    }

    html body.mshub-chat-page.mshub-modal-active #createGroupModal .members-selection-modern,
    html body.mshub-chat-page #createGroupModal.show .members-selection-modern {
        max-height: min(31dvh, 230px) !important;
    }

    html body.mshub-chat-page.mshub-modal-active #createGroupModal .checkbox-label,
    html body.mshub-chat-page #createGroupModal.show .checkbox-label {
        min-height: 54px !important;
        padding: 9px !important;
    }

    html body.mshub-chat-page.mshub-modal-active #createGroupModal .modern-modal-footer,
    html body.mshub-chat-page #createGroupModal.show .modern-modal-footer {
        flex: 0 0 auto !important;
        position: relative !important;
        bottom: auto !important;
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
        padding: 12px 14px max(12px, env(safe-area-inset-bottom, 0px)) !important;
    }

    html body.mshub-chat-page.mshub-modal-active #createGroupModal .modern-btn,
    html body.mshub-chat-page #createGroupModal.show .modern-btn {
        width: 100% !important;
        padding: 9px 10px !important;
        border-radius: 13px !important;
        font-size: 13px !important;
        white-space: normal !important;
    }
}

/* 20260618n-last: compact Add Car modal after all mobile overrides. */
@media (max-width: 575.98px) {
    html body.mshub-cars-page #addCarModal .modal-dialog {
        width: calc(100vw - 16px) !important;
        max-width: calc(100vw - 16px) !important;
        height: auto !important;
        min-height: 0 !important;
        margin: max(6px, env(safe-area-inset-top, 0px)) auto max(8px, env(safe-area-inset-bottom, 0px)) !important;
        padding: 0 !important;
        align-items: flex-start !important;
    }

    html body.mshub-cars-page #addCarModal .modal-content.dark-modal {
        width: 100% !important;
        max-height: calc(100dvh - 16px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) !important;
        max-height: calc(100svh - 16px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) !important;
        border-radius: 14px !important;
        overflow: hidden !important;
    }

    html body.mshub-cars-page #addCarModal .modal-header.dark-header {
        min-height: 50px !important;
        padding: 10px 12px !important;
        border-radius: 14px 14px 0 0 !important;
    }

    html body.mshub-cars-page #addCarModal .modal-title {
        min-width: 0 !important;
        font-size: 15px !important;
        line-height: 1.15 !important;
        gap: 6px !important;
    }

    html body.mshub-cars-page #addCarModal .btn-close,
    html body.mshub-cars-page #addCarModal .btn-close-white {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        min-height: 34px !important;
        margin: 0 !important;
        padding: 0 !important;
        background-size: 14px !important;
    }

    html body.mshub-cars-page #addCarModal .modal-body.dark-body {
        padding: 10px 10px 0 !important;
        max-height: calc(100dvh - 70px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) !important;
        max-height: calc(100svh - 70px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    html body.mshub-cars-page #addCarModal .compact-form,
    html body.mshub-cars-page #addCarModal .dark-form {
        gap: 8px !important;
    }

    html body.mshub-cars-page #addCarModal .form-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }

    html body.mshub-cars-page #addCarModal .dark-form-group,
    html body.mshub-cars-page #addCarModal .form-group {
        min-height: 0 !important;
        padding: 8px !important;
        gap: 5px !important;
        border-radius: 10px !important;
    }

    html body.mshub-cars-page #addCarModal .dark-label,
    html body.mshub-cars-page #addCarModal .form-label {
        min-height: 18px !important;
        margin: 0 !important;
        font-size: 12px !important;
        line-height: 1.1 !important;
        gap: 5px !important;
    }

    html body.mshub-cars-page #addCarModal .dark-label i,
    html body.mshub-cars-page #addCarModal .form-label i {
        width: 14px !important;
        min-width: 14px !important;
        font-size: 12px !important;
    }

    html body.mshub-cars-page #addCarModal .form-control-dark,
    html body.mshub-cars-page #addCarModal .select2-brand,
    html body.mshub-cars-page #addCarModal .dark-form select {
        height: 42px !important;
        min-height: 42px !important;
        padding: 8px 10px !important;
        border-radius: 9px !important;
        font-size: 16px !important;
        line-height: 1.2 !important;
    }

    html body.mshub-cars-page #addCarModal .input-with-suffix .form-control-dark {
        padding-right: 34px !important;
    }

    html body.mshub-cars-page #addCarModal .input-suffix {
        right: 11px !important;
        font-size: 12px !important;
    }

    html body.mshub-cars-page #addCarModal .cleanliness-section {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        padding: 8px !important;
        border-radius: 10px !important;
    }

    html body.mshub-cars-page #addCarModal .cleanliness-item {
        gap: 6px !important;
        min-width: 0 !important;
    }

    html body.mshub-cars-page #addCarModal .cleanliness-label {
        font-size: 12px !important;
        line-height: 1.1 !important;
        gap: 5px !important;
    }

    html body.mshub-cars-page #addCarModal .cleanliness-toggle {
        gap: 6px !important;
    }

    html body.mshub-cars-page #addCarModal .clean-toggle {
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
        min-height: 42px !important;
        border-radius: 10px !important;
        font-size: 14px !important;
    }

    html body.mshub-cars-page #addCarModal .modal-footer.dark-footer {
        position: sticky !important;
        bottom: 0 !important;
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        margin: 0 -10px !important;
        padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px)) !important;
        border-radius: 0 0 14px 14px !important;
        z-index: 2 !important;
    }

    html body.mshub-cars-page #addCarModal .btn-dark-cancel,
    html body.mshub-cars-page #addCarModal .btn-orange {
        width: 100% !important;
        min-height: 42px !important;
        height: 42px !important;
        padding: 8px 7px !important;
        border-radius: 10px !important;
        font-size: 12px !important;
        line-height: 1.1 !important;
        gap: 5px !important;
        white-space: nowrap !important;
    }
}

/* 20260618n: compact Add Car modal on phones. */
@media (max-width: 575.98px) {
    html body.mshub-cars-page #addCarModal .modal-dialog {
        width: calc(100vw - 16px) !important;
        max-width: calc(100vw - 16px) !important;
        height: auto !important;
        min-height: 0 !important;
        margin: max(6px, env(safe-area-inset-top, 0px)) auto max(8px, env(safe-area-inset-bottom, 0px)) !important;
        padding: 0 !important;
        align-items: flex-start !important;
    }

    html body.mshub-cars-page #addCarModal .modal-content.dark-modal {
        width: 100% !important;
        max-height: calc(100dvh - 16px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) !important;
        max-height: calc(100svh - 16px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) !important;
        border-radius: 14px !important;
        overflow: hidden !important;
    }

    html body.mshub-cars-page #addCarModal .modal-header.dark-header {
        min-height: 50px !important;
        padding: 10px 12px !important;
        border-radius: 14px 14px 0 0 !important;
    }

    html body.mshub-cars-page #addCarModal .modal-title {
        min-width: 0 !important;
        font-size: 15px !important;
        line-height: 1.15 !important;
        gap: 6px !important;
    }

    html body.mshub-cars-page #addCarModal .btn-close,
    html body.mshub-cars-page #addCarModal .btn-close-white {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        min-height: 34px !important;
        margin: 0 !important;
        padding: 0 !important;
        background-size: 14px !important;
    }

    html body.mshub-cars-page #addCarModal .modal-body.dark-body {
        padding: 10px 10px 0 !important;
        max-height: calc(100dvh - 70px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) !important;
        max-height: calc(100svh - 70px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    html body.mshub-cars-page #addCarModal .compact-form,
    html body.mshub-cars-page #addCarModal .dark-form {
        gap: 8px !important;
    }

    html body.mshub-cars-page #addCarModal .form-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }

    html body.mshub-cars-page #addCarModal .dark-form-group,
    html body.mshub-cars-page #addCarModal .form-group {
        min-height: 0 !important;
        padding: 8px !important;
        gap: 5px !important;
        border-radius: 10px !important;
    }

    html body.mshub-cars-page #addCarModal .dark-label,
    html body.mshub-cars-page #addCarModal .form-label {
        min-height: 18px !important;
        margin: 0 !important;
        font-size: 12px !important;
        line-height: 1.1 !important;
        gap: 5px !important;
    }

    html body.mshub-cars-page #addCarModal .dark-label i,
    html body.mshub-cars-page #addCarModal .form-label i {
        width: 14px !important;
        min-width: 14px !important;
        font-size: 12px !important;
    }

    html body.mshub-cars-page #addCarModal .form-control-dark,
    html body.mshub-cars-page #addCarModal .select2-brand,
    html body.mshub-cars-page #addCarModal .dark-form select {
        height: 42px !important;
        min-height: 42px !important;
        padding: 8px 10px !important;
        border-radius: 9px !important;
        font-size: 16px !important;
        line-height: 1.2 !important;
    }

    html body.mshub-cars-page #addCarModal .input-with-suffix .form-control-dark {
        padding-right: 34px !important;
    }

    html body.mshub-cars-page #addCarModal .input-suffix {
        right: 11px !important;
        font-size: 12px !important;
    }

    html body.mshub-cars-page #addCarModal .cleanliness-section {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        padding: 8px !important;
        border-radius: 10px !important;
    }

    html body.mshub-cars-page #addCarModal .cleanliness-item {
        gap: 6px !important;
        min-width: 0 !important;
    }

    html body.mshub-cars-page #addCarModal .cleanliness-label {
        font-size: 12px !important;
        line-height: 1.1 !important;
        gap: 5px !important;
    }

    html body.mshub-cars-page #addCarModal .cleanliness-toggle {
        gap: 6px !important;
    }

    html body.mshub-cars-page #addCarModal .clean-toggle {
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
        min-height: 42px !important;
        border-radius: 10px !important;
        font-size: 14px !important;
    }

    html body.mshub-cars-page #addCarModal .modal-footer.dark-footer {
        position: sticky !important;
        bottom: 0 !important;
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        margin: 0 -10px !important;
        padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px)) !important;
        border-radius: 0 0 14px 14px !important;
        z-index: 2 !important;
    }

    html body.mshub-cars-page #addCarModal .btn-dark-cancel,
    html body.mshub-cars-page #addCarModal .btn-orange {
        width: 100% !important;
        min-height: 42px !important;
        height: 42px !important;
        padding: 8px 7px !important;
        border-radius: 10px !important;
        font-size: 12px !important;
        line-height: 1.1 !important;
        gap: 5px !important;
        white-space: nowrap !important;
    }
}

/* 20260618m-last: filtered car cards stay hidden after every mobile override. */
html body.mshub-cars-page .car-card[hidden],
html body.mshub-cars-page .car-card.mshub-filter-hidden {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* 20260618m-final: filters must beat mobile card display rules. */
html body.mshub-cars-page .car-card[hidden],
html body.mshub-cars-page .car-card.mshub-filter-hidden {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* 20260618o: Equipment page mobile compact pass. */
@media (max-width: 575.98px) {
    html body.mshub-equipment-page .main-container,
    html body.mshub-equipment-page .container,
    html body.mshub-equipment-page .container-fluid {
        padding-left: max(8px, env(safe-area-inset-left, 0px)) !important;
        padding-right: max(8px, env(safe-area-inset-right, 0px)) !important;
    }

    html body.mshub-equipment-page .equipment-header {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        padding: 10px !important;
        margin: 0 0 10px !important;
        border-radius: 14px !important;
        overflow: hidden !important;
        box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    html body.mshub-equipment-page .equipment-header .header-content {
        display: grid !important;
        place-items: center !important;
        gap: 4px !important;
        min-height: 0 !important;
        text-align: center !important;
    }

    html body.mshub-equipment-page .equipment-header .page-heading {
        width: 100% !important;
        min-height: 0 !important;
        margin: 0 !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        font-size: 22px !important;
        line-height: 1.05 !important;
        letter-spacing: 0 !important;
        text-align: center !important;
    }

    html body.mshub-equipment-page .equipment-header .page-heading i {
        font-size: 15px !important;
        margin: 0 !important;
    }

    html body.mshub-equipment-page .equipment-header .page-subtitle {
        display: none !important;
    }

    html body.mshub-equipment-page .equipment-header .header-actions {
        display: grid !important;
        grid-template-columns: 48px minmax(0, 1fr) !important;
        gap: 8px !important;
        width: 100% !important;
        min-width: 0 !important;
        align-items: stretch !important;
    }

    html body.mshub-equipment-page .equipment-header .view-filter-toggle {
        grid-column: 1 / -1 !important;
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 6px !important;
        width: 100% !important;
        min-width: 0 !important;
        padding: 3px !important;
        border-radius: 12px !important;
    }

    html body.mshub-equipment-page .equipment-header .view-filter-toggle .btn {
        width: 100% !important;
        min-width: 0 !important;
        min-height: 42px !important;
        height: 42px !important;
        padding: 7px 8px !important;
        border-radius: 10px !important;
        font-size: 0 !important;
        line-height: 1 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        transform: none !important;
    }

    html body.mshub-equipment-page .equipment-header .view-filter-toggle .btn i {
        margin: 0 !important;
        font-size: 15px !important;
    }

    html body.mshub-equipment-page .equipment-header .view-filter-toggle .btn-text {
        display: none !important;
    }

    html body.mshub-equipment-page .equipment-header #toggleWarehouseBtn,
    html body.mshub-equipment-page .equipment-header .header-actions > .btn-premium {
        min-height: 42px !important;
        height: 42px !important;
        padding: 8px 10px !important;
        border-radius: 10px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        width: 100% !important;
        min-width: 0 !important;
        font-size: 13px !important;
        line-height: 1 !important;
        transform: none !important;
    }

    html body.mshub-equipment-page .equipment-header #toggleWarehouseBtn {
        font-size: 0 !important;
    }

    html body.mshub-equipment-page .equipment-header #toggleWarehouseBtn .btn-text {
        display: none !important;
    }

    html body.mshub-equipment-page .equipment-header #toggleWarehouseBtn i,
    html body.mshub-equipment-page .equipment-header .header-actions > .btn-premium i {
        margin: 0 !important;
        font-size: 15px !important;
    }

    html body.mshub-equipment-page .equipment-summary {
        margin-bottom: 8px !important;
    }

    html body.mshub-equipment-page .equipment-summary .row {
        --bs-gutter-x: 8px !important;
        --bs-gutter-y: 8px !important;
    }

    html body.mshub-equipment-page .equipment-summary [class*="col-"] {
        margin-bottom: 0 !important;
    }

    html body.mshub-equipment-page .summary-card {
        min-height: 58px !important;
        padding: 9px !important;
        border-radius: 12px !important;
        gap: 8px !important;
    }

    html body.mshub-equipment-page .summary-card .summary-icon {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        border-radius: 10px !important;
        font-size: 14px !important;
    }

    html body.mshub-equipment-page .summary-card h4,
    html body.mshub-equipment-page .summary-card .counter {
        margin: 0 !important;
        font-size: 18px !important;
        line-height: 1 !important;
    }

    html body.mshub-equipment-page .summary-card span {
        font-size: 11px !important;
        line-height: 1.1 !important;
    }

    html body.mshub-equipment-page #employeeEquipmentGrid {
        --bs-gutter-x: 0 !important;
        --bs-gutter-y: 10px !important;
    }

    html body.mshub-equipment-page .employee-equipment-card {
        margin-bottom: 10px !important;
    }

    html body.mshub-equipment-page .employee-card {
        min-height: 0 !important;
        border-radius: 14px !important;
        overflow: hidden !important;
        box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    html body.mshub-equipment-page .employee-card .employee-header {
        display: grid !important;
        grid-template-columns: 36px minmax(0, 1fr) auto !important;
        align-items: center !important;
        gap: 8px !important;
        padding: 10px !important;
        text-align: left !important;
    }

    html body.mshub-equipment-page .employee-card .employee-avatar {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        border-radius: 10px !important;
        font-size: 14px !important;
        margin: 0 !important;
    }

    html body.mshub-equipment-page .employee-card .employee-info {
        min-width: 0 !important;
    }

    html body.mshub-equipment-page .employee-card .employee-name {
        margin: 0 0 3px !important;
        font-size: 13px !important;
        line-height: 1.1 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    html body.mshub-equipment-page .employee-card .employee-department {
        justify-content: flex-start !important;
        margin: 0 !important;
        font-size: 11px !important;
        line-height: 1.1 !important;
    }

    html body.mshub-equipment-page .employee-card .employee-equipment-summary {
        justify-content: flex-start !important;
        gap: 5px !important;
        margin-top: 5px !important;
    }

    html body.mshub-equipment-page .employee-card .employee-equipment-summary span {
        min-height: 20px !important;
        padding: 3px 6px !important;
        border-radius: 999px !important;
        font-size: 10px !important;
        line-height: 1 !important;
        gap: 4px !important;
    }

    html body.mshub-equipment-page .employee-card .employee-actions {
        display: grid !important;
        grid-template-columns: repeat(2, 40px) !important;
        gap: 6px !important;
        align-self: end !important;
    }

    html body.mshub-equipment-page .employee-card .btn-action,
    html body.mshub-equipment-page .employee-card .btn-premium-action,
    html body.mshub-equipment-page .employee-card .btn-transfer {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
        border-radius: 11px !important;
        font-size: 14px !important;
        padding: 0 !important;
    }

    html body.mshub-equipment-page .equipment-list {
        padding: 8px 10px !important;
        max-height: none !important;
        overflow: visible !important;
    }

    html body.mshub-equipment-page .equipment-item.professional-item {
        display: grid !important;
        grid-template-columns: 32px minmax(0, 1fr) auto !important;
        align-items: center !important;
        gap: 8px !important;
        min-height: 54px !important;
        padding: 8px !important;
        margin-bottom: 7px !important;
        border-radius: 11px !important;
        transform: none !important;
    }

    html body.mshub-equipment-page .equipment-item .equipment-icon-wrapper {
        width: 30px !important;
        height: 30px !important;
        min-width: 30px !important;
        border-radius: 9px !important;
        font-size: 12px !important;
    }

    html body.mshub-equipment-page .equipment-item .equipment-details {
        min-width: 0 !important;
        display: grid !important;
        gap: 3px !important;
    }

    html body.mshub-equipment-page .equipment-item .equipment-name {
        font-size: 12px !important;
        line-height: 1.1 !important;
        font-weight: 800 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    html body.mshub-equipment-page .equipment-item .equipment-quantity,
    html body.mshub-equipment-page .equipment-item .equipment-serial {
        font-size: 10px !important;
        line-height: 1.1 !important;
    }

    html body.mshub-equipment-page .equipment-item .equipment-status {
        grid-column: 2 / 3 !important;
        justify-self: start !important;
        min-width: 0 !important;
    }

    html body.mshub-equipment-page .equipment-item .status-badge {
        min-height: 20px !important;
        padding: 3px 6px !important;
        border-radius: 999px !important;
        font-size: 10px !important;
        line-height: 1 !important;
        white-space: nowrap !important;
    }

    html body.mshub-equipment-page .equipment-item .equipment-transfer-action {
        grid-column: 3 / 4 !important;
        grid-row: 1 / 3 !important;
        align-self: center !important;
        position: static !important;
        opacity: 1 !important;
        transform: none !important;
    }

    html body.mshub-equipment-page .employee-card .card-footer {
        padding: 7px 10px calc(8px + env(safe-area-inset-bottom, 0px)) !important;
        font-size: 10px !important;
    }
}

/* 20260618p: Equipment transfer modal mobile compact pass. */
@media (max-width: 575.98px) {
    html body.mshub-equipment-page #transferToWarehouseModal {
        padding: max(6px, env(safe-area-inset-top, 0px)) max(6px, env(safe-area-inset-right, 0px)) max(8px, env(safe-area-inset-bottom, 0px)) max(6px, env(safe-area-inset-left, 0px)) !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    html body.mshub-equipment-page #transferToWarehouseModal .modal-dialog {
        width: calc(100vw - 16px) !important;
        max-width: calc(100vw - 16px) !important;
        min-height: 0 !important;
        height: auto !important;
        margin: 0 auto !important;
        padding: 0 !important;
        align-items: flex-start !important;
    }

    html body.mshub-equipment-page #transferToWarehouseModal .professional-modal-content {
        width: 100% !important;
        max-height: calc(100dvh - 18px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) !important;
        max-height: calc(100svh - 18px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) !important;
        border-radius: 14px !important;
        overflow: hidden !important;
    }

    html body.mshub-equipment-page #transferToWarehouseModal .professional-modal-header {
        min-height: 58px !important;
        padding: 10px 12px !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 34px !important;
        align-items: center !important;
        gap: 8px !important;
    }

    html body.mshub-equipment-page #transferToWarehouseModal .modal-title-content {
        display: grid !important;
        grid-template-columns: 34px minmax(0, 1fr) !important;
        align-items: center !important;
        gap: 8px !important;
        min-width: 0 !important;
    }

    html body.mshub-equipment-page #transferToWarehouseModal .modal-icon {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        border-radius: 9px !important;
        font-size: 13px !important;
    }

    html body.mshub-equipment-page #transferToWarehouseModal .modal-title {
        margin: 0 !important;
        font-size: 15px !important;
        line-height: 1.1 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    html body.mshub-equipment-page #transferToWarehouseModal .modal-subtitle {
        margin-top: 3px !important;
        font-size: 11px !important;
        line-height: 1.15 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    html body.mshub-equipment-page #transferToWarehouseModal .btn-close-premium {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        min-height: 32px !important;
        border-radius: 9px !important;
        margin: 0 !important;
    }

    html body.mshub-equipment-page #transferToWarehouseModal .professional-modal-body {
        padding: 10px !important;
        min-height: 0 !important;
        overflow-y: auto !important;
        max-height: calc(100dvh - 132px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) !important;
        max-height: calc(100svh - 132px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) !important;
    }

    html body.mshub-equipment-page #transferToWarehouseModal .transfer-options {
        display: grid !important;
        gap: 8px !important;
        padding: 0 !important;
        min-height: 0 !important;
    }

    html body.mshub-equipment-page #transferToWarehouseModal .premium-radio-group {
        display: grid !important;
        gap: 8px !important;
        margin-bottom: 8px !important;
    }

    html body.mshub-equipment-page #transferToWarehouseModal .premium-radio-card {
        min-height: 58px !important;
        border-radius: 12px !important;
        transform: none !important;
    }

    html body.mshub-equipment-page #transferToWarehouseModal .radio-card-content {
        display: grid !important;
        grid-template-columns: 34px minmax(0, 1fr) 22px !important;
        align-items: center !important;
        gap: 8px !important;
        padding: 8px !important;
    }

    html body.mshub-equipment-page #transferToWarehouseModal .radio-icon {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        border-radius: 9px !important;
    }

    html body.mshub-equipment-page #transferToWarehouseModal .radio-icon i {
        font-size: 13px !important;
    }

    html body.mshub-equipment-page #transferToWarehouseModal .radio-label {
        min-width: 0 !important;
    }

    html body.mshub-equipment-page #transferToWarehouseModal .radio-label strong {
        margin: 0 0 2px !important;
        font-size: 13px !important;
        line-height: 1.1 !important;
    }

    html body.mshub-equipment-page #transferToWarehouseModal .radio-label p {
        font-size: 10.5px !important;
        line-height: 1.15 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    html body.mshub-equipment-page #transferToWarehouseModal .radio-check {
        width: 20px !important;
        height: 20px !important;
        min-width: 20px !important;
        border-width: 1px !important;
    }

    html body.mshub-equipment-page #transferToWarehouseModal .radio-check i {
        font-size: 10px !important;
    }

    html body.mshub-equipment-page #transferToWarehouseModal .equipment-selection-list {
        padding: 8px !important;
        border-radius: 12px !important;
    }

    html body.mshub-equipment-page #transferToWarehouseModal .selection-header {
        margin-bottom: 8px !important;
    }

    html body.mshub-equipment-page #transferToWarehouseModal .selection-header h6 {
        font-size: 12px !important;
        line-height: 1.1 !important;
    }

    html body.mshub-equipment-page #transferToWarehouseModal .equipment-items {
        max-height: min(260px, 36dvh) !important;
        gap: 7px !important;
        padding-right: 2px !important;
        overflow-y: auto !important;
    }

    html body.mshub-equipment-page #transferToWarehouseModal .equipment-select-item {
        display: grid !important;
        grid-template-columns: 26px minmax(0, 1fr) 58px !important;
        align-items: center !important;
        gap: 7px !important;
        padding: 7px !important;
        border-radius: 10px !important;
    }

    html body.mshub-equipment-page #transferToWarehouseModal .equipment-checkbox,
    html body.mshub-equipment-page #transferToWarehouseModal .equipment-checkbox input[type="checkbox"] {
        width: 24px !important;
        height: 24px !important;
        min-width: 24px !important;
        min-height: 24px !important;
    }

    html body.mshub-equipment-page #transferToWarehouseModal .equipment-item-name {
        font-size: 12px !important;
        line-height: 1.1 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    html body.mshub-equipment-page #transferToWarehouseModal .equipment-item-meta {
        gap: 5px !important;
        font-size: 10px !important;
        line-height: 1.1 !important;
    }

    html body.mshub-equipment-page #transferToWarehouseModal .equipment-quantity-input {
        width: 58px !important;
    }

    html body.mshub-equipment-page #transferToWarehouseModal .equipment-quantity-input input {
        height: 34px !important;
        min-height: 34px !important;
        padding: 5px 4px !important;
        border-radius: 8px !important;
        font-size: 16px !important;
    }

    html body.mshub-equipment-page #transferToWarehouseModal #selectionInfo {
        margin-top: 8px !important;
        padding: 7px 9px !important;
        border-radius: 10px !important;
        font-size: 11px !important;
        line-height: 1.2 !important;
    }

    html body.mshub-equipment-page #transferToWarehouseModal .professional-modal-footer {
        position: sticky !important;
        bottom: 0 !important;
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px)) !important;
        z-index: 2 !important;
    }

    html body.mshub-equipment-page #transferToWarehouseModal .professional-modal-footer .btn {
        width: 100% !important;
        min-width: 0 !important;
        min-height: 42px !important;
        height: 42px !important;
        padding: 8px 7px !important;
        border-radius: 10px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 5px !important;
        font-size: 12px !important;
        line-height: 1.1 !important;
        white-space: nowrap !important;
    }

    html body.mshub-equipment-page #transferToWarehouseModal .professional-modal-footer .btn i {
        margin: 0 !important;
        font-size: 12px !important;
    }
}

/* 20260618q: Equipment item transfer modal mobile compact pass. */
@media (max-width: 575.98px) {
    html body.mshub-equipment-page #transferEquipmentModal {
        padding: max(6px, env(safe-area-inset-top, 0px)) max(6px, env(safe-area-inset-right, 0px)) max(8px, env(safe-area-inset-bottom, 0px)) max(6px, env(safe-area-inset-left, 0px)) !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    html body.mshub-equipment-page #transferEquipmentModal .modal-dialog {
        width: calc(100vw - 16px) !important;
        max-width: calc(100vw - 16px) !important;
        min-height: 0 !important;
        height: auto !important;
        margin: 0 auto !important;
        padding: 0 !important;
        align-items: flex-start !important;
    }

    html body.mshub-equipment-page #transferEquipmentModal .professional-modal-content {
        width: 100% !important;
        max-height: calc(100dvh - 18px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) !important;
        max-height: calc(100svh - 18px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) !important;
        border-radius: 14px !important;
        overflow: hidden !important;
    }

    html body.mshub-equipment-page #transferEquipmentModal .professional-modal-header {
        min-height: 58px !important;
        padding: 10px 12px !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 34px !important;
        align-items: center !important;
        gap: 8px !important;
    }

    html body.mshub-equipment-page #transferEquipmentModal .modal-title-content {
        display: grid !important;
        grid-template-columns: 34px minmax(0, 1fr) !important;
        align-items: center !important;
        gap: 8px !important;
        min-width: 0 !important;
    }

    html body.mshub-equipment-page #transferEquipmentModal .modal-icon {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        border-radius: 9px !important;
        font-size: 13px !important;
    }

    html body.mshub-equipment-page #transferEquipmentModal .modal-title {
        margin: 0 !important;
        font-size: 15px !important;
        line-height: 1.1 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    html body.mshub-equipment-page #transferEquipmentModal .modal-subtitle {
        margin-top: 3px !important;
        font-size: 11px !important;
        line-height: 1.15 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    html body.mshub-equipment-page #transferEquipmentModal .btn-close-premium {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        min-height: 32px !important;
        border-radius: 9px !important;
        margin: 0 !important;
    }

    html body.mshub-equipment-page #transferEquipmentModal .professional-modal-body {
        padding: 10px !important;
        min-height: 0 !important;
        overflow-y: auto !important;
        max-height: calc(100dvh - 132px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) !important;
        max-height: calc(100svh - 132px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) !important;
    }

    html body.mshub-equipment-page #transferEquipmentModal #transferEquipmentInfo,
    html body.mshub-equipment-page #transferEquipmentModal .transfer-info {
        display: grid !important;
        grid-template-columns: 34px minmax(0, 1fr) !important;
        align-items: center !important;
        gap: 8px !important;
        min-height: 58px !important;
        padding: 8px !important;
        border-radius: 12px !important;
    }

    html body.mshub-equipment-page #transferEquipmentModal .transfer-icon {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        border-radius: 9px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 13px !important;
    }

    html body.mshub-equipment-page #transferEquipmentModal .transfer-details {
        min-width: 0 !important;
        display: grid !important;
        gap: 3px !important;
    }

    html body.mshub-equipment-page #transferEquipmentModal .transfer-details h6 {
        margin: 0 !important;
        font-size: 13px !important;
        line-height: 1.1 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    html body.mshub-equipment-page #transferEquipmentModal .transfer-details small,
    html body.mshub-equipment-page #transferEquipmentModal .transfer-details span {
        font-size: 10.5px !important;
        line-height: 1.1 !important;
    }

    html body.mshub-equipment-page #transferEquipmentModal .form-section {
        margin: 8px 0 0 !important;
        padding: 8px !important;
        border-radius: 12px !important;
        display: grid !important;
        gap: 8px !important;
    }

    html body.mshub-equipment-page #transferEquipmentModal .form-section .mb-3 {
        margin-bottom: 0 !important;
    }

    html body.mshub-equipment-page #transferEquipmentModal .premium-label {
        min-height: 18px !important;
        margin: 0 0 5px !important;
        font-size: 12px !important;
        line-height: 1.1 !important;
        gap: 5px !important;
    }

    html body.mshub-equipment-page #transferEquipmentModal .premium-label i {
        width: 14px !important;
        min-width: 14px !important;
        margin: 0 !important;
        font-size: 12px !important;
    }

    html body.mshub-equipment-page #transferEquipmentModal #transferQuantity,
    html body.mshub-equipment-page #transferEquipmentModal .premium-input {
        width: 100% !important;
        height: 42px !important;
        min-height: 42px !important;
        padding: 8px 10px !important;
        border-radius: 10px !important;
        font-size: 16px !important;
        line-height: 1.2 !important;
    }

    html body.mshub-equipment-page #transferEquipmentModal .transfer-warehouse-only-note {
        min-height: 42px !important;
        padding: 8px 9px !important;
        border-radius: 10px !important;
        display: grid !important;
        grid-template-columns: 28px minmax(0, 1fr) !important;
        align-items: center !important;
        gap: 8px !important;
        font-size: 11px !important;
        line-height: 1.2 !important;
    }

    html body.mshub-equipment-page #transferEquipmentModal .transfer-warehouse-only-note i {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 12px !important;
    }

    html body.mshub-equipment-page #transferEquipmentModal .transfer-warehouse-only-note span {
        min-width: 0 !important;
    }

    html body.mshub-equipment-page #transferEquipmentModal .professional-modal-footer {
        position: sticky !important;
        bottom: 0 !important;
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px)) !important;
        z-index: 2 !important;
    }

    html body.mshub-equipment-page #transferEquipmentModal .professional-modal-footer .btn {
        width: 100% !important;
        min-width: 0 !important;
        min-height: 42px !important;
        height: 42px !important;
        padding: 8px 7px !important;
        border-radius: 10px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 5px !important;
        font-size: 12px !important;
        line-height: 1.1 !important;
        white-space: nowrap !important;
    }

    html body.mshub-equipment-page #transferEquipmentModal .professional-modal-footer .btn i {
        margin: 0 !important;
        font-size: 12px !important;
    }
}

/* 20260618r: Equipment warehouse pickup modal mobile compact pass. */
@media (max-width: 575.98px) {
    html body.mshub-equipment-page #addEquipmentModal.warehouse-pickup-modal {
        padding: max(6px, env(safe-area-inset-top, 0px)) max(6px, env(safe-area-inset-right, 0px)) max(8px, env(safe-area-inset-bottom, 0px)) max(6px, env(safe-area-inset-left, 0px)) !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    html body.mshub-equipment-page #addEquipmentModal.warehouse-pickup-modal .modal-dialog {
        width: calc(100vw - 16px) !important;
        max-width: calc(100vw - 16px) !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 auto !important;
        padding: 0 !important;
        align-items: flex-start !important;
        pointer-events: none !important;
    }

    html body.mshub-equipment-page #addEquipmentModal.warehouse-pickup-modal .professional-modal-content {
        width: 100% !important;
        height: auto !important;
        max-height: calc(100dvh - 18px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) !important;
        max-height: calc(100svh - 18px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) !important;
        margin: 0 !important;
        border-radius: 14px !important;
        overflow: hidden !important;
        pointer-events: auto !important;
    }

    html body.mshub-equipment-page #addEquipmentModal.warehouse-pickup-modal .professional-modal-header {
        min-height: 58px !important;
        padding: 10px 12px !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 34px !important;
        align-items: center !important;
        gap: 8px !important;
    }

    html body.mshub-equipment-page #addEquipmentModal.warehouse-pickup-modal .modal-title-content {
        display: grid !important;
        grid-template-columns: 34px minmax(0, 1fr) !important;
        align-items: center !important;
        gap: 8px !important;
        min-width: 0 !important;
    }

    html body.mshub-equipment-page #addEquipmentModal.warehouse-pickup-modal .modal-icon {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        flex-basis: 32px !important;
        border-radius: 9px !important;
        font-size: 13px !important;
    }

    html body.mshub-equipment-page #addEquipmentModal.warehouse-pickup-modal .modal-title {
        margin: 0 !important;
        font-size: 15px !important;
        line-height: 1.1 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    html body.mshub-equipment-page #addEquipmentModal.warehouse-pickup-modal .modal-subtitle {
        margin-top: 3px !important;
        font-size: 11px !important;
        line-height: 1.15 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        display: block !important;
    }

    html body.mshub-equipment-page #addEquipmentModal.warehouse-pickup-modal .btn-close-premium {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        min-height: 32px !important;
        flex-basis: 32px !important;
        border-radius: 9px !important;
        margin: 0 !important;
    }

    html body.mshub-equipment-page #addEquipmentModal.warehouse-pickup-modal .professional-modal-body {
        padding: 8px 8px 67px !important;
        min-height: 0 !important;
        overflow-y: auto !important;
        max-height: calc(100dvh - 126px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) !important;
        max-height: calc(100svh - 126px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) !important;
        background: #f8fafc !important;
    }

    html body.mshub-equipment-page #addEquipmentModal.warehouse-pickup-modal .premium-form {
        display: grid !important;
        gap: 8px !important;
    }

    html body.mshub-equipment-page #addEquipmentModal.warehouse-pickup-modal .pickup-employee-section,
    html body.mshub-equipment-page #addEquipmentModal.warehouse-pickup-modal .pickup-guidance-section,
    html body.mshub-equipment-page #addEquipmentModal.warehouse-pickup-modal .pickup-notes-section {
        display: none !important;
    }

    html body.mshub-equipment-page #addEquipmentModal.warehouse-pickup-modal .form-section {
        margin: 0 !important;
        padding: 8px !important;
        border-radius: 12px !important;
        box-shadow: none !important;
    }

    html body.mshub-equipment-page #addEquipmentModal.warehouse-pickup-modal .section-header {
        display: grid !important;
        grid-template-columns: 28px minmax(0, 1fr) auto !important;
        align-items: center !important;
        gap: 7px !important;
        min-height: 32px !important;
        margin: 0 0 8px !important;
        padding: 0 0 8px !important;
    }

    html body.mshub-equipment-page #addEquipmentModal.warehouse-pickup-modal .section-header > i {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
        flex-basis: 28px !important;
        border-radius: 9px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 12px !important;
        margin: 0 !important;
    }

    html body.mshub-equipment-page #addEquipmentModal.warehouse-pickup-modal .section-header h6 {
        margin: 0 !important;
        font-size: 12px !important;
        line-height: 1.1 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    html body.mshub-equipment-page #addEquipmentModal.warehouse-pickup-modal .warehouse-stock-refresh-btn {
        width: 34px !important;
        min-width: 34px !important;
        height: 32px !important;
        min-height: 32px !important;
        padding: 0 !important;
        border-radius: 9px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    html body.mshub-equipment-page #addEquipmentModal.warehouse-pickup-modal .warehouse-stock-refresh-btn i {
        margin: 0 !important;
        font-size: 12px !important;
    }

    html body.mshub-equipment-page #addEquipmentModal.warehouse-pickup-modal .warehouse-stock-refresh-btn .refresh-label {
        display: none !important;
    }

    html body.mshub-equipment-page #addEquipmentModal.warehouse-pickup-modal .warehouse-stock-container,
    html body.mshub-equipment-page #addEquipmentModal.warehouse-pickup-modal .warehouse-stock-grid,
    html body.mshub-equipment-page #addEquipmentModal.warehouse-pickup-modal .selected-items-list {
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        border-radius: 0 !important;
    }

    html body.mshub-equipment-page #addEquipmentModal.warehouse-pickup-modal .warehouse-stock-container {
        min-height: 0 !important;
    }

    html body.mshub-equipment-page #addEquipmentModal.warehouse-pickup-modal .warehouse-stock-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 7px !important;
        margin: 0 !important;
    }

    html body.mshub-equipment-page #addEquipmentModal.warehouse-pickup-modal .warehouse-stock-item {
        display: grid !important;
        grid-template-columns: 26px 32px minmax(0, 1fr) !important;
        align-items: center !important;
        min-height: 54px !important;
        gap: 7px !important;
        padding: 7px !important;
        border-radius: 11px !important;
        box-shadow: none !important;
        transform: none !important;
    }

    html body.mshub-equipment-page #addEquipmentModal.warehouse-pickup-modal .warehouse-stock-item .form-check-input,
    html body.mshub-equipment-page #addEquipmentModal.warehouse-pickup-modal .warehouse-stock-item input[type="checkbox"] {
        width: 22px !important;
        height: 22px !important;
        min-width: 22px !important;
        min-height: 22px !important;
        margin: 0 !important;
    }

    html body.mshub-equipment-page #addEquipmentModal.warehouse-pickup-modal .warehouse-stock-item .stock-icon {
        width: 30px !important;
        height: 30px !important;
        min-width: 30px !important;
        border-radius: 9px !important;
        font-size: 12px !important;
    }

    html body.mshub-equipment-page #addEquipmentModal.warehouse-pickup-modal .warehouse-stock-item .stock-info {
        min-width: 0 !important;
        display: grid !important;
        gap: 3px !important;
    }

    html body.mshub-equipment-page #addEquipmentModal.warehouse-pickup-modal .warehouse-stock-item .stock-info h6 {
        margin: 0 !important;
        font-size: 12px !important;
        line-height: 1.1 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    html body.mshub-equipment-page #addEquipmentModal.warehouse-pickup-modal .warehouse-stock-item .stock-meta {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 4px !important;
        margin: 0 !important;
    }

    html body.mshub-equipment-page #addEquipmentModal.warehouse-pickup-modal .warehouse-stock-item .stock-meta .badge {
        min-height: 20px !important;
        padding: 3px 6px !important;
        border-radius: 999px !important;
        font-size: 10px !important;
        line-height: 1 !important;
    }

    html body.mshub-equipment-page #addEquipmentModal.warehouse-pickup-modal .warehouse-stock-item .stock-serial {
        display: none !important;
    }

    html body.mshub-equipment-page #addEquipmentModal.warehouse-pickup-modal .pickup-selected-section {
        display: block;
    }

    html body.mshub-equipment-page #addEquipmentModal.warehouse-pickup-modal .selected-items-list {
        display: grid !important;
        gap: 7px !important;
    }

    html body.mshub-equipment-page #addEquipmentModal.warehouse-pickup-modal .selected-item-card {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 62px 32px !important;
        align-items: center !important;
        gap: 7px !important;
        min-height: 54px !important;
        padding: 7px !important;
        border-radius: 11px !important;
        box-shadow: none !important;
    }

    html body.mshub-equipment-page #addEquipmentModal.warehouse-pickup-modal .selected-item-info {
        min-width: 0 !important;
        display: grid !important;
        grid-template-columns: 30px minmax(0, 1fr) !important;
        align-items: center !important;
        gap: 7px !important;
    }

    html body.mshub-equipment-page #addEquipmentModal.warehouse-pickup-modal .selected-item-icon {
        width: 30px !important;
        height: 30px !important;
        min-width: 30px !important;
        border-radius: 9px !important;
        font-size: 12px !important;
    }

    html body.mshub-equipment-page #addEquipmentModal.warehouse-pickup-modal .selected-item-details {
        min-width: 0 !important;
    }

    html body.mshub-equipment-page #addEquipmentModal.warehouse-pickup-modal .selected-item-details h6 {
        margin: 0 !important;
        font-size: 12px !important;
        line-height: 1.1 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    html body.mshub-equipment-page #addEquipmentModal.warehouse-pickup-modal .selected-item-details small,
    html body.mshub-equipment-page #addEquipmentModal.warehouse-pickup-modal .selected-item-quantity small,
    html body.mshub-equipment-page #addEquipmentModal.warehouse-pickup-modal .selected-item-quantity label {
        display: none !important;
    }

    html body.mshub-equipment-page #addEquipmentModal.warehouse-pickup-modal .selected-item-quantity {
        min-width: 0 !important;
        width: 62px !important;
    }

    html body.mshub-equipment-page #addEquipmentModal.warehouse-pickup-modal .selected-item-quantity select {
        height: 34px !important;
        min-height: 34px !important;
        border-radius: 8px !important;
        padding: 4px 7px !important;
        font-size: 16px !important;
    }

    html body.mshub-equipment-page #addEquipmentModal.warehouse-pickup-modal .selected-item-remove .btn {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        min-height: 32px !important;
        padding: 0 !important;
        border-radius: 9px !important;
    }

    html body.mshub-equipment-page #addEquipmentModal.warehouse-pickup-modal .professional-modal-footer {
        position: sticky !important;
        left: auto !important;
        right: auto !important;
        bottom: 0 !important;
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px)) !important;
        z-index: 2 !important;
        background: rgba(255, 255, 255, 0.98) !important;
        border-top: 1px solid rgba(15, 23, 42, 0.09) !important;
        box-shadow: 0 -10px 24px rgba(15, 23, 42, 0.08) !important;
    }

    html body.mshub-equipment-page #addEquipmentModal.warehouse-pickup-modal .professional-modal-footer .btn {
        width: 100% !important;
        min-width: 0 !important;
        min-height: 42px !important;
        height: 42px !important;
        padding: 8px 7px !important;
        border-radius: 10px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 5px !important;
        font-size: 12px !important;
        line-height: 1.1 !important;
        white-space: nowrap !important;
    }

    html body.mshub-equipment-page #addEquipmentModal.warehouse-pickup-modal .professional-modal-footer .btn i {
        margin: 0 !important;
        font-size: 12px !important;
    }
}

/* 20260620b: Android car edit/transfer modal touch isolation and stable mobile sheets. */
body.modal-open .mobile-bottom-nav,
body.modal-open .mshub-mobile-bottom-nav,
body.modal-open .mshub-app-center,
body.modal-open .mobile-menu-overlay,
body.modal-open .mobile-menu-panel {
    pointer-events: none !important;
}

body.modal-open .modal,
body.modal-open .modal * {
    pointer-events: auto !important;
}

.modal-backdrop {
    z-index: 20000 !important;
    pointer-events: auto !important;
}

.modal {
    z-index: 20010 !important;
    pointer-events: auto !important;
    overscroll-behavior: contain !important;
}

html body.mshub-cars-page .modal[id^="updateCarModal"],
html body.mshub-cars-page #transferCarModal {
    touch-action: pan-y !important;
}

html body.mshub-cars-page .modal[id^="updateCarModal"] .modal-dialog,
html body.mshub-cars-page #transferCarModal .modal-dialog {
    pointer-events: auto !important;
}

html body.mshub-cars-page .modal[id^="updateCarModal"] .modal-content,
html body.mshub-cars-page #transferCarModal .modal-content {
    pointer-events: auto !important;
    isolation: isolate !important;
}

@media (max-width: 575.98px) {
    html body.mshub-cars-page.modal-open,
    html body.mshub-cars-page.modal-open .main-content,
    html body.mshub-cars-page.modal-open .main-container,
    html body.mshub-cars-page.modal-open .car-card,
    html body.mshub-cars-page.modal-open .card-actions,
    html body.mshub-cars-page.modal-open .card-actions .btn {
        touch-action: none !important;
    }

    html body.mshub-cars-page.modal-open .modal,
    html body.mshub-cars-page.modal-open .modal-dialog,
    html body.mshub-cars-page.modal-open .modal-content,
    html body.mshub-cars-page.modal-open .modal-body,
    html body.mshub-cars-page.modal-open .modal-footer,
    html body.mshub-cars-page.modal-open .modal button,
    html body.mshub-cars-page.modal-open .modal input,
    html body.mshub-cars-page.modal-open .modal label {
        touch-action: manipulation !important;
    }

    html body.mshub-cars-page .modal[id^="updateCarModal"],
    html body.mshub-cars-page #transferCarModal {
        padding: max(6px, env(safe-area-inset-top, 0px)) 8px max(8px, env(safe-area-inset-bottom, 0px)) !important;
    }

    html body.mshub-cars-page .modal[id^="updateCarModal"] .modal-dialog,
    html body.mshub-cars-page #transferCarModal .modal-dialog {
        width: calc(100vw - 16px) !important;
        max-width: calc(100vw - 16px) !important;
        min-height: 0 !important;
        margin: 0 auto !important;
        transform: none !important;
    }

    html body.mshub-cars-page .modal[id^="updateCarModal"] .modal-content.dark-modal,
    html body.mshub-cars-page #transferCarModal .modal-content {
        width: 100% !important;
        max-height: calc(100dvh - 16px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) !important;
        max-height: calc(100svh - 16px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) !important;
        border-radius: 14px !important;
        overflow: hidden !important;
        transform: translateZ(0) !important;
        backface-visibility: hidden !important;
    }

    html body.mshub-cars-page .modal[id^="updateCarModal"] .modal-header.dark-header,
    html body.mshub-cars-page #transferCarModal .modal-header {
        min-height: 50px !important;
        padding: 10px 12px !important;
        border-radius: 14px 14px 0 0 !important;
        background: #111827 !important;
    }

    html body.mshub-cars-page .modal[id^="updateCarModal"] .modal-title,
    html body.mshub-cars-page #transferCarModal .modal-title {
        min-width: 0 !important;
        font-size: 15px !important;
        line-height: 1.15 !important;
        gap: 6px !important;
        color: #ffffff !important;
        -webkit-text-fill-color: #ffffff !important;
    }

    html body.mshub-cars-page .modal[id^="updateCarModal"] .btn-close,
    html body.mshub-cars-page .modal[id^="updateCarModal"] .btn-close-white,
    html body.mshub-cars-page #transferCarModal .btn-close {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        min-height: 34px !important;
        margin: 0 !important;
        padding: 0 !important;
        background-size: 14px !important;
    }

    html body.mshub-cars-page .modal[id^="updateCarModal"] .modal-body.dark-body,
    html body.mshub-cars-page #transferCarModal .modal-body {
        padding: 10px 10px 0 !important;
        max-height: calc(100dvh - 118px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) !important;
        max-height: calc(100svh - 118px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior: contain !important;
    }

    html body.mshub-cars-page #transferCarModal #transferSteps,
    html body.mshub-cars-page #transferCarModal .transfer-step.active {
        display: grid !important;
        gap: 10px !important;
        min-width: 0 !important;
    }

    html body.mshub-cars-page #transferCarModal .step-header {
        gap: 8px !important;
        margin: 0 0 10px !important;
        padding: 0 0 10px !important;
        border-bottom: 1px solid rgba(17, 24, 39, 0.08) !important;
    }

    html body.mshub-cars-page #transferCarModal .step-number {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
        font-size: 12px !important;
        background: #111827 !important;
    }

    html body.mshub-cars-page #transferCarModal .step-header h6 {
        margin: 0 !important;
        font-size: 14px !important;
        line-height: 1.15 !important;
        color: #111827 !important;
        -webkit-text-fill-color: #111827 !important;
    }

    html body.mshub-cars-page #transferCarModal .search-box {
        margin: 0 !important;
        min-height: 42px !important;
        border-radius: 10px !important;
        background: #f6f8fb !important;
        border: 1px solid rgba(17, 24, 39, 0.1) !important;
    }

    html body.mshub-cars-page #transferCarModal .colleagues-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 8px !important;
        max-height: min(42dvh, 330px) !important;
        max-height: min(42svh, 330px) !important;
        margin: 0 0 10px !important;
        padding: 2px !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior: contain !important;
    }

    html body.mshub-cars-page #transferCarModal .colleague-item {
        display: grid !important;
        grid-template-columns: 42px 1fr auto !important;
        grid-template-areas: "avatar name status" "avatar role status" !important;
        align-items: center !important;
        column-gap: 10px !important;
        min-height: 58px !important;
        padding: 9px 10px !important;
        text-align: left !important;
        border-radius: 12px !important;
        border-width: 1px !important;
        transform: none !important;
    }

    html body.mshub-cars-page #transferCarModal .colleague-avatar {
        grid-area: avatar !important;
        width: 42px !important;
        height: 42px !important;
        margin: 0 !important;
        font-size: 14px !important;
    }

    html body.mshub-cars-page #transferCarModal .colleague-name {
        grid-area: name !important;
        min-width: 0 !important;
        margin: 0 !important;
        font-size: 14px !important;
        line-height: 1.15 !important;
        overflow-wrap: anywhere !important;
    }

    html body.mshub-cars-page #transferCarModal .colleague-role {
        grid-area: role !important;
        margin: 2px 0 0 !important;
        font-size: 12px !important;
        line-height: 1.1 !important;
    }

    html body.mshub-cars-page #transferCarModal .colleague-status {
        grid-area: status !important;
        position: static !important;
        width: 10px !important;
        height: 10px !important;
        justify-self: end !important;
    }

    html body.mshub-cars-page #transferCarModal .transfer-details,
    html body.mshub-cars-page #transferCarModal .advanced-options,
    html body.mshub-cars-page #transferCarModal .form-group,
    html body.mshub-cars-page #transferCarModal .transfer-conditions {
        margin: 0 0 10px !important;
        padding: 10px !important;
        border-radius: 12px !important;
        background: #ffffff !important;
        border: 1px solid rgba(17, 24, 39, 0.08) !important;
        box-shadow: none !important;
    }

    html body.mshub-cars-page #transferCarModal .transfer-card {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 8px !important;
        margin: 0 0 10px !important;
        padding: 10px !important;
        border-radius: 12px !important;
    }

    html body.mshub-cars-page #transferCarModal .transfer-from,
    html body.mshub-cars-page #transferCarModal .transfer-to,
    html body.mshub-cars-page #transferCarModal .car-transfer-info {
        gap: 8px !important;
        min-width: 0 !important;
        padding: 8px !important;
        border-radius: 10px !important;
        background: #f7fafc !important;
    }

    html body.mshub-cars-page #transferCarModal .transfer-arrow {
        margin: 0 !important;
        justify-self: center !important;
        transform: rotate(90deg) !important;
    }

    html body.mshub-cars-page #transferCarModal .transfer-avatar,
    html body.mshub-cars-page #transferCarModal .car-transfer-icon {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        border-radius: 10px !important;
        font-size: 13px !important;
    }

    html body.mshub-cars-page #transferCarModal .transfer-info,
    html body.mshub-cars-page #transferCarModal .car-transfer-details {
        min-width: 0 !important;
        font-size: 13px !important;
        line-height: 1.2 !important;
    }

    html body.mshub-cars-page #transferCarModal .checklist-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 7px !important;
    }

    html body.mshub-cars-page #transferCarModal .checklist-item,
    html body.mshub-cars-page #transferCarModal .checkbox-container {
        min-height: 40px !important;
        padding: 8px !important;
        border-radius: 10px !important;
        background: #f7fafc !important;
        font-size: 13px !important;
        line-height: 1.2 !important;
    }

    html body.mshub-cars-page #transferCarModal .form-control,
    html body.mshub-cars-page #transferCarModal .search-input,
    html body.mshub-cars-page #transferCarModal textarea {
        min-height: 42px !important;
        border-radius: 10px !important;
        font-size: 16px !important;
    }

    html body.mshub-cars-page #transferCarModal textarea {
        min-height: 88px !important;
        resize: vertical !important;
    }

    html body.mshub-cars-page #transferCarModal .step-success,
    html body.mshub-cars-page #transferCarModal .step-error {
        padding: 18px 8px !important;
    }

    html body.mshub-cars-page #transferCarModal .success-icon,
    html body.mshub-cars-page #transferCarModal .error-icon {
        width: 58px !important;
        height: 58px !important;
        margin-bottom: 12px !important;
        font-size: 24px !important;
    }

    html body.mshub-cars-page .modal[id^="updateCarModal"] .dark-form {
        gap: 8px !important;
    }

    html body.mshub-cars-page .modal[id^="updateCarModal"] .form-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }

    html body.mshub-cars-page .modal[id^="updateCarModal"] .dark-form-group {
        min-height: 0 !important;
        padding: 8px !important;
        gap: 5px !important;
        border-radius: 10px !important;
    }

    html body.mshub-cars-page .modal[id^="updateCarModal"] .dark-label,
    html body.mshub-cars-page .modal[id^="updateCarModal"] .cleanliness-label {
        min-height: 18px !important;
        margin: 0 !important;
        font-size: 12px !important;
        line-height: 1.1 !important;
        gap: 5px !important;
    }

    html body.mshub-cars-page .modal[id^="updateCarModal"] .form-control-dark {
        height: 42px !important;
        min-height: 42px !important;
        padding: 8px 10px !important;
        border-radius: 9px !important;
        font-size: 16px !important;
        line-height: 1.2 !important;
    }

    html body.mshub-cars-page .modal[id^="updateCarModal"] .input-with-suffix .form-control-dark {
        padding-right: 34px !important;
    }

    html body.mshub-cars-page .modal[id^="updateCarModal"] .input-suffix {
        right: 11px !important;
        font-size: 12px !important;
    }

    html body.mshub-cars-page .modal[id^="updateCarModal"] .cleanliness-section {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        padding: 8px !important;
        border-radius: 10px !important;
    }

    html body.mshub-cars-page .modal[id^="updateCarModal"] .cleanliness-toggle {
        gap: 6px !important;
    }

    html body.mshub-cars-page .modal[id^="updateCarModal"] .clean-toggle {
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
        min-height: 42px !important;
        border-radius: 10px !important;
        font-size: 14px !important;
    }

    html body.mshub-cars-page .modal[id^="updateCarModal"] .modal-footer.dark-footer,
    html body.mshub-cars-page #transferCarModal .modal-footer {
        position: sticky !important;
        bottom: 0 !important;
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        margin: 0 !important;
        padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px)) !important;
        border-radius: 0 0 14px 14px !important;
        z-index: 3 !important;
    }

    html body.mshub-cars-page .modal[id^="updateCarModal"] .btn-dark-cancel,
    html body.mshub-cars-page .modal[id^="updateCarModal"] .btn-orange,
    html body.mshub-cars-page #transferCarModal .modal-footer .btn {
        width: 100% !important;
        min-height: 42px !important;
        height: 42px !important;
        padding: 8px 7px !important;
        border-radius: 10px !important;
        font-size: 12px !important;
        line-height: 1.1 !important;
        gap: 5px !important;
        white-space: nowrap !important;
    }
}

/* 20260620h: Parking notes are saved, visible on parked car cards, and mirrored in comments. */
html body.mshub-cars-page .parking-note-panel {
    display: grid !important;
    gap: 6px !important;
    margin: 10px 0 0 !important;
    padding: 10px 12px !important;
    border-radius: 12px !important;
    border: 1px solid rgba(8, 145, 178, 0.18) !important;
    background: #ecfeff !important;
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
}

html body.mshub-cars-page .parking-note-label {
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
    font-size: 11px !important;
    line-height: 1.15 !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    color: #0e7490 !important;
    -webkit-text-fill-color: #0e7490 !important;
}

html body.mshub-cars-page .parking-note-text {
    font-size: 13px !important;
    line-height: 1.35 !important;
    font-weight: 750 !important;
    overflow-wrap: anywhere !important;
}

/* 20260620g: Android fleet modal backdrop isolation blocks all background taps. */
@media (max-width: 991.98px), (hover: none) and (pointer: coarse) {
    html body.mshub-cars-page.mshub-fleet-modal-open {
        overflow: hidden !important;
        touch-action: none !important;
    }

    html body.mshub-cars-page.mshub-fleet-modal-open .main-content,
    html body.mshub-cars-page.mshub-fleet-modal-open .main-container,
    html body.mshub-cars-page.mshub-fleet-modal-open .cars-header,
    html body.mshub-cars-page.mshub-fleet-modal-open .filter-section,
    html body.mshub-cars-page.mshub-fleet-modal-open .stats-grid,
    html body.mshub-cars-page.mshub-fleet-modal-open .cars-grid,
    html body.mshub-cars-page.mshub-fleet-modal-open .car-card,
    html body.mshub-cars-page.mshub-fleet-modal-open .card-actions,
    html body.mshub-cars-page.mshub-fleet-modal-open .mobile-bottom-nav,
    html body.mshub-cars-page.mshub-fleet-modal-open .navbar,
    html body.mshub-cars-page.mshub-fleet-modal-open .mshub-mobile-header,
    html body.mshub-cars-page.mshub-fleet-modal-open .mshub-mobile-app-header {
        pointer-events: none !important;
        user-select: none !important;
        -webkit-user-select: none !important;
    }

    html body.mshub-cars-page.mshub-fleet-modal-open .modal-backdrop,
    html body.mshub-cars-page.mshub-fleet-modal-open .modal-backdrop.show {
        z-index: 20000 !important;
        pointer-events: auto !important;
        touch-action: none !important;
        opacity: 0.58 !important;
    }

    html body.mshub-cars-page.mshub-fleet-modal-open #transferCarModal,
    html body.mshub-cars-page.mshub-fleet-modal-open #parkingModal,
    html body.mshub-cars-page.mshub-fleet-modal-open #deleteCarModal,
    html body.mshub-cars-page.mshub-fleet-modal-open .modal[id^="updateCarModal"] {
        z-index: 20020 !important;
        pointer-events: auto !important;
        touch-action: auto !important;
    }

    html body.mshub-cars-page.mshub-fleet-modal-open #transferCarModal.show,
    html body.mshub-cars-page.mshub-fleet-modal-open #parkingModal.show,
    html body.mshub-cars-page.mshub-fleet-modal-open #deleteCarModal.show,
    html body.mshub-cars-page.mshub-fleet-modal-open .modal[id^="updateCarModal"].show {
        display: block !important;
        pointer-events: auto !important;
    }

    html body.mshub-cars-page.mshub-fleet-modal-open .modal.show .modal-dialog,
    html body.mshub-cars-page.mshub-fleet-modal-open .modal.show .modal-content {
        pointer-events: auto !important;
        touch-action: auto !important;
    }

    html body.mshub-cars-page.mshub-fleet-modal-open .modal.show button,
    html body.mshub-cars-page.mshub-fleet-modal-open .modal.show .btn,
    html body.mshub-cars-page.mshub-fleet-modal-open .modal.show input,
    html body.mshub-cars-page.mshub-fleet-modal-open .modal.show select,
    html body.mshub-cars-page.mshub-fleet-modal-open .modal.show textarea,
    html body.mshub-cars-page.mshub-fleet-modal-open .modal.show label,
    html body.mshub-cars-page.mshub-fleet-modal-open .modal.show .colleague-item,
    html body.mshub-cars-page.mshub-fleet-modal-open .modal.show .parking-reason,
    html body.mshub-cars-page.mshub-fleet-modal-open .modal.show .checklist-item {
        pointer-events: auto !important;
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: transparent !important;
    }
}

/* 20260620f: Fleet modals are body-mounted, no blank transfer state, delete/parking touch hardening. */
@media (max-width: 767.98px) {
    html body.mshub-cars-page #transferCarModal .modal-content {
        background: #f7fafc !important;
        border: 1px solid rgba(15, 23, 42, 0.1) !important;
        box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28) !important;
    }

    html body.mshub-cars-page #transferCarModal .modal-header {
        background: linear-gradient(135deg, #0f172a 0%, #172554 100%) !important;
        border-bottom: 0 !important;
    }

    html body.mshub-cars-page #transferCarModal .modal-title i {
        background: rgba(255, 255, 255, 0.14) !important;
        color: #ffffff !important;
        -webkit-text-fill-color: #ffffff !important;
    }

    html body.mshub-cars-page #transferCarModal .modal-body {
        background: #f7fafc !important;
    }

    html body.mshub-cars-page #transferCarModal #step1 {
        display: none !important;
    }

    html body.mshub-cars-page #transferCarModal #step1.active {
        display: flex !important;
        flex-direction: column !important;
    }

    html body.mshub-cars-page #transferCarModal #step1 .step-header {
        order: 1 !important;
    }

    html body.mshub-cars-page #transferCarModal #step1 .search-box {
        order: 2 !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 2 !important;
        margin-bottom: 10px !important;
        box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08) !important;
    }

    html body.mshub-cars-page #transferCarModal #step1 .colleagues-grid {
        order: 3 !important;
    }

    html body.mshub-cars-page #transferCarModal .colleague-item {
        background: #ffffff !important;
        border: 1px solid rgba(15, 23, 42, 0.1) !important;
        box-shadow: 0 8px 22px rgba(15, 23, 42, 0.055) !important;
    }

    html body.mshub-cars-page #transferCarModal .colleague-item.selected {
        background: #0f172a !important;
        border-color: #0f172a !important;
        color: #ffffff !important;
        box-shadow: 0 12px 30px rgba(15, 23, 42, 0.2) !important;
    }

    html body.mshub-cars-page #transferCarModal .transfer-details,
    html body.mshub-cars-page #transferCarModal .advanced-options,
    html body.mshub-cars-page #transferCarModal .form-group,
    html body.mshub-cars-page #transferCarModal .transfer-conditions {
        background: #ffffff !important;
        border: 1px solid rgba(15, 23, 42, 0.09) !important;
        box-shadow: 0 8px 22px rgba(15, 23, 42, 0.045) !important;
    }

    html body.mshub-cars-page #transferCarModal .advanced-options h6 {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        margin-bottom: 10px !important;
        color: #0f172a !important;
        -webkit-text-fill-color: #0f172a !important;
    }

    html body.mshub-cars-page #transferCarModal .option-label {
        margin-bottom: 8px !important;
        color: #334155 !important;
        -webkit-text-fill-color: #334155 !important;
        font-size: 12px !important;
        text-transform: uppercase !important;
    }

    html body.mshub-cars-page #transferCarModal .checklist-grid {
        gap: 8px !important;
    }

    html body.mshub-cars-page #transferCarModal .checklist-item {
        position: relative !important;
        display: flex !important;
        align-items: center !important;
        min-height: 48px !important;
        padding: 10px 12px !important;
        gap: 10px !important;
        background: #f8fafc !important;
        border: 1px solid rgba(15, 23, 42, 0.11) !important;
        border-radius: 12px !important;
        color: #0f172a !important;
        -webkit-text-fill-color: #0f172a !important;
        cursor: pointer !important;
        -webkit-tap-highlight-color: transparent !important;
        touch-action: manipulation !important;
    }

    html body.mshub-cars-page #transferCarModal .checklist-item:has(input:checked) {
        background: #ecfeff !important;
        border-color: #0891b2 !important;
        box-shadow: inset 0 0 0 1px rgba(8, 145, 178, 0.18) !important;
    }

    html body.mshub-cars-page #transferCarModal .checklist-item input[type="checkbox"] {
        display: block !important;
        appearance: auto !important;
        -webkit-appearance: checkbox !important;
        opacity: 1 !important;
        visibility: visible !important;
        width: 22px !important;
        height: 22px !important;
        min-width: 22px !important;
        margin: 0 !important;
        accent-color: #0891b2 !important;
        pointer-events: auto !important;
        touch-action: manipulation !important;
    }

    html body.mshub-cars-page #transferCarModal .checklist-item span {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        color: inherit !important;
        -webkit-text-fill-color: currentColor !important;
        font-weight: 750 !important;
        overflow-wrap: anywhere !important;
    }

    html body.mshub-cars-page #transferCarModal .checkbox-container {
        background: #f8fafc !important;
        border: 1px solid rgba(15, 23, 42, 0.1) !important;
        border-radius: 12px !important;
        color: #0f172a !important;
        -webkit-text-fill-color: #0f172a !important;
    }

    html body.mshub-cars-page #transferCarModal .checkbox-container .checkmark {
        width: 22px !important;
        height: 22px !important;
        min-width: 22px !important;
        border-radius: 7px !important;
        border-color: rgba(15, 23, 42, 0.28) !important;
    }

    html body.mshub-cars-page #transferCarModal .checkbox-container input:checked + .checkmark {
        background: #0891b2 !important;
        border-color: #0891b2 !important;
    }

    html body.mshub-cars-page #transferCarModal .modal-footer {
        background: rgba(255, 255, 255, 0.96) !important;
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
    }

    html body.mshub-cars-page #transferCarModal .modal-footer .btn-primary {
        background: #0f172a !important;
        border-color: #0f172a !important;
    }

    html body.mshub-cars-page #transferCarModal .modal-footer .btn-primary:disabled {
        background: #cbd5e1 !important;
        border-color: #cbd5e1 !important;
        color: #64748b !important;
        -webkit-text-fill-color: #64748b !important;
        opacity: 1 !important;
    }

    html body.mshub-cars-page #parkingModal .modal-content {
        background: #f7fafc !important;
        border: 1px solid rgba(15, 23, 42, 0.1) !important;
        border-radius: 16px !important;
        overflow: hidden !important;
        box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28) !important;
    }

    html body.mshub-cars-page #parkingModal .modal-header {
        min-height: 54px !important;
        padding: 10px 12px !important;
        background: linear-gradient(135deg, #0f172a 0%, #064e3b 100%) !important;
        border-bottom: 0 !important;
    }

    html body.mshub-cars-page #parkingModal .modal-title {
        color: #ffffff !important;
        -webkit-text-fill-color: #ffffff !important;
        font-size: 15px !important;
        line-height: 1.15 !important;
    }

    html body.mshub-cars-page #parkingModal .modal-title i {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        border-radius: 12px !important;
        background: rgba(255, 255, 255, 0.14) !important;
        color: #ffffff !important;
        -webkit-text-fill-color: #ffffff !important;
    }

    html body.mshub-cars-page #parkingModal .btn-close {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        min-height: 34px !important;
        margin: 0 !important;
    }

    html body.mshub-cars-page #parkingModal .modal-body {
        padding: 10px !important;
        max-height: calc(100dvh - 128px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) !important;
        max-height: calc(100svh - 128px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        background: #f7fafc !important;
        overscroll-behavior: contain !important;
    }

    html body.mshub-cars-page #parkingModal .parking-form {
        display: grid !important;
        gap: 10px !important;
    }

    html body.mshub-cars-page #parkingModal .form-group,
    html body.mshub-cars-page #parkingModal .parking-history {
        margin: 0 !important;
        padding: 10px !important;
        border-radius: 12px !important;
        background: #ffffff !important;
        border: 1px solid rgba(15, 23, 42, 0.09) !important;
        box-shadow: 0 8px 22px rgba(15, 23, 42, 0.045) !important;
    }

    html body.mshub-cars-page #parkingModal .form-label,
    html body.mshub-cars-page #parkingModal h6 {
        margin-bottom: 8px !important;
        color: #334155 !important;
        -webkit-text-fill-color: #334155 !important;
        font-size: 12px !important;
        font-weight: 850 !important;
        text-transform: uppercase !important;
    }

    html body.mshub-cars-page #parkingModal .parking-reasons {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
    }

    html body.mshub-cars-page #parkingModal .parking-reason {
        min-height: 46px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 10px !important;
        border-radius: 12px !important;
        background: #f8fafc !important;
        border: 1px solid rgba(15, 23, 42, 0.11) !important;
        color: #0f172a !important;
        -webkit-text-fill-color: #0f172a !important;
        font-size: 13px !important;
        font-weight: 800 !important;
        text-align: center !important;
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: transparent !important;
    }

    html body.mshub-cars-page #parkingModal .parking-reason.selected {
        background: #ecfdf5 !important;
        border-color: #059669 !important;
        color: #065f46 !important;
        -webkit-text-fill-color: #065f46 !important;
        box-shadow: inset 0 0 0 1px rgba(5, 150, 105, 0.2) !important;
    }

    html body.mshub-cars-page #parkingModal .form-control,
    html body.mshub-cars-page #parkingModal textarea {
        min-height: 44px !important;
        border-radius: 11px !important;
        background: #f8fafc !important;
        border: 1px solid rgba(15, 23, 42, 0.11) !important;
        color: #0f172a !important;
        -webkit-text-fill-color: #0f172a !important;
        font-size: 16px !important;
    }

    html body.mshub-cars-page #parkingModal textarea {
        min-height: 86px !important;
        resize: vertical !important;
    }

    html body.mshub-cars-page #parkingModal .modal-footer {
        position: sticky !important;
        bottom: 0 !important;
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px)) !important;
        background: rgba(255, 255, 255, 0.96) !important;
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
        border-top: 1px solid rgba(15, 23, 42, 0.08) !important;
    }

    html body.mshub-cars-page #parkingModal .modal-footer .btn {
        width: 100% !important;
        min-height: 42px !important;
        border-radius: 12px !important;
        justify-content: center !important;
        font-size: 12px !important;
        font-weight: 900 !important;
    }

    html body.mshub-cars-page #parkingModal .btn-parking {
        background: #0f172a !important;
        border-color: #0f172a !important;
        color: #ffffff !important;
        -webkit-text-fill-color: #ffffff !important;
    }

    html body.mshub-cars-page #deleteCarModal .modal-content {
        border-radius: 16px !important;
        overflow: hidden !important;
        box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28) !important;
    }

    html body.mshub-cars-page #deleteCarModal .modal-header {
        min-height: 54px !important;
        padding: 10px 12px !important;
        background: linear-gradient(135deg, #0f172a 0%, #7f1d1d 100%) !important;
        border-bottom: 0 !important;
    }

    html body.mshub-cars-page #deleteCarModal .modal-body {
        padding: 14px !important;
        background: #f8fafc !important;
    }

    html body.mshub-cars-page #deleteCarModal .modal-footer {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px)) !important;
        background: rgba(255, 255, 255, 0.96) !important;
        border-top: 1px solid rgba(15, 23, 42, 0.08) !important;
    }

    html body.mshub-cars-page #deleteCarModal .modal-footer .btn {
        width: 100% !important;
        min-height: 42px !important;
        border-radius: 12px !important;
        justify-content: center !important;
        font-size: 12px !important;
        font-weight: 900 !important;
    }
}

/* 20260620c: iPhone Safari hard isolation for fleet edit/transfer modals. */
@media (max-width: 767.98px) {
    html.mshub-ios-webkit body.mshub-cars-page.modal-open .main-content,
    html.mshub-ios-webkit body.mshub-cars-page.modal-open .main-container,
    html.mshub-ios-webkit body.mshub-cars-page.modal-open .cars-header,
    html.mshub-ios-webkit body.mshub-cars-page.modal-open .filter-section,
    html.mshub-ios-webkit body.mshub-cars-page.modal-open .stats-grid,
    html.mshub-ios-webkit body.mshub-cars-page.modal-open .cars-grid,
    html.mshub-ios-webkit body.mshub-cars-page.modal-open .car-card,
    html.mshub-ios-webkit body.mshub-cars-page.modal-open .card-actions,
    html.mshub-ios-webkit body.mshub-cars-page.modal-open .mobile-bottom-nav,
    html.mshub-ios-webkit body.mshub-cars-page.modal-open .mshub-mobile-bottom-nav {
        pointer-events: none !important;
        user-select: none !important;
        -webkit-user-select: none !important;
    }

    html.mshub-ios-webkit body.mshub-cars-page.modal-open .modal,
    html.mshub-ios-webkit body.mshub-cars-page.modal-open .modal * {
        pointer-events: auto !important;
        user-select: auto !important;
        -webkit-user-select: auto !important;
    }

    html.mshub-ios-webkit body.mshub-cars-page.modal-open {
        position: fixed !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100dvh !important;
        height: 100svh !important;
        overflow: hidden !important;
        overscroll-behavior: none !important;
        touch-action: none !important;
    }

    html.mshub-ios-webkit body.mshub-cars-page .modal[id^="updateCarModal"],
    html.mshub-ios-webkit body.mshub-cars-page #transferCarModal,
    html.mshub-ios-webkit body.mshub-cars-page #parkingModal,
    html.mshub-ios-webkit body.mshub-cars-page #deleteCarModal {
        position: fixed !important;
        inset: 0 !important;
        width: 100vw !important;
        height: 100dvh !important;
        height: 100svh !important;
        padding: max(8px, env(safe-area-inset-top, 0px)) 8px max(8px, env(safe-area-inset-bottom, 0px)) !important;
        overflow: hidden !important;
        background: transparent !important;
        transform: translateZ(0) !important;
        -webkit-transform: translateZ(0) !important;
        backface-visibility: hidden !important;
        -webkit-backface-visibility: hidden !important;
    }

    html.mshub-ios-webkit body.mshub-cars-page .modal[id^="updateCarModal"].show,
    html.mshub-ios-webkit body.mshub-cars-page #transferCarModal.show,
    html.mshub-ios-webkit body.mshub-cars-page #parkingModal.show,
    html.mshub-ios-webkit body.mshub-cars-page #deleteCarModal.show {
        display: grid !important;
        align-items: start !important;
        justify-items: center !important;
    }

    html.mshub-ios-webkit body.mshub-cars-page .modal[id^="updateCarModal"] .modal-dialog,
    html.mshub-ios-webkit body.mshub-cars-page #transferCarModal .modal-dialog,
    html.mshub-ios-webkit body.mshub-cars-page #parkingModal .modal-dialog,
    html.mshub-ios-webkit body.mshub-cars-page #deleteCarModal .modal-dialog {
        width: calc(100vw - 16px) !important;
        max-width: calc(100vw - 16px) !important;
        min-height: 0 !important;
        margin: 0 !important;
        transform: none !important;
        -webkit-transform: none !important;
    }

    html.mshub-ios-webkit body.mshub-cars-page .modal[id^="updateCarModal"] .modal-content,
    html.mshub-ios-webkit body.mshub-cars-page #transferCarModal .modal-content,
    html.mshub-ios-webkit body.mshub-cars-page #parkingModal .modal-content,
    html.mshub-ios-webkit body.mshub-cars-page #deleteCarModal .modal-content {
        max-height: calc(100dvh - 16px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) !important;
        max-height: calc(100svh - 16px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) !important;
        overflow: hidden !important;
        contain: layout paint !important;
        isolation: isolate !important;
        transform: translateZ(0) !important;
        -webkit-transform: translateZ(0) !important;
    }

    html.mshub-ios-webkit body.mshub-cars-page .modal[id^="updateCarModal"] .modal-body,
    html.mshub-ios-webkit body.mshub-cars-page #transferCarModal .modal-body,
    html.mshub-ios-webkit body.mshub-cars-page #parkingModal .modal-body,
    html.mshub-ios-webkit body.mshub-cars-page #deleteCarModal .modal-body {
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior: contain !important;
        touch-action: pan-y !important;
    }

    html.mshub-ios-webkit body.mshub-cars-page .modal[id^="updateCarModal"] input,
    html.mshub-ios-webkit body.mshub-cars-page .modal[id^="updateCarModal"] textarea,
    html.mshub-ios-webkit body.mshub-cars-page .modal[id^="updateCarModal"] button,
    html.mshub-ios-webkit body.mshub-cars-page .modal[id^="updateCarModal"] label,
    html.mshub-ios-webkit body.mshub-cars-page #transferCarModal input,
    html.mshub-ios-webkit body.mshub-cars-page #transferCarModal textarea,
    html.mshub-ios-webkit body.mshub-cars-page #transferCarModal button,
    html.mshub-ios-webkit body.mshub-cars-page #transferCarModal label,
    html.mshub-ios-webkit body.mshub-cars-page #transferCarModal .colleague-item,
    html.mshub-ios-webkit body.mshub-cars-page #parkingModal .parking-reason {
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: transparent !important;
    }

    html.mshub-ios-webkit body.mshub-cars-page.modal-open .modal-backdrop {
        position: fixed !important;
        inset: 0 !important;
        width: 100vw !important;
        height: 100dvh !important;
        height: 100svh !important;
        z-index: 20000 !important;
        opacity: 0.58 !important;
        pointer-events: auto !important;
    }
}

/* 20260619e: Chat page mobile shell and keyboard-safe conversation cleanup. */
@media (max-width: 575.98px) {
    html body.mshub-chat-page,
    html body.mshub-chat-page:not(.modal-open):not(.mobile-menu-open):not(.mshub-language-modal-open):not(.mshub-mobile-language-sheet-open) {
        background: #f6f8fb !important;
        overflow: hidden !important;
        padding-bottom: 0 !important;
    }

    html body.mshub-chat-page .main-content {
        height: 100vh !important;
        height: 100svh !important;
        height: 100dvh !important;
        min-height: 0 !important;
        padding: max(6px, env(safe-area-inset-top, 0px)) 0 calc(82px + env(safe-area-inset-bottom, 0px)) !important;
        overflow: hidden !important;
    }

    html body.mshub-chat-page .modern-navbar,
    html body.mshub-chat-page .main-content > .modern-navbar,
    html body.mshub-chat-page .chat-command-header {
        display: none !important;
    }

    html body.mshub-chat-page .chat-container {
        width: 100% !important;
        max-width: 100% !important;
        height: calc(100vh - 88px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) !important;
        height: calc(100svh - 88px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) !important;
        height: calc(100dvh - 88px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 max(8px, env(safe-area-inset-right, 0px)) 0 max(8px, env(safe-area-inset-left, 0px)) !important;
        border-radius: 0 !important;
        background: transparent !important;
        overflow: hidden !important;
    }

    html body.mshub-chat-page .chat-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        min-height: 0 !important;
        max-height: none !important;
        display: flex !important;
        flex-direction: row !important;
        grid-template-columns: none !important;
        border-radius: 14px !important;
        overflow: hidden !important;
        box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08) !important;
        background: #ffffff !important;
        border: 1px solid rgba(15, 23, 42, 0.08) !important;
    }

    html body.mshub-chat-page .chat-users-sidebar,
    html body.mshub-chat-page .chat-conversation-area {
        width: 100% !important;
        height: 100% !important;
        min-width: 0 !important;
        min-height: 0 !important;
        flex: 1 1 100% !important;
        overflow: hidden !important;
    }

    html body.mshub-chat-page .chat-has-conversation .chat-users-sidebar {
        display: none !important;
    }

    html body.mshub-chat-page .chat-has-inbox .chat-conversation-area {
        display: none !important;
    }

    @supports selector(.chat-users-sidebar:has(+ .chat-conversation-area)) {
        html body.mshub-chat-page .chat-users-sidebar:has(+ .chat-conversation-area .chat-conversation-header) {
            display: none !important;
        }

        html body.mshub-chat-page .chat-conversation-area:not(:has(.chat-conversation-header)) {
            display: none !important;
        }
    }

    html body.mshub-chat-page .chat-sidebar-header {
        min-height: 56px !important;
        padding: 10px 12px !important;
        gap: 8px !important;
        border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
    }

    html body.mshub-chat-page .chat-sidebar-header h2 {
        min-width: 0 !important;
        font-size: 22px !important;
        line-height: 1.1 !important;
        gap: 8px !important;
    }

    html body.mshub-chat-page .chat-sidebar-header h2 i {
        font-size: 17px !important;
    }

    html body.mshub-chat-page .btn-create-group {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        min-height: 38px !important;
        border-radius: 12px !important;
        font-size: 14px !important;
        transform: none !important;
    }

    html body.mshub-chat-page .chat-users-search {
        padding: 10px 12px 8px !important;
    }

    html body.mshub-chat-page .chat-users-search input,
    html body.mshub-chat-page #searchUsers {
        height: 42px !important;
        min-height: 42px !important;
        padding: 8px 12px 8px 36px !important;
        border-radius: 11px !important;
        font-size: 16px !important;
        background-position: 11px center !important;
        background-size: 16px !important;
    }

    html body.mshub-chat-page .chat-tabs {
        gap: 8px !important;
        padding: 8px 12px 10px !important;
    }

    html body.mshub-chat-page .chat-tab {
        min-height: 38px !important;
        height: 38px !important;
        padding: 7px 8px !important;
        border-radius: 10px !important;
        font-size: 12px !important;
        gap: 6px !important;
    }

    html body.mshub-chat-page .chat-tab i {
        font-size: 12px !important;
    }

    html body.mshub-chat-page .chat-users-list {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        padding: 8px 10px 12px !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    html body.mshub-chat-page .chat-user-item {
        min-height: 64px !important;
        padding: 8px !important;
        gap: 9px !important;
        border: 1px solid rgba(15, 23, 42, 0.08) !important;
        border-radius: 12px !important;
        background: #ffffff !important;
        box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05) !important;
        transform: none !important;
    }

    html body.mshub-chat-page .user-avatar-chat {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        border-radius: 10px !important;
        font-size: 18px !important;
    }

    html body.mshub-chat-page .user-info-chat,
    html body.mshub-chat-page .user-name-row {
        min-width: 0 !important;
    }

    html body.mshub-chat-page .user-name-row {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        gap: 6px !important;
        align-items: start !important;
    }

    html body.mshub-chat-page .user-name-row h4 {
        margin: 0 !important;
        font-size: 13px !important;
        line-height: 1.15 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    html body.mshub-chat-page .message-time {
        font-size: 9px !important;
        line-height: 1.1 !important;
        white-space: nowrap !important;
    }

    html body.mshub-chat-page .user-role {
        margin: 4px 0 0 !important;
        font-size: 10px !important;
        line-height: 1.1 !important;
        text-transform: uppercase !important;
        letter-spacing: 0 !important;
    }

    html body.mshub-chat-page .chat-conversation-area {
        display: flex !important;
        flex-direction: column !important;
        background: #f7f9fc !important;
    }

    html body.mshub-chat-page .chat-conversation-header {
        min-height: 56px !important;
        height: 56px !important;
        padding: 7px 8px !important;
        gap: 6px !important;
        flex: 0 0 auto !important;
        overflow: visible !important;
        background: rgba(255, 255, 255, 0.98) !important;
        border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
    }

    html body.mshub-chat-page .mobile-back-btn,
    html body.mshub-chat-page .btn-chat-options,
    html body.mshub-chat-page .btn-language {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        min-height: 34px !important;
        border-radius: 10px !important;
        padding: 0 !important;
        font-size: 13px !important;
    }

    html body.mshub-chat-page .chat-user-info {
        min-width: 0 !important;
        flex: 1 1 auto !important;
        gap: 7px !important;
    }

    html body.mshub-chat-page .user-avatar-header {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        border-radius: 10px !important;
        font-size: 15px !important;
    }

    html body.mshub-chat-page .chat-user-info h3 {
        max-width: clamp(112px, 42vw, 170px) !important;
        margin: 0 !important;
        font-size: 13px !important;
        line-height: 1.1 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    html body.mshub-chat-page .user-status,
    html body.mshub-chat-page .typing-indicator {
        max-width: clamp(112px, 42vw, 170px) !important;
        margin: 2px 0 0 !important;
        font-size: 10px !important;
        line-height: 1.1 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    html body.mshub-chat-page .chat-options-dropdown,
    html body.mshub-chat-page .language-dropdown {
        right: 0 !important;
        max-width: calc(100vw - 24px) !important;
        border-radius: 12px !important;
    }

    html body.mshub-chat-page .chat-messages-container {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        padding: 10px 8px 8px !important;
        gap: 8px !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        background: linear-gradient(180deg, #f7f9fc 0%, #eef4fb 100%) !important;
    }

    html body.mshub-chat-page .chat-message {
        width: 100% !important;
        min-width: 0 !important;
        padding: 0 !important;
    }

    html body.mshub-chat-page .message-bubble {
        max-width: min(82%, 292px) !important;
        min-width: 0 !important;
        padding: 8px 10px 20px !important;
        border-radius: 12px !important;
        font-size: 13px !important;
        line-height: 1.25 !important;
        overflow-wrap: anywhere !important;
    }

    html body.mshub-chat-page .chat-message.sent .message-bubble {
        margin-left: auto !important;
        border-bottom-right-radius: 7px !important;
    }

    html body.mshub-chat-page .chat-message.received .message-bubble {
        margin-right: auto !important;
        border-bottom-left-radius: 7px !important;
    }

    html body.mshub-chat-page .message-text {
        margin: 0 !important;
        font-size: 13px !important;
        line-height: 1.25 !important;
    }

    html body.mshub-chat-page .message-timestamp {
        position: absolute !important;
        right: 9px !important;
        bottom: 5px !important;
        font-size: 9px !important;
        line-height: 1 !important;
        gap: 3px !important;
    }

    html body.mshub-chat-page .message-status-label {
        display: none !important;
    }

    html body.mshub-chat-page .message-reply-btn {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    html body.mshub-chat-page .btn-translate,
    html body.mshub-chat-page .btn-translate-modern {
        min-height: 24px !important;
        padding: 4px 6px !important;
        border-radius: 8px !important;
        font-size: 10px !important;
        line-height: 1 !important;
        gap: 4px !important;
        margin-top: 6px !important;
    }

    html body.mshub-chat-page .chat-message-form {
        flex: 0 0 auto !important;
        position: sticky !important;
        bottom: 0 !important;
        padding: 8px !important;
        background: rgba(255, 255, 255, 0.98) !important;
        border-top: 1px solid rgba(15, 23, 42, 0.08) !important;
        z-index: 4 !important;
    }

    html body.mshub-chat-page .reply-composer {
        margin: 0 0 6px !important;
        padding: 7px 8px !important;
        border-radius: 10px !important;
        font-size: 11px !important;
    }

    html body.mshub-chat-page .message-input-wrapper {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 42px !important;
        align-items: end !important;
        gap: 7px !important;
        padding: 5px !important;
        border-radius: 14px !important;
    }

    html body.mshub-chat-page .message-input {
        width: 100% !important;
        min-height: 42px !important;
        max-height: 92px !important;
        padding: 10px 11px !important;
        border-radius: 11px !important;
        font-size: 16px !important;
        line-height: 1.25 !important;
    }

    html body.mshub-chat-page .send-btn {
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
        min-height: 42px !important;
        border-radius: 12px !important;
        padding: 0 !important;
        font-size: 15px !important;
    }
}

@media (max-width: 768px) {
    html body.mshub-chat-page.mshub-chat-conversation-open nav.mobile-bottom-nav,
    html body.mshub-chat-page.mshub-chat-conversation-open .mobile-bottom-nav {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    html body.mshub-chat-page:not(.modal-open):not(.mobile-menu-open):not(.mshub-language-modal-open):not(.mshub-mobile-language-sheet-open) {
        position: fixed !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100vh !important;
        height: 100svh !important;
        height: 100dvh !important;
        height: var(--mshub-chat-viewport-height, 100dvh) !important;
        overflow: hidden !important;
        overscroll-behavior: none !important;
    }

    html body.mshub-chat-page .main-content {
        position: fixed !important;
        top: var(--mshub-chat-viewport-offset-top, 0px) !important;
        left: 0 !important;
        right: 0 !important;
        bottom: auto !important;
        width: 100% !important;
        height: 100vh !important;
        height: 100svh !important;
        height: 100dvh !important;
        height: var(--mshub-chat-viewport-height, 100dvh) !important;
        box-sizing: border-box !important;
        padding: max(6px, env(safe-area-inset-top, 0px)) 0 calc(82px + env(safe-area-inset-bottom, 0px)) !important;
        overflow: hidden !important;
        transform: translateZ(0) !important;
        -webkit-transform: translateZ(0) !important;
    }

    html body.mshub-chat-page .chat-container {
        height: 100% !important;
        max-height: 100% !important;
    }

    html body.mshub-chat-page .chat-wrapper {
        height: 100% !important;
        max-height: 100% !important;
    }

    html body.mshub-chat-page .chat-has-conversation .chat-wrapper {
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background: #eef4fb !important;
    }

    html body.mshub-chat-page .chat-has-conversation {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    html body.mshub-chat-page .chat-has-conversation .chat-conversation-area {
        border-radius: 0 !important;
        background: #eef4fb !important;
    }

    html body.mshub-chat-page .chat-has-conversation .chat-conversation-header {
        min-height: 58px !important;
        height: 58px !important;
        padding: 8px max(10px, env(safe-area-inset-right, 0px)) 8px max(10px, env(safe-area-inset-left, 0px)) !important;
        background: rgba(255, 255, 255, 0.98) !important;
        border-radius: 0 !important;
        box-shadow: 0 1px 0 rgba(15, 23, 42, 0.08) !important;
        backdrop-filter: blur(18px) saturate(160%) !important;
        -webkit-backdrop-filter: blur(18px) saturate(160%) !important;
        z-index: 5 !important;
    }

    html body.mshub-chat-page .chat-has-conversation .mobile-back-btn,
    html body.mshub-chat-page .chat-has-conversation .btn-chat-options,
    html body.mshub-chat-page .chat-has-conversation .btn-language {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        min-height: 38px !important;
        border-radius: 999px !important;
        background: rgba(15, 23, 42, 0.06) !important;
        color: #0f172a !important;
        -webkit-text-fill-color: #0f172a !important;
    }

    html body.mshub-chat-page .chat-has-conversation .user-avatar-header {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        border-radius: 999px !important;
    }

    html body.mshub-chat-page .chat-has-conversation .chat-user-info h3 {
        max-width: clamp(136px, 48vw, 220px) !important;
        font-size: 14px !important;
        line-height: 1.12 !important;
        font-weight: 850 !important;
    }

    html body.mshub-chat-page .chat-has-conversation .user-status,
    html body.mshub-chat-page .chat-has-conversation .typing-indicator {
        max-width: clamp(136px, 48vw, 220px) !important;
        font-size: 10.5px !important;
    }

    html body.mshub-chat-page .chat-has-conversation .chat-messages-container {
        padding: 10px max(10px, env(safe-area-inset-right, 0px)) 8px max(10px, env(safe-area-inset-left, 0px)) !important;
        gap: 2px !important;
        background:
            radial-gradient(circle at top left, rgba(20, 184, 166, 0.10), transparent 34%),
            linear-gradient(180deg, #eef4fb 0%, #f7fafc 100%) !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior: contain !important;
        scroll-behavior: smooth !important;
        scrollbar-width: none !important;
        touch-action: pan-y !important;
    }

    html body.mshub-chat-page .chat-has-conversation .chat-messages-container::-webkit-scrollbar {
        width: 0 !important;
        height: 0 !important;
    }

    html body.mshub-chat-page .chat-has-conversation .chat-message {
        flex: 0 0 auto !important;
        flex-shrink: 0 !important;
        height: auto !important;
        min-height: auto !important;
        align-items: flex-end !important;
        margin: 1px 0 !important;
        animation: none !important;
    }

    html body.mshub-chat-page .chat-has-conversation .chat-message.sent + .chat-message.received,
    html body.mshub-chat-page .chat-has-conversation .chat-message.received + .chat-message.sent {
        margin-top: 8px !important;
    }

    html body.mshub-chat-page .chat-has-conversation .message-bubble {
        flex: 0 1 auto !important;
        min-width: 46px !important;
        max-width: min(80%, 300px) !important;
        padding: 8px 42px 15px 10px !important;
        border-radius: 17px !important;
        font-size: 13.5px !important;
        line-height: 1.26 !important;
        box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    html body.mshub-chat-page .chat-has-conversation .chat-message.sent .message-bubble {
        color: #ffffff !important;
        -webkit-text-fill-color: #ffffff !important;
        background: linear-gradient(135deg, #2563eb 0%, #0f766e 100%) !important;
        border: 0 !important;
        border-bottom-right-radius: 5px !important;
        padding: 8px 12px 16px 42px !important;
    }

    html body.mshub-chat-page .chat-has-conversation .chat-message.received .message-bubble {
        color: #0f172a !important;
        -webkit-text-fill-color: #0f172a !important;
        background: #ffffff !important;
        border: 1px solid rgba(15, 23, 42, 0.06) !important;
        border-bottom-left-radius: 5px !important;
        padding: 8px 42px 15px 10px !important;
    }

    html body.mshub-chat-page .chat-has-conversation .message-text,
    html body.mshub-chat-page .chat-has-conversation .message-bubble p {
        margin: 0 !important;
        font-size: 13.5px !important;
        line-height: 1.26 !important;
        white-space: pre-wrap !important;
    }

    html body.mshub-chat-page .chat-has-conversation .message-timestamp {
        right: 8px !important;
        bottom: 4px !important;
        font-size: 8.5px !important;
        line-height: 1 !important;
        opacity: 0.62 !important;
    }

    html body.mshub-chat-page .chat-has-conversation .chat-message.sent .message-timestamp,
    html body.mshub-chat-page .chat-has-conversation .chat-message.sent .message-timestamp i {
        color: rgba(255, 255, 255, 0.86) !important;
        -webkit-text-fill-color: rgba(255, 255, 255, 0.86) !important;
    }

    html body.mshub-chat-page .chat-has-conversation .btn-translate,
    html body.mshub-chat-page .chat-has-conversation .btn-translate-modern {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 4px !important;
        position: absolute !important;
        top: 6px !important;
        right: 6px !important;
        bottom: auto !important;
        width: 30px !important;
        height: 30px !important;
        min-width: 30px !important;
        min-height: 30px !important;
        max-width: 30px !important;
        padding: 0 !important;
        border-radius: 999px !important;
        border: 1px solid rgba(37, 99, 235, 0.16) !important;
        background: rgba(255, 255, 255, 0.92) !important;
        color: #2563eb !important;
        -webkit-text-fill-color: #2563eb !important;
        box-shadow: 0 5px 14px rgba(15, 23, 42, 0.13) !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: translateY(0) scale(1) !important;
        z-index: 12 !important;
        touch-action: manipulation !important;
        white-space: nowrap !important;
        overflow: hidden !important;
    }

    html body.mshub-chat-page .chat-has-conversation .chat-message.sent .btn-translate,
    html body.mshub-chat-page .chat-has-conversation .chat-message.sent .btn-translate-modern {
        left: 6px !important;
        right: auto !important;
        border-color: rgba(255, 255, 255, 0.30) !important;
        background: rgba(255, 255, 255, 0.20) !important;
        color: #ffffff !important;
        -webkit-text-fill-color: #ffffff !important;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 5px 14px rgba(15, 23, 42, 0.16) !important;
    }

    html body.mshub-chat-page .chat-has-conversation .chat-message.received .btn-translate,
    html body.mshub-chat-page .chat-has-conversation .chat-message.received .btn-translate-modern {
        left: auto !important;
        right: 6px !important;
        border-color: rgba(37, 99, 235, 0.12) !important;
        background: #f8fbff !important;
        color: #2563eb !important;
        -webkit-text-fill-color: #2563eb !important;
    }

    html body.mshub-chat-page .chat-has-conversation .btn-translate i,
    html body.mshub-chat-page .chat-has-conversation .btn-translate-modern i {
        flex: 0 0 auto !important;
        font-size: 13px !important;
        line-height: 1 !important;
    }

    html body.mshub-chat-page .chat-has-conversation .btn-translate .translate-label,
    html body.mshub-chat-page .chat-has-conversation .btn-translate-modern .translate-label {
        display: none !important;
    }

    html body.mshub-chat-page .chat-has-conversation .chat-message-form {
        padding: 9px max(10px, env(safe-area-inset-right, 0px)) 10px max(10px, env(safe-area-inset-left, 0px)) !important;
        background: rgba(255, 255, 255, 0.98) !important;
        border-top: 1px solid rgba(15, 23, 42, 0.08) !important;
        box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08) !important;
        position: relative !important;
    }

    html body.mshub-chat-page .chat-has-conversation .message-input-wrapper {
        grid-template-columns: minmax(0, 1fr) 44px !important;
        gap: 8px !important;
        padding: 4px !important;
        border-radius: 999px !important;
        background: #f8fafc !important;
        border: 1px solid rgba(15, 23, 42, 0.10) !important;
        box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04) !important;
    }

    html body.mshub-chat-page .chat-has-conversation .message-input {
        min-height: 44px !important;
        height: 44px !important;
        max-height: 104px !important;
        padding: 11px 12px !important;
        border-radius: 999px !important;
        background: transparent !important;
        font-size: 16px !important;
        line-height: 1.25 !important;
    }

    html body.mshub-chat-page .chat-has-conversation .send-btn {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
        border-radius: 999px !important;
        background: linear-gradient(135deg, #2563eb 0%, #0f766e 100%) !important;
        box-shadow: 0 8px 18px rgba(37, 99, 235, 0.24) !important;
    }
}

@media (hover: none), (max-width: 768px) {
    html body.mshub-chat-page .message-reply-btn {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
}

@media (max-width: 768px) {
    html body.mshub-chat-page.mshub-chat-conversation-open .main-content {
        padding: 0 !important;
    }

    html body.mshub-chat-page.mshub-chat-conversation-open .chat-container {
        height: 100vh !important;
        height: 100svh !important;
        height: 100dvh !important;
        height: var(--mshub-chat-viewport-height, 100dvh) !important;
        max-height: 100vh !important;
        max-height: 100svh !important;
        max-height: 100dvh !important;
        max-height: var(--mshub-chat-viewport-height, 100dvh) !important;
        padding: 0 !important;
    }

    html body.mshub-chat-page.mshub-chat-conversation-open .chat-wrapper,
    html body.mshub-chat-page.mshub-chat-conversation-open .chat-conversation-area {
        height: 100% !important;
        max-height: 100% !important;
        min-height: 0 !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
    }

    html body.mshub-chat-page.mshub-chat-conversation-open .chat-conversation-area {
        flex: 1 1 auto !important;
    }

    html body.mshub-chat-page.mshub-chat-conversation-open .chat-conversation-header,
    html body.mshub-chat-page.mshub-chat-conversation-open .chat-message-form {
        flex: 0 0 auto !important;
    }

    html body.mshub-chat-page.mshub-chat-conversation-open .chat-messages-container {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        height: auto !important;
        max-height: none !important;
    }

    html body.mshub-chat-page.mshub-chat-conversation-open .chat-conversation-header {
        min-height: calc(58px + env(safe-area-inset-top, 0px)) !important;
        height: auto !important;
        padding-top: max(8px, env(safe-area-inset-top, 0px)) !important;
    }

    html body.mshub-chat-page.mshub-chat-conversation-open .chat-message-form {
        padding-bottom: calc(7px + env(safe-area-inset-bottom, 0px)) !important;
    }
}

@media (max-width: 926px) and (orientation: landscape) {
    :root {
        --mshub-mobile-nav-height: 50px;
    }

    body:not(.modal-open):not(.mobile-menu-open):not(.warehouse-sidebar-open):not(.mshub-warehouse-active) {
        padding-bottom: calc(var(--mshub-mobile-bottom-gap) + 8px) !important;
    }

    .modern-navbar {
        margin-top: 2px !important;
        margin-bottom: 6px !important;
    }

    .modal-dialog {
        margin-top: 6px !important;
        margin-bottom: 6px !important;
    }

    .modal-content {
        max-height: calc(100vh - 12px) !important;
        max-height: calc(100svh - 12px) !important;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .main-content > .container-fluid,
    .container-fluid {
        padding-left: clamp(18px, 2vw, 28px);
        padding-right: clamp(18px, 2vw, 28px);
    }
}

@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;
    }
}

@media (forced-colors: active) {
    .btn,
    button,
    .card,
    .modal-content,
    .mobile-bottom-nav {
        border: 1px solid CanvasText !important;
    }
}

@supports (-webkit-touch-callout: none) {
    html {
        height: auto !important;
        min-height: -webkit-fill-available;
        overflow-x: hidden !important;
    }

    body {
        min-height: 100vh !important;
        min-height: -webkit-fill-available !important;
        overflow-x: hidden !important;
        -webkit-text-size-adjust: 100% !important;
    }

    input,
    select,
    textarea,
    .form-control,
    .form-select {
        font-size: 16px !important;
        -webkit-appearance: none;
        appearance: none;
    }

    select,
    .form-select {
        -webkit-appearance: menulist;
        appearance: auto;
    }

    .main-content,
    .container,
    .container-fluid,
    .auth-shell,
    .guide-shell {
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    @media (max-width: 991.98px) {
        body:not(.modal-open):not(.mobile-menu-open):not(.warehouse-sidebar-open):not(.mshub-warehouse-active):not(.mshub-language-modal-open):not(.mshub-mobile-language-sheet-open) {
            height: auto !important;
            min-height: -webkit-fill-available !important;
            max-height: none !important;
            overflow-y: auto !important;
            padding-top: env(safe-area-inset-top, 0px) !important;
            padding-bottom: calc(116px + env(safe-area-inset-bottom, 0px)) !important;
        }

        body:not(.home-2026):not(.modal-open):not(.mobile-menu-open):not(.warehouse-sidebar-open):not(.mshub-warehouse-active):not(.mshub-language-modal-open):not(.mshub-mobile-language-sheet-open) .main-content,
        body:not(.home-2026):not(.modal-open):not(.mobile-menu-open):not(.warehouse-sidebar-open):not(.mshub-warehouse-active):not(.mshub-language-modal-open):not(.mshub-mobile-language-sheet-open) .container-fluid,
        body:not(.home-2026):not(.modal-open):not(.mobile-menu-open):not(.warehouse-sidebar-open):not(.mshub-warehouse-active):not(.mshub-language-modal-open):not(.mshub-mobile-language-sheet-open) main {
            padding-bottom: calc(128px + env(safe-area-inset-bottom, 0px)) !important;
        }

        body.home-2026 {
            padding-bottom: calc(132px + env(safe-area-inset-bottom, 0px)) !important;
        }

        nav.mobile-bottom-nav,
        body:not(.home-2026) .mobile-bottom-nav,
        body:not(.home-2026) nav.mobile-bottom-nav {
            position: fixed !important;
            left: 0 !important;
            right: 0 !important;
            bottom: 0 !important;
            width: 100% !important;
            max-width: 100% !important;
            height: calc(92px + env(safe-area-inset-bottom, 0px)) !important;
            min-height: calc(92px + env(safe-area-inset-bottom, 0px)) !important;
            max-height: calc(92px + env(safe-area-inset-bottom, 0px)) !important;
            padding: 8px max(8px, env(safe-area-inset-right, 0px)) max(14px, env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px)) !important;
            border-radius: 0 !important;
            transform: translateZ(0) !important;
            -webkit-transform: translateZ(0) !important;
            overflow: visible !important;
            box-sizing: border-box !important;
            display: flex !important;
            align-items: stretch !important;
            justify-content: space-between !important;
            gap: 4px !important;
        }

        .ms-bottom-nav,
        nav#bottomNav.ms-bottom-nav {
            position: fixed !important;
            left: 0 !important;
            right: 0 !important;
            bottom: 0 !important;
            width: 100% !important;
            max-width: 100% !important;
            height: calc(96px + env(safe-area-inset-bottom, 0px)) !important;
            min-height: calc(96px + env(safe-area-inset-bottom, 0px)) !important;
            max-height: calc(96px + env(safe-area-inset-bottom, 0px)) !important;
            padding: 10px max(10px, env(safe-area-inset-right, 0px)) max(18px, env(safe-area-inset-bottom, 0px)) max(10px, env(safe-area-inset-left, 0px)) !important;
            border-radius: 0 !important;
            transform: translateZ(0) !important;
            -webkit-transform: translateZ(0) !important;
            overflow: visible !important;
            box-sizing: border-box !important;
            display: flex !important;
            align-items: stretch !important;
            justify-content: space-between !important;
            gap: 8px !important;
        }

        .mobile-bottom-nav .mobile-nav-item,
        body:not(.home-2026) .mobile-bottom-nav .mobile-nav-item {
            min-width: 0 !important;
            min-height: 68px !important;
            height: 68px !important;
            max-height: 68px !important;
            padding: 7px 3px 6px !important;
            overflow: hidden !important;
            display: inline-flex !important;
            flex-direction: column !important;
            align-items: center !important;
            justify-content: center !important;
            gap: 4px !important;
        }

        .ms-bottom-nav .ms-bottom-nav-item {
            min-width: 0 !important;
            min-height: 66px !important;
            height: 66px !important;
            max-height: 66px !important;
            padding: 8px 4px 7px !important;
            overflow: hidden !important;
            display: inline-flex !important;
            flex-direction: column !important;
            align-items: center !important;
            justify-content: center !important;
            gap: 5px !important;
        }

        .mobile-bottom-nav .mobile-nav-item i,
        body:not(.home-2026) .mobile-bottom-nav .mobile-nav-item i {
            font-size: 22px !important;
            line-height: 1 !important;
            margin: 0 !important;
            flex: 0 0 auto !important;
        }

        .ms-bottom-nav .ms-bottom-nav-icon {
            font-size: 24px !important;
            line-height: 1 !important;
            margin: 0 !important;
            flex: 0 0 auto !important;
        }

        .mobile-bottom-nav .mobile-nav-item span:not(.mobile-nav-badge),
        body:not(.home-2026) .mobile-bottom-nav .mobile-nav-item span:not(.mobile-nav-badge),
        .ms-bottom-nav .ms-bottom-nav-label {
            display: block !important;
            width: 100% !important;
            font-size: 11px !important;
            line-height: 1.15 !important;
            white-space: nowrap !important;
            overflow: hidden !important;
            text-overflow: ellipsis !important;
        }

        .ms-bottom-nav .ms-bottom-nav-label {
            line-height: 1.2 !important;
        }

        body.home-2026 .ms-status-indicator {
            bottom: calc(108px + env(safe-area-inset-bottom, 0px)) !important;
        }

        html body.home-2026 .ms-bottom-nav,
        html body.home-2026 nav#bottomNav.ms-bottom-nav {
            height: calc(96px + env(safe-area-inset-bottom, 0px)) !important;
            min-height: calc(96px + env(safe-area-inset-bottom, 0px)) !important;
            max-height: calc(96px + env(safe-area-inset-bottom, 0px)) !important;
            padding: 10px max(10px, env(safe-area-inset-right, 0px)) max(18px, env(safe-area-inset-bottom, 0px)) max(10px, env(safe-area-inset-left, 0px)) !important;
            display: flex !important;
            align-items: stretch !important;
            gap: 8px !important;
        }

        html body.home-2026 .ms-bottom-nav .ms-bottom-nav-item,
        html body.home-2026 nav#bottomNav.ms-bottom-nav .ms-bottom-nav-item {
            min-height: 66px !important;
            height: 66px !important;
            max-height: 66px !important;
            padding: 8px 4px 7px !important;
            display: inline-flex !important;
            flex-direction: column !important;
            align-items: center !important;
            justify-content: center !important;
            gap: 5px !important;
        }

        html body.home-2026 .ms-bottom-nav .ms-bottom-nav-icon,
        html body.home-2026 nav#bottomNav.ms-bottom-nav .ms-bottom-nav-icon {
            font-size: 24px !important;
            line-height: 1 !important;
            margin: 0 !important;
            flex: 0 0 auto !important;
        }

        html body.home-2026 .ms-bottom-nav .ms-bottom-nav-label,
        html body.home-2026 nav#bottomNav.ms-bottom-nav .ms-bottom-nav-label {
            display: block !important;
            width: 100% !important;
            font-size: 11px !important;
            line-height: 1.2 !important;
            white-space: nowrap !important;
            overflow: hidden !important;
            text-overflow: ellipsis !important;
        }

        .modal-dialog {
            margin-top: max(8px, env(safe-area-inset-top, 0px)) !important;
            margin-bottom: max(8px, env(safe-area-inset-bottom, 0px)) !important;
        }

        .modal-content {
            max-height: calc(100vh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 16px) !important;
        }

        .auth-shell {
            min-height: -webkit-fill-available !important;
        }
    }
}

@media (max-width: 991.98px) {
    :root {
        --mshub-final-nav-height: 70px;
        --mshub-final-nav-bottom: max(10px, env(safe-area-inset-bottom, 0px));
        --mshub-final-nav-side: max(12px, env(safe-area-inset-left, 0px));
        --mshub-final-nav-space: calc(var(--mshub-final-nav-height) + var(--mshub-final-nav-bottom) + 18px);
    }

    body:not(.modal-open):not(.mobile-menu-open):not(.warehouse-sidebar-open):not(.mshub-warehouse-active):not(.mshub-language-modal-open):not(.mshub-mobile-language-sheet-open) {
        padding-bottom: var(--mshub-final-nav-space) !important;
    }

    body:not(.home-2026):not(.modal-open):not(.mobile-menu-open):not(.warehouse-sidebar-open):not(.mshub-warehouse-active):not(.mshub-language-modal-open):not(.mshub-mobile-language-sheet-open) .main-content,
    body:not(.home-2026):not(.modal-open):not(.mobile-menu-open):not(.warehouse-sidebar-open):not(.mshub-warehouse-active):not(.mshub-language-modal-open):not(.mshub-mobile-language-sheet-open) .container-fluid,
    body:not(.home-2026):not(.modal-open):not(.mobile-menu-open):not(.warehouse-sidebar-open):not(.mshub-warehouse-active):not(.mshub-language-modal-open):not(.mshub-mobile-language-sheet-open) main {
        padding-bottom: var(--mshub-final-nav-space) !important;
    }

    body.home-2026 {
        padding-bottom: calc(var(--mshub-final-nav-space) + 10px) !important;
    }

    html body nav.mobile-bottom-nav,
    html body .mobile-bottom-nav,
    html body .ms-bottom-nav,
    html body nav#bottomNav.ms-bottom-nav,
    html body.home-2026 .ms-bottom-nav,
    html body.home-2026 nav#bottomNav.ms-bottom-nav {
        position: fixed !important;
        left: var(--mshub-final-nav-side) !important;
        right: var(--mshub-final-nav-side) !important;
        bottom: var(--mshub-final-nav-bottom) !important;
        top: auto !important;
        width: auto !important;
        max-width: none !important;
        height: var(--mshub-final-nav-height) !important;
        min-height: var(--mshub-final-nav-height) !important;
        max-height: var(--mshub-final-nav-height) !important;
        margin: 0 !important;
        padding: 6px !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 5px !important;
        border: 1px solid rgba(15, 23, 42, 0.10) !important;
        border-radius: 22px !important;
        background: rgba(255, 255, 255, 0.96) !important;
        box-shadow: 0 14px 36px rgba(15, 23, 42, 0.18) !important;
        backdrop-filter: blur(18px) saturate(170%) !important;
        -webkit-backdrop-filter: blur(18px) saturate(170%) !important;
        transform: translateZ(0) !important;
        -webkit-transform: translateZ(0) !important;
        overflow: visible !important;
        box-sizing: border-box !important;
        z-index: 2147483600 !important;
        isolation: isolate !important;
    }

    html body nav.mobile-bottom-nav .mobile-nav-item,
    html body .mobile-bottom-nav .mobile-nav-item,
    html body .ms-bottom-nav .ms-bottom-nav-item,
    html body.home-2026 .ms-bottom-nav .ms-bottom-nav-item,
    html body.home-2026 nav#bottomNav.ms-bottom-nav .ms-bottom-nav-item {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        min-height: 58px !important;
        height: 58px !important;
        max-height: 58px !important;
        margin: 0 !important;
        padding: 6px 3px 5px !important;
        display: inline-flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 3px !important;
        border-radius: 17px !important;
        color: #64748b !important;
        -webkit-text-fill-color: #64748b !important;
        background: transparent !important;
        box-shadow: none !important;
        text-decoration: none !important;
        overflow: hidden !important;
        transform: none !important;
        box-sizing: border-box !important;
        -webkit-tap-highlight-color: transparent !important;
    }

    html body nav.mobile-bottom-nav .mobile-nav-item.active,
    html body .mobile-bottom-nav .mobile-nav-item.active,
    html body .ms-bottom-nav .ms-bottom-nav-item.active,
    html body.home-2026 .ms-bottom-nav .ms-bottom-nav-item.active,
    html body.home-2026 nav#bottomNav.ms-bottom-nav .ms-bottom-nav-item.active {
        color: #2563eb !important;
        -webkit-text-fill-color: #2563eb !important;
        background: rgba(37, 99, 235, 0.10) !important;
        box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.12) !important;
    }

    html body nav.mobile-bottom-nav .mobile-nav-item i,
    html body .mobile-bottom-nav .mobile-nav-item i,
    html body .ms-bottom-nav .ms-bottom-nav-icon,
    html body.home-2026 .ms-bottom-nav .ms-bottom-nav-icon,
    html body.home-2026 nav#bottomNav.ms-bottom-nav .ms-bottom-nav-icon {
        display: block !important;
        font-size: 21px !important;
        line-height: 1 !important;
        margin: 0 !important;
        color: currentColor !important;
        -webkit-text-fill-color: currentColor !important;
        flex: 0 0 auto !important;
    }

    html body nav.mobile-bottom-nav .mobile-nav-item span:not(.mobile-nav-badge),
    html body .mobile-bottom-nav .mobile-nav-item span:not(.mobile-nav-badge),
    html body .ms-bottom-nav .ms-bottom-nav-label,
    html body.home-2026 .ms-bottom-nav .ms-bottom-nav-label,
    html body.home-2026 nav#bottomNav.ms-bottom-nav .ms-bottom-nav-label {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        font-size: 10.5px !important;
        line-height: 1.12 !important;
        font-weight: 800 !important;
        letter-spacing: 0 !important;
        text-align: center !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        color: currentColor !important;
        -webkit-text-fill-color: currentColor !important;
    }

    body.home-2026 .ms-status-indicator {
        bottom: calc(var(--mshub-final-nav-space) + 8px) !important;
    }
}

@media (max-width: 360px) {
    :root {
        --mshub-final-nav-side: max(8px, env(safe-area-inset-left, 0px));
    }

    html body nav.mobile-bottom-nav .mobile-nav-item span:not(.mobile-nav-badge),
    html body .mobile-bottom-nav .mobile-nav-item span:not(.mobile-nav-badge),
    html body .ms-bottom-nav .ms-bottom-nav-label {
        font-size: 9.5px !important;
    }
}

@media (max-width: 991.98px) {
    html body .main-content {
        padding-top: max(8px, env(safe-area-inset-top, 0px)) !important;
    }

    html body .main-content > .modern-navbar,
    html body .modern-navbar.glass-container {
        position: sticky !important;
        top: max(8px, env(safe-area-inset-top, 0px)) !important;
        margin: 0 max(10px, env(safe-area-inset-right, 0px)) 14px max(10px, env(safe-area-inset-left, 0px)) !important;
        padding: 8px 10px !important;
        min-height: 70px !important;
        border-radius: 22px !important;
        overflow: hidden !important;
        z-index: 1200 !important;
        isolation: isolate !important;
    }

    html body .modern-navbar .navbar-container {
        min-height: 52px !important;
        gap: 8px !important;
        align-items: center !important;
    }

    html body .modern-navbar .brand-section,
    html body .modern-navbar .navbar-left,
    html body .modern-navbar .navbar-right {
        min-width: 0 !important;
    }

    html body .modern-navbar .brand-icon,
    html body .modern-navbar .user-profile-card,
    html body .modern-navbar .btn-modern-logout {
        width: 50px !important;
        height: 50px !important;
        min-width: 50px !important;
        min-height: 50px !important;
        border-radius: 16px !important;
        padding: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex: 0 0 auto !important;
    }

    html body .modern-navbar .user-avatar {
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
    }

    html body .modern-navbar .brand-text,
    html body .modern-navbar .user-details,
    html body .modern-navbar .btn-modern-logout span {
        display: none !important;
    }

    html body .admin-command-center,
    html body .user-dashboard-page {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        padding-left: max(12px, env(safe-area-inset-left, 0px)) !important;
        padding-right: max(12px, env(safe-area-inset-right, 0px)) !important;
        padding-top: 8px !important;
        padding-bottom: calc(var(--mshub-final-nav-space, 98px) + 18px) !important;
        overflow-x: hidden !important;
    }

    html body .admin-command-center > :first-child,
    html body .user-dashboard-page > :first-child {
        margin-top: 0 !important;
    }

    html body .cmd-hero,
    html body .cmd-main-grid,
    html body .ops-grid,
    html body .dashboard-content-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    html body .cmd-hero-main,
    html body .cmd-status-panel,
    html body .cmd-panel,
    html body .health-panel,
    html body .user-hero-panel,
    html body .dashboard-panel {
        border-radius: 18px !important;
        box-shadow: 0 10px 26px rgba(15, 23, 42, 0.09) !important;
        overflow: hidden !important;
    }

    html body .cmd-hero-main {
        padding: 14px !important;
    }

    html body .cmd-title {
        font-size: clamp(22px, 6vw, 28px) !important;
        line-height: 1.12 !important;
        max-width: 100% !important;
    }

    html body .cmd-subtitle {
        font-size: 14px !important;
        line-height: 1.35 !important;
        max-width: 100% !important;
    }

    html body .cmd-hero-actions {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    html body .cmd-action {
        width: 100% !important;
        min-width: 0 !important;
        min-height: 44px !important;
        padding: 8px 7px !important;
        border-radius: 14px !important;
        font-size: 12px !important;
        line-height: 1.05 !important;
        text-align: center !important;
        justify-content: center !important;
        white-space: normal !important;
    }

    html body .cmd-stats-grid,
    html body .user-stat-grid,
    html body .quick-action-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    html body .cmd-stat-card,
    html body .user-stat-card,
    html body .quick-action-card {
        min-width: 0 !important;
        min-height: 92px !important;
        padding: 12px 10px !important;
        border-radius: 18px !important;
    }

    html body .health-grid {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }
}

@media (max-width: 575.98px) {
    html body .admin-command-center,
    html body .user-dashboard-page {
        padding-left: max(10px, env(safe-area-inset-left, 0px)) !important;
        padding-right: max(10px, env(safe-area-inset-right, 0px)) !important;
        padding-top: 6px !important;
    }

    html body .cmd-title {
        font-size: 20px !important;
        display: block !important;
        overflow: visible !important;
    }

    html body .cmd-subtitle {
        display: block !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    html body .cmd-stat-label,
    html body .user-stat-card span,
    html body .quick-action-card span {
        overflow-wrap: normal !important;
        word-break: normal !important;
        hyphens: none !important;
    }
}

/* 20260618h-final: last-pass iPhone/Safari authenticated compact shell. */
@supports (-webkit-touch-callout: none) {
    @media (max-width: 991.98px) {
        html body.mshub-authenticated,
        html body.mshub-authenticated:not(.modal-open):not(.mobile-menu-open):not(.warehouse-sidebar-open):not(.mshub-warehouse-active):not(.mshub-language-modal-open):not(.mshub-mobile-language-sheet-open) {
            width: 100% !important;
            max-width: 100% !important;
            min-height: -webkit-fill-available !important;
            overflow-x: hidden !important;
            overflow-y: auto !important;
            padding-top: 0 !important;
            padding-bottom: calc(82px + env(safe-area-inset-bottom, 0px)) !important;
            background: #f6f8fb !important;
        }

        html body.mshub-authenticated .main-content {
            width: 100% !important;
            max-width: 100% !important;
            margin-left: 0 !important;
            padding: max(6px, env(safe-area-inset-top, 0px)) 0 calc(88px + env(safe-area-inset-bottom, 0px)) !important;
            overflow-x: hidden !important;
        }

        html body.mshub-authenticated .main-content > .modern-navbar,
        html body.mshub-authenticated .modern-navbar.glass-container {
            position: relative !important;
            top: auto !important;
            left: auto !important;
            right: auto !important;
            width: auto !important;
            max-width: none !important;
            min-height: 68px !important;
            margin: 0 max(10px, env(safe-area-inset-right, 0px)) 12px max(10px, env(safe-area-inset-left, 0px)) !important;
            padding: 8px 9px !important;
            border-radius: 20px !important;
            transform: none !important;
            -webkit-transform: none !important;
            overflow: hidden !important;
        }

        html body.mshub-authenticated nav.mobile-bottom-nav,
        html body.mshub-authenticated .mobile-bottom-nav {
            left: max(10px, env(safe-area-inset-left, 0px)) !important;
            right: max(10px, env(safe-area-inset-right, 0px)) !important;
            bottom: max(2px, calc(env(safe-area-inset-bottom, 0px) - 24px)) !important;
            width: auto !important;
            max-width: none !important;
            height: 68px !important;
            min-height: 68px !important;
            max-height: 68px !important;
            padding: 5px !important;
            border-radius: 21px !important;
            gap: 4px !important;
            overflow: visible !important;
        }

        html body.mshub-authenticated nav.mobile-bottom-nav .mobile-nav-item,
        html body.mshub-authenticated .mobile-bottom-nav .mobile-nav-item {
            min-height: 56px !important;
            height: 56px !important;
            max-height: 56px !important;
            padding: 5px 2px 4px !important;
            border-radius: 16px !important;
            gap: 3px !important;
        }

        html body.mshub-authenticated nav.mobile-bottom-nav .mobile-nav-item i,
        html body.mshub-authenticated .mobile-bottom-nav .mobile-nav-item i {
            font-size: 20px !important;
        }

        html body.mshub-authenticated nav.mobile-bottom-nav .mobile-nav-item span:not(.mobile-nav-badge),
        html body.mshub-authenticated .mobile-bottom-nav .mobile-nav-item span:not(.mobile-nav-badge) {
            font-size: 9.8px !important;
            line-height: 1.05 !important;
        }

        html body.mshub-authenticated .admin-command-center,
        html body.mshub-authenticated .user-dashboard-page,
        html body.mshub-authenticated .main-container {
            width: 100% !important;
            max-width: 100% !important;
            overflow-x: hidden !important;
            padding-left: max(10px, env(safe-area-inset-left, 0px)) !important;
            padding-right: max(10px, env(safe-area-inset-right, 0px)) !important;
            padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px)) !important;
        }

        html body.mshub-cars-page .cars-header,
        html body.mshub-cars-page .filter-section,
        html body.mshub-cars-page .car-card {
            backdrop-filter: none !important;
            -webkit-backdrop-filter: none !important;
        }

        html body.mshub-cars-page .stats-grid {
            display: none !important;
        }

        html body.mshub-cars-page .car-info-grid {
            display: grid !important;
            grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
            gap: 8px !important;
            margin-top: 10px !important;
        }

        html body.mshub-cars-page .info-item {
            min-width: 0 !important;
            padding: 8px !important;
            border-radius: 12px !important;
            gap: 7px !important;
            background: #f8fafc !important;
            box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06) !important;
            align-items: center !important;
        }

        html body.mshub-cars-page .info-icon {
            width: 32px !important;
            height: 32px !important;
            min-width: 32px !important;
            border-radius: 10px !important;
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            font-size: 15px !important;
            background: rgba(37, 99, 235, 0.10) !important;
            color: #2563eb !important;
        }

        html body.mshub-cars-page .info-content {
            min-width: 0 !important;
        }

        html body.mshub-cars-page .info-label {
            font-size: 10px !important;
            line-height: 1.1 !important;
            color: #64748b !important;
            white-space: nowrap !important;
            overflow: hidden !important;
            text-overflow: ellipsis !important;
        }

        html body.mshub-cars-page .info-value {
            font-size: 12px !important;
            line-height: 1.15 !important;
            color: #0f172a !important;
            font-weight: 800 !important;
            overflow-wrap: anywhere !important;
        }

        html body.mshub-cars-page .car-badges,
        html body.mshub-cars-page .card-actions {
            display: flex !important;
            flex-wrap: wrap !important;
            gap: 8px !important;
            margin-top: 10px !important;
        }

        html body.mshub-cars-page .oil-indicator,
        html body.mshub-cars-page .service-lock-panel {
            display: block !important;
            margin-top: 10px !important;
        }

        @media (max-width: 360px) {
            html body.mshub-cars-page .car-info-grid {
                grid-template-columns: 1fr !important;
            }
        }
    }
}

/* 20260618i: mobile floating tools rail, kept low and away from page content. */
@media (max-width: 991.98px), (hover: none) and (pointer: coarse) {
    html body.mshub-authenticated .mshub-app-center-fab,
    html body.mshub-authenticated #mshubAppCenterToggle,
    html body.mshub-authenticated .mshub-compact-toggle,
    html body.mshub-authenticated .mshub-push-toggle {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    html body.mshub-authenticated #mshubCompactMenuToggle:not([hidden]) {
        display: flex !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }
}

/* 20260618i: legacy floating rail disabled. Tools now live inside the mobile menu. */
@media (max-width: 991.98px), (hover: none) and (pointer: coarse) {
    html body.mshub-authenticated .mshub-app-center-fab,
    html body.mshub-authenticated #mshubAppCenterToggle,
    html body.mshub-authenticated .mshub-compact-toggle {
        position: fixed !important;
        right: max(12px, env(safe-area-inset-right, 0px)) !important;
        left: auto !important;
        top: auto !important;
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
        min-height: 42px !important;
        max-width: 42px !important;
        max-height: 42px !important;
        padding: 0 !important;
        border-radius: 14px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border: 1px solid rgba(37, 99, 235, 0.18) !important;
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16) !important;
        transform: translateZ(0) !important;
        -webkit-transform: translateZ(0) !important;
        z-index: 2147483500 !important;
    }

    html body.mshub-authenticated .mshub-app-center-fab,
    html body.mshub-authenticated #mshubAppCenterToggle {
        bottom: calc(var(--mshub-final-nav-space, 88px) + 54px) !important;
        background: #ffffff !important;
        color: #2563eb !important;
        -webkit-text-fill-color: #2563eb !important;
    }

    html body.mshub-authenticated .mshub-compact-toggle {
        bottom: calc(var(--mshub-final-nav-space, 88px) + 6px) !important;
        background: #2563eb !important;
        color: #ffffff !important;
        -webkit-text-fill-color: #ffffff !important;
    }

    html body.mshub-authenticated .mshub-compact-toggle:not(.is-active) {
        background: #ffffff !important;
        color: #2563eb !important;
        -webkit-text-fill-color: #2563eb !important;
    }

    html body.mshub-authenticated .mshub-app-center-fab[hidden] {
        display: none !important;
    }

    html body.mshub-authenticated .mshub-app-center-fab i,
    html body.mshub-authenticated .mshub-compact-toggle i {
        font-size: 17px !important;
        line-height: 1 !important;
        color: currentColor !important;
        -webkit-text-fill-color: currentColor !important;
    }

    html body.mshub-authenticated .mshub-app-center-dot {
        top: -6px !important;
        right: -6px !important;
        min-width: 18px !important;
        height: 18px !important;
        padding: 0 5px !important;
        font-size: 9px !important;
    }

    html body.mshub-authenticated .mshub-app-center {
        z-index: 2147483490 !important;
        padding-bottom: calc(var(--mshub-final-nav-space, 88px) + 12px) !important;
    }
}

@media (max-width: 380px) {
    html body.mshub-authenticated .mshub-app-center-fab,
    html body.mshub-authenticated #mshubAppCenterToggle,
    html body.mshub-authenticated .mshub-compact-toggle {
        right: max(8px, env(safe-area-inset-right, 0px)) !important;
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
        max-width: 40px !important;
        max-height: 40px !important;
    }
}

/* 20260618j-final: floating notification/compact tools are removed from pages. */
@media (max-width: 991.98px), (hover: none) and (pointer: coarse) {
    html body.mshub-authenticated .mshub-app-center-fab,
    html body.mshub-authenticated #mshubAppCenterToggle,
    html body.mshub-authenticated .mshub-compact-toggle,
    html body.mshub-authenticated .mshub-push-toggle {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    html body.mshub-authenticated #mshubCompactMenuToggle:not([hidden]),
    html body.mshub-authenticated #mshubAppCenterMenuToggle {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
}

/* 20260618k Mobile Shell v1.0: hidden always wins, tools live only in Meniu. */
@media (max-width: 991.98px), (hover: none) and (pointer: coarse) {
    html body.mshub-authenticated [hidden],
    html body.mshub-authenticated .mshub-app-center-fab[hidden],
    html body.mshub-authenticated #mshubAppCenterToggle[hidden],
    html body.mshub-authenticated #mshubCompactMenuToggle[hidden],
    html body.mshub-authenticated .mshub-message-badge[hidden],
    html body.mshub-authenticated .mshub-app-center-dot[hidden] {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    html body.mshub-authenticated .mshub-app-center-fab,
    html body.mshub-authenticated #mshubAppCenterToggle,
    html body.mshub-authenticated .mshub-compact-toggle,
    html body.mshub-authenticated .mshub-push-toggle {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    html body.mshub-authenticated #mshubAppCenterMenuToggle,
    html body.mshub-authenticated #mshubCompactMenuToggle:not([hidden]),
    html body.mshub-authenticated #mshubUpdateAppMenuToggle,
    html body.mshub-authenticated #mshubRefreshAppMenuToggle {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
}

/* 20260618l-final: Management Masini compact mobile cards. */
@media (max-width: 575.98px) {
    html body.mshub-cars-page .main-container {
        padding-left: max(6px, env(safe-area-inset-left, 0px)) !important;
        padding-right: max(6px, env(safe-area-inset-right, 0px)) !important;
    }

    html body.mshub-cars-page .cars-header,
    html body.mshub-cars-page .filter-section,
    html body.mshub-cars-page .car-card {
        border-radius: 14px !important;
    }

    html body.mshub-cars-page .cars-header {
        padding: 12px 10px !important;
        margin-bottom: 10px !important;
    }

    html body.mshub-cars-page .filter-section {
        padding: 10px !important;
        margin-bottom: 10px !important;
    }

    html body.mshub-cars-page .filter-grid {
        gap: 8px !important;
    }

    html body.mshub-cars-page .search-box,
    html body.mshub-cars-page .search-input,
    html body.mshub-cars-page .filter-select,
    html body.mshub-cars-page .select2-container .select2-selection--single {
        min-height: 40px !important;
        height: 40px !important;
        border-radius: 10px !important;
    }

    html body.mshub-cars-page .car-card {
        padding: 10px !important;
        margin-bottom: 10px !important;
        overflow: visible !important;
        box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08) !important;
    }

    html body.mshub-cars-page .car-card-header {
        align-items: center !important;
        gap: 8px !important;
        margin-bottom: 8px !important;
        padding-bottom: 8px !important;
    }

    html body.mshub-cars-page .car-title {
        min-width: 0 !important;
        gap: 7px !important;
    }

    html body.mshub-cars-page .car-icon,
    html body.mshub-cars-page .service-icon-btn {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        border-radius: 10px !important;
        font-size: 14px !important;
    }

    html body.mshub-cars-page .license-plate {
        max-width: 140px !important;
        padding: 7px 10px !important;
        border-radius: 9px !important;
        font-size: 13px !important;
        line-height: 1 !important;
        letter-spacing: 0 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    html body.mshub-cars-page .car-actions {
        flex: 0 0 auto !important;
        gap: 6px !important;
        margin-left: auto !important;
    }

    html body.mshub-cars-page .action-btn {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
        border-radius: 11px !important;
        border-width: 1px !important;
        font-size: 14px !important;
    }

    html body.mshub-cars-page .notification-badge {
        min-width: 16px !important;
        height: 16px !important;
        padding: 0 4px !important;
        font-size: 10px !important;
        line-height: 16px !important;
        top: -6px !important;
        right: -6px !important;
    }

    html body.mshub-cars-page .car-info-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        grid-auto-rows: auto !important;
        align-items: stretch !important;
        gap: 7px !important;
        margin: 0 0 8px !important;
    }

    html body.mshub-cars-page .car-info-grid > .info-item {
        min-height: 54px !important;
        height: auto !important;
        padding: 7px !important;
        gap: 6px !important;
        border-radius: 10px !important;
        align-items: center !important;
    }

    html body.mshub-cars-page .car-info-grid > .info-item:nth-child(5) {
        grid-column: 1 / -1 !important;
    }

    html body.mshub-cars-page .info-icon {
        width: 26px !important;
        height: 26px !important;
        min-width: 26px !important;
        border-radius: 8px !important;
        font-size: 12px !important;
    }

    html body.mshub-cars-page .info-label {
        font-size: 9px !important;
        line-height: 1 !important;
        margin-bottom: 2px !important;
    }

    html body.mshub-cars-page .info-value {
        font-size: 11px !important;
        line-height: 1.1 !important;
        font-weight: 800 !important;
    }

    html body.mshub-cars-page .oil-indicator,
    html body.mshub-cars-page .service-lock-panel {
        margin-top: 8px !important;
        padding: 8px !important;
        border-radius: 10px !important;
    }

    html body.mshub-cars-page .card-actions {
        gap: 6px !important;
        margin-top: 8px !important;
    }

    html body.mshub-cars-page .card-actions .btn {
        min-height: 36px !important;
        padding: 7px 8px !important;
        border-radius: 10px !important;
        font-size: 11px !important;
    }
}

/* 20260618m-last: filtered car cards stay hidden after every mobile override. */
html body.mshub-cars-page .car-card[hidden],
html body.mshub-cars-page .car-card.mshub-filter-hidden {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}