:root {
    --view-body-background: transparent;
    --view-title-color: #ffffff;
    --view-title-background: rgba(34, 68, 102, 0.5);
    --view-table-border-left: #f0f2f6;
    --view-list-border: #e0e2e6;
    --view-list-i-color: #778;
    --view-list-p-color: #024;
    --view-list-label-color: #1b3956;
    --view-h3-color: #224466;
    --view-h3-background: #fbfbfb;
    --view-h3-border: #cce;
    --view-h3-focus-outline: #ace;
    --view-selector-background: #fbfbfb;
    --view-selector-color: #224466;
    --view-selector-border: #cce;
    --view-selector-focus: #6699cc;
    --view-search-border: #cce;
    --view-search-button-background: #246;
    --view-search-button-hover-background: #2a70b8;
    --view-search-button-color: #f6f6f6;
    --view-search-button-border: #246;
    --view-count-color: #224466;
    --view-count-background: #f8f8f8;
    --view-count-border: #ccc;
    --view-button-color: #778;
    --view-button-background: #f6f6f6;
    --view-button-hover-background: #e6e6e6;
    --view-button-border: #e6e6e6;
    --view-button-border-bottom: #b0b0b0;
    --view-button-border-left: #e0e0e0;
    --view-button-hover-border-left: #c9c9c9;
    --view-button-focus: #6699cc;
    --view-header-color: #468;
    --view-header-background-start: #f0f2f7;
    --view-header-background-end: #e2e6ef;
    --view-header-border-left: #f0f2f6;
    --view-header-border-right: #e0e2e6;
    --view-header-hover-color: #001a33;
    --view-header-active-color: #0b2a46;
    --view-header-active-background: #c5dbf2;
    --view-select-background-start: #f3f6f9;
    --view-select-background-end: #e2e3e6;
    --view-select-color: #468;
    --view-select-border: #e0e2e6;
    --view-data-color: #444;
    --view-data-scrollbar-arrow: #7a7a7a;
    --view-data-scrollbar-base: #e6ebf0;
    --view-data-scrollbar-face: #fafafa;
    --view-selected-color: #224466;
    --view-selected-background: #e9f5fb;
    --view-selected-border: #b9daff;
    --view-deleted-border: #cbcbcb;
    --view-updated-color: #666;
    --view-updated-border: #cbcbcb;
    --view-row-background: #ffffff;
    --view-row-border-bottom: #e0e2e6;
    --view-row-border-top: #f0f2f6;
    --view-sort-cols-background: #f5f6f7;
    --view-row-outline: #6699cc;
    --view-html-frame-border: #aaaaaa;
    --view-html-frame-background: #ffffff;
}

:root[data-theme="dark"] {
    --view-body-background: transparent;
    --view-title-color: #b0b1b3;
    --view-title-background: rgba(51, 51, 51, 0.5);
    --view-table-border-left: #1a1a1a;
    --view-list-border: #242424;
    --view-list-i-color: #888;
    --view-list-p-color: #b0b1b3;
    --view-list-item-border: #212834;
    --view-list-label-color: #b9c5d6;
    --view-h3-color: #b0b1b3;
    --view-h3-background: #1a1a1a;
    --view-h3-border: #333;
    --view-h3-focus-outline: #4a7ba7;
    --view-selector-background: #1a1a1a;
    --view-selector-color: #b0b1b3;
    --view-selector-border: #333;
    --view-selector-focus: #4a7ba7;
    --view-search-border: #333;
    --view-search-button-background: #246;
    --view-search-button-hover-background: #2a70b8;
    --view-search-button-color: #f6f6f6;
    --view-search-button-border: #246;
    --view-count-color: #b0b1b3;
    --view-count-background: #1a1a1a;
    --view-count-border: #333;
    --view-button-color: #b0b1b3;
    --view-button-background: #1a1a1a;
    --view-button-hover-background: #252525;
    --view-button-border: #333;
    --view-button-border-bottom: #2a2a2a;
    --view-button-border-left: #222;
    --view-button-hover-border-left: #2a2a2a;
    --view-button-focus: #4a7ba7;
    --view-header-color: #b0b1b3;
    --view-header-background-start: #2a2a2a;
    --view-header-background-end: #1a1a1a;
    --view-header-border-left: #333;
    --view-header-border-right: #1a1a1a;
    --view-header-hover-color: #d0d1d3;
    --view-header-active-color: #e0e1e3;
    --view-header-active-background: #333;
    --view-select-background-start: #222;
    --view-select-background-end: #1a1a1a;
    --view-select-color: #b0b1b3;
    --view-select-border: #242424;
    --view-data-color: #b0b1b3;
    --view-data-scrollbar-arrow: #888;
    --view-data-scrollbar-base: #1a1a1a;
    --view-data-scrollbar-face: #252525;
    --view-selected-color: #d0d1d3;
    --view-selected-background: #111923;
    --view-selected-border: #3a5a7a;
    --view-deleted-border: #3a3a3a;
    --view-updated-color: #aaa;
    --view-updated-border: #3a3a3a;
    --view-row-background: #1a1a1a;
    --view-row-border-bottom: #2a2a2a;
    --view-row-border-top: #1a1a1a;
    --view-sort-cols-background: #212121;
    --view-row-outline: #4a7ba7;
    --view-html-frame-border: #444;
    --view-html-frame-background: #0f0f0f;
}

