body {
  color: #222;
  font-size: 16px;
  background-repeat: repeat;
}
body > .container {
  max-width: 1000px;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 500;
  color: #222;
}
.alert {
  margin-bottom: 10px;
}
.alert-info {
  color: #222;
  border-color: #31b0d5;
  background-color: #d9edf7;
}
.invisible {
  visibility: hidden;
}
.disclaimer {
  color: #727272;
}
.lead {
  margin-bottom: 7px;
}
.alert {
  margin-top: 10px;
}
.unstyled-link {
  color: inherit;
}
.unstyled-link:hover {
  text-decoration: none;
}
/* Sticky footer styles
-------------------------------------------------- */
html {
  position: relative;
  min-height: 100%;
}
body {
  padding-bottom: 150px;
}
.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 10px;
  background: #e6e6e6;
  height: auto;
  overflow: auto;
  font-size: 12px;
}
.footer .sponsors {
  margin-bottom: 10px;
}
.footer .sponsors a.logo {
  float: left;
}
.footer .sponsors img {
  margin-top: 3px;
  margin-right: 10px;
  height: 45px;
}
@media (max-width: 990px) {
  .footer {
    font-size: 10px;
  }
  .footer .sponsors img {
    height: 40px;
    margin-bottom: 5px;
    margin-right: 5px;
  }
}
.form-inline > .form-group {
  vertical-align: top;
}
/* Fix for Django-debug-toolbar bug
-------------------------------------------------- */
#djDebugToolbarHandle {
  top: 30px !important;
}
/* Fix for link-styled buttons - bootstrap doesn't reset padding
--------------------------------------------------------------- */
.btn-link {
  padding: 0;
}
#bubble-chart {
  padding: 20px 0 20px 0;
}
.info-link {
  border-bottom: dotted 1px #337ab7;
  color: #337ab7;
  cursor: help;
}
#extended-info {
  display: none;
}
#price_per_pill .popover,
#ghost_generics .popover {
  width: 200px;
}
#more-text {
  display: none;
}
.bubble-chart-tab a {
  font-weight: bold;
}
.ppu-on-landing-page {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  padding: 0;
}
hr {
  border-top: 1px solid #ddd;
}
.landing-page h3 {
  margin-top: 0;
}
.form-inline > * {
  margin: 5px 3px;
}
.landing-panel {
  padding: 15px;
}
.landing-panel .measure-explanation {
  min-height: 6em;
}
#feedback-button {
  position: fixed;
  cursor: pointer;
  width: auto;
  border: 0;
  font-size: 14px;
  background: #2C2C2C;
  color: #FFFFFF;
  padding: 10px 20px;
  margin: 0;
  z-index: 100;
  bottom: 0;
  right: 5%;
  webkit-border-radius: 5px 5px 0 0;
  moz-border-radius: 5px 5px 0 0;
  border-radius: 5px 5px 0 0;
}
body.embed {
  visibility: hidden;
}
body.embed .show-in-embed {
  visibility: visible;
  position: fixed;
  left: 0;
  top: 0;
}
.footer-logos {
  display: flex;
  gap: 15px;
  margin: 1rem 0 2rem;
  width: 100%;
}
.footer-logos__bennett {
  height: auto;
  max-height: 50px;
  max-width: 115px;
  width: 100%;
}
.footer-logos__nuffield {
  height: auto;
  max-height: 50px;
  max-width: 123px;
  width: 100%;
}
.footer-logos__oxford {
  height: auto;
  max-height: 50px;
  max-width: 50px;
  width: 100%;
}
/* Ensure dropdown menu has higher z-index than Mapbox controls.
-------------------------------------------------- */
.dropdown-menu {
  z-index: 1001 !important;
}
#opNav {
  margin-bottom: 10px;
}
#opNav .navbar-brand {
  padding: 2px 0px 2px 8px;
}
#opNav .navbar-brand svg {
  display: flex;
  height: 100%;
  width: auto;
}
#opNav .home .active_home > a,
#opNav .analyse .active_analyse > a,
#opNav .dashboards .active_dashboards > a,
#opNav .trends .active_trends > a,
#opNav .more .active_more > a {
  color: #555;
  background-color: #e7e7e7;
}
.homepage-image {
  margin: 0 10px 10px 0;
  border: 1px solid #ccc;
  float: left;
  width: 200px;
}
.homepage-comingsoon {
  position: relative;
  background-color: #e6e6e6;
  height: 200px;
}
.homepage-comingsoon .message {
  position: absolute;
  top: 90px;
  width: 100%;
  left: 45px;
  color: #ccc;
}
.latest-news-item {
  margin-bottom: 20px;
}
.latest-news-item img {
  display: block;
  width: 200px;
  border-radius: 6px;
}
#alert-form-container {
  display: none;
}
#results {
  display: none;
}
#results #tabs {
  width: 100%;
}
#results #tabs li {
  width: 25%;
}
@media (max-width: 1000px) {
  #results #tabs li a {
    font-size: 12px;
  }
}
#results #tabs li.data-tab {
  text-align: right;
}
#results #tabs li.data-tab a {
  padding-left: 5px;
}
#results #data-panel,
#results #chart-panel {
  padding-top: 20px;
}
#results .tab-pane {
  padding: 0 20px 20px 20px;
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
}
#results .tab-pane .chart-title-wrapper {
  text-align: center;
}
#results .tab-pane .chart-title-wrapper .chart-title {
  font-weight: bold;
  padding-left: 30px;
  padding-right: 30px;
}
#results .tab-pane .chart-title-wrapper .chart-title br {
  display: none;
}
@media (max-width: 1000px) {
  #results .tab-pane .chart-title-wrapper .chart-title br {
    display: inline-block;
    padding-left: 0;
    padding-right: 0;
  }
}
#results .tab-pane .chart-title-wrapper .chart-sub-title {
  font-size: 12px;
  color: #666666;
  font-weight: bold;
}
#results .tab-pane.active {
  background: white;
  min-height: 500px;
}
#results .tab-content > .active,
#results .pill-content > .active {
  height: auto;
  width: auto;
}
.save-url-button {
  display: none;
}
/* Analyse form styles
Responsive styling: http://jsfiddle.net/G58f5/51/
-------------------------------------------------- */
#analyse-options {
  margin-top: 20px;
  margin-bottom: 20px;
}
.form-row {
  display: table;
  width: 100%;
  text-align: left;
  vertical-align: top;
  margin-bottom: 10px;
}
.col {
  display: table-cell;
  vertical-align: top;
  margin-bottom: 5px;
  min-height: 40px;
}
.left {
  width: 170px;
  min-width: 170px;
  margin-left: 0;
  padding-top: 5px;
}
.middle {
  width: 220px;
  min-width: 220px;
}
.right {
  padding-left: 10px;
}
#org-help {
  font-size: 0.8em;
  display: none;
}
.help {
  border-bottom: 1px dotted #000;
  text-decoration: none;
}
@media (max-width: 1000px) {
  .form-row,
  .col {
    display: block;
    width: 100%;
    min-height: 25px;
  }
  .form-row .left {
    width: 100%;
    min-width: 100%;
    font-weight: bold;
    min-height: 30px;
  }
  .form-row .middle {
    width: 100%;
    min-width: 100%;
  }
  .form-row .right {
    border-bottom: 1px dotted #ccc;
    padding-top: 10px;
    padding-left: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
  }
  #update {
    width: 100%;
  }
}
/* Select2 styles */
.select2-container .select2-selection--single {
  height: 36px !important;
  padding-top: 3px;
  padding-left: 3px;
}
.select2-selection__arrow {
  top: 3px !important;
}
li.select2-search--inline {
  min-width: 200px !important;
  max-width: 90% !important;
}
li.select2-search--inline input.select2-search__field {
  min-width: 200px !important;
}
.select2-container--default .select2-results__option[aria-selected=true] {
  color: gray !important;
  background-color: #ebebeb !important;
}
#old-browser {
  display: none;
}
#map-panel {
  padding-bottom: 10px;
  overflow: hidden;
}
#map-title {
  font-size: 16px;
  font-weight: bold;
}
#map-wrapper {
  position: relative;
  width: 100%;
  height: 500px;
  margin-bottom: 10px;
}
#map {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100%;
  border: 1px solid gray;
}
.leaflet-popup-close-button {
  display: none;
}
.leaflet-popup-content-wrapper {
  pointer-events: none;
}
.map-legend {
  max-width: 200px;
}
.map-legend .swatch {
  width: 20px;
  height: 20px;
  float: left;
  margin-right: 10px;
}
.map-legend ul {
  list-style-type: none;
  padding-left: 0;
  margin-top: 10px;
}
.map-legend .legend-header {
  line-height: 1em;
}
path {
  -webkit-transition: fill 200ms;
  transition: fill 200ms;
}
.gradient {
  width: 85%;
  white-space: nowrap;
  position: relative;
  top: 4px;
  padding-bottom: 15px;
}
.gradient .domain-min {
  position: absolute;
  left: 0;
  font-size: 11px;
  bottom: 3px;
}
.gradient .domain-max {
  position: absolute;
  right: 0;
  font-size: 11px;
  bottom: 3px;
}
.gradient .grad-step {
  display: inline-block;
  height: 20px;
  width: 1%;
}
.loading-wrapper {
  display: none;
  text-align: center;
}
.loading-wrapper img.loading {
  -webkit-animation: spin 4s linear infinite;
  -moz-animation: spin 4s linear infinite;
  animation: spin 4s linear infinite;
  margin-bottom: 10px;
}
@-moz-keyframes spin {
  100% {
    -moz-transform: rotate(360deg);
  }
}
@-webkit-keyframes spin {
  100% {
    -webkit-transform: rotate(360deg);
  }
}
@keyframes spin {
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
.select-menu-button::after {
  display: inline-block;
  width: 0;
  height: 0;
  vertical-align: -2px;
  content: "";
  border: 4px solid;
  border-right-color: transparent;
  border-bottom-color: transparent;
  border-left-color: transparent;
}
.save-url-button {
  position: absolute;
  right: 10px;
  margin-top: -35px;
  z-index: 900;
}
.save-url-button .save-url-dropdown {
  padding: 6px 10px 10px;
}
.save-url-button .save-url-dropdown input {
  width: 20em;
}
.chart-container {
  overflow: hidden;
  background: white;
  width: 100%;
}
.chart-container #chart,
.chart-container #summarychart {
  width: 100% !important;
  cursor: pointer;
  float: left;
}
.chart-container #summarychart .highcharts-series-group rect:hover {
  fill: #337ab7;
}
.chart-container .highcharts-container {
  width: 100% !important;
  height: 100% !important;
}
.chart-container .highcharts-attribution {
  float: right;
  font-size: 0.7em;
  margin-top: 0.5em;
  color: gray;
}
.practice-warning {
  float: left;
  font-size: 0.7em;
  margin-top: 0.5em;
  color: gray;
  max-width: 400px;
}
.outliers-toggle {
  font-size: 0.8em;
  color: gray;
  max-width: 100%;
  display: none;
}
#chart-options {
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
  background-color: white;
  padding: 10px 20px;
}
#chart-options #chart-options-wrapper {
  width: 100%;
  box-sizing: border-box;
  padding: 10px;
  min-height: 70px;
  position: relative;
}
#chart-options #chart-options-wrapper #play-slider {
  color: #999;
  float: left;
  cursor: pointer;
  display: none;
}
#chart-options #chart-options-wrapper #items-spending-toggle {
  position: absolute;
  top: 10px;
  right: 0px;
  width: 140px;
}
#chart-options #chart-options-wrapper #slider-wrapper {
  position: absolute;
  width: 100%;
  left: 0px;
  margin-left: 35px;
  padding-right: 205px;
}
#chart-options #chart-options-wrapper #slider-wrapper #chart-date-slider .noUi-pips-horizontal {
  padding: 10px 0 5px 0 !important;
  height: 40px !important;
}
#chart-options #chart-options-wrapper #slider-wrapper #chart-date-slider .noUi-value-horizontal.noUi-value-large {
  font-size: 10px !important;
  padding-top: 10px;
}
#chart-options #chart-options-wrapper #slider-wrapper #chart-date-slider .noUi-marker-horizontal.noUi-marker-large {
  height: 5px !important;
}
#chart-options #chart-options-wrapper #slider-wrapper #chart-date-slider .noUi-marker-horizontal.noUi-marker-medium {
  height: 2px !important;
}
@media (max-width: 1000px) {
  #chart-options #chart-options-wrapper #slider-wrapper {
    padding-right: 35px;
  }
  #chart-options #chart-options-wrapper #items-spending-toggle {
    top: 70px;
  }
}
@media (max-width: 1000px) {
  #chart-options {
    padding-bottom: 40px;
  }
}
/* Map and CCG pages */
#summary {
  margin-top: 20px;
}
#map-ccg {
  height: 300px;
  width: 100%;
  border: 1px solid gray;
}
/* List pages */
#search {
  margin-bottom: 10px;
  width: 60%;
  max-width: 400px;
  min-width: 350px;
}
#no-data {
  display: none;
  clear: both;
}
#trends {
  display: none;
  clear: both;
  margin-bottom: 70px;
}
#trends h3 {
  float: left;
}
#trends #graphtype {
  float: left;
  margin-left: 10px;
  margin-top: 15px;
}
#trends .chart {
  width: 100%;
  height: 400px;
  margin-bottom: 20px;
  vertical-align: middle;
  text-align: center;
}
#trends .chart .status {
  padding-top: 160px;
}
.highcharts-contextmenu hr {
  margin: 5px 0;
}
#overlay {
  background: rgba(0, 0, 0, 0.3);
  display: none;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 99998;
}
.expose {
  background-color: red;
  position: relative;
}
#dashboard .panel p {
  font-size: 12px;
}
#dashboard .chart {
  height: 300px;
  margin-bottom: 10px;
}
#map-measure {
  height: 150px;
  width: 150px;
  -webkit-clip-path: circle(50% at 50% 50%);
  clip-path: circle(50% at 50% 50%);
}
#map-measure small {
  font-size: 0.6px;
}
#measures {
  font-size: 12px;
  margin-top: 20px;
  clear: both;
}
#measures .descriptive {
  margin-bottom: 10px;
}
#measures .loading-wrapper {
  display: block;
  height: 386px;
}
#measures .loading-wrapper .loading {
  padding-bottom: 10px;
}
#measures .panel {
  white-space: nowrap;
  overflow: hidden;
}
#measures .panel .panel-heading {
  white-space: normal;
}
#measures .panel .panel-body {
  padding: 5px;
}
#measures .panel .panel-body .inner,
#measures .panel .panel-body .measure-description {
  padding: 10px;
  overflow: auto;
  white-space: normal;
}
#measures .panel .measure-description {
  font-style: italic;
  margin-bottom: 0px;
  padding-bottom: 0px;
  text-align: center;
}
#measures .panel .explanation {
  margin: 5px 10px 10px 10px;
  white-space: normal;
  min-height: 3.5em;
}
#measures .panel .explanation ul {
  padding-left: 20px;
}
#measures .panel .explanation ul li {
  color: #337ab7;
}
#measures .panel .chart {
  margin-top: 5px;
  margin-bottom: 10px;
  min-height: 200px;
}
#measures .row.display-flex {
  display: flex;
  flex-wrap: wrap;
}
#measures .row.display-flex > [class*='col-'] {
  display: flex;
  flex-direction: column;
}
