div.wrapper {
    display: grid;
    align-items: center;
    justify-items: center;
}

div.container {
    display: grid;
    grid-template-columns: repeat(17, auto);
    align-items: stretch;
    justify-items: stretch;
    grid-auto-flow: row;
}

div.container div {
    display: grid;
    align-items: center;
    justify-items: center;
    white-space: nowrap;
    padding: 2px;
    background-color: white;
}

div.container>div.row,
div.container>div.header {
    display: contents;
}

div.h1 {
    font-size: 9px;
}

div.container>div.spacer {

    grid-column: 1/22;
    border-top: 1px solid black;

    display: grid;
    grid-template-columns: repeat(2, auto);
    justify-content: center;
    grid-gap: 0.5em;
    padding: 0.5em;
}

div.container>div.spacer:first-child {
    border-top: none;
}

div.container>div>div {
    border-left: 1px solid black;
    border-top: 1px solid black;
}

div.container>div>div:last-child {
    border-right: 1px solid black;
}

div.container>div:last-child>div {
    border-bottom: 1px solid black;
}

div.container div.link {
    outline: 5px solid #F00;
    font-family: monospace;
}

div.container>div.header>div {
    font-weight: bold;
}

div.container div.ref
{
    grid-column: 1/2;
}

div.container div.catalog
{
    grid-column: 2/3;
}

div.container div.issue
{
    grid-column: 3/4;
}

div.container div.denom
{
    grid-column: 4/5;
}

div.container div.variety
{
    grid-column: 5/6;
}

div.container div.sig1
{
    grid-column: 6/7;
}

div.container div.sig2
{
    grid-column: 7/8;
}

div.container div.series
{
    grid-column: 8/9;
}

div.container div.serial
{
    grid-column: 9/10;
}

div.container div.pp
{
    grid-column: 10/11;
}

div.container div.fpn
{
    grid-column: 11/12;
}

div.container div.bpn
{
    grid-column: 12/13;
}

div.container div.grade
{
    grid-column: 13/14;
}

div.container div.comment
{
    grid-column: 14/15;
}

div.container div.price
{
    grid-column: 15/16;
}

div.container div.front
{
    grid-column: 16/17;
}

div.container div.back
{
    grid-column: 17/18;
}

div.wrapper>div.footer
{
    padding: 0.5em;
}
