/**
 * Light app shell: white sidebar + light header + colored KPI cards.
 * Visual overlay only — does not change POS, menus, or features.
 */
body.zoho-theme:not(.pos-sale-theme):not(.lockscreen) {
    --pos-blue: #1677ff;
    --pos-blue-soft: #e6f4ff;
    --pos-text: #1f1f1f;
    --pos-muted: #8c8c8c;
    --pos-line: #f0f0f0;
    --pos-canvas: #f5f5f5;
    --pos-sidebar: #ffffff;
    --pos-purple: #7b5ea7;
    --pos-cyan: #5dade2;
    --pos-orange: #f0a04b;
    --pos-green: #27ae60;
}

body.zoho-theme:not(.pos-sale-theme):not(.lockscreen) .thetop {
    flex-direction: column;
    height: 100vh;
    min-height: 100vh;
}

body.zoho-theme:not(.pos-sale-theme):not(.lockscreen) .zoho-app-body {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    display: flex;
    align-items: stretch;
}

body.zoho-theme:not(.pos-sale-theme):not(.lockscreen) .zoho-main-column {
    background: var(--pos-canvas) !important;
    min-width: 0;
    min-height: 0;
    height: 100%;
}

body.zoho-theme:not(.pos-sale-theme):not(.lockscreen) .zoho-topbar {
    flex-shrink: 0;
}

body.zoho-theme:not(.pos-sale-theme):not(.lockscreen) #scrollable-container {
    background: var(--pos-canvas) !important;
    flex: 1 1 auto;
    min-height: 0;
    height: auto !important;
}

/* ── Sidebar ── */
body.zoho-theme:not(.pos-sale-theme):not(.pos-register-page) .side-bar {
    width: 240px !important;
    min-width: 240px !important;
    background: var(--pos-sidebar) !important;
    border-right: 1px solid #f0f0f0 !important;
    box-shadow: none !important;
}

body.zoho-theme:not(.pos-sale-theme) .zoho-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    padding: 18px 20px 12px;
    text-decoration: none !important;
    min-height: 56px;
}

body.zoho-theme:not(.pos-sale-theme) .zoho-sidebar-brand:hover,
body.zoho-theme:not(.pos-sale-theme) .zoho-sidebar-brand:focus {
    text-decoration: none !important;
}

body.zoho-theme:not(.pos-sale-theme) .zoho-sidebar-brand__logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
}

body.zoho-theme:not(.pos-sale-theme) .zoho-sidebar-brand__mark {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #e6f4ff;
    color: #1677ff;
    font-size: 14px;
    font-weight: 800;
    display: none;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

body.zoho-theme:not(.pos-sale-theme) .side-bar.zoho-sidebar-collapsed .zoho-sidebar-brand__mark,
body.zoho-theme:not(.pos-sale-theme).sidebar-collapse .zoho-sidebar-brand__mark {
    display: inline-flex;
}

body.zoho-theme:not(.pos-sale-theme) .zoho-sidebar-brand__name {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #1677ff;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
}

body.zoho-theme:not(.pos-sale-theme) .side-bar.zoho-sidebar-collapsed .zoho-sidebar-brand__name,
body.zoho-theme:not(.pos-sale-theme).sidebar-collapse .zoho-sidebar-brand__name {
    display: none !important;
}

body.zoho-theme:not(.pos-sale-theme) .side-bar.zoho-sidebar-collapsed .zoho-sidebar-brand,
body.zoho-theme:not(.pos-sale-theme).sidebar-collapse .zoho-sidebar-brand {
    justify-content: center;
    padding-left: 12px;
    padding-right: 12px;
}

/* Dashboard shortcut — only when MAIN sidebar is collapsed (off). Hidden when open. */
.zoho-sidebar-dash-btn {
    display: none !important;
}

body.zoho-theme .side-bar.zoho-sidebar-collapsed > .zoho-sidebar-dash-btn,
body.zoho-theme.sidebar-collapse .side-bar.zoho-sidebar-collapsed > .zoho-sidebar-dash-btn {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-shrink: 0;
    margin: 4px 6px 8px;
    padding: 10px 4px;
    border-radius: 10px;
    border: 1px solid #e6f4ff;
    background: #e6f4ff;
    color: #1677ff !important;
    text-decoration: none !important;
    text-align: center;
}

body.zoho-theme .side-bar.zoho-sidebar-collapsed > .zoho-sidebar-dash-btn:hover {
    background: #bae0ff;
    border-color: #91caff;
    color: #0958d9 !important;
}

body.zoho-theme .zoho-sidebar-dash-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

body.zoho-theme .zoho-sidebar-dash-btn__label {
    font-size: 9px;
    font-weight: 700;
    line-height: 1.15;
    white-space: nowrap;
}

/* Header Dashboard: show when main sidebar is off-screen; hide when sidebar is visible */
.header-dashboard-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-shrink: 0;
    text-decoration: none !important;
    white-space: nowrap;
}

