/* ================================================
   Filament Admin Panel - Custom Theme
   Modern animations, glassmorphism, and premium UI
   This file is loaded AS ADDITIONAL CSS on top of
   Filament's default Tailwind v3 CSS.
   ================================================ */

/* === Animation Keyframes === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse-scale {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* === Widget Animations === */
.fi-wi-stats-overview-stat {
    animation: fadeInUp 0.5s ease-out forwards;
    opacity: 0;
}

.fi-wi-stats-overview-stat:nth-child(1) {
    animation-delay: 0.1s;
}

.fi-wi-stats-overview-stat:nth-child(2) {
    animation-delay: 0.2s;
}

.fi-wi-stats-overview-stat:nth-child(3) {
    animation-delay: 0.3s;
}

.fi-wi-stats-overview-stat:nth-child(4) {
    animation-delay: 0.4s;
}

.fi-wi-stats-overview-stat:nth-child(5) {
    animation-delay: 0.5s;
}

.fi-wi-stats-overview-stat:nth-child(6) {
    animation-delay: 0.6s;
}

.fi-wi-chart {
    animation: fadeIn 0.6s ease-out forwards;
    opacity: 0;
    animation-delay: 0.3s;
}

.fi-wi-table {
    animation: fadeInUp 0.5s ease-out forwards;
    opacity: 0;
    animation-delay: 0.4s;
}

