/*
Proyecto PHP POO
Año: 2024
Autor: Hernán Pereira
*/
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    min-height: 100%;
    position: relative;
}

.container h2 {
    color: #000000;
}

a {
    text-decoration: none;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-image: linear-gradient(90deg, #e4e3e3, #f7f7f7);
    /*height: 100vh;*/
    align-items: center;
}

#background {
    background: url("../../assets/images/cover.jpg") no-repeat center center fixed;
    background-size: cover;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.container {
    max-width: 1362px;
    margin: 0 auto;
}

.report {
    max-width: none;
    padding-bottom: 10px;
}

#mainreport {
    margin: 0 auto;
}

.block1,
.block2 {
    width: 98.2%;   
    display: flex;
    /*flex-direction: column;*/
    margin: 10px 0px;
    padding: 10px;
    border-radius: 10px;
}

.block1 {
    background-color: rgb(209, 223, 223);
}

.block2 {
    background-color: rgb(176, 222, 186);
}


.block1 h3,
.block2 h3 {
    color: #000000;
}

.row,
#registro>form {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    margin-top: 10px;
    color: #000000;
    padding: 10px 0px;
}

.row2 {
    display: block;
    margin-top: 5px;
    color: #000000;
}

/*.row>div {
    width: 33%;
    text-align: left;
}*/
#b_id label {
    width: 50%;
}

#fieldsetsel {
    width: 100%;
    border: none;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
}

#fieldsetsel .row {
    margin-top: 0px;
}

#fieldsetsel .column {
    width: 20%;
}

#fieldsetsel .label {
    width: 65%;
    /*margin-right: 30px;*/
}

#fieldsetsel .column input {
    width: 15%;
}

.report .row {
    margin-top: 0;
}

.report .row>div {
    width: 50%;
}

.column {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    margin-right: 20px;
}

.column .label {
    text-align: right;
    width: 40%;
}

.column .input {
    width: 60%;
}

#u_comments {
    text-align: left;
    padding-left: 10px;
}

.report .column .input {
    width: 90%;
    /*margin-top: 5px;*/
}

.report .column .new {
    width: 30%;
    margin-top: 5px;
}

.report .column .label {
    width: 70%;
    margin-top: 10px;
}

.report .row label {
    margin-right: 0px;
}

.report form {
    padding: 0px;
    width: 100%;
    display: flex;
}

input #file-upload-button {
    padding: 12px auto;
}

.row>div h3 {
    color: #000000;
}

#facturar {
    margin-top: 20px;
}

.row label {
    margin-right: 10px;
    color: #000000;
}

.row2 .label2 {
    margin-top: 20px;
    margin-bottom: 5px;
}

.label2>label {
    color: #000000;
}

div>textarea {
    padding: 10px;
    color: #000000;
    text-align: left;
}

.trheader,
.trheader td {
    font-weight: bolder;
    background-color: #265a37;
    width: 120px;
}

/*input,
select,
select option {
    width: 100%;
    height: 30px;
    color: #000000;
}*/

select,
select option {
    width: 100%;
    color: #000000;
    background-color: aquamarine;
}

.button {
padding: 5px;
}

input[type=submit],
.buttons .button {
    padding-left: 0px;
    font-weight: bold;
    width: 200px;
    color: #000000;
}

.container .block2 form .row .column input[type=submit],
.container .block2 form .row .column .buttons .button {
    padding-left: 0px;
    margin-right: 20px;
    font-weight: bold;
    height: 30px;
    width: 200px;
    color: #000000;
}

.container .block2 form .row .column input {
    width: 70%;
}

.container .block2 form .row .column .buttons {
    margin: 0px;
}

.container .block2 form .row {
    margin-bottom: 20px;
}

.container form .block2 {
    padding-bottom: 20px;
}

.buttons {
    width: 100%;
    margin: 50px auto;
    padding: 0 20px;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

.buttons2 {
    margin: 5px auto;
}

#buttonsco {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
}

.report .buttons {
    width: 40%;
    margin: 0;
}

.body2 .container #porcuota,
.body2 .container #porusuario,
.body2 .container #pormes,
.body2 .container #pormetodo {
    display: none;
}

#contenedorus {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    flex-wrap: wrap;
}

#contenedorus {
    margin-top: 40px;
}

#general {
    width: 100%;
}

