.captcha {
    border: 1px solid #999999;
    margin: 6px 0;
}

/* AdminLTE uses "hidden" by default, but that causes sortables to jump around when moving. */
.wrapper { overflow-x: auto; }

.menu-sign-up {
    background-color: #045700;
    border-left: 3px solid #08a400;
}

/* Darken up the default box shadow a little more */
.box {
    box-shadow: 0 1px 1px rgba(0,0,0,0.3);
}

.btn-success.active, .btn-success.focus, .btn-success:active, .btn-success:focus, .btn-success:hover, .open>.dropdown-toggle.btn-success {
    /* Make the background less sickly-green */
    background-color: #209950;
}

.btn:focus,.btn:active {
    outline: none !important;
}

.navbar-nav>.user-menu>.dropdown-menu>li.user-header {
    height: auto;
}

.red {
    color: #d33724;
}

.green {
    color: #008d4c;
}

label {
    margin-bottom: 0;
}

.frontend-edit-toggle .footer {
    text-align: center;
    padding: 5px;

}

#animals p,
#form-submissions p {
    /* decrease bottom margin */
    margin-bottom: 4px;
}

#animals ul,
#AnimalRecords ul,
ul.btn-manage-list,
ul.btn-manage-link,
ul.menus-wrap,
ul#form-submissions,
ul#all-contacts {
    list-style: none;
    padding: 0;
}

#animals .sex-male .btn { background-color: #d7e6ed; }
#animals .sex-male .btn:hover { background-color: #c6dfed !important; }

#animals .sex-female .btn { background-color: #f7e7ec; }

#animals .sex-female .btn:hover { background-color: #f7d9e5 !important; }

.box-header.advanced:hover {
    cursor: pointer;
}

.pb-alert {
    margin-top: 10px;
}

.group-menu {
    margin-bottom: 15px;
}

.pb-search input {
    width: 200px;
}
.pb-search .searchclear {
    position: absolute;
    right: 5px;
    top: 0;
    bottom: 0;
    height: 14px;
    margin: auto;
    font-size: 14px;
    cursor: pointer;
    color: #aaa;
}

a .fa-question-circle {
    color: #FFDF00;
}

.margin15t {
    margin-top: 15px;
}

.margin15b {
    margin-bottom: 15px;
}

.center {
    text-align: center;
}

.with-border {
    border-bottom: 1px solid #f4f4f4;
}

.animal-admin-thumb,
.admin-thumb {
    width: 40px;
    height: 40px;
    padding: 1px;
}

#AnimalRecords ul {
    margin-bottom: 0;
    text-align: center;
}

#AnimalRecords h3 {
    margin: 4px 0;
}

#AnimalRecords .box-default {
    border-top: 1px solid #d2d6de;
}

#AnimalRecords .draft-records .box-default,
#AnimalRecords .name-records .box-default,
#AnimalRecords .other-records .box-default {
    margin-bottom: 0;
}

#AnimalRecords .draft-records {
    background-color: #95D3B7;
}

#AnimalRecords .name-records {
    background-color: #FFBBBB;
}

#AnimalRecords .other-records {
    background-color: #FFDDA8;
}

#AnimalRecords .box-body {
    position: relative;
}

#AnimalRecords .box-body .fa-refresh {
    position: absolute;
    right: 6px;
    bottom: -14px;
    margin: auto;
    cursor: pointer;
    color: #ccc;
    z-index: 9999;
}

#AnimalRecords .box-body .fa-refresh:hover {
    color: #8c8c8c;
}

#AnimalRecords small {
    color: #aaa;
}

#AnimalRecords li,
#AnimalPhotoGallery li,
ul.btn-manage-list li,
ul.btn-manage-link li,
#gallery-photos li,
.slider-photos li,
.theme-photos li {
    position: relative;
}

#AnimalRecords .recordsPrehor li,
#AnimalRecords .recordsPosthor li,
#AnimalRecords .recordsOtherhor li {
    padding: 3px 40px 1px 50px;
    display: inline;
    margin-right: 4px;
}

