/* original from ilp 10 March 2022*/

/* from video Responsive Pure CSS Menu Tutorial(No Javascript).mp4 
 from video Responsive Navigation Bar Html CSS and JQuery.mp4 
 multi-level additions 
 from video Easy Multi-Level Dropdown Menu Tutorial - Using Only CSS (With Animated Dropdown Arrows).mp4 
 from Responsive Multilevel Dropdown Menu With HTML And CSS #webtrickshome
 from Responsive Multi Level Dropdown Mnu with CSS CSS3 Animated Hamburger 
 * 
 * from Multi Level Dropdown Navigation Menu HTML CSS & Javascript 
 * 
*/

:root {
	box-sizing: border-box;
		
/*	--primary:  
	
	--header-bg: var(--primary);
*/
	--header_bg: blue; 
	--header_nav_text_color: black;
	--nav_submenu_bg: grey; 
	--nav_submenu_text_color: white;
	--hover_color: lightgrey;
	--dark: darkgrey;
	--light: lightgrey;
	--logo-color: white;
	
}


*, *::after, *::before {
	box-sizing: inherit;
	margin: 0;
	padding: 0;
}

body {
	margin: 0;
	padding: 0;
	font-family: Arial, Helivetica, sans-serif;
/*	background-color: #bbb; */
	font-size: 1rem;
/*	line-height: 32px; */
	word-wrap: break-word !important;
	/*color: #fff*/
	min-height: 100vh;
}


/* Misc */
.clear {
clear:both;
}

/* navigation */
header {
	width: 100%;
	min-height: 50px;
	background: var(--header_bg); /*blue;*/ 
	position: relative;
	z-index: 3; /* added */
}

.bars {
	color: white;
	font-size: 2em;
	cursor: pointer;
	position: absolute;
	top: 50%;
	left: 10px;
	transform: translateY(-50%);
	transition: 0.5s linear;
	display: none;
}

header .menu-icon {
	/*border: 1px solid red;*/
	padding: 25px 20px;
	position: relative;
	float: right;
	cursor: pointer;	
}

header .menu-icon .nav-icon {
	background: var(--header_nav_text_color); /*#333;*/  
	display: block;
	height: 2px;
	width: 18px; 
	position: relative;
	transition: background 0.2s ease-out;
}

header .menu-icon .nav-icon:before {
	background: var(--header_nav_text_color);
	content: "";
	display: block;
	height: 100%;
	width: 100%;
	position: absolute;
	transition: all 0.2s ease-out;
	top: 5px;
}
header .menu-icon .nav-icon:after {
	background: var(--header_nav_text_color);
	content: "";
	display: block;
	height: 100%;
	width: 100%;
	position: absolute;
	transition: all 0.2s ease-out;
	top: -5px;
}

/* hides drop-main checkbox */
header #drop-main, header .submenu-btn {
	display: none;
}
header #main-toggle {
	display: none;
}
/*
header .menu-btn:checked ~ .menu {
	left: 0;
}
*/

header #drop-main:checked ~ .menu-icon .nav-icon {
	background: transparent;
}

header #drop-main:checked ~ .menu-icon .nav-icon:before {
	transform: rotate(-45deg);
	top: 0;
}

header #drop-main:checked ~ .menu-icon .nav-icon:after {
	transform: rotate(45deg);
	top: 0;
}

.bars.rotate {
	transform: translateY(-50%) rotate(-180deg);
}

.logo {
	float: left;
	margin-left: 0.5em; /*100px;*/
	line-height: 50px;	 
}

.logo h2 {
	font-weight: 900;
	text-transform: uppercase;
}
.logo a {
	color: white;
	text-decoration: none;
	padding: 0;
}

#navbar {
	float: right;
	margin-right: 0.5em;
	background: var(--header_bg); /* if not set menu does not appear because text is white against white background */ /*blue;*/
	/*position: relative;*/
	/*list-style: none;*/ 
	/*overflow: hidden; */
}

#navbar > li {
	list-style: none;  /* inherits from ul therefre can be set on ul#navbar */
	display: inline-block;
	line-height: 25px;
}

#navbar > li:hover {
	background: red;
}

