﻿html, body {
    height: 100%;
}

body {
    background-color: #D7DFE2;
    margin: 0;
    padding: 0;
    font: 12px verdana, arial, helvetica;
    line-height: 16px;
    color: #416271;  
}

#wrapper {
    min-height: 100%;
    /*height: auto !important;*/
    /*height: 100%;*/
    /*margin: 0 auto 0;*/ 
}

/*********** Header ***********/
#header {
    width: 100%;
    /*height: auto;*/
    float: left;
    background-color: #50a841;
    border-bottom: 3px solid #FFF;
}

#header-wrapper {
    width: 960px;
    height: 50px;
    margin: 0 auto;
}

    #header-wrapper #logo {
        width: 550px;
        height: 30px;
        float: left;
        color: #FFF;
        font-family: Calibri;
        font-weight: bold;
        font-size: 24px;
        line-height: 30px;
        margin: 8px 2px 2px 2px;
        padding-left: 5px;
    }

    #header-wrapper #user-toolbar {
        width: 400px;
        height: 40px;
        float: right;
        color: #FFF;
    }

    #header-wrapper #user-data {
        width: auto;
        height: 36px;
        float: left;
        background: url(/files/ico/guest.png) no-repeat center left;
        color: #FFF;
        line-height: 18px;
        margin: 2px;
        padding-left: 30px;
    }

    #header-wrapper #logout {
        width: auto;
        height: 40px;
        float: left;
        color: #FFF;
        margin-left: 15px;
    }

        #header-wrapper #logout A,
        #header-wrapper #logout A:visited {
            width: auto;
            height: 36px;
            float: left;
            background: url(/files/ico/logout.png) no-repeat center left;
            color: #FFF;
            line-height: 36px;
            font-weight: bold;
            padding: 0 5px 0 30px;
            margin: 2px 0;
        }

            #header-wrapper #logout A:hover {
                background-color: #368c28;
            }


/*********** Login ***********/
#box-login {
    width: 322px;
    height: auto;
    margin: 80px auto 0;
}

    #box-login div.login-standard {
        width: 280px;
        height: auto;
        float: left;
        background-color: #FFF;
        padding: 15px;
        border: 1px solid #859094;
    }

    #box-login div.login-content {
        width: 280px;
        height: auto;
        float: left;
        margin: 15px 0;
        line-height: 20px;
        font-weight: bold;
    }

/************* Menu ************/
#menu {
    width: 960px;
    height: 30px;
    margin: 0 auto;
    padding-top: 20px;
}

    #menu .voce A {
        width: auto;
        height: auto;
        float: left;
        color: #fff;
        font-family: Calibri;
        font-weight: bold;
        font-size: 18px;
        line-height: 26px;
        text-align: center;
        padding: 2px 15px;
    }

        #menu .voce A.selected {
            color: #368c28;
            background-color: #D7DFE2;
            -webkit-border-radius: 5px 5px 0 0;
            -moz-border-radius: 5px 5px 0 0;
            -ms-border-radius: 5px 5px 0 0;
            border-radius: 5px 5px 0 0;
        }

#menu .voce A IMG {
            height: 20px;
            padding: 0 4px 0 0;
            margin: 0;
            vertical-align: middle;
        }
/********* End Menu ***********/


/************ Toolbar ************/
#toolbar {
    margin: 0;
    padding: 7px 6px;
    background: #9dadb1 url("/files/img/overlay.png") repeat-x 0 -110px;
    line-height: 100%;
    -ms-border-radius: 1em;
    font: normal 0.5333333333333333em Arial, Helvetica, sans-serif;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 1em;
    border-radius: 5px;
    -webkit-box-shadow: 0 1px 3px #000000;
    -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    -moz-box-shadow: 0 1px 3px #000000;
    -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    width: 889px;
    float:left
}

#toolbar .label {
        width: auto;
        height:auto;
        float:left;
        line-height:30px;
        border-left: 2px solid #fff;
        padding:0 15px;
        font-size:20px
    }
/************ End Toolbar ************/


/*********** Contenuti ***********/
#main-contents {
    width: 960px;
    min-height: 600px;
	height: auto !important;
	margin: 0 auto 0;
}
    #main-contents noscript {
        width: 920px;
        height: auto;
        float: left;
        border-top:5px double #D7DFE2;
        border-bottom:5px double #D7DFE2; 
        padding: 20px;
        font-size:16px; 
        line-height:18px; 
        color:#FFF;
    }

    #main-contents #contenuti {
        width: 940px;
        height: auto;
        min-height: 600px;
        float: left;
        background-color: #FFF !important;
        padding: 10px;
    }


