- NAS storage for created invoices (PDF via puppeteer), received invoices, and offers with auto-save on create/edit - Deterministic file paths derived from DB fields (no file_path column needed) - Separate NAS mount points: NAS_FINANCIALS_PATH, NAS_OFFERS_PATH - Invoice language field (cs/en) stored per invoice, replaces lang modal - Invoices list filtered by month/year matching KPI card selection - Centralized date helpers (src/utils/date.ts) replacing all .toISOString() calls that returned UTC instead of local time - Attendance project switching uses exact time (not rounded) - Comment cleanup: removed ~100 unnecessary/Czech comments - Removed as-any casts in orders and attendance - Prisma migrations: add invoice language, drop received_invoices BLOB columns Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
143 lines
2.9 KiB
CSS
143 lines
2.9 KiB
CSS
/* ============================================================================
|
|
Invoice Status Badges
|
|
============================================================================ */
|
|
|
|
.admin-badge-invoice-issued {
|
|
background: color-mix(in srgb, var(--info) 15%, transparent);
|
|
color: var(--info);
|
|
}
|
|
|
|
.admin-badge-invoice-paid {
|
|
background: color-mix(in srgb, var(--success) 15%, transparent);
|
|
color: var(--success);
|
|
}
|
|
|
|
.admin-badge-invoice-overdue {
|
|
background: color-mix(in srgb, var(--danger) 15%, transparent);
|
|
color: var(--danger);
|
|
}
|
|
|
|
/* ============================================================================
|
|
Invoice Month Navigation
|
|
============================================================================ */
|
|
|
|
.invoice-month-nav {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
justify-content: center;
|
|
margin-bottom: 0.875rem;
|
|
}
|
|
|
|
.invoice-month-nav span {
|
|
font-weight: 600;
|
|
font-size: 0.875rem;
|
|
color: var(--text-primary);
|
|
min-width: 120px;
|
|
text-align: center;
|
|
}
|
|
|
|
.invoice-month-btn {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 28px;
|
|
height: 28px;
|
|
border-radius: 6px;
|
|
border: 1px solid var(--border-color);
|
|
background: transparent;
|
|
color: var(--text-secondary);
|
|
cursor: pointer;
|
|
transition:
|
|
border-color 0.15s,
|
|
color 0.15s;
|
|
}
|
|
|
|
.invoice-month-btn:hover:not(:disabled) {
|
|
border-color: var(--accent-color);
|
|
color: var(--accent-color);
|
|
}
|
|
|
|
.invoice-month-btn:disabled {
|
|
opacity: 0.3;
|
|
cursor: default;
|
|
}
|
|
|
|
/* ============================================================================
|
|
Received Invoices - Upload Modal
|
|
============================================================================ */
|
|
|
|
.received-upload-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.received-upload-card {
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 8px;
|
|
background: var(--bg-secondary);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.received-upload-card-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 0.5rem 0.75rem;
|
|
background: var(--bg-tertiary);
|
|
border-bottom: 1px solid var(--border-color);
|
|
}
|
|
|
|
.received-upload-file-info {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
min-width: 0;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.received-upload-file-name {
|
|
font-size: 0.8125rem;
|
|
font-weight: 500;
|
|
color: var(--text-primary);
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
max-width: 300px;
|
|
}
|
|
|
|
.received-upload-file-size {
|
|
font-size: 0.75rem;
|
|
color: var(--text-tertiary);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.received-upload-card-fields {
|
|
padding: 0.75rem;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.received-upload-row {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
@media (max-width: 640px) {
|
|
.invoice-month-btn {
|
|
width: 44px;
|
|
height: 44px;
|
|
}
|
|
|
|
.received-upload-row {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.received-upload-file-name {
|
|
max-width: 200px;
|
|
}
|
|
}
|