@import url('https://fonts.googleapis.com/css2?family=Cabin:ital,wght@0,400..700;1,400..700&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

:root{
    --body-background-color: #f6f6f6;
    --primary-color: #1d2973;
    --primary-btn-hover-color: #3747a9;
    --text-color: #4b5675;
    --red-color: #DC3545;
    --green-color: #28a745;
    --yellow-color: #ffc107;
    --white-color: #ffffff;
    --black-color: #0a0a0a;
    --body-font-size: 14px;
    --border-radius-6px: 6px;
    --border-radius-20px: 20px;
    /* --box-shadow: 0px 3px 4px 0px rgba(0,0,0,.03); */
    --box-shadow: 0 4px 20px 1px #0000000f,0 1px 4px #00000014;
    --text-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);

    --header-font-family: cabin;
    --body-font-family: montserrat;
}

*, *::before, *::after{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    color: var(--text-color) !important;
    font-size: var(--body-font-size) !important;
    overflow-x: hidden !important;
    font-family: var(--body-font-family) !important;
}

h1,h2,h3,h4,h5,h6{
    font-family: var(--header-font-family);
}

img{
    width: 100%;
}

a{
    color: var(--text-color) !important;
    text-decoration: none !important;
}

section{
    max-width: 1220px;
    width: 100%;
    margin-inline: auto;
}

.box-container{
    /* background-color: var(--white-color); */
    /* padding-inline: 30px; */
    padding-block: 10px;
    margin-block: 30px;
    width: 100%;
}

.box-container .box-container-header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.box-container .box-container-header .previous-page{
    font-size: 16px;
}

.box-container .box-container-header h2{
    font-size: 24px;
}

.error-message{
    color: var(--red-color);
    font-size: 12px;
}

button,
.btn{
    display: flex;
    align-items: center;
    cursor: pointer;
    line-height: 1;
    border-radius: var(--border-radius-6px);
    /* height: 40px; */
    padding-inline: 16px;
    gap: 6px;
    border: 1px solid transparent;
    font-weight: 500;
    font-size: 14px !important;
    outline: none;
}

button.primary-btn,
.btn.primary-btn{
    background-color: var(--primary-color) !important;
    color: var(--white-color) !important;
}

button.primary-btn:hover,
.btn.primary-btn:hover{
    background-color: var(--primary-btn-hover-color) !important;
}

.outline-btn{
    border: 1px solid var(--primary-color) !important;
}

.outline-btn:active,
.outline-btn:focus{
    border: 1px solid var(--primary-color);
}

.outline-btn.red{
    outline: 1px solid var(--red-color);
    color: var(--red-color);
}

.outline-btn.red:hover{
    outline: 1px solid var(--red-color);
    color: var(--red-color);
}

.download-btn{
    padding-inline: 4px;
    color: var(--primary-color) !important;
}
.notes-btn{
    padding: 4px;
    background: transparent;
    color: var(--primary-color) !important;
}

.preview-btn{
    padding: 4px;
    background: transparent;
    color: var(--primary-color) !important;
}

.edit-sub-admin{
    padding: 4px;
    background: transparent;
    color: var(--primary-color);
}

.delete-sub-admin{
    padding: 4px;
    background: transparent;
    color: var(--red-color);
}

.view-login-history{
    padding: 4px;
    background: transparent;
    color: var(--primary-color) !important;
}

input,
select,
input[type="file"]{
    box-shadow: none;
    outline: none;
    font-weight: 500;
    font-size: var(--body-font-size) !important;
    line-height: 1;
    background-color: #fcfcfc;
    border-radius: var(--border-radius-6px);
    height: 35px;
    padding-inline-start: 12px;
    padding-inline-end: 12px;
    border: 1px solid #dbdfe9;
    color: var(--text-color);
}

.custom-file-upload {
    font-weight: 500 !important;
    display: flex !important;
    justify-content: start !important;
    align-items: center !important;
    padding-inline-start: 12px;
    padding-inline-end: 12px;
    background-color: #fcfcfc;
    color: var(--text-color) !important;
    font-size: var(--body-font-size) !important;
    border-radius: var(--border-radius-6px);
    cursor: pointer;
    border: 1px solid #dbdfe9;
    height: 35px;
    width: 200px;
}

.notes-file-upload{
    display: none;
}

.pill{
    border: 1px solid;
    border-radius: var(--border-radius-6px);
    padding: 2px 4px;
    font-size: 12px;
}

.pill.role-agent{
    border-color: #21789B;
    color: #21789B;
    background-color: #CDEBF7;
}

.pill.role-team-leader{
    border-color: #D84315;
    color: #D84315;
    background-color: #FFE5D9;
}

.pill.role-operation-head{
    border-color: #71368A;
    color: #71368A;
    background-color: #E0C9F0;
}

