html {
    height: 100%;
}

body {
    height: 100%;
    background: white;
    color: #39434C;
    font-family: "Roboto-Regular", sans-serif;
    display: flex;
    flex-direction: column;
}


h1,
h2,
h3,
h4,
h5 {
    font-family: "Roboto-Light", sans-serif;
}

strong {
    font-family: "Roboto-Bold", sans-serif;
}

a {
    color: #1055a0;
    text-decoration: none;
}

a:hover {
    color: #1055a0;
    text-decoration: underline;
}

a .anchor::before {
    content: "";
    display: block;
    margin-top: -5rem;
    position: absolute;
}

a.partial-underline {
    text-decoration: none;
}

a.partial-underline .hover-line {
    text-decoration: underline;
}




.user {
    color: white;
    padding-right: 5px;
}


.message {
    margin-top: 5px;
}

.decrease-size {
    font-size: 0.6rem;
}

.nowrap {
    white-space: nowrap;
}


.admin-button {
    float:right;
}
.dropdown:hover .dropdown-menu {
    display: block;
}



.dropdown-submenu:hover .dropdown-submenu {
    display: block;
}


.right-menu {
    right: 0px;
    display: block;
    margin-left: auto; /* Automatically adjust margin to the left to push it to the right */


}



.right-dropdown-menu {
    right: 0px;
}

.navbar-brand {
    padding-right:0px;
}

.overflow-x-auto {
    overflow-x: auto;
}

.actor-logo-div {
    text-align: center;
}
.actor-logo {
    max-width: 300px;
    text-align: center;
}


.sort-indicator {
    color: #646464;
}

.link-foot {
    color: #6c757d;
    font-size: 0.8rem;
    margin-left: 10px;
}
.link-foot:hover {
    color: rgba(255, 255, 255, 0.75);
}


/* Add to your CSS */
.pagination {
    margin: 20px 0;
    text-align: center;
}
.pagination .step-links {
    display: inline-block;
}
.pagination a {
    padding: 5px 10px;
    text-decoration: none;
    border: 1px solid #ddd;
    margin: 0 4px;
}
.pagination .current {
    padding: 5px 10px;
    border: 1px solid #4CAF50;
    margin: 0 4px;
}

/* =========== Statistics =============== */
.stat-card {
    transition: transform .2s; /* Animation */
}
.stat-card:hover {
    transform: scale(1.05); /* (110% zoom - Note: if the zoom is too large, it will blur the text) */
}
.card-title {
    color: #007bff;
}
.card-text {
    color: #6c757d;
}


/* =========== Killchain =============== */



.killchain-node { 
    margin: 15px 5px; 
    padding: 10px; 
    background-color: #eef; 
    border-radius: 10px; 
    z-index: 100;
}
.killchain-node p { 
    margin: 0px; 
}
.chain-path {
    position: relative;
    display: flex; 
    flex-direction: column; 
    align-items: center;
}
.killchain-grid {
    display: flex;
    position: relative;  /* Ensure this is relative so SVG positions correctly */
}

.killchain-phase {
    position: relative;  /* This is important for absolute positioning of SVG */
    flex-grow: 1;
    margin: 10px;
    padding-top: 20px; /* Adjust based on your layout */
    background-color: #cfcfcf;
    border-radius: 10px; 
    padding: 10px;
    text-align: center;
}

.connection-lines {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: 1; /* Ensure SVG is above other content but below text/nodes if needed */
}

.connection-lines line {
    stroke: black; /* Ensure this is a color visible against your background */
    stroke-width: 2; /* Adjust thickness as needed */
}
/* =========== FILTER =============== */
.filter-controls {
    padding: 1rem;
}

.filter-controls button {
    border-color: #dfdfdf;
    background: white;
    color: #39434C;
}

.filter-controls button:hover {
    background: whitesmoke;
}

.filter-controls .layout-button:active {
    color: #16181b;
    text-decoration: none;
    background-color: #f8f9fa;
}

.center-controls .filter-controls .btn-toolbar {
    justify-content: left;
}


/* ============= TABLES ======================*/

