.groups {
	.input-group {
		#search-button {
			padding-left: 0;
			position: relative;
		    left: -20px;
		    z-index: 2;
		    vertical-align: middle;
		}
	}

	.fg-line {
		padding-right: 0;
	}

	&.list {
		.members {
			padding-left: 0;
			margin-bottom: 0;

			li {
				display: inline;
			}
			
			.user-icon, .user-avatar {
				.user-icon(32px, 1.4rem);
			}
		}

		.group-cover {
			min-height: 150px;
		}

		.list-cover {
			display: block;
			&:hover {
				cursor: pointer;
			}
		}

		.card-footer {
			text-align: center;
		}
	}

	&.details {
		
		.table {
			margin-bottom: 0;
			
			>tbody {
				>tr:not(:first-child)>td {
					border-top: 1px solid @border-color;
				}
				
				>tr:first-child>td {
					border: none;
				}
			}
		}
	}
}

.group-details {
	h2 {
		margin-top: 0;
		font-size: 25px;
	}

	button, a {
		margin-top: -30px;
	}
}

[component="groups/activity"] {
	&.card-body.card-padding {
		padding-top: 0;
	}
}

.group-members, .members-invited {
	.fg-line {
		margin-bottom: 10px;
	}
}


@media (max-width: @screen-xs-max) {
	.row.groups .col-lg-8 {
		margin-top: 10px;
	}

	.row.groups .col-xs-5 {
		padding-right: 5px;
  		padding-left: 0;
	}

	.row.groups .col-xs-7 {
  		padding-left: 5px;
	}	
}

[component="groups/container"] {
	
	.card.user-profile-view {
		margin-right: 15px;
		margin-left: 15px;
	}
	
	[component="groups/cover"] {
		background-size: cover;
		background-repeat: no-repeat;
		min-height: 200px;
		position: relative;
		margin-bottom: 1em;

		.change {
			visibility: hidden;
		}

		&.initialised:hover {
			.change {
				.opacity(1);
				visibility: visible;
			}
		}

		&.active {
			&:hover {
				cursor: move;
			}

			.instructions {
				.opacity(1);
			}

			.change {
				display: none;
			}

			.save {
				display: inline-block;
			}
		}

		&.saving {
			.save {
				display: none;
			}

			.indicator {
				display: inline-block;
			}
		}

		.change, .save, .indicator {
			display: inline-block;
			position: absolute;
			top: 1em;
			right: 1em;
			background: rgba(0, 0, 0, 0.2);
			color: #eee;
			padding: 0.5em;
			border-radius: 5px;
			font-weight: bold;

			&:hover {
				cursor: pointer;
			}
		}

		.change {
			.opacity(0);
			.transition(opacity .15s linear);
		}

		.save {
			display: none;
		}

		.indicator {
			display: none;
		}

		.instructions {
			display: inline-block;
			position: absolute;
			right: 1em;
			bottom: 1em;
			background: rgba(0, 0, 0, 0.2);
			color: #eee;
			padding: 0.5em;
			border-radius: 5px;
			margin-top: 2em;
			.opacity(0);
			.transition(opacity .15s linear);
		}
	}
	
	.card-body.card-padding {
		@media (min-width: @screen-md-min) {
			padding: 18px;
		}
	}
}