html {
    height: 100%;
}

body {
    margin: 3px 0 0 3px;
    padding: 0;
    height: 100%;
    width: auto;
    overflow: hidden;
    font-family: helvetica, verdana;
    background-color: var(--view-body-background);
}

body.hasTitle {
    margin: 0;
    padding: 50px 4% 0 4%;
    width: 92%;
    height: 92%;
    height: calc(100% - 60px);
}

h1.title {
    font-family: Georgia, serif;
    font-size: 18px;
    line-height: 44px;
    font-weight: bold;
    margin: 0;
    margin-block-start: 0;
    margin-block-end: 0;
    margin-inline-start: 0;
    margin-inline-end: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 92%;
    height: 44px;
    z-index: -80;
    padding: 0 4%;
    color: var(--view-title-color);
    background-color: var(--view-title-background);
}

div#bgImage {
    position: absolute;
    top: 0;
    left: 0;
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    z-index: -100;
    background-repeat: no-repeat;
    background-position: center top;
    background-size: 100% 100%;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
    table-layout: fixed;
    width: 100%;
}

table>tbody>tr>td {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    height: 25px;
    font-size: 0.8em;
    padding-left: 6px;
}

table>tbody>tr>td:first-child {
    border-left: 4px solid var(--view-table-border-left);
    padding-left: 4px;
}

ul {
    margin: 0;
    padding: 4px;
    border-top: 1px solid var(--view-list-border) !important;
    border-left: 1px solid var(--view-list-border);
    border-right: 1px solid var(--view-list-border);
    border-radius: 6px;
}

ul>li {
    padding: 0 0 0 4px;
    letter-spacing: 0.3px;
}

ul>li.display {
    font-size: 0.8em;
    font-weight: 600;
    color: var(--view-list-label-color);
    padding-top: 2px;
}

ul>li>i {
    font-size: 0.7em;
    font-style: normal;
    color: var(--view-list-i-color);
}

ul>li>p {
    font-size: 0.75em;
    margin: -4px 0 2px 8px;
    padding: 0;
    color: var(--view-list-p-color);
}

input,
select {
    border-radius: 4px;
    background-color: var(--view-selector-background);
    color: var(--view-selector-color);
}

#divActions {
    display: block;
    width: 100%;
}

#divFilter {
    width: 100%;
    max-width: 318px;
    margin-bottom: 4px;
}

#divFilter,
#spanCount,
tr[data-collapsed="true"] {
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
    user-select: none;
}

#divTitleSelector {
    display: block;
    width: 100%;
}

#h3Title {
    width: 100%;
    max-width: 318px;
    height: 28px;
    line-height: 28px;
    margin: 0 0 3px 0;
    padding: 0 6px;
    font-size: 15px;
    font-family: helvetica nue, helvetica, verdana;
    font-weight: normal;
    color: var(--view-h3-color);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    box-sizing: border-box;
    border: 1px solid var(--view-h3-border);
    background: var(--view-h3-background);
    border-radius: 4px;
}

#h3Title:focus {
    outline: 1px solid var(--view-h3-focus-outline);
}

#ddSelector {
    width: 100%;
    max-width: 318px;
    height: 28px;
    padding: 2px;
    border: 1px solid var(--view-selector-border);
    font-family: helvetica nue, helvetica, verdana;
    font-size: 15px;
    margin-bottom: 3px;
    background-color: var(--view-selector-background);
    color: var(--view-selector-color);
}

#ddSelector:focus {
    outline: 1px auto var(--view-selector-focus);
}

#tblSearch {
    border-collapse: collapse;
    border-spacing: 0;
    border-radius: 4px;
    table-layout: fixed;
    width: 100%;
    margin: 0;
}

#tblSearch:focus-within {
    outline: 1px auto var(--view-selector-focus);
}

#tdTxtSearch {
    padding: 0;
    border-left: 0;
    position: relative;
    vertical-align: bottom;
}