/* === Glassmorphism Effect (sections only - not stat cards) === */
.fi-section,
.fi-wi-chart {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.dark .fi-section {
    background: rgba(30, 41, 59, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

:root:not(.dark) .fi-section {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* === Smooth Hover Effects === */
.fi-wi-stats-overview-stat {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.fi-wi-stats-overview-stat:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.dark .fi-wi-stats-overview-stat:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
}

.fi-btn {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.fi-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.fi-ta-row {
    transition: background-color 0.15s ease-in-out;
}

/* === Sidebar Gradient === */
.fi-sidebar {
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.05) 0%, transparent 50%) !important;
}

.dark .fi-sidebar {
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.1) 0%, rgba(30, 41, 59, 1) 50%) !important;
}

/* === Header Enhancement === */
.fi-topbar {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.dark .fi-topbar {
    background: rgba(15, 23, 42, 0.9) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* === Navigation Item Transitions === */
.fi-sidebar-item {
    transition: all 0.2s ease-in-out;
}

.fi-sidebar-item:hover {
    transform: translateX(4px);
}

.fi-sidebar-item-active {
    position: relative;
}

.fi-sidebar-item-active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: linear-gradient(180deg, #6366f1, #8b5cf6);
    border-radius: 0 2px 2px 0;
}

/* === Card Shadows === */
.fi-section {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease-in-out;
}

.fi-section:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

/* === Stats Counter Animation === */
.fi-wi-stats-overview-stat-value {
    font-feature-settings: 'tnum';
    letter-spacing: -0.025em;
}

/* === Loading Skeleton Shimmer === */
.fi-loading {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* === Chart Enhancement === */
.fi-wi-chart canvas {
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

/* === Badge Pulse for Important Items === */
.fi-badge-danger {
    animation: pulse-scale 2s infinite;
}

/* === Modal Animations === */
.fi-modal-window {
    animation: fadeInUp 0.3s ease-out;
}

/* === Auth Login === */
.fi-simple-layout {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(220, 38, 38, 0.12), transparent 28%),
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.14), transparent 26%),
        radial-gradient(circle at bottom left, rgba(16, 185, 129, 0.12), transparent 24%),
        linear-gradient(135deg, #050816 0%, #0b1220 45%, #111827 100%);
}

.fi-simple-layout::before,
.fi-simple-layout::after {
    content: "";
    position: absolute;
    inset: auto;
    width: 22rem;
    height: 22rem;
    border-radius: 9999px;
    filter: blur(80px);
    opacity: 0.35;
    pointer-events: none;
}

.fi-simple-layout::before {
    top: -6rem;
    left: -4rem;
    background: rgba(220, 38, 38, 0.28);
}

.fi-simple-layout::after {
    right: -5rem;
    bottom: -7rem;
    background: rgba(16, 185, 129, 0.22);
}

.fi-simple-main {
    max-width: 68rem !important;
    padding: 0 !important;
    background: rgba(10, 15, 28, 0.82) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.fi-auth-login-shell {
    display: grid;
    gap: 0;
}

.fi-auth-login-hero,
.fi-auth-login-form-panel {
    padding: 2rem;
}

.fi-auth-login-hero {
    position: relative;
    background:
        linear-gradient(160deg, rgba(127, 29, 29, 0.92) 0%, rgba(17, 24, 39, 0.72) 100%);
    color: #f9fafb;
}

.fi-auth-login-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 24px 24px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent);
    pointer-events: none;
}

.fi-auth-login-kicker,
.fi-auth-login-title,
.fi-auth-login-copy,
.fi-auth-login-palette {
    position: relative;
    z-index: 1;
}

.fi-auth-login-kicker {
    margin: 0 0 0.85rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.fi-auth-login-title {
    margin: 0;
    font-size: clamp(1.9rem, 3vw, 2.7rem);
    line-height: 1.02;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.fi-auth-login-copy {
    margin: 1rem 0 0;
    max-width: 30rem;
    font-size: 0.98rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.78);
}

.fi-auth-login-palette {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: 1.75rem;
}

.fi-auth-login-palette-card {
    display: flex;
    min-height: 5.75rem;
    align-items: flex-end;
    border-radius: 1.25rem;
    padding: 1rem;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.fi-auth-login-palette-card-danger {
    background: linear-gradient(135deg, #b91c1c, #ef4444);
}

.fi-auth-login-palette-card-warning {
    background: linear-gradient(135deg, #d97706, #f59e0b);
}

.fi-auth-login-palette-card-success {
    background: linear-gradient(135deg, #059669, #10b981);
}

.fi-auth-login-palette-card-warning-alt {
    background: linear-gradient(135deg, #ea580c, #f59e0b);
}

.fi-auth-login-form-panel {
    background: rgba(10, 15, 28, 0.92);
}

.fi-auth-login-form-panel .fi-simple-header {
    align-items: flex-start;
}

.fi-auth-login-form-panel .fi-simple-header .fi-logo {
    height: 4rem !important;
    margin-bottom: 0.85rem;
}

.fi-auth-login-form-panel .fi-simple-header-heading {
    width: 100%;
    text-align: left;
    font-size: 2rem;
    letter-spacing: -0.04em;
}

.fi-auth-login-form-panel .fi-input-wrp,
.fi-auth-login-form-panel .fi-input,
.fi-auth-login-form-panel .fi-select-input,
.fi-auth-login-form-panel .fi-input-wrp-input {
    border-radius: 0.95rem;
}

.fi-auth-login-form-panel .fi-input-wrp {
    border-color: rgba(245, 158, 11, 0.28);
    background: rgba(255, 255, 255, 0.03);
}

.fi-auth-login-form-panel .fi-btn {
    min-height: 3rem;
    border-radius: 0.95rem;
    font-weight: 700;
}

.fi-auth-login-links {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.95rem;
}

.fi-auth-login-links-wrap {
    margin-top: 1rem;
}

.fi-auth-login-links-muted {
    display: flex;
    justify-content: center;
    gap: 0.35rem;
    color: #9ca3af;
    flex-wrap: wrap;
}

.fi-auth-login-link,
.fi-auth-login-links .fi-link {
    color: #f59e0b;
    font-weight: 600;
}

.fi-auth-login-text-block {
    display: grid;
    gap: 0.9rem;
}

.fi-auth-login-body-copy {
    margin: 0;
    text-align: center;
    font-size: 0.97rem;
    line-height: 1.7;
    color: #cbd5e1;
}

html:not(.dark) {
    color-scheme: light;
}

html:not(.dark) .fi-simple-layout {
    background:
        radial-gradient(circle at top left, rgba(220, 38, 38, 0.08), transparent 26%),
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.08), transparent 24%),
        radial-gradient(circle at bottom left, rgba(16, 185, 129, 0.08), transparent 24%),
        linear-gradient(135deg, #fff7ed 0%, #f8fafc 46%, #eff6ff 100%);
}

html:not(.dark) .fi-simple-layout::before {
    background: rgba(220, 38, 38, 0.12);
}

html:not(.dark) .fi-simple-layout::after {
    background: rgba(16, 185, 129, 0.1);
}

html:not(.dark) .fi-simple-main {
    background: rgba(255, 255, 255, 0.86) !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.12) !important;
}

html:not(.dark) .fi-auth-login-hero {
    background: linear-gradient(160deg, rgba(185, 28, 28, 0.92) 0%, rgba(249, 115, 22, 0.78) 100%);
}

html:not(.dark) .fi-auth-login-form-panel {
    background: rgba(255, 255, 255, 0.88);
}

html:not(.dark) .fi-auth-login-form-panel .fi-simple-header-heading,
html:not(.dark) .fi-auth-login-body-copy,
html:not(.dark) .fi-auth-login-form-panel .fi-input,
html:not(.dark) .fi-auth-login-form-panel .fi-input-wrp-input,
html:not(.dark) .fi-auth-login-form-panel .fi-fo-field-wrp-label span {
    color: #0f172a;
}

html:not(.dark) .fi-auth-login-links-muted {
    color: #64748b;
}

html:not(.dark) .fi-auth-login-form-panel .fi-input-wrp {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(217, 119, 6, 0.24);
}

html:not(.dark) .fi-auth-login-form-panel .fi-input::placeholder {
    color: #94a3b8;
}

@media (min-width: 900px) {
    .fi-auth-login-shell {
        grid-template-columns: minmax(0, 1.05fr) minmax(24rem, 0.95fr);
    }

    .fi-auth-login-hero,
    .fi-auth-login-form-panel {
        padding: 3rem;
    }
}

@media (max-width: 899px) {
    .fi-simple-main {
        max-width: 32rem !important;
    }

    .fi-auth-login-hero {
        padding-bottom: 1.5rem;
    }

    .fi-auth-login-title {
        font-size: 1.7rem;
    }
}

/* === Modal Normalization === */
.fi-modal-close-overlay {
    background: rgba(15, 23, 42, 0.32) !important;
}

.fi-modal-window:not(.fi-modal-slide-over-window) {
    max-height: min(calc(100dvh - 2rem), 40rem);
    overflow: visible;
}

.fi-modal-content,
.fi-modal-footer {
    overflow: visible;
}

.dark .fi-modal-window,
.dark .fi-modal-header.fi-sticky,
.dark .fi-modal-footer.fi-sticky {
    background: #ffffff !important;
    color: #111827 !important;
    border-color: #e5e7eb !important;
}

.dark .fi-modal-heading {
    color: #111827 !important;
}

.dark .fi-modal-description {
    color: #6b7280 !important;
}

.dark .fi-modal-close-btn {
    color: #9ca3af !important;
}

/* === Dropdown Animations === */
.fi-dropdown-panel {
    animation: fadeIn 0.15s ease-out;
}

/* === Custom Scrollbar === */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.5);
}

.dark ::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.4);
}

/* === Focus Ring Enhancement === */
.fi-input:focus,
.fi-select:focus,
.fi-btn:focus-visible {
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

/* === Page Transition === */
.fi-main {
    animation: fadeIn 0.3s ease-out;
}

/* === Chart Container Enhancement === */
.fi-wi-chart .fi-section {
    position: relative;
    overflow: hidden;
}

.fi-wi-chart .fi-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #10b981, #3b82f6, #8b5cf6);
    border-radius: 1.5rem 1.5rem 0 0;
}

/* === Compact Empty State === */
.fi-ta-empty-state {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}

.fi-ta-empty-state-icon {
    width: 2.5rem !important;
    height: 2.5rem !important;
    margin-bottom: 0.5rem !important;
    opacity: 0.6;
}

.fi-ta-empty-state-heading {
    font-size: 0.95rem !important;
}

.fi-ta-empty-state-description {
    font-size: 0.82rem !important;
    opacity: 0.7;
}

/* === Section Heading Accent === */
.fi-section-header {
    position: relative;
}

.fi-section-header-heading {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.fi-section-header-heading::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 1.2em;
    background: linear-gradient(180deg, #ef4444, #f59e0b);
    border-radius: 2px;
}

/* =================================================
   Tailwind Utility Shims
   Custom classes used by dashboard stat cards and
   report pages that are NOT in Filament's pre-built
   Tailwind v3 CSS.
   ================================================= */

/* --- Gradient Directions --- */
.bg-gradient-to-br {
    background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)) !important;
}

.bg-gradient-to-r {
    background-image: linear-gradient(to right, var(--tw-gradient-stops)) !important;
}

/* --- Gradient From Colors --- */
.from-red-500 {
    --tw-gradient-from: #ef4444;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(239, 68, 68, 0));
}

.from-red-50 {
    --tw-gradient-from: #fef2f2;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(254, 242, 242, 0));
}

.from-rose-500 {
    --tw-gradient-from: #f43f5e;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(244, 63, 94, 0));
}

.from-orange-500 {
    --tw-gradient-from: #f97316;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(249, 115, 22, 0));
}

.from-orange-50 {
    --tw-gradient-from: #fff7ed;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(255, 247, 237, 0));
}

.from-amber-400 {
    --tw-gradient-from: #fbbf24;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(251, 191, 36, 0));
}

.from-amber-500 {
    --tw-gradient-from: #f59e0b;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(245, 158, 11, 0));
}

.from-amber-50 {
    --tw-gradient-from: #fffbeb;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(255, 251, 235, 0));
}

.from-emerald-500 {
    --tw-gradient-from: #10b981;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(16, 185, 129, 0));
}

.from-emerald-50 {
    --tw-gradient-from: #ecfdf5;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(236, 253, 245, 0));
}

.from-teal-600 {
    --tw-gradient-from: #0d9488;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(13, 148, 136, 0));
}

.from-blue-500 {
    --tw-gradient-from: #3b82f6;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(59, 130, 246, 0));
}

.from-blue-600 {
    --tw-gradient-from: #2563eb;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(37, 99, 235, 0));
}

.from-blue-700 {
    --tw-gradient-from: #1d4ed8;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(29, 78, 216, 0));
}

.from-blue-50 {
    --tw-gradient-from: #eff6ff;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(239, 246, 255, 0));
}

.from-indigo-500 {
    --tw-gradient-from: #6366f1;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(99, 102, 241, 0));
}

.from-indigo-600 {
    --tw-gradient-from: #4f46e5;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(79, 70, 229, 0));
}

.from-violet-600 {
    --tw-gradient-from: #7c3aed;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(124, 58, 237, 0));
}

.from-purple-500 {
    --tw-gradient-from: #a855f7;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(168, 85, 247, 0));
}

.from-purple-600 {
    --tw-gradient-from: #9333ea;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(147, 51, 234, 0));
}

.from-purple-50 {
    --tw-gradient-from: #faf5ff;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(250, 245, 255, 0));
}

.from-fuchsia-600 {
    --tw-gradient-from: #c026d3;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(192, 38, 211, 0));
}

.from-pink-500 {
    --tw-gradient-from: #ec4899;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(236, 72, 153, 0));
}

.from-pink-50 {
    --tw-gradient-from: #fdf2f8;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(253, 242, 248, 0));
}

.from-gray-50 {
    --tw-gradient-from: #f9fafb;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(249, 250, 251, 0));
}

.from-gray-100 {
    --tw-gradient-from: #f3f4f6;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(243, 244, 246, 0));
}

.from-gray-600 {
    --tw-gradient-from: #4b5563;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(75, 85, 99, 0));
}

/* --- Gradient To Colors --- */
.to-red-600 {
    --tw-gradient-to: #dc2626;
}

.to-red-700 {
    --tw-gradient-to: #b91c1c;
}

.to-red-100 {
    --tw-gradient-to: #fee2e2;
}

.to-orange-500 {
    --tw-gradient-to: #f97316;
}

.to-orange-600 {
    --tw-gradient-to: #ea580c;
}

.to-orange-100 {
    --tw-gradient-to: #ffedd5;
}

.to-amber-100 {
    --tw-gradient-to: #fef3c7;
}

.to-emerald-100 {
    --tw-gradient-to: #d1fae5;
}

.to-emerald-600 {
    --tw-gradient-to: #059669;
}

.to-teal-600 {
    --tw-gradient-to: #0d9488;
}

.to-blue-100 {
    --tw-gradient-to: #dbeafe;
}

.to-blue-700 {
    --tw-gradient-to: #1d4ed8;
}

.to-blue-800 {
    --tw-gradient-to: #1e40af;
}

.to-indigo-600 {
    --tw-gradient-to: #4f46e5;
}

.to-indigo-700 {
    --tw-gradient-to: #4338ca;
}

.to-indigo-800 {
    --tw-gradient-to: #3730a3;
}

.to-violet-700 {
    --tw-gradient-to: #6d28d9;
}

.to-purple-600 {
    --tw-gradient-to: #9333ea;
}

.to-purple-700 {
    --tw-gradient-to: #7e22ce;
}

.to-purple-800 {
    --tw-gradient-to: #6b21a8;
}

.to-fuchsia-600 {
    --tw-gradient-to: #c026d3;
}

.to-fuchsia-700 {
    --tw-gradient-to: #a21caf;
}

.to-pink-100 {
    --tw-gradient-to: #fce7f3;
}

.to-pink-600 {
    --tw-gradient-to: #db2777;
}

.to-gray-100 {
    --tw-gradient-to: #f3f4f6;
}

.to-gray-800 {
    --tw-gradient-to: #1f2937;
}

.to-white {
    --tw-gradient-to: #ffffff;
}

.to-transparent {
    --tw-gradient-to: transparent;
}

/* --- Dark Mode Gradient Overrides --- */
.dark .dark\:from-red-600 {
    --tw-gradient-from: #dc2626;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(220, 38, 38, 0));
}

.dark .dark\:from-red-800 {
    --tw-gradient-from: #991b1b;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(153, 27, 27, 0));
}

.dark .dark\:from-red-900\/30 {
    --tw-gradient-from: rgba(127, 29, 29, 0.3);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(127, 29, 29, 0));
}

