/*

*/

.tabmenuli:hover {
    filter: brightness(115%)
}

#terminal {
    overflow: hidden;
}

#heartbeat {
    vertical-align: bottom;
    fill: red;
}

#overlay {
    position: absolute;
    bottom: 10px;
    right: 20px;
    color: #999;
    z-index: 1;
}

.small {
    font-size: 12px;
}

.med {
    font-size: 14px;
}

.gray {
    color: #aaa;
}

.center {
    text-align: center;
}

.input {
    align-items: center;
}

#dynamicsearch {
    width: 100%;
    border-right: none;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

#searchcontainer select {
    border-left: none;
    border-right: none;
}

.xterm {
    padding-right: 2px;
    padding-left: 2px;
}

#searchcontainer {
    margin-left: 0;
    padding-left: 0;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 20px;
    color: #888;
    text-align: left;
}

#match-asn {
    padding: 5px;
    font-size: 12px;
    /* border: 1px solid #adadad; */
    border: 2px solid #ccc;
    color: #999;
    text-align: left;
    /* border-radius: 4px; */
}

#match-asn:hover {
    color: #656565;
    border: 2px solid #656565;
}

#match-type {
    font-size: 12px;
    padding: 6px;
    color: #999;
    border-radius: 2px;
    border: 1px solid #adadad;
    text-align: center;
}

#match-type:hover {
    color: #656565;
    border: 2px solid #656565;
}

#searchcontainer button {
    --select-color: #a5dc86;
    padding: 0px;
    margin: 0px;
    box-sizing: border-box;
    margin-left: 3px;
    height: 52px;
    border-radius: 4px;
    width: 50px;
    background-color: #fff;
    border: 1px solid #ccc;
}

.xterm .xterm-viewport {
    width: initial !important;
}

/* https://codepen.io/quinlo/pen/ReMRXz */

ul.ks-cboxtags {
    list-style: none;
}

ul.ks-cboxtags li {
    display: inline;
}

ul.ks-cboxtags li label {
    display: inline-block;
    background-color: rgba(255, 255, 255, .9);
    border: 2px solid rgba(139, 139, 139, .3);
    color: #adadad;
    border-radius: 00px;
    white-space: nowrap;
    margin: 3px 0px;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: all .2s;
}

ul.ks-cboxtags li label {
    padding: 4px 6px;
    cursor: pointer;
    font-size: 12px;
}

ul.ks-cboxtags li label::before {
    display: inline-block;
    width: 8px; /* Adjust based on your SVG dimensions */
    height: 8px; /* Adjust based on your SVG dimensions */
    content: "";
    padding: 2px 6px 2px 2px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url('/super-lg/img/plus-solid.svg'); /* Path to your SVG file */
    transition: transform .3s ease-in-out;
}

ul.ks-cboxtags li input[type="checkbox"]:checked+label::before {
    background-image: url('/super-lg/img/check-solid.svg'); /* Path to your SVG file */
    transform: rotate(-360deg);
    transition: transform .3s ease-in-out;
}

/* ul.ks-cboxtags li label::before {
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 12px;
    padding: 2px 6px 2px 2px;
    content: "\f067";
    transition: transform .3s ease-in-out;
}

ul.ks-cboxtags li input[type="checkbox"]:checked+label::before {
    content: "\f00c";
    transform: rotate(-360deg);
    transition: transform .3s ease-in-out;
} */

ul.ks-cboxtags li input[type="checkbox"]:checked+label {
    border: 2px solid #ccc;
    background-color: #a5dc86;
    color: #656565;
    transition: all .2s;
}

ul.ks-cboxtags li input[type="checkbox"] {
    display: absolute;
}

ul.ks-cboxtags li input[type="checkbox"] {
    position: absolute;
    opacity: 0;
}

ul.ks-cboxtags li input[type="checkbox"]:focus+label {
    border: 2px solid #ccc;
}

ul.ks-cboxtags li input[type="checkbox"]:hover+label {
    color: #656565;
    border: 2px solid #656565;
}

/* ul.ks-cboxtags li input[type="checkbox"]:checked:hover + label { */
/* border: 2px solid #ccc; */
/* } */

