* {
	margin:0;
	padding:0;
}

/* General Style Info */
body {
	background: #6C9AC2;
	color: #fff;
	font-family:'lucida grande',verdana,helvetica,arial,sans-serif;
	font-size:90%;
	margin: 0;
}
main {
    background: white;
}
a {
	background:inherit;
	color: #6C9AC2;
	text-decoration: underline;
	font-weight: bold;
}
a:hover {
	background:#fff;
	color: #6C9AC2;
	text-decoration:none;
}
a img {
	border:none;
}
h1, h2, h3, h4 {
	font-weight: normal;
}
h1 {
	background:#fff;
	color: #6C9AC2;
	font-size: 100%;
	margin: 0.1em 0;
}
h2 {
	background:#fff;
	color: #186f4d;
	font-family:'Gill Sans','lucida grande',helvetica, arial, sans-serif;
	font-size: 190%;
	margin: 0.3em 0;
	padding-top: 0.8em;
}
h3 {
	color: #993;
	font-family:'Gill Sans','lucida grande',helvetica, arial, sans-serif;
	font-size: 165%;
	padding-top: 1.5em;
}
h4 {
	color: #993;
	font-weight: normal;
	padding-top: 0.5em;
}
ul, li {
	margin: 0 12px;
}

/* Layout */
#container {
	text-align: left;
}

#header{
	padding: 10px 10px 10px 400px;
    height: 80px;
    background-color: #6C9AC2;
	background: url('../img/NCAS_national_centre_logo-white.svg') no-repeat left, url('../img/logo-CVAO.svg') no-repeat right;
    background-size: auto 95%;
}
#header h1 {
	background: #6C9AC2 url('../img/cake.icon.gif') no-repeat left;
	color: #fff;
	padding: 0px 30px;
}
#header h1 a, #header li a {
	color: #fff;
	background: transparent;
	font-weight: normal;
	text-decoration: none;
}
#header h1 a:hover, #header li a:hover {
	color: #fff;
	background: #6C9AC2;
	text-decoration: underline;
}
#header ul li {
	display: inline;
	list-style-type: none;
}
#content{
	background: #fff;
	clear: both;
	color: #333;
	padding: 10px 20px 40px 20px;
	overflow: auto;
}
#footer {
	clear: both;
	padding: 6px 10px;
	text-align: right;
}

/* Tables */
table {
	background: #fff;
	border:1px solid #ccc;
	border-right:0;
	clear: both;
	color: #333;
	margin-bottom: 10px;
	width: 100%;
}
th {
	background: #f2f2f2;
	border:1px solid #bbb;
	border-top: 1px solid #fff;
	border-left: 1px solid #fff;
	text-align: center;
}
th a {
	background:#f2f2f2;
	display: block;
	padding: 2px 4px;
	text-decoration: none;
}
th a:hover {
	background: #ccc;
	color: #333;
	text-decoration: none;
}
table tr td {
	background: #fff;
	border-right: 1px solid #ccc;
	padding: 4px;
	text-align: center;
	vertical-align: top;
}
table tr.altrow td {
	background: #f4f4f4;
}
td.actions {
	text-align: center;
	white-space: nowrap;
}
td.actions a {
	margin: 0px 6px;
}
.cake-sql-log table {
	background: #f4f4f4;
}
.cake-sql-log td {
	padding: 4px 8px;
	text-align: left;
}

/* Paging */
div.paging {
	background:#fff;
	color: #ccc;
	margin-bottom: 2em;
}
div.paging ul {
    display: flex;
    justify-content: center;
    width: 100%;
    list-style: none;
}
div.paging li.disabled, div.paging li.disabled a  {
	color: #ddd ! important;
	display: inline;
}
div.paging span {
}
div.paging span.current {
	color: #000;
}
div.paging span a {
}

/* Scaffold View */
dl {
	line-height: 2em;
	margin: 0em 0em;
	width: 60%;
}
dl .altrow {
	background: #f4f4f4;
}
dt {
	font-weight: bold;
	padding-left: 4px;
	vertical-align: top;
}
dd {
	margin-left: 10em;
	margin-top: -2em;
	vertical-align: top;
}

