

.nav {
	display: flex;
	flex-wrap: wrap;
	padding-left: 0;
	margin-bottom: 0;
	list-style: none;
}

.nav-link {
	display: block;
	padding: $sp-2 $sp-4;
	font-size: $font-size-base;
	font-weight: $font-weight-base;
	color: $text-color;
	text-decoration: none;

	@include hover() {
		color: $co-alpha;
		text-decoration: none;
	}

	&.disabled {
		color: $co-gray-60;
		pointer-events: none;
		cursor: default;
	}
}

.nav-tabs {
	border-bottom: 1px solid $co-gray-60;

	.nav-link {
		margin-bottom: -1px;
		background: none;
		border: 1px solid transparent;
		@if $useBorderRadius {
			border-top-left-radius: $border-radius-1;
			border-top-right-radius: $border-radius-1;
		}

		@include hover() {
			// border-color: $co-gray-60;
			// Prevents active .nav-link tab overlapping focus outline of previous/next .nav-link
			isolation: isolate;
		}

		&.disabled {
			color: $co-gray-60;
			background-color: transparent;
			border-color: transparent;
		}
	}

	.nav-link.active,
	.nav-item.show .nav-link {
		color: $co-alpha;
		background-color: $co-base-1;
		border-color: $co-gray-60 $co-gray-60 transparent;
	}

	// .dropdown-menu {
	// 	// Make dropdown border overlap tab border
	// 	margin-top: -1px;
	// 	// Remove the top rounded corners here since there is a hard edge above the menu
	// 	@include border-top-radius(0);
	// }
}

.nav-pills {
	.nav-link {
		background: none;
		border: 0;
		@if $useBorderRadius { border-radius: $border-radius-1;}
	}

	.nav-link.active,
	.show > .nav-link {
		color: $co-base-1;
		background-color: $co-alpha;
		// @include gradient-bg($nav-pills-link-active-bg);
	}
}


.nav-fill {
	> .nav-link,
	.nav-item {
		flex: 1 1 auto;
		text-align: center;
	}
}

.nav-justified {
	> .nav-link,
	.nav-item {
		flex-basis: 0;
		flex-grow: 1;
		text-align: center;
	}
}

.nav-fill,
.nav-justified {
	.nav-item .nav-link {
		width: 100%;
	}
}


.tab-content {
	> .tab-pane {
		display: none;
	}
	> .active {
		display: block;
	}
}
