/* ============================================================
   NFA — DataTables Custom Styling + Profile Card Form
   File: assets/css/nfa-datatables.css
   Add this file and enqueue it alongside funder-dashboard.css
   and nfa-admin.css
   ============================================================ */

/* ─────────────────────────────────────────
   DataTables overrides (no Bootstrap)
───────────────────────────────────────── */
.dataTables_wrapper {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 13px;
    color: #333;
}

/* Top controls */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    margin-bottom: 12px;
    display: inline-block;
}

.dataTables_wrapper .dataTables_filter {
    float: right;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    border: 1.5px solid #dde2ea;
    border-radius: 5px;
    padding: 6px 10px;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s;
    background: #fff;
    color: #333;
}

.dataTables_wrapper .dataTables_filter input:focus,
.dataTables_wrapper .dataTables_length select:focus {
    border-color: #1a3a6b;
    box-shadow: 0 0 0 3px rgba(26, 58, 107, 0.08);
}

.dataTables_wrapper .dataTables_filter label,
.dataTables_wrapper .dataTables_length label {
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Pagination */
.dataTables_wrapper .dataTables_paginate {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: flex-end;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    border: 1.5px solid #dde2ea;
    border-radius: 5px;
    background: #fff;
    font-size: 13px;
    color: #555;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #f0f2f5;
    border-color: #b0bac8;
    color: #333;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: #1a3a6b;
    border-color: #1a3a6b;
    color: #fff !important;
    font-weight: 700;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Info */
.dataTables_wrapper .dataTables_info {
    font-size: 12.5px;
    color: #aaa;
    margin-top: 10px;
}

/* Table itself */
.nfa-adm-datatable,
.fd-leads-datatable {
    width: 100% !important;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 8px;
    overflow: hidden;
    font-size: var(--fs-14);
    font-weight: var(--fw-500);
}

.nfa-adm-datatable th,
.fd-leads-datatable th {
    background: #f8f9fb;
    padding: 11px 14px;
    text-align: left;
    font-size: var(--fs-14);
    font-weight: var(--fw-600);
    color: #888;
    text-transform: uppercase;
    letter-spacing: -0.312px;
    border-bottom: 2px solid #e8eaed;
    white-space: nowrap;
}

.nfa-adm-datatable td,
.fd-leads-datatable td {
    font-size: var(--fs-14) !important;
    padding: 12px 14px;
    color: #444;
    border-bottom: 1px solid #f0f0f1;
    vertical-align: middle;
}

.nfa-adm-datatable tr:last-child td,
.fd-leads-datatable tr:last-child td {
    border-bottom: none;
}

.nfa-adm-datatable tbody tr:hover td,
.fd-leads-datatable tbody tr:hover td {
    background: #fafbfc;
}

.nfa-adm-table-sub {
    font-size: 12px;
    color: #aaa;
    margin-top: 5px;
}

/* Inline detail panel (inside datatable cell) */
.nfa-adm-inline-detail {
    background: #f8f9fb;
    border: 1px solid #e8eaed;
    border-radius: 6px;
    padding: 12px 14px;
    margin-top: 8px;
}

.nfa-adm-detail-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px 16px;
    margin-bottom: 10px;
}

.nfa-adm-detail-grid>div,
.nfa-adm-detail-tags-section>div {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 12.5px;
    color: #444;
}

.nfa-adm-detail-label {
    font-size: 10.5px;
    color: #aaa;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.312px;
    display: block;
    margin-bottom: 2px;
}

.nfa-adm-detail-tags-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.nfa-adm-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}

.nfa-adm-tag {
    background: #e8edf5;
    color: #1a3a6b;
    border-radius: 4px;
    padding: 2px 9px;
    font-size: 11.5px;
    font-weight: 600;
}

/* Lead status select */
/* .fd-lead-status-select {
    width: 100%;
    min-width: 140px;
    height: 36px;
    border: 1.5px solid #dde2ea;
    border-radius: 8px;
    padding: 0 28px 0 10px;
    font-size: 12.5px;
    color: #333;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 8px center;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: border-color 0.2s;
} */
.fd-lead-card-v2__status-select {
    width: 100%;
    height: auto !important;
    border: 1px solid rgba(0, 0, 0, 0.00) !important;
    border-radius: 8px;

    /* IMPORTANT */
    padding: 16px 42px 16px 16px !important;

    font-size: var(--fs-18) !important;
    font-weight: var(--fw-400);
    line-height: var(--lh-166);
    letter-spacing: -0.15px;

    color: #0A0A0A;

    background-color: #F3F3F5;

    background:
        #F3F3F5
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E")
        no-repeat right 14px center !important;

    background-size: 12px;

    appearance: none;
    -webkit-appearance: none;

    cursor: pointer;
    outline: none;
    transition: border-color .2s;

    /* optional */
    text-overflow: ellipsis;
}

.fd-lead-status-select:focus {
    outline: none;
    border-color: #1a3a6b;
    box-shadow: 0 0 0 3px rgba(26, 58, 107, 0.1);
}

