body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f4f4f4;
    padding-bottom: 140px;
}

h1 {
    text-align: center;
    color: #333;
}

h2 {
    font-size: 1.4em; /* Reducción del 20% */
}

h3 {
    font-size: 1.2em; /* Reducción del 20% */
}

th, td {
    border: 1px solid #ddd;
    padding: 5px;
    text-align: center;
    font-size: 80%; /* Reducción del 20% */
}

th {
    background-color: #6dbf7a; /* Verde suave */
    color: white;
}

th[rowspan="2"] {
    background-color: #57a665; /* Verde más oscuro */
}

tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

tbody tr:hover {
    background-color: #f1f1f1;
    cursor: pointer;
}

/* Botón flotante */
.button-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 8px; /* Espacio entre botones */
}

button {
    padding: 8px 16px;
    background-color: #6dbf7a; /* Verde agradable */
    border: none;
    border-radius: 5px;
    color: white;
    cursor: pointer;
    font-size: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

.action-button {
    width: 160px; /* Ajusta este valor para que ambos botones tengan el mismo ancho */
    padding: 8px 16px;
    background-color: #6dbf7a; /* Verde agradable */
    border: none;
    border-radius: 5px;
    color: white;
    cursor: pointer;
    font-size: 12px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

.action-button:hover {
    background-color: #57a665;
}

.action-button:disabled,
button:disabled {
    background-color: #aeb8b0;
    cursor: not-allowed;
}

button:hover {
    background-color: #57a665;
}

/* Modal para resultados */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1100;
}

.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.modal-content-wide {
    max-width: 760px;
}

.modal-content h2 {
    color: #333;
    margin-bottom: 20px;
}

.modal-content p {
    color: #555;
    margin-bottom: 10px;
}

.modal-content ul {
    text-align: left;
    padding-left: 20px;
}

.modal-content ul li {
    color: #444;
    margin-bottom: 5px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #333;
}

/* Zona de arrastre para subir CSV */
.drop-zone {
    margin: 20px 0;
    padding: 20px;
    border: 2px dashed #6dbf7a;
    border-radius: 10px;
    text-align: center;
    background-color: #f9f9f9;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.drop-zone.dragover {
    border-color: #57a665;
    background-color: #e8f5e9;
}

.drop-zone p {
    color: #555;
    font-size: 14px;
}

.tabs {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 0px;
    padding-left: 0px;
}

.tab-button {
    background-color: #6dbf7a;
    border-bottom: none;
    border: none;
    color: white;
    padding: 8px 16px;
    margin: 0 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.3s ease;
    border-radius: 5px 5px 0 0;
    box-shadow: none !important;
}

.tab-button.active {
    background-color: #57a665;
    border-bottom: 2px solid white;
    box-shadow: none !important;
}

.tab-button:hover {
    background-color: #57a665;
}


.tab-content {
    padding: 20px;
    background: white;
    display: none;
    background-color: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 5px 5px;
}

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

.filter-summary {
    background: #ffffff;
    border: 1px solid #d7e7da;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.filter-summary-title {
    font-weight: bold;
    color: #2d5a34;
    margin-bottom: 6px;
}

.filter-summary-meta {
    margin-top: 6px;
    color: #5f6d61;
    font-size: 13px;
}

.copy-panel {
    position: relative;
}

.copy-panel-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 8px;
}

.copy-panel-header h3 {
    margin: 0;
}

.copy-panel-body {
    position: relative;
}

.copy-panel-button {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.92);
    border: 1px solid #c8d8cc;
    color: #55715d;
    box-shadow: none;
    z-index: 1;
}

.copy-panel-button:hover {
    background-color: #eef5ef;
}

.copy-panel-button.copy-panel-button-success {
    background-color: #e6f4e9;
    color: #3f7e51;
    border-color: #9ec7a6;
}

.copy-panel-button.copy-panel-button-error {
    background-color: #f8e6e6;
    color: #9f4b4b;
    border-color: #d8a9a9;
}

.copy-icon {
    position: relative;
    width: 14px;
    height: 14px;
    display: inline-block;
}

.copy-icon::before,
.copy-icon::after {
    content: "";
    position: absolute;
    width: 9px;
    height: 9px;
    border: 1.8px solid currentColor;
    border-radius: 2px;
    background: transparent;
}

.copy-icon::before {
    top: 0;
    left: 4px;
}

.copy-icon::after {
    top: 4px;
    left: 0;
    background: rgba(255, 255, 255, 0.92);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
}

.table-scroll {
    width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
}

.table-scroll-vaquillonas {
    padding-bottom: 8px;
}

#vaquillonasTable {
    min-width: 1650px;
}

#vaquillonasTable th,
#vaquillonasTable td {
    white-space: nowrap;
}

.reports-overview {
    margin-bottom: 18px;
}

.muted-text {
    color: #66736a;
}

.status-pill {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: bold;
    color: white;
}

.status-processing {
    background-color: #6c8f4b;
}

.status-paused {
    background-color: #4f7aa7;
}

.status-review {
    background-color: #8a6bbd;
}

.status-ready {
    background-color: #2e8b57;
}

.status-ready-with-errors {
    background-color: #c58f2f;
}

.status-failed {
    background-color: #b55656;
}

.progress-track {
    width: 140px;
    height: 10px;
    background: #e6ece7;
    border-radius: 999px;
    overflow: hidden;
    margin: 0 auto 4px auto;
}

.progress-fill {
    height: 100%;
    background: #57a665;
}

.progress-caption {
    font-size: 12px;
    color: #4d5c50;
}

.table-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

#vaquillonasTable td:last-child {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    min-width: 150px;
    white-space: nowrap;
    flex-wrap: nowrap;
}

#vaquillonasTable td:last-child button {
    flex: 0 0 auto;
}

.report-row-highlight {
    box-shadow: inset 0 0 0 2px rgba(87, 166, 101, 0.25);
}

.report-detail-row td {
    background: #fbfdfb;
    text-align: left;
}

.report-detail-card {
    border: 1px solid #dbe7dd;
    border-radius: 10px;
    padding: 16px;
    background: white;
}

.report-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.report-console,
.report-id-list {
    background: #f6faf7;
    border: 1px solid #dfeae2;
    border-radius: 8px;
    padding: 14px 52px 14px 14px;
    margin: 0;
    max-height: 260px;
    overflow: auto;
    white-space: pre-wrap;
    font-size: 12px;
    line-height: 1.45;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.report-validation-textarea {
    width: 100%;
    min-height: 220px;
    background: #f6faf7;
    border: 1px solid #dfeae2;
    border-radius: 8px;
    padding: 12px;
    resize: vertical;
    font-size: 12px;
    line-height: 1.45;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.report-validation-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

/* Ajustes responsivos */
@media (max-width: 768px) {
    .modal-content {
        width: 90%;
    }

    table {
        font-size: 12px;
    }

    #vaquillonasTable {
        min-width: 1450px;
    }

    button {
        font-size: 14px;
        padding: 8px 16px;
    }

    .button-container {
        left: 20px;
        right: 20px;
        bottom: 20px;
    }

    .action-button {
        width: 100%;
    }

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

    .progress-track {
        width: 100%;
    }
}

/* simulador de procesamiento de datos */
.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top: 4px solid #6dbf7a; /* Verde */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

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

/* Ocultar botones temporalmente */
.hidden {
    display: none !important;
}
