div#scriptcontainer {
    position: relative;
}
div#scriptcontainer h2 {
    margin-bottom: 0px;
    margin-top: 0px;
    flex-basis: 100%;
    padding-bottom: 10px; /* This overrides h2 in wizards, where the padding has been removed */
}
div#scriptcontainer li {
    line-height: 15px;
}

div.helpsystem_icon {
    float: right;
    text-align: center;
    padding: 0px 0px 0px 0px;
    top: 13px;
    position: relative;
    z-index: 999999;
}
div.helpsystem_icon:first-of-type {
    top: 13px;
    padding-right: 20px;
    margin-left: 0px;
}

div.helpsystem_icon .btn:active {
    box-shadow: none;
}

div.helpsystem_icon .btn.btn-nagios.btn-icon>i.material-symbols-outlined {
    font-weight: 400;
}

#helpsystem_resources {
    display: flex;
    flex-direction: column;
}

/* Refactored for Neptune */
.helpsystem-card-container {
    display: flex;
    flex-direction: column;
}

/* Overrides wizard link color and size for consistency */
/* This is --primary in neptune */
.helpsystem-card-container a {
    color: #4D89F9;
    font-size: 11px;
}
.helpsystem-card-container a:not([href]):not([class]), .helpsystem-card-container a:not([href]):not([class]):hover {
    color: #4D89F9;
}
.helpsystem-card-container a:not([href]):not([class]):hover {
    text-decoration: underline;
}
#helpsystem_resources a:focus, #helpsystem_resources a:hover,
.helpsystem-card-container a:focus, .helpsystem-card-container a:hover {
    color: #4D89F9;
    text-decoration: underline;
}

.helpsystem-title-container,
.helpsystem-content-container {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    top: -10px;
    position: relative;
    gap: 10px;
}

/* Have to adjust position, to line up with close button */
.helpsystem-title {
    position: relative;
    top: -30px;
    width: 80%;
    font-size: 15px;
    font-weight: bold;
}

#helpsystem_video {
    display: none;
    top: 30px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}
#helpsystem_video iframe {
    margin: 0 auto;
}
#helpsystem_video p {
    font-weight: bold;
}

#helpsystem_thumbnails {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px 20px;
}

#helpsystem_ui_doc {
    margin-bottom: 12px;
    position: relative;
    top: -15px;
}

.helpsystem-thumbnail {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 120px;
    min-height: 120px;
    cursor: pointer;
    text-align: center;
}

#close_child_popup_link > i.material-symbols-outlined {
    padding: 10px;
    margin-top: -10px;
    cursor: pointer;
}

div.helpsystem_icon:has(a[style*="display: none;"])+style+div.helpsystem_icon {
    padding-right: 20px;
}
