* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ============================================
   SUPER GLOVO THEME - PALETA DE COLORES
   Verde: #009E81 (Persian Green)
   Amarillo: #FFC244 (Glovo Yellow)
   Amarillo Oscuro: #E6A800
   Verde Oscuro: #007A63
   ============================================ */

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #009E81 0%, #007A63 100%);
    min-height: 100vh;
    padding: 10px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

.card {
    background: white;
    border-radius: 16px;
    padding: 15px;
    margin-bottom: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

h1 {
    color: #009E81;
    text-align: center;
    margin-bottom: 8px;
    font-size: 22px;
}

h3 {
    margin-bottom: 12px;
    color: #1a1a1a;
    font-size: 18px;
}

h4 {
    color: #1a1a1a;
    margin-bottom: 8px;
    font-size: 16px;
}

/* Mode Selection - Compacto */
.mode-selection {
    margin: 15px 0;
}

.mode-selection h3 {
    text-align: center;
    margin-bottom: 15px;
    font-size: 16px;
}

.mode-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.mode-btn {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 15px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.mode-btn:hover {
    border-color: #009E81;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 158, 129, 0.25);
}

.mode-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.mode-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 6px;
}

.mode-desc {
    font-size: 12px;
    color: #666666;
    line-height: 1.3;
}

.mode-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.mode-desc {
    font-size: 13px;
    color: #666666;
}

/* Buttons */
.btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 8px;
}

.btn-small {
    width: auto;
    padding: 8px 16px;
    font-size: 13px;
    margin-top: 4px;
}

.btn-primary {
    background: #009E81;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #007A63;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 158, 129, 0.4);
}

.btn-success {
    background: #FFC244;
    color: #1a1a1a;
}

.btn-success:hover:not(:disabled) {
    background: #E6A800;
    transform: translateY(-2px);
}

.btn-danger {
    background: #ff4d4d;
    color: white;
}

.btn-secondary {
    background: #f0f0f0;
    color: #666666;
}

/* Estado activo del botón de escaneo */
.btn.scanning-active {
    background: linear-gradient(135deg, #FFC244 0%, #E6A800 100%);
    color: #1a1a1a;
    transform: scale(0.95);
    box-shadow: 0 0 20px rgba(255, 194, 68, 0.5);
    animation: pulse-scan 0.5s ease-in-out infinite;
}

@keyframes pulse-scan {
    0%, 100% { box-shadow: 0 0 15px rgba(255, 194, 68, 0.5); }
    50% { box-shadow: 0 0 25px rgba(255, 194, 68, 0.8); }
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.back-btn {
    background: #f0f0f0;
    border: none;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #666666;
    margin-bottom: 15px;
    transition: all 0.3s;
}

.back-btn:hover {
    background: #e0e0e0;
}

/* Status Messages - Compacto */
.status {
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 13px;
    text-align: center;
    font-weight: 500;
}

.status-success {
    background: #d4edda;
    color: #155724;
}

.status-info {
    background: #fff3cd;
    color: #856404;
}

.status-warning {
    background: #ffeaa7;
    color: #7c2d12;
}

/* Scanner Wrapper - Optimizado para móviles */
#scanner-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 180px;
    max-height: 35vh;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    margin: 10px auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    /* Optimización para móviles */
    max-width: calc(100vw - 40px);
}

/* Scanner Container */
#scanner-container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    z-index: 1;
}

#scanner-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#scanner-container canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* A4 Frame Canvas Overlay - Prioridad máxima para visibilidad */
#a4-frame-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 20;
    /* Asegurar que sea visible en móviles */
    -webkit-tap-highlight-color: transparent;
}

/* Media query para móviles específicamente */
@media (max-width: 768px) {
    #scanner-wrapper {
        margin: 0;
        max-width: 100%;
        border-radius: 0;
        width: 100vw;
        height: 180px;
        max-height: 35vh;
    }

    #scanner-container {
        border-radius: 0;
    }
}

/* Media query para pantallas muy pequeñas (smartphones verticales) */
@media (max-width: 480px) and (max-height: 800px) {
    #scanner-wrapper {
        margin: 0;
        width: 100vw;
        height: 180px;
        max-height: 35vh;
        border-radius: 0;
    }

    #scanner-container {
        border-radius: 0;
    }
}

/* A4 Guide Text */
#a4-guide-text {
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 14px;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0,0,0,0.9);
    background: rgba(0,0,0,0.6);
    padding: 10px 20px;
    border-radius: 25px;
    z-index: 30;
    white-space: nowrap;
}

/* Input Fields - Compactos */
.input-field {
    width: 100%;
    padding: 10px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    margin-bottom: 10px;
}

