diff --git a/app/(auth)/forgot-password/page.tsx b/app/(auth)/forgot-password/page.tsx index 569a8c3..8dbdc45 100644 --- a/app/(auth)/forgot-password/page.tsx +++ b/app/(auth)/forgot-password/page.tsx @@ -57,13 +57,13 @@ export default function ForgotPasswordPage() { onChange={e => setEmail(e.target.value)} required autoComplete="email" - className="border border-gray-300 rounded-md px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-blue-500" + className="border border-divider px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-blue-500" /> diff --git a/app/(auth)/login/page.tsx b/app/(auth)/login/page.tsx index 8cdb5f0..b7617f3 100644 --- a/app/(auth)/login/page.tsx +++ b/app/(auth)/login/page.tsx @@ -10,11 +10,11 @@ export default async function LoginPage({ searchParams }: Props) { return (
{message === 'password_reset' && ( -
+
Password updated — sign in with your new password.
)} -
+
diff --git a/app/(auth)/reset-password/page.tsx b/app/(auth)/reset-password/page.tsx index 32f58f6..0c46cf8 100644 --- a/app/(auth)/reset-password/page.tsx +++ b/app/(auth)/reset-password/page.tsx @@ -50,7 +50,7 @@ export default function ResetPasswordPage() { {error && ( -

+

{error}{' '} {error.includes('expired') && ( @@ -68,7 +68,7 @@ export default function ResetPasswordPage() { required minLength={8} autoComplete="new-password" - className="border border-gray-300 rounded-md px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-blue-500" + className="border border-divider px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-blue-500" /> setConfirm(e.target.value)} required autoComplete="new-password" - className="border border-gray-300 rounded-md px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-blue-500" + className="border border-divider px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-blue-500" /> diff --git a/app/(protected)/admin/page.tsx b/app/(protected)/admin/page.tsx index 2886a4a..135e96b 100644 --- a/app/(protected)/admin/page.tsx +++ b/app/(protected)/admin/page.tsx @@ -57,7 +57,7 @@ export default async function AdminHome() {

Manage users, sites, zones, and trucks

- + Bulk Import Incidents
diff --git a/app/(protected)/capa-owner/page.tsx b/app/(protected)/capa-owner/page.tsx index 86ae460..a11f263 100644 --- a/app/(protected)/capa-owner/page.tsx +++ b/app/(protected)/capa-owner/page.tsx @@ -82,11 +82,11 @@ export default async function CapaOwnerPage() { {activeRows.length === 0 ? ( -
+

No active CAPAs assigned to you.

) : ( -
+
{activeRows.map(capa => { const isOverdue = isCapaOverdue(capa) return ( @@ -127,7 +127,7 @@ export default async function CapaOwnerPage() { {doneRows.length > 0 && (

Completed ({doneCount})

-
+
{doneRows.map(capa => (

{capa.description}

diff --git a/app/(protected)/hse/capa/[id]/page.tsx b/app/(protected)/hse/capa/[id]/page.tsx index 4cdce8c..dd5d90f 100644 --- a/app/(protected)/hse/capa/[id]/page.tsx +++ b/app/(protected)/hse/capa/[id]/page.tsx @@ -62,7 +62,7 @@ export default async function CapaDetailPage({ params }: Props) { ← CAPA Board -
+

@@ -70,7 +70,7 @@ export default async function CapaDetailPage({ params }: Props) {

{capa.description}

- + {capa.priority}
diff --git a/app/(protected)/hse/dashboard/page.tsx b/app/(protected)/hse/dashboard/page.tsx index a5e305b..e599c42 100644 --- a/app/(protected)/hse/dashboard/page.tsx +++ b/app/(protected)/hse/dashboard/page.tsx @@ -165,13 +165,13 @@ export default async function HseDashboardPage({
Export CSV JKKP 8 @@ -187,7 +187,7 @@ export default async function HseDashboardPage({ {(tab === 'overview') && ( <> {now.getMonth() === 0 && ( -
+

JKKP 8 annual register due: the {now.getFullYear() - 1} register must be submitted to DOSH before 31 January {now.getFullYear()}.{' '} @@ -210,7 +210,7 @@ export default async function HseDashboardPage({ />

-
+

Leading vs Lagging — Last 30 Days

@@ -218,16 +218,16 @@ export default async function HseDashboardPage({ Leading: hazard + near-miss reports (predict risk) · Lagging: injuries (past harm)

-
+

{leadingCount}

Leading (Hazards + Near Misses)

-
+

{laggingCount}

Lagging (Injuries)

{capaOnTimeRate !== null && ( -
+

{capaOnTimeRate}%

CAPA On-Time Rate

@@ -240,7 +240,7 @@ export default async function HseDashboardPage({ {/* Trends tab */} {tab === 'trends' && ( <> -
+

Incident Trend — Last 12 Months

@@ -266,7 +266,7 @@ export default async function HseDashboardPage({
{rootCauses.length > 0 && ( -
+

Top Root Causes

    {rootCauses.map((rc, i) => ( @@ -288,7 +288,7 @@ export default async function HseDashboardPage({ {tab === 'zones' && ( <> {by_zone.length > 0 && ( -
    +

    Zone Incident Heatmap — Last 90 Days

    @@ -312,7 +312,7 @@ export default async function HseDashboardPage({
    )} -
    +

    By Incident Type

    {Object.entries(by_type).sort((a, b) => b[1] - a[1]).map(([type, count]) => ( @@ -333,7 +333,7 @@ export default async function HseDashboardPage({
    -
    +

    By Site

    {by_site.map(({ name, count }) => ( diff --git a/app/(protected)/hse/incidents/[id]/page.tsx b/app/(protected)/hse/incidents/[id]/page.tsx index 99c00bd..5c2f813 100644 --- a/app/(protected)/hse/incidents/[id]/page.tsx +++ b/app/(protected)/hse/incidents/[id]/page.tsx @@ -175,14 +175,14 @@ export default async function HseIncidentDetailPage({ params }: Props) { Download JKKP 6 (PDF) Download JKKP 7 (PDF) @@ -194,7 +194,7 @@ export default async function HseIncidentDetailPage({ params }: Props) { href={`/api/incidents/${id}/report-pdf`} target="_blank" rel="noopener noreferrer" - className="flex items-center gap-1.5 px-3 py-1.5 bg-green-600 text-white text-xs font-semibold rounded-lg hover:bg-green-700 transition-colors" + className="flex items-center gap-1.5 px-3 py-1.5 bg-green-600 text-white text-xs font-semibold hover:bg-green-700 transition-colors" > diff --git a/app/(protected)/hse/page.tsx b/app/(protected)/hse/page.tsx index 624e0a1..1e379f2 100644 --- a/app/(protected)/hse/page.tsx +++ b/app/(protected)/hse/page.tsx @@ -13,12 +13,12 @@ export default async function HsePage() {

    HSE Officer Portal

    Welcome, {session.name}

    - +
    📋
    Incident Inbox
    View all incidents
    - +
    📊
    Dashboard
    Stats & overview
    diff --git a/app/(protected)/management/page.tsx b/app/(protected)/management/page.tsx index 35feece..f506439 100644 --- a/app/(protected)/management/page.tsx +++ b/app/(protected)/management/page.tsx @@ -97,7 +97,7 @@ export default async function ManagementPage() {

    Management Dashboard

    Export CSV @@ -119,15 +119,15 @@ export default async function ManagementPage() {
    {/* Leading vs lagging */} -
    +

    Leading vs Lagging — Last 30 Days

    Leading: hazard + near-miss · Lagging: injuries

    -
    +

    {leadingCount}

    Leading (Hazards + Near Misses)

    -
    +

    {laggingCount}

    Lagging (Injuries)

    @@ -135,7 +135,7 @@ export default async function ManagementPage() {
    {/* Severity distribution */} -
    +

    Severity Distribution (All Time)

    {([5, 4, 3, 2, 1] as const).map(sev => ( @@ -154,7 +154,7 @@ export default async function ManagementPage() {
    {/* Site comparison */} -
    +

    Incidents by Site

    {by_site.length === 0 ? (

    No data

    diff --git a/app/(protected)/reporter/incidents/[id]/page.tsx b/app/(protected)/reporter/incidents/[id]/page.tsx index 69c1c0f..2ad5a05 100644 --- a/app/(protected)/reporter/incidents/[id]/page.tsx +++ b/app/(protected)/reporter/incidents/[id]/page.tsx @@ -68,7 +68,7 @@ export default async function ReporterIncidentDetail({ ← My Reports
    -
    +

    {inc.referenceNo ?? inc.id.slice(0, 8)}

    @@ -98,7 +98,7 @@ export default async function ReporterIncidentDetail({
    {inc.description && ( -
    +

    Description

    {inc.description}

    @@ -106,17 +106,17 @@ export default async function ReporterIncidentDetail({
    {capas.length > 0 && ( -
    +

    Corrective Actions ({capas.length})

    {capas.map(c => (

    {c.description}

    {c.status.replace(/_/g, ' ')} + c.status === 'verified' ? 'bg-green-100 text-green-700' : + c.status === 'pending_verification' ? 'bg-purple-100 text-purple-700' : + 'bg-gray-100 text-gray-600' + }`}>{c.status.replace(/_/g, ' ')}
    ))}
    diff --git a/app/(protected)/reporter/page.tsx b/app/(protected)/reporter/page.tsx index c786818..57f35ca 100644 --- a/app/(protected)/reporter/page.tsx +++ b/app/(protected)/reporter/page.tsx @@ -62,34 +62,34 @@ export default async function ReporterPage() {
    + New Report
    -
    +

    {rows.length}

    Total Submitted

    -
    +

    {openCount}

    In Progress

    -
    +

    {closedCount}

    Closed

    {rows.length === 0 ? ( -
    +

    No incidents reported yet.

    Submit your first report →
    ) : ( -
    +
    {rows.map(inc => (
    diff --git a/app/(protected)/supervisor/page.tsx b/app/(protected)/supervisor/page.tsx index 7a8e812..2b46c75 100644 --- a/app/(protected)/supervisor/page.tsx +++ b/app/(protected)/supervisor/page.tsx @@ -133,7 +133,7 @@ export default async function SupervisorPage() {
    {/* Open incidents */} -
    +

    Open Incidents

    {openIncidents.length === 0 ? (

    No open incidents.

    @@ -143,7 +143,7 @@ export default async function SupervisorPage() {

    {inc.referenceNo ?? inc.id.slice(0, 8)}

    @@ -160,7 +160,7 @@ export default async function SupervisorPage() { {/* Overdue CAPAs */} {overdueCount > 0 && ( -
    +

    Overdue CAPAs

    {overdueCapas.map(capa => ( diff --git a/app/report/success/page.tsx b/app/report/success/page.tsx index 43f3a8b..3ff3722 100644 --- a/app/report/success/page.tsx +++ b/app/report/success/page.tsx @@ -10,7 +10,7 @@ export default async function ReportSuccessPage({ searchParams }: Props) { const { ref } = await searchParams return (
    -
    +
    ✓

    Report submitted

    {ref && ( diff --git a/components/account/change-password-form.tsx b/components/account/change-password-form.tsx index b7ad0b3..1d7349e 100644 --- a/components/account/change-password-form.tsx +++ b/components/account/change-password-form.tsx @@ -54,7 +54,7 @@ export default function ChangePasswordForm() { } return ( -
    +

    Change Password

    @@ -67,7 +67,7 @@ export default function ChangePasswordForm() { onChange={e => setCurrent(e.target.value)} disabled={loading} autoComplete="current-password" - className="w-full border border-gray-300 rounded-lg px-3 py-2 text-sm focus:ring-2 focus:ring-blue-500 focus:border-transparent disabled:opacity-50" + className="w-full border border-divider px-3 py-2 text-sm focus:ring-2 focus:ring-blue-500 focus:border-transparent disabled:opacity-50" />
    @@ -80,7 +80,7 @@ export default function ChangePasswordForm() { onChange={e => setNewPass(e.target.value)} disabled={loading} autoComplete="new-password" - className="w-full border border-gray-300 rounded-lg px-3 py-2 text-sm focus:ring-2 focus:ring-blue-500 focus:border-transparent disabled:opacity-50" + className="w-full border border-divider px-3 py-2 text-sm focus:ring-2 focus:ring-blue-500 focus:border-transparent disabled:opacity-50" />
    @@ -93,7 +93,7 @@ export default function ChangePasswordForm() { onChange={e => setConfirm(e.target.value)} disabled={loading} autoComplete="new-password" - className="w-full border border-gray-300 rounded-lg px-3 py-2 text-sm focus:ring-2 focus:ring-blue-500 focus:border-transparent disabled:opacity-50" + className="w-full border border-divider px-3 py-2 text-sm focus:ring-2 focus:ring-blue-500 focus:border-transparent disabled:opacity-50" />
    @@ -103,7 +103,7 @@ export default function ChangePasswordForm() { diff --git a/components/admin/admin-panel.tsx b/components/admin/admin-panel.tsx index 94e8ab6..8d44180 100644 --- a/components/admin/admin-panel.tsx +++ b/components/admin/admin-panel.tsx @@ -25,21 +25,21 @@ export function AdminPanel({ users, sites, siteOptions, trucks }: Props) { return (
    -
    +
    {tabs.map(t => ( ))}
    diff --git a/components/admin/bulk-import-form.tsx b/components/admin/bulk-import-form.tsx index db79d01..273eff9 100644 --- a/components/admin/bulk-import-form.tsx +++ b/components/admin/bulk-import-form.tsx @@ -83,7 +83,7 @@ export function BulkImportForm() { if (stage === 'upload') { return (
    -