html{
    user-select: none;
    cursor: default;
    height: 100%;
    position: relative;
    font-family: sans;
}
body{
    margin: 0;
    background-color: #e1e1e1;
    text-align: center;
}
body > main{
    width: 1200px;
    display: inline-block;
}
body > main > article{
    background-color: #fafafa;
    border-radius: 10px;
    overflow: hidden;
    text-align: justify;
}
body > main > article > header{
    background: linear-gradient(to bottom,rgba(237,123,123,1) 0%,rgba(216,101,101,1) 2%,rgba(178,62,62,1) 96%,rgba(158,42,42,1) 100%);
        line-height: 40px;
    padding-left: 10px;
    font-weight: bold;
    color: white;
}
body > main > article >nav{
    background-color: #e9e9e9;
}
.history > header{
    grid-column-start: 1;
    grid-column-end: 3;
    grid-row: 1;

}

.history > nav{
}

.history > nav > a{
    display: block;
    text-align: center;
    margin: 2px;
    border-radius: 4px;
    line-height: 40px;
    background-color: #f5f5f5;
    cursor: pointer;
}
.history > nav > a:hover{
    background-color: #ededed;
}

.history{
    grid-template-columns: 150px auto;
    grid-template-rows: min(40px) max(calc(100% - 40px));
    display: grid;
    margin: 10px;
    height: 900px;
    box-shadow: 1px 1px 4px rgba(0,0,0,0.8);
}

.history > main{
    /*! grid-column: 2; */
    /*! grid-row: 2; */
    overflow: scroll;
    /*! display: table; */
    padding-bottom: 10px;
}

.history .block:hover > summary {
    background-color: #e8e8e8 !important;
}
.history .block{
    overflow: hidden;
    border-radius: 4px;
    margin-top: 2px;
    margin-bottom: : 2px;
    margin-left: 5px;
    margin-right: 10px;
    cursor: pointer;
    box-shadow: 1px 1px 4px rgba(0,0,0,0.8);
}

.history .block:has(section:empty){
    display: none;
}

.history .block summary > .opnames .opname:not(:first-child){
    border-left: 2px dotted;
    margin-left: 10px;
    padding-left: 10px
}
.history .block summary > .opnames :not(:first-child).opname.virtual{
    font-style: italic;
}
.history .block summary > .opnames{
    margin-right: auto;
    margin-left: 10px;
}
.history .block summary{
    line-height: 40px;
    padding-left: 15px;
    display: flex;
    justify-content: space-between;
    padding-right: 15px;
}

.history .block section{
    margin: 20px;
    border: 2px solid white;
}

.history .block:not([open]) summary{
    background: #f5f5f5;

}
.history .block[open] summary{
    background: linear-gradient(to bottom,rgba(237,123,123,1) 0%,rgba(216,101,101,1) 2%,rgba(178,62,62,1) 96%,rgba(158,42,42,1) 100%);
}


.clock .behind{
    display: block
}

.history[data-selected-date="0"] main > :not(.block[data-date="0"]),
.history[data-selected-date="1"] main > :not(.block[data-date="1"]),
.history[data-selected-date="2"] main > :not(.block[data-date="2"]),
.history[data-selected-date="3"] main > :not(.block[data-date="3"]),
.history[data-selected-date="4"] main > :not(.block[data-date="4"]),
.history[data-selected-date="5"] main > :not(.block[data-date="5"]),
.history[data-selected-date="6"] main > :not(.block[data-date="6"]){
    display:none;
}