.modal-open {
    padding-right: 4 !important;
}

.bg-pattern {
    background-image: url('../img/surge_background_transparent.webp');
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: cover;
    background-attachment: fixed;
    background-color: #fff;
}

.bg-pattern-dark {
    background-image: url('../img/surge_background_transparent.webp');
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: cover;
    background-attachment: fixed;
    background-color: #1e1e1e !important;
}

.bg-dark {
    border: 1px solid #86868630;
}

.bottom-border-dark {
    border-left: 0px !important;
    border-right: 0px !important;
    border-top: 0px !important;
    border-bottom: 1px solid #86868630 !important;
}

.table-bw {
    table-layout: fixed;
    word-wrap: break-word;
}

.hover-row:hover {
    background-color: #0d6efd10 !important;
    border-radius: 4px;
}

.hover-row-0px:hover {
    background-color: #0d6efd10 !important;
}

.btn-file-upload:hover {
    background-color: #1c96c5c0 !important;
}

.table-hover tbody tr:hover td,
.table-hover tbody tr:hover th {
    background-color: #cfe2ff90 !important;
}

.success-hover-row {
    background-color: #19875430;
    border-radius: 4px;
}

.success-hover-row:hover {
    background-color: #19875460;
    border-radius: 4px;
}

.info-key {
    border: 0px;
    pointer-events: none;
    border-radius: 4px;
    background: #cfe2ff60 !important;
    opacity: 1.0 !important;
    box-shadow: -2px 2px 3px #04040520;
}

.shadow-soft {
    box-shadow: -2px 5px 5px #04040520;
}

.text-shadow-soft {
    text-shadow: -2px 5px 5px #04040520;
}

.shadow-lg {
    box-shadow: -4px 10px 6px #040405aa;
}

.compact-info-key {
    border: 0px;
    pointer-events: none;
    border-radius: 0px 2px 4px 0px;
}

.key-pill {
    border-radius: 8px 2px 2px 8px;
    padding-top: 2px;
    padding-bottom: 2px;
}

::-webkit-scrollbar {
    width: 16px;
}

::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.2);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    border-radius: 6px;
    -webkit-box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.2);
    min-height: 48px;
    border: 1px solid #cfe2ff;
    background: #98c1ff90;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #98c1ff;
}

mark {
    background-color: #d63384;
    color: #fff !important;
    border-radius: 2px;
}

mark:hover {
    background-color: #d63384;
    color: #fff !important;
    border-radius: 2px;
}

.nopadding {
    padding: 0 !important;
    margin: 0 !important;
}

.mb-2px {
    margin-bottom: 2px !important;
}

.fs-20px {
    font-size: 20px !important;
}

.fs-24px {
    font-size: 24px !important;
}

.fs-16px {
    font-size: 16px !important;
}

.b-0 {
    border: 0px !important;
}

.b-white-1px {
    border: 1px solid white;
}

.b-dark {
    border: 1px solid #868686 !important;
}

.b-r-dark {
    border-right: 1px solid #868686 !important;
}

.b-b-dark {
    border-bottom: 1px solid #868686 !important;
}

.b-xtra-dark {
    border: 1px solid #86868630 !important;
}

.br-0 {
    border-radius: 0px !important;
}

.br-2 {
    border-radius: 2px !important;
}

.br-4 {
    border-radius: 4px !important;
}

.br-6 {
    border-radius: 6px !important;
}

.br-8 {
    border-radius: 8px !important;
}

.br-jump-to {
    border-radius: 8px 4px 4px 8px !important;
    border: 1px solid darkgrey !important;
    height: 22px !important;
    margin-bottom: 1px !important;
    color: black !important;
}

.br-jump-to:hover {
    border-radius: 8px 4px 4px 8px !important;
    border: 1px solid darkgrey !important;
    height: 22px !important;
    margin-bottom: 1px !important;
}

.br-4-key {
    border-radius: 0px 4px 4px 0px !important;
}

.brt-4-key {
    border-radius: 4px 0px 0px 0px !important;
}

.brt-4-value {
    border-radius: 0px 4px 0px 0px !important;
}

