@{
    ViewData["Title"] = "DashboardItsm1";
    ViewData["SidebarVariant"] = "1";
}
@section Styles {
    <link rel="stylesheet" href="/css/style1.css" asp-append-version="true" />
}

        <div class="p-4 md:p-6 space-y-6">
            <div class="flex flex-col sm:flex-row sm:items-center justify-between gap-3">
                <div><h1 class="text-2xl md:text-3xl font-bold text-gray-900">ITSM Dashboard</h1><p class="text-gray-500 mt-1 text-sm">IT Service Management — Period: June 2026</p></div>
                <div class="flex items-center gap-2">
                    <select class="text-sm border border-gray-100 rounded-lg px-3 py-2 bg-white text-gray-600 focus:outline-none focus:ring-2 focus:ring-blue-400"><option>Jun 2026</option><option selected>Q2 2026</option><option>FY 2026</option><option>FY 2025</option></select>
                    <button class="px-4 py-2 text-sm font-semibold rounded-lg text-white transition flex items-center gap-1.5" style="background: #3b82f6;"><svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 16v2a2 2 0 002 2h12a2 2 0 002-2v-2M7 10l5 5 5-5M12 15V3"/></svg> Export</button>
                </div>
            </div>
            
            <div class="grid grid-cols-1 md:grid-cols-3 gap-4">

                <div class="bg-white rounded-xl border border-gray-100 p-5 anim-fade anim-delay-3">
                    <h3 class="font-bold text-gray-900 mb-1">Problem Management</h3>
                    <p class="text-xs text-gray-400 mb-3">Active & known problems</p>
                    <div class="space-y-2.5">
                        <div class="flex items-center gap-3 p-2.5 rounded-lg" style="background:#f8fafc;">
                            <div class="gi gc1"><svg fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 11V9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10"/></svg></div>
                            <div class="flex-1"><p class="text-xs text-gray-500">Open Problems</p><p class="text-sm font-bold text-gray-900">12</p></div>
                        </div>
                        <div class="flex items-center gap-3 p-2.5 rounded-lg" style="background:#f8fafc;">
                            <div class="gi gc10"><svg fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 14l-7 7m0 0l-7-7m7 7V3"/></svg></div>
                            <div class="flex-1"><p class="text-xs text-gray-500">Known Errors</p><p class="text-sm font-bold text-gray-900">8</p></div>
                        </div>
                        <div class="flex items-center gap-3 p-2.5 rounded-lg" style="background:#f8fafc;">
                            <div class="gi gc2"><svg fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 7h8m0 0v8m0-8l-8 8-4-4-6 6"/></svg></div>
                            <div class="flex-1"><p class="text-xs text-gray-500">Resolved This Month</p><p class="text-sm font-bold text-blue-700">18</p></div>
                        </div>
                        <div class="flex items-center justify-between text-xs pt-2 border-t border-gray-100"><span>Avg Resolution</span><span class="font-semibold text-gray-900">14.2d</span><span>Ratio</span><span class="font-semibold text-gray-900">1:8.4</span></div>
                    </div>
                </div>
                <div class="md:col-span-2 bg-white rounded-xl border border-gray-100 p-5 anim-fade anim-delay-4 flex flex-col">
                    <div class="flex items-center justify-between mb-4">
                        <div><h3 class="font-bold text-gray-900">Key Performance Indicators</h3><p class="text-xs text-gray-400 mt-0.5">8 core ITSM metrics at a glance</p></div>
                        <div class="w-10 h-10 rounded-xl flex items-center justify-center shrink-0" style="background:#eef2ff;"><svg class="w-5 h-5 text-blue-600" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"/></svg></div>
                    </div>
                    <div class="grid grid-cols-2 lg:grid-cols-4 gap-3">
                        <div class="kpi-card-sm kpi-b1"><div class="flex items-start justify-between"><div><p class="kpi-label">Open Incidents</p><p class="kpi-value">47</p><span class="kpi-delta">↑ 12</span></div><div class="kpi-icon"><svg fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" d="M12 8c-1.657 0-3 .895-3 2s1.343 2 3 2 3 .895 3 2-1.343 2-3 2m0-8c1.11 0 2.08.402 2.599 1M12 8V7m0 1v8m0 0v1m0-1c-1.11 0-2.08-.402-2.599-1M21 12a9 9 0 11-18 0 9 9 0 0118 0z"/></svg></div></div></div>
                        <div class="kpi-card-sm kpi-b2"><div class="flex items-start justify-between"><div><p class="kpi-label">Avg Resolution</p><p class="kpi-value">4.2h</p><span class="kpi-delta">↑ 0.8h</span></div><div class="kpi-icon"><svg fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 7h8m0 0v8m0-8l-8 8-4-4-6 6"/></svg></div></div></div>
                        <div class="kpi-card-sm kpi-b3"><div class="flex items-start justify-between"><div><p class="kpi-label">Open Problems</p><p class="kpi-value">12</p><span class="kpi-delta">↑ 3</span></div><div class="kpi-icon"><svg fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 9V7a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2m2 4h10a2 2 0 002-2v-6a2 2 0 00-2-2H9a2 2 0 00-2 2v6a2 2 0 002 2zm7-5a2 2 0 11-4 0 2 2 0 014 0z"/></svg></div></div></div>
                        <div class="kpi-card-sm kpi-b4"><div class="flex items-start justify-between"><div><p class="kpi-label">Pending Changes</p><p class="kpi-value">8</p><span class="kpi-delta">0</span></div><div class="kpi-icon"><svg fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 10h18M7 15h1m4 0h1m-7 4h12a3 3 0 003-3V8a3 3 0 00-3-3H6a3 3 0 00-3 3v8a3 3 0 003 3z"/></svg></div></div></div>
                        <div class="kpi-card-sm kpi-b5"><div class="flex items-start justify-between"><div><p class="kpi-label">MTTR</p><p class="kpi-value">3.8h</p><span class="kpi-delta">↑ 0.6h</span></div><div class="kpi-icon"><svg fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"/></svg></div></div></div>
                        <div class="kpi-card-sm kpi-b6"><div class="flex items-start justify-between"><div><p class="kpi-label">Backlog</p><p class="kpi-value">128</p><span class="kpi-delta">↑ 14</span></div><div class="kpi-icon"><svg fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"/></svg></div></div></div>
                        <div class="kpi-card-sm kpi-b7"><div class="flex items-start justify-between"><div><p class="kpi-label">Reopen Rate</p><p class="kpi-value">4.2%</p><span class="kpi-delta">↑ 0.8pp</span></div><div class="kpi-icon"><svg fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 7h8m0 0v8m0-8l-8 8-4-4-6 6"/></svg></div></div></div>
                        <div class="kpi-card-sm kpi-b8"><div class="flex items-start justify-between"><div><p class="kpi-label">FRT</p><p class="kpi-value">12min</p><span class="kpi-delta">↑ 3min</span></div><div class="kpi-icon"><svg fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"/></svg></div></div></div>
                    </div>
                </div>
            </div>

            <div class="grid grid-cols-1 lg:grid-cols-12 gap-4">

                <div class="lg:col-span-4 bg-white rounded-xl border border-gray-100 p-6 anim-fade anim-delay-1 flex flex-col justify-between">
                    <div>
                        <div class="flex items-center justify-between mb-4">
                            <div><p class="text-[10px] text-gray-500 font-semibold uppercase tracking-wide">ITSM Overview</p><h3 class="text-lg font-bold text-gray-900 mt-0.5">Service Desk Metrics</h3></div>
                            <div class="w-10 h-10 rounded-xl flex items-center justify-center shrink-0" style="background:#eef2ff;"><svg class="w-5 h-5 text-blue-600" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"/></svg></div>
                        </div>
                        <div class="grid grid-cols-2 gap-3 mt-2">
                            <div class="p-3 rounded-lg" style="background:#f8fafc;"><p class="text-[10px] text-gray-500">Open Incidents</p><p class="text-lg font-bold text-gray-900">47</p><span class="text-[10px] text-red-500 font-semibold">↑ 12</span></div>
                            <div class="p-3 rounded-lg" style="background:#f8fafc;"><p class="text-[10px] text-gray-500">Avg Resolution</p><p class="text-lg font-bold text-gray-900">4.2h</p><span class="text-[10px] text-red-500 font-semibold">↑ 0.8h</span></div>
                            <div class="p-3 rounded-lg" style="background:#f8fafc;"><p class="text-[10px] text-gray-500">Open Problems</p><p class="text-lg font-bold text-gray-900">12</p><span class="text-[10px] text-red-500 font-semibold">↑ 3</span></div>
                            <div class="p-3 rounded-lg" style="background:#f8fafc;"><p class="text-[10px] text-gray-500">Pending Changes</p><p class="text-lg font-bold text-gray-900">8</p><span class="text-[10px] text-green-600 font-semibold">0</span></div>
                        </div>
                    </div>
                    <div class="mt-4 pt-4 border-t border-gray-100 flex items-center justify-between text-xs text-gray-400"><span>SLA Compliance: <b class="text-gray-700">94.8%</b></span><span class="kpi-badge" style="background:#eef2ff;color:#4f46e5;">Q2 2026</span></div>
                </div>
                <div class="lg:col-span-4 bg-white rounded-xl border border-gray-100 p-5 anim-fade anim-delay-2 flex flex-col">
                    <div class="flex items-center justify-between mb-4">
                        <div><h3 class="font-bold text-gray-900">Incident & Change Management</h3><p class="text-xs text-gray-400 mt-0.5">Priority movement</p></div>
                        <div class="w-10 h-10 rounded-xl flex items-center justify-center shrink-0" style="background:#eef2ff;"><svg class="w-5 h-5 text-blue-600" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"/></svg></div>
                    </div>
                    <div class="chart-container" style="height:170px;"><canvas id="cashflowChart"></canvas></div>
                    <div class="grid grid-cols-3 gap-1 mt-3 text-[10px] text-center">
                        <div><span class="font-bold text-green-600">+8</span><p class="text-gray-400">Critical</p></div>
                        <div><span class="font-bold text-red-600">+14</span><p class="text-gray-400">High</p></div>
                        <div><span class="font-bold text-red-600">+18</span><p class="text-gray-400">Medium</p></div>
                    </div>
                </div>
                <div class="lg:col-span-4 bg-white rounded-xl border border-gray-100 p-5 anim-fade anim-delay-3 flex flex-col">
                    <h3 class="font-bold text-gray-900 mb-1">Change Management</h3>
                    <p class="text-xs text-gray-400 mb-3">This month's changes</p>
                    <div class="space-y-2.5">
                        <div class="flex items-center gap-3 p-2.5 rounded-lg" style="background:#f8fafc;">
                            <div class="gi gc4"><svg fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"/></svg></div>
                            <div class="flex-1"><p class="text-xs text-gray-500">Pending Authorization</p><p class="text-sm font-bold text-green-700">8</p></div>
                        </div>
                        <div class="flex items-center gap-3 p-2.5 rounded-lg" style="background:#f8fafc;">
                            <div class="gi gc5"><svg fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"/></svg></div>
                            <div class="flex-1"><p class="text-xs text-gray-500">Successful Changes</p><p class="text-sm font-bold text-amber-600">42</p></div>
                        </div>
                        <div class="flex items-center gap-3 p-2.5 rounded-lg" style="background:#f8fafc;">
                            <div class="gi gc10"><svg fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-2.5L13.732 4c-.77-.833-1.964-.833-2.732 0L3.34 16.5c-.77.833.192 2.5 1.732 2.5z"/></svg></div>
                            <div class="flex-1"><p class="text-xs text-gray-500">Failed/Rolled Back</p><p class="text-sm font-bold text-red-600">2</p></div>
                        </div>
                        <div class="flex items-center gap-3 p-2.5 rounded-lg" style="background:#f8fafc;">
                            <div class="gi gc9"><svg fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 9V7a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2m2 4h10a2 2 0 002-2v-6a2 2 0 00-2-2H9a2 2 0 00-2 2v6a2 2 0 002 2zm7-5a2 2 0 11-4 0 2 2 0 014 0z"/></svg></div>
                            <div class="flex-1"><p class="text-xs text-gray-500">Success Rate</p><p class="text-sm font-bold text-blue-700">95.5%</p></div>
                        </div>
                    </div>
                    <div class="mt-2 flex justify-between text-xs"><span>Normal Changes: <b>28</b></span><span>Emergency: <b>6</b></span></div>
                </div>
            </div>

            <div class="bg-white rounded-xl border border-gray-100 p-5 anim-fade anim-delay-2">
                <div class="flex items-center justify-between mb-4"><div><h3 class="font-bold text-gray-900">ITSM Metrics Matrix</h3><p class="text-xs text-gray-400 mt-0.5">Key indicators across all categories</p></div><span class="text-xs text-blue-600 font-semibold cursor-pointer hover:underline">View All →</span></div>
                <div class="grid grid-cols-2 md:grid-cols-5 gap-2">
                    <div class="mm-cell"><div class="mm-icon mm-c1"><svg fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8c-1.657 0-3 .895-3 2s1.343 2 3 2 3 .895 3 2-1.343 2-3 2m0-8c1.11 0 2.08.402 2.599 1M12 8V7m0 1v8m0 0v1m0-1c-1.11 0-2.08-.402-2.599-1M21 12a9 9 0 11-18 0 9 9 0 0118 0z"/></svg></div><div><p class="mm-title">Open Incidents</p><p class="mm-sub">47 ↓ 12</p></div></div>
                    <div class="mm-cell"><div class="mm-icon mm-c2"><svg fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 7h8m0 0v8m0-8l-8 8-4-4-6 6"/></svg></div><div><p class="mm-title">Avg Resolution</p><p class="mm-sub">4.2 ↓ 0.8h</p></div></div>
                    <div class="mm-cell"><div class="mm-icon mm-c3"><svg fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 9V7a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2m2 4h10a2 2 0 002-2v-6a2 2 0 00-2-2H9a2 2 0 00-2 2v6a2 2 0 002 2zm7-5a2 2 0 11-4 0 2 2 0 014 0z"/></svg></div><div><p class="mm-title">Open Problems</p><p class="mm-sub">12 ↓ 3</p></div></div>
                    <div class="mm-cell"><div class="mm-icon mm-c4"><svg fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 10h18M7 15h1m4 0h1m-7 4h12a3 3 0 003-3V8a3 3 0 00-3-3H6a3 3 0 00-3 3v8a3 3 0 003 3z"/></svg></div><div><p class="mm-title">Pending Changes</p><p class="mm-sub">8 0</p></div></div>
                    <div class="mm-cell"><div class="mm-icon mm-c5"><svg fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"/></svg></div><div><p class="mm-title">MTTR</p><p class="mm-sub">3.8 ↓ 0.6h</p></div></div>
                    <div class="mm-cell"><div class="mm-icon mm-c6"><svg fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"/></svg></div><div><p class="mm-title">Backlog</p><p class="mm-sub">128 ↓ 14</p></div></div>
                    <div class="mm-cell"><div class="mm-icon mm-c7"><svg fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 7h8m0 0v8m0-8l-8 8-4-4-6 6"/></svg></div><div><p class="mm-title">Reopen Rate</p><p class="mm-sub">4.2 ↓ 0.8pp</p></div></div>
                    <div class="mm-cell"><div class="mm-icon mm-c8"><svg fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"/></svg></div><div><p class="mm-title">FRT</p><p class="mm-sub">12 ↓ 3min</p></div></div>
                    <div class="mm-cell"><div class="mm-icon mm-c9"><svg fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"/></svg></div><div><p class="mm-title">SLA Compliance</p><p class="mm-sub">94.8 ↓ 1.2%</p></div></div>
                    <div class="mm-cell"><div class="mm-icon mm-c10"><svg fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8c-1.657 0-3 .895-3 2s1.343 2 3 2 3 .895 3 2-1.343 2-3 2m0-8c1.11 0 2.08.402 2.599 1M12 8V7m0 1v8m0 0v1m0-1c-1.11 0-2.08-.402-2.599-1M21 12a9 9 0 11-18 0 9 9 0 0118 0z"/></svg></div><div><p class="mm-title">FCR Rate</p><p class="mm-sub">78.4 ↓ 2.1%</p></div></div>
                    <div class="mm-cell"><div class="mm-icon mm-c11"><svg fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 7v10c0 2.21 3.582 4 8 4s8-1.79 8-4V7M4 7c0 2.21 3.582 4 8 4s8-1.79 8-4M4 7c0-2.21 3.582-4 8-4s8 1.79 8 4"/></svg></div><div><p class="mm-title">CSAT Score</p><p class="mm-sub">4.2 ↓ 0.3</p></div></div>
                    <div class="mm-cell"><div class="mm-icon mm-c12"><svg fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"/></svg></div><div><p class="mm-title">Total Assets</p><p class="mm-sub">3 ↑ 48</p></div></div>
                    <div class="mm-cell"><div class="mm-icon mm-c13"><svg fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0zm6 3a2 2 0 11-4 0 2 2 0 014 0zM7 10a2 2 0 11-4 0 2 2 0 014 0z"/></svg></div><div><p class="mm-title">Critical Incidents</p><p class="mm-sub">8 ↓ 2</p></div></div>
                    <div class="mm-cell"><div class="mm-icon mm-c14"><svg fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M11 3.055A9.001 9.001 0 1020.945 13H11V3.055z"/></svg></div><div><p class="mm-title">Avg Response</p><p class="mm-sub">4.2 ↓ 0.3h</p></div></div>
                    <div class="mm-cell"><div class="mm-icon mm-c15"><svg fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 21v-4m0 0V5a2 2 0 012-2h6.5l1 1H21l-3 6 3 6h-8.5l-1-1H5a2 2 0 00-2 2zm9-13.5V9h3.5"/></svg></div><div><p class="mm-title">SLA Met</p><p class="mm-sub">94.8 ↓ 1.2pp</p></div></div>
                    <div class="mm-cell"><div class="mm-icon mm-c16"><svg fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"/></svg></div><div><p class="mm-title">Success Rate</p><p class="mm-sub">95.5 ↓ 2.1%</p></div></div>
                    <div class="mm-cell"><div class="mm-icon mm-c17"><svg fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4M7.835 4.697a3.42 3.42 0 001.946-.806 3.42 3.42 0 014.438 0 3.42 3.42 0 001.946.806 3.42 3.42 0 013.138 3.138 3.42 3.42 0 00.806 1.946 3.42 3.42 0 010 4.438 3.42 3.42 0 00-.806 1.946 3.42 3.42 0 01-3.138 3.138 3.42 3.42 0 00-1.946.806 3.42 3.42 0 01-4.438 0 3.42 3.42 0 00-1.946-.806 3.42 3.42 0 01-3.138-3.138 3.42 3.42 0 00-.806-1.946 3.42 3.42 0 010-4.438 3.42 3.42 0 00.806-1.946 3.42 3.42 0 013.138-3.138z"/></svg></div><div><p class="mm-title">CI Accuracy</p><p class="mm-sub">96.8 ↓ 0.8%</p></div></div>
                    <div class="mm-cell"><div class="mm-icon mm-c18"><svg fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 4a1 1 0 011-1h16a1 1 0 011 1v2.586a1 1 0 01-.293.707l-6.414 6.414a1 1 0 00-.293.707V17l-4 4v-6.586a1 1 0 00-.293-.707L3.293 7.293A1 1 0 013 6.586V4z"/></svg></div><div><p class="mm-title">Releases</p><p class="mm-sub">42 ↓ 8</p></div></div>
                    <div class="mm-cell"><div class="mm-icon mm-c19"><svg fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 13.255A23.931 23.931 0 0112 15c-3.183 0-6.22-.62-9-1.745M16 6V4a2 2 0 00-2-2h-4a2 2 0 00-2 2v2m4 6h.01M5 20h14a2 2 0 002-2V8a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"/></svg></div><div><p class="mm-title">Open Tickets</p><p class="mm-sub">128 ↓ 14</p></div></div>
                    <div class="mm-cell"><div class="mm-icon mm-c20"><svg fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3.055 11H5a2 2 0 012 2v1a2 2 0 002 2 2 2 0 012 2v2.945M8 3.935V5.5A2.5 2.5 0 0010.5 8h.5a2 2 0 012 2 2 2 0 104 0 2 2 0 012-2h1.064M15 20.488V18a2 2 0 012-2h3.064M21 12a9 9 0 11-18 0 9 9 0 0118 0z"/></svg></div><div><p class="mm-title">CI Items</p><p class="mm-sub">3,247 total</p></div></div>
                </div>
            </div>

            <div class="grid grid-cols-1 lg:grid-cols-3 gap-4">
                <div class="lg:col-span-2 bg-white rounded-xl border border-gray-100 p-5 anim-fade anim-delay-2">
                    <div class="flex items-center justify-between mb-4">
                        <div><h3 class="font-bold text-gray-900">Incident Trend</h3><p class="text-xs text-gray-400 mt-0.5">Daily incident volume & resolved</p></div>
                        <div class="flex items-center gap-3 text-xs">
                            <span class="flex items-center gap-1"><span class="w-3 h-3 rounded-sm" style="background:#2563eb;"></span> Revenue</span>
                            <span class="flex items-center gap-1"><span class="w-3 h-3 rounded-sm" style="background:#f97316;"></span> Resolved</span>
                        </div>
                    </div>
                    <div class="chart-container" style="height:260px;"><canvas id="plChart"></canvas></div>
                </div>
                <div class="bg-white rounded-xl border border-gray-100 p-5 anim-fade anim-delay-3">
                    <h3 class="font-bold text-gray-900 mb-1">Incident Category</h3>
                    <p class="text-xs text-gray-400 mb-3">By category this period</p>
                    <div class="flex justify-center"><div class="chart-container" style="height:170px;width:170px;"><canvas id="expenseChart"></canvas></div></div>
                    <div class="grid grid-cols-2 gap-1 mt-3 text-[10px]">
                        <div class="flex items-center gap-1"><span class="w-2 h-2 rounded-full" style="background:#2563eb"></span> Hardware <span class="font-semibold ml-auto">28%</span></div>
                        <div class="flex items-center gap-1"><span class="w-2 h-2 rounded-full" style="background:#f97316"></span> Software <span class="font-semibold ml-auto">32%</span></div>
                        <div class="flex items-center gap-1"><span class="w-2 h-2 rounded-full" style="background:#ec4899"></span> Network <span class="font-semibold ml-auto">18%</span></div>
                        <div class="flex items-center gap-1"><span class="w-2 h-2 rounded-full" style="background:#8b5cf6"></span> Security <span class="font-semibold ml-auto">12%</span></div>
                        <div class="flex items-center gap-1"><span class="w-2 h-2 rounded-full" style="background:#06b6d4"></span> Other <span class="font-semibold ml-auto">10%</span></div>
                    </div>
                </div>
            </div>

            <div class="grid grid-cols-1 lg:grid-cols-2 gap-4">
                <div class="bg-white rounded-xl border border-gray-100 p-5 anim-fade anim-delay-4">
                    <div class="flex items-center justify-between mb-4">
                        <div><h3 class="font-bold text-gray-900">Top Agents</h3><p class="text-xs text-gray-400 mt-0.5">This month's performance</p></div>
                        <span class="text-xs text-blue-600 font-semibold cursor-pointer hover:underline">View All →</span>
                    </div>
                    <div class="grid-wrap">
                        <table class="grid-table">
                            <thead><tr><th>Agent</th><th>Tickets</th><th>Resolved</th><th>Avg Time</th><th>CSAT</th></tr></thead>
                            <tbody>
                                <tr><td class="text-xs">David K.</td><td class="font-mono text-xs">258</td><td class="font-mono text-xs">238</td><td class="text-xs">2.4h</td><td><span class="chip chip-green">4.8</span></td></tr>
                                <tr><td class="text-xs">Sarah M.</td><td class="font-mono text-xs">196</td><td class="font-mono text-xs">182</td><td class="text-xs">3.1h</td><td><span class="chip chip-green">4.6</span></td></tr>
                                <tr><td class="text-xs">John P.</td><td class="font-mono text-xs">174</td><td class="font-mono text-xs">158</td><td class="text-xs">2.9h</td><td><span class="chip chip-amber">4.3</span></td></tr>
                                <tr><td class="text-xs">Lisa R.</td><td class="font-mono text-xs">142</td><td class="font-mono text-xs">138</td><td class="text-xs">1.8h</td><td><span class="chip chip-green">4.9</span></td></tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="mt-3 flex justify-between text-xs"><span>Agent: <b class="text-amber-600">David K.</b></span><span>Total tickets: <b>258</b></span></div>
                </div>
                <div class="bg-white rounded-xl border border-gray-100 p-5 anim-fade anim-delay-5">
                    <div class="flex items-center justify-between mb-4">
                        <div><h3 class="font-bold text-gray-900">ITSM Activity</h3><p class="text-xs text-gray-400 mt-0.5">Real-time ticket updates</p></div>
                        <span class="flex items-center gap-1.5 text-xs"><span class="w-2 h-2 rounded-full bg-blue-400 animate-pulse"></span> <span class="text-blue-600 font-medium">Live</span></span>
                    </div>
                    <div class="activity-feed divide-y divide-gray-100 pr-1">
                        <div class="flex gap-3 p-2 rounded-lg hover:bg-gray-50 transition">
                            <div class="w-8 h-8 rounded-full flex items-center justify-center text-white text-xs font-bold shrink-0" style="background:#10b981">AP</div>
                            <div class="min-w-0 flex-1"><p class="text-sm text-gray-700"><b>Invoice Paid</b> — INV-2026-0882</p><p class="text-xs text-gray-400 mt-0.5">ⓘ $24,500 · Vendor: TechDistrib · Net 30</p><p class="text-xs text-gray-400">12 min ago</p></div>
                            <span class="chip chip-green self-start">Paid</span>
                        </div>
                        <div class="flex gap-3 p-2 rounded-lg hover:bg-gray-50 transition">
                            <div class="w-8 h-8 rounded-full flex items-center justify-center text-white text-xs font-bold shrink-0" style="background:#2563eb">AR</div>
                            <div class="min-w-0 flex-1"><p class="text-sm text-gray-700"><b>Payment Received</b> — Customer: MegaCorp</p><p class="text-xs text-gray-400 mt-0.5">ⓘ $86,200 · Invoice INV-2026-0741</p><p class="text-xs text-gray-400">35 min ago</p></div>
                            <span class="chip chip-green self-start">Received</span>
                        </div>
                        <div class="flex gap-3 p-2 rounded-lg hover:bg-gray-50 transition">
                            <div class="w-8 h-8 rounded-full flex items-center justify-center text-white text-xs font-bold shrink-0" style="background:#6366f1">GL</div>
                            <div class="min-w-0 flex-1"><p class="text-sm text-gray-700"><b>Journal Posted</b> — Depreciation June</p><p class="text-xs text-gray-400 mt-0.5">ⓘ $42,800 · Fixed Assets depreciation</p><p class="text-xs text-gray-400">1 hour ago</p></div>
                            <span class="chip chip-indigo self-start">Posted</span>
                        </div>
                        <div class="flex gap-3 p-2 rounded-lg hover:bg-gray-50 transition">
                            <div class="w-8 h-8 rounded-full flex items-center justify-center text-white text-xs font-bold shrink-0" style="background:#f97316">TX</div>
                            <div class="min-w-0 flex-1"><p class="text-sm text-gray-700"><b>Tax Filing</b> — PPh 21 June</p><p class="text-xs text-gray-400 mt-0.5">ⓘ $38,400 · Filing prepared for submission</p><p class="text-xs text-gray-400">2 hours ago</p></div>
                            <span class="chip chip-amber self-start">Pending</span>
                        </div>
                    </div>
                </div>
            </div>

            <div class="grid grid-cols-1 md:grid-cols-3 gap-4">
                <div class="bg-white rounded-xl border border-gray-100 p-5 anim-fade anim-delay-4">
                    <h3 class="font-bold text-gray-900 mb-1">SLA Performance</h3>
                    <p class="text-xs text-gray-400 mb-3">Q2 2026 performance</p>
                    <div class="space-y-2.5">
                        <div class="p-3 rounded-lg" style="background:#f8fafc;">
                            <div class="flex items-center gap-3">
                                <div class="gi gc1"><svg fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8c-1.657 0-3 .895-3 2s1.343 2 3 2 3 .895 3 2-1.343 2-3 2m0-8c1.11 0 2.08.402 2.599 1M12 8V7m0 1v8m0 0v1m0-1c-1.11 0-2.08-.402-2.599-1M21 12a9 9 0 11-18 0 9 9 0 0118 0z"/></svg></div>
                                <div class="flex-1 min-w-0">
                                    <div class="flex justify-between items-center">
                                        <p class="text-xs text-gray-500 font-semibold">P1 Resolution</p>
                                        <span class="text-[11px] font-semibold text-green-600">$12.4M / $12.0M</span>
                                    </div>
                                    <div class="mt-2 progress-bar"><div class="fill" style="width:103%;background:#2563eb;"></div></div>
                                </div>
                            </div>
                        </div>
                        <div class="p-3 rounded-lg" style="background:#f8fafc;">
                            <div class="flex items-center gap-3">
                                <div class="gi gc5"><svg fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 9V7a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2m2 4h10a2 2 0 002-2v-6a2 2 0 00-2-2H9a2 2 0 00-2 2v6a2 2 0 002 2zm7-5a2 2 0 11-4 0 2 2 0 014 0z"/></svg></div>
                                <div class="flex-1 min-w-0">
                                    <div class="flex justify-between items-center">
                                        <p class="text-xs text-gray-500 font-semibold">P2 Resolution</p>
                                        <span class="text-[11px] font-semibold">$4.6M / $4.5M</span>
                                    </div>
                                    <div class="mt-2 progress-bar"><div class="fill" style="width:102%;background:#f97316;"></div></div>
                                </div>
                            </div>
                        </div>
                        <div class="p-3 rounded-lg" style="background:#f8fafc;">
                            <div class="flex items-center gap-3">
                                <div class="gi gc3"><svg fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"/></svg></div>
                                <div class="flex-1 min-w-0">
                                    <div class="flex justify-between items-center">
                                        <p class="text-xs text-gray-500 font-semibold">P3 Resolution</p>
                                        <span class="text-[11px] font-semibold text-green-600">$6.8M / $7.2M</span>
                                    </div>
                                    <div class="mt-2 progress-bar"><div class="fill" style="width:94%;background:#ec4899;"></div></div>
                                </div>
                            </div>
                        </div>
                        <div class="p-3 rounded-lg" style="background:#f8fafc;">
                            <div class="flex items-center gap-3">
                                <div class="gi gc2"><svg fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 7h8m0 0v8m0-8l-8 8-4-4-6 6"/></svg></div>
                                <div class="flex-1 min-w-0">
                                    <div class="flex justify-between items-center">
                                        <p class="text-xs text-gray-500 font-semibold">Request Fulfillment</p>
                                        <span class="text-[11px] font-semibold text-green-600">$2.8M / $2.5M</span>
                                    </div>
                                    <div class="mt-2 progress-bar"><div class="fill" style="width:112%;background:#10b981;"></div></div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="mt-3 pt-3 border-t border-gray-100 flex justify-between text-xs"><span>Overall: <b class="text-green-600">94.8%</b></span><span class="text-blue-600">Breaches: 12</span></div>
                </div>
                <div class="bg-white rounded-xl border border-gray-100 p-5 anim-fade anim-delay-5">
                    <h3 class="font-bold text-gray-900 mb-1">CMDB Summary</h3>
                    <p class="text-xs text-gray-400 mb-3">Configuration management</p>
                    <div class="space-y-2.5">
                        <div class="flex items-center gap-3 p-2.5 rounded-lg" style="background:#f8fafc;">
                            <div class="gi gc7"><svg fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 21V5a2 2 0 00-2-2H7a2 2 0 00-2 2v16m14 0h2m-2 0h-5m-9 0H3m2 0h5M9 7h1m-1 4h1m4-4h1m-1 4h1m-5 10v-5a1 1 0 011-1h2a1 1 0 011 1v5m-4 0h4"/></svg></div>
                            <div class="flex-1"><p class="text-xs text-gray-500">Total CIs</p><p class="text-sm font-bold text-gray-900">3,247</p></div>
                        </div>
                        <div class="flex items-center gap-3 p-2.5 rounded-lg" style="background:#f8fafc;">
                            <div class="gi gc10"><svg fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 14l-7 7m0 0l-7-7m7 7V3"/></svg></div>
                            <div class="flex-1"><p class="text-xs text-gray-500">CI Accuracy</p><p class="text-sm font-bold text-amber-600">96.8%</p></div>
                        </div>
                        <div class="flex items-center gap-3 p-2.5 rounded-lg" style="background:#f8fafc;">
                            <div class="gi gc9"><svg fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"/></svg></div>
                            <div class="flex-1"><p class="text-xs text-gray-500">Unmapped</p><p class="text-sm font-bold text-blue-700">18</p></div>
                        </div>
                        <div class="flex items-center gap-3 p-2.5 rounded-lg" style="background:#f8fafc;">
                            <div class="gi gc3"><svg fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"/></svg></div>
                            <div class="flex-1"><p class="text-xs text-gray-500">Completeness</p><p class="text-sm font-bold text-gray-900">92.4%</p></div>
                        </div>
                    </div>
                    <div class="mt-2 flex justify-between text-xs"><span>Server CIs: <b>486</b></span><span>Network: <b>342</b></span></div>
                </div>
                <div class="bg-white rounded-xl border border-gray-100 p-5 anim-fade anim-delay-6">
                    <h3 class="font-bold text-gray-900 mb-1">Release Pipeline</h3>
                    <p class="text-xs text-gray-400 mb-3">Upcoming & recent releases</p>
                    <div class="space-y-2.5">
                        <div class="flex items-center gap-3 p-2.5 rounded-lg" style="background:#f8fafc;">
                            <div class="gi gc4"><svg fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"/></svg></div>
                            <div class="flex-1"><p class="text-xs text-gray-500">Successful Releases</p><p class="text-[10px] text-gray-400">Monthly employee tax</p></div>
                            <div class="text-right"><span class="chip chip-blue">Jul 10</span></div>
                        </div>
                        <div class="flex items-center gap-3 p-2.5 rounded-lg" style="background:#f8fafc;">
                            <div class="gi gc8"><svg fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M20 7l-8-4-8 4m16 0l-8 4m8-4v10l-8 4m0-10L4 7m8 4v10M4 7v10l8 4"/></svg></div>
                            <div class="flex-1"><p class="text-xs text-gray-500">HR App v3.2</p><p class="text-[10px] text-gray-400">Monthly VAT return</p></div>
                            <div class="text-right"><span class="chip chip-purple">Jul 15</span></div>
                        </div>
                        <div class="flex items-center gap-3 p-2.5 rounded-lg" style="background:#f8fafc;">
                            <div class="gi gc11"><svg fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 21V5a2 2 0 00-2-2H7a2 2 0 00-2 2v16m14 0h2m-2 0h-5m-9 0H3m2 0h5M9 7h1m-1 4h1m4-4h1m-1 4h1m-5 10v-5a1 1 0 011-1h2a1 1 0 011 1v5m-4 0h4"/></svg></div>
                            <div class="flex-1"><p class="text-xs text-gray-500">CRM Upgrade</p><p class="text-[10px] text-gray-400">Corporate income tax</p></div>
                            <div class="text-right"><span class="chip chip-orange">Jul 20</span></div>
                        </div>
                        <div class="flex items-center gap-3 p-2.5 rounded-lg" style="background:#f8fafc;">
                            <div class="gi gc10"><svg fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"/></svg></div>
                            <div class="flex-1"><p class="text-xs text-gray-500">Security Patch</p><p class="text-[10px] text-gray-400">Corporate tax return</p></div>
                            <div class="text-right"><span class="chip chip-red">Apr 30</span></div>
                        </div>
                    </div>
                </div>
            </div>

            <div class="grid grid-cols-1 lg:grid-cols-2 gap-4">
                <div class="bg-white rounded-xl border border-gray-100 p-5 anim-fade anim-delay-5">
                    <div class="flex items-center justify-between mb-4">
                        <div><h3 class="font-bold text-gray-900">Open Incidents</h3><p class="text-xs text-gray-400 mt-0.5">Unresolved tickets requiring action</p></div>
                        <span class="text-xs text-blue-600 font-semibold cursor-pointer hover:underline">View Full →</span>
                    </div>
                    <div class="p-3 rounded-lg" style="background:#f8fafc;">
                        <div class="grid-wrap">
                            <table class="grid-table" style="background:transparent;">
                                <thead><tr><th>ID</th><th>Title</th><th>Priority</th><th>Status</th><th>Agent</th><th>Age</th></tr></thead>
                                <tbody>
                                    <tr><td class="font-mono text-xs">INC-001</td><td>Email system down</td><td><span class="chip chip-red">Critical</span></td><td><span class="chip chip-amber">In Progress</span></td><td class="text-xs">David K.</td><td class="text-xs">4h</td></tr>
                                    <tr><td class="font-mono text-xs">INC-002</td><td>VPN connection failed</td><td><span class="chip chip-orange">High</span></td><td><span class="chip chip-amber">Assigned</span></td><td class="text-xs">Sarah M.</td><td class="text-xs">2h</td></tr>
                                    <tr><td class="font-mono text-xs">INC-003</td><td>File share permission error</td><td><span class="chip chip-amber">Medium</span></td><td><span class="chip chip-indigo">Pending</span></td><td class="text-xs">John P.</td><td class="text-xs">1d</td></tr>
                                    <tr><td class="font-mono text-xs">INC-004</td><td>Password reset request</td><td><span class="chip chip-green">Low</span></td><td><span class="chip chip-blue">New</span></td><td class="text-xs">Lisa R.</td><td class="text-xs">30m</td></tr>
                                    <tr><td class="font-mono text-xs">INC-005</td><td>Printer offline - Floor 3</td><td><span class="chip chip-amber">Medium</span></td><td><span class="chip chip-amber">In Progress</span></td><td class="text-xs">David K.</td><td class="text-xs">3h</td></tr>
                                    <tr><td class="font-mono text-xs">INC-006</td><td>ERP app slow response</td><td><span class="chip chip-orange">High</span></td><td><span class="chip chip-amber">Assigned</span></td><td class="text-xs">Sarah M.</td><td class="text-xs">5h</td></tr>
                                    <tr><td class="font-mono text-xs">INC-007</td><td>New laptop setup</td><td><span class="chip chip-green">Low</span></td><td><span class="chip chip-blue">New</span></td><td class="text-xs">John P.</td><td class="text-xs">1h</td></tr>
                                    <tr><td class="font-mono text-xs">INC-008</td><td>Database connection timeout</td><td><span class="chip chip-red">Critical</span></td><td><span class="chip chip-amber">In Progress</span></td><td class="text-xs">Lisa R.</td><td class="text-xs">6h</td></tr>
                                    <tr><td class="font-mono text-xs">INC-009</td><td>VoIP phone system issue</td><td><span class="chip chip-orange">High</span></td><td><span class="chip chip-amber">Assigned</span></td><td class="text-xs">Mike T.</td><td class="text-xs">2h</td></tr>
                                    <tr><td class="font-mono text-xs">INC-010</td><td>Antivirus update failure</td><td><span class="chip chip-amber">Medium</span></td><td><span class="chip chip-indigo">Pending</span></td><td class="text-xs">Anna W.</td><td class="text-xs">3h</td></tr>
                                    <tr><td class="font-mono text-xs">INC-011</td><td>Shared drive inaccessible</td><td><span class="chip chip-orange">High</span></td><td><span class="chip chip-amber">In Progress</span></td><td class="text-xs">David K.</td><td class="text-xs">5h</td></tr>
                                    <tr><td class="font-mono text-xs">INC-012</td><td>Software license expired</td><td><span class="chip chip-amber">Medium</span></td><td><span class="chip chip-amber">Assigned</span></td><td class="text-xs">Sarah M.</td><td class="text-xs">1d</td></tr>
                                    <tr><td class="font-mono text-xs">INC-013</td><td>Monitor display flickering</td><td><span class="chip chip-green">Low</span></td><td><span class="chip chip-blue">New</span></td><td class="text-xs">John P.</td><td class="text-xs">30m</td></tr>
                                    <tr><td class="font-mono text-xs">INC-014</td><td>Network switch port down</td><td><span class="chip chip-red">Critical</span></td><td><span class="chip chip-amber">In Progress</span></td><td class="text-xs">Mike T.</td><td class="text-xs">4h</td></tr>
                                    <tr><td class="font-mono text-xs">INC-015</td><td>Wireless connectivity drops</td><td><span class="chip chip-amber">Medium</span></td><td><span class="chip chip-indigo">Pending</span></td><td class="text-xs">Anna W.</td><td class="text-xs">2d</td></tr>
                                    <tr><td class="font-mono text-xs">INC-016</td><td>Printer driver update needed</td><td><span class="chip chip-green">Low</span></td><td><span class="chip chip-blue">New</span></td><td class="text-xs">Lisa R.</td><td class="text-xs">1h</td></tr>
                                    <tr><td class="font-mono text-xs">INC-017</td><td>Cloud storage sync failure</td><td><span class="chip chip-orange">High</span></td><td><span class="chip chip-amber">Assigned</span></td><td class="text-xs">Sarah M.</td><td class="text-xs">3h</td></tr>
                                    <tr><td class="font-mono text-xs">INC-018</td><td>BI dashboard not loading</td><td><span class="chip chip-amber">Medium</span></td><td><span class="chip chip-amber">In Progress</span></td><td class="text-xs">David K.</td><td class="text-xs">8h</td></tr>
                                    <tr><td class="font-mono text-xs">INC-019</td><td>Email attachment blocked</td><td><span class="chip chip-green">Low</span></td><td><span class="chip chip-indigo">Pending</span></td><td class="text-xs">John P.</td><td class="text-xs">2h</td></tr>
                                    <tr><td class="font-mono text-xs">INC-020</td><td>Server certificate expired</td><td><span class="chip chip-red">Critical</span></td><td><span class="chip chip-amber">In Progress</span></td><td class="text-xs">Mike T.</td><td class="text-xs">1h</td></tr>
                                    <tr><td class="font-mono text-xs">INC-021</td><td>CRM login page error</td><td><span class="chip chip-orange">High</span></td><td><span class="chip chip-amber">Assigned</span></td><td class="text-xs">Anna W.</td><td class="text-xs">4h</td></tr>
                                    <tr><td class="font-mono text-xs">INC-022</td><td>Backup job failed</td><td><span class="chip chip-red">Critical</span></td><td><span class="chip chip-amber">In Progress</span></td><td class="text-xs">Lisa R.</td><td class="text-xs">7h</td></tr>
                                    <tr><td class="font-mono text-xs">INC-023</td><td>VPN profile missing</td><td><span class="chip chip-amber">Medium</span></td><td><span class="chip chip-blue">New</span></td><td class="text-xs">David K.</td><td class="text-xs">45m</td></tr>
                                    <tr><td class="font-mono text-xs">INC-024</td><td>Intranet portal down</td><td><span class="chip chip-orange">High</span></td><td><span class="chip chip-amber">Assigned</span></td><td class="text-xs">Sarah M.</td><td class="text-xs">2h</td></tr>
                                    <tr><td class="font-mono text-xs">INC-025</td><td>USB device not recognized</td><td><span class="chip chip-green">Low</span></td><td><span class="chip chip-indigo">Pending</span></td><td class="text-xs">John P.</td><td class="text-xs">1d</td></tr>
                                    <tr><td class="font-mono text-xs">INC-026</td><td>DNS resolution failure</td><td><span class="chip chip-red">Critical</span></td><td><span class="chip chip-amber">In Progress</span></td><td class="text-xs">Mike T.</td><td class="text-xs">3h</td></tr>
                                    <tr><td class="font-mono text-xs">INC-027</td><td>Mobile app crashing</td><td><span class="chip chip-amber">Medium</span></td><td><span class="chip chip-amber">Assigned</span></td><td class="text-xs">Anna W.</td><td class="text-xs">5h</td></tr>
                                    <tr><td class="font-mono text-xs">INC-028</td><td>File restore request</td><td><span class="chip chip-green">Low</span></td><td><span class="chip chip-blue">New</span></td><td class="text-xs">Lisa R.</td><td class="text-xs">20m</td></tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                    <div class="mt-3 pt-3 border-t border-gray-100 flex justify-between text-xs font-semibold"><span>Total Open: <span class="text-green-600">47</span></span><span>Critical: <span class="text-red-600">8</span></span></div>
                </div>
                <div class="bg-white rounded-xl border border-gray-100 p-5 anim-fade anim-delay-6">
                    <div class="flex items-center justify-between mb-4">
                        <div><h3 class="font-bold text-gray-900">Popular Services</h3><p class="text-xs text-gray-400 mt-0.5">Most requested services this month</p></div>
                        <span class="text-xs text-blue-600 font-semibold cursor-pointer hover:underline">Service Catalog →</span>
                    </div>
                    <div class="p-3 rounded-lg" style="background:#f8fafc;">
                        <div class="grid-wrap">
                            <table class="grid-table" style="background:transparent;">
                                <thead><tr><th>Invoice</th><th>Vendor</th><th>Amount</th><th>Due Date</th><th>Status</th></tr></thead>
                                <tbody>
                                    <tr><td class="font-mono text-xs">INV-0882</td><td>TechDistrib Inc.</td><td class="font-mono text-xs">$24,500</td><td class="text-xs">Jul 05</td><td><span class="chip chip-amber">Due Soon</span></td></tr>
                                    <tr><td class="font-mono text-xs">INV-0885</td><td>CloudHost Ltd.</td><td class="font-mono text-xs">$12,800</td><td class="text-xs">Jul 08</td><td><span class="chip chip-amber">Due Soon</span></td></tr>
                                    <tr><td class="font-mono text-xs">INV-0888</td><td>OfficePro Supply</td><td class="font-mono text-xs">$6,200</td><td class="text-xs">Jul 10</td><td><span class="chip chip-indigo">Future</span></td></tr>
                                    <tr><td class="font-mono text-xs">INV-0890</td><td>Consulting Plus</td><td class="font-mono text-xs">$18,000</td><td class="text-xs">Jul 12</td><td><span class="chip chip-indigo">Future</span></td></tr>
                                    <tr><td class="font-mono text-xs">INV-0875</td><td>MegaNetwork</td><td class="font-mono text-xs">$32,000</td><td class="text-xs">Jul 03</td><td><span class="chip chip-red">Overdue</span></td></tr>
                                    <tr><td class="font-mono text-xs">INV-0901</td><td>DataSys Solutions</td><td class="font-mono text-xs">$45,200</td><td class="text-xs">Jul 02</td><td><span class="chip chip-red">Overdue</span></td></tr>
                                    <tr><td class="font-mono text-xs">INV-0902</td><td>Prime Logistics</td><td class="font-mono text-xs">$15,600</td><td class="text-xs">Jul 04</td><td><span class="chip chip-amber">Due Soon</span></td></tr>
                                    <tr><td class="font-mono text-xs">INV-0903</td><td>GreenEnergy Corp</td><td class="font-mono text-xs">$28,900</td><td class="text-xs">Jul 05</td><td><span class="chip chip-amber">Due Soon</span></td></tr>
                                    <tr><td class="font-mono text-xs">INV-0904</td><td>SmartBuild Ltd.</td><td class="font-mono text-xs">$8,750</td><td class="text-xs">Jul 07</td><td><span class="chip chip-amber">Due Soon</span></td></tr>
                                    <tr><td class="font-mono text-xs">INV-0905</td><td>MediCare Supplies</td><td class="font-mono text-xs">$19,300</td><td class="text-xs">Jul 09</td><td><span class="chip chip-amber">Due Soon</span></td></tr>
                                    <tr><td class="font-mono text-xs">INV-0906</td><td>AquaPure Systems</td><td class="font-mono text-xs">$11,400</td><td class="text-xs">Jul 11</td><td><span class="chip chip-indigo">Future</span></td></tr>
                                    <tr><td class="font-mono text-xs">INV-0907</td><td>BuildRight Materials</td><td class="font-mono text-xs">$36,800</td><td class="text-xs">Jul 13</td><td><span class="chip chip-indigo">Future</span></td></tr>
                                    <tr><td class="font-mono text-xs">INV-0908</td><td>FreshFoods Group</td><td class="font-mono text-xs">$9,200</td><td class="text-xs">Jul 14</td><td><span class="chip chip-indigo">Future</span></td></tr>
                                    <tr><td class="font-mono text-xs">INV-0909</td><td>AutoParts Inc.</td><td class="font-mono text-xs">$22,600</td><td class="text-xs">Jul 15</td><td><span class="chip chip-indigo">Future</span></td></tr>
                                    <tr><td class="font-mono text-xs">INV-0910</td><td>CloudNet Services</td><td class="font-mono text-xs">$14,100</td><td class="text-xs">Jul 16</td><td><span class="chip chip-indigo">Future</span></td></tr>
                                    <tr><td class="font-mono text-xs">INV-0911</td><td>Sunrise Energy</td><td class="font-mono text-xs">$41,500</td><td class="text-xs">Jun 28</td><td><span class="chip chip-red">Overdue</span></td></tr>
                                    <tr><td class="font-mono text-xs">INV-0912</td><td>Urban Design Co</td><td class="font-mono text-xs">$7,800</td><td class="text-xs">Jun 30</td><td><span class="chip chip-red">Overdue</span></td></tr>
                                    <tr><td class="font-mono text-xs">INV-0913</td><td>SafeGuard Security</td><td class="font-mono text-xs">$5,400</td><td class="text-xs">Jul 01</td><td><span class="chip chip-red">Overdue</span></td></tr>
                                    <tr><td class="font-mono text-xs">INV-0914</td><td>EcoFriendly Pkg</td><td class="font-mono text-xs">$16,200</td><td class="text-xs">Jul 02</td><td><span class="chip chip-red">Overdue</span></td></tr>
                                    <tr><td class="font-mono text-xs">INV-0915</td><td>StarTech Systems</td><td class="font-mono text-xs">$33,000</td><td class="text-xs">Jul 04</td><td><span class="chip chip-amber">Due Soon</span></td></tr>
                                    <tr><td class="font-mono text-xs">INV-0916</td><td>Blue Ocean Ltd.</td><td class="font-mono text-xs">$10,500</td><td class="text-xs">Jul 06</td><td><span class="chip chip-amber">Due Soon</span></td></tr>
                                    <tr><td class="font-mono text-xs">INV-0917</td><td>Golden Gate Inc.</td><td class="font-mono text-xs">$27,300</td><td class="text-xs">Jul 08</td><td><span class="chip chip-amber">Due Soon</span></td></tr>
                                    <tr><td class="font-mono text-xs">INV-0918</td><td>Silver Lake Corp</td><td class="font-mono text-xs">$6,800</td><td class="text-xs">Jul 10</td><td><span class="chip chip-indigo">Future</span></td></tr>
                                    <tr><td class="font-mono text-xs">INV-0919</td><td>Northern Lights Co</td><td class="font-mono text-xs">$38,100</td><td class="text-xs">Jul 12</td><td><span class="chip chip-indigo">Future</span></td></tr>
                                    <tr><td class="font-mono text-xs">INV-0920</td><td>Southern Cross Ltd</td><td class="font-mono text-xs">$13,400</td><td class="text-xs">Jul 14</td><td><span class="chip chip-indigo">Future</span></td></tr>
                                    <tr><td class="font-mono text-xs">INV-0921</td><td>Pacific Rim Group</td><td class="font-mono text-xs">$21,000</td><td class="text-xs">Jul 16</td><td><span class="chip chip-indigo">Future</span></td></tr>
                                    <tr><td class="font-mono text-xs">INV-0922</td><td>Atlantic Partners</td><td class="font-mono text-xs">$9,600</td><td class="text-xs">Jul 17</td><td><span class="chip chip-indigo">Future</span></td></tr>
                                    <tr><td class="font-mono text-xs">INV-0923</td><td>Highland Ventures</td><td class="font-mono text-xs">$17,800</td><td class="text-xs">Jun 29</td><td><span class="chip chip-red">Overdue</span></td></tr>
                                    <tr><td class="font-mono text-xs">INV-0924</td><td>Valley Industries</td><td class="font-mono text-xs">$4,200</td><td class="text-xs">Jun 30</td><td><span class="chip chip-red">Overdue</span></td></tr>
                                    <tr><td class="font-mono text-xs">INV-0925</td><td>RidgeTop Inc.</td><td class="font-mono text-xs">$29,500</td><td class="text-xs">Jul 01</td><td><span class="chip chip-red">Overdue</span></td></tr>
                                    <tr><td class="font-mono text-xs">INV-0926</td><td>Mountain View Corp</td><td class="font-mono text-xs">$11,200</td><td class="text-xs">Jul 03</td><td><span class="chip chip-red">Overdue</span></td></tr>
                                    <tr><td class="font-mono text-xs">INV-0927</td><td>RiverSide Ltd.</td><td class="font-mono text-xs">$25,400</td><td class="text-xs">Jul 06</td><td><span class="chip chip-amber">Due Soon</span></td></tr>
                                    <tr><td class="font-mono text-xs">INV-0928</td><td>Harbor Freight Co</td><td class="font-mono text-xs">$7,100</td><td class="text-xs">Jul 09</td><td><span class="chip chip-amber">Due Soon</span></td></tr>
                                    <tr><td class="font-mono text-xs">INV-0929</td><td>Ocean View Hotel</td><td class="font-mono text-xs">$34,600</td><td class="text-xs">Jul 11</td><td><span class="chip chip-indigo">Future</span></td></tr>
                                    <tr><td class="font-mono text-xs">INV-0930</td><td>Desert Palm Resort</td><td class="font-mono text-xs">$18,900</td><td class="text-xs">Jul 13</td><td><span class="chip chip-indigo">Future</span></td></tr>
                                    <tr><td class="font-mono text-xs">INV-0931</td><td>Forest Woods Ltd.</td><td class="font-mono text-xs">$8,300</td><td class="text-xs">Jul 15</td><td><span class="chip chip-indigo">Future</span></td></tr>
                                    <tr><td class="font-mono text-xs">INV-0932</td><td>LakeSide Properties</td><td class="font-mono text-xs">$42,000</td><td class="text-xs">Jul 17</td><td><span class="chip chip-indigo">Future</span></td></tr>
                                    <tr><td class="font-mono text-xs">INV-0933</td><td>FieldStone Group</td><td class="font-mono text-xs">$5,800</td><td class="text-xs">Jul 18</td><td><span class="chip chip-indigo">Future</span></td></tr>
                                    <tr><td class="font-mono text-xs">INV-0934</td><td>MeadowBrook Inc.</td><td class="font-mono text-xs">$15,500</td><td class="text-xs">Jun 27</td><td><span class="chip chip-red">Overdue</span></td></tr>
                                    <tr><td class="font-mono text-xs">INV-0935</td><td>HillTop Enterprises</td><td class="font-mono text-xs">$23,100</td><td class="text-xs">Jun 29</td><td><span class="chip chip-red">Overdue</span></td></tr>
                                    <tr><td class="font-mono text-xs">INV-0936</td><td>CrestView Solutions</td><td class="font-mono text-xs">$9,900</td><td class="text-xs">Jul 02</td><td><span class="chip chip-red">Overdue</span></td></tr>
                                    <tr><td class="font-mono text-xs">INV-0937</td><td>Peak Performance Ltd</td><td class="font-mono text-xs">$31,200</td><td class="text-xs">Jul 05</td><td><span class="chip chip-amber">Due Soon</span></td></tr>
                                    <tr><td class="font-mono text-xs">INV-0938</td><td>Summit Strategies</td><td class="font-mono text-xs">$6,400</td><td class="text-xs">Jul 07</td><td><span class="chip chip-amber">Due Soon</span></td></tr>
                                    <tr><td class="font-mono text-xs">INV-0939</td><td>BaySide Logistics</td><td class="font-mono text-xs">$19,700</td><td class="text-xs">Jul 09</td><td><span class="chip chip-amber">Due Soon</span></td></tr>
                                    <tr><td class="font-mono text-xs">INV-0940</td><td>Coastal Trading Co</td><td class="font-mono text-xs">$12,300</td><td class="text-xs">Jul 11</td><td><span class="chip chip-indigo">Future</span></td></tr>
                                    <tr><td class="font-mono text-xs">INV-0941</td><td>Delta Distribution</td><td class="font-mono text-xs">$28,400</td><td class="text-xs">Jul 14</td><td><span class="chip chip-indigo">Future</span></td></tr>
                                    <tr><td class="font-mono text-xs">INV-0942</td><td>Sigma Supplies Co</td><td class="font-mono text-xs">$7,500</td><td class="text-xs">Jul 16</td><td><span class="chip chip-indigo">Future</span></td></tr>
                                    <tr><td class="font-mono text-xs">INV-0943</td><td>Omega Group Ltd.</td><td class="font-mono text-xs">$35,200</td><td class="text-xs">Jul 18</td><td><span class="chip chip-indigo">Future</span></td></tr>
                                    <tr><td class="font-mono text-xs">INV-0944</td><td>Alpha Enterprises</td><td class="font-mono text-xs">$10,800</td><td class="text-xs">Jul 19</td><td><span class="chip chip-indigo">Future</span></td></tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                    <div class="mt-3 pt-3 border-t border-gray-100 flex justify-between text-xs"><span>Total Requests: <b class="text-gray-900">663</b></span><span>FCR Rate: <b class="text-red-500">78.4%</b></span></div>
                </div>
            </div>

        </div>

@section Scripts {
    <script src="/js/dashboard-itsm.js" asp-append-version="true"></script>
}
