:root {
    --primary: rgb(32 66 135);
    --secondary: rgb(249 207 20);
    --base: rgb(243 244 246);
    --success: #47BE7D;
}

.btn.btn-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    height: calc(1em + 1.25rem + 2px) !important;
    width: calc(1.25em + 1.25rem + 2px) !important;
}

.btn-warning {
    padding: 7px 15px !important;
    font-size: 16px !important;
    border-radius: 10px !important;
    color: black !important;
    background-color: transparent !important;
    border: 1px solid #f1bc00 !important;
}

.btn-warning:hover {
    background-color: var(--secondary) !important;
}

.btn-warning i {
    color: black !important;
}

.bg-blue {
    background-color: var(--primary);
}

.btn-primary {
    padding: 7px 15px !important;
    font-size: 16px !important;
    background-color: transparent !important;
    border-radius: 10px !important;
    color: var(--primary) !important;
    border: 1px solid var(--primary) !important;
}

.btn-primary i {
    color: var(--primary) !important;
}

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

.btn-primary:hover i {
    color: #fff !important;
}

.btn-danger {
    padding: 7px 15px !important;
    font-size: 16px !important;
    background-color: rgb(214, 57, 57) !important;
    border-radius: 10px !important;
    color: white !important;
}

.btn-danger:hover {
    opacity: 0.9;
}

.btn-success {
    padding: 7px 15px !important;
    font-size: 16px !important;
    background-color: transparent !important;
    border-radius: 10px !important;
    color: #000 !important;
    border: 1px solid #47be7d !important;
}

.btn-success i {
    color: #000 !important;
}

.btn-success:hover,
.btn-success:hover i {
    color: #fff !important;
}

/* info styling - temporary */
.btn-info {
    padding: 7px 15px !important;
    font-size: 16px !important;
    background-color: transparent !important;
    border-radius: 10px !important;
    color: var(--primary) !important;
    border: 1px solid var(--primary) !important;
}

.btn-info i {
    color: var(--primary) !important;
}

.btn-info:hover {
    background-color: var(--primary) !important;
    color: #fff !important;
}

.btn-info:hover i {
    color: #fff !important;
}

.icon {
    font-size: 1.50rem !important;
}

.text-primary {
    color: var(--primary) !important;
}

.shadow-sm {
    /* box-shadow: rgba(60, 64, 67, 0.15) 0px 1px 2px 0px, rgba(60, 64, 67, 0.1) 0px 1px 3px 1px !important; */
    box-shadow:
        rgba(0, 0, 0, 0.05) 0px 2px 10px 0px,
        rgba(0, 0, 0, 0.08) 0px 0px 0px 1px !important;
}

.rounded-xl {
    border-radius: 14px !important;
}

#kt_aside.active {
    transform: translate(0%) !important;
    z-index: 9999 !important;
}

.btn-header {
    background-color: rgb(249 250 251);
    box-shadow:
        rgba(60, 64, 67, 0.15) 0px 1px 2px 0px,
        rgba(60, 64, 67, 0.1) 0px 1px 3px 1px !important;
    width: 40px;
    height: 40px;
    display: inline-block;
    position: relative;
    border-radius: 50%;
}

.btn-header i {
    font-size: 18px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--primary);
}

.form-control {
    background-color: rgb(249 250 251);
    border-radius: 8px;
    padding: 0.5rem 0.75rem !important;
}

.bg-gray-light {
    background-color: rgb(249 250 251);
}

.btn-icon {
    border-radius: 8px;
    background-color: white !important;
    box-shadow:
        rgba(60, 64, 67, 0.15) 0px 1px 2px 0px,
        rgba(60, 64, 67, 0.1) 0px 1px 3px 1px !important;

    i {
        font-size: 20px;
    }
}

.btn-icon.btn-primary {
    border: 2px solid var(--primary) !important;

    i {
        color: var(--primary) !important;
    }
}

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

.btn-icon.btn-primary:focus {
    background-color: white !important;
}

.btn-icon.btn-primary:hover i {
    color: white !important;
}

.btn-icon.btn-primary:focus i {
    color: var(--primary) !important;
}

.btn-icon.btn-danger {
    border: 2px solid rgb(214, 57, 57) !important;

    i {
        color: rgb(214, 57, 57) !important;
    }
}

.btn-icon.btn-danger:hover {
    background-color: rgb(214, 57, 57) !important;

    i {
        color: #fff !important;
    }
}

