/*
blue hue 210
$snow        : #F9F9F9;
$primary-color: #004488;
$secondary-color: #003A75;
highlight: #98C3EE;
shadow: #002A55;
tooltip: #C6DAEE;
$jet         : #222222;
*/

/*******************************************************************************
    OVERARCHING PAGE LAYOUT BEGIN
*******************************************************************************/

body {
    /*margin: 0px 15px 0px 15px;*/
    margin: 0;
    padding: 0;
    background: #004488;
    color: #222222;
    font-size: 10pt;
    font-family: Verdana, Arial, Helvetica, sans-serif;
}

.container {
  display: grid;

  grid-template-areas:
    "header header header"
    "nav content content"
    "footer footer footer";

  grid-template-columns: 200px 1fr 200px;
  grid-template-rows: auto 1fr auto;

  height: 100vh;
}

header {
    grid-area: header;

    background: #004488;
    color: #F9F9F9;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav {
    grid-area: nav;

    margin-left: 0.5rem;
    background: #004488;
}

main {
    grid-area: content;

    margin-right: 0.5rem;
    background: #F9F9F9;
    font-size: 10pt;
    padding: 1em;
}

footer {
    grid-area: footer;

    background: #004488;
    color: #F9F9F9;
    padding: 0.5rem 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

/* Desktop */
@media (min-device-width: 851px) {
    .footer-left {
        text-align: left;
    }
    .footer-middle {
        text-align: center;
    }
    .footer-right {
        text-align: right;
    }
    nav .hamburger {
        display: none;
    }
}

/* Mobile */
@media (max-device-width: 850px) {
  .container {
    grid-template-areas:
      "header"
      "nav"
      "content"
      "footer";

    grid-template-columns: 1fr;
    grid-template-rows:
      auto /* Header */
      auto /* Nav */
      1fr /* Content */
      auto; /* Footer */
  }

  header {
      display: block;
      text-align: center;
  }

  nav {
    margin: 0;
  }

  nav #navlist {
      display: none;
  }

  nav #navlist.is-active {
      display: block;
  }

  footer {
      display: block;
      text-align: center;
  }
}


/*******************************************************************************
    OVERARCHING PAGE LAYOUT END
*******************************************************************************/

/*******************************************************************************
    main BEGIN
*******************************************************************************/

main p {
    text-align: justify;
}

main a:link, main a:visited
{
    color: #004488;
    font-weight: bold;
}

main a:active, main a:hover
{
    color: #2E6399;
    font-weight: bold;
}

/***************************************
    Button elements
    TODO: Figure out how to avoid having main on everything
***************************************/
main fieldset .buttons {
    margin-left: 10px;
}

main .buttons a,
main .buttons button,
main .buttons input[type=submit] {
    display:inline-block;
    zoom: 1; *display: inline; /* IE */
    margin:0 7px 0 0;
    background-color:#f5f5f5;
    border:1px solid #dedede;
    border-top:1px solid #eee;
    border-left:1px solid #eee;
    font-family:Verdana, Arial, Helvetica, sans-serif;
    font-size:100%;
    line-height:130%;
    text-decoration:none;
    font-weight:bold;
    color:#565656;
    cursor:pointer;
    padding:5px 10px 6px 7px; /* Links */
}
main .buttons button {
    width:auto;
    overflow:visible;
    padding:4px 10px 3px 7px; /* IE6 */
}
main .buttons button[type] {
    padding:5px 10px 5px 7px; /* Firefox */
    line-height:17px; /* Safari */
}
main .buttons *:first-child+html button[type] {
    padding:4px 10px 3px 7px; /* IE7 */
}

/* Disabled buttons */
main .buttons a:disabled,
main .buttons button:disabled,
main .buttons input[type=submit]:disabled {
    filter: grayscale(100%);
    cursor: not-allowed;
}

