.contenedor_pgc{
    background: #eee;
    padding: 10px;
    max-width: 1000px;
    margin: 0 auto;
}

.contenedor_pgc .contenedor_cuenta_pgc{
    transition: 0.7s;
    display: flex;
    margin: 2px 20px;
    justify-content: space-between;
    cursor: pointer;
    background: #fff;
    height: 20px;
    /* overflow: hidden; */
}
.contenedor_pgc .contenedor_titulo .cuenta_contable_id{
    flex:none;
    width: 3em;
    margin-left: 2em;
    text-align: center;
    font-weight: bold;
}
.contenedor_pgc .contenedor_titulo .cuenta_contable{
    flex:none;
    width: 7em;
    margin-left: 2em;
    text-align: center;
    font-weight: bold;
}
.contenedor_pgc .contenedor_titulo .num_cuenta{
    flex:none;
    width: 100px;
    margin-left: 2em;
    text-align: center;
    font-weight: bold;
}
.contenedor_pgc .contenedor_titulo .nif{
    flex:none;
    width: 75px;
    text-align: center;
    margin-left: 2em;
    font-weight: bold;
}
.contenedor_pgc .contenedor_titulo .tipo_cuenta{
    flex:none;
    width: 5em;
    margin-left: 2em;
    text-align: center;
    font-weight: bold;
}
.contenedor_pgc .contenedor_titulo .tipo_iva{
    flex:none;
    width: 4em;
    margin-left: 2em;
    text-align: center;
    font-weight: bold;
}
.contenedor_pgc .contenedor_titulo .descripcion{
    flex:auto;
    margin-left: 2em;
    text-align: center;
    font-weight: bold;
}
.contenedor_pgc .todo_pgc .pgc_cuentas  .div_detalles{
    transition: 0.7s;
    display: flex;
    margin: 2px 20px;
    justify-content: space-between;
    cursor: pointer;
    background: #fff;
    height: 20px;
    overflow: hidden;
}
.contenedor_pgc .todo_pgc .pgc_cuentas  .div_detalles:hover{
    background: #f8f8f8;
}
.contenedor_pgc .todo_pgc .pgc_cuentas .div_detalles[selected="1"]{
    background-color: #78dbe057;
}
.contenedor_pgc .todo_pgc .pgc_cuentas .div_detalles[selected="1"]:hover{
    background-color: #78dbe057;


}
.contenedor_pgc .todo_pgc .pgc_cuentas .div_detalles[selected="0"]{
    background: #fff;
}
.contenedor_pgc .todo_pgc .pgc_cuentas  .div_detalles .cuenta_contable_id{
    flex:none;
    width: 3em;
    margin-left: 2em;
    display: none;
}
.contenedor_pgc .todo_pgc .pgc_cuentas  .div_detalles .cuenta_contable{
    flex:none;
    width: 7em;
    margin-left: 2em;
}
.contenedor_pgc .todo_pgc .pgc_cuentas  .div_detalles .num_cuenta{
    flex:none;
    width: 100px;
    margin-left: 2em;
}
.contenedor_pgc .todo_pgc .pgc_cuentas  .div_detalles .num_cuenta_visivility{
    flex:none;
    width: 100px;
    visibility: hidden;
    margin-left: 2em;
}
.contenedor_pgc .todo_pgc .pgc_cuentas  .div_detalles .nif{
    flex:none;
    width: 75px;
    margin-left: 2em;
}
.contenedor_pgc .todo_pgc .pgc_cuentas  .div_detalles .tipo_cuenta_select
,.contenedor_pgc .todo_pgc .pgc_cuentas  .div_detalles .tipo_cuenta{
    flex:none;
    width: 5em;
    margin-left: 2em;

}
.contenedor_pgc .todo_pgc .pgc_cuentas  .div_detalles .tipo_iva{
    flex:none;
    width: 4em;
    margin-left: 2em;

}
.contenedor_pgc .todo_pgc .pgc_cuentas  .div_detalles .cuenta_descripcion{
    flex:auto;
    margin-left: 2em;
}
.contenedor_pgc .todo_pgc .pgc_cuentas  .hijos{
    flex:auto;
    padding-top: 10px;
}
.contenedor_pgc .div_formulario{
    display: flex;
    margin: 2px 20px;
    padding: 2px;
    justify-content: space-between;
    /* cursor: pointer; */
    background: #fff;
    height: 20px;
    overflow: hidden;
}
.contenedor_pgc .div_formulario .formulario_cuenta_contable_padre{
    flex: none;
    width: 23px;
    margin-right: 1px;
}
.contenedor_pgc .div_formulario .formulario_cuenta_contable{
    flex: none;
    width: 60px;
    margin-right: 1px;
}
.contenedor_pgc .div_formulario .formulario_descripcion{
    flex:4;
    margin-right: 1px;
}
.contenedor_pgc .div_formulario .formulario_iva_porcentaje{
    flex:none;
    width:30px;
    margin-right: 1px;
}
.contenedor_pgc .todo_pgc .pgc_cuentas > .hijos
,.contenedor_pgc .todo_pgc{
    display: flex;
    flex-direction: column;
}
.contenedor_pgc .todo_pgc .pgc_cuentas{
    flex: none;
}

