html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  font-size: 100%;
  vertical-align: baseline;
}

html {
  line-height: 1;
}

ol, ul {
  list-style: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

caption, th, td {
  text-align: left;
  font-weight: normal;
  vertical-align: middle;
}

q, blockquote {
  quotes: none;
}
q:before, q:after, blockquote:before, blockquote:after {
  content: "";
  content: none;
}

a img {
  border: none;
}

article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section, summary {
  display: block;
}

/*
 *    Static elements (common for display and report).
 */
html {
  overflow-y: scroll;
}

body {
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #333333;
  background-color: white;
  padding-top: 1em;
}

p {
  /*margin: 0 0 9px;*/
  margin: 0 0 0.5em;
  /* 14x1.286=18px */
}

sub,
sup {
  position: relative;
  font-size: x-small;
  line-height: 0;
  vertical-align: baseline;
}

sup {
  top: -0.5em;
}

sub {
  bottom: -0.25em;
}

img {
  /* Responsive images (ensure images don't scale beyond their parents) */
  max-width: 100%;
  /* Part 1: Set a maxium relative to the parent */
  /*width: auto\9;*/
  /* IE7-8 need help adjusting responsive images */
  height: auto;
  /* Part 2: Scale the height according to the width, otherwise you get stretching */
  vertical-align: middle;
  border: 0;
  -ms-interpolation-mode: bicubic;
}

ul,
ol {
  padding: 0;
  margin: 0 0 0.5em 1.5em;
}

ul ul,
ul ol,
ol ol,
ol ul {
  margin-bottom: 0;
}

table {
  max-width: 100%;
  background-color: transparent;
  border-collapse: collapse;
  border-spacing: 0;
}

/*
 *   Interactive elements (only affects display).
 */
a {
  color: #a04592;
  text-decoration: none;
}

a:hover,
a:active {
  outline: 0;
}

a:hover {
  color: #491762;
  text-decoration: none;
  cursor: pointer;
}

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

a img {
  opacity: 0.7;
}

a:hover img,
a:focus img {
  opacity: 1;
}

button,
input,
select,
textarea {
  margin: 0;
  font-size: 100%;
  vertical-align: middle;
}

button,
input {
  *overflow: visible;
  line-height: normal;
}

button::-moz-focus-inner,
input::-moz-focus-inner {
  padding: 0;
  border: 0;
}

button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
  cursor: pointer;
  -webkit-appearance: button;
}

input[type="search"] {
  -webkit-box-sizing: content-box;
  -moz-box-sizing: content-box;
  box-sizing: content-box;
  -webkit-appearance: textfield;
}

input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

textarea {
  overflow: auto;
  vertical-align: top;
}

form {
  margin: 0 0 1.125em;
}

label,
input,
button,
select,
textarea {
  font-weight: normal;
}

input,
button,
select,
textarea {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

label {
  display: block;
  margin-bottom: 0.5em;
}

select,
textarea,
input[type="text"],
input[type="password"],
input[type="datetime"],
input[type="datetime-local"],
input[type="date"],
input[type="month"],
input[type="time"],
input[type="week"],
input[type="number"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="tel"],
input[type="color"] {
  display: inline-block;
  height: 1.125em;
  padding: 0.25em 0.3em;
  margin-bottom: 0.5em;
  color: #555555;
  -webkit-border-radius: 0.2em;
  -moz-border-radius: 0.2em;
  border-radius: 0.2em;
}

input,
textarea {
  width: 15em;
  /* 206px; */
}

textarea {
  height: auto;
}

textarea,
input[type="text"],
input[type="password"],
input[type="datetime"],
input[type="datetime-local"],
input[type="date"],
input[type="month"],
input[type="time"],
input[type="week"],
input[type="number"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="tel"],
input[type="color"] {
  background-color: white;
  border: 1px solid #cccccc;
  -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
  -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
  -webkit-transition: border linear .2s, box-shadow linear .2s;
  -moz-transition: border linear .2s, box-shadow linear .2s;
  -o-transition: border linear .2s, box-shadow linear .2s;
  transition: border linear .2s, box-shadow linear .2s;
}

textarea:focus,
input[type="text"]:focus,
input[type="password"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="time"]:focus,
input[type="week"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="color"]:focus {
  border-color: rgba(82, 168, 236, 0.8);
  outline: 0;
  outline: thin dotted \9;
  /* IE6-9 */
  -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);
  -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);
}