.input-field:focus {
    outline: none;
    border-color: #009E81;
}

/* Textarea específico */
.textarea-field {
    resize: vertical;
    font-family: inherit;
    min-height: 50px;
}

.input-group {
    margin-bottom: 10px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #1a1a1a;
    font-size: 13px;
}

/* Form Section - Compacto */
.form-section {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 12px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

/* Report Info Section - Compacto */
.report-info {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.report-header-info {
    background: #009E81;
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.header-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 15px;
}

.header-row:last-child {
    margin-bottom: 0;
}

/* Product Info Card - Compacto */
.product-info-card {
    background: #e6f7f4;
    border: 2px solid #009E81;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 13px;
}

.info-row:last-child {
    margin-bottom: 0;
}

/* Product Lists - Compacto */
.product-list {
    max-height: 350px;
    overflow-y: auto;
}

.product-item {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    border-left: 3px solid #009E81;
    position: relative;
}

.product-item.not-found {
    border-left-color: #FFC244;
    background: #fffbeb;
}

.product-name {
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
    font-size: 14px;
}

.product-detail {
    font-size: 12px;
    color: #666666;
    margin-bottom: 2px;
}

.edit-quantity {
    width: 70px;
    padding: 5px;
    border: 2px solid #e2e8f0;
    border-radius: 5px;
    font-size: 13px;
    margin-top: 6px;
    font-weight: 600;
}

.not-found-badge {
    display: inline-block;
    background: #FFC244;
    color: #1a1a1a;
    padding: 3px 8px;
    border-radius: 15px;
    font-size: 10px;
    font-weight: 600;
    margin-bottom: 4px;
}

.delete-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ff4d4d;
    color: white;
    border: none;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
}

.delete-btn:hover {
    background: #e53e3e;
}

/* Manual Products Section */
.manual-products-section {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

#manual-temp-list {
    max-height: 300px;
    overflow-y: auto;
}

.manual-product-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    position: relative;
}

.manual-product-card strong {
    color: #1a1a1a;
    display: block;
    margin-bottom: 8px;
}

.manual-detail {
    font-size: 13px;
    color: #666666;
    margin-bottom: 4px;
}