.brt-6-value {
    border-radius: 0px 6px 0px 0px !important;
}

.brt-7-value {
    border-radius: 0px 7px 0px 0px !important;
}

.brt-8-value {
    border-radius: 0px 8px 0px 0px !important;
}

.brb-4-key {
    border-radius: 0px 0px 0px 4px !important;
}

.brb-4-value {
    border-radius: 0px 0px 4px 0px !important;
}

.brt-2 {
    border-radius: 2px 2px 0px 0px !important;
}

.brt-4 {
    border-radius: 4px 4px 0px 0px !important;
}

.brb-4 {
    border-radius: 0px 0px 4px 4px !important;
}


.brt-8 {
    border-radius: 8px 8px 2px 2px !important;
}

.brtf-8 {
    border-radius: 8px 8px 0px 0px !important;
}

.brtb-8 {
    border-radius: 0px 8px 8px 8px !important;
}

.brtf-8-key {
    border-radius: 8px 2px 0px 0px !important;
}

.brtf-6-key {
    border-radius: 6px 0px 0px 0px !important;
}

.brtf-8-value {
    border-radius: 2px 8px 0px 0px !important;
}

.br-16 {
    border-radius: 16px !important;
}

.br-999 {
    border-radius: 999px !important;
}

.br-value {
    border-radius: 2px 8px 8px 2px !important;
}

.br-key {
    border-radius: 8px 2px 2px 8px !important;
}

.br-key-4px {
    border-radius: 4px 0px 0px 4px !important;
}

.br-key-6px {
    border-radius: 6px 0px 0px 6px !important;
}

.br-value-4px {
    border-radius: 0px 4px 4px 0px !important;
}

.br-value-6px {
    border-radius: 0px 6px 6px 0px !important;
}

.result-badge {
    border: 1px solid lightgrey;
    width: 100px !important;
    text-align: start !important;
    padding-left: 8px;
}

.placeholder {
    border-radius: 2px !important;
}

.fs-12px {
    font-size: 12px;
}

.search-icon-div {
    min-width: 56px !important;
    max-width: 56px !important;
    width: 56px !important;
    height: 48px !important;
}

.sq-48 {
    width: 48px !important;
    height: 48px !important;
}

.w-10px {
    width: 10px !important;
}

.w-30px {
    width: 30px !important;
}

.w-40px {
    width: 40px !important;
}

.w-50px {
    width: 50px !important;
}

.w-52px {
    width: 50px !important;
}

.w-52px-sq {
    width: 52px !important;
    height: 52px !important;
}

.w-38px-sq {
    width: 38px !important;
    height: 38px !important;
}

.agent-report-btn {
    width: 48px !important;
    height: 48px !important;
}

.w-64px {
    width: 64px !important;
}

.w-68px {
    width: 64px !important;
}

.w-64px-sq {
    width: 64px !important;
    height: 64px !important;
}

.w-100px {
    width: 100px !important;
}

.w-128px {
    width: 128px !important;
}

.w-96px {
    width: 96px !important;
}

.w-156px {
    width: 156px !important;
}

.w-160px {
    width: 160px !important;
}

.w-172px {
    width: 172px !important;
}

.w-182px {
    width: 182px !important;
}

.w-200px {
    width: 200px !important;
}

.w-256px {
    width: 256px !important;
}

.w-240px {
    width: 240px !important;
}

.w-260px {
    width: 260px !important;
}

.w-300px {
    width: 300px !important;
}

.w-330px {
    width: 330px !important;
}

.w-400px {
    width: 400px !important;
}

.w-100 {
    width: 100% !important;
}

.h-50px {
    height: 50px !important;
}

.w-20 {
    width: 20% !important;
}

.w-30 {
    width: 30% !important;
}

.w-35 {
    width: 35% !important;
}

.w-40 {
    width: 40% !important;
}

.w-50 {
    width: 50% !important;
}

.w-33 {
    width: 33% !important;
}

.w-100-16px {
    width: calc(100% - 16px) !important;
}

.w-100-32px {
    width: calc(100% - 32px) !important;
}

.w-100-50px {
    width: calc(100% - 50px) !important;
}

