2026-05-24 19:51:29 +00:00
|
|
|
@tailwind base;
|
|
|
|
|
@tailwind components;
|
|
|
|
|
@tailwind utilities;
|
|
|
|
|
|
refactor(ui): rebrand app, fix supplier naming
- rename `supplier` field to `suppliers` in OrderItem interface and PocketBase expand queries
- complete visual rebrand to warm cream (#f2f1ed) and dark brown (#26251e) color palette with custom CSS variables
- add accessibility improvements: skip-to-main content link, focus-visible styles, reduced motion support, and proper ARIA labels
- update all component styling to match new theme, including offline indicator, install prompt, login page, modals, map, bottom nav and global CSS
- standardize status colors: use green for success, red for errors, retain orange (#f54e00) as primary accent CTAs
2026-07-05 20:32:20 +00:00
|
|
|
/* =============================================================
|
|
|
|
|
Cursor brand bindings — warm cream + warm brown + orange accent
|
|
|
|
|
Overrides Tailwind's default orange scale so every `bg-orange-*`
|
|
|
|
|
`text-orange-*` `border-orange-*` resolves to Cursor's tokens.
|
|
|
|
|
============================================================= */
|
2026-05-24 19:51:29 +00:00
|
|
|
:root {
|
refactor(ui): rebrand app, fix supplier naming
- rename `supplier` field to `suppliers` in OrderItem interface and PocketBase expand queries
- complete visual rebrand to warm cream (#f2f1ed) and dark brown (#26251e) color palette with custom CSS variables
- add accessibility improvements: skip-to-main content link, focus-visible styles, reduced motion support, and proper ARIA labels
- update all component styling to match new theme, including offline indicator, install prompt, login page, modals, map, bottom nav and global CSS
- standardize status colors: use green for success, red for errors, retain orange (#f54e00) as primary accent CTAs
2026-07-05 20:32:20 +00:00
|
|
|
--foreground-rgb: 38, 37, 30; /* Cursor Dark #26251e */
|
|
|
|
|
--background-rgb: 242, 241, 237; /* Cursor Cream #f2f1ed */
|
|
|
|
|
--primary: 245, 78, 0; /* Cursor Orange #f54e00 */
|
|
|
|
|
--primary-light: 255, 122, 41; /* Cursor Orange tinted */
|
|
|
|
|
--success: 31, 138, 101; /* #1f8a65 */
|
|
|
|
|
--warning: 234, 179, 8; /* #eab308 */
|
|
|
|
|
--danger: 207, 45, 86; /* #cf2d56 */
|
|
|
|
|
--info: 159, 187, 224; /* #9fbbe0 */
|
Add PWA support and UI redesign
Add full PWA support (icons, manifest, service worker, pwa lib and bridge) and introduce install/offline UI. Generate app icons via a new scripts/generate-icons.js and include multiple icon sizes in public/icons; update manifest and layout head meta/preconnect. Revamp global styles (globals.css) with new utilities, animations, spacing for bottom nav, card shadows, skeletons and accessibility tweaks. Polish major screens (login, collections, map, settings) with improved headers, loading states, touch/press feedback, and layout adjustments; add new components (InstallPrompt, OfflineIndicator, PWABridge) and update various components to match new visual/UX patterns. Update Dockerfile to generate icons and use Next.js static export output (/out) for nginx, and bump package setup to support icon generation.
2026-05-26 22:34:50 +00:00
|
|
|
--nav-height: 4rem;
|
refactor(ui): rebrand app, fix supplier naming
- rename `supplier` field to `suppliers` in OrderItem interface and PocketBase expand queries
- complete visual rebrand to warm cream (#f2f1ed) and dark brown (#26251e) color palette with custom CSS variables
- add accessibility improvements: skip-to-main content link, focus-visible styles, reduced motion support, and proper ARIA labels
- update all component styling to match new theme, including offline indicator, install prompt, login page, modals, map, bottom nav and global CSS
- standardize status colors: use green for success, red for errors, retain orange (#f54e00) as primary accent CTAs
2026-07-05 20:32:20 +00:00
|
|
|
|
|
|
|
|
/* Cursor surface scale (from DESIGN.md §Color Palette) */
|
|
|
|
|
--surface-100: #f7f7f4;
|
|
|
|
|
--surface-200: #f2f1ed; /* page bg */
|
|
|
|
|
--surface-300: #ebeae5; /* button default */
|
|
|
|
|
--surface-400: #e6e5e0; /* card */
|
|
|
|
|
--surface-500: #e1e0db;
|
|
|
|
|
|
|
|
|
|
/* Tailwind orange-50..900 → Cursor warm scale.
|
|
|
|
|
This is the global re-skin: every `bg-orange-600` etc. below
|
|
|
|
|
resolves to a warm cream/brown, with `--primary` reserved for
|
|
|
|
|
the single orange accent role (CTAs, active filter, link). */
|
|
|
|
|
--orange-50: #f7f7f4; /* surface 100 */
|
|
|
|
|
--orange-100: #ebeae5; /* surface 300 */
|
|
|
|
|
--orange-200: #e6e5e0; /* surface 400 */
|
|
|
|
|
--orange-300: #d6d4ce; /* cream darken */
|
|
|
|
|
--orange-400: #b8b5ac; /* muted warm */
|
|
|
|
|
--orange-500: #6b6760; /* secondary text */
|
|
|
|
|
--orange-600: #26251e; /* Cursor Dark (identity surface) */
|
|
|
|
|
--orange-700: #1a1914; /* hover over dark */
|
|
|
|
|
--orange-800: #1a1914;
|
|
|
|
|
--orange-900: #0f0e0a;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Red and green are reserved for status (problem / success). Keep
|
|
|
|
|
them at their Tailwind defaults — we just darken the lightest
|
|
|
|
|
stops so the bg-* uses don't clash with the cream canvas. */
|
|
|
|
|
:root {
|
|
|
|
|
--red-50: #fbeaef;
|
|
|
|
|
--red-100: #f3c4d2;
|
|
|
|
|
--red-500: #cf2d56; /* matches --danger */
|
|
|
|
|
--red-600: #b3224a;
|
|
|
|
|
--red-700: #8a1b3a;
|
|
|
|
|
--green-50: #e6f1ec;
|
|
|
|
|
--green-100: #c2dfd0;
|
|
|
|
|
--green-500: #1f8a65; /* matches --success */
|
|
|
|
|
--green-600: #18714f;
|
|
|
|
|
--green-700: #125a3e;
|
|
|
|
|
--amber-50: #fcf3d8;
|
|
|
|
|
--amber-100: #f6e3a4;
|
|
|
|
|
--amber-500: #d49103;
|
|
|
|
|
--amber-700: #8a5a02;
|
|
|
|
|
--violet-50: #ece8f3;
|
|
|
|
|
--violet-100: #d4cae3;
|
|
|
|
|
--violet-500: #6c5a99;
|
|
|
|
|
--violet-700: #4a3d6b;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Re-skin greys to warm so text reads as part of the same family
|
|
|
|
|
as the cream surface. */
|
|
|
|
|
:root {
|
|
|
|
|
--gray-50: #f7f7f4;
|
|
|
|
|
--gray-100: #ebeae5;
|
|
|
|
|
--gray-200: #e6e5e0;
|
|
|
|
|
--gray-300: #d6d4ce;
|
|
|
|
|
--gray-400: #b8b5ac;
|
|
|
|
|
--gray-500: #8a857b;
|
|
|
|
|
--gray-600: #6b6760;
|
|
|
|
|
--gray-700: #4a4742;
|
|
|
|
|
--gray-800: #2e2c28;
|
|
|
|
|
--gray-900: #26251e;
|
2026-05-24 19:51:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
html,
|
|
|
|
|
body {
|
|
|
|
|
max-width: 100vw;
|
|
|
|
|
overflow-x: hidden;
|
|
|
|
|
height: 100%;
|
|
|
|
|
-webkit-tap-highlight-color: transparent;
|
Add PWA support and UI redesign
Add full PWA support (icons, manifest, service worker, pwa lib and bridge) and introduce install/offline UI. Generate app icons via a new scripts/generate-icons.js and include multiple icon sizes in public/icons; update manifest and layout head meta/preconnect. Revamp global styles (globals.css) with new utilities, animations, spacing for bottom nav, card shadows, skeletons and accessibility tweaks. Polish major screens (login, collections, map, settings) with improved headers, loading states, touch/press feedback, and layout adjustments; add new components (InstallPrompt, OfflineIndicator, PWABridge) and update various components to match new visual/UX patterns. Update Dockerfile to generate icons and use Next.js static export output (/out) for nginx, and bump package setup to support icon generation.
2026-05-26 22:34:50 +00:00
|
|
|
-webkit-font-smoothing: antialiased;
|
|
|
|
|
-moz-osx-font-smoothing: grayscale;
|
2026-05-24 19:51:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
body {
|
|
|
|
|
color: rgb(var(--foreground-rgb));
|
|
|
|
|
background: rgb(var(--background-rgb));
|
Add PWA support and UI redesign
Add full PWA support (icons, manifest, service worker, pwa lib and bridge) and introduce install/offline UI. Generate app icons via a new scripts/generate-icons.js and include multiple icon sizes in public/icons; update manifest and layout head meta/preconnect. Revamp global styles (globals.css) with new utilities, animations, spacing for bottom nav, card shadows, skeletons and accessibility tweaks. Polish major screens (login, collections, map, settings) with improved headers, loading states, touch/press feedback, and layout adjustments; add new components (InstallPrompt, OfflineIndicator, PWABridge) and update various components to match new visual/UX patterns. Update Dockerfile to generate icons and use Next.js static export output (/out) for nginx, and bump package setup to support icon generation.
2026-05-26 22:34:50 +00:00
|
|
|
font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
|
2026-05-24 19:51:29 +00:00
|
|
|
overscroll-behavior-y: none;
|
|
|
|
|
-webkit-user-select: none;
|
|
|
|
|
user-select: none;
|
Add PWA support and UI redesign
Add full PWA support (icons, manifest, service worker, pwa lib and bridge) and introduce install/offline UI. Generate app icons via a new scripts/generate-icons.js and include multiple icon sizes in public/icons; update manifest and layout head meta/preconnect. Revamp global styles (globals.css) with new utilities, animations, spacing for bottom nav, card shadows, skeletons and accessibility tweaks. Polish major screens (login, collections, map, settings) with improved headers, loading states, touch/press feedback, and layout adjustments; add new components (InstallPrompt, OfflineIndicator, PWABridge) and update various components to match new visual/UX patterns. Update Dockerfile to generate icons and use Next.js static export output (/out) for nginx, and bump package setup to support icon generation.
2026-05-26 22:34:50 +00:00
|
|
|
/* Smooth page transitions */
|
|
|
|
|
scroll-behavior: smooth;
|
2026-05-24 19:51:29 +00:00
|
|
|
}
|
|
|
|
|
|
Add PWA support and UI redesign
Add full PWA support (icons, manifest, service worker, pwa lib and bridge) and introduce install/offline UI. Generate app icons via a new scripts/generate-icons.js and include multiple icon sizes in public/icons; update manifest and layout head meta/preconnect. Revamp global styles (globals.css) with new utilities, animations, spacing for bottom nav, card shadows, skeletons and accessibility tweaks. Polish major screens (login, collections, map, settings) with improved headers, loading states, touch/press feedback, and layout adjustments; add new components (InstallPrompt, OfflineIndicator, PWABridge) and update various components to match new visual/UX patterns. Update Dockerfile to generate icons and use Next.js static export output (/out) for nginx, and bump package setup to support icon generation.
2026-05-26 22:34:50 +00:00
|
|
|
/* Mobile viewport height fix (100vh is wrong on mobile) */
|
2026-05-24 19:51:29 +00:00
|
|
|
@supports (-webkit-touch-callout: none) {
|
|
|
|
|
.h-screen {
|
|
|
|
|
height: -webkit-fill-available;
|
|
|
|
|
}
|
|
|
|
|
.min-h-screen {
|
|
|
|
|
min-height: -webkit-fill-available;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Safe area insets for notched phones */
|
|
|
|
|
.safe-top {
|
|
|
|
|
padding-top: env(safe-area-inset-top);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.safe-bottom {
|
|
|
|
|
padding-bottom: env(safe-area-inset-bottom);
|
|
|
|
|
}
|
|
|
|
|
|
Add PWA support and UI redesign
Add full PWA support (icons, manifest, service worker, pwa lib and bridge) and introduce install/offline UI. Generate app icons via a new scripts/generate-icons.js and include multiple icon sizes in public/icons; update manifest and layout head meta/preconnect. Revamp global styles (globals.css) with new utilities, animations, spacing for bottom nav, card shadows, skeletons and accessibility tweaks. Polish major screens (login, collections, map, settings) with improved headers, loading states, touch/press feedback, and layout adjustments; add new components (InstallPrompt, OfflineIndicator, PWABridge) and update various components to match new visual/UX patterns. Update Dockerfile to generate icons and use Next.js static export output (/out) for nginx, and bump package setup to support icon generation.
2026-05-26 22:34:50 +00:00
|
|
|
/* Content must account for bottom nav */
|
|
|
|
|
.pb-nav {
|
|
|
|
|
padding-bottom: calc(var(--nav-height) + env(safe-area-inset-bottom, 0px) + 1rem);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Hide scrollbar but keep scroll functionality */
|
2026-05-24 19:51:29 +00:00
|
|
|
.no-scrollbar::-webkit-scrollbar {
|
|
|
|
|
display: none;
|
|
|
|
|
}
|
|
|
|
|
.no-scrollbar {
|
|
|
|
|
-ms-overflow-style: none;
|
|
|
|
|
scrollbar-width: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Touch action optimization */
|
|
|
|
|
.touch-manipulation {
|
|
|
|
|
touch-action: manipulation;
|
|
|
|
|
}
|
|
|
|
|
|
Add PWA support and UI redesign
Add full PWA support (icons, manifest, service worker, pwa lib and bridge) and introduce install/offline UI. Generate app icons via a new scripts/generate-icons.js and include multiple icon sizes in public/icons; update manifest and layout head meta/preconnect. Revamp global styles (globals.css) with new utilities, animations, spacing for bottom nav, card shadows, skeletons and accessibility tweaks. Polish major screens (login, collections, map, settings) with improved headers, loading states, touch/press feedback, and layout adjustments; add new components (InstallPrompt, OfflineIndicator, PWABridge) and update various components to match new visual/UX patterns. Update Dockerfile to generate icons and use Next.js static export output (/out) for nginx, and bump package setup to support icon generation.
2026-05-26 22:34:50 +00:00
|
|
|
/* Prevent text selection on interactive elements */
|
|
|
|
|
button, a, nav {
|
2026-05-24 19:51:29 +00:00
|
|
|
-webkit-user-select: none;
|
|
|
|
|
user-select: none;
|
|
|
|
|
}
|
|
|
|
|
|
Add PWA support and UI redesign
Add full PWA support (icons, manifest, service worker, pwa lib and bridge) and introduce install/offline UI. Generate app icons via a new scripts/generate-icons.js and include multiple icon sizes in public/icons; update manifest and layout head meta/preconnect. Revamp global styles (globals.css) with new utilities, animations, spacing for bottom nav, card shadows, skeletons and accessibility tweaks. Polish major screens (login, collections, map, settings) with improved headers, loading states, touch/press feedback, and layout adjustments; add new components (InstallPrompt, OfflineIndicator, PWABridge) and update various components to match new visual/UX patterns. Update Dockerfile to generate icons and use Next.js static export output (/out) for nginx, and bump package setup to support icon generation.
2026-05-26 22:34:50 +00:00
|
|
|
/* Allow text selection in content areas */
|
|
|
|
|
.selectable {
|
|
|
|
|
-webkit-user-select: text;
|
|
|
|
|
user-select: text;
|
|
|
|
|
}
|
|
|
|
|
|
2026-05-24 19:51:29 +00:00
|
|
|
/* Leaflet container fix */
|
|
|
|
|
.leaflet-container {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100%;
|
|
|
|
|
z-index: 1;
|
Add PWA support and UI redesign
Add full PWA support (icons, manifest, service worker, pwa lib and bridge) and introduce install/offline UI. Generate app icons via a new scripts/generate-icons.js and include multiple icon sizes in public/icons; update manifest and layout head meta/preconnect. Revamp global styles (globals.css) with new utilities, animations, spacing for bottom nav, card shadows, skeletons and accessibility tweaks. Polish major screens (login, collections, map, settings) with improved headers, loading states, touch/press feedback, and layout adjustments; add new components (InstallPrompt, OfflineIndicator, PWABridge) and update various components to match new visual/UX patterns. Update Dockerfile to generate icons and use Next.js static export output (/out) for nginx, and bump package setup to support icon generation.
2026-05-26 22:34:50 +00:00
|
|
|
font-family: inherit;
|
2026-05-24 19:51:29 +00:00
|
|
|
}
|
|
|
|
|
|
Add PWA support and UI redesign
Add full PWA support (icons, manifest, service worker, pwa lib and bridge) and introduce install/offline UI. Generate app icons via a new scripts/generate-icons.js and include multiple icon sizes in public/icons; update manifest and layout head meta/preconnect. Revamp global styles (globals.css) with new utilities, animations, spacing for bottom nav, card shadows, skeletons and accessibility tweaks. Polish major screens (login, collections, map, settings) with improved headers, loading states, touch/press feedback, and layout adjustments; add new components (InstallPrompt, OfflineIndicator, PWABridge) and update various components to match new visual/UX patterns. Update Dockerfile to generate icons and use Next.js static export output (/out) for nginx, and bump package setup to support icon generation.
2026-05-26 22:34:50 +00:00
|
|
|
/* ========================================
|
|
|
|
|
Animations
|
|
|
|
|
======================================== */
|
|
|
|
|
|
2026-05-24 19:51:29 +00:00
|
|
|
@keyframes fadeIn {
|
Add PWA support and UI redesign
Add full PWA support (icons, manifest, service worker, pwa lib and bridge) and introduce install/offline UI. Generate app icons via a new scripts/generate-icons.js and include multiple icon sizes in public/icons; update manifest and layout head meta/preconnect. Revamp global styles (globals.css) with new utilities, animations, spacing for bottom nav, card shadows, skeletons and accessibility tweaks. Polish major screens (login, collections, map, settings) with improved headers, loading states, touch/press feedback, and layout adjustments; add new components (InstallPrompt, OfflineIndicator, PWABridge) and update various components to match new visual/UX patterns. Update Dockerfile to generate icons and use Next.js static export output (/out) for nginx, and bump package setup to support icon generation.
2026-05-26 22:34:50 +00:00
|
|
|
from {
|
|
|
|
|
opacity: 0;
|
|
|
|
|
transform: translateY(8px);
|
|
|
|
|
}
|
|
|
|
|
to {
|
|
|
|
|
opacity: 1;
|
|
|
|
|
transform: translateY(0);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@keyframes slideUp {
|
|
|
|
|
from {
|
|
|
|
|
transform: translateY(100%);
|
|
|
|
|
opacity: 0;
|
|
|
|
|
}
|
|
|
|
|
to {
|
|
|
|
|
transform: translateY(0);
|
|
|
|
|
opacity: 1;
|
|
|
|
|
}
|
2026-05-24 19:51:29 +00:00
|
|
|
}
|
|
|
|
|
|
Add PWA support and UI redesign
Add full PWA support (icons, manifest, service worker, pwa lib and bridge) and introduce install/offline UI. Generate app icons via a new scripts/generate-icons.js and include multiple icon sizes in public/icons; update manifest and layout head meta/preconnect. Revamp global styles (globals.css) with new utilities, animations, spacing for bottom nav, card shadows, skeletons and accessibility tweaks. Polish major screens (login, collections, map, settings) with improved headers, loading states, touch/press feedback, and layout adjustments; add new components (InstallPrompt, OfflineIndicator, PWABridge) and update various components to match new visual/UX patterns. Update Dockerfile to generate icons and use Next.js static export output (/out) for nginx, and bump package setup to support icon generation.
2026-05-26 22:34:50 +00:00
|
|
|
@keyframes slideDown {
|
|
|
|
|
from {
|
|
|
|
|
transform: translateY(-100%);
|
|
|
|
|
opacity: 0;
|
|
|
|
|
}
|
|
|
|
|
to {
|
|
|
|
|
transform: translateY(0);
|
|
|
|
|
opacity: 1;
|
|
|
|
|
}
|
2026-05-24 19:51:29 +00:00
|
|
|
}
|
|
|
|
|
|
Add PWA support and UI redesign
Add full PWA support (icons, manifest, service worker, pwa lib and bridge) and introduce install/offline UI. Generate app icons via a new scripts/generate-icons.js and include multiple icon sizes in public/icons; update manifest and layout head meta/preconnect. Revamp global styles (globals.css) with new utilities, animations, spacing for bottom nav, card shadows, skeletons and accessibility tweaks. Polish major screens (login, collections, map, settings) with improved headers, loading states, touch/press feedback, and layout adjustments; add new components (InstallPrompt, OfflineIndicator, PWABridge) and update various components to match new visual/UX patterns. Update Dockerfile to generate icons and use Next.js static export output (/out) for nginx, and bump package setup to support icon generation.
2026-05-26 22:34:50 +00:00
|
|
|
@keyframes scaleIn {
|
|
|
|
|
from {
|
|
|
|
|
transform: scale(0.95);
|
|
|
|
|
opacity: 0;
|
|
|
|
|
}
|
|
|
|
|
to {
|
|
|
|
|
transform: scale(1);
|
|
|
|
|
opacity: 1;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@keyframes shimmer {
|
|
|
|
|
0% { background-position: -200% 0; }
|
|
|
|
|
100% { background-position: 200% 0; }
|
2026-05-24 19:51:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.animate-fade-in {
|
|
|
|
|
animation: fadeIn 0.3s ease-out forwards;
|
|
|
|
|
}
|
|
|
|
|
|
Add PWA support and UI redesign
Add full PWA support (icons, manifest, service worker, pwa lib and bridge) and introduce install/offline UI. Generate app icons via a new scripts/generate-icons.js and include multiple icon sizes in public/icons; update manifest and layout head meta/preconnect. Revamp global styles (globals.css) with new utilities, animations, spacing for bottom nav, card shadows, skeletons and accessibility tweaks. Polish major screens (login, collections, map, settings) with improved headers, loading states, touch/press feedback, and layout adjustments; add new components (InstallPrompt, OfflineIndicator, PWABridge) and update various components to match new visual/UX patterns. Update Dockerfile to generate icons and use Next.js static export output (/out) for nginx, and bump package setup to support icon generation.
2026-05-26 22:34:50 +00:00
|
|
|
.animate-slide-up {
|
|
|
|
|
animation: slideUp 0.35s cubic-bezier(0.32, 0.72, 0, 1) forwards;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.animate-slide-down {
|
|
|
|
|
animation: slideDown 0.3s ease-out forwards;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.animate-scale-in {
|
|
|
|
|
animation: scaleIn 0.2s ease-out forwards;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Stagger animation delay helper */
|
|
|
|
|
.stagger-1 { animation-delay: 0.05s; }
|
|
|
|
|
.stagger-2 { animation-delay: 0.1s; }
|
|
|
|
|
.stagger-3 { animation-delay: 0.15s; }
|
|
|
|
|
.stagger-4 { animation-delay: 0.2s; }
|
|
|
|
|
.stagger-5 { animation-delay: 0.25s; }
|
|
|
|
|
|
|
|
|
|
/* ========================================
|
|
|
|
|
Card Styles
|
|
|
|
|
======================================== */
|
|
|
|
|
|
|
|
|
|
.card-shadow {
|
|
|
|
|
box-shadow:
|
|
|
|
|
0 1px 2px rgba(0, 0, 0, 0.06),
|
|
|
|
|
0 1px 3px rgba(0, 0, 0, 0.1);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.card-shadow-md {
|
|
|
|
|
box-shadow:
|
|
|
|
|
0 4px 6px -1px rgba(0, 0, 0, 0.1),
|
|
|
|
|
0 2px 4px -2px rgba(0, 0, 0, 0.1);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.card-shadow-lg {
|
|
|
|
|
box-shadow:
|
|
|
|
|
0 10px 15px -3px rgba(0, 0, 0, 0.1),
|
|
|
|
|
0 4px 6px -4px rgba(0, 0, 0, 0.1);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Pressed/active state for cards */
|
|
|
|
|
.card-press {
|
|
|
|
|
transition: transform 0.15s ease, box-shadow 0.15s ease;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.card-press:active {
|
|
|
|
|
transform: scale(0.985);
|
|
|
|
|
box-shadow:
|
|
|
|
|
0 1px 1px rgba(0, 0, 0, 0.06),
|
|
|
|
|
0 1px 2px rgba(0, 0, 0, 0.08);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* ========================================
|
|
|
|
|
Status Badges
|
|
|
|
|
======================================== */
|
|
|
|
|
|
2026-05-24 19:51:29 +00:00
|
|
|
.status-pending { @apply bg-gray-100 text-gray-700 border-gray-300; }
|
|
|
|
|
.status-assigned { @apply bg-blue-100 text-blue-700 border-blue-300; }
|
|
|
|
|
.status-collected { @apply bg-green-100 text-green-700 border-green-300; }
|
|
|
|
|
.status-problem { @apply bg-red-100 text-red-700 border-red-300; }
|
|
|
|
|
|
Add PWA support and UI redesign
Add full PWA support (icons, manifest, service worker, pwa lib and bridge) and introduce install/offline UI. Generate app icons via a new scripts/generate-icons.js and include multiple icon sizes in public/icons; update manifest and layout head meta/preconnect. Revamp global styles (globals.css) with new utilities, animations, spacing for bottom nav, card shadows, skeletons and accessibility tweaks. Polish major screens (login, collections, map, settings) with improved headers, loading states, touch/press feedback, and layout adjustments; add new components (InstallPrompt, OfflineIndicator, PWABridge) and update various components to match new visual/UX patterns. Update Dockerfile to generate icons and use Next.js static export output (/out) for nginx, and bump package setup to support icon generation.
2026-05-26 22:34:50 +00:00
|
|
|
/* ========================================
|
|
|
|
|
Loading Skeleton
|
|
|
|
|
======================================== */
|
|
|
|
|
|
|
|
|
|
.skeleton {
|
|
|
|
|
background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
|
|
|
|
|
background-size: 200% 100%;
|
|
|
|
|
animation: shimmer 1.5s infinite;
|
2026-05-24 19:51:29 +00:00
|
|
|
}
|
|
|
|
|
|
Add PWA support and UI redesign
Add full PWA support (icons, manifest, service worker, pwa lib and bridge) and introduce install/offline UI. Generate app icons via a new scripts/generate-icons.js and include multiple icon sizes in public/icons; update manifest and layout head meta/preconnect. Revamp global styles (globals.css) with new utilities, animations, spacing for bottom nav, card shadows, skeletons and accessibility tweaks. Polish major screens (login, collections, map, settings) with improved headers, loading states, touch/press feedback, and layout adjustments; add new components (InstallPrompt, OfflineIndicator, PWABridge) and update various components to match new visual/UX patterns. Update Dockerfile to generate icons and use Next.js static export output (/out) for nginx, and bump package setup to support icon generation.
2026-05-26 22:34:50 +00:00
|
|
|
/* ========================================
|
|
|
|
|
Modal Overlay
|
|
|
|
|
======================================== */
|
|
|
|
|
|
|
|
|
|
.modal-overlay {
|
|
|
|
|
backdrop-filter: blur(4px);
|
|
|
|
|
-webkit-backdrop-filter: blur(4px);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* ========================================
|
|
|
|
|
Input Focus Rings
|
|
|
|
|
======================================== */
|
|
|
|
|
|
|
|
|
|
input:focus,
|
|
|
|
|
textarea:focus,
|
|
|
|
|
select:focus {
|
|
|
|
|
outline: none;
|
refactor(ui): rebrand app, fix supplier naming
- rename `supplier` field to `suppliers` in OrderItem interface and PocketBase expand queries
- complete visual rebrand to warm cream (#f2f1ed) and dark brown (#26251e) color palette with custom CSS variables
- add accessibility improvements: skip-to-main content link, focus-visible styles, reduced motion support, and proper ARIA labels
- update all component styling to match new theme, including offline indicator, install prompt, login page, modals, map, bottom nav and global CSS
- standardize status colors: use green for success, red for errors, retain orange (#f54e00) as primary accent CTAs
2026-07-05 20:32:20 +00:00
|
|
|
box-shadow: 0 0 0 2px rgba(245, 78, 0, 0.3);
|
Add PWA support and UI redesign
Add full PWA support (icons, manifest, service worker, pwa lib and bridge) and introduce install/offline UI. Generate app icons via a new scripts/generate-icons.js and include multiple icon sizes in public/icons; update manifest and layout head meta/preconnect. Revamp global styles (globals.css) with new utilities, animations, spacing for bottom nav, card shadows, skeletons and accessibility tweaks. Polish major screens (login, collections, map, settings) with improved headers, loading states, touch/press feedback, and layout adjustments; add new components (InstallPrompt, OfflineIndicator, PWABridge) and update various components to match new visual/UX patterns. Update Dockerfile to generate icons and use Next.js static export output (/out) for nginx, and bump package setup to support icon generation.
2026-05-26 22:34:50 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* ========================================
|
|
|
|
|
Bottom Sheet (iOS-style modal)
|
|
|
|
|
======================================== */
|
|
|
|
|
|
|
|
|
|
.bottom-sheet {
|
|
|
|
|
border-radius: 1rem 1rem 0 0;
|
|
|
|
|
box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@media (min-width: 640px) {
|
|
|
|
|
.bottom-sheet {
|
|
|
|
|
border-radius: 1rem;
|
|
|
|
|
}
|
2026-05-24 19:51:29 +00:00
|
|
|
}
|
|
|
|
|
|
Add PWA support and UI redesign
Add full PWA support (icons, manifest, service worker, pwa lib and bridge) and introduce install/offline UI. Generate app icons via a new scripts/generate-icons.js and include multiple icon sizes in public/icons; update manifest and layout head meta/preconnect. Revamp global styles (globals.css) with new utilities, animations, spacing for bottom nav, card shadows, skeletons and accessibility tweaks. Polish major screens (login, collections, map, settings) with improved headers, loading states, touch/press feedback, and layout adjustments; add new components (InstallPrompt, OfflineIndicator, PWABridge) and update various components to match new visual/UX patterns. Update Dockerfile to generate icons and use Next.js static export output (/out) for nginx, and bump package setup to support icon generation.
2026-05-26 22:34:50 +00:00
|
|
|
/* ========================================
|
|
|
|
|
Custom scrollbar (for when needed)
|
|
|
|
|
======================================== */
|
|
|
|
|
|
|
|
|
|
.custom-scrollbar::-webkit-scrollbar {
|
|
|
|
|
width: 4px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.custom-scrollbar::-webkit-scrollbar-track {
|
|
|
|
|
background: transparent;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.custom-scrollbar::-webkit-scrollbar-thumb {
|
|
|
|
|
background: rgba(0, 0, 0, 0.15);
|
|
|
|
|
border-radius: 2px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
|
|
|
|
|
background: rgba(0, 0, 0, 0.25);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* ========================================
|
|
|
|
|
Pull-to-refresh visual feedback
|
|
|
|
|
======================================== */
|
|
|
|
|
|
2026-05-24 19:51:29 +00:00
|
|
|
.pull-indicator {
|
|
|
|
|
transition: transform 0.2s ease-out;
|
|
|
|
|
}
|
|
|
|
|
|
refactor(ui): rebrand app, fix supplier naming
- rename `supplier` field to `suppliers` in OrderItem interface and PocketBase expand queries
- complete visual rebrand to warm cream (#f2f1ed) and dark brown (#26251e) color palette with custom CSS variables
- add accessibility improvements: skip-to-main content link, focus-visible styles, reduced motion support, and proper ARIA labels
- update all component styling to match new theme, including offline indicator, install prompt, login page, modals, map, bottom nav and global CSS
- standardize status colors: use green for success, red for errors, retain orange (#f54e00) as primary accent CTAs
2026-07-05 20:32:20 +00:00
|
|
|
/* ========================================
|
|
|
|
|
Accessibility: keyboard focus + reduced motion
|
|
|
|
|
======================================== */
|
|
|
|
|
|
|
|
|
|
/* Visible keyboard focus across the whole app. Only paints for
|
|
|
|
|
keyboard users (`:focus-visible`), never on tap/click. */
|
|
|
|
|
*:focus {
|
|
|
|
|
outline: none;
|
|
|
|
|
}
|
|
|
|
|
*:focus-visible {
|
|
|
|
|
outline: 2px solid #f54e00;
|
|
|
|
|
outline-offset: 2px;
|
|
|
|
|
border-radius: 6px;
|
|
|
|
|
}
|
|
|
|
|
/* Pressable controls get the focus ring tighter to the control. */
|
|
|
|
|
button:focus-visible,
|
|
|
|
|
a:focus-visible,
|
|
|
|
|
[role="button"]:focus-visible {
|
|
|
|
|
outline-offset: 2px;
|
|
|
|
|
}
|
|
|
|
|
/* On dark surfaces (Cursor Dark #26251e) the orange ring is invisible;
|
|
|
|
|
use a white halo instead. */
|
|
|
|
|
.bg-orange-600:focus-visible,
|
|
|
|
|
button[class*="bg-[#26251e]"]:focus-visible,
|
|
|
|
|
button[class*="bg-gray-900"]:focus-visible,
|
|
|
|
|
header button:focus-visible,
|
|
|
|
|
header input:focus-visible {
|
|
|
|
|
outline-color: #ffffff;
|
|
|
|
|
box-shadow: 0 0 0 4px rgba(245, 78, 0, 0.35);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Respect users who opted out of motion. Keep opacity/state
|
|
|
|
|
transitions; strip translate/scale/rotate motion. */
|
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
|
|
|
*,
|
|
|
|
|
*::before,
|
|
|
|
|
*::after {
|
|
|
|
|
animation-duration: 0.01ms !important;
|
|
|
|
|
animation-iteration-count: 1 !important;
|
|
|
|
|
transition-duration: 0.01ms !important;
|
|
|
|
|
scroll-behavior: auto !important;
|
|
|
|
|
}
|
|
|
|
|
.skeleton {
|
|
|
|
|
animation: none;
|
|
|
|
|
background: #ececec;
|
|
|
|
|
}
|
|
|
|
|
.press-feedback:active,
|
|
|
|
|
.press-feedback-sm:active,
|
|
|
|
|
.card-press:active {
|
|
|
|
|
transform: none;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Screen-reader-only utility for visually hidden labels. */
|
|
|
|
|
.sr-only {
|
|
|
|
|
position: absolute;
|
|
|
|
|
width: 1px;
|
|
|
|
|
height: 1px;
|
|
|
|
|
padding: 0;
|
|
|
|
|
margin: -1px;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
clip: rect(0, 0, 0, 0);
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
border: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Live region for toasts: visible label is already present, this
|
|
|
|
|
keeps the polite announcer quiet for status updates. */
|
|
|
|
|
[role="status"] {
|
|
|
|
|
/* No visual change; just a hook for SR. */
|
|
|
|
|
}
|
|
|
|
|
|
Add PWA support and UI redesign
Add full PWA support (icons, manifest, service worker, pwa lib and bridge) and introduce install/offline UI. Generate app icons via a new scripts/generate-icons.js and include multiple icon sizes in public/icons; update manifest and layout head meta/preconnect. Revamp global styles (globals.css) with new utilities, animations, spacing for bottom nav, card shadows, skeletons and accessibility tweaks. Polish major screens (login, collections, map, settings) with improved headers, loading states, touch/press feedback, and layout adjustments; add new components (InstallPrompt, OfflineIndicator, PWABridge) and update various components to match new visual/UX patterns. Update Dockerfile to generate icons and use Next.js static export output (/out) for nginx, and bump package setup to support icon generation.
2026-05-26 22:34:50 +00:00
|
|
|
/* ========================================
|
|
|
|
|
Haptic-like press feedback
|
|
|
|
|
======================================== */
|
|
|
|
|
|
|
|
|
|
.press-feedback {
|
|
|
|
|
transition: transform 0.1s ease, opacity 0.1s ease;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.press-feedback:active {
|
|
|
|
|
transform: scale(0.96);
|
|
|
|
|
opacity: 0.9;
|
2026-05-24 19:51:29 +00:00
|
|
|
}
|
|
|
|
|
|
Add PWA support and UI redesign
Add full PWA support (icons, manifest, service worker, pwa lib and bridge) and introduce install/offline UI. Generate app icons via a new scripts/generate-icons.js and include multiple icon sizes in public/icons; update manifest and layout head meta/preconnect. Revamp global styles (globals.css) with new utilities, animations, spacing for bottom nav, card shadows, skeletons and accessibility tweaks. Polish major screens (login, collections, map, settings) with improved headers, loading states, touch/press feedback, and layout adjustments; add new components (InstallPrompt, OfflineIndicator, PWABridge) and update various components to match new visual/UX patterns. Update Dockerfile to generate icons and use Next.js static export output (/out) for nginx, and bump package setup to support icon generation.
2026-05-26 22:34:50 +00:00
|
|
|
.press-feedback-sm {
|
|
|
|
|
transition: transform 0.1s ease, opacity 0.1s ease;
|
2026-05-24 19:51:29 +00:00
|
|
|
}
|
Add PWA support and UI redesign
Add full PWA support (icons, manifest, service worker, pwa lib and bridge) and introduce install/offline UI. Generate app icons via a new scripts/generate-icons.js and include multiple icon sizes in public/icons; update manifest and layout head meta/preconnect. Revamp global styles (globals.css) with new utilities, animations, spacing for bottom nav, card shadows, skeletons and accessibility tweaks. Polish major screens (login, collections, map, settings) with improved headers, loading states, touch/press feedback, and layout adjustments; add new components (InstallPrompt, OfflineIndicator, PWABridge) and update various components to match new visual/UX patterns. Update Dockerfile to generate icons and use Next.js static export output (/out) for nginx, and bump package setup to support icon generation.
2026-05-26 22:34:50 +00:00
|
|
|
|
|
|
|
|
.press-feedback-sm:active {
|
|
|
|
|
transform: scale(0.98);
|
|
|
|
|
opacity: 0.9;
|
|
|
|
|
}
|