:root {
    --control-bg: #1f5d7a;
    --control-fg: #ffffff;
    --search-header-bg: rgba(255, 255, 255, 0.25);
    --search-header-fg: #000000;
    --populated-control-bg: #007bb5;
    --populated-control-fg: #ffffff;
}

table {
    background: rgba(255,255,255,0.5);
    width: 100%;
    margin: 2rem 0;
    border-radius: 4px;
    overflow: hidden;
}

table.mini-columns {
    width: auto;
    background: #e5e5e5;
}

/*
	Headers / filters
*/
th {
    text-align: left;
    font-size: 1rem;
    padding: 0.5rem;
    position: relative;
    background: rgba(255,255,255,0.5);
    color: #000000;
    font-weight: 600;
    font-family: ff-tisa-web-pro, serif;
}

th input {
    font-family: ff-tisa-web-pro, serif;
    font-size:1.2rem;
}

table.complex-filters th {
    vertical-align: top;
}

th:last-child {
    padding-right: 10px;
}

tr.advanced-filters th {
    font-size: 16px;
}

tr.advanced-filters input[type=text] {
    padding: 2px 5px 2px 5px;
    box-sizing: border-box;
}

table thead th.fill {
    width: 100%;
}

table tr.field-groups + tr > th {
    padding-top: 0;
}

table thead input,
table thead select {
    padding: 0.25rem 0.5rem;
    outline: none !important;
    border: none !important;
    background: rgba(0, 0, 0, 0.05);
    color: #212121;
    font-size: 1.2rem;
    width: 100% !important;
    box-sizing: border-box;
    border-radius: 4px;
    transition: 0.5s;
    font-weight: 600;
}

table thead input:focus {
    background:rgba(255,255,255,1);
}

table thead .generic_pager input {
    width: 60px !important;
}

table thead .multi-filters input {
    margin-left: 5px;
}

table thead .multi-filters input:first-child {
    margin-left: 0;
}

table thead input:first-child {
    margin-right: 0;
}

table thead select option {
    color: #000000 !important;
}

table thead .micro select {
    width: 70px !important;
}

table thead select option {
    color: #707070;
}

table thead select.populated option {
    color: #ffffff !important;
}

table thead tr.advanced-filters input {
    font-size: 16px;
}

table thead input::-webkit-input-placeholder { /* Chrome/Opera/Safari */
    color: var(--search-header-fg);
    text-shadow: none;
    text-transform: none;
}

table thead input::-moz-placeholder { /* Firefox 19+ */
    color: var(--search-header-fg);
    text-shadow: none;
    text-transform: none;
}

table thead input:-ms-input-placeholder { /* IE 10+ */
    color: var(--search-header-fg);
    text-shadow: none;
    text-transform: none;
}

table thead input:-moz-placeholder { /* Firefox 18- */
    color: var(--search-header-fg);
    text-shadow: none;
    text-transform: none;
}

table thead input::placeholder {
    color: var(--search-header-fg);
    text-shadow: none;
    text-transform: none;
}

table thead input:not(:placeholder-shown) {
    background: var(--populated-control-bg);
    color: var(--populated-control-fg) !important;
}

table thead select.populated {
    background: var(--populated-control-bg);
    color: var(--populated-control-fg) !important;
}

table thead .icon_datepicker {
    padding-left: 5px;
}

table .group-header td {
    background: #e0ebe5;
    border-bottom: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 18px;
    position: relative;
    font-weight: 100;
}

table .group-header.super td {
    font-weight: 400;
    font-size: 24px;
}

th .material-icons {
    padding-top: 5px
}

th.tools {
    padding: 0;
}

th.tools > span {
    padding: 5px 10px 5px 10px;
    vertical-align: middle;
}

th .primary-actions {
    margin: 0 10px 0 0;
    float: right;
}

th .primary-actions button {
    font-size: 16px;
    background: #13492c;
}

th .state-filter {
    background: #1b6940;
    color: #ffffff;
    margin-right: 5px;
    padding: 2px 5px 2px 5px;
}

table .primary-actions {
    float: right;
}

table .primary-actions button {
    font-size: 14px;
    background: #13492c;
    padding: 5px 10px 5px 10px;
}

table .group-header .primary-actions button {
    font-size: 14px;
    background: #13492c;
    padding: 2px 6px 2px 6px;
}