#ingreso,
#registro,
#nuevo,
#vista {
    background-color: rgba(241, 241, 241, 0.5);
    width: 320px;
    margin: 50px auto;
    text-align: center;
    border-radius: 15px;
}

#vista {
    width: 80%;
}

#ingreso form,
#registro form,
#nuevo form,
#vista form {
    text-align: center;
    margin: 10px auto;
    color: #3F67A9;
    font-weight: bold;
    padding: 10px 20px 
}

#ingreso form input,
#registro form input,
#nuevo form input,
#vista form input {
    color: black;
    margin-bottom: 10px;
    padding: 5px;
    min-width: 95%;
    border-radius: 10px;
}

#ingreso h2 {
    color: #3F67A9;
    margin-top: 10px;
}

#nuevo form input {
    min-width: 0%;
}

#vista form input {
    min-width: 90%;
}

#nuevo form textarea {
    min-width: 90%;
    margin-bottom: 10px;
    color: black;
}

#vista textarea {
    width: 90%;
    margin-bottom: 10px;
    color: black;
}

#ingreso form input[type=submit],
#registro form input[type=submit],
#nuevo form input[type=submit],
#vista form input[type=submit] {
    padding: 5px;
    margin-top: 10px;
    min-width: 75%;
    border-radius: 10px;
    cursor: pointer;
    color: white;
    background-image: linear-gradient(to bottom, #0088cc, #0044cc);
}

#ingreso form:-internal-autofill-selected {
    border-radius: 10px;
}

#registro form input:-internal-autofill-selected {
    border-radius: 10px;
}

.g-recaptcha {
    margin: 0 8px;
}

#error {
    width: 100%;
    height: 100%;
    background-image: linear-gradient(90deg, #305B86, #000000);
}

#main {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

#main2 {
    width: 100%;
    height: 0%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /*align-items: center;*/
    flex-wrap: wrap;
}

#header {
    background-image: linear-gradient(90deg, #305B86, #000000);
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

#conexion {
    /*width: 20%;*/
    /*position: absolute;
    top: 20px;
    right: 20px;
    height: 40px;*/
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    text-align: center;
    /*z-index: 100;*/
    margin-top: 20px;
}
.logo {
    list-style: none;
}
.logo img {
    width: 170px !important;
}
.horizontal {
    list-style: none;
}

/*.horizontal li {
    margin-bottom: 15px;
}*/

#conexion .horizontal #welcome {
    display: none;
}

#conexion ul.horizontal li a {
    background-color: transparent;
}

#conexion ul.horizontal li a:hover {
    background-color: transparent;
}

#conexion img {
    width: 40px;
}


.title {
    text-align: center;
    padding-top: 20px;
    /*margin-top: 15px;
    position: absolute;
    left: 35%;
    z-index: 1;*/
}

.subtitle2 h4 {
    margin-top: 10px;
}

.subtitle2 h6 {
    color: #2d76e8;
    text-align: left;
    margin: 5px auto;
}

#new {
    margin: 20px 0;
}

.report #new {
    margin: 0;
}

#table {
    width: 100%;
    display: block;
    overflow-x: auto;
    padding-bottom: 50px;
}

#table {
    max-width: 1362px;
}

.table {
    padding-bottom: 50px;
    text-align: center;
}

.table input {
    text-align: center;
}

td {
    text-align: center;
    line-height: 1.5rem;
}

#asignacion form {
    text-align: left;
    margin-left: 90px;
}

#tarea form {
    text-align: left;
    margin-left: 30px;
}

#asignacion form input[type=submit],
#tarea form input[type=submit] {
    padding: 5px;
    margin-top: 10px;
    min-width: 55%;
    border-radius: 10px;
    cursor: pointer;
    color: white;
    text-align: center;
    background-image: linear-gradient(to bottom, #0088cc, #0044cc);
}

#asignacion form .subtitle2 h4,
#tarea form .subtitle2 h4 {
    color: #2d76e8;
    text-align: left;
    margin-bottom: 5px;
}

#asignacion #nuevo h2,
#registro h2,
#vista h2 {
    color: #2d76e8;
    margin-top: 10px;
}

#vista h4 {
    color: #2d76e8;
}

:root {
    --color-green: #00a878;
    --color-red: #fe5e41;
    --color-button: #fdffff;
    --color-black: #000;
}

.active {
    display: inline-block;
}