.standard {
    width: 940px;
    height: auto;
    float: left;
}

    .standard .riga {
        width: 900px;
        height: auto;
        float: left;
        padding: 0 20px;
        margin: 4px 0;
    }

        .standard .riga .label {
            width: 140px;
            height: auto;
            float: left;
            line-height: 22px;
            font-weight: bold;
        }

        .standard .riga .label-big {
            width: 240px;
            height: auto;
            float: left;
            line-height: 22px;
            font-weight: bold;
        }

        .standard .riga .testo {
            width: 300px;
            height: auto;
            float: left;
            line-height: 22px;
        }

        .standard .riga .check {
            width: 700px;
            height: auto;
            float: left;
            line-height: 22px;
        }

        .standard .riga .data {
            width: 200px;
            height: auto;
            float: left;
            line-height: 22px;
        }

        .standard .riga .messaggio, .standard .riga .messaggio INPUT {
            width: 460px;
            height: auto;
            float: left;
            line-height: 22px;
            font-weight: bold;
            font-size: 12px;
        }

            .standard .riga .messaggio IMG {
                height: 20px;
                padding: 0 4px 0 0;
                margin: 0;
                vertical-align: middle;
            }

    .standard .col {
        width: 440px;
        height: auto;
        float: left;
        padding: 0 5px;
    }

        .standard .col .riga,
        .standard .col .messaggio {
            width: 440px;
            height: auto;
            min-height: 28px;
            line-height: 28px;
            float: left;
            margin: 4px 0;
        }

        .standard .col .messaggio {
            padding-left:20px
        }

            .standard .col .riga .label {
                width: 140px;
                height: auto;
                float: left;
            }

            .standard .col .riga .testo {
                width: 300px;
                height: auto;
                float: left;
            }

                .standard .col .riga .testo .rb_scelta_invio SPAN {
                   padding-right:10px;
                }

            .standard .col .messaggio,
            .standard .col .riga .messaggio, 
            .standard .col .riga .messaggio INPUT {
                width: 440px;
                height:auto;
                min-height: 28px;
                float: left;
                line-height: 28px;
                font-weight: bold;
                font-size: 12px;
            }

            
.cnt-400 {
    width: 400px;
    height: auto;
    float: left;
}

    .cnt-400 .label {
        width: 160px;
        height: auto;
        float: left;
    }

    .cnt-400 .testo {
        width: 240px;
        height: auto;
        float: left;
    }


/*********** Box pagina preventivo ***********/
.box {
    -webkit-border-radius: 7px;
    -moz-border-radius: 7px;
    -ms-border-radius: 7px;
    border-radius: 7px;
    border: 1px solid #50A841;
    background-color: #fbfbfb;
    -webkit-box-shadow: #855D5D 1px 1px 1px;
    -moz-box-shadow: #855D5D 1px 1px 1px;
    -ms-box-shadow: #855D5D 1px 1px 1px;
    box-shadow: #855D5D 1px 1px 1px;
    width: inherit;
    height: auto;
    float: left;
    padding: 4px 0;
}

.box_rosso {
    -webkit-border-radius: 7px;
    -moz-border-radius: 7px;
    -ms-border-radius: 7px;
    border-radius: 7px;
    border: 1px solid #960808;
    background-color: #fbfbfb;
    -webkit-box-shadow: #855D5D 1px 1px 1px;
    -moz-box-shadow: #855D5D 1px 1px 1px;
    -ms-box-shadow: #855D5D 1px 1px 1px;
    box-shadow: #855D5D 1px 1px 1px;
    width: inherit;
    height: auto;
    float: left;
    padding: 4px 0;
}


/*********** Loading ***********/
#loading-div-background {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    background: black;
    width: 100%;
    height: 100%;
}

#loading-div {
    background-color: #0c0b0b;
    text-align: center;
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -150px;
    margin-top: -100px;
}

    #loading-div .messaggio {
        color: gray;
        font-weight: normal;
        text-align:center
    }

    #loading-div IMG {
        height: 60px;
        margin: 30px;
    }


