/*-----------------------------------------------
  Theme SPIP minimaliste pour tablesorter.js
 -----------------------------------------------*/

/*-----------------------------------------------
  General 
 -----------------------------------------------*/
.tablesorter-spip {
	width: 100%;
	border-spacing: 0;
	--tablesorter-cell-padding: 0.25em;
	--tablesorter-color-accent:var(--spip-color-theme-light);
	--tablesorter-color-accent-light:var(--spip-color-theme-lighter);
	--tablesorter-color-accent-lightest:var(--spip-color-theme-lightest);
	--tablesorter-color-gray-dark:var(--spip-color-gray-dark);
	--tablesorter-color-gray:var(--spip-color-gray);
	--tablesorter-color-gray-light:var(--spip-color-gray-light);
	--tablesorter-color-gray-lighter:var(--spip-color-gray-lighter);
}

.tablesorter-spip td {
	vertical-align: top;
}

/* Header */
.tablesorter-spip caption,
.tablesorter-spip thead {
	background: white;
}
.tablesorter-spip th,
.tablesorter-spip thead td {
	background-color: var(--tablesorter-color-accent-light);
	border-collapse: collapse;
}

.tablesorter-spip tbody td,
.tablesorter-spip tfoot th,
.tablesorter-spip tfoot td {
	vertical-align: top;
}

/*-----------------------------------------------
  Sort widget 
 -----------------------------------------------*/
.tablesorter-spip .header,
.tablesorter-spip .tablesorter-header {
	/*padding: 0;*/
}