.pill.active-pill{
    border-color: var(--green-color);
    background-color: var(--green-color);
    color: var(--white-color);
}
.pill.inactive-pill{
    border: var(--yellow-color);
    background-color: var(--yellow-color);
    color: var(--white-color);
}

.form-container .file {
    opacity: 0;
    width: 0.1px;
    height: 0.1px;
    position: absolute;
}

p.label{
    font-size: var(--body-font-size);
    margin-bottom: 0;
}

.form-container .file-input label {
    background-color: #fcfcfc;
    border: 1px solid #dbdfe9;
    display: block;
    position: relative;
    height: 35px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 400;
    cursor: pointer;
    transition: transform .2s ease-out;
}

.loader-wrapper{
    display: none;
    position: absolute;
    background: rgba(0, 0, 0, 0.7);
    /* display: flex; */
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
    z-index: 1056;
}

.loader {
    width: 50px;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 8px solid var(--primary-color);
    animation:
      l20-1 0.8s infinite linear alternate,
      l20-2 1.6s infinite linear;
}

.layout-wrapper{
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    /* background-color: var(--body-background-color); */
    background-color: var(--white-color);
}

.page-content {
    flex-grow: 1; /* Pushes the footer down */
}

/* Ensure PDF pages fit within the modal width */
#pdfContainer canvas {
    max-width: 100%; /* Prevent horizontal overflow */
    width: 100% !important; /* Force full width */
    height: auto !important; /* Maintain aspect ratio */
    display: block; /* Ensure proper layout */
    margin: 0 auto 1rem auto; /* Center and add spacing between pages */
}

#documentPreviewModal .modal-content{
    max-height: 90vh;
}

/* Ensure the modal body doesn't overflow horizontally */
.modal-body {
    overflow-x: hidden; /* Hide horizontal scroll */
}


