html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

html {
    position: relative;
    min-height: 100%;
}

body {
/*    margin-top: 57px;
*/    background-color: #fcfcfc;
    scroll-behavior: smooth;
}

main {
    min-height: 75vh;
}

a {
    text-decoration: none;
}

    a:hover {
        text-decoration: underline;
    }

.footer {
    line-height: normal !important;
    padding-top: 2em;
    padding-bottom: 2em;
    min-height: 25vh;
    background: #ebe3df !important;
}

.nav-item {
    padding: 0em .7em;
    margin: 0 2px;
    text-overflow: ellipsis;
    overflow: hidden;
    text-wrap: none;
    white-space: nowrap;
}

    .nav-item.active {
        background: #eeeeef;
        border-radius: 4px;
    }

.nav-pills .nav-item.active .nav-link {
    color: rgb(211, 62, 45) !important
}

.nav-item.active .nav-link {
    color: rgb(211, 62, 45) !important;
}

    .nav-item.active .nav-link:hover {
        color: rgb(253, 128, 2) !important;
    }

.nav-pills .nav-item {
    padding: 0em;
    margin-bottom: 2px;
}

.nav-link {
    color: black;
}

    .nav-link:hover {
        text-decoration: none;
        color: rgb(211, 62, 45) !important;
    }

    .nav-link.active {
        color: rgb(253, 128, 2) !important;
    }

.nav-item:hover {
    background: #e6e6e6;
    border-radius: 4px;
    color: rgb(211, 62, 45) !important;
}

.nav-item:hover {
    color: rgb(211, 62, 45) !important;
}

.navbar-nav .nav-item.active {
    background: #e6e6e6;
    border-radius: 4px;
}

.navbar-nav .nav-item .nav-link.active {
    color: rgb(211, 62, 45) !important;
}


.nav-item.active:hover {
    background: #e6e6e6;
    color: rgb(211, 62, 45) !important;
}


a.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: break-all;
}

a {
    color: #0077cc;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    color: rgb(211, 62, 45) !important;
    background-color: #1b6ec2;
    border-color: #1861ac;
}


.box-shadow {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
    font-size: 1rem;
    line-height: inherit;
}

.footer {
    width: 100%;
    white-space: nowrap;
}

.side-navbar {
    width: 240px;
    min-height: 50vh;
    position: fixed;
    margin-left: -300px;
    transition: 0.5s;
    border-right: 1px solid #ddd;
}

    .side-navbar.nav-link:active,
    .side-navbar.nav-link:focus,
    .side-navbar.nav-link:hover {
        background-color: #ffffff26;
    }

.border-gradient {
    border-right: 10px solid;
    border-image-slice: 1;
    border-width: 5px;
}

.border-gradient-purple {
    border-image-source: linear-gradient(to left, #743ad5, #d53a9d);
}

.my-container {
    transition: 0.4s;
}

.active-nav {
    margin-left: 0;
}
/* for main section */
.active-cont {
    margin-left: 240px;
}

#menu-btn {
}

footer h4 {
    text-transform: uppercase;
}

.text-ellipsized {
    text-overflow: ellipsis;
    overflow: hidden;
    text-wrap: none;
    white-space: nowrap;
}

.card {
    box-shadow: 0 0.25rem .5rem rgba(0, 0, 0, 0.05) !important;
    margin-bottom: 1.5rem !important;
    border-radius: .5rem;
}

form .card-footer {
    text-align: right;
    background: #f8f9fa;
}

.card-footer label {
    color: rgba(33, 37, 41, 0.75);
    font-size: 0.9em;
}

.card-header {
    background: #eeeeef;
    padding: .2rem;
}

.loan-card-header {
    background: rgb(16, 98, 172);
    color: white;
    border-top-left-radius: .5rem;
    border-top-right-radius: .5rem;
}
.loan-card-header2 {
    border-top-left-radius: .5rem;
    border-top-right-radius: .5rem;
    margin: 0;
}

.loan-card-body {
    background: rgb(229, 242, 255);
    border-bottom-left-radius: .5rem;
    border-bottom-right-radius: .5rem;
    margin: 0;
}

.loan-card-body2 {
    border-bottom-left-radius: .5rem;
    border-bottom-right-radius: .5rem;
    margin: 0;
}



/* Multi-step form progress bar */