body.admin-sidebar-visible .header-dashboard-btn {
    display: none !important;
}

.zoho-header-dashboard {
    height: 34px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid #91caff;
    background: #e6f4ff;
    color: #1677ff !important;
    font-size: 12px;
    font-weight: 700;
}

.zoho-header-dashboard:hover {
    background: #bae0ff;
    border-color: #69b1ff;
    color: #0958d9 !important;
    text-decoration: none !important;
}

body.zoho-theme:not(.pos-sale-theme) .zoho-sidebar-search {
    padding: 4px 12px 10px !important;
}

body.zoho-theme:not(.pos-sale-theme) .zoho-sidebar-search > div {
    background: #fafafa;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    color: #8c8c8c;
}

body.zoho-theme:not(.pos-sale-theme) #side-bar .zoho-sidebar-section {
    color: #bfbfbf !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    padding: 14px 12px 6px !important;
}

body.zoho-theme:not(.pos-sale-theme) #side-bar a.drop_down,
body.zoho-theme:not(.pos-sale-theme) #side-bar .zoho-sidebar-item > a,
body.zoho-theme:not(.pos-sale-theme) #side-bar > a {
    margin: 1px 4px !important;
    padding: 8px 12px !important;
    min-height: 36px !important;
    border-radius: 8px !important;
    color: #595959 !important;
    font-size: 13.5px !important;
    font-weight: 400 !important;
}

body.zoho-theme:not(.pos-sale-theme) #side-bar a.drop_down:hover,
body.zoho-theme:not(.pos-sale-theme) #side-bar .zoho-sidebar-item > a:hover,
body.zoho-theme:not(.pos-sale-theme) #side-bar > a:hover {
    background: #f5f5f5 !important;
    color: #262626 !important;
}

body.zoho-theme:not(.pos-sale-theme) #side-bar .theme-sidebar-active,
body.zoho-theme:not(.pos-sale-theme) #side-bar a.drop_down.theme-sidebar-active,
body.zoho-theme:not(.pos-sale-theme) #side-bar .zoho-sidebar-item > a.theme-sidebar-active {
    background: #e6f4ff !important;
    color: #1677ff !important;
    font-weight: 500 !important;
}

body.zoho-theme:not(.pos-sale-theme) #side-bar .zoho-sidebar-menu-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    background: transparent !important;
    border-radius: 0;
    color: #8c8c8c;
}

body.zoho-theme:not(.pos-sale-theme) #side-bar .theme-sidebar-active .zoho-sidebar-menu-icon,
body.zoho-theme:not(.pos-sale-theme) #side-bar .theme-sidebar-active .zoho-sidebar-menu-icon svg,
body.zoho-theme:not(.pos-sale-theme) #side-bar .theme-sidebar-active .zoho-sidebar-menu-icon i {
    color: #1677ff !important;
    background: transparent !important;
}

body.zoho-theme:not(.pos-sale-theme) #side-bar .sidebar-menu-chevron {
    width: 14px !important;
    height: 14px !important;
    color: #bfbfbf;
}

body.zoho-theme:not(.pos-sale-theme) .zoho-sidebar-user__profile {
    display: flex !important;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1 1 auto;
    text-decoration: none !important;
    color: inherit;
}

