/* report output screens */
body.page-reports h1#page-title,
body.page-mqis-reports-measure h1#page-title,
body.page-mqis-reports-custom h1#page-title,
.mqis-report h1.page__title {
  font-size: 1.8em;
  padding: 5px 0 5px;
  font-weight: normal;
}
body.page-reports-custom-list h1#page-title {
  font-size: 2em;
}
.mqis-report legend {
  height: 1em; /* otherwise not visible on Chrome */
}
.mqis-report h2 {
  color: #6699cc;
}
.mqis-report div.measure-description {
  font-size: 1em;
  font-style: italic;
  color: grey;
}
.mqis-report .hidden-column,
.mqis-report h2.measure-details-title {
  display: none;
}
.mqis-report .date-range-column {
  min-width: 185px;
}
.mqis-report .data-submitter {
  width: 335px;
}
details {
  border: 1px solid #c0c0c0;
  margin: 0 2px;
  padding: 0.5em 0.625em 1em;
}
.mqis-report details,
.mqis-report fieldset {
  width: calc(100% + 2px);
  margin: 0px !important;
}
.mqis-report-fieldsets details,
.mqis-report-fieldsets fieldset {
  padding: 1em 1em 1em 0;
  border: 1px dotted lightgray;
  margin-left: 0;
}
.mqis-report-fieldsets .fieldset-wrapper > p:first-of-type {
  margin-top: 0;
}
.mqis-report-fieldsets .fieldset-wrapper > p:last-of-type {
  margin-bottom: 0;
}
.mqis-report-fieldsets fieldset:not(.collapsed) {
  margin-bottom: 10px;
}
.mqis-report-fieldsets fieldset div.fieldset-wrapper {
  padding-left: 15px;
}
div.mqis-report .mqis-report-fieldsets .collapsible .fieldset-legend {
  background-position: 0 50%;
}
.mqis-report fieldset div.fieldset-wrapper h2 {
  line-height: 1em;
}
.mqis-report-item {
  padding: 5px 0px;
  border-bottom: 1px dotted lightgray;
}
.mqis-report-html p {
  margin: 0px;
  display: inline;
}
.mqis-report-label {
  font-weight: bold;
  padding-right: 7px;
}
.mqis-report div.header-links {
  text-align: right;
}
.mqis-report div.header-links-left {
  float: left;
  margin-top: 3px;
}
.mqis-report div.mqis-graphs {
  text-align: center;
  background: white;
  border: 1px solid #c0c0c0;
  width: calc(100% + 2px);
}
.mqis-report div.mqis-graph {
  display: inline-block;
  vertical-align: top;
}
.mqis-report div.plotly-graph {
  display: inline-block;
  min-height: 600px;
}
.mqis-report img.plotly-graph-img {
  display: none;
}
.mqis-report img.plotly-graph-img.trend-img {
  width: 65%;
}
.mqis-report img.plotly-graph-img.comp-img {
  width: 30%;
}
.mqis-report div.denom-graph,
.mqis-report div.comp-graph {
  float: right;
  margin-right: 20px;
}
.mqis-report div.numer-graph,
.mqis-report div.denom-graph {
  width: 45% !important;
  display: inline-block !important;
}
.mqis-report div.plotly-graph .legendtext {
  cursor: default;
}
.mqis-report div.plotly-graph.trend-graph {
  width: 65%;
}
.mqis-report div.plotly-graph.comp-graph {
  width: 30%;
}
.mqis-report div.plotly-graph p {
  margin-top: 1em;
}
.plotly .hoverlayer .hovertext .name {
  fill: black !important;
}
.plotly .hoverlayer .hovertext rect {
  fill: white !important;
  fill-opacity: 1 !important;
}
table.table caption,
.mqis-report caption {
  caption-side: top;
  text-align: left;
  font-weight: bold;
  padding-left: 5px;
}
.mqis-report caption span.normal {
  font-weight: normal;
}
.mqis-report .small-italic {
  font-size: 0.85em;
  font-style: italic;
}
.mqis-report #close-results,
.mqis-report #close-options {
  float: right;
  cursor: pointer;
  height: 0;
  padding-right: 5px;
}
.mqis-report .click-info {
  position: absolute;
  left: 0; /* set by jQuery */
  top: 0; /* set by jQuery */
  width: 200px;
  background-color: yellow;
  border: 1px solid gray;
  padding: 5px;
  display: none;
}
.mqis-report .data-qualifier-notes {
  text-align: left;
  font-size: 0.85em;
  font-style: italic;
  padding: 0px 15px;
}
.mqis-report .data-qualifier-notes ul {
  margin: 0;
}