/* Forms */
form {
	clear: both;
	margin-right: 20px;
	padding: 0;
	width: 80%;
}
fieldset {
	border: 1px solid #ccc;
	margin-top: 30px;
	padding: 16px 20px;
}

.index fieldset {
   border: none;
   margin-top: 0;
   padding: 0;
   display: inline;
}
.index div.submit, .index div.input {
   display: inline;
   margin-left: 0.1em;
}
fieldset legend {
	background:#fff;
	color: #186f4d;
	font-size: 160%;
	font-weight: bold;
}
fieldset fieldset {
	margin-top: 0px;
	margin-bottom: 20px;
	padding: 16px 10px;
}
fieldset fieldset legend {
	font-size: 120%;
	font-weight: normal;
}
fieldset fieldset div {
	clear: left;
	margin: 0 20px;
}
form div {
	clear: both;
	margin-bottom: 1em;
	padding: .5em;
	vertical-align: text-top;
}
form div.input {
	color: #444;
}
form div.required {
	color: #333;
	font-weight: bold;
}
form div.submit {
	border: 0;
	clear: both;
	margin-top: 10px;
	margin-left: 140px;
}
label {
	display: block;
	font-size: 110%;
	padding-right: 20px;
}
input, textarea {
	clear: both;
	font-size: 140%;
	font-family: "frutiger linotype", "lucida grande", "verdana", sans-serif;
	padding: 2px;
	width: 100%;
}
select {
	clear: both;
	font-size: 120%;
	vertical-align: text-bottom;
}
select[multiple=multiple] {
	width: 100%;
}
option {
	font-size: 120%;
	padding: 0 3px;
}
input[type=checkbox] {
	clear: left;
	float: left;
	margin: 0px 6px 7px 2px;
	width: auto;
}
input[type=radio] {
	float:left;
	width:auto;
	margin: 0 3px 7px 0;
}
div.radio label {
	margin: 0 0 6px 20px;
}
input[type=submit] {
	display: inline;
	font-size: 110%;
	padding: 2px 5px;
	width: auto;
	vertical-align: bottom;
}

/* Notices and Errors */
div.message {
	clear: both;
	color: #900;
	font-size: 140%;
	font-weight: bold;
	margin: 1em 0;
}
div.error-message {
	clear: both;
	color: #900;
	font-weight: bold;
}
p.error {
	background-color: #186f4d;
	color: #fff;
	font-family: Courier, monospace;
	font-size: 120%;
	line-height: 140%;
	padding: 0.8em;
	margin: 1em 0;
}
p.error em {
	color: #000;
	font-weight: normal;
	line-height: 140%;
}
.notice {
	background: #ffcc00;
	color: #000;
	display: block;
	font-family: Courier, monospace;
	font-size: 120%;
	line-height: 140%;
	padding: 0.8em;
	margin: 1em 0;
}
.success {
	background: green;
	color: #fff;
}

/*  Actions  */
div.actions ul {
	margin: 0px 0;
	padding: 0;
}
div.actions li {
	display: inline;
	list-style-type: none;
	line-height: 2em;
	margin: 0 2em 0 0;
	white-space: nowrap;
}
div.actions ul li a {
	background:#fff;
	color: #6C9AC2;
	text-decoration: none;
}
div.actions ul li a:hover {
	color: #333;
	text-decoration: underline;
}

/* Related */
div.related {
	clear: both;
	display: block;
}

