@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    overflow:hidden;
}

.modal{
    z-index:20 !important;
}

a, .btn-link {
    color: #0366d6;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

app {
    position: relative;
    display: flex;
    flex-direction: column;
}

.top-row {
    height: 3.0rem;
    display: flex;
    align-items: center;
}

.main {
    flex: 1;
}

    .main .top-row {
        background-color: #f7f7f7;
        border-bottom: 1px solid #d6d5d5;
        justify-content: flex-end;
    }

        .main .top-row > a, .main .top-row .btn-link {
            white-space: nowrap;
            margin-left: 1.5rem;
        }

.main .top-row a:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
}

.custom-heading {
    background-image: linear-gradient(10deg, rgb(0, 255, 78) 0%, #3a0647 70%);
    color: white;
}

.payfastlogo {
    display: block;
    text-indent: -9999px;
    width: 100px;
    height: 50px;
    background: url(../images/payfast_logo_colour.svg);
    background-size: 100px 50px;
    background-position:center;
    background-repeat:no-repeat;
}

.snapscanlogo {
    display: block;
    text-indent: -9999px;
    width: 100px;
    height: 50px;
}

.fixed_header{
    width:100%;
    table-layout:fixed;
    border-collapse:collapse;
}

.fixed_header tbody{
    display:block;
    overflow:auto;
    min-height:400px;
    width:100%;
}

.fixed_header thead tr{
    display:block;
}

.sidebar {
    /*background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);*/
    background-image: linear-gradient(20deg, rgb(0, 255, 100) 10%, #3a0647 45%);
}

    .sidebar .top-row {
        background-color: rgba(0,0,0,0.4);
    }

    .sidebar .navbar-brand {
        font-size: 1.1rem;
    }

    .sidebar .oi {
        width: 2rem;
        font-size: 1.1rem;
        vertical-align: text-top;
        top: -2px;
    }

    .sidebar .nav-item {
        font-size: 0.9rem;
        padding-bottom: 0.5rem;
    }

    .sidebar .nav-item:first-of-type {
        padding-top: 1rem;
    }

    .sidebar .nav-item:last-of-type {
        padding-bottom: 1rem;
    }

    .sidebar .nav-item a {
        color: #d7d7d7;
        border-radius: 4px;
        height: 2rem;
        display: flex;
        align-items: center;
        line-height: 2rem;
    }

    .sidebar .nav-item a.active {
        background-color: rgba(255,255,255,0.25);
        color: white;
    }

    .sidebar .nav-item a:hover {
        background-color: rgba(255,255,255,0.1);
        color: white;
    }

.content {
    /*padding-top: 1.1rem;*/
    
}

.navbar-toggler {
    background-color: rgba(255, 255, 255, 0.1);
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#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;
}

@media (max-width: 767.98px) {
    .main .top-row:not(.auth) {
        display: none;
    }

    .main .top-row.auth {
        justify-content: space-between;
    }

    .main .top-row a, .main .top-row .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 768px) {
    app {
        flex-direction: row;
    }

    .sidebar {
        width: 250px;
        /*height: 100vh;*/
        position: sticky;
        top: 0;
    }

    .main .top-row {
        position: sticky;
        top: 0;
    }

    .main > div {
        /*padding-left: 2rem !important;*/
        /*padding-right: 1.5rem !important;*/
        /*border:3px solid pink;*/
    }

    .navbar-toggler {
        display: none;
    }

    .sidebar .collapse {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }
}

.custom-close {
    position: absolute;
    right: 30px;
    top: 15px;
    width: 32px;
    height: 32px;
    color: red;
   /* background-color: transparent;*/
    padding: 1rem;
    margin: -1rem -1rem -1rem auto;
    border: 0;
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: bold;
}

.custom-close:hover {
    opacity: 1;
}

.custom-close:before, .custom-close:after {
    position: absolute;
    left: 15px;
    content: ' ';
    height: 33px;
    width: 2px;
    background-color: #333;
}

.custom-close:before {
    transform: rotate(45deg);
}

.custom-close:after {
    transform: rotate(-45deg);
}

.notification {
    background-color: whitesmoke;
    border-radius: 4px;
    padding: 1.25rem 2.5rem 1.25rem 1.5rem;
    position: relative;
}

    .notification a:not(.button):not(.dropdown-item) {
        color: currentColor;
        text-decoration: underline;
    }

    .notification strong {
        color: currentColor;
    }

    .notification code,
    .notification pre {
        background: white;
    }

        .notification pre code {
            background: transparent;
        }

    .notification > .delete {
        position: absolute;
        right: 0.5rem;
        top: 0.5rem;
    }

    .notification .title,
    .notification .subtitle,
    .notification .content {
        color: currentColor;
    }

    .notification.is-white {
        background-color: white;
        color: #0a0a0a;
    }

    .notification.is-black {
        background-color: #0a0a0a;
        color: white;
    }

    .notification.is-light {
        background-color: whitesmoke;
        color: #363636;
    }

    .notification.is-dark {
        background-color: #363636;
        color: whitesmoke;
    }

    .notification.is-primary {
        background-color: #00d1b2;
        color: #fff;
    }

    .notification.is-link {
        background-color: #3273dc;
        color: #fff;
    }

    .notification.is-info {
        background-color: #209cee;
        color: #fff;
    }

    .notification.is-success {
        background-color: #23d160;
        color: #fff;
    }

    .notification.is-warning {
        background-color: #ffdd57;
        color: rgba(0, 0, 0, 0.7);
    }

    .notification.is-danger {
        background-color: #ff3860;
        color: #fff;
    }


::-webkit-input-placeholder {
    text-align: center;
}

:-moz-placeholder { /* Firefox 18- */
    text-align: center;
}

::-moz-placeholder { /* Firefox 19+ */
    text-align: center;
}

:-ms-input-placeholder {
    text-align: center;
}


.flexi-div{
    border:solid 1px;
    box-sizing:border-box;
}

.flexi-container{
    width:80%;
    margin:0.25em auto;
    display:table;
/*    background-color:lightblue;*/

}

.flexi-container .box-1{
    display:table-cell;
    vertical-align:top;
    text-align:center;
    position:relative;
}

.flexi-img{
    position:absolute;
    object-fit:cover;
    height:100%;
    width:100%;
}

.flexi-div>div:last-child{
    background-color:lightgreen;
}

.bis{
    display:flex;
    flex-wrap:wrap;
}

.bis>div:nth-child(2){
    flex:1;
/*    background-color:tomato;*/
}

.bis>div:last-child{
    min-width:100%;
}

.test-sample {
    font-size: calc(14px + (26 - 14) * ((100vw - 300px) / (1600 - 300)));
    line-height: calc(1.3em + (1.5 - 1.2) * ((100vw - 300px)/(1600 - 300)));
}

.font-resizer {
    font-size: calc(7px + (12 - 7) * ((100vw - 300px) / (1600 - 300)));
    line-height: calc(1.3em + (1.5 - 1.2) * ((100vw - 300px)/(1600 - 300)));
}

.ui-treenode-content {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size:8pt;    
    /*padding: 0.375rem 0.25rem;
    margin: 1px 0;*/
}

.dropzone {
   /* padding: 1px;
    border: 1px dashed #75868a;*/
    list-style: none;
}

.no-drop {
    border: 1px dashed red;
}

.can-drop {
    border: 1px dashed green;
}

.draggable {
    /*margin-bottom: 10px;*/
    /*padding: 10px 25px;*/
    padding: 2px 2px;
    /*border: 1px solid #424d5c;*/
    cursor: grab;
    /*background: #5c6b7f;
    color: #ffffff;*/
    /* border-radius: 5px;*/
    /*width: 250px;*/
}

    .draggable:active {
        cursor: grabbing;
    }

.dragging {
    cursor: grabbing;
}

.truncate {
    width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.caret {
    cursor: pointer;
    -webkit-user-select: none; /* Safari 3.1+ */
    -moz-user-select: none; /* Firefox 2+ */
    -ms-user-select: none; /* IE 10+ */
    user-select: none;
}

    .caret::before {
        cursor: pointer;
        content: "\25B6";
        color: black;
        display: inline-block;
        margin-right: 6px;
    }

.caret-down::before {
    cursor: pointer;
    content: "\25B6";
    color: black;
    display: inline-block;
    margin-right: 6px;
    transform: rotate(90deg);
}

.nested {
    display: none;
}

.active {
    display: block;
}

.my-reconnect-modal > div {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    overflow: hidden;
    background-color: #fff;
    opacity: 0.8;
    text-align: center;
    font-weight: bold;
    vertical-align:middle;
}

.components-reconnect-hide > div {
    display: none;
}

.components-reconnect-show > div {
    display: none;
}

.components-reconnect-show > .show {
    display: block;
}

.components-reconnect-failed > div {
    display: none;
}

.components-reconnect-failed > .failed {
    display: block;
}

.components-reconnect-rejected > div {
    display: none;
}

.components-reconnect-rejected > .rejected {
    display: block;
}


#main {
    margin: 50px 0;
}

#main #faq .card {
    margin-bottom: 30px;
    border: 0;
}

#main #faq .card .card-header {
    border: 0;
    -webkit-box-shadow: 0 0 20px 0 rgba(213, 213, 213, 0.5);
    box-shadow: 0 0 20px 0 rgba(213, 213, 213, 0.5);
    border-radius: 2px;
    padding: 0;
}

#main #faq .card .card-header .btn-header-link {
    color: #fff;
    display: block;
    text-align: left;
    background: #FFE472;
    color: #222;
    padding: 20px;
}

#main #faq .card .card-header .btn-header-link:after {
    content: "\f107";
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    float: right;
}

#main #faq .card .card-header .btn-header-link.collapsed {
    background: #A541BB;
    color: #fff;
}

#main #faq .card .card-header .btn-header-link.collapsed:after {
    content: "\f106";
}

#main #faq .card .collapsing {
    background: #FFE472;
    line-height: 30px;
}

#main #faq .card .collapse {
    border: 0;
}

#main #faq .card .collapse.show {
    background: #FFE472;
    line-height: 30px;
    color: #222;
}

#watermark {
    position: fixed;
    bottom: 5px;
    right: 5px;
    opacity: 0.5;
    z-index: 99;
    color: white;
}