table, th, td {
    border: 1px solid #AAA;
}
table {
    border-collapse: collapse;
    width: 100%;
}
td, th {
    padding-left: 0.5em;
    padding-right: 0.5em;
}

th {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 2;

    background-color: #EEE;
}

th::before {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    border-right: 1px solid #AAA;
    display: block;
    top : 1px;
}

th::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    border-bottom: 1px solid #AAA;
    border-top: 1px solid #AAA;
    display: block;
    top : -1px;
}




.fromto_header {

}

.fromto {
    width:     8em;
    max-width: 8em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.summary_header {

}

.summary {
    width:     30em;
    max-width: 30em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hidden {
    display: none;
}

table.sortable thead tr  .order-asc {
    background-image: url(./img/asc.png);
}
table.sortable thead tr .order-desc {
    background-image: url(./img/desc.png);
}

table.sortable thead tr th {
    background-repeat: no-repeat;
    background-position: center right;
    cursor: pointer;
    background-image: url(./img/bg.png);
}






select.ui_input {
    background-color: #E8E8E8;
    border: 1px solid #999;
    cursor: pointer;
}

select.ui_input:hover {
    background-color: #AAA;
    border: 1px solid #000;
}

button.ui_input {
    background-color: #E8E8E8;
    border: 1px solid #999;
    cursor: pointer;
}

button.ui_input.active       { background: #444; color: #CCC; }
button.ui_input:not(.active) {                                }

button.ui_input:hover {
    background-color: #AAA;
    border: 1px solid #000;
}




.ui_toggle {
    position: relative;
}

.ui_toggle.inactive:not(:hover) {
    color: #AAA;
    border-color: #DDD;
}

.ui_toggle.inactive > .pg {
    display: none;
}

.ui_toggle > .pg {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
}

.ui_toggle:not(.inactive) > .pg {
    background: #A8F;

    width: 0;
}

.ui_toggle.error:not(.inactive) {
    background-color: #D24;
}

.ui_toggle > .txt1 {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

.ui_toggle > .txt2 {
    opacity: 0.001;
}


.options {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-column-gap: 1rem;
    grid-row-gap: 0.5rem;
    justify-items: start;
}



tr.insprint_false td {
    background-color: #FaFaFa;
    color: #555;
}

td.diff_mod {
    background-color: #DFF;
}

td.diff_same {
    color: #999;
}

td.diff_same:hover {
    color: #000;
}

.errcount {margin-left: 0.5em; display: inline-block; width: 2em;}