/* Debugging */
pre {
	color: #000;
	background: #f0f0f0;
	padding: 1em;
}
pre.cake-debug {
	background: #ffcc00;
	font-size: 120%;
	line-height: 140%;
	margin-top: 1em;
	overflow: auto;
	position: relative;
}
div.cake-stack-trace {
	background: #fff;
	border: 4px dotted #ffcc00;
	color: #333;
	margin: 0px;
	padding: 6px;
	font-size: 120%;
	line-height: 140%;
	overflow: auto;
	position: relative;
}
div.cake-code-dump pre {
	position: relative;
	overflow: auto;
}
div.cake-stack-trace pre, div.cake-code-dump pre {
	color: #000;
	background-color: #F0F0F0;
	margin: 0px;
	padding: 1em;
	overflow: auto;
}
div.cake-code-dump pre, div.cake-code-dump pre code {
	clear: both;
	font-size: 12px;
	line-height: 15px;
	margin: 4px 2px;
	padding: 4px;
	overflow: auto;
}
div.cake-code-dump span.code-highlight {
	background-color: #ff0;
	padding: 4px;
}
div.code-coverage-results div.code-line {
	padding-left:5px;
	display:block;
	margin-left:10px;
}
div.code-coverage-results div.uncovered span.content {
	background:#ecc;
}
div.code-coverage-results div.covered span.content {
	background:#cec;
}
div.code-coverage-results div.ignored span.content {
	color:#aaa;
}
div.code-coverage-results span.line-num {
	color:#666;
	display:block;
	float:left;
	width:20px;
	text-align:right;
	margin-right:5px;
}
div.code-coverage-results span.line-num strong {
	color:#666;
}
div.code-coverage-results div.start {
	border:1px solid #aaa;
	border-width:1px 1px 0px 1px;
	margin-top:30px;
	padding-top:5px;
}
div.code-coverage-results div.end {
	border:1px solid #aaa;
	border-width:0px 1px 1px 1px;
	margin-bottom:30px;
	padding-bottom:5px;
}
div.code-coverage-results div.realstart {
	margin-top:0px;
}
div.code-coverage-results p.note {
	color:#bbb;
	padding:5px;
	margin:5px 0 10px;
	font-size:10px;
}
div.code-coverage-results span.result-bad {
	color: #a00;
}
div.code-coverage-results span.result-ok {
	color: #fa0;
}
div.code-coverage-results span.result-good {
	color: #0a0;
}
h3.multirecord {
   clear: both;
}
div.multirecord {
   clear: left;
}
div.multirecord div {
   float: left;
   clear: right;
}
div.multirecord input, div.multirecord select {
   clear: none;
   width: inherit;
   }
form.horizform {
   width: 95%;
}
div.horizform {
   float: left;
   clear: none;
}
div.horizform div.checkbox {
   float: left;
   display: inline;
   clear: none;
   font-size: 75%;
}
div.horizform div.checkbox label {
   float: left;
   display: inline;
}
.events .select fieldset {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
}
.events .select fieldset .checkbox {
    width: 10em;
}
.events .select fieldset .checkbox label {
    display: flex;
    align-items: baseline;
}
.events .select fieldset .checkbox label input[type=checkbox] {
    margin-right: 0.5em;
}
dd {
   margin-left: 15em;
}

div.tableheader h2 { display: inline; }
div.tableheader { text-align: center; width: 100%; }