/* Button icons */
main .buttons button img,
main .buttons a img {
    margin:0 3px -3px 0 !important;
    padding:0;
    border:none;
    width:16px;
    height:16px;
}
main .buttons input[type=submit] {
    background-repeat: no-repeat;
    background-position: 6px 50%;
    padding-left: 26px;
}

/* Compact buttons - intended for icons with no text */
main .buttons.compact a,
main .buttons.compact button,
main .buttons.compact input[type=submit] {
    margin: 0;
    padding: 5px 10px;
}
main .buttons.compact button[type] {
    padding: 5px 10px;
}
main .buttons.compact button img,
main .buttons.compact a img {
    margin: 0 !important;
}

/* Button standard colors */
main .buttons button:hover,
main .buttons a:hover,
main .buttons input[type=submit]:hover {
    background-color:#dff4ff;
    border:1px solid #c2e1ef;
    color:#336699;
}
main .buttons a:active,
main .buttons input[type=submit]:active {
    background-color:#6299c5;
    border:1px solid #6299c5;
    color:#fff;
}

/* Button positive colors */
main .buttons button.positive,
main .buttons a.positive,
main	.buttons input[type=submit].positive {
    color:#529214;
}
main .buttons a.positive:hover,
main .buttons button.positive:hover,
main	.buttons input[type=submit].positive:hover {
    background-color:#E6EFC2;
    border:1px solid #C6D880;
    color:#529214;
}
main .buttons a.positive:active,
main .buttons button.positive:active,
main	.buttons input[type=submit].positive:active {
    background-color:#529214;
    border:1px solid #529214;
    color:#fff;
}

/* Button negative colors */
main .buttons a.negative,
main .buttons button.negative,
main	.buttons input[type=submit].negative {
    color:#d12f19;
}
main .buttons a.negative:hover,
main .buttons button.negative:hover,
main	.buttons input[type=submit].negative:hover {
    background-color:#fbe3e4;
    border:1px solid #fbc2c4;
    color:#d12f19;
}
main .buttons a.negative:active,
main .buttons button.negative:active,
main	.buttons input[type=submit].negative:active {
    background-color:#d12f19;
    border:1px solid #d12f19;
    color:#fff;
}
/* Secondary button placement */
main .buttons a.secondary,
main .buttons button.secondary,
main	.buttons input[type=submit].secondary {
    float: right;
}

/* Button fixed sizes */
main .buttons a.fixed-xsmall,
main .buttons button.fixed-xsmall,
main .buttons input[type=submit].fixed-xsmall {
    width: 4em;
}

main .buttons a.fixed-small,
main .buttons button.fixed-small,
main .buttons input[type=submit].fixed-small {
    width: 8em;
}

main .buttons a.fixed-medium,
main .buttons button.fixed-medium,
main .buttons input[type=submit].fixed-medium {
    width: 12em;
}

main .buttons a.fixed-large,
main .buttons button.fixed-large,
main .buttons input[type=submit].fixed-large {
    width: 16em;
}

/*******************************************************************************
    main END
*******************************************************************************/

/*******************************************************************************
    footer BEGIN
*******************************************************************************/
footer div {
    margin: 0.25em;
}
/*******************************************************************************
    footer END
*******************************************************************************/

h1 {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size:14pt;
    color: #004488;
}

h2 {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size:12pt;
    color: #004488;
}

.section_head, h3 {
    font-size: 10pt;
    font-weight: bold;
    color: #004488;
    margin-top: 20px;
    margin-bottom: 0;
}

.section_subhead, h4 {
    font-size: 10pt;
    font-weight: bold;
    color: #222222;
}

#current div {
    color: #F9F9F9;
    margin: 0.25em;
}

#dhtmltooltip {
    position: absolute;
    width: 150px;
    border: 2px solid #222222;
    padding: 2px;
    background-color: #C6DAEE;
    visibility: hidden;
    z-index: 1000;
}

.menu_base {
    font-weight: bold;
    /* Not ready for this yet
    font-size: 10pt;
    */
}

