﻿/** 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;
}
.dataTables_scrollBody {
    background-color: white;
}

/** 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('../../../CSS/images/deletefile.png');
}
table.dataTable a.icon.download
{
    background-image: url('../../../CSS/images/download.png');
}
table.dataTable a.icon.attachment
{
    background-image: url('../../../CSS/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: 1.5em;
    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%);
}

table.dataTable tbody tr td 
{
    font-size: 1.5em;
}
    table.dataTable tbody tr td.Linkable {
        cursor: pointer;
        text-decoration:underline;
    }
table.dataTable tr td.puntsuspensius {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/** 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:hover {
    background-color: #f6f3ea;
    line-height: 15px;
}
table.dataTable tr.even:hover {
    background-color: #fff9eb;
    line-height: 15px;
}
table.dataTable tr.odd td.sorting_1 {
    /*    background-color: #e0e0e0;*/
    background-color: #fcebd3;
    line-height: 15px;
}
table.dataTable tr.even td.sorting_1 {
    /*background-color: #eaeaea;*/
    background-color: #fef3e1;
    line-height: 15px;
}
table.dataTable tr.odd:hover td.sorting_1 {
    /*    background-color: #e7e3d7;*/
    background-color: #f5c88c;
    line-height: 15px;
}
table.dataTable tr.even:hover td.sorting_1 {
    /*    background-color: #f0ede3;*/
    background-color: #f7d4a8;
    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.mcenter {
    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;
}

body.mobile div.dataTables_processing 
{    
    font-size: unset;
    line-height: 3;
    height: 50px;
    left: 50%;
    margin-left: 0px !important;
    margin-top: 0px !important;
    text-align: center;
    top: 50%;
    width: 50px !important;   
}

/** 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;
}

body.mobile div.dataTables_processing {
    background-image: url("../images/loading.gif");
    transform: scale(10);
    top: 70%;
}


/** 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;
}
table.dataTable tbody th.column_content_right, table.dataTable tbody td.column_content_right 
{
    text-align: right;
    padding-right: 1em;
}


.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:not(.counterFooterEnabled), .dataTables_filter {
    display: none !important;
}
.dataTables_info.counterFooterEnabled {
    width: 100%;
    box-shadow: 0px -3px 4px -2px rgb(0 0 0 / 44%)
}
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;*/
}


div.tableContainer table.dataTable tbody tr.row-child:hover td {
    background-color: white;
}
body.mobile tr.row-child .detail-row {
    min-height: 1.5em;
}

body.mobile tr.row-child .detail-row {
    min-height: 1.5em;
    padding-left: 1.5em;
}

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;
}

body.mobile tr.row-child .detail-header { 
    height: 1.5em;    
}

tr.row-child .detail-header {
    padding-left: 4.5%;
    height: 22px;
    border-bottom: 1px solid  #4fa051;
}

tr.shown .fa-plus-square {
    display: none;
}
tr.shown .fa-minus-square {
    display: block !important;
}

tr .fa-plus-square {
    display: block;
}
tr .fa-minus-square {
    display: none;
}

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, table.dataTable tbody td.text-align-right {
    text-align: right;
    padding-right:10px;
}
table.dataTable thead th.text-align-center, table.dataTable tbody td.text-align-center {
    text-align:center;
}
    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.selectedDTRow td, table.dataTable tbody tr.selectedDTRow:hover td {
    background-color: #75BA6D !important;
    color: white !important;
    text-shadow: none !important;
}

.textAlignRight
{
    text-align: right;
}
table.dataTable tr.selectedrow td {
    /*background-color: #6c6161 !important;*/    
    /*color: white;*/
    
    background-color: #ffe688  !important;    
}
table.dataTable {
    table-layout: fixed;
    width: 100%;
}
table.dataTable tbody tr td.actionIconContainer i.ui-menu-item.actionIcon {
    min-width: unset;
    cursor: pointer;
}
    table.dataTable tbody tr td.actionIconContainer > *{
        margin: 0 2px;
    }
    table.dataTable tbody tr td.actionIconContainer i.ui-menu-item.actionIcon.actionDisabled {
        color: #a0a0a0;
        pointer-events: none;
    }