.btn-icon.btn-success {
    border: 1px solid green !important;

    i {
        color: green !important;
    }
}

.btn-icon.btn-success:hover {
    background-color: green !important;

    i {
        color: #fff !important;
    }
}

/* .btn.btn-success:active:not(.btn-active), .btn.btn-success:focus:not(.btn-active){
    background-color: white !important;
    color: green !important;
}    */

.btn-secondary {
    border: 2px solid #999 !important;
    background-color: var(--base) !important;

    i {
        color: #999 !important;
    }
}

.btn-secondary:hover {
    background-color: #999 !important;
    border: 2px solid var(--base) !important;

    i {
        color: #fff !important;
    }
}

.btn-icon.btn-warning {
    border: 2px solid var(--secondary) !important;
    /* padding: 0 !important; */

    i {
        color: var(--secondary) !important;
    }
}

.btn-icon.btn-warning:hover {
    background-color: var(--secondary) !important;

    i {
        color: #fff !important;
    }
}

.tooltip-inverse.bs-tooltip-auto[data-popper-placement^="top"] .tooltip-arrow::before,
.tooltip-inverse.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: #000 !important;
}

.tooltip-inverse.bs-tooltip-auto[data-popper-placement^="bottom"] .tooltip-arrow::before,
.tooltip-inverse.bs-tooltip-bottom .tooltip-arrow::before {
    border-bottom-color: #000 !important;
}

.tooltip-inverse .tooltip-inner {
    background-color: #000 !important;
    color: #fff !important;
    font-size: 12px;
    border-radius: 10px;
}

table thead tr th {
    font-size: 13px !important;
    text-transform: uppercase !important;
    font-weight: 600 !important;
}

table tbody td {
    color: var(--primary) !important;
    font-size: 15px !important;
    vertical-align: middle !important;
    padding: 2px 10px 2px !important;
    font-weight: 500 !important;
}

table tbody td:first-child,
table thead th:first-child {
    padding-left: 10px !important;
}

table tbody td:last-child,
table thead th:last-child {
    padding-right: 10px !important;
}

table tbody td .btn-icon {
    padding: 4px !important;
    height: auto !important;
    width: auto !important;
}

.badge {
    border-radius: 5px !important;
}

.clamp-1 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


.clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Container */
.quick-links-wrapper {
    position: fixed;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 99;
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: end;
    align-items: end;
}

/* Tiles */
.ql-tile {
    width: 65px;
    background: #fff;
    border-radius: 14px;
    padding: 10px 10px;
    box-shadow: rgba(60, 64, 67, 0.15) 0px 1px 2px 0px, rgba(60, 64, 67, 0.1) 0px 1px 3px 1px !important;
    text-align: center;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    justify-content: center;
    align-items: center;
    border: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: top;
    /* makes it slide from top */
}

.ql-tile:hover {
    background: #eef3ff;
    transform: translateY(-3px);
}

.ql-tile i {
    font-size: 35px;
    color: var(--primary);
}

/* Hidden state: start above toggle */
.ql-tile.slide {
    transform: translateY(50px);
    opacity: 0;
    pointer-events: none;
}

/* Hover effect stays */
.ql-tile:hover {
    background: #eef3ff;
}

#ql-toggle {
    width: 40px;
    padding: 8px 10px;
    border-radius: 10px;
    float: right;
}

#ql-toggle i {
    font-size: 25px;
    font-weight: 600 !important;
}

.list-group-item {
    border-right: 0 !important;
    border-left: 0 !important;
    border-top: 0 !important;
    padding-left: 0 !important;
}



.doc-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #f5f8fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--mainColor, #204287);
}

.badge-soft {
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 6px;
}

.badge-soft-blue {
    background: rgba(32, 66, 135, 0.1);
    color: #204287;
}

.badge-soft-yellow {
    background: #fff7d1;
    color: #e6b800;
}

.action-btn {
    background: white;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 18px;
    transition: 0.2s ease;
    display: flex;
    align-items: center;
    border: 1px solid;
}

.action-btn.view {
    border-color: #204287;
    color: #204287;
}

.action-btn.view:hover {
    background: #204287;
    color: white;
}

.action-btn.download {
    border-color: #22c55e;
    color: #22c55e;
}

.action-btn.download:hover {
    background: #22c55e;
    color: white;
}

.rounded-pill {
    border-radius: 50px !important;
}

.bg-blue {
    background-color: #204287
}

