.navbar-help {
    position: relative;
    display: flex;
    align-items: center;
}

.navbar-help-trigger {
    min-height: 2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.55rem;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff !important;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1;
    transition: background-color 140ms ease, border-color 140ms ease;
}

.navbar-help-trigger:hover,
.navbar-help-trigger:focus-visible,
.navbar-help-trigger.show {
    border-color: rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff !important;
}

.navbar-help-trigger:focus-visible {
    outline: 2px solid #f0e6ce;
    outline-offset: 2px;
}

.navbar-help-trigger .bi {
    font-size: 1rem;
}

.help-dropdown-menu {
    display: none !important;
    width: min(24rem, calc(100vw - 1.5rem));
    padding: 0;
    overflow: hidden;
    border: 1px solid #b9d8c4;
    border-radius: 8px;
    background: #f8fbf9;
    box-shadow: 0 12px 30px rgba(22, 51, 34, 0.18);
}

.navbar-help .help-dropdown-menu.show {
    display: block !important;
}

.help-dropdown-header {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.8rem 0.85rem;
    border-bottom: 1px solid #d7e8dd;
    background: #edf7f0;
}

.help-dropdown-icon {
    width: 2rem;
    height: 2rem;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #2f8f46;
    color: #ffffff;
    font-size: 0.95rem;
}

.help-dropdown-title {
    margin: 0;
    color: #1f4f36;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.2;
}

.help-dropdown-subtitle {
    margin: 0.18rem 0 0;
    color: #5b7061;
    font-size: 0.76rem;
    line-height: 1.3;
}

.help-dropdown-close {
    width: 1.8rem;
    height: 1.8rem;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    margin-left: auto;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #456152;
}

.help-dropdown-close:hover,
.help-dropdown-close:focus-visible {
    background: #dbeee1;
    color: #1f4f36;
}

.help-dropdown-body {
    padding: 0.8rem 0.85rem;
}

.help-dropdown-section + .help-dropdown-section {
    margin-top: 0.8rem;
    padding-top: 0.75rem;
    border-top: 1px solid #dfece3;
}

.help-dropdown-section-title {
    margin: 0 0 0.45rem;
    color: #28533a;
    font-size: 0.8rem;
    font-weight: 700;
}

.help-guide-list {
    display: grid;
    gap: 0.45rem;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: help-step;
}

.help-guide-list li {
    display: grid;
    grid-template-columns: 1.35rem minmax(0, 1fr);
    gap: 0.4rem;
    align-items: start;
    color: #405548;
    font-size: 0.8rem;
    line-height: 1.35;
}

.help-guide-list li::before {
    content: counter(help-step);
    counter-increment: help-step;
    width: 1.35rem;
    height: 1.35rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #e3f2e8;
    color: #287947;
    font-size: 0.7rem;
    font-weight: 700;
}

.help-note-label {
    margin-bottom: 0.25rem;
    color: #28533a;
    font-size: 0.8rem;
    font-weight: 700;
}

.help-note-textarea {
    min-height: 5.25rem;
    resize: vertical;
    border: 1px solid #a9cdb9;
    border-radius: 6px;
    font-size: 0.82rem;
    line-height: 1.35;
}

.help-note-textarea:focus {
    border-color: #2e8b57;
    box-shadow: 0 0 0 0.15rem rgba(46, 139, 87, 0.16);
}

.help-note-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.55rem;
}

.help-note-actions .btn {
    min-height: 2rem;
    border-radius: 5px;
    font-size: 0.78rem;
    font-weight: 700;
}

.help-note-actions .btn-success {
    background: #2f8f46;
    border-color: #2f8f46;
}

.help-note-actions .btn-success:hover,
.help-note-actions .btn-success:focus-visible {
    background: #256f38;
    border-color: #256f38;
}

.help-note-actions .btn-outline-danger {
    border-color: #d8a19b;
    color: #a62e25;
}

.help-note-hint,
.help-note-readonly {
    margin: 0.45rem 0 0;
    color: #65766b;
    font-size: 0.74rem;
    line-height: 1.3;
}

@media (max-width: 767.98px) {
    .navbar-help-trigger {
        width: 2rem;
        justify-content: center;
        padding: 0;
    }

    .navbar-help-trigger-label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .help-dropdown-menu {
        width: min(22rem, calc(100vw - 1rem));
    }
}
