/* overrides to default admin and bootstrap styles */

a:active,
a:focus {
    outline: none;
}
.sidebar-nav {
    padding: 9px 0;
}
.controls > p {
    padding-top: 5px;
}
.controls > ul,
.controls > .related-widget-wrapper > ul {
    list-style-type: none;
    padding-left: 0px;
}
.controls > ul label,
.controls > .related-widget-wrapper > ul label {
    font-size: 14px;
}
.controls > ul .form-control,
.controls > .related-widget-wrapper > ul .form-control {
    height: auto;
    margin: 9px 0;
}
.selector .selector-filter label {
    display: none;
}
.selector h2 {
    font-size: 100%;
    margin: 0;
}
.checkbox{
    padding-bottom: 5px;
}
.checkbox label {
    margin-bottom: -20px;
}
.checkbox .help-block {
    margin-top: 0;
}

fieldset.collapse {
    height: inherit;
}
.add-row {
    margin-bottom: 20px;
}
legend a:hover {
    text-decoration: none;
}

.wide label {
    width: auto !important;
}


/* change_list actions */
.actions {
    height: 40px;
    display: inline-block;
}
.actions select {
    margin-top: 5px;
}
.action-counter {
    margin-left: 5px;
    vertical-align: sub;
}

/* change_list table display */
th.action-checkbox-column {
    width: 1.5em;
    text-align:center;
}

td.action-checkbox {
    text-align:center;
}

.tooltip.in {opacity: 1} /* Hard to see against black text otherwise */

#_changelist {clear: both;}

.scrollable-dropdown-menu {
    overflow-x: hidden;
    max-height: 322px;
}

.scrollable-dropdown-menu li form a {
    clear: both;
    color: #333;
    display: block;
    font-weight: normal;
    line-height: 1.42857;
    padding: 3px 20px;
    white-space: nowrap;
}

#content-main {
    clear: both;
}

@media (min-width: 768px) {
  .form-horizontal .control-label {
    text-align: left;
  }
}
@media (min-width: 970px) {
  .form-horizontal .control-label {
    text-align: right;
  }
}

/* bootstrap 3.2 change */
.checkbox input[type="checkbox"] {
    position: static;
    float: left;
    margin-left: 0px;
    margin-right: 5px;
}

/* admin/css/forms.css makes labels too small */
.control-label label {
    font-size: 14px;
}

@media (min-width: 768px) {
    .navbar-nav.navbar-right:last-child {
        margin-right: 0px;
    }
}

#content-navbar-collapse .btn-primary {
    color: #fff;
    padding: 6px 12px;
    margin-top: 8px;
}

#content-navbar-collapse .btn-primary:hover,
#content-navbar-collapse .btn-primary:focus {
    background-color: #265a88;
}

.form-control-inline {
    width: auto;
    display: inline;
}
