/*
	tables and tabs
	- hu_table0 is without borders
	- hu_table1 with frame+columns (not rows)
	- hu_table2 full
	- hu_table3 ???
*/

/* table w/o borders */

.hu_table0 {
        margin-top: 1ex;
        margin-bottom: 1ex;
	border-collapse: collapse;
}

.hu_table0 th {
        border: none;
	padding: 4px 6px 5px 6px;
}

.hu_table0 th a { font-weight: bold; }

.hu_table0 th a.overlay, .hu_table0 th a.tooltip { font-weight: bold; }

.hu_table0 td {
	vertical-align: baseline;
        border: none;
	padding: 4px 6px 4px 6px;
}


/* table w/ frame border & column lines */

.hu_table1, .hu_table3 {
        margin-top: 1ex;
	margin-bottom: 1em;
	border: none;
	box-shadow: var(--wss-shadow);
}
.hu_table3 {
	width: -moz-available;		/* firefox */
	width: -webkit-fill-available;	/* chrome */
}

.hu_table1 th {
	font-weight: normal; /* bold */
	color: white;
	border: none;
	padding: 3px 5px 4px 5px;
}

.hu_table1 th a {
	font-weight: normal; /* bold */
	color: white;
}

.hu_table1 th a.overlay, .hu_table1 th a.tooltip { font-weight: bold; }
.hu_table1 td {
	border: none;
	padding: 0.4em 0.5em 0.4em 0.5em;
}

/*.hu_table1 td a.overlay, .hu_table1 td a.tooltip {}*/

.hu_table1 tr:first-child, .hu_table3 tr:first-child {
	border-radius: 5px 0 5px 0;
	background-color: var(--table-h-bg);
	position: sticky;
	top: 0;
	backdrop-filter: blur(20px);
	z-index: 5;
}

.hu_table1 tr:first-child:hover, .hu_table3 tr:first-child:hover {
	background-color: var(--table-h-hov-bg);
	box-shadow: none;
}

.hu_table1 tr:not(:first-child):not(.hu_trbk):hover, .hu_table3 tr:not(:first-child):not(.hu_trbk):hover {
	background-color: var(--secondary-5);
}

/* table w/ full borders */

.hu_table2 {
        margin-top: 1ex;
        margin-bottom: 1ex;
	border-collapse: collapse;
}

.hu_table2 th {
	border-width: 1px 1px 2px 1px;
	border-style: solid;
	border-color: #000000;
        padding: 3px 5px 4px 5px;
}

.hu_table2 th a { font-weight: bold; }
.hu_table2 th a.overlay, .hu_table2 th a.tooltip { font-weight: bold; }
.hu_table2 td {
	border: 1px solid #000000;
        padding: 3px 5px 4px 5px;
}

.hu_table2 td a { color: var(--link1); }
/*.hu_table2 td a.overlay, .hu_table2 td a.tooltip {}*/

/* table w/ frame border and header line */
.hu_table3 th {
	font-weight: normal; /* bold */
	color: white;
        padding: 3px 5px 4px 5px;
	width: -moz-available;		/* firefox */
        width: -webkit-fill-available;	/* chrome */
}
.hu_table3 th a { font-weight: normal; /* bold */ color: white; }
.hu_table3 th a.overlay, .hu_table3 th a.tooltip { font-weight: bold; }
.hu_table3 td { padding: 6px 5px 6px 5px; }
/*.hu_table3 td a.overlay, .hu_table2 td a.tooltip {}*/
.hu_trbk { background-color: var(--secondary-6); }
.hu_trbk:hover { background-color: var(--secondary-5); cursor: text; }

/*
	more tables
	0x = no headers,
	1x = header,
	2x = header and footer

	x0 = outer border only
	x1 = header bottom
	x2 = inner border
	x3 = outer border, header bottom, footer top
	x4 = inner border columns, header bottom, footer top
	x5 = inner border rows
*/
.hu_table00, .hu_table02, .hu_table03, .hu_table04,.hu_table05,
.hu_table10, .hu_table12, .hu_table13, .hu_table14,.hu_table15,
.hu_table20, .hu_table22, .hu_table23, .hu_table24,.hu_table25 {
        margin-top: 1ex;
        margin-bottom: 1ex;
        margin-left: 0ex !important;
	border-collapse: collapse;
        border: 0px solid #000000 !important;
}