#navbar a { /*used to be header a */
	color: white;
	text-decoration: none;
	text-transform: uppercase;
/*	padding: 10px 10px; */ /* affects spacing of menu items */
	display: block; /* expands a element to cover entire area not just the words within a tag */
	/*outline: 1px solid black;*/
}

#navbar .drop-one label, #navbar .drop-two label {
	color: white;
	text-transform: uppercase;
	padding: 10px 10px;  
	display: block;
}
/*
#navbar .drop-one label {
	color: white;
	text-transform: uppercase;
	padding: 10px 10px;  
	display: block;
}
*/

.menu-one {
	position: absolute;
	width: 100%;
	left: -100%;  /* 0; for testing */
	background: whitesmoke;
	display: flex;
	justify-content: space-around;
	box-shadow: 0 0 3px #000;
}

.drop-one:hover > .menu-one {
	left: 0;
}
.menu-one ul {
	flex: 1;
	text-align: center;
	list-style: none;
	padding: 10px 5px;
}

.menu-one ul a {
	color: var(--header_nav_text_color) !important;
	font-size: 0.8em;
}

.menu-one ul img {
	width: 100%;
	display: block;
	object-fit: cover;
}

.menu-one ul h4 {
	text-transform: uppercase;
	color: teal;
	font-size: 1.1em;
	font-weight: 900;
}


.drop-two {
	position: relative;
}

.menu-two {
	position: absolute;
	list-style: none;
	background: grey; /*#555;*/ 
	left: 0;
	display: none; 
}

.menu-two a {
	font-size: 0.8em;
	padding: 2px 0;
}

.menu-two li {
	line-height: 25px;
	
}

.menu-two li:hover {
	 background: green; 
}

.drop-two:hover > .menu-two {
	display: block;
}

/*#navbar span {*/
.submenu-icon .drop-icon {
	display: inline-block;
	margin-left: 5px;
	transition: 0.3s;
}

.drop-two:hover span,
.drop-one:hover span {
	transform: rotate(-180deg);
}

.drop-two:hover .drop-icon,
.drop-one:hover .drop-icon {
	transform: rotate(-135deg);
  -webkit-transform: rotate(-135deg);
}

.arrow {
  border: solid white;
  border-width: 0 3px 3px 0;
  display: inline-block;
  padding: 3px;
  transition: 0.3s;
}
/* make .arrow point down */
.arrow {
  transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
}

/* arrow directions 
 * .right {
  transform: rotate(-45deg);
  -webkit-transform: rotate(-45deg);
}

.left {
  transform: rotate(135deg);
  -webkit-transform: rotate(135deg);
}

.up {
  transform: rotate(-135deg);
  -webkit-transform: rotate(-135deg);
}
* 
*/

/* end navigation */

/*login tabs */
#logregwrapper {
	width: 100%;
	position: absolute;
	top: 15%;
	
}

#tabbox {
	height: 20%;
	/*margin: 0;*/
}

#panel {
	background-color: #FFF;
	width: 100%;
	height: 80%;
	text-align: center;
	padding-top: 10%;
}
#panel ul {
	list-style-type: none;
}

#tabbox .tab {
background: #dedede;
display: inline-block;
/*height: 40px;*/
/*height: 20%;*/
line-height: 40px;
text-align: center;
/*width: 80px;*/
width: 50%;
float: left;
font-weight: bold;
font-size: 2vw;
-webkit-border-top-left-radius: 4px;
-webkit-border-top-right-radius: 4px;
-moz-border-radius: 4px 4px 0px 0px;
}

#tabbox a
{
color: blue;  /*#000;*/
margin: 0;
padding: 0;
text-decoration: none;
}

#tabbox .signup
{
/*margin-left:8px;*/
}

#tabbox .select
{
background-color:#FFF;
}

#loginbox
{
/*width: 100%;  padding goes off centre */
min-height:200px;
padding: 10px;
}

.awesome-form input {
	background: none;
	border: solid 2px #21a1e1;
	color: #21a1e1;
	padding: 15px 40px;
	font-size: 18px;
	
	width: 95%;
	/*font-size: 18px;
	width: 50%; */
}