.dark .dark\:from-red-900\/20 {
    --tw-gradient-from: rgba(127, 29, 29, 0.2);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(127, 29, 29, 0));
}

.dark .dark\:from-orange-900\/30 {
    --tw-gradient-from: rgba(124, 45, 18, 0.3);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(124, 45, 18, 0));
}

.dark .dark\:from-amber-900\/30 {
    --tw-gradient-from: rgba(120, 53, 15, 0.3);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(120, 53, 15, 0));
}

.dark .dark\:from-emerald-600 {
    --tw-gradient-from: #059669;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(5, 150, 105, 0));
}

.dark .dark\:from-emerald-900\/30 {
    --tw-gradient-from: rgba(6, 78, 59, 0.3);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(6, 78, 59, 0));
}

.dark .dark\:from-blue-600 {
    --tw-gradient-from: #2563eb;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(37, 99, 235, 0));
}

.dark .dark\:from-blue-800 {
    --tw-gradient-from: #1e40af;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(30, 64, 175, 0));
}

.dark .dark\:from-blue-900\/30 {
    --tw-gradient-from: rgba(30, 58, 138, 0.3);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(30, 58, 138, 0));
}

.dark .dark\:from-purple-600 {
    --tw-gradient-from: #9333ea;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(147, 51, 234, 0));
}

