diff --git a/app/(auth)/forgot-password/page.tsx b/app/(auth)/forgot-password/page.tsx index 8dbdc45..de544df 100644 --- a/app/(auth)/forgot-password/page.tsx +++ b/app/(auth)/forgot-password/page.tsx @@ -32,7 +32,7 @@ export default function ForgotPasswordPage() {

If an account exists for {email}, a password reset link has been sent.

- + Back to sign in @@ -57,19 +57,19 @@ export default function ForgotPasswordPage() { onChange={e => setEmail(e.target.value)} required autoComplete="email" - className="border border-divider 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-accent" />

- + Back to sign in

diff --git a/app/(auth)/login/page.tsx b/app/(auth)/login/page.tsx index b7617f3..a1cac03 100644 --- a/app/(auth)/login/page.tsx +++ b/app/(auth)/login/page.tsx @@ -8,13 +8,13 @@ interface Props { export default async function LoginPage({ searchParams }: Props) { const { message } = await searchParams 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 0c46cf8..f27345f 100644 --- a/app/(auth)/reset-password/page.tsx +++ b/app/(auth)/reset-password/page.tsx @@ -68,7 +68,7 @@ export default function ResetPasswordPage() { required minLength={8} autoComplete="new-password" - className="border border-divider 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-accent" /> setConfirm(e.target.value)} required autoComplete="new-password" - className="border border-divider 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-accent" /> diff --git a/app/(protected)/admin/page.tsx b/app/(protected)/admin/page.tsx index 135e96b..b850db3 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 fe0bff4..9ea8ae7 100644 --- a/app/(protected)/capa-owner/page.tsx +++ b/app/(protected)/capa-owner/page.tsx @@ -86,7 +86,7 @@ export default async function CapaOwnerPage() {

{capa.description}

{capa.incidentRefNo && ( - + {capa.incidentRefNo} )} diff --git a/app/(protected)/hse/capa/[id]/page.tsx b/app/(protected)/hse/capa/[id]/page.tsx index ed78f97..4cb4257 100644 --- a/app/(protected)/hse/capa/[id]/page.tsx +++ b/app/(protected)/hse/capa/[id]/page.tsx @@ -53,7 +53,7 @@ export default async function CapaDetailPage({ params }: Props) { return (
- + ← CAPA Board diff --git a/app/(protected)/hse/capa/page.tsx b/app/(protected)/hse/capa/page.tsx index 550255c..333dd20 100644 --- a/app/(protected)/hse/capa/page.tsx +++ b/app/(protected)/hse/capa/page.tsx @@ -52,7 +52,7 @@ export default async function CapaListPage() {

CAPA Board

- + ← Incidents
diff --git a/app/(protected)/hse/dashboard/page.tsx b/app/(protected)/hse/dashboard/page.tsx index e599c42..f48eb95 100644 --- a/app/(protected)/hse/dashboard/page.tsx +++ b/app/(protected)/hse/dashboard/page.tsx @@ -175,7 +175,7 @@ export default async function HseDashboardPage({ > JKKP 8 - + All incidents →
@@ -187,8 +187,8 @@ 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()}.{' '} @@ -218,18 +218,18 @@ export default async function HseDashboardPage({ Leading: hazard + near-miss reports (predict risk) · Lagging: injuries (past harm)

-
-

{leadingCount}

-

Leading (Hazards + Near Misses)

+
+

{leadingCount}

+

Leading (Hazards + Near Misses)

{laggingCount}

Lagging (Injuries)

{capaOnTimeRate !== null && ( -
-

{capaOnTimeRate}%

-

CAPA On-Time Rate

+
+

{capaOnTimeRate}%

+

CAPA On-Time Rate

)}
@@ -253,7 +253,7 @@ export default async function HseDashboardPage({ return (
-
+
@@ -296,9 +296,9 @@ export default async function HseDashboardPage({ {by_zone.map(({ name, count }) => (
{name} -
+
b[1] - a[1]).map(([type, count]) => (
{TYPE_LABELS[type] ?? type} -
+
0 ? `${(count / total) * 100}%` : '0%' }} />
diff --git a/app/(protected)/hse/incidents/[id]/capa/new/page.tsx b/app/(protected)/hse/incidents/[id]/capa/new/page.tsx index e3c8779..a34f648 100644 --- a/app/(protected)/hse/incidents/[id]/capa/new/page.tsx +++ b/app/(protected)/hse/incidents/[id]/capa/new/page.tsx @@ -31,7 +31,7 @@ export default async function NewCapaPage({ params }: Props) { return (
- + ← Back to incident

Add CAPA Action

diff --git a/app/(protected)/hse/incidents/[id]/investigation/page.tsx b/app/(protected)/hse/incidents/[id]/investigation/page.tsx index 802b4d1..b6bdca5 100644 --- a/app/(protected)/hse/incidents/[id]/investigation/page.tsx +++ b/app/(protected)/hse/incidents/[id]/investigation/page.tsx @@ -43,7 +43,7 @@ export default async function InvestigationPage({ params }: Props) { return (
- + ← Back to incident

Investigation Workspace

diff --git a/app/(protected)/hse/incidents/[id]/page.tsx b/app/(protected)/hse/incidents/[id]/page.tsx index 5c2f813..54f2df1 100644 --- a/app/(protected)/hse/incidents/[id]/page.tsx +++ b/app/(protected)/hse/incidents/[id]/page.tsx @@ -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 hover:bg-green-700 transition-colors" + className="flex items-center gap-1.5 px-3 py-1.5 bg-accent text-white text-xs font-semibold hover:bg-accent-600 transition-colors" > diff --git a/app/(protected)/hse/incidents/[id]/triage/page.tsx b/app/(protected)/hse/incidents/[id]/triage/page.tsx index 5d2d3b6..6bd3567 100644 --- a/app/(protected)/hse/incidents/[id]/triage/page.tsx +++ b/app/(protected)/hse/incidents/[id]/triage/page.tsx @@ -35,7 +35,7 @@ export default async function TriagePage({ params }: Props) { return (
- + ← Back to incident

Triage Incident

diff --git a/app/(protected)/management/page.tsx b/app/(protected)/management/page.tsx index c45ea74..762ee1e 100644 --- a/app/(protected)/management/page.tsx +++ b/app/(protected)/management/page.tsx @@ -123,9 +123,9 @@ export default async function ManagementPage() {

Leading vs Lagging — Last 30 Days

Leading: hazard + near-miss · Lagging: injuries

-
-

{leadingCount}

-

Leading (Hazards + Near Misses)

+
+

{leadingCount}

+

Leading (Hazards + Near Misses)

{laggingCount}

diff --git a/app/(protected)/reporter/incidents/[id]/page.tsx b/app/(protected)/reporter/incidents/[id]/page.tsx index 0cac243..103f4d4 100644 --- a/app/(protected)/reporter/incidents/[id]/page.tsx +++ b/app/(protected)/reporter/incidents/[id]/page.tsx @@ -60,7 +60,7 @@ export default async function ReporterIncidentDetail({ return (
- ← My Reports + ← My Reports
@@ -105,11 +105,11 @@ export default async function ReporterIncidentDetail({ {capas.map(c => (

{c.description}

- {c.status.replace(/_/g, ' ')} + {c.status.replace(/_/g, ' ')}
))}
diff --git a/app/(protected)/reporter/page.tsx b/app/(protected)/reporter/page.tsx index 8994bb4..949405d 100644 --- a/app/(protected)/reporter/page.tsx +++ b/app/(protected)/reporter/page.tsx @@ -54,7 +54,7 @@ export default async function ReporterPage() {
+ New Report @@ -66,11 +66,11 @@ export default async function ReporterPage() {

Total Submitted

-

{openCount}

+

{openCount}

In Progress

-

{closedCount}

+

{closedCount}

Closed

@@ -78,7 +78,7 @@ export default async function ReporterPage() { {rows.length === 0 ? (

No incidents reported yet.

- Submit your first report → + Submit your first report →
) : (
diff --git a/app/(protected)/supervisor/incidents/[id]/page.tsx b/app/(protected)/supervisor/incidents/[id]/page.tsx index f76c5a2..0d88a7c 100644 --- a/app/(protected)/supervisor/incidents/[id]/page.tsx +++ b/app/(protected)/supervisor/incidents/[id]/page.tsx @@ -136,7 +136,7 @@ export default async function SupervisorIncidentDetailPage({ params }: Props) { return (
- + ← Back to inbox diff --git a/app/(protected)/supervisor/page.tsx b/app/(protected)/supervisor/page.tsx index 23ab252..f4a6c5d 100644 --- a/app/(protected)/supervisor/page.tsx +++ b/app/(protected)/supervisor/page.tsx @@ -111,7 +111,7 @@ export default async function SupervisorPage() {

Supervisor Portal

{siteName}

- + All incidents →
diff --git a/app/globals.css b/app/globals.css index c21b406..b0c9f16 100644 --- a/app/globals.css +++ b/app/globals.css @@ -71,6 +71,19 @@ --color-blue-900: var(--color-accent-900); --color-blue-950: var(--color-accent-900); + /* Existing red-* utilities (errors, destructive) render on the accent ramp; + 600 and 700 map to accent-700 so body-size text clears contrast. */ + --color-red-50: var(--color-accent-100); + --color-red-100: var(--color-accent-100); + --color-red-200: var(--color-accent-200); + --color-red-300: var(--color-accent-300); + --color-red-400: var(--color-accent-400); + --color-red-500: var(--color-accent-600); + --color-red-600: var(--color-accent-700); + --color-red-700: var(--color-accent-700); + --color-red-800: var(--color-accent-800); + --color-red-900: var(--color-accent-900); + /* Zero corner radius, everywhere. */ --radius: 0px; --radius-xs: 0px; diff --git a/app/report/page.tsx b/app/report/page.tsx index f2ce9a5..5dab647 100644 --- a/app/report/page.tsx +++ b/app/report/page.tsx @@ -67,7 +67,7 @@ export default async function ReportPage({ searchParams }: Props) { {siteName ?? 'Unknown Site'} — {zoneName}

) : ( -

No zone detected — zone will not be recorded

+

No zone detected — zone will not be recorded

)}
The supervisor and HSE officer have been notified.

- + Submit another report
diff --git a/components/account/change-password-form.tsx b/components/account/change-password-form.tsx index 1d7349e..6b95cc3 100644 --- a/components/account/change-password-form.tsx +++ b/components/account/change-password-form.tsx @@ -67,7 +67,7 @@ export default function ChangePasswordForm() { onChange={e => setCurrent(e.target.value)} disabled={loading} autoComplete="current-password" - 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" + className="w-full border border-divider px-3 py-2 text-sm focus:ring-2 focus:ring-accent 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-divider 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-accent focus:border-transparent disabled:opacity-50" />
@@ -93,17 +93,17 @@ export default function ChangePasswordForm() { onChange={e => setConfirm(e.target.value)} disabled={loading} autoComplete="new-password" - 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" + className="w-full border border-divider px-3 py-2 text-sm focus:ring-2 focus:ring-accent focus:border-transparent disabled:opacity-50" />
{error &&

{error}

} - {success &&

Password changed successfully.

} + {success &&

Password changed successfully.

} diff --git a/components/admin/admin-panel.tsx b/components/admin/admin-panel.tsx index 8d44180..06554c9 100644 --- a/components/admin/admin-panel.tsx +++ b/components/admin/admin-panel.tsx @@ -31,15 +31,15 @@ export function AdminPanel({ users, sites, siteOptions, trucks }: Props) { key={t.id} onClick={() => setTab(t.id)} className={`px-4 py-2.5 text-sm font-medium border-b-2 -mb-px transition-colors cursor-pointer ${ - tab === t.id - ? 'border-green-600 text-green-700' - : 'border-transparent text-gray-500 hover:text-gray-700' - }`} + tab === t.id + ? 'border-accent text-ink' + : 'border-transparent text-gray-500 hover:text-gray-700' + }`} > {t.label} - {t.count} + {t.count} ))}
diff --git a/components/admin/bulk-import-form.tsx b/components/admin/bulk-import-form.tsx index 273eff9..178f59b 100644 --- a/components/admin/bulk-import-form.tsx +++ b/components/admin/bulk-import-form.tsx @@ -208,7 +208,7 @@ export function BulkImportForm() { @@ -220,9 +220,9 @@ export function BulkImportForm() { return (
-

✓ Import Complete

+

✓ Import Complete

{folders.length} incidents created

- {message &&

{message}

} + {message &&

{message}

}
) } diff --git a/components/admin/site-zone-manager.tsx b/components/admin/site-zone-manager.tsx index 306a4a6..f7566d3 100644 --- a/components/admin/site-zone-manager.tsx +++ b/components/admin/site-zone-manager.tsx @@ -3,6 +3,7 @@ import { useState } from 'react' import { useRouter } from 'next/navigation' import { Modal } from '@/components/ui/modal' +import { INPUT_CLASS as inp } from '@/components/ui/field' export type SiteWithZones = { id: string @@ -16,7 +17,6 @@ interface Props { sites: SiteWithZones[] } -const inp = 'w-full border border-gray-300 px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-green-500 focus:border-green-500' const lbl = 'block text-xs font-medium text-gray-600 mb-1' type DeleteTarget = { kind: 'site'; id: string; name: string } | { kind: 'zone'; id: string; name: string } @@ -96,7 +96,7 @@ export function SiteZoneManager({ sites }: Props) { Add Zone @@ -214,7 +214,7 @@ export function SiteZoneManager({ sites }: Props) { setZoneName(''); setZoneSiteId(''); setShowAddZone(false) } }} - className="px-4 py-2 bg-green-600 text-white text-sm font-semibold hover:bg-green-700 disabled:opacity-50 cursor-pointer transition-colors"> + className="px-4 py-2 bg-accent text-white text-sm font-semibold hover:bg-accent-600 disabled:opacity-50 cursor-pointer transition-colors"> {busy ? 'Adding…' : 'Add Zone'} diff --git a/components/admin/truck-manager.tsx b/components/admin/truck-manager.tsx index 139eafb..0c8ce3d 100644 --- a/components/admin/truck-manager.tsx +++ b/components/admin/truck-manager.tsx @@ -3,6 +3,7 @@ import { useState } from 'react' import { useRouter } from 'next/navigation' import { Modal } from '@/components/ui/modal' +import { INPUT_CLASS as inp } from '@/components/ui/field' export type Truck = { id: string @@ -15,7 +16,6 @@ interface Props { trucks: Truck[] } -const inp = 'w-full border border-gray-300 px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-green-500 focus:border-green-500' const lbl = 'block text-xs font-medium text-gray-600 mb-1' export function TruckManager({ trucks }: Props) { @@ -90,7 +90,7 @@ export function TruckManager({ trucks }: Props) {

{trucks.length} vehicle{trucks.length !== 1 ? 's' : ''}

+ className="text-xs text-accent-700 hover:underline cursor-pointer"> Report link diff --git a/components/admin/user-manager.tsx b/components/admin/user-manager.tsx index d26cebe..b96d080 100644 --- a/components/admin/user-manager.tsx +++ b/components/admin/user-manager.tsx @@ -4,6 +4,7 @@ import { useState } from 'react' import { useRouter } from 'next/navigation' import { ALL_ROLES, type UserRole } from '@/lib/auth/roles' import { Modal } from '@/components/ui/modal' +import { INPUT_CLASS as inp } from '@/components/ui/field' export type AdminUser = { id: string @@ -24,7 +25,6 @@ interface Props { const EMPTY = { email: '', name: '', phone: '', role: 'reporter' as UserRole, site_id: '', password: '' } -const inp = 'w-full border border-gray-300 px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-green-500 focus:border-green-500' const lbl = 'block text-xs font-medium text-gray-600 mb-1' export function UserManager({ users, sites }: Props) { @@ -103,7 +103,7 @@ export function UserManager({ users, sites }: Props) {
diff --git a/components/auth/login-form.tsx b/components/auth/login-form.tsx index b6904f3..fb29435 100644 --- a/components/auth/login-form.tsx +++ b/components/auth/login-form.tsx @@ -4,6 +4,8 @@ import { useState } from 'react' import { useRouter } from 'next/navigation' import Link from 'next/link' +import { Button } from '@/components/ui/button' +import { Input } from '@/components/ui/field' export function LoginForm() { const [email, setEmail] = useState('') @@ -37,44 +39,38 @@ export function LoginForm() { return (
-
-

IMS

-

HSE Incident Management

+
+

IMS

+

HSE Incident Management

{error && ( -

+

{error}

)} - setEmail(e.target.value)} required autoComplete="email" - className="border px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-blue-500" /> - setPassword(e.target.value)} required autoComplete="current-password" - className="border px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-blue-500" /> - -

- + +

+ Forgot password?

diff --git a/components/capa/capa-board.tsx b/components/capa/capa-board.tsx index 22320e7..929879c 100644 --- a/components/capa/capa-board.tsx +++ b/components/capa/capa-board.tsx @@ -54,7 +54,7 @@ export function CapaBoard({ capas }: Props) { return (
- +
@@ -75,7 +75,7 @@ export function CapaBoard({ capas }: Props) { {(c.incidents as { reference_no: string | null } | null)?.reference_no ?? '—'} diff --git a/components/capa/capa-form.tsx b/components/capa/capa-form.tsx index 0dd351f..7bf461c 100644 --- a/components/capa/capa-form.tsx +++ b/components/capa/capa-form.tsx @@ -121,7 +121,7 @@ export function CapaForm({ incidentId }: Props) { {error &&

{error}

} diff --git a/components/capa/capa-owner-actions.tsx b/components/capa/capa-owner-actions.tsx index d5495de..a75977f 100644 --- a/components/capa/capa-owner-actions.tsx +++ b/components/capa/capa-owner-actions.tsx @@ -48,7 +48,7 @@ export function CapaOwnerActions({ capaId, currentStatus }: Props) { diff --git a/components/capa/capa-owner-notes-form.tsx b/components/capa/capa-owner-notes-form.tsx index 32f6ba9..3d71956 100644 --- a/components/capa/capa-owner-notes-form.tsx +++ b/components/capa/capa-owner-notes-form.tsx @@ -39,7 +39,7 @@ export function CapaOwnerNotesForm({ capaId, initialNotes }: Props) { onChange={e => { setNotes(e.target.value); setSaved(false) }} rows={2} placeholder="Add any notes or updates for this action…" - className="w-full border border-divider px-3 py-2 text-sm text-gray-800 resize-none focus:outline-none focus:ring-2 focus:ring-blue-500" + className="w-full border border-divider px-3 py-2 text-sm text-gray-800 resize-none focus:outline-none focus:ring-2 focus:ring-accent" /> {error &&

{error}

}
@@ -50,7 +50,7 @@ export function CapaOwnerNotesForm({ capaId, initialNotes }: Props) { > {saving ? 'Saving…' : 'Save Notes'} - {saved && Saved} + {saved && Saved}
) diff --git a/components/capa/close-capa-button.tsx b/components/capa/close-capa-button.tsx index b4d10a5..a9ce317 100644 --- a/components/capa/close-capa-button.tsx +++ b/components/capa/close-capa-button.tsx @@ -31,7 +31,7 @@ export function CloseCapaButton({ capaId }: Props) { } return ( -
+

Close CAPA

This CAPA has been verified as effective. Close it to mark it fully resolved. @@ -40,7 +40,7 @@ export function CloseCapaButton({ capaId }: Props) { diff --git a/components/capa/verify-form.tsx b/components/capa/verify-form.tsx index 6ec40c9..b7a3585 100644 --- a/components/capa/verify-form.tsx +++ b/components/capa/verify-form.tsx @@ -39,17 +39,17 @@ export function VerifyForm({ capaId }: Props) { } return ( -
+

HSE Verification

@@ -57,10 +57,10 @@ export function VerifyForm({ capaId }: Props) { type="button" onClick={() => setVerdict('reopened')} className={`flex-1 py-2 text-sm font-medium border ${ - verdict === 'reopened' - ? 'bg-orange-600 text-white border-orange-600' - : 'bg-surface text-gray-700 border-divider hover:border-orange-500' - }`} + verdict === 'reopened' + ? 'bg-accent text-white border-accent' + : 'bg-surface text-gray-700 border-divider hover:border-accent' + }`} > Reopen — Ineffective diff --git a/components/dashboard/dashboard-tabs.tsx b/components/dashboard/dashboard-tabs.tsx index 87fa6ea..a8f0ec6 100644 --- a/components/dashboard/dashboard-tabs.tsx +++ b/components/dashboard/dashboard-tabs.tsx @@ -21,10 +21,10 @@ function TabsInner({ activeTab }: { activeTab: string }) { key={tab.key} onClick={() => router.replace(`${pathname}?tab=${tab.key}`)} className={`px-4 py-2.5 text-sm font-medium whitespace-nowrap border-b-2 transition-colors ${ - activeTab === tab.key - ? 'border-blue-600 text-blue-600' - : 'border-transparent text-gray-500 hover:text-gray-700 hover:border-divider' - }`} + activeTab === tab.key + ? 'border-accent text-accent-700' + : 'border-transparent text-gray-500 hover:text-gray-700 hover:border-divider' + }`} > {tab.label} diff --git a/components/dashboard/risk-flags-panel.tsx b/components/dashboard/risk-flags-panel.tsx index f5de2ec..2e5a250 100644 --- a/components/dashboard/risk-flags-panel.tsx +++ b/components/dashboard/risk-flags-panel.tsx @@ -51,7 +51,7 @@ export function RiskFlagsPanel() { diff --git a/components/dashboard/stat-card.tsx b/components/dashboard/stat-card.tsx index e9abdd7..3c582c1 100644 --- a/components/dashboard/stat-card.tsx +++ b/components/dashboard/stat-card.tsx @@ -7,8 +7,8 @@ interface Props { const ACCENT = { default: 'border-gray-200', - green: 'border-green-400', - yellow: 'border-yellow-400', + green: 'border-divider', + yellow: 'border-accent-300', red: 'border-red-400', } diff --git a/components/incidents/closure-panel.tsx b/components/incidents/closure-panel.tsx index d210c47..b55d147 100644 --- a/components/incidents/closure-panel.tsx +++ b/components/incidents/closure-panel.tsx @@ -78,7 +78,7 @@ export function ClosurePanel({ incidentId, status, canClose, canAddAddenda }: Pr diff --git a/components/incidents/file-upload.tsx b/components/incidents/file-upload.tsx index 933934c..3f8be2e 100644 --- a/components/incidents/file-upload.tsx +++ b/components/incidents/file-upload.tsx @@ -58,8 +58,8 @@ export function FileUpload({ onFilesChange, disabled = false }: Props) {
inputRef.current?.click()} onDragOver={e => { e.preventDefault(); setDragging(true) }} onDragLeave={() => setDragging(false)} diff --git a/components/incidents/incident-filters.tsx b/components/incidents/incident-filters.tsx index 5bfee6c..16e5dd4 100644 --- a/components/incidents/incident-filters.tsx +++ b/components/incidents/incident-filters.tsx @@ -77,20 +77,20 @@ function FiltersInner({ sites, trucks }: FiltersProps) { placeholder="Search reference or description..." value={search} onChange={e => handleSearch(e.target.value)} - className="w-full pl-8 pr-3 py-1.5 text-sm border border-divider focus:outline-none focus:ring-2 focus:ring-blue-500" + className="w-full pl-8 pr-3 py-1.5 text-sm border border-divider focus:outline-none focus:ring-2 focus:ring-accent" />
@@ -98,7 +98,7 @@ function FiltersInner({ sites, trucks }: FiltersProps) { updateParam('truck_id', e.target.value)} - className="text-sm border border-divider px-2 py-1.5 focus:outline-none focus:ring-2 focus:ring-blue-500 bg-surface" + className="text-sm border border-divider px-2 py-1.5 focus:outline-none focus:ring-2 focus:ring-accent bg-surface" > {trucks.map(tk => )} diff --git a/components/incidents/incident-header.tsx b/components/incidents/incident-header.tsx index 94c39ef..c4ae8d4 100644 --- a/components/incidents/incident-header.tsx +++ b/components/incidents/incident-header.tsx @@ -43,7 +43,7 @@ export function IncidentHeader({ {canTriage && ( Triage @@ -51,7 +51,7 @@ export function IncidentHeader({ {canInvestigate && ( Investigate @@ -59,7 +59,7 @@ export function IncidentHeader({ {canAddCapa && ( Add CAPA diff --git a/components/incidents/incident-list.tsx b/components/incidents/incident-list.tsx index 3ec3447..7e4dd69 100644 --- a/components/incidents/incident-list.tsx +++ b/components/incidents/incident-list.tsx @@ -60,12 +60,12 @@ export function IncidentList({ incidents, basePath }: Props) { setSearch(e.target.value)} /> setComplete(e.target.checked)} - className="border-divider text-blue-600" /> + className="border-divider text-accent-700" /> Mark investigation complete (transitions incident to CAPA Pending) )} @@ -301,7 +301,7 @@ export function InvestigationForm({ incidentId, existingInvestigationId }: Props {error &&

{error}

} diff --git a/components/incidents/investigation-panel.tsx b/components/incidents/investigation-panel.tsx index 8138534..58dfae4 100644 --- a/components/incidents/investigation-panel.tsx +++ b/components/incidents/investigation-panel.tsx @@ -40,11 +40,11 @@ export function InvestigationPanel({ investigation: inv }: Props) {

Investigation

{METHOD_LABELS[inv.method] ?? inv.method} - + {inv.completed_at ? 'Completed' : 'In Progress'}
@@ -67,7 +67,7 @@ export function InvestigationPanel({ investigation: inv }: Props) {
    {inv.five_why_steps.map((step, i) => (
  1. - + {i + 1}
    diff --git a/components/incidents/offline-sync.tsx b/components/incidents/offline-sync.tsx index b357945..9f915a2 100644 --- a/components/incidents/offline-sync.tsx +++ b/components/incidents/offline-sync.tsx @@ -56,15 +56,15 @@ export function OfflineSync() { if (pendingCount === 0) return null return ( -
    - +
    + {pendingCount} report{pendingCount > 1 ? 's' : ''} saved offline diff --git a/components/incidents/pagination.tsx b/components/incidents/pagination.tsx index 011ed9d..4928d18 100644 --- a/components/incidents/pagination.tsx +++ b/components/incidents/pagination.tsx @@ -15,7 +15,7 @@ export function Pagination({ page, pageSize, total, href }: Props) { disabled ? ( {label} ) : ( - + {label} ) diff --git a/components/incidents/report-form.tsx b/components/incidents/report-form.tsx index ef95341..7331d0e 100644 --- a/components/incidents/report-form.tsx +++ b/components/incidents/report-form.tsx @@ -73,7 +73,7 @@ export function ReportForm({ zoneToken, trucks, initialTruckId }: Props) { value={(typeDetails[key] as string) ?? ''} onChange={e => setDetail(key, e.target.value)} placeholder={placeholder} - className="w-full border border-divider px-3 py-2.5 text-sm focus:outline-none focus:ring-2 focus:ring-blue-500" + className="w-full border border-divider px-3 py-2.5 text-sm focus:outline-none focus:ring-2 focus:ring-accent" />
    ) @@ -82,7 +82,7 @@ export function ReportForm({ zoneToken, trucks, initialTruckId }: Props) {
- + {c.description}