#tdBtnSearch {
    width: 50px;
    padding: 0;
    vertical-align: bottom;
}

#frmSearch {
    display: contents;
}

#txtSearch {
    width: 100%;
    height: 28px;
    padding-left: 4px;
    border: 1px solid var(--view-search-border);
    border-right: 0;
    border-radius: 4px 0 0 4px;
    -webkit-appearance: none;
    box-sizing: border-box;
    font-family: helvetica, verdana;
    font-size: 13px;
}

#txtSearch:focus {
    outline: none;
}

#txtSearch::-webkit-search-decoration,
#txtSearch::-webkit-search-cancel-button,
#txtSearch::-webkit-search-results-button,
#txtSearch::-webkit-search-results-decoration {
    -webkit-appearance: none;
}

#btnSearch {
    width: 50px;
    height: 28px;
    background-color: var(--view-search-button-background);
    color: var(--view-search-button-color);
    border: 1px solid var(--view-search-button-border);
    border-left: 0;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

#btnSearch:hover,
#btnSearch:focus {
    background-color: var(--view-search-button-hover-background);
}

#spanCount {
    padding: 2px 4px;
    color: var(--view-count-color);
    background-color: var(--view-count-background);
    border: 1px solid var(--view-count-border);
    border-radius: 2px;
    font-family: helvetica, verdana;
    font-size: 12px;
    position: absolute;
    right: 3px;
    top: 4px;
}

#h3Title>b {
    font-family: helvetica, verdana;
    font-style: normal;
    font-size: 13px;
    font-weight: 600;
    padding-right: 2px;
}

#h3Title>i {
    font-family: helvetica, verdana;
    font-style: normal;
    font-weight: normal;
    font-size: 15px;
    padding-left: 2px;
}

#h3Title>i:before {
    content: "(";
}

#h3Title>i:after {
    content: ")";
}

#divButtons {
    margin-bottom: 4px;
    width: 100%;
}

#divButtons>button {
    width: 53px;
    height: 28px;
    margin: 0;
    cursor: pointer;
    vertical-align: middle;
    font-size: 0;
    color: var(--view-button-color);
    background-color: var(--view-button-background);
    border: 1px solid var(--view-button-border);
    border-bottom-color: var(--view-button-border-bottom);
    border-left-color: var(--view-button-border-left);
    border-radius: 0;
}

#divButtons>button:first-child {
    border-radius: 4px 0 0 4px;
}

#divButtons>button:last-child {
    border-radius: 0 4px 4px 0;
}

#divButtons>button:hover {
    background-color: var(--view-button-hover-background);
    border-left-color: var(--view-button-hover-border-left);
}

#divButtons>button:active {
    outline: 1px auto var(--view-button-focus);
    position: relative;
    z-index: 10;
}

#divButtons>button:focus {
    outline: 1px auto var(--view-button-focus);
    position: relative;
    z-index: 10;
}

#tblHeader {
    border-collapse: separate;
    border: 1px solid var(--view-list-border);
}

#tblHeader>tbody>tr>td {
    color: var(--view-header-color);
    border-left: 1px solid var(--view-header-border-left);
    border-right: 1px solid var(--view-header-border-right);
    padding-left: 4px;
    background: linear-gradient(to bottom, var(--view-header-background-start) 10%, var(--view-header-background-end) 100%);
}

#tblHeader>tbody>tr>td>span {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    font-family: helvetica, verdana;
    font-weight: 600;
    font-size: 0.9em;
}

#tblHeader>tbody>tr>td>span:hover {
    color: var(--view-header-hover-color);
}

.select-header {
    position: relative;
    font-family: helvetica, verdana;
    font-weight: 600;
    font-size: 0.72em;
    border: 1px solid var(--view-select-border);
}

.select-header>table {
    display: none;
}

.select-selected {
    background-color: var(--view-select-background-end);
    background: linear-gradient(to bottom, var(--view-select-background-start) 10%, var(--view-select-background-end) 100%);
}

/*style the arrow inside the select element:*/
.select-selected:after {
    position: absolute;
    content: "";
    top: 10px;
    right: 10px;
    width: 0;
    height: 0;
    border: 6px solid transparent;
    border-color: var(--view-select-color) transparent transparent transparent;
}

/*point the arrow upwards when the select box is open (active):*/
.select-selected.select-arrow-active:after {
    border-color: transparent transparent var(--view-select-color) transparent;
    top: 3px;
}

/*style the items (options), including the selected item:*/
.select-items>div,
.select-selected {
    color: var(--view-select-color);
    padding: 4px;
    line-height: 16px;
    border: 1px solid transparent;
    border-color: transparent var(--view-select-border) rgba(0, 0, 0, 0.1) var(--view-select-border);
    cursor: pointer;
    user-select: none;
}

