body {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

/* text */
.text-bold {
    font-weight: bold;
}

/* table */
.table.bt-0 tr th {
    border-top: 0 !important;
}

/* files */
#files-table,
#files-cards {
    cursor: default;
}

/* selectable table */
.table.table-selectable {
    position: relative;
    border-collapse: separate;
    border-spacing: 0;
}
.table.table-selectable > thead > tr > th {
    position: sticky;
    top: 0;
    background: #ffffff;
    z-index: 100;
}
.table.table-selectable tr:first-child > td {
    border-top: 0;
}

/* selectable rows */
.table.table-selectable tr > td:first-child,
.table.table-selectable tr > td:last-child {
    position: relative;
}
.table.table-selectable tr > td:first-child:before,
.table.table-selectable tr > td:last-child:after {
    display: block;
    position: absolute;
    top: -1px;
    width: 5px;
    height: calc(100% + 1px);
    white-space: pre;
    content: " ";
    background: transparent;
}
.table.table-selectable tr > td:first-child:before {
    left: -5px;
}
.table.table-selectable tr > td:last-child:after {
    right: -5px;
}
.table.table-selectable tr.row-selected > td:first-child:before,
.table.table-selectable tr.row-selected > td:last-child:after {
    content: " ";
    background: #007bff;
}

/* selected row */
.table-selectable tr.row-selected > td {
    border-color: #6c757d;
}

/* selected card */
.card-img-selected {
    opacity: 0.2;
}

/* favorite column */
.favorite,
.favorite > a {
    color: #ffc107;
}
.favorite > a:hover {
    color: #ba8b00;
    text-decoration: none;
}

/* tabs */
.nav-tabs .nav-item .nav-link {
    padding: 0.25rem 0.5rem;
}

/* input control */
.form-control-multiple {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

/* file upload properties */
.properties-form {
    display: table;
    width: 100%;
    white-space: nowrap;
}
.properties-form > div {
    display: table-row;
}
.properties-form > div > div {
    display: table-cell;
    vertical-align: middle;
    width: auto;
    padding-top: 5px;
    padding-bottom: 5px;
}
.properties-form > div > div:first-child {
    width: 110px;
    padding-left: 0;
    padding-right: 15px;
    text-align: right;
}
.properties-form > div > div.align-top {
    vertical-align: top;
    padding-top: 15px;
}
.properties-form > div > div:first-child label {
    font-weight: bold;
    margin: 0;
}
.properties-form > div > div .form-check-label {
    user-select: none;
}

/* file input */
.custom-file-input {
    height: 30px;
}
.custom-file-label {
    height: auto;
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-radius: 0.2rem;
}
.custom-file-label::after {
    height: auto;
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-radius: 0 0.2rem 0.2rem 0;
}

.file-drop {
    border: 2px dashed #007bff;
    color: #007bff;
    padding: 4px;
    white-space: nowrap;
    font-size: 80%;
    font-weight: bold;
    user-select: none;
}
.file-drop-enter {
    background-color: #d4edda;
    border: 2px dashed #155724;
    color: #155724;
    cursor:progress;
}
.file-drop-enter > * {
    pointer-events: none;
}

/* overflow */
.overflow-x-auto {
    overflow-x: auto !important;
}

.text-ellipsis {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* page layout */
.page-layout {
    display: flex;
    flex-direction: column;
    width: 100vw;
    height: 100vh;
}
.page-header {
    flex: 0 0 auto;
}
.page-menu {
    flex: 0 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow-y: hidden;
    overflow-x: auto;
}
.page-body {
    flex: 1 1 auto;
    overflow: scroll;
}
.page-body.page-body-split {
    overflow: hidden;
    display: flex;
    flex-direction: row;
}
.page-body-menu {
    flex: 0 0 320px;
    overflow-y: scroll;
    background: rgba(0, 0, 0, 0.03);
    padding-top: 15px;
}
.page-body-content {
    flex: 1 1 auto;
    overflow: scroll;
}

/* overflow padding */
.col.overflow {
    display: flex;
    padding-left: 0;
    padding-right: 0;
}
.col.overflow:before {
    content: " ";
    min-width: 15px;
}
.col.overflow:after {
    content: " ";
    min-width: 15px;
}

/* responsive column count */
@media (min-width: 576px) {
    .card-columns {
        column-count: 2;
    }
}
@media (min-width: 768px) {
    .card-columns {
        column-count: 3;
    }
}
@media (min-width: 992px) {
    .card-columns {
        column-count: 4;
    }
}
@media (min-width: 1200px) {
    .card-columns {
        column-count: 5;
    }
}
