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

:root {
    font-family: Ubuntu;
    font-size: 12pt;
    --fg1: hsla(45deg 30% 10% / 0.95);
    --fg2: hsla(45deg 30% 10% / 0.5);
    --bg1: hsla(45deg 30% 40% / 0.5);
    --bg2: hsla(45deg 30% 60% / 0.5);
    --bg3: hsla(45deg 30% 80% / 0.5);
    --bg4: hsla(45deg 30% 80% / 0.25);
    color: var(--fg1);
}

.material-icons-two-tone {
    color: var(--fg2);
    vertical-align: bottom;
}

tt, samp, code, pre {
    font-family: Ubuntu Mono;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    _width: 100%;
}

heading, footer {
    flex: 0 0 3rem;
    box-shadow: 0 0 5px 5px var(--bg3);
    padding: 1rem 2rem;
    display: flex;
    flex-direction: row;
    align-items: center;
}

heading h1 {
    flex-grow: 1
}

#username {
    font-weight: bold;
}

.logout {
    margin-left: 1em;
    font-size: small;
    color: var(--fg2);
}

main {
    flex: 1 0;
    display: flex;
    flex-direction: column;
    padding-top: 1rem;
}

@media (min-width: 60rem) {
    main {
        flex: 1 0;
        display: flex;
        flex-direction: row;
        padding-top: 1rem;
        min-width: 60rem;
        max-width: 80rem;
        _margin: 0 auto;
    }
}

nav ul {
    display: flex;
    flex-direction: column;
}

nav li {
    list-style: none;
    font-weight: bold;
    padding: 0.5rem 1rem;
    margin: 0 0.5rem;
    white-space: nowrap;
}

nav li.current {
    background: var(--bg3);
    border-radius: 50vh;
}

nav a, nav a:visited {
    display: block;
    text-decoration: none;
    color: inherit;
}

#jobs, #dir {
    border-collapse: collapse;
    margin: 0 1rem;
    flex: 10 0 75%;
}

#jobs td,th {
    _border: solid 1px black;
    padding: .5rem 1rem;
    text-align: center;
}

.duration {
    font-style: italic;
}

thead {
    background: var(--bg2);
}

tbody tr:nth-child(odd) {
    background: var(--bg4);
}

#log {
    visibility: hidden;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    background: rgba(255 255 255 / 0.9);
}

#log a {
    flex-grow: 0;
    text-align: right;
    color: inherit;
    margin-bottom: .5rem;
}

#log pre {
    flex-grow: 1;
    overflow: scroll;
    background: rgba(255 255 255 / 1);
}

form.login {
    max-width: 24rem;
    flex: 0 0;
    display: flex;
    flex-direction: column;
    margin: 2rem auto;
    padding: 2rem;
    gap: 1rem;
    border-radius: 1rem;
    box-shadow: 0 0 15px 5px var(--bg3);
}

label {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

main.login {
    flex-direction: column;
}

tr {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

th, td {
    flex: 1 0 8rem;
}

#tree summary {
    list-style-position: outside;
}

#tree details, #tree label {
    margin: 0 1.5rem;
}

.hosts label, .dates label {
    display: block;
}

:is(.hosts label, .dates label)
   + :is(.hosts label, .dates label) {
    margin-top: .5rem;
}

.placeholder {
    font-style: italic;
}

fieldset {
    border: solid 2px var(--bg2);
    border-radius: .5rem;
    padding: .5rem 1rem 1rem;
    margin: 0 .5rem;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

legend {
    padding: .5rem 1rem;
}

input {
    padding: .25rem .5rem;
}