/* quality profile report */
div.mqis-profile-report div.mqis-graphs {
  border: 0px;
}
div.mqis-profile-report p {
  font-family: Helvetica, Arial, sans-serif;
}
img.state-seal {
  width: 180px;
  height: 180px;
  float: right;
  padding-bottom: 10px;
}
div.qp-title-section {
  border-bottom: thick solid #1f497d;
}
h1.qp-title {
  font-family: "Times New Roman", Times, serif;
  font-size: 4em;
  font-weight: normal;
  color: #1f497d;
  line-height: 1.2em;
  border-bottom: 0;
}
h2.qp-subtitle {
  font-family: "Times New Roman", Times, serif;
  color: #4f81bd;
  text-align: right;
  line-height: 1em;
  margin-top: 0.5em;
}
h2.qp-chapter-title {
  font-family: "Times New Roman", Times, serif;
  font-weight: bold;
  line-height: 1.5em;
  color: #1f497d;
  background-color: #caf8f8;
  border-top: 2px solid #1f497d;
  border-bottom: 2px solid #1f497d;
  text-align: center;
}
h3.qp-section-title {
  font-family: "Times New Roman", Times, serif;
  color: #4f81bd;
  border-bottom: 1px solid #4f81bd;
  letter-spacing: initial;
  font-style: italic;
  text-transform: initial;
}
h4.qp-figure-title {
}
p.qp-mission,
p.qp-footer {
  font-size: 0.9em;
  font-style: italic;
}
p.qp-mission {
  text-align: center;
}

.alignleft {
  text-align: left;
}
.alignright {
  text-align: right;
}

.not-displayed {
  display: none;
}

#progress-overlay {
  background-color: white;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  opacity: 1; /* also -moz-opacity, etc. */
  z-index: 10;
}
#progress-overlay #progress-container {
  height: 100px;
  background-color: white;
  margin-top: 220px;
  padding: 1px 10px 10px;
}
body.page-mqis #progress-overlay #progress-container {
  margin-top: 300px; /* avoid collision with dashboard menu */
}

/* rgraph legends */
div.numerlegend,
div.denomlegend,
div.complegend,
div.trendlegend {
  width: 100%;
  margin-top: 0px;
  text-align: left;
  background-color: white;
}
div.numerlegend table.rgraph_key td,
div.denomlegend table.rgraph_key td {
  max-width: 400px;
}
div.complegend table.rgraph_key td {
  max-width: 300px;
}
div.trendlegend table.rgraph_key td {
  max-width: 660px;
}
table.rgraph_key {
  text-align: left;
  line-height: 1em;
}
table.rgraph_key,
table.rgraph_key tr {
  border: 0;
}
table.rgraph_key td {
  text-align: left !important;
  background-color: white;
  padding: 0;
  border: 0;
}
table.rgraph_key tr td:first-child {
  width: 1px; /* lest IE9 make the color swatch column too wide */
}
span.nowrap {
  white-space: nowrap;
}
.rgraph_key_label {
  font-size: 1em;
  line-height: 1em;
  vertical-align: top;
}
.rgraph_comp_key_label {
  font-size: 0.9em;
  line-height: 1em;
  vertical-align: top;
}
.rgraph_key_blob {
  border: 1px solid black;
  width: 10px !important;
  height: 10px !important;
  margin-left: 50px;
}
.rgraph_key_no_blob {
  margin-left: 50px;
  margin-top: 10px;
  width: calc(100% + 50px);
  min-width: 415px;
  font-style: italic;
}
@media screen and (max-width: 1144px) {
  .comp-graph {
    margin-top: 40px;
  }
}
div.report-footer {
  margin: 30px 0px 10px;
  font-size: 0.85em;
  font-style: italic;
}
div.report-footer h3 {
  margin-top: 2em;
}
div.report-footer h3::before {
  display: block;
  content: " ";
  margin-top: -175px;
  padding-top: 175px;
  visibility: hidden;
}
div.report-footer span.normal {
  font-size: 1.2em;
  font-style: normal;
}
div.report-footer ul {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* pdf download - wait and results */
div.download-info,
div.enhanced-info {
  display: none;
  width: 100%;
  border: solid 1px grey;
  background: white;
  margin: auto;
  text-align: center;
  margin-bottom: 10px;
}
div.enhanced-info {
  text-align: left;
}
div.enhanced-info form {
  padding: 10px;
}

/* enhanced options (customize) form */
div.org-wrapper {
  float: left;
  display: inline-block;
  width: 33%;
  vertical-align: top;
  margin-right: 5px;
}
div.measure-wrapper {
  float: left;
  display: inline-block;
  width: 66%;
  vertical-align: top;
}
div.form-item-aggregated-subgroups label {
  font-weight: normal;
}
div.splitbox {
  float: right;
  color: #3885bd;
}
div.splitbox > div.form-item {
  margin: 0px;
}
div.customization-note {
  display: none;
}

/* profile and summary report forms */
#mqis-reports-profile-report-form input.add-chapter,
#mqis-reports-profile-report-form input.add-section,
#mqis-reports-profile-report-form input.add-figure,
#mqis-reports-summary-report-form input.add-topic,
#mqis-reports-profile-report-form input.save-report,
#mqis-reports-summary-report-form input.save-report {
  margin-bottom: 1em;
}
#mqis-reports-profile-report-form fieldset,
#mqis-reports-summary-report-form fieldset {
  margin-top: 1em;
}
.sortable-text {
  display: inline-flex;
  display: -webkit-inline-flex; /* Safari */
  width: 78%;
}
.sortable-edit-link {
  display: inline-block;
  margin-right: 0;
  margin-top: 2px;
}
#mqis-reports-chapter-form li,
#mqis-reports-section-form li,
#mqis-reports-figure-form li,
#mqis-reports-profile-report-form li,
#mqis-reports-summary-report-form li {
  background-color: white;
}
span.edit-links {
  display: inline;
}
li.deleted {
  background-color: lightgrey;
}
li.deleted span.edit-links {
  display: none;
}