#AnimalRecords .delete,
#AnimalRecords .select,
#AnimalRecords .sort,
#AnimalPhotoGallery .delete,
#AnimalPhotoGallery .rotate,
#AnimalPhotoGallery .enlarge,
#AnimalPhotoGallery .sort,
#AnimalPhotoGallery .gal-visibility,
#gallery-photos .delete,
#gallery-photos .rotate,
#gallery-photos .enlarge,
#gallery-photos .sort,
#gallery-photos .gal-visibility,
.slider-photos .delete,
.slider-photos .enlarge,
.slider-photos .sort,
.theme-photos .delete,
.theme-photos .enlarge,
ul.btn-manage-list .delete,
ul.btn-manage-list .select,
ul.btn-manage-list .sort,
ul.btn-manage-list .nested-sort,
ul.btn-manage-link .delete,
ul.btn-manage-link .select,
ul.btn-manage-link .sort,
ul.btn-manage-link .nested-sort,
ul.btn-manage-link .link-image {
    position: absolute;
    left: 6px;
    margin: auto;
    cursor: pointer;
    color: #111;
    text-shadow: 0px 0px 2px rgba(255,255,255,1) ;
    height: 20px;
}

ul.menus-wrap .delete,
ul.menus-wrap .indent,
ul.menus-wrap .unindent,
ul.menus-wrap .private-page,
ul.menus-wrap .sort {
    margin-right: 10px;
    color: #111;
    text-shadow: 0px 0px 2px rgba(255,255,255,1) ;
    height: 20px;
}

#AnimalPhotoGallery .gal-visibility,
#gallery-photos .gal-visibility {
    left: auto;
    right: 6px;
    bottom: 2px;
    cursor: default;
}

#AnimalPhotoGallery .rotate,
#gallery-photos .rotate
{
    left: 45px;
}

#AnimalPhotoGalleryBrowser li {
    position: relative;
}

#AnimalPhotoGalleryBrowser li .selected {
    position: absolute;
    right: 6px;
    bottom: 2px;
    font-size: 20px;
}

#AnimalRecords .sort,
ul.btn-manage-list .sort,
ul.btn-manage-link .sort,
ul.btn-manage-link .link-image {
    left: 30px;
}

ul.btn-manage-link .nested-sort {
    left: 60px;
}

ul.btn-manage-list .nested-sort {
    left: 8px;
}

#AnimalRecords .delete,
#AnimalPhotoGallery .delete,
#gallery-photos .delete,
.slider-photos .delete,
.theme-photos .delete,
ul.btn-manage-list .delete,
ul.btn-manage-link .delete {
    left: auto;
    right: 6px;
}

#AnimalPhotoGallery .sort,
#gallery-photos .sort,
.slider-photos .sort {
    bottom: 2px;
}

#AnimalRecords .delete:hover,
#AnimalRecords .select:hover,
#AnimalRecords .sort:hover,
#AnimalPhotoGallery .delete:hover,
#AnimalPhotoGallery .rotate:hover,
#AnimalPhotoGallery .enlarge:hover,
#AnimalPhotoGallery .sort:hover,
#gallery-photos .delete:hover,
#gallery-photos .rotate:hover,
#gallery-photos .enlarge:hover,
#gallery-photos .sort:hover,
.slider-photos .delete:hover,
.slider-photos .enlarge:hover,
.slider-photos .sort:hover,
.theme-photos .delete:hover,
.theme-photos .enlarge:hover,
ul.btn-manage-list .delete:hover,
ul.btn-manage-list .enlarge:hover,
ul.btn-manage-list .sort:hover,
ul.btn-manage-list .nested-sort:hover,
ul.btn-manage-link .delete:hover,
ul.btn-manage-link .enlarge:hover,
ul.btn-manage-link .sort:hover,
ul.btn-manage-link .select:hover,
ul.btn-manage-link .nested-sort:hover,
ul.btn-manage-link .link-image:hover,
ul.menus-wrap .delete:hover,
ul.menus-wrap .indent:hover,
ul.menus-wrap .unindent:hover,
ul.menus-wrap .sort:hover {
    color: #555;
}

#AnimalPhotoGallery .sort:hover,
#gallery-photos .sort:hover,
ul.btn-manage-list .sort:hover,
ul.btn-manage-list .nested-sort:hover,
ul.btn-manage-link .sort:hover,
ul.btn-manage-link .nested-sort:hover{
    cursor: move !important;
}