.fd-leads-table-wrap {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

/* ─────────────────────────────────────────
   Profile Card Form Styles
───────────────────────────────────────── */
.fd-profile-card.is-rejected {
    border-color: #fed7d7;
    background: #fff5f5;
}

.fd-profile-card.is-pending .fd-profile-card__status-badge {
    color: #dd6b20;
    background: #fef3c7;
    border: 1px solid #fcd34d;
}

.fd-profile-card__rejection-note {
    background: #fff5f5;
    border: 1px solid #fed7d7;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 12.5px;
    color: #c53030;
    margin-bottom: 12px;
}

/* .fd-profile-form {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
} */

.fd-pf-field {
    margin-bottom: 14px;
}

.fd-pf-field label {
    display: block;
    font-size: var(--fs-20);
    font-weight: var(--fw-400);
    line-height: var(--lh-normal);
    color: #0A0A0A;
}

.fd-pf-input,
.fd-pf-select,
.fd-pf-textarea {
    width: 100%;
    border: 1.5px solid #dde2ea;
    border-radius: 4px;
    padding: 7px 10px;
    font-size: 13px;
    color: #333;
    background: #fff;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.fd-pf-select {
    height: 38px;
    padding: 0 10px;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
}

.fd-pf-input:focus,
.fd-pf-select:focus,
.fd-pf-textarea:focus {
    border-color: #1a3a6b;
    box-shadow: 0 0 0 3px rgba(26, 58, 107, 0.1);
}

.fd-pf-field.has-error .fd-pf-input,
.fd-pf-field.has-error .fd-pf-select,
.fd-pf-field.has-error .fd-pf-textarea {
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

.fd-pf-error {
    font-size: 11.5px;
    color: #e53e3e;
    margin-top: 3px;
    display: block;
    min-height: 14px;
}

.fd-pf-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.fd-pf-textarea {
    resize: vertical;
    min-height: 70px;
}

.fd-pf-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    cursor: pointer;
    font-size: var(--fs-18);
    font-weight: var(--fw-500);
    color: #0A0A0A;
    margin-bottom: 14px;
    user-select: none;
}

.fd-pf-checkbox input[type="checkbox"] {
    display: none;
}

.fd-pf-checkbox__box {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    border: 1.5px solid #b0bac8;
    border-radius: 3px;
    background: #fff;
    margin-top: 1px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.fd-pf-checkbox input[type="checkbox"]:checked+.fd-pf-checkbox__box {
    background: #1a3a6b;
    border-color: #1a3a6b;
}

.fd-pf-checkbox input[type="checkbox"]:checked+.fd-pf-checkbox__box::after {
    content: '';
    display: block;
    width: 9px;
    height: 5px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg) translateY(-1px);
}

.fd-pf-submit {
    width: auto;
    /*     height: 40px; */
    padding: 12px 16px;
    background: #003B86;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: var(--fs-16);
    font-weight: var(--fw-500);
    line-height: var(--lh-normal);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.2s;
}

.fd-pf-submit:hover:not(:disabled) {
    background: #0d2347;
}

.fd-pf-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.fd-pf-submit.is-loading .btn-text {
    display: none;
}

.fd-pf-submit.is-loading .btn-loader {
    display: flex;
}

.fd-pf-submit .btn-loader {
    display: none;
}

.fd-pf-submit .btn-loader svg {
    animation: nfa-spin 0.8s linear infinite;
}

.fd-profile-msg {
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 13px;
    margin-bottom: 12px;
    line-height: 1.5;
}

.fd-profile-msg.msg--success {
    background: #f0fff4;
    border: 1px solid #9ae6b4;
    color: #276749;
}

.fd-profile-msg.msg--error {
    background: #fff5f5;
    border: 1px solid #fed7d7;
    color: #c53030;
}

/* NFA Admin content padding */
.nfa-adm-content {
    padding: 20px 24px;
    flex: 1;
    /*     overflow-x: auto; */
}

/* DataTable wrapper spacing */
.nfa-adm-content .dataTables_wrapper,
.fd-leads-table-wrap .dataTables_wrapper {
    padding: 0;
}

.dt-layout-cell {
    overflow-x: auto !important;
}

.nfa-adm-datatable,
.fd-leads-datatable {
    overflow-x: auto;
}

#fdPrCreditRange,
#fdPrPricingType,
#fdPrAdvanceRate{
	margin-top:12px !important;
}

@keyframes nfa-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

div.dt-container div.dt-layout-cell {
    padding: 10px 0;
}

table.dataTable>thead>tr>th,
table.dataTable>thead>tr>td {
    padding: 20px 10px 20px 10px;
}

table.dataTable>tbody>tr>th,
table.dataTable>tbody>tr>td {
    padding: 20px 10px;
}

div.dt-container .dt-search input {
    padding: 10px;
}

@media only screen and (max-width:767px) {
    .nfa-adm-content {
        padding: 20px 10px;
    }

    div.dt-container div.dt-layout-cell.dt-start {
        text-align: left;
    }

    div.dt-container div.dt-layout-cell.dt-end {
        text-align: left;
    }

    table.dataTable>tbody>tr>th,
    table.dataTable>tbody>tr>td {
        padding: 10px 10px;
    }
}

/* ── Blank/empty cell dash ── */
.nfa-cell-blank {
    color: #bbb;
    font-style: normal;
    font-weight: 500;
}

/* ── Audit log date validation error ── */
#auditDateError {
    color: #e53e3e;
    font-size: 12px;
    margin-top: 4px;
    display: none;
    font-weight: 500;
}

/* ── Audit delete button ── */
.nfa-audit-delete-btn {
    background: #e53e3e;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 5px 12px;
    font-size: 12px;
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.2s;
}

.nfa-audit-delete-btn:hover:not(:disabled) {
    background: #c53030;
}

.nfa-audit-delete-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
@media only screen and (max-width:1366px){
	.fd-lead-card-v2__status-select{
		padding: 10px 30px 10px 10px !important;
	}
}