:root {
	--bs-body-font-family: "Geist", system-ui, sans-serif;
	--bs-font-mono: "Geist Mono", ui-monospace, monospace;
}

/* Стили для перетаскивания */
.drag-handle {
	cursor: grab;
	user-select: none;
	color: #6c757d;
	text-align: center;
	width: 30px;
}

.drag-handle:active {
	cursor: grabbing;
}

/*.btn-delete {
	background: transparent;
	border: none;
	color: #dc3545;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	padding: 0 5px;
}

.btn-delete:hover {
	color: #c82333;
}*/

/* Редактируемые ячейки (stock) */
[data-field="stock"] {
	padding: 6px 8px;
	min-height: 38px;
	width: 100%;
	box-sizing: border-box;
	cursor: text;
}

/* Ячейки для редактирования через модалку */
.edit-cell {
	padding: 6px 8px;
	min-height: 38px;
	cursor: pointer;
	position: relative;
}

.edit-cell:hover {
	background-color: #e7f1ff;
}

.edit-cell::after {
	content: '\F4FA'; /* pencil icon */
	font-family: 'bootstrap-icons';
	position: absolute;
	right: 4px;
	top: 50%;
	transform: translateY(-50%);
	opacity: 0;
	transition: opacity 0.2s;
	font-size: 0.85rem;
	color: #6c757d;
}

.edit-cell:hover::after {
	opacity: 0.6;
}

/* Кнопки-иконки */
.btn-icon {
	background: transparent;
	border: none;
	padding: 4px 6px;
	line-height: 1;
	cursor: pointer;
	border-radius: 4px;
	transition: background-color 0.15s;
}

.btn-icon:hover {
	background-color: rgba(0, 0, 0, 0.075);
}

.theme-danger .btn-icon {
	color: #dc3545;
}

.theme-danger .btn-icon:hover {
	color: #b02a37;
	background-color: rgba(220, 53, 69, 0.1);
}

.theme-primary .btn-icon {
	color: #0d6efd;
}

.theme-primary .btn-icon:hover {
	color: #0a58ca;
	background-color: rgba(13, 110, 253, 0.1);
}

/* TODO: это лишнее */
.cell-link a {
	color: #0d6efd;
	text-decoration: none;
	word-break: break-all;
}

.cell-link a:hover {
	text-decoration: underline;
}

/* тоже надо будет убрать */
.draft-row {
	background-color: #f8f9fa;
}

/* Подсветка зоны drop */
.table tbody.drop-hover {
	background-color: #e7f1ff;
	outline: 2px dashed #0d6efd;
	outline-offset: -2px;
}

/* Плейсхолдер для пустой таблицы */
.drop-placeholder td {
	padding: 2rem !important;
	font-size: 1.1rem;
}