/* barkhaus skin: project icons (see project-icons.js). Lucide line icons instead of colour dots. */

/* sidebar: the icon takes the dot's place; the dot stays in the DOM (its colour is read from it) */
.menu-container li.bk-has-picon > .navigation-item .color-bubble-wrapper > .color-bubble {
	display: none;
}
.menu-container .color-bubble-wrapper > .bk-picon {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--grey-500, #8a8f98);
	transition: opacity .15s ease;
	pointer-events: none;
}
.menu-container .color-bubble-wrapper > .bk-picon svg {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}
/* same as Vikunja's dot: on hover the drag handle shows instead (only where dragging is allowed) */
.menu-container .navigation-item:hover .color-bubble-wrapper:has(> .drag-handle) > .bk-picon {
	opacity: 0;
}

/* "Icon ändern" in the project's … menu */
.bk-picon-menu.dropdown-item {
	width: 100%;
	border: 0;
	background: none;
	text-align: start;
	cursor: pointer;
	font: inherit;
	color: inherit;
}
.bk-picon-menu .icon svg {
	display: block;
}

/* picker */
.bk-picon-overlay {
	position: fixed;
	inset: 0;
	z-index: 4000;
	display: grid;
	place-items: center;
	padding: 16px;
	background: rgba(15, 15, 15, .45);
}
.bk-picon-dialog {
	width: min(520px, 100%);
	max-height: min(640px, calc(100vh - 32px));
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 16px;
	border-radius: 10px;
	background: var(--white, #fff);
	color: var(--text, #37352f);
	border: 1px solid var(--grey-200, #e9e9e7);
	box-shadow: 0 16px 48px rgba(0, 0, 0, .25);
}
.bk-picon-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}
.bk-picon-title {
	font-weight: 600;
	font-size: 1rem;
}
.bk-picon-sub {
	font-size: .8rem;
	color: var(--grey-500, #787774);
}
.bk-picon-x {
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border: 0;
	border-radius: 6px;
	background: none;
	color: inherit;
	cursor: pointer;
}
.bk-picon-x:hover {
	background: var(--grey-100, #f1f1ef);
}
.bk-picon-search {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid var(--grey-200, #e9e9e7);
	border-radius: 6px;
	background: var(--white, #fff);
	color: inherit;
	font: inherit;
}
.bk-picon-search:focus {
	outline: 2px solid var(--primary, #2383e2);
	outline-offset: -1px;
}
.bk-picon-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
	gap: 4px;
	overflow-y: auto;
	min-height: 120px;
	color: var(--grey-700, #555);
}
.bk-picon-cell {
	display: grid;
	place-items: center;
	aspect-ratio: 1;
	border: 1px solid transparent;
	border-radius: 6px;
	background: none;
	color: inherit;
	cursor: pointer;
}
.bk-picon-cell:hover,
.bk-picon-cell:focus-visible {
	background: var(--grey-100, #f1f1ef);
	outline: none;
}
.bk-picon-cell.is-current {
	border-color: currentColor;
	background: var(--grey-100, #f1f1ef);
}
.bk-picon-empty {
	grid-column: 1 / -1;
	padding: 24px;
	text-align: center;
	color: var(--grey-500, #787774);
}
.bk-picon-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}
.bk-picon-reset {
	border: 1px solid var(--grey-200, #e9e9e7);
	border-radius: 6px;
	background: none;
	color: inherit;
	padding: 6px 10px;
	cursor: pointer;
	font: inherit;
	font-size: .85rem;
}
.bk-picon-reset:hover {
	background: var(--grey-100, #f1f1ef);
}
.bk-picon-msg {
	font-size: .85rem;
	color: var(--grey-500, #787774);
}