.dark .dark\:from-purple-800 {
    --tw-gradient-from: #6b21a8;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(107, 33, 168, 0));
}

.dark .dark\:from-purple-900\/30 {
    --tw-gradient-from: rgba(88, 28, 135, 0.3);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(88, 28, 135, 0));
}

.dark .dark\:from-pink-600 {
    --tw-gradient-from: #db2777;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(219, 39, 119, 0));
}

.dark .dark\:from-pink-900\/30 {
    --tw-gradient-from: rgba(131, 24, 67, 0.3);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(131, 24, 67, 0));
}

.dark .dark\:from-gray-700 {
    --tw-gradient-from: #374151;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(55, 65, 81, 0));
}

.dark .dark\:from-gray-700\/50 {
    --tw-gradient-from: rgba(55, 65, 81, 0.5);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(55, 65, 81, 0));
}

.dark .dark\:from-gray-800 {
    --tw-gradient-from: #1f2937;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(31, 41, 55, 0));
}

.dark .dark\:to-red-800 {
    --tw-gradient-to: #991b1b;
}

.dark .dark\:to-red-800\/30 {
    --tw-gradient-to: rgba(153, 27, 27, 0.3);
}

.dark .dark\:to-orange-800\/30 {
    --tw-gradient-to: rgba(154, 52, 18, 0.3);
}

.dark .dark\:to-amber-800\/30 {
    --tw-gradient-to: rgba(146, 64, 14, 0.3);
}

.dark .dark\:to-emerald-700 {
    --tw-gradient-to: #047857;
}

.dark .dark\:to-emerald-800\/30 {
    --tw-gradient-to: rgba(6, 95, 70, 0.3);
}

.dark .dark\:to-blue-800 {
    --tw-gradient-to: #1e40af;
}

.dark .dark\:to-blue-800\/30 {
    --tw-gradient-to: rgba(30, 64, 175, 0.3);
}

.dark .dark\:to-purple-800 {
    --tw-gradient-to: #6b21a8;
}

.dark .dark\:to-purple-800\/30 {
    --tw-gradient-to: rgba(107, 33, 168, 0.3);
}

.dark .dark\:to-pink-700 {
    --tw-gradient-to: #be185d;
}

.dark .dark\:to-pink-800\/30 {
    --tw-gradient-to: rgba(157, 23, 77, 0.3);
}

.dark .dark\:to-gray-600 {
    --tw-gradient-to: #4b5563;
}

.dark .dark\:to-gray-800 {
    --tw-gradient-to: #1f2937;
}

.dark .dark\:to-transparent {
    --tw-gradient-to: transparent;
}

