/* Estilos para Cálculo de Horas */

.ch-admin-wrap {
    max-width: 1400px;
    margin: 20px auto;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.ch-filtros {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.ch-filtros-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-end;
}

.ch-filtros-row > div {
    flex: 1;
    min-width: 150px;
}

.ch-filtros-row label {
    display: block;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 3px;
}

.ch-filtros-row select,
.ch-filtros-row input {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.ch-acciones {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.ch-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
    flex-wrap: wrap;
}

.ch-tab-btn {
    background: #f0f0f0;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 8px 8px 0 0;
    transition: all 0.3s;
}

.ch-tab-btn:hover {
    background: #e0e0e0;
}

.ch-tab-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.ch-tab-content {
    display: none;
    padding: 20px 0;
}

.ch-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.ch-tabla-container {
    overflow-x: auto;
}

.ch-tabla {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.ch-tabla th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px;
    text-align: center;
}

.ch-tabla td {
    padding: 8px 10px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.ch-tabla tr:hover td {
    background: #f5f5f5;
}

.ch-paginacion {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
    align-items: center;
}

.ch-gestion {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.ch-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.ch-form-row > div {
    flex: 1;
    min-width: 150px;
}

.ch-form-row label {
    display: block;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 3px;
}

.ch-form-row input,
.ch-form-row select {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.ch-tabla-mini {
    width: 100%;
    border-collapse: collapse;
    background: white;
    margin-top: 15px;
}

.ch-tabla-mini th {
    background: #667eea;
    color: white;
    padding: 8px 12px;
    text-align: left;
}

.ch-tabla-mini td {
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
}

.ch-tabla-mini tr:hover td {
    background: #f5f5f5;
}

/* Responsive */
@media (max-width: 768px) {
    .ch-filtros-row {
        flex-direction: column;
    }
    .ch-filtros-row > div {
        min-width: 100%;
    }
    .ch-tabs {
        flex-direction: column;
    }
    .ch-tab-btn {
        border-radius: 8px;
    }
    .ch-form-row {
        flex-direction: column;
    }
    .ch-acciones {
        flex-direction: column;
    }
    .ch-acciones button {
        width: 100%;
    }
}