

/* app */
#app {
    position: fixed;
    inset: 0px;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transition: opacity 500ms linear;
    display:flex;
    box-sizing:border-box;
}
#app.loaded {
    opacity: 1;
}
#app-loading {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10000;
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: center;
    background-color: rgba(var(--bg),1);
    transition: opacity 500ms linear;
    user-select: none;
    pointer-events: none;
}
#app-loading img {
    width: 100px;
}
#app-loading.loaded {
    opacity: 0;
}

h3 {
    font-size: 19px;
    font-weight: 400;
    margin: 15px 0 10px 0;
}
h3:first-child {
    margin-top:5px;
}

#body {
    align-self: stretch;
    flex-grow: 1;
    flex-shrink: 1;
    overflow: hidden;
    line-height: 1.5em;
    min-height: 200px;
    display: flex;
    flex-direction: column;
}
#body * {
    box-sizing: border-box !important;
}

.panel-container {
    padding: 0 5px;
}
.panel-wrap {
    display:flex;
    justify-content:stretch;
    align-content:stretch;
}
.panel {
    padding: 28px;
    border-radius: 4px;
    background-color: #fff;
    box-shadow: rgba(0, 0, 0, 0.1) 0 0 5px;
    margin: 5px 5px;
    flex-grow: 1;
    flex-shrink: 1;
}
.panel > svg {
    margin-right: 20px;
}
.panel-33 {
    width: 33.3333%;
}
.panel-50 {
    width:50%;
}
.panel-100 {
    width: 100%;
}

.flex {
    display: flex;
    flex-wrap: nowrap;
    /*overflow: hidden;*/
}
.flex.col {
    flex-direction: column;
}
.flex.row {
    flex-direction: row;
    flex-wrap: wrap
}
.flex.top {
     align-items: start;
}
.flex.row.center {
    align-items: center;
}
.flex.col.center {
    justify-content: center;
}
.flex.stretch {
    align-items: stretch;
}
.flex.grow {
    flex-shrink: 1;
    flex-grow: 1;
}
.flex.wrap {
    flex-wrap: wrap;
}
.flex.nowrap {
    flex-wrap: nowrap;
}
.label-value {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    min-height: 26px;
    align-items: center;
}
.label-value > label {
    flex: 0 1 34%;
    margin: 0;
    padding-right:20px;
    word-wrap: break-word;
    position:relative;
}
.label-value label:first-child::after {
    content:':';
    position:absolute;
    right:10px;    
    top: 50%;
    transform: translateY(-50%);
}
.label-value .value {
    flex: 0 1 66%;
    display: flex;
    flex-direction: row;
    column-gap: 5px;
}


/*

.simple-list {
    margin: 0 auto;
}
.simple-list .list-item {
    box-shadow: rgba(0,0,0,0.1) 0 0 5px;
    padding: 28px;
    border-radius: 4px;
    background-color: #fff;
    margin: 10px 0;
}
.simple-list .selectable:hover {
    background-color: rgba(var(--agency-highlight-color),0.5);
    cursor: pointer;
}
.simple-list h3 {
    margin: 4px 0;
}
.simple-list p {
    color: #858585;
}
.simple-list *:first-child {

}
.simple-list *:last-child {
    margin-bottom: 0;
}
.simple-list .stretch {
    align-self:center;
}
.simple-list a {
    position:relative;
    cursor:pointer;
}
.simple-list a:hover:before {
    content: '';
    position:absolute;
    background-color: rgba(var(--agency-highlight-color),0.2);
    border-radius:10px;
    left:-4px;
    right: -4px;
    top:-4px;
    bottom:-4px;
}
.icon-list .list-item {
    display: flex;
}
.icon-list .list-item > svg {
    margin-right: 20px;
}*/

.button-action-link {
    border: none;
    background-color: transparent;
    padding: 3px;
    color: rgb(var(--agency-highlight-color), 1);
    cursor: pointer;
    display: inline-flex;
    transition: color 0.2s linear;
}
.button-action-link:not(:disabled):hover {
    color: rgb(var(--agency-highlight-color), 0.6);
    outline: dotted 1px var(--item-link-colour);
}
.button-action-link > *:not(:last-child) {
    margin-right: 10px;
}
.button-action-link:disabled {
    cursor: not-allowed;
    color: rgba(var(--text-color), 0.5);
}


/* INPUTS */
.label-value input, .label-value select, .label-value input[type=text], .label-value input[type=password] {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 3px 0;
    margin: 0;
    display: block;
    border: none;
    border-bottom: 1px solid rgba(var(--border-secondary),1);
    position: relative;
    /*background-color: transparent;*/
    color: rgba(var(--text-color),1);
}
textarea {
    font-family: var(--font-family);
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 3px 3px;
    margin: 0;
    display: block;
    background: none;
    border: 1px solid rgba(var(--border-secondary),1);
    color: rgba(var(--text-color),1);
}

