/* ERP POS custom helpers */

/* Header global axtar?? */
.topbar .search-bar {
	width: auto;
	min-width: 160px;
	flex-shrink: 0;
}

.topbar .search-bar .btn {
	gap: 0.45rem;
	padding: 0.45rem 0.9rem;
	border-radius: 0.5rem;
	color: #5a6268;
	background-color: #f7f7ff;
	border: 0;
	white-space: nowrap;
}

.topbar .search-bar .btn:hover,
.topbar .search-bar .btn:focus {
	color: #0d6efd;
	background-color: #eef3ff;
}

#SearchModal .popup-search .form-control {
	border-radius: 0.65rem;
}

#SearchModal .search-list .list-group-item {
	border-radius: 0.45rem;
	margin-bottom: 0.25rem;
}

#SearchModal .search-list .list-group-item.active {
	background-color: #0d6efd;
	border-color: #0d6efd;
}

/* Dashboard � �mumi x�las? (GENEL �ZET �slubu) */
.erp-overview {
	margin-top: 0.25rem;
}

.erp-overview-title {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	margin-bottom: 0.85rem;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #8b95a1;
}

.erp-overview-title::before {
	content: '';
	width: 3px;
	height: 0.95rem;
	border-radius: 2px;
	background: #3b82f6;
}

.erp-overview-card {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	height: 100%;
	padding: 0.95rem 1rem;
	background: #fff;
	border: 1px solid #edf0f4;
	border-radius: 0.75rem;
	border-left: 3px solid #94a3b8;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.erp-overview-icon {
	flex-shrink: 0;
	width: 2.6rem;
	height: 2.6rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 0.55rem;
	font-size: 1.25rem;
}

.erp-overview-meta {
	min-width: 0;
}

.erp-overview-label {
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #94a3b8;
	line-height: 1.2;
}

.erp-overview-value {
	margin-top: 0.15rem;
	font-size: 1.45rem;
	font-weight: 700;
	line-height: 1.15;
	color: #0f172a;
}

.erp-overview-sub {
	margin-top: 0.15rem;
	font-size: 0.78rem;
	color: #94a3b8;
}

