Update report functions

This commit is contained in:
Nguyen Ngo
2025-08-14 12:05:01 -04:00
parent fc9f4d7f54
commit c2f402f45a
4 changed files with 1094 additions and 133 deletions
+297
View File
@@ -446,4 +446,301 @@
.submit-actions {
width: 100%;
}
}
/* Instructions Card */
.instructions-card {
background: linear-gradient(135deg, #e3f2fd, #f3e5f5);
border: 2px solid #4fc3f7;
border-radius: 12px;
padding: 1.5rem;
margin-bottom: 2rem;
box-shadow: 0 4px 12px rgba(79, 195, 247, 0.15);
}
.instructions-content h4 {
color: #1565c0;
font-size: 1.2rem;
font-weight: 600;
margin-bottom: 1rem;
display: flex;
align-items: center;
gap: 0.5rem;
}
.instructions-content ul {
list-style: none;
padding: 0;
margin: 0;
}
.instructions-content li {
padding: 0.5rem 0;
color: #424242;
font-size: 0.95rem;
display: flex;
align-items: flex-start;
gap: 0.75rem;
}
.instructions-content li::before {
content: "✓";
color: #4caf50;
font-weight: bold;
font-size: 1.1rem;
margin-top: 0.1rem;
}
.instructions-content .highlight {
background: linear-gradient(135deg, #ffeb3b, #ffc107);
padding: 0.2rem 0.5rem;
border-radius: 4px;
font-weight: 600;
color: #f57c00;
}
/* Columns Section */
.columns-section {
margin-bottom: 2rem;
}
.columns-section h4 {
color: #2d3748;
font-size: 1.4rem;
font-weight: 600;
margin-bottom: 1.5rem;
display: flex;
align-items: center;
gap: 0.75rem;
}
/* Selected Columns Section */
.selected-columns-section {
background: linear-gradient(135deg, #f8f9fa, #e9ecef);
border: 2px dashed #6c757d;
border-radius: 12px;
padding: 2rem;
margin-top: 2rem;
transition: all 0.3s ease;
}
.selected-columns-section.has-columns {
border-color: #28a745;
border-style: solid;
background: linear-gradient(135deg, #f8fff8, #e8f5e8);
}
.selected-columns-section h4 {
color: #495057;
font-size: 1.3rem;
font-weight: 600;
margin-bottom: 1.5rem;
display: flex;
align-items: center;
gap: 0.75rem;
}
.drag-hint {
font-size: 0.85rem;
color: #6c757d;
font-weight: normal;
font-style: italic;
}
/* Selected Columns List */
.selected-columns-list {
display: flex;
flex-direction: column;
gap: 0.75rem;
min-height: 60px;
}
.selected-column-item {
background: white;
border: 2px solid #e2e8f0;
border-radius: 8px;
padding: 1rem;
cursor: move;
transition: all 0.3s ease;
display: flex;
align-items: center;
justify-content: space-between;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.selected-column-item:hover {
border-color: #4299e1;
transform: translateY(-2px);
box-shadow: 0 4px 16px rgba(66, 153, 225, 0.15);
}
.selected-column-item.sortable-drag {
opacity: 0.8;
transform: rotate(5deg);
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
z-index: 1000;
}
.selected-column-item.sortable-ghost {
opacity: 0.4;
background: #f1f5f9;
}
.selected-column-item.sortable-chosen {
border-color: #3b82f6;
background: #eff6ff;
}
.selected-column-info {
display: flex;
align-items: center;
gap: 1rem;
flex: 1;
}
.column-drag-handle {
color: #9ca3af;
font-size: 1.2rem;
cursor: grab;
padding: 0.5rem;
border-radius: 4px;
transition: all 0.2s ease;
}
.column-drag-handle:hover {
color: #4b5563;
background: #f3f4f6;
}
.column-drag-handle:active {
cursor: grabbing;
}
.selected-column-details {
flex: 1;
}
.selected-column-name {
font-weight: 600;
color: #1f2937;
font-size: 1rem;
margin-bottom: 0.25rem;
}
.selected-column-export-name {
font-size: 0.85rem;
color: #6b7280;
font-style: italic;
}
.column-order-number {
background: linear-gradient(135deg, #4f46e5, #7c3aed);
color: white;
width: 32px;
height: 32px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-weight: 600;
font-size: 0.9rem;
box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}
/* Empty state for selected columns */
.selected-columns-empty {
text-align: center;
padding: 2rem;
color: #6b7280;
font-style: italic;
}
.selected-columns-empty i {
font-size: 2rem;
margin-bottom: 1rem;
color: #9ca3af;
}
/* Enhanced column items in grid */
.column-item.selected {
border-color: #10b981;
background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
transform: translateY(-2px);
box-shadow: 0 4px 16px rgba(16, 185, 129, 0.15);
}
.column-item.selected .column-checkbox label {
background: linear-gradient(135deg, #10b981, #059669);
color: white;
}
/* Responsive design for drag & drop */
@media (max-width: 768px) {
.selected-columns-section {
padding: 1rem;
}
.selected-column-item {
flex-direction: column;
align-items: flex-start;
gap: 0.75rem;
}
.selected-column-info {
width: 100%;
flex-direction: column;
align-items: flex-start;
}
.column-order-number {
align-self: flex-end;
}
.drag-hint {
display: none;
}
}
/* Animation for smooth transitions */
.selected-columns-list .selected-column-item {
animation: slideInUp 0.3s ease-out;
}
@keyframes slideInUp {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* Sortable.js additional styles */
.sortable-fallback {
display: none;
}
/* Enhanced preview table to show column order */
.preview-table thead th {
position: relative;
}
.preview-table thead th::before {
content: attr(data-order);
position: absolute;
top: -8px;
right: -8px;
background: #4f46e5;
color: white;
font-size: 0.7rem;
font-weight: 600;
width: 18px;
height: 18px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}