/**
 * Barkod listesi — DataHub panelinden bağımsız stiller (main.css utility değil).
 */

.dh-bc-wrap {
	margin-top: 1rem;
}

.dh-bc-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 0.75rem;
}

.dh-bc-toolbar-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
}

.dh-bc-toolbar-note {
	margin: 0;
	font-size: 12px;
	line-height: 1.45;
	color: #6b7280;
}

.dh-bc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	padding: 0 14px;
	border: 0;
	border-radius: 999px;
	background: #003cff;
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}

.dh-bc-btn:hover {
	opacity: 0.95;
}

.dh-bc-btn:disabled {
	opacity: 0.5;
	cursor: default;
}

.dh-bc-error {
	margin: 0 0 12px;
	padding: 10px 12px;
	border-radius: 12px;
	font-size: 13px;
	line-height: 1.45;
	background: rgba(220, 38, 38, 0.1);
	color: #991b1b;
}

.dh-bc-error[hidden] {
	display: none;
}

.dh-bc-filter {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: 0 0 12px;
}

.dh-bc-missing-filter {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	border: 0;
}

.dh-bc-filter__label {
	font-size: 13px;
	font-weight: 600;
	color: #111827;
}

.dh-bc-filter__input {
	width: min(100%, 24rem);
	min-height: 38px;
	padding: 8px 12px;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 999px;
	font-size: 13px;
	line-height: 1.4;
	color: #111827;
	background: #fff;
}

.dh-bc-filter__input:focus {
	outline: none;
	border-color: rgba(0, 60, 255, 0.45);
	box-shadow: 0 0 0 3px rgba(0, 60, 255, 0.12);
}

.dh-bc-bulkbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: 0 0 12px;
	padding: 10px 12px;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 14px;
	background: #f9fafb;
}

.dh-bc-check {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 32px;
	padding: 0 10px;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 999px;
	background: #fff;
	color: #374151;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
}

.dh-bc-check input {
	accent-color: #003cff;
}

.dh-bc-scroll {
	overflow-x: auto;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 16px;
	background: #fff;
}

.dh-bc-pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 12px;
}

.dh-bc-pagination[hidden] {
	display: none;
}

.dh-bc-pagination__info {
	min-width: 64px;
	text-align: center;
	font-size: 13px;
	font-weight: 600;
	color: #374151;
}

.dh-bc-table {
	width: 100%;
	min-width: 720px;
	border-collapse: collapse;
	font-size: 13px;
	line-height: 1.45;
}

.dh-bc-table th,
.dh-bc-table td {
	padding: 10px;
	text-align: left;
	vertical-align: top;
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.dh-bc-table th {
	font-weight: 600;
	color: #111827;
	background: #f9fafb;
	white-space: nowrap;
}

.dh-bc-table tbody tr:last-child td {
	border-bottom: 0;
}

.dh-bc-table tbody > tr:hover td {
	background-color: #f4f6f8;
}

.dh-bc-muted {
	color: #6b7280;
	font-size: 12px;
}

.dh-bc-barcode--invalid {
	color: #b91c1c;
	font-weight: 700;
}

.dh-bc-badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 600;
}

.dh-bc-badge--ok {
	background: rgba(34, 197, 94, 0.15);
	color: #166534;
}

.dh-bc-badge--pending {
	background: rgba(251, 191, 36, 0.2);
	color: #92400e;
}

