/* Mobile Card Table Styles */
@media (max-width: 768px) {
    .mobile-card-table {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .mobile-card {
        background-color: white;
        border: 1px solid #e5e7eb;
        border-radius: 0.75rem;
        padding: 1rem;
        box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    }

    .mobile-card-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 0.75rem;
    }

    .mobile-card-title {
        font-weight: 700;
        font-size: 1rem;
        color: #111827;
    }

    .mobile-card-subtitle {
        font-size: 0.75rem;
        color: #6b7280;
        background-color: #f3f4f6;
        padding: 0.25rem 0.5rem;
        border-radius: 0.5rem;
    }

    .mobile-card-stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        font-size: 0.875rem;
    }

    .mobile-stat-box {
        background-color: #f9fafb;
        border-radius: 0.5rem;
        padding: 0.5rem;
        text-align: center;
        border: 1px solid #e5e7eb;
    }

    .mobile-stat-value {
        font-weight: 700;
        font-size: 1.125rem;
        line-height: 1.25;
    }

    .mobile-stat-label {
        font-size: 0.65rem;
        text-transform: uppercase;
        font-weight: 500;
        margin-top: 0.25rem;
    }

    /* Color variants for stat boxes */
    .mobile-stat-box.green {
        background-color: #f0fdf4;
        border-color: #dcfce7;
    }

    .mobile-stat-box.green .mobile-stat-value {
        color: #16a34a;
    }

    .mobile-stat-box.green .mobile-stat-label {
        color: #15803d;
    }

    .mobile-stat-box.indigo {
        background-color: #eef2ff;
        border-color: #e0e7ff;
    }

    .mobile-stat-box.indigo .mobile-stat-value {
        color: #4f46e5;
    }

    .mobile-stat-box.indigo .mobile-stat-label {
        color: #4338ca;
    }

    .mobile-stat-box.blue {
        background-color: #eff6ff;
        border-color: #dbeafe;
    }

    .mobile-stat-box.blue .mobile-stat-value {
        color: #2563eb;
    }

    .mobile-stat-box.blue .mobile-stat-label {
        color: #1d4ed8;
    }

    .mobile-stat-box.red {
        background-color: #fef2f2;
        border-color: #fee2e2;
    }

    .mobile-stat-box.red .mobile-stat-value {
        color: #dc2626;
    }

    .mobile-stat-box.red .mobile-stat-label {
        color: #b91c1c;
    }
}

/* Dark Mode Support for Mobile Cards */
html.dark .mobile-card {
    background-color: #0c0f17;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}

html.dark .mobile-card-title {
    color: #f8fafc;
}

html.dark .mobile-card-subtitle {
    color: #94a3b8;
    background-color: #161b26;
}

html.dark .mobile-stat-box {
    background-color: #080a0f;
    border-color: rgba(255, 255, 255, 0.06);
}

html.dark .mobile-stat-box.green {
    background-color: rgba(22, 163, 74, 0.15);
    border-color: rgba(22, 163, 74, 0.3);
}
html.dark .mobile-stat-box.green .mobile-stat-value {
    color: #4ade80;
}
html.dark .mobile-stat-box.green .mobile-stat-label {
    color: #86efac;
}

html.dark .mobile-stat-box.indigo {
    background-color: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
}
html.dark .mobile-stat-box.indigo .mobile-stat-value {
    color: #818cf8;
}
html.dark .mobile-stat-box.indigo .mobile-stat-label {
    color: #a5b4fc;
}

html.dark .mobile-stat-box.blue {
    background-color: rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.3);
}
html.dark .mobile-stat-box.blue .mobile-stat-value {
    color: #60a5fa;
}
html.dark .mobile-stat-box.blue .mobile-stat-label {
    color: #93c5fd;
}

html.dark .mobile-stat-box.red {
    background-color: rgba(220, 38, 38, 0.15);
    border-color: rgba(220, 38, 38, 0.3);
}
html.dark .mobile-stat-box.red .mobile-stat-value {
    color: #f87171;
}
html.dark .mobile-stat-box.red .mobile-stat-label {
    color: #fca5a5;
}

html.dark .mobile-stat-box.purple {
    background-color: rgba(168, 85, 247, 0.15);
    border-color: rgba(168, 85, 247, 0.3);
}
html.dark .mobile-stat-box.purple .mobile-stat-value {
    color: #c084fc;
}
html.dark .mobile-stat-box.purple .mobile-stat-label {
    color: #d8b4fe;
}

/* Global Tailwind Padding Fallbacks for Inputs with Icons */
.pl-8 { padding-left: 2rem !important; }
.pl-9 { padding-left: 2.25rem !important; }
.pl-10 { padding-left: 2.5rem !important; }
.pl-11 { padding-left: 2.75rem !important; }
.pl-12 { padding-left: 3rem !important; }
.pl-14 { padding-left: 3.5rem !important; }
