body {
    font-size: 14px;
    padding-left: 20px;
    padding-right: 20px;
    min-width: 980px;
    color: #5E4B3C;
    font-family: 'Calibri', sans-serif;
}

table {    
    margin: 10px 6px;
    background-color: lightsteelblue;
}
table.layout{
    border-collapse:collapse;
    border-spacing: 0px;
}

table.layout td,table.layout th{
    border-width: 0px;
}
    table:not(.no-border,.layout) {
        border: 1px solid lightgray;
        border-radius: 6px;
        border-spacing: 0px;
    }

table caption{
    text-align: left;
    font-size: large;
    margin-left: 12px;
}

th,td{
    padding: 2px 6px;
}

table:not(.no-grid) th,table:not(.no-grid) td {    
    border-width: 0px;
    border-right-style: solid;
    border-right-width: 1px;
    border-right-color: rgba(0,0,0,0.3);
}
thead tr:not(:first-child) th{
    border-top-style: solid;
    border-top-width: 1px;
    border-top-color: rgba(0,0,0,0.3);

}

    th:last-child, td:last-child {
        border-width: 0px;
        border-right-width: 0px;
    }

table thead tr:first-child th:first-child{
    border-top-left-radius: 6px;    
}
table thead tr:first-child th:last-child{
    border-top-right-radius:6px;
}
table tfoot tr:last-child th:first-child,table tfoot tr:last-child td:first-child{
    border-bottom-left-radius: 6px;
}
table tfoot tr:last-child th:last-child,table tfoot tr:last-child td:last-child,{
    border-bottom-right-radius: 6px;
}

table tbody{
    background-color: white;
}
table:not(.no-alternate,.layout) tbody tr:nth-child(2n+1) {
    background-color: lightgray;
}
table:not(.no-hover,.layout) tbody tr:hover {
    background-color: #ffc72c;
    cursor:pointer;
}

.btt {
    background-color: #d50032;
    padding: 4px 8px;
    border: 0px solid #333300;
    white-space: nowrap;
    border-radius: 4px;
    color: rgb(255, 255, 255);
    text-decoration: none;
    vertical-align: middle;
    line-height: 180%;
    /*background-image: url('../Immagini/bkg_button.png');
    background-repeat: repeat-x;*/
    background-size: contain;
    margin: 4px;
    font-size: 16px;
}
    .btt:hover {
        background-color: #B7BF10;        
    }

    .btt.print {
        background-image: url('/immagini/print64.png');
        border-color: white;
        /* float: right; */
        padding: 15px;
    }

    .btt.close {
        background-image: url('/immagini/close64.png');
        border-color: white;
        /* float: right; */
        padding: 15px;
    }

    .btt.logout {
        background-image: url('/immagini/log-out64.png');
        border-color: white;
        position: absolute;
        right: 6px;
        display: inline-table;
        top: 0px;
        /* float: right; */
        padding: 15px;
    }

    .btt[disabled]{
        background-color: #e4e4e4;
        font-style: italic;
        color: #b1b1b1;
    }

table.layout td{ padding: 2px 4px; border-width: 0px;}

#titolo {
    padding: 10px 2px;
    background-color: #D50032;
    background-image: url('/Immagini/logo.png'), url('/Immagini/logo-fiorucci-611.png');
    background-position: 12px center, right center;
    background-repeat: no-repeat, no-repeat;
    background-size: 160px, contain;
    border-radius: 6px 6px 0px 0px;
    Color:white;
    text-align:center;
    font-size: 18px;
}

#utente {
    text-align: center;
    margin-top: 6px;
    border: 1px solid #D50032;
    border-bottom-width: 0px;
    border-radius: 0px;
    padding: 10px 8px;
    position: relative;
    display: none;
}
#utente div{
    display: inline-block;
}

input, select, textarea{
    border: 1px solid #D50032;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Calibri',sans-serif
}
input[tipo='numerico']{
    text-align: right;
}

#comandi {
    border-top: 1px solid rgba(255,255,255,0.7);
    border: 1px solid #D50032;
    border-top-width: 0px;
    border-radius: 0px 0px 6px 6px;
    padding: 6px;
    text-align: left;
    position: relative;
    display:none;
    height: 28px;
}

.ctl {
    font-size: small;
    background-color: white;
    border: 1px solid #ef9600;
    border-radius: 3px 4px;
    padding: 5px;
    box-sizing: border-box;
    width: 100%;
}

    .ctl:focus, .a_fuoco {
        background-color: lavender;
        box-shadow: 0px 0px 15px rgb(255,255,200);
    }

    .ctl:disabled {
        background-color: #e4e4e4;
        color: #c6c6c6;
    }

    .ctl.avviso {
        background-color: #f9ff71;
    }

    .ctl[errore] {
        background-color: #ffa2a2;
    }


    .ctl[readonly] {
        background-color: #ffffff;
        border-color: #ef96004f
    }

    .ctl[tipo=numerico] {
        text-align: right;
    }

    .ctl[tipo=etichetta] {
        background-color: #ffffff;
        border-color: #ef96004f
        /* color: #646464; */
    }

    .ctl[tipo=booleano] {
        margin: 5px;
        display: inline-block;
        line-height: 24px;
    }

.rompilinea {
    clear: both;
}

th.ordinabile {
    cursor: pointer;
    background-repeat: no-repeat;
    background-position: right;
    background-size: 14px;
    padding-right: 14px;
}

.ordinabile.asc {
    background-image: url('/immagini/iu/asc.svg');
}

.ordinabile.desc {
    background-image: url('/immagini/iu/desc.svg');
}