html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: stretch;
    color: #657b83;
}
header {
    background: #eee8d5;
    flex: initial;
    padding: 0.5rem;
}
header h1 {
    margin: 0.5rem 0;
}
main {
    background: #fdf6e3;
    flex: auto;
    padding: 2rem;
}
footer {
    background: #eee8d5;
    flex: initial;
    padding: 0.5rem;
}
#test-plot {
    width: 100%;
    height: 100%;
    border: 1px solid #93a1a1;
    display: grid;
    grid-template-areas:
        " . at"
        "al pp"
        " . ab";
    grid-template-columns: 60px 1fr;
    grid-template-rows: 30px 1fr 50px;
}
#test-plot > svg {
    width: 0;
    height: 0;
    min-width: 100%;
    min-height: 100%;
}
#test-plot > div {
    width: 100%;
    height: 100%;
    position: relative;
}
#test-plot > .p-axis-top { grid-area: at; }
#test-plot > .p-axis-bot { grid-area: ab; }
#test-plot > .p-axis-lft { grid-area: al; }
#test-plot > .p-grid     { grid-area: pp; z-index: 0; background: #f8f8f8; }
#test-plot > .p-data     { grid-area: pp; z-index: 1; }
#test-plot > .p-overlay  { grid-area: pp; z-index: 2; overflow: hidden; }

#test-plot .tick {
    font-size: 12pt;
}
#test-plot .axis-title {
    font-size: 14pt;
}
#test-plot .p-gridline {
    fill: none;
    stroke: #d7d8da;
}

#test-plot .p-point {
    fill: #f8f8f8;
    stroke: #7570b3;
    stroke-width: 1.414;
}
#test-plot .p-point:hover {
    stroke: #d95f02;
}
#test-plot .p-point.selected {
    stroke: #1b9e77;
}

.popover {
    color: #586e75;
    border: 1px solid #586e75;
    border-radius: 5px;
    padding: 10px;
    background: #eee8d5;
    position: absolute;
    display: none;
}
.popover.visible {
    display: block;
}
