/* TaxAI Billing Collection Pro v1210 */

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

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

.billing-hero {
    background:
        radial-gradient(circle at 90% 12%, rgba(239,68,68,.16), transparent 28%),
        linear-gradient(135deg, #ffffff 0%, #f8fbff 48%, #fff1f2 100%) !important;
}

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

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

.billing-tab:hover,
.billing-btn:hover {
    background: #fff1f2;
}

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

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

.billing-kpi::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(239,68,68,.09), transparent 48%);
    pointer-events: none;
}

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

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

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

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

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

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

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

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

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

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

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

.billing-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);
}

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

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

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

.billing-badge.danger {
    background: #fef2f2;
    color: #dc2626;
}

.billing-badge.warn {
    background: #fffbeb;
    color: #b45309;
}

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

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

.billing-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;
}

.billing-icon {
    width: 42px;
    height: 42px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    background: #fff1f2;
    color: #be123c;
    font-weight: 900;
}

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

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

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

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

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

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

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

.billing-table-wrap table {
    min-width: 920px;
}

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

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

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

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

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