/*
 - Forms
 - Tabs
 - Popover
 - Pager
 - Firefox specific
 - Media max-width: 480
 */


/********************************
 * Forms
 ********************************/

legend {
  border: 0;
  margin: 0;
  padding-top: 0;
  line-height: 20px;
}

.form-required,
.crm-marker {
  color:red !important;
  font-weight: normal !important;
}

.form-horizontal .control-label {
  text-align: left;
}

.form-horizontal .help-block {
  margin-top: 10px;
  font-size: 15px;
}

.input-prepend .add-on {
  margin-left: 0; /* bootstrap 2.1 bug fix */
}
form .captcha {
  margin-bottom: 10px;
}
.form-horizontal .captcha {
  padding-left: 180px;
}

.form-actions {
  padding: 0;
  margin-top: 0; /*in testing*/
  border: 0;
  background: none;
}


/********************************
 * Tabs
 ********************************/

.tabbable .nav-tabs > li {
  max-width: 159px;
}

.tabbable .nav-tabs > .selected > a,
.tabbable .nav-tabs > .selected > a:hover {
  border-color: #DDD transparent #DDD #DDD;
  color: #555;
	cursor: default;
	background-color: white;
}

.vertical-tabs-panes {
  width: auto !important;
}

.ie7 .tab-content {
  overflow: visible;
}


/********************************
 * Popover
 ********************************/

.popover {
	-webkit-box-shadow: none;
	-moz-box-shadow: none;
  box-shadow: none;
}

.popover.top,
.popover.bottom {
  padding: 0;
  background: 0;
  border: 1px solid #ccc;
} /* FIX: CiviCRM DataTables conflict with bootstrap popover */

.popover-title {
  font-weight: bold;
}

.popover-inner {
  z-index: 3; /* 3 is to account for shadow in ie7,8 */
  position: relative;
  width: 280px;
  background-color: white;
  -webkit-box-shadow: none;
  -moz-box-shadow: none;
  box-shadow: none;
  -webkit-border-radius: 6px;
  -moz-border-radius: 6px;
  border-radius: 6px;
}


/********************************
 * Pager
 ********************************/

.pager li {
  margin: 0 2px;
}

	.pager li > a {
	  border-radius: 6px;
	  -webkit-border-radius: 6px;
	  -moz-border-radius: 6px;
	}

	.pager .next a {
	  float: none;
	}

	.pager .last a {
	  float: right;
	}

	.pager li span {
	  display: inline-block;
	  padding: 6px 2px;
	  background: none;
	  border: 0;
	}

body .pager-help {
  padding: 0;
  border: 0;
  color: #858585;
}

.pager .active a {
  color: #999;
  cursor: default;
}

.pager a:hover,
.pager .active a {
  background-color: whiteSmoke;
}

.pager .disabled a {
  border: none;
}


/********************************
 * Firefox specific
 ********************************/

@-moz-document url-prefix() {
  input.btn {
    height: 30px;
  }
  input.btn.btn-large {
    height: 42px;
  }
}


/********************************
 * Progress bar
 ********************************/

#updateprogress div > .bar {
  height: 20px;
}


/********************************
 * Media max-width: 480
 ********************************/

@media screen and (max-width: 480px) {
  .form-horizontal .captcha,
	.form-horizontal .form-actions {
	  padding: 0;
	}

  .pager {
    text-align: left;
  }

  body .pager ul {
    margin-left: -4px;
    overflow: hidden;
  }

  .pager li {
    display: block;
    margin: 0 0 4px 4px;
    float: left;
  }

  .pager li a {
    float: none !important;
  }

  .pager-help {
    text-align: left;
  }
}

@media screen and (max-width: 364px) {
  .g-recaptcha {
    -webkit-transform: scale(0.77);
    -moz-transform: scale(0.77);
    -ms-transform: scale(0.77);
    -o-transform: scale(0.77);
    transform: scale(0.77);
    -webkit-transform-origin: 0 0;
    -moz-transform-origin: 0 0;
    -ms-transform-origin: 0 0;
    -o-transform-origin: 0 0;
    transform-origin: 0 0;
  }
}
