/**
 * Estilos para el frontend de Armonización Contable
 * Colores neutros: grises claros con texto oscuro
 */

.ac-frontend-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.ac-year-section {
    margin-bottom: 40px;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    font-size: 17px !important;
}

.ac-year-title {
    font-size: 28px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ccc;
}

.ac-year-header,
.ac-section-header,
.ac-category-header {
    cursor: pointer !important;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.2s;
    padding: 12px 15px;
    margin: -12px -15px;
    border-radius: 4px;
    position: relative;
}

.ac-year-header:hover,
.ac-section-header:hover,
.ac-category-header:hover {
    background-color: #e8e8e8;
}

.ac-year-header {
    font-size: 30px !important;
    color: #333;
    margin-bottom: 20px;
    padding: 12px 0;
    border-bottom: 2px solid #ccc;
    cursor: pointer !important;
    font-weight: 600;
}

.ac-year-toggle-icon,
.ac-section-toggle-icon,
.ac-category-toggle-icon {
    display: inline-block;
    transition: transform 0.3s ease;
    font-size: 12px;
    color: #666;
    min-width: 14px;
    margin-right: 8px;
}

/* Iconos colapsados (rotados -90deg para apuntar a la derecha) */
.ac-year-toggle-icon.ac-collapsed,
.ac-section-toggle-icon.ac-collapsed,
.ac-category-toggle-icon.ac-collapsed {
    transform: rotate(-90deg);
}

/* Iconos expandidos (apuntando hacia abajo) */
.ac-year-toggle-icon:not(.ac-collapsed),
.ac-section-toggle-icon:not(.ac-collapsed),
.ac-category-toggle-icon:not(.ac-collapsed) {
    transform: rotate(0deg);
}

.ac-year-content,
.ac-section-content,
.ac-category-content {
    margin-top: 15px;
}

.ac-frontend-section {
    margin-bottom: 30px;
    padding: 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
}

.ac-frontend-section h3 {
    color: #333;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
}

.ac-document-link {
    margin: 10px 0;
}

.ac-download-link {
    display: inline-block !important;
    padding: 6px 14px !important;
    background: #f5f5f5 !important;
    color: #555 !important;
    text-decoration: none !important;
    border-radius: 3px !important;
    transition: all 0.2s ease !important;
    border: 1px solid #ddd !important;
    font-size: 14px !important;
    font-weight: 400 !important;
}

.ac-download-link:hover {
    background: #e8e8e8 !important;
    color: #333 !important;
    border-color: #bbb !important;
    text-decoration: none !important;
}

.ac-documents-table .ac-download-link {
    display: inline-block !important;
    padding: 6px 14px !important;
    background: #f5f5f5 !important;
    color: #555 !important;
    text-decoration: none !important;
    border-radius: 3px !important;
    transition: all 0.2s ease !important;
    border: 1px solid #ddd !important;
    font-size: 14px !important;
    font-weight: 400 !important;
}

.ac-documents-table .ac-download-link:hover {
    background: #e8e8e8 !important;
    color: #333 !important;
    border-color: #bbb !important;
    text-decoration: none !important;
}

.ac-frontend-category {
    margin-bottom: 25px;
}

.ac-frontend-category h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #ddd;
    font-weight: 600;
}

.ac-documents-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background: #fff;
}

.ac-documents-table th,
.ac-documents-table td {
    padding: 12px;
    text-align: left;
    border: 1px solid #ddd;
    color: #333;
}

.ac-documents-table th {
    background: #f8f9fa;
    color: #333;
    font-weight: 600;
    font-size: 14px;
    border-bottom: 2px solid #dee2e6;
}

.ac-documents-table tr:nth-child(even) {
    background: #f8f9fa;
}

.ac-documents-table tr:hover {
    background: #e9ecef;
}

.ac-no-file {
    color: #999;
    font-style: italic;
}

.ac-documents-table a {
    color: #555 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.ac-documents-table a:hover {
    color: #333 !important;
    text-decoration: none !important;
}

.ac-documents-table a.ac-download-link {
    color: #555 !important;
}

.ac-documents-table a.ac-download-link:hover {
    color: #333 !important;
}

@media (max-width: 768px) {
    .ac-documents-table {
        font-size: 14px;
    }
    
    .ac-documents-table th,
    .ac-documents-table td {
        padding: 8px;
    }
}