/* alert levels */
.inoperative { color: #ff0000; }
.nominal { color: #186f4d; }
.offline { color: #FFA500; }
.decommissioned { color: #800080; }
/* calendar CSS */
div.calendar {
   width: 100%;
}
div.calnav {
   width: 100%;
}
div.cell-prev, div.cell-next, .calname {
   display: inline-block;
   width: 15%;
}
div.cell-next {
   text-align: right;
}
.calname {
   margin: 0 auto;
   text-align: center;
   width: 70%;
}

div.manage {
   clear: both;
}
.calendar ul.caldays {
   list-style: none;
   padding: 0;
   margin: 0;
   clear: both;
   width: 100%;
   } 
.calendar ul.caldays > li{ 
   display: block;
   float: left;
   width: 14.2857142857%;
   min-width: 12em;
   padding: 5px;
   box-sizing: border-box;
   margin-left: 0;
   margin-right: -1px;
   margin-bottom: -1px;
   border: solid 1px grey;
}
.calendar .caldays ul {
   list-style: none;
}
.cell-othermonth {
   background-color: #daefff;
} 
.calendar ul.caldays > li.cell-today {
   border: dotted 3px red;
} 
.dayofweek, .daynum {
   font-variant: small-caps;
}
.dayofweek {
   display: inline-block;
   width: 30%;
}
.daynum {
   display: inline-block;
   text-align: right;
   width: 70%;
}
div.cell-number {
   width: 100%;
   border-bottom: solid 1px #468AB9; 
}
div.cell-number a {
   text-decoration: none;
}
.empty div.cell-number a{
   color: #ccc;
}
h4.subheader {
   text-align: center;
}
a.edit {
   color: #aaa;
   vertical-align: super;
   font-size: 50%;
}
div#tree a.edit {
   display: none;
}
span.childcount {
   color: #800;
}
#cattree {
   width: 30%;
   display: none;
}
#mobhead { display: none; }
div.c1 { -webkit-column-count: 2; column-count: 2; -moz-column-count: 2;
   text-align: justify;
}
#currentstatus {
   width: 20%;
   font-size: 120%;
   font-weight: bold;
   margin: 0 auto;
}
@media only screen and (max-width: 480px) {
   /* define mobile specific styles come here */
   #header, #mainmenu, div.resources.view dl, #container #mainmenu li.stretch {
      display: none;
   }
   body { font-size: 100%; }
   #container { height: 100%; width: 100%; max-width: 100%; }
   div.wrf { height: auto; position: relative; overflow: visible;}
   div.image { position: static; overflow: visible; }
   div.wrf img { max-width: 100%; position: static; }
   #mobhead { display: block; }
   #mobmenu { font-size: 200%; background-color: #468AB9; color: white; text-decoration: none; width: 2em;}
   /*rearrange menu for sidebar-type use*/
   #container #mainmenu li {
      display: block;
      border-bottom: solid 1px rgba(255,255,255,0.5);
   }
   #container #mainmenu li a {
      color: white;
      display: block;
      font-size: 125%;
      padding: 0.5em;
   }
   #container #mainmenu li a:hover {
      color: orange;
   }
   ul#mainmenu { position: absolute; top:0; left:4em; height: auto; background-color: #468AB9; width: auto; text-decoration: none; }
   div#tree .jstree-anchor {
      font-size: 85%;
      line-height: 85%;
      height: auto;
   }
   div.categories ul.horiz li, .cake-sql-log { display: none; }
   div.categories ul.horiz li:nth-last-of-type(-n+3) { display: list-item; }
   div.archives, table.calendar {
      font-size: 100%;
   }
   #content {
      padding: 0.2em;
   }
   .calname {
      font-size: 110%;
   }
   .calendar ul.caldays > li {
      width: 100%;
      max-width: none;
      border: none;
   }
   .calendar ul.caldays > li.cell-othermonth,.calendar ul.caldays > li.empty  { display: none; }
   
   .calendar .not-empty .cell-number a { display: block; height: 100%; text-decoration: none; text-align: justify;}
   #container #jstree-dnd.jstree-dnd-responsive > .jstree-ok,  #container #jstree-dnd.jstree-dnd-responsive > .jstree-er,  #container .jstree-default-responsive .jstree-icon,  #container .jstree-default-responsive .jstree-checkbox,  #container .jstree-default-responsive .jstree-file,  #container .jstree-default-responsive .jstree-folder,  #container .jstree-default-responsive .jstree-node  {
      background-image: url("/xband/img/40px.svg");
      background-size: 6em 12em;
   }
   #container i.jstree-icon {
      width: 2em;
      height: 2em;
      line-height: 2em;
      font-size: 75%;
   }
  #container .jstree-default-responsive .jstree-open > .jstree-ocl {
    background-position: 0 0em !important;
  }
  #container .jstree-default-responsive .jstree-closed > .jstree-ocl {
    background-position: 0 -2em !important;
  }
  #container .jstree-default-responsive .jstree-themeicon {
    background-position: -2em -2em;
  }
  #container .jstree-default-responsive .jstree-node {
    background-position: -4em 0;
    background-repeat: repeat-y;
    margin-left: 2em;
    line-height: 2em;
  }
  #container .jstree-default-responsive .jstree-leaf > .jstree-ocl {
    background-position: -2em -6em;
  }
  #container .jstree-default-responsive .jstree-last > .jstree-ocl {
    background-position: -2em -8em;
  }
}