.rounded-xl {
    border-radius: 14px !important
}

/* Custom CSS for Enhanced UI */
.document-card {
    border-radius: 12px;
    border: none;
    overflow: hidden;
}

.contract-tabs-container {
    border-bottom: 2px solid #f5f8fa;
}

.document-tabs {
    border: none;
    padding: 0;
}

.contract-tab {
    padding: 1rem 1rem 1.25rem;
    border: none !important;
    background: transparent;
    color: #a1a5b7;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    text-align: center;
    font-size: 16px;
}

.contract-tab:hover {
    color: #204287 !important;
    background-color: #f5f8fa !important;
}

.contract-tab.active {
    color: #000 !important;
    background-color: #204287 !important;
}

.contract-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    margin-right: 8px;
    background-color: white;
    border-radius: 50%;
    padding: 2px;
}

.contract-name {
    font-weight: 600;
}

.sub-tabs-container {
    padding: 0;
}

.document-subtabs {
    border: none;
    padding: 0;
}

.subtab-link {
    padding: 1rem;
    border: none !important;
    background: transparent;
    color: #a1a5b7;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    font-size: 17px;
    text-align: center;
}

.subtab-link.active {
    color: #fff !important;
    background-color: #204287 !important;
    border-radius: 14px 14px 0px 0px;
}

.subtab-link.active i {
    color: #fff !important;
}

.subtab-link i {
    font-size: 20px;
}

.btn-add-file {
    background-color: rgba(32, 66, 135, 0.9);
    border: none;
    color: white;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin: 12px 20px;
}

.btn-add-file:hover {
    background-color: #204287;
    color: white;
}

.filter-section {
    padding-inline: 1.5rem;
    background-color: white;
}

.filter-label {
    font-weight: 600;
    color: #5e6278;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    display: block;
}

.filter-input {
    border: 1px solid #e4e6ef;
    border-radius: 8px;
    padding: 10px 12px;
    height: 44px;
    transition: all 0.3s ease;
}

.filter-input:focus {
    border-color: #ffc107;
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.1);
}

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

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #a1a5b7;
    z-index: 10;
}

.search-input {
    padding-left: 40px !important;
    border: 1px solid #e4e6ef;
    border-radius: 8px;
    height: 44px;
}

.document-content {
    padding: 0 1.5rem 1.5rem;
}

.table-documents {
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.table-header {
    padding: 12px 8px;
    font-weight: 600;
    color: #000;
    font-size: 0.75rem;
    text-transform: uppercase;
    border-bottom: 1px solid #e4e6ef;
    background-color: transparent;
}

.document-row {
    border-bottom: 1px solid #f8f9fa;
    transition: background-color 0.2s ease;
}

.document-row:hover {
    background-color: rgba(245, 248, 250, 0.5);
}

.document-row td {
    padding: 16px 8px;
    vertical-align: middle;
}

.document-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.document-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background-color: #f5f8fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffc107;
    font-size: 20px;
}

.document-name {
    font-weight: 600;
    color: #5e6278;
    font-size: 0.95rem;
}

.upload-date {
    color: #a1a5b7;
    font-size: 0.875rem;
}

.progress-container {
    width: 100%;
}

.progress {
    height: 8px;
    border-radius: 4px;
    background-color: #e9ecef;
}

.progress-bar {
    border-radius: 4px;
}

.progress-text {
    font-size: 0.75rem;
    color: #a1a5b7;
    margin-top: 4px;
}

.file-size {
    background-color: rgba(32, 66, 135, 0.1);
    color: #204287;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
}

.badge-type {
    background-color: rgba(255, 193, 7, 0.1);
    color: #b58c07;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
}

.badge-list {
    background-color: rgba(40, 167, 69, 0.1);
    color: #28a745;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
}

.pagination-container {
    padding: 1rem 0;
}

.pagination-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.entries-select {
    width: auto;
    border: 1px solid #e4e6ef;
    border-radius: 6px;
}

.entries-text {
    color: #6c757d;
    font-size: 0.875rem;
}

.pagination .page-link {
    border-radius: 6px;
    margin: 0 2px;
    border: none;
    padding: 6px 12px;
}

.pagination .page-item.active .page-link {
    background-color: #204287;
    color: #fff;
    border: none;
}

.pagination .page-item:not(.active) .page-link {
    background-color: #f8f9fa;
    color: #5e6278;
}

.pagination .page-item:not(.active) .page-link:hover {
    background-color: #e9ecef;
}

