/* Mobile Sidebar — triggers + open panel chrome (mobile / tablet only) */

.ms-trigger.ms-is-hidden {
    display: none !important;
}

/* ---------- FAB (icon only) ---------- */
.ms-draggable {
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    cursor: grab;
}

.ms-draggable.ms-is-dragging {
    cursor: grabbing;
    opacity: 0.92;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.ms-trigger--fab {
    position: fixed;
    right: 16px;
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    z-index: 1080;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--hh-primary, var(--primary, #e10600));
    color: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    -webkit-tap-highlight-color: transparent;
}

.ms-trigger--fab .fa {
    font-size: 18px;
    pointer-events: none;
}

.ms-trigger--fab:active:not(.ms-is-dragging) {
    transform: scale(0.96);
}

/* ---------- Edge tab ---------- */
.ms-trigger--edge {
    position: fixed;
    top: 45%;
    right: 0;
    z-index: 1080;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 64px;
    padding: 0;
    border: 0;
    border-radius: 10px 0 0 10px;
    background: var(--hh-primary, var(--primary, #e10600));
    color: #fff;
    box-shadow: -2px 2px 12px rgba(0, 0, 0, 0.35);
    -webkit-tap-highlight-color: transparent;
}

.ms-trigger--edge .fa {
    font-size: 14px;
    pointer-events: none;
}

/* ---------- Open panel ---------- */
.layout-sidebar-container.ms-sidebar-open {
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.4);
}

/* Kill leftover core mobile padding when our overlay is open */
body.ms-sidebar-visible .layout-sidebar-container.ms-sidebar-open {
    padding-top: max(12px, env(safe-area-inset-top, 0px)) !important;
    padding-bottom: max(12px, env(safe-area-inset-bottom, 0px)) !important;
}

/* Desktop: never show our triggers (JS also gates, this is a hard CSS backup) */
@media (min-width: 992px) {
    .ms-trigger {
        display: none !important;
    }
}