input[type="radio"],
input[type="checkbox"] {
  margin: 0.25em 0 0;
  /**margin-top: 0;*/
  /* IE7 */
  /*margin-top: 1px \9;*/
  /* IE8-9 */
  line-height: normal;
  cursor: pointer;
}

input[type="file"],
input[type="image"],
input[type="submit"],
input[type="reset"],
input[type="button"],
input[type="radio"],
input[type="checkbox"] {
  width: auto;
}

select,
input[type="file"] {
  height: 2em;
  /* In IE7, the height of the select element cannot be changed by height, only font-size */
  *margin-top: 0.5em;
  /* For IE7, add top margin to align select with labels */
  line-height: 2em;
}

select {
  width: 15em;
  /* 220px; */
  border: 1px solid #cccccc;
  background-color: white;
}

select[multiple],
select[size] {
  height: auto;
}

select:focus,
input[type="file"]:focus,
input[type="radio"]:focus,
input[type="checkbox"]:focus {
  outline: thin dotted #333;
  outline: 5px auto -webkit-focus-ring-color;
  outline-offset: -2px;
}

input:-moz-placeholder,
textarea:-moz-placeholder {
  color: #999999;
}

input:-ms-input-placeholder,
textarea:-ms-input-placeholder {
  color: #999999;
}

input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder {
  color: #999999;
}

input[disabled],
select[disabled],
textarea[disabled],
input[readonly],
select[readonly],
textarea[readonly] {
  cursor: not-allowed;
  background-color: #eeeeee;
}

input[type="radio"][disabled],
input[type="checkbox"][disabled],
input[type="radio"][readonly],
input[type="checkbox"][readonly] {
  background-color: transparent;
}

input:focus:required:invalid,
textarea:focus:required:invalid,
select:focus:required:invalid {
  color: #b94a48;
  border-color: #ee5f5b;
}

input:focus:required:invalid:focus,
textarea:focus:required:invalid:focus,
select:focus:required:invalid:focus {
  border-color: #e9322d;
  -webkit-box-shadow: 0 0 6px #f8b9b7;
  -moz-box-shadow: 0 0 6px #f8b9b7;
  box-shadow: 0 0 6px #f8b9b7;
}

* html {
  font-size: 87.5%;
}

html {
  font-size: 14px;
  line-height: 1.5em;
}

body {
  margin: 0;
  padding: 0;
}
body .dash_container {
  display: none;
}

div.wrapper {
  min-width: 900px;
}

.left {
  float: left;
  width: 48%;
}

.right {
  float: right;
  width: 48%;
}

/*
 * Common header styles
 * --------------------
 */
.page_header_container {
  position: relative;
  background-color: #491762;
  background: url("../images/header_bg.png") repeat-x bottom left;
}
.page_header_container h1 {
  color: white;
  font-weight: normal;
  font-size: 2.0em;
  padding-top: 20px;
  padding-left: 20px;
}
.page_header_container p {
  display: none;
}
.page_header_container .inner {
  height: 65px;
  background: url("../images/graph_bg.png") no-repeat bottom left;
}

body.frontpage .page_header_container {
  text-align: center;
}
body.frontpage .page_header_container .inner {
  height: 185px;
}
body.frontpage .page_header_container h1 {
  padding-top: 30px;
  padding-bottom: 10px;
}
body.frontpage .page_header_container p {
  display: block;
  color: white;
  font-size: 1.0em;
}
body.frontpage .query_container {
  display: none;
}
body.frontpage .dash_container {
  display: block;
}

.otrum_logo {
  height: 11em;
  vertical-align: middle;
  border: none;
  margin: 1em;
}

.page_heading {
  margin-left: 0.5em;
  font-size: 3em;
  font-weight: bold;
}

.color_band_container {
  margin-top: 1em;
  padding-top: 1em;
  padding-bottom: 1em;
}

.logout_link_div {
  text-align: right;
  margin-top: 1em;
  margin-right: 1em;
  font-style: bold;
  font-size: 1em;
  line-height: 100%;
}

