Initial commit

This commit is contained in:
2025-12-05 11:27:16 -03:00
commit 804bacfbe3
87 changed files with 7260 additions and 0 deletions

112
frontend/css/admin.css Normal file
View File

@@ -0,0 +1,112 @@
.admin-container {
max-width: 1400px;
margin: 0 auto;
}
.tabs {
display: flex;
gap: 1rem;
margin-bottom: 2rem;
border-bottom: 2px solid #ecf0f1;
}
.tab {
padding: 1rem 2rem;
cursor: pointer;
border: none;
background: none;
font-size: 1rem;
color: #7f8c8d;
border-bottom: 3px solid transparent;
transition: all 0.2s;
}
.tab.active {
color: #3498db;
border-bottom-color: #3498db;
}
.tab-content {
display: none;
}
.tab-content.active {
display: block;
}
.albaran-card {
background: white;
border-radius: 8px;
padding: 1.5rem;
margin-bottom: 1rem;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.albaran-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1rem;
padding-bottom: 1rem;
border-bottom: 1px solid #ecf0f1;
}
.albaran-image {
max-width: 100%;
max-height: 400px;
border-radius: 4px;
margin: 1rem 0;
}
.ocr-data {
background: #f8f9fa;
padding: 1rem;
border-radius: 4px;
margin: 1rem 0;
font-family: monospace;
font-size: 0.9rem;
white-space: pre-wrap;
max-height: 300px;
overflow-y: auto;
}
.referencias-table {
width: 100%;
border-collapse: collapse;
margin-top: 1rem;
}
.referencias-table th,
.referencias-table td {
padding: 0.75rem;
text-align: left;
border-bottom: 1px solid #ecf0f1;
}
.referencias-table th {
background: #f8f9fa;
font-weight: bold;
}
.badge {
padding: 0.25rem 0.5rem;
border-radius: 12px;
font-size: 0.75rem;
font-weight: bold;
}
.badge.pendiente {
background: #fff3cd;
color: #856404;
}
.badge.procesado {
background: #d4edda;
color: #155724;
}
.badge.clasificacion {
background: #f8d7da;
color: #721c24;
}

75
frontend/css/base.css Normal file
View File