/* ul.ks-cboxtags li input[type="checkbox"]: + label { */
/*	background-color: blue;
	color: white;
*/
/* } */

/*
route data
*/

.route-header {
    font-size: 16px;
}

.route-entry {
    padding: 6px;
    margin: 1px;
}

.route-entry:hover {
    margin: 0px;
    border: 1px solid #ccc;
    background: #efefef;
}

/*
routes display
*/

.route-table {
    display: flex;
    flex-direction: column;
    width: 100%;
    font-family: arial, sans-serif;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 6px;
    background-color: #eaeaea;
}

/* .route-table:hover {
} */

.rt-row {
    display: flex;
    flex-direction: row;
    justify-content: start;
    border-bottom: 1px solid #999;
    line-height: 2.0;
}

.rt-row-lastrow {
    border: none;
}


/* .rt-row:hover {
} */

.rt-row-neighbor {
    white-space: nowrap;
    background-color: #9FC5E8;
    font-weight: bold;
    color: #555;
}

.hide {
    display: none;
}

.rt-label,
.rt-data {
    padding: 5px;
}

.rt-label {
    width: 20%;
}

.rt-label-neighbor {
    font-size: 18px;
}

.rt-data {
    width: 80%;

}

.rt-data-neighbor {
    font-size: 18px;
    padding: 2px 3px;
    margin: auto;
    cursor: pointer;
}

.rt-data span:hover {
    background-color: #9FC5E8;
    /* color: #656565; */
}

.rt-data-info {
    background-color: #CFE2F3;
    border-color: blue !important;
}

.rt-data-noinfo {
    border-color: #555 !important;
}

.rt-data .rt-data-info:hover {
    background-color: greenyellow;
    color: #000;
}

.rt-data .rt-data-noinfo:hover {
    background-color: #ccc;
    /* color: #fff; */
}

.rt-data-as-set span,
.rt-data-community span,
.rt-data-prefix span,
.rt-data-asn span {
    padding: 2px 2px;
    font-size: 16px;
    margin: auto;
    border: 1px solid #999;
    white-space: nowrap;
    border-radius: 4px;
    cursor: pointer;

}

.rt-data-asn .origin {
    background-color: green;
    color: white;
}

.rt-data-asn .nexthop {
    background-color: orange;
    color: #ccc;
}

.rt-data-as-set  {
    /* remove the border on the parent div */
    border: none !important;
}

.rt-data-as-set:hover {
    color: blue;
}

.rt-data-rpki-valid {
    text-transform: uppercase;
    pointer-events: none;
    background-color: #EFE;
    border: 1px solid green;
    color: green;
    padding: 2px 2px;
    font-size: 16px;
    margin: auto;
    white-space: nowrap;
    border-radius: 4px;
    cursor: pointer;
}

.rt-data-rpki-invalid {
    text-transform: uppercase;
    pointer-events: none;
    background-color: #FFBABA;
    color: #D8000C;
    padding: 2px 2px;
    font-size: 16px;
    margin: auto;
    border: 1px solid #D8000C;
    white-space: nowrap;
    border-radius: 4px;
    cursor: pointer;
}

.rt-data-rpki-unknown {
    text-transform: uppercase;
    pointer-events: none;
    background-color: #fff3cd;
    color: #856404;
    padding: 2px 2px;
    font-size: 16px;
    margin: auto;
    border: 1px solid #856404;
    white-space: nowrap;
    border-radius: 4px;
    cursor: pointer;
}

.rt-data a {
    text-decoration: none;
    color: #555;
}

.rt-data-right {
    pointer-events: none;
    float: right;
    color: #999;
    font-size: 12px;
    margin-top: 6px;
}

.rt-data-rpki-right {
    pointer-events: none;
    color: #999;
    font-size: 12px;
    margin-top: 6px;
}

/* Responsive Design: Media Query for Smaller Screens */
@media screen and (max-width: 600px) {
    .rt-row {
        flex-direction: column;
    }

    .rt-label,
    .rt-data {
        width: 100%;
        /* Full width for smaller screens */
    }
}

.lg-table-head {
    padding: 12px 6px;
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 24px;
    background-color: #9FC5E8;
}

.lg-table-head span {
    font-size: 12px;
    color: #555;
    font-weight: lighter;
}