/* https://stackoverflow.com/questions/38844309/chrome-user-agent-stylesheet-turn-off-for-transparent-background */
.awesome-form input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus
input:-webkit-autofill
 {
  -webkit-text-fill-color: #21a1e1 !important;
  -webkit-box-shadow: 0 0 0px 1000px rgba(0, 0, 0, 0) inset !important;
  background: none !important;
}

.awesome-form input:focus, .awesome-form input:active {
	outline: none;
}

.awesome-form input[type="text"], .awesome-form input[type="password"], .awesome-form input[type="email"] {
	border: none;
	border-bottom: solid 2px #21a1e1;
}

.awesome-form input[type="submit"]:active {
	color: white;
	background: #21a1e1;
}

.input-field {
	/*display: inline-block;*/
	display: block;
margin-right: 20px;
margin-top: 10px;
margin-bottom: 15px;
	position: relative;
}

.awesome-form input[type="submit"]{
	margin-right: 20px;
}


.input-field input {
	padding: 15px 0px;
}

.input-field label {
	position: absolute;
	top: 50%;
	/*left: 0px;*/
	left: 15%;
	transform: translateY(-50%);
	font-family: Georgia, Cambria,"Times New Roman", Times, serif;
	font-style: italic;
	font-size: 18px;
	color: #999;
	pointer-events: none;
}

.input-field input:focus + label {
	top: -10px;
	font-size: 12px;
	color: #aaa;
}

input.has-value + label {
	top: -10px;
	font-size: 12px;
	color: #aaa;
}

#signupbox
{
min-height:200px;
padding: 10px;
display:none;
}

/* end login tabs */


/* container */
#container {
/*min-height:485px;*/
position: relative;
min-height: 100vh;
border-radius:5px 5px 0 0;
}

/* end container */


/* id=openlanding */
#openlanding {
	display: block;
    /*margin: 0 auto;*/
    margin: auto;
    /*width: 300px;*/
    width: 50%;
   /* text-align: center; */
   padding: 10px;
}
#openlanding ul {
list-style: none;
}
/* end openlanding */

#MainFeedback {
position: relative;
top: 60px;
}

#Main {
/*position: relative;*/
/*top: 70px;*/
padding-bottom: 2.5rem;    /* Footer height */
}
/* https://www.freecodecamp.org/news/how-to-keep-your-footer-where-it-belongs-59c6aa05c59c/  */
/*#footer {
	position: absolute;
  	bottom: 0;
  	width: 100%;
  	height: 2.5rem;            /** Footer height */
	/*text-align: center;  
}
*/
.note-info {
	font-size: 0.5em;
}


.section {
      float: left;
      clear: left;
      padding: 1em 2em;
    }

.chartlist {
      float: left;
      border-top: 1px solid #EEE;
      width: 30em;
	}

.chartlist .count {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  margin: 0 0.3em;
  text-align: left;
  color: #999;
  font-weight: bold;
  font-size: 0.6em;
}

.chartlist li {
  position: relative;
  display: block;
  border-bottom: 1px solid #EEE;
  _zoom: 1;
}

.chartlist li a {
  display: block;
  padding: 0.4em 4.5em 0.4em 0.5em;
  position: relative;
  z-index: 2;
	font-size: 0.7em;
}

.chartlist .index {
      display: block;
      position: absolute;
      top: 0;
      left: 0;
      height: 100%;
      background: #B8E4F5;
      text-indent: -9999px;
      overflow: hidden;
      line-height: 2em;
    }

.chartlist li:hover {
      background: #EFEFEF;
    }

.inarrears_red {
 /* background-color: red;  */
 color: red !important;
 font-size: 0.875em;
}

.inarrears_purple {
 /* background-color: purple;   */
 color: purple !important;
 font-size: 0.875em;
}



/*building layout */
.arrears_legend {
	background: #b5a1a1;
}

.show-only-on-large td {
	min-width: 15%;
}
.uref {
	font-weight: bold;
	text-align: center;
}
.ulevies {
	font-size: 0.8em;
}

/*end building layout */