/*********** Bottoni ***********/
.bottone {
    -moz-box-shadow: inset 0 1px 0 0 #ffffff;
    -webkit-box-shadow: inset 0 1px 0 0 #ffffff;
    -ms-box-shadow: inset 0 1px 0 0 #ffffff;
    box-shadow: inset 0 1px 0 0 #ffffff;
    background: -webkit-gradient( linear, left top, left bottom, color-stop(0.05, #ededed), color-stop(1, #dfdfdf) );
    background: -moz-linear-gradient( center top, #ededed 5%, #dfdfdf 100% );
    background-color: #ededed;
    -moz-border-radius: 6px;
    -webkit-border-radius: 6px;
    -ms-border-radius: 6px;
    border-radius: 6px;
    border: 1px solid #dcdcdc;
    display: inline-block;
    color: #416271;
    font-family: arial;
    font-size: 15px;
    font-weight: bold;
    padding: 6px 8px 6px 39px;
    margin: 0 20px;
    text-decoration: none;
    -ms-text-shadow: 1px 1px 0 #ffffff;
    text-shadow: 1px 1px 0 #ffffff;
}

.bottone:hover {
        background: -webkit-gradient( linear, left top, left bottom, color-stop(0.05, #dfdfdf), color-stop(1, #ededed) );
        background: -moz-linear-gradient( center top, #dfdfdf 5%, #ededed 100% );
        background-color: #dfdfdf;
        cursor: pointer;
    }

    .bottone:active {
        position: relative;
        color: #416271;
        top: 1px;
    }

    .bottone:disabled  {
        color: #859094 !important;
    }

.cliente-new, .cliente-new:hover {
    -ms-background-size: 18px;
    background-size: 18px;
    background-image: url("/files/img/cliente_add.png");
    background-repeat: no-repeat;
    background-position:8px center;
}

.cerca, .cerca:hover {
    -ms-background-size: 18px;
    background-size: 18px;
    background-image: url("/files/img/cerca.png");
    background-repeat: no-repeat;
    background-position:8px center;
}

.preventivo, .preventivo:hover {
    -ms-background-size: 18px;
    background-size: 18px;
    background-image: url("/files/img/preventivo.png");
    background-repeat: no-repeat;
    background-position:8px center;
}

.salva, .salva:hover {
    -ms-background-size: 18px;
    background-size: 18px;
    background-image: url("/files/img/salva.png");
    background-repeat: no-repeat;
    background-position:8px center;
}

.annulla, .annulla:hover {
    -ms-background-size: 18px;
    background-size: 18px;
    background-image: url("/files/img/annulla.png");
    background-repeat: no-repeat;
    background-position:8px center;
}


/*********** Griglie ***********/
.grid {
    margin: 0 1%;
    width: 98%;
    height: auto;
    float: left;
}

    .grid .empty {
        background-color: transparent;
        color: #416271;
        border: 0!important;
    }

    .grid .pager {
        background-color: transparent;
        border-color: transparent;
        line-height: 26px;
        border: 1px solid transparent;
    }

        .grid .pager span {
            padding: 5px;
            text-decoration: none;
            white-space: nowrap;
            font-weight: bold;
            color: #416271;
        }

        .grid .pager a,
        .grid .pager a:visited {
            text-decoration: none;
            padding: 6px;
            white-space: nowrap;
        }

            .grid .pager a:hover,
            .grid .pager a:active {
                text-decoration: none;
                white-space: nowrap;
            }

    .grid .row {
        color: #3a5561;
        background-color: #eff0f1;
        border: 1px #416271 solid;
    }

        .grid .row TD {
            padding: 4px;
        }

    .grid .alternate {
        color: #3a5561;
        background-color: #fff;
        border: 1px #416271 solid;
    }

        .grid .alternate TD {
            padding: 4px;
        }

    .grid .header {
        color: #fff;
        font-weight: bold;
        background-color: #416271;
        text-align: left;
    }

    .grid .header A {
        color: #fff!important; 
        text-decoration:underline
    }

    .grid .selected {
        color: #fff;
        background-color: #738A9C;
    }

        .grid .selected A {
            color: #fff!important;
        }

/********* Preventivo: pagina modifica per supervisore ***********/

#cnt-modifica-supervisore {
    width: 800px;
    height: auto;
    float: left;
    background-color: #D7DFE2;    
}
    #cnt-modifica-supervisore #box {
        width: 780px;
        height: 100%;
        float: left;
        margin: 10px;
        background-color: #fff
    }
    #cnt-modifica-supervisore #box .standard {
        width: 760px;
        height: auto;
        float: left;
        padding: 0 5px;
    }    
        #cnt-modifica-supervisore #box .standard .riga {
            width: 700px;
            height: 22px;
            min-height: 22px;
            float: left;
            margin: 10px 0;
        }
            #cnt-modifica-supervisore #box .standard .riga .label {
                width: 200px;
                height: auto;
                float: left;
            }
            #cnt-modifica-supervisore #box .standard .riga .testo {
                width: 500px;
                height: auto;
                float: left;
            }


#box .riga .testo INPUT.data {
    width: 80px;
    height: 16px;
    background-color: #c7e5c9;
    border: 2px solid #29842F;
    -ms-border-radius: 4px;
    border-radius: 4px;
    color: #416271;
    text-align: center;
    font-weight: bold;
}

.ui-datepicker-trigger {
    background-color: transparent;
    border: 0 !important;
    cursor: pointer;
}
    .ui-datepicker-trigger IMG {
        height: 22px;
    }
    


    .dp-highlight .ui-state-default {
			background: #484;
			color: #FFF;
		}
/******* Popum modale Messaggio ******/
#alert {
    width:auto;
    height:auto;
    float:left;
    margin:5px;
    padding:5px;
    vertical-align:middle;
    text-align:center;
    font-weight:bold;
    color:#29842F;
    font-size:16px; 
    line-height:20px;
}