#progressbar {
    margin-bottom: 30px;
    overflow: hidden;
    /*CSS counters to number the steps*/
    counter-reset: step;
    width: 100%;
    text-align: center;
}

    #progressbar li {
        list-style-type: none;
        color: rgb(51, 51, 51);
        text-transform: uppercase;
        font-size: .75em;
        width: 25%;
        float: left;
        position: relative;
    }

        #progressbar li:before {
            content: counter(step);
            counter-increment: step;
            width: 20px;
            line-height: 20px;
            display: block;
            font-size: 10px;
            color: #333;
            background: white;
            border-radius: 3px;
            margin: 0 auto 5px auto;
        }
        /*progressbar connectors*/
        #progressbar li:after {
            content: '';
            width: 100%;
            height: 2px;
            background: white;
            position: absolute;
            left: -50%;
            top: 9px;
            z-index: -1; /*put it behind the numbers*/
        }

        #progressbar li:first-child:after {
            /*connector not needed before the first step*/
            content: none;
        }
        /*marking active/completed steps green*/
        /*The number of the step and the connector before it = green*/
        #progressbar li.active:before, #progressbar li.active:after {
            background: #212529;
            color: white;
        }


.v-progressbar {
    padding: 0;
    counter-reset: step;
}

    .v-progressbar li {
        list-style-type: none;
        display: block;
    }

        .v-progressbar li:before {
            content: counter(step);
            counter-increment: step;
            width: 20px;
            color: #000;
            display: inline-block;
            background: #eee;
            border-radius: 3px;
            margin: 0 .5em 0 0;
            text-align: center;
        }
        /*progressbar connectors*/
        .v-progressbar li:after {
            content: '';
            width: 4px;
            margin-left: 8px;
            height: 20px;
            background: #eee;
            display: block;
            z-index: -1; /*put it behind the numbers*/
        }

        .v-progressbar li:last-child:after {
            /*connector not needed before the first step*/
            content: none;
        }
        /*marking active/completed steps green*/
        /*The number of the step and the connector before it = green*/
        .v-progressbar li.active:before, .v-progressbar li.active:after {
            background: #212529;
            color: white;
        }

a.btn {
    text-decoration: none;
}

    a.btn:hover {
        text-decoration: none;
    }

.form-label {
    color: #6c757d !important;
    font-size: smaller;
    margin: 0;
    padding: 0;
}

.field-validation-error {
    font-size: smaller;
    color: #dc3545;
}

h5, h6 {
    font-weight: lighter;
}

.text-ellipsis-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.text-ellipsis-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.text-ellipsis-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

#qrCode > img {
    text-align: end;
    display: inline !important;
}

.sidebar-menu {
}

    .sidebar-menu a {
        justify-content: space-between !important;
        position: relative;
        display: block;
        display: flex !important;
        align-items: center !important;
        border-bottom: 1px solid #eee;
        padding: .2em .5em;
        color: #000;
    }

        .sidebar-menu a:hover {
            color: black;
            background: #eee;
            text-decoration: none;
        }

        .sidebar-menu a i {
            color: #0d6efd;
        }

.action-bar .btn {
    margin-left: .25em;
}

.required::after {
    content: "*";
    color: #dc3545;
}

.account-bg {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0) 0%, rgba(0,0,0,.5) 100%);
}

.card-body .row {
    margin-top: 1rem !important;
}

    .card-body .row:first-of-type {
        margin-top: 0em !important;
    }

.card-body label {
    color: #6c757d;
    margin-bottom: 0;
}

.user-initials {
    text-align: center;
    color: white;
    background: #555;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    float: left !important;
    margin-right: .5em;
}

.icon {
    font-size: 1.5em;
    color: grey;
}

.icon-size {
    font-size: 1.2em;
}

.card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

    .card-link:hover {
        text-decoration: none;
    }

    .card-link .card {
        transition: transform 0.2s;
    }

        .card-link .card:hover {
            transform: scale(1.02);
        }