.w-100-64px {
    width: calc(100% - 128px) !important;
}

.w-24px {
    width: 24px !important;
}

.w-28px {
    width: 28px !important;
}

.w-20px {
    width: 20px !important;
}

.w-24px-sq {
    width: 24px !important;
    height: 24px !important;
}

.w-60px {
    width: 60px !important;
}

.w-82px {
    width: 82px !important;
}

.col-w-100px {
    min-width: 100px !important;
    width: 100px !important;
}

.col-w-180px {
    min-width: 180px !important;
    width: 180px !important;
}

.col-w-184px {
    min-width: 184px !important;
    width: 184px !important;
}

.col-w-240px {
    min-width: 240px !important;
    width: 240px !important;
}

.col-w-260px {
    min-width: 260px !important;
    width: 260px !important;
}

.col-w-custom {
    min-width: 180px !important;
    width: calc(100% - 668px) !important;
}

.w-220px {
    width: 220px !important;
}

.mw-100px {
    min-width: 100px !important;
}

.mw-128px {
    min-width: 128px !important;
}

.mw-200px {
    min-width: 200px !important;
}

.mw-210px {
    min-width: 210px !important;
}

.mw-220px {
    min-width: 220px !important;
}

.mw-48px {
    min-width: 48px !important;
}

.mw-56px {
    min-width: 56px !important;
}

.maxw-40pc {
    max-width: 40% !important;
}

.maxw-50pc {
    max-width: 50% !important;
}

.maxw-64px {
    max-width: 64px !important;
}

.maxw-120px {
    max-width: 120px !important;
}

.maxw-160px {
    max-width: 160px !important;
}

.maxw-256px {
    max-width: 256px !important;
}

.maxw-300px {
    max-width: 300px !important;
}

.maxw-400px {
    max-width: 400px !important;
}

.maxw-272px {
    max-width: 272px !important;
}

.maxw-100pc-64px {
    max-width: calc(100% - 64px) !important;
}

.h-100 {
    height: 100% !important;
}

.report-view-panel {
    height: 100% !important;
    min-height: 800px !important;
}

.config-panel-outer-container {
    height: 100% !important;
    min-height: 800px !important;
}

.config-panel-container {
    height: 100% !important;
    overflow-y: hidden !important;
}

.hide-y-overflow {
    overflow-y: hidden !important;
}

.hide-x-overflow {
    overflow-x: hidden !important;
}

.h-48px {
    height: 48px !important;
}

.h-50px {
    height: 50px !important;
}

.h-52px {
    height: 52px !important;
}

.h-50vh-128px {
    height: calc(50vh - 128px) !important;
}

.h-50h-128px {
    height: calc(50% - 128px) !important;
}

.h-50p-64px {
    height: calc(50% - 64px) !important;
}

.h-38px {
    height: 38px !important;
}

.h-39px {
    height: 39px !important;
}

.h-24px {
    height: 24px !important;
}

.h-26px {
    height: 26px !important;
}

.h-100px {
    height: 100px !important;
}

.h-80px {
    height: 80px !important;
}

.d-none {
    display: none !important;
}

.pe-none {
    pointer-events: none !important;
}

.pe-auto {
    pointer-events: auto !important;
}

.pe-cursor {
    cursor: pointer;
}

.curs-d {
    cursor: default !important;
}

.btn-outline-primary.no-hover {
    transition: none;
}

.btn-outline-primary.no-hover:hover,
.btn-outline-primary.no-hover:focus {
    background-color: transparent !important;
    border-color: #0d6efd !important;
    color: #0d6efd !important;
}

.icon-primary {
    background-color: #0d6efd30 !important;
}

.icon-primary-to-danger {
    color: #0d6efd !important;
    background-color: #0d6efd30 !important;
}

.icon-primary-to-danger:hover {
    color: #fff !important;
    background-color: #dc3545 !important;
}

.icon-danger-to-primary {
    color: #fff !important;
    background-color: #dc3545 !important;
}

.icon-danger-to-primary:hover {
    color: #0d6efd !important;
    background-color: #0d6efd30 !important;
}

