* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.error {
    border: 1px solid red !important;
}

/*stilizzazione header*/
header {
    width: 96%;
    min-height: 10vh;
    border-radius: 2vh;
    margin-top: 1%;
    margin-left: 2%;
    background-color: #6868ac;
    color: #ffffff;
    font-family: 'Poppins';
    font-size: 1.2em;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    align-content: center;
    margin-bottom: 30px;
}

.orizontal-input {
    margin: 0.5%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
}

/* finestra di avvertimento */
dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #f2f2f2;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 20px;
    box-sizing: border-box;
}

/*stilizzazione spaziature tra gli input header*/
.head-write-left {
    padding-right: 3px;
}

.head-write-right {
    padding-right: 6%;
    padding-left: 3px;
}

/*input box header*/
.head-inp {
    border: none;
    border-radius: 5px;
    min-height: 20px;
    width: 33%;
    font-family: 'Nunito';
    text-align: center;
    font-size: 0.9em;
}

/*div contenitivo grafico e box*/
.contenitore {
    display: flex;
    justify-content: space-evenly;
    flex-direction: row;
    align-items: stretch;
    min-height: 50vh;
    width: 100%;
}

/*impostazioni grafico*/
.grafico {
    width: 50%;
    min-height: 100%;
}

.addetti {
    padding-right: 13%;
}

/*stilizzazione box*/
.content-box {
    background-color: #6868ac;
    color: #ffffff;
    padding: 15px;
    /* width: 130%; */
    /* width: 50%; */
    border-radius: 10px;
    display: block;
    min-height: 100%;
    font-size: 1.4em;
    font-family: 'Poppins';
    text-align: left;
}

/*posizione dei titoli*/
.title {
    width: 100%;
    display: flex;
    justify-content: space-between;
}

#chart svg path {
    stroke-width: 0.4%;
}

#chart svg .c3-line {
    stroke-width: 0.1%; 
}

#chart svg .c3-line-spesa {
    stroke-width: 0.5%; 
}
  

/*distanziamento elementi box*/
.boxcont {
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    align-items: baseline;
}

/*input + e -*/
.plusmin {
    border: none;
    font-size: 1em;
    background: white;
    color: #6868ac;
    height: 30px;
    border-radius: 50%;
    margin-right: 10px;
    margin-left: 10px;
    width: 30px;
}

/*spaziatura input testo*/
.inp-box {
    margin-bottom: 13%;
}

/*parte bassa del box*/
.slider {
    display: flex;
    justify-content: space-around;
    margin-top: 8%;
    align-items: center;
}

.slider-inp {
    font-size: 1em;
    border-radius: 3px;
    border: none;
    width: 30px;
    height: 35px;
    background-color: #ffffff;
    color: #6868ac;
}

.top-input {
    display: flex;
    justify-content: center;
    align-items: center;
}

@media only screen and (max-width: 700px) {
    .contenitore {
        flex-direction: column-reverse;
    }

    .grafico {
        width: 100%;
    }

    .content-box {
        width: 100%;
    }

    .top-input {
        justify-content: flex-start;
    }

    header {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

@media screen and (max-width: 961px) {
    header {
        flex-direction: row;
        flex-wrap: wrap;
        align-content: center;
    }

    .top-input {
        margin-bottom: 2%;
        margin-top: 2%;
    }

    .contenitore {
        display: flex;
        flex-direction: column-reverse;
        align-items: center;
        width: 100%;
    }

    .content-box {
        width: 110%;
        align-items: center;
        margin-bottom: 10%;
    }

    .slider {
        margin-top: 0;
        margin-bottom: 5%;
    }

    .grafico {
        width: 100%;
    }
}

@media screen and (max-width: 755px) {
    header {
        display: flex;
        flex-direction: column;
    }

    .content-box {
        max-width: 100%;
    }
}

@media screen and (max-width: 459px) {
    .content-box {
        font-size: 1.2em;
        border-radius: 0px;
        width: 110%;
    }

    .addetti {
        padding-left: 15%;
        padding-right: 0px;
    }

    .inp-box {
        max-width: 30%;
    }

    .boxcont {
        justify-content: center;
    }

    .title {
        justify-content: center;
    }

    .box-text {
        text-align: center;
    }

    .slider {
        justify-content: center;
    }

    .slider-inp:nth-child(1) {
        margin-right: 3%;
    }

    .slider-inp:nth-child(3) {
        margin-left: 3%;
    }

    header {
        align-items: flex-start;
        width: 100%;
        border-radius: 0px;
        margin-right: 0px;
        margin-left: 0px;
        margin-top: 0px;
    }
    .grafico
    {
        width: 80%;
    }
}


/* Resoconto */
#finals {
    display: none;
    flex-wrap: wrap;
    flex-direction: column;
    padding: 1%;
    background-color: #ccc;
    border-radius: 2vh;
    box-shadow: 1vh 1vh 1vh rgb(188, 183, 183);
    width: 15%;
    margin-top: 0%;
    margin-left: 10%;
    margin-bottom: 10%;
    color: rgb(48, 45, 45);
}

#final_spese {
    color: #ff6600;
}

#final_budget {
    color: grey;
}

#final_bill {
    color: rgb(43, 206, 43);
}

#final_ore {
    color: rgb(64, 64, 253);
}

.finals-data {
    display: flex;
    flex-direction: row;
    margin-bottom: 2%;
    margin-top: 2%;
}

output {
  display: flex;
  align-items: center;
  justify-content: center; 
  background-color: #eee;
  border-radius: 1vh;
  text-align: center;
  margin-top: 2%;
  margin-bottom: 2%;
  margin-right: 5%;
  width: 40%;
  font-size:small;
}
