mirror of
https://github.com/marcogll/ap_pos.git
synced 2026-01-13 13:15:16 +00:00
fix: Resolve ticket date formatting issues and enhance appointment system
- Fix ticket date format from "04undefined09undefined2025" to proper "DD/MM/YYYY HH:MM" - Implement proper date handling using movement's fechaISO timestamp - Add bold formatting for Folio and Fecha labels in tickets - Enhance appointment date picker with HTML5 date input - Implement smart time slot availability checking - Improve anticipo (advance payment) handling with better UX - Add comprehensive filtering system for products table - Update cache busting to v=99.9 for proper browser reload - Modernize date/time components throughout the application 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
278
styles.css
278
styles.css
@@ -21,9 +21,9 @@ body {
|
||||
|
||||
|
||||
.container {
|
||||
max-width: 800px;
|
||||
margin: 30px auto;
|
||||
padding: 25px 30px;
|
||||
max-width: 1200px;
|
||||
margin: 20px auto;
|
||||
padding: 30px 40px;
|
||||
background: #fff;
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 4px 20px rgba(0,0,0,0.05);
|
||||
@@ -47,27 +47,6 @@ h3 {
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
/* --- Controles de filtrado y búsqueda --- */
|
||||
.filter-controls {
|
||||
margin-bottom: 20px;
|
||||
padding: 15px;
|
||||
background: #f8f9fa;
|
||||
border-radius: 6px;
|
||||
border: 1px solid #dee2e6;
|
||||
}
|
||||
|
||||
.filter-row {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr 1fr;
|
||||
gap: 15px;
|
||||
align-items: end;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.filter-row {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
/* --- Estilos para tabla unificada --- */
|
||||
.sort-icon {
|
||||
@@ -76,6 +55,16 @@ h3 {
|
||||
color: #6c757d;
|
||||
}
|
||||
|
||||
.sortable {
|
||||
cursor: pointer;
|
||||
user-select: none;
|
||||
transition: background-color 0.2s;
|
||||
}
|
||||
|
||||
.sortable:hover {
|
||||
background-color: #333;
|
||||
}
|
||||
|
||||
th[onclick] {
|
||||
cursor: pointer;
|
||||
user-select: none;
|
||||
@@ -85,6 +74,155 @@ th[onclick]:hover {
|
||||
background-color: #f8f9fa;
|
||||
}
|
||||
|
||||
/* Filter toggle button */
|
||||
.filter-toggle-btn {
|
||||
background: none;
|
||||
border: none;
|
||||
padding: 8px;
|
||||
margin-left: 15px;
|
||||
border-radius: 4px;
|
||||
cursor: pointer;
|
||||
transition: background-color 0.2s;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.filter-toggle-btn:hover {
|
||||
background-color: #e9ecef;
|
||||
}
|
||||
|
||||
.filter-toggle-btn .material-icons-outlined {
|
||||
font-size: 20px;
|
||||
color: #6c757d;
|
||||
}
|
||||
|
||||
/* Filter Modal */
|
||||
.filter-modal {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-color: rgba(0, 0, 0, 0.5);
|
||||
z-index: 1000;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.filter-modal-content {
|
||||
background: white;
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
|
||||
width: 90%;
|
||||
max-width: 600px;
|
||||
max-height: 80vh;
|
||||
overflow: hidden;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.filter-modal-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 16px 20px;
|
||||
border-bottom: 1px solid #e9ecef;
|
||||
background-color: #f8f9fa;
|
||||
}
|
||||
|
||||
.filter-modal-header h4 {
|
||||
margin: 0;
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
color: #212529;
|
||||
}
|
||||
|
||||
.filter-modal-close {
|
||||
background: none;
|
||||
border: none;
|
||||
padding: 4px;
|
||||
cursor: pointer;
|
||||
border-radius: 4px;
|
||||
transition: background-color 0.2s;
|
||||
}
|
||||
|
||||
.filter-modal-close:hover {
|
||||
background-color: #e9ecef;
|
||||
}
|
||||
|
||||
.filter-modal-close .material-icons-outlined {
|
||||
font-size: 18px;
|
||||
color: #6c757d;
|
||||
}
|
||||
|
||||
.filter-modal-body {
|
||||
padding: 20px;
|
||||
overflow-y: auto;
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.filter-group {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.filter-group label {
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
color: #495057;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.5px;
|
||||
}
|
||||
|
||||
.filter-group input,
|
||||
.filter-group select {
|
||||
padding: 8px 12px;
|
||||
border: 1px solid #ced4da;
|
||||
border-radius: 4px;
|
||||
font-size: 14px;
|
||||
transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
|
||||
}
|
||||
|
||||
.filter-group input:focus,
|
||||
.filter-group select:focus {
|
||||
border-color: #80bdff;
|
||||
outline: 0;
|
||||
box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.filter-modal-body {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.filter-modal-content {
|
||||
width: 95%;
|
||||
margin: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
/* Nota explicativa para la tabla */
|
||||
.table-note {
|
||||
background-color: #e3f2fd;
|
||||
color: #1565c0;
|
||||
padding: 10px 15px;
|
||||
border-radius: 4px;
|
||||
border-left: 4px solid #2196f3;
|
||||
margin-bottom: 20px;
|
||||
font-size: 14px;
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
.table-note strong {
|
||||
color: #0d47a1;
|
||||
}
|
||||
|
||||
|
||||
.action-buttons {
|
||||
display: flex;
|
||||
gap: 5px;
|
||||
@@ -181,7 +319,8 @@ th[onclick]:hover {
|
||||
}
|
||||
|
||||
.section {
|
||||
margin-bottom: 40px;
|
||||
margin-bottom: 50px;
|
||||
padding: 0 10px;
|
||||
}
|
||||
|
||||
/* Formularios */
|
||||
@@ -192,44 +331,76 @@ th[onclick]:hover {
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
/* Campos de fecha y hora mejorados */
|
||||
.date-time-container {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.date-field {
|
||||
width: 50px !important;
|
||||
text-align: center;
|
||||
padding: 8px 4px !important;
|
||||
/* Date picker y campos de hora mejorados */
|
||||
.date-picker {
|
||||
width: 100%;
|
||||
padding: 10px;
|
||||
border: 2px solid #ddd;
|
||||
border-radius: 8px;
|
||||
font-size: 14px;
|
||||
color: #333;
|
||||
background: white;
|
||||
cursor: pointer;
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
.date-field-year {
|
||||
width: 70px !important;
|
||||
text-align: center;
|
||||
padding: 8px 4px !important;
|
||||
font-size: 14px;
|
||||
.date-picker:focus {
|
||||
outline: none;
|
||||
border-color: #007bff;
|
||||
box-shadow: 0 0 0 3px rgba(0,123,255,0.25);
|
||||
}
|
||||
|
||||
.date-separator {
|
||||
font-weight: bold;
|
||||
color: #6c757d;
|
||||
font-size: 16px;
|
||||
.date-picker:hover {
|
||||
border-color: #007bff;
|
||||
}
|
||||
|
||||
.time-select {
|
||||
min-width: 160px;
|
||||
font-size: 14px;
|
||||
width: 100%;
|
||||
padding: 10px;
|
||||
border: 2px solid #ddd;
|
||||
border-radius: 8px;
|
||||
background: white;
|
||||
cursor: pointer;
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
.time-select:focus {
|
||||
outline: none;
|
||||
border-color: #007bff;
|
||||
box-shadow: 0 0 0 3px rgba(0,123,255,0.25);
|
||||
}
|
||||
|
||||
.time-select:hover {
|
||||
border-color: #007bff;
|
||||
}
|
||||
|
||||
/* Estilos para opciones ocupadas */
|
||||
.time-select option:disabled {
|
||||
color: #dc3545 !important;
|
||||
background-color: #f8f9fa;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
/* Información de disponibilidad de horarios */
|
||||
.time-availability-info {
|
||||
margin-top: 8px;
|
||||
padding: 6px 10px;
|
||||
background-color: #e3f2fd;
|
||||
border: 1px solid #90caf9;
|
||||
border-radius: 6px;
|
||||
font-size: 12px;
|
||||
color: #1976d2;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* Nuevos estilos modernos para el POS */
|
||||
.form-modern {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 25px;
|
||||
max-width: 800px;
|
||||
gap: 30px;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.form-row {
|
||||
@@ -602,7 +773,7 @@ input[type="tel"],
|
||||
select,
|
||||
textarea {
|
||||
width: 100%;
|
||||
padding: 10px 12px;
|
||||
padding: 12px 15px;
|
||||
border: 1px solid #ced4da;
|
||||
border-radius: 5px;
|
||||
box-sizing: border-box;
|
||||
@@ -799,7 +970,8 @@ button.action-btn {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: 25px;
|
||||
margin-bottom: 35px;
|
||||
padding-bottom: 20px;
|
||||
border-bottom: 1px solid #dee2e6;
|
||||
}
|
||||
|
||||
@@ -868,7 +1040,7 @@ table {
|
||||
|
||||
table th, table td {
|
||||
border-bottom: 1px solid #dee2e6;
|
||||
padding: 12px 15px;
|
||||
padding: 15px 20px;
|
||||
text-align: left;
|
||||
white-space: nowrap;
|
||||
}
|
||||
@@ -1067,12 +1239,14 @@ table tbody tr:hover {
|
||||
}
|
||||
|
||||
.sub-section {
|
||||
margin-top: 30px;
|
||||
padding-top: 20px;
|
||||
margin-top: 40px;
|
||||
margin-bottom: 40px;
|
||||
padding: 25px 15px;
|
||||
border-top: 1px solid #e9ecef;
|
||||
}
|
||||
.sub-section h3 {
|
||||
margin-top: 0;
|
||||
margin-bottom: 25px;
|
||||
}
|
||||
|
||||
/* --- Estilos del Pie de Página --- */
|
||||
|
||||
Reference in New Issue
Block a user