@import 'src/Components/GlobalStyles/colors';

.companiesTable {
	width: 860px;
	margin: 0 auto;
	position: relative;

	@media (max-width: 1400px) {
		width: auto;
	}

	&__addCompany {
		text-align: center;
		margin-top: 50px;
		margin-bottom: 50px;
		display: flex;
		justify-content: center;
		align-content: center;

		button {
			background-color: var(--primary-color);

			&:hover {
				background-color: var(--primary-color-dark) !important;
			}
		}

		p {
			align-self: center;
		}
	}

	&__list {
		label {
			list-style-type: none;
			padding: 15px 10px;
			cursor: pointer;
			display: grid;
			grid-template-columns: repeat(3, 1fr);
			justify-items: start;
			align-items: center;

			p:nth-child(3) {
				justify-self: end;
				margin-right: 20px;

				button {
					min-width: 20px;

					&:hover {
						background-color: white;
					}

					svg {
						color: var(--primary-color);
					}
				}
			}

			&:hover {
				background-color: $light-grey;
			}

			input[type='checkbox'] {
				margin: 0 20px;
				filter: hue-rotate(120deg) brightness(0.9);
			}
		}
	}
}

.addOrRemoveMessage,
.addOrRemoveMessageNonActive {
	text-align: center;
	position: absolute;
	top: 70%;
	left: 50%;
	transform: translate(-50%, -50%);
	padding: 20px 50px;
	box-shadow: 0 3px 13px 0 $dropShadow;
	background-color: var(--primary-color);
	color: white;
	z-index: 1111;
	border-radius: 15px;
}

.addOrRemoveMessageNonActive {
	display: none;
}

.errorMessage {
	input {
		border: 1px solid red !important;
	}

	div {
		div {
			border: 1px solid red !important;
		}
	}
}
