@font-face {
    font-family: "ASAP Regular";
    src: url("../fonts/Asap-Regular.ttf");
}

@font-face {
    font-family: "ASAP Bold";
    src: url("../fonts/Asap-Bold.ttf");
}

@font-face {
    font-family: "ASAP Condensed";
    src: url("../fonts/AsapCondensed-Regular.ttf");
}

* {
    margin: 0;
    box-sizing: border-box;
}

:root {
    --text-colour: #3f3d3a;
    /* --high-colour: #0a83a5; */
    --background-colour: #7c7872;
    --high-colour: #ffcc58;
    --brightest-colour: #fff;
    --bright-colour-t1: rgba(255, 255, 255, 0.9);
    --bright-colour-t2: rgba(255, 255, 255, 0.6);
    --bright-colour-t3: rgba(255, 255, 255, 0.4);
}

html, body {
    height: 100%;
}

body {
    font-family: "Asap Regular", Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.2em;
    color: var(--text-color);
}

h3 {
    font-family: "Asap Bold", Helvetica, sans-serif;
    font-weight: normal;
}

ul li {
    list-style-type: circle;
}

table {
    width: 100%;
    margin: 14px 0;
}

caption {
    font-weight: bold;
    text-align: left;
}

tr, td {
    line-height: 24px;
    height: 28px;
}

td:last-child {
    font-weight: bold;
    text-align: right;
}

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

.hidden {
    visibility: hidden;
}

.controls {
    background: var(--background-colour);
    border-bottom: 1px solid var(--brightest-colour);
    color: var(--brightest-colour);
    display: inline-block;
    height: 35px;
    left: 0;
    margin: 0;
    padding: 0 0.4em;
    position: fixed;
    right: 0;
    text-align: left;
    top: 0;
}

.controls .form-inline {
    float: left;
    margin: 0 0.4em;
    padding-top: 3px;
}

.form p {
    float: left;
    margin: 0;
    padding: 0 0.25em;
}

.form-inline .form-control {
    display: inline-block;
    height: 2.2em;
    vertical-align: middle;
    width: auto;
}

.form-item {
    border-radius: 2px;
    line-height: 1.4;
    float: left;
    font-size: 13px;
    font-weight: normal;
    margin: 0;
    padding: 0.4em 0.8em;
}


.context {
    font-family: "ASAP Condensed", sans-serif;
    padding: 1.1em 0 1em;
    opacity: 0.8;
}

.context.online {
    padding: 2.5em 0 1em;
}

.export-button {
    margin: 0.75rem 0 0;
}

.export {
    color: var(--text-colour);
    opacity: 0.8;
}

.export > label {
    border: 1px solid var(--text-colour);
    opacity: 0.8;
    width: 100%;
    text-align: center;
}

.export:hover {
    color: var(--bright-colour-t1);
    opacity: 1;
}

.export:hover > label {
    cursor: pointer;
    background-color: var(--text-colour);
    opacity: 1;
}

.export:active {
    color: var(--text-color);
}

.export:active > label {
    background: var(--high-colour);
    border: 1px solid var(--high-colour);
}

.controls .export-button {
    float: right;
    opacity: 0;
}

input[type=search] {
    min-height: 2.2em;
}

@media (min-width: 400px) {
    .form-inline .form-control {
        display: inline-block;
        width: auto;
        vertical-align: middle;
    }
}

#chart {
    position: absolute;
    /* top: 35px; */
    top: 31px; /* hack, unsolved problem */
    right: 0px;
    bottom: 0px;
    left: 0px;
}

svg text {
    text-rendering: geometricPrecision;
    pointer-events: none;
    font-size: 13px;
    font-family: 'Asap Regular', Helvetica, sans-serif;
}

/* <<< common css */

svg rect {
    shape-rendering: crispEdges
}

svg .job {
    cursor: pointer;
}

svg .selection, svg .highlight {
    fill: var(--bright-colour-t3);
    vector-effect: non-scaling-stroke;
}

svg .job text.clipped {
    fill: var(--brightest-colour);
}

svg .highlight text,
svg .highlight text.clipped {
    fill: var(--text-colour);
    font-family: "Asap Bold", Helvetica, sans-serif;
}

svg .highlight rect {
    opacity: 0.6;
    fill: var(--high-colour);
}

svg .highlight rect:first-child {
    stroke: var(--bright-colour-t2);
}

svg .groupLabels text {
    fill: var(--text-colour);
    pointer-events: all;
}

svg .groupLabels text.group-active {
    font-size: 14px;
}

.svg-controls {
    float: left;
}

.svg-controls path:hover {
    fill: var(--high-colour);
    stroke: var(--brightest-colour);
}

.svg-controls path:active {
    stroke: var(--high-colour);
    fill: var(--brightest-colour);
}

#tooltip {
    background: var(--bright-colour-t1);
    color: var(--text-colour);
    font-size: 0.8em;
    position: absolute;
    box-shadow: var(--high-colour) 0px 0px 1px inset;
    min-height: 52px;
    vertical-align: middle;
    display: flex;
    justify-content: center;
    flex-direction: column;
}

#tooltip h3 {
    background-color: var(--bright-colour-t2);
    padding: 1em 5.4em;
    margin: -1.3em -5.3em 1.2em;
}