/* How to EASILY Sort HTML Tables with CSS & Javascript Web Tutorial by dcode  */
.table_sortable th {
	cursor: pointer;
}
.table_sortable .th-sort-asc::after {
	content: "\25b4";
}
.table_sortable .th-sort-desc::after {
	content: "\25be";
}
.table_sortable .th-sort-asc::after,
.table_sortable .th-sort-desc::after {
	margin-left: 5px;
}
.table_sortable .th-sort-asc,
.table_sortable .th-sort-desc {
	background: blue;
	color: white;
}


/* accordion css */
/*  How to create a CSS-Only Accordion (Mobile Friendly) - HTML & CSS Tutorial */
/*  #dcode*/
.accordion {
	/*max-width: 400px;*/
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
	border-radius: 5px;
	overflow: hidden;
	font-family: 'Quicksand', sans-serif;
	background: #009578;

}

.accordion__label,
.accordion__content {
	padding: 14px 20px;
}

.accordion__label {
	display: block;
	color: #ffffff;
	font-weight: 500;
	cursor: pointer;
	position: relative;
	transition: background 0.1s;
}
.accordion__label:hover {
	background: rgba(0, 0, 0, 0.1);
}

.accordion__label::after {
	content: "";
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	right: 20px;	/*20px same as 20px in padding of __label */
	width: 12px; 	/*  */
	height: 6px;	/* height is half of width for triangle */
	background-image: url('data:image/svg+xml;utf8, <svg width="100" height="50" xmlns="http://www.w3.org/2000/svg"><polygon points="0,0 100,0 50,50" style="fill:%23FFFFFF99;" /> </svg>');
	background-size: contain;
	transition: transform 0.4s;
}

.accordion__content {
	background: #ffffff;
	line-height: 1.6;
	font-size: 0.85em;
	display: none;
}

.accordion__input {
	display: none; 
}

.accordion__input:checked ~ .accordion__content {
	display: block;
}
.accordion__input:checked ~ .accordion__label::after {
	transform: translateY(-50%) rotate(0.5turn);
}
/* end of accordion css */

/*Making a Responsive Table Using HTML & CSS.mp4 */

/*table {*/
	/*border-collapse: collapse;*/
	/*width: 100%;*/
	/*margin: 10px auto 0;*/
	/*font-size: 1.5rem;*/
	/*color: #4a788b*/
/*}*/

/*table thead {*/
/*	background-color: gray;*/ /*#d9f0fc;*/
/*	color: white;*/
/*}*/

/*table th, table td { */
	/*border: 1px solid #6fcfff;*/
	/*padding: 5px 10px; */
	/*font-size: 1.5rem;*/
/*}*/

table {
	border: 1px solid #ccc;
	border-collapse: collapse;
	margin: 0;
	padding: 0;
	width: 100%;
	table-layout: fixed;
  }
  
  table caption {
	font-size: 1.5em;
	margin: .5em 0 .75em;
  }
  
  table tr {
	background-color: #f8f8f8;
	border: 1px solid #ddd;
	padding: .35em;
  }
  
  table th,
  table td {
	padding: .625em;
	text-align: center;
  }
  
  table th {
	font-size: .85em;
	letter-spacing: .1em;
	text-transform: uppercase;
  }
/*makes header sticky and gives background colour*/
/*if within thead then when responsive header also disappears */
  table th {
    position:sticky;
    top:0;
    z-index:1;
    border-top:0;
    background: #ededed;
}

table td select {
	  width: 100%;
  }

/* class="tablerowscroll" to allow scroll along the row */
/* <div class="rowscroll">
<table></table>
</div>
*/
/* How to freeze HTML table columns and rows with css - youtube */
/* adriancs */
.tablerowscroll {
	/*width: calc(100vw - 50px);*/
	/*height: calc(100vh - 50px);*/
	/*overflow: scroll;*/
}
/* tr:nth-child needed because th or thead missing in cashflow report */ 
.tablerowscroll tr:nth-child(1) {
    position:sticky;
    top:0;
    z-index:1;
    border-top:0;
    background: #ededed;
}

.tablerowscroll th:nth-child(1),
.tablerowscroll td:nth-child(1) {
	position: sticky;
	left: 0;
	/*
	width: 150px;
	min-width: 150px;
	*/
}

