Files
hr-portal-v5-designs/designs/16-reports.html
T
2026-05-09 19:35:10 +00:00

316 lines
22 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Reports — HR Portal</title>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
<style>
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', sans-serif; background: #FAFAFA; color: #111827; display: flex; min-height: 100vh; }
.sidebar { width: 240px; min-height: 100vh; background: #FFFFFF; border-right: 1px solid #E5E7EB; display: flex; flex-direction: column; position: fixed; top: 0; left: 0; bottom: 0; z-index: 50; }
.sidebar-logo { padding: 20px 20px 16px; display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; color: #111827; border-bottom: 1px solid #F3F4F6; }
.logo-icon { width: 32px; height: 32px; background: #4F46E5; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.logo-icon svg { width: 16px; height: 16px; }
.sidebar-nav { flex: 1; padding: 12px 0; overflow-y: auto; }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 9px 16px; margin: 1px 8px; border-radius: 6px; font-size: 14px; font-weight: 500; color: #6B7280; text-decoration: none; cursor: pointer; }
.nav-item:hover { background: #F9FAFB; color: #111827; }
.nav-item.active { background: #EEF2FF; color: #4F46E5; font-weight: 600; }
.nav-item svg { width: 18px; height: 18px; flex-shrink: 0; }
.nav-badge { margin-left: auto; background: #F59E0B; color: #FFF; font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 10px; }
.sidebar-footer { padding: 16px; border-top: 1px solid #F3F4F6; }
.user-row { display: flex; align-items: center; gap: 10px; padding: 8px; }
.user-avatar { width: 34px; height: 34px; border-radius: 50%; background: #4F46E5; color: #FFF; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; }
.user-name { font-size: 13px; font-weight: 600; color: #111827; }
.user-role { font-size: 11px; color: #9CA3AF; }
.logout-btn { width: 100%; margin-top: 8px; padding: 7px; border: 1.5px solid #E5E7EB; border-radius: 6px; background: transparent; color: #6B7280; font-size: 13px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; }
.main-wrapper { margin-left: 240px; flex: 1; display: flex; flex-direction: column; }
.topnav { height: 64px; background: #FFFFFF; border-bottom: 1px solid #E5E7EB; display: flex; align-items: center; gap: 16px; padding: 0 28px; position: sticky; top: 0; z-index: 40; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.breadcrumb a { color: #9CA3AF; text-decoration: none; }
.breadcrumb svg { width: 14px; height: 14px; color: #D1D5DB; }
.breadcrumb span { color: #111827; font-weight: 500; }
.topnav-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.icon-btn { width: 36px; height: 36px; border-radius: 8px; border: 1.5px solid #E5E7EB; background: #FFFFFF; display: flex; align-items: center; justify-content: center; cursor: pointer; position: relative; }
.icon-btn svg { width: 18px; height: 18px; color: #6B7280; }
.notif-badge { position: absolute; top: -4px; right: -4px; background: #EF4444; color: #FFF; font-size: 10px; font-weight: 700; width: 16px; height: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid #FFFFFF; }
.topnav-avatar { width: 36px; height: 36px; border-radius: 50%; background: #4F46E5; color: #FFF; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; cursor: pointer; }
.content { padding: 28px; }
.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.page-title { font-size: 22px; font-weight: 700; }
.date-range { display: flex; align-items: center; gap: 8px; }
.date-input { padding: 8px 13px; background: #FFFFFF; border: 1.5px solid #E5E7EB; border-radius: 6px; font-size: 14px; color: #374151; outline: none; }
.date-sep { font-size: 13px; color: #9CA3AF; }
.btn-outline { padding: 8px 16px; border: 1.5px solid #E5E7EB; border-radius: 6px; background: #FFFFFF; color: #374151; font-size: 14px; font-weight: 500; cursor: pointer; display: flex; align-items: center; gap: 6px; }
.btn-primary { padding: 9px 18px; background: #4F46E5; color: #FFF; border: none; border-radius: 6px; font-size: 14px; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 6px; }
.reports-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.report-card {
background: #FFFFFF; border-radius: 12px; border: 1px solid #E5E7EB;
box-shadow: 0 1px 3px rgba(0,0,0,0.06); overflow: hidden;
}
.report-card-header { padding: 16px 20px; border-bottom: 1px solid #F3F4F6; display: flex; align-items: center; justify-content: space-between; }
.report-title { font-size: 14px; font-weight: 600; color: #111827; }
.report-export { font-size: 12px; color: #4F46E5; cursor: pointer; font-weight: 500; }
.report-body { padding: 20px; }
.report-stat { font-size: 26px; font-weight: 700; color: #111827; margin-bottom: 4px; }
.report-stat-sub { font-size: 12px; color: #9CA3AF; margin-bottom: 16px; }
/* HEADCOUNT CHART (line mock) */
.line-chart { position: relative; height: 80px; margin-bottom: 8px; }
.line-chart svg { width: 100%; height: 100%; }
.chart-labels { display: flex; justify-content: space-between; }
.chart-label { font-size: 11px; color: #9CA3AF; }
/* LEAVE UTILIZATION BARS */
.horiz-bar-item { margin-bottom: 10px; }
.horiz-bar-top { display: flex; justify-content: space-between; margin-bottom: 3px; }
.horiz-bar-label { font-size: 12px; color: #374151; }
.horiz-bar-val { font-size: 12px; font-weight: 600; color: #111827; }
.horiz-bar-track { height: 8px; background: #F3F4F6; border-radius: 4px; overflow: hidden; }
.horiz-bar-fill { height: 100%; border-radius: 4px; }
/* ATTENDANCE AREA MOCK */
.area-chart { height: 80px; position: relative; overflow: hidden; margin-bottom: 8px; }
.area-chart svg { width: 100%; height: 100%; }
/* PAYROLL BARS */
.bar-chart { display: flex; align-items: flex-end; gap: 8px; height: 80px; margin-bottom: 8px; }
.bar-item { flex: 1; display: flex; flex-direction: column; align-items: center; }
.bar { width: 100%; border-radius: 4px 4px 0 0; }
.bar-month { font-size: 10px; color: #9CA3AF; margin-top: 4px; }
/* DONUT CHART */
.donut-container { display: flex; align-items: center; gap: 20px; }
.donut { width: 80px; height: 80px; border-radius: 50%; flex-shrink: 0; }
.donut-legend { flex: 1; }
.donut-item { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.donut-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.donut-label { font-size: 12px; color: #374151; }
.donut-pct { font-size: 12px; font-weight: 600; color: #111827; margin-left: auto; }
</style>
</head>
<body>
<aside class="sidebar">
<div class="sidebar-logo"><div class="logo-icon"><svg viewBox="0 0 24 24" fill="none" stroke="#FFFFFF" stroke-width="2"><path d="M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"/><circle cx="9" cy="7" r="4"/><path d="M23 21v-2a4 4 0 0 0-3-3.87"/><path d="M16 3.13a4 4 0 0 1 0 7.75"/></svg></div>HR Portal</div>
<nav class="sidebar-nav">
<a href="04-admin-dashboard.html" class="nav-item"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><rect x="3" y="3" width="7" height="7"/><rect x="14" y="3" width="7" height="7"/><rect x="14" y="14" width="7" height="7"/><rect x="3" y="14" width="7" height="7"/></svg>Dashboard</a>
<a href="05-employee-directory.html" class="nav-item"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"/><circle cx="9" cy="7" r="4"/><path d="M23 21v-2a4 4 0 0 0-3-3.87"/><path d="M16 3.13a4 4 0 0 1 0 7.75"/></svg>Employees</a>
<a href="08-department-management.html" class="nav-item"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"/><polyline points="9 22 9 12 15 12 15 22"/></svg>Departments</a>
<a href="09-leave-requests.html" class="nav-item"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"/><line x1="16" y1="2" x2="16" y2="6"/><line x1="8" y1="2" x2="8" y2="6"/><line x1="3" y1="10" x2="21" y2="10"/></svg>Leave Management<span class="nav-badge">7</span></a>
<a href="11-attendance.html" class="nav-item"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="10"/><polyline points="12 6 12 12 16 14"/></svg>Attendance</a>
<a href="12-payroll-dashboard.html" class="nav-item"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><rect x="2" y="5" width="20" height="14" rx="2"/><line x1="2" y1="10" x2="22" y2="10"/></svg>Payroll</a>
<a href="13-recruitment.html" class="nav-item"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><rect x="2" y="7" width="20" height="14" rx="2" ry="2"/><path d="M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16"/></svg>Recruitment</a>
<a href="14-expense-claims.html" class="nav-item"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"/><polyline points="14 2 14 8 20 8"/></svg>Expense Claims</a>
<a href="15-performance-reviews.html" class="nav-item"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><line x1="18" y1="20" x2="18" y2="10"/><line x1="12" y1="20" x2="12" y2="4"/><line x1="6" y1="20" x2="6" y2="14"/></svg>Performance</a>
<a href="16-reports.html" class="nav-item active"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M21.21 15.89A10 10 0 1 1 8 2.83"/><path d="M22 12A10 10 0 0 0 12 2v10z"/></svg>Reports</a>
<a href="20-org-chart.html" class="nav-item"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><rect x="9" y="1" width="6" height="5" rx="1"/><rect x="1" y="14" width="6" height="5" rx="1"/><rect x="17" y="14" width="6" height="5" rx="1"/><path d="M4 14v-4a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v4"/><line x1="12" y1="6" x2="12" y2="9"/></svg>Org Chart</a>
<a href="#" class="nav-item"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M22 12h-4l-3 9L9 3l-3 9H2"/></svg>Announcements</a>
<a href="17-settings.html" class="nav-item"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="3"/><path d="M19.07 4.93l-1.41 1.41M4.93 4.93l1.41 1.41M12 2v2M12 20v2M2 12h2M20 12h2M17.66 17.66l-1.41-1.41M6.34 17.66l1.41-1.41"/></svg>Settings</a>
</nav>
<div class="sidebar-footer">
<div class="user-row"><div class="user-avatar">SC</div><div><div class="user-name">Sarah Chen</div><div class="user-role">HR Administrator</div></div></div>
<button class="logout-btn">Sign Out</button>
</div>
</aside>
<div class="main-wrapper">
<header class="topnav">
<div class="breadcrumb">
<a href="04-admin-dashboard.html">Home</a>
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polyline points="9 18 15 12 9 6"/></svg>
<span>Reports &amp; Analytics</span>
</div>
<div class="topnav-actions">
<div class="icon-btn"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M22 17H2a3 3 0 0 0 3-3V9a7 7 0 0 1 14 0v5a3 3 0 0 0 3 3zm-8.27 4a2 2 0 0 1-3.46 0"/></svg><span class="notif-badge">3</span></div>
<div class="topnav-avatar">SC</div>
</div>
</header>
<main class="content">
<div class="page-header">
<div class="page-title">Reports &amp; Analytics</div>
<div style="display:flex;align-items:center;gap:10px;">
<div class="date-range">
<input class="date-input" type="date" value="2026-01-01">
<span class="date-sep">to</span>
<input class="date-input" type="date" value="2026-05-09">
</div>
<button class="btn-outline">
<svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><polyline points="7 10 12 15 17 10"/><line x1="12" y1="15" x2="12" y2="3"/></svg>
Export All
</button>
</div>
</div>
<div class="reports-grid">
<!-- HEADCOUNT OVER TIME -->
<div class="report-card">
<div class="report-card-header">
<span class="report-title">Headcount Over Time</span>
<span class="report-export">Export CSV</span>
</div>
<div class="report-body">
<div class="report-stat">248</div>
<div class="report-stat-sub">Current headcount &nbsp;·&nbsp; <span style="color:#10B981;">+19 this year</span></div>
<div class="line-chart">
<svg viewBox="0 0 300 80" preserveAspectRatio="none">
<defs>
<linearGradient id="g1" x1="0" y1="0" x2="0" y2="1">
<stop offset="0%" stop-color="#4F46E5" stop-opacity="0.2"/>
<stop offset="100%" stop-color="#4F46E5" stop-opacity="0"/>
</linearGradient>
</defs>
<path d="M0,65 L50,60 L100,55 L150,50 L200,45 L250,38 L300,30" stroke="#4F46E5" stroke-width="2.5" fill="none"/>
<path d="M0,65 L50,60 L100,55 L150,50 L200,45 L250,38 L300,30 L300,80 L0,80 Z" fill="url(#g1)"/>
</svg>
</div>
<div class="chart-labels">
<span class="chart-label">Jan</span>
<span class="chart-label">Feb</span>
<span class="chart-label">Mar</span>
<span class="chart-label">Apr</span>
<span class="chart-label">May</span>
</div>
</div>
</div>
<!-- LEAVE UTILIZATION -->
<div class="report-card">
<div class="report-card-header">
<span class="report-title">Leave Utilization by Type</span>
<span class="report-export">Export CSV</span>
</div>
<div class="report-body">
<div class="report-stat">487</div>
<div class="report-stat-sub">Total leave days taken YTD</div>
<div class="horiz-bar-item">
<div class="horiz-bar-top"><span class="horiz-bar-label">Annual Leave</span><span class="horiz-bar-val">248 days</span></div>
<div class="horiz-bar-track"><div class="horiz-bar-fill" style="width:80%;background:#4F46E5;"></div></div>
</div>
<div class="horiz-bar-item">
<div class="horiz-bar-top"><span class="horiz-bar-label">Sick Leave</span><span class="horiz-bar-val">142 days</span></div>
<div class="horiz-bar-track"><div class="horiz-bar-fill" style="width:46%;background:#F59E0B;"></div></div>
</div>
<div class="horiz-bar-item">
<div class="horiz-bar-top"><span class="horiz-bar-label">Casual Leave</span><span class="horiz-bar-val">68 days</span></div>
<div class="horiz-bar-track"><div class="horiz-bar-fill" style="width:22%;background:#10B981;"></div></div>
</div>
<div class="horiz-bar-item">
<div class="horiz-bar-top"><span class="horiz-bar-label">Other</span><span class="horiz-bar-val">29 days</span></div>
<div class="horiz-bar-track"><div class="horiz-bar-fill" style="width:10%;background:#9CA3AF;"></div></div>
</div>
</div>
</div>
<!-- ATTENDANCE RATE -->
<div class="report-card">
<div class="report-card-header">
<span class="report-title">Attendance Rate Trend</span>
<span class="report-export">Export CSV</span>
</div>
<div class="report-body">
<div class="report-stat">94.6%</div>
<div class="report-stat-sub">Average attendance rate YTD</div>
<div class="area-chart">
<svg viewBox="0 0 300 80" preserveAspectRatio="none">
<defs>
<linearGradient id="g2" x1="0" y1="0" x2="0" y2="1">
<stop offset="0%" stop-color="#10B981" stop-opacity="0.25"/>
<stop offset="100%" stop-color="#10B981" stop-opacity="0"/>
</linearGradient>
</defs>
<path d="M0,25 L50,20 L100,30 L150,18 L200,22 L250,15 L300,20" stroke="#10B981" stroke-width="2.5" fill="none"/>
<path d="M0,25 L50,20 L100,30 L150,18 L200,22 L250,15 L300,20 L300,80 L0,80 Z" fill="url(#g2)"/>
</svg>
</div>
<div class="chart-labels">
<span class="chart-label">Jan</span>
<span class="chart-label">Feb</span>
<span class="chart-label">Mar</span>
<span class="chart-label">Apr</span>
<span class="chart-label">May</span>
</div>
</div>
</div>
<!-- PAYROLL BY MONTH -->
<div class="report-card">
<div class="report-card-header">
<span class="report-title">Payroll by Month</span>
<span class="report-export">Export CSV</span>
</div>
<div class="report-body">
<div class="report-stat">$1.18M</div>
<div class="report-stat-sub">Total payroll YTD (net)</div>
<div class="bar-chart">
<div class="bar-item"><div class="bar" style="height:55px;background:#EEF2FF;"></div><div class="bar-month" style="color:#4F46E5;">Jan</div></div>
<div class="bar-item"><div class="bar" style="height:57px;background:#EEF2FF;"></div><div class="bar-month" style="color:#4F46E5;">Feb</div></div>
<div class="bar-item"><div class="bar" style="height:60px;background:#EEF2FF;"></div><div class="bar-month" style="color:#4F46E5;">Mar</div></div>
<div class="bar-item"><div class="bar" style="height:63px;background:#EEF2FF;"></div><div class="bar-month" style="color:#4F46E5;">Apr</div></div>
<div class="bar-item"><div class="bar" style="height:66px;background:#4F46E5;"></div><div class="bar-month" style="color:#4F46E5;font-weight:600;">May</div></div>
</div>
</div>
</div>
<!-- DEPARTMENT BREAKDOWN -->
<div class="report-card">
<div class="report-card-header">
<span class="report-title">Department Breakdown</span>
<span class="report-export">Export CSV</span>
</div>
<div class="report-body">
<div class="report-stat">6</div>
<div class="report-stat-sub">Active departments</div>
<div class="donut-container">
<div class="donut" style="background: conic-gradient(#4F46E5 0% 32%, #10B981 32% 54%, #7C3AED 54% 71%, #F59E0B 54% 84%, #3B82F6 84% 95%, #EF4444 95% 100%);"></div>
<div class="donut-legend">
<div class="donut-item"><div class="donut-dot" style="background:#4F46E5;"></div><span class="donut-label">Engineering</span><span class="donut-pct">32%</span></div>
<div class="donut-item"><div class="donut-dot" style="background:#10B981;"></div><span class="donut-label">Operations</span><span class="donut-pct">22%</span></div>
<div class="donut-item"><div class="donut-dot" style="background:#7C3AED;"></div><span class="donut-label">Sales</span><span class="donut-pct">17%</span></div>
<div class="donut-item"><div class="donut-dot" style="background:#F59E0B;"></div><span class="donut-label">Marketing</span><span class="donut-pct">13%</span></div>
<div class="donut-item"><div class="donut-dot" style="background:#3B82F6;"></div><span class="donut-label">Finance</span><span class="donut-pct">11%</span></div>
<div class="donut-item"><div class="donut-dot" style="background:#EF4444;"></div><span class="donut-label">HR</span><span class="donut-pct">5%</span></div>
</div>
</div>
</div>
</div>
<!-- EXPENSE CLAIMS -->
<div class="report-card">
<div class="report-card-header">
<span class="report-title">Expense Claims by Category</span>
<span class="report-export">Export CSV</span>
</div>
<div class="report-body">
<div class="report-stat">$28,430</div>
<div class="report-stat-sub">Total claims YTD &nbsp;·&nbsp; 84 claims</div>
<div class="horiz-bar-item">
<div class="horiz-bar-top"><span class="horiz-bar-label">Travel</span><span class="horiz-bar-val">$12,800</span></div>
<div class="horiz-bar-track"><div class="horiz-bar-fill" style="width:75%;background:#3B82F6;"></div></div>
</div>
<div class="horiz-bar-item">
<div class="horiz-bar-top"><span class="horiz-bar-label">Equipment</span><span class="horiz-bar-val">$8,400</span></div>
<div class="horiz-bar-track"><div class="horiz-bar-fill" style="width:49%;background:#7C3AED;"></div></div>
</div>
<div class="horiz-bar-item">
<div class="horiz-bar-top"><span class="horiz-bar-label">Accommodation</span><span class="horiz-bar-val">$4,600</span></div>
<div class="horiz-bar-track"><div class="horiz-bar-fill" style="width:27%;background:#0D9488;"></div></div>
</div>
<div class="horiz-bar-item">
<div class="horiz-bar-top"><span class="horiz-bar-label">Meals</span><span class="horiz-bar-val">$2,630</span></div>
<div class="horiz-bar-track"><div class="horiz-bar-fill" style="width:15%;background:#F59E0B;"></div></div>
</div>
</div>
</div>
</div>
</main>
</div>
</body>
</html>