#AnimalPhotoGallery .ui-state-highlight,
#gallery-photos .ui-state-highlight,
.slider-photos .ui-state-highlight {
    width: 100px;
    height: 100px;
}

.sort:hover,
.nested-sort:hover {
    cursor:move !important;
}

.recordsDraft, .recordsPrevert, .recordsPrehor, .recordsPostvert, .recordsPosthor, .recordsOthervert, .recordsOtherhor {
    padding: 0 10px 12px;
}

.recordsDraft .btn, .recordsPrevert .btn, .recordsPrehor .btn, .recordsPostvert .btn, .recordsPosthor .btn, .recordsOthervert .btn, .recordsOtherhor .btn {
    padding: 1px 6px;
}

.connectedSortable {
    min-height: 30px;
}

.ui-state-highlight {
    height: 20px;
    line-height: 20px;
    background-color: #fffdd5;
    border: 1px solid #dfe195;
    margin: 2px 2px 4px;
    border-radius: 3px;
}

#albums li,
#galleries li {
    float: left;
}

#record-image-selection,
#animal-image-selection,
#image-selection,
#gallery-photos,
.slider-photos,
.theme-photos {
    list-style: none !important;
    padding: 0 0 10px 0;
    margin: 0;
}

#record-image-selection li,
#animal-image-selection li,
#image-selection li,
#gallery-photos li,
.slider-photos li,
.theme-photos li {
    list-style: none !important;
    margin: 3px;
    display: inline-block;
    min-width: 100px;
    min-height: 100px;
}

#animal-image-selection li:first-of-type,
#gallery-photos li:first-of-type {
    margin: 1px;
    border: 2px solid #209950;

}

#animal-image-selection li,
#image-selection li,
#gallery-photos li,
.slider-photos li,
.theme-photos li {
    float: left;
}

#record-image-selection li:hover,
#animal-image-selection li:hover,
#image-selection li:hover,
#gallery-photos li:hover,
.slider-photos li:hover,
.theme-photos li:hover {
    cursor: pointer;
}

#record-image-selection li.ui-selected,
#animal-image-selection li.ui-selected,
#image-selection li.ui-selected,
#gallery-photos li.ui-selected,
.slider-photos li.ui-selected {
    border: 2px solid #81a7ff;
    margin: 1px;
    webkit-box-shadow: 0 2px 3px rgba(0,0,0,0.3);
    box-shadow: 0 2px 3px rgba(0,0,0,0.3);
}

#record-image-selection li.ui-selected img,
#animal-image-selection li.ui-selected img,
#image-selection li.ui-selected img,
#gallery-photos li.ui-selected img,
.slider-photos li.ui-selected img {
    opacity: 0.6;
}

.slider-photos li.has-crop-data,
.theme-photos li.has-crop-data {
    border: 3px solid #00a65a ;
}

.slider-photos li.no-crop-data,
.theme-photos li.no-crop-data {
    border: 3px solid #dd4b39 ;
}

#relationships ul {
    list-style: none;
    padding: 10px 20px;
}

.pedigree-builder {
    width:100%;
}
.pedigree-builder tr td {
    width:20%
}

.pedigree-builder input {
    width:100%;
    padding-left: 2px;
}

.pedigree-builder .spacer {
    border-left: solid 1px #CCC;
    width: 20%;
}

.pedigree-builder .ped {
    border: solid 1px #333333;
    text-align: center;
}

.pedigree-builder th {
    padding: 5px;
    color: #FFF;
    background-color: #333;
    border-bottom: 6px solid #FFF;
}

.pedigree-builder td .btn {
    margin-top: 4px;
}

.pedigree-builder .ped-male {
    background: #d7e6ed;
    border: solid 1px #CCC;
    padding: 3px;
    width: 20%;
}

.pedigree-builder .ped-female {
    background: #f7e7ec;
    border: solid 1px #CCC;
    padding: 3px;
}

.pedigree-builder input[disabled] {
    background-color: #CCC;
    cursor: default;
}

.pedigree-builder input[readonly] {
    background-color: #EEE;
    border: none;
    cursor: pointer;
}

