:root {
	--color-cell-rgb: 93, 135, 255;
}

table td[data-checkable],
table td[checkable] {
	user-select: none;
}

table tr:has(td[all-checkable][td-checked], td[data-all-checkable][data-td-checked]) {
	/* --color-cell-rgb: 255, 174, 31; */ /* Colore GIALLO */
	/* --color-cell-rgb: 83, 155, 255;   */ /* Colore BLU (INFO) */
	--color-cell-rgb: 76, 175, 80; /* Colore VERDE */
}

table tr td[td-checked],
table tr td[data-td-checked],
table tr:has(td[all-checkable][td-checked], td[data-all-checkable][data-td-checked]) td {
	outline: 2px solid rgb(var(--color-cell-rgb));
	outline-offset: -1px;
	animation: blink-outline-soft 2s infinite ease-in-out;
	background-color: color-mix(in srgb, rgb(var(--color-cell-rgb)) 5%, white);
	/* position: relative; */
}

table tr td[data-td-copied] {
	/* --color-cell-rgb: 255, 174, 31; */ /* Colore GIALLO */
	/* --color-cell-rgb: 83, 155, 255;   */ /* Colore BLU (INFO) */
	--color-cell-rgb: 76, 175, 80; /* Colore VERDE */

	outline: 2px dashed rgb(var(--color-cell-rgb));
	outline-offset: -2px;
	background-color: color-mix(in srgb, rgb(var(--color-cell-rgb)) 5%, white);
}

/*1) Definisci l’animazione*/
@keyframes blink-outline-soft {
	0%,
	100% {
		outline-color: rgb(var(--color-cell-rgb));
	}

	50% {
		outline-color: rgba(var(--color-cell-rgb), 0.15);
	}
}

table:has(td[checkable]), td[checkable] {
	-webkit-user-select: none;
	/* Safari/Chrome */
	-moz-user-select: none;
	/* Firefox */
	-ms-user-select: none;
	/* IE10+/Edge */
	user-select: none !important;

	-webkit-user-drag: none; /* Safari/Chrome */
    user-drag: none; /* Non standard, ma utile */
}