.label-value input:focus, .label-value select:focus, .label-value textarea:focus {
    border-color: rgba(var(--agency-highlight-color),1);
    outline: none;
}


/* Password Strength */
.strength-bar {
    height: 3px;
    background-color: #ff0000;
    width: 0;
}
.strength-message, .match-text {
    font-size: 10px;
    text-align: right;
}

.rotator-wrap {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    perspective: 800px;
}
.rotator {
    max-width: 440px;
    min-width: 200px;
    width: 94%;
    border-radius: 4px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    background-color: rgb(var(--bg-secondary), 1);
    border-top: 4px solid rgb(var(--agency-highlight-color), 1);
    overflow-y: auto;
    transition: transform .3s linear;
}
.rotate {
    transform: rotateY(-90deg);
}
.rotate-back {
    transform: rotateY(90deg);
}

table.data-grid thead tr {
    position: sticky;
    top: 0;
    z-index: 99;
}

/* Table */
.grid-container {
    width: 100%;
}

/* GRID */

/* GRID TABLES */
.et-table {
    box-sizing: border-box !important;
    table-layout: fixed;
    margin: 0;
    width: 1px;
    overflow: auto;
    border: 1px solid #d0d0d0;
    border-radius: 0;
    border-collapse: collapse;
    border: none;
}
.et-table tr {
    line-height: 30px;
    height: 32px;
    padding: 0;
    margin: 0;
}
.et-table th, .et-table td {
    line-height: 20px;
    height: 43px;
    padding: 0 5px;
    margin: 0;
    position: relative;
    white-space: nowrap;
    /*border-bottom: 1px solid #e9e9e9;
    border-right: 1px solid #e9e9e9;*/
    border: none;
    background-color: #fbfbfb;
}

.et-table tr:nth-child(2n+1) td {
    background-color: rgba(var(--agency-highlight-color),0.03);
}
.et-table th {
    border-right: 1px solid #d0d0d0;
}
.et-table .column-title {
    overflow: hidden;
    text-overflow: ellipsis;
}
.et-table td div {
    overflow: hidden;
    text-overflow: ellipsis;
}
.et-table tr:hover td {
    background-color: rgba(var(--agency-highlight-color),0.1);
    cursor: pointer;
}
.et-table tr.editing td {
    background-color: rgba(var(--agency-highlight-color),0.2);
}
.et-table .subtext {
    line-height: 8px;
    font-size: 0.8em;
    opacity: 0.6;
}

