﻿/* JQGRID PERSONALICE */
div.jqgrid{margin:20px; font-size:11px !important; font-family:Calibri !important; text-align:center; text-transform:uppercase}
div.ui-jqgrid{border:solid 1px #cccccc !important; border-radius:0;}
div.jqgrid span.startMessage{font-size:14px !important; line-height:150px; color:#646464}

    /* HEAD */
    table.ui-jqgrid-htable thead th{font-weight:normal !important; text-align:left !important}
    .ui-th-column, .ui-jqgrid .ui-jqgrid-htable th.ui-th-column{height:26px; text-align:left; text-indent:5px; background:#2164c4; color:white; font-family:Calibri, Arial, sans-serif; font-size:13px}
    th[role="columnheader"]{
        background:  -webkit-gradient(linear, 0% 0%, 0% 100%, from(#e2e3e5), to(#d4d7d9)) !important;
        background: -moz-linear-gradient(top, #e2e3e5, #d4d7d9) !important;
        background: -ms-linear-gradient(top, #e2e3e5, #d4d7d9) !important;
        color:black !important;
        text-shadow: 0 1px 1px white !important;
    }

    th[role="columnheader"]:hover{
        background:  -webkit-gradient(linear, 0% 0%, 0% 100%, from(#ffffff), to(#d4d7d9)) !important;
        background: -moz-linear-gradient(top, #ffffff, #d4d7d9) !important;
        background: -ms-linear-gradient(top, #ffffff, #d4d7d9) !important;

    }
    .ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default{border:solid 1px #c2c3c4}
    tr.ui-jqgrid-labels th:last-child{border-right:none}

    /* BODY */
    table.ui-jqgrid-btable tbody tr.ui-widget-content{height:32px !important;}
    table.ui-jqgrid-btable tbody tr:nth-child(even) {background-color:#FFF; border:none !important; border-right:solid 1px transparent !important; border-bottom:solid 1px #dcdcdc !important; }
    table.ui-jqgrid-btable tbody tr:nth-child(even):hover{background:rgba(33, 100, 196, 0.1) !important;}
    table.ui-jqgrid-btable tbody tr.ui-state-highlight:nth-child(even):hover {background:#469CE7  !important} /* SELECTION */
    table.ui-jqgrid-btable tbody tr:nth-child(odd) {background-color:#f0f0f0; border:none !important; border-right:solid 1px transparent !important;border-bottom:solid 1px #dcdcdc !important;}
    table.ui-jqgrid-btable tbody tr:nth-child(odd):hover {background:rgba(33, 100, 196, 0.1) !important;}
    table.ui-jqgrid-btable tbody tr.ui-state-highlight:nth-child(odd):hover {background:#469CE7  !important;} /* SELECTION */
    
    .ui-jqgrid tr.ui-row-ltr td{padding:3px 0;text-indent:5px; border-color:#DCDCDC; border-right:none;border-left:none; cursor:pointer}
    .ui-jqgrid tr.jqgrow td {white-space: nowrap !important; text-overflow:ellipsis; }

    /* ROW SELECTED */
    table.ui-jqgrid-btable tbody tr.ui-state-highlight{background:#428BCA !important; color:white; }

    /* PAGER */
    .ui-jqgrid-pager{border-radius:0; border:none !important}
    .ui-pager-control{background:  -webkit-gradient(linear, 0% 0%, 0% 100%, from(#e2e3e5), to(#d4d7d9)) !important;
        background: -moz-linear-gradient(top, #e2e3e5, #d4d7d9) !important;
        background: -ms-linear-gradient(top, #e2e3e5, #d4d7d9) !important;
        color:black !important;
        text-shadow: 0 1px 1px white !important;
        border-top:solid 1px #cccccc;
    }
    .ui-pg-table{border-top:solid 1px transparent !important; border-bottom:solid 1px transparent !important}


/*********/
/* GRIDS */
/*********/
section[role="grid"]{background:#f5f5f5; padding-bottom:1px !important; margin-bottom:10px}
section[role="grid"] div.formHeader span.gridTitle{margin-right:15px;}
div.ui-jqgrid .loading{background:white;}
div.jqgrid .ui-widget-content{border:none}

/* CONTEXTUAL */
div.gridContextual{background:white; font-size:13px; border-radius:3px; border:solid 1px #2164c4; padding:10px 15px; position:absolute; display:none; z-index:20}
div.gridContextual li{line-height:22px;}
div.gridContextual li:hover{color:#2164c4; text-decoration:underline; cursor:pointer}

div.gridContextualArrow{position:absolute; z-index:20; width:10px; height:10px; background:url(../images/rightArrow.png) no-repeat; display:none}

/* COLUMN STYLES */
.cellcenter{text-align:center !important; text-indent:0 !important}
.grid_ico{margin-top:3px;}
.grid_ico i{margin-top:3px}

/* ROW STYLES */
.rowError{color:#c90000 !important; border-left:solid 1px #c90000; border-right:solid 1px #c90000}

/* FOOTER */
tr.footrow td{height:30px !important; font-size:11px; border:dotted 1px transparent !important; border-right:dotted 1px #dcdcdc !important; }

/* SPECIAL CELLS */
div.jqgrid input.cant{width:40px; font-size:10px}

/***************/
/* TABLE GRIDS */
/***************/
table.grid{border:solid 1px #dcdcdc;}
/*table.grid tbody tr:nth-child(even){background:rgba(240,240,240,1)}*/
table.grid thead td{height:18px; text-align:center; text-indent:5px; background:#2164c4; color:white; font-family:Calibri, Arial, sans-serif; font-size:13px; background:  -webkit-gradient(linear, 0% 0%, 0% 100%, from(#e2e3e5), to(#d4d7d9)) !important; background: -moz-linear-gradient(top, #e2e3e5, #d4d7d9) !important; background: -ms-linear-gradient(top, #e2e3e5, #d4d7d9) !important; color:black !important; text-shadow: 0 1px 1px white !important; padding-right:8px;}
table.grid thead td:first-child{text-align:left}
/*table.grid tbody td{padding:10px; text-align:center; border-right:solid 1px #dcdcdc; border-bottom:solid 1px #dcdcdc}*/  
table.grid tbody td:first-child{text-align:left}

table.grid i.icon-lockWarn{position:absolute; margin-left:-25px; margin-top:6px;}
table.gridPermissions td:first-child{padding-left:35px}

    /* TOGGLES */
    table.grid td i{margin-left:5px; cursor:pointer}
    table.grid td i.off{opacity:0.3}
    table.grid td i:active{opacity:1}

/*********************/
/* SHOW/HIDE COLUMNS */
/*********************/
div.gridCols{max-width:600px; margin:auto !important; top:60px !important;}
div.gridCols a[data-gridhide]{cursor:pointer;}
div.gridCols a[data-gridhide]:hover{color:#2164c4; margin-left:10px;}

