*, *:before, *:after {
  box-sizing: border-box;
}

body {
  margin: 10px 5px;
  font-family: 'arial', 'Open Sans', 'sans-serif';
  background-color: #008080;
  color: #000;    
  /*background-image: url(../images/background.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: top left;
    background-attachment: fixed;*/
}

h1 {
  margin: 0 0 .75em 0;
}
p {
	margin: .4em 0 .4em 0;
}
h2, h3, h4 {
  margin: .5em 0 .5em 0;
}
h1 {font-size: 1.7em; }
h2 {font-size: 1.4em; }
h3 {font-size: 1.2em; }
h4 {font-size: 1.1em; }
h5 {font-size: 1.0em; margin-bottom:5px; }

.wrapper {
  max-width: 1400px;
  margin: 0 20px;
  display: grid;
  grid-gap: 10px;
}

body {

}

/* navigation */
#nav {
	
}
#nav ul {
	width: 600px;
	max-width: 650px;
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #F5DEB3;		/* nav bar background color */
}
#nav ul li a:hover, #nav ul li a.alternate:hover {
    background-color: #A62A57;
}
#nav ul li a.alternate {
    background-color: #009EC9;
}
ul#footerlist {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

ul#footerlist li, #nav ul li {
    float: left;
	font-size: .8em;
}
ul#footerlist li {
	margin-right: 30px;
	font-size: .75em;
}

#nav ul li a {
    display: block;
    color: white;
    text-align: center;
    padding: 8px 10px;
    text-decoration: none;
}
ul#leftnav {
	list-style-type: none;
	margin-left: -38px;
}
ul#leftnav li {

}
ul#leftnav li a {
	display:block;
	border:1px solid #eee;
	padding:5px 3px 5px 6px;
	margin-bottom: 0px;
	text-decoration: none;
	font-size: .9em;
	color: #004C5C;
}
ul#leftnav li a:hover, ul#leftnav li a.alternate:hover {
	background-color: #00758C;
	color: #fff;
}
ul#leftnav li a.alternate {
	background-color: #009EC9;
	color: #fff;
}
.showhide {cursor: pointer; text-decoration:underline;}
/* header and footer */
header {
	background-color:#F5DEB3 !important;
}
#systemname {font-size: 1.8em; color:#000; margin:5px 0;}
#logo {float: left; margin-right:10px; }
#systemdate {float:right; color: #000; font-size: .8em; text-align: right; line-height:1.7em;}
.logout {margin-right: 20px; }
.sm {font-size: .9em; }
.vsm {font-size: .75em; }
.tctop {border:4px solid #eee; padding: 8px 0px 0px 6px; border-radius:3px; }


.userlist { margin-right: 15px; font-size: .8em; }
.links li {
	margin-left: -20px;
	font-size:.8em;
}
.fame {
	padding: 0px 4px;
	display: block;
	line-height: 1.2em;
	font-size: .75em;
}
.fameholder {
	border: 1px solid #999;
	background-color: #f8f8ff;
	margin-bottom:5px;
}
.hide { display: none; }

.fixed {min-width:60px}
.never { color: black; font-weight: bold; }
.paid, .active { color: green; font-weight: bold; }
.expired, .inactive { color: #990000; font-weight: bold; }
.message { font-weight:bold; color: #990000; display:block; margin: 5px 0px; }
.messagelite { font-weight:bold; color: #990000; background-color: yellow; display:block; margin: 5px 0px; }
.warning { font-weight:bold; color: #FF0000; }
.message2 { font-weight:bold; color: #990000; }
.label { text-align: right; font-weight: bold; }
.hl { font-weight:bold; background-color: #FFCC99; }
/* MD */
.lname {font-size: 1.2em;}
.md td, .md th, .mdfull td, .mdfull th { border: 0px solid #eee; font-size:.9em; padding:3px 4px; text-align:left;}
/* tables */
table.gridfull {width: 100%; }
table.grid, table.gridsm, table.gridfull, table.dash, table.md, table.mdfull, table.tc {border-collapse: collapse;}
.grid td, .grid th, .gridfull td, .gridfull th, .tc td { border: 1px solid #eee; font-size:.8em; padding:3px 4px; text-align:left;}
.gridsm td, .gridsm th { border: 1px solid #eee; font-size:.7em; padding:2px 3px; text-align:left;}
.gridsm th { background:#CCE5FF;}
.tc th { border: 1px solid #eee; font-size:.7em; padding:3px 4px; text-align:center;}
.grid th, .gridsm th, .gridfull th, .md th, ,md full th, .dash th { background-color: #f5f5f5 !important; }
.dash th { border: 1px solid #eee; font-size:.8em; padding:2px 4px; text-align:center;}
.dash td { border: 1px solid #eee; font-size:1em; padding:2px 4px; text-align:center;}
.entry td { font-size:.8em; padding:2px; }
.bigbtn { font-size: 1.2em; }
.smbtn { font-size: .8em; }
.bigfld { padding: 5px; font-size: 1.2em; }
.box {font-size: .8em !important;}
.box input {font-size: .9em !important;}
.greyline {background-color:#ccc; }
.boxreadonly input {font-size: .9em !important; background-color:#f5f5f5; border:1px solid #ccc;}
.right { text-align: right !important; }
.center { text-align: center !important; }
@media print {
	ul#leftnav { display: none !important; }
	.hideprint {display: none !important;}
}
/* what to do if we are using mobile */
@media screen and (max-width: 500px) {
	#systemdate, #logo { display: none; }
	#nav ul li a { padding: 4px 6px; }
	ul#footerlist li {margin-right: 10px;}
	#nav ul { width: 100%; }
	.bigfld { padding: 3px; font-size: 1.0em; }
	.hidemobile {display:none;}
}

/* what to do if we are not mobile (tablet or desktop) */
@media screen and (min-width: 500px) {

  /* no grid support? */
  .sidebar {
    float: left;
    width: 19.1489%;
  }

  .content {
    float: right;
    width: 79.7872%;
  }

  .wrapper {
    margin: 0 auto;
    grid-template-columns: 1fr 5fr;		/* TODO - we can play games here on the sidebar - for widths */
  }
  
  .header, .footer {
    grid-column: 1 / -1;
    clear: both;
  }
}

.wrapper > * {
  background-color: #fff;
  color: #000;
  border-radius: 5px;
  padding: 10px 15px 8px 15px;
  /*font-size: 110%;*/
  margin-bottom: 10px;
}

@supports (display: grid) {
  .wrapper > * {
    width: auto;
    margin: 0;
  }
}