.control.table {
    user-select: text;
    overflow-x: auto;
}

.control.table table.header {
    font-size: 11px;
    font-weight: bold;
    text-align: center;
    border-collapse: collapse;
}

.control.table table.header td {
    padding: 0;
    overflow: hidden;
    box-sizing: border-box;
}

.control.table table.header td.hoverable {
    border: 1px solid rgba(192, 192, 192, 0.2);
}

.control.table table.header > tbody > tr > td > .h {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    resize: horizontal;
    margin: 4px 6px;
}

.control.table table.header > tbody > tr > td.hoverable:hover {
    background: var(--list-line-background-color);
}

.control.table table.header > tbody > tr > td > .h > .caption {
    flex-grow: 2;
}

.control.table table.header > tbody > tr > td > .h > .filter-btn {
    background: silver;
    border: none;
    width: 16px;
    height: 16px;
    border-radius: 3px;
    margin-left: 6px;
    display: none;
    transition: background .2s;
    padding: 0;
    align-items: center;
    justify-content: center;
    flex: none;
}

.control.table table.header > tbody > tr > td > .h > .filter-btn > svg {
    width: 6px;
    height: 4px;
    fill: #fff;
}

.control.table table.header > tbody > tr > td > .h > .filter-btn:hover {
    background: rgba(0, 139, 139, 0.8);
}

.control.table table.header > tbody > tr > td.filter-available > .h > .filter-btn {
    display: flex;
}

.control.table table.header > tbody > tr > td.filter-enabled > .h > .filter-btn {
    background: url("filter.svg") no-repeat center, #1580FF;
    background-size: 6px 6px;
}

.control.table table.header > tbody > tr > td > .h > .settings-btn {
    background: url(gear.svg) no-repeat center, silver;
    background-size: 10px 10px;
    border: none;
    width: 16px;
    height: 16px;
    border-radius: 3px;
    transition: background .2s;
    padding: 0;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
}

.control.table table.header > tbody > tr > td > .h > .settings-btn:hover {
    background: url(gear.svg) no-repeat center, rgba(0, 139, 139, 0.8);
    background-size: 10px 10px;
}

.control.table table.body {
    font-size: 13px;
    border-collapse: collapse;
    outline: none;
}

.control.table table.body > tr {
    height: 28px;
    transition: background .2s;
}

.control.table table.body > tr:nth-child(even) {
    background: rgba(192, 192, 192, 0.05);
}

.control.table table.body > tr:hover {
    background: var(--list-line-background-color);
}

.control.table table.body > tr.selected {
    background: rgba(192, 192, 192, 0.5);
}

.control.table table.body > tr.selected:hover {
    background: rgba(192, 192, 192, 0.3);
}

.control.table table.body > tr.disabled {
    color: rgba(192, 192, 192, 0.5);
}

.control.table table.body > tr > td {
    overflow: hidden;
    text-align: center;
    padding: 4px 6px;
    border: 1px solid rgba(192, 192, 192, 0.2);
    border-width: 0 1px 0 1px;
    box-sizing: border-box;
}

.control.table table.body > tr:last-of-type > td {
    border-width: 0 1px 1px 1px;
}

.table-filter-overlay {
    padding: 12px;
    min-width: 196px;
}

.table-filter-overlay > .caption {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.table-filter-overlay > .caption > .title {
    margin-right: 24px;
}

.table-filter-overlay > .options {
    margin: 12px 0;
}

.table-filter-overlay > .buttons {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.table-filter-overlay > .hldr {
    margin: 12px 0;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.table-filter-overlay > .hldr > .op {
    width: 96px;
    margin-right: 12px;
}

.control.table table.footer {
    font-size: 13px;
    width: auto;
    border-collapse: collapse;
    margin-top: 8px;
}

.control.table table.footer tr {
    height: 20px;
    transition: background .2s;
}

.control.table table.footer tr:hover {
    background: var(--list-line-background-color);
}

.control.table table.footer td {
    text-align: center;
    overflow: hidden;
    padding: 0;
    color: darkcyan;
    font-weight: bold;
    font-size: .9em;
}

.control.table .body-holder {
    min-width: 100%;
    height: 401px;
    overflow-y: auto;
    display: inline-block;
}

.control.table .body-holder > .body {
    width: auto;
    align-self: flex-start;
    justify-self: flex-start;
}

.control.table .body-holder > .body > .table-row {
    height: 40px;
    max-height: 40px;
}

.table-filter-overlay .rows-hldr {
    display: flex;
    flex-direction: column;
    margin: 16px 0;
}

.table-filter-overlay .rows-hldr > .row {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin: 2px 0;
    padding: 2px;
}

.table-filter-overlay .rows-hldr > .row:hover {
    background: var(--list-line-background-color);
}

.table-filter-overlay .rows-hldr > .row > .btn-up {
    margin-right: 4px;
}

.table-filter-overlay .rows-hldr > .row > .btn-down {
    margin-right: 6px;
}

.table-filter-overlay .rows-hldr > .row:first-of-type > .btn-up,
.table-filter-overlay .rows-hldr > .row:last-of-type > .btn-down{
    visibility: hidden;
}