.tablerowscroll th:nth-child(1),
.tablerowscroll td:nth-child(1) {
	background: #ededed;
}

.tablerowscroll th:nth-child(1),
.tablerowscroll td:nth-child(1) {
	z-index: 2;
}

/* if 2 columns required
.tablerowscroll th:nth-child(2),
.tablerowscroll td:nth-child(2) {
	position: sticky;
	left: 162px;
	width: 50px;
	min-width: 50px;
}
*/
  /*
#bottomOfPage {
	position: fixed;
	bottom: 0;
	right: 0;
}
*/
/*responsive forms*/
/* https://www.w3schools.com/howto/howto_css_responsive_form.asp */

/* Style inputs, select elements and textareas */
.resp-form input[type=text], 
.resp-form input[type=input], 
.resp-form input[type=number], 
.resp-form input[type=file], 
.resp-form input[type=email], 
.resp-form input[type=password], .resp-form select, .resp-form textarea {
	width: 100%;
	padding: 12px;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-sizing: border-box;
	resize: vertical;
}
/* Style the label to display next to the inputs */
.resp-form label {
	padding: 12px 12px 12px 0;
	display: inline-block;
}
/* Style the submit button */
.resp-form input[type=submit], .resp-form input[type=button] {
  background-color: #4CAF50;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  float: right;
  width: 100%; /* added to make span entire .row */
}
.resp-form input[type=button] {
	background-color: #1206b1;
}
.resp-form .row .ainput {
  background-color: #4CAF50;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  float: right;
  text-align: center;
  width: 100%; /* added to make span entire .row */
}

/* Style the container */
.resp-form {
  border-radius: 5px;
  background-color: #f2f2f2;
  padding: 20px;
}
/* Floating column for labels: 25% width */
.resp-form .col-25 {
  float: left;
  width: 25%;
  margin-top: 6px;
}
.resp-form .col-20 {
	float: left;
	width: 20%;
	margin-top: 6px;
}
.resp-form .col-50 {
	float: left;
	width: 50%;
	margin-top: 6px;
  }
/* Floating column for inputs: 75% width */
.resp-form .col-75 {
  float: left;
  width: 75%;
  margin-top: 6px;
}
/* Clear floats after the columns */
.resp-form .row:after {
  content: "";
  display: table;
  clear: both;
}

input.popitel {
	font-family: 'password';	
}
/*end of responsive forms */

/* popiinfo */
.popiinfo * {
	-webkit-touch-callout: none;
	-webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/*
.popiinfo input[type=text] {
	width: 99% !important;
}
*/
.popiinfo span.popieye {
	display: inline-block;
	position: absolute;
	/*right: 15px;
	transform: translate(0, -50%);
	top: 50%;
	cursor: pointer;*/
}

.popiinfo .eyehide {
	display: none;
}
.popiinfo span.popieye img {
	width: 20px;
	/*height: 20px;*/
	/*margin-top: 5px;*/
	/*position: absolute;*/
	/*top: 50%;*/
	cursor: pointer;
	transform: translate(-30px, 50%);
}
/* end of popiinfo */


@media screen and (max-width: 649px) {
/*
	.smart-table thead {
		display: none;
	}

	.smart-table tr, .smart-table td {
		display: block;
	}

	.smart-table tr:not(:last-child) {
		border-bottom: 5px solid #5ca0c3;
	}

	.smart-table td {
		padding-left: 54%;
		position: relative;
		z-index: -1;
	}

	.smart-table td::before {
		position: absolute;
		padding: 5px;
		left: 0;
		top: 0;
		bottom: 0;
		width: 45%;
		content: attr(data-col-title);
		font-size: 1rem;
		font-weight: bold;
		background-color: #f3f6fa;
	}

	*/

/* https://codepen.io/AllThingsSmitty/pen/MyqmdM */
table {
    border: 0;
  }

  table caption {
    font-size: 1.3em;
  }

	table thead {
		border: none;
		clip: rect(0 0 0 0);
		height: 1px;
		margin: -1px;
		overflow: hidden;
		padding: 0;
		position: absolute;
		width: 1px;
	  }
	  
	  table tr {
		border-bottom: 3px solid #ddd;
		display: block;
		margin-bottom: .625em;
	  }
	  
	  table td {
		border-bottom: 1px solid #ddd;
		display: block;
		font-size: .8em;
		text-align: right;
	  }
	  
	  table td::before {
		/*
		* aria-label has no advantage, it won't be read inside a table
		content: attr(aria-label);
		*/
		content: attr(data-col-title);
		float: left;
		font-weight: bold;
		text-transform: uppercase;
	  }
	  
	  table td:last-child {
		border-bottom: 0;
	  }

	  
/* end of responsive tables */

/* responsive forms */
/* https://www.w3schools.com/howto/howto_css_responsive_form.asp */
.resp-form .col-25, .resp-form .col-20, .resp-form .col-50, .resp-form .col-75, .resp-form input[type=submit], .resp-form input[type=button] {
    width: 100%;
    margin-top: 0;
  }

#emessage {
	min-height: 150px;
}  

/* end of responsive forms */

#accbal {
	display: none;
}

}