.dh-bc-platform-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.dh-bc-platform-card {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	min-height: 72px;
	padding: 6px 6px 7px;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 8px;
	background: #fff;
	color: #111827;
	font-weight: 600;
	font-size: 12px;
	line-height: 1.2;
	text-decoration: none;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.dh-bc-platform-card:hover {
	border-color: rgba(0, 60, 255, 0.28);
	background: rgba(0, 60, 255, 0.03);
}

.dh-bc-platform-card--plain {
	color: #6b7280;
}

.dh-bc-platform-card__img,
.dh-bc-platform-card__fallback {
	width: 42px;
	height: 42px;
	border-radius: 9px;
	flex: 0 0 auto;
}

.dh-bc-platform-card__img {
	display: block;
	object-fit: cover;
	background: #f3f4f6;
}

.dh-bc-platform-card__fallback {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #eef2ff;
	color: #003cff;
	font-size: 11px;
	font-weight: 700;
}

.dh-bc-platform-card__name {
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.dh-bc-platforms {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.dh-bc-platforms li {
	font-size: 11px;
	line-height: 1.3;
	padding: 4px 8px;
	border-radius: 8px;
	background: #f3f4f6;
	color: #374151;
}

.dh-bc-platforms a {
	color: #003cff;
	text-decoration: none;
	word-break: break-all;
}

.dh-bc-platforms a:hover {
	text-decoration: underline;
}

.dh-bc-empty {
	margin: 0;
	padding: 24px;
	text-align: center;
	font-size: 14px;
	color: #6b7280;
}

.dh-bc-col-actions {
	white-space: nowrap;
}

.dh-bc-col-select,
.dh-bc-select-cell {
	width: 40px;
	text-align: center;
	vertical-align: middle;
}

.dh-bc-col-select input,
.dh-bc-select-cell input {
	accent-color: #003cff;
}

.dh-bc-actions {
	gap: 8px;
}

.dh-bc-link-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 32px;
	padding: 0 10px;
	border-radius: 999px;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	color: #003cff;
	text-decoration: none;
	border: 1px solid rgba(0, 60, 255, 0.35);
	background: rgba(0, 60, 255, 0.06);
	cursor: pointer;
}

.dh-bc-link-btn:hover {
	background: rgba(0, 60, 255, 0.12);
}

.dh-bc-btn--sm {
	min-height: 32px;
	padding: 0 12px;
	font-size: 12px;
}

.dh-bc-btn--danger {
	background: #b91c1c;
}

.dh-bc-btn--danger:hover {
	opacity: 0.95;
}

.dh-bc-btn--ok {
	background: #16a34a;
}

.dh-bc-btn--ok:hover {
	opacity: 0.95;
}

.dh-bc-btn--ghost {
	background: transparent;
	color: #374151;
	border: 1px solid rgba(0, 0, 0, 0.12);
	text-decoration: none;
}

.dh-bc-btn--ghost:hover {
	background: rgba(0, 0, 0, 0.04);
}

.dh-bc-modal-open {
	overflow: hidden;
}

.dh-bc-modal[hidden] {
	display: none;
}

.dh-bc-modal {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: grid;
	place-items: center;
	padding: 1rem;
}

.dh-bc-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(17, 24, 39, 0.48);
}

.dh-bc-modal__panel {
	position: relative;
	z-index: 1;
	width: min(100%, 26rem);
	padding: 1.25rem;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.dh-bc-modal__panel--wide {
	width: min(100%, 34rem);
}

.dh-bc-modal__panel:focus {
	outline: none;
}

.dh-bc-modal__title {
	margin: 0;
	font-size: 18px;
	line-height: 1.25;
	font-weight: 700;
	color: #111827;
}

.dh-bc-modal__text {
	margin: 0.75rem 0 0;
	font-size: 14px;
	line-height: 1.55;
	color: #4b5563;
}

.dh-bc-modal__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 1.25rem;
}

.dh-bc-edit-error {
	margin-top: 1rem;
}

/* Düzenleme formu */
.dh-bc-edit-wrap {
	max-width: 32rem;
}

.dh-bc-form {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.dh-bc-field {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.dh-bc-label {
	font-size: 13px;
	font-weight: 600;
	color: #111827;
}

.dh-bc-input {
	min-height: 40px;
	padding: 8px 12px;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 12px;
	font-size: 14px;
	line-height: 1.4;
	color: #111827;
	background: #fff;
}

.dh-bc-input:focus {
	outline: none;
	border-color: rgba(0, 60, 255, 0.45);
	box-shadow: 0 0 0 3px rgba(0, 60, 255, 0.12);
}

.dh-bc-hint {
	margin: 0;
	font-size: 11px;
	line-height: 1.4;
	color: #6b7280;
}

.dh-bc-form-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-top: 0.5rem;
}