/* --- Text Colors --- */
.text-emerald-100 {
    color: #d1fae5;
}

.text-amber-100 {
    color: #fef3c7;
}

.text-rose-100 {
    color: #ffe4e6;
}

.text-blue-100 {
    color: #dbeafe;
}

.text-red-100 {
    color: #fee2e2;
}

.text-orange-100 {
    color: #ffedd5;
}

.text-gray-300 {
    color: #d1d5db;
}

/* --- Colored Shadows --- */
.shadow-emerald-900\/20 {
    --tw-shadow-color: rgba(6, 78, 59, 0.2);
}

.shadow-orange-900\/20 {
    --tw-shadow-color: rgba(124, 45, 18, 0.2);
}

.shadow-amber-900\/20 {
    --tw-shadow-color: rgba(120, 53, 15, 0.2);
}

.shadow-rose-900\/20 {
    --tw-shadow-color: rgba(136, 19, 55, 0.2);
}

.shadow-blue-900\/20 {
    --tw-shadow-color: rgba(30, 58, 138, 0.2);
}

.shadow-blue-500\/30 {
    --tw-shadow-color: rgba(59, 130, 246, 0.3);
}

.shadow-red-900\/20 {
    --tw-shadow-color: rgba(127, 29, 29, 0.2);
}

.shadow-red-500\/30 {
    --tw-shadow-color: rgba(239, 68, 68, 0.3);
}

.shadow-gray-900\/20 {
    --tw-shadow-color: rgba(17, 24, 39, 0.2);
}

.shadow-indigo-900\/20 {
    --tw-shadow-color: rgba(49, 46, 129, 0.2);
}

.shadow-purple-900\/20 {
    --tw-shadow-color: rgba(88, 28, 135, 0.2);
}

.shadow-purple-500\/30 {
    --tw-shadow-color: rgba(168, 85, 247, 0.3);
}

/* --- Background Colors (solid & with opacity) --- */
.bg-white\/0 {
    background-color: rgba(255, 255, 255, 0);
}

.bg-white\/10 {
    background-color: rgba(255, 255, 255, 0.1);
}

.bg-white\/20 {
    background-color: rgba(255, 255, 255, 0.2);
}

.bg-black\/20 {
    background-color: rgba(0, 0, 0, 0.2);
}

.bg-gray-950\/50 {
    background-color: rgba(3, 7, 18, 0.5);
}

/* Tinted backgrounds */
.bg-blue-50 {
    background-color: #eff6ff;
}

.bg-emerald-50 {
    background-color: #ecfdf5;
}

.bg-amber-50 {
    background-color: #fffbeb;
}

.bg-orange-50 {
    background-color: #fff7ed;
}

.bg-red-50 {
    background-color: #fef2f2;
}

.bg-purple-50 {
    background-color: #faf5ff;
}

.bg-pink-50 {
    background-color: #fdf2f8;
}

.bg-cyan-50 {
    background-color: #ecfeff;
}

.bg-rose-50 {
    background-color: #fff1f2;
}

/* Tinted backgrounds with opacity (for report section cards) */
.bg-blue-50\/50 {
    background-color: rgba(239, 246, 255, 0.5);
}

.bg-emerald-50\/50 {
    background-color: rgba(236, 253, 245, 0.5);
}

.bg-purple-50\/50 {
    background-color: rgba(250, 245, 255, 0.5);
}

.bg-cyan-50\/50 {
    background-color: rgba(236, 254, 255, 0.5);
}

.bg-orange-50\/50 {
    background-color: rgba(255, 247, 237, 0.5);
}

.bg-rose-50\/50 {
    background-color: rgba(255, 241, 242, 0.5);
}

.bg-amber-50\/50 {
    background-color: rgba(255, 251, 235, 0.5);
}

/* Tinted borders with opacity */
.border-blue-100\/50 {
    border-color: rgba(219, 234, 254, 0.5);
}

.border-emerald-100\/50 {
    border-color: rgba(209, 250, 229, 0.5);
}

.border-purple-100\/50 {
    border-color: rgba(243, 232, 255, 0.5);
}

.border-cyan-100\/50 {
    border-color: rgba(207, 250, 254, 0.5);
}

.border-orange-100\/50 {
    border-color: rgba(255, 237, 213, 0.5);
}

.border-rose-100\/50 {
    border-color: rgba(255, 228, 230, 0.5);
}

.border-amber-100\/50 {
    border-color: rgba(254, 243, 199, 0.5);
}

/* Borders */
.border-white\/10 {
    border-color: rgba(255, 255, 255, 0.1);
}

.border-white\/5 {
    border-color: rgba(255, 255, 255, 0.05);
}

/* --- Text with Opacity --- */
.text-white\/90 {
    color: rgba(255, 255, 255, 0.9);
}

.text-white\/60 {
    color: rgba(255, 255, 255, 0.6);
}

.text-white\/20 {
    color: rgba(255, 255, 255, 0.2);
}

/* --- Opacity --- */
.opacity-10 {
    opacity: 0.1;
}

/* --- Border Radius --- */
.rounded-3xl {
    border-radius: 1.5rem;
}

.rounded-b-3xl {
    border-bottom-left-radius: 1.5rem;
    border-bottom-right-radius: 1.5rem;
}

/* --- Mix Blend Mode --- */
.mix-blend-overlay {
    mix-blend-mode: overlay;
}