/* Table Styles */
table.dataTable.custom-data-table{
    width: 100% !important;
    padding: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 6px;
}
table th, table td {
    text-align: center !important;
    padding: 18px 0px !important;
    font-size: 14px;
    color: #101010 !important;
    font-weight: 400;
}
table thead th{
    text-align: center;
    white-space: nowrap;
}
table thead tr{
    background-color: transparent !important;
}
table.dataTable thead>tr>th.sorting_asc,
table.dataTable thead>tr>th.sorting_desc,
table.dataTable thead>tr>th.sorting,
table.dataTable thead>tr>td.sorting_asc,
table.dataTable thead>tr>td.sorting_desc,
table.dataTable thead>tr>td.sorting{
    cursor: pointer;
}
table.dataTable tbody tr {
    border-bottom: 1px dashed #919EAB !important;
    /* background-color: var(--white-color) !important; */
}
table.dataTable tbody tr td:first-child {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

table.dataTable tbody tr td:last-child {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}
table tbody td{
    font-size: 14px;
    color: #1E1E1E;
}
.dataTables_wrapper .dataTables_paginate .paginate_button{
    font-size: 14px !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button:hover{
    background: #f1f1f4 !important;
    border: 1px solid transparent !important;
    color: #1E1E1E !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button:active,
.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover{
    background: #f1f1f4;
    border: 1px solid transparent !important;
    box-shadow: none;
}
.dataTables_wrapper .dataTables_paginate,
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_info{
    padding-top: 4px !important;
    font-size: 14px;
}
.dataTables_wrapper .pagination{
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
}
/* Table Styles */



/* Header */
.header-wrapper{
    position: relative;
    width: 100%;
    padding-block: 10px;
    box-shadow: var(--box-shadow);
}

.header-inner-container{
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-inline: auto;
}

.header-logo{
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    max-width: 100px;

}

.nav-links-container{
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-link-item {
    padding: 8px 12px;
}

.user-icon-btn{
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 100%;
    background-color: transparent;
    border: 1px solid var(--black-color);
}

.nav-login-btn,
.nav-logout-btn{
    padding: 0;
    font-size: var(--body-font-size) !important;
}

.nav-toggle-button{
    display: none;
}
.nav-toggle-button button{
    background-color: transparent;
    border: 1px solid #f1f1f4;
    border-radius: var(--border-radius-6px);
    cursor: pointer;
}

.profile-action-container{
    display: none;
}
.profile-action-container.show{
    display: block;
    position: absolute;
    right: 0;
    top: 50px;
}

/* Admin header links */
.admin-header-links-divider,
.sub-admin-header-links-divider{
    width: 100%;
    height: 1px;
    background-color: rgba(0, 0, 0, 0.2);
    margin-block: 8px;
}
.admin-header-links{
    display: flex;
    align-items: center;
    gap: 32px;
    padding-block: 6px;
}


/* Header */


/* Footer */
.footer-wrapper{
    max-width: 1220px;
    width: 100%;
    margin-inline: auto;
    padding-block: 10px;
    margin-top: auto;
}
.footer-inner-container{
    display: flex;
    justify-content: center;
    align-items: center;
}
.footer-wrapper p{
    margin-bottom: 0;
}
/* Footer */



/* Login page */
.login-page{
    position: relative;
    overflow: hidden;
}

.login-background-image{
    position: absolute;
    inset: 0;
    z-index: 0;
    height: 100%;
    object-fit: cover;
}

.form-wrapper{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* min-height: calc(100vh - 100px); */
}

.login-page .form-wrapper{
    min-height: calc(100vh - 100px);
    position: relative;
    z-index: 2;
    flex-direction: unset;
}

.form-wrapper .form-container{
    position: relative;
    z-index: 2;
}

.login-page-content{
    color: var(--primary-color);
    text-shadow: var(--text-shadow);
}

.login-page-content h1{
    font-size: 2rem;
    margin-top: 24px;
}

.login-page-content p{
    font-size: 18px;
    margin-bottom: 0;
    font-weight: bold;
}

.login-page-content .logo{
    max-width: 390px;
}

.form-wrapper.centered{
    min-height: calc(100vh - 100px);
}

.form-wrapper .login-form,
.form-wrapper .otp-form,
.form-wrapper .register-sub-admin-form{
    max-width: 370px;
    min-width: 370px;
    width: 100%;
    border-radius: var(--border-radius-20px);
    border: 1px solid #f1f1f4;
    padding: 40px;
    gap: 20px;
    box-shadow: var(--box-shadow);
    background-color: var(--white-color);
}

.form-wrapper .register-sub-admin-form{
    max-width: 500px;
}

.form-wrapper .form-header{
    font-size: 18px;
    text-align: center;
}

.form-wrapper .input-wrapper{
    gap: 4px;
}

.form-wrapper .input-wrapper label,
.form-wrapper .forgot-password,
.form-wrapper .remember-me-container{
    font-size: var(--body-font-size);
}

.form-wrapper span.required,
span.required{
    color: var(--red-color);
    padding-inline: 4px;
}

.form-wrapper .forgot-password a{
    text-decoration: none;
}

.form-wrapper .password-wrapper .password-input-field{
    position: relative;
    width: 100%;
}

.form-wrapper .password-wrapper .toggle-password{
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-color);
    cursor: pointer;

}

.form-wrapper .password-wrapper .password-input-field input{
    width: 100%;
}

.form-wrapper .resend-otp{
    color: var(--primary-color) !important;
    text-decoration: underline !important;
    font-size: 12px !important;
    background-color: transparent !important;
}

.custom-table-container{
    border-radius: var(--border-radius-6px);
    background-color: var(--white-color);
    padding-block: 10px;
    padding-inline: 30px;
    box-shadow: var(--box-shadow);
}

/* Sub admin page */
#edit-sub-admin-form,
#register-sub-admin-form{
    gap: 20px;
}

#editSubAdminModal .form-wrapper,
#addSubAdminModal .form-wrapper{
    align-items: unset;
    min-height: auto;
}

/* Cropper Modal styles */
#cropperModal .modal-body{
    padding: 0;
}

#cropperModal .modal-dialog {
    max-width: 80%;
    max-height: 90vh;
    display: flex;
    align-items: center;
}

#cropperModal .modal-content {
    max-height: 90vh;
    overflow: hidden;
}

#cropperModal .modal-body {
    display: flex;
    justify-content: center;
    align-items: center;
    max-height: 70vh;
    overflow: hidden;
}

#cropperModal #image-preview {
    max-width: 100%;
    max-height: 100%;
    height: auto;
    width: auto;
    display: block;
}
/* Cropper Modal styles */


/* Sub admin page */


/* funding Application Form */

.funding-application-table .download-btn{
    color: var(--primary-color);
}

.funding-application-form-header{
    font-size: 20px;
    text-align: center;
}
.fundingApplicationForm .border{
    border: 1px solid black !important;
    padding-inline: 8px;
    padding-block: 4px;
    height: 100%;
}

.fundingApplicationForm .col-12.col-md-5 .border{
    border-right: none !important;
}

.fundingApplicationForm .input-wrapper{
    position: relative;
}

.fundingApplicationForm .input-wrapper .error-message{
    position: absolute;
    bottom: 0;
    right: 0;
}

.fundingApplicationForm .row>*{
    padding: 0 !important;
}

.form-section-header {
    background: #000;
    color: white;
    padding: 8px;
    margin: 0;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: .5px;
}

.form-disclaimer {
    font-size: 10px;
    padding-block: 4px;
    line-height: 1.2;
}

