@use "~admin-stylesheets/colors";

.nab-opportunity-card {
	position: relative;

	&__content {
		min-width: 0;
	}

	&__topline {
		display: flex;
		align-items: flex-start;
		justify-content: space-between;
		gap: 12px;
	}

	&__card-title {
		margin: 0;
		font-size: 15px;
		font-weight: 700;
	}

	&__score {
		border-radius: 999px;
		background: colors.$nab-tag-green-bg;
		color: colors.$nab-tag-green-fg;
		padding: 3px 8px;
		font-size: 12px;
		font-weight: 600;
		white-space: nowrap;
	}

	&__reasons {
		display: flex;
		flex-wrap: wrap;
		gap: 1em;
		font-size: 0.875em;
	}

	&__tag {
		font-weight: 600;

		&::before {
			content: "";
			display: inline-block;
			width: 1em;
			height: 1em;
			border-radius: 100%;
			font-size: 0.6em;
			margin-right: 0.5em;
		}
	}

	&__tag--pink {
		color: colors.$nab-tag-pink-fg;

		&::before {
			background: colors.$nab-tag-pink-fg;
		}
	}

	&__tag--green {
		color: colors.$nab-tag-green-fg;

		&::before {
			background: colors.$nab-tag-green-fg;
		}
	}

	&__tag--orange {
		color: colors.$nab-tag-orange-fg;

		&::before {
			background: colors.$nab-tag-orange-fg;
		}
	}

	&__tag--purple {
		color: colors.$nab-tag-purple-fg;

		&::before {
			background: colors.$nab-tag-purple-fg;
		}
	}

	&__tag--blue {
		color: colors.$nab-tag-blue-fg;

		&::before {
			background: colors.$nab-tag-blue-fg;
		}
	}

	&__text {
		margin: 10px 0 14px;
		color: #334155;
		line-height: 1.4;
	}

	&__actions {
		display: flex;
	}

	&__no-permission {
		margin-left: 0.3em;
	}
}
