/* Estilos para el popup */
.wcfm-presupuesto-popup-container {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    padding-top: 60px;
    justify-content: center;
    align-items: center;
}

.wcfm-presupuesto-popup-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 600px;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.wcfm-presupuesto-popup-close {
    color: #aaaaaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
}

.wcfm-presupuesto-popup-close:hover,
.wcfm-presupuesto-popup-close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

/* Estilos de la tabla */
.wcfm_table_simple_responsive {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    overflow-x: auto;
    display: table;
    white-space: nowrap;
}

.wcfm_table_simple_responsive th, .wcfm_table_simple_responsive td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    white-space: normal;
}

.wcfm_table_simple_responsive th {
    background-color: #f2f2f2;
    font-weight: bold;
}

/* Colores para los estados */
.wcfm_table_simple_responsive tr.aprobado {
    background-color: #e6f7e9;
}
.wcfm_table_simple_responsive tr.pendiente {
    background-color: #fff8e6;
}
.wcfm_table_simple_responsive tr.rechazado {
    background-color: #ffe6e6;
}

/* Estilos para los totales */
.wcfm_table_simple_responsive tfoot tr {
    font-weight: bold;
    background-color: #f9f9f9;
}

/* Estilos para los contenedores de estadísticas */
.wcfm-stats-container {
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.wcfm-stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.wcfm-chart-box {
    flex: 1 1 45%;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    min-width: 300px;
}

.wcfm-stats-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
    justify-content: space-around;
    text-align: center;
}

.wcfm-summary-box {
    flex: 1 1 28%;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.wcfm-summary-box.aprobado {
    background-color: #d4edda;
}
.wcfm-summary-box.pendiente {
    background-color: #fff3cd;
}
.wcfm-summary-box.rechazado {
    background-color: #f8d7da;
}

/* Responsive para dispositivos móviles */
@media (max-width: 768px) {
    .wcfm-movimientos-popup-content, .wcfm-presupuesto-popup-content {
        width: 95%;
        padding: 15px;
    }
    
    .wcfm_table_simple_responsive {
        width: auto;
    }
    .wcfm_table_simple_responsive thead {
        display: none;
    }
    .wcfm_table_simple_responsive tr, .wcfm_table_simple_responsive td {
        display: block;
        width: 100%;
    }
    .wcfm_table_simple_responsive td:before {
        content: attr(data-label);
        font-weight: bold;
        float: left;
    }
    .wcfm_table_simple_responsive td {
        text-align: right;
    }

    .wcfm-stats-row {
        flex-direction: column;
    }
    
    .wcfm-chart-box, .wcfm-summary-box {
        flex: 1 1 100%;
        margin-bottom: 10px;
    }
}