input[type=text].filter {
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAnFBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+TINBkAAAAM3RSTlMAAQIDBwgJDg8RExcdICMzPUJERUdMUVJcX2F5e36FiZigoqWrtcPF2eDi5Obp6+/z+fuRCq6wAAAAiklEQVQYGVXBRwKCMABFwU8QFbtgwV6wV/Dd/26GZKMzspIbUC5r8swB79mWs4VVHEbDN8+arC6MVWm8Wcpac5Q3pDSSLqTyImhJKujLC6Ej6UQmL4ampBkPI2fFXVb9Q25kjWGkSgKPrJ8egamc5IPzgomcaH4urpuuyWGqX8EeBvoV7FjoT9AzXxZnEVySl7A0AAAAAElFTkSuQmCC');
    background-repeat: no-repeat;
    background-position: 98% 5px;
    background-size: 10px;
    height: 44px;
}

select.filter {
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAnFBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+TINBkAAAAM3RSTlMAAQIDBwgJDg8RExcdICMzPUJERUdMUVJcX2F5e36FiZigoqWrtcPF2eDi5Obp6+/z+fuRCq6wAAAAiklEQVQYGVXBRwKCMABFwU8QFbtgwV6wV/Dd/26GZKMzspIbUC5r8swB79mWs4VVHEbDN8+arC6MVWm8Wcpac5Q3pDSSLqTyImhJKujLC6Ej6UQmL4ampBkPI2fFXVb9Q25kjWGkSgKPrJ8egamc5IPzgomcaH4urpuuyWGqX8EeBvoV7FjoT9AzXxZnEVySl7A0AAAAAElFTkSuQmCC');
    background-repeat: no-repeat;
    background-position: 98% center;
    background-position: 98% 5px;
    background-size: 10px;
    height: 44px;
}

th input.full,
th select.full {
    width: 100%;
    box-sizing: border-box;
}

th .sort-header {
    display: flex;
    flex-direction: column;
    height: 44px;
}

th .sort-header a {
    color: #ffffff;
    background: #1f7a49;
    height: 33%;
    overflow: hidden;
    font-size: 20px;
}

th .sort-header.is-up a.up,
th .sort-header.is-down a.down {
    background: #41427f
}

th .sort-header a:hover {
    opacity: 0.5;
}

th .sort-header a:before {
    font-family: Material Icons;
    margin-top: -3px;
    display: block;
    text-align: center;
}

th .sort-header a.up:before {
    content: 'arrow_drop_up';
}

th .sort-header a.down:before {
    content: 'arrow_drop_down';
}

th .sort-header a.clear:before {
    content: 'clear';
    margin-top: -1px;
    font-size: 15px;
}

.multi-filters {
    display: flex;
    flex-direction: row
}

.multi-filters > label {
    height: 43px;
    position: relative;
    top: 5px;
    padding-right: 10px;
}

th button,
.multi-filters button {
    outline: none;
    border: none;
    background: #293583;
    color: #FFFFFF;
    position: relative;
    padding: 12px;
    margin: 0 0.5rem;
    font-size: 1rem;
    line-height: 0.5rem;
    height: unset;
    min-height: 32px;
    transition:0.5s;
}

th button:hover,
.multi-filters button:hover {
    background:#8E2684;
}

.multi-filters button.has-tristate-flagged-icon i {
    display: inherit;
}

.multi-filters button.has-tristate-flagged-icon i.material-icons {
    font-size: 1em;
}

.multi-filters button.warning-filter:before,
.multi-filters button.good-filter:before,
.multi-filters button.has-tristate-flagged-icon:before {
    font-family: "Font Awesome 5 Pro";
    position: absolute;
    right: 3px;
    top: 3px;
    font-size: 10px;
}

.multi-filters button.warning-filter:before {
    content: '\f071';
}

.multi-filters button.good-filter:before {
    content: '\f058';
}

.multi-filters button.has-tristate-flagged-icon.tritrue:before {
    content: '\f058';
}

.multi-filters button.has-tristate-flagged-icon.trifalse:before {
    content: '\f071';
}

.multi-filters button.has-tristate-flagged-icon.close-not-warning.trifalse:before {
    content: '\f05e';
}

.multi-filters button.has-tristate-flagged-icon.cross-not-warning.trifalse:before {
    content: '\f00d';
}

.multi-filters button.has-tristate-flagged-icon.trinull:before {
    content: '\f069'
}

.multi-filters button.active {
    background: #41427f;
}

.multi-filters button.tritrue {
    background: #41427f;
}