.table-object-count {
    display: flex;
    justify-content: flex-end;
}
.div-count {
    margin-top: auto;
    margin-bottom: 0;
}

pre {
    color: #39434C;
    background-color: #d9d9d9;
    border-radius: 5px;
    padding: 1rem;
}

code {
    color: #c63e1f;
}

.description-body {
    line-height: 1.8rem;
}

.description-body.in-table {
    padding: 0.75rem 1.25rem;
}

.description-body.in-table p {
    margin-bottom: 0;
}

.description-body.card-description {
    padding: 0.3rem 0 0 0;
}

.description-body.card-description p {
    margin-bottom: 0;
}

.card {
    background: white;
    color: #39434C;
    border-color: #dfdfdf;
}

.button-group {
    display: flex;
    justify-content: end;
}

.button-group a.button+a.button {
    margin-left: 22px;
}

.button-group button {
    justify-content: center;
    width: 100%;
}

.button-group a.w-40 {
    width: 40%;
}

.card-filter {
    width: 20%;
    top: 9.3rem;
    float: right;
    background: #eaeaea;
}

@media screen and (max-width: 90.62rem) {
    .card-filter {
        display: contents;
    }
}

.card-presentation {
    margin-bottom: 30px;
}

.card-attackcon {
    width: 100%;
}

.card-data {
    margin-bottom: 0.5rem;
}

.card-header {
    color: #39434C;
    background: rgba(57, 67, 76, 0.03);
    border-bottom-color: #dfdfdf;
}

a.partial-underline {
    text-decoration: none;
}

a.partial-underline .hover-line {
    text-decoration: underline;
}

.contact-card {
    border-radius: 0.75em;
    overflow: hidden;
}

.contact-card .card-footer {
    padding: 0 1.25rem 1.25rem;
}