.empty-state {
    padding: 3rem 1rem;
}

.empty-state i {
    font-size: 4rem;
    color: #6c757d;
}

.empty-state h5 {
    margin-top: 1rem;
    color: #6c757d;
}

.empty-state p {
    color: #6c757d;
}

.modal-input {
    border: 1px solid #e4e6ef;
    border-radius: 8px;
    padding: 10px 12px;
    transition: all 0.3s ease;
}

.modal-input:focus {
    border-color: #ffc107;
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.1);
}

.modal-submit-btn {
    background-color: #ffc107;
    border: none;
    color: black;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 8px;
}

.modal-submit-btn:hover {
    background-color: #e0a800;
    color: black;
}

.error-message {
    color: #dc3545;
    font-weight: 600;
    font-size: 0.875rem;
    margin-top: 4px;
}

.modal-header {
    padding: 20px;
    position: relative;
}

.modal-header .btn,
.modal-header .btn-close {
    background-color: #2c4c8e !important;
    border-radius: 50% !important;
    position: absolute;
    top: -10px;
    right: -10px;
    opacity: 1 !important;
}

.modal-header .btn i,
.modal-header .btn-close i {
    color: #fff;
}

.modal-header h3.modal-title {
    color: #2c4c8e !important;
    font-size: 20px;
}

.modal-content {
    border-radius: 30px !important;

}