/* GRID SELECTOR */
.grid-selector, .grid-selector-all, .colSelector, .grid-row-editing, .grid-filter {
    width: 30px;
    padding: 0;
    text-align: center;
    cursor: pointer;
}
.grid-selector, .grid-row-editing, .grid-filter {
    background: linear-gradient(to right, #EEE, #DDD 100%);
}
.grid-selector::after, .grid-selector-all::after {
    content: '';
    width: 9px;
    height: 9px;
    border: 1px solid #999;
    display: inline-block;
    vertical-align: middle;
}
.grid-selector:hover::after, .grid-selector-all:hover::after {
    border: 4px solid rgba(var(--item-selected-bg),0.5);
    width: 5px;
    height: 5px;
}
.grid-selector.selected::after, .grid-selector-all.selected::after {
    border: 4px solid rgba(var(--item-selected-bg),1);
    width: 5px;
    height: 5px;
}

/* GRIP / SORT */
th .grip {
    position: absolute;
    top: 0px;
    right: -5px;
    bottom: 2px;
    width: 10px;
    cursor: col-resize;
    user-select: none;
    z-index: 1;
}
th .grip::before {
    content: '';
    top: 0;
    bottom: 0;
    position: absolute;
    border-left: 1px solid rgba(var(--border), 1);
    left: 5px;
    display: none;
}
th .grip::after {
    content: '';
    left: 3px;
    top: 40%;
    position: absolute;
    background: rgb(189 189 189);
    width: 5px;
    height: 5px;
    transform: rotate(45deg);
    display: none;
}
th .grip:hover::after {
    background: rgba(var(--item-selected-bg),1);
}
th .grip:hover::before {
    border-color: rgba(var(--item-selected-bg),1);
}
tr:hover .grip::after, tr:hover .grip::before {
    display: block;
}

th .sort {
    position: absolute;
    display: inline-block;
    width: 10px;
    height:10px;
    bottom: 3px;
    right: 3px;
    cursor: pointer;
    /* transform: translateX(-5px);*/
    /*display: none;*/
}
th .sort:after {
    content: '';
    border: 5px solid transparent;
    position: absolute;
    bottom: 0px;
    left: 0;
}
th .sort.down:after {
    border-top-color: rgba(var(--item-selected-bg),1);
    bottom: -6px;
}
th .sort.up:after {
    border-bottom-color: rgba(var(--item-selected-bg),1);
}
th.sortable {
    cursor: pointer;
}

/* GRID CONTAINERS */
.et-grid-wrapper {
    --BarSize: 14px;
    --HeaderHeight: 36px;
    width: 100%;
    display: flex;
    flex-direction: column;
    flex: 1 1 100px;
    min-height: 0;
    background-color: #f5f5f5;
}
.et-grid-main {
    flex: 1 1;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.et-grid-scroller {
    position: relative;
    height: calc(100% - var(--BarSize) - var(--HeaderHeight));
    width: calc(100% - var(--BarSize));
    overflow: scroll;
    scrollbar-width: none;
    z-index: 0;
}
.et-grid-header {
    overflow: hidden;
    min-height:32px;
    user-select: none;
}
.et-grid-presentation {
    width: 3000px;
    height: 2000px;
    background-color: #d0d0d0;
}
.et-grid-v-scrollbar {
    width: var(--BarSize);
    overflow-y: scroll;
    position: absolute;
    right: 0;
    top: 36px;
    bottom: var(--BarSize);
}
.et-grid-v-scrollbar div { 
    width: 1px;
}
.et-grid-h-scrollbar {
    height: var(--BarSize);
    overflow-x: scroll;
    min-height: var(--BarSize);
    margin-right: var(--BarSize);
}
.et-grid-h-scrollbar div { 
    height: 1px; 
}
.et-grid-footer {
    overflow: hidden;
    min-height: 32px;
}
.et-grid-footer td {
    background-color: #fff;
    border-bottom: none;
}

/* GRID EDITORS */
.grid-input-string, .grid-input-select {
    margin: 0;
    padding: 0 5px;
    border: none !important;
    outline: none;
    border-radius: 0 !important;
    position: absolute;
    width: 100% !important;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0
}
.grid-input-string:focus, .grid-input-select:focus {
    outline: none;
}
.grid-input-select {
    margin: 0;
    padding: 0 5px;
    border: none;
    border-radius: 0;
    position: absolute;
    width: 100% !important;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
}
.grid-input-select option {
    padding: 4px 5px;
}

/* TABS */
.tabs-container {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    flex: 1 1 auto;
    min-height: 0;
}
.tab-bar {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: end;
    flex-wrap: wrap-reverse;

}
.tab-bar .tab {
    border-top: 3px solid #d9d9d9;
    background: #f3f3f3;
    padding: 3px 12px 3px 12px;
    position: relative;
    border-radius: 4px 4px 0 0;
    margin: 0px 1px;
    cursor: pointer;
    box-shadow: inset 0px -2px 4px -2px rgba(0, 0, 0, 0.3);
    user-select: none;

}
.tab-bar .tab:hover, .tab-bar .tab.selected:hover {
    border-top: 3px solid rgba(var(--agency-highlight-color), 1);

}
.tab-bar .tab.selected {
    border-top: 3px solid rgba(var(--agency-highlight-color), 1);
    background: #FFF;
    box-shadow: none;
}
.tab-content-container {
    flex: 1 1 auto;
    background-color: #FFF;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    justify-content: stretch;
    position: relative;
    min-height: 0;
    overflow-y:auto;
}
.tab-busy {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10000;
    display: none;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: center;
    transition: opacity 500ms linear;
    user-select: none;
    pointer-events: none;
    background-color: #FFF;
    background-image: url(/Content/et-loading.svg);
    background-size: 100px;
    background-repeat: no-repeat;
    background-position: center center;
}

.tab-busy img {
    width: 100px;
}

/* Special Cases */
/* Level Wages Advance amount input*/
.special-input-amount {
    font-weight: 700;
    font-size: 30px;
    text-align: center;
    width: 80px;
}

.special-button-container {
    position: absolute;
    left: 20px;
    top: 0px;
}
.special-button {
    border-radius: 20px;
    width: 140px;
    height: 40px;
}

/*<500px S*/
@media only screen and (max-width: 1000px) {
    .panel-33, .panel-50 {
        width: 100%;
    }
}
@media only screen and (max-width: 700px) {
    .label-value {
        flex-wrap: wrap;
        padding: 0px 0 8px 0;
    }
    .label-value .value {
        display: inline;
        flex: 0 1 100%;
    }
    .label-value label {
        flex: 1 1 100%;
    }
    .label-value label:first-child::after {
        display: none;
    }
    .login-block {
        display: none;
    }
    #logoDiv {
        height: 50px;
    }
    footer {
        display:none;
    }
}