body.zoho-theme:not(.pos-sale-theme) .zoho-sidebar-footer__links {
    display: none !important;
}

body.zoho-theme:not(.pos-sale-theme) .zoho-sidebar-user {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    background: #fafafa;
}

body.zoho-theme:not(.pos-sale-theme) .zoho-sidebar-user__avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #e6f4ff;
    color: #1677ff;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

body.zoho-theme:not(.pos-sale-theme) .zoho-sidebar-user__meta {
    display: flex !important;
    flex-direction: column;
    min-width: 0;
    gap: 1px;
}

body.zoho-theme:not(.pos-sale-theme) .zoho-sidebar-user__name,
body.zoho-theme:not(.pos-sale-theme) .zoho-sidebar-user__role {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.zoho-theme:not(.pos-sale-theme) .zoho-sidebar-user__name {
    font-size: 13px;
    font-weight: 700;
    color: #1f1f1f;
    line-height: 1.2;
}

body.zoho-theme:not(.pos-sale-theme) .zoho-sidebar-user__role {
    font-size: 11px;
    font-weight: 500;
    color: #8c8c8c;
    line-height: 1.2;
}

body.zoho-theme:not(.pos-sale-theme) .side-bar.zoho-sidebar-collapsed .zoho-sidebar-user__meta,
body.zoho-theme:not(.pos-sale-theme).sidebar-collapse .zoho-sidebar-user__meta {
    display: none !important;
}

body.zoho-theme:not(.pos-sale-theme) .side-bar.zoho-sidebar-collapsed .zoho-sidebar-user,
body.zoho-theme:not(.pos-sale-theme).sidebar-collapse .zoho-sidebar-user {
    justify-content: center;
    padding: 6px;
}

/* ── Header (inside main column) ── */
body.zoho-theme:not(.pos-sale-theme) .zoho-topbar {
    background: transparent !important;
    border-bottom: 0 !important;
    min-height: 64px;
    box-shadow: none !important;
}

body.zoho-theme:not(.pos-sale-theme) .zoho-topbar__inner {
    min-height: 64px;
    padding: 8px 24px 0;
    justify-content: space-between;
}

body.zoho-theme:not(.pos-sale-theme) .zoho-topbar__user-trigger {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    list-style: none;
    background: transparent;
    border: 0;
    padding: 4px 4px 4px 0;
    color: #262626;
}

body.zoho-theme:not(.pos-sale-theme) .zoho-topbar__user {
    z-index: 40;
}

body.zoho-theme:not(.pos-sale-theme) .zoho-topbar__user-trigger::-webkit-details-marker {
    display: none;
}

body.zoho-theme:not(.pos-sale-theme) .zoho-topbar__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #d6e4ff;
    color: #2f54eb;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

body.zoho-theme:not(.pos-sale-theme) .zoho-topbar__page-title {
    font-size: 18px;
    font-weight: 600;
    color: #262626;
}

body.zoho-theme:not(.pos-sale-theme) .zoho-topbar__user-name {
    font-size: 14px;
    font-weight: 500;
    color: #262626;
    max-width: 180px;
}

body.zoho-theme:not(.pos-sale-theme) .zoho-topbar__user-caret {
    width: 14px;
    height: 14px;
    color: #8c8c8c;
    flex-shrink: 0;
}

body.zoho-theme:not(.pos-sale-theme) .zoho-topbar__notify-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    color: #52c41a !important;
    position: relative;
}

body.zoho-theme:not(.pos-sale-theme) .zoho-topbar__notify-btn:hover {
    background: #f6ffed;
    color: #389e0d !important;
}

body.zoho-theme:not(.pos-sale-theme) .zoho-topbar__notify-btn .notifications_count,
body.zoho-theme:not(.pos-sale-theme) .zoho-topbar__notify-btn .label {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #52c41a !important;
    color: #fff !important;
    font-size: 10px;
    line-height: 16px;
    font-weight: 700;
    border: 2px solid #f5f5f5;
}

