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

body {
    font-family: 'Switzer', sans-serif;
}


.submit-button {
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 16px;
    font-weight: 600;
    line-height: 18px;
}

.submit-button:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.timeline-event:after {
    content: "";
    border: 1px dashed;
    left: -17px;
    position: absolute;
    top: 0;
    height: 100%;
}
.timeline-event:first-child:after {
    height: 50%;
    top: auto;
    bottom: 0;
}
.timeline-event:last-child:after {
    height: 50%;
}
.status-box::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-color: #1F2937;
    z-index: 1;
    border-radius: 50%;
}
.timeline > .timeline-event:only-child::after {display: none;}
.timeline-event .status-box .dropdown-menu.show {
    width: 402px;
    padding: 8px 10px;
}
.timeline-event .status-box .dropdown-menu.show .dropdown-item {
    white-space: normal;
    font-size: 12px;
    line-height: 19px;
    padding: 0;
}



@media (min-width: 768px) {
    .container-custom {
        max-width: 686px;
    }
}

/* lender tabs */
.lender-tabs .nav-link {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
    font-size: 18px;
    line-height: 18px;
    padding: 10px 16px;
    border-radius: 8px;
    background-color: var(--white-color);
}

.lender-tabs .nav-link.active {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.lender-tabs .nav-link:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.lender-tabs .tab-title {
    font-size: 14px;
    color: var(--text-color);
}


/* lenders dropdown */
.lenders-dropdown ul li:not(:last-child) .contract-card {
    border-bottom: 1px solid #dee2e6;
}

.lenders-dropdown .action-yes {
    background-color: #fff3cd;
    color: #856404;
    border-radius: 12px;
    padding: 0.25rem 0.75rem;
    font-weight: 500;
}

.lenders-dropdown .action-no {
    background-color: #d1e7dd;
    color: #0f5132;
    border-radius: 12px;
    padding: 0.25rem 0.75rem;
    font-weight: 500;
}


/* status and content list  */
.timeline-event {
    position: relative;
    padding: 8px 0;
    /* padding-left: 1.5rem; */
}

.timeline-event-content {
    color: var(--text-color);
    font-size: 14px;
}

.timeline-event-content::before {
    content: '';
    position: absolute;
    left: -1.3rem;
    top: 14px;
    width: 10px;
    height: 10px;
    background-color: #dee2e6;
    z-index: 1;
    transform: rotate(45deg);
}

.timeline-event-content.highlight::before {
    background: #355FB3;
}

.timeline-event.highlight::before {
    background-color: #0d6efd;
    /* Bootstrap primary */
}

.timeline-event.final::before {
    background-color: #212529;
}

.flag-event .timeline-event-content::before {
    background-color: #355FB3;
}




.flag-event .timeline-event-content::before {
    background-color: #355FB3;
}

.flag-event-gray .timeline-event-content::before {
    background-color: #D1D5DB;
}

.timeline-event-status:first-child {
    padding-top: 0;
}



.timeline-event-status:first-child:after {
    top: auto;
    height: 60%;
    bottom: -6%;
} */






.timeline-event:after {
    content: "";
    border: 1px dashed var(--primary-color);
    left: -17px;
    position: absolute;
    top: 0;
    height: 100%;
}
.timeline-event:first-child:after {
    height: 50%;
    top: auto;
    bottom: 0;
}
.timeline-event:last-child:after {
    height: 50%;
}
.status-box::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-color: var(--primary-color);
    z-index: 1;
    border-radius: 50%;
}
.timeline > .timeline-event:only-child::after {
  display: none;
}

.completed-status-badge {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 20px;
    padding: 2px 8px;
    font-size: 0.75rem;
    margin-left: 0.5rem;
    background: #ECFDF5;
}

.incompleted-status-badge {
    border: 1px solid #F97316;
    color: #F97316;
    border-radius: 20px;
    padding: 2px 8px;
    font-size: 0.75rem;
    margin-left: 0.5rem;
    background: #FFF7ED;
}

.flag-timeline-event:first-child::after {
    top: 14px;
    height: 100%;
}

