﻿.help-widget {
    display: inline-flex;
    align-items: center;
    margin-left: 1rem;
}

.help-button {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-weight: 700;
    font-size: 18px;
    line-height: 34px;
    text-align: center;
    background: #0d6efd;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

    .help-button:hover {
        filter: brightness(0.95);
    }

.help-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    display: none;
    z-index: 2000;
}

    .help-overlay.open {
        display: block;
    }

.help-drawer {
    position: absolute;
    top: 0;
    right: 0;
    width: 90vw;
    max-width: 1400px;
    height: 100%;
    background: #fff;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: help-slide-in 0.18s ease-out;
}

@keyframes help-slide-in {
    from {
        transform: translateX(24px);
        opacity: 0.7;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.help-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid #ddd;
    background: #f8f9fa;
}

    .help-header h5 {
        margin: 0;
        font-size: 1rem;
    }

.help-close {
    border: none;
    background: transparent;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.help-body {
    padding: 18px;
    overflow-y: auto;
    line-height: 1.55;
    height: 100%;
}

    .help-body h1,
    .help-body h2,
    .help-body h3 {
        margin-top: 1rem;
    }

        .help-body h1:first-child,
        .help-body h2:first-child,
        .help-body h3:first-child {
            margin-top: 0;
        }

    .help-body pre {
        background: #f5f5f5;
        padding: 12px;
        border-radius: 6px;
        overflow-x: auto;
    }

    .help-body code {
        font-family: Consolas, "Courier New", monospace;
    }

    .help-body table {
        border-collapse: collapse;
        width: 100%;
        margin: 1rem 0;
    }

    .help-body th,
    .help-body td {
        border: 1px solid #ddd;
        padding: 8px 10px;
        text-align: left;
    }

.help-loading,
.help-empty,
.help-error {
    color: #555;
}

.help-error {
    color: #b00020;
}

.help-navbar-slot {
    margin-left: auto;
    display: flex;
    align-items: center;
    background: transparent;
    padding: 0 1rem;
}

@media print {

    body {
        font-size: 12pt;
    }

    h1 {
        page-break-before: always;
    }

    pre {
        page-break-inside: avoid;
    }
}

.manual-button {
    background: #444;
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin-left: 6px;
}

.manual-button:hover {
    background: #666;
}