.multi-filters button.trifalse {
    background: #41427f;
}

.multi-filters .multistate.hasvalue {
    background: #41427f;
}

th.micro {
    width: 20px !important;
}

th.mini {
    width: 80px !important;
}

th.midi {
    max-width: 200px !important;
}

th.select {
    width: 40px !important;
}

th.id {
    width: 80px !important;
}

th.name {
    min-width: 200px;
}

th.status {
    width: 90px !important;
}

th.type {
    width: 20px !important;
}

/*
	Body
*/
table.mini-columns td {
    border: none;
    border-left: 1px solid #ffffff;
}

td {
    padding: 0.5rem;
    border-left: 1px solid #dddddd;
}

td:first-of-type {
    border:none;
}

table.stealth td {
    padding-top: 2px;
    padding-bottom: 2px;
}

td.multi-row-item > * {
    display: block;
}

td.multi-row-item > .secondary {
    font-size: 14px;
    color: #707070;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

td .compound-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

td.multi-row-item > .secondary > *,
td .compound-item > * {
    padding-right: 5px;
}

td.multi-row-item > .secondary > *:last-child,
td .compound-item > *:last-child {
    padding-right: 0;
}

td i.material-icons {
    font-size: 1.25em;
}

td .shortcut i.material-icons {
    font-size: 1.5em;
}

td .shortcut {
    display: inline-block;
}

td .shortcut:hover {
    background: #419366;
    color: #ffffff;
}

td > i.fa,
td > span > i.fa,
td > i.material-icons,
td > span > i.material-icons,
td > .icon-container,
td > span > .icon-container {
    display: block;
    text-align: center;
}

/* Use ONE or other of these depending on whether you want row colouring to start */
tbody tr:nth-child(odd) {
    background: rgba(1, 116, 178, 0.05);
}

tr:nth-child(even) {
    /*background: rgba(0, 0, 0, 0.03)*/
}

table.clickable tbody tr:hover,
tr.clickable:hover {
    background: #eeeeee;
    cursor: pointer;
    transition:0.5s;
}

table tr.field-groups th.group > span {
    display: block;
    font-size: 16px;
    border-bottom: 2px solid #ffffff;
    margin-left: 5px;
    margin-right: -5px;
    padding-bottom: 3px;
}

td.midi > span {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
}

td.select {
    align-items: center;
    justify-content: center;
    padding: 0;
    text-align: center;
}

ul.additional-items {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

ul.additional-items.mini {
    display: inline-flex;
}

ul.additional-items li {
    margin: 2px;
    padding: 2px;
    font-size: 0.8em;
    background: #eeeeee;
    white-space: nowrap;
}

.record-summary {
    display: flex;
    flex-direction: column;
}

.record-summary .codes {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.record-summary .codes > * {
    white-space: nowrap;
}

tr.row-group-start {
    border-top: 1px dotted rgba(0, 0, 0, 0.3);
}
/*
	CONTEXT SPECIFIC PRESENTATION 
*/
.popup th {
    font-size: 16px;
}

.popup td {
    font-size: 15px;
}

.popup table thead select {
    font-size: 14px;
}

table.stealth {
    zoom: 95%;
}

table.compact {
    zoom: 90%;
}

.stealth th {
    text-align: left;
    font-size: 16px !important;
    font-weight: 600 !important;
    padding: 5px;
    position: relative;
    background: #99ada2;
    color: #ffffff;
}

.stealth thead input,
.stealth thead select {
    font-size: 16px !important;
    font-weight: 600 !important;
    height: 32px !important;
}

.stealth th button,
.stealth .multi-filters button {
    height: 32px !important;
}

.stealth .generic_pager > * {
    font-weight: 100 !important;
}

.stealth .generic_pager input,
.stealth .generic_pager button,
.stealth .generic_pager a {
    height: 24px !important;
    padding: 0 5px 0 5px;
}

.stealth .long-text-container > span {
    font-size: 14px;
    white-space: pre-wrap;
}

.stealth input[type=text].filter {
    height: inherit;
}

.stealth input[type=text].filter {
    height: inherit;
}

/*
    UTILITY 
*/
.atomic {
    white-space: nowrap;
}

/*
    JQUERY UI FIXES
*/
.ui-widget table th {
    font-size: unset;
    background-color: inherit;
    color: inherit;
}


@media (max-width: 500px) {
    tr {
        display: flex;
        width: 100%;
        flex-direction: column;
    }
}
    