.rt-label-summary {
    font-size: 18px;
    border: 1px solid black;
    border-radius: 4px;
    margin-bottom: 5px;
    background-color: orange;
    padding-top: 13px;
    padding-right: 13px;
    padding-bottom: 13px;
    padding-left: 4px;
    /* font-weight: bold; */
    color: #555;
}

/* used with the summary stuff */
.accordion-header {
    cursor: pointer;
    font-weight: bold;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.accordion-header .accordion-icon {
    float: right;
    font-size: 1.2em;
}

.accordion-content {
    /* padding: 10px; */
    display: none;
}

.accordion-content.collapse {
    display: block;
}


/* scroll back to top button */

#myBtn {
    opacity: 0.5;
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Fixed/sticky position */
    bottom: 20px;
    /* Place the button at the bottom of the page */
    right: 30px;
    /* Place the button 30px from the right */
    z-index: 99;
    /* Make sure it does not overlap */
    border: none;
    /* Remove borders */
    outline: none;
    /* Remove outline */
    background-color: #9FC5E8;
    /* Set a background color */
    color: #555;
    /* Text color */
    cursor: pointer;
    /* Add a mouse pointer on hover */
    padding: 15px;
    /* Some padding */
    border-radius: 10px;
    /* Rounded corners */
    font-size: 18px;
    /* Increase font size */
}

#myBtn:hover {
    opacity: 1.0;
    /* background-color: #555;  */
    /* Add a dark-grey background on hover */
}


/* copy paste stuff */


.route-table {
    position: relative;
    /* For absolute positioning of child elements */
}

.copy-buttons {
    position: absolute;
    top: 5px;
    right: 5px;
    /* Position at the top right corner */
    display: none;
    border: 1px solid #555;
    border-radius: 4px;
    color: #555;
}

.copy-button {
    display: inline-block;
    padding: 3px 5px 3px 5px;
    /* width: 1ch; One character width */
    cursor: pointer;
    font-size: 1.25rem;
    /* Add more styling as needed (e.g., padding, border, background) */
    /* Use icons or font glyphs instead of text 'T', 'C', 'H' if available */
}

.copy-button-middle {
    border-left: 1px solid #555;
    border-right: 1px solid #555;
}

.copy-button-left {
    border-right: 1px solid #555;
}

.copy-button-right {
    border-left: 1px solid #555;
}

.copy-button:hover {
    color: #000;
    background-color: #7FC5E8;
}

/* combo box */
/* 
#match-neighbor {
    display: none;
}

.multiselect-dropdown {
    display: inline-block;
    padding: 2px 5px 0px 5px;
    border: solid 2px #ccc;
    color: #999;
    position: relative;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right .75rem center;
    background-size: 16px 12px;

    font-size: 12px;

}

.multiselect-dropdown:hover {
    color: #656565;
    border: 2px solid #656565;
}

.multiselect-dropdown span.optext,
.multiselect-dropdown span.placeholder {
    margin-right: 0.5em;
    margin-bottom: 2px;
    padding: 1px 0;
    display: inline-block;
}

.multiselect-dropdown span.optext {
    background-color: lightgray;
    padding: 1px 0.75em;
}

.multiselect-dropdown span.optext .optdel {
    float: right;
    margin: 0 -6px 1px 5px;
    font-size: 0.7em;
    margin-top: 2px;
    cursor: pointer;
    color: #666;
}

.multiselect-dropdown span.optext .optdel:hover {
    color: #c66;
}

.multiselect-dropdown span.placeholder {
    color: #ced4da;
}

.multiselect-dropdown-list-wrapper {
    box-shadow: gray 0 3px 8px;
    z-index: 100;
    padding: 2px;
    border: solid 1px #ced4da;
    display: none;
    margin: -1px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: white;
}

.multiselect-dropdown-list-wrapper .multiselect-dropdown-search {
    margin-bottom: 5px;
}

.multiselect-dropdown-list {
    padding: 2px;
    height: 15rem;
    overflow-y: auto;
    overflow-x: hidden;
}

.multiselect-dropdown-list::-webkit-scrollbar {
    width: 6px;
}

.multiselect-dropdown-list::-webkit-scrollbar-thumb {
    background-color: #bec4ca;
}

.multiselect-dropdown-list div {
    padding: 5px;
}

.multiselect-dropdown-list input {
    height: 1.15em;
    width: 1.15em;
    margin-right: 0.35em;
}


.multiselect-dropdown-list div:hover {
    background-color: #ced4da;
}

.multiselect-dropdown span.maxselected {
    width: 100%;
}

.multiselect-dropdown-all-selector {
    border-bottom: solid 1px #999;
}

#match-neighbor-container .ms-options-wrap {
    display: inline;
    width: 250px;
}

#match-neighbor-container .ms-options-wrap button {
    border: 2px solid #ccc;
    color: #999;
    width: 250px;
}

#match-neighbor-container .ms-options-wrap button:hover {
    border: 2px solid #656565;
    color: #656565;
    width: 250px;
} */

