feat: Add PWA support and consolidate CSS design system

- Add PWA manifest, icons (192x192, 512x512), and service worker
- Register service worker in index.html with Apple mobile web app support
- Consolidate CSS variables and design tokens documentation
- Update PrimeVue overrides for consistent theming
- Refactor data-entry components to use shared CSS patterns
- Add frontend-style-auditor agent for style consistency checks
- Minor OCR validation and job worker improvements
- Update start-prod.sh configuration

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Claude Agent
2026-01-06 14:00:21 +00:00
parent b2fe26da3a
commit 1bb3a382de
33 changed files with 1846 additions and 513 deletions

View File

@@ -159,7 +159,7 @@
v-else-if="att.mime_type?.startsWith('image/') && !attachmentBlobUrls[att.id]"
class="image-placeholder"
>
<i class="pi pi-image" style="font-size: 2rem; color: #94a3b8;"></i>
<i class="pi pi-image" style="font-size: 2rem; color: var(--text-color-secondary);"></i>
<span>{{ att.filename }}</span>
</div>
<div v-else class="pdf-preview">
@@ -2071,16 +2071,16 @@ const submitForReview = async () => {
gap: 0.5rem;
padding: 0.75rem 1rem;
border-radius: 8px;
background: #fef3c7;
border: 1px solid #fbbf24;
color: #92400e;
background: var(--yellow-100);
border: 1px solid var(--yellow-400);
color: var(--yellow-800);
font-size: 0.875rem;
}
.validation-banner.warning {
background: #fee2e2;
border-color: #f87171;
color: #991b1b;
background: var(--red-100);
border-color: var(--red-400);
color: var(--red-800);
}
.validation-banner i {
@@ -2167,8 +2167,8 @@ const submitForReview = async () => {
align-items: center;
gap: 0.5rem;
padding: 0.6rem 1rem;
background: #dcfce7;
border: 1px solid #86efac;
background: var(--green-100);
border: 1px solid var(--green-300);
border-radius: 8px;
cursor: pointer;
margin-top: 0.75rem;
@@ -2176,23 +2176,23 @@ const submitForReview = async () => {
}
.ocr-applied-banner:hover {
background: #bbf7d0;
background: var(--green-200);
}
.ocr-applied-banner .pi-check-circle {
color: #22c55e;
color: var(--green-500);
font-size: 1.1rem;
}
.ocr-applied-banner span {
flex: 1;
font-weight: 500;
color: #166534;
color: var(--green-800);
font-size: 0.9rem;
}
.ocr-applied-banner .pi-chevron-down {
color: #166534;
color: var(--green-800);
font-size: 0.8rem;
}
@@ -2222,11 +2222,11 @@ const submitForReview = async () => {
/* Pending files header */
.pending-files-header {
font-size: 0.85rem;
color: #64748b;
color: var(--text-color-secondary);
font-weight: 500;
margin-bottom: 0.5rem;
padding-bottom: 0.35rem;
border-bottom: 1px dashed #cbd5e1;
border-bottom: 1px dashed var(--surface-border);
}
.radio-group {
@@ -2246,7 +2246,7 @@ const submitForReview = async () => {
align-items: center;
justify-content: center;
height: 100%;
background: #f5f5f5;
background: var(--surface-100);
padding: 1rem;
}
@@ -2270,20 +2270,20 @@ const submitForReview = async () => {
align-items: center;
gap: 0.75rem;
padding: 0.5rem 0.75rem;
background: #f8fafc;
border: 1px solid #e2e8f0;
background: var(--surface-ground);
border: 1px solid var(--surface-border);
border-radius: 8px;
}
.selected-file-item i {
color: #667eea;
color: var(--primary-500);
font-size: 1.25rem;
}
.selected-file-item .file-name {
flex: 1;
font-weight: 500;
color: #1e293b;
color: var(--text-color);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
@@ -2291,15 +2291,15 @@ const submitForReview = async () => {
.selected-file-item .file-size {
font-size: 0.85rem;
color: #64748b;
color: var(--text-color-secondary);
}
/* Extra details section (TVA, items, address) */
.extra-details-section {
margin-top: 1rem;
padding: 0.75rem;
background: #f0f9ff;
border: 1px solid #bae6fd;
background: var(--blue-50);
border: 1px solid var(--blue-200);
border-radius: 8px;
}
@@ -2309,7 +2309,7 @@ const submitForReview = async () => {
gap: 0.5rem;
margin-bottom: 0.75rem;
margin-top: 0;
color: #0284c7;
color: var(--blue-600);
font-size: 0.95rem;
}
@@ -2329,13 +2329,13 @@ const submitForReview = async () => {
.tva-row.total {
margin-top: 0.5rem;
padding-top: 0.5rem;
border-top: 1px dashed #0284c7;
border-top: 1px dashed var(--blue-600);
}
.tva-label {
min-width: 150px;
font-weight: 500;
color: #334155;
color: var(--text-color);
}
.tva-input {
@@ -2344,7 +2344,7 @@ const submitForReview = async () => {
.tva-value {
font-weight: 600;
color: #0284c7;
color: var(--blue-600);
}
/* Supplier warning */
@@ -2353,7 +2353,7 @@ const submitForReview = async () => {
align-items: center;
gap: 0.25rem;
margin-top: 0.25rem;
color: #f59e0b;
color: var(--yellow-500);
}
/* Supplier selected indicator */
@@ -2362,7 +2362,7 @@ const submitForReview = async () => {
align-items: center;
gap: 0.25rem;
margin-top: 0.25rem;
color: #22c55e;
color: var(--green-500);
font-weight: 500;
}
@@ -2371,7 +2371,7 @@ const submitForReview = async () => {
display: block;
margin-top: 0.25rem;
font-size: 0.8rem;
color: #64748b;
color: var(--text-color-secondary);
}
/* Payment methods display */
@@ -2407,7 +2407,7 @@ const submitForReview = async () => {
display: block;
margin-bottom: 0.25rem;
font-weight: 500;
color: #334155;
color: var(--text-color);
}
/* ========================================
@@ -2416,7 +2416,7 @@ const submitForReview = async () => {
.form-section {
padding: 0.6rem 0;
border-bottom: 1px solid #e2e8f0;
border-bottom: 1px solid var(--surface-border);
}
.form-section:last-of-type {
@@ -2426,7 +2426,7 @@ const submitForReview = async () => {
.form-section-title {
font-size: 0.7rem;
font-weight: 600;
color: #64748b;
color: var(--text-color-secondary);
text-transform: uppercase;
letter-spacing: 0.05em;
margin-bottom: 0.5rem;
@@ -2489,7 +2489,7 @@ const submitForReview = async () => {
.direction-header .field-label {
font-size: 0.85rem;
font-weight: 500;
color: #475569;
color: var(--text-color-secondary);
}
.auto-tag {
@@ -2519,7 +2519,7 @@ const submitForReview = async () => {
align-items: center;
gap: 0.25rem;
font-size: 0.75rem;
color: #22c55e;
color: var(--green-500);
font-weight: 500;
white-space: nowrap;
}
@@ -2544,7 +2544,7 @@ const submitForReview = async () => {
.tva-label-compact {
min-width: 80px;
font-size: 0.85rem;
color: #475569;
color: var(--text-color-secondary);
}
.tva-input-compact {
@@ -2554,12 +2554,12 @@ const submitForReview = async () => {
.tva-edit-row.tva-total-row {
margin-top: 0.35rem;
padding-top: 0.35rem;
border-top: 1px dashed #cbd5e1;
border-top: 1px dashed var(--surface-border);
}
.tva-total-value {
font-weight: 600;
color: #0284c7;
color: var(--blue-600);
font-size: 0.9rem;
}
@@ -2578,7 +2578,7 @@ const submitForReview = async () => {
/* Form groups with subtle borders */
.form-group {
padding: 0.75rem 0;
border-bottom: 1px solid #e2e8f0;
border-bottom: 1px solid var(--surface-border);
}
.form-group:first-child {
@@ -2606,24 +2606,24 @@ const submitForReview = async () => {
gap: 0.4rem;
padding: 0.3rem 0.5rem;
margin-top: 0.4rem;
background: #f8fafc;
background: var(--surface-ground);
border-radius: 4px;
cursor: pointer;
transition: background 0.15s;
}
.address-collapsed:hover {
background: #f1f5f9;
background: var(--surface-hover);
}
.address-collapsed i {
font-size: 0.7rem;
color: #64748b;
color: var(--text-color-secondary);
}
.address-preview {
font-size: 0.75rem;
color: #64748b;
color: var(--text-color-secondary);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
@@ -2634,7 +2634,7 @@ const submitForReview = async () => {
.address-expanded {
margin-top: 0.4rem;
padding: 0.4rem;
background: #f8fafc;
background: var(--surface-ground);
border-radius: 4px;
}
@@ -2660,7 +2660,7 @@ const submitForReview = async () => {
======================================== */
.values-section {
background: #f8fafc;
background: var(--surface-ground);
border-radius: 6px;
padding: 0.5rem 0.75rem;
}
@@ -2702,55 +2702,23 @@ const submitForReview = async () => {
.value-item label {
font-size: 0.75rem;
font-weight: 500;
color: #64748b;
color: var(--text-color-secondary);
text-transform: uppercase;
}
/* Force InputNumber to respect container width */
/* Force InputNumber to respect container width - PrimeVue styles in vendor/primevue-overrides.css */
.input-compact {
width: 100% !important;
max-width: 130px !important;
}
:deep(.value-item-total .p-inputnumber) {
width: 100% !important;
max-width: 130px !important;
}
:deep(.value-item-total .p-inputnumber-input) {
width: 100% !important;
}
:deep(.payment-method-item .p-inputnumber) {
width: 100% !important;
max-width: 110px !important;
}
:deep(.payment-method-item .p-inputnumber-input) {
width: 100% !important;
}
.dropdown-payment {
width: 100% !important;
max-width: 190px !important;
}
:deep(.dropdown-payment) {
width: 100% !important;
max-width: 190px !important;
}
:deep(.dropdown-payment .p-dropdown) {
width: 100% !important;
}
.payment-method-value {
display: inline-block;
font-size: 0.95rem;
font-weight: 500;
color: #334155;
background: #f8fafc;
border: 1px solid #e2e8f0;
color: var(--text-color);
background: var(--surface-ground);
border: 1px solid var(--surface-border);
padding: 0.5rem 0.75rem;
border-radius: 6px;
min-width: 90px;
@@ -2761,7 +2729,7 @@ const submitForReview = async () => {
.tva-compact {
margin-top: 0.5rem;
padding-top: 0.5rem;
border-top: 1px dashed #cbd5e1;
border-top: 1px dashed var(--surface-border);
}
.tva-item {
@@ -2771,14 +2739,7 @@ const submitForReview = async () => {
.input-tva {
width: 110px !important;
}
:deep(.input-tva) {
width: 110px !important;
}
:deep(.input-tva .p-inputnumber-input) {
width: 110px !important;
}
/* PrimeVue input-tva styles moved to vendor/primevue-overrides.css */
.tva-total-item {
padding-left: 0.5rem;
@@ -2788,9 +2749,9 @@ const submitForReview = async () => {
display: inline-block;
font-size: 0.95rem;
font-weight: 500;
color: #334155;
background: #f8fafc;
border: 1px solid #e2e8f0;
color: var(--text-color);
background: var(--surface-ground);
border: 1px solid var(--surface-border);
padding: 0.5rem 0.75rem;
border-radius: 6px;
min-width: 90px;
@@ -2800,12 +2761,12 @@ const submitForReview = async () => {
/* Small labels for secondary fields */
.label-small {
font-size: 0.8rem !important;
color: #64748b !important;
color: var(--text-color-secondary) !important;
}
/* Muted labels for optional fields */
.label-muted {
color: #94a3b8 !important;
color: var(--text-color-secondary) !important;
}
/* Small inputs */
@@ -2845,7 +2806,7 @@ const submitForReview = async () => {
align-items: flex-end;
padding: 0.5rem 0;
margin-top: 0.5rem;
background: #f8fafc;
background: var(--surface-ground);
border-radius: 4px;
padding: 0.5rem;
}
@@ -2866,14 +2827,14 @@ const submitForReview = async () => {
.tva-total-inline {
font-weight: 500;
color: #334155;
color: var(--text-color);
font-size: 0.95rem;
padding: 0.5rem 0;
}
/* Optional fields row */
.optional-fields {
background: #f8fafc;
background: var(--surface-ground);
padding: 0.5rem;
border-radius: 4px;
margin-top: 0.4rem;
@@ -2958,20 +2919,15 @@ const submitForReview = async () => {
min-width: 80px;
}
/* Dropdowns and inputs full width in their containers */
.form-field :deep(.p-dropdown),
.form-field :deep(.p-autocomplete),
.form-field :deep(.p-calendar) {
width: 100% !important;
}
/* Dropdowns and inputs full width - styles in vendor/primevue-overrides.css */
/* Action buttons on mobile - not fixed, flow with content */
.action-buttons-top {
position: static;
width: 100%;
padding: 1rem;
background: #f8fafc;
border-top: 1px solid #e2e8f0;
background: var(--surface-ground);
border-top: 1px solid var(--surface-border);
margin-top: 1rem;
display: flex;
flex-direction: row;
@@ -3006,28 +2962,28 @@ const submitForReview = async () => {
}
.status-draft {
background: #f1f5f9;
color: #475569;
background: var(--surface-100);
color: var(--text-color-secondary);
}
.status-pending {
background: #fef3c7;
color: #92400e;
background: var(--yellow-100);
color: var(--yellow-800);
}
.status-approved {
background: #dcfce7;
color: #166534;
background: var(--green-100);
color: var(--green-800);
}
.status-rejected {
background: #fee2e2;
color: #991b1b;
background: var(--red-100);
color: var(--red-800);
}
.status-synced {
background: #dbeafe;
color: #1e40af;
background: var(--blue-100);
color: var(--blue-700);
}
/* Rejection Alert */
@@ -3035,14 +2991,14 @@ const submitForReview = async () => {
display: flex;
gap: 1rem;
padding: 1rem;
background: #fff3e0;
background: var(--orange-100);
border-radius: 8px;
margin-bottom: 1rem;
}
.rejection-alert i {
font-size: 1.5rem;
color: #f57c00;
color: var(--orange-500);
}
.rejection-alert p {
@@ -3064,8 +3020,8 @@ const submitForReview = async () => {
border-radius: 8px;
overflow: hidden;
position: relative;
border: 1px solid #e2e8f0;
background: #f8fafc;
border: 1px solid var(--surface-border);
background: var(--surface-ground);
}
.attachment-image {
@@ -3085,12 +3041,12 @@ const submitForReview = async () => {
.pdf-attachment i {
font-size: 2.5rem;
color: #dc2626;
color: var(--red-600);
}
.pdf-attachment span {
font-size: 0.85rem;
color: #475569;
color: var(--text-color-secondary);
text-align: center;
word-break: break-word;
}
@@ -3122,8 +3078,8 @@ const submitForReview = async () => {
position: relative;
border-radius: 8px;
overflow: hidden;
border: 1px solid #e2e8f0;
background: #f8fafc;
border: 1px solid var(--surface-border);
background: var(--surface-ground);
}
.image-preview-item img {
@@ -3141,8 +3097,8 @@ const submitForReview = async () => {
align-items: center;
justify-content: center;
gap: 0.5rem;
background: #f1f5f9;
color: #94a3b8;
background: var(--surface-hover);
color: var(--text-color-secondary);
font-size: 0.75rem;
text-align: center;
padding: 0.5rem;
@@ -3160,7 +3116,7 @@ const submitForReview = async () => {
align-items: center;
justify-content: center;
padding: 2rem;
color: #94a3b8;
color: var(--text-color-secondary);
text-align: center;
}
@@ -3177,7 +3133,7 @@ const submitForReview = async () => {
.entries-section {
margin-top: 1.5rem;
padding: 1rem;
background: #f8fafc;
background: var(--surface-ground);
border-radius: 8px;
}
@@ -3186,7 +3142,7 @@ const submitForReview = async () => {
align-items: center;
gap: 0.5rem;
margin: 0 0 1rem 0;
color: #334155;
color: var(--text-color);
}
.entries-table-container {
@@ -3203,25 +3159,25 @@ const submitForReview = async () => {
.entries-table td {
padding: 0.75rem;
text-align: left;
border-bottom: 1px solid #e2e8f0;
border-bottom: 1px solid var(--surface-border);
}
.entries-table th {
background: #f1f5f9;
background: var(--surface-hover);
font-weight: 600;
color: #475569;
color: var(--text-color-secondary);
}
.entries-table tbody tr:hover {
background: #f8fafc;
background: var(--surface-ground);
}
.entries-table .debit {
color: #dc2626;
color: var(--red-600);
}
.entries-table .credit {
color: #16a34a;
color: var(--green-600);
}
.entries-table tfoot td {
@@ -3235,9 +3191,9 @@ const submitForReview = async () => {
gap: 0.5rem;
margin-top: 1rem;
padding: 0.75rem;
background: #fff3e0;
background: var(--orange-100);
border-radius: 8px;
color: #f57c00;
color: var(--orange-500);
}
</style>

View File

@@ -436,11 +436,12 @@
</template>
<script setup>
import { ref, computed, onMounted, onUnmounted } from 'vue'
import { ref, computed, onMounted, onUnmounted, watch } from 'vue'
import { useRouter } from 'vue-router'
import { useToast } from 'primevue/usetoast'
import { useConfirm } from 'primevue/useconfirm'
import { useReceiptsStore } from '@data-entry/stores/receiptsStore'
import { useCompanyStore } from '@data-entry/stores/sharedStores'
import Menu from 'primevue/menu'
import Dialog from 'primevue/dialog'
import Textarea from 'primevue/textarea'
@@ -450,6 +451,7 @@ const router = useRouter()
const toast = useToast()
const confirm = useConfirm()
const store = useReceiptsStore()
const companyStore = useCompanyStore()
// Rejection dialog state
const rejectDialogVisible = ref(false)
@@ -477,6 +479,29 @@ onUnmounted(() => {
window.removeEventListener('resize', handleResize)
})
// Watch for company changes and reload data
watch(
() => companyStore.selectedCompany,
async (newCompany, oldCompany) => {
// Skip initial load (handled by onMounted) and same company
if (!oldCompany || !newCompany) return
if (newCompany.id_firma === oldCompany.id_firma) return
console.log('[ReceiptsList] Company changed, reloading data...')
// Reset filters and pagination when company changes
filters.value = {
status: null,
search: '',
direction: null,
dateFrom: null,
dateTo: null,
}
store.clearFilters()
await store.fetchStats()
await store.fetchReceipts()
}
)
// Mobile context menu
const menuRef = ref()
const selectedReceipt = ref(null)
@@ -966,7 +991,7 @@ const approveSelected = async () => {
padding: 0.25rem 0.5rem;
border-radius: 4px;
font-size: 0.8rem;
color: #64748b;
color: var(--text-color-secondary);
cursor: pointer;
transition: all 0.15s ease;
white-space: nowrap;
@@ -974,12 +999,12 @@ const approveSelected = async () => {
}
.status-chip:hover {
background: #f1f5f9;
background: var(--surface-hover);
}
.status-chip.active {
background: #e2e8f0;
color: #1e293b;
background: var(--surface-200);
color: var(--text-color);
font-weight: 600;
position: relative;
}
@@ -991,22 +1016,22 @@ const approveSelected = async () => {
left: 0;
right: 0;
height: 3px;
background: #1e293b;
background: var(--text-color);
border-radius: 2px;
}
/* Color accents for active status */
.status-chip.status-draft.active { background: #dbeafe; color: #1d4ed8; }
.status-chip.status-draft.active::after { background: #1d4ed8; }
.status-chip.status-draft.active { background: var(--blue-100); color: var(--blue-700); }
.status-chip.status-draft.active::after { background: var(--blue-700); }
.status-chip.status-pending.active { background: #fef3c7; color: #b45309; }
.status-chip.status-pending.active::after { background: #d97706; }
.status-chip.status-pending.active { background: var(--yellow-100); color: var(--yellow-700); }
.status-chip.status-pending.active::after { background: var(--yellow-600); }
.status-chip.status-approved.active { background: #dcfce7; color: #15803d; }
.status-chip.status-approved.active::after { background: #16a34a; }
.status-chip.status-approved.active { background: var(--green-100); color: var(--green-700); }
.status-chip.status-approved.active::after { background: var(--green-600); }
.status-chip.status-rejected.active { background: #fee2e2; color: #b91c1c; }
.status-chip.status-rejected.active::after { background: #dc2626; }
.status-chip.status-rejected.active { background: var(--red-100); color: var(--red-700); }
.status-chip.status-rejected.active::after { background: var(--red-600); }
/* Search and Filters Row */
.filters-row {
@@ -1016,7 +1041,7 @@ const approveSelected = async () => {
flex-wrap: wrap;
margin-bottom: 0.75rem;
padding-bottom: 0.75rem;
border-bottom: 1px solid #e2e8f0;
border-bottom: 1px solid var(--surface-border);
}
.filter-search {
@@ -1042,20 +1067,7 @@ const approveSelected = async () => {
margin-left: auto;
}
/* Compact DataTable */
.compact-table :deep(.p-datatable-tbody > tr > td) {
padding: 0.5rem 0.5rem;
font-size: 0.875rem;
}
.compact-table :deep(.p-datatable-thead > tr > th) {
padding: 0.5rem 0.5rem;
font-size: 0.8rem;
}
.compact-table :deep(.p-paginator) {
padding: 0.5rem;
}
/* Compact DataTable - styles moved to vendor/primevue-overrides.css */
/* Action buttons - always on same line */
.compact-table .button-group {
@@ -1072,17 +1084,17 @@ const approveSelected = async () => {
}
.receipt-card {
background: white;
background: var(--surface-card);
border-radius: 8px;
padding: 0.75rem;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
box-shadow: var(--shadow-sm);
cursor: pointer;
border: 1px solid #e2e8f0;
border: 1px solid var(--surface-border);
transition: all 0.2s ease;
}
.receipt-card:active {
background: #f8fafc;
background: var(--surface-ground);
transform: scale(0.99);
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
@@ -1105,7 +1117,7 @@ const approveSelected = async () => {
.card-row-1 .partner {
font-weight: 600;
font-size: 0.875rem;
color: #1e293b;
color: var(--text-color);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
@@ -1113,7 +1125,7 @@ const approveSelected = async () => {
.card-row-1 .cui {
font-size: 0.7rem;
color: #94a3b8;
color: var(--text-color-secondary);
}
.card-row-1 .amount-block {
@@ -1126,21 +1138,21 @@ const approveSelected = async () => {
.card-row-1 .amount {
font-weight: 700;
font-size: 0.875rem;
color: #0f172a;
color: var(--text-color);
}
.card-row-1 .amount-detail {
font-size: 0.875rem;
font-weight: 400;
color: #64748b;
color: var(--text-color-secondary);
}
.card-row-1 .amount-detail.tva {
color: #16a34a;
color: var(--green-600);
}
.card-row-1 .amount-detail.payment {
color: #7c3aed;
color: var(--purple-600);
}
.card-row-2 {
@@ -1148,12 +1160,12 @@ const approveSelected = async () => {
align-items: center;
gap: 0.375rem;
font-size: 0.75rem;
color: #64748b;
color: var(--text-color-secondary);
flex-wrap: wrap;
}
.card-row-2 .sep {
color: #cbd5e1;
color: var(--surface-border);
}
.card-row-2 .receipt-nr {
@@ -1161,12 +1173,12 @@ const approveSelected = async () => {
}
.card-row-2 .direction-out {
color: #dc2626;
color: var(--red-600);
font-weight: 500;
}
.card-row-2 .direction-in {
color: #16a34a;
color: var(--green-600);
font-weight: 500;
}
@@ -1175,12 +1187,12 @@ const approveSelected = async () => {
align-items: center;
gap: 0.375rem;
font-size: 0.7rem;
color: #94a3b8;
color: var(--text-color-secondary);
margin-top: 0.25rem;
}
.card-row-3 .sep {
color: #cbd5e1;
color: var(--surface-border);
}
.card-row-3 .created-by {
@@ -1192,7 +1204,7 @@ const approveSelected = async () => {
display: flex;
align-items: center;
gap: 0.125rem;
color: #64748b;
color: var(--text-color-secondary);
}
/* Small status badge for mobile cards */
@@ -1204,18 +1216,18 @@ const approveSelected = async () => {
text-transform: uppercase;
}
.status-badge-small.status-draft { background-color: #e3f2fd; color: #1976d2; }
.status-badge-small.status-pending { background-color: #fff3e0; color: #f57c00; }
.status-badge-small.status-approved { background-color: #e8f5e9; color: #388e3c; }
.status-badge-small.status-rejected { background-color: #ffebee; color: #d32f2f; }
.status-badge-small.status-synced { background-color: #e0f2f1; color: #00796b; }
.status-badge-small.status-draft { background-color: var(--blue-100); color: var(--blue-600); }
.status-badge-small.status-pending { background-color: var(--orange-100); color: var(--orange-600); }
.status-badge-small.status-approved { background-color: var(--green-100); color: var(--green-600); }
.status-badge-small.status-rejected { background-color: var(--red-100); color: var(--red-600); }
.status-badge-small.status-synced { background-color: var(--teal-100); color: var(--teal-600); }
/* Status text colors for mobile */
.status-text-draft { color: #1976d2; }
.status-text-pending_review { color: #f57c00; }
.status-text-approved { color: #388e3c; }
.status-text-rejected { color: #d32f2f; }
.status-text-synced { color: #00796b; }
.status-text-draft { color: var(--blue-600); }
.status-text-pending_review { color: var(--orange-600); }
.status-text-approved { color: var(--green-600); }
.status-text-rejected { color: var(--red-600); }
.status-text-synced { color: var(--teal-600); }
/* Mobile Pagination */
.mobile-pagination {
@@ -1230,7 +1242,7 @@ const approveSelected = async () => {
.page-info {
font-size: 0.875rem;
font-weight: 500;
color: #475569;
color: var(--text-color-secondary);
min-width: 60px;
text-align: center;
}
@@ -1349,18 +1361,15 @@ const approveSelected = async () => {
.reject-dialog-content p {
margin: 0;
color: #475569;
color: var(--text-color-secondary);
}
/* Text muted helper */
.text-muted {
color: #94a3b8;
color: var(--text-color-secondary);
}
/* Compact table adjustments for more columns */
.compact-table :deep(.p-datatable-wrapper) {
overflow-x: auto;
}
/* Compact table adjustments - styles moved to vendor/primevue-overrides.css */
/* Bulk Actions Bar */
.bulk-actions-bar {
@@ -1368,8 +1377,8 @@ const approveSelected = async () => {
align-items: center;
justify-content: space-between;
padding: 0.75rem 1rem;
background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
border: 1px solid #bfdbfe;
background: linear-gradient(135deg, var(--blue-50) 0%, var(--blue-100) 100%);
border: 1px solid var(--blue-200);
border-radius: 6px;
margin-bottom: 0.75rem;
}
@@ -1379,7 +1388,7 @@ const approveSelected = async () => {
align-items: center;
gap: 0.5rem;
font-weight: 600;
color: #1e40af;
color: var(--blue-700);
}
.selection-info i {