/* Styles for generated_compare.html */

body {
    font-family: Arial, sans-serif;
}

h2 {
    margin: 4px 0 2px 0;
}

#id_svg_eta_f {
    max-width: 1100px;
    width: 100%;
    height: auto;
    display: block;
    margin: 10px 0 4px 0;
}

.compare-table-wrap table {
    border-collapse: collapse;
    width: max-content;
    min-width: max-content;
}

div.compare-table-wrap {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-gutter: stable both-edges;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    scrollbar-width: auto;
    scrollbar-color: #9ca3af #f3f4f6;
}

div.compare-scroll-dual {
    width: 100%;
    max-width: 100%;
}

div.compare-table-scroll-top {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable both-edges;
    scrollbar-width: auto;
    scrollbar-color: #9ca3af #f3f4f6;
}

div.compare-table-scroll-top-inner {
    height: 1px;
}

#page_compare #compare_results {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
}

#page_compare #compare_results .compare-table-wrap {
    overflow-x: auto;
}

#page_compare #compare_results .compare-table-wrap::-webkit-scrollbar {
    height: 12px;
}

#page_compare #compare_results .compare-table-scroll-top::-webkit-scrollbar {
    height: 12px;
}

#page_compare #compare_results .compare-table-wrap::-webkit-scrollbar-track {
    background: #f3f4f6;
}

#page_compare #compare_results .compare-table-scroll-top::-webkit-scrollbar-track {
    background: #f3f4f6;
}

#page_compare #compare_results .compare-table-wrap::-webkit-scrollbar-thumb {
    background: #9ca3af;
    border-radius: 999px;
}

#page_compare #compare_results .compare-table-scroll-top::-webkit-scrollbar-thumb {
    background: #9ca3af;
    border-radius: 999px;
}

td, th {
    border: 1px solid #ccc;
    vertical-align: top;
    padding: 1px 1px;
    text-align: left;
    line-height: 1.0;
}

td.unit {
    white-space: nowrap;
}

td:first-child {
    white-space: nowrap;
}

td.val {
    text-align: right;
}

td.miss {
    color: #999;
}

td.neg {
    background: #ffcccc;
}

img.overview-picture {
    width: auto;
    max-width: 110px;
    height: auto;
    max-height: 120px;
    display: block;
}

div.overview-pictures {
    display: grid;
    gap: 6px;
}

th.color-cell {
    vertical-align: middle;
    text-align: center;
}

div.color-swatch {
    height: 10px;
    width: 92%;
    margin: 1px auto;
    border: 0.5px solid rgb(165 165 165);
    border-radius: 2px;
    box-sizing: border-box;
}

h2.band-title {
    background: #fff59d;
    display: inline-block;
    padding: 8px 8px;
    font-weight: bold;
    margin-top: 12px;
}

tr.efficiency-row td.val:not(.miss) {
    background: #fff59d !important;
}

tr.efficiency-row td.val.neg {
    background: #ffcccc !important;
}

tr.source-row td,
tr.source-row th {
    font-size: 0.85em;
}

tr.band-row td.band-label {
    background: #fff59d;
    font-weight: 600;
    text-align: center;
}

tr.band-row-sep td.band-label {
    border-top: 8px solid #fff;
}
