﻿main 
{
    display: block;
    width: 94%;
    margin: 0 auto;
    padding-top: 3em;
}

/*Override stupid chrome default behavior*/
main input[type="button"], 
main input[type="submit"], 
main input[type="reset"], 
main input[type="file"]::-webkit-file-upload-button, 
main button
{
    cursor: pointer;
}

main h2
{
    font-size: 1.3em;
    margin-bottom: 25px;
}

main h3
{
    font-size: 1.1em;
}

.center
{
    display: block;
    width: 100%;
    text-align: center;
}

.left
{
    display: inline-block;
	text-align: left;
}

/*
Links and Buttons
*/

main a
{
    color: #363872;
}

main button[type="button"],
main input[type="button"],
main input[type="submit"]
{
    background-color: #363872;
    padding: 0 3px;
    color: #FFFFFF;
    border-radius: 4px;
    min-width: 10em;
    height: 2.1em;
    border: none;
}

#nav-block
{
    padding-bottom: 20px;
}

#nav-block input, 
#nav-block button, 
#nav-block a
{
    display: inline-block;
    font-size: 1.2em;
    margin-right: 2.2em;
    text-decoration: none;
}

#form-button-block
{
    padding-top: 15px;
}

#form-button-block input, 
#form-button-block button, 
#form-button-block a
{
    display: inline-block;
    font-size: 1.2em;
    margin-right: 1.4em;
    text-decoration: none;
}
#form-button-block input:last-child, 
#form-button-block button:last-child, 
#form-button-block a:last-child, 
#nav-block input:last-child, 
#nav-block button:last-child, 
#nav-block a:last-child
{
    margin-right: 0;
}

/*
Lists
*/

dl.indented, 
ol.indented, 
ul.indented, 
.indented
{
    padding-left: 2.5em;
}

ol.indented li span:first-child, 
ul.indented li span:first-child 
{
  padding-left: 2.5em;
  width: 16.5em;
}

div.indented, 
span.indented
{
    padding-bottom: 7px;
}

ol.inline, 
ul.inline
{
    list-style: none;
    padding: 0px;
    display: table;
}

ol.inline li, 
ul.inline li
{
    display: table-row;
}

ol.inline li span, 
ul.inline li span
{
    display: table-cell;
    padding-bottom: 7px;
}

dl.inline dt
{
     float: left;
     clear: left;
     width: 14em;
     padding-bottom: 7px;
     vertical-align: top
}

dl.inline dd
{
    float: left;
    clear: right;
    margin-left: 0px;
}

/* dl.inline must be surrounded by a block container with .list-block class */
.list-block
{
    overflow: hidden;
}

 ol.form, ul.form
 {
     list-style: none;
 }

ol.form li label, 
ul.form li label, 
div.form label
{
    display: inline-block;
    width: 16em;
    vertical-align: top;
    padding-bottom: 7px;
}

.form li label strong,
div.form label strong,
.required
{
    font-weight: normal;
    color: #363872;
}

main fieldset 
{
    border: 0 none;
    padding-top: 20px;
    padding-left: 0px;
    margin-top: 20px;
    margin-left: 0px; 
    width: 60%;   
}

main legend 
{
    font-size: 1.1em;
    font-weight: bold;
}

main ol fieldset, 
main ul fieldset, 
main dl fieldset
{
    position: relative;
    padding-top: 40px;
    padding-bottom: 20px;
    border-top: 1px dashed #E8E8E8;
    border-bottom: 1px dashed #E8E8E8;
}

main ol legend, 
main ul legend, 
main dl legend 
{
    position: absolute;
    top: 5px;
    -webkit-padding-start: 0px;
    font-weight: normal;
}

main li fieldset
{
    width: 100%;
}

main li fieldset legend
{
    top: 10px;
    font-size: inherit;
    font-weight: bold;
}

main li div
{
    padding-top: 30px;
    width: 38em;
}

/* List meta-data can be placed in a block container with .list-message class between the list and its header */
.list-message
{
    font-weight: bold;
    padding-bottom: 7px;
    padding-left: 1.5em;
}

/*
Tables
*/

.rgview table 
{
    border: 1px outset #4A5153;
    border-radius: 4px 4px 0px 0px;
    font-size: 0.9em;
}

.rgview table thead 
{
    background-color: #EAE8E8;
    background-image: linear-gradient(to top, #EAE8E8, #FFFFFF);
    color: #000000;
    font-size: 1em;
}

.rgview table thead tr
{
    border-bottom: 1px solid gray;
}

.rgview table tr th
{
    border-left: 1px solid gray;
    border-right: 1px solid gray;
}

.rgview table tfoot
{
    background-color: #EAE8E8;
}

.rgFooter td
{
    border-top: 1px solid grey;
}

.rgview table tr td 
{
    border-top: none;
    border-bottom: none;
    border-left: 1px solid grey;
    border-right: 1px solid grey;
}

.rgview table .rgAltRow 
{
    background-color: #F5F4F3;
}

.flag
{
    display: inline-block;
    min-width: 4em;
}

table ol,
table ul
{
    list-style: disc;
    margin-top: 0px;
    margin-bottom: 0px;
}

table ol strong,
table ul strong
{
    font-weight: normal;
    color: #363872;
}

/*
Popups
*/

.modal-content
{
    top: 12em;
}

.modal-header 
{
    background-color: #363872;
    border-radius: 3px 3px 0px 0px;
}

.modal-footer 
{
    background-color: #E8E8E8;
    border-radius: 0px 0px 3px 3px;
}

.modal-footer button,
.modal-footer input
{
    border-right: 0.2em;
}

/*
Accessibility and Functionality
*/

.hidden
{
    display: none;
}

/* Items with .visually-hidden are not rendered but can be read by screen readers */
.visually-hidden 
{
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

/*
Alerts and Messages
*/

.alert
{
    border-radius:8px;
    padding: 1em 1em 1em 3em;
    margin: 2em;
}
.alert span
{
    display: block;
    padding-left: 1em;
}
.alert a
{
    color: black;
}
.alert-danger
{
    background-color: #ffecec;
    border: 1px solid #f5aca6;
}

.alert-warning
{
}

.alert-info
{
}

.alert-success
{
}
