@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');
app {
    position: relative;
    display: flex;
    flex-direction: column;
}
/* grid system */
.wrapper {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
}
sidebar {
    width: 200px;
}
#navbarCollapse {
    flex-direction: column;
    align-items: start;
    justify-content: space-between;
}
nav.navbar {
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
}
main {
    width: 100%;
    padding: 0.5rem 1rem;
}


/* custom styles */
.custom-switch {
    line-height: 1.5rem;
}
.navbar-expand-lg .navbar-nav .nav-link {
    padding: .5rem 0;
}

.link-dashed {
    text-decoration: none;
    border-bottom: 1px dashed #a6b4c0;
    display: inline;
    line-height: 1.5em;
}

.link-dashed:hover,
.link-dashed:focus {
    text-decoration: none;
    border-bottom: 1px dashed;
}



/* media */
/* 992 px and less*/
@media screen and (max-width: 991px) {
    .wrapper {
        flex-direction: column;
    }
    sidebar {
        width: 100%;
    }
    .navbar-nav {
        align-items: center;
    }
    nav.navbar {
        flex-direction: row;
    }
}
#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.test {
    position: relative;
    display: block;
    padding: .5rem .75rem;
    margin-left: -1px;
    line-height: 1.25;
    color: #007bff;
    background-color: #fff;
}

.table-bottom {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
}

/* dark */

body.dark {
    background-color: #1b1d1f;
    color: #9ea1a5;
}


body.dark table,
body.dark table .thead-dark th {
    color: #9ea1a5;
}


body.dark .table th, 
body.dark .table td {
    border-top: 1px solid #454d55;
}

body.dark .table thead th {
    border-bottom: 1px solid #454d55;
}

body.dark .table-hover tbody tr:hover {
    color: #c5c5c5;
}

.table th:hover{
    cursor: pointer;
}

body.dark .custom-switch .custom-control-label::after {
    background-color: #9ea1a5;
}

body.dark .nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    color: #9ea1a5;
    background-color: #343a40;
}

body.dark .custom-control-label::before
{
    background-color: #1b1d1f;
    border: #454d55 solid 1px;
}

body.dark .form-control,
body.dark .input-group-text,
body.dark .custom-file-label,
body.dark .custom-file-label::after,
body.dark .img-thumbnail,
body.dark .page-link,
body.dark .page-item.disabled .page-link {
    color: #b8c3d2;
    background-color: #343a40;
    border: 1px solid #454d55;
}


body.dark .form-control:disabled, 
body.dark .form-control[readonly],
body.dark .page-item.disabled .page-link {
    opacity: .4;
}

body.dark .page-link:hover {
    background-color: #454d55;
}

body.dark .custom-select {
    background: #343a40 url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='4' height='5' viewBox='0 0 4 5' %3e%3cpath fill='%239ea1a5' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e") no-repeat right 0.75rem center/8px 10px;
    border: 1px solid #454d55;
    color: #9ea1a5;
}

.copy-link{
    cursor: pointer;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type=number] {
    -moz-appearance: textfield;
}
body.dark .table-hover tr:hover td {
    background-color: rgb(255 255 255/6%);
}
body:not(.dark) .table-hover tr:hover td {
    background-color: rgb(0 0 0/6%);
}

.preloader{
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    pointer-events: none;
    background: rgba(0,0,0, 0.1);
    z-index: 10;
}

.loader-container{
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    pointer-events: none;
    background: rgba(0,0,0, 0.4);
    z-index: 10;
}

.loader,
.loader:before,
.loader:after {
    background: #ffffff;
    -webkit-animation: load1 1s infinite ease-in-out;
    animation: load1 1s infinite ease-in-out;
    width: 1em;
    height: 4em;
}
.loader {
    color: #ffffff;
    text-indent: -9999em;
    margin: 88px auto;
    position: relative;
    font-size: 11px;
    -webkit-transform: translateZ(0);
    -ms-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-animation-delay: -0.16s;
    animation-delay: -0.16s;
}
.loader:before,
.loader:after {
    position: absolute;
    top: 0;
    content: '';
}
.loader:before {
    left: -1.5em;
    -webkit-animation-delay: -0.32s;
    animation-delay: -0.32s;
}
.loader:after {
    left: 1.5em;
}
@-webkit-keyframes load1 {
    0%,
    80%,
    100% {
        box-shadow: 0 0;
        height: 4em;
    }
    40% {
        box-shadow: 0 -2em;
        height: 5em;
    }
}
@keyframes load1 {
    0%,
    80%,
    100% {
        box-shadow: 0 0;
        height: 4em;
    }
    40% {
        box-shadow: 0 -2em;
        height: 5em;
    }
}
.ui-datatable-data td .ui-cell-data, .ui-column-footer{
    overflow: auto;
    white-space: normal;
    text-overflow: initial;
}

.ui-datatable {
    border-radius: 4px;
}

body.dark .ui-datatable .ui-datatable-thead th,
body.dark .ui-datatable .ui-datatable-scrollable-header,
body.dark .ui-datatable .ui-datatable-tfoot td,
body.dark .ui-datatable .ui-datatable-scrollable-footer {
    background-color: #343a40;
}

body.dark .ui-datatable .ui-datatable-even > td,
body.dark .ui-datatable .ui-datatable-odd > td,
body.dark .ui-paginator {
    background-color: #1b1d1f;
}

body.dark .ui-datatable .ui-datatable-thead th .ui-column-title,
body.dark .ui-datatable .ui-datatable-tfoot td {
    color: rgba(255, 255, 255, 0.5);
}

body.dark .ui-datatable {
    border: solid 1px #454d55;
    background-color: #1b1d1f;
    border-radius: 4px;
}

body.dark .ui-datatable .ui-datatable-thead th:not(:last-child),
body.dark .ui-datatable .ui-datatable-data td:not(:last-child),
body.dark .ui-datatable .ui-datatable-tfoot td:not(:last-child) {
    border-right: solid 1px #454d55;
}

body.dark .ui-datatable .ui-datatable-scrollable-header,
body.dark .ui-datatable .ui-datatable-data td {
    border-bottom: solid 1px #454d55;
}

body.dark .ui-datatable .ui-datatable-scrollable-footer,
body.dark .ui-paginator-bottom {
    border-top: solid 1px #454d55;
}

body.dark .ui-paginator-page.ui-state-active {
    background-color: #343a40;
    color: #a0a0a0;
    border: 1px solid #444749;
}

body.dark .ui-paginator-page {
    background-color: #1b1d1f;
}

body.dark .ui-button:not(.ui-state-disabled):hover:not(:active),
body.dark .ui-paginator-element:not(.ui-state-disabled):hover:not(:active) {
    box-shadow: none;
}

body.dark .ui-paginator-last,
body.dark .ui-paginator-next {
    background-color: #343a40;
}