.contact-card .card-footer.button-group {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.contact-card .card-footer-no-button {
    padding: 0.5rem 1.25rem;
    min-height: 4rem;
    max-height: fit-content;
}

.contact-card .card-header {
    padding: 1.25rem 1.25rem 0;
}

.contact-card .card-header.background {
    background: #0b2338;
    color: white;
    padding-bottom: 1.25rem;
}

.contact-card .card-header.no-background,
.contact-card .card-footer.no-background {
    background: white;
    color: #39434C;
    border: unset;
}

.contact-card .card-body p {
    margin: 0;
}

.contact-card .card-body.background {
    background: #eaeaea;
}

.card-body>.table {
    border-right: 0;
    border-left: 0;
    margin-bottom: 0;
}

.card-body>.table:last-child {
    border-bottom: 0;
}

.card-body>.table:not(.table-sm) th,
.card-body>.table:not(.table-sm) td {
    padding: 0.75rem 1.25rem;
}

.card-body>.table td:first-child,
.card-body>.table th:first-child {
    border-left: 0;
}

.card-body>.table td:last-child,
.card-body>.table th:last-child {
    border-right: 0;
}

.card-body>.table tr:first-child td,
.card-body>.table tr:first-child th {
    border-top: 0;
}

.card-body>.table tr:last-child td {
    border-bottom: 0;
}

.card-body .card-header+.table {
    border-top: 0;
}

.card-data:last-of-type {
    margin-bottom: 0;
}

.card-title {
    font-size: 1.1rem;
    color: #1c2226;
}

.contact-card-title {
    font-size: 1.1rem;
    font-weight: bold;
}

.card-title-icon {
    float: right;
    color: #0156b3;
}
/* ============= MATRIX ======================*/

.matrix-container {
    border: 1px solid #dfdfdf;
    background: #f2f2f2;
    /*background: white;*/
}

.matrix-container+.matrix-container {
    margin-top: to-rem(16);
}

.matrix-container .matrix-border {
    border-left: 1px solid #dfdfdf;
    padding-left: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.matrix-container .matrix-title {
    border-bottom: 1px solid #dfdfdf;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
}

.matrix-container .scroll-indicator-group {
    white-space: nowrap;
    display: flex;
}

.matrix-container .scroll-indicator-group .matrix-scroll-box {
    flex-grow: 1;
    display: inline-block;
}

.matrix-container .scroll-indicator-group .scroll-indicator {
    width: 0px;
    display: inline-block;
    position: relative;
}

.matrix-container .scroll-indicator-group .scroll-indicator .cover {
    width: 50px;
    height: 100%;
    position: absolute;
    pointer-events: none;
}

.matrix-container .scroll-indicator-group .scroll-indicator.right .cover {
    right: 0;
}

.matrix-container .scroll-indicator-group .scroll-indicator.right.show .cover {
    background: linear-gradient(to right, rgba(255, 255, 255, 0.001), white);
}

.matrix-container .scroll-indicator-group .scroll-indicator.left .cover {
    left: 0;
}

.matrix-container .scroll-indicator-group .scroll-indicator.left.show .cover {
    background: linear-gradient(to left, rgba(255, 255, 255, 0.001), white);
}

.matrix {
    white-space: normal;
    line-height: 14px;
}

.matrix.side .tactic {
    padding: 2px 5px;
    width: 1%;
    vertical-align: top;
}

.matrix.side .tactic:first-child {
    padding: 2px 5px 2px 2px;
}

.matrix.side .tactic:last-child {
    padding: 2px 2px 2px 5px;
}

.matrix.side .tactic:hover:not(.name, .count) {
    background: #dfdfdf;
}

.matrix.side .tactic:hover:not(.name, .count) .sidebar.expanded .angle {
    background: #dfdfdf;
}

.matrix.side .tactic.name,
.matrix.side .tactic.count {
    text-align: center;
    font-size: 16px;
}

.matrix.side .tactic.name {
    font-weight: bold;
}

.matrix.side .tactic.count {
    font-size: 13px;
    border-bottom: 1px solid black;
    padding-bottom: 5px;
    margin-bottom: 5px;
}

.matrix.side .tactic .techniques-table {
    border-collapse: collapse;
    width: 100%;
}

.matrix.side .tactic .techniques-table tr,
.matrix.side .tactic .techniques-table td {
    padding: 0;
}

.matrix.side .tactic .techniques-table tr {
    height: 1px;
}

.matrix.side .tactic .supertechnique {
    border-collapse: collapse;
    width: 100%;
    padding: 0;
    margin: 0;
}

.matrix.side .tactic .supertechnique td {
    padding: 0;
    vertical-align: top;
}

.matrix.side .tactic .supertechnique td.technique {
    outline: 1px solid #6a7279;
    outline-offset: -1px;
}

.matrix.side .tactic .subtechniques {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin-left: -1px;
    border-left: 2px solid #6a7279;
    outline: 1px solid #6a7279;
    outline-offset: -1px;
    white-space: nowrap;
    vertical-align: top;
}

.matrix.side .tactic .subtechniques.hidden {
    display: none;
}

.matrix.side .tactic .subtechniques .subtechnique {
    height: 100%;
    flex-grow: 1;
}

.matrix.side .tactic .handle {
    text-align: center;
    vertical-align: middle;
    transform: rotate(-90deg);
    color: #f2f2f2;
    width: 12px;
    height: 12px;
    font-size: 16px;
    line-height: 12px;
}

.matrix.side .tactic .sidebar {
    min-width: 8px;
    width: 12px;
    padding: 0;
    background: #6a7279;
    cursor: pointer;
    position: relative;
    vertical-align: middle;
}

.matrix.side .tactic .sidebar .angle {
    display: none;
}

.matrix.side .tactic .sidebar.expanded .angle {
    margin: 0 auto;
    height: 12px;
    display: block;
    position: absolute;
    background: white;
}

.matrix.side .tactic .sidebar.expanded .angle svg {
    fill: #6a7279;
    vertical-align: baseline;
}

.matrix.side .tactic .sidebar.expanded .angle.top {
    top: 0px;
}

.matrix.side .tactic .sidebar.expanded .angle.bottom {
    bottom: 0px;
}

.matrix.flat .tactic {
    margin-right: 5px;
    width: 1%;
    vertical-align: top;
}

.matrix.flat .tactic.name,
.matrix.flat .tactic.count {
    text-align: center;
    font-size: 16px;
}

.matrix.flat .tactic.name {
    font-weight: bold;
}

.matrix.flat .tactic.count {
    font-size: 13px;
    border-bottom: 1px solid black;
    padding-bottom: 5px;
    margin-bottom: 5px;
}

.matrix.flat .tactic .subtechniques-row.hidden {
    display: none;
}

.matrix.flat .tactic .supertechnique {
    border-collapse: collapse;
    width: 100%;
    padding: 0;
    margin: 0;
}

.matrix.flat .tactic .supertechnique td {
    padding: 0;
    vertical-align: top;
}

.matrix.flat .tactic .supertechnique td.sidebar.technique {
    min-width: 8px;
    width: 12px;
    padding: 0;
    background: #6a7279;
    cursor: pointer;
    vertical-align: middle;
}

.matrix.flat .tactic .supertechnique td.sidebar.technique .handle {
    text-align: center;
    vertical-align: middle;
    transform: rotate(-90deg);
    color: #f2f2f2;
    width: 12px;
    height: 9px;
    font-size: 16px;
    line-height: 12px;
}

.matrix.flat .tactic .supertechnique td.sidebar.subtechniques svg {
    fill: #6a7279;
    vertical-align: baseline;
}

.matrix.flat .tactic .supertechnique td.sidebar {
    border-right: 2px solid #6a7279;
}

.matrix.flat .tactic .supertechnique td.technique {
    outline: 1px solid #6a7279;
    outline-offset: -1px;
}

.matrix.flat .tactic .more-icon {
    transition: all ease 0.125s;
    vertical-align: top;
    transform: scale(0.5) rotate(-90deg);
    width: 12px;
    height: 12px;
}

.matrix.flat .tactic .more-icon.expanded {
    transform: scale(0.5);
}

.matrix .technique-cell {
    height: 100%;
    display: flex;
    align-items: center;
    background-color: white;
    font-size: 13px;
    line-height: 14px;
    outline: 1px solid transparent;
    outline-offset: -1px;
}

.matrix .technique-cell a {
    display: block;
    width: 100%;
    height: 100%;
    padding: 7px 3px;
}

.matrix .technique-cell:not(.colored):not(.supertechniquecell) {
    outline-color: #dfdfdf;
}

.matrix-controls {
    margin: auto;
    width: 50%;
    padding: 1rem;
}

.matrix-controls button {
    border-color: #dfdfdf;
    background: white;
    color: #39434C;
}

.matrix-controls button:hover {
    background: whitesmoke;
}

.matrix-controls .layout-button:active {
    color: #16181b;
    text-decoration: none;
    background-color: #f8f9fa;
}

.table-matrix {
    border: none !important;
}

.table-matrix thead th {
    text-align: center !important;
    vertical-align: middle !important;
    border: 0.0625rem solid #dfdfdf !important;
}

.table-matrix td,
.table-matrix th {
    text-align: center !important;
    vertical-align: middle !important;
    border-top: none !important;
    padding: 0.125rem !important;
    font-size: 0.75rem !important;
}

.table-matrix td.border,
.table-matrix th.border {
    border: 0.0625rem solid #dfdfdf !important;
}

.table-matrix td.no-border,
.table-matrix th.no-border {
    border: none !important;
}

.table-matrix td {
    background: white;
    color: #39434C;
}

.matrix-tactics-url {
    color: white;
}

.matrix-tactics-url:visited,
.matrix-tactics-url:hover,
.matrix-tactics-url:active {
    color: white;
}

.matrix-controls {
    margin: auto;
    width: 50%;
    padding: 1rem;
}

.matrix-controls button {
    border-color: #dfdfdf;
    background: white;
    color: #39434C;
}

.matrix-controls button:hover {
    background: whitesmoke;
}

.matrix-controls .layout-button:active {
    color: #16181b;
    text-decoration: none;
    background-color: #f8f9fa;
}

.center-controls .matrix-controls .btn-toolbar {
    justify-content: center;
}










/* ============= LEFT MENU ======================*/


.sidebar.nav {
    overflow-y: auto;
    z-index: 0;
    min-width: min-content;
    max-width: 20vw;
}

@media screen and (max-width: 1520px) {
    .sidebar.nav {
        position: static;
        min-width: fit-content;
    }
}

.sidebar.nav .sidenav-wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding-right: 5px;
    padding-left: 1rem;
}


@media screen and (max-width: 1520px) {
    .sidebar.nav .sidenav-wrapper {
        display: block;
    }
}


.sidebar.nav .sidenav-wrapper .heading {
    border-bottom: 1px solid #f2f2f2;
    flex: 0 1 0;
}

.sidebar.nav .sidenav-wrapper .checkbox-div {
    border-bottom: 1px solid #f2f2f2;
    flex: 0 1 0;
}

.sidebar.nav .sidenav-wrapper .sidenav-list {
    flex: 1 0 0;
   /* overflow-y: auto;*/
}

.sidebar.nav .sidenav-wrapper .sidenav-list .sidenav {
    width: 100%;
    word-break: break-word;
    font-size: 1.1rem;
}

.sidebar.nav .sidenav-wrapper .sidenav-list .sidenav .sidenav-head {
    display: flex;
    flex-direction: row;
}

.sidebar.nav .sidenav-wrapper .sidenav-list .sidenav .sidenav-head a,
.sidebar.nav .sidenav-wrapper .sidenav-list .sidenav .sidenav-head .expand-button {
    cursor: pointer;
    color: black;
}

.sidebar.nav .sidenav-wrapper .sidenav-list .sidenav .sidenav-head a:hover,
.sidebar.nav .sidenav-wrapper .sidenav-list .sidenav .sidenav-head .expand-button:hover {
    background: #f2f2f2;
}

.sidebar.nav .sidenav-wrapper .sidenav-list .sidenav .sidenav-head a,
.sidebar.nav .sidenav-wrapper .sidenav-list .sidenav .sidenav-head span {
    padding: 0.3rem;
    padding-left: 0px;
    display: inline-block;
    flex-grow: 1;
    height: 100%;
}

.sidebar.nav .sidenav-wrapper .sidenav-list .sidenav .sidenav-head a:hover,
.sidebar.nav .sidenav-wrapper .sidenav-list .sidenav .sidenav-head span:hover {
    text-decoration: none;
}

.sidebar.nav .sidenav-wrapper .sidenav-list .sidenav .sidenav-head .expand-button {
    padding: 5px;
    border-left: 1px solid #f2f2f2;
    display: inline-block;
    display: flex;
    flex-direction: row;
}

.sidebar.nav .sidenav-wrapper .sidenav-list .sidenav .sidenav-head .expand-button :first-child {
    cursor: pointer;
    display: inline-block;
    flex-grow: 1;
}

.sidebar.nav .sidenav-wrapper .sidenav-list .sidenav .sidenav-head .expand-button:after,
.sidebar.nav .sidenav-wrapper .sidenav-list .sidenav .sidenav-head .expand-button::after {
    content: "";
    cursor: pointer;
    width: 1.5rem;
    height: 1.5rem;
    background-repeat: no-repeat;
    display: inline-block;
    vertical-align: top;
    background-position: center;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg fill='%2339434C' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z'/%3E%3Cpath d='M0 0h24v24H0z' fill='none'/%3E%3C/svg%3E");
    z-index: 1;
    transition: all 0.2s ease;
}

.sidebar.nav .sidenav-wrapper .sidenav-list .sidenav .sidenav-head .expand-button:not(.collapsed):after,
.sidebar.nav .sidenav-wrapper .sidenav-list .sidenav .sidenav-head .expand-button:not(.collapsed)::after {
    transform: rotate(-180deg);
}

.sidebar.nav .sidenav-wrapper .sidenav-list .sidenav .sidenav-head.active,
.sidebar.nav .sidenav-wrapper .sidenav-list .sidenav .sidenav-head.active>a {
    color: #0156b3 !important;
    font-weight: bolder;
    background: #eaeaea;
    font-family: "Roboto-Bold", sans-serif;
}

.sidebar.nav .sidenav-wrapper .sidenav-list .sidenav .sidenav-body {
    padding-left: 0.75rem;
}

.sidebar.nav .sidenav-wrapper .sidenav-list .sidenav .sidenav {
    padding-left: 0.75rem;
}