/* Collapsed icon rail: narrow on small screens, wider on large screens so labels fit */
body.zoho-theme:not(.pos-sale-theme):not(.pos-register-page) .side-bar.zoho-sidebar-collapsed,
body.zoho-theme:not(.pos-sale-theme):not(.pos-register-page).sidebar-collapse .side-bar,
body.zoho-theme:not(.pos-register-page) .side-bar.zoho-sidebar-collapsed,
body.zoho-theme:not(.pos-register-page).sidebar-collapse .side-bar {
    width: 72px !important;
    min-width: 72px !important;
    max-width: 72px !important;
}

body.zoho-theme:not(.pos-sale-theme) .side-bar.zoho-sidebar-collapsed #side-bar .zoho-sidebar-section,
body.zoho-theme:not(.pos-sale-theme).sidebar-collapse #side-bar .zoho-sidebar-section,
body.zoho-theme .side-bar.zoho-sidebar-collapsed #side-bar .zoho-sidebar-section,
body.zoho-theme.sidebar-collapse #side-bar .zoho-sidebar-section {
    font-size: 8px !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    line-height: 1.2 !important;
    text-align: center;
    padding: 8px 2px 3px !important;
    white-space: nowrap !important;
    overflow: visible !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
}

body.zoho-theme:not(.pos-sale-theme) .side-bar.zoho-sidebar-collapsed #side-bar .sidebar-menu-label,
body.zoho-theme:not(.pos-sale-theme).sidebar-collapse #side-bar .sidebar-menu-label,
body.zoho-theme .side-bar.zoho-sidebar-collapsed #side-bar .sidebar-menu-label,
body.zoho-theme.sidebar-collapse #side-bar .sidebar-menu-label {
    font-size: 8px !important;
    line-height: 1.2 !important;
    max-width: none !important;
    width: auto;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
    display: block;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
    text-align: center;
}

@media (min-width: 1280px) {
    body.zoho-theme:not(.pos-sale-theme):not(.pos-register-page) .side-bar.zoho-sidebar-collapsed,
    body.zoho-theme:not(.pos-sale-theme):not(.pos-register-page).sidebar-collapse .side-bar,
    body.zoho-theme:not(.pos-register-page) .side-bar.zoho-sidebar-collapsed,
    body.zoho-theme:not(.pos-register-page).sidebar-collapse .side-bar {
        width: 104px !important;
        min-width: 104px !important;
        max-width: 104px !important;
    }

    body.zoho-theme:not(.pos-sale-theme) .side-bar.zoho-sidebar-collapsed #side-bar .zoho-sidebar-section,
    body.zoho-theme:not(.pos-sale-theme).sidebar-collapse #side-bar .zoho-sidebar-section,
    body.zoho-theme .side-bar.zoho-sidebar-collapsed #side-bar .zoho-sidebar-section,
    body.zoho-theme.sidebar-collapse #side-bar .zoho-sidebar-section {
        font-size: 9px !important;
        letter-spacing: 0 !important;
        padding: 12px 4px 4px !important;
        white-space: nowrap !important;
    }

    body.zoho-theme:not(.pos-sale-theme) .side-bar.zoho-sidebar-collapsed #side-bar .sidebar-menu-label,
    body.zoho-theme:not(.pos-sale-theme).sidebar-collapse #side-bar .sidebar-menu-label,
    body.zoho-theme .side-bar.zoho-sidebar-collapsed #side-bar .sidebar-menu-label,
    body.zoho-theme.sidebar-collapse #side-bar .sidebar-menu-label {
        font-size: 10px !important;
        white-space: nowrap !important;
    }
}

@media (min-width: 1600px) {
    body.zoho-theme:not(.pos-sale-theme):not(.pos-register-page) .side-bar.zoho-sidebar-collapsed,
    body.zoho-theme:not(.pos-sale-theme):not(.pos-register-page).sidebar-collapse .side-bar,
    body.zoho-theme:not(.pos-register-page) .side-bar.zoho-sidebar-collapsed,
    body.zoho-theme:not(.pos-register-page).sidebar-collapse .side-bar {
        width: 112px !important;
        min-width: 112px !important;
        max-width: 112px !important;
    }
}

