.side-panel {
    --sidepanel-header-height: 64px;
    top: 0;
    right: 0;

    background-color: var(--sds-white, #fff);
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, visibility 0s linear 0.3s;
    transform: translateX(100%);
    /* Moves panel out of view */
    visibility: hidden;
    /* Fully hides the panel */
    margin: 0;
    /* Ignores parent padding */
    z-index: 120;
}

@media only screen and (max-width: 768px) {
    .side-panel {
        width: 100% !important;
    }
}

.side-panel.sidebar {
    position: fixed;
    top: var(--header-height);
    right: 0;
    height: calc(100% - var(--header-height));
}

.side-panel.floating {
    position: absolute;
    height: 100%;
    min-width: 299px;
    background-color: var(--sds-white, #fff);
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
    right: 10px;
    bottom: 10px;
    border-radius: 8px;
    z-index: 150;
}

.side-panel.docked {
    position: absolute;
    height: 100%;
    background-color: var(--sds-white, #fff);
    z-index: 150;
}

.side-panel.open {
    transform: translateX(0);
    visibility: visible;
    z-index: 100;
    transition: transform 0.3s ease, visibility 0s linear 0s;
}

.side-panel .side-panel-header,
.side-panel .side-panel-footer {
    padding: 16px;
    height: var(--sidepanel-header-height);
    font-weight: 600;
    font-size: 16px;
    color: #000000;
    border-bottom: 1px solid #DEE4E4;
}

#side-panel .headercontent {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#side-panel-wrapper {
    height: calc(100% - var(--sidepanel-header-height));
}

.side-panel #sidepanel-btn-cancel {
    color: var(--sds-grey-700);
    text-transform: lowercase;
    gap: 4px;
}

.side-panel #sidepanel-btn-cancel svg {
    width: 16px;
    height: 16px;
    color: #000000;
}

.side-panel.fullscreen {
    width: 100vw !important;
    height: 100vh !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    border-radius: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
}

.side-panel.fullscreen.floating,
.side-panel.fullscreen.popup.docked {
    z-index: 2000;
}

.side-panel .btn.btn-link.text-grey {
    color: var(--sds-grey-500) !important;
}

.side-panel-grab-button {
    width: 4px;
    height: 100%;
    background-color: transparent;
    cursor: ew-resize !important;
    border: none;
    padding: 0;
    position: absolute;
    left: -4px;
}

.side-panel-grab-button:hover {
    /* background-color: var(--sds-primary-500); */
    background: linear-gradient(to left, var(--sds-primary-500), transparent);
}

/* Quick fix for staging task AI */
.side-panel:not(.open) .side-panel-header,
.side-panel:not(.open) .chatbot-chat-interface {
    display: none !important;
}

/* End Quick fix for staging task AI */