/* --- Backdrop Blur --- */
.backdrop-blur-md {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* --- Shadow Utilities --- */
.shadow-inner {
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
}

.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* --- Min Height --- */
.min-h-\[160px\] {
    min-height: 160px;
}

/* --- Hover Transforms --- */
.hover\:-translate-y-1:hover {
    transform: translateY(-0.25rem);
}

.hover\:shadow-2xl:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* --- Group Hover Effects --- */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

.group:hover .group-hover\:rotate-12 {
    transform: rotate(12deg);
}

.group:hover .group-hover\:opacity-100 {
    opacity: 1;
}

.group:hover .group-hover\:opacity-40 {
    opacity: 0.4;
}

/* =================================================
   Grid & Layout Utility Shims
   Responsive grid classes for stat card layouts
   ================================================= */

/* Grid columns */
.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-cols-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

/* Gap */
.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

/* Responsive: sm (640px+) */
@media (min-width: 640px) {
    .sm\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sm\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .sm\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Responsive: md (768px+) */
@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .md\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .md\:flex-row {
        flex-direction: row;
    }

    .md\:items-end {
        align-items: flex-end;
    }

    .md\:items-center {
        align-items: center;
    }

    .md\:justify-between {
        justify-content: space-between;
    }
}

/* Responsive: lg (1024px+) */
@media (min-width: 1024px) {
    .lg\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .lg\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .lg\:grid-cols-5 {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

/* =================================================
   Dark Mode Utility Shims
   Text, background, and border colors for dark theme
   ================================================= */

/* Dark mode text colors */
.dark .dark\:text-white {
    color: #ffffff;
}

.dark .dark\:text-gray-100 {
    color: #f3f4f6;
}

.dark .dark\:text-gray-200 {
    color: #e5e7eb;
}

.dark .dark\:text-gray-300 {
    color: #d1d5db;
}

.dark .dark\:text-gray-400 {
    color: #9ca3af;
}

.dark .dark\:text-emerald-100 {
    color: #d1fae5;
}

.dark .dark\:text-emerald-400 {
    color: #34d399;
}

.dark .dark\:text-blue-100 {
    color: #dbeafe;
}

.dark .dark\:text-blue-400 {
    color: #60a5fa;
}

.dark .dark\:text-amber-100 {
    color: #fef3c7;
}

.dark .dark\:text-amber-200 {
    color: #fde68a;
}

.dark .dark\:text-amber-400 {
    color: #fbbf24;
}

.dark .dark\:text-red-100 {
    color: #fee2e2;
}

.dark .dark\:text-red-200 {
    color: #fecaca;
}

.dark .dark\:text-red-400 {
    color: #f87171;
}

.dark .dark\:text-pink-100 {
    color: #fce7f3;
}

.dark .dark\:text-pink-400 {
    color: #f472b6;
}

.dark .dark\:text-purple-100 {
    color: #f3e8ff;
}

.dark .dark\:text-purple-400 {
    color: #c084fc;
}

.dark .dark\:text-orange-100 {
    color: #ffedd5;
}

.dark .dark\:text-orange-400 {
    color: #fb923c;
}

/* Dark mode background colors */
.dark .dark\:bg-gray-800 {
    background-color: #1f2937;
}

.dark .dark\:bg-gray-900 {
    background-color: #111827;
}

.dark .dark\:bg-gray-900\/50 {
    background-color: rgba(17, 24, 39, 0.5);
}

.dark .dark\:bg-emerald-900\/30 {
    background-color: rgba(6, 78, 59, 0.3);
}

.dark .dark\:bg-amber-900\/30 {
    background-color: rgba(120, 53, 15, 0.3);
}

.dark .dark\:bg-red-900\/30 {
    background-color: rgba(127, 29, 29, 0.3);
}

.dark .dark\:bg-blue-900\/30 {
    background-color: rgba(30, 58, 138, 0.3);
}

.dark .dark\:bg-pink-900\/30 {
    background-color: rgba(131, 24, 67, 0.3);
}

.dark .dark\:bg-orange-900\/30 {
    background-color: rgba(124, 45, 18, 0.3);
}

/* Dark mode border colors */
.dark .dark\:border-gray-600 {
    border-color: #4b5563;
}

.dark .dark\:border-gray-700 {
    border-color: #374151;
}

.dark .dark\:border-gray-800 {
    border-color: #1f2937;
}

.dark .dark\:border-emerald-700 {
    border-color: #047857;
}

.dark .dark\:border-amber-700 {
    border-color: #b45309;
}

.dark .dark\:border-red-700 {
    border-color: #b91c1c;
}

.dark .dark\:border-blue-700 {
    border-color: #1d4ed8;
}

.dark .dark\:border-pink-700 {
    border-color: #be185d;
}

.dark .dark\:border-orange-700 {
    border-color: #c2410c;
}

.dark .dark\:border-red-300 {
    border-color: #fca5a5;
}

.dark .dark\:border-amber-300 {
    border-color: #fcd34d;
}

/* =================================================
   Extended Dark Mode + Layout Shims
   For Reports Dashboard detailed breakdown cards
   ================================================= */

/* Dark mode text colors - 300-shade variants */
.dark .dark\:text-blue-300 {
    color: #93c5fd;
}

.dark .dark\:text-emerald-300 {
    color: #6ee7b7;
}

.dark .dark\:text-purple-300 {
    color: #d8b4fe;
}

.dark .dark\:text-cyan-300 {
    color: #67e8f9;
}

.dark .dark\:text-cyan-400 {
    color: #22d3ee;
}

.dark .dark\:text-orange-300 {
    color: #fdba74;
}

.dark .dark\:text-rose-300 {
    color: #fda4af;
}

.dark .dark\:text-rose-400 {
    color: #fb7185;
}

.dark .dark\:text-gray-500 {
    color: #6b7280;
}

/* Dark mode bg with opacity fractions */
.dark .dark\:bg-gray-800\/50 {
    background-color: rgba(31, 41, 55, 0.5);
}

.dark .dark\:bg-blue-900\/10 {
    background-color: rgba(30, 58, 138, 0.1);
}

.dark .dark\:bg-emerald-900\/10 {
    background-color: rgba(6, 78, 59, 0.1);
}

.dark .dark\:bg-purple-900\/10 {
    background-color: rgba(88, 28, 135, 0.1);
}

.dark .dark\:bg-cyan-900\/10 {
    background-color: rgba(22, 78, 99, 0.1);
}

.dark .dark\:bg-cyan-900\/30 {
    background-color: rgba(22, 78, 99, 0.3);
}

.dark .dark\:bg-orange-900\/10 {
    background-color: rgba(124, 45, 18, 0.1);
}

.dark .dark\:bg-rose-900\/10 {
    background-color: rgba(136, 19, 55, 0.1);
}

.dark .dark\:bg-purple-900\/30 {
    background-color: rgba(88, 28, 135, 0.3);
}

.dark .dark\:bg-rose-900\/30 {
    background-color: rgba(136, 19, 55, 0.3);
}

/* Dark mode border opacity fractions */
.dark .dark\:border-blue-800\/30 {
    border-color: rgba(30, 64, 175, 0.3);
}

.dark .dark\:border-emerald-800\/30 {
    border-color: rgba(6, 95, 70, 0.3);
}

.dark .dark\:border-purple-800\/30 {
    border-color: rgba(107, 33, 168, 0.3);
}

.dark .dark\:border-cyan-800\/30 {
    border-color: rgba(21, 94, 117, 0.3);
}

.dark .dark\:border-orange-800\/30 {
    border-color: rgba(154, 52, 18, 0.3);
}

.dark .dark\:border-rose-800\/30 {
    border-color: rgba(159, 18, 57, 0.3);
}

/* Dark mode hover text */
.dark .dark\:hover\:text-blue-300:hover {
    color: #93c5fd;
}

.dark .dark\:hover\:text-emerald-300:hover {
    color: #6ee7b7;
}

.dark .dark\:hover\:text-purple-300:hover {
    color: #d8b4fe;
}

.dark .dark\:hover\:text-cyan-300:hover {
    color: #67e8f9;
}

.dark .dark\:hover\:text-orange-300:hover {
    color: #fdba74;
}

/* Light-mode bg/border colors with opacity fractions */
.bg-blue-50\/50 {
    background-color: rgba(239, 246, 255, 0.5);
}

.bg-emerald-50\/50 {
    background-color: rgba(236, 253, 245, 0.5);
}

.bg-purple-50\/50 {
    background-color: rgba(250, 245, 255, 0.5);
}

.bg-cyan-50\/50 {
    background-color: rgba(236, 254, 255, 0.5);
}

.bg-orange-50\/50 {
    background-color: rgba(255, 247, 237, 0.5);
}

.bg-rose-50\/50 {
    background-color: rgba(255, 241, 242, 0.5);
}

.border-blue-100\/50 {
    border-color: rgba(219, 234, 254, 0.5);
}

.border-emerald-100\/50 {
    border-color: rgba(209, 250, 229, 0.5);
}

.border-purple-100\/50 {
    border-color: rgba(243, 232, 255, 0.5);
}

.border-cyan-100\/50 {
    border-color: rgba(207, 250, 254, 0.5);
}

.border-orange-100\/50 {
    border-color: rgba(255, 237, 213, 0.5);
}

.border-rose-100\/50 {
    border-color: rgba(255, 228, 230, 0.5);
}

/* Additional responsive grid shims */
@media (min-width: 640px) {
    .sm\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .sm\:flex {
        display: flex;
    }

    .sm\:hidden {
        display: none;
    }
}

@media (min-width: 768px) {
    .md\:col-span-2 {
        grid-column: span 2 / span 2;
    }
}

@media (min-width: 1280px) {
    .xl\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .xl\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .xl\:col-span-2 {
        grid-column: span 2 / span 2;
    }
}

/* =================================================
   Spacing & Layout Utility Shims
   space-y-*, flex utilities, overflow, etc.
   ================================================= */

/* Space-Y (vertical gap between children) */
.space-y-4>*+* {
    margin-top: 1rem !important;
}

.space-y-6>*+* {
    margin-top: 1.5rem !important;
}

.space-y-8>*+* {
    margin-top: 2rem !important;
}

/* Padding bottom */
.pb-8 {
    padding-bottom: 2rem;
}

/* Flex utilities */
.flex-grow {
    flex-grow: 1;
}

/* Overflow */
.overflow-hidden {
    overflow: hidden;
}

.overflow-x-auto {
    overflow-x: auto;
}

/* Tracking */
.tracking-tight {
    letter-spacing: -0.025em;
}

.tracking-wider {
    letter-spacing: 0.05em;
}

.tracking-widest {
    letter-spacing: 0.1em;
}

/* Font weights */
.font-extrabold {
    font-weight: 800;
}

.font-black {
    font-weight: 900;
}

/* Additional mt shim */
.mt-8 {
    margin-top: 2rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.pt-6 {
    padding-top: 1.5rem;
}

/* =================================================
   Missing Gradient & Color Utility Shims
   For stat cards and report sections using cyan,
   rose, indigo, and slate color families
   ================================================= */

/* --- Gradient From: Cyan --- */
.from-cyan-600 {
    --tw-gradient-from: #0891b2;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(8, 145, 178, 0));
}

/* --- Gradient From: Rose --- */
.from-rose-500 {
    --tw-gradient-from: #f43f5e;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(244, 63, 94, 0));
}

/* --- Gradient From: Indigo --- */
.from-indigo-100\/50 {
    --tw-gradient-from: rgba(224, 231, 255, 0.5);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(224, 231, 255, 0));
}

/* --- Gradient From: Slate --- */
.from-slate-200\/50 {
    --tw-gradient-from: rgba(226, 232, 240, 0.5);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(226, 232, 240, 0));
}

/* --- Dark Gradient From: Indigo --- */
.dark .dark\:from-indigo-900\/30 {
    --tw-gradient-from: rgba(49, 46, 129, 0.3);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(49, 46, 129, 0));
}

/* --- Dark Gradient From: Slate --- */
.dark .dark\:from-slate-700\/30 {
    --tw-gradient-from: rgba(51, 65, 85, 0.3);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(51, 65, 85, 0));
}