.card-uniform {
    height: 130px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

    .card-uniform:hover {
        transform: scale(1.05);
    }

.card.board1 {
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(137, 137, 137, 0.25);
    color: #fff;
    margin: 0;
}

.icon {
    font-size: 1.5em;
    color: grey;
}

.icon-size {
    font-size: 1.2em;
}

.card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

    .card-link:hover {
        text-decoration: none;
    }

    .card-link .card {
        transition: transform 0.2s;
    }

        .card-link .card:hover {
            transform: scale(1.02);
        }

.card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.icon-large {
    font-size: 3rem;
}

.card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

h3, .h3, h4, .h4 {
    font-weight: lighter;
}

h4, .h4 {
    font-weight: normal;
}

.btn-primary {
    background: linear-gradient(90deg, rgb(253, 128, 2), rgb(211, 62, 45));
    border-color: rgb(211, 62, 45);
    border-radius: .5rem;
}

    .btn-primary:hover,
    .btn-primary:active {
        background: #ffffff !important;
        color: rgb(253, 128, 2) !important;
        border-color: rgb(211, 62, 45) !important;
    }


.btn-outline-primary {
    border-color: rgb(211, 62, 45);
    color: rgb(253, 128, 2);
    border-radius: .5rem;
}

    .btn-outline-primary:hover,
    .btn-outline-primary:active,
    .btn-outline-primary:focus,
    .btn-outline-primary.show {
        background: linear-gradient(90deg, rgb(253, 128, 2), rgb(211, 62, 45));
        border-color: rgb(211, 62, 45);
        color: #ffffff;
    }

.btn-check + .btn-outline-primary {
    color: #333;
    border-color: #A9A9A9;
}


.btn-check:checked + .btn-outline-primary,
.btn-check:active + .btn-outline-primary,
.btn-check:focus + .btn-outline-primary,
.btn-check:hover + .btn-outline-primary {
    background: #E5E4E2;
    border-color: #808080;
    color: #444;
}

.table {
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 8px;
    overflow: hidden;
}

    .table thead th:first-child {
        border-top-left-radius: 8px;
    }

    .table thead th:last-child {
        border-top-right-radius: 8px;
    }

    .table tbody tr:last-child td:first-child {
        border-bottom-left-radius: 8px;
    }

    .table tbody tr:last-child td:last-child {
        border-bottom-right-radius: 8px;
    }


.icon-circle {
    background: rgb(16, 98, 172);
    color: white;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 2rem;
    height: 2rem;
    font-size: 1rem;
}


.details-footer {
    background: rgb(243, 244, 248);
    border-radius: 0 0 .5rem .5rem;
}

.nav-item-no-bg-hover:hover {
    background: none !important;
    color: rgb(211, 62, 45) !important;
}

.nav-link-no-bg-hover:hover {
    background: none !important;
    color: rgb(211, 62, 45) !important;
}

.list-group-item:hover {
    color: rgb(211, 62, 45) !important;
}


.pagination {
    --bs-pagination-active-color: rgb(211, 62, 45);
    --bs-pagination-active-bg: #e6e6e6;
}

#progressBar {
    display: flex;
    list-style-type: none;
    padding: 0;
    margin: 0 0 20px 0;
}

    #progressBar li {
        flex: 1;
        text-align: center;
        padding: 20px 10px 10px;
        border-bottom: 2px solid #ccc;
        position: relative;
        overflow: visible;
    }

        #progressBar li.completed {
            border-color: #ccffcc;
            color: #008000;
        }

        #progressBar li.current {
            border-color: #59b5f7;
            color: #59b5f7;
        }

        #progressBar li.upcoming {
            border-color: #ccc;
            color: #ccc;
        }

        #progressBar li::after {
            content: '';
            position: absolute;
            width: 20px;
            height: 20px;
            background: white;
            border: 2px solid #ccc;
            border-radius: 50%;
            top: 0;
            left: 50%;
            transform: translate(-50%, -50%);
        }

        #progressBar li.completed::after {
            background: green;
            border-color: green;
        }

        #progressBar li.current::after {
            background: blue;
            border-color: blue;
        }


@media print {
    body, html {
        font-size: 12px; 
        line-height: 1.4;
    }

    .container, .my-container, main {
        padding: 0;
        margin: 0 auto;
        width: 100%;
    }

    .row {
        display: flex;
        width: 100%;
        margin: 0;
        padding: 0;
        flex-wrap: nowrap;
    }

    .col, .col-md-6, .col-lg-6, .col-12 {
        width: 50% !important; 
        float: none;
        margin: 0;
        padding: 0;
    }

    .col-lg-6, .col-md-6 {
        max-width: 50% !important;
    }

        .col-md-6.text-md-end {
            text-align: right;
        }

    .img-fluid {
        height: 40px;
    }
    table {
        width: 100%;
        border-collapse: collapse;
        font-size: 12px;
    }

        table th, table td {
            padding: 8px;
            border: none;
        }

        table td {
            text-align: right;
        }

            table td:first-child {
                text-align: left;
            }

    .invoice-header,
    .invoice-content,
    .invoice-totals {
        page-break-inside: avoid;
    }

    .page-break {
        page-break-before: always;
    }

    .circle-check {
        width: 18px;
        height: 18px;
        display: inline-flex;
        justify-content: center;
        align-items: center;
    }
    nav, header, footer, .side-navbar, .action-bar, .breadcrumb, .no-print {
        display: none !important;
    }
    .balEnd{
        text-align: right;
    }
    .statdesc {
        text-align: left;
    }
}