/**
 * Estilos para el plugin JP Registros Manager
 */

/* Estilos para la tabla de registros */
.registros-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.registros-table th,
.registros-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.registros-table th {
    border-bottom: 2px solid #ddd;
    font-weight: bold;
}

.registros-table tr:hover {
    background-color: #f5f5f5;
}

/* Estilos para los botones */
.button {
    display: inline-block;
    padding: 6px 12px;
    margin-bottom: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.42857143;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 4px;
    text-decoration: none;
}

.button-primary {
    color: #fff;
    background-color: #337ab7;
    border-color: #2e6da4;
}

.button-delete {
    color: #fff;
    background-color: #dc3545;
    border-color: #dc3545;
}

.button:hover {
    opacity: 0.9;
}

/* Estilos para el selector de estado */
.cambiar-estado-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.selector-cambiar-estado {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.guardar-estado-btn {
    padding: 8px 12px;
    min-height: 0;
    line-height: 1;
}

/* Añadir al final del archivo */
.jp-registros-stats-container {
    margin: 20px 0;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.chart-container {
    position: relative;
    height: 400px;
    width: 100%;
}

#registrosChart {
    width: 100% !important;
    height: 100% !important;
}

.jp-registros-charts {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.jp-registros-stats-container h3 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

.jp-alerta {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 9999;
    background: #4caf50;
    color: #fff;
    padding: 15px 25px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 16px;
}
.jp-alerta.error { background: #e74c3c; }
.jp-alerta.exito { background: #4caf50; }
.jp-alerta.mostrar { opacity: 1; }