#q-graph {
  display: block;
  /* fixes layout wonkiness in FF1.5 */
  position: relative;
  width: 450px;
  height: 320px;
  padding: 0;
  background: transparent;
  font-size: 14px;
  margin-bottom: 3rem;
}

#q-graph caption {
  caption-side: top;
  width: 450px;
  position: relative;
  text-align: center;
  top: -8px;
  z-index: 10;
}

#q-graph tr, #q-graph th, #q-graph td {
  position: absolute;
  bottom: 0;
  width: 150px;
  z-index: 2;
  margin: 0;
  padding: 0;
  text-align: center;
}

#q-graph td {
  transition: all .3s ease;
}

#q-graph td:first-of-type {
  left: 15px;
}

#q-graph thead tr {
  left: 100%;
  top: 50%;
  bottom: auto;
  margin: -2.5em 0 0 5em;
}

#q-graph thead th {
  width: 7.5em;
  height: auto;
  padding: 0.5em 1em;
}

#q-graph thead th.sent {
  top: 0;
  left: 0;
  line-height: 2;
}

#q-graph thead th.paid {
  top: 2.75em;
  line-height: 2;
  left: 0;
}

#q-graph tbody tr {
  height: 260px;
  padding-top: 2px;
  border-right: 1px dotted #c6cdd0;
  color: #212628;
}

#q-graph #q1 {
  left: 0;
}

#q-graph #q2 {
  left: 150px;
}

#q-graph #q3 {
  left: 300px;
}

#q-graph #q4 {
  left: 450px;
  border-right: none;
}

#q-graph tbody th {
  bottom: -1.75em;
  vertical-align: top;
  font-weight: normal;
  color: #333;
}

#q-graph .bar {
  width: 120px;
  border: 1px solid #c6cdd0;
  border-bottom: none;
  color: #212628;
}

#q-graph .bar p {
  color: #212628;
  font-size: 20px;
  font-weight: 600;
  margin: -3rem 0 0 0;
  padding: 0;
}

#q-graph .sent {
  left: 13px;
  background-color: #56656A;
  border-color: transparent;
}

#q-graph .paid {
  background-color: #008DC1;
  border-color: transparent;
}

#ticks {
  position: absolute;
  top: 80px;
  width: 450px;
  height: 300px;
  z-index: 1;
  font-size: 11px;
}

#ticks .tick {
  position: relative;
  border-bottom: 1px dotted #c6cdd0;
  width: 450px;
}

#ticks .tick p {
  position: absolute;
  margin: 0 0 0 -3em;
  text-align: justify;
  top: 10px;
}
