/* Estilos para disciplina financiera - Basados en estados financieros */

/* Estilos generales de la tabla */
.table-filter {
    font-size: 9pt;
}

.table {
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.table thead th {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%) !important;
    color: white !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    font-size: 11pt !important;
    letter-spacing: 0.5px !important;
    border: none !important;
    padding: 15px 12px !important;
    vertical-align: middle !important;
    position: relative !important;
}

.table thead th::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #3498db 0%, #2980b9 100%);
}

.table tbody tr {
    transition: all 0.2s ease;
    border-left: none;
    border-right: none;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.table tbody td {
    padding: 12px;
    vertical-align: middle;
    border-color: #e9ecef;
    font-size: 10pt;
}

/* Estilos para botones de acción */
.btn-action-copy {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%) !important;
    border: none !important;
    color: white !important;
    box-shadow: 0 2px 4px rgba(243, 156, 18, 0.2) !important;
    transition: all 0.2s ease !important;
    font-weight: 500 !important;
}

.btn-action-copy:hover {
    background: linear-gradient(135deg, #e67e22 0%, #f39c12 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(243, 156, 18, 0.3) !important;
}

.btn-action-pdf {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%) !important;
    border: none !important;
    color: white !important;
    box-shadow: 0 2px 4px rgba(231, 76, 60, 0.2) !important;
    transition: all 0.2s ease !important;
    font-weight: 500 !important;
}

.btn-action-pdf:hover {
    background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.3) !important;
}

/* Estilos para botones básicos */
.btn {
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.btn-warning {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    color: #212529;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #e0a800 0%, #d39e00 100%);
    color: #212529;
}

/* Estilos para el buscador */
.input-group {
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.form-control {
    border: none;
    padding: 12px 15px;
    font-size: 0.9rem;
    border-radius: 0;
}

.form-control:focus {
    box-shadow: none;
    border-color: #007bff;
}

/* Estilos para la información de resultados */
.text-muted {
    color: #6c757d !important;
    font-weight: 500;
}

/* Estilos para modales */
.modal-content {
    border: none;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.modal-header {
    border-bottom: none;
    padding: 20px 25px;
    border-radius: 6px 6px 0 0;
}

.modal-body {
    padding: 25px;
}

.modal-footer {
    border-top: none;
    padding: 20px 25px;
    border-radius: 0 0 6px 6px;
}

/* Estilos para botones de acción en la tabla */
.table tbody td .btn {
    margin: 2px;
    padding: 6px 12px;
    font-size: 0.8rem;
}

/* Estilos para iconos en la tabla */
.table tbody td .fas {
    margin-right: 5px;
}

/* Estilos para el contenedor de la tabla */
.table-responsive {
    border-radius: 15px;
    overflow: hidden;
}

/* Estilos para badges */
.badge {
    font-size: 0.75rem !important;
    padding: 6px 12px !important;
    border-radius: 20px !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.badge-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%) !important;
    color: white !important;
    box-shadow: 0 2px 4px rgba(23, 162, 184, 0.2) !important;
}

.badge-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%) !important;
    color: white !important;
    box-shadow: 0 2px 4px rgba(108, 117, 125, 0.2) !important;
}

.badge-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
    color: white !important;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.2) !important;
}

/* Estilos para el card header */
.card-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%) !important;
    color: white !important;
    border: none !important;
    padding: 20px !important;
    font-weight: 600 !important;
    font-size: 1.1rem !important;
}

.card-header i {
    margin-right: 10px;
    color: #ffd700;
}

/* Estilos para el card body */
.card-body {
    padding: 2rem !important;
}

/* Estilos para labels */
label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

/* Estilos para selects */
select.form-control {
    background-color: white;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 10px 15px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

select.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Estilos para el responsive */
@media (max-width: 768px) {
    .card-body {
        padding: 1rem !important;
    }
    
    .table thead th {
        font-size: 10pt !important;
        padding: 10px 8px !important;
    }
    
    .table tbody td {
        font-size: 9pt !important;
        padding: 8px 6px !important;
    }
    
    .btn {
        font-size: 0.8rem !important;
        padding: 6px 10px !important;
    }
}

/* Estilos para notificaciones */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Estilos para el buscador principal - FORZADOS */
.search-section {
    background: #ffffff !important;
    border-radius: 8px !important;
    padding: 20px !important;
    margin-bottom: 20px !important;
    border: 1px solid #dee2e6 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.search-section .form-control {
    border: 1px solid #ced4da !important;
    border-radius: 4px !important;
    padding: 12px 15px !important;
    font-size: 14px !important;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out !important;
    background-color: #fff !important;
    color: #495057 !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    height: auto !important;
    min-height: 38px !important;
    vertical-align: middle !important;
    box-sizing: border-box !important;
    width: 100% !important;
}

.search-section .form-control:focus {
    border-color: #80bdff !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25) !important;
    outline: none !important;
}

.search-section .form-control:hover {
    border-color: #adb5bd !important;
}

/* Estilos específicos para selects en el buscador - FORZADOS */
.search-section select.form-control {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e") !important;
    background-position: right 12px center !important;
    background-repeat: no-repeat !important;
    background-size: 16px !important;
    padding-right: 40px !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    height: auto !important;
    min-height: 38px !important;
    padding: 12px 15px !important;
    padding-right: 40px !important;
}

/* Estilos para las opciones del select - FORZADOS */
.search-section select.form-control option {
    padding: 8px 12px !important;
    font-size: 14px !important;
    color: #495057 !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    background-color: white !important;
    height: auto !important;
    min-height: auto !important;
}


/* Estilos para labels del buscador */
.search-section label {
    color: #495057;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 14px;
    display: block;
    line-height: 1.5;
}

.search-section label i {
    color: #6c757d;
    font-size: 1rem;
    margin-right: 0.5rem;
    vertical-align: middle;
}

/* Estilos para el botón de búsqueda */
.btn-search {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: none;
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-search:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

/* Estilos para botones en el buscador */
.search-section .btn {
    border-radius: 4px;
    font-weight: 400;
    transition: all 0.15s ease-in-out;
    border: 1px solid transparent;
    padding: 8px 16px;
    font-size: 14px;
    line-height: 1.5;
}

.search-section .btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    color: #fff;
}

.search-section .btn-primary:hover {
    background-color: #0056b3;
    border-color: #004085;
}

.search-section .btn-warning {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #212529;
}

.search-section .btn-warning:hover {
    background-color: #e0a800;
    border-color: #d39e00;
}

/* ESTILOS FINALES PROFESIONALES */
.search-section {
    background: #ffffff !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.search-section .form-control {
    background-color: #ffffff !important;
    border: 1px solid #ced4da !important;
    font-size: 14px !important;
    padding: 12px 15px !important;
    color: #495057 !important;
    border-radius: 4px !important;
}

.search-section select.form-control {
    background-color: #ffffff !important;
    border: 1px solid #ced4da !important;
    color: #495057 !important;
}

.search-section .form-control:focus {
    border-color: #80bdff !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25) !important;
}
