css
/* ==========================================================================
   Estilos Generales y Contenedor Principal
   ========================================================================== */
body {
    font-family: Arial, sans-serif;
    margin: 10px;
    background-color: #f5f5f5;
}
.container {
    background-color: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 20px auto;
}
.header {
    background-color: #2c3e50;
    color: white;
    padding: 15px;
    margin: -15px -15px 15px -15px;
    border-radius: 8px 8px 0 0;
    text-align: center;
}

/* ==========================================================================
   Nuevos Estilos: Carga, Procesamiento y Botones
   ========================================================================== */
.upload-area, .processing-area {
    text-align: center;
    padding: 40px 20px;
    border: 2px dashed #ccc;
    border-radius: 8px;
    margin-top: 20px;
}

.rri-button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.rri-button:hover {
    background-color: #2980b9;
}

.upload-instructions {
    font-size: 12px;
    color: #7f8c8d;
    margin-top: 15px;
}

.spinner {
    border: 6px solid #f3f3f3; /* Gris claro */
    border-top: 6px solid #3498db; /* Azul */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

#rri-processing-status {
    font-size: 16px;
    color: #2c3e50;
    font-weight: bold;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* ==========================================================================
   Estilos de la Vista de Resultados (Tabla, Estadísticas, etc.)
   ========================================================================== */
.stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 15px;
    padding: 10px;
    background-color: #ecf0f1;
    border-radius: 5px;
    font-size: 12px;
}
.stat {
    text-align: center;
}
.stat-number {
    font-size: 16px;
    font-weight: bold;
    color: #2c3e50;
}
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}
th {
    background-color: #34495e;
    color: white;
    padding: 6px 3px;
    text-align: left;
    font-size: 10px;
    font-weight: bold;
}
td {
    padding: 4px 3px;
    border-bottom: 1px solid #ddd;
    vertical-align: middle;
}
.orden {
    width: 6%;
    text-align: center;
    font-weight: bold;
}
.id-original {
    width: 6%;
    text-align: center;
    font-weight: bold;
    color: #2c3e50;
    background-color: #ecf0f1;
}
.tipo {
    width: 6%;
    text-align: center;
    font-weight: bold;
}
.direccion {
    width: 42%;
    font-size: 10px;
}
.paquetes {
    width: 6%;
    text-align: center;
    font-weight: bold;
    color: #e67e22;
}
.notas {
    width: 25%;
    font-size: 9px;
    color: #7f8c8d;
}
.check {
    width: 4%;
    text-align: center;
}
.drag-handle {
    width: 5%;
    text-align: center;
    cursor: grab;
    user-select: none;
    padding: 3px;
    color: #7f8c8d;
    font-size: 12px;
}
.drag-handle:active {
    cursor: grabbing;
}
.checkbox {
    transform: scale(1.1);
    margin: 0;
}
.completed {
    background-color: #d5f4e6 !important;
}
.completed td {
    opacity: 0.7;
    text-decoration: line-through;
}
.comercio {
    border: 3px solid #3498db;
    background-color: #e8f6ff !important;
}
.visita-normal {
    background-color: #ffa500 !important;
}
.nota-especial {
    border: 2px solid #e74c3c !important;
    animation: parpadeo-aviso 2s ease-in-out infinite;
    position: relative;
}
.nota-especial::before {
    content: '⚠️';
    position: absolute;
    left: 2px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
}
.horario-especial {
    border: 2px solid #9b59b6 !important;
    animation: parpadeo-horario 3s ease-in-out infinite;
}
.horario-especial::after {
    content: '🕐';
    position: absolute;
    right: 2px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
}
@keyframes parpadeo-aviso {
    0% { border-color: #e74c3c; box-shadow: 0 0 5px rgba(231, 76, 60, 0.3); }
    50% { border-color: #ff6b6b; box-shadow: 0 0 15px rgba(255, 107, 107, 0.6); }
    100% { border-color: #e74c3c; box-shadow: 0 0 5px rgba(231, 76, 60, 0.3); }
}
@keyframes parpadeo-horario {
    0% { border-color: #9b59b6; box-shadow: 0 0 5px rgba(155, 89, 182, 0.3); }
    50% { border-color: #bb7bd6; box-shadow: 0 0 15px rgba(187, 123, 214, 0.6); }
    100% { border-color: #9b59b6; box-shadow: 0 0 5px rgba(155, 89, 182, 0.3); }
}
.progress-bar {
    width: 100%;
    height: 15px;
    background-color: #ecf0f1;
    border-radius: 8px;
    overflow: hidden;
    margin: 8px 0;
}
.progress-fill {
    height: 100%;
    background-color: #27ae60;
    width: 0%;
    transition: width 0.3s ease;
}
.progress-text {
    text-align: center;
    font-size: 11px;
    margin-top: 3px;
    color: #2c3e50;
}
.dragging {
    opacity: 0.5;
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    background-color: #f0f0f0;
}
.drag-over {
    border-top: 3px solid #3498db;
}
tbody tr {
    transition: all 0.2s ease;
    cursor: default;
    position: relative;
}
tbody tr:hover {
    background-color: #f8f9fa;
}