﻿/* ===================================================== */
/*  GLOBAL OFFCANVAS ANCHOR                              */
/* ===================================================== */

#globalCanvas {
    position: fixed;
    top: 0;
    right: 0;
    width: 0; /* anchor to edge */
    height: 100vh;
    z-index: 1060;
}

/* ===================================================== */
/*  SIDEBAR VISUAL STYLING                               */
/* ===================================================== */

.e-sidebar.e-over {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 14px 0 0 14px;
    box-shadow: -8px 0 24px rgba(0,0,0,0.15);
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

    /* HEADER */
    .e-sidebar.e-over::before {
        content: attr(data-title);
        background: #32893b;
        color: #fff;
        padding: 16px 56px 16px 20px;
        font-weight: 600;
        font-size: 15px;
    }

    /* CLOSE ICON (visual) */
    .e-sidebar.e-over::after {
        content: "×";
        position: absolute;
        top: 12px;
        right: 16px;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: rgba(255,255,255,0.2);
        color: #fff;
        font-size: 22px;
        display: flex;
        align-items: center;
        justify-content: center;
        pointer-events: none; /* visual only */
    }

/* CLICK TARGET FOR CLOSE */
.oli-sidebar-close-hit {
    position: absolute;
    top: 12px;
    right: 16px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    z-index: 10;
}

/* BODY */
.oli-sidebar-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

/* FOOTER */
.oli-sidebar-footer {
    padding: 14px 20px;
    border-top: 1px solid #eaeaea;
    background: #fafafa;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* Mobile */
@media (max-width: 576px) {
    .e-sidebar.e-over {
        width: 100% !important;
        border-radius: 0;
    }
}