.timeline-event .status-box .dropdown-menu.show {
    width: 402px;
    padding: 8px 10px;
}
.timeline-event .status-box .dropdown-menu.show .dropdown-item {
    white-space: normal;
    font-size: 12px;
    line-height: 19px;
    padding: 0;
}
@media (max-width:767px) {
    .portal-wrapper p {margin-top: 4px !important;}
    .status-title {gap: 2px !important;}
    .portal-wrapper h2 {
        font-size: 16px !important;
    }
    .portal-wrapper h1 {
        font-size: 23px !important;
    }
    .fifteen-year-credit-response h4 {
        font-size: 16px;
        line-height: 24px;
    }
    .portal-wrapper .lender-tabs .nav-link {
            font-size: 14px !important;
        }
    .status-title {
        font-size: 14px;
        }
    }
    @media (max-width: 575px) {
    .timeline-event-content::before { left: -16px;}
    .status-box::before { left: -19px;}
    .timeline-event:after {left: -12px;}
    .timeline-event .status-box .dropdown-menu.show {
        width: 280px;
        padding: 8px 10px;
    }
}


.status-box {
    background-color: #FBFBFB;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-top: 0.5rem;
    width: fit-content;
    border: 1px solid #E5E7EB;
}

.status-box strong {
    font-size: 1rem;
}

.status-box small {
    color: #6c757d;
}

.info-icon {
    cursor: pointer;
}

.timeline-event-final:after {
    content: '';
    border-left: 2px dashed;
    display: block;
    position: absolute;
    height: 100%;
    top: 50%;
    left: -17px;
}

.timeline-event-content .timeline-date {
    color: #949494;
    margin-left: 8px;
}


.bank-details .bank-details-item input {
    border-color: #E4E7EC;
    border-radius: 8px;
    padding: 8px 12px;
}

.bank-details .bank-details-item input:focus {
    border-color: #0C1D05;
    box-shadow: none;
}

/* drag and drop css file drop zone */
.file-dropzone .drop-area {
    border: 2px dashed #ccc;
    border-radius: 8px;
    text-align: center;
    padding: 4.33rem 1rem;
    color: #6c757d;
    cursor: pointer;
    transition: border-color 0.3s;
}

.file-dropzone .drop-area.dragover {
    border-color: #0d6efd;
    background-color: #f8f9fa;
}

.file-dropzone .delete-icon {
    position: absolute;
    top: 10px;
    right: 16px;
    font-size: 1.1rem;
    color: #dc3545;
    cursor: pointer;
    display: none;
}

.file-dropzone.file-selected .delete-icon {
    display: block;
}

.audit-logs {
    margin-top: 16px;
    padding: 12px 16px;
}

.timeline-event:last-child {
    padding-bottom: 0;
}
.flag-timeline-event:first-child::after {top: 14px;height: 100%;}


@media (max-width:767px) {
.fifteen-year-credit-response h4 {font-size: 16px;  line-height: 24px;}
.portal-wrapper .lender-tabs .nav-link {font-size: 14px !important;}
.status-title {font-size: 14px;}
.discoveryModal .modal-body h2 {font-size: 20px !important;}
.discoveryModal .modal-body p {font-size: 14px;line-height: 20px;}
.discoveryModal .modal-body label {font-size: 14px !important; line-height: 20px !important;}
.discoveryModal .modal-body .form-check-label {padding: 14px !important;}
.discoveryModal .form-check .form-check-input {width: 20px;height: 20px;top: 15px;}
.submit-button {font-size: 14px;}
.discoveryModal .modal-body {padding: 16px;}

.portal-wrapper h1 {font-size: 20px !important;}
.fifteen-year-credit-response h4 {font-size: 16px;line-height: 24px;}
.portal-wrapper .lender-tabs .nav-link {font-size: 14px !important;padding: 10px 12px;}
}
@media (max-width: 575px) {
.status-box::before { left: -17px;}
.timeline-event:after {left: -12px;}
.timeline-event .status-box .dropdown-menu.show {width: 250px;padding: 8px 10px;}

.timeline-event:after {left: -14px;}
.status-box::before {left: -19px;width: 12px;height: 12px;}
.timeline-event-content::before {left: -18px;top: 14px;}
}

/* Questionnaires */
.current-vulnerable {
    background-color: #fff;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 14px;
    /* font-weight: 600; */
    line-height: 18px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

/* Hover state (optional) */
.current-vulnerable:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* Active (clicked) state */
.current-vulnerable.active,
.current-vulnerable:active {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.flag-event-gray .timeline-event-content.vulnerability::before {
    top: 5px !important
}

.container-custom .form-group textarea.form-control {
    max-height: 130px !important;
    font-size: 14px;
}

.container-custom .form-group textarea.form-control:focus {
    box-shadow: none !important;
}

.details-invalid {
    display: none;
    font-size: 12px;
    width: 100%;
    color: var(--bs-form-invalid-color);
}
.details-invalid.d-block {
    display: block !important;
}
