/* Override parent CSS styles */

/* Prevent top nav disappearing as the width shrinks */
@media (min-width:0em) {
    .main-nav-desktop {
        display: block
    }
}

/* Remove oversized font */
body {
    font-size: 13px;
    font-family: sans-serif;
    font-weight: revert;
    line-height: 1.4;
}

/* restore sensible paragraph spacings */
p {
    line-height: 1.6em;
    margin: 0.5em 0px 1em;
    padding: 0.2em 0 0;
}

/* Remove oversize button/input fields */
input {
    border-radius: revert;
    font: revert;
}

button {
    font: revert;
    border: revert;
}

/* Prevent page contents collapsing to the left */
.u-grid-standard {
    grid-template-columns: revert;
}

/* Fix bold not displaying */
b,
strong {
    font-weight: revert;
}

/* Fix spacing around elements */
th,
td {
    padding: 0.2em;
}

label {
    cursor: pointer;
    padding-left: 0.2em;
}

ul,
ol {
    padding: revert;
}

/* Revert to default headings */
h1,
h2,
h3,
h4,
h5,
h6 {
    font: revert;
}

/* Make links more noticeable */
a {
    color: #0090e9;
    text-decoration: none;
}

a:focus,
a:hover,
a:active {
    color: #005ab2;
    outline: 0;
    text-decoration: underline;
}

/* Fix up jqueryui datagrid */
html {
    box-sizing: revert;
}

/* some font formats */
.errorText {
    color: red;
    font-style: normal;
    font-weight: bold;
}

.warningText {
    color: orange;
    font-style: normal;
}

.successText {
    color: green;
    font-style: normal;
}

/**********/
/* tables */
/**********/
table.layout {
    border: none !important;
    background: none;
    border-collapse: collapse;
    border-color: #FFFFFF;
    width: 99%;
}

table.layout th,
table.layout td {
    border: none !important;
    border-color: #FFFFFF
}

table.datatable {
    border: 1px solid grey !important;
    border-collapse: collapse;
    margin-top: 1em !important;
}

table.datatable th {
    color: #FFFFFF;
    font-weight: bold;
    font-size: 13px;
    background-color: #004b8d !important;
    text-decoration: none;
    text-align: left;
    padding: 4px;
    width: auto;
    white-space: nowrap;
}

table.datatable td {
    font-size: 12px;
    padding: 4px 10px 4px 4px;
}

table.datatable tr:nth-child(odd) td {
    background-color: #FFFFA0 !important;
}

/*****************/
/* Button Styles */
/*****************/