.ui-autocomplete {
    background-color: #FFF;
    border: 1px solid #cccccc;
}

.ui-autocomplete .ui-menu-item {
    list-style-image: none !important;
}

.ui-autocomplete li:hover, .ui-autocomplete .ui-state-focus {
    background-color: #eeeeee;
    display: inline-block;
    width: 100%;
}

#dropzone {
    min-height: 60px;
    line-height: 60px;
    text-align: center;
    margin-top: 15px;
    background-color: #fffdc7;
    border: 3px solid #fffdc7;
    border-radius: 10px;
}

.dragclass {
    border: 3px solid #3c8dbc !important;
}

.ui-selectable-helper {
    position: absolute;
    z-index: 100;
    border:1px dotted black;
}

/* Fix for autocomplete menu going behind sidebar div */
.ui-autocomplete {
    z-index: 9999;
}

.ui-autocomplete-category {
    font-weight: bold;
    padding: .2em .4em;
    line-height: 1.5;
}

.bg-light-blue-gradient a:link, .bg-light-blue-gradient a:visited, .bg-light-blue-gradient a:hover {
    color: #fffdc7;
    text-decoration: underline;
}

/* Clearfix */
.cf:after {
    content: "";
    display: table;
    clear: both;
}

.clear {
    clear: both;
}

.edit-title-mode li {
    background-color: #EEE;
    width: 100%;
    cursor: default !important;
}

.edit-title-mode img {
    float: left;
    padding: 20px;
}

.edit-title-mode .photo-edit {
    padding: 10px;
    float: left;
    width: 100%;
    max-width: 400px;
}

.edit-title-mode .photo-edit strong {
    display: block;
    padding: 4px 0 1px 0;
}

.edit-title-mode .photo-edit .title,
.edit-title-mode .photo-edit .link {
    display: block;
    width: 100%;
}

.edit-title-mode .photo-edit .description {
    display: block;
    width: 100%;
}

.btn.pull-right, .animal-list .btn.pull-left,
.btn.pull-right, .link-list .btn.pull-left {
    margin-right: 5px;
}

.btn-sm {
    font-size: 14px !important;
}

.box-header>.box-tools-left {
    position: absolute;
    left: 10px;
    top: 5px;
}

.box.box-solid>.box-header>.box-tools-left .btn {
    border: 0;
    box-shadow: none;
}

.animal-list.box,
.link-list.box{
    margin-bottom: 8px;
}

/* A few extra adminLTE colors */
.bg-red-light {
    background-color: #df4c3a;
}

.modal{
    overflow-y: auto;
}
.modal-open{
    overflow:auto;
    overflow-x:hidden;
}

#offspring-list .animal-admin-thumb,
.single-for-sale .animal-admin-thumb {
    margin-left: 5px;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid #cccccc;
    background-color: #f4f4f4 !important;
}

.offspring-edit,
.forsale-details-edit {
    max-width: 400px;
    margin: 5px auto;
    text-align: left;
    background-color: #fff;
    border: 1px solid #bbb;
    padding: 5px 10px;
}

#containerSold .forsale-details-edit,
#containerArchive .forsale-details-edit {
    display: none;
}

.page-media-photos ul,
ul#pages,
ul#posts {
    list-style: none;
    padding-left: 0;
}

.page-media-photos .btn,
#pages .btn-group,
#posts .btn-group {
    margin: 0 2px 4px;
}

#links .box {
    margin-bottom: 5px;
}

.flexslider .flex-direction-nav a {
    height: 44px;
}

.flexslider .slides li {
    position:relative;
}

.flexslider .flex-caption {
    position:absolute;
    left:0;
    right:0;
    bottom:0;
    background:rgba(0, 0, 0,0.6);
    z-index:1;
    padding:6px 10px;
}

.flexslider .flex-caption p {
    margin-bottom: 0;
    color: #fff;
}

.flexslider .flex-caption .flex-title {
    font-size: 120%;
}

.flexslider.small {
    width: 220px;
}

.flexslider.small .flex-caption,
.flexslider.small .flex-control-nav,
.flexslider.small .flex-control-paging {
    display: none;
}

.flexslider.medium {
    width: 400px;
}

