/* Theme Toggler */

.ui-switch {
    /* switch */
    --switch-bg: rgb(135, 150, 165);
    --switch-width: 48px;
    --switch-height: 20px;
    /* circle */
    --circle-diameter: 32px;
    --circle-bg: #14549A;
    --circle-inset: calc((var(--circle-diameter) - var(--switch-height)) / 2);

    margin-bottom: 0px !important;
    display: flex;
    justify-content: center;
    align-items: center;
}
  
.ui-switch input {
    display: none;
}
  
.slider {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: var(--switch-width);
    height: var(--switch-height);
    background: var(--switch-bg);
    border-radius: 999px;
    position: relative;
    cursor: pointer;
}
  
.slider .circle {
    top: calc(var(--circle-inset) * -1);
    left: 0;
    width: var(--circle-diameter);
    height: var(--circle-diameter);
    position: absolute;
    background: var(--circle-bg);
    border-radius: inherit;
    background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjAiIHdpZHRoPSIyMCIgdmlld0JveD0iMCAwIDIwIDIwIj4KICAgIDxwYXRoIGZpbGw9IiNmZmYiCiAgICAgICAgZD0iTTkuMzA1IDEuNjY3VjMuNzVoMS4zODlWMS42NjdoLTEuMzl6bS00LjcwNyAxLjk1bC0uOTgyLjk4Mkw1LjA5IDYuMDcybC45ODItLjk4Mi0xLjQ3My0xLjQ3M3ptMTAuODAyIDBMMTMuOTI3IDUuMDlsLjk4Mi45ODIgMS40NzMtMS40NzMtLjk4Mi0uOTgyek0xMCA1LjEzOWE0Ljg3MiA0Ljg3MiAwIDAwLTQuODYyIDQuODZBNC44NzIgNC44NzIgMCAwMDEwIDE0Ljg2MiA0Ljg3MiA0Ljg3MiAwIDAwMTQuODYgMTAgNC44NzIgNC44NzIgMCAwMDEwIDUuMTM5em0wIDEuMzg5QTMuNDYyIDMuNDYyIDAgMDExMy40NzEgMTBhMy40NjIgMy40NjIgMCAwMS0zLjQ3MyAzLjQ3MkEzLjQ2MiAzLjQ2MiAwIDAxNi41MjcgMTAgMy40NjIgMy40NjIgMCAwMTEwIDYuNTI4ek0xLjY2NSA5LjMwNXYxLjM5aDIuMDgzdi0xLjM5SDEuNjY2em0xNC41ODMgMHYxLjM5aDIuMDg0di0xLjM5aC0yLjA4NHpNNS4wOSAxMy45MjhMMy42MTYgMTUuNGwuOTgyLjk4MiAxLjQ3My0xLjQ3My0uOTgyLS45ODJ6bTkuODIgMGwtLjk4Mi45ODIgMS40NzMgMS40NzMuOTgyLS45ODItMS40NzMtMS40NzN6TTkuMzA1IDE2LjI1djIuMDgzaDEuMzg5VjE2LjI1aC0xLjM5eiIgLz4KPC9zdmc+");
    background-repeat: no-repeat;
    background-position: center center;
    -webkit-transition: left 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
    -o-transition: left 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, transform 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
    transition: left 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, transform 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    box-shadow: 0px 2px 1px -1px rgba(0,0,0,0.2), 0px 1px 1px 0px rgba(0,0,0,0.14), 0px 1px 3px 0px rgba(0,0,0,0.12);
    ;
}
  
.slider .circle::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.75);
    border-radius: inherit;
    -webkit-transition: all 500ms;
    -o-transition: all 500ms;
    transition: all 500ms;
    opacity: 0;
}
  
/* actions */
  
