/* Global styles for Data Entry App */ /* Import shared layout styles - COMMENTED OUT: paths don't exist in unified app */ /* @import '../../../../../shared/frontend/styles/layout/header.css'; */ /* @import '../../../../../shared/frontend/styles/layout/navigation.css'; */ /* Note: Color variables are defined in core/variables.css with dark mode support */ /* This file only overrides layout-specific variables for data-entry module */ :root { /* Layout variables (data-entry specific) */ --header-height: 60px; --sidebar-width: 280px; --z-header: 100; --z-modal: 1000; --z-modal-backdrop: 999; } /* Dark mode overrides for Data Entry module */ /* These must be here because data-entry.css is loaded before main.css */ [data-theme="dark"] { --surface-card: #1e293b; --surface-ground: #0f172a; --surface-border: #475569; --surface-hover: #334155; --text-color: #f9fafb; --text-color-secondary: #94a3b8; } * { box-sizing: border-box; } body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } /* Card styles - Dark mode compatible */ .roa-card { background: var(--surface-card) !important; border-radius: 12px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); padding: 1.5rem; margin-bottom: 1.5rem; border: 1px solid var(--surface-border); } .roa-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--surface-border); } .roa-card-title { font-size: 1.25rem; font-weight: 600; color: var(--text-color); margin: 0; display: flex; align-items: center; gap: 0.5rem; } /* Form styles */ .form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; } .form-field { display: flex; flex-direction: column; gap: 0.5rem; } .form-field label { font-weight: 500; color: var(--text-color-secondary); font-size: 0.9rem; } .form-field .p-inputtext, .form-field .p-dropdown, .form-field .p-calendar, .form-field .p-inputnumber { width: 100%; } .form-field-full { grid-column: 1 / -1; } /* Status badges */ .status-badge { padding: 0.25rem 0.75rem; border-radius: 20px; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; } .status-draft { background-color: var(--blue-50); color: var(--blue-600); } .status-pending { background-color: var(--yellow-50); color: var(--yellow-700); } .status-approved { background-color: var(--green-50); color: var(--green-600); } .status-rejected { background-color: var(--red-50); color: var(--red-600); } .status-synced { background-color: var(--green-50); color: var(--green-700); } /* Table styles */ .data-table-container { overflow-x: auto; } .p-datatable .p-datatable-header { background: transparent; border: none; padding: 0 0 1rem 0; } .p-datatable .p-datatable-thead > tr > th { background: var(--surface-hover); color: var(--text-color); font-weight: 600; } /* Button groups */ .button-group { display: flex; gap: 0.5rem; flex-wrap: wrap; } /* Upload area */ .upload-area { border: 2px dashed var(--surface-border); border-radius: 12px; padding: 2rem; text-align: center; cursor: pointer; transition: all 0.3s; } .upload-area:hover { border-color: var(--primary-500); background-color: var(--surface-hover); } .upload-area.has-files { border-style: solid; border-color: var(--primary-500); } /* Image preview */ .image-preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; margin-top: 1rem; } .image-preview-item { position: relative; border-radius: 8px; overflow: hidden; aspect-ratio: 1; } .image-preview-item img { width: 100%; height: 100%; object-fit: cover; } .image-preview-item .remove-btn { position: absolute; top: 0.5rem; right: 0.5rem; } /* Accounting entries table */ .entries-table { width: 100%; border-collapse: collapse; margin-top: 1rem; } .entries-table th, .entries-table td { padding: 0.75rem; text-align: left; border-bottom: 1px solid var(--surface-border); } .entries-table th { background: var(--surface-hover); font-weight: 600; color: var(--text-color); } .entries-table .debit { color: var(--red-600); } .entries-table .credit { color: var(--green-600); } /* Stats cards */ .stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; } .stat-card { background: var(--surface-card); border-radius: 12px; padding: 1.25rem; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); text-align: center; } .stat-card .stat-value { font-size: 2rem; font-weight: 700; color: var(--text-color); } .stat-card .stat-label { color: var(--text-color-secondary); font-size: 0.9rem; margin-top: 0.25rem; } /* Loading state */ .loading-container { display: flex; justify-content: center; align-items: center; min-height: 200px; } /* Empty state */ .empty-state { text-align: center; padding: 3rem; color: var(--text-color-secondary); } .empty-state i { font-size: 4rem; color: var(--surface-border); margin-bottom: 1rem; } .empty-state h3 { margin-bottom: 0.5rem; } /* Responsive utilities */ @media (max-width: 768px) { .form-grid { grid-template-columns: 1fr; } .stats-grid { grid-template-columns: repeat(2, 1fr); } .button-group { flex-direction: column; } .button-group .p-button { width: 100%; } }