.modal-footer {
    padding: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {

    .contract-tab,
    .subtab-link {
        padding: 1rem 1rem;
        font-size: 0.875rem;
    }

    .filter-section .row>div {
        margin-bottom: 1rem;
    }

    .document-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .action-buttons {
        flex-direction: column;
        gap: 4px;
    }

    .btn-action {
        width: 32px;
        height: 32px;
    }

    .pagination-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .pagination-container .d-flex {
        flex-direction: column;
        gap: 1rem;
    }

    .pagination-container .d-flex>div {
        width: 100%;
    }

    .pagination-container nav {
        width: 100%;
        display: flex;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .document-card {
        margin: 0 -0.5rem;
    }

    .contract-tabs-container,
    .sub-tabs-container {
        overflow-x: auto;
        white-space: nowrap;
    }

    .document-tabs,
    .document-subtabs {
        flex-wrap: nowrap;
    }

    .contract-tab,
    .subtab-link {
        white-space: nowrap;
    }

    .table-responsive {
        font-size: 0.875rem;
    }

    .document-icon {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
}

.pill-switch.form-switch .form-check-input {
    width: 48px;
    height: 24px;
    border-radius: 50px !important;
    background-color: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.pill-switch.form-switch .form-check-input:checked {
    background-color: #204287 !important;
    border-color: #204287 !important;
}

/* Toggle circle smoothing */
.pill-switch.form-switch .form-check-input:focus {
    box-shadow: none;
}

.time_widget {
    z-index: 9999;
    position: absolute;
    /* <— change from fixed */
    bottom: 20px;
    right: 10px;
    width: 550px;
    max-height: 175px;
    max-width: 100%;
    box-shadow: rgba(0, 0, 0, 0.05) 0px 6px 24px 0px,
        rgba(0, 0, 0, 0.08) 0px 0px 0px 1px;
    background-color: #fff;
    transition: 200ms ease-in;
}

.time_widget .card .card-header {
    transition: 200ms ease-in;
}

.time_widget span {
    transition: 200ms ease-in;
}

.time_widget card-body {
    transition: 200ms ease-in;
}

.time_widget_hide {
    width: 300px;
    max-height: 100px !important;
}

.time_widget_hide .task-time-label {
    display: inline-block !important;
}

.time_widget_hide .task-details-body {
    display: none;
    height: 0;
    padding: 0 !important;
    margin: 0;
    overflow: hidden;
}

.time_widget_hide .card .card-header {
    border-bottom: 0;
}

.time_widget .card {
    transition: max-height 0.3s ease, height 0.3s ease;
}

.task-details-body {
    transition: all 0.3s ease;
    overflow: hidden;
}

.time_widget .card {
    cursor: move;
}

/* Section Header Styling */
.section-title {
    font-size: 22px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.section-subtitle {
    font-size: 15px;
    font-weight: 400;
    color: #6c757d;
    margin-bottom: 0;
}

/* Info Icon Styling */
.info-icon {
    font-size: 14px;
    cursor: help;
    transition: color 0.2s ease;
}

.info-icon:hover {
    color: #2c5aa0 !important;
}

/* Form Control Solid Styling */
.form-control-solid,
.form-select-solid {
    background-color: #f5f8fa;
    border: 1px solid #e4e6ef;
    transition: all 0.2s ease;
}

.form-control-solid:focus,
.form-select-solid:focus {
    background-color: #ffffff;
    border-color: #2c5aa0;
    box-shadow: 0 0 0 0.2rem rgba(44, 90, 160, 0.1);
}

.form-control-solid::placeholder {
    color: #a1a5b7;
    font-size: 14px;
}

/* Label Styling */
.form-label {
    font-size: 13px;
    margin-bottom: 8px;
}

textarea.select2-search__field {
    font-weight: bold !important;
}

/* Tooltip Styling */
.tooltip-inner {
    max-width: 250px;
    padding: 8px 12px;
    font-size: 12px;
    text-align: left;
}

.card {
    border-radius: 12px;
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.folder-block {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px 10px 5px 10px;
}

.kyc-expire-input {
    transition: all 0.3s ease;
}

.badge-warning {
    background-color: #ffc107;
    color: #212529;
}

.milestone-row {
    background-color: #fff8e1;
    padding: 15px;
    border-radius: 8px;
}

.contact-form {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    background: white;
    position: relative;
}

.progress-stepper-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: .5rem 1rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e0e0;
}

.progress-stepper {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 0;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.step-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    background-color: #e0e0e0;
    color: #9e9e9e;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.step-item.active .step-circle {
    background-color: #2c5aa0;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(44, 90, 160, 0.3);
}

.step-item.completed .step-circle {
    background-color: #2c5aa0;
    color: #ffffff;
}

.step-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.step-label {
    font-size: 14px;
    font-weight: 600;
    color: #9e9e9e;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.step-item.active .step-label {
    color: #2c5aa0;
}

.step-item.completed .step-label {
    color: #2c5aa0;
}

.step-subtitle {
    font-size: 11px;
    font-weight: 400;
    color: #b0b0b0;
    white-space: nowrap;
}

.step-item.active .step-subtitle {
    color: #7a9cc6;
}

.step-line {
    height: 3px;
    background-color: #e0e0e0;
    flex: 1;
    margin: 0 16px;
    min-width: 60px;
    max-width: 120px;
    transition: background-color 0.3s ease;
}

.step-line.completed {
    background-color: #2c5aa0;
}

.completion-status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-left: 2rem;
    padding-left: 2rem;
    border-left: 1px solid #e0e0e0;
}

.completion-percentage {
    font-size: 24px;
    font-weight: 700;
    color: #2c5aa0;
    line-height: 1;
}

.completion-label {
    font-size: 12px;
    font-weight: 500;
    color: #7a9cc6;
    margin-top: 4px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .progress-stepper-wrapper {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem 1rem;
    }

    .progress-stepper {
        width: 100%;
        justify-content: space-between;
    }

    .step-content {
        display: none;
    }

    .step-item {
        flex-direction: column;
        gap: 8px;
    }

    .step-line {
        margin: 0 8px;
        min-width: 40px;
        max-width: 80px;
    }

    .completion-status {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        border-top: 1px solid #e0e0e0;
        padding-top: 1rem;
        width: 100%;
        align-items: center;
    }
}

@media (max-width: 576px) {
    .step-circle {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .step-line {
        margin: 0 6px;
        min-width: 30px;
        max-width: 50px;
    }

    .completion-percentage {
        font-size: 20px;
    }

    .completion-label {
        font-size: 11px;
    }
}

.contact-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.kyc-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.folder-tree {
    list-style: none;
    padding-left: 20px;
    background: #fafafa;
    border-radius: 6px;
    padding: 10px 15px;
    border: 1px solid #e5e5e5;
    font-size: 15px;
    line-height: 1.6;
}

.folder-tree ul {
    list-style: none;
    padding-left: 20px;
    margin: 4px 0;
    border-left: 1px dashed #ccc;
    display: none;
}

.folder {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 3px 6px;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.folder:hover {
    background-color: #f1f1f1;
}

.folder i {
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(44, 90, 160, 0.3);
}

.step-item.completed .step-circle {
    background-color: #2c5aa0;
    color: #ffffff;
}

.step-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.step-label {
    font-size: 14px;
    font-weight: 600;
    color: #9e9e9e;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.step-item.active .step-label {
    color: #2c5aa0;
}

.step-item.completed .step-label {
    color: #2c5aa0;
}

.step-subtitle {
    font-size: 11px;
    font-weight: 400;
    color: #b0b0b0;
    white-space: nowrap;
}

.step-item.active .step-subtitle {
    color: #7a9cc6;
}

.step-line {
    height: 3px;
    background-color: #e0e0e0;
    flex: 1;
    margin: 0 16px;
    min-width: 60px;
    max-width: 120px;
    transition: background-color 0.3s ease;
}

.step-line.completed {
    background-color: #2c5aa0;
}

.completion-status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-left: 2rem;
    padding-left: 2rem;
    border-left: 1px solid #e0e0e0;
}

.completion-percentage {
    font-size: 24px;
    font-weight: 700;
    color: #2c5aa0;
    line-height: 1;
}

.completion-label {
    font-size: 12px;
    font-weight: 500;
    color: #7a9cc6;
    margin-top: 4px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .progress-stepper-wrapper {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem 1rem;
    }

    .progress-stepper {
        width: 100%;
        justify-content: space-between;
    }

    .step-content {
        display: none;
    }

    .step-item {
        flex-direction: column;
        gap: 8px;
    }

    .step-line {
        margin: 0 8px;
        min-width: 40px;
        max-width: 80px;
    }

    .completion-status {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        border-top: 1px solid #e0e0e0;
        padding-top: 1rem;
        width: 100%;
        align-items: center;
    }
}

@media (max-width: 576px) {
    .step-circle {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .step-line {
        margin: 0 6px;
        min-width: 30px;
        max-width: 50px;
    }

    .completion-percentage {
        font-size: 20px;
    }

    .completion-label {
        font-size: 11px;
    }
}

.remove-contact {
    position: absolute;
    top: 15px;
    right: 15px;
    color: #dc3545;
    cursor: pointer;
    font-size: 1.25rem;
}

.contact-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.kyc-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.folder-tree {
    list-style: none;
    padding-left: 20px;
    background: #fafafa;
    border-radius: 6px;
    padding: 10px 15px;
    border: 1px solid #e5e5e5;
    font-size: 15px;
    line-height: 1.6;
}

.folder-tree ul {
    list-style: none;
    padding-left: 20px;
    margin: 4px 0;
    border-left: 1px dashed #ccc;
    display: none;
}

.folder {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 3px 6px;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.folder:hover {
    background-color: #f1f1f1;
}

.folder i {
    margin-right: 6px;
    color: #f4c542;
    font-size: 16px;
}

.folder.expanded>i {
    color: #ffb100;
}

.btn-add {
    background-color: transparent;
    border: 2px dashed #d1d5db;
    color: #6c757d;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-add:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(13, 110, 253, 0.2);
}

.btn-add i {
    font-size: 16px;
    color: var(--primary);
}

/* .btn-add-channel {
    background-color: transparent;
    border: 2px dashed #d1d5db;
    color: #6c757d;
    padding: 12px 20px;
    margin-inline: 10px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 100%;
}

.btn-add-channel:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(13, 110, 253, 0.2);
}

.btn-add-channel i {
    font-size: 16px;
    color: var(--primary);
} */

/* Info Box Styling */
.info-box-blue {
    background-color: #EFF6FF;
    border: 1px solid #b3d9ff;
    border-radius: 8px;
}

/* ========================================
   Step 3 Payment UI Styling
   ======================================== */

/* Payment Type Cards */
.payment-type-card {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding-top: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    position: relative;
    padding-inline: 10px;
}

.payment-type-card:hover {
    border-color: #2C5AA0;
    box-shadow: 0 4px 12px rgba(44, 90, 160, 0.1);
    transform: translateY(-2px);
}

.payment-type-card.active {
    border-color: #2C5AA0;
    background-color: #EFF6FF;
    color: #2C5AA0;
}

.payment-type-card .icon i {
    color: #9ca3af;
    transition: color 0.3s ease;
}

.payment-type-card.active .icon {
    color: #2C5AA0;
}


/* Payment Details Card */
.details-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.details-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.details-card div div h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.payment-content {
    margin-top: 10px;
}

/* Info Box Warning (Yellow) */
.info-box-warning {
    background-color: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 16px;
}

.info-box-warning i {
    color: #f59e0b;
    font-size: 18px;
}

.info-box-warning .title {
    font-weight: 600;
    color: #92400e;
    margin-bottom: 4px;
    font-size: 14px;
}

.info-box-warning .description {
    font-size: 13px;
    color: #78350f;
    line-height: 1.5;
}

/* Milestone Table */
.milestone-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.milestone-table thead th {
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 14px 16px;
    border-bottom: 2px solid #e5e7eb;
    text-align: left;
    background-color: #f9fafb;
}

.milestone-table thead th:first-child {
    border-top-left-radius: 8px;
}

.milestone-table thead th:last-child {
    border-top-right-radius: 8px;
    text-align: center;
}

.milestone-table tbody td {
    padding: 16px;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
    background-color: #ffffff;
}

.milestone-table tbody tr:last-child td {
    border-bottom: none;
}

.milestone-table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 8px;
}

.milestone-table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 8px;
}

.milestone-table tbody tr:hover td {
    background-color: #f9fafb;
}

.milestone-table input[type="text"],
.milestone-table input[type="number"] {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 14px;
    width: 100%;
    transition: all 0.2s ease;
}

.milestone-table input:focus {
    border-color: #2C5AA0;
    outline: none;
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
}

.milestone-table input::placeholder {
    color: #9ca3af;
}

.milestone-table .input-group {
    display: flex;
    align-items: stretch;
}

.milestone-table .input-group .input-group-text {
    border: 1px solid #e5e7eb;
    border-right: none;
    border-radius: 6px 0 0 6px;
    background-color: #f9fafb;
    color: #6b7280;
    font-weight: 500;
    padding: 10px 12px;
}

/* Add Milestone Button */
.btn-add-milestone {
    background-color: transparent;
    border: 2px dashed #d1d5db;
    color: #6c757d;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 100%;
}

.btn-add-milestone:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(13, 110, 253, 0.2);
}

.btn-add-milestone i {
    font-size: 16px;
    color: var(--primary);
}

/* Empty State */
.milestone-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #9ca3af;
}

.milestone-empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    color: #d1d5db;
}

.milestone-empty-state p {
    margin: 0;
    font-size: 14px;
}

/* Milestone Number Badge */
.milestone-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: #2C5AA0;
    color: #ffffff;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 600;
    margin-right: 12px;
    flex-shrink: 0;
}

/* Title Input Container */
.milestone-title-container {
    display: flex;
    align-items: center;
}

.milestone-title-container input {
    flex: 1;
}

/* Input Group Styling */
.input-group-text {
    border: 1px solid #e5e7eb;
    font-weight: 500;
    color: #6b7280;
}

/* Form Check Styling */
.form-check-input {
    width: 20px;
    height: 20px;
    cursor: pointer;
    border: 2px solid #d1d5db;
}

.form-check-input:checked {
    background-color: #2C5AA0;
    border-color: #2C5AA0;
}

.form-check-label {
    cursor: pointer;
    user-select: none;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .payment-type-card {
        padding: 12px;
    }

    .payment-details-card {
        padding: 12px;
    }

    .milestone-table {
        font-size: 13px;
    }

    .milestone-table thead th {
        font-size: 10px;
        padding: 8px;
    }

    .milestone-table tbody td {
        padding: 12px 8px;
    }
}

.info-box-yellow {
    background-color: #fff9e6;
    border: 1px solid #ffe6b3;
    border-radius: 8px;
}

/* Modern File Explorer Design */
.file-explorer {
    /* background: #ffffff; */
    /* border: 1px solid #e2e8f0; */
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    /* box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03); */
    overflow: hidden;
}

.explorer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* padding: 12px 18px; */
    /* border-bottom: 1px solid #f1f5f9; */
    background: #ffffff;
    gap: 15px;
}

