feat: major platform upgrade — AI extraction pipeline, responsive UI, admin chatbot enhancements
CRITICAL FIXES - Fix blank pages: useCallback declared after useEffect in all 5 pages - Fix showToast undefined everywhere (ToastContext exported addToast not showToast) - Fix admin doc upload always 422 (missing doc_key + doc_label form fields) - Fix audit log wrong field names (log.details -> log.detail, remove user_agent) - Fix SPA catch-all missing in main.py (direct URL access was 404) - Fix chatbot using broken nvidia free model -> llama-3.3-70b AI EXTRACTION PIPELINE - 3-stage pipeline: Stage1 native text (free) -> Stage2 Tesseract OCR (free CPU) -> Stage3 Qwen vision (paid) - Tesseract installed with eng+hin bilingual support, psm6, 2.5x DPI - Scanned PDF fallback via PyMuPDF page render - Blank template fallback: returns form_type/purpose/tax_year instead of empty - Improved prompt: extracts actual document field names, no predefined terms - Auto-poll UI: shows Processing spinner when extraction is running - backfill_extraction.py: re-process all docs, fixed empty-dict-as-None bug ADMIN DASHBOARD - Pending docs split into Pending Personal + Pending Business stat cards - User cards show typed badges: N personal / N business instead of generic N pending - Backend returns pending_personal, pending_business, pending_docs per user ADMIN USER DETAIL - Doc count chips in user info bar: personal / business / returns / total - Doc name bold 15px, date with calendar icon + TY chip, status as colored badges - Responsive layout: doc-review-layout CSS classes replace inline flex styles - Filing Timeline sidebar stacks above doc list on mobile - AI Summary: bold labels and values, blank template shows metadata CHATBOT ENHANCEMENTS - Ask anything free-text input on menu screen (both admin and user chatbots) - Admin: live context with latest uploads by date, new users today - Admin: per-user activity lookup by name/email (docs + audit log) - New endpoint: /api/chatbot/admin-user-context - ExpandableSummaryBlock + ExpandableValue: bold navy field labels and values RESPONSIVENESS - components.css: 480px/640px/768px breakpoints for all pages - Admin table, stat cards, tabs, toasts, FAB all properly responsive - Auth shell stacks on mobile correctly
This commit is contained in:
@@ -1,91 +1,69 @@
|
||||
/* ============================================================
|
||||
animations.css — Micro-interactions & transitions
|
||||
animations.css — Micro-interactions & motion (Ledger system)
|
||||
============================================================ */
|
||||
|
||||
/* ── Page transition ─────────────────────────────────────── */
|
||||
.page-enter {
|
||||
animation: fadeIn 0.3s ease both;
|
||||
}
|
||||
.page-enter { animation: fadeIn 0.35s ease both; }
|
||||
|
||||
/* ── Card hover lift ─────────────────────────────────────── */
|
||||
.lift {
|
||||
transition: transform 0.2s ease, box-shadow 0.2s ease;
|
||||
}
|
||||
.lift:hover {
|
||||
transform: translateY(-3px);
|
||||
box-shadow: var(--shadow-md);
|
||||
}
|
||||
.lift { transition: transform 0.2s ease, box-shadow 0.2s ease; }
|
||||
.lift:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
|
||||
|
||||
/* ── Button press feedback ───────────────────────────────── */
|
||||
.btn:active { transform: translateY(1px) scale(0.97); }
|
||||
|
||||
/* ── Pulse (for pending badge) ───────────────────────────── */
|
||||
@keyframes pulse-orange {
|
||||
0%, 100% { box-shadow: 0 0 0 0 rgba(255,127,17,0.35); }
|
||||
50% { box-shadow: 0 0 0 5px rgba(255,127,17,0); }
|
||||
@keyframes pulse-brass {
|
||||
0%, 100% { box-shadow: 0 0 0 0 rgba(176,128,61,0.35); }
|
||||
50% { box-shadow: 0 0 0 5px rgba(176,128,61,0); }
|
||||
}
|
||||
.pulse { animation: pulse-orange 2s infinite; }
|
||||
.pulse { animation: pulse-brass 2s infinite; }
|
||||
|
||||
/* ── Skeleton shimmer ────────────────────────────────────── */
|
||||
@keyframes shimmer {
|
||||
from { background-position: -600px 0; }
|
||||
to { background-position: 600px 0; }
|
||||
}
|
||||
.skeleton {
|
||||
background: linear-gradient(90deg, #e8edf2 25%, #f4f6f9 50%, #e8edf2 75%);
|
||||
background-size: 600px 100%;
|
||||
animation: shimmer 1.4s infinite linear;
|
||||
border-radius: var(--radius-sm);
|
||||
color: transparent !important;
|
||||
}
|
||||
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
|
||||
.fade-up { animation: fadeUp 0.4s ease both; }
|
||||
|
||||
/* ── Slide in from right (toast) ─────────────────────────── */
|
||||
@keyframes toast-in {
|
||||
from { opacity: 0; transform: translateX(20px); }
|
||||
to { opacity: 1; transform: translateX(0); }
|
||||
}
|
||||
|
||||
/* ── Fade up (cards on load) ─────────────────────────────── */
|
||||
@keyframes fadeUp {
|
||||
from { opacity: 0; transform: translateY(10px); }
|
||||
to { opacity: 1; transform: translateY(0); }
|
||||
}
|
||||
.fade-up { animation: fadeUp 0.3s ease both; }
|
||||
|
||||
/* ── Staggered children ──────────────────────────────────── */
|
||||
.stagger > *:nth-child(1) { animation-delay: 0.00s; }
|
||||
.stagger > *:nth-child(2) { animation-delay: 0.05s; }
|
||||
.stagger > *:nth-child(3) { animation-delay: 0.10s; }
|
||||
.stagger > *:nth-child(4) { animation-delay: 0.15s; }
|
||||
.stagger > *:nth-child(5) { animation-delay: 0.20s; }
|
||||
.stagger > *:nth-child(6) { animation-delay: 0.25s; }
|
||||
.stagger > *:nth-child(2) { animation-delay: 0.06s; }
|
||||
.stagger > *:nth-child(3) { animation-delay: 0.12s; }
|
||||
.stagger > *:nth-child(4) { animation-delay: 0.18s; }
|
||||
.stagger > *:nth-child(5) { animation-delay: 0.24s; }
|
||||
.stagger > *:nth-child(6) { animation-delay: 0.30s; }
|
||||
|
||||
/* ── Checkbox animate ────────────────────────────────────── */
|
||||
input[type=checkbox] {
|
||||
accent-color: var(--blue);
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
cursor: pointer;
|
||||
}
|
||||
input[type=checkbox] { accent-color: var(--emerald); width: 16px; height: 16px; cursor: pointer; }
|
||||
|
||||
/* ── Focus ring ──────────────────────────────────────────── */
|
||||
:focus-visible {
|
||||
outline: 2px solid var(--blue);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
/* ── Smooth link underline ───────────────────────────────── */
|
||||
/* Ledger-rule underline — the signature link treatment: a brass
|
||||
rule draws itself in, like a line struck under a checked entry */
|
||||
.fancy-link {
|
||||
position: relative;
|
||||
text-decoration: none;
|
||||
color: var(--blue);
|
||||
color: var(--emerald);
|
||||
}
|
||||
.fancy-link::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
bottom: -1px; left: 0;
|
||||
bottom: -2px; left: 0;
|
||||
width: 0; height: 1.5px;
|
||||
background: var(--blue);
|
||||
transition: width 0.2s ease;
|
||||
background: var(--brass);
|
||||
transition: width 0.25s cubic-bezier(0.4,0,0.2,1);
|
||||
}
|
||||
.fancy-link:hover::after { width: 100%; }
|
||||
|
||||
/* Scroll reveal — sections rise into place as they enter view */
|
||||
.reveal {
|
||||
opacity: 0;
|
||||
transform: translateY(22px);
|
||||
transition: opacity 0.6s cubic-bezier(0.16,1,0.3,1), transform 0.6s cubic-bezier(0.16,1,0.3,1);
|
||||
}
|
||||
.reveal.in-view { opacity: 1; transform: translateY(0); }
|
||||
.reveal-delay-1.in-view { transition-delay: 0.08s; }
|
||||
.reveal-delay-2.in-view { transition-delay: 0.16s; }
|
||||
.reveal-delay-3.in-view { transition-delay: 0.24s; }
|
||||
|
||||
/* Ruled counter tick — used behind hero stat figures */
|
||||
@keyframes tickIn {
|
||||
from { opacity: 0; transform: translateY(6px); }
|
||||
to { opacity: 1; transform: translateY(0); }
|
||||
}
|
||||
.tick-in { animation: tickIn 0.5s cubic-bezier(0.16,1,0.3,1) both; }
|
||||
|
||||
/* Spin — used for AI Summary "Processing..." indicator */
|
||||
@keyframes spin {
|
||||
from { transform: rotate(0deg); }
|
||||
to { transform: rotate(360deg); }
|
||||
}
|
||||
|
||||
+168
-122
@@ -1,68 +1,118 @@
|
||||
/* ============================================================
|
||||
base.css — BookKeepPro Design System
|
||||
Shared by every page. Load first.
|
||||
============================================================ */
|
||||
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,1,0');
|
||||
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500&family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');
|
||||
@import "tailwindcss";
|
||||
|
||||
/* ============================================================
|
||||
base.css — BookKeepPro Design System · "Ledger"
|
||||
Ink, brass and parchment — a bookkeeping identity built on
|
||||
the working materials of the trade: ruled paper, tabular
|
||||
figures, and the quiet authority of a well-kept ledger.
|
||||
============================================================ */
|
||||
|
||||
/* ── Brand Tokens ─────────────────────────────────────────── */
|
||||
:root {
|
||||
--blue: #0077C8;
|
||||
--blue-dark: #005fa3;
|
||||
--blue-light: #e9f5ff;
|
||||
--orange: #FF7F11;
|
||||
--orange-dark: #e56e0d;
|
||||
--orange-light: #fff3e0;
|
||||
--header-bg: #BEE2FA;
|
||||
--footer-bot: #A9D9F8;
|
||||
--navy: #0B2540;
|
||||
--accent: #3AB4F2;
|
||||
--bg: #f1f7fb;
|
||||
--card: #ffffff;
|
||||
--muted: #6b7a86;
|
||||
--border: #e2eaf2;
|
||||
--success: #2e7d32;
|
||||
--success-bg: #e6f9ec;
|
||||
--error: #c62828;
|
||||
--error-bg: #fdecea;
|
||||
--warn: #f57f17;
|
||||
--warn-bg: #fff8e1;
|
||||
/* core palette */
|
||||
--ink: #17211D;
|
||||
--ink-soft: #2A362F;
|
||||
--brass: #B0803D;
|
||||
--brass-dark: #8F6528;
|
||||
--brass-light: rgba(176, 128, 61, 0.12);
|
||||
--emerald: #1F5D46;
|
||||
--emerald-dark: #163F30;
|
||||
--emerald-light:rgba(31, 93, 70, 0.10);
|
||||
--paper: #F5F2E9;
|
||||
--paper-raised: #FFFFFF;
|
||||
|
||||
/* legacy variable names kept so every existing component re-skins automatically */
|
||||
--blue: var(--emerald);
|
||||
--blue-dark: var(--emerald-dark);
|
||||
--blue-light: var(--emerald-light);
|
||||
--orange: var(--brass);
|
||||
--orange-dark: var(--brass-dark);
|
||||
--orange-light: var(--brass-light);
|
||||
--header-bg: #EFEADA;
|
||||
--footer-bot: #EFEADA;
|
||||
--navy: var(--ink);
|
||||
--accent: #2C7A5B;
|
||||
--bg: var(--paper);
|
||||
--card: var(--paper-raised);
|
||||
--muted: #6B7268;
|
||||
--border: #E3DDC9;
|
||||
--success: #1F5D46;
|
||||
--success-bg: rgba(31, 93, 70, 0.10);
|
||||
--error: #A63A3A;
|
||||
--error-bg: rgba(166, 58, 58, 0.10);
|
||||
--warn: #B0803D;
|
||||
--warn-bg: rgba(176, 128, 61, 0.12);
|
||||
|
||||
--font-display: 'Fraunces', 'Georgia', serif;
|
||||
--font-body: 'IBM Plex Sans', system-ui, sans-serif;
|
||||
--font-mono: 'IBM Plex Mono', ui-monospace, monospace;
|
||||
|
||||
--radius-xs: 6px;
|
||||
--radius-sm: 10px;
|
||||
--radius-md: 14px;
|
||||
--radius-lg: 20px;
|
||||
--radius-lg: 22px;
|
||||
--radius-pill: 999px;
|
||||
|
||||
--shadow-xs: 0 1px 4px rgba(0,0,0,0.06);
|
||||
--shadow-sm: 0 2px 10px rgba(0,0,0,0.07);
|
||||
--shadow-md: 0 6px 24px rgba(0,0,0,0.09);
|
||||
--shadow-lg: 0 16px 48px rgba(0,0,0,0.12);
|
||||
--shadow-xs: 0 1px 2px 0 rgba(23, 33, 29, 0.06);
|
||||
--shadow-sm: 0 4px 10px -2px rgba(23, 33, 29, 0.10);
|
||||
--shadow-md: 0 12px 28px -8px rgba(23, 33, 29, 0.16);
|
||||
--shadow-lg: 0 24px 56px -12px rgba(23, 33, 29, 0.22);
|
||||
--shadow-glow: 0 0 0 6px rgba(176, 128, 61, 0.14);
|
||||
|
||||
--transition: 0.2s ease;
|
||||
--transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
--glass-blur: blur(14px);
|
||||
|
||||
--ruled: repeating-linear-gradient(
|
||||
to bottom,
|
||||
transparent 0,
|
||||
transparent 27px,
|
||||
rgba(23, 33, 29, 0.05) 27px,
|
||||
rgba(23, 33, 29, 0.05) 28px
|
||||
);
|
||||
}
|
||||
|
||||
/* ── Reset ───────────────────────────────────────────────── */
|
||||
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
html { font-size: 16px; scroll-behavior: smooth; }
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
html { scroll-behavior: auto; }
|
||||
*, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
|
||||
}
|
||||
body {
|
||||
font-family: "Poppins", system-ui, sans-serif;
|
||||
font-family: var(--font-body);
|
||||
background: var(--bg);
|
||||
color: #222;
|
||||
color: var(--ink);
|
||||
min-height: 100vh;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
}
|
||||
img { max-width: 100%; display: block; }
|
||||
a { color: var(--blue); text-decoration: none; }
|
||||
a:hover { color: var(--blue-dark); }
|
||||
a { color: var(--emerald); text-decoration: none; }
|
||||
a:hover { color: var(--emerald-dark); }
|
||||
.material-symbols-outlined { font-size: inherit; vertical-align: middle; line-height: 1; font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24; }
|
||||
.tnum { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
|
||||
|
||||
/* ── Typography ──────────────────────────────────────────── */
|
||||
h1 { font-size: clamp(22px,3vw,30px); font-weight: 700; color: var(--navy); line-height: 1.25; }
|
||||
h2 { font-size: clamp(18px,2.5vw,24px); font-weight: 600; color: var(--navy); line-height: 1.3; }
|
||||
h3 { font-size: clamp(15px,2vw,18px); font-weight: 600; color: var(--navy); }
|
||||
p { line-height: 1.7; color: #444; }
|
||||
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); }
|
||||
h1 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }
|
||||
h2 { font-size: clamp(19px, 2.6vw, 26px); font-weight: 600; line-height: 1.25; }
|
||||
h3 { font-size: clamp(16px, 2vw, 19px); font-weight: 600; }
|
||||
p { line-height: 1.7; color: #3E463F; }
|
||||
small, .text-sm { font-size: 13px; color: var(--muted); }
|
||||
.text-muted { color: var(--muted); }
|
||||
.eyebrow {
|
||||
font-family: var(--font-mono);
|
||||
font-size: 11.5px;
|
||||
font-weight: 500;
|
||||
letter-spacing: 0.14em;
|
||||
text-transform: uppercase;
|
||||
color: var(--brass-dark);
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
.eyebrow::before { content: ''; width: 18px; height: 1px; background: var(--brass); display: inline-block; }
|
||||
|
||||
/* ── Card ────────────────────────────────────────────────── */
|
||||
.card {
|
||||
@@ -71,9 +121,9 @@ small, .text-sm { font-size: 13px; color: var(--muted); }
|
||||
box-shadow: var(--shadow-sm);
|
||||
border: 1px solid var(--border);
|
||||
padding: clamp(20px, 4vw, 32px);
|
||||
transition: box-shadow var(--transition);
|
||||
transition: box-shadow var(--transition), transform var(--transition);
|
||||
}
|
||||
.card:hover { box-shadow: var(--shadow-md); }
|
||||
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
|
||||
.card-flat { background: var(--card); border-radius: var(--radius-md); border: 1px solid var(--border); padding: clamp(16px, 3vw, 24px); }
|
||||
|
||||
/* ── Buttons ─────────────────────────────────────────────── */
|
||||
@@ -82,30 +132,37 @@ small, .text-sm { font-size: 13px; color: var(--muted); }
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 6px;
|
||||
padding: 11px 22px;
|
||||
font-family: inherit;
|
||||
padding: 11px 24px;
|
||||
font-family: var(--font-body);
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
border: none;
|
||||
border-radius: var(--radius-pill);
|
||||
border-radius: var(--radius-sm);
|
||||
cursor: pointer;
|
||||
transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
|
||||
transition: transform 0.12s ease, background var(--transition), box-shadow var(--transition), border-color var(--transition);
|
||||
white-space: nowrap;
|
||||
}
|
||||
.btn:active { transform: translateY(1px) scale(0.97); }
|
||||
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
|
||||
.btn:active { transform: translateY(1px) scale(0.98); }
|
||||
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
|
||||
|
||||
.btn-primary { background: var(--orange); color: #fff; }
|
||||
.btn-primary:hover:not(:disabled) { background: var(--orange-dark); box-shadow: 0 4px 12px rgba(255,127,17,0.3); }
|
||||
.btn-primary { background: var(--brass); color: #fff; }
|
||||
.btn-primary:hover:not(:disabled) { background: var(--brass-dark); box-shadow: 0 6px 18px rgba(176,128,61,0.32); }
|
||||
|
||||
.btn-secondary { background: var(--blue); color: #fff; }
|
||||
.btn-secondary:hover:not(:disabled) { background: var(--blue-dark); box-shadow: 0 4px 12px rgba(0,119,200,0.25); }
|
||||
.btn-secondary { background: var(--emerald); color: #fff; }
|
||||
.btn-secondary:hover:not(:disabled) { background: var(--emerald-dark); box-shadow: 0 6px 18px rgba(31,93,70,0.28); }
|
||||
|
||||
.btn-ghost { background: transparent; color: var(--muted); border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 10px 18px; }
|
||||
.btn-ghost:hover:not(:disabled) { background: var(--bg); color: var(--navy); border-color: #c0cfe0; }
|
||||
.btn-outline {
|
||||
background: transparent;
|
||||
color: var(--ink);
|
||||
border: 1.5px solid var(--ink);
|
||||
}
|
||||
.btn-outline:hover:not(:disabled) { background: var(--ink); color: #fff; }
|
||||
|
||||
.btn-danger { background: #ff4d4d; color: #fff; }
|
||||
.btn-danger:hover:not(:disabled) { background: #e03c3c; box-shadow: 0 4px 12px rgba(255,77,77,0.3); }
|
||||
.btn-ghost { background: transparent; color: var(--muted); border: 1.5px solid var(--border); }
|
||||
.btn-ghost:hover:not(:disabled) { background: var(--paper); color: var(--ink); border-color: #cfc7ad; }
|
||||
|
||||
.btn-danger { background: var(--error); color: #fff; }
|
||||
.btn-danger:hover:not(:disabled) { background: #8a2f2f; box-shadow: 0 6px 18px rgba(166,58,58,0.3); }
|
||||
|
||||
.btn-sm { padding: 7px 16px; font-size: 13px; }
|
||||
.btn-xs { padding: 5px 12px; font-size: 12px; }
|
||||
@@ -117,46 +174,47 @@ small, .text-sm { font-size: 13px; color: var(--muted); }
|
||||
padding: 12px 16px;
|
||||
border: 1.5px solid var(--border);
|
||||
border-radius: var(--radius-sm);
|
||||
font-family: inherit;
|
||||
font-family: var(--font-body);
|
||||
font-size: 14px;
|
||||
color: #222;
|
||||
color: var(--ink);
|
||||
background: #fff;
|
||||
transition: border-color var(--transition), box-shadow var(--transition);
|
||||
}
|
||||
.input:focus, .select-input:focus {
|
||||
outline: none;
|
||||
border-color: var(--blue);
|
||||
box-shadow: 0 0 0 3px rgba(0,119,200,0.10);
|
||||
border-color: var(--emerald);
|
||||
box-shadow: 0 0 0 3px rgba(31,93,70,0.12);
|
||||
}
|
||||
.input::placeholder { color: #a8b5c2; }
|
||||
.input[readonly] { background: #f8fafc; color: var(--muted); cursor: default; }
|
||||
label.form-label { display: block; font-size: 13px; font-weight: 500; color: #444; margin-bottom: 6px; }
|
||||
.input::placeholder { color: #A8A190; }
|
||||
.input[readonly] { background: var(--paper); color: var(--muted); cursor: default; }
|
||||
label.form-label { display: block; font-size: 12.5px; font-weight: 600; letter-spacing: 0.02em; color: var(--ink-soft); margin-bottom: 6px; }
|
||||
.form-group { margin-bottom: 18px; }
|
||||
.password-wrap { position: relative; }
|
||||
.password-wrap .input { padding-right: 56px; }
|
||||
.password-toggle {
|
||||
position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
|
||||
background: none; border: none; color: var(--blue); font-weight: 600; font-size: 13px; cursor: pointer;
|
||||
background: none; border: none; color: var(--emerald); font-weight: 600; font-size: 13px; cursor: pointer;
|
||||
}
|
||||
|
||||
/* ── Badges ──────────────────────────────────────────────── */
|
||||
.badge {
|
||||
display: inline-flex; align-items: center; gap: 4px;
|
||||
padding: 3px 10px; border-radius: var(--radius-pill);
|
||||
padding: 3px 10px; border-radius: var(--radius-xs);
|
||||
font-size: 11px; font-weight: 700; letter-spacing: 0.3px;
|
||||
white-space: nowrap;
|
||||
font-family: var(--font-mono);
|
||||
}
|
||||
.badge-blue { background: var(--blue-light); color: var(--blue); }
|
||||
.badge-orange { background: var(--orange-light); color: #e65100; border: 1px solid #ffc89a; }
|
||||
.badge-red { background: #fce4ec; color: var(--error); }
|
||||
.badge-blue { background: var(--emerald-light); color: var(--emerald); }
|
||||
.badge-orange { background: var(--brass-light); color: var(--brass-dark); border: 1px solid rgba(176,128,61,0.35); }
|
||||
.badge-red { background: var(--error-bg); color: var(--error); }
|
||||
.badge-green { background: var(--success-bg); color: var(--success); }
|
||||
.badge-yellow { background: var(--warn-bg); color: var(--warn); border: 1px solid #ffe082; }
|
||||
.badge-muted { background: #f0f4f8; color: var(--muted); }
|
||||
.badge-yellow { background: var(--warn-bg); color: var(--warn); border: 1px solid rgba(176,128,61,0.3); }
|
||||
.badge-muted { background: var(--paper); color: var(--muted); }
|
||||
|
||||
/* ── Status Pills (doc review) ───────────────────────────── */
|
||||
.pill-approved { background:var(--success-bg); color:var(--success); border:1px solid #a5d6a7; padding:2px 10px; border-radius:20px; font-size:11px; font-weight:700; }
|
||||
.pill-rejected { background:var(--error-bg); color:var(--error); border:1px solid #ef9a9a; padding:2px 10px; border-radius:20px; font-size:11px; font-weight:700; }
|
||||
.pill-pending { background:var(--warn-bg); color:var(--warn); border:1px solid #ffe082; padding:2px 10px; border-radius:20px; font-size:11px; font-weight:700; }
|
||||
.pill-approved { background:var(--success-bg); color:var(--success); border:1px solid rgba(31,93,70,0.3); padding:2px 10px; border-radius:var(--radius-xs); font-size:11px; font-weight:700; font-family: var(--font-mono); }
|
||||
.pill-rejected { background:var(--error-bg); color:var(--error); border:1px solid rgba(166,58,58,0.3); padding:2px 10px; border-radius:var(--radius-xs); font-size:11px; font-weight:700; font-family: var(--font-mono); }
|
||||
.pill-pending { background:var(--warn-bg); color:var(--brass-dark); border:1px solid rgba(176,128,61,0.3); padding:2px 10px; border-radius:var(--radius-xs); font-size:11px; font-weight:700; font-family: var(--font-mono); }
|
||||
|
||||
/* ── Divider ─────────────────────────────────────────────── */
|
||||
.divider { border: none; border-top: 1px solid var(--border); margin: 20px 0; }
|
||||
@@ -182,9 +240,9 @@ label.form-label { display: block; font-size: 13px; font-weight: 500; color: #44
|
||||
|
||||
/* ── Animations ──────────────────────────────────────────── */
|
||||
@keyframes fadeIn { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:none; } }
|
||||
@keyframes slideUp { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:none; } }
|
||||
.fade-in { animation: fadeIn 0.3s ease both; }
|
||||
.slide-up { animation: slideUp 0.35s ease both; }
|
||||
@keyframes slideUp { from { opacity:0; transform:translateY(14px); } to { opacity:1; transform:none; } }
|
||||
.fade-in { animation: fadeIn 0.35s ease both; }
|
||||
.slide-up { animation: slideUp 0.4s ease both; }
|
||||
|
||||
/* ── Skeleton loading ────────────────────────────────────── */
|
||||
@keyframes shimmer {
|
||||
@@ -192,7 +250,7 @@ label.form-label { display: block; font-size: 13px; font-weight: 500; color: #44
|
||||
to { background-position: 600px 0; }
|
||||
}
|
||||
.skeleton {
|
||||
background: linear-gradient(90deg, #e8edf2 25%, #f4f6f9 50%, #e8edf2 75%);
|
||||
background: linear-gradient(90deg, #EDE8D9 25%, #F5F2E9 50%, #EDE8D9 75%);
|
||||
background-size: 600px 100%;
|
||||
animation: shimmer 1.4s infinite linear;
|
||||
border-radius: var(--radius-sm);
|
||||
@@ -218,65 +276,53 @@ label.form-label { display: block; font-size: 13px; font-weight: 500; color: #44
|
||||
.text-center { text-align: center; }
|
||||
.font-600 { font-weight: 600; }
|
||||
|
||||
|
||||
/* --- UI/UX Polish --- */
|
||||
|
||||
/* Button Micro-animations */
|
||||
.btn {
|
||||
transition: transform 0.1s ease, background 0.2s ease, box-shadow 0.2s ease;
|
||||
}
|
||||
.btn:active {
|
||||
transform: scale(0.96);
|
||||
/* Focus visibility */
|
||||
:focus-visible {
|
||||
outline: 2px solid var(--emerald);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
/* Focus States for Accessibility */
|
||||
.input:focus,
|
||||
input[type="text"]:focus,
|
||||
input[type="email"]:focus,
|
||||
input[type="password"]:focus,
|
||||
/* Button + input micro-interactions */
|
||||
.btn:active { transform: scale(0.97); }
|
||||
.input:focus,
|
||||
input[type="text"]:focus,
|
||||
input[type="email"]:focus,
|
||||
input[type="password"]:focus,
|
||||
textarea:focus {
|
||||
outline: none;
|
||||
border-color: var(--blue) !important;
|
||||
box-shadow: 0 0 0 3px rgba(0, 119, 200, 0.25) !important;
|
||||
border-color: var(--emerald) !important;
|
||||
box-shadow: 0 0 0 3px rgba(31,93,70,0.14) !important;
|
||||
transition: border-color 0.2s ease, box-shadow 0.2s ease;
|
||||
}
|
||||
|
||||
/* Document & Admin Card Lift Effects */
|
||||
.doc-card, .doc-row, .admin-docs-td {
|
||||
transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
|
||||
}
|
||||
.doc-row:hover {
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 4px 12px rgba(0,0,0,0.05);
|
||||
background: #fafafa;
|
||||
}
|
||||
|
||||
/* --- Dark Mode Overrides --- */
|
||||
/* ── Dark Mode Overrides ─────────────────────────────────── */
|
||||
.dark-theme {
|
||||
--bg: #0B1521;
|
||||
--card: #152538;
|
||||
--navy: #f1f7fb;
|
||||
--muted: #a8b5c2;
|
||||
--border: #2A3F54;
|
||||
|
||||
--header-bg: #0F2B44;
|
||||
--footer-bot: #06182B;
|
||||
|
||||
--blue-light: #0d263b;
|
||||
--orange-light: #2d1a0a;
|
||||
|
||||
--success-bg: #0b2e13;
|
||||
--error-bg: #420f0f;
|
||||
--warn-bg: #3d2508;
|
||||
|
||||
--shadow-xs: 0 1px 4px rgba(0,0,0,0.3);
|
||||
--bg: #10160F;
|
||||
--card: #1A2119;
|
||||
--navy: #F2EFE4;
|
||||
--ink: #F2EFE4;
|
||||
--muted: #A6AC9F;
|
||||
--border: #2B3529;
|
||||
|
||||
--header-bg: #182018;
|
||||
--footer-bot: #10160F;
|
||||
|
||||
--blue-light: rgba(90, 168, 138, 0.16);
|
||||
--orange-light: rgba(196, 150, 82, 0.16);
|
||||
--emerald-light:rgba(90, 168, 138, 0.16);
|
||||
--brass-light: rgba(196, 150, 82, 0.16);
|
||||
|
||||
--success-bg: rgba(90, 168, 138, 0.14);
|
||||
--error-bg: rgba(214, 110, 110, 0.14);
|
||||
--warn-bg: rgba(196, 150, 82, 0.16);
|
||||
|
||||
--shadow-xs: 0 1px 4px rgba(0,0,0,0.35);
|
||||
--shadow-sm: 0 2px 10px rgba(0,0,0,0.4);
|
||||
--shadow-md: 0 6px 24px rgba(0,0,0,0.5);
|
||||
--shadow-lg: 0 16px 48px rgba(0,0,0,0.6);
|
||||
}
|
||||
|
||||
/* Ensure text on dark theme maps correctly if using base html/body color */
|
||||
body.dark-theme {
|
||||
background-color: var(--bg);
|
||||
color: var(--navy);
|
||||
color: var(--ink);
|
||||
}
|
||||
.dark-theme .input, .dark-theme .select-input { background: var(--card); color: var(--ink); border-color: var(--border); }
|
||||
|
||||
+97
-305
@@ -1,102 +1,84 @@
|
||||
/* ============================================================
|
||||
chatbot.css — BookKeepPro Chatbot Widget
|
||||
Floating chat bubble + chat window
|
||||
chatbot.css — BookKeepPro Chatbot Widget (Ledger system)
|
||||
============================================================ */
|
||||
|
||||
/* ── Chat Bubble (FAB) ──────────────────────────────────── */
|
||||
.chatbot-fab {
|
||||
position: fixed;
|
||||
bottom: 24px;
|
||||
right: 24px;
|
||||
width: 58px;
|
||||
height: 58px;
|
||||
width: 56px;
|
||||
height: 56px;
|
||||
border-radius: 50%;
|
||||
background: linear-gradient(135deg, var(--blue) 0%, var(--accent) 100%);
|
||||
background: var(--ink);
|
||||
color: #fff;
|
||||
border: none;
|
||||
border: 1px solid rgba(255, 255, 255, 0.14);
|
||||
cursor: pointer;
|
||||
box-shadow: 0 4px 20px rgba(0, 119, 200, 0.35);
|
||||
box-shadow: var(--shadow-lg);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 28px;
|
||||
font-size: 26px;
|
||||
z-index: 9998;
|
||||
transition: transform 0.25s ease, box-shadow 0.25s ease;
|
||||
}
|
||||
.chatbot-fab:hover {
|
||||
transform: scale(1.08);
|
||||
box-shadow: 0 6px 28px rgba(0, 119, 200, 0.45);
|
||||
}
|
||||
.chatbot-fab:active {
|
||||
transform: scale(0.96);
|
||||
transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, background 0.3s ease;
|
||||
}
|
||||
.chatbot-fab:hover { transform: scale(1.07); background: var(--emerald-dark); }
|
||||
.chatbot-fab:active { transform: scale(0.96); }
|
||||
.chatbot-fab .fab-icon { transition: transform 0.3s ease; }
|
||||
.chatbot-fab.open .fab-icon { transform: rotate(90deg); }
|
||||
|
||||
/* Pulse ring animation */
|
||||
.chatbot-fab::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
inset: -4px;
|
||||
border-radius: 50%;
|
||||
border: 2px solid var(--blue);
|
||||
border: 1.5px solid var(--brass);
|
||||
opacity: 0;
|
||||
animation: chatPulse 2.5s ease-out infinite;
|
||||
}
|
||||
.chatbot-fab.open::before { animation: none; opacity: 0; }
|
||||
|
||||
@keyframes chatPulse {
|
||||
0% { transform: scale(1); opacity: 0.5; }
|
||||
0% { transform: scale(1); opacity: 0.45; }
|
||||
100% { transform: scale(1.4); opacity: 0; }
|
||||
}
|
||||
|
||||
/* Notification dot */
|
||||
.chatbot-fab .notif-dot {
|
||||
position: absolute;
|
||||
top: 2px;
|
||||
right: 2px;
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
top: 2px; right: 2px;
|
||||
width: 13px; height: 13px;
|
||||
border-radius: 50%;
|
||||
background: var(--orange);
|
||||
border: 2px solid #fff;
|
||||
background: var(--brass);
|
||||
border: 2px solid var(--ink);
|
||||
animation: dotBounce 1.5s ease infinite;
|
||||
}
|
||||
.chatbot-fab.open .notif-dot { display: none; }
|
||||
|
||||
@keyframes dotBounce {
|
||||
0%, 100% { transform: scale(1); }
|
||||
50% { transform: scale(1.2); }
|
||||
}
|
||||
@keyframes dotBounce { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.2); } }
|
||||
|
||||
/* ── Chat Window ────────────────────────────────────────── */
|
||||
.chatbot-window {
|
||||
position: fixed;
|
||||
bottom: 96px;
|
||||
bottom: 92px;
|
||||
right: 24px;
|
||||
width: 380px;
|
||||
max-height: 520px;
|
||||
border-radius: var(--radius-md);
|
||||
background: var(--card);
|
||||
box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
|
||||
border-radius: var(--radius-lg);
|
||||
background: #FFFFFF;
|
||||
border: 1px solid var(--border);
|
||||
box-shadow: var(--shadow-lg);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
z-index: 9999;
|
||||
overflow: hidden;
|
||||
opacity: 0;
|
||||
transform: translateY(20px) scale(0.95);
|
||||
transform: translateY(16px) scale(0.97);
|
||||
pointer-events: none;
|
||||
transition: opacity 0.3s ease, transform 0.3s ease;
|
||||
}
|
||||
.chatbot-window.visible {
|
||||
opacity: 1;
|
||||
transform: translateY(0) scale(1);
|
||||
pointer-events: auto;
|
||||
transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
}
|
||||
.chatbot-window.visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
|
||||
|
||||
/* ── Header ─────────────────────────────────────────────── */
|
||||
.chatbot-header {
|
||||
background: linear-gradient(135deg, var(--blue) 0%, #005fa3 100%);
|
||||
background: var(--ink);
|
||||
background-image: var(--ruled);
|
||||
color: #fff;
|
||||
padding: 16px 18px;
|
||||
display: flex;
|
||||
@@ -105,302 +87,112 @@
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.chatbot-header .bot-avatar {
|
||||
width: 38px;
|
||||
height: 38px;
|
||||
border-radius: 50%;
|
||||
background: rgba(255, 255, 255, 0.2);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 20px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.chatbot-header .bot-info h4 {
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
margin: 0;
|
||||
color: #fff;
|
||||
}
|
||||
.chatbot-header .bot-info span {
|
||||
font-size: 11px;
|
||||
opacity: 0.8;
|
||||
width: 36px; height: 36px; border-radius: 50%;
|
||||
background: var(--brass);
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
font-size: 18px; flex-shrink: 0; color: #fff;
|
||||
}
|
||||
.chatbot-header .bot-info h4 { font-size: 14px; font-weight: 600; margin: 0; color: #fff; font-family: var(--font-body); }
|
||||
.chatbot-header .bot-info span { font-size: 11px; opacity: 0.75; }
|
||||
.chatbot-header .close-chat {
|
||||
margin-left: auto;
|
||||
background: rgba(255, 255, 255, 0.15);
|
||||
border: none;
|
||||
color: #fff;
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
border-radius: 50%;
|
||||
cursor: pointer;
|
||||
font-size: 16px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
transition: background 0.2s;
|
||||
}
|
||||
.chatbot-header .close-chat:hover {
|
||||
background: rgba(255, 255, 255, 0.3);
|
||||
margin-left: auto; background: rgba(255,255,255,0.12); border: none; color: #fff;
|
||||
width: 28px; height: 28px; border-radius: 50%; cursor: pointer; font-size: 15px;
|
||||
display: flex; align-items: center; justify-content: center; transition: background 0.2s;
|
||||
}
|
||||
.chatbot-header .close-chat:hover { background: rgba(255,255,255,0.25); }
|
||||
|
||||
/* ── Messages Area ──────────────────────────────────────── */
|
||||
.chatbot-messages {
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
padding: 16px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
background: #f8fbfe;
|
||||
min-height: 200px;
|
||||
max-height: 340px;
|
||||
flex: 1; overflow-y: auto; padding: 22px 18px;
|
||||
display: flex; flex-direction: column; gap: 12px;
|
||||
background: var(--paper);
|
||||
min-height: 200px; max-height: 380px; scroll-behavior: smooth;
|
||||
}
|
||||
.chatbot-welcome-text {
|
||||
display: flex; align-items: center; justify-content: center; gap: 8px;
|
||||
margin-bottom: 8px; padding: 10px;
|
||||
background: var(--emerald-light);
|
||||
border-radius: var(--radius-sm);
|
||||
border: 1px solid rgba(31,93,70,0.15);
|
||||
}
|
||||
.chatbot-welcome-text p { font-size: 13px; font-weight: 500; color: var(--ink); margin: 0; }
|
||||
.chatbot-welcome-text .sparkle { font-size: 17px; color: var(--brass); }
|
||||
.chatbot-messages::-webkit-scrollbar { width: 5px; }
|
||||
.chatbot-messages::-webkit-scrollbar-track { background: transparent; }
|
||||
.chatbot-messages::-webkit-scrollbar-thumb { background: #c5d9ee; border-radius: 10px; }
|
||||
.chatbot-messages::-webkit-scrollbar-thumb { background: #d8d0b6; border-radius: 10px; }
|
||||
|
||||
/* ── Message Bubbles ────────────────────────────────────── */
|
||||
.chat-msg {
|
||||
max-width: 85%;
|
||||
padding: 10px 14px;
|
||||
border-radius: 14px;
|
||||
font-size: 13px;
|
||||
line-height: 1.5;
|
||||
animation: msgSlideIn 0.3s ease;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
@keyframes msgSlideIn {
|
||||
from { opacity: 0; transform: translateY(8px); }
|
||||
to { opacity: 1; transform: translateY(0); }
|
||||
max-width: 85%; padding: 10px 14px; border-radius: 13px;
|
||||
font-size: 13px; line-height: 1.5; animation: msgSlideIn 0.3s ease; word-wrap: break-word;
|
||||
}
|
||||
@keyframes msgSlideIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
|
||||
|
||||
.chat-msg.bot {
|
||||
background: #fff;
|
||||
color: #222;
|
||||
border: 1px solid var(--border);
|
||||
border-bottom-left-radius: 4px;
|
||||
align-self: flex-start;
|
||||
box-shadow: 0 1px 4px rgba(0,0,0,0.04);
|
||||
background: #fff; color: var(--ink); border: 1px solid var(--border);
|
||||
border-bottom-left-radius: 4px; align-self: flex-start; box-shadow: var(--shadow-xs);
|
||||
}
|
||||
.chat-msg.user {
|
||||
background: linear-gradient(135deg, var(--blue), var(--accent));
|
||||
color: #fff;
|
||||
border-bottom-right-radius: 4px;
|
||||
align-self: flex-end;
|
||||
background: var(--emerald); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end;
|
||||
}
|
||||
|
||||
/* ── Typing Indicator ───────────────────────────────────── */
|
||||
.typing-indicator {
|
||||
display: flex;
|
||||
gap: 4px;
|
||||
padding: 12px 16px;
|
||||
align-self: flex-start;
|
||||
}
|
||||
.typing-indicator span {
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
border-radius: 50%;
|
||||
background: var(--blue);
|
||||
opacity: 0.4;
|
||||
animation: typingDot 1.2s ease-in-out infinite;
|
||||
}
|
||||
.typing-indicator { display: flex; gap: 4px; padding: 12px 16px; align-self: flex-start; }
|
||||
.typing-indicator span { width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); opacity: 0.4; animation: typingDot 1.2s ease-in-out infinite; }
|
||||
.typing-indicator span:nth-child(2) { animation-delay: 0.15s; }
|
||||
.typing-indicator span:nth-child(3) { animation-delay: 0.3s; }
|
||||
@keyframes typingDot { 0%, 60%, 100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-6px); opacity: 1; } }
|
||||
|
||||
@keyframes typingDot {
|
||||
0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
|
||||
30% { transform: translateY(-6px); opacity: 1; }
|
||||
}
|
||||
|
||||
/* ── Quick Reply Buttons ────────────────────────────────── */
|
||||
.quick-replies {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
margin-top: 6px;
|
||||
}
|
||||
.quick-replies { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
|
||||
.quick-reply-btn {
|
||||
background: #fff;
|
||||
border: 1.5px solid var(--blue);
|
||||
color: var(--blue);
|
||||
padding: 9px 14px;
|
||||
border-radius: var(--radius-sm);
|
||||
font-size: 13px;
|
||||
font-weight: 500;
|
||||
cursor: pointer;
|
||||
text-align: left;
|
||||
transition: all 0.2s ease;
|
||||
font-family: inherit;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
.quick-reply-btn:hover {
|
||||
background: var(--blue);
|
||||
color: #fff;
|
||||
transform: translateX(4px);
|
||||
box-shadow: 0 2px 8px rgba(0, 119, 200, 0.2);
|
||||
}
|
||||
.quick-reply-btn .qr-icon {
|
||||
font-size: 16px;
|
||||
flex-shrink: 0;
|
||||
background: #fff; border: 1.5px solid var(--border); color: var(--ink);
|
||||
padding: 11px 15px; border-radius: var(--radius-sm); font-size: 13.5px; font-weight: 500;
|
||||
cursor: pointer; text-align: left; transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
|
||||
font-family: inherit; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow-xs);
|
||||
}
|
||||
.quick-reply-btn:hover { background: var(--emerald-light); border-color: var(--emerald); color: var(--emerald-dark); transform: translateY(-1px); }
|
||||
.quick-reply-btn .qr-icon { font-size: 16px; flex-shrink: 0; }
|
||||
|
||||
/* ── Doc Status Cards ───────────────────────────────────── */
|
||||
.doc-status-card {
|
||||
background: #fff;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius-xs);
|
||||
padding: 10px 12px;
|
||||
margin-top: 6px;
|
||||
font-size: 12px;
|
||||
}
|
||||
.doc-status-card .doc-name {
|
||||
font-weight: 600;
|
||||
color: var(--navy);
|
||||
margin-bottom: 4px;
|
||||
font-size: 13px;
|
||||
}
|
||||
.doc-status-card .doc-year {
|
||||
color: var(--muted);
|
||||
font-size: 11px;
|
||||
}
|
||||
.doc-status-card .doc-badge {
|
||||
display: inline-block;
|
||||
padding: 2px 8px;
|
||||
border-radius: var(--radius-pill);
|
||||
font-size: 11px;
|
||||
font-weight: 600;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.3px;
|
||||
}
|
||||
.doc-badge.pending { background: var(--warn-bg); color: var(--warn); }
|
||||
.doc-status-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-xs); padding: 10px 12px; margin-top: 6px; font-size: 12px; }
|
||||
.doc-status-card .doc-name { font-weight: 600; color: var(--ink); margin-bottom: 4px; font-size: 13px; }
|
||||
.doc-status-card .doc-year { color: var(--muted); font-size: 11px; }
|
||||
.doc-status-card .doc-badge { display: inline-block; padding: 2px 8px; border-radius: var(--radius-xs); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px; font-family: var(--font-mono); }
|
||||
.doc-badge.pending { background: var(--warn-bg); color: var(--brass-dark); }
|
||||
.doc-badge.approved { background: var(--success-bg); color: var(--success); }
|
||||
.doc-badge.rejected { background: var(--error-bg); color: var(--error); }
|
||||
.doc-status-card .doc-note { margin-top: 4px; color: var(--muted); font-style: italic; font-size: 11px; }
|
||||
|
||||
.doc-status-card .doc-note {
|
||||
margin-top: 4px;
|
||||
color: var(--muted);
|
||||
font-style: italic;
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
/* ── Summary Banner ─────────────────────────────────────── */
|
||||
.status-summary {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
gap: 8px;
|
||||
margin-top: 8px;
|
||||
}
|
||||
.summary-item {
|
||||
text-align: center;
|
||||
padding: 8px 4px;
|
||||
border-radius: var(--radius-xs);
|
||||
background: #f1f7fb;
|
||||
}
|
||||
.summary-item .count {
|
||||
font-size: 20px;
|
||||
font-weight: 700;
|
||||
display: block;
|
||||
}
|
||||
.summary-item .label {
|
||||
font-size: 10px;
|
||||
text-transform: uppercase;
|
||||
color: var(--muted);
|
||||
letter-spacing: 0.5px;
|
||||
}
|
||||
.summary-item.pending .count { color: var(--warn); }
|
||||
.status-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
|
||||
.summary-item { text-align: center; padding: 8px 4px; border-radius: var(--radius-xs); background: var(--paper); }
|
||||
.summary-item .count { font-family: var(--font-mono); font-size: 19px; font-weight: 600; display: block; }
|
||||
.summary-item .label { font-size: 10px; text-transform: uppercase; color: var(--muted); letter-spacing: 0.5px; }
|
||||
.summary-item.pending .count { color: var(--brass-dark); }
|
||||
.summary-item.approved .count { color: var(--success); }
|
||||
.summary-item.rejected .count { color: var(--error); }
|
||||
|
||||
/* ── FAQ List ───────────────────────────────────────────── */
|
||||
.faq-question {
|
||||
background: #fff;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius-xs);
|
||||
padding: 9px 12px;
|
||||
font-size: 12.5px;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s ease;
|
||||
text-align: left;
|
||||
color: var(--navy);
|
||||
width: 100%;
|
||||
font-family: inherit;
|
||||
display: block;
|
||||
margin-top: 4px;
|
||||
}
|
||||
.faq-question:hover {
|
||||
border-color: var(--blue);
|
||||
color: var(--blue);
|
||||
background: var(--blue-light);
|
||||
background: #fff; border: 1px solid var(--border); border-radius: var(--radius-xs);
|
||||
padding: 9px 12px; font-size: 12.5px; cursor: pointer; transition: all 0.2s ease;
|
||||
text-align: left; color: var(--ink); width: 100%; font-family: inherit; display: block; margin-top: 4px;
|
||||
}
|
||||
.faq-question:hover { border-color: var(--emerald); color: var(--emerald); background: var(--emerald-light); }
|
||||
|
||||
/* ── Back Button ────────────────────────────────────────── */
|
||||
.back-btn {
|
||||
background: none;
|
||||
border: none;
|
||||
color: var(--blue);
|
||||
cursor: pointer;
|
||||
font-size: 12px;
|
||||
padding: 4px 0;
|
||||
font-family: inherit;
|
||||
font-weight: 500;
|
||||
margin-top: 6px;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
background: none; border: none; color: var(--emerald); cursor: pointer; font-size: 12px;
|
||||
padding: 4px 0; font-family: inherit; font-weight: 500; margin-top: 6px;
|
||||
display: inline-flex; align-items: center; gap: 4px;
|
||||
}
|
||||
.back-btn:hover { text-decoration: underline; }
|
||||
|
||||
/* ── Mobile Responsive ──────────────────────────────────── */
|
||||
@media (max-width: 480px) {
|
||||
.chatbot-window {
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
max-height: 75vh;
|
||||
border-radius: var(--radius-md) var(--radius-md) 0 0;
|
||||
}
|
||||
.chatbot-fab {
|
||||
bottom: 16px;
|
||||
right: 16px;
|
||||
width: 52px;
|
||||
height: 52px;
|
||||
font-size: 24px;
|
||||
}
|
||||
.chatbot-window { bottom: 0; right: 0; left: 0; width: 100%; max-height: 75vh; border-radius: var(--radius-md) var(--radius-md) 0 0; }
|
||||
.chatbot-fab { bottom: 16px; right: 16px; width: 50px; height: 50px; font-size: 22px; }
|
||||
}
|
||||
|
||||
/* ── Dark Mode Support ──────────────────────────────────── */
|
||||
[data-theme="dark"] .chatbot-window { background: #1a2332; }
|
||||
[data-theme="dark"] .chatbot-messages { background: #0f1923; }
|
||||
[data-theme="dark"] .chat-msg.bot {
|
||||
background: #1e2d3d;
|
||||
border-color: #2a3f54;
|
||||
color: #d4dde6;
|
||||
}
|
||||
[data-theme="dark"] .quick-reply-btn {
|
||||
background: #1e2d3d;
|
||||
border-color: var(--blue);
|
||||
color: var(--accent);
|
||||
}
|
||||
[data-theme="dark"] .quick-reply-btn:hover {
|
||||
background: var(--blue);
|
||||
color: #fff;
|
||||
}
|
||||
[data-theme="dark"] .doc-status-card {
|
||||
background: #1e2d3d;
|
||||
border-color: #2a3f54;
|
||||
}
|
||||
[data-theme="dark"] .doc-status-card .doc-name { color: #d4dde6; }
|
||||
[data-theme="dark"] .faq-question {
|
||||
background: #1e2d3d;
|
||||
border-color: #2a3f54;
|
||||
color: #d4dde6;
|
||||
}
|
||||
[data-theme="dark"] .faq-question:hover {
|
||||
background: #253648;
|
||||
border-color: var(--blue);
|
||||
}
|
||||
[data-theme="dark"] .summary-item { background: #1e2d3d; }
|
||||
.dark-theme .chatbot-window { background: var(--card); }
|
||||
.dark-theme .chatbot-messages { background: var(--bg); }
|
||||
.dark-theme .chat-msg.bot { background: var(--card); border-color: var(--border); color: var(--navy); }
|
||||
.dark-theme .quick-reply-btn { background: var(--card); border-color: var(--border); color: var(--navy); }
|
||||
.dark-theme .quick-reply-btn:hover { background: var(--blue-light); border-color: var(--blue); }
|
||||
.dark-theme .doc-status-card { background: var(--card); border-color: var(--border); }
|
||||
.dark-theme .doc-status-card .doc-name { color: var(--navy); }
|
||||
.dark-theme .faq-question { background: var(--card); border-color: var(--border); color: var(--navy); }
|
||||
.dark-theme .faq-question:hover { background: var(--blue-light); border-color: var(--blue); }
|
||||
.dark-theme .summary-item { background: var(--card); }
|
||||
|
||||
+569
-196
@@ -1,30 +1,32 @@
|
||||
/* ============================================================
|
||||
components.css — Reusable UI components
|
||||
components.css — Reusable UI components (Ledger system)
|
||||
Load after base.css
|
||||
============================================================ */
|
||||
|
||||
/* ── App Header ──────────────────────────────────────────── */
|
||||
/* ── App Header (dashboard/admin) ───────────────────────── */
|
||||
.app-header {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 200;
|
||||
background: var(--header-bg);
|
||||
backdrop-filter: var(--glass-blur);
|
||||
-webkit-backdrop-filter: var(--glass-blur);
|
||||
border-bottom: 1px solid var(--border);
|
||||
padding: 0 clamp(16px, 4vw, 32px);
|
||||
height: 62px;
|
||||
height: 66px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 16px;
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 200;
|
||||
box-shadow: 0 2px 12px rgba(0,80,140,0.10);
|
||||
}
|
||||
.app-header .logo { height: 38px; cursor: pointer; transition: opacity var(--transition); }
|
||||
.app-header .logo { height: 34px; cursor: pointer; transition: opacity var(--transition); }
|
||||
.app-header .logo:hover { opacity: 0.85; }
|
||||
.app-header .header-actions { display: flex; gap: 10px; align-items: center; }
|
||||
.header-actions { display: flex; align-items: center; gap: 10px; }
|
||||
|
||||
/* ── App Footer ──────────────────────────────────────────── */
|
||||
.app-footer {
|
||||
background: var(--header-bg);
|
||||
border-top: 1px solid rgba(0,80,140,0.10);
|
||||
border-top: 1px solid var(--border);
|
||||
padding: 18px clamp(16px, 4vw, 32px);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -33,7 +35,7 @@
|
||||
gap: 12px;
|
||||
margin-top: auto;
|
||||
}
|
||||
.app-footer img { height: 30px; }
|
||||
.app-footer img { height: 28px; }
|
||||
.app-footer small { color: var(--muted); font-size: 12px; }
|
||||
|
||||
/* ── Auth Layout — Split Card ────────────────────────────── */
|
||||
@@ -46,19 +48,22 @@
|
||||
.auth-brand {
|
||||
width: 42%;
|
||||
min-width: 280px;
|
||||
background: linear-gradient(145deg, var(--navy) 0%, var(--blue) 100%);
|
||||
position: relative;
|
||||
background: #17211D;
|
||||
background-image: var(--ruled), linear-gradient(155deg, #17211D 0%, var(--emerald-dark) 130%);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 48px 40px;
|
||||
color: #fff;
|
||||
gap: 24px;
|
||||
gap: 22px;
|
||||
overflow: hidden;
|
||||
}
|
||||
.auth-brand .brand-logo { height: 56px; }
|
||||
.auth-brand h2 { color: #fff; font-size: clamp(20px,2.5vw,26px); text-align: center; margin: 0; }
|
||||
.auth-brand p { color: rgba(255,255,255,0.75); font-size: 14px; text-align: center; line-height: 1.8; margin: 0; }
|
||||
.auth-brand .brand-divider { width: 40px; height: 3px; background: var(--orange); border-radius: 2px; }
|
||||
.auth-brand .brand-logo { height: 48px; opacity: 0.95; }
|
||||
.auth-brand h2 { font-family: var(--font-display); color: #fff; font-size: clamp(20px,2.5vw,27px); text-align: center; margin: 0; font-weight: 500; }
|
||||
.auth-brand p { color: rgba(255,255,255,0.68); font-size: 14px; text-align: center; line-height: 1.8; margin: 0; max-width: 320px; }
|
||||
.auth-brand .brand-divider { width: 40px; height: 2px; background: var(--brass); border-radius: 2px; }
|
||||
|
||||
.auth-form-side {
|
||||
flex: 1;
|
||||
@@ -70,11 +75,10 @@
|
||||
overflow-y: auto;
|
||||
}
|
||||
.auth-box { width: 100%; max-width: 420px; }
|
||||
.auth-box h1 { font-size: clamp(20px,2.5vw,26px); margin-bottom: 6px; }
|
||||
.auth-box h1 { font-size: clamp(21px,2.5vw,27px); margin-bottom: 6px; }
|
||||
.auth-box .auth-subtitle { color: var(--muted); font-size: 14px; margin-bottom: 32px; }
|
||||
.auth-links { margin-top: 20px; font-size: 13px; color: var(--muted); text-align: center; line-height: 2; }
|
||||
|
||||
/* Dark Theme Overrides for Auth Pages */
|
||||
body.dark-theme .auth-shell { background: var(--bg); }
|
||||
body.dark-theme .auth-form-side { background: var(--bg); }
|
||||
body.dark-theme .auth-box h1 { color: var(--navy); }
|
||||
@@ -89,13 +93,13 @@ body.dark-theme .auth-links a { color: var(--blue); }
|
||||
width: 100%;
|
||||
min-width: unset;
|
||||
min-height: unset;
|
||||
padding: 24px 20px;
|
||||
padding: 26px 20px;
|
||||
flex-direction: row;
|
||||
justify-content: center;
|
||||
gap: 16px;
|
||||
}
|
||||
.auth-brand p, .auth-brand .brand-divider { display: none; }
|
||||
.auth-brand .brand-logo { height: 32px; }
|
||||
.auth-brand .brand-logo { height: 30px; }
|
||||
.auth-brand h2 { font-size: 15px; margin: 0; }
|
||||
.auth-form-side { padding: 28px 20px; }
|
||||
}
|
||||
@@ -110,10 +114,10 @@ body.dark-theme .auth-links a { color: var(--blue); }
|
||||
margin-bottom: 28px;
|
||||
}
|
||||
.page-heading h1, .page-heading h2 { margin: 0; }
|
||||
.page-heading .page-meta { font-size: 13px; color: var(--muted); margin-top: 4px; }
|
||||
.page-heading .page-meta { font-size: 13px; color: var(--muted); margin-top: 4px; font-family: var(--font-mono); }
|
||||
|
||||
/* ── Stat Cards Row ──────────────────────────────────────── */
|
||||
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 28px; }
|
||||
.stat-row, .admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 28px; }
|
||||
.stat-card {
|
||||
background: var(--card);
|
||||
border: 1px solid var(--border);
|
||||
@@ -125,12 +129,12 @@ body.dark-theme .auth-links a { color: var(--blue); }
|
||||
transition: box-shadow var(--transition), transform var(--transition);
|
||||
}
|
||||
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
|
||||
.stat-card .stat-icon { font-size: 24px; margin-bottom: 4px; }
|
||||
.stat-card .stat-value { font-size: 26px; font-weight: 700; color: var(--navy); line-height: 1; }
|
||||
.stat-card .stat-label { font-size: 12px; color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.4px; }
|
||||
.stat-card.accent-blue { border-left: 4px solid var(--blue); }
|
||||
.stat-card.accent-orange{ border-left: 4px solid var(--orange); }
|
||||
.stat-card.accent-green { border-left: 4px solid var(--success); }
|
||||
.stat-card .stat-icon { font-size: 22px; margin-bottom: 4px; color: var(--muted); }
|
||||
.stat-card .stat-value, .stat-card .stat-val { font-family: var(--font-mono); font-size: 27px; font-weight: 600; color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums; }
|
||||
.stat-card .stat-label, .stat-card .stat-title { font-size: 11.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
|
||||
.stat-card.accent-blue { border-left: 3px solid var(--emerald); }
|
||||
.stat-card.accent-orange{ border-left: 3px solid var(--brass); }
|
||||
.stat-card.accent-green { border-left: 3px solid var(--success); }
|
||||
|
||||
/* ── Tab Bar ─────────────────────────────────────────────── */
|
||||
.tab-bar {
|
||||
@@ -144,7 +148,7 @@ body.dark-theme .auth-links a { color: var(--blue); }
|
||||
.tab-bar::-webkit-scrollbar { display: none; }
|
||||
.tab-btn {
|
||||
padding: 12px 22px;
|
||||
font-family: inherit;
|
||||
font-family: var(--font-body);
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
color: var(--muted);
|
||||
@@ -157,8 +161,8 @@ body.dark-theme .auth-links a { color: var(--blue); }
|
||||
white-space: nowrap;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.tab-btn:hover { color: var(--navy); }
|
||||
.tab-btn.active { color: var(--blue); border-bottom-color: var(--blue); font-weight: 600; }
|
||||
.tab-btn:hover { color: var(--ink); }
|
||||
.tab-btn.active { color: var(--emerald); border-bottom-color: var(--brass); font-weight: 600; }
|
||||
.tab-panel { display: none; }
|
||||
.tab-panel.active{ display: block; animation: fadeIn 0.25s ease; }
|
||||
|
||||
@@ -175,34 +179,34 @@ body.dark-theme .auth-links a { color: var(--blue); }
|
||||
transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
|
||||
position: relative;
|
||||
}
|
||||
.user-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #c5d9ee; }
|
||||
.user-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #cfc7ad; }
|
||||
.click-layer { position: absolute; inset: 0; z-index: 0; }
|
||||
.user-top { display: flex; align-items: center; gap: 14px; min-width: 0; }
|
||||
.user-avatar {
|
||||
width: 46px; height: 46px; border-radius: 50%;
|
||||
background: linear-gradient(135deg, var(--header-bg), var(--blue-light));
|
||||
width: 44px; height: 44px; border-radius: 50%;
|
||||
background: var(--emerald);
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
font-weight: 700; font-size: 17px; color: var(--navy);
|
||||
flex-shrink: 0; border: 2px solid rgba(0,119,200,0.15);
|
||||
font-weight: 700; font-size: 16px; color: #fff;
|
||||
flex-shrink: 0; font-family: var(--font-display);
|
||||
}
|
||||
.user-info { min-width: 0; flex: 1; }
|
||||
.user-info .u-name { font-weight: 600; color: var(--navy); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||||
.user-info .u-name { font-weight: 600; color: var(--ink); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||||
.user-info .u-email { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
|
||||
.user-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; position: relative; z-index: 10; flex-wrap: wrap; }
|
||||
|
||||
/* ── Role Controls ───────────────────────────────────────── */
|
||||
.role-controls { display: flex; align-items: center; gap: 8px; position: relative; z-index: 10; }
|
||||
.role-select { padding: 6px 10px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: 13px; font-family: inherit; cursor: pointer; background: #fff; flex: 1; transition: border-color var(--transition); }
|
||||
.role-select:focus { outline: none; border-color: var(--blue); }
|
||||
.role-save-btn { padding: 6px 14px; background: var(--blue); color: #fff; border: none; border-radius: var(--radius-sm); font-size: 12px; font-weight: 600; cursor: pointer; transition: background var(--transition); white-space: nowrap; }
|
||||
.role-save-btn:hover { background: var(--blue-dark); }
|
||||
.role-select { padding: 6px 10px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: 13px; font-family: var(--font-body); cursor: pointer; background: #fff; flex: 1; transition: border-color var(--transition); }
|
||||
.role-select:focus { outline: none; border-color: var(--emerald); }
|
||||
.role-save-btn { padding: 6px 14px; background: var(--emerald); color: #fff; border: none; border-radius: var(--radius-sm); font-size: 12px; font-weight: 600; cursor: pointer; transition: background var(--transition); white-space: nowrap; }
|
||||
.role-save-btn:hover { background: var(--emerald-dark); }
|
||||
|
||||
/* ── Info Card (User Detail) ─────────────────────────────── */
|
||||
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
|
||||
@media (max-width: 640px) { .info-grid { grid-template-columns: 1fr; } }
|
||||
.info-item { display: flex; flex-direction: column; gap: 3px; }
|
||||
.info-item .info-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); font-weight: 600; }
|
||||
.info-item .info-value { font-size: 15px; font-weight: 500; color: var(--navy); }
|
||||
.info-item .info-value { font-size: 15px; font-weight: 500; color: var(--ink); }
|
||||
|
||||
/* ── Document Row ────────────────────────────────────────── */
|
||||
.doc-row {
|
||||
@@ -212,19 +216,19 @@ body.dark-theme .auth-links a { color: var(--blue); }
|
||||
padding: 14px 16px;
|
||||
border-radius: var(--radius-sm);
|
||||
border: 1px solid var(--border);
|
||||
background: #fafcff;
|
||||
transition: border-color var(--transition), background var(--transition);
|
||||
background: var(--paper);
|
||||
transition: border-color var(--transition), background var(--transition), transform var(--transition), box-shadow var(--transition);
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.doc-row:hover { border-color: #c5d9ee; background: var(--blue-light); }
|
||||
.doc-row:hover { border-color: #cfc7ad; background: #fff; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(23,33,29,0.06); }
|
||||
.doc-row-left { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
|
||||
.doc-row-name { font-weight: 600; font-size: 13px; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||||
.doc-row-name { font-weight: 600; font-size: 13px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||||
.doc-row-type { font-size: 12px; color: var(--muted); }
|
||||
.doc-row-actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
|
||||
|
||||
/* ── Drop Zone ───────────────────────────────────────────── */
|
||||
.drop-zone {
|
||||
border: 2px dashed #b8cfdf;
|
||||
border: 2px dashed #cfc7ad;
|
||||
border-radius: var(--radius-md);
|
||||
padding: 36px 24px;
|
||||
text-align: center;
|
||||
@@ -233,12 +237,12 @@ body.dark-theme .auth-links a { color: var(--blue); }
|
||||
cursor: pointer;
|
||||
}
|
||||
.drop-zone:hover, .drop-zone.drag-over {
|
||||
border-color: var(--blue);
|
||||
background: var(--blue-light);
|
||||
color: var(--blue);
|
||||
border-color: var(--emerald);
|
||||
background: var(--emerald-light);
|
||||
color: var(--emerald);
|
||||
}
|
||||
.drop-zone .drop-icon { font-size: 36px; margin-bottom: 10px; }
|
||||
.drop-zone .drop-title { font-weight: 600; font-size: 15px; color: var(--navy); }
|
||||
.drop-zone .drop-icon { font-size: 34px; margin-bottom: 10px; }
|
||||
.drop-zone .drop-title { font-weight: 600; font-size: 15px; color: var(--ink); }
|
||||
.drop-zone .drop-hint { font-size: 13px; margin-top: 4px; }
|
||||
|
||||
/* ── Search Bar ──────────────────────────────────────────── */
|
||||
@@ -253,7 +257,7 @@ body.dark-theme .auth-links a { color: var(--blue); }
|
||||
transition: border-color var(--transition), box-shadow var(--transition);
|
||||
max-width: 360px;
|
||||
}
|
||||
.search-bar:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,119,200,0.10); }
|
||||
.search-bar:focus-within { border-color: var(--emerald); box-shadow: 0 0 0 3px rgba(31,93,70,0.10); }
|
||||
.search-bar input { border: none; outline: none; font-family: inherit; font-size: 14px; width: 100%; background: transparent; }
|
||||
.search-bar .search-icon { color: var(--muted); font-size: 16px; flex-shrink: 0; }
|
||||
|
||||
@@ -262,7 +266,7 @@ body.dark-theme .auth-links a { color: var(--blue); }
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
background: var(--bg);
|
||||
background: var(--paper);
|
||||
border-radius: var(--radius-sm);
|
||||
padding: 10px 16px;
|
||||
width: fit-content;
|
||||
@@ -278,32 +282,24 @@ body.dark-theme .auth-links a { color: var(--blue); }
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
transition: border-color var(--transition), background var(--transition);
|
||||
}
|
||||
.timeline-control .tl-btn:hover { border-color: var(--blue); background: var(--blue-light); color: var(--blue); }
|
||||
.timeline-control .tl-value { font-size: 20px; font-weight: 700; color: var(--navy); min-width: 32px; text-align: center; }
|
||||
.timeline-control .tl-btn:hover { border-color: var(--emerald); background: var(--emerald-light); color: var(--emerald); }
|
||||
.timeline-control .tl-value { font-family: var(--font-mono); font-size: 20px; font-weight: 600; color: var(--ink); min-width: 32px; text-align: center; }
|
||||
.timeline-control .tl-label { font-size: 12px; color: var(--muted); }
|
||||
|
||||
/* ── Approval Table ──────────────────────────────────────── */
|
||||
.approval-table { width: 100%; border-collapse: collapse; }
|
||||
.approval-table th, .approval-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: 13px; }
|
||||
.approval-table th { background: #f5f8fb; font-weight: 600; color: var(--muted); text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 0.4px; }
|
||||
.approval-table th { background: var(--paper); font-weight: 600; color: var(--muted); text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.4px; }
|
||||
.approval-table tr:last-child td { border-bottom: none; }
|
||||
.approval-table tr:hover td { background: #fafcff; }
|
||||
.approval-table tr:hover td { background: var(--paper); }
|
||||
|
||||
/* ── Toggle Switch (approve/reject) ─────────────────────── */
|
||||
.review-toggle {
|
||||
display: flex;
|
||||
gap: 6px;
|
||||
}
|
||||
.review-toggle { display: flex; gap: 6px; }
|
||||
.review-toggle label {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 5px;
|
||||
padding: 5px 12px;
|
||||
border-radius: var(--radius-pill);
|
||||
display: flex; align-items: center; gap: 5px;
|
||||
padding: 5px 12px; border-radius: var(--radius-pill);
|
||||
border: 1.5px solid var(--border);
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
font-size: 12px; font-weight: 600; cursor: pointer;
|
||||
transition: all var(--transition);
|
||||
}
|
||||
.review-toggle input[type=checkbox] { display: none; }
|
||||
@@ -319,166 +315,543 @@ body.dark-theme .auth-links a { color: var(--blue); }
|
||||
gap: 16px;
|
||||
padding: 16px 20px;
|
||||
border-radius: var(--radius-md);
|
||||
background: linear-gradient(90deg, #e3f2fd, #f0f9ff);
|
||||
border: 1px solid #b3d9f5;
|
||||
background: var(--emerald-light);
|
||||
border: 1px solid rgba(31,93,70,0.2);
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
.engagement-banner .banner-icon { font-size: 28px; flex-shrink: 0; }
|
||||
.engagement-banner .banner-icon { font-size: 26px; flex-shrink: 0; color: var(--emerald); }
|
||||
.engagement-banner .banner-text { flex: 1; }
|
||||
.engagement-banner .banner-text strong { display: block; font-size: 14px; color: var(--navy); }
|
||||
.engagement-banner .banner-text strong { display: block; font-size: 14px; color: var(--ink); }
|
||||
.engagement-banner .banner-text span { font-size: 13px; color: var(--muted); }
|
||||
.engagement-banner.acknowledged { background: var(--success-bg); border-color: #a5d6a7; }
|
||||
.engagement-banner.acknowledged { background: var(--success-bg); border-color: rgba(31,93,70,0.25); }
|
||||
|
||||
/* ── Empty State ─────────────────────────────────────────── */
|
||||
.empty-state {
|
||||
padding: 48px 24px;
|
||||
text-align: center;
|
||||
color: var(--muted);
|
||||
background: var(--paper);
|
||||
border: 1px dashed var(--border);
|
||||
border-radius: var(--radius-md);
|
||||
}
|
||||
.empty-state .empty-icon { font-size: 42px; margin-bottom: 12px; opacity: 0.6; }
|
||||
.empty-state .empty-title { font-size: 15px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
|
||||
.empty-state .empty-icon { font-size: 40px; margin-bottom: 12px; opacity: 0.5; color: var(--muted); }
|
||||
.empty-state .empty-title { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
|
||||
.empty-state .empty-hint { font-size: 13px; }
|
||||
|
||||
/* ── Marketing Navbar ────────────────────────────────────── */
|
||||
.mkt-navbar {
|
||||
position: absolute;
|
||||
top: 0; left: 0;
|
||||
width: 100%;
|
||||
z-index: 20;
|
||||
}
|
||||
.mkt-nav-inner {
|
||||
width: min(1200px, 96%);
|
||||
margin: auto;
|
||||
padding: 18px 12px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.mkt-nav-logo { height: clamp(38px,5vw,54px); object-fit: contain; }
|
||||
.mkt-nav-menu { display: flex; gap: 32px; align-items: center; }
|
||||
.mkt-nav-menu a { color: #fff; font-size: 15px; font-weight: 500; text-decoration: none; transition: color var(--transition); }
|
||||
.mkt-nav-menu a:hover { color: #FFD28C; }
|
||||
.mkt-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
|
||||
.mkt-hamburger span { width: 26px; height: 2.5px; background: #fff; border-radius: 2px; }
|
||||
.table-responsive { overflow-x: auto; }
|
||||
.admin-table { width: 100%; border-collapse: collapse; }
|
||||
.admin-table th, .admin-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); font-size: 13px; }
|
||||
.admin-table th { background: var(--paper); font-weight: 600; color: var(--muted); text-transform: uppercase; font-size: 11.5px; letter-spacing: 0.5px; }
|
||||
.admin-table tr:last-child td { border-bottom: none; }
|
||||
.admin-table tr:hover td { background: var(--paper); }
|
||||
|
||||
/* ── Chatbot Footer ─────────────────────────────────────── */
|
||||
.chatbot-footer {
|
||||
padding: 16px;
|
||||
border-top: 1px solid var(--border);
|
||||
background: var(--paper);
|
||||
text-align: center;
|
||||
font-size: 13px;
|
||||
color: var(--muted);
|
||||
border-radius: 0 0 var(--radius-md) var(--radius-md);
|
||||
}
|
||||
|
||||
.search-wrap { position: relative; display: flex; align-items: center; }
|
||||
|
||||
/* ── JS-extracted components (upload/review) ─────────────── */
|
||||
.doc-row-wrapper { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
|
||||
.btn-approve { background: var(--success-bg); color: var(--success); border: 1px solid rgba(31,93,70,0.3); border-radius: var(--radius-sm); }
|
||||
.btn-reject { background: var(--error-bg); color: var(--error); border: 1px solid rgba(166,58,58,0.3); border-radius: var(--radius-sm); }
|
||||
.reject-box { display: none; margin-top: 10px; }
|
||||
.reject-textarea { width: 100%; padding: 10px; border-radius: var(--radius-sm); border: 1.5px solid var(--border); font-family: inherit; font-size: 13px; resize: vertical; }
|
||||
.admin-doc-actions { display: flex; gap: 8px; flex-shrink: 0; }
|
||||
.admin-docs-table { width: 100%; border-collapse: collapse; font-size: 13px; }
|
||||
.admin-docs-td { padding: 10px 12px; color: #3E463F; }
|
||||
.admin-docs-th { padding: 10px 12px; color: var(--muted); font-weight: 600; text-align: left; border-bottom: 2px solid var(--border); }
|
||||
.btn-download-pill { background: var(--emerald); color: #fff; border: none; border-radius: var(--radius-sm); font-weight: 500; }
|
||||
.btn-download-pill:hover { opacity: 0.9; }
|
||||
.btn-upload-pill { background: var(--brass); color: #fff; border: none; border-radius: var(--radius-sm); font-weight: 500; cursor: pointer; padding: 8px 16px; display: inline-flex; align-items: center; gap: 8px; }
|
||||
.btn-upload-pill:hover { opacity: 0.9; }
|
||||
|
||||
/* ── Dark theme overrides for the above ─────────────────── */
|
||||
body.dark-theme .app-header { background: var(--header-bg); border-color: var(--border); }
|
||||
body.dark-theme .admin-table th { background: var(--card); }
|
||||
body.dark-theme .chatbot-footer { background: var(--card); border-color: var(--border); }
|
||||
body.dark-theme .doc-row, body.dark-theme .stat-card, body.dark-theme .user-card { background: var(--card); }
|
||||
body.dark-theme .search-bar, body.dark-theme .role-select { background: var(--card); color: var(--navy); }
|
||||
body.dark-theme .search-bar input { color: var(--navy); }
|
||||
|
||||
|
||||
/* ============================================================
|
||||
RESPONSIVE IMPROVEMENTS — Multi-screen support
|
||||
Breakpoints: 480px (xs), 640px (sm), 768px (md), 1024px (lg)
|
||||
============================================================ */
|
||||
|
||||
/* ── Admin Dashboard — users grid ───────────────────────── */
|
||||
.users-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
|
||||
gap: 16px;
|
||||
margin-top: 4px;
|
||||
}
|
||||
@media (max-width: 640px) {
|
||||
.users-grid {
|
||||
grid-template-columns: 1fr;
|
||||
gap: 12px;
|
||||
}
|
||||
}
|
||||
|
||||
/* ── Admin Stats — 4 cards on desktop, 2x2 on tablet, 1 col on mobile ── */
|
||||
@media (max-width: 900px) {
|
||||
.mkt-nav-menu {
|
||||
display: none;
|
||||
position: absolute;
|
||||
top: 72px; left: 0;
|
||||
.admin-stats {
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
}
|
||||
}
|
||||
@media (max-width: 480px) {
|
||||
.admin-stats {
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 10px;
|
||||
}
|
||||
.stat-card {
|
||||
padding: 14px 16px;
|
||||
}
|
||||
.stat-card .stat-value,
|
||||
.stat-card .stat-val {
|
||||
font-size: 22px;
|
||||
}
|
||||
}
|
||||
|
||||
/* ── App Header — collapse actions on small screens ─────── */
|
||||
@media (max-width: 480px) {
|
||||
.app-header {
|
||||
padding: 0 14px;
|
||||
height: 58px;
|
||||
gap: 10px;
|
||||
}
|
||||
.app-header .logo {
|
||||
height: 28px;
|
||||
}
|
||||
.header-actions {
|
||||
gap: 6px;
|
||||
}
|
||||
.header-actions .btn {
|
||||
padding: 6px 10px;
|
||||
font-size: 12px;
|
||||
}
|
||||
.header-actions .btn-sm {
|
||||
padding: 5px 8px;
|
||||
font-size: 11px;
|
||||
}
|
||||
}
|
||||
|
||||
/* ── Page Heading — stack on mobile ─────────────────────── */
|
||||
@media (max-width: 640px) {
|
||||
.page-heading {
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
gap: 10px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
.page-heading h1 {
|
||||
font-size: clamp(20px, 5vw, 26px);
|
||||
}
|
||||
}
|
||||
|
||||
/* ── Tab Bar — tighten padding on small screens ──────────── */
|
||||
@media (max-width: 640px) {
|
||||
.tab-btn {
|
||||
padding: 10px 14px;
|
||||
font-size: 13px;
|
||||
}
|
||||
}
|
||||
@media (max-width: 400px) {
|
||||
.tab-btn {
|
||||
padding: 8px 10px;
|
||||
font-size: 12px;
|
||||
}
|
||||
}
|
||||
|
||||
/* ── User Card bottom badges — wrap cleanly ─────────────── */
|
||||
.user-bottom {
|
||||
flex-wrap: wrap;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
/* ── Document slots — reflow on mobile ──────────────────── */
|
||||
@media (max-width: 640px) {
|
||||
.doc-slot {
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
gap: 10px;
|
||||
padding: 12px 14px;
|
||||
}
|
||||
.doc-slot-actions {
|
||||
width: 100%;
|
||||
background: var(--navy);
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 8px;
|
||||
}
|
||||
}
|
||||
|
||||
/* ── Admin Table — readable on small screens ─────────────── */
|
||||
@media (max-width: 768px) {
|
||||
.admin-table th,
|
||||
.admin-table td {
|
||||
padding: 10px 10px;
|
||||
font-size: 12px;
|
||||
}
|
||||
}
|
||||
@media (max-width: 480px) {
|
||||
.admin-table th,
|
||||
.admin-table td {
|
||||
padding: 8px 8px;
|
||||
font-size: 11px;
|
||||
}
|
||||
/* Hide less-important columns on very small screens */
|
||||
.admin-table .col-hide-xs {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
/* ── Card & Card-flat — reduce padding on mobile ────────── */
|
||||
@media (max-width: 480px) {
|
||||
.card {
|
||||
padding: 16px;
|
||||
}
|
||||
.card-flat {
|
||||
padding: 14px;
|
||||
}
|
||||
}
|
||||
|
||||
/* ── Page main widths — full bleed on small screens ──────── */
|
||||
@media (max-width: 640px) {
|
||||
.page-main,
|
||||
.page-main-wide {
|
||||
padding: 0 12px;
|
||||
margin-top: 20px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
}
|
||||
|
||||
/* ── Admin User Detail — user info bar ──────────────────── */
|
||||
@media (max-width: 768px) {
|
||||
/* the user info bar flex row */
|
||||
.card > div[style*="justify-content:space-between"] {
|
||||
flex-direction: column;
|
||||
align-items: flex-start !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* ── Upload pages — tax year selector row ────────────────── */
|
||||
@media (max-width: 640px) {
|
||||
/* page-heading flex row with year selector */
|
||||
.page-heading > div:last-child {
|
||||
align-self: flex-start;
|
||||
}
|
||||
}
|
||||
|
||||
/* ── Timeline control — center on mobile ────────────────── */
|
||||
@media (max-width: 640px) {
|
||||
.timeline-control {
|
||||
width: 100%;
|
||||
justify-content: center;
|
||||
}
|
||||
}
|
||||
|
||||
/* ── Toast — full width on mobile ───────────────────────── */
|
||||
@media (max-width: 480px) {
|
||||
.toast-container {
|
||||
left: 12px;
|
||||
right: 12px;
|
||||
transform: none;
|
||||
bottom: 16px;
|
||||
}
|
||||
.toast {
|
||||
min-width: unset;
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
/* ── Chatbot FAB — smaller on mobile ────────────────────── */
|
||||
@media (max-width: 480px) {
|
||||
.chatbot-fab {
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
bottom: 16px;
|
||||
right: 16px;
|
||||
font-size: 20px;
|
||||
}
|
||||
.chatbot-window {
|
||||
width: calc(100vw - 24px);
|
||||
right: 12px;
|
||||
bottom: 76px;
|
||||
}
|
||||
}
|
||||
|
||||
/* ── Auth shell — improve narrow portrait phones ────────── */
|
||||
@media (max-width: 400px) {
|
||||
.auth-form-side {
|
||||
padding: 20px 16px;
|
||||
}
|
||||
.auth-box {
|
||||
max-width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
/* ── Marketing Navbar — tighter on 768px tablets ────────── */
|
||||
@media (max-width: 768px) {
|
||||
.nav-container {
|
||||
padding: 14px 12px;
|
||||
}
|
||||
}
|
||||
|
||||
/* ── Services / About page blocks — better mobile spacing ── */
|
||||
@media (max-width: 640px) {
|
||||
.about-wrapper,
|
||||
.services-wrapper {
|
||||
margin: 48px auto;
|
||||
gap: 28px;
|
||||
}
|
||||
.about-block,
|
||||
.service-block {
|
||||
padding: 18px;
|
||||
}
|
||||
}
|
||||
|
||||
/* ── Contact page — full-width form on mobile ───────────── */
|
||||
@media (max-width: 640px) {
|
||||
.contact-container {
|
||||
flex-direction: column;
|
||||
}
|
||||
.contact-info,
|
||||
.contact-form {
|
||||
flex: 1 1 100%;
|
||||
width: 100%;
|
||||
}
|
||||
.form-row {
|
||||
flex-direction: column;
|
||||
gap: 0;
|
||||
padding: 8px 0 20px;
|
||||
}
|
||||
.mkt-nav-menu a { padding: 12px 28px; width: 100%; }
|
||||
.mkt-nav-menu.open { display: flex; }
|
||||
.mkt-hamburger { display: flex; }
|
||||
}
|
||||
|
||||
/* ── Marketing Footer ────────────────────────────────────── */
|
||||
.mkt-footer { background: var(--header-bg); border-top: 4px solid var(--blue); margin-top: auto; }
|
||||
.mkt-footer-top {
|
||||
width: min(1200px, 92%);
|
||||
margin: auto;
|
||||
padding: 40px 0;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
gap: 40px;
|
||||
flex-wrap: wrap;
|
||||
/* ── Footer — stack on mobile ───────────────────────────── */
|
||||
@media (max-width: 640px) {
|
||||
.footer-top,
|
||||
.mkt-footer-top {
|
||||
flex-direction: column;
|
||||
gap: 28px;
|
||||
padding: 36px 0 28px;
|
||||
}
|
||||
}
|
||||
.mkt-footer-logo { width: clamp(120px,20vw,160px); }
|
||||
.mkt-footer-links { display: flex; flex-direction: column; gap: 8px; }
|
||||
.mkt-footer-links h4 { color: var(--blue); margin-bottom: 4px; font-size: 14px; }
|
||||
.mkt-footer-links a { color: var(--navy); font-size: 14px; font-weight: 500; transition: color var(--transition); }
|
||||
.mkt-footer-links a:hover { color: var(--blue); }
|
||||
.mkt-footer-bottom { background: var(--footer-bot); text-align: center; padding: 12px; font-size: 13px; color: #555; }
|
||||
|
||||
/* --- JS Extracted Components --- */
|
||||
/* ── Expandable summary block (AI summaries) ─────────────── */
|
||||
@media (max-width: 640px) {
|
||||
/* give AI summary blocks full width */
|
||||
div[style*="blue-light"] {
|
||||
padding: 10px !important;
|
||||
}
|
||||
}
|
||||
|
||||
.doc-row-wrapper {
|
||||
/* ── Global touch targets — ensure 44px min on mobile ───── */
|
||||
@media (max-width: 768px) {
|
||||
.btn-sm {
|
||||
min-height: 36px;
|
||||
}
|
||||
.tab-btn {
|
||||
min-height: 42px;
|
||||
}
|
||||
select,
|
||||
.select-input,
|
||||
.input {
|
||||
min-height: 42px;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* ============================================================
|
||||
ADMIN USER DETAIL — Responsive layout classes
|
||||
Replaces all inline flex styles that couldn't be overridden
|
||||
============================================================ */
|
||||
|
||||
/* ── User info bar ───────────────────────────────────────── */
|
||||
.aud-bar-inner {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 12px;
|
||||
flex-wrap: wrap;
|
||||
gap: 16px;
|
||||
}
|
||||
.aud-bar-left {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 16px;
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
}
|
||||
.aud-bar-actions {
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.aud-year-picker {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-end;
|
||||
gap: 4px;
|
||||
padding-left: 16px;
|
||||
border-left: 1px solid var(--border);
|
||||
}
|
||||
|
||||
@media (max-width: 640px) {
|
||||
.aud-bar-inner {
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
}
|
||||
.aud-bar-left {
|
||||
width: 100%;
|
||||
}
|
||||
.aud-bar-actions {
|
||||
width: 100%;
|
||||
flex-wrap: wrap;
|
||||
gap: 8px;
|
||||
}
|
||||
.aud-year-picker {
|
||||
align-items: flex-start;
|
||||
border-left: none;
|
||||
border-top: 1px solid var(--border);
|
||||
padding-left: 0;
|
||||
padding-top: 10px;
|
||||
width: 100%;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
.aud-year-picker label {
|
||||
white-space: nowrap;
|
||||
}
|
||||
.aud-year-picker select {
|
||||
flex: 1;
|
||||
}
|
||||
}
|
||||
|
||||
/* ── Doc review layout (main + sidebar) ─────────────────── */
|
||||
.doc-review-layout {
|
||||
display: flex;
|
||||
gap: 20px;
|
||||
align-items: flex-start;
|
||||
}
|
||||
.doc-review-main {
|
||||
flex: 2;
|
||||
min-width: 0; /* prevents flex child from overflowing */
|
||||
}
|
||||
.doc-review-sidebar {
|
||||
flex: 0 0 240px; /* fixed 240px sidebar, doesn't shrink */
|
||||
width: 240px;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.doc-review-layout {
|
||||
flex-direction: column;
|
||||
}
|
||||
.doc-review-sidebar {
|
||||
flex: unset;
|
||||
width: 100%;
|
||||
order: -1; /* show Filing Timeline ABOVE the doc list on mobile */
|
||||
}
|
||||
.doc-review-sidebar .card-flat {
|
||||
flex-direction: row !important;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
gap: 12px;
|
||||
}
|
||||
.doc-review-sidebar h3 {
|
||||
width: 100%;
|
||||
margin-bottom: 0 !important;
|
||||
}
|
||||
.doc-review-sidebar .timeline-control {
|
||||
flex: 1;
|
||||
}
|
||||
.doc-review-sidebar .btn {
|
||||
flex: 1;
|
||||
min-width: 180px;
|
||||
}
|
||||
}
|
||||
|
||||
/* ── Individual doc review row ──────────────────────────── */
|
||||
.doc-review-row {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
padding: 14px 0;
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
.doc-review-row:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
.doc-review-row-top {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 16px;
|
||||
}
|
||||
.doc-review-info {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
}
|
||||
.doc-review-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
flex-shrink: 0;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.btn-approve {
|
||||
background: var(--success-bg);
|
||||
color: var(--success);
|
||||
border: 1px solid #a5d6a7;
|
||||
border-radius: var(--radius-pill);
|
||||
@media (max-width: 520px) {
|
||||
.doc-review-row-top {
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
}
|
||||
.doc-review-actions {
|
||||
width: 100%;
|
||||
justify-content: flex-start;
|
||||
}
|
||||
.doc-review-actions .btn {
|
||||
flex: 1;
|
||||
min-width: 70px;
|
||||
justify-content: center;
|
||||
}
|
||||
}
|
||||
|
||||
.btn-reject {
|
||||
background: var(--error-bg);
|
||||
color: var(--error);
|
||||
border: 1px solid #ef9a9a;
|
||||
border-radius: var(--radius-pill);
|
||||
}
|
||||
|
||||
.reject-box {
|
||||
display: none;
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
.reject-textarea {
|
||||
width: 100%;
|
||||
padding: 10px;
|
||||
/* ── AI Summary block ────────────────────────────────────── */
|
||||
.ai-summary-block {
|
||||
padding: 12px;
|
||||
background-color: var(--blue-light);
|
||||
border-radius: var(--radius-sm);
|
||||
border: 1.5px solid var(--border);
|
||||
font-family: inherit;
|
||||
font-size: 13px;
|
||||
resize: vertical;
|
||||
border: 1px solid var(--border);
|
||||
width: 100%;
|
||||
margin-top: 4px;
|
||||
}
|
||||
|
||||
.admin-doc-actions {
|
||||
.ai-summary-label {
|
||||
font-size: 11px;
|
||||
font-weight: 700;
|
||||
color: var(--emerald);
|
||||
margin-bottom: 8px;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.5px;
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
flex-shrink: 0;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.admin-docs-table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.admin-docs-td {
|
||||
padding: 10px 12px;
|
||||
color: #444;
|
||||
}
|
||||
|
||||
.admin-docs-th {
|
||||
padding: 10px 12px;
|
||||
color: #555;
|
||||
font-weight: 500;
|
||||
text-align: left;
|
||||
border-bottom: 2px solid var(--border);
|
||||
}
|
||||
|
||||
/* -- Pill Buttons for Document Actions ----------------------- */
|
||||
.btn-download-pill {
|
||||
background: var(--blue);
|
||||
color: #fff;
|
||||
border: none;
|
||||
border-radius: var(--radius-sm);
|
||||
font-weight: 500;
|
||||
}
|
||||
.btn-download-pill:hover {
|
||||
opacity: 0.9;
|
||||
}
|
||||
|
||||
.btn-upload-pill {
|
||||
background: var(--orange);
|
||||
color: #fff;
|
||||
border: none;
|
||||
border-radius: var(--radius-sm);
|
||||
font-weight: 500;
|
||||
cursor: pointer;
|
||||
}
|
||||
.btn-upload-pill:hover {
|
||||
opacity: 0.9;
|
||||
/* ── Doc count chips — user info bar ────────────────────── */
|
||||
.doc-count-chip {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
font-size: 12px;
|
||||
font-family: var(--font-mono);
|
||||
background: var(--paper);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius-xs);
|
||||
padding: 3px 8px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
+434
-1170
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user