/* RUPTLINE_WORKSPACE_SHELL_10B3E */

.rl-app-login,
.rl-app-register,
.site-rail-bottom > a[href*="dashboard"],
[data-rl-auth-duplicate-hidden="true"],
[data-rl-legacy-account-hidden="true"],
[data-rl-user-placeholder-hidden="true"],
.rl-unified-fallback-sidebar {
    display: none !important;
}

html.rl-shell-prepaint .rl-app-login,
html.rl-shell-prepaint .rl-app-register,
html.rl-shell-prepaint .site-rail-bottom > a[href*="dashboard"],
html.rl-shell-prepaint body > .rl-account-entry {
    visibility: hidden !important;
}

body > .rl-account-entry,
.site-app-rail .rl-sidebar-extension .rl-sidebar-business__button,
.site-app-rail .rl-sidebar-extension .rl-commerce-menu__button,
.site-app-rail .rl-sidebar-extension .rl-sidebar-history__toggle,
.site-app-rail .rl-sidebar-extension .rl-account-entry {
    visibility: hidden !important;
}

.site-app-rail .rl-shell-dynamic > .rl-shell-action,
.site-app-rail .site-rail-bottom > .rl-shell-account {
    visibility: visible !important;
}

.site-app-rail.rl-clean-shell-rail .site-rail-bottom {
    display: grid;
    width: 100%;
    justify-items: center;
    gap: 6px;
}

.rl-shell-dynamic {
    display: grid;
    width: 100%;
    justify-items: center;
    gap: 6px;
}

.rl-shell-dynamic:empty {
    display: none;
}

