html, body {
    height: 100%;
    margin: 0;
    padding: 0
}

#structure {
    max-width: 100%;
    margin: 0;
    height: 100%;
    overflow:hidden;
}

#dataArea {
    padding: 1rem 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

    #dataArea #header {
        flex: 0 1 auto;
    }

    .titleBlock small {
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;        
    }
    .titleBlock small.expandable {
        cursor: pointer;
    }
    .titleBlock small.expanded {
        overflow: visible; 
        text-overflow:clip;
        display:-webkit-box;
        -webkit-line-clamp: initial;
        cursor:default;
    }

    #dataArea #mainTable {
        flex: 1 1 auto;
        overflow: auto;
    }

    #dataArea #tableFooter {
        flex: 0 1 30px;
        padding-top:8px;
    }

    #dataArea h2 {
        line-height: 100%
    }

        #dataArea h2 small {
            font-size: 60%;
            line-height:80%;
        }

    #dataArea table {
        font-size: 90%
    }

        #dataArea table.pending {
            background-color: #f0f0f0;
            color:#777;
        }

    #dataArea th {
        cursor: pointer;
        /* Header sticked on top when scrolling*/
        position: -webkit-sticky;
        position: sticky;
        top: -1px;
        z-index: 2;
    }
        

        #dataArea th span {
            margin-left: 5px;
        }

        #dataArea th:hover {
            background-color: #dee2e6;
        }

    #dataArea .pending th {
        cursor: default;
        background-color: #DDD;
    }

        #dataArea .pending th:hover {
            cursor: inherit;
            background-color: inherit;
        }

#filterArea {
    margin-top: 0.8rem;
}

/* create some blank space at the bottom - useful for lazy filtering buttons*/
#filterArea fieldset {
    padding-bottom:72px;
}
.applyPending label { color:var(--blue)}
.applyPending select, #filterArea .applyPending input { border-color:var(--blue)}
#filterArea .lazyButtons.top {    
    width: 100%;
    padding: 16px 0;
    text-align: left;
}
#filterArea .lazyButtons.bottom {
    position: fixed;
    bottom: 0;
    background-color: white;
    width: calc( 25% - 34px);
    padding: 16px 0 32px 0;
    text-align: left;
}

#shareAlert {
    position: absolute;
    top: 1rem;
    left: 50%;
    width: 30rem;
    z-index: 1;
    text-align: center;
    display: none;
    color: #DDD;
    background-color: #444;
    border-color: #444;
}

.extendToBottom {
    overflow: auto;
    overflow-x: hidden;
    overflow-y: auto;
}

/* spinner */
.lds-dual-ring {
    display: inline-block;
    width: 80px;
    height: 80px;
    margin-left: 50%;
    margin-top: 5rem;
}

    .lds-dual-ring:after {
        content: " ";
        display: block;
        width: 100px;
        height: 100px;
        margin: 8px;
        border-radius: 50%;
        border: 6px solid #fff;
        border-color: #333 transparent #333 transparent;
        animation: lds-dual-ring 1.2s linear infinite;
        color: #333
    }

/* Form items*/
.checklist-empty-label {
    font-style: italic;
}
.form-check.pseudo-radio {
    padding-left:0
}
    .form-check.pseudo-radio img {
        height: 16px;
        width: 16px;
        margin-bottom: 3px;
        margin-right: 6px;
    }

@keyframes lds-dual-ring {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}