.form-disclaimer strong{
    font-weight: bold !important;
}

.fundingApplicationForm input,
.fundingApplicationForm select,
.fundingApplicationForm .signature-container{
    background-color: transparent;
    outline: none;
    border: none;
    width: 100%;
}

.legal-entities-options{
    min-height: 35px;
}

.fundingApplicationForm input[type="radio"]{
    width: max-content;
    height: auto;
}

.fundingApplicationForm .signature-container{
    height: 40px;
}

.fundingApplicationForm label {
    white-space: nowrap;
    font-weight: bold;
    color: var(--black-color);
    height: 35px;
    display: flex;
    align-items: center !important;
}

.fundingApplicationForm .legal-entities-options label{
    font-weight: normal;
}

.fundingApplicationForm .submit-button-container{
    display: flex;
    justify-content: center;

}

.fundingApplicationForm .submit-application-btn{
    width: max-content;
}


/* ADMIN DASHBOARD */
.dashboard-wrapper .box-container{
    padding-inline: 0;
}
.information-cards-container .card-container{
    border: 1px solid var(--white-color);
    background-color: var(--white-color);
    border-radius: var(--border-radius-6px);
    box-shadow: var(--box-shadow);
    padding: 16px;
}

.information-cards-container .card-container span{
    font-size: 24px;
}

.information-cards-container .card-container p{
    font-size: var(--body-font-size);
    padding-bottom: 0;
    margin-bottom: 0;
}

.leads-login-container{
    margin-top: 24px !important;
}

.dashboard-card{
    background-color: var(--white-color);
    padding: 16px;
    height: 100%;
    border-radius: var(--border-radius-6px);
    box-shadow: var(--box-shadow);
}

.dashboard-card .dashboard-card-header{
    margin-bottom: 4px;
}

.dashboard-card h3.card-heading{
    font-size: 18px;
    margin-bottom: 0;
}

.dashboard-card a.card-btn{
    font-size: var(--body-font-size);
    color: var(--primary-color) !important;
}

.top-performing-agent-table{
    width: 100%;
}

.top-performing-agent-table table th, table td{
    padding: 14px 0 !important;
}

.top-performing-agent-table.dataTable.no-footer{
    border-bottom: 0 !important;
}

.top-performing-agent-table thead>tr>td:before,
.top-performing-agent-table thead>tr>td:after{
    display: none !important;
}

@media screen and (max-width: 1220px) {
    section{
        max-width: 90%;
        margin-inline: auto;
    }
}


@media screen and (max-width: 768px) {
    .nav-toggle-button{
        display: block;
    }
    .nav-links-container.show{
        display: flex;
        transition: all .3s ease;
    }
    .nav-links-container{
        display: none;
        position: absolute;
        z-index: 9;
        right: 5%;
        top: 60px;
        flex-direction: column;
        height: auto;
        max-width: 200px;
        padding: 20px;
        gap: 10px;
        align-items: flex-end;
        width: 100%;
        border-radius: var(--border-radius-20px);
        border: 1px solid #f1f1f4;
        background-color: var(--white-color);
        box-shadow: var(--box-shadow);
    }
    .nav-link-item{
        padding: 10px;
    }

    .fundingApplicationForm .col-12.col-md-5 .border{
        border-right: 1px solid black  !important;
    }
}

@keyframes l20-1{
    0%    {clip-path: polygon(50% 50%,0       0,  50%   0%,  50%    0%, 50%    0%, 50%    0%, 50%    0% )}
    12.5% {clip-path: polygon(50% 50%,0       0,  50%   0%,  100%   0%, 100%   0%, 100%   0%, 100%   0% )}
    25%   {clip-path: polygon(50% 50%,0       0,  50%   0%,  100%   0%, 100% 100%, 100% 100%, 100% 100% )}
    50%   {clip-path: polygon(50% 50%,0       0,  50%   0%,  100%   0%, 100% 100%, 50%  100%, 0%   100% )}
    62.5% {clip-path: polygon(50% 50%,100%    0, 100%   0%,  100%   0%, 100% 100%, 50%  100%, 0%   100% )}
    75%   {clip-path: polygon(50% 50%,100% 100%, 100% 100%,  100% 100%, 100% 100%, 50%  100%, 0%   100% )}
    100%  {clip-path: polygon(50% 50%,50%  100%,  50% 100%,   50% 100%,  50% 100%, 50%  100%, 0%   100% )}
 }
 @keyframes l20-2{ 
   0%    {transform:scaleY(1)  rotate(0deg)}
   49.99%{transform:scaleY(1)  rotate(135deg)}
   50%   {transform:scaleY(-1) rotate(0deg)}
   100%  {transform:scaleY(-1) rotate(-135deg)}
 }