/* OPCIONES MONO - Result Container Styles */

#resultContainer {
    margin-top: 30px;
    animation: fadeIn 0.3s ease-in;
}

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

/* Mensajes de Advertencia */
#resultContainer .warning {
    background-color: #f8f4e6;
    border-left: 4px solid #f9b233;
    padding: 16px 20px;
    margin-bottom: 24px;
    border-radius: 4px;
    color: #333;
    font-size: 14px;
    line-height: 1.6;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Paneles de Resultados */
#resultContainer .panel {
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-bottom: 24px;
    transition: box-shadow 0.2s ease;
}

#resultContainer .panel:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Tablas */
#resultContainer .cons-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    font-size: 13px;
    table-layout: fixed;
}

#resultContainer .cons-table th {
    background-color: #f5f5f5;
    color: #333;
    font-weight: 600;
    padding: 14px 16px;
    border-bottom: 2px solid #e0e0e0;
    text-align: left;
    letter-spacing: 0.3px;
    vertical-align: middle;
    word-wrap: break-word;
}

#resultContainer .cons-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f0f0f0;
    color: #555;
    line-height: 1.6;
    vertical-align: middle;
    word-wrap: break-word;
}

#resultContainer .cons-table tr:last-child td {
    border-bottom: none;
}

#resultContainer .cons-table tr:nth-child(even) {
    background-color: #fafafa;
}

/* Headers de paneles */
#resultContainer .panel-heading {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    flex-wrap: wrap;
    background-color: #f5f5f5;
}

#resultContainer .panel-heading span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

#resultContainer .panel-heading strong {
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

#resultContainer .panel-heading span span {
    display: inline;
    color: #555;
}

/* Cuerpo de paneles */
#resultContainer .panel-body {
    display: block;
    padding: 0;
}

/* Separador visual en headers */
#resultContainer .panel-heading [style*="color: #ccc"] {
    opacity: 0.5;
    user-select: none;
}

/* Headers principales de las tablas */
#resultContainer .cons-table tr:first-child th {
    background-color: #2c3e50;
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.5px;
}

#resultContainer .cons-table tbody tr:first-child th {
    background-color: #34495e;
    color: #fff;
}

/* Secciones temáticas dentro de las tablas */
#resultContainer .cons-table tr th[colspan="7"] {
    background-color: #3d5a80;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 16px;
}

#resultContainer .cons-table tr th[colspan="1"] {
    background-color: #f5f5f5;
    color: #333;
    font-weight: 600;
}

/* Datos sensibles (CUIT, CUIL, etc.) */
#resultContainer .cons-table td {
    word-break: break-word;
}

/* Responsive para dispositivos móviles */
@media (max-width: 768px) {
    #resultContainer {
        margin-top: 20px;
    }

    #resultContainer .cons-table {
        font-size: 12px;
    }

    #resultContainer .cons-table th,
    #resultContainer .cons-table td {
        padding: 10px 12px;
    }

    #resultContainer .panel {
        margin-bottom: 16px;
    }

    #resultContainer .warning {
        padding: 12px 16px;
        font-size: 13px;
    }

    #resultContainer .panel-heading {
        gap: 4px;
        font-size: 13px;
    }

    #resultContainer .panel-heading span {
        flex-wrap: wrap;
    }
}

/* Mejoras de accesibilidad y legibilidad */
#resultContainer {
    font-family: 'Roboto', 'Fira Sans', sans-serif;
    color: #333;
}

#resultContainer .panel {
    background-color: #fff;
}

/* Espaciado adicional entre paneles */
#resultContainer .panel + .panel {
    margin-top: 8px;
}

/* Mejora de contraste y legibilidad para datos importantes */
#resultContainer .cons-table strong {
    color: #2c3e50;
    font-weight: 600;
}

/* Alineación consistente de celdas con colspan */
#resultContainer .cons-table td[colspan],
#resultContainer .cons-table th[colspan] {
    text-align: left;
}

/* Espaciado uniforme en celdas */
#resultContainer .cons-table td:first-child,
#resultContainer .cons-table th:first-child {
    padding-left: 20px;
}

#resultContainer .cons-table td:last-child,
#resultContainer .cons-table th:last-child {
    padding-right: 20px;
}

/* Footer de fecha si existe */
#fecha-sistema {
    background-color: #ecf0f1;
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 12px;
    color: #666;
    margin-top: 20px;
    border-left: 3px solid #3498db;
}

#fecha-sistema div {
    font-weight: 500;
}
