.ria-matrix-table .bg-danger,
.ria-matrix-table .bg-info,
.ria-matrix-table .bg-dark,
.ria-matrix-table .bg-success {
	color: #fff;
}

/** Sonderhintergründe // Background special */
.ria-matrix-table .bg-fahrtag {
background-image: repeating-linear-gradient(45deg, transparent, transparent 2px, rgba(255,255,255,.3) 2px, rgba(255,255,255,.3) 5px);
}

.ria-matrix-table tr td,
.ria-matrix-table tr th {
	font-size: 9.5pt;
}

.ria-matrix-table tr td {
	width: 40px;
	padding: 0px;
	height: 28px;
}

.ria-matrix-table tr td:last-child {
	width: inherit;
}

.ria-matrix-table tr td.date{
	padding: 4px;
}

.ria-matrix-table tr td div {
	width: 100%;
	display: block;
	padding: 4px;
	font-size: 12px;
	height: 28px;
	overflow: hidden;
}

.ria-matrix-t-spacer {
	width: 1px !important;
	background-color: #999 !important;
	overflow: hidden;
	border-bottom-color: #999 !important;
}

.ria-matrix-w-40 {
	min-width: 45px;
	max-width: 45px;
	width: 60px;
	padding: 4px;
}

.ria-matrix-w-60 {
	min-width: 60px;
	max-width: 60px;
	width: 60px;
	padding: 4px;
}

/** Sticky **/
.ria-matrix-table table {
	border-collapse: separate;
	border-spacing: 0px;
}

.ria-matrix-table td {
	border-left: #ccc 1px solid;
	border-bottom: #ccc 1px solid;
	cursor: default;
}

.ria-matrix-table thead th, 
.ria-matrix-table tfoot th {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 2;
  background-color: #fff !important;
}

.ria-matrix-table thead th:first-child,
.ria-matrix-table tfoot th:first-child {
  left: 0;
  z-index: 20;
}

.ria-matrix-table tfoot {
  position: -webkit-sticky;
  bottom: 0;
  z-index: 2;
}

.ria-matrix-table tfoot th {
  position: sticky;
  bottom: 0;
  z-index: 2;
}

.ria-matrix-table tfoot td:first-child {
  z-index: 3;
}

.ria-matrix-table tbody {
  overflow: scroll;
}

.ria-matrix-table tr > :first-child {
  position: -webkit-sticky;
  position: sticky; 
  left: 0; 
  z-index: 10;
  background-color: #fff;
}
.ria-matrix-table tr.table-light > :first-child {
	background-color: rgb(248, 249, 250);
}
.ria-matrix-table tr.table-secondary > :first-child {
	background-color: rgb(226, 227, 229);
}
.ria-matrix-table tr.table-primary > :first-child {
	background-color: #cfe2ff;
}

.ria-matrix-table tr > :first-child {
  min-width: 130px;
}

/** HOVER **/
#hoverInfo {
	background-color: #fff;
	box-shadow: 0px 0px 10px #333;
	width: 450px;
	position: absolute;
	top: 0px;
	left: 0px;
}

#hoverInfo .schicht {
	width: 100%;
	padding: 5px;
	border-bottom: 1px solid #333;
}

#hoverInfo .schicht:last-child {
	border-bottom: 0px;
}

#hoverInfo .table-hi tr td {
	padding: 5px;
	border: none;
}

#hoverInfo .table-hi tr td.no-padding {
	padding: 0px;
}

#hoverInfo .table-hi tr td:first-child {
	width: 100px;
	font-weight:bold;
	vertical-align: top;
}

#hoverInfo .table-hi tr td:last-child {
	width: 350px;
	vertical-align: top;
}

#hoverInfo .table-hi-sub tr {
	border-bottom: 1px solid #fff;
}

#hoverInfo .table-hi-sub tr:last-child {
	border-bottom: none;
}

#hoverInfo .table-hi-sub tr td {
	background-color: transparent;
	padding: 0px;b
}

#hoverInfo .table-hi-sub tr td:first-child {
	width: 60px;
	font-weight:bold;
	vertical-align: top;
}

#hoverInfo .table-hi-sub tr td:last-child {
	width: 290px;
	vertical-align: top;
}