.flexslider.large {
    width: 640px;
}

#SliderPreview.wide-landscape .modal-dialog {
    width: 90%;
    max-width: 1000px;
}

#SliderPreview.landscape .modal-dialog {
    width: 80%;
    max-width: 600px;
}

#SliderPreview.tall-portrait .modal-dialog {
    width: 50%;
    max-width: 330px;
}

#SliderPreview.portrait .modal-dialog {
    width: 60%;
    max-width: 400px;
}

#slider-preview-container .admin-edit {
    display: none;
}

.content.content-pages {
    min-height: 0;
    padding-bottom: 0;
}

#menus-container ul li:first-of-type .indent {
    visibility: collapse;
}

#menus-container .btn-block {
    width: auto;
}

.indented {
    margin-left: 3%;
    margin-right: 3%;
}

#type_description {
    padding-left: 20px;
}

#type_description p:before {
    content: "\21B3";
}

/* Cropper */

.img-container,
.img-preview {
    background-color: #f7f7f7;
    width: 80%;
    max-width: 800px;
    text-align: center;
    margin: 20px auto;
}

.img-container {
    min-height: 200px;
    max-height: 516px;
}

/* Help Modals */

.modal.help .tip {
    background-color: #f9ffb7;
    border: 1px solid #fffd72;
    display: inline-block;
    padding: 3px 5px;
    margin: 5px;
}

.modal.help .box-body h4 {
    font-weight: bold;
    color: #3c8dbc;
}

@media (min-width: 768px) {
    .img-container {
        min-height: 516px;
    }
}

.img-container > img,
.img-preview > img {
    max-width: 100%;
}

.img-preview {
    float: left;
    margin-right: 10px;
    margin-bottom: 10px;
    overflow: hidden;
}

.docs-buttons {
    text-align: center;
}

/* Formbuilder */

#sjfb-wrap .hide {
    display: none;
}

#sjfb-wrap h1 {
    margin-top: 10px;
}

#sjfb-wrap h3 {
    margin: 6px 0;
    text-transform: capitalize;
}

#sjfb-wrap ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#sjfb-wrap .add-wrap,
#sjfb-sample {
    background: #f7f7f7;
    border: 1px solid #ddd;
    padding: 10px 20px 20px;
    margin-bottom: 20px;
}

#sjfb-wrap .add-wrap a {
    color: #111;
}

#sjfb-wrap .add-wrap li {
    padding: 2px 0;
}

#sjfb-wrap .add-wrap li a:hover {
    padding-left: 5px;
    color: #000;
}

#sjfb-wrap h2 {
    margin: 4px 0;
    font-weight: normal;
}

#sjfb .field {
    border: 1px solid #ddd;
    margin-bottom: 4px;
    padding: 5px 10px;
}

#sjfb .field:hover {
    background-color: #fbf9ee;
    cursor: move;
}

#sjfb .choices li:hover {
    background-color: #f7fbc7 !important;
    cursor: move;
}

#sjfb label {
    margin: 0;
    font-weight: bold;
}

#sjfb .toggle-selected,
#sjfb .toggle-required {
    margin: 0 0 0 5px;
    cursor: default;
}

#sjfb .delete {
    float: right;
}

#sjfb input {
    font-weight: normal;
    margin: 0 5px;
}

#sjfb input[type="text"] {
    width: 80%;
    max-width: 600px;
}

#sjfb .choices {
    margin: 20px 10px;
    padding: 5px;
    background: #f7f7f7;
    border: 1px solid #ddd;
}

#sjfb .choices li {
    padding: 4px;
    margin: 4px 0;
}

#sjfb .choices li:nth-child(even) {
    background: #e7e7e7;
}

#sjfb .delete-choice {
    margin-left: 5px;
    font-weight: normal;
}

#sjfb-sample label {
    display: block;
    margin: 2px 0;
}

#sjfb-sample .form-fields {
    margin: 10px 0;
}

#sjfb > button {
    margin: 20px 0 10px;
}

#sjfb-sample {
    max-width: 350px;
}

#sjfb-sample input[type="text"],
#sjfb-sample textarea {
    width: 100%;
    max-width: 250px;
}

