First version mostly built
This commit is contained in:
parent
27bb45f7df
commit
99a3dbd73c
42 changed files with 9443 additions and 3338 deletions
894
src/themes/global.css
Normal file
894
src/themes/global.css
Normal file
|
|
@ -0,0 +1,894 @@
|
|||
@import './themes.css';
|
||||
|
||||
/* ============================================================================
|
||||
GLOBAL STYLES
|
||||
========================================================================== */
|
||||
|
||||
* { box-sizing: border-box; }
|
||||
|
||||
html, body, #root {
|
||||
height: 100%;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: var(--font-body);
|
||||
background: var(--bg);
|
||||
color: var(--fg);
|
||||
font-size: 14px;
|
||||
line-height: 1.5;
|
||||
transition: background var(--transition), color var(--transition);
|
||||
-webkit-font-smoothing: antialiased;
|
||||
}
|
||||
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
font-family: var(--font-display);
|
||||
margin: 0;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
a { color: var(--accent); text-decoration: none; }
|
||||
a:hover { text-decoration: underline; }
|
||||
|
||||
/* ─── Layout primitives ───────────────────────────────────────────────────── */
|
||||
|
||||
.app-shell {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 100vh;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.app-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 0 20px;
|
||||
height: 56px;
|
||||
background: var(--bg-elev);
|
||||
border-bottom: 1px solid var(--border);
|
||||
flex-shrink: 0;
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.app-header .logo {
|
||||
font-family: var(--font-display);
|
||||
font-size: 18px;
|
||||
font-weight: 700;
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.app-nav {
|
||||
display: flex;
|
||||
gap: 4px;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.app-nav a {
|
||||
padding: 8px 14px;
|
||||
border-radius: var(--radius-sm);
|
||||
color: var(--fg-muted);
|
||||
font-weight: 500;
|
||||
white-space: nowrap;
|
||||
transition: background var(--transition), color var(--transition);
|
||||
}
|
||||
.app-nav a:hover {
|
||||
background: var(--bg-elev-2);
|
||||
color: var(--fg);
|
||||
text-decoration: none;
|
||||
}
|
||||
.app-nav a.active {
|
||||
background: var(--accent-muted);
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.app-body {
|
||||
flex: 1;
|
||||
overflow: auto;
|
||||
padding: 24px;
|
||||
}
|
||||
|
||||
/* ─── Resizable split layout ─────────────────────────────────────────────── */
|
||||
|
||||
.rsplit {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: flex-start;
|
||||
gap: 0;
|
||||
}
|
||||
|
||||
.rsplit-left {
|
||||
flex: 0 0 var(--split-pct, 50%);
|
||||
min-width: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.rsplit-right {
|
||||
flex: 1 1 0;
|
||||
min-width: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
/* Drag divider */
|
||||
.rsplit-divider {
|
||||
flex: 0 0 12px;
|
||||
align-self: stretch;
|
||||
cursor: col-resize;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
transition: background var(--transition);
|
||||
border-radius: 4px;
|
||||
}
|
||||
.rsplit-divider:hover,
|
||||
.rsplit--dragging .rsplit-divider { background: var(--accent-muted); }
|
||||
|
||||
.rsplit-divider-handle {
|
||||
width: 4px;
|
||||
height: 48px;
|
||||
border-radius: 2px;
|
||||
background: var(--border);
|
||||
transition: background var(--transition);
|
||||
}
|
||||
.rsplit-divider:hover .rsplit-divider-handle,
|
||||
.rsplit--dragging .rsplit-divider-handle { background: var(--accent); }
|
||||
|
||||
/* Prevent text selection while dragging */
|
||||
.rsplit--dragging { user-select: none; }
|
||||
|
||||
/* Mobile toggle button — hidden on desktop */
|
||||
.rsplit-toggle { display: none; }
|
||||
|
||||
/* ─── Mobile: vertical stack, charts collapsible above data ─────────────── */
|
||||
@media (max-width: 900px) {
|
||||
.rsplit { flex-direction: column; gap: 0; }
|
||||
|
||||
/* Toggle sits at the very top */
|
||||
.rsplit-toggle {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
order: 1;
|
||||
width: 100%;
|
||||
padding: 10px 4px;
|
||||
background: none;
|
||||
border: none;
|
||||
border-bottom: 1px solid var(--border);
|
||||
color: var(--fg-muted);
|
||||
font-family: inherit;
|
||||
font-size: 13px;
|
||||
font-weight: 500;
|
||||
cursor: pointer;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
.rsplit-toggle:hover { color: var(--fg); background: var(--bg-elev-2); }
|
||||
|
||||
/* Charts — above data, hidden by default */
|
||||
.rsplit-right {
|
||||
order: 2;
|
||||
flex: 0 0 auto;
|
||||
width: 100%;
|
||||
display: none;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
.rsplit-right--open { display: flex; }
|
||||
|
||||
/* Divider hidden on mobile */
|
||||
.rsplit-divider { display: none; }
|
||||
|
||||
/* Data — below charts */
|
||||
.rsplit-left {
|
||||
order: 3;
|
||||
flex: 1 1 auto;
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
/* ─── Cards ───────────────────────────────────────────────────────────────── */
|
||||
|
||||
.card {
|
||||
background: var(--bg-elev);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius);
|
||||
padding: 16px;
|
||||
box-shadow: var(--shadow);
|
||||
}
|
||||
|
||||
.card-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
.card-title { font-size: 15px; font-weight: 600; }
|
||||
|
||||
/* ─── Buttons ─────────────────────────────────────────────────────────────── */
|
||||
|
||||
.btn {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 6px;
|
||||
padding: 8px 14px;
|
||||
border-radius: var(--radius-sm);
|
||||
border: 1px solid var(--border);
|
||||
background: var(--bg-elev);
|
||||
color: var(--fg);
|
||||
font-family: inherit;
|
||||
font-size: 13px;
|
||||
font-weight: 500;
|
||||
cursor: pointer;
|
||||
transition: all var(--transition);
|
||||
white-space: nowrap;
|
||||
}
|
||||
.btn:hover { background: var(--bg-elev-2); }
|
||||
.btn:active { transform: translateY(1px); }
|
||||
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
|
||||
|
||||
.btn-primary {
|
||||
background: var(--accent);
|
||||
color: var(--accent-fg);
|
||||
border-color: var(--accent);
|
||||
}
|
||||
.btn-primary:hover { filter: brightness(1.1); }
|
||||
|
||||
.btn-danger {
|
||||
background: var(--danger);
|
||||
color: #fff;
|
||||
border-color: var(--danger);
|
||||
}
|
||||
|
||||
.btn-ghost {
|
||||
background: transparent;
|
||||
border-color: transparent;
|
||||
}
|
||||
.btn-ghost:hover { background: var(--bg-elev-2); }
|
||||
|
||||
.btn-sm { padding: 4px 10px; font-size: 12px; }
|
||||
.btn-lg { padding: 12px 20px; font-size: 15px; }
|
||||
.btn-icon { padding: 6px; width: 32px; height: 32px; }
|
||||
|
||||
.btn-group {
|
||||
display: inline-flex;
|
||||
gap: 0;
|
||||
}
|
||||
.btn-group .btn {
|
||||
border-radius: 0;
|
||||
margin-left: -1px;
|
||||
}
|
||||
.btn-group .btn:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); margin-left: 0; }
|
||||
.btn-group .btn:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
|
||||
.btn-group .btn.active { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); z-index: 1; }
|
||||
|
||||
/* ─── Payer autocomplete dropdown ────────────────────────────────────────── */
|
||||
|
||||
.payer-wrap { position: relative; }
|
||||
.payer-dropdown {
|
||||
position: absolute;
|
||||
top: calc(100% + 2px);
|
||||
left: 0;
|
||||
right: 0;
|
||||
z-index: 200;
|
||||
background: var(--bg-elev);
|
||||
border: 1px solid var(--accent);
|
||||
border-radius: var(--radius-sm);
|
||||
box-shadow: 0 4px 12px rgba(0,0,0,0.25);
|
||||
max-height: 180px;
|
||||
overflow-y: auto;
|
||||
}
|
||||
.payer-option {
|
||||
padding: 8px 10px;
|
||||
font-size: 13px;
|
||||
cursor: pointer;
|
||||
color: var(--fg);
|
||||
}
|
||||
.payer-option:hover, .payer-option.active {
|
||||
background: var(--accent-muted);
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
/* ─── Forms ───────────────────────────────────────────────────────────────── */
|
||||
|
||||
.input, .select, .textarea {
|
||||
width: 100%;
|
||||
padding: 8px 10px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius-sm);
|
||||
background: var(--bg-elev);
|
||||
color: var(--fg);
|
||||
font-family: inherit;
|
||||
font-size: 13px;
|
||||
transition: border-color var(--transition);
|
||||
}
|
||||
.input:focus, .select:focus, .textarea:focus {
|
||||
outline: none;
|
||||
border-color: var(--accent);
|
||||
box-shadow: 0 0 0 3px var(--accent-muted);
|
||||
}
|
||||
|
||||
.input-inline {
|
||||
padding: 4px 6px;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.field { display: flex; flex-direction: column; gap: 4px; }
|
||||
.field label { font-size: 12px; color: var(--fg-muted); font-weight: 500; }
|
||||
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
|
||||
|
||||
/* Highlighted prompt field for missing tax data */
|
||||
.field-prompt {
|
||||
position: relative;
|
||||
border: 2px solid var(--warning);
|
||||
border-radius: var(--radius);
|
||||
padding: 12px;
|
||||
background: color-mix(in srgb, var(--warning) 8%, transparent);
|
||||
animation: pulse 2s infinite;
|
||||
}
|
||||
.field-prompt .prompt-reason {
|
||||
font-size: 12px;
|
||||
color: var(--fg-muted);
|
||||
margin-top: 6px;
|
||||
}
|
||||
@keyframes pulse {
|
||||
0%, 100% { border-color: var(--warning); }
|
||||
50% { border-color: color-mix(in srgb, var(--warning) 50%, transparent); }
|
||||
}
|
||||
|
||||
.checkbox {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
cursor: pointer;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
/* ─── Tables & spreadsheets ──────────────────────────────────────────────── */
|
||||
|
||||
.data-table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
font-size: 13px;
|
||||
}
|
||||
.data-table th {
|
||||
text-align: left;
|
||||
padding: 10px 12px;
|
||||
font-weight: 600;
|
||||
color: var(--fg-muted);
|
||||
border-bottom: 2px solid var(--border);
|
||||
background: var(--bg-elev);
|
||||
}
|
||||
.data-table td {
|
||||
padding: 8px 12px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
.data-table tbody tr:hover { background: var(--bg-elev-2); }
|
||||
.data-table .num { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
|
||||
.data-table tfoot td { font-weight: 600; border-top: 2px solid var(--border); border-bottom: none; }
|
||||
|
||||
/* Hierarchical spreadsheet rows */
|
||||
.hier-row { user-select: none; }
|
||||
.hier-row.level-year { font-weight: 700; background: var(--bg-elev-2); }
|
||||
.hier-row.level-month { font-weight: 600; }
|
||||
.hier-row.level-day { font-weight: 500; color: var(--fg-muted); }
|
||||
.hier-row.level-item { font-weight: 400; }
|
||||
|
||||
/* Clickable label — label-click focuses/collapses to that category */
|
||||
.hier-label { cursor: pointer; }
|
||||
.hier-label:hover { color: var(--accent); }
|
||||
|
||||
/* Item rows that open a detail popup on click */
|
||||
.hier-row--clickable { cursor: pointer; }
|
||||
.hier-row--clickable:hover { background: var(--accent-muted) !important; }
|
||||
|
||||
/* Day-row "+" add button — hidden until row is hovered */
|
||||
.hier-add-btn { opacity: 0; transition: opacity var(--transition); }
|
||||
.hier-row:hover .hier-add-btn { opacity: 1; }
|
||||
|
||||
.hier-toggle {
|
||||
display: inline-flex;
|
||||
width: 16px;
|
||||
margin-right: 4px;
|
||||
color: var(--fg-muted);
|
||||
transition: transform var(--transition);
|
||||
cursor: pointer;
|
||||
}
|
||||
.hier-toggle:empty { cursor: default; }
|
||||
.hier-toggle.expanded { transform: rotate(90deg); }
|
||||
|
||||
/* Override table cell left padding — hier-cell handles it via flex layout */
|
||||
.hier-row td:first-child { padding-left: 0; }
|
||||
|
||||
/* Flex container: [indent slots…] [toggle] [label] */
|
||||
.hier-cell {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding-left: 8px;
|
||||
}
|
||||
|
||||
/* Each indent slot is a fixed-width guide column */
|
||||
.hier-indent {
|
||||
flex: 0 0 20px;
|
||||
align-self: stretch;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
/* Full vertical guide line */
|
||||
.hier-indent::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
left: 8px;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
width: 1px;
|
||||
background: var(--fg-muted);
|
||||
opacity: 0.35;
|
||||
}
|
||||
|
||||
/* Horizontal branch connector at midpoint */
|
||||
.hier-indent.branch::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
left: 8px;
|
||||
top: 50%;
|
||||
right: 0;
|
||||
height: 1px;
|
||||
background: var(--fg-muted);
|
||||
opacity: 0.35;
|
||||
}
|
||||
|
||||
/* ─── Stats widgets ───────────────────────────────────────────────────────── */
|
||||
|
||||
.stat-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.stat-card {
|
||||
background: var(--bg-elev);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius);
|
||||
padding: 14px;
|
||||
}
|
||||
.stat-card .stat-label { font-size: 11px; color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.5px; }
|
||||
.stat-card .stat-value { font-size: 24px; font-weight: 700; font-family: var(--font-mono); margin-top: 4px; }
|
||||
.stat-card .stat-sub { font-size: 12px; color: var(--fg-muted); margin-top: 2px; }
|
||||
.stat-card.positive .stat-value { color: var(--success); }
|
||||
.stat-card.negative .stat-value { color: var(--danger); }
|
||||
|
||||
/* ─── Timer ───────────────────────────────────────────────────────────────── */
|
||||
|
||||
.timer-display {
|
||||
font-family: var(--font-mono);
|
||||
font-size: 56px;
|
||||
font-weight: 700;
|
||||
text-align: center;
|
||||
letter-spacing: 2px;
|
||||
padding: 24px 0;
|
||||
}
|
||||
|
||||
.timer-earned {
|
||||
font-family: var(--font-mono);
|
||||
font-size: 28px;
|
||||
font-weight: 600;
|
||||
text-align: center;
|
||||
color: var(--success);
|
||||
}
|
||||
|
||||
.timer-controls {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
gap: 12px;
|
||||
margin: 16px 0;
|
||||
}
|
||||
|
||||
.crash-banner {
|
||||
background: color-mix(in srgb, var(--danger) 10%, transparent);
|
||||
border: 2px solid var(--danger);
|
||||
border-radius: var(--radius);
|
||||
padding: 14px;
|
||||
margin-bottom: 16px;
|
||||
color: var(--danger);
|
||||
font-size: 13px;
|
||||
}
|
||||
.crash-banner .crash-grid {
|
||||
display: grid;
|
||||
grid-template-columns: auto 1fr;
|
||||
gap: 4px 12px;
|
||||
margin: 8px 0;
|
||||
font-family: var(--font-mono);
|
||||
}
|
||||
.crash-banner .crash-actions { display: flex; gap: 8px; margin-top: 10px; }
|
||||
|
||||
.recorded-badge {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
padding: 2px 8px;
|
||||
background: var(--success);
|
||||
color: #fff;
|
||||
border-radius: 10px;
|
||||
font-size: 11px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
/* ─── Modals ──────────────────────────────────────────────────────────────── */
|
||||
|
||||
.modal-overlay {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
background: rgba(0, 0, 0, 0.5);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
z-index: 1000;
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
.modal {
|
||||
background: var(--bg-elev);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius);
|
||||
box-shadow: var(--shadow-lg);
|
||||
width: 100%;
|
||||
max-width: 480px;
|
||||
max-height: 90vh;
|
||||
overflow: auto;
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
.modal-title { font-size: 16px; margin-bottom: 16px; }
|
||||
.modal-footer { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
|
||||
|
||||
/* ─── Tabs ────────────────────────────────────────────────────────────────── */
|
||||
|
||||
.tabs {
|
||||
display: flex;
|
||||
border-bottom: 1px solid var(--border);
|
||||
margin-bottom: 16px;
|
||||
gap: 4px;
|
||||
}
|
||||
.tab {
|
||||
padding: 10px 16px;
|
||||
border: none;
|
||||
background: none;
|
||||
color: var(--fg-muted);
|
||||
font-family: inherit;
|
||||
font-size: 13px;
|
||||
font-weight: 500;
|
||||
cursor: pointer;
|
||||
border-bottom: 2px solid transparent;
|
||||
margin-bottom: -1px;
|
||||
}
|
||||
.tab:hover { color: var(--fg); }
|
||||
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }
|
||||
|
||||
/* ─── Inline spreadsheet ─────────────────────────────────────────────────── */
|
||||
|
||||
.ss-rangebar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
padding: 4px 0 8px;
|
||||
font-size: 13px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.ss-rangebar label { color: var(--fg-muted); font-size: 12px; }
|
||||
.ss-rangebar-input { height: 32px; width: 160px; }
|
||||
.ss-rangebar-summary { margin-left: auto; color: var(--fg-muted); font-size: 12px; }
|
||||
|
||||
.ss-scroll {
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.ss-table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
font-size: 13px;
|
||||
}
|
||||
.ss-table th {
|
||||
text-align: left;
|
||||
padding: 7px 10px;
|
||||
font-size: 11px;
|
||||
font-weight: 600;
|
||||
color: var(--fg-muted);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.4px;
|
||||
background: var(--bg-elev);
|
||||
border-bottom: 2px solid var(--border);
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 1;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.ss-table th.ss-right { text-align: right; }
|
||||
.ss-table td {
|
||||
border-bottom: 1px solid var(--border);
|
||||
height: 34px;
|
||||
padding: 0;
|
||||
vertical-align: middle;
|
||||
max-width: 260px;
|
||||
}
|
||||
|
||||
/* Display cell — click to enter edit mode */
|
||||
.ss-cell {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
padding: 7px 10px;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
cursor: pointer;
|
||||
user-select: none;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.ss-cell:hover { background: var(--accent-muted); }
|
||||
.ss-cell.ss-right { text-align: right; }
|
||||
.ss-empty { color: var(--fg-muted); }
|
||||
|
||||
/* Input that fills the cell when editing */
|
||||
.ss-input {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 34px;
|
||||
padding: 7px 10px;
|
||||
border: none;
|
||||
background: color-mix(in srgb, var(--accent) 12%, var(--bg-elev));
|
||||
color: var(--fg);
|
||||
font-family: inherit;
|
||||
font-size: 13px;
|
||||
outline: 2px solid var(--accent);
|
||||
outline-offset: -2px;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.ss-input.ss-right { text-align: right; }
|
||||
select.ss-input { cursor: pointer; }
|
||||
|
||||
.ss-value { padding: 7px 10px; }
|
||||
.ss-actions { padding: 0 4px; text-align: center; white-space: nowrap; }
|
||||
|
||||
/* Existing data rows */
|
||||
.ss-row:hover { background: var(--bg-elev-2); }
|
||||
.ss-row:hover .ss-cell:hover { background: var(--accent-muted); }
|
||||
|
||||
/* Add-new draft row */
|
||||
.ss-draft td { background: color-mix(in srgb, var(--success) 6%, var(--bg-elev)); }
|
||||
.ss-draft .ss-input {
|
||||
background: color-mix(in srgb, var(--success) 10%, var(--bg-elev));
|
||||
outline-color: var(--success);
|
||||
}
|
||||
|
||||
/* Footer total row */
|
||||
.ss-total td {
|
||||
font-weight: 600;
|
||||
font-size: 11px;
|
||||
padding: 7px 10px;
|
||||
border-top: 2px solid var(--border);
|
||||
color: var(--fg-muted);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.3px;
|
||||
}
|
||||
.ss-total .ss-right { text-align: right; color: var(--fg); font-family: var(--font-mono); }
|
||||
|
||||
/* ─── Chart grid ──────────────────────────────────────────────────────────── */
|
||||
|
||||
/* minmax(min(400px,100%),1fr) prevents overflow when viewport < 400px */
|
||||
.chart-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr));
|
||||
gap: 16px;
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
/* ─── Footer ─────────────────────────────────────────────────────────────── */
|
||||
|
||||
.app-footer {
|
||||
flex-shrink: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-wrap: wrap;
|
||||
gap: 6px;
|
||||
padding: 10px 24px;
|
||||
border-top: 1px solid var(--border);
|
||||
background: var(--bg-elev);
|
||||
color: var(--fg-muted);
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.app-footer-sep { opacity: 0.4; }
|
||||
|
||||
/* ─── Ko-fi header button & modal ────────────────────────────────────────── */
|
||||
|
||||
.kofi-header-btn {
|
||||
flex-shrink: 0;
|
||||
padding: 6px 14px;
|
||||
border-radius: var(--radius);
|
||||
background: var(--accent);
|
||||
color: var(--accent-fg);
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
transition: filter 0.15s ease;
|
||||
}
|
||||
|
||||
.kofi-header-btn:hover { filter: brightness(1.12); }
|
||||
|
||||
.kofi-overlay {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
background: rgba(0, 0, 0, 0.6);
|
||||
z-index: 500;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 16px;
|
||||
}
|
||||
|
||||
.kofi-modal {
|
||||
background: var(--bg-elev);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius);
|
||||
overflow: hidden;
|
||||
width: 100%;
|
||||
max-width: 500px;
|
||||
/* tall enough for the 712px iframe + 48px header without scrolling */
|
||||
height: min(760px, 95vh);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
box-shadow: var(--shadow-lg);
|
||||
}
|
||||
|
||||
.kofi-modal-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 12px 16px;
|
||||
background: var(--accent);
|
||||
color: var(--accent-fg);
|
||||
font-weight: 600;
|
||||
font-size: 14px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.kofi-modal-close {
|
||||
background: none;
|
||||
border: none;
|
||||
color: var(--accent-fg);
|
||||
font-size: 16px;
|
||||
cursor: pointer;
|
||||
padding: 2px 6px;
|
||||
border-radius: var(--radius-sm);
|
||||
line-height: 1;
|
||||
opacity: 0.8;
|
||||
transition: opacity 0.15s ease;
|
||||
}
|
||||
|
||||
.kofi-modal-close:hover { opacity: 1; }
|
||||
|
||||
.kofi-modal iframe {
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
display: block;
|
||||
width: 100%;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
/* In dark mode, invert the iframe content then rotate hue back so colours
|
||||
stay natural while the bright white background becomes dark.
|
||||
Background is set to #fff so it inverts to near-black, matching the theme. */
|
||||
[data-mode='dark'] .kofi-modal iframe {
|
||||
filter: invert(1) hue-rotate(180deg);
|
||||
}
|
||||
|
||||
/* ─── Hamburger / mobile nav ─────────────────────────────────────────────── */
|
||||
|
||||
.hamburger-btn {
|
||||
display: none;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: none;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius-sm);
|
||||
color: var(--fg);
|
||||
font-size: 18px;
|
||||
line-height: 1;
|
||||
padding: 5px 10px;
|
||||
cursor: pointer;
|
||||
flex-shrink: 0;
|
||||
position: relative;
|
||||
z-index: 101;
|
||||
}
|
||||
.hamburger-btn:hover { background: var(--bg-elev-2); }
|
||||
|
||||
/* Overlay catches outside-clicks to close the menu */
|
||||
.nav-overlay {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
z-index: 99;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* ─── Responsive ──────────────────────────────────────────────────────────── */
|
||||
|
||||
/* Tablets (≤900px) — switch to hamburger nav */
|
||||
@media (max-width: 900px) {
|
||||
.app-body { padding: 16px; }
|
||||
.timer-display { font-size: 44px; }
|
||||
.app-header { position: relative; }
|
||||
.hamburger-btn { display: inline-flex; }
|
||||
.header-status { margin-left: auto; }
|
||||
.kofi-header-btn { display: none; }
|
||||
.app-nav {
|
||||
display: none;
|
||||
flex-direction: column;
|
||||
gap: 2px;
|
||||
position: absolute;
|
||||
top: 100%;
|
||||
left: 0;
|
||||
right: 0;
|
||||
background: var(--bg-elev);
|
||||
border-bottom: 1px solid var(--border);
|
||||
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
|
||||
padding: 8px;
|
||||
z-index: 100;
|
||||
}
|
||||
.app-nav.open { display: flex; }
|
||||
.app-nav a { padding: 10px 14px; border-radius: var(--radius-sm); }
|
||||
}
|
||||
|
||||
/* Small phones (≤640px) — extra compact spacing */
|
||||
@media (max-width: 640px) {
|
||||
.app-body { padding: 10px; }
|
||||
.stat-grid { grid-template-columns: repeat(2, 1fr); }
|
||||
.stat-card .stat-value { font-size: 20px; }
|
||||
.timer-display { font-size: 36px; }
|
||||
.timer-earned { font-size: 20px; }
|
||||
.field-row { grid-template-columns: 1fr; }
|
||||
.data-table { font-size: 12px; }
|
||||
.data-table th, .data-table td { padding: 6px 8px; }
|
||||
.modal { padding: 16px; }
|
||||
.col-hide-sm { display: none; }
|
||||
}
|
||||
|
||||
/* 4K TV (≥3840px) — only true 4K displays, no margin centering */
|
||||
@media (min-width: 3840px) {
|
||||
body { font-size: 16px; }
|
||||
.app-header { height: 72px; padding: 0 40px; }
|
||||
.app-body { padding: 40px; }
|
||||
.stat-card .stat-value { font-size: 32px; }
|
||||
.timer-display { font-size: 80px; }
|
||||
}
|
||||
|
||||
/* ─── Utilities ───────────────────────────────────────────────────────────── */
|
||||
|
||||
.flex { display: flex; }
|
||||
.flex-col { display: flex; flex-direction: column; }
|
||||
.items-center { align-items: center; }
|
||||
.justify-between { justify-content: space-between; }
|
||||
.gap-1 { gap: 4px; }
|
||||
.gap-2 { gap: 8px; }
|
||||
.gap-3 { gap: 12px; }
|
||||
.gap-4 { gap: 16px; }
|
||||
.mt-2 { margin-top: 8px; }
|
||||
.mt-4 { margin-top: 16px; }
|
||||
.mb-2 { margin-bottom: 8px; }
|
||||
.mb-4 { margin-bottom: 16px; }
|
||||
.text-muted { color: var(--fg-muted); }
|
||||
.text-success { color: var(--success); }
|
||||
.text-danger { color: var(--danger); }
|
||||
.text-sm { font-size: 12px; }
|
||||
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
|
||||
.scroll-y { overflow-y: auto; }
|
||||
.full-height { height: 100%; }
|
||||
Loading…
Add table
Add a link
Reference in a new issue