.tablesorter-spip .header .tablesorter-header-inner,
.tablesorter-spip .tablesorter-header .tablesorter-header-inner {
	/* black (unsorted) double arrow */
	background-image: url(data:image/gif;base64,R0lGODlhFQAJAIAAACMtMP///yH5BAEAAAEALAAAAAAVAAkAAAIXjI+AywnaYnhUMoqt3gZXPmVg94yJVQAAOw==);
	/* white (unsorted) double arrow */
	/* background-image: url(data:image/gif;base64,R0lGODlhFQAJAIAAAP///////yH5BAEAAAEALAAAAAAVAAkAAAIXjI+AywnaYnhUMoqt3gZXPmVg94yJVQAAOw==); */
	/* image */
	/* background-image: url(images/black-unsorted.gif); */
	background-repeat: no-repeat;
	background-position: right 0.25em;
	padding-right: 18px;
	white-space: normal;
	line-height: 1;
	cursor: pointer;
	overflow: visible;
}

.tablesorter-spip .headerSortUp,
.tablesorter-spip .tablesorter-headerSortUp,
.tablesorter-spip .tablesorter-headerAsc,
.tablesorter-spip .headerSortDown,
.tablesorter-spip .tablesorter-headerSortDown,
.tablesorter-spip .tablesorter-headerDesc {
	background-color: var(--tablesorter-color-accent);
}

.tablesorter-spip .headerSortUp .tablesorter-header-inner,
.tablesorter-spip .tablesorter-headerSortUp .tablesorter-header-inner,
.tablesorter-spip .tablesorter-headerAsc .tablesorter-header-inner {
	/* black asc arrow */
	background-image: url(data:image/gif;base64,R0lGODlhFQAEAIAAACMtMP///yH5BAEAAAEALAAAAAAVAAQAAAINjI8Bya2wnINUMopZAQA7);
	/* white asc arrow */
	/* background-image: url(data:image/gif;base64,R0lGODlhFQAEAIAAAP///////yH5BAEAAAEALAAAAAAVAAQAAAINjI8Bya2wnINUMopZAQA7); */
	/* image */
	/* background-image: url(images/black-asc.gif); */
}

.tablesorter-spip .headerSortDown .tablesorter-header-inner,
.tablesorter-spip .tablesorter-headerSortDown .tablesorter-header-inner,
.tablesorter-spip .tablesorter-headerDesc .tablesorter-header-inner {
	/* black desc arrow */
	background-image: url(data:image/gif;base64,R0lGODlhFQAEAIAAACMtMP///yH5BAEAAAEALAAAAAAVAAQAAAINjB+gC+jP2ptn0WskLQA7);
	/* white desc arrow */
	/* background-image: url(data:image/gif;base64,R0lGODlhFQAEAIAAAP///////yH5BAEAAAEALAAAAAAVAAQAAAINjB+gC+jP2ptn0WskLQA7); */
	/* image */
	/* background-image: url(images/black-desc.gif); */
}

.tablesorter-spip thead .sorter-false .tablesorter-header-inner {
	background-image: none;
	cursor: default;
	padding: var(--tablesorter-cell-padding);
}

.tablesorter-spip tfoot .tablesorter-headerSortUp .tablesorter-header-inner,
.tablesorter-spip tfoot .tablesorter-headerSortDown .tablesorter-header-inner,
.tablesorter-spip tfoot .tablesorter-headerAsc .tablesorter-header-inner,
.tablesorter-spip tfoot .tablesorter-headerDesc .tablesorter-header-inner {
	/* remove sort arrows from footer */
	background-image: none;
}

/*-----------------------------------------------
  Move columns widget 
 -----------------------------------------------*/
.tablesorter-spip .move-arrows {
	display: flex;
	justify-content: space-between;
	padding: var(--tablesorter-cell-padding);
}

.tablesorter-spip .move-arrows a {
	text-decoration: none;
}

.tablesorter-spip .move-arrows .disabled {
	display: none;
}

.tablesorter-spip .move-arrows.rightOnly {
	justify-content: end;
}

/*-----------------------------------------------
  Pager widget 
 -----------------------------------------------*/
.tablesorter-spip .pager.tablesorter-pager {
	padding: calc(var(--tablesorter-cell-padding) * 2);
	background-color: var(--tablesorter-color-accent-lightest);
	border-top-color: var(--tablesorter-color-gray-light);
	border-left-color: var(--tablesorter-color-gray-light);
	border-right-color: var(--tablesorter-color-gray-light);
}

.tablesorter-spip .pager.tablesorter-pager * {
	display: inline-block;
	margin: 0;
}

.tablesorter-spip .pager.tablesorter-pager .pagedisplay {
	margin: 0 1.5em;
}

.tablesorter-spip .pager a {
	margin: 0 0.25em;
	font-family: inherit;
	text-decoration: none;
	font-weight: bold;
	cursor: pointer;
}

.tablesorter-spip .pager a.disabled {
	text-decoration: none;
	color: var(--tablesorter-color-gray-dark);
	pointer-events: none;
}

/*-----------------------------------------------
  Filter widget 
 -----------------------------------------------*/
.tablesorter-spip .tablesorter-filter-row {
	background-color: var(--tablesorter-color-gray-lighter);
}

.tablesorter-spip .tablesorter-filter-row td {
	background-color: var(--tablesorter-color-gray-lighter);
	line-height: 1;
	text-align: center; /* center the input */
}

.tablesorter-spip .tablesorter-filter-row .disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* hidden filter row */
.tablesorter-spip .tablesorter-filter-row.hideme td {
	/*** *********************************************** ***/
	/*** change this padding to modify the thickness     ***/
	/*** of the closed filter row (height = padding x 2) ***/
	padding: 2px;
	/*** *********************************************** ***/
	margin: 0;
	line-height: 0;
	cursor: pointer;
}

.tablesorter-spip .tablesorter-filter-row.hideme * {
	height: 1px;
	min-height: 0;
	border: 0;
	padding: 0;
	margin: 0;
	/* don't use visibility: hidden because it disables tabbing */
	opacity: 0;
}

/* filters */
.tablesorter-spip input.tablesorter-filter,
.tablesorter-spip select.tablesorter-filter {
	width: 98%;
	height: auto;
	margin: 0;
	padding: var(--tablesorter-cell-padding);
	background-color: white;
	border: 1px solid var(--tablesorter-color-gray-light);
	color: var(--tablesorter-color-gray-dark);
	box-sizing: border-box;
}

/* rows hidden by filtering (needed for child rows) */
.tablesorter .filtered {
	display: none;
}


/*
----------------------------------------------- 
  Hovered row colors
  you'll need to add additional lines for
  rows with more than 2 child rows
 -----------------------------------------------
 */
.tablesorter-spip tbody > tr.hover > td,
.tablesorter-spip tbody > tr:hover > td,
.tablesorter-spip tbody > tr:hover + tr.tablesorter-childRow > td,
.tablesorter-spip tbody > tr:hover + tr.tablesorter-childRow + tr.tablesorter-childRow > td {
	background-color: var(--tablesorter-color-accent);
}

/*-----------------------------------------------
   Table processing indicator 
-----------------------------------------------*/
.tablesorter-spip .tablesorter-processing {
	background-position: center center !important;
	background-repeat: no-repeat !important;
	/* background-image: url(images/loading.gif) !important; */
	background-image: url("data:image/gif;base64,R0lGODlhFAAUAKEAAO7u7lpaWgAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQBCgACACwAAAAAFAAUAAACQZRvoIDtu1wLQUAlqKTVxqwhXIiBnDg6Y4eyx4lKW5XK7wrLeK3vbq8J2W4T4e1nMhpWrZCTt3xKZ8kgsggdJmUFACH5BAEKAAIALAcAAAALAAcAAAIUVB6ii7jajgCAuUmtovxtXnmdUAAAIfkEAQoAAgAsDQACAAcACwAAAhRUIpmHy/3gUVQAQO9NetuugCFWAAAh+QQBCgACACwNAAcABwALAAACE5QVcZjKbVo6ck2AF95m5/6BSwEAIfkEAQoAAgAsBwANAAsABwAAAhOUH3kr6QaAcSrGWe1VQl+mMUIBACH5BAEKAAIALAIADQALAAcAAAIUlICmh7ncTAgqijkruDiv7n2YUAAAIfkEAQoAAgAsAAAHAAcACwAAAhQUIGmHyedehIoqFXLKfPOAaZdWAAAh+QQFCgACACwAAAIABwALAAACFJQFcJiXb15zLYRl7cla8OtlGGgUADs=") !important;
}


/*-----------------------------------------------
  Ajax error row 
-----------------------------------------------*/
.tablesorter .tablesorter-errorRow td {
	text-align: center;
	cursor: pointer;
	background-color: #E6BF99;
}