.menu_base ul {
    margin: 0; /*removes indent IE and Opera*/
    padding: 0; /*removes indent Mozilla and NN7*/
    list-style-type: none; /*turns off display of bullet*/
}

.menu_base li {
    margin: 0;
}

.menu_base a {
    display: block;
    padding: 2px 2px 2px 14px;
    border: 1px solid;
    border-color: #2E6399 #002A55 #002A55 #2E6399;
    background-color: #003A75;
}

.menu_base a:link, .menu_base a:visited {
    color: #F9F9F9;
    text-decoration: none;
    margin: 0px;
}

.menu_base a:hover, .menu_base a:active {
    background-color: #F9F9F9;
    color: #004488;
    margin: 0px;
}

.menu_base li.menu_active a:link,
.menu_base li.menu_active a:visited,
.menu_base li.menu_active a:hover,
.menu_base li.menu_active a:active {
    background-color: #F9F9F9;
    color: #004488;
}

.menu_base hr {
    margin: 0.5em 0;
    border: 1px inset;
}

.Input500
{
    width: 480px;
}

.Input410
{
    width: 410px;
}

.Input150
{
    width: 150px;
}

.Input200
{
    width: 200px;
}

.Input300
{
    width: 300px;
}

.Input100
{
    width: 100px;
}

.Input80
{
    width: 80px;
}

.Input50
{
    width: 50px;
}

.Input40
{
    width: 40px;
}

.Input30
{
    width: 30px;
}

.CommentBox
{
    width: 400px;
    height: 100px;
    font-family: Verdana, Arial, Helvetica, sans-serif;
}

a:link, a:visited
{
    color: #F9F9F9;
    font-weight: bold;
}

a:active, a:hover
{
    color: #F9F9F9;
    font-weight: bold;
}

.success_text {
    color: #222222;
    background-color: #79DF46;
    font-weight: bold;
    padding: 5px;
}

.error_text {
    color: #FF0000;
    font-weight: bold;
}

.nav_button
{
    text-align: center;
    background: #003A75;
    font-weight: bold;
    border: 1px solid #222222;
}

.nav_button a
{
    display: block;
    text-decoration: none;
    padding: 0.5em;
}

.contact_card
{
    margin: 10px 0 0 0;
    padding: 5px 5px 5px 5px;
    background-color: #C6DAEE;
    color: #222222;
    border: 1px solid #222222;
}

.bold {
    font-weight: bold;
}

.underline {
    text-decoration: underline;
}

.image_link a:link,
.image_link a:visited,
.image_link a:hover,
.image_link a:active {
    text-decoration: none;
}

.image_link {
    text-decoration: none;
}

.image_link img {
    border-width: 0px;
}

.button {
    padding: 5px 10px 5px 10px;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 10pt;
}

table.align-top td {
    vertical-align: top;
}

/***************************************
    Info Messages
***************************************/
.info_messages {
    /*background-color: #FF9900;*/
    background-color: #F77346;
    width: 100%;
}

.info_messages > span {
    color: #222222;
    display: inline-block;
    font-weight: bold;
    margin: 5px 5px 0px 5px;
}

.info_messages > span:last-child {
    margin: 5px;
}


/***************************************
    Entry Grid
***************************************/
.entry_grid {
    width: 100%;
    margin: 5px 0px 5px 0px;
    border-top: 2px solid #222222;
    border-right: 2px solid #222222;
    border-left: 2px solid #222222;
    border-bottom: 1px solid #222222;
}

.entry_grid th {
    text-align: left;
    background-color: #DDEEFF;
    border-bottom: 3px double #222222;
    padding: 5px 10px 5px 10px;
}

.entry_grid .odd_row {
    background-color: #DDFFFF;
}

.entry_grid .even_row {
    background-color: #DDEEFF;
}

.entry_grid .edit_row {
    background-color: #C2D8EF;
}

.entry_grid .top_half {
    text-align: left;
    padding: 10px 10px 10px 10px;
    border-bottom: 1px solid #555D66;
}