@media (min-width:48em) {

/* navigation menu */
/* end navigation menu */

/* login tabs*/

	.awesome-form input {
		/*font-size: 18px;*/
		/*width: 95%;*/
		width: 50%;
	}

	.input-field label {
		left: 45%;
	}	

/* end login tabs */

/* layout of building */
/* https://toolset.com/forums/topic/conditional-output-of-a-content-template-based-on-screen-width/ */
	  .show-only-on-small {
	    display: none;
	  }
	  .show-only-on-large {
	    display: block;
	    padding-right: 1em;
	    padding-left: 1em;
	  }


/* end layout of building */


}	/* end @media (min-width:48em) */


@media (max-width: 1145px) {
	
	.logo, #navbar {
		margin: 0;
		width: 100%;
		text-align: center;
	}
	
}

/*@media (max-width: 950px) { */
@media all and (max-width: 768px) {
	
	/* make logo 80% and bars 20% , need to create div for bars first*/

	#navbar {
		position: absolute;
		top: 50px;
		left: -100%; /* makes navbar disappear .bars appear*/
		text-align: left;
		transition: 0.5s linear;
	}

	.logo {
		width: 80%;	/* added this to prevent main-toggle from having its own block level and moving .logo down */
	}	
	header #main-toggle {
	display: inline-block;		/* changed from block to inline-lock to make it fit on same line as logo */
	}
	.bars {
		display: block;
	}
	/* replaces #navbar.active js */
	#drop-main:checked ~ #navbar {
		left: 0;
	}
	
	.submenu-btn:checked ~ .menu-two {
		display: block;
	}

/*	[id^=drop]:checked+.menu-two {
		display: block; 
	}
*/	
	.submenu-btn:checked ~ .drop-icon
	/*, .drop-one:hover span */ 
	{
		transform: rotate(-135deg);
		-webkit-transform: rotate(-135deg);
	}
	
	.submenu-btn:checked + label {
		background: red;
	}
	
	/*#navbar.active {
		left: 0;
	}*/

	#navbar li {
		display: block;
	}	
	
	.menu-one {
		position: relative;
		box-shadow: none;
		display: none;
	}

/*	.drop-one:hover > .menu-one {
		display: block;
	} */
	.submenu-btn:checked ~ .menu-one {
		display: block; 
		left: 0;
	}	

	.menu-one ul img {
		width: 80%;
		height: 150px;
		margin-left: auto;
		margin-right: auto;
	}	

	.menu-one ul {
		text-align: left;
	}
	
	.menu-two {
		position: relative;
	}
	
	
/*for layout change*/
	/* https://toolset.com/forums/topic/conditional-output-of-a-content-template-based-on-screen-width/ */
		.show-only-on-small {
		    display: block;
			padding-right: 1em;
			padding-left: 1em;
		  }
		 
		.show-only-on-small .levy {
			display: none;
		}	

		.show-only-on-small td {
			height: 50px; 
			text-align: center;
			vertical-align: middle;
		}
	
		.ulevies {
			text-align: left;
		}
		
		  .show-only-on-large {
		    display: none;
		  }
	
/*end layout change */	
	
}
