@media screen and (max-width: 740px) {
	/*TEST TAULES ADAPTATIVES: com s'ha afegit .xs de fet ja haurien de guanyar sense "body " i sense "table."; */

	table.ApartNum.xs.lineal tr.darrera td {
		border-bottom: 1px solid #eee;
		padding-bottom: 0;
	}
	table.ApartNum.xs.lineal tbody tr.darrera:last-child th, table.ApartNum.xs.lineal tbody tr.darrera:last-child td {
		border-bottom-color: #eee;
	}
	/* hover no ha de reaccionar */
	body table.ApartNum.xs.lineal tbody tr:hover th {
		background-color: #eee;
	}
	table.ApartNum.xs.lineal tfoot {
		background-color: #ccc; /* per defecte és #fafafa però quan no hi ha bora convé destacar pq no es confongui amb primer apartat linealitzat */
		color: #000;
	}
	table.ApartNum.xs.lineal tfoot td,
	table.ApartNum.xs.lineal tfoot tr:last-child td {
		border: none;
	}

	/* Idescat anul.lacio propies regles (De fet, tan sols sembla afectar tfoot) */
	table.Cols3 td, td.Cols3, th.Cols3,
	table.Cols4 td, td.Cols4, th.Cols4,
	table.Cols5 td, td.Cols5, th.Cols5,
	table.Cols6 td, td.Cols6, th.Cols6,
	table.Cols7 td, td.Cols7, th.Cols7,
	table.Cols8 td, td.Cols8, th.Cols8,
	table.Cols9 td, td.Cols9, th.Cols9,
	table.Cols10 td, td.Cols10, th.Cols10,
	table.Cols11 td, td.Cols11, th.Cols11,
	table.Cols12 td, td.Cols12, th.Cols12
	{
		width: auto!important; /*ha de guanyar: important provisional pq width959.css està afegit abans a idescat.css */
	}
	table.ApartNum.xs.lineal tbody tr:hover td, table.ApartNum.xs.lineal.Interactiva tbody tr.titol:hover th[scope="row"], table.ApartNum.xs.lineal.Interactiva tbody tr.titol:hover td {
		background-color: transparent;
	}
	table.ApartNum.xs.lineal tbody tr:hover th[scope="row"] {
		background-color: #eee; /*en comptes de transparent: a mòbil sinó click treu fons filera taula */
	}

	table.ApartNum.xs.lineal tbody td {
		padding: 0;
	}
	table.ApartNum.xs.lineal tr.primera td {
		padding-top: 0;
	}
	
	/* Force table to not be like tables anymore */
	table.ApartNum.xs.lineal,
	.ApartNum.xs.lineal caption, .ApartNum.xs.lineal tfoot, /* XMB */
	.ApartNum.xs.lineal thead, 
	.ApartNum.xs.lineal tbody, 
	.ApartNum.xs.lineal th, 
	.ApartNum.xs.lineal td, 
	.ApartNum.xs.lineal tr { 
		display: block; 
	}

	/* XMB havia afegit això però std.css ja ho incorpora 
	caption, tfoot td {
		text-align: left;
	}
	*/
 
	/* Hide table headers (but not display: none;, for accessibility) */
	.ApartNum.xs.lineal thead tr, .mocult { 
		position: absolute;
		top: -9999px;
		left: -9999px;
	}
 
	.ApartNum.xs.lineal tbody tr { 
		/* border: 1px solid #ccc; no m'agrada */
		/*margin-top: 16px;*/
	}

	table.ApartNum.xs.lineal tbody th, table.ApartNum.xs.lineal tbody td, /* escrit com fills de table.ApartNum.xs.lineal per combatre regles Idescat: si no opera i IE no justifiquen bé. */
	/* afegits per contrarrestar regla idescat */ table.ApartNum.xs.lineal tr.darrera td, table.ApartNum.xs.lineal tr.darrera th
	{ 
		/* Behave  like a "row" */
		border: none;
		border-bottom: 1px solid #eee; 
		position: relative;
		/*padding-left: 50%; no m'agrada */
		white-space: normal;
		/* Al final 20160613 elimino pq m'agrada més a esquerra (no sé si havia un motiu més de fons p justificar dreta): text-align:right!important; /* opera, ie no fan cas? */
		/* width: 100%; XMB ELIMINO. */
		padding-right: 6px;
	}
	/* Per separar etiquetes de filera sense dades de la següent etiqueta de filera */
	table.ApartNum.xs.lineal tbody th {
		border-bottom-color: #fff;
	}
 
	.ApartNum.xs.lineal tbody th:before, .ApartNum.xs.lineal tbody td:before { 
		/* Now like a table header */
		position: absolute;
		/* Top/left values mimic padding */
		top: 0; /*deia 6px i línies es desalineaven */
		left: 6px;
		width: 45%; 
		padding-right: 10px; 
		white-space: nowrap;
		text-align:left;
		/*font-weight: bold;*/

		/*
		Label the data
		*/
		content: attr(data-title);
	}

	/* Nou experimental: tots deia 0.5em */
	/*
	body .ApartNum.xs.lineal tbody tr th.entrada1 {
		padding-left: 1.5em;
	}
	body .ApartNum.xs.lineal tbody tr th.entrada2 {
		padding-left: 2em;
	}
	body .ApartNum.xs.lineal tbody tr th.entrada3 {
		padding-left: 2.5em;
	}
	*/
	body .ApartNum.xs.lineal tbody tr th.entrada1,
	body .ApartNum.xs.lineal tbody tr th.entrada2,
	body .ApartNum.xs.lineal tbody tr th.entrada3 {
		padding-left: 1.7em;
	}

	body .ApartNum.xs.lineal tbody tr th.entrada1:before {
		top: initial;
		content: '\2605';
	}
	body .ApartNum.xs.lineal tbody tr th.entrada2:before {
		top: initial;
		content: '\2606';
	}
	body .ApartNum.xs.lineal tbody tr th.entrada3:before {
		top: initial;
		content: '◊';
		padding-left: 2px;
	}

	body .ApartNum.xs.lineal tr.cap th.text, body .ApartNum.xs.lineal td.text {
    	text-align: right;
    }

    /* Fileres agrupades */
	table.ApartNum.xs.lineal .desagrupa img.Mes,
	table.ApartNum.xs.lineal .agrupa img.Mes {
		display: none;
	}
	table.ApartNum.xs.lineal tr {
		display: block!important; /* ha de combatre un estil inline ! (canviar JS d'agrupa perquè posi classes, no?) */
	}
	table.ApartNum.xs.lineal tbody tr.titol td {
		background-color: transparent; /* En comptes de #eee de quan no és mòbil */
	}
}