@font-face {
    font-family: 'Inconsolata';
    size-adjust: 100%;
    src: url('/fonts/Inconsolata/Inconsolata-VariableFont_wdth,wght.ttf') format('truetype');
}
body {
    margin:0px;
    padding:0px;
    display:flex;
    flex-direction:column;
    height:100vh;
    width:100vw;
    font-family:"Helvetica", sans-serif;
    align-items:stretch;
    overflow:hidden;
}

#workspace {
    position:absolute;
    top:28px;
    bottom:0;
    left:0;
    right:0;
}

.boxitem {
    border:1px solid #aaa;
    background-color:#eee;
    padding:1px 4px;
    font-size:small;
    border-radius: 5px;
}

#toolbar {
    height:28px;
    display: flex;
    flex-direction:row;
    align-items:center;
    gap:10px;
    padding:1px 3px;
    background-color:#d8d8d8;
    border-bottom:1px solid #aaa;
}
#toolbar .spacer {
    flex-grow:1;
}
#theme-toggle {
    background: none;
    border: 1px solid #aaa;
    border-radius: 3px;
    cursor: pointer;
    font-size: 16px;
    padding: 0px 4px;
    line-height: 1.4;
}
.resview {
    display:flex;
    flex-direction:column;
    box-sizing: border-box;
    position:absolute;
    top:0px;
    bottom:0px;
    left:0px;
    right:0px;
}
.reswrapper {
    flex-grow:1;
    display: flex;
    align-items: stretch;
    position:relative;
}
.rescontent {
    background-color:#fff;
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    padding:0px;
    overflow-y:scroll;
    overflow-x:clip;
}
.resexception {
    flex-grow:1;
    padding:3px;
}
.resviewhead select {
    flex-grow:1;
    min-width:80px;
}
.resviewhead {
    display:flex;
    flex-direction:row;
    gap:5px;
    padding:2px 5px;
    border-bottom:1px solid #aaa;
}
svg.fit {
    display:block;
    object-fit:contain;
    width:100%;
    height:100%;
}
canvas.layoutFit {
    display:block;
    width:100%;
    height:100%;
    /* To debug:
    padding:5px;
    box-sizing: border-box;
    */
}
*, *::before, *::after { box-sizing: border-box; }
.exception {
    color:red;
}
pre {
    margin:0px;
}
.dc_table {
    width:100%;
    border-collapse: collapse;
}
.dc_table td, .dc_table th {
    border: 1px solid #aaa;
    padding:0px 5px;
}
.dc_table th {
    background-color:#d8d8d8;
}
.dc_table td:nth-child(2) {
    width: 100%;
    max-width: 0;
}
.debug {
    display:none;
}
.resoverlay-topleft, .resoverlay-bottomright {
    z-index: 2;
    position:absolute;
    background-color:#eee;
    border:1px solid #aaa;
    margin:5px;
    padding:4px;
    border-radius:5px;
}
.resoverlay-bottomright {
    bottom:0px;
    right:0px;
}
.refreshing {
    background-color:#ff0;
}
.refreshing img {
    height:1.2em;
    alignment-baseline: middle;
    display:inline-block;
    margin-bottom:-0.2em;
}
.refreshable {
    background-color:#f00;
}
.ordb-table {
    font-family: 'Inconsolata';
}
.ordb-table table td, .ordb-table table th {
    border:1px solid black;
    padding:0px 3px;
}
.ordb-table table th {
    background-color: #ccc;
}
.ordb-table table {
    border-collapse:collapse;
}

.simplot-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background-color: #1a1a1a;
}
.simplot {
    flex: 1;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    position: relative;
}
.simplot svg {
    flex: 1;
    background-color: #111;
}
.simplot-default-zoom {
    padding: 2px 7px;
    border: 1px solid #555;
    border-radius: 3px;
    background-color: rgba(20, 20, 20, 0.9);
    color: #ccc;
    font-family: 'Inconsolata', monospace;
    font-size: 12px;
    cursor: pointer;
}
.simplot-default-zoom:hover {
    background-color: rgba(40, 40, 40, 0.95);
}
.simplot-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 4px 8px;
    font-size: 14px;
    font-family: 'Inconsolata', monospace;
    color: #ccc;
    background-color: #1a1a1a;
    border-bottom: 1px solid #333;
}
.simplot-legend-item {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    user-select: none;
}
.simplot-legend-hidden {
    opacity: 0.35;
    text-decoration: line-through;
}
.simplot-legend-swatch {
    display: inline-block;
    width: 14px;
    height: 3px;
}
.simplot + .simplot {
    border-top: 1px solid #333;
}
.simplot-axis line, .simplot-axis path {
    stroke: #555;
}
.simplot-axis text {
    font-size: 13px;
    font-family: 'Inconsolata', monospace;
    fill: #999;
}
.simplot-axis-label {
    font-size: 14px;
    font-family: 'Inconsolata', monospace;
    fill: #bbb;
}
.simplot-grid line {
    stroke: #2a2a2a;
    stroke-dasharray: 2,2;
}
.simplot-grid path {
    stroke: none;
}
.simplot-tooltip {
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    padding: 4px 8px;
    background-color: rgba(0, 0, 0, 0.85);
    border: 1px solid #444;
    border-radius: 3px;
    font-family: 'Inconsolata', monospace;
    font-size: 13px;
    color: #ccc;
    pointer-events: none;
    z-index: 3;
    display: none;
    flex-direction: column;
    gap: 1px;
}

.report-view {
    display: flex;
    flex-direction: column;
    padding: 0px;
}
.report-element {
    width: 100%;
    padding: 5px 10px;
}
.report-element-plot2d {
    padding: 0;
}
.report-element + .report-element {
    border-top: 1px solid #cfcfcf;
}
.report-preformatted {
    margin: 0;
    font-family: 'Inconsolata', monospace;
    white-space: pre;
    overflow-x: auto;
}
.report-markdown code {
    font-family: 'Inconsolata', monospace;
}
.report-markdown h1,
.report-markdown h2,
.report-markdown h3,
.report-markdown h4,
.report-markdown h5,
.report-markdown h6 {
    margin-top: 0.2em;
    margin-bottom: 0.25em;
}
.report-svg {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
}
.report-plot2d {
    width: 100%;
}
.simplot-tooltip span {
    display: block;
    white-space: nowrap;
}
.simplot-tooltip-x {
    color: #888;
    border-bottom: 1px solid #333;
    padding-bottom: 2px;
    margin-bottom: 1px;
}
.report-markdown table {
    border-collapse: collapse;
}
.report-markdown table td, .report-markdown table th {
    border:1px solid black;
    padding:2px;
}
.layout {
    background-color: #000;
}
.layerList {
    list-style-type:none;
    padding:5px;
    margin:0px;
    position:absolute;
    top:3px;
    right:3px;
    background-color:#000;
    color:#fff;
}
