﻿/** 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 0px;
    clear: both;
    min-height: 16px;
    min-width: 16px;
    margin: 0 auto;
}
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, #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%);
}

/** 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 #fff5cf;
}

/** 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;
    margin: 0 auto;
}

/** Processant la càrrega del grid**/
div.dataTables_processing {
	background-image: url("../images/ajax_loader_orange.gif");
	background-position: center 10px;
	background-repeat: no-repeat;
	background-size: 32px 32px;
	border: 0 none;
	color: #777;
	font-size: 22px;
	line-height: 4;
	height: 50px;
	left: 50%;
	margin-left: -125px;
	margin-top: -125px;
	text-align: center;
	top: 50%;
	width: 250px;
	border: 1px solid #777;
	background-color: white;
	padding-top: 20px;
	padding-bottom: 70px;
	border-radius: 5px;
}

/** 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;
    /*display:flex;*/
    text-align:center;
}

.column_content_center > input {
    margin: 0 auto;
}

/* 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;
}

td.details-control {
    background: url('../images/toggle-expand.png') no-repeat center center !important;
    cursor: pointer;
}
tr.shown td.details-control {
    background: url("../images/toggle-collapse.png") no-repeat center center !important;
}


tr.row-child .detail-row {
    min-height: 25px;
    padding-left: 4.5%;
    padding-top: 2px;
    padding-bottom: 2px;
}
tr.row-child .detail-row:not(:last-of-type) {
    border-bottom: 1px solid #d2d2d2;
}


tr.row-child .detail-header {
    padding-left: 4.5%;
    height: 22px;
    border-bottom: 1px solid  #4fa051;
}



table.dataTable td.blank-space {
    border-right: none !important;
}

table.dataTable td.detail-lines {
    border-left: none !important;
}

table.dataTable td.detail-lines .icon.correct {
       width: 20px;
       height:20px;
       background-image: url("images/correct.png");
       background-size: 20px 20px;
}

table.dataTable td.detail-lines .icon.incorrect {
       width: 20px;
       height:20px;
       background-image: url("images/incorrect.png");
       background-size: 20px 20px;
}


.tableContainer td.detail-lines :not(:hover) .detail-row.odd  {
    background-color: #f2f2f2;
}

.tableContainer td.td_marked >.detail-lines .odd {
    background-color: inherit !important;
}

.tableContainer .detail-lines:hover .detail-row.odd {
    background-color: inherit !important;
}

.tableContainer .blank-space:hover ~ .detail-lines .detail-row.odd{
    background-color: inherit !important;
}

.tableContainer .detail-header:hover ~ .detail-lines .detail-row.odd {
    background-color: inherit !important;
}
table.dataTable thead th.text-align-right {
    text-align: right;
}

div.tableContainer table.dataTable tbody tr td.searched, div.tableContainer table.dataTable tbody tr:hover td.searched {
    background-color: #75BA6D !important;
    color: white !important;
    text-shadow: none !important;
}
table.dataTable tbody tr.odd > .sorting_1, table.dataTable.order-column.stripe tbody tr.odd > .sorting_1 {
    background-color: #75BA6D21;
}
table.dataTable tbody tr.even > .sorting_1, table.dataTable.order-column.stripe tbody tr.even > .sorting_1 {
    background-color: #75BA6D0A;
}


/* ESTILS 2021 INICI */

table.dataTable
{
	font-family: Open Sans Regular;
	font-size: 14px;
		
}

table.dataTable thead th 
{
	font-family: Open Sans Bold;
	font-size: 14px;
	height:33px;
}
.sorting,.sorting_asc
{
	background-position-y: -3px;
}

table.dataTable tr .Linkable 
{
	font-family: Open Sans Bold;
	font-size: 14px;
	cursor: pointer;
}	

div.tableContainer tbody tr:hover td
{
	background-color:#e1f0df;
}

table.dataTable tr.even, table.dataTable tr.odd {
    line-height: 20px;
}

div.mright
{
	border: none;
	width: 19px;
	height: 19px;
	background-image: url('../images/icon-mes-opcions.png');
	background-color: inherit;
	background-position: center;
	background-size: contain;
}

/* ESTILS 2021 FI */