/* custom report forms */
#mqis-reports-custom-report-form h2.subtitle,
#mqis-reports-custom-edit-form h2.subtitle {
  margin-top: 0;
}
div#edit-publish-statuses .form-group {
  margin-bottom: 0;
}
#mqis-reports-outliers-report-form .filter-form-item label.option,
div#edit-publish-statuses label.option {
  display: inline;
}
#mqis-reports-trends-report-form .filter-form-item,
#mqis-reports-outliers-report-form .filter-form-item,
#mqis-reports-custom-report-form .filter-form-item,
#mqis-reports-custom-edit-form .filter-form-item,
#mqis-reports-measure-options-form .filter-form-item,
#mqis-measure-report-select-form .filter-form-item,
#mqis-reports-figure-form .filter-form-item {
  float: left;
  display: inline-block !important;
  padding-right: 30px;
}
#mqis-reports-figure-form #data-table-cols {
  margin-bottom: 1em;
}
#mqis-reports-outliers-report-form .form-item-min-date-date label,
#mqis-reports-custom-report-form .form-item-min-date-date label,
#mqis-reports-custom-edit-form .form-item-min-date-date label,
#mqis-reports-measure-options-form .form-item-min-date-date label,
#mqis-reports-measure-options-form .form-item-max-date-date label,
#mqis-reports-figure-form
  .form-item-chapter-form-form-section-form-form-figure-form-form-date-range-min-date-date
  label {
  display: none;
}
#mqis-reports-outliers-report-form .form-item-max-date-date label,
#mqis-reports-custom-report-form .form-item-max-date-date label,
#mqis-reports-custom-edit-form .form-item-max-date-date label,
#mqis-reports-figure-form
  .form-item-chapter-form-form-section-form-form-figure-form-form-date-range-max-date-date
  label {
  visibility: hidden;
}
#mqis-reports-custom-report-form div.form-item-last-period,
#mqis-reports-custom-edit-form div.form-item-last-period,
#mqis-reports-measure-options-form div.form-item-last-period,
#mqis-reports-figure-form
  .form-item-chapter-form-form-section-form-form-figure-form-form-date-range-last-period,
#mqis-reports-custom-report-form div.form-item-aggregated,
#mqis-reports-custom-edit-form div.form-item-aggregated {
  margin-top: 0px;
}
#mqis-reports-measure-options-form .form-item-time-periods {
  margin-bottom: 0.5em;
}
#mqis-reports-measure-options-form #custom-time-periods .filter-form-item {
  padding-right: 5px;
}
#mqis-reports-measure-options-form #cancel-options {
  padding-left: 10px;
}
fieldset#affected-measures,
details#edit-attributes-container {
  margin-top: 1.5em;
  min-width: 1050px;
  display: block !important;
}
details#edit-attributes-container:not(.collapsed) {
  margin-bottom: 1.5em;
}
details#edit-attributes-container div.container-inline {
  margin-bottom: 1.5em;
}
details#edit-attributes-container div.checkbox-column {
  display: inline-block;
  width: 32%;
  vertical-align: top;
  padding: 0px 5px;
}
#mqis-reports-figure-form
  div.form-item-chapter-form-form-section-form-form-figure-form-form-attributes-container-uncategorized,