.hu_table00, .hu_table03,
.hu_table10, .hu_table13, .hu_table20, .hu_table23 {
	border-width: 1px !important;
}

.hu_table10 tr:first-child, .hu_table11 tr:first-child, .hu_table12 tr:first-child, .hu_table13 tr:first-child, .hu_table14 tr:first-child, .hu_table15 tr:first-child,
.hu_table20 tr:first-child, .hu_table21 tr:first-child, .hu_table22 tr:first-child, .hu_table23 tr:first-child, .hu_table24 tr:first-child, .hu_table25 tr:first-child,
.hu_table20 tr:last-child, .hu_table21 tr:last-child, .hu_table22 tr:last-child, .hu_table23 tr:last-child, .hu_table24 tr:last-child, .hu_table25 tr:last-child { font-weight: bold; }

.hu_table11 tr:first-child, .hu_table21 tr:first-child, .hu_table23 tr:first-child  { border-bottom: 2px solid #000000; }
.hu_table21 tr:last-child, .hu_table23 tr:last-child  { border-top: 1px solid #000000; }
.hu_table02 td, .hu_table12 td, .hu_table22 td { border-right: 1px solid #000000; }
.hu_table02 td:last-child, .hu_table12 td:last-child, .hu_table22 td:last-child { border-right: 0px solid #000 !important; }
.hu_table02 tr, .hu_table12 tr, .hu_table22 tr { border-bottom: 1px solid #000000; }
.hu_table14 tr:first-child, .hu_table24 tr:first-child { border-bottom: 1px solid #000000; }
.hu_table24 tr:last-child { border-top: 1px solid #000000; }
.hu_table02 tr:last-child, .hu_table12 tr:last-child, .hu_table22 tr:last-child { border-bottom: 0px solid #000 !important; }
.hu_table04 td, .hu_table14 td, .hu_table24 td { border-right: 1px solid #000000; }
.hu_table04 td:last-child, .hu_table14 td:last-child, .hu_table24 td:last-child { border-right: 0px solid #000 !important; }
.hu_table05 tr, .hu_table15 tr, .hu_table25 tr { border-bottom: 1px solid #000000; }
.hu_table05 tr:last-child, .hu_table15 tr:last-child, .hu_table25 tr:last-child { border-bottom: 0px solid #000 !important; }

.hu_table11 tr td, .hu_table12 tr td, .hu_table14 tr td, .hu_table15 tr td { padding: 0.3em !important; } /* transfer to 0x and 2x as well? */
.hu_table11 tr > td:first-child, .hu_table12 tr > td:first-child, .hu_table14 tr > td:first-child, .hu_table15 tr > td:first-child { padding-left: 0 !important;}
.hu_table11 tr > td:last-child, .hu_table12 tr > td:last-child, .hu_table14 tr > td:last-child, .hu_table15 tr > td:last-child { padding-right: 0 !important;}

/* tabs */
.hu_ltabs {
        border-bottom: 2px solid var(--tab2-b); /* prim1*/
        background: none !important;
	padding: 0;
	width: 100%;
	margin: 0 0 9px 0;
	float: left;
	clear: both;
}
.ltabs_sel {
	border-color: var(--tab2-sel-bg);
}

.hu_ltabs li {
	border-radius: 5px 5px 0 0;
	margin: 0 3px 0 0 !important;
}
.hu_ltabs li:hover { transition: all 0.2s ease-in; }
.hu_ltabs li a {
	color: var(--tab2); /* primary-2 */
	background: var(--tab2-bg) !important;
	border-radius: 5px 5px 0 0;
	border: none !important;
	padding: 6px 0 6px 7px !important;
}
.hu_ltabs li a:hover {
	background-color: var(--tab2-hov-bg) !important;
	transition: all 0.2s ease-in;
}
.hu_ltabs li a span { background: none !important; }
.hu_ltabs li.ltabs_sel a {
	color: var(--tab2-sel);
	background: var(--tab2-sel-bg) !important;
	padding: 6px 0 6px 7px !important;
	border: none;
	border-radius: 5px 5px 0 0;
	z-index: 100;
}
.hu_ltabs li.ltabs_sel a span {
	color: var(--tab2-sel);
	font-weight: bold;
}

/* input elements */

/* input widgets */
.hu_itxt {
	border: none;
	border-bottom: 1px solid var(--gray-2);
        background-color: #ffffff;
	color: #000000;
	font-size: 100%;
	vertical-align: baseline;
}
.hu_itxt_growicon {
	color: lightgray;
	font-size: 60%;
	margin-left: -0.4rem;
	margin-bottom: 0.0rem;
	vertical-align: bottom;
}
.hu_idrd2  { /* will use system widget for dropdown */
	font-size: 100%;
}
.hu_idrd  { /* will use browser drawn widget for dropdown */
	background-color: #ffffff;
	border: none;
	border-bottom: 1px solid var(--gray-2);
	color: #000000;
	font-size: 100%;
}
.hu_ialt { vertical-align: text-bottom; }
.hu_ialt2 { background-color: #ffffff; vertical-align: text-bottom; }

/* background span */

.hu_ispan { /* input control background SPAN */
	text-align: left;
	white-space: nowrap;
	position: relative;
	top: -1px;
}

.hu_ispan_err { /* input control background SPAN on error */
	background-color: #cc0000;
	padding: 4px;
}

/* tool tips */
.hu_tooltip { /* underline, normal, body color */
	border-bottom: 1px dashed var(--tip-ul) ;
	font-weight: normal !important;
	color: var(--body);
}
.hu_tooltip1 { /* no underline, normal, link color    */ font-weight: normal !important; }
.hu_tooltip2 { /* no underline, normal, link color    */ font-weight: normal !important; }
.hu_tooltip3 { /* underline;    bold,   link color    */ border-bottom: 1px dashed var(--tip-ul); font-weight: bold !important; }
.hu_tooltip4 { /* underline,    normal, link color    */ border-bottom: 1px dashed var(--tip-ul); font-weight: normal !important; color: var(--body); }
.hu_tooltip5 { /* no underline, default boldness, body color */ color: var(--body); }
.hu_tooltip6 { /* no underline, normal, body color */ font-weight: normal !important; color: var(--body); }
.hu_tooltip:HOVER, .hu_tooltip1:HOVER, .hu_tooltip2:HOVER, .hu_tooltip3:HOVER, .hu_tooltip4:HOVER, .hu_tooltip5:HOVER, .hu_tooltip6:HOVER  { text-decoration: none; }

body.htmlx a.hu_tooltip, body.htmlx a.hu_tooltip2, body.htmlx a.hu_tooltip3, body.htmlx a.hu_tooltip4, body.htmlx a.hu_tooltip5, body.htmlx a.hu_tooltip6 { font-weight: normal !important; }

.table-header-rotated { border-style: none !important; margin-right: 100px; }
.table-header-rotated th { border-style: none !important; background: none !important; }
/*
.table-header-rotated > tr th:nth-of-type(even) { background-color: #eeeeee !important; }
*/
.table-header-rotated th.row-header { width: auto; border-style: none !important; }
.table-header-rotated td {
  min-width: 40px;
  border-top: 1px solid #dddddd;
  border-left: 1px solid #dddddd;
  border-right: 1px solid #dddddd;
  border-bottom: 1px solid #dddddd;
  vertical-align: middle;
  text-align: center;
}
.table-header-rotated th.rotate-45 {
  height: 110px;
  min-width: 40px;
  position: relative;
  vertical-align: bottom;
  padding: 0;
  line-height: 0.99;
  transform:skew(-45deg,0deg);
  left: 40px;
  top: 0px;
  overflow: hidden;
}
.deprectaed.table-header-rotated th.rotate-45 > div {
  position: relative;
  top: 0px;
  left: 60px; /* 80 * tan(45) / 2 = 40 where 80 is the height on the cell and 45 is the transform angle*/
  height: 100%;
  transform:skew(-45deg,0deg);
  overflow: hidden;
  border-left: 1px solid #dddddd;
  border-right: 1px solid #dddddd;
}
.table-header-rotated th.rotate-45 span {
  transform:skew(45deg,0deg) rotate(315deg);
  position: absolute;
  bottom: 50px; /* 40 cos(45) = 28 with an additional 2px margin*/
  left: -47px;  /* b/c it looked good, but there is probably a mathematical link here as well*/
  display: inline-block;
  width: 141px; /* 80 / cos(45) - 40 cos (45) = 85 where 80 is the height of the cell, 40 the width of the cell and 45 the transform angle */
  text-align: left;
}
.table-cell-left td { text-align: left; }