/* Event and user photos */

.event-photo-box, .user-photo-box {
  display: inline-block;
  margin: 0 8px 8px 0;
  vertical-align: top;
}

.event-photo, .user-photo {
  position: relative;
  border: 1px solid #ccc;
  margin-bottom: 4px;
  width: 200px;
  height: 150px;
  overflow: hidden;
  cursor: pointer;
}

.event-photo img, .user-photo img {
  min-width: 200px;
  min-height: 150px;
  z-index: 1;
}

.event-photo .glyphicon, .user-photo .glyphicon {
  position: absolute;
  left: 174px;
  top: 6px;
  padding: 2px;
  color: #fff;
  cursor: pointer;
  background-color: #999;
  z-index: 100;
}

.event-photo .glyphicon-star {
  color: #ff3;
}

.event-photo-caption, .user-photo-caption {
  font-size: 85%;
  max-width: 200px;
}

/* Materials */

img.material-photo {
  max-height: 60px;
  max-width: 60px;
}

td.material-photo, th.material-photo {
  width: 68px;
}

/* Calendar view */

.fc-content {
  padding: 4px 2px; /* Override padding to make the box bigger */
}

#legend {
  margin: 6px 0;
}

#legend div {
  display: inline-block;
  padding: 4px;
  margin-right: 4px;
  border-radius: 4px;
  font-size: 85%;
  cursor: pointer;
}

/* Metric bar (thermometer) */

.metric-bar {
  display: block;
  margin: 0 10px 10px 0;
  text-align: left;
}

.metric-bar h1 {
  font-size: 100%;
  border-bottom: none;
  padding-right: 6px;
  margin: 0;
  display: inline-block;
  width: 20%;
}

.metric-bar h2 {
  font-size: 100%;
  font-weight: bold;
  margin: 0;
  border-bottom: none;
  display: inline;
}

.metric-bar h2.dark {
  color: #333;
}

.metric-bar h2.light {
  color: #fff;
}

.metric-bar h3 {
  font-size: 85%;
  border-bottom: none;
  padding-left: 6px;
  margin: 0;
  display: inline-block;
  width: 20%;
}

.metric-bar .thermometer {
  display: inline-block;
  padding: 0;
  border: 1px solid #ccc;
  border-radius: 4px;
  height: 24px;
  vertical-align: middle;
  width: 60%;
}

.metric-bar .thermometer div {
  display:inline-block;
  border-radius: 4px;
  padding-left: 6px;
  padding-top: 3px;
  height: 22px;
  vertical-align: middle;
}

/* Metric box */

.metric-box {
  display: inline-block;
  padding: 10px;
  margin: 0 10px 10px 0;
  width: 180px;
  height: 140px;
  border-radius: 6px;
  text-align: right;
  z-index: -1;
}

.metric-box.dark {
  color: #333;
}

.metric-box.light {
  color: #fff;
}

.metric-box h1 {
  font-size: 400%;
  border-bottom: none;
  z-index: 1;
  height: 60px;
}

.metric-box h1.small {
  font-size: 300%;
}

.metric-box h1.tiny {
  font-size: 240%;
}

.metric-box h2 {
  font-size: 100%;
  border-bottom: none;
  z-index: 1;
}

.metric-box span {
  display: block;
  float: right;
  font-size: 100px;
  color: rgba(1, 1, 1, 0.1);
  left: -60px;
  top: -100px;
  z-index: 0;
}