#mqis-reports-custom-report-form div.form-item-uncategorized,
#mqis-reports-custom-edit-form div.form-item-uncategorized {
  display: inline-block;
  width: 55%;
  padding-left: 15px;
}
div.edit-measures {
  margin-bottom: 3px;
}

input[type="radio"] + label,
input[type="checkbox"] + label {
  display: inline-block;
}

input[type="checkbox"][disabled] + label {
  color: #ccc;
}

#mqis-reports-figure-form #time-periods .form-item,
.form-checkboxes .form-item {
  margin-bottom: 0;
}

details#edit-attributes-container label.option {
  display: inline-block;
  width: calc(100% - 30px);
  vertical-align: top;
  padding-top: 0;
}
#mqis-measure-report-select-form .form-type-radio label.option {
  vertical-align: top;
}
#mqis-measure-report-select-form input[type="radio"],
details#edit-attributes-container input[type="checkbox"] {
  vertical-align: text-top;
}
details#edit-attributes-container .form-item-uncategorized label.option {
  width: unset;
  vertical-align: middle;
}
#mqis-reports-custom-report-form div.form-item-attributes,
#mqis-reports-custom-edit-form div.form-item-attributes {
  margin-bottom: 0px; /* we're inside a fieldset */
}
#mqis-reports-measure-options-form div.edit-measures,
#mqis-reports-custom-report-form div#edit-measures,
#mqis-reports-custom-edit-form div#edit-measures,
#mqis-reports-measure-options-form div#edit-measures,
#mqis-reports-figure-form div#edit-measures {
  width: 99%;
  max-height: 200px;
  overflow: auto;
  padding: 10px;
  border: 1px solid lightgrey;
}
#mqis-reports-figure-form div#edit-measures,
#mqis-reports-custom-report-form div#edit-measures,
#mqis-reports-custom-edit-form div#edit-measures {
  max-height: 400px;
}
#mqis-reports-figure-form div#org-picklist,
#mqis-reports-measure-options-form div.org-picklist {
  margin-bottom: 1em;
}

#mqis-reports-measure-options-form div.edit-measures,
#mqis-reports-measure-options-form div#edit-measures {
  width: auto;
  max-height: initial;
}
#edit-periods-form-item,
#edit-subgroups-form-item {
  min-width: 300px;
  width: 30%;
}
div#edit-graph-options input[value="confidence"],
div#edit-graph-options input[value="submitted_data"],
div#edit-graph-options input[value="comparator_data"] {
  margin-left: 20px;
}
span.option-name {
  width: 230px;
  display: inline-block;
}
span.option-desc {
  color: gray;
}

/* radio button padding on saved report form */
div.form-type-radio label.option {
  padding-right: 10px;
}

/* ajax throbber as overlay */
.ajax-progress-throbber {
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
}
.ajax-progress-throbber .message {
  display: none;
}
.ajax-progress-throbber .throbber {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 25px;
  height: 25px;
  margin: -12px 0 0 -12px;
  background-color: #fff;
  background-position: center center;
  -khtml-box-shadow: 0px 0px 5px 6px rgba(0, 0, 0, 0.1);
  -moz-box-shadow: 0px 0px 5px 6px rgba(0, 0, 0, 0.1);
  -webkit-box-shadow: 0px 0px 5px 6px rgba(0, 0, 0, 0.1);
  box-shadow: 0px 0px 5px 6px rgba(0, 0, 0, 0.1);
  -khtml-border-radius: 5px;
  -moz-border-radius: 5px;
  -webkit-border-radius: 5px;
  border-radius: 5px;
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";
  filter: alpha(opacity=80);
  -moz-opacity: 0.8;
  -khtml-opacity: 0.8;
  opacity: 0.8;
}

/* copied from themes/mqis_zen/css/components/misc.css */
/*****
html.js .collapsible .fieldset-legend {
  background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHAQMAAAD+nMWQAAAABlBMVEX///8AAABVwtN+AAAAAXRSTlMAQObYZgAAABJJREFUeJxj+MdQw2DBIMAABgAUsAHD3c3BpwAAAABJRU5ErkJggg==');
  *background-image: url('../../images/menu-expanded.png');
  background-position: 5px 65%;
  background-repeat: no-repeat;
  padding-left: 15px;
}
html.js .collapsed .fieldset-legend {
  background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHAQMAAAD+nMWQAAAABlBMVEX///8AAABVwtN+AAAAAXRSTlMAQObYZgAAABFJREFUCB1jVmCGQClmEWYOAAZ8AMy3HPLXAAAAAElFTkSuQmCC');
  *background-image: url('../../images/menu-collapsed.png');
  background-position: 5px 50%;
}
*****/