.explorer-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
}

.explorer-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    padding: 6px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 13px;
    color: #475569;
    flex-grow: 1;
    min-height: 40px;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 6px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
}

.breadcrumb-item:hover {
    background-color: #e2e8f0;
    color: var(--primary);
}

.breadcrumb-item i {
    font-size: 16px;
    margin-right: 6px;
    opacity: 0.8;
}

.breadcrumb-separator {
    color: #94a3b8;
    margin: 0 2px;
}

.explorer-search-wrapper {
    position: relative;
    width: 260px;
}

.explorer-search-wrapper i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}

.explorer-search-input {
    width: 100%;
    padding: 9px 12px 9px 36px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    transition: all 0.2s ease;
}

.explorer-search-input:focus {
    background: #ffffff !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(32, 66, 135, 0.1) !important;
}

.explorer-content {
    padding: 10px 0px 10px 0px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    overflow-y: auto;
}

.explorer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    text-align: center;
    position: relative;
    user-select: none;
}


/* Icon Container - The "Card" part */
.explorer-item .item-icon {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    border-radius: 18px;
    transition: all 0.3s ease;
    background: #f8fafc;
    position: relative;
    margin-left: auto;
    margin-right: auto;
}

.explorer-item.folder-item:hover .item-icon {
    background: #EBF7FE;
    color: #204287;
}

