/* Add padding to breadcrumb that is now overridded by addition of ".header" to the ul styles in main.css */
.header ul.breadcrumb {
  margin: 0 0 10px;
  padding: 8px 15px;
}

/* Realign nav menu header to left of page */
.section-nav-header ul {
  padding-left: 0;
}

/* Override UoN styles */
.bootstrap-root p, .bootstrap-root td {
  font-size: 100%;
}

.inside .content-main tags-input a {
  text-decoration: none;
}

#content-main tags-input .tags {
  border-radius: 3px;
  border: 1px solid #ccc;
  -moz-box-shadow: none;
  -moz-transition: none;
  -o-transition: none;
  -webkit-box-shadow: none;
  -webkit-transition: none;
  box-shadow: none;
  transition: none;
}

#content-main tags-input .tags.focused {
  border: 1px solid #66afe9;
  -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6);
  -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6);
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6);
}

#content-main tags-input .tags .tag-item, .bootstrap-root .tag-item {
  background-color: #eeeeee;
  color: #555;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 0 5px;
  display: inline-block;
  height: 26px;
  line-height: 25px;
}

.bootstrap-root a.tag-item {
  color: #333;
  text-decoration: none;
  margin-right: 4px;
}
.bootstrap-root a.tag-item:hover {
  background-color: #ddd;
  text-decoration: underline;
}

#content-main tags-input .tags input[type="text"] {
  /* Override UoN styles */
  background-color: #FFF;
  border: none;
  -moz-box-shadow: none;
  -moz-transition: none;
  -o-transition: none;
  -webkit-box-shadow: none;
  -webkit-transition: none;
  box-shadow: none;
  transition: none;
}

.content a.external-link {
  /* Override UoN styles */
  background: none;
  line-height: inherit;
  padding: 0;

  display: block;
  white-space: nowrap;
  width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bootstrap-root .table {
  background: #fff;
}

.bootstrap-root .table > thead > tr > th {
  vertical-align: top;
}

td.emptyTable {
  font-style: italic;
  text-align: center;
}

table.repeating-group {
  margin-bottom: 0;
  width: 100%;
}

table.repeating-group > tbody > tr {
  background: transparent;
}

table.repeating-group > tbody > tr > td {
  padding: 8px;
}

.bootstrap-root .form-horizontal .control-label.topPaddedTableLabel {
  padding-top: 15px;
}

table.repeating-group > tbody > tr > td:first-of-type {
  padding-left: 0;
}

table.repeating-group > tbody > tr > td:last-of-type {
  padding-right: 0;
}

table.repeating-group > tbody > tr > td.deleteAction {
  padding-top: 15px;
  padding-right: 8px;
  width: 30px;
}

td.percentage {
  width: 10em;
}

.for-valid {
  color: #3c763d;
  font-weight: bold;
}

.for-error {
  color: #a94442;
  font-weight: bold;
}

.modal-content form {
  margin-bottom: 0px;
}

.content .uib-datepicker-popup ul li {
  line-height: inherit;
}

/* Scroll auto-complete suggestions if there are lots */
[uib-typeahead-popup].dropdown-menu {
  max-height: 300px;
  overflow-y: auto;
}

/* Match UoN link formatting */
.bootstrap-root a {
  color: #25589d;
  text-decoration: underline;
}
.bootstrap-root a.btn {
  text-decoration: none;
}

.bootstrap-root .input-group-btn.dateSelector {
  vertical-align: top;
}

.bootstrap-root div.input-group span.input-group-btn.dateSelector button.btn {
  border-left: none;
}

.bootstrap-root div.input-group input.form-control.dateSelector {
  border-right-width: 2px;
}
.bootstrap-root .input-group-btn {
  vertical-align: top;
}

.bootstrap-root h4 {
  text-transform: none;
}

.bootstrap-root .list-group-item-header {
  display: table;
  width: 100%;
}

.bootstrap-root .list-group-item-header > div {
  display: table-cell;
}

.bootstrap-root .pendingLabel {
  vertical-align: text-bottom;
}

.bootstrap-root .list-group-item-text {
  max-height: 3.9em;
  overflow: hidden;
}

.bootstrap-root .list-group-item-footer {
  margin-top: 5px;
  display: table;
  width: 100%;
}

.bootstrap-root .list-group-item-footer .tags {
  display: table-cell;
  text-align: left;
}

.bootstrap-root .list-group-item-footer .project-metadata {
  display: table-cell;
  text-align: right;
}

.project-metadata {
  color: #9199a1;
  font-size: 12px;
}

table.repeating-group > tbody > tr > td {
  vertical-align: top;
}

.paragraphs {
  white-space: pre-line;
}

.bootstrap-root .tab-content {
  display: block;
  padding-top: 15px;
}

.bootstrap-root .nav-tabs>li.nav-item>a {
  color: black;
}

.bootstrap-root .panel .pagination, 
.bootstrap-root .panel form#quickSearch {
  padding-left: 15px;
}