/* --- Text Colors: Cyan --- */
.text-cyan-100 {
    color: #cffafe;
}

.text-cyan-500 {
    color: #06b6d4;
}

/* --- Text Colors: Indigo --- */
.text-indigo-500\/50 {
    color: rgba(99, 102, 241, 0.5);
}

.text-indigo-600 {
    color: #4f46e5;
}

.text-indigo-700 {
    color: #4338ca;
}

.text-indigo-300 {
    color: #a5b4fc;
}

.text-indigo-500 {
    color: #6366f1;
}

/* --- Text Colors: Slate --- */
.text-slate-600 {
    color: #475569;
}

.text-slate-700 {
    color: #334155;
}

.text-slate-500 {
    color: #64748b;
}

.text-slate-300 {
    color: #cbd5e1;
}

.text-slate-400 {
    color: #94a3b8;
}

/* --- Text Colors: Purple --- */
.text-purple-100 {
    color: #f3e8ff;
}

/* --- Text Colors: Rose additional --- */
.text-rose-100 {
    color: #ffe4e6;
}

/* --- Text Colors: Amber additional --- */
.text-amber-300 {
    color: #fcd34d;
}

.text-amber-700 {
    color: #b45309;
}

/* --- Text Colors: Blue additional --- */
.text-blue-600 {
    color: #2563eb;
}