/*style items (options):*/
.select-items {
    position: absolute;
    background-color: var(--view-select-background-end);
    background: linear-gradient(to bottom, var(--view-select-background-start) 10%, var(--view-select-background-end) 100%);
    top: 100%;
    left: 0;
    right: 0;
    z-index: 99;
}

.select-hide {
    display: none;
}

.select-items div:hover,
.same-as-selected {
    background-color: rgba(0, 0, 0, 0.1);
}

#divData {
    clear: both;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    cursor: default;
    font-family: helvetica, verdana;
    font-size: 1em;
    line-height: 1.2em;
    color: var(--view-data-color);
}

#divData {
    -ms-scrollbar-arrow-color: var(--view-data-scrollbar-arrow);
    -ms-scrollbar-base-color: var(--view-data-scrollbar-base);
    -ms-scrollbar-track-color: var(--view-data-scrollbar-base);
    -ms-scrollbar-face-color: var(--view-data-scrollbar-face);
    -ms-scrollbar-darkshadow-color: var(--view-data-scrollbar-base);
    -ms-scrollbar-shadow-color: var(--view-data-scrollbar-base);
    -ms-scrollbar-3dlight-color: var(--view-data-scrollbar-base);
}

#divData::-webkit-scrollbar {
    width: 17px;
}

#divData::-webkit-scrollbar-track {
    background-color: var(--view-data-scrollbar-base);
}

#divData::-webkit-scrollbar-thumb {
    border: solid 1px var(--view-data-scrollbar-base);
    background-color: var(--view-data-scrollbar-face);
}

#divData::-webkit-scrollbar-button {
    height: 17px;
    border: solid 1px var(--view-data-scrollbar-base);
}

/*color is set by fill%3D%22%23777777%22*/
#divData::-webkit-scrollbar-button:start {
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%201024%201024%22%3E%3Cpath%20fill%3D%22%23777777%22%20d%3D%22M1024%20832q0%20-26%20-19%20-45l-448%20-448q-19%20-19%20-45%20-19t-45%2019l-448%20448q-19%2019%20-19%2045t19%2045t45%2019h896q26%200%2045%20-19t19%20-45z%22%2F%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 50%;
}

/*color is set by fill%3D%22%23777777%22*/
#divData::-webkit-scrollbar-button:end {
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%201024%201024%22%3E%3Cpath%20fill%3D%22%23777777%22%20d%3D%22M1024%20320q0%20-26%20-19%20-45t-45%20-19h-896q-26%200%20-45%2019t-19%2045t19%2045l448%20448q19%2019%2045%2019t45%20-19l448%20-448q19%20-19%2019%20-45z%22%2F%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 50%;
}

.selected {
    color: var(--view-selected-color);
    background-color: var(--view-selected-background);
    border-bottom: 1px solid var(--view-selected-border);
}

.selected>td {
    border-top: 1px solid var(--view-selected-border);
}

.deleted {
    text-decoration: line-through;
    border-bottom: 1px solid var(--view-deleted-border);
}

.updated {
    font-style: italic;
    color: var(--view-updated-color);
    border-bottom: 1px solid var(--view-updated-border);
}

.r1,
.r2 {
    background-color: var(--view-row-background);
    border-bottom: 1px solid var(--view-row-border-bottom);
    border-top: 1px solid var(--view-row-border-top);
}

.ch1,
.ch2 {
    background-color: var(--view-sort-cols-background);
}

.selected:focus,
.r1:focus,
.r2:focus {
    outline: 0;
}

.selected[outline]>td:first-child,
.r1[outline]>td:first-child,
.r2[outline]>td:first-child {
    border-left: 4px solid var(--view-row-outline);
    padding-left: 4px;
}

.htmlFrame {
    width: 90%;
    height: 400px;
    margin: 2px;
    border: 1px dashed var(--view-html-frame-border);
    padding: 0;
    overflow: auto;
    background-color: var(--view-html-frame-background);
}

@media (min-width: 651px) {

    #divActions,
    #divTitleSelector {
        display: flex;
        justify-content: flex-start;
    }

    #h3Title,
    #divButtons {
        order: 0;
        width: 318px;
        margin-right: 4px;
    }

    #ddSelector,
    #divFilter {
        order: 1;
        width: 318px;
    }
}

svg.icon {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

@media only screen and (-webkit-min-device-pixel-ratio: 0) and (max-device-width: 480px) {

    select,
    textarea,
    input,
    #ddSelector {
        font-size: 16px;
    }
}