.ui-switch input:checked+.slider .circle {
    left: calc(100% - var(--circle-diameter));
    background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjAiIHdpZHRoPSIyMCIgdmlld0JveD0iMCAwIDIwIDIwIj4KICAgIDxwYXRoIGZpbGw9IiNmZmYiCiAgICAgICAgZD0iTTQuMiAyLjVsLS43IDEuOC0xLjguNyAxLjguNy43IDEuOC42LTEuOEw2LjcgNWwtMS45LS43LS42LTEuOHptMTUgOC4zYTYuNyA2LjcgMCAxMS02LjYtNi42IDUuOCA1LjggMCAwMDYuNiA2LjZ6IiAvPgo8L3N2Zz4=");
}
  
.ui-switch input:active+.slider .circle::before {
    -webkit-transition: 0s;
    -o-transition: 0s;
    transition: 0s;
    opacity: 1;
    width: 0;
    height: 0;
}

.text-start {
    text-align: start !important;
}

.text-end {
    text-align: end !important;
}

.navbar-brand img {
    display: none;
}

.navbar-brand span {
    font-size: 24px;
    display: block;
}

.white-content .navbar-brand span {
    display: none;
}

.white-content .navbar-brand img {
    display: block;
}

.footer .copyright a {
    color: white;
    opacity: 0.8;
}

.white-content .copyright a {
    color: #14549A;
    opacity: 1;
}

.sidebar .divider {
    padding: 0px;
}

.sidebar .divider .logo-mini {
    font-size: 15px;
    padding: 2px 0px 0px 2px;
    margin: 0px 15px 0;
}

.sidebar ul li a, .sidebar span.simple-text {
    text-transform: none !important;
}

.sidebar ul li a p {
    font-size: 14px;
}

.sidebar .nav {
    margin-bottom: 85px;
}

.card.card-stats h3.card-title {
    border-bottom: 1px solid rgba(0, 0, 0, 0.199);
    padding-bottom: 10px;
    margin-right: 30px;
    margin-left: 30px;
}

.card .card-header {
    padding-top: 24px;
}

.card .card-header .card-title {
    font-weight: 500;
}

.w-fc {
    width: fit-content;
}

.stat-link {
    text-align: end;
    margin-right: 20px;
}

.stat-body {
    text-align: center;
}

.stat-body .single-stat img {
    width: 70px;
}

.stat-body .single-stat {
    padding: 15px 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.199);
}

.stat-body .single-stat:last-child {
    border: 0px;
}

.stat-body .single-stat .stat-user {
    font-size: 19px;
    font-weight: 500;
    margin-bottom: 6px;
    text-align: start;
}

.stat-body .single-stat .stat-data {
    font-size: 21px;
    font-weight: 600;
    text-align: start;
}

.worksheet-border {
    border-right: 2px solid #14549A;
}

.dataTables_length {
    display: flex;
    justify-content: start;
}

.dataTables_length label {
    display: flex;
    gap: 7px;
    align-items: center;
}

.dataTables_wrapper .form-control-sm {
    font-size: 12px;
}

.dataTables_filter {
    display: flex;
    justify-content: end;
}

.dataTables_filter label {
    display: flex;
    gap: 7px;
    align-items: center;
}

.workflow .workflow-card .dataTables_filter {
    display: none !important;
}

.dataTables_paginate {
    display: flex;
    justify-content: end;
    align-items: center;
}

.dataTables_paginate .page-link {
    color: #222a42b3;
    font-size: 14px;
}

.dataTables_info {
    text-align: start;
    font-size: 14px;
}

.workflow .workflow-card {
    border-radius: 10px;
    width: 100%;
    min-height: 100%;
    max-height: calc(100vh - 30vh);
    z-index: 4;
    position: relative;
    overflow: auto;
}

.workflow .workflow-card .table-responsive tbody {
    width: 100%;
    display: block;
}

.workflow .col-md-3:nth-child(1) .workflow-card {
    border: 2px solid rgb(255, 165, 0, 0.5);
}