#sjfb-sample input[type="text"],
#sjfb-sample textarea,
#sjfb-sample select {
    padding: 4px;
}

#sjfb-sample textarea {
    min-height: 70px;
}

#sjfb-sample label {
    line-height: 1.6em;
}

#sjfb-sample .sjfb-field {
    margin-bottom: 20px;
}

#sjfb-sample .sjfb-agree label,
#sjfb-sample .sjfb-agree input {
    float: left;
}

#sjfb-sample .required-field > label:after {
    content: " *";
    color: red;
    font-size: 120%;
    font-weight: bold;
}

#sjfb-sample .submit {
    margin: 20px 0 0;
    cursor: pointer;
}

/* PB Edits */

#sjfb label {
    display: inline-block;
    width: 80%;
    max-width: 600px;
}

#sjfb label:nth-child(2) {
    width: auto;
}

#form-sample label {
    display: block;
    margin: 2px 0;
}

#form-sample .form-fields {
    margin: 10px 0;
}

#form-submissions .btn,
#all-contacts .btn {
    margin-bottom: 5px;
    padding: 3px 6px;
    cursor: default;
    line-height: 1.2em;
}

#all-contacts .btn {
    min-height: 28px;
    line-height: 25px;
    white-space: normal;
}

#all-contacts .btn .inline-reminder {
    white-space: normal;
    line-height: normal;
}

#form-submissions small {
    color: #999;
}

#form-submissions .mark-for-action,
#all-contacts .mark-for-action {
    position: absolute;
    left: 20px;
    top: 0;
}

#form-submissions .starred {
    color: #f39c12 !important;
    position: absolute;
    left: 40px;
    top: 1px;
}

#form-submissions .unread .btn {
    font-weight: bold;
    background-color: #eee;
}

#form-submissions .unread small {
    color: #555;
}

#sjfb-confirmation .callout {
    margin: 20px 0 0 0;
}

.theme-screenshot {
    text-align: center;
    margin: 10px auto;
}

.theme-screenshot img {
    border: 1px solid #b8c7ce;
    width: 100%;
    height: auto;
    max-width: 600px;
}

/* Theme Color Picker Section */

.theme-colors .form-group {
    margin-left: 20px;
}

.colorpicker-element {
    max-width: 200px;
}

.color-example, .color-groups {
    display: inline-block;
    width: 10px;
    height: 10px;
    border: 1px solid #111111;
}

.colorpicker-element .input-group-addon {
    border: 1px solid rgb(0, 0, 0);
    background-color: rgb(255, 255, 255);
}

.theme-colors .radio .light {
    display: inline-block;
    padding: 0 2px;
    border: 1px solid #eee;
    background-color: #fff;
    color: #000;
}

.theme-colors .radio .dark {
    display: inline-block;
    padding: 0 2px;
    border: 1px solid #111;
    background-color: #000;
    color: #fff;
}

/* Theme Images (Header/Footer) */
.group-block {
    border: 1px solid #e8e8e8;
    padding: 5px;
    margin-bottom: 10px;
    background: #f0f0f0;
}

.theme-photos {
    padding-bottom: 0;
}

#theme-photos .delete-group {
    float: right;
}

#theme-photos .image-assignment-options {
    max-width: 400px;
}

/* YouTube video embeds */
.video-container {
    position:relative;
    padding-bottom:56.25%;
    padding-top:30px;
    height:0;
    overflow:hidden;
}

.video-container iframe, .video-container object, .video-container embed {
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
}

#UpdateSocialIconStyleForm svg {
    width: 35px;
    height: 35px;
}

/* Legacy (PB v1) form submission formatting (html table submission) */
#legacy-submission tr.row {padding-bottom:10px; display:block; margin: 0}
#legacy-submission td.key {padding:0 15px 0 0; font-weight:bold; width:200px; vertical-align:top;}
#legacy-submission td.value {padding:0 15px 0 0; vertical-align:top;}

/* Enhancement for printing */
@media print {
    .main-footer,
    #submission .box-header{
        display: none;
    }

    .box {
        border-top: none;
    }

    .box-body {
        padding: 5px 0;
    }

    #submission {
        font-size: 86%;
    }

    #submission h3 {
        margin-top: 0;
    }
}