.accordion-button:hover {
    background-color: #0d6efd10 !important;
    box-shadow: none !important;
    color: #007bff !important;
}

.accordion-button:not(.collapsed) {
    background-color: #0d6efd20 !important;
    box-shadow: none !important;
    color: #007bff !important;
}

.accordion-button::after {
    filter: invert(31%) sepia(96%) saturate(749%) hue-rotate(180deg) brightness(90%) contrast(90%);
}

.menu-ddm {
    margin-top: 64px !important;
}

.mt-72 {
    margin-top: 72px !important;
}

.mt-2px {
    margin-top: 2px !important;
}

.h-10vh {
    height: 10vh;
}

.h-15vh {
    height: 15vh;
}

.h-25vh {
    height: 25vh;
}

.h-30vh {
    height: 30vh;
}

.h-100vh-help {
    height: calc(100vh - 132px);
    overflow-y: hidden;
    overflow-x: hidden;
    overflow: visible !important;
}

.h-100vh-header {
    height: calc(100vh - 196px);
    max-height: 1200px !important;
    overflow-y: auto;
    overflow-x: hidden;
}

.h-100vh-header-ns {
    height: calc(100vh - 196px);
    overflow-y: hidden;
    overflow-x: hidden;
    overflow: visible !important;
}

.h-100vh-max-600px {
    height: calc(100vh - 128px);
    max-height: 600px;
    overflow-y: auto;
    overflow-x: hidden;
}

.h-50vh-max-600px {
    height: 50vh;
    max-height: 600px;
    overflow-y: auto;
    overflow-x: hidden;
}

.h-70vh-max-800px {
    height: 70vh;
    max-height: 800px;
    overflow-y: auto;
    overflow-x: hidden;
}

.h-70vh-max-1000px {
    height: 70vh;
    max-height: 1000px;
    overflow-y: auto;
    overflow-x: hidden;
}

.h-50vh-max-640px-no-of {
    height: 50vh;
    max-height: 640px;
    overflow-y: none;
    overflow-x: none;
}

.h-90vh-128px {
    height: calc(90vh - 128px);
}

#search_input {
    width: calc(100% - 310px);
}

#disasm_func_list {
    max-height: calc(50vh - 128px);
    height: 50vh;
    overflow-y: scroll;
    border-radius: 0px 0px 4px 0px;
}

#disasm_section_list {
    max-height: calc(50vh - 128px);
    height: 50vh;
    overflow-y: scroll;
    border-radius: 0px 0px 0px 4px;
}

th {
    position: sticky;
    top: 0;
}

#disasm_func {
    height: calc(90vh - 300px);
    overflow-y: scroll;
    scroll-behavior: smooth;
    border: 2px solid #86868650;
    border-radius: 2px 8px 8px 8px;
}

#dasm_sha256_search {
    border-radius: 2px 2px 8px 8px;
}

#upload_file_progress {
    border-radius: 4px !important;
    cursor: default;
    font-size: 24px;
}

.filter-btn {
    border-top: 2px solid #86868650;
    border-left: 2px solid #86868650;
    border-bottom: 2px solid #86868650;
}

.filter-input {
    border-radius: 0px 8px 0px 0px;
    width: calc(100% - 128px);
    border-top: 2px solid #86868650;
    border-right: 2px solid #86868650;
    border-bottom: 2px solid #86868650;
}

.dasm-dropdown-outer {
    /*border-bottom: 2px solid #86868650;
    border-left: 2px solid #86868650;
    border-right: 2px solid #86868650;*/
    border-radius: 0px 0px 8px 8px;
}

.cursor-default {
    cursor: default;
}

.cursor-auto {
    cursor: auto;
}

.cursor-pointer {
    cursor: pointer;
}

.no-theader {
    visibility: none;
    height: 0px !important;
    pointer-events: none;
}

.card-link {
    text-decoration: none;
    color: #000;
}

.card-link:hover {
    background-color: #cfe2ff60 !important;
}

.pag-num-res {
    border-radius: 0px 4px 4px 0px !important;
    border: 1px solid #86868630 !important;
    border-left: 0px !important;
}

