/* Estilos generales del formulario de gastos */
.rg-form-gasto {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.rg-form-gasto label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.rg-form-gasto input[type="date"],
.rg-form-gasto input[type="text"],
.rg-form-gasto input[type="number"],
.rg-form-gasto input[type="file"] {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Incluye el padding en el ancho */
}

.rg-form-gasto .button-primary {
    background-color: #0073aa;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.rg-form-gasto .button-primary:hover {
    background-color: #005177;
}

.rg-progress-bar-container {
    background-color: #e0e0e0;
    border-radius: 5px;
    height: 20px;
    margin-top: 10px;
    overflow: hidden;
}

.rg-progress-bar {
    background-color: #0073aa; /* El color principal de WordPress */
    height: 100%;
    transition: width 0.5s ease-in-out;
}

/* Opcional: Estilo para la barra de progreso cuando est谩 por encima del 75% o del 100% */
.rg-progress-bar-container.rg-warning .rg-progress-bar {
    background-color: #ff9800; /* Naranja */
}

.rg-progress-bar-container.rg-exceeded .rg-progress-bar {
    background-color: #f44336; /* Rojo */
}

/* Estilos para las tablas y reportes de administraci贸n */
.rg-report-summary {
    background-color: #e5e5e5;
    border-left: 4px solid #0073aa;
    padding: 10px 15px;
    margin-bottom: 20px;
}

.rg-filter-form {
    background-color: #f5f5f5;
    padding: 15px;
    border: 1px solid #ddd;
    margin-bottom: 20px;
    border-radius: 3px;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.rg-filter-form input,
.rg-filter-form select {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
}
/* --- Estilos para el Nuevo Reporte de Usuario --- */

.rg-resumen-presupuesto {
    display: flex;
    justify-content: space-around;
    background-color: #f9f9f9;
    border: 1px solid #e5e5e5;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
}

.rg-metrica {
    display: flex;
    flex-direction: column;
}

.rg-etiqueta {
    font-size: 14px;
    color: #555;
    margin-bottom: 5px;
}

.rg-valor {
    font-size: 24px;
    font-weight: bold;
    color: #222;
}

.rg-gastado {
    color: #d63638;
}

.rg-saldo {
    color: #2271b1;
}

.rg-progreso-presupuesto {
    margin-bottom: 30px;
}

.rg-etiquetas-progreso {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: bold;
}

.rg-progress-bar-container {
    background-color: #e0e0e0;
    border-radius: 20px;
    height: 20px;
    overflow: hidden;
}

.rg-progress-bar {
    height: 100%;
    transition: width 0.5s ease-in-out;
    background-color: #4caf50; /* Verde por defecto */
    border-radius: 20px;
}

.rg-progress-bar-container.advertencia .rg-progress-bar {
    background-color: #ff9800; /* Naranja */
}

.rg-progress-bar-container.excedido .rg-progress-bar {
    background-color: #f44336; /* Rojo */
}

/* --- Estilos para el Sistema de Pestañas --- */
.rg-contenedor-tabs {
    margin-top: 20px;
}

.rg-tabs-nav {
    display: flex;
    border-bottom: 2px solid #ccc;
    margin-bottom: -2px; /* Alinea los botones con el borde */
}

.rg-tab-link {
    padding: 10px 20px;
    cursor: pointer;
    border: 2px solid transparent;
    border-bottom: none;
    background-color: #f1f1f1;
    margin-right: 5px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 5px 5px 0 0;
}

.rg-tab-link.active {
    background-color: #fff;
    border-color: #ccc;
    border-bottom: 2px solid #fff;
    font-weight: bold;
}

.rg-tab-content {
    display: none;
    padding: 20px;
    border: 2px solid #ccc;
    border-top: none;
    background-color: #fff;
}

.rg-tab-content.active {
    display: block;
}

/* --- Estilos para el Dashboard de Administrador --- */

.rg-admin-dashboard {
    display: grid;
    grid-template-columns: 2fr 1fr; /* 2/3 para la tabla, 1/3 para el formulario */
    gap: 30px;
    margin-top: 20px;
}

.rg-dashboard-main {
    background-color: #fff;
    padding: 20px;
    border: 1px solid #e5e5e5;
}

.rg-dashboard-sidebar .rg-form-asignar {
    background-color: #fff;
    padding: 20px;
    border: 1px solid #e5e5e5;
}

.rg-dashboard-sidebar select,
.rg-dashboard-sidebar input[type="number"] {
    width: 100%;
}

.rg-progress-bar-container small {
    display: block;
    text-align: center;
    margin-top: 4px;
    font-size: 11px;
    color: #555;
}

/* Ajustes para pantallas más pequeñas */
@media screen and (max-width: 960px) {
    .rg-admin-dashboard {
        grid-template-columns: 1fr; /* Apila las columnas */
    }
}