.contenedor_pgc .todo_pgc .pgc_cuentas[desplegado="0"] > .hijos{
    display: none;
}
.contenedor_pgc .todo_pgc .pgc_cuentas[desplegado="1"]{
    display: block;
    height: auto;
    overflow: inherit;
}
.pgc_cuentas{
    transition: 0.5s;
    height: 20px;
}
[desplegado="1"][selected="1"][abierto="1"] ~ .pgc_cuentas {
    height: 0px;
    overflow: hidden;
}
/* [abierto="1"] [desplegado="1"][selected="1"] ~ .pgc_cuentas {
    height: 0px;
    overflow: hidden;
} */
[abierto="1"] > [selected="0"]{
   height: 0px;
   overflow: hidden;
}
[editable ="0"] > .cuenta_descripcion
,[editable ="0"] > .tipo_cuenta
,[editable ="0"] > .tipo_iva
,[editable ="0"] > .cuenta_contable {
    pointer-events: none;
}
[editable ="0"] .boton_atras{
    display: none;
}
[editable ="1"] .boton_atras{
    display: inline;
}
[modificado ="0"] .boton_guardar{
    display: none;
}
[modificado ="1"] .boton_guardar{
    display: inline;
}
.div_detalles:not(:hover) > .boton_editar
,[editable ="1"] .boton_editar{
    display: none;
}
.pgc_cuentas > .div_detalles > .flecha_cuenta{
    display: none;
}
.contenedor_pgc .hijos  .hijos  .hijos  .flecha_cuenta{
    display: inherit;
}
.pgc_cuentas > .div_detalles > .boton_borrar {
    display:none;
}
.contenedor_pgc .hijos  .hijos  .hijos  .boton_borrar{
    display: inherit;
}

.contenedor_pgc .hijos  .hijos  .hijos  .flecha_cerrado
,.contenedor_pgc .hijos  .hijos  .hijos  .flecha_abierto{
    display: none;
}
.pgc_cuentas[desplegado="0"] > .div_detalles > .flecha_abierto{
    display:none;
}
.pgc_cuentas[desplegado="1"] > .div_detalles > .flecha_cerrado{
    display:none;
}

.div_detalles[editable ="1"] div[contenteditable]{
    border:solid #3ec4e7 1px;

}
.formulario_cuenta_contable_padre_id{
    display: none;
}

.pgc_cuentas .div_formulario[visible="0"]{
    display:none;
}

.contenedor_pgc .pgc_cuentas  .div_detalles  .boton_nuevo{
    display: none;
}
.contenedor_pgc .hijos .hijos .boton_nuevo{
    display:inherit;
}
.contenedor_pgc .hijos .hijos .hijos .boton_nuevo{
    display:none;
}