.artifact_file_tree {
    overflow-y: scroll !important;
    overflow-x: hidden !important;
    max-height: 600px !important;
    height: 600px !important;
}

.agent-config-scroll {
    overflow-y: scroll !important;
    overflow-x: hidden !important;
    max-height: 600px !important;
    height: 50vh !important;
}

.rsrc-strings {
    border-radius: 4px !important;
    max-height: 400px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

.rsrc-strings-max {
    border-radius: 4px !important;
    max-height: 400px !important;
    height: 400px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

.uploaded-file-list-max {
    border-radius: 4px !important;
    max-height: 200px !important;
    height: 200px !important;
    overflow-y: scroll !important;
    overflow-x: hidden !important;
}

.uploaded-ep-list-max {
    border-radius: 4px !important;
    max-height: 56px !important;
    height: 56px !important;
    overflow-y: hidden !important;
    overflow-x: hidden !important;
}

.report-dropdown {
    border-radius: 4px !important;
    max-height: 400px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

.ana-status {
    max-height: 160px !important;
    height: 160px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    white-space: pre-wrap !important;
    word-wrap: break-word !important;
}

.wrap-word {
    white-space: pre-wrap !important;
    word-wrap: break-word !important;
}

pre {
    white-space: pre-wrap !important;
    word-wrap: break-word !important;
}

.markdown-code {
    overflow-x: auto;
    white-space: normal;
    word-break: break-word;
}

.pe-section-tall {
    border-radius: 4px !important;
    max-height: 800px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

.pe-section-tall-max {
    border-radius: 4px !important;
    max-height: 800px !important;
    height: 800px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

.float-right {
    float: right !important;
}

.w-30p {
    width: 30%;
}

.w-25p {
    width: 25%;
}

.w-20p {
    width: 20%;
}

.w-15p {
    width: 15%;
}

.w-10p {
    width: 10%;
}

.w-5p {
    width: 5%;
}

.anchor-mt72 {
    scroll-margin-top: 72px;
}

.anchor-mt48 {
    scroll-margin-top: 48px;
}

.anchor-mt24 {
    scroll-margin-top: 24px;
}

.anchor-mt144 {
    scroll-margin-top: 144px;
}

.mt256 {
    margin-top: 256px;
}

.container-top-left {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    left: 0;
    width: 220px;
    z-index: 100;
}

.asm-dd-menu {
    min-width: 300px;
    max-width: 600px;
    width: 100%;
}

.asm-sep-sub {
    border-bottom: 1px solid #007bff !important;
}

.asm-sep-loc {
    border-bottom: 1px solid #17a2b8 !important;
}

.asm-sep-off {
    border-bottom: 1px solid #17a2b8 !important;
}

.dasm-loc-expand {
    border-radius: 0px 0px 4px 4px !important;
    border-left: 1px solid #17a2b8 !important;
    border-right: 1px solid #17a2b8 !important;
    border-bottom: 1px solid #17a2b8 !important;
}

.dasm-off-expand {
    border-radius: 0px 0px 4px 4px !important;
    border-left: 1px solid #17a2b8 !important;
    border-right: 1px solid #17a2b8 !important;
    border-bottom: 1px solid #17a2b8 !important;
}

.dasm-sub-expand {
    border-radius: 0px 0px 4px 4px !important;
    border-left: 1px solid #007bff !important;
    border-right: 1px solid #007bff !important;
    border-bottom: 1px solid #007bff !important;
}

.anon-sha256-btn {
    border-radius: 4px 0px 0px 4px !important;
}

.b-thick {
    border: 3px !important
}

.b2-primary {
    border: 2px solid #007bff !important;
}

.b2-black {
    border: 2px solid #000 !important;
}

.z-0 {
    z-index: 0 !important;
}

.z-100 {
    z-index: 100 !important;
}

#disasm_filter_input {
    width: calc(100% - 128px) !important;
    border-radius: 0px !important;
}

#disasm_filter_dat_ins {
    border: 4px solid #6c757d;
    border-radius: 6px !important;
}

.pt-2px {
    padding-top: 2px;
}

.logo {
    display: block;
    margin: auto;
    width: 50%;
}

.warning-modal-bg {
    background: #00000090;
}

.dark-nav-link {
    color: #cccccc;
    background-color: #343a40;
}

.dark-nav-link.active {
    color: #ffffff;
    background: #343a4060;
    border-bottom: 0px;
}

.no-br {
    border-right: 0px !important;
}

.no-bl {
    border-left: 0px !important;
}

.report-section {
    margin-bottom: 192px !important;
}

.paginate-bumper {
    margin-bottom: 56px !important;
}

.modal-wide {
    max-width: 1400px !important;
    width: auto;
}

.logo-pos {
    top: 300px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    width: 600px;
}

/* Add to your theme.css or equivalent stylesheet */
.nav-tabs .nav-link {
    border: none;
    background-color: transparent;
    color: #6c757d;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    padding: 1rem 1.5rem;
    border-bottom-right-radius: 0px;
    border-bottom-left-radius: 0px;
}

.nav-tabs .nav-link:hover,
.nav-tabs .nav-link:focus {
    border-color: transparent;
    color: #0d6efd;
    background-color: rgba(13, 110, 253, 0.1);
    border-bottom-right-radius: 0px;
    border-bottom-left-radius: 0px;
}

.nav-tabs .nav-link.active {
    color: #0d6efd;
    border-bottom: 2px solid #0d6efd;
    background-color: transparent;
    border-bottom-right-radius: 0px;
    border-bottom-left-radius: 0px;
}

@keyframes blink {
    50% {
        color: transparent
    }
}

.loader__dot {
    animation: 1.5s blink infinite
}

.loader__dot:nth-child(2) {
    animation-delay: 350ms
}

.loader__dot:nth-child(3) {
    animation-delay: 650ms
}

.table {
    border-collapse: separate;
    border-spacing: 0;
}

.scroll-y {
    overflow-y: scroll !important;
}

.sidebar {
    flex: 0 0 auto;
    width: var(--sidebar-width, 16.6667%);
    max-width: var(--sidebar-width);
    transition: width .35s ease,
        max-width .35s ease,
        right-width .35s ease,
        left-width .35s ease,
        opacity .35s ease;
}

.sidebar.collapsed {
    --sidebar-width: 0%;
    opacity: 0;
    pointer-events: none;
}

.center-panel {
    flex: 1 1 auto;
    transition: flex-basis .35s ease, width .35s ease;
}

.sidebar-left,
.sidebar-right {
    max-width: 256px !important;
}

.sidebar-left.collapsed~.center-panel,
.sidebar-right.collapsed~.center-panel {
    flex-basis: calc(100% - var(--right-width, 0%) - var(--left-width, 0%));
}

.toggle-btn {
    transition:
        transform .2s ease,
        left .35s ease,
        right .35s ease,
        opacity 0.35s ease;
    opacity: 0.3 !important;
}

.toggle-btn:hover {
    opacity: 1.0 !important;
    transform: scale(1.05);
}

.toggle-left {
    left: calc(var(--left-width, 16.6667%) - 15px);
}

.toggle-right {
    right: calc(var(--right-width, 16.6667%) - 15px);
}

.nowrap {
    display: flex;
    flex-wrap: nowrap;
}

.overflow-dots {
    text-overflow: ellipsis;
}

.risk-badge {
    width: 72px !important;
    height: 21px !important;
}

.risk-badge-sm {
    width: 26px !important;
    height: 21px !important;
}

.badge-risk-low {
    background: rgba(46, 125, 50, 0.15) !important;
    /* soft green tint */
    color: #2e7d32 !important;
    border: 1px solid rgba(46, 125, 50, 0.25);
}

.badge-risk-med {
    background: rgba(245, 124, 0, 0.15) !important;
    /* soft amber tint */
    color: #ef6c00 !important;
    border: 1px solid rgba(239, 108, 0, 0.25);
}

.badge-risk-high {
    background: rgba(211, 47, 47, 0.15) !important;
    /* soft red tint */
    color: #c62828 !important;
    border: 1px solid rgba(198, 40, 40, 0.25);
}

.badge-risk-critical {
    background: rgba(183, 28, 28, 0.15) !important;
    /* muted deep red tint */
    color: #b71c1c !important;
    border: 1px solid rgba(183, 28, 28, 0.25);
}

.badge-risk-info {
    background: rgba(25, 118, 210, 0.12) !important;
    /* subtle blue tint */
    color: #1565c0 !important;
    border: 1px solid rgba(21, 101, 192, 0.25);
}

.btn-risk-info,
.btn-risk-low,
.btn-risk-med,
.btn-risk-high,
.btn-risk-critical {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    border-radius: .25rem;
    font-weight: 600;
    cursor: pointer;
}

/* Unchecked state */
.btn-check:not(:checked)+.btn-risk-info,
.btn-check:not(:checked)+.btn-risk-low,
.btn-check:not(:checked)+.btn-risk-med,
.btn-check:not(:checked)+.btn-risk-high,
.btn-check:not(:checked)+.btn-risk-critical {
    background-color: #86868630;
    color: #212529;
}

/* Checked states */
#global_timeline_risk_info:checked+.btn-risk-info {
    background: rgba(25, 118, 210, 0.12) !important;
    color: #1565c0 !important;
    border: 1px solid rgba(21, 101, 192, 0.25);
}

#global_timeline_risk_low:checked+.btn-risk-low {
    background: rgba(46, 125, 50, 0.15) !important;
    color: #2e7d32 !important;
    border: 1px solid rgba(46, 125, 50, 0.25);
}

#global_timeline_risk_med:checked+.btn-risk-med {
    background: rgba(245, 124, 0, 0.15) !important;
    color: #ef6c00 !important;
    border: 1px solid rgba(239, 108, 0, 0.25);
}