.enable_javascript_warning {
  color: #c50149;
}

/*
 * Report heading specific styles
 * ------------------------------
 */
.report_heading_container {
  padding-bottom: 1em;
}

.report_heading_text {
  color: white;
  line-height: 100%;
  font-weight: bold;
  font-size: 3em;
}

.report_sub_heading_text {
  color: white;
  line-height: 100%;
  font-size: 1.5em;
  margin-top: 0.5em;
}

/*
 * Display heading specific styles
 * -------------------------------
 */
/*
 * Menu/toolbar specific styles
 * ----------------------------
 */
.menu_container {
  background-color: #333333;
  padding-top: 7px;
  padding-bottom: 7px;
}
.menu_container .inner {
  border-top: 1px solid #0a0a0a;
  border-bottom: 1px solid #0a0a0a;
  background-color: #1e1e1e;
  /* Generated css gradient shine */
  background-image: linear-gradient(bottom, #1e1e1e 43%, #252525 45%, #222222 100%);
  background-image: -o-linear-gradient(bottom, #1e1e1e 43%, #252525 45%, #222222 100%);
  background-image: -moz-linear-gradient(bottom, #1e1e1e 43%, #252525 45%, #222222 100%);
  background-image: -webkit-linear-gradient(bottom, #1e1e1e 43%, #252525 45%, #222222 100%);
  background-image: -ms-linear-gradient(bottom, #1e1e1e 43%, #252525 45%, #222222 100%);
  background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0.43, #1e1e1e), color-stop(0.45, #252525), color-stop(1, #222222));
}
.menu_container .button {
  display: inline-block;
  position: relative;
  color: white;
  padding: 6px 20px;
  border-left: 1px solid #3a3a3a;
  border-right: 1px solid #0a0a0a;
}
.menu_container .button .state {
  display: block;
  position: absolute;
  bottom: -8px;
  left: -1px;
  width: 100%;
  height: 7px;
  border-left: 1px solid #3a3a3a;
  border-right: 1px solid #0a0a0a;
}
.menu_container .button.active .state {
  height: 5px;
  border-top: 1px solid #006286;
  border-left: 1px solid #004f6d;
  border-right: 1px solid #003d53;
  border-bottom: 1px solid #004f6d;
  background-color: #0099d3;
}
.menu_container .button:hover {
  color: #0099d3;
}
.menu_container .button.firstElement {
  border-left: 1px solid #1e1e1e !important;
}
.menu_container .button.lastElement {
  border-right: 1px solid #1e1e1e !important;
}
.menu_container .button.icon_home {
  background: url("../images/icon_home.png") no-repeat top center;
  background-position: 15px 10px;
  padding: 0 15px;
  width: 18px;
  height: 26px;
}
.menu_container .dropdown {
  padding-left: 20px;
  padding-right: 20px;
  border-right: 1px solid #0a0a0a;
}
.menu_container .dropdown label {
  display: inline-block;
  color: white;
  padding-right: 10px;
}
.menu_container .dropdown select {
  margin-top: 6px;
  font-size: 0.8em;
}
.menu_container .detach {
  float: right;
}

.menu_button {
  margin-left: 0.5em;
  margin-right: 0.5em;
}

.close_button {
  margin-left: 0.5em;
  margin-right: 0.5em;
}

/*
 * Query specific styles
 * --------------------------
 */
.query_container {
  background-color: #f8f8f8;
  border-bottom: 1px solid #e2e2e2;
  padding: 20px 20px 40px 0;
  margin-bottom: 40px;
}
.query_container label {
  position: relative;
  display: inline-block;
  top: -2px;
  padding-left: 20px;
  padding-right: 10px;
}
.query_container .button {
  position: relative;
  top: -2px;
  color: white;
  background-color: #0077ac;
  padding: 5px 10px;
  margin-left: 20px;
  border-radius: 5px;
  -moz-border-radius: 5px;
  -webkit-border-radius: 5px;
}
.query_container .button:hover {
  background-color: #0099d3;
}
.query_container .linkAnchor {
  position: relative;
}
.query_container .links {
  position: absolute;
  bottom: -35px;
  left: 0;
  padding-top: 10px;
  width: 700px;
}
.query_container .links a {
  color: #c4c4c4;
  text-decoration: none;
  padding-right: 20px;
}
.query_container .links a:hover {
  color: #0099d3;
}

/*
 * Dashboard specific styles
 * --------------------------
 */
.dash_container {
  background: url("../images/logo_otrum.png") no-repeat center;
  height: 200px;
}

/*
 * Login specific styles
 * --------------------------
 */
.login_container {
  margin: 15% auto 0 auto;
  width: 472px;
  padding: 20px;
  border: 1px solid #e2e2e2;
  background-color: #f8f8f8;
  text-align: center;
}
.login_container h1 {
  color: #491762;
  font-weight: normal;
  font-size: 2.0em;
  padding-bottom: 30px;
}
.login_container .user {
  padding-bottom: 10px;
}
.login_container .password {
  padding-bottom: 20px;
}
.login_container label {
  position: relative;
  display: inline-block;
  top: -2px;
  padding-right: 10px;
}
.login_container .button {
  position: relative;
  top: -2px;
  color: white;
  background-color: #0077ac;
  padding: 5px 20px;
  margin-left: 20px;
  border-radius: 5px;
  -moz-border-radius: 5px;
  -webkit-border-radius: 5px;
  border: none;
}
.login_container .button:hover {
  background-color: #0099d3;
}
.login_container .login_form {
  margin: 0;
}

.login_failed_container {
  width: 472px;
  margin: 0 auto;
  padding: 10px 20px 5px 20px;
  border: 1px solid #e2e2e2;
  border-top: none;
  background-color: #f1f1f1;
  color: #666;
  text-align: center;
}
.login_failed_container .focus {
  font-weight: bold;
}

.login_links_container {
  width: 512px;
  margin: 5px auto 10px auto;
}
.login_links_container .copyright {
  float: right;
  font-size: 1.0em;
  color: #c4c4c4;
}

.login_form_table {
  margin: 0 auto;
  width: 1em;
  border: 0;
}

.login_form_heading_td {
  vertical-align: middle;
  font-size: 1.25em;
  font-weight: bold;
  padding-right: 0.5em;
  border-right: #ffffff solid thin;
}

.login_form_input {
  padding-left: 0.7em;
}

.login_form_button_td {
  text-align: right;
  padding-top: 0.7em;
}

.fail_message {
  color: #491762;
  font-style: italic;
  font-weight: bold;
}

/*
 * Common, generic styles
 * ----------------------
 */
h1 {
  font-family: inherit;
  font-weight: bold;
  color: inherit;
  text-rendering: optimizelegibility;
  font-size: x-large;
}

h2 {
  font-family: inherit;
  font-weight: bold;
  color: inherit;
  text-rendering: optimizelegibility;
  font-size: large;
  margin: 1em 0;
  /* 18x1=18px */
}

.clear_div {
  clear: both;
}

/*
 * Views / Charts
 */
.view_container {
  max-width: 1000px;
  padding: 0px 50px 0px 50px;
  margin: 0 auto;
  text-align: center;
}

.chart_area {
  margin-bottom: 2em;
}

.table_area {
  margin-top: 1em;
  margin-bottom: 4em;
}

.chart_heading {
  font-family: inherit;
  font-weight: bold;
  color: inherit;
  text-rendering: optimizelegibility;
  font-size: x-large;
  line-height: 1.636em;
  /* 16x1.636=36px */
}

.chart_sub_heading {
  font-family: inherit;
  font-weight: bold;
  color: inherit;
  text-rendering: optimizelegibility;
  font-size: large;
  line-height: 1.375em;
}

.chart_filter {
  padding-left: 20px;
  padding-right: 20px;
}
.chart_filter label {
  display: inline-block;
  padding-right: 10px;
}
.chart_filter select {
  margin-top: 6px;
  font-size: 0.8em;
}

.chart_download_link {
  /* div element */
  font-style: italic;
  text-align: right;
}

.chart_download_link_icon {
  width: 3em;
  height: 3em;
  padding-left: 0.5em;
}

.chart_xaxis_tick_label {
  /* class name applied by nv.d3 lib */
}

.chart_yaxis_tick_label {
  /* class name applied by nv.d3 and d3 libs */
}

.chart_tooltip_heading {
  /* class name applied by nv.d3 lib */
  font-family: inherit;
  font-weight: bold;
  color: inherit;
  text-rendering: optimizelegibility;
  font-size: medium;
}

.chart_tooltip_text {
  /* class name applied by nv.d3 lib */
  font-size: small;
}

/*
Drill-down view:
* View content container.
* View heading.
* Drill-down table.
** All standard table properties.
** Table heading row/cells & text.
** Table row colors - odd and even rows.
** Table row/cell & text.
*/
.data_view_heading {
  font-family: inherit;
  font-weight: bold;
  color: inherit;
  text-rendering: optimizelegibility;
  text-align: center;
  font-size: x-large;
  line-height: 1.636em;
  /* 16x1.636=36px */
  margin: 1em 0 1em 0;
}

.data_view_no_data_text {
  text-align: center;
  font-size: large;
  font-style: italic;
}

.embedded_view {
  width: 90%;
  background: white;
  box-shadow: 0 0px 8px #000;
  -moz-box-shadow: 0 0px 8px #000;
  -webkit-box-shadow: 0 0px 8px #000;
  border: 2px solid #491762;
  border-bottom-width: 0;
  z-index: 100;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0;
  margin: 0;
  margin-left: auto;
  margin-right: auto;
}

.user_admin_view_button {
  margin-top: 0.5em;
  padding-left: 1em;
  padding-right: 1em;
  float: right;
}

.user_admin_container {
  margin-top: 2em;
}

.user_admin_user_table {
  width: 100%;
}

.user_edit_dialog {
  box-shadow: 0 0px 8px #000;
  -moz-box-shadow: 0 0px 8px #000;
  -webkit-box-shadow: 0 0px 8px #000;
  border: 2px solid #491762;
  z-index: 100;
  position: fixed;
  padding: 2em;
  top: 50%;
  left: 50%;
  height: 400px;
  width: 300px;
  margin-left: -150px;
  margin-top: -200px;
  background-color: white;
}

.user_edit_dialog_button {
  padding-left: 1em;
  padding-right: 1em;
  margin: 0;
}

.chart_detail_content_container {
  margin-top: 0;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
  padding: 0;
  left: 0;
  right: 0;
  overflow: auto;
}

.chart_detail_content {
  padding: 1em;
}

.spacer_for_embedded_view {
  padding: 1.1em;
  margin: 2px;
  margin-bottom: 0;
}

.toolbar:after {
  content: " ";
  display: block;
  height: 0;
  clear: both;
}

.menu_button {
  float: left;
}

.close_button {
  float: right;
}

.drill_down_window {
  padding: 1em;
}

.data_table {
  border-width: 1px;
  border-style: solid;
  border-color: #c4c4c4;
  border-collapse: collapse;
  margin-left: auto;
  margin-right: auto;
}

.data_table_heading_cell {
  border-width: 1px;
  border-style: solid;
  border-color: #c4c4c4;
  border-collapse: collapse;
  font-family: inherit;
  font-weight: bold;
  color: inherit;
  text-rendering: optimizelegibility;
  background-color: #491762;
  color: white;
  text-align: center;
  font-size: large;
  line-height: 1.125em;
  padding: 0.5em;
}

.data_table_row_even {
  background-color: #f2f2f2;
}

.data_table_row_odd {
  background-color: white;
}

tr.data_table_clickable_row:hover {
  background-color: #ba5eac;
  color: whitesmoke;
}

.data_table_cell {
  border-width: 1px;
  border-style: solid;
  border-color: #c4c4c4;
  border-collapse: collapse;
  font-size: 1rem;
  padding: 0.5em;
}

.dash_container {
  padding-top: 15px;
  color: #999;
  text-align: center;
}
.dash_container .data_table {
  text-align: left;
  border: none;
}
.dash_container .data_table th, .dash_container .data_table td {
  color: #666;
  border: none;
  background-color: white;
  text-align: left;
  padding-top: 2px;
  padding-bottom: 2px;
}
.dash_container .data_table th {
  font-weight: bold;
  font-size: 1.0em;
  border-bottom: 1px solid #e2e2e2;
}

