/* ============================================================
   SisBot Panel — FattureWeb custom skin
   ============================================================ */

/* --- Backdrop ----------------------------------------------- */
#sisbot-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 9998;
    transition: opacity 0.3s ease;
}
#sisbot-backdrop.open {
    display: block;
}

/* --- Slide-in panel ----------------------------------------- */
#sisbot-container {
    position: fixed;
    top: 0;
    right: 0;
    width: 407px;
    height: 100vh;
    background: #ffffff;
    box-shadow: -6px 0 32px rgba(0, 0, 0, 0.18);
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-left: 3px solid #003d73;
}
#sisbot-container.open {
    transform: translateX(0);
}

/* Inner chatbot widget fills the panel */
#chat-container {
    flex: 1 1 auto;
    overflow-y: auto;
    height: 100%;
    overscroll-behavior: contain;
}

/* --- Toggle button in left sidebar menu --------------------- */
div#navigation #sisbot-toggle-btn svg {
    width: 3em;
    height: 2.4em;
}
div#navigation #sisbot-toggle-btn a {
    padding: 9px 7px 11px 9px;
    fill: #34537f;
}
div#navigation #sisbot-toggle-btn a:hover {
    fill: #fff;
}

/* --- Responsive toggle button (topbar) --------------------- */
div#navigation #sisbot-toggle-btn-responsive svg {
    width: 24px;
    height: 24px;
}
div#navigation #sisbot-toggle-btn-responsive a {
    padding: 5px 7px;
    fill: #34537f;
    display: flex;
}
div#navigation #sisbot-toggle-btn-responsive a:hover {
    fill: #fff;
}

/* --- Header panel -------------------------------------------*/
.sis-sismenu-sisbot-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #003d73;
    color: #fff;
    flex-shrink: 0;
}
.sis-sismenu-sisbot-header-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.sis-sismenu-sisbot-header-icon svg {
    width: 28px;
    height: 24px;
}
.sis-sismenu-sisbot-header-title {
    flex: 1 1 auto;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
span.fa.sis-sismenu-sisbot-header-close {
    cursor: pointer;
    font-size: 20px;
    color: #fff;
    padding: 4px 6px;
    border-radius: 4px;
    flex-shrink: 0;
    transition: background 0.15s;
}
.sis-sismenu-sisbot-header-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* --- Custom SisBot style --------------------- */
.sisbot-root .sisbot-layout .sisbot-container {
    text-align: left;
}

/* --- Responsive -------------------------------------------- */
@media (max-width: 768px) {
    #sisbot-container {
        width: 100vw;
        border-left: 0;
    }

}
