mirror of
https://github.com/marcogll/ap_pos.git
synced 2026-01-13 13:15:16 +00:00
feat: Release version 1.3.5 with coderk Docker image preparation
- Updated README.md version references from 1.8 to 1.3.5 - Changed Docker image from marcogll/ap_pos:latest to coderk/ap_pos:1.3.5 - Prepared Docker configuration for coderk deployment 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
516
styles.css
516
styles.css
@@ -59,6 +59,400 @@ h3 {
|
||||
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;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.date-field-year {
|
||||
width: 70px !important;
|
||||
text-align: center;
|
||||
padding: 8px 4px !important;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.date-separator {
|
||||
font-weight: bold;
|
||||
color: #6c757d;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.time-select {
|
||||
min-width: 160px;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
/* Nuevos estilos modernos para el POS */
|
||||
.form-modern {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 25px;
|
||||
max-width: 800px;
|
||||
}
|
||||
|
||||
.form-row {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 20px;
|
||||
}
|
||||
|
||||
.form-group {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.form-group label {
|
||||
font-weight: 600;
|
||||
color: #495057;
|
||||
font-size: 14px;
|
||||
text-align: left;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.form-section {
|
||||
background: #f8f9fa;
|
||||
padding: 20px;
|
||||
border-radius: 8px;
|
||||
border: 1px solid #dee2e6;
|
||||
}
|
||||
|
||||
.form-section h3 {
|
||||
margin: 0 0 15px 0;
|
||||
color: #343a40;
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.products-container {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 15px;
|
||||
}
|
||||
|
||||
.product-selector {
|
||||
display: grid;
|
||||
grid-template-columns: 150px 1fr 80px 100px;
|
||||
gap: 12px;
|
||||
align-items: end;
|
||||
}
|
||||
|
||||
.product-select {
|
||||
min-width: 200px;
|
||||
}
|
||||
|
||||
.quantity-input {
|
||||
width: 70px !important;
|
||||
text-align: center;
|
||||
padding: 8px 4px !important;
|
||||
}
|
||||
|
||||
.btn-add {
|
||||
background-color: #28a745;
|
||||
color: white;
|
||||
border: none;
|
||||
padding: 10px 15px;
|
||||
border-radius: 5px;
|
||||
cursor: pointer;
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
transition: background-color 0.2s;
|
||||
}
|
||||
|
||||
.btn-add:hover {
|
||||
background-color: #218838;
|
||||
}
|
||||
|
||||
.selected-products {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
.product-item {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 80px 100px 40px;
|
||||
gap: 12px;
|
||||
align-items: center;
|
||||
background: white;
|
||||
padding: 12px;
|
||||
border-radius: 6px;
|
||||
border: 1px solid #dee2e6;
|
||||
}
|
||||
|
||||
.product-item-name {
|
||||
font-weight: 500;
|
||||
color: #343a40;
|
||||
}
|
||||
|
||||
.product-item-quantity {
|
||||
text-align: center;
|
||||
color: #6c757d;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.product-item-price {
|
||||
text-align: right;
|
||||
font-weight: 600;
|
||||
color: #28a745;
|
||||
}
|
||||
|
||||
.btn-remove {
|
||||
background-color: #dc3545;
|
||||
color: white;
|
||||
border: none;
|
||||
border-radius: 4px;
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
cursor: pointer;
|
||||
font-size: 16px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.btn-remove:hover {
|
||||
background-color: #c82333;
|
||||
}
|
||||
|
||||
.totals-section {
|
||||
background: #343a40;
|
||||
color: white;
|
||||
padding: 20px;
|
||||
border-radius: 8px;
|
||||
margin: 10px 0;
|
||||
}
|
||||
|
||||
.totals-row {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 8px 0;
|
||||
border-bottom: 1px solid rgba(255, 255, 255, 0.2);
|
||||
}
|
||||
|
||||
.totals-row:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.total-final {
|
||||
font-size: 18px;
|
||||
font-weight: 600;
|
||||
border-top: 2px solid rgba(255, 255, 255, 0.3);
|
||||
margin-top: 10px;
|
||||
padding-top: 15px;
|
||||
}
|
||||
|
||||
/* Estilos para sección de descuentos colapsable */
|
||||
.discount-section {
|
||||
background: #f8f9fa;
|
||||
border: 1px solid #dee2e6;
|
||||
border-radius: 8px;
|
||||
padding: 20px;
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
.discount-header {
|
||||
padding: 0 0 15px 0;
|
||||
background: transparent;
|
||||
color: #343a40;
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
transition: color 0.2s ease;
|
||||
border-bottom: 1px solid #dee2e6;
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
.discount-header:hover {
|
||||
color: #007bff;
|
||||
}
|
||||
|
||||
.discount-checkbox {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
cursor: pointer;
|
||||
accent-color: #007bff;
|
||||
}
|
||||
|
||||
.discount-label {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
cursor: pointer;
|
||||
font-weight: 600;
|
||||
font-size: 16px;
|
||||
margin: 0;
|
||||
flex-grow: 1;
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.discount-icon {
|
||||
font-size: 20px;
|
||||
opacity: 0.8;
|
||||
}
|
||||
|
||||
.discount-container {
|
||||
background: transparent;
|
||||
padding: 0;
|
||||
border: none;
|
||||
border-radius: 0;
|
||||
animation: slideDown 0.3s ease;
|
||||
}
|
||||
|
||||
@keyframes slideDown {
|
||||
from {
|
||||
opacity: 0;
|
||||
max-height: 0;
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
max-height: 300px;
|
||||
}
|
||||
}
|
||||
|
||||
.discount-grid {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 20px;
|
||||
padding: 0;
|
||||
border-bottom: 1px solid #dee2e6;
|
||||
padding-bottom: 15px;
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
.full-width-discount {
|
||||
grid-column: 1 / -1;
|
||||
}
|
||||
|
||||
.input-with-symbol {
|
||||
position: relative;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.input-with-symbol input {
|
||||
flex: 1;
|
||||
padding-right: 35px;
|
||||
}
|
||||
|
||||
.input-symbol {
|
||||
position: absolute;
|
||||
right: 12px;
|
||||
color: #6c757d;
|
||||
font-weight: 600;
|
||||
font-size: 14px;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.discount-preview {
|
||||
background: #e8f5e8;
|
||||
padding: 12px 15px;
|
||||
border-radius: 6px;
|
||||
border: 1px solid #d4edda;
|
||||
}
|
||||
|
||||
.discount-preview-item {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.discount-preview-item span:first-child {
|
||||
color: #495057;
|
||||
}
|
||||
|
||||
.discount-amount {
|
||||
color: #28a745;
|
||||
font-size: 16px;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
/* Oncological patient section styling */
|
||||
#oncologico-fields.active h3 {
|
||||
color: #ea76cb;
|
||||
transition: color 0.3s ease;
|
||||
}
|
||||
|
||||
/* Warrior option styling */
|
||||
option[value="warrior"] {
|
||||
background-color: #ff6b6b;
|
||||
color: white;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
/* Responsive adjustments */
|
||||
@media (max-width: 768px) {
|
||||
.discount-grid {
|
||||
grid-template-columns: 1fr;
|
||||
gap: 15px;
|
||||
}
|
||||
|
||||
.discount-header {
|
||||
padding: 12px 15px;
|
||||
}
|
||||
|
||||
.discount-label {
|
||||
font-size: 14px;
|
||||
}
|
||||
}
|
||||
|
||||
.full-width {
|
||||
grid-column: 1 / -1;
|
||||
}
|
||||
|
||||
.form-actions-modern {
|
||||
display: flex;
|
||||
gap: 15px;
|
||||
justify-content: flex-end;
|
||||
padding-top: 20px;
|
||||
border-top: 1px solid #dee2e6;
|
||||
}
|
||||
|
||||
.btn-primary-large {
|
||||
background-color: #007bff;
|
||||
color: white;
|
||||
border: none;
|
||||
padding: 15px 30px;
|
||||
border-radius: 8px;
|
||||
cursor: pointer;
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
transition: background-color 0.2s;
|
||||
}
|
||||
|
||||
.btn-primary-large:hover {
|
||||
background-color: #0056b3;
|
||||
}
|
||||
|
||||
.btn-secondary-large {
|
||||
background-color: #6c757d;
|
||||
color: white;
|
||||
border: none;
|
||||
padding: 15px 30px;
|
||||
border-radius: 8px;
|
||||
cursor: pointer;
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
transition: background-color 0.2s;
|
||||
}
|
||||
|
||||
.btn-secondary-large:hover {
|
||||
background-color: #5a6268;
|
||||
}
|
||||
|
||||
label {
|
||||
font-weight: 600;
|
||||
text-align: right;
|
||||
@@ -178,7 +572,7 @@ button.action-btn {
|
||||
color: #000;
|
||||
padding: 10px;
|
||||
box-sizing: border-box;
|
||||
font: 12px/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
|
||||
font: 12px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
|
||||
border: 1px solid #ccc; /* Visible en pantalla, no en impresión */
|
||||
}
|
||||
.t-logo {
|
||||
@@ -189,43 +583,65 @@ button.action-btn {
|
||||
}
|
||||
.t-center { text-align: center; }
|
||||
.t-bold { font-weight: bold; }
|
||||
.t-tagline { font-size: 11px; margin-bottom: 6px; }
|
||||
.t-small { font-size: 10px; }
|
||||
.t-business-name { font-size: 14px; margin-bottom: 4px; }
|
||||
.t-tagline { font-size: 11px; margin-bottom: 8px; font-style: italic; }
|
||||
.t-spacer { height: 4px; }
|
||||
.t-small { font-size: 10px; line-height: 1.3; }
|
||||
.t-service-title { margin-bottom: 6px; font-size: 12px; }
|
||||
.t-service-detail { margin-bottom: 3px; }
|
||||
.t-divider { border-top: 1px dashed #000; margin: 8px 0; }
|
||||
.t-row { display: flex; justify-content: space-between; }
|
||||
.t-row { display: flex; justify-content: space-between; margin-bottom: 2px; }
|
||||
.t-footer { margin-top: 10px; }
|
||||
|
||||
.t-qr-section {
|
||||
margin-top: 10px;
|
||||
padding-top: 10px;
|
||||
margin-top: 12px;
|
||||
padding-top: 8px;
|
||||
border-top: 1px dashed #000;
|
||||
text-align: center;
|
||||
}
|
||||
.t-qr-section .t-small {
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
#qr-canvas {
|
||||
margin: 5px auto;
|
||||
margin: 8px auto 4px auto;
|
||||
display: block;
|
||||
}
|
||||
|
||||
|
||||
/***** MODO IMPRESIÓN *****/
|
||||
@media print {
|
||||
body {
|
||||
background: #fff;
|
||||
color: #000;
|
||||
margin: 0;
|
||||
* {
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
.no-print, .container, .main-footer-credits {
|
||||
body {
|
||||
background: #fff !important;
|
||||
color: #000 !important;
|
||||
margin: 0 !important;
|
||||
}
|
||||
|
||||
.no-print, .container, .main-footer-credits, .main-header, .main-footer,
|
||||
.tabs, .tab-content, header, footer, nav, aside {
|
||||
display: none !important;
|
||||
visibility: hidden !important;
|
||||
}
|
||||
|
||||
#printArea {
|
||||
#printArea, #printArea * {
|
||||
visibility: visible !important;
|
||||
display: block !important;
|
||||
}
|
||||
|
||||
@page {
|
||||
size: 58mm auto;
|
||||
margin: 1cm 0;
|
||||
margin: 0.5cm 0.2cm;
|
||||
}
|
||||
|
||||
/* Configuración adicional para impresión PDF */
|
||||
@media print {
|
||||
body {
|
||||
width: 58mm !important;
|
||||
max-width: 58mm !important;
|
||||
}
|
||||
}
|
||||
|
||||
.ticket {
|
||||
@@ -234,6 +650,15 @@ button.action-btn {
|
||||
max-width: 100%;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.t-logo {
|
||||
display: block !important;
|
||||
margin: 0 auto 8px auto;
|
||||
max-width: 75%;
|
||||
height: auto;
|
||||
-webkit-print-color-adjust: exact;
|
||||
color-adjust: exact;
|
||||
}
|
||||
}
|
||||
|
||||
/* --- Estilos de Pestañas --- */
|
||||
@@ -662,4 +1087,67 @@ table tbody tr:hover {
|
||||
|
||||
.footer-info p {
|
||||
margin: 5px 0;
|
||||
}
|
||||
|
||||
/* Estilos para sección de anticipos */
|
||||
.anticipos-section {
|
||||
background: #f8f9fa;
|
||||
border-radius: 8px;
|
||||
padding: 15px;
|
||||
margin: 15px 0;
|
||||
}
|
||||
|
||||
.anticipos-section h4 {
|
||||
margin: 0 0 15px 0;
|
||||
color: #28a745;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.anticipos-container {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.anticipo-item {
|
||||
background: white;
|
||||
border: 1px solid #e9ecef;
|
||||
border-radius: 6px;
|
||||
padding: 10px;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.anticipo-info {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.anticipo-monto {
|
||||
font-weight: bold;
|
||||
color: #28a745;
|
||||
}
|
||||
|
||||
.anticipo-fecha {
|
||||
font-size: 12px;
|
||||
color: #6c757d;
|
||||
}
|
||||
|
||||
.anticipo-actions {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.btn-aplicar-anticipo {
|
||||
background: #28a745;
|
||||
color: white;
|
||||
border: none;
|
||||
padding: 5px 10px;
|
||||
border-radius: 4px;
|
||||
font-size: 12px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.btn-aplicar-anticipo:hover {
|
||||
background: #218838;
|
||||
}
|
||||
Reference in New Issue
Block a user