.tasks.layouts.table .task-pill-select-wrapper {
	display: inline-flex;
	align-items: center;
	position: relative;
	border-radius: 9999px;
	border: 1px solid var(--border-color, rgba(107, 114, 128, 0.08));
	box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
	width: 100%;
	min-width: fit-content;
	transition: all 0.2s ease;
}

.tasks.layouts.table .task-pill-select-wrapper[style*="background-color"]:not([style*="transparent"]) {
	box-shadow: inset 0 0 0 1000px rgba(255, 255, 255, 0.7), 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.tasks.layouts.table .task-pill-select-wrapper[style*="background-color"]:not([style*="transparent"]):hover {
	box-shadow: inset 0 0 0 1000px rgba(255, 255, 255, 0.5), 0 1px 3px 0 rgba(0, 0, 0, 0.08);
}

.tasks.layouts.table .task-pill-select-wrapper .task-status-select,
.tasks.layouts.table .task-pill-select-wrapper .task-priority-select,
.tasks.layouts.table .task-pill-select-wrapper .task-type-select,
.tasks.layouts.table .task-pill-select-wrapper .task-cell-select {
	background: transparent !important;
	background-color: transparent !important;
	color: var(--pill-text, #4b5563) !important;
}

.tasks.layouts.table .task-status-select,
.tasks.layouts.table .task-priority-select,
.tasks.layouts.table .task-type-select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	padding: 2px 20px 2px 18px;
	border-radius: 9999px;
	border: 1px solid var(--border-color, rgba(107, 114, 128, 0.08));
	cursor: pointer;
	transition: all 0.2s ease;
	font-size: 0.75rem;
	font-weight: 500;
	line-height: 1.2;
	width: 100%;
	min-width: fit-content;
	box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
	position: relative;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='%23000000'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 6px center;
	background-size: 10px;
}

.tasks.layouts.table .task-type-wrapper {
	min-height: 24px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	width: 100%;
	min-width: fit-content;
}

.tasks.layouts.table .task-type-pills-container {
	display: inline-flex;
	align-items: center;
	flex-wrap: nowrap;
	width: auto;
	overflow: visible;
	gap: 4px;
}

.tasks.layouts.table .task-type-pill {
	position: relative;
	white-space: nowrap;
	flex-shrink: 0;
	transition: all 0.2s ease;
	display: inline-flex;
	align-items: center;
}

.tasks.layouts.table .task-type-pill:hover {
	box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.08);
	transform: translateY(-1px);
}

/* Đảm bảo cột type có thể mở rộng */
.tasks.layouts.table .col-type {
	width: auto;
	min-width: 140px;
}

.tasks.layouts.table .task-type-chips {
	pointer-events: none;
	z-index: 0;
}

.tasks.layouts.table .task-type-select[multiple],
.tasks.layouts.table .task-type-multiple-select {
	z-index: 10;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
}

.tasks.layouts.table .task-type-select[multiple]:focus,
.tasks.layouts.table .task-type-multiple-select:focus {
	opacity: 0;
	outline: none;
}

/* Đảm bảo select có thể click được ngay cả khi ẩn */
.tasks.layouts.table .task-type-multiple-select {
	pointer-events: auto;
}

/* Custom dropdown cho task types */
.tasks.layouts.table .task-type-dropdown-menu {
	z-index: 1050;
}

.tasks.layouts.table .task-type-dropdown-menu .dropdown-item {
	user-select: none;
}

.tasks.layouts.table .task-type-dropdown-menu .dropdown-item:hover {
	background-color: #f8f9fa;
}

.tasks.layouts.table .task-type-dropdown-menu .task-type-checkbox {
	margin: 0;
	cursor: pointer;
}

.tasks.layouts.table .task-status-select::before,
.tasks.layouts.table .task-priority-select::before,
.tasks.layouts.table .task-type-select::before {
	content: '';
	position: absolute;
	left: 7px;
	top: 50%;
	transform: translateY(-50%);
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background-color: var(--dot-color, rgba(107, 114, 128, 0.4));
	pointer-events: none;
	z-index: 1;
}

.tasks.layouts.table .task-status-select:hover,
.tasks.layouts.table .task-priority-select:hover,
.tasks.layouts.table .task-type-select:hover {
	border-color: var(--border-color, rgba(107, 114, 128, 0.12));
	box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.08);
}

.tasks.layouts.table .task-status-select:focus,
.tasks.layouts.table .task-priority-select:focus,
.tasks.layouts.table .task-type-select:focus {
	outline: none;
	border-color: rgba(0, 0, 0, 0.12);
	box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.tasks.layouts.table .task-status-select,
.tasks.layouts.table .task-priority-select,
.tasks.layouts.table .task-type-select {
	color: #4b5563 !important;
	font-weight: 500;
}

.tasks.layouts.table .task-pill-select-wrapper .task-status-select,
.tasks.layouts.table .task-pill-select-wrapper .task-priority-select,
.tasks.layouts.table .task-pill-select-wrapper .task-type-select {
	color: var(--pill-text, #4b5563) !important;
}

.tasks.layouts.table .task-priority-select:invalid::before,
.tasks.layouts.table .task-priority-select[value=""]::before,
.tasks.layouts.table .task-type-select:invalid::before,
.tasks.layouts.table .task-type-select[value=""]::before {
	background-color: #9ca3af;
}

.tasks.layouts.table .task-priority-select:invalid,
.tasks.layouts.table .task-priority-select[value=""],
.tasks.layouts.table .task-type-select:invalid,
.tasks.layouts.table .task-type-select[value=""] {
	border-color: rgba(0, 0, 0, 0.06);
	font-weight: 400;
	box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.tasks.layouts.table .task-pill-select-wrapper:has(.task-priority-select:invalid),
.tasks.layouts.table .task-pill-select-wrapper:has(.task-priority-select[value=""]),
.tasks.layouts.table .task-pill-select-wrapper:has(.task-type-select:invalid),
.tasks.layouts.table .task-pill-select-wrapper:has(.task-type-select[value=""]) {
	background-color: #f9fafb !important;
	color: #6b7280 !important;
}

/* Dropdown list: khong ke thua mau cua pill, dung nen trang/chu toi */
.tasks.layouts.table .task-status-select option,
.tasks.layouts.table .task-priority-select option,
.tasks.layouts.table .task-type-select option {
	background: #fff;
	color: #333;
}