@media (max-width: 1023px) {
    body.zoho-theme:not(.pos-sale-theme) .zoho-topbar__inner {
        padding: 8px 14px 0;
    }
}

/* Main sidebar smaller only on small screens */
@media (max-width: 1366px) {
    body.zoho-theme:not(.pos-sale-theme):not(.pos-register-page) .side-bar {
        width: 220px !important;
        min-width: 220px !important;
        max-width: 220px !important;
    }

    body.zoho-theme:not(.pos-sale-theme) .zoho-sidebar-brand {
        padding: 12px 12px 8px;
        min-height: 48px;
        gap: 8px;
    }

    body.zoho-theme:not(.pos-sale-theme) .zoho-sidebar-brand__name {
        font-size: 16px;
    }

    body.zoho-theme:not(.pos-sale-theme) #side-bar .zoho-sidebar-section {
        font-size: 10px !important;
        padding: 10px 10px 4px !important;
        letter-spacing: 0.04em !important;
        white-space: nowrap !important;
    }

    body.zoho-theme:not(.pos-sale-theme) #side-bar a.drop_down,
    body.zoho-theme:not(.pos-sale-theme) #side-bar .zoho-sidebar-item > a,
    body.zoho-theme:not(.pos-sale-theme) #side-bar > a {
        padding: 6px 8px !important;
        min-height: 32px !important;
        font-size: 12.5px !important;
    }

    body.zoho-theme:not(.pos-sale-theme) #side-bar .sidebar-menu-label {
        white-space: normal !important;
        word-break: break-word !important;
        overflow-wrap: anywhere !important;
        overflow: visible !important;
        text-overflow: clip !important;
    }
}

/* Submenus: left-aligned, no text crop on laptop (admin app only — not POS) */
body.zoho-theme:not(.pos-sale-theme):not(.pos-register-page) #side-bar .chiled,
body.zoho-theme:not(.pos-sale-theme):not(.pos-register-page) #side-bar .zoho-sidebar-nested,
body.zoho-theme:not(.pos-sale-theme):not(.pos-register-page) #side-bar .chiled.tw-pl-3,
body.zoho-theme:not(.pos-sale-theme):not(.pos-register-page) #side-bar .chiled.tw-pl-11 {
    margin-left: 4px !important;
    margin-right: 0 !important;
    padding-left: 8px !important;
    padding-right: 4px !important;
    border: 0 !important;
    border-left: 1px solid #e8ecf1 !important;
    background: transparent !important;
}

body.zoho-theme:not(.pos-sale-theme):not(.pos-register-page) #side-bar .zoho-sidebar-flyout__rail,
body.zoho-theme:not(.pos-sale-theme):not(.pos-register-page) #side-bar .zoho-sidebar-flyout__header {
    display: none !important;
}

body.zoho-theme:not(.pos-sale-theme):not(.pos-register-page) #side-bar .chiled .chiled {
    margin-left: 4px !important;
    padding-left: 6px !important;
}

body.zoho-theme:not(.pos-sale-theme):not(.pos-register-page) #side-bar .zoho-sidebar-child-row {
    display: flex !important;
    align-items: flex-start !important;
    gap: 2px;
    margin: 0 0 2px 0 !important;
    padding: 0 !important;
    min-width: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

body.zoho-theme:not(.pos-sale-theme):not(.pos-register-page) #side-bar .zoho-sidebar-child-link,
body.zoho-theme:not(.pos-sale-theme):not(.pos-register-page) #side-bar .chiled a:not(.zoho-sidebar-child-add) {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    padding: 5px 4px 5px 6px !important;
    text-align: left !important;
    justify-content: flex-start !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    line-height: 1.3 !important;
}

body.zoho-theme:not(.pos-sale-theme):not(.pos-register-page) #side-bar .zoho-sidebar-child-link span,
body.zoho-theme:not(.pos-sale-theme):not(.pos-register-page) #side-bar .chiled a:not(.zoho-sidebar-child-add) span {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    display: inline !important;
}