.workflow .col-md-3:nth-child(2) .workflow-card {
    border: 2px solid rgb(255, 0, 0, 0.5);
}

.workflow .col-md-3:nth-child(3) .workflow-card {
    border: 2px solid rgb(20, 84, 154, 0.5);
}

.workflow .col-md-3:nth-child(4) .workflow-card {
    border: 2px solid rgb(135, 177, 75, 0.5);
}

.workflow .workflow-card .card-title {
    padding-bottom: 10px;
    margin: 0 !important;
    text-align: center;
}

.workflow .col-md-3:nth-child(1) .workflow-card .card-title {
    border-bottom: 2px solid rgb(255, 165, 0, 0.9);
}

.workflow .col-md-3:nth-child(2) .workflow-card .card-title {
    border-bottom: 2px solid rgb(255, 0, 0, 0.9);
}

.workflow .col-md-3:nth-child(3) .workflow-card .card-title {
    border-bottom: 2px solid rgb(20, 84, 154, 0.9);
}

.workflow .col-md-3:nth-child(4) .workflow-card .card-title {
    border-bottom: 2px solid rgb(135, 177, 75, 0.9);
}

.workflow .workflow-card .table thead {
    display: none;
}

.workflow .workflow-card .table tbody tr {
    display: block;
    margin-bottom: 10px;
    -webkit-transition: all 200ms ease 0s;
    -moz-transition: all 200ms ease 0s;
    -o-transition: all 200ms ease 0s;
    -ms-transition: all 200ms ease 0s;
    transition: all 200ms ease 0s;
}

.workflow .workflow-card .table tbody tr:hover {
    -webkit-transition: all 200ms ease 0s;
    -moz-transition: all 200ms ease 0s;
    -o-transition: all 200ms ease 0s;
    -ms-transition: all 200ms ease 0s;
    transition: all 200ms ease 0s;
    background-color: #786b6b0a;
}

.workflow .workflow-card .table tbody tr:last-child {
    margin-bottom: 0px;
    border-bottom: 0px;
}

.workflow .workflow-card .table tbody tr:last-child td {
    border-bottom: 0px;
}

.workflow .workflow-card .table tbody tr:first-child td {
    border-top: 0px;
}

.workflow .workflow-card .table tbody tr td {
    width: 100%;
    display: block;
    border-right: 0px;
    border-left: 0px;
}

.workflow .workflow-card .app-link {
    cursor: pointer;
    background-color: inherit;
    position: relative;
}

.workflow .workflow-card .dataTables_wrapper .row:last-child:has(> .col-sm-12) {
    display: block;
}

.workflow .workflow-card .dataTables_wrapper .row:first-child > div:has(> .dataTables_length) {
    display: none !important;
}

.workflow .workflow-card .dataTables_wrapper .row:first-child > div:has(> .dataTables_filter) {
    width: 100%;
    max-width: 100%;
    flex: 100%;
    display: flex;
    justify-content: center;
}

.workflow .workflow-card .dataTables_wrapper .row:last-child .col-sm-12.col-md-7,
.workflow .workflow-card .dataTables_wrapper .row:last-child .col-sm-12.col-md-5 {
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 6px;
}

.workflow-card .card-header {
    position: sticky;
    top: 0px;
    width: 100%;
    left: 0px;
    background: #ffffff !important;
    background-color: #ffffff !important;
    z-index: 2;
    --webkit-user-select: none
    --moz-user-select: none;
    --ms-user-select: none;
    user-select: none;
    cursor: auto;
}

.workflow .workflow-card .app-change {
    cursor: pointer;
    color: #1d253ba3;
    -webkit-transition: all 300ms ease 0s;
    -moz-transition: all 300ms ease 0s;
    -o-transition: all 300ms ease 0s;
    -ms-transition: all 300ms ease 0s;
    transition: all 300ms ease 0s;
}

.workflow .workflow-card .app-change:hover {
    color: #1d253b;
}