#global_timeline_risk_high:checked+.btn-risk-high {
    background: rgba(211, 47, 47, 0.15) !important;
    color: #c62828 !important;
    border: 1px solid rgba(198, 40, 40, 0.25);
}

#global_timeline_risk_critical:checked+.btn-risk-critical {
    background: rgba(183, 28, 28, 0.15) !important;
    color: #b71c1c !important;
    border: 1px solid rgba(183, 28, 28, 0.25);
}

#files_risk_info:checked+.btn-risk-info {
    background: rgba(25, 118, 210, 0.12) !important;
    color: #1565c0 !important;
    border: 1px solid rgba(21, 101, 192, 0.25);
}

#files_risk_low:checked+.btn-risk-low {
    background: rgba(46, 125, 50, 0.15) !important;
    color: #2e7d32 !important;
    border: 1px solid rgba(46, 125, 50, 0.25);
}

#files_risk_med:checked+.btn-risk-med {
    background: rgba(245, 124, 0, 0.15) !important;
    color: #ef6c00 !important;
    border: 1px solid rgba(239, 108, 0, 0.25);
}

#files_risk_high:checked+.btn-risk-high {
    background: rgba(211, 47, 47, 0.15) !important;
    color: #c62828 !important;
    border: 1px solid rgba(198, 40, 40, 0.25);
}