body.zoho-theme:not(.pos-sale-theme):not(.pos-register-page) #side-bar .zoho-sidebar-nested-toggle {
    padding-left: 6px !important;
    text-align: left !important;
}

body.zoho-theme:not(.pos-sale-theme):not(.pos-register-page) #side-bar .zoho-sidebar-child-add {
    flex: 0 0 auto !important;
    margin-right: 2px !important;
}

/* Laptop: keep submenu labels fully visible (admin only) */
@media (max-width: 1366px) {
    body.zoho-theme:not(.pos-sale-theme):not(.pos-register-page) .side-bar {
        width: 220px !important;
        min-width: 220px !important;
        max-width: 220px !important;
    }

    body.zoho-theme:not(.pos-sale-theme):not(.pos-register-page) #side-bar {
        padding-left: 6px !important;
        padding-right: 4px !important;
    }

    body.zoho-theme:not(.pos-sale-theme):not(.pos-register-page) #side-bar .chiled,
    body.zoho-theme:not(.pos-sale-theme):not(.pos-register-page) #side-bar .zoho-sidebar-nested,
    body.zoho-theme:not(.pos-sale-theme):not(.pos-register-page) #side-bar .chiled.tw-pl-3,
    body.zoho-theme:not(.pos-sale-theme):not(.pos-register-page) #side-bar .chiled.tw-pl-11 {
        margin-left: 2px !important;
        padding-left: 6px !important;
    }

    body.zoho-theme:not(.pos-sale-theme):not(.pos-register-page) #side-bar .zoho-sidebar-child-link,
    body.zoho-theme:not(.pos-sale-theme):not(.pos-register-page) #side-bar .chiled a:not(.zoho-sidebar-child-add) {
        font-size: 12px !important;
        padding: 4px 2px 4px 4px !important;
    }

    body.zoho-theme:not(.pos-sale-theme):not(.pos-register-page) #side-bar a.drop_down .sidebar-menu-label,
    body.zoho-theme:not(.pos-sale-theme):not(.pos-register-page) #side-bar .zoho-sidebar-item > a .sidebar-menu-label {
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
    }
}

/*
 * Keep current visual design.
 * Use previous-style screen scroll: menu height = viewport − chrome, overflow auto.
 * (Same idea as old AdminLTE slimScroll: window height − header/footer.)
 */
body.zoho-theme:not(.pos-sale-theme):not(.pos-register-page) .side-bar {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    max-height: 100vh !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

body.zoho-theme:not(.pos-sale-theme) .zoho-sidebar-brand,
body.zoho-theme:not(.pos-sale-theme) .zoho-sidebar-search,
body.zoho-theme:not(.pos-sale-theme) .zoho-sidebar-footer {
    flex-shrink: 0 !important;
}

body.zoho-theme:not(.pos-sale-theme):not(.pos-register-page) #side-bar,
body.zoho-theme:not(.pos-sale-theme):not(.pos-register-page) .zoho-sidebar-nav {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: calc(100vh - 170px) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 1366px) {
    body.zoho-theme:not(.pos-sale-theme):not(.pos-register-page) #side-bar,
    body.zoho-theme:not(.pos-sale-theme):not(.pos-register-page) .zoho-sidebar-nav {
        max-height: calc(100vh - 150px) !important;
    }
}

@media (max-width: 1023px) {
    body.zoho-theme:not(.pos-sale-theme):not(.pos-register-page) .side-bar,
    body.zoho-theme:not(.pos-sale-theme) .side-bar.small-view-side-active {
        height: 100vh !important;
        max-height: 100vh !important;
    }

    body.zoho-theme:not(.pos-sale-theme):not(.pos-register-page) #side-bar,
    body.zoho-theme:not(.pos-sale-theme):not(.pos-register-page) .zoho-sidebar-nav {
        max-height: calc(100vh - 160px) !important;
    }
}

/* Remove sidebar "Boost with JapsAI" promo mark */
.japs-sidebar-ai-slot,
.side-bar .ai-ask-fab,
body.zoho-theme .japs-sidebar-ai-slot,
body.zoho-theme .side-bar .ai-ask-fab {
    display: none !important;
}


