/* ------------------------------------- */
/* ------------- generale -------------- */
/* ------------------------------------- */

html, body {height: 100%;}

body {
    font: 16px sans-serif; 
    /* text-align: ; */
    margin:0;
    padding:0;
    display: flex;
    display: -webkit-flex;
}

#container {
    margin-left: 240px; 
    margin-top: 20px; 
    padding: 1px 16px; 
    height: auto; 
    width: 80%;
    padding: 10px;
}
/* ----------------------------------------- */
/* ------- div contenitori pagine ---------- */
/* ----------------------------------------- */
.container {
    width: 100%;
    margin:0px auto;
    background:white;
    height: 100%;
    overflow: auto;
}

.sinistro, .destro {
    padding:0;
    height:100%;
    background:white;
    color: black;
    font-size:14px;
}

.sinistro {
    margin:0;
    text-align:left;
    width:200px;
    float:left;
}

.destro {
    width:80%;
    margin-top: 20px;
    margin-left: 240px;
}

.generico {
    padding: 2em;
}

/* ------------------------------------- */
/* --------------- menu ---------------- */
/* ------------------------------------- */
#menu ul {
    list-style-type: none;
    margin: 0;
    padding: 10px;
    width: 200px;
    background-color: #8080ff;
    position: fixed;
    height: 100%;
    overflow: auto;
}

#menu li {
    display: block;
    color: #fff;
    padding: 1px;
}

#menu li a {
    display: block;
    color: #ffdf7e;
    padding: 8px 16px;
    text-decoration: none;
}

#menu li a.active {
    background-color: #04AA6D;
    color: white;
}

#menu li.active {
    background-color: white;
    color: #993366;
}

#menu li a:hover:not(.active) {
    background-color: #555;
    color: white;
}
/* ------------------------------------- */
/* ---------- tabelle ------------------ */
/* ------------------------------------- */
.tdcentro {
    text-align: center;
}
.tdmin1 {
    width: 1.5em;
}
.tdmin2 {
    width: 3em;
}
.rowtitle, .rowtitle th{
    background-color: #8080ff;
    color: white;
    font-weight: bold;
    text-align: center;
}
.titlesx {
    text-align: left;
}

.titledx {
    text-align: right;
}

.tblbcol tr:nth-child(even) {
    background-color: #E6E6FA;
}

/* ------------------------------------- */
/* ---------- tbl edit ----------------- */
/* ------------------------------------- */
.tbledit {
    width: 40%;
    border: 0;
    margin: auto;
}

.tbledit td:last-of-type {
    text-align: right;
}

.tbledit2 {
    width: 60%;
    border: 0;
    margin: auto;
    text-align: left;
}

.tbledit textarea {
    width: 20em; 
    height: 5em; 
}

.tbledit select {
    width: 15.5em; 
}

.tbledit input[type=text] {
    width: 15em; 
}

.tbledit .testo1{
    width: 3em;
}
/* ------------------------------------- */
/* ---------- tbl view ---------------- */
/* ------------------------------------- */
.tblview {
    width: 100%;
    border: 1px solid;
    margin: auto;
    text-align: left;
}

.tblview td {
    border: 1px solid;
}

.tbl80 {
    width: 80%;
}

.tbl60 {
    width: 60%;
}

.tbl40 {
    width: 40%;
}

.tbltext1 {
    font: 12px sans-serif;
}

/* ------------------------------------- */
/* ------ login/reset-password --------- */
/* ------------------------------------- */
.wrapper{ 
    width: 360px; 
    padding: 20px; 
    margin: 0 auto;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.wrapper h2 {
    color: white;
    background-color: #8080ff;
    width: 70%;
    padding:.375rem .75rem;
    font-weight: bold;
    font-stretch: semi-expanded;
}
.form-control{
    display:block;
    width:70%;
    /*height:calc(1.5em + .75rem + 2px);*/
    padding:.375rem .75rem;
    font-size:1rem;
    font-weight:400;
    line-height:1.5;
    color:#495057;
    background-color:#fff;
    background-clip:padding-box;
    border:1px solid #ced4da;
    border-radius:.25rem;
    transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out
}
.form-group{
    margin-bottom:1rem;
}
.invalid-feedback{
    display:none;
    width:100%;
    margin-top:.25rem;
    font-size:80%;
    color:#dc3545;
}

/* ------------------------------------------------- */
/* -------------------- accordion ------------------ */
/* ------------------------------------------------- */

.accordion {
    width: 80%;
    text-align: left;
}

div.accordion h3:focus, h3:hover{
    background-color: #993366;
    border-color: white;
}

div.accordion h3{
    background-color: #ccc;
    border-color: white;
}
/* ------------------------------------------------- */
/* -------------------- ricerca -------------------- */
/* ------------------------------------------------- */
#cercanew table{
    margin: auto;
    border: 0;
}
#cercanew input[type=text] {
    width: 300px;
}
/* ------------------------------------------------- */
/* -------------------- bottoni -------------------- */
/* ------------------------------------------------- */

.button {
    background-color: #8080ff;
    border: none;
    border-radius: 4px;
    color: white;
    padding: 5px 16px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    margin: 4px 2px;
    cursor: pointer;
}

.button:hover{
    color:#fff;
    background-color: #883366;
}

.button:focus{
    color:#fff;
    background-color: #883366;
}

.btnatt {
    background-color: limegreen;
    border: none;
    border-radius: 4px;
    color: white;
    padding: 5px 16px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    margin: 4px 2px;
    cursor: pointer;
}
.btnnoatt {
    background-color: red;
    border: none;
    border-radius: 4px;
    color: white;
    padding: 5px 16px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    margin: 4px 2px;
    cursor: pointer;
}
.btnxs {
    background-color: #8080ff;
    border: none;
    border-radius: 4px;
    color: white;
    padding: 2px 9px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    margin: 2px 1px;
    cursor: pointer;
}
/* ------------------------------------- */
/* -------------- varie ---------------- */
/* ------------------------------------- */

.sx{
    float: left;
    margin: 0;
    text-align: left;
}
.dx{
    float: right;
    text-align: right;
    margin-right: 0;
}
.up{
    position: absolute;
    top: 0;
    margin: 0;
    text-align: left;
}

.down{
    position: absolute;
    bottom: 0;
    margin: 10px;
    text-align: left;
}

.titolo {
    color: white;
    background-color: #8080ff;
    width: 80%;
    font-weight: bold;
    font-stretch: semi-expanded;
}

p.titolo {
    border-color: white;
    text-indent: 2px;
    text-align: left;
}