.bootstrap-root div#quickSearch {
  padding-left: 15px;
}

#centeringSpinnerWrapper {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 2000000;
}

.spinner:before { 
  background-color: rgba(49, 37, 37, 0.2);
  border-radius: 6px;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  position: fixed;
  content: " ";
}

.form-group .oldValue, 
.form-group .newValue {
  margin-top: 7px; 
  background-color: #f2dede; 
  border-color: #ebccd1; 
  padding: 5px
}

.form-group .oldValue {
  background-color: #f2dede; 
  border-color: #ebccd1; 
}

.form-group .newValue {
  background-color: #dff0d8; 
  border-color: #d6e9c6; 
}

/* Modal does not appear under the .bootstrap-root element, so we need to copy the Bootstrap 3.3.7 styles here */
.modal-open {
  overflow: hidden;
}
.modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1050;
  display: none;
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
  outline: 0;
}
.modal.fade .modal-dialog {
  -webkit-transition: -webkit-transform .3s ease-out;
       -o-transition:      -o-transform .3s ease-out;
          transition:         transform .3s ease-out;
  -webkit-transform: translate(0, -25%);
      -ms-transform: translate(0, -25%);
       -o-transform: translate(0, -25%);
          transform: translate(0, -25%);
}
.modal.in .modal-dialog {
  -webkit-transform: translate(0, 0);
      -ms-transform: translate(0, 0);
       -o-transform: translate(0, 0);
          transform: translate(0, 0);
}
.modal-open .modal {
  overflow-x: hidden;
  overflow-y: auto;
}
.modal-dialog {
  position: relative;
  width: auto;
  margin: 10px;
}
.modal-content {
  position: relative;
  background-color: #fff;
  -webkit-background-clip: padding-box;
          background-clip: padding-box;
  border: 1px solid #999;
  border: 1px solid rgba(0, 0, 0, .2);
  border-radius: 6px;
  outline: 0;
  -webkit-box-shadow: 0 3px 9px rgba(0, 0, 0, .5);
          box-shadow: 0 3px 9px rgba(0, 0, 0, .5);
}
.modal-backdrop {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1040;
  background-color: #000;
}
.modal-backdrop.fade {
  filter: alpha(opacity=0);
  opacity: 0;
}
.modal-backdrop.in {
  filter: alpha(opacity=50);
  opacity: .5;
}
.modal-header {
  padding: 15px;
  border-bottom: 1px solid #e5e5e5;
}
.modal-header .close {
  margin-top: -2px;
}
.modal-title {
  margin: 0;
  line-height: 1.42857143;
}
.modal-body {
  position: relative;
  padding: 15px;
}
.modal-footer {
  padding: 15px;
  text-align: right;
  border-top: 1px solid #e5e5e5;
}
.modal-footer .btn + .btn {
  margin-bottom: 0;
  margin-left: 5px;
}
.modal-footer .btn-group .btn + .btn {
  margin-left: -1px;
}
.modal-footer .btn-block + .btn-block {
  margin-left: 0;
}
.modal-scrollbar-measure {
  position: absolute;
  top: -9999px;
  width: 50px;
  height: 50px;
  overflow: scroll;
}
@media (min-width: 768px) {
  .modal-dialog {
    width: 600px;
    margin: 30px auto;
  }
  .modal-content {
    -webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, .5);
            box-shadow: 0 5px 15px rgba(0, 0, 0, .5);
  }
  .modal-sm {
    width: 300px;
  }
}
@media (min-width: 992px) {
  .modal-lg {
    width: 900px;
  }
}

.modal-header:before,
.modal-header:after,
.modal-footer:before,
.modal-footer:after {
  display: table;
  content: " ";
}
.modal-header:after,
.modal-footer:after {
  clear: both;
}

/* responsive.css wants to make table cells block display, but not headings.  Just default to regular cell display */
@media (max-width: 767px) {
  .bootstrap-root form .table-scroller table td {
    display: table-cell;
    width: auto;
  }
}