.text-blue-700 {
    color: #1d4ed8;
}

/* --- Text Colors: Emerald additional --- */
.text-emerald-600 {
    color: #059669;
}

.text-emerald-700 {
    color: #047857;
}

.text-emerald-300 {
    color: #6ee7b7;
}

/* --- Background Colors: Indigo --- */
.bg-indigo-50\/50 {
    background-color: rgba(238, 242, 255, 0.5);
}

.bg-indigo-100 {
    background-color: #e0e7ff;
}

.bg-indigo-50 {
    background-color: #eef2ff;
}

/* --- Background Colors: Slate --- */
.bg-slate-50 {
    background-color: #f8fafc;
}

.bg-slate-200 {
    background-color: #e2e8f0;
}

/* --- Background Colors: Amber additional --- */
.bg-amber-100 {
    background-color: #fef3c7;
}

/* --- Background Colors: Cyan shadow --- */
.shadow-cyan-900\/20 {
    --tw-shadow-color: rgba(22, 78, 99, 0.2);
}

.shadow-primary-500\/20 {
    --tw-shadow-color: rgba(239, 68, 68, 0.2);
}

/* --- Border Colors: Indigo --- */
.border-indigo-100\/50 {
    border-color: rgba(224, 231, 255, 0.5);
}

/* --- Border Colors: Slate --- */
.border-slate-200 {
    border-color: #e2e8f0;
}

.border-slate-700\/50 {
    border-color: rgba(51, 65, 85, 0.5);
}

/* --- Dark Background: Indigo --- */
.dark .dark\:bg-indigo-900\/10 {
    background-color: rgba(49, 46, 129, 0.1);
}

.dark .dark\:bg-indigo-900\/30 {
    background-color: rgba(49, 46, 129, 0.3);
}

.dark .dark\:bg-indigo-900\/40 {
    background-color: rgba(49, 46, 129, 0.4);
}

/* --- Dark Background: Slate --- */
.dark .dark\:bg-slate-800\/50 {
    background-color: rgba(30, 41, 59, 0.5);
}

.dark .dark\:bg-slate-700\/50 {
    background-color: rgba(51, 65, 85, 0.5);
}

/* --- Dark Text: Indigo --- */
.dark .dark\:text-indigo-400 {
    color: #818cf8;
}

.dark .dark\:text-indigo-300 {
    color: #a5b4fc;
}

/* --- Dark Text: Slate --- */
.dark .dark\:text-slate-400 {
    color: #94a3b8;
}

.dark .dark\:text-slate-300 {
    color: #cbd5e1;
}

/* --- Dark Border: Indigo --- */
.dark .dark\:border-indigo-800\/30 {
    border-color: rgba(55, 48, 163, 0.3);
}

/* --- Dark Border: Slate --- */
.dark .dark\:border-slate-700\/50 {
    border-color: rgba(51, 65, 85, 0.5);
}

/* --- Amber additional dark --- */
.dark .dark\:border-amber-800\/30 {
    border-color: rgba(146, 64, 14, 0.3);
}

.dark .dark\:bg-amber-900\/10 {
    background-color: rgba(120, 53, 15, 0.1);
}

.dark .dark\:text-amber-300 {
    color: #fcd34d;
}

/* --- Group hover: additional rotation --- */
.group:hover .group-hover\:-rotate-12 {
    transform: rotate(-12deg);
}