/* ascii hex display*/

.hex {
    color: #0057b8;
    /* A medium blue, visible on both light and dark backgrounds */
}

.ascii {
    color: #d9534f;
    /* A medium red, also visible on both backgrounds */
}

.rt-data-hexdump {
    font-family: monospace;
    white-space: pre;
    padding: 3px;
}

.prefix-item {
    font-size: 16px !important;
    display: block;
    break-inside: avoid-column;
    padding: 5px;
}


.prefixes {
    column-width: 150px;
    width: 100%;
}

.clickable-prefix {
    border: 1px none none;
    cursor: pointer;
    color: #007bff;
}

.clickable-prefix:hover {
    text-decoration: none;
    font-weight: bold;
    text-decoration: underline;
    color: #0056b3;
}

.copy-tooltip {
    position: absolute;
    background-color: greenyellow;
    color: black;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    display: none;
    z-index: 1000;
}

.select2-container .select2-selection--single {
    display: flex;
    width: 100% !important;
    font-size: 12px !important;
    margin-right: 0px;
}

.select2-results__option {
    font-size: 12px !important;
}

.select2-results {
    border-radius: 0px;
}

.select2 {
    border-color: 1px solid #cacaca;
    box-shadow: inset 0 1px 2px rgba(10, 10, 10, 0.1);
    background-color: #fefefe;
}

.select2-container--default .select2-selection--single {
    border: 2px solid #ccc !important;
    border-radius: 0px !important;
}

.select2-selection__rendered {
    margin: -2px;
}

.stats-digits {
    color:#007bff;
}

/* used for text view */
.pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow: auto;
    padding: 10px;
    font-family: "Courier New", monospace;
    white-space: pre;
}

.pre:hover {
    background-color: #eff4fb;
}

.rpki-valid {
    color: green;
    font-weight: bold;
}

.rpki-invalid {
    color: red;
    font-weight: bold;
}

.rpki-unknown {
    color: orange;
    font-weight: bold;
}

.commhasdesc {
    color: blue;
}

.rpki-invalid-background:hover {
    background-color: #fcdae1;
}


    #feedbackForm {
        display: flex;
        flex-direction: column;
        width: auto;
        padding: 20px;
        border: 1px solid #ccc;
        box-shadow: 0 0 10px #ccc;
        background: #f8f8f8;
        margin: 10px;
    }
    #feedbackForm label {
        margin-bottom: 5px;
    }
    #feedbackForm input, #feedbackForm textarea {
        margin-bottom: 10px;
        padding: 8px;
        border: 1px solid #ccc;
    }
    #feedbackForm input[type="text"], #feedbackForm input[type="email"], #feedbackForm input[type="datetime-local"] {
        width: 50%;
    }
    #feedbackForm textarea {
        width: 100%;
        height: 220px;
    }
    #feedbackForm button {
        padding: 10px 20px;
        background-color: #4CAF50;
        color: white;
        border: none;
        cursor: pointer;
        width: fit-content;
        margin: 3px;
        border-radius: 3px;
    }
    #feedbackForm button.cancel {
        background-color: #f44336;
    }


    #contribute-button {
        text-decoration: none; 
        padding: 10px 20px; 
        border-radius: 3px;
        background-color: #a5dc86;
        color: black;
        text-decoration: none;
        border: 1px solid rgba(0, 0, 0, 0.2);
    }
    #contribute-button:hover {
        filter: brightness(115%);
    }
