/**
 * @file
 * Styles for Bootstrap Barrio's tables.
 */

table {
  border: 0;
  border-spacing: 0;
  font-size: 0.857em;
  margin: 0;
  width: 100%;
  border-top: 2px solid #0a417d!important;
  border-bottom: 2px solid #0a417d!important;
}
table table {
  font-size: 1em;
}
.table td, .table th {
  padding: .5rem .25rem .5rem .25rem;
  /* text-wrap: nowrap; */
}
tr {
  border-bottom: 1px solid #0a417d;
  padding: 0.1em 0.6em;
  background: #efefef;
  background: transparent;
}
thead > tr {
  border-bottom: 2px solid #0a417d;
}
tr.odd {
  background: #fdfdfd;
}
table tr th {
  background: none;
  border: none!important;
}
table tr th,
table tr th a,
table tr th a:hover,
table tr th a:focus {
  color: #222;
  font-weight: bold;
}
th > a {
  position: relative;
  display: block;
}
table tbody tr th {
  vertical-align: top;
}
tr td,
tr th {
  padding: .5rem;
  border-bottom: 1px solid #0a417d;
  border-left: none; /* LTR */
  border-right: none;
}
[dir="rtl"] tr td,
[dir="rtl"] tr th {
  text-align: right;
}

/**
 * Responsive tables.
 */
@media screen and (max-width: 37.5em) { /* 600px */
  th.priority-low,
  td.priority-low,
  th.priority-medium,
  td.priority-medium {
    display: none;
  }
}
@media screen and (max-width: 60em) { /* 920px */
  th.priority-low,
  td.priority-low {
    display: none;
  }
}

.tablesort--desc {
   background-image: url(twistie-up.svg);
}
.tablesort--asc {
  background-image: url(twistie-down.svg);
}

.views-view-filtered-table .table-header-filter .js-form-item  {
  margin-bottom:0!important;
  font-size: .75rem!important;
}
.views-view-filtered-table.table td {
  text-wrap: nowrap;
  padding: 0.25rem;
  vertical-align: middle;
}
.views-view-filtered-table.table th {
  background: #6879A5!important;
  padding-bottom: 2px;
  font-size: .75rem;
  vertical-align: top;
  color: #fff;
  padding: 0 0.25rem 0.25rem;  
  text-wrap: nowrap;
}
.views-view-filtered-table.table th a {
  color: #fff;
}
.views-view-filtered-table.table .form-select {
  font-size: .85rem;
  padding-top: 0.125rem;
  padding-bottom: 0.125rem;
  padding-left: 0.125rem;
  border-radius: 0;
}
.views-view-filtered-table.table .form-control {
  font-size: .85rem;
  padding: 0.125rem;
  border-radius: 0;
}
.views-view-filtered-table.table .form-control:focus {
  color: var(--bs-body-color);
  background-color: var(--bs-body-bg);
  border-color: #485956;
  outline: 0;
  box-shadow: 0 0 0 .25rem rgb(72 89 86 / 25%);
}
.views-view-filtered-table .fas {
  font-weight: 900;
  width: 18px;
  color:#fff;
}

/*scelta campo+ora inizio */
#tabella_container3 td {
	padding:0!important;
}
#tabella_container3 td .ajax-progress-throbber  {
	position: absolute;
}
#tabella_container3 td .ajax-progress-throbber .message {
	display: none;
}
#tabella_container3 td.ora_bloccata {
  text-align: center;
  vertical-align: top;
  font-weight: bold;
  color: #999;
  font-size: .75rem;
}
#tabella_container3 td.ora_bloccata s {
  text-align: center;
  vertical-align: middle;
  font-weight: bold;
  color: #999;
  font-size: .75rem;
  padding: 10px;
  background: #eee;
  display: inline-block;
  width: 100%;
}
#tabella_container3 .js-form-type-checkbox input[type=checkbox] {
  position: absolute;
  height: 28px;
  width: 28px;
  -webkit-appearance: none;
  -moz-appearance: none;
  -ms-appearance: none;
  -o-appearance: none;
  appearance: none;
  outline: none; 
  display: none;
}
#tabella_container3 .js-form-type-checkbox {
	padding: 0px;
	background-color:#607d8b;
	transition: all .5s;
}
#tabella_container3 .js-form-type-checkbox.form-disabled {
	background-color:#eb4d4d;
	transition: all .5s;	
}
#tabella_container3 .js-form-type-checkbox .form-checkbox:checked + label {
	background-color:#4caf50;
	transition: all .5s;
}
#tabella_container3 .js-form-type-checkbox label {
	color:#ffffff;
	width:100%;
	padding:10px 10px;
	text-align:center;
	font-weight:bold;
	cursor: pointer;
}
#tabella_container3 .js-form-type-checkbox:checked + label {
	background-color:#55879e;
	transition: all .5s;		
}
/* */
.table-scroll {
  display: block;
  empty-cells: show;
  height: 500px;
  margin-bottom: 0 !important;
}
/*
.table-scroll thead,
.table-scroll tfoot {
  background-color: #f1f1f1;  
  position:relative;
  display: block;
  width:100%;
}
.table-scroll tbody{
  display: block; position:relative;
  width:100%; overflow-y:scroll;
  border-top: 1px solid rgba(0,0,0,0.2);
  border-bottom: 1px solid rgba(0,0,0,0.2);
}
.table-scroll tr {
  width: 100%;
  display:flex;
}
.table-scroll td,
.table-scroll th {
  flex-basis:100%;
  flex-grow:2;
  display: block;
  padding: 1rem;
  text-align:left;
}
.table-scroll.small-first-col td:first-child,
.table-scroll.small-first-col th:first-child{
  flex-basis:20%;
  flex-grow:1;
}
.table-scroll tbody tr:nth-child(2n){
  background-color: rgba(130,130,170,0.1);
}

*/