.workflow .workflow-card .app-change.active-app {
    color: #1d253b;
}

.text-declined {
    color: rgb(255, 0, 0, 0.9) !important;
}

.text-approved {
    color: rgb(20, 84, 154, 0.9) !important;
}

.text-funded {
    color: rgb(135, 177, 75, 0.9) !important;
}

.workflow .workflow-card .dataTables_wrapper .pagination .page-item {
    font-size: 12px;
}

.workflow .workflow-card .dataTables_info {
    font-size: 13px;
}

.workflow .workflow-card .dataTables_wrapper .dataTables_filter label {
    font-size: 13px;
}

.workflow .workflow-card .dataTables_wrapper .form-control-sm {
    font-size: 13px;
    height: calc(1.35em + 0.7rem + 2px);
}

.clear-search {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    cursor: pointer;
    display: none;
    font-size: 18px;
    color: #999;
}

.clear-search:hover {
    color: #424040;
}

.clear-search:focus {
    outline: none;
}

[data-app-search] {
    padding-right: 28px !important;
}

.navbar .dropdown-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
}

.dashboard .col-md-3 .card-stats {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashboard .col-md-3 .card-stats .card-body {
    flex: unset;
}

.dashboard .dashboard-heading {
    font-size: 35px !important;
}

.workflow .workflow-card .app-link {
    font-size: 20px;
    font-weight: 600;
    color: #1d253be0;
}

.workflow .workflow-card .app-link.app-link-funded {
    font-size: x-large;
}

.workflow .workflow-card span.h5 {
    font-size: 16px;
}

#exampleModal .modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    word-wrap: break-word;
}

#exampleModal h2#exampleModalLabel {
    font-size: 30px;
    max-width: 82%;
    width: 100%;
}

#exampleModal #exampleModalLabel h4 {
    font-size: 20px;
}

#exampleModal .app-icon {
    margin-right: 30px;
    max-width: 18%;
    width: 100%;
}

/* #exampleModal .app-icon i {
    font-size: 100px;
} */

.card-header .form-inline {
    gap: 10px;
}

.workflow-card .popover {
    pointer-events: none;
}

.workflow-card .popover.show {
    pointer-events: auto;
}

.popover .popover-body h4 {
    font-size: 19px;
    margin-bottom: 3px;
}

.popover .popover-body h5 {
    font-size: 15px;
    margin-bottom: 0px;
}

/* Media Queries */
@media (max-width: 1024px){
    .sidebar .nav {
        margin-bottom: 10px;
    }

    .workflow .col-md-3 {
        flex: 50%;
        max-width: 50%;
        margin-bottom: 15px;
    }

    .dashboard .col-md-3 .card-stats {
        height: 180px;
    }

    #exampleModal .app-icon i {
        font-size: 80px;
    }

    .popover {
        display: none !important;
    }
}

@media (max-width: 992px){
    .navbar .dropdown-toggle {
        justify-content: start;
    }

    .dashboard .dashboard-heading {
        margin-top: 20px;
    }

    #exampleModal .modal-header {
        flex-direction: row-reverse;
    }

    #exampleModal h2#exampleModalLabel {
        max-width: 80%;
    }

    #exampleModal .app-icon {
        margin-right: 0px;
        max-width: 20%;
    }

    #exampleModal button {
        padding: 5px;
    }
}

@media (max-width: 767px){
    .worksheet-border {
        border-right: 0px;
    }

    .workflow .col-md-3 {
        flex: 100%;
        max-width: 100%;
    }

    .dashboard .col-md-3 .card-stats {
        height: 200px;
    }

    #exampleModal .app-icon i {
        font-size: 60px;
    }

    .card-header .form-inline {
        width: 100%;
        flex-flow: row;
    }

    .card-header .form-inline label {
        width: 30%;
    }

    .card-header .form-inline input {
        width: 70%;
    }
}