#chapter-list,
#section-list,
#figure-list,
#topic-list {
  margin-top: 5px;
  margin-bottom: 5px;
}
ul#sortable-topics li,
ul#sortable-measures li,
ul#sortable-chapters li,
ul#sortable-sections li,
ul#sortable-figures li {
  border: 1px solid #b5b5b5;
  padding: 5px;
  cursor: pointer;
  margin: 5px 0px 0px 10px;
  list-style: none;
  background: #fff;
  border-radius: 3px;
}
#sortable-topics,
#sortable-measures,
#sortable-chapters,
#sortable-sections,
#sortable-figures {
  list-style-type: none;
  margin: 0;
  padding: 0;
  width: 60%;
}
#sortable-topics li span,
#sortable-measures li span,
#sortable-chapters li span,
#sortable-sections li span,
#sortable-figures li span {
  display: inline-block;
  margin-left: 0;
  margin-right: 5px;
}
#sortable-topics .ui-icon-arrowthick-2-n-s,
#sortable-measures .ui-icon-arrowthick-2-n-s,
#sortable-chapters .ui-icon-arrowthick-2-n-s,
#sortable-sections .ui-icon-arrowthick-2-n-s,
#sortable-figures .ui-icon-arrowthick-2-n-s {
  background-position: -128px -46px;
}

span.hide-show-submeasures {
  cursor: pointer;
  font-weight: normal;
  font-style: italic;
  text-transform: none;
}

ul.two-column,
ul.four-column {
  width: 45%;
  float: left;
  list-style-type: none;
  padding-left: 0px;
  margin-left: 25px;
}

ul.two-column li,
ul.four-column li {
  margin-bottom: 10px;
}

ul.two-column.first,
ul.four-column.first {
  margin-left: 0px;
}

ul.four-column {
  width: 20%;
}

#list-page hr {
  margin: 0;
}

#list-page h2 {
  margin-bottom: 0;
}

#list-page h3 {
  margin-bottom: 5px;
}


#homepage-report-widgets .even {
  margin-right: 30px;
}

#homepage-report-widgets .field-items .odd {
  margin-right: 0;
}

.mqis_reports_homepage {
  width: 32%;
  display: inline-block;
  margin-bottom: 40px;
}

.mqis_reports_homepage a.arrow-link {
  color: #ffffff;
  background: url("../../../themes/mqis_zen/images/custom/arrow-small.png")
    no-repeat center;
  width: 107px;
  height: 23px;
  display: block;
  line-height: 23px;
  font-size: 0.9em;
  text-indent: 5px;
}

.mqis_reports_homepage a.arrow-link:hover {
  text-decoration: underline;
  color: #fff;
}

.mqis_reports_homepage img {
  max-width: 100%;
  /*height: 200px;*/
  border: 2px solid #a8a8a8;
}

.mqis_reports_homepage h2 {
  margin: 5px 0;
  line-height: 1.35em;
}

.mqis_reports_homepage p {
  margin-top: 2px;
}

.jump-list a {
  font-weight: bold;
}

#mqis-reports-measure-bulk-edit-form .form-submit {
  margin-top: 0;
}

.table.td-borders th,
.table.td-borders td {
  border: 1px solid #dcdedf;
}

/* upload report */
.table-striped tbody tr:nth-of-type(2n + 1).uploaded-row {
  background-color: #ff9;
}
.table-striped tbody tr:nth-of-type(2n).uploaded-row {
  background-color: #ffb;
}
.table-striped tbody tr:nth-of-type(2n + 1).uploaded-row .active {
  background-color: #ff8;
}
.table-striped tbody tr:nth-of-type(2n).uploaded-row .active {
  background-color: #ffa;
}
.table-striped tbody tr:nth-of-type(2n + 1).uploaded-row.verified {
  background-color: #9f9;
}
.table-striped tbody tr:nth-of-type(2n).uploaded-row.verified {
  background-color: #7f0;
}

#top-scrollbar {
  margin-bottom: 10px;
  overflow-x: scroll;
}
.top-scroll-div {
  width: 100%;
  overflow-x: scroll;
}
.top-scroll-table caption {
  caption-side: top;
  text-align: left;
  padding-left: 5px;
}