#files_risk_critical:checked+.btn-risk-critical {
    background: rgba(183, 28, 28, 0.15) !important;
    color: #b71c1c !important;
    border: 1px solid rgba(183, 28, 28, 0.25);
}

#endpoints_risk_info:checked+.btn-risk-info {
    background: rgba(25, 118, 210, 0.12) !important;
    color: #1565c0 !important;
    border: 1px solid rgba(21, 101, 192, 0.25);
}

#endpoints_risk_low:checked+.btn-risk-low {
    background: rgba(46, 125, 50, 0.15) !important;
    color: #2e7d32 !important;
    border: 1px solid rgba(46, 125, 50, 0.25);
}

#endpoints_risk_med:checked+.btn-risk-med {
    background: rgba(245, 124, 0, 0.15) !important;
    color: #ef6c00 !important;
    border: 1px solid rgba(239, 108, 0, 0.25);
}

#endpoints_risk_high:checked+.btn-risk-high {
    background: rgba(211, 47, 47, 0.15) !important;
    color: #c62828 !important;
    border: 1px solid rgba(198, 40, 40, 0.25);
}

#endpoints_risk_critical:checked+.btn-risk-critical {
    background: rgba(183, 28, 28, 0.15) !important;
    color: #b71c1c !important;
    border: 1px solid rgba(183, 28, 28, 0.25);
}

