/* TaxAI Funding OS Pro v1200 */

.funding-pro {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.funding-pro * {
    box-sizing: border-box;
}

.funding-hero {
    background:
        radial-gradient(circle at 90% 12%, rgba(139,92,246,.18), transparent 28%),
        linear-gradient(135deg, #ffffff 0%, #f8fbff 48%, #f5f3ff 100%) !important;
}

.funding-tabs,
.funding-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.funding-tab,
.funding-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    background: #ffffff;
    color: #6d28d9 !important;
    border: 1px solid #ddd6fe;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.funding-tab:hover,
.funding-btn:hover {
    background: #f5f3ff;
}

.funding-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 22px;
}

.funding-kpi {
    min-height: 124px;
    padding: 20px !important;
    position: relative;
    overflow: hidden;
}

.funding-kpi::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(139,92,246,.10), transparent 48%);
    pointer-events: none;
}

.funding-kpi-label {
    position: relative;
    color: #64748b;
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 10px;
}

.funding-kpi-value {
    position: relative;
    color: #0f172a;
    font-size: 32px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -.04em;
}

.funding-kpi-note {
    position: relative;
    color: #64748b;
    font-size: 12px;
    line-height: 1.6;
    margin-top: 10px;
}

.funding-main {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
    gap: 18px;
    align-items: start;
}

.funding-panel {
    padding: 22px !important;
}

.funding-panel-title {
    color: #0f172a;
    font-size: 18px;
    font-weight: 900;
    margin: 0 0 6px;
}

.funding-panel-sub {
    color: #64748b;
    font-size: 13px;
    line-height: 1.7;
    margin: 0 0 16px;
}

.funding-kanban {
    display: grid;
    grid-template-columns: repeat(4, minmax(220px, 1fr));
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.funding-column {
    min-width: 220px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #f8fafc;
    padding: 12px;
}

.funding-column-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #0f172a;
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 12px;
}

.funding-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: #ede9fe;
    color: #6d28d9;
    font-size: 12px;
    font-weight: 900;
}

.funding-card-mini {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 10px;
    box-shadow: 0 8px 22px rgba(15,23,42,.05);
}

.funding-card-title {
    color: #0f172a;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.5;
}

.funding-card-meta {
    color: #64748b;
    font-size: 12px;
    line-height: 1.6;
    margin-top: 6px;
}

.funding-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 10px;
    background: #ede9fe;
    color: #6d28d9;
    font-size: 12px;
    font-weight: 900;
    margin-top: 10px;
}

.funding-badge.high {
    background: #fef2f2;
    color: #dc2626;
}

.funding-badge.mid {
    background: #fffbeb;
    color: #b45309;
}

.funding-badge.good {
    background: #ecfdf5;
    color: #047857;
}

.funding-list {
    display: grid;
    gap: 12px;
}

.funding-task {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #ffffff;
}

.funding-icon {
    width: 42px;
    height: 42px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    background: #f5f3ff;
    color: #6d28d9;
    font-weight: 900;
}

.funding-task-title {
    color: #0f172a;
    font-size: 14px;
    font-weight: 900;
}

.funding-task-text {
    color: #64748b;
    font-size: 13px;
    line-height: 1.7;
    margin-top: 3px;
}

.funding-roadmap {
    display: grid;
    gap: 12px;
}

.funding-step {
    padding: 14px;
    border-left: 5px solid #8b5cf6;
    border-radius: 14px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.funding-step-title {
    color: #0f172a;
    font-size: 14px;
    font-weight: 900;
}

.funding-step-text {
    color: #64748b;
    font-size: 13px;
    line-height: 1.7;
    margin-top: 4px;
}

.funding-table-wrap {
    margin-top: 18px;
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

.funding-table-wrap table {
    min-width: 900px;
}

@media (max-width: 1180px) {
    .funding-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .funding-main {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .funding-grid {
        grid-template-columns: 1fr;
    }

    .funding-task {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .funding-task .funding-badge {
        grid-column: 2;
        justify-self: start;
    }
}
