/* ==========================================================
   ProTax ERP — Cards
   ========================================================== */

/* ==========================================================
   Base ERP Card
   ========================================================== */

.erp-card {
    position: relative;

    background: #FFFFFF;

    border: 1px solid var(--erp-border, #E2E8F0);
    border-radius: 16px;

    padding: 22px;

    box-shadow: var(--shadow-sm, 0 4px 18px rgba(15, 23, 42, 0.045));

    box-sizing: border-box;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.erp-card:hover {
    transform: translateY(-2px);

    border-color: #D7E0EA;

    box-shadow:
        0 10px 28px rgba(15, 23, 42, 0.075);
}

/* ==========================================================
   Card Title
   ========================================================== */

.erp-card-title {
    margin: 0 0 18px;

    color: #0F172A;

    font-size: var(--type-heading, 17px);
    line-height: 1.35;

    font-weight: 700;
    letter-spacing: -0.02em;
}

/* ==========================================================
   Statistic Card
   ========================================================== */

.erp-stat-card {
    display: flex;

    align-items: center;
    justify-content: flex-start;

    gap: 16px;

    min-height: 118px;

    background: #FFFFFF;

    border: 1px solid var(--erp-border, #E2E8F0);
    border-radius: 16px;

    padding: 22px;

    box-shadow: var(
        --shadow-sm,
        0 4px 18px rgba(15, 23, 42, 0.045)
    );

    box-sizing: border-box;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.erp-stat-card:hover {
    transform: translateY(-2px);

    border-color: #D7E0EA;

    box-shadow:
        0 10px 28px rgba(15, 23, 42, 0.075);
}

/* ==========================================================
   Statistic Icon
   ========================================================== */

.erp-stat-icon {
    flex: 0 0 52px;

    width: 52px;
    height: 52px;

    border-radius: 14px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #EEF4FF;

    color: var(
        --erp-primary,
        #2563EB
    );

    font-size: 22px;

    line-height: 1;
}

/* ==========================================================
   Statistic Content
   ========================================================== */

.erp-stat-card-content {
    min-width: 0;
}

.erp-stat-card-label {
    margin: 0;

    color: #64748B;

    font-size: var(--type-label, 12px);
    line-height: 1.45;

    font-weight: 500;
}

.erp-stat-card h3,
.erp-stat-number {
    margin: 4px 0 2px;

    color: #0F172A;

    font-size: 27px;
    line-height: 1.15;

    font-weight: 750;

    letter-spacing: -0.02em;
}

.erp-stat-card small,
.erp-stat-change {
    display: block;

    color: #64748B;

    font-size: var(--type-caption, 11px);
    line-height: 1.45;
}

/* ==========================================================
   Status Variants
   ========================================================== */

.erp-stat-card.is-primary .erp-stat-icon {
    background: #2563EB;
    color: #FFFFFF;
}

.erp-stat-card.is-success .erp-stat-icon {
    background: #16A34A;
    color: #FFFFFF;
}

.erp-stat-card.is-warning .erp-stat-icon {
    background: #EA580C;
    color: #FFFFFF;
}

.erp-stat-card.is-purple .erp-stat-icon {
    background: #7C3AED;
    color: #FFFFFF;
}

/* ==========================================================
   Generic Card Header
   ========================================================== */

.erp-card-header {
    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    gap: 12px;

    margin-bottom: 18px;
}

.erp-card-header h3 {
    margin: 0;

    color: #0F172A;

    font-size: var(--type-heading, 17px);
    line-height: 1.35;

    font-weight: 700;
    letter-spacing: -0.02em;
}

.erp-card-header p { margin: 4px 0 0; color: var(--erp-text-light, #667085); font-size: 12px; line-height: 1.5; }

.erp-card-header a {
    color: #2563EB;

    font-size: 12px;
    font-weight: 700;

    text-decoration: none;
}

.erp-card-header a:hover {
    text-decoration: underline;
}

/* ==========================================================
   Card Body
   ========================================================== */

.erp-card-body {
    min-width: 0;
}

/* ==========================================================
   Responsive
   ========================================================== */

@media (max-width: 640px) {

    .erp-card {
        padding: 18px;

        border-radius: 14px;
    }

    .erp-stat-card {
        min-height: 105px;

        padding: 18px;
    }

    .erp-stat-icon {
        flex-basis: 48px;

        width: 48px;
        height: 48px;

        border-radius: 13px;

        font-size: 20px;
    }

    .erp-stat-card h3,
    .erp-stat-number {
        font-size: 24px;
    }
}
