﻿
/* General formatting */
#help-panel h2 .mud-svg-icon {
    vertical-align: middle;
    position: relative;
    top: -3px;
}

#help-panel p {
    font-size: 1rem;
    font-family: var(--mud-typography-font-family);
    color: var(--mud-palette-text-primary);
    line-height: 1.5;
    margin-bottom: 1rem;
}

#help-panel p {
    font-size: 1rem;
    font-family: var(--mud-typography-font-family);
    color: var(--mud-palette-text-primary);
    line-height: 1.5;
    margin-bottom: 1rem;
}
#help-panel .help-divider {
    border: none;
    height: 1px;
    background-color: var(--mud-palette-lines-default, #e0e0e0);
    margin: 1rem 0;
}

#help-panel .help-sub-bullets {
    list-style-type: disc;
    list-style-position: outside;
    padding-left: 0;
    margin-bottom: 6px;
    font-size: 1rem;
}

/* Table formatting */
#help-panel .mud-table {
    margin: 0 0 1.5rem 0;
}

    #help-panel .mud-table table {
        margin: 0;
    }

    #help-panel .mud-table thead {
        background-color: var(--mud-palette-secondary);
    }

    #help-panel .mud-table th {
        color: var(--mud-palette-tertiary-text);
        font-size: 0.95rem;
        font-weight: 600;
        padding: 8px;
    }

        #help-panel .mud-table th p {
            color: var(--mud-palette-tertiary-text);
            font-size: 0.95rem;
            font-weight: 600;
        }

    #help-panel .mud-table td {
        font-size: 0.95rem;
        padding: 8px;
    }

        #help-panel .mud-table td p {
            font-size: 0.95rem;
        }

        #help-panel .mud-table th p, #help-panel .mud-table td p {
            margin: 0 !important;
        }

/* Apply striping to header row */
#help-panel .mud-table-bordered thead tr th {
    border-right: 1px solid var(--mud-palette-table-lines);
}

    #help-panel .mud-table-bordered thead tr th:last-child {
        border-right: none;
    }

#help-panel .mud-table-striped tbody tr:nth-of-type(2n+1) {
    background-color: transparent;
}

#help-panel .actions td:first-child {
    vertical-align: middle;
    text-align: center;
    width: 60px
}

/* Numbered step list styling */
#help-panel .mud-collapse-wrapper {
    margin-bottom: 0;
}

#help-panel .help-step-list {
    counter-reset: step;
    padding: 0px 0px 0px 32px;
}

    #help-panel .help-step-list > li {
        list-style: none;
        position: relative;
        margin-bottom: 6px;
        padding-top: 0.5rem;
        padding-left: 2rem;
        font-size: 0.95rem;
        overflow-wrap: anywhere;
        word-wrap: break-word;
        max-width: 95%;
    }

        #help-panel .help-step-list .mud-svg-icon {
            vertical-align: text-bottom;
            position: relative;
        }

    #help-panel .help-step-list > li::before {
        counter-increment: step;
        content: counter(step);
        position: absolute;
        left: 0;
        background-color: var(--mud-palette-primary);
        color: white;
        border-radius: 50%;
        width: 1.2rem;
        height: 1.2rem;
        text-align: center;
        line-height: 1.3rem;
        font-weight: bold;
        font-size: 0.75rem;
    }


/* Help popup */
#help-panel .help-popup-trigger {
    cursor: pointer;
}

#help-panel .help-popup.hidden {
    display: none !important;
}

/* Popup close "X" button */
#help-panel .help-popup-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--mud-palette-text-primary);
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

#help-panel .help-popup-link {
    color: var(--mud-palette-primary);
    text-decoration: underline;
    font-size: 1.1rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

    #help-panel .help-popup-link:hover {
        text-decoration: none;
        color: var(--mud-palette-secondary);
    }

#help-panel .help-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

#help-panel .help-popup-content {
    background: var(--mud-palette-surface);
    color: var(--mud-palette-text-primary);
    font-size: 1rem;
    font-family: var(--mud-typography-font-family);
    line-height: 2;
    min-width: 400px;
    max-width: 60%;
    max-height: 60%;
    padding: 2rem;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.25);
    pointer-events: auto;
    width: auto;
    overflow: auto;
    position: relative;
}

    #help-panel .help-popup-content h3 {
        margin-top: 0;
        font-size: 1.25rem;
        color: var(--mud-palette-primary);
    }

    #help-panel .help-popup-content h4 {
        margin-top: 0;
        font-size: 1rem;
        color: var(--mud-palette-primary);
    }
    #help-panel .help-popup-content p {
        margin-bottom: 0.1rem !important;
    }
    
  
    
    #help-panel .help-popup-content iframe,
    #help-panel .help-popup-content video {
        max-width: 100%;
        height: 100%;
        border-radius: 6px;
        margin-top: 1rem;
    }