.explorer-item.file-item:hover .item-icon {
    background: #EBF7FE;
    color: #204287;
}

.explorer-item .item-icon i {
    font-size: 36px !important;
    line-height: normal;
}

.explorer-item .item-name {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    padding: 0 4px;
    transition: color 0.2s ease;
}

.explorer-item:hover .item-name {
    color: #0f172a;
}

.item-actions {
    position: absolute;
    top: -5px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    opacity: 0;
    transition: all 0.2s ease;
    z-index: 10;
}

.explorer-item:hover .item-actions {
    opacity: 1;
}

.action-dot {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    color: #475569;
    font-size: 14px;
    transition: all 0.2s ease;
    border: 1px solid #f1f5f9;
}

.action-dot:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.action-dot:hover i {
    color: white;
}

.explorer-empty {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    color: #94a3b8;
    background: #fbfcfd;
    border: 2px dashed #e2e8f0;
    border-radius: 16px;
}

.explorer-empty i {
    font-size: 72px;
    margin-bottom: 20px;
    color: #cbd5e1;
}

.explorer-empty h5 {
    font-weight: 600;
    color: #64748b;
    margin-bottom: 8px;
}

/* Custom Scrollbar */
.explorer-content::-webkit-scrollbar {
    width: 8px;
}

.explorer-content::-webkit-scrollbar-track {
    background: transparent;
}

