:root {
    font-family: 'Times New Roman', Times, serif;
    background: #999;
}

body {
    background: white;
    margin: 0 auto;
    padding: 3mm;
    box-sizing: border-box;
}

#main {
    display: flex;
    flex-flow: row nowrap;
    align-items: stretch;
    justify-content: center;
    height: 100%;
}

#main>* {
    flex: 1;
}

details>summary {
    cursor: pointer;
    user-select: none;
}

.column {
    display: flex;
    flex-flow: column nowrap;
    align-items: stretch;
    justify-content: stretch;
}

.column .colspan {
    display: flex;
    flex-flow: row nowrap;
    align-items: start;
    gap: 15px;
    margin: auto 2.5%;
}

label {
    font-variant: small-caps;
}

input:not([type]),
input[type=text] {
    border: none;
    border-bottom: solid 1pt #999;
    font-size: 137%;
    width: 100%;
}

small {
    color: #999;
}

.box {
    margin: 3px;
    padding: 3px;
    border: solid 1px black;
    border-radius: 3px;
    display: flex;
    flex-flow: column nowrap;
}

label.under {
    display: flex;
    flex-flow: column-reverse nowrap;
    font-size: 83%;
    width: 95%;
    margin: 0 auto;
}

label.beside {
    white-space: nowrap;
}

label.beside input {
    width: 50px;
}

label.textarea {
    display: flex;
    flex-flow: column nowrap;
    width: 98%;
    height: 100%;
}

label.textarea textarea {
    resize: vertical;
    width: 100%;
    height: 100%;
    min-height: 50px;
    border: none;
    background: repeat url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='200pt' height='15pt' viewBox='0 0 200 15'><line x1='0' y1='14' x2='200' y2='14' stroke='%23999' stroke-width='1' /></svg>");
    line-height: 15pt;
}

.box:last-child textarea {
    resize: none;
}

table th {
    font-weight: normal;
    font-variant: small-caps;
    font-size: 83%;
}