.site-app-rail .rl-shell-action,
.site-app-rail .rl-shell-account {
    position: relative !important;
    inset: auto !important;
    display: grid !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    flex: 0 0 42px !important;
    place-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 13px !important;
    outline: 0;
    color: var(--rail-muted, var(--rl-app-muted, #686866)) !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    font: inherit !important;
    text-decoration: none !important;
    cursor: pointer;
    transform: none !important;
    transition: color 150ms ease, background 150ms ease, transform 150ms ease !important;
}

.site-app-rail .rl-shell-action[hidden],
.site-app-rail .rl-shell-account[hidden] {
    display: none !important;
}

.site-app-rail .rl-shell-action:hover,
.site-app-rail .rl-shell-action:focus-visible,
.site-app-rail .rl-shell-action.is-active,
.site-app-rail .rl-shell-account:hover,
.site-app-rail .rl-shell-account:focus-visible {
    color: var(--rail-text, var(--rl-app-text, #111)) !important;
    background: var(--rail-panel, var(--rl-app-panel, #fff)) !important;
    box-shadow: 0 1px 2px rgba(16, 24, 16, .04) !important;
    transform: translateY(-1px) !important;
}

.site-app-rail .rl-shell-action > span:first-child,
.site-app-rail .rl-shell-action .rl-sidebar-business__icon,
.site-app-rail .rl-shell-action .rl-commerce-menu__icon,
.site-app-rail .rl-shell-action .rl-sidebar-history__icon {
    display: grid !important;
    width: 22px !important;
    height: 22px !important;
    flex: 0 0 22px !important;
    place-items: center !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: inherit !important;
    background: transparent !important;
    font-size: 0 !important;
}

.site-app-rail .rl-shell-action svg {
    display: block;
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.site-app-rail .rl-shell-action .rl-sidebar-business__copy,
.site-app-rail .rl-shell-action > span:last-child:not(:first-child),
.site-app-rail .rl-shell-action .rl-sidebar-history__label,
.site-app-rail .rl-shell-action .rl-sidebar-history__chevron,
.site-app-rail .rl-shell-account .rl-account-entry__label {
    display: none !important;
}

.site-app-rail .rl-shell-account .rl-account-entry__avatar {
    display: grid !important;
    width: 29px !important;
    height: 29px !important;
    flex: 0 0 29px !important;
    place-items: center !important;
    border-radius: 50% !important;
    color: var(--rl-account-on-strong, #fff) !important;
    background: var(--rl-account-strong, #111) !important;
    font-size: 11px !important;
}

.site-app-rail .rl-shell-account.is-guest .rl-account-entry__avatar {
    width: 22px !important;
    height: 22px !important;
    flex-basis: 22px !important;
    border-radius: 0 !important;
    color: inherit !important;
    background: transparent !important;
}

.site-app-rail .rl-shell-account.is-guest .rl-account-entry__avatar svg {
    display: block;
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.site-app-rail .rl-shell-account-placeholder__icon {
    display: grid !important;
    width: 22px !important;
    height: 22px !important;
    place-items: center !important;
    color: inherit !important;
}

.site-app-rail .rl-shell-account-placeholder__icon svg {
    display: block;
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.site-app-rail [data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    left: calc(100% + 13px);
    top: 50%;
    z-index: 10080;
    display: block;
    padding: 8px 10px;
    white-space: nowrap;
    border: 1px solid var(--rail-line, var(--rl-app-line, #ddd));
    border-radius: 9px;
    color: var(--rail-text, var(--rl-app-text, #111));
    background: var(--rail-panel, var(--rl-app-panel, #fff));
    box-shadow: 0 14px 38px rgba(0, 0, 0, .18);
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    opacity: 0;
    pointer-events: none;
    transform: translate(4px, -50%);
    transition: opacity 140ms ease, transform 140ms ease;
}

.site-app-rail [data-tooltip]:hover::after,
.site-app-rail [data-tooltip]:focus-visible::after {
    opacity: 1;
    transform: translate(0, -50%);
}

.rl-sidebar-extension.rl-shell-portal {
    display: contents !important;
    width: auto !important;
    min-width: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.rl-shell-portal .rl-sidebar-business,
.rl-shell-portal .rl-sidebar-account,
.rl-shell-portal > .rl-commerce-menu {
    display: contents !important;
    margin: 0 !important;
    padding: 0 !important;
}

.rl-shell-portal .rl-sidebar-history {
    display: block !important;
    width: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
}

.rl-shell-portal .rl-sidebar-history__list {
    position: fixed !important;
    z-index: 10020 !important;
    left: 80px !important;
    bottom: 74px !important;
    display: none !important;
    width: min(300px, calc(100vw - 96px)) !important;
    max-height: min(62vh, 500px) !important;
    padding: 8px !important;
    overflow: auto !important;
    border: 1px solid var(--rl-history-line, rgba(17,17,17,.12)) !important;
    border-radius: 16px !important;
    color: var(--rl-history-text, #111) !important;
    background: var(--rl-history-bg, #fff) !important;
    box-shadow: var(--rl-history-shadow, 0 18px 60px rgba(0,0,0,.18)) !important;
}

.rl-shell-portal.is-history-open .rl-sidebar-history__list {
    display: block !important;
}

.rl-commerce-title__mark svg {
    display: block;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.rl-commerce-loading__spinner {
    display: block;
    width: 28px;
    height: 28px;
    margin: 0 auto 16px;
    border: 2px solid var(--rlc-line, #e6e6e1);
    border-top-color: var(--rlc-ink, #111);
    border-radius: 50%;
    animation: rl-commerce-spin-10b3e .7s linear infinite;
}

/* POS y Mi negocio viven en la mesa de trabajo, no en ventanas flotantes. */
body.has-rl-public-app > .rl-commerce-overlay,
body.has-rl-public-app > .rl-business-overlay {
    visibility: hidden !important;
}

.rl-app-scroll.is-workspace-open {
    padding: 0 !important;
    overflow: hidden !important;
}

.rl-app-scroll > .rl-public-view.is-workspace-hidden {
    display: none !important;
}

/* El footer pertenece a la página pública y no entra en POS o Mi negocio. */
.rl-app-scroll.is-workspace-open > .rl-app-footer {
    display: none !important;
}

.rl-account-overlay:not(.is-open),
body > .rl-business-overlay:not(.is-open),
body > .rl-commerce-overlay:not(.is-open) {
    display: none !important;
}


body.has-rl-public-app .rl-app-scroll > .rl-workspace-panel {
    position: relative !important;
    inset: auto !important;
    z-index: 2 !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    background: var(--rl-app-surface, #fafbf9) !important;
    transition: none !important;
}

body.has-rl-public-app .rl-app-scroll > .rl-workspace-panel[hidden],
body.has-rl-public-app .rl-app-scroll > .rl-workspace-panel:not(.is-workspace-active) {
    display: none !important;
}

body.has-rl-public-app .rl-app-scroll > .rl-commerce-overlay.is-workspace-active {
    display: flex !important;
    align-items: stretch !important;
    justify-content: stretch !important;
}

body.has-rl-public-app .rl-app-scroll > .rl-business-overlay.is-workspace-active {
    display: block !important;
}

body.has-rl-public-app .rl-app-scroll > .rl-commerce-overlay .rl-commerce-overlay__dismiss,
body.has-rl-public-app .rl-app-scroll > .rl-commerce-overlay .rl-commerce-close,
body.has-rl-public-app .rl-app-scroll > .rl-business-overlay .rl-business-overlay__dismiss,
body.has-rl-public-app .rl-app-scroll > .rl-business-overlay .rl-business-close {
    display: none !important;
}

body.has-rl-public-app .rl-app-scroll > .rl-commerce-overlay .rl-commerce-app {
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    min-width: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transform: none !important;
}

body.has-rl-public-app .rl-app-scroll > .rl-business-overlay .rl-business-panel {
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    max-height: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transform: none !important;
}

body.has-rl-public-app .rl-app-scroll > .rl-business-overlay .rl-business-panel__body {
    height: 100% !important;
    padding: clamp(16px, 2.2vw, 28px) !important;
}

body.has-rl-public-app .rl-app-scroll > .rl-business-overlay .rl-business-header {
    top: calc(-1 * clamp(16px, 2.2vw, 28px)) !important;
    margin: calc(-1 * clamp(16px, 2.2vw, 28px)) calc(-1 * clamp(16px, 2.2vw, 28px)) 20px !important;
    padding: 16px clamp(16px, 2.2vw, 28px) !important;
}

@keyframes rl-commerce-spin-10b3e {
    to { transform: rotate(360deg); }
}

@media (max-width: 760px) {
    .site-app-rail.rl-clean-shell-rail .site-rail-bottom,
    .rl-shell-dynamic {
        display: flex;
        width: auto;
        align-items: center;
        justify-content: center;
        gap: 0;
    }

    .rl-public-app .site-app-rail .site-rail-nav a,
    .site-app-rail .rl-shell-action,
    .site-app-rail .rl-shell-account {
        width: clamp(30px, 9vw, 38px) !important;
        height: 40px !important;
        min-width: clamp(30px, 9vw, 38px) !important;
        min-height: 40px !important;
        flex-basis: clamp(30px, 9vw, 38px) !important;
        border-radius: 11px !important;
    }

    .site-app-rail .rl-shell-account .rl-account-entry__avatar {
        width: 25px !important;
        height: 25px !important;
        flex-basis: 25px !important;
    }

    .rl-app-scroll.is-workspace-open {
        padding: 0 !important;
    }

    body.has-rl-public-app .rl-app-scroll > .rl-business-overlay .rl-business-panel {
        border-radius: 0 !important;
    }

    .site-app-rail [data-tooltip]::after {
        display: none !important;
    }

    .rl-shell-portal .rl-sidebar-history__list {
        left: 12px !important;
        right: 12px !important;
        bottom: calc(70px + env(safe-area-inset-bottom)) !important;
        width: auto !important;
        max-height: min(58vh, 460px) !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-app-rail .rl-shell-action,
    .site-app-rail .rl-shell-account,
    .site-app-rail [data-tooltip]::after {
        transition: none !important;
    }

    .rl-commerce-loading__spinner {
        animation: none;
    }
}


/* RUPTLINE_MOBILE_SHELL_R20A_DRAWER */
.rl-mobile-menu-button,
.rl-mobile-login-button,
.rl-mobile-drawer,
.rl-mobile-drawer-backdrop {
    display: none;
}

@media (max-width: 760px) {
    html.rl-mobile-menu-open,
    html.rl-mobile-menu-open body {
        overflow: hidden !important;
        overscroll-behavior: none !important;
    }

    body.has-site-app-rail,
    body.has-rl-public-app {
        padding-left: 0 !important;
        padding-bottom: 0 !important;
    }

    .rl-public-app,
    body.has-site-app-rail .rl-public-app {
        width: 100% !important;
        height: 100dvh !important;
        min-height: 100svh !important;
        overflow: hidden !important;
    }

    .rl-public-app .site-app-rail,
    .site-app-rail.rl-clean-shell-rail {
        display: none !important;
    }

    .rl-app-surface,
    .rl-public-app.is-home .rl-app-surface {
        height: 100% !important;
        min-height: 0 !important;
        grid-template-rows: 64px minmax(0, 1fr) !important;
    }

    .rl-app-topbar {
        position: relative;
        z-index: 520;
        min-height: 64px;
        padding: 0 12px 0 10px !important;
        gap: 8px !important;
        background: color-mix(in srgb, var(--rl-app-surface) 94%, transparent) !important;
        border-bottom-color: color-mix(in srgb, var(--rl-app-line) 76%, transparent) !important;
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
    }

    .rl-app-topbar-left {
        min-width: 0;
        gap: 7px !important;
        flex: 1 1 auto;
    }

    .rl-app-actions {
        flex: 0 0 auto;
        gap: 6px !important;
    }

    .rl-mobile-menu-button {
        appearance: none;
        display: grid;
        place-items: center;
        flex: 0 0 38px;
        width: 38px;
        height: 38px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        color: var(--rl-app-text);
        background: var(--rl-app-panel);
        box-shadow: 0 1px 2px rgba(0,0,0,.05);
        cursor: pointer;
    }

    .rl-mobile-menu-button svg,
    .rl-mobile-drawer__close svg,
    .rl-mobile-drawer__item-icon svg,
    .rl-mobile-drawer__item-arrow svg,
    .rl-mobile-drawer__account-icon svg,
    .rl-mobile-drawer__login svg {
        width: 20px;
        height: 20px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.7;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .rl-app-wordmark {
        flex: 0 1 auto;
        min-width: 0;
    }

    .rl-app-logo {
        width: 96px !important;
        max-width: 100%;
    }

    .rl-app-back,
    .rl-app-ask,
    .rl-app-location {
        display: none !important;
    }

    .rl-app-theme,
    .rl-shell-notify-button--top {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
        margin: 0 !important;
        flex: 0 0 36px !important;
        border-radius: 50% !important;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    html:not(.rl-authenticated-workspace) .rl-shell-notify-button--top {
        display: none !important;
    }

    .rl-mobile-login-button {
        appearance: none;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 96px;
        height: 38px;
        padding: 0 15px;
        border: 1px solid var(--rl-app-text);
        border-radius: 999px;
        color: var(--rl-app-panel);
        background: var(--rl-app-text);
        font: inherit;
        font-size: 11px;
        font-weight: 680;
        white-space: nowrap;
        cursor: pointer;
    }

    html.rl-authenticated-workspace .rl-mobile-login-button {
        display: none !important;
    }

    .rl-mobile-drawer-backdrop {
        appearance: none;
        position: fixed;
        inset: 0;
        z-index: 9800;
        width: 100%;
        height: 100dvh;
        margin: 0;
        padding: 0;
        border: 0;
        background: rgba(0,0,0,.34);
        backdrop-filter: none;
        opacity: 0;
        pointer-events: none;
        transition: opacity 170ms ease;
    }

    .rl-mobile-drawer-backdrop.is-open {
        display: block;
        opacity: 1;
        pointer-events: auto;
    }

    .rl-mobile-drawer {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 9810;
        display: grid;
        grid-template-rows: auto minmax(0,1fr) auto;
        width: min(86vw, 370px);
        height: 100dvh;
        min-height: 100svh;
        padding: max(12px, env(safe-area-inset-top)) 14px max(14px, env(safe-area-inset-bottom));
        color: var(--rl-app-text);
        background: var(--rl-app-surface);
        border-right: 1px solid var(--rl-app-line);
        box-shadow: 20px 0 60px rgba(0,0,0,.12);
        transform: translateX(-102%);
        opacity: 0;
        pointer-events: none;
        transition: transform 190ms cubic-bezier(.22,.75,.25,1), opacity 150ms ease;
    }

    .rl-mobile-drawer.is-open {
        transform: translateX(0);
        opacity: 1;
        pointer-events: auto;
    }

    .rl-mobile-drawer__head {
        min-height: 66px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        padding: 2px 4px 9px 8px;
    }

    .rl-mobile-drawer__brand,
    .rl-mobile-drawer__close,
    .rl-mobile-drawer__item,
    .rl-mobile-drawer__account-button,
    .rl-mobile-drawer__login {
        appearance: none;
        border: 0;
        color: inherit;
        background: transparent;
        font: inherit;
    }

    .rl-mobile-drawer__brand {
        min-width: 0;
        max-width: 160px;
        padding: 0;
        cursor: pointer;
    }

    .rl-mobile-drawer__brand .rl-app-wordmark {
        display: inline-flex !important;
    }

    .rl-mobile-drawer__brand .rl-app-logo {
        width: 112px !important;
    }

    .rl-mobile-drawer__close {
        display: grid;
        place-items: center;
        width: 40px;
        height: 40px;
        flex: 0 0 40px;
        border: 1px solid var(--rl-app-line);
        border-radius: 50%;
        background: var(--rl-app-panel);
        cursor: pointer;
    }

    .rl-mobile-drawer__list {
        min-height: 0;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        padding: 8px 0 20px;
        scrollbar-width: none;
    }

    .rl-mobile-drawer__list::-webkit-scrollbar {
        display: none;
    }

    .rl-mobile-drawer__item {
        position: relative;
        width: 100%;
        min-height: 52px;
        display: grid;
        grid-template-columns: 30px minmax(0,1fr) 18px;
        align-items: center;
        gap: 11px;
        padding: 7px 10px;
        border-radius: 11px;
        text-decoration: none;
        text-align: left;
        cursor: pointer;
    }

    .rl-mobile-drawer__item:hover,
    .rl-mobile-drawer__item:focus-visible,
    .rl-mobile-drawer__item.is-active {
        background: var(--rl-app-soft);
        outline: 0;
    }

    .rl-mobile-drawer__item.is-active {
        font-weight: 680;
    }

    .rl-mobile-drawer__item-icon {
        display: grid;
        place-items: center;
        width: 28px;
        height: 28px;
        color: currentColor;
    }

    .rl-mobile-drawer__item-label {
        overflow: hidden;
        font-size: 14px;
        font-weight: 560;
        line-height: 1.2;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .rl-mobile-drawer__item-arrow {
        display: grid;
        place-items: center;
        color: var(--rl-app-muted);
        opacity: .45;
    }

    .rl-mobile-drawer__item-arrow svg {
        width: 15px;
        height: 15px;
    }

    .rl-mobile-drawer__account {
        display: grid;
        gap: 7px;
        padding: 12px 4px 2px;
        border-top: 1px solid var(--rl-app-line);
    }

    .rl-mobile-drawer__account-button,
    .rl-mobile-drawer__login {
        width: 100%;
        min-height: 50px;
        display: flex;
        align-items: center;
        gap: 11px;
        padding: 0 12px;
        border-radius: 12px;
        text-align: left;
        cursor: pointer;
    }

    .rl-mobile-drawer__account-button:hover,
    .rl-mobile-drawer__login:hover {
        background: var(--rl-app-soft);
    }

    .rl-mobile-drawer__account-icon {
        display: grid;
        place-items: center;
        width: 28px;
        height: 28px;
    }

    .rl-mobile-drawer__login {
        justify-content: center;
        color: var(--rl-app-panel);
        background: var(--rl-app-text);
        font-size: 13px;
    }

    .rl-mobile-drawer__login:hover {
        background: var(--rl-app-text);
        opacity: .92;
    }

    .rl-mobile-drawer__login > span {
        display: grid;
        place-items: center;
    }

    .rl-shell-portal .rl-sidebar-history__list {
        left: 12px !important;
        right: 12px !important;
        top: 76px !important;
        bottom: auto !important;
        width: auto !important;
        max-height: calc(100dvh - 96px) !important;
    }
}

@media (max-width: 390px) {
    .rl-app-topbar {
        padding-right: 8px !important;
    }

    .rl-app-logo {
        width: 86px !important;
    }

    .rl-app-actions {
        gap: 3px !important;
    }

    .rl-app-theme,
    .rl-shell-notify-button--top {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        min-height: 32px !important;
        flex-basis: 32px !important;
    }

    .rl-mobile-login-button {
        min-width: 88px;
        height: 36px;
        padding-inline: 12px;
        font-size: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rl-mobile-drawer,
    .rl-mobile-drawer-backdrop {
        transition: none !important;
    }
}


/* RUPTLINE_MOBILE_M2_CURRENT_BASE */
@media (max-width: 760px) {
    .rl-mobile-drawer__account-button {
        min-height: 56px;
        font-size: 14px;
        font-weight: 620;
    }

    .rl-mobile-drawer__account-icon {
        width: 34px;
        height: 34px;
        flex: 0 0 34px;
        overflow: hidden;
        border-radius: 50%;
        background: var(--rl-app-soft);
    }

    .rl-mobile-drawer__account-icon .rl-account-entry__avatar,
    .rl-mobile-drawer__account-icon > img {
        width: 100% !important;
        height: 100% !important;
        border-radius: inherit;
        object-fit: cover;
    }

    .rl-mobile-drawer__account-initial {
        display: grid;
        width: 100%;
        height: 100%;
        place-items: center;
        font-size: 13px;
        font-weight: 720;
        line-height: 1;
    }

    .rl-mobile-drawer__account-label {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body.has-site-app-rail,
    body.has-rl-public-app {
        overflow-x: hidden !important;
        background: color-mix(in srgb, var(--rl-app-panel) 92%, var(--rl-app-surface)) !important;
    }

    .rl-public-app {
        overflow: visible !important;
    }

    .rl-app-surface,
    .rl-public-app.is-home .rl-app-surface {
        position: relative !important;
        z-index: 9820 !important;
        transform: translate3d(0,0,0) scale(1) !important;
        transform-origin: left center !important;
        transition:
            transform 230ms cubic-bezier(.22,.76,.25,1),
            border-radius 230ms ease,
            box-shadow 230ms ease !important;
        will-change: transform;
        overflow: hidden !important;
    }

    html.rl-mobile-menu-open .rl-app-topbar {
        overflow: hidden !important;
    }

    .rl-mobile-drawer {
        z-index: 9810 !important;
        box-shadow: none !important;
        border-right: 0 !important;
    }

    .rl-mobile-drawer-backdrop {
        z-index: 9800 !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rl-app-surface,
    .rl-public-app.is-home .rl-app-surface {
        transition: none !important;
    }
}


/* RUPTLINE_MOBILE_M2_CURRENT_TOP_CHROME */
@media (max-width: 760px) {
    html.rl-mobile-menu-open,
    html.rl-mobile-menu-open body {
        background: var(--rl-app-surface, #ffffff) !important;
    }

    html.rl-mobile-menu-open .rl-public-app,
    html.rl-mobile-menu-open body.has-site-app-rail .rl-public-app {
        background: transparent !important;
        box-shadow: none !important;
    }

    html.rl-mobile-menu-open .rl-mobile-menu-button {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    html.rl-mobile-menu-open .rl-app-surface,
    html.rl-mobile-menu-open .rl-public-app.is-home .rl-app-surface {
        background: var(--rl-app-surface, #ffffff) !important;
    }

    html.rl-mobile-menu-open .rl-mobile-drawer {
        background: var(--rl-app-surface, #ffffff) !important;
    }
}

html[data-ally-theme="dark"] {
    --rl-mobile-status-surface: #111214;
}

/* RUPTLINE_MOBILE_M2_CURRENT_FLOATING_SHEET */
@media (max-width: 760px) {
    .rl-mobile-drawer {
        width: min(82vw, 340px) !important;
        padding-right: 34px !important;
        border-right: 0 !important;
        box-shadow: none !important;
    }

    html.rl-mobile-menu-open .rl-app-surface,
    html.rl-mobile-menu-open .rl-public-app.is-home .rl-app-surface {
        overflow: hidden !important;
        border: 1px solid color-mix(in srgb, var(--rl-app-line) 58%, transparent) !important;
    }

    html.rl-mobile-menu-open .rl-public-app,
    html.rl-mobile-menu-open body.has-site-app-rail .rl-public-app {
        background: transparent !important;
        box-shadow: none !important;
        overflow: visible !important;
    }

    html.rl-mobile-menu-open .rl-app-topbar {
        overflow: hidden !important;
    }

    html.rl-mobile-menu-open body {
        background: var(--rl-app-surface, #ffffff) !important;
    }

    .rl-mobile-drawer-backdrop {
        background: rgba(10,14,24,.08) !important;
    }

    html[data-ally-theme="dark"] .rl-mobile-menu-open .rl-app-surface,
    html[data-ally-theme="dark"] .rl-mobile-menu-open .rl-public-app.is-home .rl-app-surface {
        border-color: rgba(255,255,255,.09) !important;
    }

    html[data-ally-theme="dark"] .rl-mobile-drawer-backdrop {
        background: rgba(0,0,0,.14) !important;
    }
}

@media (max-width: 390px) {
    .rl-mobile-drawer {
        width: min(84vw, 316px) !important;
        padding-right: 30px !important;
    }
}

/* RUPTLINE_MOBILE_M2_R6_EDGELESS_MENU */
@media (max-width: 760px) {
    .rl-mobile-drawer__item {
        grid-template-columns: 30px minmax(0,1fr) !important;
        gap: 12px !important;
        padding: 8px 8px 8px 10px !important;
    }
    .rl-mobile-drawer__item-arrow {
        display: none !important;
    }
    .rl-mobile-drawer__head {
        padding: 2px 16px 10px 8px !important;
    }
    .rl-mobile-drawer__close {
        margin-right: 6px !important;
    }
    html.rl-mobile-menu-open .rl-app-surface,
    html.rl-mobile-menu-open .rl-public-app.is-home .rl-app-surface {
        min-height: 100dvh !important;
        height: 100dvh !important;
        transform: translate3d(min(69vw, 282px), 0, 0) scale(1) !important;
        transform-origin: left top !important;
        border-radius: 28px 0 0 28px !important;
        box-shadow:
            -24px 0 52px rgba(15,23,42,.18),
            -10px 0 22px rgba(15,23,42,.11),
            0 24px 64px rgba(15,23,42,.15),
            0 0 0 1px rgba(255,255,255,.18) inset !important;
    }
    html.rl-mobile-menu-open .rl-app-topbar {
        border-radius: 28px 0 0 0 !important;
    }
    html[data-ally-theme="dark"] .rl-mobile-menu-open .rl-app-surface,
    html[data-ally-theme="dark"] .rl-mobile-menu-open .rl-public-app.is-home .rl-app-surface {
        box-shadow:
            -26px 0 56px rgba(0,0,0,.42),
            -10px 0 22px rgba(0,0,0,.24),
            0 26px 68px rgba(0,0,0,.34),
            0 0 0 1px rgba(255,255,255,.05) inset !important;
    }
}

@media (max-width: 390px) {
    html.rl-mobile-menu-open .rl-app-surface,
    html.rl-mobile-menu-open .rl-public-app.is-home .rl-app-surface {
        transform: translate3d(min(69vw, 262px), 0, 0) scale(1) !important;
        border-radius: 25px 0 0 25px !important;
    }
    html.rl-mobile-menu-open .rl-app-topbar {
        border-radius: 25px 0 0 0 !important;
    }
}

/* RUPTLINE_MOBILE_M2_R7_EDGE_SWIPE_PWA */
@media (max-width: 760px) {
    html.rl-standalone-pwa,
    html.rl-standalone-pwa body {
        overscroll-behavior-x: none;
    }

    html.rl-standalone-pwa.rl-mobile-edge-swipe-active,
    html.rl-standalone-pwa.rl-mobile-edge-swipe-active body {
        overscroll-behavior-x: none;
    }
}


/* RUPTLINE_MOBILE_M2_R13_NATIVE_HIT_LAYER */
@media (max-width: 760px) {
    /*
     * La hoja conserva su z-index y su apariencia flotante, pero mientras el
     * drawer está abierto deja de participar en el hit-test. De esta forma el
     * navegador entrega el toque al botón real del menú o al backdrop, sin
     * depender de event.target ni de reconstruir el destino por coordenadas.
     */
    html.rl-mobile-menu-open .rl-app-surface,
    html.rl-mobile-menu-open .rl-public-app.is-home .rl-app-surface {
        pointer-events: none !important;
    }

    html.rl-mobile-menu-open .rl-mobile-drawer.is-open,
    html.rl-mobile-menu-open .rl-mobile-drawer.is-open :is(
        .rl-mobile-drawer__brand,
        .rl-mobile-drawer__close,
        .rl-mobile-drawer__item,
        .rl-mobile-drawer__account-button,
        .rl-mobile-drawer__login
    ),
    html.rl-mobile-menu-open .rl-mobile-drawer-backdrop.is-open {
        pointer-events: auto !important;
    }
}

/* RUPTLINE_MOBILE_M2_R16_REAL_TOUCH_PLANE */
@media (max-width: 760px) {
    /*
     * Toda la fila es un objetivo táctil real. La hoja conserva su sombra y
     * posición visual, pero no intercepta el dedo mientras el drawer está abierto.
     */
    html.rl-mobile-menu-open .rl-app-surface,
    html.rl-mobile-menu-open .rl-public-app.is-home .rl-app-surface {
        pointer-events: none !important;
    }

    html.rl-mobile-menu-open .rl-mobile-drawer.is-open,
    html.rl-mobile-menu-open .rl-mobile-drawer.is-open .rl-mobile-drawer__list,
    html.rl-mobile-menu-open .rl-mobile-drawer.is-open .rl-mobile-drawer__item,
    html.rl-mobile-menu-open .rl-mobile-drawer.is-open .rl-mobile-drawer__item > * {
        pointer-events: auto !important;
    }

    .rl-mobile-drawer__item {
        min-height: 58px !important;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

}

/* RUPTLINE_MOBILE_M2_R17_AUTH_WORKSPACE_INERT */
@media (max-width: 760px) {
    /*
     * Los paneles autenticados declaran pointer-events:auto!important por su
     * cuenta. Se apaga todo el subárbol de la hoja para que POS, Tareas o
     * Mi negocio no puedan reaparecer como plano táctil sobre el drawer.
     */
    html.rl-mobile-menu-open body.has-rl-public-app .rl-app-surface,
    html.rl-mobile-menu-open body.has-rl-public-app .rl-app-surface * {
        pointer-events: none !important;
    }

    html.rl-mobile-menu-open body.has-rl-public-app .rl-mobile-drawer.is-open,
    html.rl-mobile-menu-open body.has-rl-public-app .rl-mobile-drawer.is-open *,
    html.rl-mobile-menu-open body.has-rl-public-app .rl-mobile-drawer-backdrop.is-open {
        pointer-events: auto !important;
    }
}


/* RUPTLINE_THEME_RUNTIME_R18K_5_CLOSED_SURFACE
 * Solo actúa cuando el menú móvil YA está cerrado.
 * Elimina residuos visuales del estado abierto sin tocar swipe,
 * overlay, navegación ni la animación de apertura/cierre.
 */
@media (max-width: 760px) {
    html:not(.rl-mobile-menu-open) .rl-app-surface,
    html:not(.rl-mobile-menu-open) .rl-public-app.is-home .rl-app-surface {
        transform: none !important;
        transform-origin: initial !important;
        border-radius: 0 !important;
        border-color: transparent !important;
        box-shadow: none !important;
        clip-path: none !important;
        -webkit-mask-image: none !important;
        filter: none !important;
        will-change: auto !important;
    }

    html:not(.rl-mobile-menu-open),
    html:not(.rl-mobile-menu-open) body {
        background-color: var(--rl-app-surface, #ffffff) !important;
    }

    html[data-ally-theme="dark"]:not(.rl-mobile-menu-open),
    html[data-ally-theme="dark"]:not(.rl-mobile-menu-open) body {
        background-color: var(--rl-app-surface, #171918) !important;
    }
}


/* RUPTLINE_NOTCH_BACKDROP_SAFEAREA_R18K_5_R2
 * El backdrop antes empezaba en top:0 (inset:0), así que su tinte gris
 * cubría también el safe-area del iPhone. iOS/PWA puede conservar ese
 * frame en el status bar incluso después de cerrar el drawer.
 *
 * Ahora el backdrop empieza debajo del notch.
 */
@media (max-width: 760px) {
    .rl-mobile-drawer-backdrop,
    .rl-mobile-drawer-backdrop.is-open {
        inset: env(safe-area-inset-top) 0 0 0 !important;
        width: 100% !important;
        height: auto !important;
    }
}

/* RUPTLINE_R30_HEADER_LOGO_THEME_LOCK
 * El HTML conserva ambas variantes para no romper el cambio de tema,
 * pero sólo una puede participar en layout en cada momento.
 * También cubre el clon del wordmark dentro del drawer móvil.
 */
.rl-app-wordmark .rl-app-logo-light{
    display:block!important;
    visibility:visible!important;
    opacity:1!important;
}
.rl-app-wordmark .rl-app-logo-dark{
    display:none!important;
    visibility:hidden!important;
    opacity:0!important;
}

html[data-ally-theme="dark"] .rl-app-wordmark .rl-app-logo-light,
html[data-theme="dark"] .rl-app-wordmark .rl-app-logo-light{
    display:none!important;
    visibility:hidden!important;
    opacity:0!important;
}

html[data-ally-theme="dark"] .rl-app-wordmark .rl-app-logo-dark,
html[data-theme="dark"] .rl-app-wordmark .rl-app-logo-dark{
    display:block!important;
    visibility:visible!important;
    opacity:1!important;
}

/* RUPTLINE_MOBILE_M2_R19_POINTER_TAP_SINGLE_TOUCH */
@media (max-width:760px) {
  .rl-mobile-drawer__item {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
}