.explorer-content::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 10px;
    border: 2px solid #ffffff;
}

.explorer-content::-webkit-scrollbar-thumb:hover {
    background: #cbd5e1;
}

/* ========================================
   Mini Sidebar Styles
   ======================================== */
.mini-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 65px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 0;
    z-index: 100;
    border-right: 1px solid #e8e8e8;
}

.mini-sidebar-logo {
    margin-bottom: 16px;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mini-sidebar-logo-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.mini-sidebar-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
    overflow-y: auto;
    width: 100%;
    padding: 0 6px;
}

/* .mini-sidebar-menu::-webkit-scrollbar {
    width: 0;
    display: none;
} */

.mini-sidebar-item {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

.mini-sidebar-item i {
    font-size: 22px;
    transition: transform 0.2s ease;
}

.mini-sidebar-item:hover i {
    transform: scale(1.1);
}

.mini-sidebar-item.active::before {
    content: '';
    position: absolute;
    left: -3px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 28px;
    background-color: #204287;
    border-radius: 3px 0px 0px 3px;
}

/* Responsive - hide mini sidebar on small screens */
@media (max-width: 768px) {
    .mini-sidebar {
        display: none;
    }

    #kt_wrapper {
        margin-inline: 3em !important;
    }
}

@media (min-width: 1700px) {
    .modal-xl {
        max-width: 1600px !important;
    }
}

.select2-container .select2-selection--single .select2-selection__rendered {
    color: #181c32 !important;
    font-weight: 500 !important;
}

.select2-container .select2-selection--single .select2-selection__placeholder {
    color: #a1a5b7 !important;
    font-weight: 400 !important;
}

/* insert modal UI update  */
.modal.note-modal.link-dialog.show .modal-dialog {
    box-shadow: none !important;
}

.modal.note-modal.link-dialog.show{
    background: rgb(0 0 0 / 10%) !important;
}

.modal.note-modal.link-dialog.show .modal-dialog .modal-content .modal-header button{
    background-color: #2c4c8e !important;
    border-radius: 50% !important;
    position: absolute !important;
    top: -10px !important;
    right: -4px !important;
    opacity: 1 !important;
    color: white !important;
    font-size: 20px !important;
    border: none !important;
    padding-inline: 10px !important;
}

.note-modal.link-dialog label.note-form-label {
    margin-bottom: 10px !important;
    margin-top: 10px !important;
}

.note-modal.link-dialog .form-check {
   margin-bottom: 10px !important;
   margin-top: 10px !important;            
}