﻿/* Open Help button pinned top-right */
.openbtn {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 1900;
    padding: 8px 14px;
}

/* Hide open button while drawer is open */
body.help-open .openbtn {
    display: none;
}

/* Drawer */
.help-panel {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 360px;
    min-width: 280px;
    max-width: 70vw;
    background: #fff;
    border-left: 1px solid #ccc;
    box-shadow: -4px 0 12px rgba(0,0,0,.12);
    z-index: 2000;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

    .help-panel.open {
        display: flex;
    }

/* Left-edge resize handle */
.help-resizer {
    position: absolute;
    top: 0;
    left: 0;
    width: 8px;
    height: 100%;
    cursor: ew-resize;
    background: transparent;
    z-index: 2001;
}

    .help-resizer:hover {
        background: rgba(0,0,0,.06);
    }

/* Header with close button in top-right */
.help-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px 12px 20px;
    border-bottom: 1px solid #ddd;
    background: #f7f7f7;
    flex: 0 0 auto;
}

    .help-header h3 {
        margin: 0;
        font-size: 20px;
    }

.help-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.help-content {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px 16px;
}

#main {
    transition: margin-right 0.15s ease;
    margin-right: 0;
    min-width: 0;
}
body.help-resizing {
    cursor: ew-resize;
    user-select: none;
}

table.help-table {
    border-spacing: 10px;
    border-collapse:initial;
}


.help-accordion-item {
    border: 0;
    border-radius: 0;
    /*box-shadow: none;*/
    border-bottom: 1px solid #ddd;
    margin-bottom: 0;
}

.help-accordion-button {
    display: block;
    width: 100%;
    padding: 12px 15px;
    background: transparent;
    border: 0;
    text-align: left;
    font-weight: 600;
}

    .help-accordion-button:hover,
    .help-accordion-button:focus {
        background: #f5f5f5;
        outline: none;
    }

    .help-accordion-button::after {
        content: "+";
        float: right;
    }

    .help-accordion-button[aria-expanded="true"]::after {
        content: "−";
    }

