BillTracker/client/index.css

255 lines
6.5 KiB
CSS
Raw Normal View History

2026-05-03 19:51:57 -05:00
/* ============================================================
Bill Tracker Material Design theme via shadcn/studio
:root is the default Material Design light theme.
============================================================ */
2026-05-28 04:06:37 -05:00
/* ── Georgia for digits only ─────────────────────────────── */
@font-face {
font-family: 'GeorgiaDigits';
src: local('Georgia');
2026-05-28 04:20:15 -05:00
unicode-range:
U+0030-U+0039, /* 09 */
U+002C, /* , thousands separator */
U+002E, /* . decimal point */
U+002D, /* - minus / hyphen */
U+002B, /* + plus */
U+0025, /* % percent */
U+0024, /* $ dollar */
U+00A2, /* ¢ cent */
U+00A3, /* £ pound */
U+00A5, /* ¥ yen */
U+20AC; /* € euro */
2026-05-28 04:06:37 -05:00
}
2026-05-03 19:51:57 -05:00
/* ── Tailwind base ───────────────────────────────────────── */
@tailwind base;
@tailwind components;
@tailwind utilities;
@layer base {
:root {
2026-05-28 01:30:40 -05:00
--background: 0.97 0.005 250;
--foreground: 0.15 0.008 250;
--card: 1.00 0 0;
--card-foreground: 0.15 0.008 250;
--popover: 1.00 0 0;
--popover-foreground: 0.15 0.008 250;
--primary: 0.55 0.20 276;
--primary-foreground: 0.99 0.003 250;
--secondary: 0.93 0.008 250;
--secondary-foreground: 0.20 0.010 250;
--muted: 0.94 0.006 250;
--muted-foreground: 0.48 0.010 250;
--accent: 0.92 0.012 265;
--accent-foreground: 0.20 0.010 250;
--destructive: 0.55 0.22 25;
--destructive-foreground: 0.99 0.003 250;
--border: 0.88 0.008 250;
--input: 0.88 0.008 250;
--ring: 0.55 0.16 276;
--chart-1: 0.55 0.22 270;
--chart-2: 0.55 0.14 150;
--chart-3: 0.60 0.18 310;
--chart-4: 0.58 0.16 130;
--chart-5: 0.55 0.18 255;
--sidebar: 0.94 0.007 250;
--sidebar-foreground: 0.20 0.008 250;
--sidebar-primary: 0.55 0.20 276;
--sidebar-primary-foreground: 0.99 0.003 250;
--sidebar-accent: 0.90 0.009 250;
--sidebar-accent-foreground: 0.20 0.008 250;
--sidebar-border: 0.88 0.008 250;
--sidebar-ring: 0.55 0.20 276;
2026-05-28 04:06:37 -05:00
--font-sans: 'GeorgiaDigits', Roboto, Inter, ui-sans-serif, system-ui, sans-serif;
2026-05-28 04:20:15 -05:00
--font-serif: 'GeorgiaDigits', Merriweather, Georgia, serif;
--font-mono: 'GeorgiaDigits', "Roboto Mono", ui-monospace, SFMono-Regular, monospace;
2026-05-03 19:51:57 -05:00
--radius: 1rem;
}
.dark {
2026-05-28 19:58:01 -05:00
--background: 0.165 0.014 245;
2026-05-28 19:40:55 -05:00
--foreground: 0.95 0.006 245;
2026-05-28 19:58:01 -05:00
--card: 0.225 0.014 245;
2026-05-28 19:40:55 -05:00
--card-foreground: 0.95 0.006 245;
2026-05-28 19:58:01 -05:00
--popover: 0.25 0.016 245;
2026-05-28 19:40:55 -05:00
--popover-foreground: 0.95 0.006 245;
2026-05-28 19:58:01 -05:00
--primary: 0.69 0.18 150;
2026-05-28 19:40:55 -05:00
--primary-foreground: 0.14 0.018 150;
2026-05-28 19:58:01 -05:00
--secondary: 0.265 0.016 245;
2026-05-28 19:40:55 -05:00
--secondary-foreground: 0.92 0.007 245;
2026-05-28 19:58:01 -05:00
--muted: 0.255 0.014 245;
--muted-foreground: 0.70 0.014 245;
--accent: 0.295 0.035 158;
2026-05-28 19:40:55 -05:00
--accent-foreground: 0.95 0.006 245;
--destructive: 0.66 0.18 26;
2026-05-28 19:30:46 -05:00
--destructive-foreground: 0.98 0.004 245;
2026-05-28 19:58:01 -05:00
--border: 0.36 0.018 245;
2026-05-28 19:40:55 -05:00
--input: 0.36 0.018 245;
2026-05-28 19:58:01 -05:00
--ring: 0.69 0.16 150;
2026-05-28 01:30:40 -05:00
--chart-1: 0.55 0.22 270;
--chart-2: 0.62 0.14 150;
--chart-3: 0.65 0.18 310;
--chart-4: 0.62 0.16 130;
--chart-5: 0.58 0.18 255;
2026-05-28 19:58:01 -05:00
--sidebar: 0.18 0.014 245;
2026-05-28 19:40:55 -05:00
--sidebar-foreground: 0.93 0.006 245;
2026-05-28 19:58:01 -05:00
--sidebar-primary: 0.69 0.18 150;
2026-05-28 19:40:55 -05:00
--sidebar-primary-foreground: 0.14 0.018 150;
2026-05-28 19:58:01 -05:00
--sidebar-accent: 0.275 0.030 158;
2026-05-28 19:40:55 -05:00
--sidebar-accent-foreground: 0.93 0.006 245;
--sidebar-border: 0.32 0.018 245;
2026-05-28 19:58:01 -05:00
--sidebar-ring: 0.69 0.16 150;
2026-05-03 19:51:57 -05:00
}
* {
@apply border-border;
}
html {
@apply scroll-smooth;
}
body {
@apply bg-background font-sans text-foreground antialiased;
letter-spacing: 0;
}
}
/* ── Utilities ───────────────────────────────────────────── */
@layer utilities {
/* Generic surface */
.surface {
2026-05-15 22:45:38 -05:00
@apply rounded-2xl border border-border/70 bg-card shadow-sm;
2026-05-03 19:51:57 -05:00
}
/* Elevated surface */
.surface-elevated {
@apply surface;
box-shadow:
0 1px 2px rgb(0 0 0 / 0.05),
2026-05-15 22:45:38 -05:00
0 6px 18px rgb(0 0 0 / 0.06);
2026-05-03 19:51:57 -05:00
}
.dark .surface-elevated {
box-shadow:
0 0 0 1px oklch(var(--border) / 0.7),
2026-05-15 22:45:38 -05:00
0 8px 22px rgb(0 0 0 / 0.55);
2026-05-03 19:51:57 -05:00
}
/* Stat cards */
.stat-card {
@apply surface-elevated p-6;
}
/* Table */
.table-surface {
@apply surface overflow-hidden shadow-sm;
}
/* Custom Scrollbar */
.scrollbar-thin {
scrollbar-width: thin;
}
.scrollbar-thumb-muted {
scrollbar-color: oklch(var(--muted) / 0.3) transparent;
}
.scrollbar-track-transparent {
scrollbar-color: oklch(var(--muted) / 0.3) transparent;
}
.scrollbar-thumb-muted::-webkit-scrollbar-thumb {
background-color: oklch(var(--muted) / 0.3);
border-radius: 8px;
}
.scrollbar-track-transparent::-webkit-scrollbar-track {
background-color: transparent;
}
.scrollbar-thumb-muted::-webkit-scrollbar-thumb:hover {
background-color: oklch(var(--muted) / 0.5);
}
2026-05-03 19:51:57 -05:00
}
2026-05-04 13:14:32 -05:00
@media print {
body {
background: white !important;
color: #111827 !important;
}
header,
.analytics-screen-header,
.analytics-controls,
2026-05-04 16:38:03 -05:00
.analytics-actions,
.summary-screen-header,
.summary-controls,
.summary-actions,
.summary-edit-actions,
.summary-income-form {
2026-05-04 13:14:32 -05:00
display: none !important;
}
main,
main > div {
max-width: none !important;
padding: 0 !important;
}
2026-05-04 16:38:03 -05:00
.analytics-page,
.summary-page {
2026-05-04 13:14:32 -05:00
color: #111827 !important;
}
.analytics-report-meta,
2026-05-04 16:38:03 -05:00
.analytics-print-footer,
.summary-print-meta,
.summary-print-footer {
2026-05-04 13:14:32 -05:00
display: block !important;
margin-bottom: 1rem;
}
2026-05-04 16:38:03 -05:00
.analytics-report-meta h1,
.summary-print-meta h1 {
2026-05-04 13:14:32 -05:00
font-size: 22px;
font-weight: 700;
margin-bottom: 0.25rem;
}
.analytics-report-meta p,
2026-05-04 16:38:03 -05:00
.analytics-print-footer,
.summary-print-meta p,
.summary-print-footer {
2026-05-04 13:14:32 -05:00
color: #4b5563 !important;
font-size: 12px;
margin: 0.125rem 0;
}
.analytics-range {
margin-bottom: 1rem;
}
2026-05-04 16:38:03 -05:00
.summary-page input {
border: 0 !important;
background: white !important;
box-shadow: none !important;
color: #111827 !important;
padding-left: 0 !important;
}
2026-05-04 13:14:32 -05:00
.analytics-chart-grid {
display: block !important;
}
2026-05-04 16:38:03 -05:00
.analytics-chart,
.summary-card,
.summary-chart-card {
2026-05-04 13:14:32 -05:00
break-inside: avoid;
page-break-inside: avoid;
margin-bottom: 1rem;
border: 1px solid #d1d5db !important;
box-shadow: none !important;
background: white !important;
}
}