body.table-body>.container {
	max-width: 100%;
}

.error-message {
	justify-content: center;
}

.table-container {
	border-radius: 10px;
}

.table .table-header {
	background-color: #4d4d4d;
	color: #ffffff;
	white-space: nowrap;
	vertical-align: middle;
}

.table .table-header p {
	margin: 0 5px;
	padding: 0;
}

.table .table-header th:first-child {
	border-top-left-radius: 10px;
}

.table .table-header th:last-child {
	border-top-right-radius: 10px;
}

.table-row {
	border-color: #878787;
}

tbody .table-row:nth-child(even) td {
	background-color: #f3f3f3;
}

tbody .table-row:nth-child(odd) td {
	background-color: #cbcbcb;
}

.table-cell {
	vertical-align: middle;
	text-align: center;
	border-color: #878787;
}

.table-cell:not(.disabled) .content-cell.invalid-cell {
	box-shadow: 0 0 5px 1px #ff8c00;
	border-color: #cc3f0caa;
}

td.action {
	vertical-align: middle;
}

.small-cell {
	width: 80px;
}

/* Forces textarea to a fixed size when not focused */
.cell-longtext:not(:focus) {
	display: block;
	background-color: #f0f0f0;
	height: 32px;
}

/* Targets tr with td disabled except the first one (= fresh line) */
/* tbody tr:has(td.disabled:not(:first-child)) { */
tr.invalid-row {
	border: 3px solid #cc3f0c;
	border-radius: 5px;
}

td.disabled input,
td.disabled select,
td.disabled button,
td.disabled textarea,
td.disabled .autocomplete-textfield .MuiOutlinedInput-root {
	background-color: #f0f0f0;
	color: #999;
	opacity: 0.3;
}

td.disabled .autocomplete-textfield .MuiOutlinedInput-root {
	height: 32px;
}

/* Forces user input on a new line */
.autocomplete .MuiAutocomplete-inputRoot {
	flex-wrap: wrap;
}

.autocomplete .MuiAutocomplete-inputRoot input {
	flex-basis: 100%;
	width: 100%;
}

.row-spinner-container {
	text-align: center;
	padding: 20px;
}

.spinner {
	display: block;
	margin: 0 auto;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	border: 9px solid var(--dark-color);
	animation:
		spinner-bulqg1 0.8s infinite linear alternate,
		spinner-oaa3wk 1.6s infinite linear;
}

@keyframes spinner-bulqg1 {
	0% {
		clip-path: polygon(50% 50%, 0 0, 50% 0%, 50% 0%, 50% 0%, 50% 0%, 50% 0%);
	}

	12.5% {
		clip-path: polygon(50% 50%,
				0 0,
				50% 0%,
				100% 0%,
				100% 0%,
				100% 0%,
				100% 0%);
	}

	25% {
		clip-path: polygon(50% 50%,
				0 0,
				50% 0%,
				100% 0%,
				100% 100%,
				100% 100%,
				100% 100%);
	}

	50% {
		clip-path: polygon(50% 50%,
				0 0,
				50% 0%,
				100% 0%,
				100% 100%,
				50% 100%,
				0% 100%);
	}

	62.5% {
		clip-path: polygon(50% 50%,
				100% 0,
				100% 0%,
				100% 0%,
				100% 100%,
				50% 100%,
				0% 100%);
	}

	75% {
		clip-path: polygon(50% 50%,
				100% 100%,
				100% 100%,
				100% 100%,
				100% 100%,
				50% 100%,
				0% 100%);
	}

	100% {
		clip-path: polygon(50% 50%,
				50% 100%,
				50% 100%,
				50% 100%,
				50% 100%,
				50% 100%,
				0% 100%);
	}
}

@keyframes spinner-oaa3wk {
	0% {
		transform: scaleY(1) rotate(0deg);
	}

	49.99% {
		transform: scaleY(1) rotate(135deg);
	}

	50% {
		transform: scaleY(-1) rotate(0deg);
	}

	100% {
		transform: scaleY(-1) rotate(-135deg);
	}
}

.icon-container {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
}

.icon {
	height: 24px;
	width: 24px;
}

.icon:hover {
	cursor: pointer;
	filter: drop-shadow(0 0 5px var(--dark-color));
}

.content-cell,
.autocomplete-textfield .MuiOutlinedInput-root fieldset {
	border: solid 2px var(--dark-color);
	border-radius: 5px;
	width: 100%;
	color: var(--dark-color);
}

.cell-notes {
	border: none;
}

/* Remove Blue outline when focused */
.cell-input:focus,
.cell-notes:focus,
.autocomplete-textfield .MuiOutlinedInput-root:focus-within {
	box-shadow: none;
	outline: none;
}

.autocomplete-textfield .MuiOutlinedInput-root.Mui-focused {
	box-shadow: none;
}

.autocomplete-textfield .MuiOutlinedInput-root.Mui-focused fieldset {
	border: solid 2px var(--dark-color);
}

/* Forces inputs element to a bigger width when focused */
.cell-input:focus,
.cell-longtext:focus {
	min-width: 360px;
	width: 100%;
}

/* Remove blue text label for autocomplete components */
.autocomplete-textfield .MuiFormLabel-root {
	color: var(--dark-color);
}

.autocomplete-textfield .MuiFormLabel-root.Mui-focused {
	color: var(--dark-color);
}

/* Remove Blue outline when focused and set Thumb to Violine */
input.content-cell:not(:checked):focus {
	border-color: var(--dark-color);
	--bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%232D1E2F'/%3e%3c/svg%3e");
}


input.content-cell {
	background-color: #ffffff;
	border-color: var(--dark-color);
	border-width: 2px;
}

input.content-cell.cell-switch {
	background-color: var(--red-light-color);
}

input.content-cell:checked {
	background-color: var(--green-dark-color);
	border-color: var(--dark-color);
	border-width: 2px;
}

input.content-cell:hover,
select.content-cell:hover {
	cursor: pointer;
}

/* Thumb (dot du switch) */
input.content-cell:checked {
	--bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%232d1e2f'/%3e%3c/svg%3e");
}

input.content-cell:not(:checked) {
	--bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%232D1E2F'/%3e%3c/svg%3e");
}

select.content-cell {
	appearance: none;
	background-image: url("/pictos/picto_dropdown.svg");
	background-position: right 0.25rem center;
	background-repeat: no-repeat;
	background-size: 1rem;
	text-align: left;
	padding-left: 0.5rem;
}

.autocomplete-textfield-bg-white {
	background-color: #ffffff;
}

.column-tooltip {
	margin-left: 5px;
	color: #ffffff;
	background-color: var(--dark-color);
	border-radius: 50%;
	width: 16px;
	height: 16px;
	font-size: 12px;
	line-height: 16px;
	text-align: center;
	cursor: pointer;
	display: inline-block;
}

.autocomplete {
	max-width: 200px;
}

.autocomplete:has(input:focus) {
	max-width: none;
}