.active .active__checkbox {
    display: none;
}

.active .active__label {
    background-color: var(--color-red);
    width: 3rem;
    height: 1.5rem;
    border-radius: 3rem;
    display: inline-block;
    position: relative;
}

.active .active__label:before {
    transition: .2s;
    display: block;
    position: absolute;
    width: 1.5rem;
    height: 1.5rem;
    background-color: var(--color-button);
    content: '';
    border-radius: 50%;
    box-shadow: inset 0px 0px 0px 1px var(--color-black);
}

.active .active__checkbox:checked+.active__label {
    background-color: var(--color-green);
}

.active .active__checkbox:checked+.active__label:before {
    transform: translateX(1.5rem);
}

.container-input {
    text-align: center;
    border-radius: 6px;
    width: 50%;
    margin: 0 auto;
    /*margin-bottom: 20px;*/
}

.familyclass .container-input {
    text-align: center;
    border-radius: 6px;
    margin: 0 auto;
}


.message h4 {
    background-color: #3F67A9;
    color: #ffffff;
    padding: 10px;
}

.report .block1 .row {
    padding: 0px;
}

.report .block1 .column {
    width: 100%;
}

.column h4 {
    color: #000;
    margin-top: 20px;
    text-align: center;
}

.column h5 {
    color: #000;
    margin-top: 10px;
}

.body2 .report .block2 #formright {
    display: flex;
    flex-direction: row;
    justify-content: end;
}

.body2 .report .block2 #formleft {
    display: flex;
    flex-direction: row;
    justify-content: start;
}

.body2 {
    max-width: 1362px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    position: relative;
}

.subtitle {
    text-align: center;
    margin-top: 70px;
    margin-bottom: 10px;
    font-weight: bolder;
}

input #fichero_usuario {
    width: 50%;
}


@media screen and (max-width: 50em) {
    .inputfile-7+label strong {
        display: block;
    }
}

@media(min-width:1024px) {

    .title {
        margin-top: 30px;
        position: unset;
    }

    #bodyintro header {
        display: flex;
        flex-direction: row;
        justify-content: center;
    }

    .body2 {
        /*margin-top: -550px;*/
        position: static;
    }

    #conexion .horizontal #welcome {
        display: block;
    }

    .subtitle {
        margin-left: 0px;
        text-align: center;
    }
        .report {
            max-width: 1362px;
        }
}

.selectgroup, .dategroup {
    min-width: 40%;
    max-width: 40%;
}

.registro {
    background: white;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
    margin: 30px 50px;
    padding: 30px;
    border: solid 3px;
    border-radius: 20px;
}

.registro .label label {
    color: #000;
}

.registro .label {
    text-align: left;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.registro .label span {
    color: red;
}

.inputreg {
    /*margin: 0 50px 0 0;*/
    width: 50%;
    border: 0;
}

.inputreg input {
    height: 40px;
    border: 0;
    border-bottom: 2px solid #a8a8a8;
    font-size: 1.2rem;
}

.inputreg select {
    font-size: 1.2rem;
    padding-left: 10px;
    height: 40px;
    border: thin solid white;
    border-bottom: 2px solid #a8a8a8;
}

.inputreg select option, .inputreg select option::after {
    text-align: left;
    border: 0px;
}

.inputreg input::placeholder {
    font-size: 1rem;
    padding-left: 10px;
}

.inputreg input:focus {
    border: 0;
    outline: 0;
}


#intro {
    max-width: 800px;
    padding: 0 50px;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    flex-wrap: wrap;
}

#cen1img,
#cen2img,
#cen3img,
#cen4img,
#cen5img,
#cen6img,
#cen7img
{
    width: 230px;
    height: 120px;
    margin: 10px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

#cen1img {
    background-image: url("../../assets/images/usuarios.png");
}

#cen2img {
    background-image: url("../../assets/images/derivaciones.png");
}

#cen3img {
    background-image: url("../../assets/images/familias.png");
}

#cen4img {
    background-image: url("../../assets/images/informes.png");
}

#cen5img {
    background-image: url("../../assets/images/actas.png");
}

#cen6img {
    background-image: url("../../assets/images/organizador.png");
}

#cen7img {
    background-image: url("../../assets/images/equipos.png");
}

#cen1img:hover {
    background-image: url("../../assets/images/usuarios2.png");
}

#cen2img:hover {
    background-image: url("../../assets/images/derivaciones2.png");
}