@@ -0,0 +1,75 @@
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
background: #f5f5f5;
color: #333;
}
.header {
background: #2c3e50;
color: white;
padding: 1rem 2rem;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.header h1 {
font-size: 1.5rem;
}
.nav {
background: #34495e;
padding: 0.5rem 2rem;
}
.nav a {
color: white;
text-decoration: none;
margin-right: 2rem;
padding: 0.5rem 1rem;
display: inline-block;
border-radius: 4px;
transition: background 0.2s;
}
.nav a:hover, .nav a.active {
background: #2c3e50;
}
.container {
max-width: 100%;
padding: 2rem;
}
.btn {
padding: 0.5rem 1rem;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 0.9rem;
transition: all 0.2s;
}
.btn-primary {
background: #3498db;
color: white;
}
.btn-primary:hover {
background: #2980b9;
}
.btn-success {
background: #27ae60;
color: white;
}
.btn-danger {
background: #e74c3c;
color: white;
}

147
frontend/css/kanban.css Normal file
View File

@@ -0,0 +1,147 @@
.kanban-container {
display: flex;
gap: 1rem;
overflow-x: auto;
padding: 1rem 0;
min-height: calc(100vh - 200px);
}
.kanban-column {
flex: 1;
min-width: 300px;
background: #ecf0f1;
border-radius: 8px;
padding: 1rem;
display: flex;
flex-direction: column;
}
.column-header {
background: #34495e;
color: white;
padding: 1rem;
border-radius: 4px;
margin-bottom: 1rem;
font-weight: bold;
text-align: center;
}
.column-header.pendiente-revision { background: #95a5a6; }
.column-header.en-revision { background: #f39c12; }
.column-header.pendiente-materiales { background: #e74c3c; }
.column-header.completado { background: #27ae60; }
.card {
background: white;
border-radius: 6px;
padding: 1rem;
margin-bottom: 1rem;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
cursor: pointer;
transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
transform: translateY(-2px);
box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}
.card.urgente {
border-left: 4px solid #e74c3c;
animation: pulse 2s infinite;
}
@keyframes pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.8; }
}
.card-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 0.5rem;
}
.card-title {
font-weight: bold;
font-size: 1.1rem;
}
.card-subtitle {
color: #7f8c8d;
font-size: 0.9rem;
}
.urgente-badge {
background: #e74c3c;
color: white;
padding: 0.2rem 0.5rem;
border-radius: 12px;
font-size: 0.75rem;
font-weight: bold;
}
.referencias-list {
margin-top: 0.5rem;
}
.referencia-item {
padding: 0.5rem;
margin: 0.25rem 0;
border-radius: 4px;
font-size: 0.9rem;
display: flex;
justify-content: space-between;
align-items: center;
}
.referencia-item.completo {
background: #d5f4e6;
color: #27ae60;
}
.referencia-item.parcial {
background: #fff3cd;
color: #856404;
}
.referencia-item.pendiente {
background: #f8d7da;
color: #721c24;
}
.referencia-codigo {
font-weight: bold;
font-family: monospace;
}
.filters {
background: white;
padding: 1rem;
border-radius: 8px;
margin-bottom: 1rem;
display: flex;
gap: 1rem;
align-items: center;
flex-wrap: wrap;
}
.filter-input {
padding: 0.5rem;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 0.9rem;
}
.refresh-btn {
margin-left: auto;
}
.empty-column {
text-align: center;
color: #95a5a6;
padding: 2rem;
font-style: italic;
}

View File

@@ -0,0 +1,59 @@
.proveedores-container {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
gap: 1.5rem;
}
.proveedor-card {
background: white;
border-radius: 8px;
padding: 1.5rem;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.proveedor-header {
background: #3498db;
color: white;
padding: 1rem;
border-radius: 4px;
margin-bottom: 1rem;
font-weight: bold;
font-size: 1.1rem;
}
.section-title {
font-weight: bold;
margin: 1rem 0 0.5rem 0;
padding-bottom: 0.5rem;
border-bottom: 2px solid #ecf0f1;
}
.referencia-item {
padding: 0.75rem;
margin: 0.5rem 0;
border-radius: 4px;
border-left: 4px solid;
}
.referencia-item.pendiente {
background: #e3f2fd;
border-color: #2196f3;
}
.referencia-item.devolucion {
background: #ffebee;
border-color: #f44336;
}
.referencia-codigo {
font-weight: bold;
font-family: monospace;
color: #2c3e50;
}
.referencia-info {
font-size: 0.9rem;
color: #7f8c8d;
margin-top: 0.25rem;
}

70
frontend/css/upload.css Normal file
View File

@@ -0,0 +1,70 @@
.upload-container {
max-width: 600px;
margin: 2rem auto;
background: white;
padding: 2rem;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.upload-area {
border: 2px dashed #3498db;
border-radius: 8px;
padding: 3rem;
text-align: center;
cursor: pointer;
transition: all 0.3s;
background: #f8f9fa;
}
.upload-area:hover {
background: #e9ecef;
border-color: #2980b9;
}
.upload-area.dragover {
background: #d4edda;
border-color: #27ae60;
}
.upload-icon {
font-size: 3rem;
color: #3498db;
margin-bottom: 1rem;
}
.file-input {
display: none;
}
.preview-image {
max-width: 100%;
max-height: 400px;
margin-top: 1rem;
border-radius: 4px;
}
.btn-upload {
margin-top: 1rem;
width: 100%;
}
.status-message {
margin-top: 1rem;
padding: 1rem;
border-radius: 4px;
display: none;
}
.status-message.success {
background: #d4edda;
color: #155724;
border: 1px solid #c3e6cb;
}
.status-message.error {
background: #f8d7da;
color: #721c24;
border: 1px solid #f5c6cb;
}