/* Optional hover effect */
.btn-risk-info:hover,
.btn-risk-low:hover,
.btn-risk-med:hover,
.btn-risk-high:hover,
.btn-risk-critical:hover {
    opacity: .85;
}

.btn-apply {
    background: #1565c0 !important;
    color: #ffffff !important;
    border: 1px solid #0d47a1;
}

.btn-apply:hover {
    background: #0d47a1 !important;
}

.btn-clear {
    background: #e0e0e0 !important;
    color: #333 !important;
    border: 1px solid #bdbdbd;
}

.btn-clear:hover {
    background: #d5d5d5 !important;
}

.btn-menu {
    background: #e0e0e0 !important;
    color: #333 !important;
    border: 1px solid #bdbdbd;
}

.btn-menu:hover {
    background: #b3b3b3 !important;
}

input[type="checkbox"]:not(:checked)+.btn-clear {
    opacity: 0.6;
    filter: grayscale(40%);
}

input[type="checkbox"]:checked+.btn-clear {
    opacity: 1;
    filter: none;
}

.btn-refresh {
    background: rgba(33, 150, 243, 0.12) !important;
    color: #1976d2 !important;
    border: 1px solid rgba(33, 150, 243, 0.25);
    transition: all 0.2s ease-in-out;
}

.btn-refresh:hover {
    background: rgba(33, 150, 243, 0.18) !important;
    box-shadow: 0 0 6px rgba(33, 150, 243, 0.3);
}

.btn-upload {
    background: rgba(76, 175, 80, 0.12) !important;
    color: #2e7d32 !important;
    border: 1px solid rgba(76, 175, 80, 0.25);
    transition: all 0.2s ease-in-out;
}

.btn-upload:hover {
    background: rgba(76, 175, 80, 0.18) !important;
    box-shadow: 0 0 6px rgba(76, 175, 80, 0.3);
}

.hover-grow {
    transition:
        transform .2s ease,
        top .35s ease,
        bottom .35s ease,
        left .35s ease,
        right .35s ease;
}

.hover-grow:hover {
    transform: scale(1.005);
}

.main-tab-search-btn {
    transition:
        transform .2s ease,
        top .35s ease,
        bottom .35s ease,
        left .35s ease,
        right .35s ease !important;
    height: 38px !important;
    width: 64px !important;
}

.main-tab-search-btn:hover {
    transform: scale(1.005) !important;
}

.left-nav {
    width: 264px !important;
    transition: width .2s ease-in-out;
}

.left-nav.collapsed {
    width: 4px !important;
    overflow: hidden;
}

.os-selector {
    background: rgba(25, 118, 210, 0.12) !important;
    /* subtle blue tint */
    color: #1565c0 !important;
    border: 1px solid rgba(21, 101, 192, 0.25);
}

.os-selector:hover {
    background: rgba(25, 118, 210, 0.50) !important;
    /* subtle blue tint */
    color: #1565c0 !important;
    border: 1px solid rgba(21, 101, 192, 0.25);
}

input[type="checkbox"]:not(:checked)+.os-selector {
    opacity: 0.6;
    filter: grayscale(40%);
}

input[type="checkbox"]:checked+.os-selector {
    opacity: 1;
    filter: none;
}

h1, h2, h3, h4, h5, h6 { /* markedjs squishes header text */
    font-family: inherit;
    letter-spacing: normal;
    word-spacing: normal;
    transform: none;
}

P {
    white-space: pre-wrap !important;
    word-wrap: break-word !important;
}

.alert-warning {
    border: 1px solid #ef6c00 !important;
}

.suppress-markdown-output p {
  margin-bottom: 0 !important;
}

.radar-canvas {
    max-height: 320px !important;
    max-width: 400px !important;
    height: 100% !important;
    width: 100% !important;
}

.mitre-radar {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}