/* Report Table - Compacto */
.report-table {
    overflow-x: auto;
    margin-bottom: 12px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

thead {
    background: #009E81;
    color: white;
}

th {
    padding: 8px 6px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
}

td {
    padding: 8px 6px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 13px;
}

tbody tr:hover {
    background: #f8f9fa;
}

tbody tr:last-child td {
    border-bottom: none;
}

.table-delete-btn {
    background: #ff4d4d;
    color: white;
    border: none;
    padding: 4px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 11px;
}

.table-delete-btn:hover {
    background: #e53e3e;
}

/* Totals Card - Compacto */
.totals-card {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 10px;
    margin: 20px 0;
    border-left: 4px solid #009E81;
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.total-row span:first-child {
    color: #666666;
    font-weight: 500;
}

.total-row span:last-child {
    color: #1a1a1a;
    font-weight: 600;
}

.total-units-value {
    color: #009E81 !important;
    font-weight: 700 !important;
    font-size: 18px !important;
}

/* Scanned Preview */
.scanned-preview {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

#temp-product-list > div {
    padding: 8px;
    background: white;
    border-radius: 8px;
    margin-bottom: 5px;
    font-size: 13px;
}

.badge-csv {
    background: #009E81;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
    margin-right: 5px;
}

.badge-no-csv {
    background: #FFC244;
    color: #1a1a1a;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
    margin-right: 5px;
}

/* Share Options */
.share-options {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
}

.share-options h4 {
    margin-bottom: 15px;
    color: #1a1a1a;
    text-align: center;
}

.share-buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

/* ============================================ */
/* NUEVOS ESTILOS PARA MODO HÍBRIDO CON PESTAÑAS */
/* ============================================ */

/* Estilos para las pestañas */
.tab-container {
    display: flex;
    margin-bottom: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tab-btn {
    flex: 1;
    padding: 12px 15px;
    background: #f8f9fa;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #666666;
    transition: all 0.3s ease;
    position: relative;
}

.tab-btn:hover {
    background: #e9ecef;
    color: #444444;
}

.tab-btn.active {
    background: linear-gradient(135deg, #009E81 0%, #007A63 100%);
    color: white;
    box-shadow: 0 4px 6px rgba(0, 158, 129, 0.3);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #FFC244;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Estilos para el select de discrepancia */
.discrepancy-select {
    width: 100%;
    padding: 10px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    margin-top: 5px;
    background-color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.discrepancy-select:focus {
    outline: none;
    border-color: #009E81;
    box-shadow: 0 0 0 3px rgba(0, 158, 129, 0.1);
}

/* ============================================ */
/* ESTILOS PARA BADGES DE DISCREPANCIAS (NUEVA LISTA) */
/* ============================================ */

.discrepancy-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
    margin-top: 5px;
}

/* 1. Product in DN but not delivered - Rojo Oscuro */
.discrepancy-not-delivered { 
    background: #fee2e2; 
    color: #991b1b; 
    border: 1px solid #dc2626;
}

/* 2. Delivery Note Missing - Naranja */
.discrepancy-missing-dn { 
    background: #ffedd5; 
    color: #9a3412; 
    border: 1px solid #f97316;
}

/* 3. Short Expiration / Caducidad Corta - Amarillo Oscuro */
.discrepancy-short-expiry { 
    background: #fef9c3; 
    color: #854d0e; 
    border: 1px solid #eab308;
}

/* 4. Short Expiration / Rotos - Rojo Intenso */
.discrepancy-broken { 
    background: #fee2e2; 
    color: #7f1d1d; 
    border: 1px solid #ef4444;
}

/* 5. Short Expiration / Dañados - Rojo Intenso */
.discrepancy-damaged { 
    background: #fee2e2; 
    color: #7f1d1d; 
    border: 1px solid #ef4444;
}

/* 6. Short Expiration / Mal Estado - Naranja */
.discrepancy-bad-state { 
    background: #ffedd5; 
    color: #9a3412; 
    border: 1px solid #f97316;
}

/* 7. Short Expiration / Abiertos - Púrpura */
.discrepancy-opened { 
    background: #f3e8ff; 
    color: #6b21a8; 
    border: 1px solid #a855f7;
}

/* 8. Received more units than ordered / Llego de más y está en nuestro surtido - Verde */
.discrepancy-more-in-assortment { 
    background: #dcfce7; 
    color: #166534; 
    border: 1px solid #16a34a;
}

/* 9. Received more units than ordered / Llegó de más y no está en nuestro surtido - Azul */
.discrepancy-more-not-in-assortment { 
    background: #dbeafe; 
    color: #1e40af; 
    border: 1px solid #3b82f6;
}

/* 10. Product not in PO / No aparece en la Zebra - Rojo Oscuro */
.discrepancy-not-in-po { 
    background: #fee2e2; 
    color: #991b1b; 
    border: 1px solid #dc2626;
}

/* Discrepancias personalizadas (Mantener estilo genérico) */
.discrepancy-custom { 
    background: #e9d5ff; 
    color: #6b21a8; 
    border: 1px solid #a855f7;
}

/* Botón primario mejorado */
.primary-btn {
    background: linear-gradient(135deg, #FFC244 0%, #E6A800 100%);
    color: #1a1a1a;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
    width: 100%;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(255, 194, 68, 0.3);
}

.primary-btn:active {
    transform: translateY(0);
}

/* Grupo de botones */
.button-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin: 20px 0;
}

/* Image Preview Modal */
.image-preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.image-preview-modal .modal-content {
    background: white;
    padding: 20px;
    border-radius: 20px;
    max-width: 90%;
    max-height: 90%;
    overflow-y: auto;
}

.image-preview-modal h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #1a1a1a;
}

#report-image-container {
    margin-bottom: 20px;
    text-align: center;
}

#report-image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.modal-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.modal-buttons .btn:last-child {
    grid-column: 1 / -1;
}

/* Utility Classes */
.hidden {
    display: none;
}

.step {
    display: none;
}

.step.active {
    display: block;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.progress-fill {
    height: 100%;
    background: #009E81;
    transition: width 0.3s;
}

/* Scanner Animations */
.scan-line {
    width: 100%;
    height: 2px;
    background: #FFC244;
    position: absolute;
    top: 50%;
    left: 0;
    animation: scan 2s ease-in-out infinite;
    box-shadow: 0 0 10px #FFC244;
}

@keyframes scan {
    0%, 100% { top: 20%; }
    50% { top: 80%; }
}

.detected-code {
    background: #009E81;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 10px;
    animation: pulse 0.5s;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Modal */
.quantity-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 20px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.modal-content h3 {
    margin-bottom: 15px;
    color: #1a1a1a;
    text-align: center;
}

.modal-content p {
    margin-bottom: 15px;
    color: #666666;
    text-align: center;
}

/* Section Header */
.section-header {
    margin-bottom: 20px;
}

/* ============================================ */
/* ESTILOS PARA FECHA DE CADUCIDAD */
/* ============================================ */

.expiry-input {
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    letter-spacing: 1px;
}

.input-hint {
    display: block;
    color: #666666;
    font-size: 12px;
    margin-top: 5px;
    text-align: center;
}

.expiry-badge {
    display: inline-block;
    background: #009E81;
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
}

.expiry-warning {
    background: #FFC244;
    color: #1a1a1a;
}

.expiry-danger {
    background: #ff4d4d;
    color: white;
}

/* ============================================ */
/* RESPONSIVE DESIGN */
/* ============================================ */

@media (max-width: 768px) {
    .mode-buttons {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .report-info {
        grid-template-columns: 1fr;
    }

    .share-buttons {
        grid-template-columns: 1fr;
    }

    .modal-buttons {
        grid-template-columns: 1fr;
    }

    table {
        font-size: 12px;
    }

    th, td {
        padding: 8px 4px;
    }

    .button-group {
        grid-template-columns: 1fr;
    }

    .tab-btn {
        font-size: 14px;
        padding: 12px 15px;
    }

    .discrepancy-badge {
        display: block;
        margin: 5px 0;
        margin-left: 0;
    }

    .product-item .discrepancy-select {
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    .card {
        padding: 15px;
        border-radius: 15px;
    }

    h1 {
        font-size: 20px;
    }

    .tab-btn {
        font-size: 12px;
        padding: 10px;
    }

    .modal-content {
        padding: 20px;
        margin: 10px;
    }

    .discrepancy-select {
        font-size: 12px;
        padding: 8px;
    }
  /* 7. Unidades faltantes en Zebra - Naranja oscuro */
.discrepancy-missing-units-zebra { 
    background: #fed7aa; 
    color: #9a3412; 
    border: 1px solid #f97316;
}

/* Discrepancias personalizadas - Morado claro */
.discrepancy-custom { 
    background: #e9d5ff; 
    color: #6b21a8; 
    border: 1px solid #a855f7;
}

/* ============================================
   ACTUALIZACIÓN DE ESTILOS PARA NAVEGACIÓN
   ============================================ */

/* 1. Contenedor del encabezado (Alinea botón y título horizontalmente) */
.section-header {
    display: flex;
    align-items: center;      /* Centra verticalmente */
    justify-content: flex-start;
    gap: 15px;                /* Espacio entre botón y título */
    margin-bottom: 20px;
}

/* 2. Botón de Volver (Estilos refinados) */
.back-btn {
    background: #f0f0f0;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #666666;
    transition: all 0.3s ease;
    white-space: nowrap;      /* Evita que el texto se parta en dos líneas */
    display: flex;
    align-items: center;
}

.back-btn:hover {
    background: #e0e0e0;
    color: #1a1a1a;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Asegura que el título h3 no tenga margen extra cuando está al lado del botón */
.section-header h3 {
    margin: 0;
}

/* ============================================
   ESTILOS PARA SECCIÓN DE DISCREPANCIA
   ============================================ */

#discrepancy-section {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#discrepancy-calculation {
    border: 2px dashed #FFC244;
    font-weight: 600;
}

#discrepancy-amount {
    font-size: 18px;
    font-weight: 700;
}

/* ============================================
   ESTILOS PARA SECCIÓN DE FOTOS
   ============================================ */

#photos-section {
    animation: slideDown 0.3s ease-out;
}

#photos-preview {
    min-height: 60px;
}

.photo-thumbnail {
    width: 60px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #ff4d4d;
    cursor: pointer;
    transition: transform 0.2s;
}

.photo-thumbnail:hover {
    transform: scale(1.1);
}

.photo-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #fecaca;
    color: #991b1b;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 5px;
}

/* ============================================
   ESTILOS PARA FOTOS DE EVIDENCIA EN MODO ESCANER
   ============================================ */

#scanner-evidence-photos-section {
    animation: slideDown 0.3s ease-out;
}

#scanner-photos-preview {
    min-height: 90px;
}

#scanner-photos-preview img {
    width: 80px;
    height: 110px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #FFC244;
    cursor: pointer;
    transition: transform 0.2s;
}

#scanner-photos-preview img:hover {
    transform: scale(1.1);
}

#scan-tab-photos-preview img {
    width: 80px;
    height: 110px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #FFC244;
    cursor: pointer;
    transition: transform 0.2s;
}

#scan-tab-photos-preview img:hover {
    transform: scale(1.1);
}

/* ============================================
   ESTILOS PARA CAMPOS DE SOLO LECTURA
   ============================================ */

input[readonly] {
    background-color: #f3f4f6;
    color: #6b7280;
    cursor: not-allowed;
}

input[readonly]:focus {
    border-color: #e2e8f0;
    box-shadow: none;
}