﻿/** Globals **/
div.tableContainer table {
    border-collapse: collapse;
    clear: both;
    margin: 0 auto;
    text-align: left;
    width: 100%;
}

div.tableContainer {
    padding: 30px;
}

.dataTables_wrapper {
    border: 1px solid hsl(0, 0%, 65%);
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
}

/** Icones **/
div.tableContainer .icon {
    background-size: 15px 15px;
    background-position: 2px 1px;
    clear: both;
    min-height: 16px;
    min-width: 16px;
}
table.dataTable a.icon {
    background-size: 15px 15px;
    background-position: 2px 1px;
    clear: both;
    min-height: 16px;
    min-width: 16px;
}
table.dataTable a.icon.remove 
{
    background-image: url('../../../xCSS/images/deletefile.png');
}
table.dataTable a.icon.download
{
    background-image: url('../../../xCSS/images/download.png');
}
table.dataTable a.icon.attachment
{
    background-image: url('../../../xCSS/images/attachment.png');
}
/** Fila que conté els títols del grid **/
.dataTables_scroll .dataTables_scrollHead {
   background-image: -webkit-gradient(
	    linear,
	    left top,
	    left bottom,
	    color-stop(0, #f4f4f4),
	    color-stop(0.5, #e6e6e6)
    );
    background-image: -o-linear-gradient(bottom, #f4f4f4 0%, #e6e6e6 50%);
    background-image: -moz-linear-gradient(bottom, #f4f4f4 0%, #e6e6e6 50%);
    background-image: -webkit-linear-gradient(bottom, #f4f4f4 0%, #e6e6e6 50%);
    background-image: -ms-linear-gradient(bottom, #f4f4f4 0%, #e6e6e6 50%);
    background-image: linear-gradient(to bottom, #f4f4f4 0%, #e6e6e6 50%);
    border-radius: 5px 5px 0 0;
    -moz-border-radius: 5px 5px 0 0;
    -webkit-border-radius: 5px 5px 0 0;
    -o-border-radius: 5px 5px 0 0;
    -ms-border-radius: 5px 5px 0 0;
}

/** Cada cel·la de las fila que conté els títols del grid**/
table.dataTable thead th {
    border-bottom: 1px solid #a5a5a5;
    color: hsl(0, 0%, 27%);
    font-size: 105%;
    font-weight: bold;
    line-height: 23px;
    margin: 0;
    padding: 0 5px 0 5px;
    overflow: hidden;
    text-align: left;
    text-transform: none;
    /*text-shadow: 0 0 1px hsl(0, 0%, 100%);*/
}


/** Fons Degradat Títols del Grid **/
div.tableContainer thead tr, .bg-gradient {
    background-image: -webkit-gradient(linear,left top,left bottom,color-stop(0, #6b5d5480),color-stop(0.8, #e6e6e6));
    background-image: -o-linear-gradient(bottom, #6b5d5480 0%, #e6e6e6 80%);
    background-image: -moz-linear-gradient(bottom, #6b5d5480 0%, #e6e6e6 80%);
    background-image: -webkit-linear-gradient(bottom, #6b5d5480 0%, #e6e6e6 80%);
    background-image: -ms-linear-gradient(bottom, #6b5d5480 0%, #e6e6e6 80%);
    background-image: linear-gradient(to bottom, #6b5d5480 0%, #e6e6e6 80%);
}

/** Fletxetes ordenació títols Grid **/
.sorting { background: url('../images/sort_both_gris.png') no-repeat top right; background-position-y: -6px; }
.sorting_asc { background: url('../images/sort_asc_gris.png') no-repeat top right; background-position-y: -6px;}
.sorting_desc { background: url('../images/sort_desc_gris.png') no-repeat top right; background-position-y: -6px;}
.sorting_asc_disabled { background: url('../images/sort_gris_disabled.png') no-repeat top right; background-position-y: -6px;}
.sortIng_desc_disabled { background: url('../images/sort_gris_disabled.png') no-repeat top right; background-position-y: -6px;}
 
 /** Colors de fons files parells i senars **/
table.dataTable tr.odd { background-color: #f1f1f1; line-height: 15px; }
table.dataTable tr.even { background-color: #ffffff; line-height: 15px; }
table.dataTable tr.odd td.sorting_1 { background-color: #f1f1f1; line-height: 15px; }
table.dataTable tr.even td.sorting_1 { background-color: #ffffff; line-height: 15px; }

/** Color de fons fila activa **/
div.tableContainer tbody tr:hover td{
    background: none repeat scroll 0 0 #ff9f5888 !important;
}

/** Icona menuRight per dispositius móbils **/
div.mright {
    background: none repeat scroll 0 0 white;
    border: 7px double;
    border-radius: 99px;
    -moz-border-radius: 99px;
    -webkit-border-radius: 99px;
    cursor: pointer;
    height: 5px;
    width: 5px;
    border-color: #94969a;
}

/** Processant la càrrega del grid**/
div.dataTables_processing {
    background-color: transparent;
    background-image: url("../images/ajax_loader_orange.gif");
    background-position: center 0px;
    background-repeat: no-repeat;
    background-size: 16px 16px;
    border: 0 none;
    color: #909090;
    font-size: 14px;
    line-height: 3;
    height: 50px;
    left: 50%;
    margin-left: -125px;
    margin-top: -125px;
    text-align: center;
    top: 50%;
    width: 250px;
}

/** Usat per centrar columnes del grid amb icones d'actiu, textos, etc... **/
table.dataTable tbody th.column_content_center, table.dataTable tbody td.column_content_center {
    vertical-align:middle;
    margin: 0 auto;
}

.column_content_center > input {
    margin: 0 auto;
}

.textAlignRight
{
    text-align:right;
}

/* trunca text de forma: abcde -> abc... */
.textTruncat {
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}
table.dataTable tbody tr td.numeric div,table.dataTable tbody tr td.numeric {
    text-align: right;
}
.dataTables_info, .dataTables_filter
{
    display: none !important;
}