.entry_grid .bottom_half {
    text-align: left;
    padding: 0px 10px 0px 10px;
    border-bottom: 1px solid #222222;
}

.entry_grid label {
    display: inline-block;
    width: 6em;
}

/***************************************
    Form fields
***************************************/
.select2-container {
    margin-left: 15px;
}

/* Text Entry */
input, textarea, select {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 10pt;
}

/* Normal field */
.field {
    display: inline-block;
    width: 443px;
    margin: 0px;
    padding: 0px;
}
.field > input,
.field > span,
.field > div,
.field > textarea,
.field > select {
    width: 200px;
    display: inline-block;
    text-align: left;
    margin: 5px 10px 5px 10px;
}
/* Make select boxes same width/height as text boxes... */
.field > select {
    padding-right: 3px;
    box-sizing: content-box;
    height: 20px;
}
.field > label {
    position: relative;
    width: 150px;
    display: inline-block;
    text-align: right;
    vertical-align: baseline;
    margin: 5px 10px 5px 10px;
    font-weight: bold;
}
.field > label > em {
    position: absolute;
    vertical-align: middle;
    left: 160px;
    bottom: 3px;
}
.field > table {
    display: inline-block;
    border-spacing: 0px;
    margin: 5px 10px;
}
.field > table td {
    width: 100px;
    margin: 5px 10px 5px 10px;
}
.field > table label {
    font-weight: bold;
}

/* Modifier to make a field double width */
.double {
    width: 895px;
}
.double > input,
.double > span,
.double > div,
.double > textarea,
.double > select {
    width: 695px;
}

/* Modifier to indicate field spans multiple lines (Useful to align label and other such behavior) */
.multiline > label {
    vertical-align: top;
}

/* Comment field (don't combine with .field or .double) */
.comment {
    display: inline-block;
    width: 695px;
    margin: 0px 0px 0px 125px;
    padding: 0px;
}
.comment > label,
.comment > textarea,
.comment > span {
    position: relative;
    width: 695px;
    display: block;
    text-align: left;
    margin: 5px 10px 5px 10px;
}
.comment > label {
    font-weight: bold;
}
.comment > label > em {
    margin: 0px 0px 0px 5px;
}

.invalid {
    color: red;
}
.date_picker {
    vertical-align: text-top;
    margin-left: -10px;
}
.number {
    text-align: right;
}
textarea {
    font-family: Verdana, Arial, Helvetica, sans-serif;
}

/***************************************
    Field sets
***************************************/
fieldset {
    position: relative;
    margin: 30px 0px;
    padding: 10px 0px;
    border: 2px solid #004488;
    border-radius: 5px;
}
fieldset legend {
    position: absolute;
    top: -18px;
    margin-left: 10px;
    padding-left: 5px;
    padding-right: 5px;
    font-weight: bold;
    background: #004488;
    color: #F9F9F9;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}
fieldset p {
    margin: 0px 10px 5px 10px;
}

/***************************************
    Radio groups
***************************************/
.radio_group li {
    display: block;
    text-decoration: none;
    margin: 5px;
}


/***************************************
    Search Results grid
***************************************/
.search_results {
    border-top: 2px solid #222222;
    border-right: 2px solid #222222;
    border-left: 2px solid #222222;
    border-bottom: 1px solid #222222;
    width: 100%;
}

.search_results th {
    text-align: left;
    border-bottom: 3px double #222222;
    padding: 5px 10px 5px 10px;
}

.search_results td {
    text-align: left;
    padding: 5px 10px 5px 10px;
}

/* This is the new way of doing even and odd rows */
.search_results tr:nth-child(even) {
    background-color: #DDEEFF;
}

.search_results tr:nth-child(odd) {
    background-color: #DDFFFF;
}

/* This differentiates the edit row. This MUST be defined after the even/odd rows above. */
.search_results tr.edit_row {
    background-color: #C2D8EF;
}

/****************************
    Special Print Behavior
****************************/
.print_only {
    display: none;
}