.erp-overview-card.theme-blue { border-left-color: #3b82f6; }
.erp-overview-card.theme-blue .erp-overview-icon { background: #eff6ff; color: #2563eb; }

.erp-overview-card.theme-orange { border-left-color: #f59e0b; }
.erp-overview-card.theme-orange .erp-overview-icon { background: #fff7ed; color: #ea580c; }

.erp-overview-card.theme-teal { border-left-color: #14b8a6; }
.erp-overview-card.theme-teal .erp-overview-icon { background: #f0fdfa; color: #0d9488; }

.erp-overview-card.theme-navy { border-left-color: #334155; }
.erp-overview-card.theme-navy .erp-overview-icon { background: #f1f5f9; color: #1e293b; }

html.dark-theme .erp-overview-card {
	background: #1e1e2d;
	border-color: #2b2b40;
	box-shadow: none;
}

html.dark-theme .erp-overview-value { color: #f8fafc; }
html.dark-theme .erp-overview-label,
html.dark-theme .erp-overview-sub,
html.dark-theme .erp-overview-title { color: #94a3b8; }

html.dark-theme .erp-overview-card.theme-blue .erp-overview-icon { background: rgba(37, 99, 235, 0.18); }
html.dark-theme .erp-overview-card.theme-orange .erp-overview-icon { background: rgba(234, 88, 12, 0.18); }
html.dark-theme .erp-overview-card.theme-teal .erp-overview-icon { background: rgba(13, 148, 136, 0.18); }
html.dark-theme .erp-overview-card.theme-navy .erp-overview-icon { background: rgba(148, 163, 184, 0.16); color: #e2e8f0; }

/* Header: ?irket ad? + kullan?c? alan? �st �ste binmesin */
.topbar .navbar {
	flex-wrap: nowrap;
	overflow: visible;
}

.topbar .top-menu .navbar-nav {
	flex-wrap: nowrap;
	gap: 0.25rem;
}

.topbar .erp-company-link {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	max-width: 220px;
	white-space: nowrap;
}

.topbar .erp-company-name {
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 160px;
	font-weight: 500;
}

.topbar .user-box {
	flex-shrink: 0;
	margin-left: 0.25rem;
	padding-left: 0.75rem !important;
	padding-right: 0.25rem !important;
}

.topbar .user-box .user-info {
	min-width: 0;
}

.topbar .user-box .user-name,
.topbar .user-box .designattion {
	max-width: 140px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

@media (max-width: 768px) {
	.topbar .erp-company-name {
		display: none !important;
	}

	.topbar .user-box .user-info {
		display: none;
	}
}

/* ��� System-wide professional Enable / Disable switches ��� */
.form-check.form-switch {
	padding-left: 3.85rem;
	min-height: 2.15rem;
	display: flex;
	align-items: center;
	margin-bottom: 0.35rem;
}

.form-check.form-switch .form-check-input {
	width: 3.65rem !important;
	height: 2rem !important;
	margin-top: 0;
	margin-left: -3.85rem;
	cursor: pointer;
	border-radius: 999px !important;
	border-width: 2px;
	background-repeat: no-repeat;
	background-position: left center;
	background-size: 1.55rem 1.55rem;
	transition:
		background-position .2s ease,
		background-color .2s ease,
		border-color .2s ease,
		box-shadow .2s ease;
	box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.12);
}

.form-check.form-switch .form-check-input:focus {
	box-shadow:
		0 0 0 0.22rem rgba(34, 197, 94, 0.22),
		inset 0 1px 2px rgba(15, 23, 42, 0.1);
}

.form-check.form-switch .form-check-input:checked {
	background-color: #16a34a !important;
	border-color: #15803d !important;
	background-position: right center;
	box-shadow:
		0 2px 8px rgba(22, 163, 74, 0.35),
		inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

.form-check.form-switch .form-check-input:not(:checked) {
	background-color: #ef4444 !important;
	border-color: #dc2626 !important;
	background-position: left center;
	box-shadow:
		0 2px 8px rgba(239, 68, 68, 0.28),
		inset 0 1px 1px rgba(255, 255, 255, 0.12);
}

.form-check.form-switch .form-check-input:checked:focus {
	box-shadow:
		0 0 0 0.22rem rgba(22, 163, 74, 0.28),
		0 2px 8px rgba(22, 163, 74, 0.3);
}

.form-check.form-switch .form-check-input:not(:checked):focus {
	box-shadow:
		0 0 0 0.22rem rgba(239, 68, 68, 0.25),
		0 2px 8px rgba(239, 68, 68, 0.25);
}

.form-check.form-switch .form-check-label {
	font-weight: 500;
	font-size: 0.95rem;
	line-height: 1.3;
	padding-left: 0.4rem;
	color: inherit;
	cursor: pointer;
	user-select: none;
}

/* Compact switches in permission matrices / dense tables */
.erp-switch-sm,
.permission-matrix .form-check.form-switch {
	justify-content: center;
	padding-left: 0;
	min-height: 2.15rem;
	margin-bottom: 0;
}

.erp-switch-sm .form-check-input,
.permission-matrix .form-check.form-switch .form-check-input {
	margin-left: 0;
	float: none;
	width: 3.35rem !important;
	height: 1.85rem !important;
	background-size: 1.4rem 1.4rem;
}

.user-switch-row {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem 1.75rem;
	align-items: center;
	padding: 1rem 1.15rem;
	border: 1px solid #e5e7eb;
	border-radius: 0.85rem;
	background: #f8fafc;
}

html.dark-theme .user-switch-row {
	background: #1e2430;
	border-color: #343a40;
}

html.dark-theme .form-check.form-switch .form-check-input:checked {
	background-color: #22c55e !important;
	border-color: #16a34a !important;
}

html.dark-theme .form-check.form-switch .form-check-input:not(:checked) {
	background-color: #f87171 !important;
	border-color: #ef4444 !important;
}

.permission-matrix {
	border-radius: 0.75rem;
	overflow: hidden;
}

.permission-matrix thead th {
	background: #f8fafc;
	font-size: 0.85rem;
	font-weight: 600;
	white-space: nowrap;
}

.permission-matrix tbody tr:hover {
	background: rgba(34, 197, 94, 0.04);
}

.permission-matrix td,
.permission-matrix th {
	padding: 0.85rem 0.75rem;
}

html.dark-theme .permission-matrix thead th {
	background: #1a1d21;
}


/* Kanban orders board */
.kanban-board {
	display: flex;
	gap: 1rem;
	overflow-x: auto;
	padding-bottom: 1rem;
	align-items: flex-start;
}

.kanban-column {
	min-width: 260px;
	flex: 1 1 260px;
	background: #f8f9fa;
	border-radius: 0.5rem;
	padding: 0.75rem;
}

.kanban-column-header {
	padding: 0.65rem 0.85rem;
	border-radius: 0.4rem;
	font-weight: 600;
	margin-bottom: 0.75rem;
	font-size: 0.95rem;
}

.kanban-col-preparing { background: #dbeafe; color: #1e40af; }
.kanban-col-pending { background: #fef3c7; color: #92400e; }
.kanban-col-ready { background: #e0e7ff; color: #3730a3; }
.kanban-col-open { background: #fce7f3; color: #9d174d; }
.kanban-col-completed { background: #d1fae5; color: #065f46; }

/* Reports */
.report-type-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
}

.report-type-tab {
	display: inline-flex;
	align-items: center;
	padding: 0.45rem 0.9rem;
	border-radius: 999px;
	border: 1px solid #dbe1ea;
	background: #fff;
	color: #334155;
	text-decoration: none;
	font-size: 0.9rem;
	font-weight: 600;
	transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.report-type-tab:hover {
	border-color: #94a3b8;
	color: #0f172a;
}

.report-type-tab.active {
	background: #0f766e;
	border-color: #0f766e;
	color: #fff;
}

/* Qaranlıq rejim: ağ düymələrdə mətn qara olsun (oxunaqlı) */
html.dark-theme .report-type-tab,
html.semi-dark .report-type-tab {
	background: #fff;
	border-color: #cbd5e1;
	color: #111 !important;
}

html.dark-theme .report-type-tab:hover,
html.semi-dark .report-type-tab:hover {
	background: #f8fafc;
	color: #000 !important;
}

html.dark-theme .report-type-tab.active,
html.semi-dark .report-type-tab.active {
	background: #0f766e;
	border-color: #0f766e;
	color: #fff !important;
}

.report-stat-card {
	border-radius: 0.75rem;
	overflow: hidden;
	position: relative;
}

.report-stat-card::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 4px;
}

.report-card-blue::before { background: #2563eb; }
.report-card-green::before { background: #16a34a; }
.report-card-orange::before { background: #f77b00; }
.report-card-navy::before { background: #1e3a5f; }
.report-card-teal::before { background: #0f766e; }
.report-card-purple::before { background: #7c3aed; }
.report-card-slate::before { background: #475569; }

.report-stat-line + .report-stat-line {
	margin-top: 0.35rem;
	padding-top: 0.35rem;
	border-top: 1px dashed #eef2f7;
}

.product-stats-row .report-stat-card {
	height: 118px;
}

.product-stats-row .report-stat-card .card-body {
	padding: 0.55rem 0.85rem;
	height: 100%;
}

.product-stats-row .report-stat-card h6 {
	margin-bottom: 0.2rem !important;
	font-size: 0.85rem;
}

.product-stats-row .report-stat-card .fs-4 {
	font-size: 1.25rem !important;
	line-height: 1.15;
}

.product-stats-row .report-stat-line + .report-stat-line {
	margin-top: 0.2rem;
	padding-top: 0.2rem;
}

.product-trade-stats-row .report-stat-card {
	height: auto;
	min-height: 0;
}

.product-trade-stats-row .report-stat-card .card-body {
	padding: 0.55rem 0.85rem 0.6rem;
}

.product-trade-stats-row .report-stat-card h6 {
	margin-bottom: 0.25rem !important;
	font-size: 0.85rem;
}

.product-trade-stats-row .report-stat-line + .report-stat-line {
	margin-top: 0.2rem;
	padding-top: 0.2rem;
}

.per-page-wrap .form-select {
	min-height: 31px;
}

.kanban-card {
	background: #fff;
	border-radius: 0.4rem;
	padding: 0.75rem;
	margin-bottom: 0.65rem;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
	border: 1px solid #eee;
}

/* Dining tables */
.tables-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 1rem;
}

.table-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 0.5rem;
	padding: 1.25rem 1rem;
	text-align: center;
	min-height: 110px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	transition: box-shadow 0.15s ease;
}

.table-card:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.table-card.occupied {
	border-color: #fca5a5;
	background: #fef2f2;
}

.table-card.free {
	border-color: #86efac;
	background: #f0fdf4;
}

/* POS layout — sol səbət (tam hündürlük), sağda barkod + məhsullar */
.pos-layout {
	display: grid;
	grid-template-columns: minmax(360px, 420px) 1fr;
	gap: 1rem;
	min-height: calc(100vh - 180px);
}

@media (max-width: 992px) {
	.pos-layout {
		grid-template-columns: 1fr;
	}
}

.pos-cart-panel,
.pos-products-panel {
	background: #fff;
	border-radius: 0.5rem;
	border: 1px solid #e9ecef;
	padding: 1rem;
}

.pos-cart-panel {
	display: flex;
	flex-direction: column;
	min-height: 0;
	height: 100%;
	overflow: hidden;
}

.pos-products-panel > .pos-top-bar {
	flex-shrink: 0;
}

.pos-cart-scroll {
	flex: 1 1 0;
	overflow-y: auto;
	min-height: 0;
}

.pos-cart-footer {
	flex-shrink: 0;
	background: #fff;
	position: relative;
	bottom: auto;
	z-index: 2;
}

.pos-cart-actions {
	flex-shrink: 0;
}

.pos-window-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
}

.pos-window-tab.has-items:not(.active) {
	border-color: #f59e0b;
	color: #b45309;
}

/* POS ?m?liyyat d�ym?l?ri � dolu r?ng + hover k?nar par?lt?s? */
.pos-glow-btn {
	border: 1px solid transparent !important;
	color: #fff !important;
	font-weight: 600;
	box-shadow: none;
	transition: box-shadow 0.25s ease, filter 0.25s ease, transform 0.15s ease;
}

.pos-glow-btn:hover:not(:disabled),
.pos-glow-btn:focus-visible:not(:disabled) {
	color: #fff !important;
	filter: brightness(1.08);
	transform: translateY(-1px);
}

.pos-glow-btn:disabled {
	opacity: 0.45;
	filter: grayscale(0.25);
	box-shadow: none !important;
	transform: none;
}

.pos-glow-btn.pos-glow-danger {
	background: #dc3545 !important;
	border-color: #dc3545 !important;
}
.pos-glow-btn.pos-glow-danger:hover:not(:disabled),
.pos-glow-btn.pos-glow-danger:focus-visible:not(:disabled) {
	background: #dc3545 !important;
	box-shadow:
		-6px 0 14px rgba(220, 53, 69, 0.75),
		6px 0 14px rgba(220, 53, 69, 0.75),
		0 0 10px rgba(220, 53, 69, 0.45);
}

.pos-glow-btn.pos-glow-warning {
	background: #fd7e14 !important;
	border-color: #fd7e14 !important;
}
.pos-glow-btn.pos-glow-warning:hover:not(:disabled),
.pos-glow-btn.pos-glow-warning:focus-visible:not(:disabled) {
	background: #fd7e14 !important;
	box-shadow:
		-6px 0 14px rgba(253, 126, 20, 0.8),
		6px 0 14px rgba(253, 126, 20, 0.8),
		0 0 10px rgba(253, 126, 20, 0.5);
}

.pos-glow-btn.pos-glow-primary {
	background: #0d6efd !important;
	border-color: #0d6efd !important;
}
.pos-glow-btn.pos-glow-primary:hover:not(:disabled),
.pos-glow-btn.pos-glow-primary:focus-visible:not(:disabled) {
	background: #0d6efd !important;
	box-shadow:
		-6px 0 14px rgba(13, 110, 253, 0.75),
		6px 0 14px rgba(13, 110, 253, 0.75),
		0 0 10px rgba(13, 110, 253, 0.45);
}

html.dark-theme .pos-glow-btn.pos-glow-danger:hover:not(:disabled),
html.dark-theme .pos-glow-btn.pos-glow-danger:focus-visible:not(:disabled) {
	box-shadow:
		-8px 0 18px rgba(255, 80, 100, 0.85),
		8px 0 18px rgba(255, 80, 100, 0.85),
		0 0 12px rgba(255, 80, 100, 0.55);
}
html.dark-theme .pos-glow-btn.pos-glow-warning:hover:not(:disabled),
html.dark-theme .pos-glow-btn.pos-glow-warning:focus-visible:not(:disabled) {
	box-shadow:
		-8px 0 18px rgba(255, 160, 60, 0.9),
		8px 0 18px rgba(255, 160, 60, 0.9),
		0 0 12px rgba(255, 160, 60, 0.55);
}
html.dark-theme .pos-glow-btn.pos-glow-primary:hover:not(:disabled),
html.dark-theme .pos-glow-btn.pos-glow-primary:focus-visible:not(:disabled) {
	box-shadow:
		-8px 0 18px rgba(80, 150, 255, 0.85),
		8px 0 18px rgba(80, 150, 255, 0.85),
		0 0 12px rgba(80, 150, 255, 0.55);
}

#cartBody tr.cart-row-selected,
#cartBody tr.cart-row-selected td {
	background-color: rgba(13, 110, 253, 0.12) !important;
	outline: 1px solid rgba(13, 110, 253, 0.35);
}

#cartBody tr.cart-row:hover td {
	background-color: rgba(13, 110, 253, 0.05);
}

.pos-terminal-tabs {
	display: flex;
	gap: 0.35rem;
	flex-wrap: wrap;
}

.pos-category-icons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 1rem;
}

.pos-category-btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 78px;
	height: 78px;
	border: 1px solid #e5e7eb;
	border-radius: 0.5rem;
	background: #fff;
	cursor: pointer;
	font-size: 0.75rem;
	padding: 0.35rem;
	text-decoration: none;
	color: inherit;
}

.pos-category-btn.active,
.pos-category-btn:hover {
	border-color: #0d6efd;
	background: #eff6ff;
	color: #0d6efd;
}

.pos-category-btn i {
	font-size: 1.5rem;
	margin-bottom: 0.25rem;
}

.pos-products-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 0.75rem;
	width: 100%;
}

.pos-products-pager .btn-group .btn {
	min-width: 2.25rem;
}

.pos-product-card {
	border: 1px solid #e5e7eb;
	border-radius: 0.5rem;
	padding: 0.65rem;
	text-align: center;
	cursor: pointer;
	background: #fff;
	min-width: 0;
}

.pos-product-card:hover {
	border-color: #0d6efd;
	box-shadow: 0 2px 8px rgba(13, 110, 253, 0.15);
}

.pos-product-card img {
	width: min(100px, 72%);
	height: auto;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: 0.35rem;
	margin-bottom: 0.35rem;
}

.pos-product-barcode {
	color: #ff6c00 !important;
	font-size: clamp(11px, 1.05vw + 9px, 13px);
	line-height: 1.25;
	font-weight: 700;
	letter-spacing: 0.03em;
	word-break: break-word;
	overflow-wrap: anywhere;
	margin: 0.15rem 0 0.2rem;
	max-width: 100%;
}

.pos-product-price {
	font-size: clamp(1rem, 0.9vw + 0.8rem, 1.2rem);
	line-height: 1.2;
	font-weight: 700;
	margin-top: 0.1rem;
}

.pos-barcode-wrap {
	position: relative;
	width: 100%;
	z-index: 5;
}

.pos-barcode-wrap > .input-group {
	flex-wrap: nowrap;
	align-items: stretch;
}

.pos-barcode-wrap > .input-group > .form-control {
	min-width: 0;
}

.pos-barcode-wrap > .input-group-lg > .form-control,
.pos-barcode-wrap > .input-group-lg > .btn {
	min-height: 48px;
	height: 48px;
	box-sizing: border-box;
}

.pos-barcode-wrap > .input-group-lg > .btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	padding-top: 0;
	padding-bottom: 0;
	line-height: 1;
}

.pos-barcode-suggest {
	position: absolute;
	left: 0;
	right: 0;
	top: calc(100% + 4px);
	z-index: 1060;
	display: flex;
	flex-direction: column;
	max-height: min(52vh, 360px);
	overflow-y: auto;
	overflow-x: hidden;
	background: #fff;
	border: 1px solid #dbe3ee;
	border-radius: 0.65rem;
	box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
}

.pos-barcode-suggest.d-none {
	display: none !important;
}

.pos-barcode-suggest-item {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	width: 100%;
	margin: 0;
	padding: 0.75rem 1rem;
	border: 0;
	border-bottom: 1px solid #eef2f7;
	border-radius: 0;
	background: #fff;
	text-align: left;
	cursor: pointer;
}

.pos-barcode-suggest-item:last-child {
	border-bottom: 0;
}

.pos-barcode-suggest-item:hover,
.pos-barcode-suggest-item.is-active {
	background: #fff7ed;
}

.pos-barcode-suggest-name {
	font-weight: 700;
	font-size: 1rem;
	line-height: 1.3;
	color: #0f172a;
}

.pos-barcode-suggest-meta {
	font-size: 0.9rem;
	color: #ff6c00 !important;
	font-weight: 700;
	margin-top: 0.2rem;
	word-break: break-word;
}

.pos-barcode-suggest-price {
	flex-shrink: 0;
	font-weight: 700;
	font-size: 1.05rem;
	color: #0d6efd;
	white-space: nowrap;
}

.pos-barcode-suggest-empty {
	padding: 0.85rem 1rem;
	font-size: 0.9rem;
	color: #64748b;
}

html.dark-theme .pos-barcode-suggest {
	background: #1f2937;
	border-color: #374151;
}

html.dark-theme .pos-barcode-suggest-item {
	border-bottom-color: #374151;
}

html.dark-theme .pos-barcode-suggest-item:hover,
html.dark-theme .pos-barcode-suggest-item.is-active {
	background: #2a3441;
}

html.dark-theme .pos-barcode-suggest-name {
	color: #f8fafc;
}

@media (max-width: 576px) {
	.pos-barcode-suggest {
		max-height: min(45vh, 300px);
	}

	.pos-barcode-suggest-item {
		padding: 0.65rem 0.8rem;
		gap: 0.65rem;
	}

	.pos-barcode-suggest-name {
		font-size: 0.95rem;
	}

	.pos-barcode-suggest-price {
		font-size: 0.95rem;
	}
}

/* PIN pad */
.pin-pad {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0.65rem;
	max-width: 280px;
	margin: 0 auto;
}

.pin-pad .btn {
	height: 56px;
	font-size: 1.25rem;
	font-weight: 600;
}

/* Compact keypad (auth override modal) */
.pin-pad-compact {
	max-width: 220px;
	gap: 0.4rem;
}

.pin-pad-compact .btn {
	height: 42px;
	font-size: 1.05rem;
	padding: 0.25rem;
	min-width: 0;
}

.auth-pin-display {
	font-size: 1.35rem;
	letter-spacing: 0.35em;
	max-width: 220px;
	margin-left: auto;
	margin-right: auto;
	background: #f8f9fa;
	cursor: default;
}

.pin-display {
	letter-spacing: 0.4em;
	font-size: 1.75rem;
	text-align: center;
	font-weight: 600;
}

/* Stock adjust */
.stock-action-btn {
	min-height: 120px;
	font-size: 1.25rem;
	font-weight: 600;
}

.product-thumb {
	width: 48px;
	height: 48px;
	object-fit: cover;
	border-radius: 0.35rem;
	border: 1px solid #e9ecef;
	background: #f8f9fa;
	display: inline-block;
	vertical-align: middle;
}

.product-thumb-lg {
	width: 120px;
	height: 120px;
	object-fit: cover;
	border-radius: 0.5rem;
	background: #f8f9fa;
}

.permission-matrix td,
.permission-matrix th {
	vertical-align: middle;
	text-align: center;
}

.permission-matrix td:first-child,
.permission-matrix th:first-child {
	text-align: left;
}

html.dark-theme .kanban-column,
html.dark-theme .pos-cart-panel,
html.dark-theme .pos-products-panel,
html.dark-theme .pos-product-card,
html.dark-theme .pos-category-btn,
html.dark-theme .table-card,
html.dark-theme .kanban-card {
	background: #212529;
	border-color: #343a40;
	color: #e9ecef;
}

/* Table Prosesl?r � Forntdizayn order-actions */
.order-actions {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.order-actions a,
.order-actions .order-action-btn {
	font-size: 18px;
	width: 34px;
	height: 34px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #fffdf4;
	border: 1px solid #f3d97a;
	border-radius: 8px;
	color: #2b2a2a;
	padding: 0;
	line-height: 1;
	cursor: pointer;
	text-decoration: none;
	box-shadow: 0 0 0 1px rgba(243, 217, 122, 0.2) inset;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.order-actions a:hover,
.order-actions .order-action-btn:hover {
	background: #fff7da;
	border-color: #e8c44f;
	box-shadow: 0 4px 10px rgba(232, 196, 79, 0.18);
}

.order-actions a.text-primary,
.order-actions .order-action-btn.text-primary {
	color: #0d6efd !important;
}

.order-actions a.text-danger,
.order-actions .order-action-btn.text-danger {
	color: #dc3545 !important;
}

.order-actions form {
	display: inline-flex;
	margin: 0;
}

html.dark-theme .order-actions a,
html.dark-theme .order-actions .order-action-btn {
	background: #3a3424;
	border-color: #8d7422;
	color: #e9ecef;
}

/* POS standalone window (no sidebar) */
body.pos-standalone-body {
	margin: 0;
	background: #f4f5f7;
	height: 100vh;
	max-height: 100vh;
	overflow: hidden;
}

.pos-standalone-shell {
	height: 100vh;
	max-height: 100vh;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.pos-toast-host {
	display: none !important;
}

.pos-standalone-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.65rem 1.25rem;
	background: #fff;
	border-bottom: 1px solid #e9ecef;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
	flex-shrink: 0;
	position: sticky;
	top: 0;
	z-index: 20;
}

.pos-add-customer-btn {
	width: 32px;
	height: 32px;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: none;
	border-radius: 0.45rem;
	background: #7c6cf0;
	color: #fff;
	flex-shrink: 0;
	line-height: 1;
	box-shadow: 0 1px 3px rgba(124, 108, 240, 0.35);
}

.pos-add-customer-btn:hover,
.pos-add-customer-btn:focus {
	background: #6a5ae0;
	color: #fff;
}

.pos-add-customer-btn i {
	font-size: 1.15rem;
}

.pos-standalone-main {
	flex: 1;
	padding: 1rem 1.25rem 1.5rem;
	min-height: 0;
	display: flex;
	flex-direction: column;
	position: relative;
	overflow: hidden;
}

.pos-standalone-main > .pos-top-bar {
	flex-shrink: 0;
}

body.pos-standalone-body .pos-layout {
	flex: 1 1 auto;
	min-height: 0;
	height: auto;
	max-height: 100%;
	align-items: stretch;
	overflow: hidden;
}

body.pos-standalone-body .pos-cart-panel,
body.pos-standalone-body .pos-products-panel {
	min-height: 0;
	max-height: 100%;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

body.pos-standalone-body .pos-products-panel {
	overflow: auto;
}

body.pos-standalone-body .pos-cart-scroll {
	flex: 1 1 0;
	min-height: 0;
	max-height: none;
	overflow-y: auto;
	overflow-x: hidden;
	scrollbar-gutter: stable;
}

body.pos-standalone-body .pos-cart-actions,
body.pos-standalone-body .pos-cart-footer {
	flex-shrink: 0;
}

body.pos-standalone-body .pos-window-tabs {
	flex-shrink: 0;
}

body.pos-standalone-body .pos-products-panel > .pos-top-bar,
body.pos-standalone-body .mb-3:has(#barcodeInput),
body.pos-standalone-body .mb-2:has(#barcodeInput) {
	flex-shrink: 0;
}

@media (max-width: 992px) {
	body.pos-standalone-body .pos-layout {
		height: auto;
		min-height: calc(100vh - 110px);
		overflow: visible;
	}

	body.pos-standalone-body .pos-cart-panel {
		min-height: 50vh;
		max-height: 70vh;
	}
}

html.dark-theme body.pos-standalone-body,
html.dark-theme .pos-standalone-body {
	background: #1a1d20;
}

html.dark-theme .pos-standalone-header {
	background: #212529;
	border-color: #343a40;
}

/* Barcode camera scanner frame */
.barcode-scanner-stage {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 3;
	min-height: 280px;
	background: #0b0f14;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid #1f2937;
}

.barcode-scanner-video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	background: #0b0f14;
}

.barcode-scanner-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
	background: radial-gradient(ellipse at center, transparent 35%, rgba(0, 0, 0, 0.45) 100%);
}

.barcode-scanner-frame {
	position: relative;
	width: min(78%, 360px);
	height: 120px;
	border: 2px solid rgba(34, 197, 94, 0.55);
	border-radius: 10px;
	box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.28);
}

.barcode-scanner-frame .corner {
	position: absolute;
	width: 22px;
	height: 22px;
	border: 3px solid #22c55e;
}

.barcode-scanner-frame .corner.tl { top: -2px; left: -2px; border-right: 0; border-bottom: 0; border-top-left-radius: 8px; }
.barcode-scanner-frame .corner.tr { top: -2px; right: -2px; border-left: 0; border-bottom: 0; border-top-right-radius: 8px; }
.barcode-scanner-frame .corner.bl { bottom: -2px; left: -2px; border-right: 0; border-top: 0; border-bottom-left-radius: 8px; }
.barcode-scanner-frame .corner.br { bottom: -2px; right: -2px; border-left: 0; border-top: 0; border-bottom-right-radius: 8px; }

.barcode-scanner-frame .scan-line {
	position: absolute;
	left: 8%;
	right: 8%;
	top: 50%;
	height: 2px;
	background: linear-gradient(90deg, transparent, #4ade80, transparent);
	animation: barcodeScanLine 1.6s ease-in-out infinite;
}

/* Sidebar bölmə başlıqları */
.sidebar-wrapper .metismenu li.menu-label {
	padding: 18px 20px 6px 20px;
	color: #8e8e8e;
	text-transform: none;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.3px;
	pointer-events: none;
	list-style: none;
}

html.dark-theme .sidebar-wrapper .metismenu li.menu-label {
	color: #9aa0a6;
}

/* QR icon � bu Boxicons paketind? bx-qr / bx-qr-scan yoxdur, SVG il? ?v?z */
.bx.bx-qr:before,
.bx.bx-qr-scan:before,
.sidebar-wrapper .bx-qr:before,
.sidebar-wrapper .bx-qr-scan:before {
	content: "" !important;
	display: inline-block !important;
	width: 1.15em !important;
	height: 1.15em !important;
	vertical-align: -0.15em !important;
	background-color: currentColor !important;
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M3 3h8v8H3V3zm2 2v4h4V5H5zm8-2h8v8h-8V3zm2 2v4h4V5h-4zM3 13h8v8H3v-8zm2 2v4h4v-4H5zm13-2h1v2h-1v-2zm-3 0h2v1h-1v1h-1v-2zm0 3h1v1h-1v-1zm2 1h1v1h1v1h-2v-1h-1v-1h1v-1zm1-1h1v1h-1v-1zm-1 3h1v2h-2v-1h1v-1zm3-1h1v3h-3v-1h2v-2zm-6 0h1v1H14v-1zm-1 2h2v2h-1v-1h-1v-1z'/%3E%3C/svg%3E") !important;
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M3 3h8v8H3V3zm2 2v4h4V5H5zm8-2h8v8h-8V3zm2 2v4h4V5h-4zM3 13h8v8H3v-8zm2 2v4h4v-4H5zm13-2h1v2h-1v-2zm-3 0h2v1h-1v1h-1v-2zm0 3h1v1h-1v-1zm2 1h1v1h1v1h-2v-1h-1v-1h1v-1zm1-1h1v1h-1v-1zm-1 3h1v2h-2v-1h1v-1zm3-1h1v3h-3v-1h2v-2zm-6 0h1v1H14v-1zm-1 2h2v2h-1v-1h-1v-1z'/%3E%3C/svg%3E") !important;
	-webkit-mask-repeat: no-repeat !important;
	mask-repeat: no-repeat !important;
	-webkit-mask-position: center !important;
	mask-position: center !important;
	-webkit-mask-size: contain !important;
	mask-size: contain !important;
}

@keyframes barcodeScanLine {
	0%, 100% { transform: translateY(-36px); opacity: 0.35; }
	50% { transform: translateY(36px); opacity: 1; }
}

/* ��� Professional flash alert (viewport-centered; JS moves to body) ��� */
body.erp-alert-lock {
	overflow: hidden !important;
}

.erp-alert#erpNotifyModal {
	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	z-index: 2147483000 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 1.25rem !important;
	margin: 0 !important;
	width: 100vw !important;
	height: 100vh !important;
	max-width: none !important;
	transform: none !important;
	pointer-events: auto !important;
}

/* T?sdiq modal? � yaln?z .is-open olanda g�r�ns�n (body > .erp-alert qaydas? pozmas?n) */
#erpConfirmModal.erp-alert {
	display: none !important;
}
#erpConfirmModal.erp-alert.is-open {
	display: flex !important;
	position: fixed !important;
	inset: 0 !important;
	z-index: 2147483100 !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 1.25rem !important;
	margin: 0 !important;
	width: 100vw !important;
	height: 100vh !important;
}

.erp-alert-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.55);
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
}

.erp-alert-card {
	position: relative;
	z-index: 1;
	width: min(100%, 400px);
	padding: 2rem 1.75rem 1.6rem;
	border-radius: 1.25rem;
	text-align: center !important;
	background: #ffffff;
	border: 1px solid rgba(15, 23, 42, 0.06);
	box-shadow:
		0 24px 60px rgba(15, 23, 42, 0.22),
		0 4px 14px rgba(15, 23, 42, 0.08);
	transform: translateY(12px) scale(0.96);
	transition: transform .22s cubic-bezier(.2, .8, .2, 1);
}

.erp-alert.is-open .erp-alert-card {
	transform: translateY(0) scale(1);
}

.erp-alert-close {
	position: absolute;
	top: 0.85rem;
	right: 0.85rem;
	width: 2rem;
	height: 2rem;
	border: 0;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: rgba(15, 23, 42, 0.05);
	color: #64748b;
	font-size: 1.2rem;
	line-height: 1;
	cursor: pointer;
	transition: background .15s ease, color .15s ease, transform .15s ease;
}

.erp-alert-close:hover {
	background: rgba(15, 23, 42, 0.1);
	color: #0f172a;
	transform: scale(1.05);
}

.erp-alert-icon {
	display: flex;
	justify-content: center;
	margin: 0.25rem 0 1.15rem;
}

.erp-alert-icon-ring {
	width: 84px;
	height: 84px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 2.6rem;
	line-height: 1;
	border: 3px solid currentColor;
	background: transparent;
	animation: erpAlertPop .35s cubic-bezier(.2, .8, .2, 1) both;
}

.erp-alert-icon-ring i {
	display: block;
	line-height: 1;
}

.erp-alert-success .erp-alert-icon-ring {
	color: #16a34a;
	background: rgba(22, 163, 74, 0.1);
	box-shadow: 0 10px 24px rgba(22, 163, 74, 0.18);
}

.erp-alert-error .erp-alert-icon-ring {
	color: #dc2626;
	background: rgba(220, 38, 38, 0.1);
	box-shadow: 0 10px 24px rgba(220, 38, 38, 0.18);
}

.erp-alert-warning .erp-alert-icon-ring {
	color: #d97706;
	background: rgba(217, 119, 6, 0.1);
	box-shadow: 0 10px 24px rgba(217, 119, 6, 0.18);
}

.erp-alert-info .erp-alert-icon-ring {
	color: #2563eb;
	background: rgba(37, 99, 235, 0.1);
	box-shadow: 0 10px 24px rgba(37, 99, 235, 0.18);
}

.erp-alert-title {
	margin: 0 0 0.45rem;
	font-size: 1.45rem;
	font-weight: 700;
	letter-spacing: -0.03em;
	color: #0f172a;
	text-align: center !important;
}

.erp-alert-text {
	margin: 0 0 1.4rem;
	font-size: 0.98rem;
	line-height: 1.55;
	color: #64748b;
	white-space: pre-line;
	text-align: center !important;
}

.erp-alert-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 148px;
	padding: 0.72rem 1.6rem;
	border: 0;
	border-radius: 0.75rem;
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: #fff !important;
	cursor: pointer;
	transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.erp-alert-btn:hover {
	transform: translateY(-1px);
	filter: brightness(1.05);
}

.erp-alert-btn:active {
	transform: translateY(0);
}

.erp-alert-success .erp-alert-btn {
	background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
	box-shadow: 0 8px 20px rgba(22, 163, 74, 0.35);
}

.erp-alert-error .erp-alert-btn {
	background: linear-gradient(180deg, #f87171 0%, #dc2626 100%);
	box-shadow: 0 8px 20px rgba(220, 38, 38, 0.35);
}

.erp-alert-warning .erp-alert-btn {
	background: linear-gradient(180deg, #fbbf24 0%, #d97706 100%);
	box-shadow: 0 8px 20px rgba(217, 119, 6, 0.35);
}

.erp-alert-info .erp-alert-btn {
	background: linear-gradient(180deg, #60a5fa 0%, #2563eb 100%);
	box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}

@keyframes erpAlertPop {
	from { transform: scale(0.7); opacity: 0; }
	to { transform: scale(1); opacity: 1; }
}

/* Dark theme */
html.dark-theme .erp-alert-backdrop {
	background: rgba(2, 6, 23, 0.72);
}

html.dark-theme .erp-alert-card {
	background: #1e2430;
	border-color: rgba(255, 255, 255, 0.08);
	box-shadow:
		0 28px 70px rgba(0, 0, 0, 0.55),
		0 4px 16px rgba(0, 0, 0, 0.35);
}

html.dark-theme .erp-alert-close {
	background: rgba(255, 255, 255, 0.06);
	color: #94a3b8;
}

html.dark-theme .erp-alert-close:hover {
	background: rgba(255, 255, 255, 0.12);
	color: #f8fafc;
}

html.dark-theme .erp-alert-title {
	color: #f8fafc;
}

html.dark-theme .erp-alert-text {
	color: #94a3b8;
}

html.dark-theme .erp-alert-success .erp-alert-icon-ring {
	color: #4ade80;
	background: rgba(34, 197, 94, 0.14);
}

html.dark-theme .erp-alert-error .erp-alert-icon-ring {
	color: #f87171;
	background: rgba(248, 113, 113, 0.14);
}

html.dark-theme .erp-alert-warning .erp-alert-icon-ring {
	color: #fbbf24;
	background: rgba(251, 191, 36, 0.14);
}

html.dark-theme .erp-alert-info .erp-alert-icon-ring {
	color: #60a5fa;
	background: rgba(96, 165, 250, 0.14);
}

/* Legacy class cleanup (no Bootstrap modal conflict) */
.erp-notify-dropdown {
	min-width: min(360px, 92vw);
	max-width: 92vw;
}

.erp-notify-list {
	max-height: 360px;
	overflow-y: auto;
}

.erp-notify-list .dropdown-item {
	white-space: normal;
	border-bottom: 1px solid rgba(0,0,0,.06);
}




.stock-pick-name {
	text-align: left;
}

.stock-pick-price {
	font-weight: 600;
	color: #1e293b;
}

.stock-pick-qty {
	margin-top: 0.2rem;
	font-size: 0.95rem;
}

.stock-pick-barcode {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	letter-spacing: 0.02em;
}

.stock-qty-group .form-control {
	max-width: none;
}

.stock-qty-group .btn {
	min-width: 3rem;
}


/* Settings QZ Tray help � dark mode white, light mode unchanged */
html.dark-theme .erp-settings-help,
html.dark-theme .erp-settings-help.form-text,
html.dark-theme .erp-settings-help.text-muted {
	color: #ffffff !important;
}
html.dark-theme .erp-settings-help a {
	color: #93c5fd !important;
}
html.dark-theme .erp-settings-help strong {
	color: #ffffff !important;
}
html.dark-theme .erp-settings-help code {
	color: #fde68a !important;
	background: rgba(255, 255, 255, 0.08);
}