.btn {
    display: inline-block;
    padding: 4px 10px 4px;
    margin-bottom: 0;
    font-size: 13px;
    line-height: 18px;
    color: #333333;
    text-align: center;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
    vertical-align: middle;
    cursor: pointer;
    background-color: #f5f5f5;
    background-image: -moz-linear-gradient(top, #ffffff, #e6e6e6);
    background-image: -ms-linear-gradient(top, #ffffff, #e6e6e6);
    background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#e6e6e6));
    background-image: -webkit-linear-gradient(top, #ffffff, #e6e6e6);
    background-image: -o-linear-gradient(top, #ffffff, #e6e6e6);
    background-image: linear-gradient(top, #ffffff, #e6e6e6);
    background-repeat: repeat-x;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#e6e6e6', GradientType=0);
    border-color: #e6e6e6 #e6e6e6 #bfbfbf;
    border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
    filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
    border: 1px solid #cccccc;
    border-bottom-color: #b3b3b3;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 1px 2px rgba(0, 0, 0, .05);
    -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 1px 2px rgba(0, 0, 0, .05);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 1px 2px rgba(0, 0, 0, .05);
}

.btn:hover,
.btn:active,
.btn.active,
.btn.disabled,
.btn[disabled] {
    background-color: #e6e6e6;
}

.btn:active,
.btn.active {
    background-color: #cccccc \9;
}

.btn:hover {
    color: #333333;
    text-decoration: none;
    background-color: #e6e6e6;
    background-position: 0 -15px;
    -webkit-transition: background-position 0.1s linear;
    -moz-transition: background-position 0.1s linear;
    -ms-transition: background-position 0.1s linear;
    -o-transition: background-position 0.1s linear;
    transition: background-position 0.1s linear;
}

.btn:focus {
    outline: thin dotted #333;
    outline: 5px auto -webkit-focus-ring-color;
    outline-offset: -2px;
}

.btn.active,
.btn:active {
    background-color: #e6e6e6;
    background-color: #d9d9d9 \9;
    background-image: none;
    outline: 0;
    -webkit-box-shadow: inset 0 2px 4px rgba(0, 0, 0, .15), 0 1px 2px rgba(0, 0, 0, .05);
    -moz-box-shadow: inset 0 2px 4px rgba(0, 0, 0, .15), 0 1px 2px rgba(0, 0, 0, .05);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, .15), 0 1px 2px rgba(0, 0, 0, .05);
}

.btn.disabled,
.btn[disabled] {
    cursor: default;
    background-color: #e6e6e6;
    background-image: none;
    opacity: 0.65;
    filter: alpha(opacity=65);
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
}

.btn-large {
    padding: 9px 14px;
    font-size: 15px;
    line-height: normal;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
}

.btn-large [class^="icon-"] {
    margin-top: 1px;
}

.btn-small {
    padding: 5px 9px;
    font-size: 11px;
    line-height: 16px;
}

.btn-small [class^="icon-"] {
    margin-top: -1px;
}

.btn-mini {
    padding: 2px 6px;
    font-size: 11px;
    line-height: 14px;
}

.btn-primary,
.btn-primary:hover,
.btn-warning,
.btn-warning:hover,
.btn-danger,
.btn-danger:hover,
.btn-success,
.btn-success:hover,
.btn-info,
.btn-info:hover,
.btn-inverse,
.btn-inverse:hover {
    color: #ffffff;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
}

.btn-primary.active,
.btn-warning.active,
.btn-danger.active,
.btn-success.active,
.btn-info.active,
.btn-inverse.active {
    color: rgba(255, 255, 255, 0.75);
}

.btn {
    border-color: #ccc;
    border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
}

.btn-primary {
    background-color: #0074cc;
    background-image: -moz-linear-gradient(top, #0088cc, #0055cc);
    background-image: -ms-linear-gradient(top, #0088cc, #0055cc);
    background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0055cc));
    background-image: -webkit-linear-gradient(top, #0088cc, #0055cc);
    background-image: -o-linear-gradient(top, #0088cc, #0055cc);
    background-image: linear-gradient(top, #0088cc, #0055cc);
    background-repeat: repeat-x;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#0088cc', endColorstr='#0055cc', GradientType=0);
    border-color: #0055cc #0055cc #003580;
    border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
    filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
}

.btn-primary:hover,
.btn-primary:active,
.btn-primary.active,
.btn-primary.disabled,
.btn-primary[disabled] {
    background-color: #0055cc;
}

.btn-primary:active,
.btn-primary.active {
    background-color: #004099;
}

.btn-warning {
    background-color: #faa732;
    background-image: -moz-linear-gradient(top, #fbb450, #f89406);
    background-image: -ms-linear-gradient(top, #fbb450, #f89406);
    background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#fbb450), to(#f89406));
    background-image: -webkit-linear-gradient(top, #fbb450, #f89406);
    background-image: -o-linear-gradient(top, #fbb450, #f89406);
    background-image: linear-gradient(top, #fbb450, #f89406);
    background-repeat: repeat-x;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fbb450', endColorstr='#f89406', GradientType=0);
    border-color: #f89406 #f89406 #ad6704;
    border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
}

.btn-warning:hover,
.btn-warning:active,
.btn-warning.active,
.btn-warning.disabled,
.btn-warning[disabled] {
    background-color: #f89406;
}

.btn-warning:active,
.btn-warning.active {
    background-color: #c67605 \9;
}

.btn-danger {
    background-color: #da4f49;
    background-image: -moz-linear-gradient(top, #ee5f5b, #bd362f);
    background-image: -ms-linear-gradient(top, #ee5f5b, #bd362f);
    background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ee5f5b), to(#bd362f));
    background-image: -webkit-linear-gradient(top, #ee5f5b, #bd362f);
    background-image: -o-linear-gradient(top, #ee5f5b, #bd362f);
    background-image: linear-gradient(top, #ee5f5b, #bd362f);
    background-repeat: repeat-x;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ee5f5b', endColorstr='#bd362f', GradientType=0);
    border-color: #bd362f #bd362f #802420;
    border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
    filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
}

.btn-danger:hover,
.btn-danger:active,
.btn-danger.active,
.btn-danger.disabled,
.btn-danger[disabled] {
    background-color: #bd362f;
}

.btn-danger:active,
.btn-danger.active {
    background-color: #942a25 \9;
}

.btn-success {
    background-color: #5bb75b;
    background-image: -moz-linear-gradient(top, #62c462, #51a351);
    background-image: -ms-linear-gradient(top, #62c462, #51a351);
    background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#62c462), to(#51a351));
    background-image: -webkit-linear-gradient(top, #62c462, #51a351);
    background-image: -o-linear-gradient(top, #62c462, #51a351);
    background-image: linear-gradient(top, #62c462, #51a351);
    background-repeat: repeat-x;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#62c462', endColorstr='#51a351', GradientType=0);
    border-color: #51a351 #51a351 #387038;
    border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
    filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
}

.btn-success:hover,
.btn-success:active,
.btn-success.active,
.btn-success.disabled,
.btn-success[disabled] {
    background-color: #51a351;
}

.btn-success:active,
.btn-success.active {
    background-color: #408140 \9;
}

.btn-info {
    background-color: #49afcd;
    background-image: -moz-linear-gradient(top, #5bc0de, #2f96b4);
    background-image: -ms-linear-gradient(top, #5bc0de, #2f96b4);
    background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#5bc0de), to(#2f96b4));
    background-image: -webkit-linear-gradient(top, #5bc0de, #2f96b4);
    background-image: -o-linear-gradient(top, #5bc0de, #2f96b4);
    background-image: linear-gradient(top, #5bc0de, #2f96b4);
    background-repeat: repeat-x;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#5bc0de', endColorstr='#2f96b4', GradientType=0);
    border-color: #2f96b4 #2f96b4 #1f6377;
    border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
    filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
}

.btn-info:hover,
.btn-info:active,
.btn-info.active,
.btn-info.disabled,
.btn-info[disabled] {
    background-color: #2f96b4;
}

.btn-info:active,
.btn-info.active {
    background-color: #24748c \9;
}

.btn-inverse {
    background-color: #414141;
    background-image: -moz-linear-gradient(top, #555555, #222222);
    background-image: -ms-linear-gradient(top, #555555, #222222);
    background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#555555), to(#222222));
    background-image: -webkit-linear-gradient(top, #555555, #222222);
    background-image: -o-linear-gradient(top, #555555, #222222);
    background-image: linear-gradient(top, #555555, #222222);
    background-repeat: repeat-x;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#555555', endColorstr='#222222', GradientType=0);
    border-color: #222222 #222222 #000000;
    border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
    filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
}

.btn-inverse:hover,
.btn-inverse:active,
.btn-inverse.active,
.btn-inverse.disabled,
.btn-inverse[disabled] {
    background-color: #222222;
}

.btn-inverse:active,
.btn-inverse.active {
    background-color: #080808 \9;
}


/***********************/
/* Other misc tweaks   */
/***********************/

.hidden {
    display: none !important;
    visibility: hidden;
}

h1 {
    padding-bottom: 20px;
}

/* Prevent content stretching */
#main-content {
    max-width: 900px;
    /*margin: 0 auto; /* Center the content horizontally */
}

dd {
    margin: 0 0 0 40px;
}

ul,
ol {
    margin-bottom: 1em;
}

td {
    vertical-align: top;
}

.fat {
    padding-block-end: 5px;
    font-size: 15px;
}

hr {
    margin-top: 1em;
    margin-bottom: 1em;
}

/***************/
/* text panels */
/***************/

p.note {
    -moz-border-radius: 6px;
    -webkit-border-radius: 6px;
    background-color: #f0f7fb;
    background-image: url(data:image/webp;base64,UklGRqQCAABXRUJQVlA4WAoAAAAQAAAALwAALwAAQUxQSN4AAAABgGv9//nlnW1z6vzHJrsLcFfQ+U8Zf41x7jTZtjnZnGxcQKfJeuf6tNUUEROAP37v43HL32U+yCX7X2RdaW/YyG1LOX2lSqVShZhOcdNTv+TCVq6YJNfs+0me+sAT4kU8HB3tdKzl+0NDiOvIXADFfH8TBfFkkpkAvG9IPiRCPOmJZCoA+K6RSst0qcQHkkyGpzsQMKGynOsWir7j+1jEnyoAV2goFHbF9+fmyD4v1QegEzK+5MzG9m6vAjDGh1KmpCW++Q/D+ztFbBXBJh/uvvlEjYzfOb/dayrzJw1WUDggoAEAAFAMAJ0BKjAAMAA+PRaKQyIhIRjpnvwgA8S2AGKFyZAHJNaid6cNr+824D9kvQg/TPsAP6f/cvQA9gD0AP1G9Ln2Ff28/aT2tyZnX3z74oasKkLwt3EmOL7X2e2dde4HH/fV083lS3xQPIxAAP7/YBhO//8J3YUi1Zm2P7Dzywm7DLp3VNl96+NofqUrosa/qc6eF6paEPwGv+pla9UUX/6kOXxt0Eg6/dBeAAtJiFG5wiw+EVbnf5z1Y6gixH9IIT51UfCcz1GVC8OIf/8cSrPq6uLql8qoiev/9kyMaI/Wgbx9FLawegY6LAbG1BIi/1WKSR1GK5rLHS/0J1y9MkYjZAQYs+pE3ei//2gtsT+ZcVeG0u9D9ZjWJ5skAM37A79NLkpg067CYvsYfjPRn2rEccnW5p+IS4hBPfNdjFP1iSIq7AFuSInG4tPTqsPC4MlFNQdmE1frTr/xbaW6gxHQSf8x64rf/eOLwWEDbcOgTmQe4l/CHcuy+CHTcy3w82+wDZSXaW7k+aeaf1qqwYZAaOLE/0/trETyLCwPwAAA);
    background-position: 9px 0px;
    background-repeat: no-repeat;
    border: solid 1px #3498db;
    border-radius: 6px;
    line-height: 18px;
    overflow: hidden;
    padding: 15px 60px;
}

p.success {
   -moz-border-radius: 6px;
   -webkit-border-radius: 6px;
   background-color: #C6EFCE;
   background-position: 9px 0px;
   background-repeat: no-repeat;
   border: solid 1px #506100;
   border-radius: 6px;
   line-height: 18px;
   overflow: hidden;
   padding: 15px 30px;
   color: #506100;
}

p.warning {
   -moz-border-radius: 6px;
   -webkit-border-radius: 6px;
   background-color: #FFEB9C;   
   background-position: 9px 0px;
   background-repeat: no-repeat;
   border: solid 1px #9C5700;
   border-radius: 6px;
   line-height: 18px;
   overflow: hidden;
   padding: 15px 30px;
   color: #9C5700;
}

p.error {
   -moz-border-radius: 6px;
   -webkit-border-radius: 6px;
   background-color: #FFC7CE;   
   background-position: 9px 0px;
   background-repeat: no-repeat;
   border: solid 1px #9C0006;
   border-radius: 6px;
   line-height: 18px;
   overflow: hidden;
   padding: 15px 30px;
   color: #9C0006;
}