#cen3img:hover {
    background-image: url("../../assets/images/familias2.png");
}

#cen4img:hover {
    background-image: url("../../assets/images/informes2.png");
}

#cen5img:hover {
    background-image: url("../../assets/images/actas2.png");
}

#cen6img:hover {
    background-image: url("../../assets/images/organizador2.png");
}

#cen7img:hover {
    background-image: url("../../assets/images/equipos2.png");
}

@media(min-width: 514px) {
#intro {
    padding-bottom: 50px;
    }
}

@media(min-width:1024px) {
#intro {
        max-width: 1400px;
        padding: 0 50px;
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        flex-wrap: wrap;
    }

#cen1img,
#cen2img,
#cen3img,
#cen4img,
#cen5img,
#cen6img,
#cen7img   {
    width: 300px;
    height: 200px;
    margin: 20px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    }

.btn-primary {
    float: right;
    margin: 15px 20px 0px 15px;
}

.familyclass .btn-primary {
    float: none;
    margin: 0px;
}

.container.mt-4 .row .col-md-12 {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.container.mt-4 .row .col-md-12 #message {
    /* Configuramos ancho y alto deseado */
    width: 350px; height: 30px;
    margin: -30px auto 5px auto;
    
    /* Animamos la salida de la invisibilidad y opacidad */
    transition: visibility 1s, opacity 1s linear;
    /* Configuramos el aspecto del mensaje */
    border-radius: 8px;
    border: 4px solid #73AD21;
    background-color: rgba(127, 192, 0, 0.5);
    padding: 5px 10px;
    /* Centramos el texto del contenido */
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 1s ease-out;
}

.btn {
  line-height: 1rem;
}

.btn-secondary {
    margin: 15px 20px 0px 15px;
}

.table > :not(caption) > * > * {
    padding-bottom: 0rem;
}

@keyframes fadeIn {
    0% {
      opacity: 0;
    }
    100% {
      opacity: 1;
    }
}
}

#center {
    display: flex;
    justify-content: center;
}

/* Hide professional sections by default */
#prof2, #prof3, #prof4 {
    display: none;
}

.mb-3 {
    text-align: left;
}

.container .row {
    margin-top: 0px;
    padding: 10px 0;
}

.container .row .block1 form .row {
    margin-top: 0px;
    padding: 0px;
}

input[readonly] {
    background-color: #dadada;
    color: #585858;
    cursor: not-allowed;
}

form {
    width: 100%;
}

.inputstyle {
    width: 100%; height: 56%;background-color: #dadada; color: #585858;padding: 8px 5px 0px 5px;;  text-align: center;  border-radius: 6px;
}

#familia,
#institucion,
#desplazamiento,
#actuacion,
#action,
#action_fam,
#action_ins,
#fromto,
#acta {
    display: none;
}

#prof2,
#prof3,
#prof4 {
    display: none;
}

#addProf,
#addProf2,
#addProf3,
#addProf4 {
    cursor: pointer;
}

.no-margin {
    margin: 0;
}
.modal-lg {
    --bs-modal-width: 1200px !important;
}

.no-margin {
    float: none;
}

.familyclass .col-auto {
  flex: unset;
  align-self: auto;
}

.cuadrado {
  width: 25px;
  height: 25px;
  background-color: var(--color-green);
  border: 1px solid white;
}

#cuadrados-container {
  display: flex;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
}

#countDerivacionesContainer {
    display: flex;
    justify-content: left;
    align-items: start;
    margin-bottom: 20px;
}
#countDerivacionesContainer > :nth-child(n) {
    margin-right: 10px;
}

/*#container-footer {
    display: block;
    position: absolute;
    bottom: 0;
    width: 100%;
    background-color: #626262;
    color: #ebe4e4;
    padding: 10px;
    margin-top: 30px;
}*/



#footer {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    width: 100%;
    background-color: #626262;
    color: #ebe4e4;
    padding: 10px;
}

#footer a {
    color: #ebe4e4;
    font-weight: 700;
}

.footer-1,
.footer-2,
.footer-3 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 20px;
}

.primary-card {
    border: 5px solid gold;
}

.secondary-card {
    border: 5px solid darkturquoise;
}

.common-card {
    border: 5px solid blanchedalmond;
}

.commonb-card {
    border: 5px solid lightblue;
}
