.btn-group > .btn + .dropdown-toggle {
	box-shadow: 1px 1px 1px rgba(0,0,0,0.1);
}

.btn-group.open .btn-primary.dropdown-toggle {
	background: darken($accent-color-1, 5%);
	color: $white;
	box-shadow: inset -1px -1px 1px rgba(0,0,0,0.15);
}

.dropdown-menu > li > a:hover, .dropdown-menu > li > a:focus, .dropdown-submenu:hover > a, .dropdown-submenu:focus > a {
	background-image: none;
	background-color: $accent-color-1;
}

.btn-link {
	color: $accent-color-1;
}

// Joomla 4 Adjustments
.platform-content {
  &.container {
    padding: 0;
  }
}

.com-contact__container {
  > h3 {
    display: none;
  }
}

// Bootstrap 4 Adjustments
.container {
  .row {
    .col {
      .control-group {
        margin: 1rem 0;
      }
    }
  }
}

.moduletable {
  position: relative;
}

.btn.btn-link.jmodedit {
  position: absolute;
  right: 0;
  z-index: 2;
}

// Joomla Login Module
#login-form {
	margin-bottom: 0;
	#form-login-remember {
		margin: 20px 0 10px;
		input {
			margin: 0 5px 0 0;
		}
	}
	ul.unstyled {
		margin: 20px 0 0;
		a {
			color: $base-title-color;
			&:hover {
				color: $accent-color-1;
			}
			i {
				margin-right: 7px;
			}
		}
	}
}

// Joomla 4 Login Module
.mod-login {
  .form-group {
    margin-bottom: 10px;

    .input-group-text,
    .input-password-toggle {
      display: none !important;
    }
  }

  [id^="form-login-remember"] {
    margin: 20px 0 15px;
  }

	ul.list-unstyled {
		margin: 20px 0 0;
    list-style: none;
		a {
			color: $base-title-color;
			&:hover {
				color: $accent-color-1;
			}
			i {
				margin-right: 7px;
			}
		}
	}
}

// Joomla Menu Module
.nav {
	&.mod-list {
    display: block;
		margin: 0;
		li {
      padding: 0;
			margin-bottom: 6.5px;
			&:last-child {
				margin-bottom: 0;
			}
			a {
				color: $base-title-color;
				&:before {
					content:"\f105";
					font-family: FontAwesome;
					margin-right: rem(10px);
          @include transition(margin, 0.3s);
				}
				&:hover {
					color: $accent-color-1;
          text-decoration: none;
          &::before {
            margin-right: rem(15px);
          }
				}
			}
			span {
				&:before {
					content:"\f105";
					font-family: FontAwesome;
					margin-right: rem(10px);
				}
			}
			ul {
				margin-top: 6.5px;
				margin-bottom: 6.5px;
        margin-left: 1.5rem;
        padding: 0;
        list-style: none;
			}
			&.current {
				> a, > span {
					color: $accent-color-1;
				}
			}
      &.active {
        > a {
          text-decoration: none;
        }
      }
      .nav-header {
        padding: 0;
        font-size: inherit;
        font-weight: inherit;
        line-height: inherit;
        color: inherit;
        text-shadow: none;
        text-transform: inherit;
      }
		}
	}
}

// Bootstrap "well" styling
.well {
	background: $base-element-color;
	border: 1px solid $base-border-color;
	box-shadow: none;
	padding: 30px 30px 10px;
  border-radius: 4px;
}

// Joomla Login Page
.login {
	> form {
		fieldset {
			.control-group {
				.control-label {
					text-align: left;
					padding-top: 10px;
				}
				#remember {
					margin-top: 10px;
					@include breakpoint(mobile-only) {
						width: auto;
					}
				}
				input {
					@include breakpoint(mobile-only) {
						width: 100%;
					}
				}
			}

      .com-users-login__remember {
        margin: 25px 0 20px;
      }
		}
	}
}

.logout {
	.controls {
		margin-left: 0;
	}
}

ul.nav-tabs.nav-stacked {
	> li {
		> a {
			border: 1px solid $base-border-color;
			&:hover {
				border: 1px solid $base-border-color;
			}
		}
	}
}

// Joomla Registration Page
.registration {
	#member-registration {
		margin-bottom: 0;
		legend + .control-group {
			margin-top: 0;
		}
		.control-group {
			.control-label {
				text-align: left;
				padding-top: 10px;
			}
			input {
				@include breakpoint(mobile-only) {
					width: 100%;
				}
			}
		}
	}
}

// Joomla 4 Registration Page
.com-users-registration {
	background: $base-element-color;
	border: 1px solid $base-border-color;
	box-shadow: none;
	padding: 30px 30px 10px;
  border-radius: 4px;

  meter {
    width: 100%;
    margin-top: 10px;
  }
}

// Joomla Username Remind and Password Reset Pages
.remind, .reset {
	#user-registration {
		margin-bottom: 0;
		fieldset {
			p {
				margin-top: 0;
			}
		}
		.control-group {
			.control-label {
				text-align: left;
				padding-top: 10px;
			}
		}
	}
}

// Joomla 4 Username Remind and Password Reset Pages
.com-users-reset,
.com-users-remind {
  legend {
    color: inherit;
    font-size: inherit;
  }
}

// Joomla User Profile Page
.profile {
	> ul.btn-toolbar {
		margin-top: 0;
	}
	#users-profile-core {
		margin-bottom: 20px;
	}
	fieldset {
		dl {
			dt {
				text-align: left;
			}
		}
	}
}

// Joomla User Edit Profile
.profile-edit {
	#member-profile {
		margin-bottom: 0;
		.control-group {
			.control-label {
				text-align: left;
				padding-top: 10px;
			}
			.chzn-container {
				padding-top: 8px;
			}
		}
	}
}



// Gantry-Bootstrap from J3
select,
textarea,
input[type="text"],
input[type="password"],
input[type="datetime"],
input[type="datetime-local"],
input[type="date"],
input[type="month"],
input[type="time"],
input[type="week"],
input[type="number"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="tel"],
input[type="color"],
.uneditable-input {
	font-size: 14px;
}

#g-page-surround input {
  line-height: normal;
}

fieldset {
	padding: 0;
	margin: 0;
	border: 0;
}

legend {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
}

.dl-horizontal {
	*zoom: 1;
}

.dl-horizontal:before,
.dl-horizontal:after {
	display: table;
	line-height: 0;
	content: "";
}

.dl-horizontal:after {
	clear: both;
}

.dl-horizontal dt {
	float: left;
	width: 160px;
	overflow: hidden;
	clear: left;
	text-align: right;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.dl-horizontal dd {
	margin-left: 180px;
}



// Other
.article-info.text-muted {
	color: #999999 !important;
}