/* posawesome bundle — pos.css */

/* modern-normalize v2.0.0 — merged (was separate vendor request) */
/*! modern-normalize v2.0.0 | MIT License | https://github.com/sindresorhus/modern-normalize */
*,
::after,
::before {
	box-sizing: border-box;
}
html {
	font-family:
		system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji',
		'Segoe UI Emoji';
	line-height: 1.15;
	-webkit-text-size-adjust: 100%;
	-moz-tab-size: 4;
	tab-size: 4;
}
body {
	margin: 0;
}
hr {
	height: 0;
	color: inherit;
}
abbr[title] {
	text-decoration: underline dotted;
}
b,
strong {
	font-weight: bolder;
}
code,
kbd,
pre,
samp {
	font-family: ui-monospace, SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace;
	font-size: 1em;
}
small {
	font-size: 80%;
}
sub,
sup {
	font-size: 75%;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}
sub {
	bottom: -0.25em;
}
sup {
	top: -0.5em;
}
table {
	text-indent: 0;
	border-color: inherit;
}
button,
input,
optgroup,
select,
textarea {
	font-family: inherit;
	font-size: 100%;
	line-height: 1.15;
	margin: 0;
}
button,
select {
	text-transform: none;
}
[type='button'],
[type='reset'],
[type='submit'],
button {
	-webkit-appearance: button;
}
::-moz-focus-inner {
	border-style: none;
	padding: 0;
}
:-moz-focusring {
	outline: 1px dotted ButtonText;
}
:-moz-ui-invalid {
	box-shadow: none;
}
legend {
	padding: 0;
}
progress {
	vertical-align: baseline;
}
::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
	height: auto;
}
[type='search'] {
	-webkit-appearance: textfield;
	outline-offset: -2px;
}
::-webkit-search-decoration {
	-webkit-appearance: none;
}
::-webkit-file-upload-button {
	-webkit-appearance: button;
	font: inherit;
}
summary {
	display: list-item;
}

/* Above-the-fold /pos — inlined in HTML; full theme in pos.css (async) */
:root {
	/* Antique gold fabric palette — mid #A68D44, highlight #CBB677, shadow #5C4E29 */
	--pos-nav-h: 32px;
	--pos-bg: #e5d4b0;
	--pos-bg-gradient: linear-gradient(160deg, #e5d4b0 0%, #d9c9a3 48%, #cfc09a 100%);
	--pos-surface: #cfc09a;
	--pos-surface-input: #e5d4b0;
	--pos-border: rgba(140, 115, 64, 0.4);
	--pos-border-subtle: rgba(140, 115, 64, 0.22);
	--pos-text: #4b4124;
	--pos-text-dim: #8c7340;
	--pos-text-accent: #a68d44;
	--pos-accent-bg: rgba(166, 141, 68, 0.22);
	--pos-text-price: #5c4e29;
}
.pos-body {
	margin: 0;
	padding: 0;
	min-height: 100vh;
	font-family:
		system-ui,
		-apple-system,
		'Segoe UI',
		Tahoma,
		sans-serif;
	font-size: 13px;
	background: var(--pos-bg-gradient);
	color: var(--pos-text);
	overflow: hidden;
}
.pos-loading {
	position: fixed;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--pos-bg);
	z-index: 9999;
}
.pos-loading[hidden],
.pos-app[hidden],
.pos-dialog[hidden],
.freeze-overlay[hidden],
.snack[hidden] {
	display: none !important;
}
.pos-loading-inner {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--pos-text-accent);
	font-weight: 600;
}
.pos-loading-spinner {
	width: 18px;
	height: 18px;
	border: 2px solid rgba(203, 182, 119, 0.35);
	border-top-color: var(--pos-text-accent);
	border-radius: 50%;
	animation: pos-spin 0.8s linear infinite;
	flex-shrink: 0;
}
@keyframes pos-spin {
	to {
		transform: rotate(360deg);
	}
}
.pos-app {
	display: flex;
	flex-direction: column;
	height: 100vh;
	font-size: 0.8rem;
	color: var(--pos-text);
}
.navbar {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 2px 6px;
	height: var(--pos-nav-h);
	background: linear-gradient(180deg, #cbb677 0%, #a68d44 55%, #8c7340 100%);
	border-bottom: 1px solid var(--pos-border);
	flex-shrink: 0;
}
.pos-main {
	display: flex;
	flex-direction: column;
	gap: 5px;
	flex: 1;
	min-height: 0;
	padding: 3px;
}
.pos-panels-row {
	display: flex;
	gap: 5px;
	flex: 1;
	min-height: 0;
	min-width: 0;
}
.pos-left-panel,
.pos-right-panel {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: 0;
}
.pos-panel,
.items-selector,
.invoice {
	flex: 1;
	display: flex;
	flex-direction: column;
	background: var(--pos-surface);
	border-radius: 8px;
	border: 1px solid var(--pos-border-subtle);
	overflow: hidden;
	min-height: 0;
}
.pos-left-panel > .pos-panel {
	flex: 1;
	min-height: 0;
	width: 100%;
}
.items-selector-body {
	flex: 1;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	min-height: 0;
}
.items-selector-list {
	flex: 1;
	overflow-y: auto;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 8px;
	padding: 8px;
	align-content: start;
	min-height: 0;
}
.items-selector-item-card {
	border-radius: 8px;
	cursor: pointer;
	overflow: hidden;
	background: #d9c9a3;
	display: flex;
	flex-direction: column;
	border: 1px solid var(--pos-border-subtle);
}
.items-selector-item-media {
	min-height: 72px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #d9c9a3 0%, #cfc09a 100%);
}
.items-selector-item-abbr {
	font-size: 2.5rem;
	font-weight: 700;
	color: var(--pos-text-dim);
}
.items-selector-item-details {
	padding: 8px;
	background: #d9c9a3;
}
.items-selector-item-name {
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--pos-text);
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}
.items-selector-item-price {
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--pos-text-price);
}

/* pos.css — www/pos standalone HTML/CSS/JS layout */

:root {
	/* Antique gold fabric palette — mid #A68D44, highlight #CBB677, shadow #5C4E29 */
	--pos-primary: #a68d44;
	--pos-accent: #cbb677;
	--pos-accent-bg: rgba(166, 141, 68, 0.22);
	--pos-success: #10b981;
	--pos-danger: #ef5350;
	--pos-nav-h: 32px;
	--pos-bg: #e5d4b0;
	--pos-bg-mid: #d9c9a3;
	--pos-bg-gradient: linear-gradient(160deg, #e5d4b0 0%, #d9c9a3 48%, #cfc09a 100%);
	--pos-surface: #cfc09a;
	--pos-surface-hover: #b8954a;
	--pos-surface-elevated: #d9c9a3;
	--pos-surface-input: #e5d4b0;
	--pos-border: rgba(140, 115, 64, 0.4);
	--pos-border-subtle: rgba(140, 115, 64, 0.22);
	--pos-text: #4b4124;
	--pos-text-muted: #5c4e29;
	--pos-text-dim: #8c7340;
	--pos-text-info: #6b5a32;
	--pos-text-success: #166534;
	--pos-text-warning: #b8954a;
	--pos-text-danger: #c62828;
	--pos-text-accent: #a68d44;
	--pos-text-violet: #8c7340;
	--pos-text-orange: #b8954a;
	--pos-text-blue: #6b5a32;
	--pos-text-green: #166534;
	--pos-text-purple: #8c7340;
	--pos-text-cyan: #8c7340;
	--pos-text-price: #5c4e29;
	--pos-dialog-inset: 8px;
	--pos-dialog-max-w: calc(100vw - 16px);
	--pos-dialog-max-h: calc(100dvh - 16px);
	--pos-dialog-standard-w: 480px;
	--pos-dialog-wide-w: 900px;
	--pos-dialog-narrow-w: 420px;
}

.pos-body {
	margin: 0;
	padding: 0;
	min-height: 100vh;
	font-family:
		system-ui,
		-apple-system,
		'Segoe UI',
		Tahoma,
		sans-serif;
	font-size: 13px;
	background: var(--pos-bg-gradient);
	color: var(--pos-text);
	overflow: hidden;
}

.pos-loading {
	position: fixed;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--pos-bg);
	z-index: 9999;
}

.pos-loading[hidden],
.pos-app[hidden],
.pos-dialog[hidden],
.freeze-overlay[hidden],
.snack[hidden] {
	display: none !important;
}

.pos-loading-inner {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--pos-text-accent);
	font-weight: 600;
}

.pos-loading-spinner {
	width: 18px;
	height: 18px;
	border: 2px solid rgba(203, 182, 119, 0.35);
	border-top-color: var(--pos-text-accent);
	border-radius: 50%;
	animation: pos-spin 0.8s linear infinite;
	flex-shrink: 0;
}

@keyframes pos-spin {
	to {
		transform: rotate(360deg);
	}
}

.pos-visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.pos-app {
	display: flex;
	flex-direction: column;
	height: 100vh;
	font-size: 0.8rem;
}

/* Navbar */
.navbar {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 2px 6px;
	height: var(--pos-nav-h);
	background: linear-gradient(180deg, #cbb677 0%, #a68d44 55%, #8c7340 100%);
	border-bottom: 1px solid var(--pos-border);
	box-shadow: 0 1px 6px rgba(75, 65, 36, 0.25);
	flex-shrink: 0;
}

.navbar-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2px 6px;
	border: 1px solid #9a8248;
	background: #fff8eb;
	cursor: pointer;
	border-radius: 4px;
	flex-shrink: 0;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

#navbar-go-desk {
	padding-right: 0px;
	padding-left: 0px;
	padding-top: 0px;
	border-bottom-width: 0px;
	padding-bottom: 0px;
	border-top-width: 0px;
	border-right-width: 0px;
	border-left-width: 0px;
	background: transparent;
	box-shadow: none;
}

.navbar-logo img {
	height: 22px;
	width: auto;
	display: block;
	opacity: 1;
	filter: none;
}

.navbar-badges {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 3px;
	overflow-x: auto;
	overflow-y: hidden;
	scrollbar-width: thin;
	min-width: 0;
}

.navbar-badge {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	padding: 2px 6px;
	border-radius: 4px;
	border: 1px solid #9a8248;
	background: #e8dcc0;
	color: #3d3420;
	font-size: clamp(0.55rem, 1.6vw, 0.625rem);
	font-weight: 600;
	white-space: nowrap;
	height: 22px;
	max-width: clamp(88px, 16vw, 168px);
	overflow: hidden;
	text-overflow: ellipsis;
	flex-shrink: 0;
}

.navbar-badge i {
	flex-shrink: 0;
	opacity: 0.92;
}

.navbar-badge-profile {
	border-color: #3d3420;
	background: linear-gradient(135deg, #5c4e29 0%, #4a3f22 100%);
	color: #fff8eb;
}

.navbar-badge-user {
	border-color: #5c4e29;
	background: linear-gradient(135deg, #7a6538 0%, #6b5a32 100%);
	color: #fff8eb;
}

.open-shift {
	border-color: #15803d;
	background: linear-gradient(135deg, #166534 0%, #14532d 100%);
	color: #ecfdf5;
}

.closed-shift {
	border-color: #78716c;
	background: linear-gradient(135deg, #a8a29e 0%, #78716c 100%);
	color: #fff8eb;
	font-style: italic;
}

.sales-invoice-mode {
	border-color: rgba(134, 239, 172, 0.5);
	background: linear-gradient(135deg, #14532d 0%, #166534 100%);
	color: #ecfdf5;
}

.navbar-actions {
	display: flex;
	gap: 3px;
}

.navbar-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border-radius: 6px;
	border: 1px solid #7a6538;
	background: #d9c9a3;
	cursor: pointer;
	height: 26px;
	min-width: 26px;
	color: #4b4124;
}

.navbar-btn .mdi {
	font-size: 1.05rem;
	line-height: 1;
}

#navbar-btn-print {
	border-color: #1d4ed8;
	background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
	color: #1e3a8a;
}

#navbar-btn-cache {
	border-color: #166534;
	background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
	color: #14532d;
}

.navbar-btn[hidden] {
	display: none !important;
}

.navbar-btn-danger {
	border-color: #b91c1c;
	background: linear-gradient(135deg, #fecaca 0%, #fca5a5 100%);
	color: #7f1d1d;
}

#navbar-btn-close-shift {
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

/* Toast — fixed overlay; must not affect document flow */
.snack {
	position: fixed;
	top: calc(var(--pos-nav-h, 28px) + 8px);
	left: 50%;
	transform: translateX(-50%);
	min-width: 280px;
	max-width: min(500px, calc(100vw - 24px));
	padding: 12px 20px;
	border-radius: 8px;
	color: #fff;
	font-weight: 600;
	z-index: 2000;
	text-align: center;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	pointer-events: none;
}

.snack-success {
	background: #4caf50;
}
.snack-error {
	background: #f44336;
}
.snack-info {
	background: #2196f3;
}
.snack-warning {
	background: #ff9800;
}

/* Main layout */
.pos-main {
	display: flex;
	flex-direction: column;
	gap: 5px;
	flex: 1;
	min-height: 0;
	padding: 3px;
}

.pos-panels-row {
	display: flex;
	gap: 5px;
	flex: 1;
	min-height: 0;
	min-width: 0;
}

.pos-left-panel,
.pos-right-panel {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: 0;
}

.pos-panel {
	flex: 1;
	display: flex;
	flex-direction: column;
	background: var(--pos-surface);
	border-radius: 8px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
	border: 1px solid var(--pos-border-subtle);
	overflow: hidden;
	min-height: 0;
}

.pos-left-panel > .pos-panel {
	flex: 1;
	min-height: 0;
	width: 100%;
}

.pos-left-panel > .pos-panel[hidden] {
	display: none !important;
}

/* Items selector — from posawesome15_lite ItemsSelector.vue */
.items-selector,
.invoice,
.payments {
	flex: 1;
	display: flex;
	flex-direction: column;
	background: var(--pos-surface);
	border-radius: 8px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
	border: 1px solid var(--pos-border-subtle);
	overflow: hidden;
	min-height: 0;
}

.items-selector-toolbar {
	display: flex;
	gap: 4px;
	padding: 4px;
	background: var(--pos-accent-bg);
	border-bottom: 1px solid var(--pos-border-subtle);
	flex-shrink: 0;
	align-items: center;
}

.items-selector-offers-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	flex-shrink: 0;
	height: 26px;
	padding: 0 10px;
	border: 1px solid var(--pos-border);
	border-radius: 4px;
	background: var(--pos-surface-input);
	color: var(--pos-text);
	font-size: 0.72rem;
	font-weight: 700;
	cursor: pointer;
	white-space: nowrap;
}

.items-selector-offers-btn .mdi {
	font-size: 1.08rem;
	color: #7a6538;
}

.items-selector-offers-btn:hover {
	background: var(--pos-accent-bg);
	border-color: var(--pos-primary);
	color: var(--pos-text-accent);
}

.product-bundles-dialog-header {
	background: linear-gradient(135deg, #8c7340 0%, #a68d44 100%);
}

.product-bundles-dialog-body {
	padding: 12px;
	max-height: min(70vh, 520px);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-height: 0;
}

.product-bundles-dialog-search {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 10px;
	background: var(--pos-surface-input);
	border: 1px solid var(--pos-border);
	border-radius: 6px;
	flex-shrink: 0;
}

.product-bundles-dialog-search .mdi {
	font-size: 1.1rem;
	color: var(--pos-text-accent);
}

.product-bundles-dialog-search-input {
	flex: 1;
	min-width: 0;
	border: none;
	background: transparent;
	color: var(--pos-text);
	font-size: 0.85rem;
	outline: none;
}

.product-bundles-dialog-table-wrap {
	flex: 1;
	overflow: auto;
	min-height: 0;
	border: 1px solid var(--pos-border-subtle);
	border-radius: 6px;
	background: var(--pos-surface);
}

.product-bundles-dialog-empty {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 120px;
	color: var(--pos-text-muted);
}

.product-bundles-table {
	margin: 0;
	background: var(--pos-surface);
	color: var(--pos-text);
}

.product-bundles-table th {
	position: sticky;
	top: 0;
	z-index: 1;
	white-space: nowrap;
	background: #d9c9a3;
	color: #4b4124;
	border-bottom-color: var(--pos-border);
}

.product-bundles-table td {
	background: var(--pos-surface);
	color: var(--pos-text);
	border-bottom-color: var(--pos-border-subtle);
}

.product-bundles-table .product-bundles-col-expand {
	width: 40px;
	text-align: center;
}

.product-bundles-table .product-bundles-col-qty {
	width: 56px;
	text-align: center;
}

.product-bundles-table .product-bundles-col-price {
	width: 110px;
	text-align: right;
	white-space: nowrap;
}

.product-bundles-row {
	cursor: pointer;
}

.product-bundles-row:hover td {
	background: var(--pos-surface-hover);
}

.product-bundles-row:active td {
	background: var(--pos-accent-bg);
}

.product-bundles-expand-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border: 1px solid var(--pos-border);
	border-radius: 4px;
	background: var(--pos-surface-input);
	color: var(--pos-text-accent);
	cursor: pointer;
	font-size: 1rem;
	line-height: 1;
	padding: 0;
}

.product-bundles-expand-btn:hover {
	border-color: var(--pos-primary);
	background: var(--pos-accent-bg);
}

.product-bundles-expand-btn.is-open {
	background: var(--pos-accent-bg);
	border-color: var(--pos-primary);
}

.product-bundles-detail td {
	padding: 0;
	background: var(--pos-accent-bg);
	border-bottom: 1px solid var(--pos-border-subtle);
}

.product-bundles-detail-inner {
	padding: 8px 12px 10px 48px;
}

.product-bundles-components-table {
	width: 100%;
	font-size: 0.72rem;
	border-collapse: collapse;
}

.product-bundles-components-table th,
.product-bundles-components-table td {
	padding: 4px 8px;
	border-bottom: 1px solid var(--pos-border-subtle);
	color: var(--pos-text);
	text-align: left;
}

.product-bundles-components-table th {
	font-weight: 700;
	background: rgba(166, 141, 68, 0.22);
	color: var(--pos-text-accent);
}

.product-bundles-dialog-hint {
	flex: 1;
	text-align: left;
	font-size: 0.72rem;
	color: var(--pos-text-muted);
}

.product-bundles-dialog-card .pos-dialog-footer {
	display: flex;
	align-items: center;
	gap: 8px;
}

.product-bundles-dialog-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 10px;
	align-content: start;
}

.product-bundles-dialog-empty {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 120px;
}

.items-selector-offer-card {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--pos-border-subtle);
	border-radius: 6px;
	background: var(--pos-surface-elevated);
	padding: 0;
	cursor: pointer;
	text-align: center;
	overflow: hidden;
}

.items-selector-offer-card:hover {
	border-color: var(--pos-primary);
	box-shadow: 0 2px 8px rgba(166, 141, 68, 0.25);
}

.items-selector-offer-card .items-selector-item-media {
	min-height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #d9c9a3 0%, #cfc09a 100%);
}

.items-selector-offer-card .items-selector-item-details {
	padding: 6px 4px;
}

.items-selector-offer-components {
	font-size: 0.62rem;
	color: var(--pos-text-dim);
	line-height: 1.25;
	margin: 2px 0;
	word-break: break-word;
}

.items-selector-body {
	flex: 1;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	min-height: 0;
	position: relative;
}

.items-selector-search-row {
	display: flex;
	gap: 3px;
	padding: 4px;
	background: var(--pos-accent-bg);
	border-bottom: 1px solid var(--pos-border-subtle);
	flex-shrink: 0;
}

.items-selector-search-field {
	flex: 1;
	min-width: 0;
	position: relative;
	display: flex;
	align-items: center;
	background: var(--pos-surface-input);
	border: 1px solid var(--pos-border);
	border-radius: 4px;
	height: 28px;
	overflow: hidden;
}

.items-selector-search-field > i {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	padding: 0;
	flex-shrink: 0;
	font-size: 1.05rem;
	background: rgba(203, 182, 119, 0.35);
	border-left: 1px solid rgba(140, 115, 64, 0.25);
}

.items-selector-icon-name {
	color: #5b4b27;
}
.items-selector-icon-code {
	color: #35588d;
}
.items-selector-icon-barcode {
	color: #166534;
}

.items-selector .mdi {
	opacity: 1;
}

.items-selector-field,
.brand-selector-field {
	flex: 1;
	min-width: 0;
	height: 26px;
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 0 8px;
	background: var(--pos-surface-input);
	border: 1px solid var(--pos-border);
	border-radius: 4px;
	position: relative;
}

.items-selector-caret {
	position: absolute;
	right: 8px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 13px;
	color: var(--pos-text-accent);
	pointer-events: none;
}

.items-selector-select {
	flex: 1;
	height: 100%;
	border: none;
	background: transparent;
	font-size: 0.7rem;
	font-weight: 600;
	color: var(--pos-text-accent);
	cursor: pointer;
	outline: none;
	padding-right: 16px;
	appearance: none;
	-webkit-appearance: none;
	text-align: center;
}

.items-selector-input {
	flex: 1;
	border: none;
	outline: none;
	background: transparent;
	padding: 4px 6px;
	font-size: 0.8rem;
	color: var(--pos-text);
	font-weight: 700;
	height: 100%;
	text-align: center;
}

.items-selector-view-btn {
	height: 26px;
	min-width: 26px;
	border: none;
	border-radius: 4px;
	background: var(--pos-surface-input);
	border: 1px solid var(--pos-border);
	cursor: pointer;
	color: var(--pos-text-accent);
	display: flex;
	align-items: center;
	justify-content: center;
}

.items-selector-list {
	flex: 1;
	overflow-y: auto;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 8px;
	padding: 8px;
	align-content: start;
	min-height: 0;
}

.items-selector-item-card {
	position: relative;
	border-radius: 8px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
	cursor: pointer;
	user-select: none;
	overflow: hidden;
	background: var(--pos-surface-elevated);
	display: flex;
	flex-direction: column;
	height: 200px;
	min-height: 200px;
	border: none;
	padding: 0;
	text-align: inherit;
}

.items-selector-item-card.is-disabled {
	opacity: 0.5;
	cursor: not-allowed;
	filter: grayscale(50%);
}

.items-selector-item-card:hover:not(.is-disabled) {
	box-shadow: 0 4px 12px rgba(25, 118, 210, 0.2);
}

.items-qty-pill {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 2;
	display: flex;
	align-items: center;
	padding: 2px 8px;
	border-radius: 12px;
	font-size: 11px;
	font-weight: 600;
	color: #fff;
	backdrop-filter: blur(4px);
}

.items-brand-pill {
	position: absolute;
	left: 8px;
	bottom: 8px;
	z-index: 2;
	max-width: calc(100% - 16px);
	padding: 2px 8px;
	border-radius: 12px;
	font-size: 10px;
	font-weight: 600;
	line-height: 1.25;
	color: #4b4124;
	background: rgba(217, 201, 163, 0.88);
	border: 1px solid rgba(140, 115, 64, 0.35);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.items-qty-high {
	background: rgba(76, 175, 80, 0.9);
}
.items-qty-low {
	background: rgba(255, 152, 0, 0.9);
}
.items-qty-zero {
	background: rgba(244, 67, 54, 0.9);
}

.items-selector-item-media {
	position: relative;
	flex: 1;
	min-height: 140px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #d9c9a3 0%, #cfc09a 100%);
	border-bottom: 1px solid var(--pos-border-subtle);
	overflow: hidden;
}

.items-selector-item-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.items-selector-item-abbr {
	font-size: 2.5rem;
	font-weight: 700;
	color: var(--pos-text-dim);
}

.items-selector-item-details {
	padding: 8px;
	background: var(--pos-surface-elevated);
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.items-selector-item-name {
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--pos-text);
	margin-bottom: 4px;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.items-selector-item-price {
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--pos-text-price);
}

/* Invoice — from posawesome15_lite Invoice.vue */
.invoice {
	position: relative;
	min-height: 0;
}

.invoice-customer-wrap {
	padding: 4px 6px;
	margin-bottom: 0;
	border-radius: 8px;
	border: 3px solid #4caf50;
	border-top-width: 2px;
	border-bottom-width: 2px;
	padding-top: 2px;
	padding-bottom: 3px;
	flex-shrink: 0;
}

.invoice-customer-wrap.mode-return {
	border-color: #607d8b;
}
.invoice-customer-wrap.mode-quick-return {
	border-color: #a68d44;
}
.invoice-customer-wrap.mode-pay {
	border-color: #ff9800;
}

.invoice-customer-field {
	position: relative;
	display: flex;
	align-items: center;
	padding: 6px 0;
}

.invoice-customer-input {
	width: 100%;
	padding: 13px 46px 13px 12px;
	height: 51px;
	border: 1px solid var(--pos-border);
	border-radius: 10px;
	font-size: 14px;
	background: var(--pos-surface-input);
	color: var(--pos-text);
	box-sizing: border-box;
	outline: none;
}

.invoice-customer-input:disabled {
	background: rgba(217, 201, 163, 0.85);
	color: var(--pos-text-dim);
	cursor: not-allowed;
}

.invoice-customer-actions {
	position: absolute;
	right: 8px;
	display: flex;
	gap: 8px;
	align-items: center;
	height: 100%;
}

.invoice-customer-btn {
	background: #d9c9a3;
	border: 1px solid #7a6538;
	padding: 0;
	cursor: pointer;
	color: #4b4124;
	border-radius: 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 32px;
	width: 32px;
	font-size: 1.05rem;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.invoice-customer-btn:disabled {
	color: var(--pos-text-dim);
	cursor: not-allowed;
}

#invoice-btn-customer-edit {
	border-color: #1d4ed8;
	background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
	color: #1e3a8a;
}

#invoice-btn-customer-new {
	border-color: #166534;
	background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
	color: #14532d;
}

#invoice {
	display: flex;
	flex-direction: column;
	min-height: 0;
	overflow: hidden;
}

.invoice-customer-wrap {
	flex-shrink: 0;
}

.invoice-table-wrap {
	flex: 1;
	overflow-y: auto;
	overflow-x: auto;
	min-height: 0;
	scrollbar-gutter: stable;
}

.invoice-table-wrap--item-discount .pos-table {
	min-width: 660px;
}

.pos-table {
	width: 100%;
	border-collapse: collapse;
	background: var(--pos-surface);
	color: var(--pos-text);
	font-size: 0.75rem;
	table-layout: auto;
	white-space: nowrap;
}

.pos-table th {
	background: #d9c9a3;
	color: #4b4124;
	font-weight: 700;
	padding: 6px 8px;
	border-bottom: 1px solid var(--pos-border);
	text-align: center;
	position: sticky;
	top: 0;
	z-index: 1;
}

.pos-table td {
	padding: 12px 4px;
	border-bottom: 1px solid var(--pos-border-subtle);
	text-align: center;
	vertical-align: middle;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	color: var(--pos-text);
}

.invoice-table-wrap .pos-table {
	table-layout: auto;
	width: max-content;
	min-width: 100%;
	border-collapse: collapse;
}

/* Extra width goes to item name only — fixed columns stay at col widths */
.invoice-table-wrap .pos-table col.invoice-col-item-name {
	width: auto;
}

.invoice-table-wrap .pos-table .invoice-col-item-name {
	white-space: nowrap;
	word-break: normal;
	overflow-wrap: normal;
	text-align: right;
}

.invoice-table-wrap .pos-table th.invoice-col-item-name,
.invoice-table-wrap .pos-table td.invoice-col-item-name {
	min-width: 96px;
	width: auto;
	max-width: none;
	white-space: nowrap;
	overflow: visible;
	text-overflow: unset;
}

.invoice-table-wrap .pos-table th.invoice-col-item-name {
	padding: 4px 4px;
}

.invoice-table-wrap .pos-table td.invoice-col-item-name {
	text-align: right;
	padding: 6px 4px;
	white-space: nowrap;
	overflow: visible;
	text-overflow: unset;
}

/* Compact columns — fixed min widths sized to header/content, not percentages */
.invoice-table-wrap .pos-table col.invoice-col-code {
	width: 55px;
}

.invoice-table-wrap .pos-table col.invoice-col-qty {
	width: 65px;
}

.invoice-table-wrap .pos-table col.invoice-col-uom {
	width: 35px;
}

.invoice-table-wrap .pos-table col.invoice-col-list {
	width: 55px;
}

.invoice-table-wrap .pos-table col.invoice-col-rate {
	width: 60px;
}

.invoice-table-wrap .pos-table col.invoice-col-total {
	width: 60px;
}

.invoice-table-wrap .pos-table col.invoice-col-disc-pct {
	width: 60px;
}

.invoice-table-wrap .pos-table col.invoice-col-disc-amt {
	width: 60px;
}

.invoice-table-wrap .pos-table col.invoice-col-actions {
	width: 28px;
}

.invoice-table-wrap .pos-table th.invoice-col-code,
.invoice-table-wrap .pos-table td.invoice-col-code {
	width: 55px;
	min-width: 55px;
	max-width: 55px;
	padding-left: 0;
	padding-right: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	box-sizing: border-box;
}

.invoice-table-wrap .pos-table th.invoice-col-qty,
.invoice-table-wrap .pos-table td.invoice-col-qty {
	width: 65px;
	min-width: 65px;
	max-width: 65px;
	padding-left: 0;
	padding-right: 0;
	white-space: nowrap;
	box-sizing: border-box;
}

.invoice-table-wrap .pos-table th.invoice-col-uom,
.invoice-table-wrap .pos-table td.invoice-col-uom {
	width: 35px;
	min-width: 35px;
	max-width: 35px;
	padding-left: 0;
	padding-right: 0;
	white-space: nowrap;
	box-sizing: border-box;
}

.invoice-table-wrap .pos-table th.invoice-col-list,
.invoice-table-wrap .pos-table td.invoice-col-list {
	width: 55px;
	min-width: 55px;
	max-width: 55px;
	padding-left: 0;
	padding-right: 0;
	white-space: nowrap;
	box-sizing: border-box;
}

.invoice-table-wrap .pos-table th.invoice-col-rate,
.invoice-table-wrap .pos-table td.invoice-col-rate {
	width: 60px;
	min-width: 60px;
	max-width: 60px;
	padding-left: 0;
	padding-right: 0;
	white-space: nowrap;
	box-sizing: border-box;
}

.invoice-table-wrap .pos-table th.invoice-col-total,
.invoice-table-wrap .pos-table td.invoice-col-total {
	width: 60px;
	min-width: 60px;
	max-width: 60px;
	padding-left: 0;
	padding-right: 0;
	white-space: nowrap;
	box-sizing: border-box;
}

.invoice-table-wrap .pos-table th.invoice-col-disc-pct,
.invoice-table-wrap .pos-table td.invoice-col-disc-pct {
	width: 60px;
	min-width: 60px;
	max-width: 60px;
	padding-left: 0;
	padding-right: 0;
	white-space: nowrap;
	box-sizing: border-box;
	font-size: 0.68rem;
}

.invoice-table-wrap .pos-table th.invoice-col-disc-amt,
.invoice-table-wrap .pos-table td.invoice-col-disc-amt {
	width: 60px;
	min-width: 60px;
	max-width: 60px;
	padding-left: 0;
	padding-right: 0;
	white-space: nowrap;
	box-sizing: border-box;
}

.invoice-table-wrap .pos-table th.invoice-col-actions,
.invoice-table-wrap .pos-table td.invoice-col-actions {
	width: 28px;
	min-width: 28px;
	max-width: 28px;
	padding: 0;
	white-space: nowrap;
	box-sizing: border-box;
	text-align: center;
	vertical-align: middle;
	overflow: visible;
}

.invoice-table-wrap .pos-table th.invoice-col-actions {
	padding: 0;
}

.invoice-table-wrap .invoice-col-actions .invoice-icon-btn {
	padding: 0;
	margin: 0;
	border: none;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	min-width: 24px;
	min-height: 24px;
}

.invoice-table-wrap .invoice-col-actions .invoice-icon-btn .mdi {
	font-size: 16px;
	line-height: 1;
	width: 16px;
	height: 16px;
}

.invoice-table-wrap .pos-table td:first-child {
	text-align: right;
	padding: 6px 4px;
}

.invoice-table-wrap .pos-table th {
	padding: 4px 0;
}

.invoice-table-wrap .pos-table td {
	padding: 6px 0;
}

.invoice-table-wrap .pos-table th,
.invoice-table-wrap .pos-table td {
	border-right: 1px solid var(--pos-border-subtle);
}

.invoice-table-wrap .pos-table tr > :last-child {
	border-right: none;
}

.invoice-table-wrap .pos-table th.invoice-col-uom,
.invoice-table-wrap .pos-table td.invoice-col-uom,
.invoice-table-wrap .pos-table th.invoice-col-list,
.invoice-table-wrap .pos-table td.invoice-col-list,
.invoice-table-wrap .pos-table th.invoice-col-total,
.invoice-table-wrap .pos-table td.invoice-col-total,
.invoice-table-wrap .pos-table th.invoice-col-rate,
.invoice-table-wrap .pos-table td.invoice-col-rate,
.invoice-table-wrap .pos-table th.invoice-col-disc-amt,
.invoice-table-wrap .pos-table td.invoice-col-disc-amt {
	font-variant-numeric: tabular-nums;
}

.invoice-footer-host {
	flex-shrink: 0;
	min-width: 0;
}

.invoice-footer {
	flex-shrink: 0;
	background: var(--pos-bg-mid);
	border-radius: 8px;
	padding: clamp(4px, 1vw, 8px);
	border: 1px solid var(--pos-border);
	box-shadow: 0 2px 8px rgba(75, 65, 36, 0.2);
}

.invoice-summary-grid {
	display: flex;
	flex-wrap: nowrap;
	flex-direction: row-reverse;
	justify-content: flex-start;
	align-items: stretch;
	gap: clamp(2px, 0.45vw, 6px);
	margin-bottom: 3px;
	padding: clamp(2px, 0.45vw, 4px);
	background: linear-gradient(
		135deg,
		rgba(207, 192, 154, 0.9) 0%,
		rgba(217, 201, 163, 0.95) 100%
	);
	border-radius: 4px;
	min-width: 0;
}

.invoice-summary-cell {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	flex: 1 1 0;
	min-width: 0;
	padding: clamp(2px, 0.35vw, 3px) clamp(2px, 0.35vw, 4px);
	background: var(--pos-surface-input);
	border-radius: 3px;
	border: 1px solid var(--pos-border-subtle);
}

.invoice-summary-cell label {
	font-size: clamp(0.45rem, 0.82vw, 0.58rem);
	font-weight: 600;
	color: var(--pos-text-muted);
	text-transform: uppercase;
	letter-spacing: 0;
	white-space: normal;
	overflow: hidden;
	text-overflow: ellipsis;
	width: 100%;
	text-align: center;
	line-height: 1.15;
}

.invoice-summary-cell strong,
.invoice-summary-field {
	font-size: clamp(0.62rem, 1.15vw, 0.9rem);
	font-weight: 700;
	color: var(--pos-text-accent);
	line-height: 1.15;
	min-width: 0;
	width: 100%;
	text-align: center;
}

.invoice-summary-field {
	width: 100%;
	border: none;
	outline: none;
	background: transparent;
	padding: 0;
}

.invoice-summary-grid--invoice-discount,
.invoice-summary-grid--with-tax {
	flex-wrap: nowrap;
}

.invoice-summary-grid--invoice-discount .invoice-summary-cell,
.invoice-summary-grid--with-tax .invoice-summary-cell {
	flex: 1 1 0;
	min-width: 0;
}

.invoice-summary-disc-pct label,
.invoice-summary-disc-amt label {
	white-space: normal;
	line-height: 1.2;
	overflow: visible;
	text-overflow: unset;
}

.invoice-summary-disc-pct .invoice-summary-field,
.invoice-summary-disc-amt .invoice-summary-field {
	font-size: clamp(0.58rem, 1vw, 0.82rem);
}

.invoice-table-wrap--item-discount .pos-table {
	font-size: 0.7rem;
}

.invoice-table-wrap--item-discount .pos-table th {
	padding: 4px 0;
	font-size: 0.65rem;
}

.invoice-table-wrap--item-discount .pos-table td {
	padding: 6px 0;
}

.invoice-summary-readonly-field,
.invoice-item-disc-pct-display {
	cursor: default;
	user-select: none;
}

.invoice-summary-disc-pct .invoice-summary-readonly-field {
	display: block;
	width: 100%;
	font-size: clamp(0.62rem, 1.15vw, 0.9rem);
	font-weight: 700;
	color: var(--pos-text-dim);
	text-align: center;
}

.invoice-item-disc-pct-display {
	display: block;
	width: 100%;
	font-size: 0.68rem;
	padding: 0;
	text-align: center;
	color: var(--pos-text-dim);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.invoice-item-disc-pct-display.is-disabled {
	opacity: 0.55;
}

.invoice-table-wrap--item-discount .invoice-item-rate,
.invoice-table-wrap--item-discount .invoice-item-disc-pct {
	max-width: 60px;
	font-size: 0.68rem;
	padding: 2px 3px;
	text-align: center;
}

.invoice-summary-cell.is-readonly {
	background: rgba(217, 201, 163, 0.85);
	border-color: var(--pos-border-subtle);
}

.invoice-summary-cell.is-readonly label,
.invoice-summary-cell.is-readonly .invoice-summary-field {
	color: var(--pos-text-dim);
}

.invoice-summary-items-disc strong {
	color: var(--pos-text-warning);
}

.invoice-summary-tax strong {
	color: var(--pos-text-cyan);
}

.invoice-summary-grand label,
.invoice-summary-grand strong {
	color: var(--pos-text-success);
}

.invoice-summary-grand strong {
	font-weight: 800;
}

.invoice-actions-row {
	display: flex;
	flex-wrap: nowrap;
	gap: 1px;
	background: var(--pos-surface-input);
	border-radius: 6px;
	box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.25);
	overflow-x: auto;
	min-width: 0;
	scrollbar-width: thin;
}

.invoice-action-btn {
	flex: 1 1 0;
	min-width: 0;
	padding: clamp(4px, 0.9vh, 8px) clamp(2px, 0.35vw, 4px);
	border: none;
	border-radius: 5px;
	cursor: pointer;
	color: #fff;
	font-size: clamp(0.62rem, 1.05vw, 0.85rem);
	font-weight: 600;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: clamp(2px, 0.35vw, 4px);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.invoice-action-btn .mdi {
	font-size: clamp(0.85rem, 1.6vw, 1.1rem);
	flex-shrink: 0;
}

.invoice-action-btn:disabled {
	background: var(--pos-surface-hover) !important;
	color: var(--pos-text-dim) !important;
	cursor: not-allowed;
	opacity: 0.6;
}

.invoice-action-btn.is-print-loading:disabled {
	opacity: 1;
}

.invoice-print-action-slot {
	flex: 1;
	min-width: 72px;
	display: flex;
}

.invoice-action-warning {
	flex: 1;
	min-width: 72px;
	padding: 8px 4px;
	border-radius: 5px;
	background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
	color: #fff;
	font-size: 0.85rem;
	font-weight: 600;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	text-align: center;
	white-space: nowrap;
}

.invoice-action-print-sales {
	background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
}

.invoice-action-print-return {
	background: linear-gradient(135deg, #607d8b 0%, #455a64 100%);
}

.invoice-action-print-quick {
	background: linear-gradient(135deg, #8c7340 0%, #a68d44 100%);
}

.invoice-action-print-payment {
	background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
}

.invoice-action-pay {
	background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
}

.invoice-action-return {
	background: #607d8b;
}

.invoice-action-quick-return {
	background: linear-gradient(135deg, #8c7340 0%, #a68d44 100%);
}

.invoice-action-draft-save {
	background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
}

.invoice-action-draft-load {
	background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
}

.invoice-action-settlement {
	background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
}

.invoice-action-cancel {
	background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
}

.pos-select-block {
	width: 100%;
	padding: 8px 12px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	margin-bottom: 8px;
	box-sizing: border-box;
}

.pos-input-block {
	width: 100%;
	padding: 8px 12px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	margin-bottom: 8px;
	box-sizing: border-box;
}

.invoice-col-num {
	text-align: center;
	white-space: nowrap;
}

/* Buttons */
.pos-btn {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 6px 12px;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 500;
	cursor: pointer;
	border: 1px solid var(--pos-border);
	background: var(--pos-surface-input);
	color: var(--pos-text);
}

.pos-btn-sm {
	padding: 4px 8px;
	font-size: 11px;
}

.pos-btn-primary {
	background: linear-gradient(120deg, #5c4e29, #4b4124, #6b5a32, #5c4e29);
	border: none;
	color: #fff;
	box-shadow: 0 2px 8px 0 rgba(75, 65, 36, 0.33);
}

.pos-btn-primary:hover,
.pos-btn-primary:focus {
	background: linear-gradient(120deg, #cbb677, #a68d44, #e5d4b0, #cbb677);
	color: #2d2612;
	box-shadow: 0 0 18px 2px rgba(203, 182, 119, 0.6);
}

.pos-btn-success {
	background: var(--pos-success);
	border-color: #059669;
	color: #fff;
}

.pos-btn-muted {
	background: var(--pos-surface-input);
	color: var(--pos-text-muted);
}

.pos-btn-danger {
	background: var(--pos-danger);
	border-color: #c62828;
	color: #fff;
}

.invoice-icon-btn {
	border: none;
	background: transparent;
	cursor: pointer;
	color: var(--pos-danger);
	padding: 2px;
}

/* Modals */
.pos-dialog {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--pos-dialog-inset);
	box-sizing: border-box;
}

.pos-dialog[hidden] {
	display: none !important;
}

.pos-dialog-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
}

.payments-dialog-backdrop {
	background: rgba(15, 23, 42, 0.45);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}

.pos-dialog-card.pos-dialog-payments {
	max-width: var(--pos-dialog-max-w);
	max-height: var(--pos-dialog-max-h);
	min-height: 0;
}

.payments-dialog-header {
	background: linear-gradient(135deg, #2e7d32 0%, #388e3c 100%);
}

.payments-dialog-body {
	padding: 0;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	min-height: 0;
	background: var(--pos-surface);
	color: var(--pos-text);
}

.payments-dialog-footer {
	padding: 12px 16px;
}

.payments-dialog-footer-inner {
	display: flex;
	align-items: stretch;
	gap: 8px;
	width: 100%;
}

.payments-print-action-slot {
	flex: 1;
	min-width: 0;
	display: flex;
}

.payments-print-action-slot .invoice-action-btn,
.payments-print-action-slot .invoice-action-warning {
	flex: 1;
	width: 100%;
	min-width: 0;
}

.pos-dialog-card {
	position: relative;
	background: var(--pos-surface);
	color: var(--pos-text);
	border-radius: 12px;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
	width: min(var(--pos-dialog-standard-w), var(--pos-dialog-max-w));
	max-width: var(--pos-dialog-max-w);
	max-height: var(--pos-dialog-max-h);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--pos-border);
	min-height: 0;
}

.pos-dialog-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 16px;
	background: linear-gradient(180deg, #cbb677 0%, #a68d44 55%, #8c7340 100%);
	color: rgba(255, 248, 235, 0.92);
	font-weight: 700;
}

.opening-dialog-header {
	background: linear-gradient(135deg, #ff6f00 0%, #ff9800 100%);
}

.pos-dialog-close {
	border: none;
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	border-radius: 4px;
	width: 28px;
	height: 28px;
	cursor: pointer;
}

.pos-dialog-body {
	padding: 12px;
	overflow-y: auto;
	flex: 1;
}

.pos-dialog-footer {
	padding: 8px 12px;
	border-top: 1px solid var(--pos-border);
	display: flex;
	gap: 8px;
	justify-content: flex-end;
	background: var(--pos-bg-mid);
}

.pos-label {
	display: block;
	font-size: 11px;
	font-weight: 600;
	color: var(--pos-text-muted);
	margin: 8px 0 4px;
}

.pos-form-row {
	display: flex;
	gap: 8px;
	margin-bottom: 4px;
}

.pos-form-field {
	flex: 1;
	min-width: 0;
}

.pos-form-field .pos-label:first-child {
	margin-top: 0;
}

#update-customer .pos-dialog-card {
	width: min(var(--pos-dialog-narrow-w), var(--pos-dialog-max-w));
}

.pos-invoice-list-table th,
.pos-invoice-list-table td {
	text-align: right;
}

.pos-invoice-list-table th:nth-child(2),
.pos-invoice-list-table th:nth-child(3),
.pos-invoice-list-table td:nth-child(2),
.pos-invoice-list-table td:nth-child(3) {
	text-align: center;
}

.pos-outstanding-cell {
	color: var(--pos-text-orange);
	font-weight: 600;
}

.pos-status-unpaid {
	background: rgba(239, 68, 68, 0.22);
	color: var(--pos-text-danger);
}

.pos-status-partly {
	background: rgba(251, 146, 60, 0.22);
	color: var(--pos-text-warning);
}

.pos-table-actions {
	text-align: center !important;
}

.pos-btn-sm {
	padding: 4px 8px;
	font-size: 0.85rem;
	min-width: 60px;
}

.pos-invoice-list-table tr.selected {
	background: #e3f2fd;
}

.outstanding-payments-header + .pos-dialog-body .pos-invoice-list-table tr.selected {
	background: #e8f5e9;
}

.opening-dialog-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 8px;
	border-bottom: 1px solid #f1f5f9;
}

.pos-status-badge {
	display: inline-block;
	padding: 4px 8px;
	border-radius: 4px;
	font-size: 0.75rem;
	font-weight: 600;
}

.pos-error {
	color: var(--pos-text-danger);
	background: rgba(239, 68, 68, 0.15);
	border: 1px solid rgba(252, 165, 165, 0.35);
	border-radius: 6px;
	padding: 8px;
	margin-top: 8px;
	font-size: 12px;
}

.pos-empty {
	padding: 24px;
	text-align: center;
	color: var(--pos-text-dim);
}

.pos-list {
	display: flex;
	flex-direction: column;
	gap: 4px;
	max-height: 50vh;
	overflow-y: auto;
}

.pos-list-item {
	text-align: right;
	padding: 10px 12px;
	border: 1px solid var(--pos-border-subtle);
	border-radius: 6px;
	background: var(--pos-surface-input);
	color: var(--pos-text);
	cursor: pointer;
}

.pos-list-item:hover {
	border-color: var(--pos-primary);
	background: var(--pos-surface-hover);
	color: var(--pos-text);
}

.panel-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 12px;
	border-bottom: 1px solid var(--pos-border);
	background: var(--pos-bg-mid);
	color: var(--pos-text);
}

.pos-pay-total {
	padding: 12px;
	font-size: 1.1rem;
	text-align: center;
}

.payments-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 8px 12px;
	border-bottom: 1px solid #f1f5f9;
}

.pos-pre {
	font-size: 11px;
	overflow: auto;
	max-height: 200px;
	background: #f8fafc;
	padding: 8px;
	border-radius: 4px;
}

.freeze-overlay {
	position: fixed;
	inset: 0;
	background: rgba(20, 13, 32, 0.72);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 3000;
}

.freeze-overlay[hidden] {
	display: none !important;
}

.freeze-overlay-card {
	background: var(--pos-surface-elevated);
	border: 1px solid var(--pos-border);
	border-radius: 8px;
	padding: 20px 24px;
	max-width: 500px;
	width: 90%;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
	color: var(--pos-text);
	text-align: center;
}

.freeze-overlay-card h3,
.freeze-overlay-card p {
	margin: 0;
	color: var(--pos-text);
	font-size: 15px;
	font-weight: 600;
}

@media (max-width: 768px) {
	.pos-panels-row {
		flex-direction: column;
	}
}

/* Extended UI */
.pos-dialog-wide {
	width: min(var(--pos-dialog-wide-w), var(--pos-dialog-max-w));
	max-width: var(--pos-dialog-max-w);
}

.closing-dialog-header {
	background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
}

#closing-dialog-submit:disabled {
	background: var(--pos-surface-hover) !important;
	border-color: var(--pos-border) !important;
	color: var(--pos-text-dim) !important;
	cursor: not-allowed;
	opacity: 0.65;
	box-shadow: none;
}

.closing-dialog-panel {
	display: flex;
	flex-direction: column;
	min-height: 0;
}

.closing-dialog-table-wrap {
	flex: 1;
	min-height: 0;
	overflow: auto;
}

.closing-dialog-table .closing-dialog-amt-cell {
	padding: 12px 4px;
	text-align: center;
	vertical-align: middle;
}

.closing-dialog-table .closing-dialog-amt {
	display: block;
	width: 100%;
	margin: 0 auto;
	min-width: 0;
	text-align: center;
	font: inherit;
	font-size: inherit;
	background: transparent;
	border: none;
	border-radius: 0;
	padding: 0;
	color: inherit;
	cursor: default;
	-webkit-appearance: none;
	appearance: none;
}

.closing-dialog-table tr.closing-dialog-row {
	cursor: default;
}

.pos-search-bar {
	display: flex;
	gap: 8px;
	margin-bottom: 12px;
}

.customer-search-fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin-bottom: 12px;
}

.customer-search-field label {
	display: block;
	margin-bottom: 4px;
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--pos-text-muted);
}

.customer-search-list .customer-item {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
}

.customer-search-list .customer-item-name {
	font-weight: 700;
}

.customer-search-list .customer-item-phone {
	font-size: 0.82rem;
	color: var(--pos-text-muted);
	direction: ltr;
}

.click-row {
	cursor: pointer;
}

.click-row.selected,
.click-row:hover {
	background: rgba(166, 141, 68, 0.22);
	color: var(--pos-text);
}

.return-invoice {
	background: #607d8b;
	color: #fff;
	border-color: #607d8b;
}

.quick-return-mode {
	background: #a68d44;
	color: #fff;
	border-color: #a68d44;
}

.pay-mode {
	background: #ff9800;
	color: #fff;
	border-color: #ff9800;
}

.navbar-badge-cash {
	border-color: #047857;
	background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
	color: #065f46;
}

.navbar-badge-card {
	border-color: #6d28d9;
	background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
	color: #5b21b6;
}

.navbar-badge-qty,
.navbar-badge-time,
.navbar-badge-date {
	border-color: #1d4ed8;
	background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
	color: #1e3a8a;
}

.ping-excellent {
	border-color: #047857;
	background: linear-gradient(135deg, #10b981 0%, #059669 100%);
	color: #ecfdf5;
}

.ping-good {
	border-color: #15803d;
	background: linear-gradient(135deg, #86efac 0%, #4ade80 100%);
	color: #14532d;
}

.ping-fair {
	border-color: #c2410c;
	background: linear-gradient(135deg, #fed7aa 0%, #fdba74 100%);
	color: #7c2d12;
}

.ping-poor {
	border-color: #b91c1c;
	background: linear-gradient(135deg, #fecaca 0%, #fca5a5 100%);
	color: #7f1d1d;
}

.invoice-mode-badge {
	display: inline-flex;
	padding: 2px 8px;
	border-radius: 4px;
	font-size: 10px;
	font-weight: 700;
	margin-left: 4px;
}

.invoice-mode-sales-mode {
	background: #166534;
	color: #ecfdf5;
}
.invoice-mode-return-invoice {
	background: #607d8b;
	color: #fff;
}
.invoice-mode-quick-return {
	background: #a68d44;
	color: #fff;
}
.invoice-mode-pay-mode {
	background: #ff9800;
	color: #fff;
}

.pos-input-inline {
	width: 72px;
	padding: 4px 6px;
	border: 1px solid #d1d5db;
	border-radius: 4px;
	margin-right: 4px;
}

.invoice-total-grand {
	font-size: 1.1rem;
	color: var(--pos-text-accent);
}

.invoice-qty-stepper {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0;
	padding: 0;
	background: var(--pos-surface-input);
	border-radius: 4px;
	width: 100%;
	min-width: 0;
	box-sizing: border-box;
	overflow: hidden;
}

.invoice-qty-btn {
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	min-width: 16px;
	padding: 0;
	border: none;
	border-radius: 3px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.invoice-qty-btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.invoice-qty-minus {
	background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
}

.invoice-qty-plus {
	background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
}

.invoice-qty-btn span {
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1;
}

.invoice-qty-input {
	flex: 1;
	width: 100%;
	min-width: 10px;
	max-width: 100%;
	border: 1px solid var(--pos-border);
	background: var(--pos-surface-input);
	color: var(--pos-text);
	text-align: center;
	font-size: 0.75rem;
	margin: 0 1px;
	padding: 0;
	border-radius: 3px;
	outline: none;
	box-sizing: border-box;
}

.payments-panel-wrap {
	width: 100%;
	height: 100%;
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 0;
}

.payments-back-btn {
	position: absolute;
	bottom: 12px;
	right: 12px;
	z-index: 1001;
	display: flex;
	align-items: center;
	gap: 4px;
	height: 26px;
	padding: 0 10px;
	background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
	color: #fff;
	border: none;
	border-radius: 4px;
	font-size: 0.7rem;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 2px 6px rgba(25, 118, 210, 0.3);
	text-transform: uppercase;
	letter-spacing: 0.3px;
	white-space: nowrap;
	line-height: 1;
}

.payments-back-btn .mdi {
	color: #fff;
	font-size: 18px;
}

.payments-panel-inner {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-height: 0;
	max-height: none;
	background: var(--pos-surface);
	overflow: hidden;
	position: relative;
	color: var(--pos-text);
}

.payments-panel-inner > .payments-banner {
	flex-shrink: 0;
}

.payments-layout {
	flex: 1;
	display: flex;
	flex-direction: row;
	min-height: 0;
	overflow: hidden;
	direction: ltr;
}

.payments-summary-col {
	flex: 0 0 42%;
	max-width: 480px;
	min-width: 280px;
	border-right: 1px solid var(--pos-border);
	padding: 14px 18px;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	background: var(--pos-bg-mid);
}

.payments-methods-col {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--pos-surface);
}

.payments-summary-line {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	padding: 10px 8px;
	border-bottom: 1px solid var(--pos-border-subtle);
}

.payments-summary-line:last-child {
	border-bottom: none;
}

.payments-summary-label {
	font-size: 1rem;
	font-weight: 600;
	color: var(--pos-text-muted);
	flex: 1;
	min-width: 0;
	line-height: 1.3;
}

.payments-summary-line .payments-summary-value {
	font-size: 1.2rem;
	font-weight: 700;
	text-align: right;
	flex-shrink: 0;
	padding: 0;
	min-height: 0;
	border: none;
	background: none;
	box-shadow: none;
	width: auto;
	color: var(--pos-text);
	letter-spacing: 0;
}

.payments-summary-total .payments-summary-value {
	color: var(--pos-text-dim);
}

.payments-summary-item-disc .payments-summary-value,
.payments-summary-inv-disc .payments-summary-value {
	color: var(--pos-text-blue);
}

.payments-summary-net .payments-summary-value {
	color: var(--pos-text-dim);
}

.payments-summary-tax .payments-summary-value {
	color: var(--pos-text-cyan);
}

.payments-summary-grand .payments-summary-value {
	color: var(--pos-text-purple);
	font-size: 1.35rem;
}

.payments-summary-paid .payments-summary-value {
	color: var(--pos-text-success);
}

.payments-summary-change .payments-summary-value {
	color: var(--pos-text-warning);
}

.payments-summary-outstanding .payments-summary-value {
	color: var(--pos-text-danger);
}

.payments-summary-cust-balance .payments-summary-value {
	color: var(--pos-text-muted);
	font-weight: 700;
}

.payments-summary-cust-balance.is-debit .payments-summary-value {
	color: var(--pos-text-danger);
}

.payments-summary-cust-balance.is-credit .payments-summary-value {
	color: var(--pos-text-success);
}

.payments-summary-line.is-active .payments-summary-value {
	font-weight: 800;
}

.payments-methods-col > .payments-address-section,
.payments-methods-col > .payments-credit-row {
	flex-shrink: 0;
	padding: 0 10px 8px;
}

.payments-methods {
	flex: 1;
	overflow-y: auto;
	overflow-x: hidden;
	padding: 20px 24px;
}

.payments-methods-col .payments-methods {
	flex: 1;
}

.payments-divider {
	height: 1px;
	background: linear-gradient(90deg, transparent 0%, #e0e0e0 50%, transparent 100%);
	margin: 4px 6px;
}

.payments-layout-touch {
	min-height: 0;
}

.payments-touch-col {
	flex: 1;
	min-width: 0;
	min-height: 0;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.payments-layout-touch .payments-summary-col {
	flex: 0 0 min(260px, 36%);
	max-width: 280px;
	padding: 8px 10px;
	overflow-y: auto;
}

.payments-layout-touch .payments-summary-line {
	padding: 4px 6px;
}

.payments-layout-touch .payments-summary-label {
	font-size: 0.72rem;
}

.payments-layout-touch .payments-summary-line .payments-summary-value {
	font-size: 0.95rem;
}

.payments-layout-touch .payments-methods-col {
	flex: 1;
	min-height: 0;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.payments-layout-touch .payments-methods {
	flex: 0 1 auto;
	width: min(560px, 100%);
	margin: 0 auto;
	max-height: min(38vh, 240px);
	overflow-y: auto;
	padding: 6px 8px 0;
}

.payments-layout-touch .payments-method-row {
	align-items: center;
	flex-direction: row-reverse;
	margin-bottom: 6px;
	gap: 6px;
}

.payments-layout-touch .payments-amount-field {
	min-height: 40px;
	padding: 2px 8px;
}

.payments-layout-touch .payments-amount-field .payments-amt {
	font-size: 1.05rem;
	padding: 4px 6px;
}

.payments-layout-touch .payments-amount-field .payments-amt.is-numpad-active {
	outline: 2px solid var(--pos-primary);
	outline-offset: -2px;
	border-radius: 6px;
}

.payments-layout-touch .payments-mode-btn {
	flex: 1 1 auto;
	max-width: none;
	text-align: right;
}

.payments-mode-btn {
	flex: 1;
	min-width: 0;
	height: 42px;
	border: none;
	border-radius: 8px;
	background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
	color: #fff;
	font-size: 0.82rem;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 1px 2px rgba(25, 118, 210, 0.25);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	padding: 0 10px;
	touch-action: manipulation;
}

.payments-mode-btn:disabled {
	opacity: 0.55;
	cursor: not-allowed;
	background: var(--pos-surface-hover);
	color: var(--pos-text-dim);
	box-shadow: none;
}

.payments-mode-rest-btn {
	flex-shrink: 0;
	height: 42px;
	padding: 0 8px;
	border: 1px solid var(--pos-border-subtle);
	border-radius: 8px;
	background: var(--pos-surface-hover);
	color: var(--pos-text-dim);
	font-size: 0.72rem;
	font-weight: 700;
	cursor: not-allowed;
	opacity: 0.55;
	white-space: nowrap;
	touch-action: manipulation;
}

.payments-mode-rest-btn.is-available {
	background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
	color: #fff;
	border-color: rgba(245, 124, 0, 0.45);
	cursor: pointer;
	opacity: 1;
	box-shadow: 0 0 10px rgba(245, 124, 0, 0.35);
}

.payments-mode-rest-btn.is-available:active {
	filter: brightness(1.06);
}

.payments-layout-touch .payments-amount-field {
	flex: 0 0 min(108px, 28vw);
	min-height: 42px;
	padding: 2px 8px;
}

.payments-layout-touch .payments-amount-field .payments-amt {
	font-size: 1rem;
	padding: 4px 4px;
}

.payments-numpad {
	flex-shrink: 0;
	width: min(560px, 100%);
	margin: 0 auto;
	padding: 6px 8px 8px;
	border-top: 1px solid var(--pos-border-subtle);
	background: var(--pos-bg-mid);
}

.payments-numpad-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 6px;
}

.payments-numpad-key {
	min-height: 44px;
	border: 1px solid var(--pos-border);
	border-radius: 8px;
	background: var(--pos-surface-input);
	color: var(--pos-text);
	font-size: 1.15rem;
	font-weight: 700;
	cursor: pointer;
	user-select: none;
	touch-action: manipulation;
}

.payments-numpad-key:active {
	background: var(--pos-surface-hover);
	transform: scale(0.98);
}

.payments-numpad-key-fn {
	background: linear-gradient(135deg, #8c7340 0%, #a68d44 100%);
	color: rgba(255, 248, 235, 0.95);
	border-color: rgba(92, 78, 41, 0.45);
}

.payments-method-row {
	display: flex;
	gap: 6px;
	align-items: center;
	margin-bottom: 8px;
	padding: 2px;
	border-radius: 6px;
}

.payments-method-row-selected {
	background: rgba(166, 141, 68, 0.14);
}

.payments-amount-field {
	flex: 0 0 min(120px, 30vw);
	display: flex;
	align-items: center;
	background: var(--pos-surface-input);
	border: 2px solid rgba(166, 141, 68, 0.55);
	border-radius: 8px;
	padding: 4px 8px;
	min-height: 42px;
	min-width: 0;
}

.payments-amount-field .payments-amt {
	flex: 1;
	width: 100%;
	min-width: 0;
	border: none;
	outline: none;
	background: transparent;
	color: var(--pos-text);
	font-size: 1.25rem;
	font-weight: 700;
	padding: 6px 8px;
	text-align: center;
	-webkit-text-fill-color: var(--pos-text);
	caret-color: var(--pos-text);
}

.payments-change {
	color: var(--pos-text-green);
}

.payments-banner-info {
	background: rgba(166, 141, 68, 0.2);
	color: var(--pos-text-accent);
}

.payments-row-selected {
	background: rgba(166, 141, 68, 0.15);
}

.payments-hint {
	font-size: 12px;
	color: var(--pos-text-dim);
	margin-inline-start: 8px;
}

.payments-credit-row {
	padding: 8px 12px;
	border-bottom: 1px solid var(--pos-border-subtle);
	color: var(--pos-text);
}

.payments-banner {
	padding: 8px 12px;
	font-size: 13px;
	border-bottom: 1px solid var(--pos-border-subtle);
	color: var(--pos-text);
}

.payments-row-label {
	cursor: pointer;
	color: var(--pos-text);
}

.payments-summary {
	padding: 12px;
	background: var(--pos-bg-mid);
	border-bottom: 1px solid var(--pos-border-subtle);
	display: grid;
	gap: 4px;
	font-size: 13px;
	color: var(--pos-text);
}

.payments-input-wrap {
	display: flex;
	gap: 4px;
	align-items: center;
}

.payments-address-section {
	padding: 8px 12px;
	border-top: 1px solid var(--pos-border-subtle);
	display: flex;
	flex-direction: column;
	gap: 8px;
	color: var(--pos-text);
}

.payments-address-select {
	width: 100%;
}

.pos-count-badge {
	font-size: 10px;
	opacity: 0.9;
}

.pos-btn-view {
	height: 26px;
	min-width: 26px;
	border: none;
	border-radius: 4px;
	background: var(--pos-surface-input);
	cursor: pointer;
	color: var(--pos-text-accent);
}

.items-selector-list-mode {
	display: block;
	overflow-y: auto;
	overflow-x: hidden;
	padding: 0;
	flex: 1;
	min-height: 0;
}

.items-selector-table {
	width: 100%;
	max-width: 100%;
	border-collapse: collapse;
	font-size: 0.75rem;
	background: var(--pos-surface);
	color: var(--pos-text);
	table-layout: auto;
}

.items-selector-table thead th {
	padding: 8px 12px;
	font-size: 0.75rem;
	font-weight: 600;
	color: #4b4124;
	background: #d9c9a3;
	border-bottom: 1px solid var(--pos-border);
	position: sticky;
	top: 0;
	z-index: 1;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	text-align: left;
}

.items-selector-table tbody td {
	padding: 13px 12px;
	font-size: 0.75rem;
	color: var(--pos-text);
	vertical-align: middle;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	border-bottom: 1px solid var(--pos-border-subtle);
}

.items-selector-table-row {
	cursor: pointer;
}

.items-selector-table-row:hover:not(.is-disabled) {
	background: var(--pos-surface-hover);
}

.items-selector-table-row.is-disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.items-selector-td-price {
	color: var(--pos-text-price);
	font-weight: 600;
}

/* Migration parity — navbar modes, offers panel, invoice batch/serial */
.quick-return-mode {
	border-color: rgba(140, 115, 64, 0.45);
	background: linear-gradient(
		135deg,
		rgba(203, 182, 119, 0.35) 0%,
		rgba(166, 141, 68, 0.28) 100%
	);
	color: var(--pos-text-violet);
}

.pay-mode {
	border-color: rgba(253, 186, 116, 0.45);
	background: linear-gradient(135deg, rgba(251, 146, 60, 0.28) 0%, rgba(234, 88, 12, 0.22) 100%);
	color: var(--pos-text-orange);
}

.return-invoice {
	border-color: rgba(148, 163, 184, 0.4);
	background: linear-gradient(
		135deg,
		rgba(100, 116, 139, 0.28) 0%,
		rgba(71, 85, 105, 0.22) 100%
	);
	color: #cbd5e1;
}

.invoice-meta-row {
	margin-top: 4px;
}

.invoice-batch-select,
.invoice-item-rate {
	width: 100%;
	max-width: 90px;
	font-size: 11px;
	padding: 2px 4px;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
}

.invoice-serial-btn {
	margin-top: 2px;
}

/* Antique gold theme — surfaces, inputs, tables, dialogs */
.pos-app {
	color: var(--pos-text);
}

.items-selector-search-field,
.items-selector-field,
.brand-selector-field,
.items-selector-view-btn {
	background: var(--pos-surface-input);
	border-color: var(--pos-border);
	color: var(--pos-text);
}

.items-selector-input {
	color: var(--pos-text);
}

.items-selector-select {
	color: #5c4e29;
}

.items-selector-item-card {
	background: var(--pos-surface-elevated);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.items-selector-item-media {
	background: linear-gradient(135deg, #d9c9a3 0%, #cfc09a 100%);
	border-bottom-color: var(--pos-border-subtle);
}

.items-selector-item-details {
	background: var(--pos-surface-elevated);
}

.items-selector-item-name {
	color: var(--pos-text);
}

.items-selector-item-price {
	color: var(--pos-text-price);
}

.invoice-customer-input {
	background: var(--pos-surface-input);
	border-color: var(--pos-border);
	color: var(--pos-text);
}

.invoice-customer-input:disabled {
	background: rgba(217, 201, 163, 0.85);
	color: var(--pos-text-dim);
}

.invoice-customer-btn {
	color: var(--pos-text-muted);
}

.pos-table {
	background: var(--pos-surface);
	color: var(--pos-text);
}

.pos-table th {
	background: #d9c9a3;
	color: #4b4124;
	border-bottom-color: var(--pos-border);
}

.pos-table td {
	border-bottom-color: var(--pos-border-subtle);
	color: var(--pos-text);
}

.invoice-footer {
	background: var(--pos-bg-mid);
	border-color: var(--pos-border);
}

.invoice-summary-grid {
	background: linear-gradient(
		135deg,
		rgba(207, 192, 154, 0.9) 0%,
		rgba(217, 201, 163, 0.95) 100%
	);
}

.invoice-summary-cell {
	background: var(--pos-surface-input);
	border-color: var(--pos-border-subtle);
}

.invoice-summary-cell label {
	color: var(--pos-text-muted);
}

.invoice-summary-cell strong,
.invoice-summary-field {
	color: #5c4e29;
}

.invoice-summary-cell.is-readonly {
	background: rgba(217, 201, 163, 0.85);
	border-color: var(--pos-border-subtle);
}

.invoice-summary-cell.is-readonly label,
.invoice-summary-cell.is-readonly .invoice-summary-field {
	color: var(--pos-text-dim);
}

.pos-dialog-card {
	background: var(--pos-surface);
	color: var(--pos-text);
	border: 1px solid var(--pos-border);
}

.pos-dialog-body {
	color: var(--pos-text);
}

.pos-dialog-footer {
	background: var(--pos-bg-mid);
	border-top-color: var(--pos-border);
}

.pos-label {
	color: var(--pos-text-muted);
}

.pos-label.pos-label-required {
	color: #c62828;
	font-weight: 700;
}

#update-customer-save:disabled {
	background: var(--pos-surface-hover) !important;
	border-color: var(--pos-border) !important;
	color: var(--pos-text-dim) !important;
	cursor: not-allowed;
	opacity: 0.65;
	box-shadow: none;
}

.pos-list-item {
	background: var(--pos-surface-input);
	border-color: var(--pos-border-subtle);
	color: var(--pos-text);
}

.pos-empty {
	color: var(--pos-text-dim);
}

.payments-panel-inner {
	background: var(--pos-surface);
	color: var(--pos-text);
}

.payments-summary-col {
	background: var(--pos-bg-mid);
	border-right-color: var(--pos-border);
}

.payments-methods-col {
	background: var(--pos-surface);
}

.payments-summary-line {
	border-bottom-color: var(--pos-border-subtle);
}

.payments-summary-label {
	color: var(--pos-text-muted);
}

.payments-summary-line .payments-summary-value {
	color: var(--pos-text);
}

.payments-summary-total .payments-summary-value {
	color: var(--pos-text-dim);
}

.payments-summary-item-disc .payments-summary-value,
.payments-summary-inv-disc .payments-summary-value {
	color: var(--pos-text-blue);
}

.payments-summary-net .payments-summary-value {
	color: var(--pos-text-dim);
}

.payments-summary-tax .payments-summary-value {
	color: var(--pos-text-cyan);
}

.payments-summary-grand .payments-summary-value {
	color: var(--pos-text-purple);
}

.payments-summary-paid .payments-summary-value {
	color: var(--pos-text-success);
}

.payments-summary-change .payments-summary-value {
	color: var(--pos-text-warning);
}

.payments-summary-outstanding .payments-summary-value {
	color: var(--pos-text-danger);
}

.payments-summary-cust-balance .payments-summary-value {
	color: var(--pos-text-muted);
}

.payments-summary-cust-balance.is-debit .payments-summary-value {
	color: var(--pos-text-danger);
}

.payments-summary-cust-balance.is-credit .payments-summary-value {
	color: var(--pos-text-success);
}

.payments-amount-field input,
.payments-address-select {
	background: var(--pos-surface-input);
	border-color: var(--pos-border);
	color: var(--pos-text);
	font-weight: 700;
	-webkit-text-fill-color: var(--pos-text);
}

.pos-input,
.pos-input-block {
	background: var(--pos-surface-input);
	border-color: var(--pos-border);
	color: var(--pos-text);
}

.items-selector-table {
	background: var(--pos-surface);
	color: var(--pos-text);
}

.items-selector-table thead th {
	background: linear-gradient(180deg, #d9c9a3 0%, #b8954a 100%);
	color: #4b4124;
	border-color: var(--pos-border);
}

.items-selector-table tbody td {
	border-color: var(--pos-border-subtle);
	color: var(--pos-text);
}

.items-selector-table-row:hover:not(.is-disabled) {
	background: var(--pos-surface-hover);
}

.invoice-batch-select,
.invoice-item-rate {
	background: var(--pos-surface-input);
	border-color: var(--pos-border);
	color: var(--pos-text);
}

.pos-invoice-list-table tr.selected {
	background: rgba(166, 141, 68, 0.22);
}

.outstanding-payments-header + .pos-dialog-body .pos-invoice-list-table tr.selected {
	background: rgba(166, 141, 68, 0.28);
}

.opening-dialog-row {
	border-bottom-color: var(--pos-border-subtle);
}

.payments-credit-row,
.payments-address-section,
.payments-banner {
	border-color: var(--pos-border-subtle);
}

.payments-banner-info {
	background: rgba(166, 141, 68, 0.2);
	color: var(--pos-text-accent);
}

.payments-hint {
	color: var(--pos-text-dim);
}

.pos-btn-muted {
	background: var(--pos-surface-input);
	border-color: var(--pos-border);
	color: var(--pos-text-muted);
}

/* Global contrast — readable text across POS sections */
.pos-app,
.pos-dialog,
.pos-dialog-card {
	color: var(--pos-text);
}

.pos-app label,
.pos-dialog label,
.payments-row label,
.payments-credit-row label,
.payments-method-amount label {
	color: var(--pos-text-muted);
}

.pos-invoice-list-table th,
.pos-invoice-list-table td {
	color: var(--pos-text);
}

.pos-invoice-list-table th {
	background: linear-gradient(180deg, #d9c9a3 0%, #b8954a 100%);
	color: #4b4124;
}

.pos-pay-total {
	color: var(--pos-text-accent);
}

.opening-dialog-row {
	color: var(--pos-text);
}

.pos-select-block,
.pos-input-inline {
	background: var(--pos-surface-input);
	border-color: var(--pos-border);
	color: var(--pos-text);
}

.navbar-logo img {
	opacity: 1;
	filter: none;
}

.pos-app input::placeholder,
.pos-dialog input::placeholder {
	color: var(--pos-text-dim);
	opacity: 1;
}

.pos-app option,
.pos-dialog option {
	background: var(--pos-surface);
	color: var(--pos-text);
}

/* Payment dialog — dark theme (matches pos-dialog-body) */
.pos-dialog-payments .payments-dialog-footer {
	background: var(--pos-bg-mid);
	border-top: 1px solid var(--pos-border);
}

.pos-dialog-payments .payments-dialog-footer #payments-dialog-cancel {
	font-weight: 700;
}

.pos-dialog-payments .payments-method-amount label,
.pos-dialog-payments .payments-credit-row label,
.pos-dialog-payments .payments-row label {
	color: var(--pos-text-muted);
}

.pos-dialog-payments .payments-credit-row,
.pos-dialog-payments .payments-banner,
.pos-dialog-payments .payments-address-section {
	color: var(--pos-text);
}

.pos-dialog-payments .payments-banner-info {
	background: rgba(166, 141, 68, 0.2);
	color: var(--pos-text-accent);
}

.pos-dialog-payments .payments-hint {
	color: var(--pos-text-dim);
}

.pos-dialog-payments .payments-address-select,
.pos-dialog-payments .pos-input,
.pos-dialog-payments .pos-input-block {
	background: var(--pos-surface-input);
	border-color: var(--pos-border);
	color: var(--pos-text);
	font-weight: 700;
}

.pos-dialog-payments input::placeholder {
	color: var(--pos-text-dim);
	-webkit-text-fill-color: var(--pos-text-dim);
}

.pos-dialog-payments .payments-amount-field {
	background: var(--pos-surface-input);
}

.pos-dialog-payments .payments-amount-field .payments-amt {
	background: transparent;
	color: var(--pos-text);
	font-weight: 700;
	-webkit-text-fill-color: var(--pos-text);
}

.pos-dialog-payments .payments-mode-btn {
	color: #ffffff;
}

.pos-dialog-payments .payments-mode-rest-btn.is-available {
	color: #ffffff;
}

/* POS responsive layout — mobile / tablet */

@media (max-width: 1024px) {
	.navbar-badge {
		max-width: clamp(72px, 14vw, 140px);
	}

	.navbar-badge-profile,
	.navbar-badge-user {
		max-width: clamp(64px, 12vw, 120px);
	}

	.open-shift {
		max-width: clamp(96px, 18vw, 180px);
	}
}

@media (max-width: 768px) {
	:root {
		--pos-dialog-inset: max(6px, env(safe-area-inset-top, 0px));
		--pos-dialog-max-w: calc(100vw - 12px);
		--pos-dialog-max-h: calc(100dvh - 12px - env(safe-area-inset-bottom, 0px));
	}

	.pos-dialog {
		align-items: stretch;
		padding: 6px;
		padding-bottom: max(6px, env(safe-area-inset-bottom, 0px));
	}

	.pos-dialog-card,
	.pos-dialog-card.pos-dialog-payments,
	.pos-dialog-wide,
	#update-customer .pos-dialog-card {
		width: 100%;
		max-width: var(--pos-dialog-max-w);
		max-height: var(--pos-dialog-max-h);
		border-radius: 10px;
	}

	.pos-dialog-header {
		padding: 10px 12px;
		font-size: 0.9rem;
		flex-shrink: 0;
	}

	.pos-dialog-body {
		padding: 10px;
		min-height: 0;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}

	.pos-dialog-footer {
		flex-shrink: 0;
		flex-wrap: wrap;
		gap: 6px;
		padding: 10px 12px;
	}

	.payments-dialog-body {
		min-height: 0;
		flex: 1;
		overflow: hidden;
	}

	.payments-panel-inner {
		min-height: 0;
		height: 100%;
	}

	.payments-layout {
		flex-direction: column;
		min-height: 0;
		overflow: hidden;
	}

	.payments-summary-col {
		flex: 0 0 auto;
		max-width: none;
		min-width: 0;
		max-height: min(38vh, 280px);
		border-right: none;
		border-bottom: 1px solid var(--pos-border);
		padding: 10px 12px;
	}

	.payments-methods-col {
		flex: 1;
		min-height: 0;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}

	.payments-summary-label {
		font-size: 0.85rem;
	}

	.payments-summary-line .payments-summary-value {
		font-size: 1rem;
	}

	.payments-back-btn {
		bottom: max(8px, env(safe-area-inset-bottom, 0px));
		right: 8px;
	}

	.payments-dialog-footer-inner {
		flex-direction: column;
	}

	.product-bundles-dialog-body {
		max-height: min(55vh, 420px);
	}

	.payments-layout-touch {
		flex-direction: column;
	}

	.payments-layout-touch .payments-summary-col {
		flex: 0 0 auto;
		max-width: none;
		max-height: min(28vh, 200px);
		border-right: none;
		border-bottom: 1px solid var(--pos-border);
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 2px 8px;
	}

	.payments-layout-touch .payments-summary-line {
		border-bottom: none;
		padding: 3px 4px;
	}

	.payments-layout-touch .payments-methods {
		max-height: min(24vh, 180px);
	}

	.payments-numpad-key {
		min-height: 40px;
		font-size: 1rem;
	}

	.customer-search-fields {
		grid-template-columns: 1fr;
	}

	.invoice-footer-host {
		overflow-x: auto;
	}
}

@media (max-width: 480px) {
	.navbar {
		flex-wrap: nowrap;
	}

	.navbar-badge-date,
	.navbar-badge-qty {
		display: none;
	}

	.navbar-badge {
		max-width: 88px;
		padding: 2px 4px;
	}
}

/* Material Design Icons 7.4.47 — POS subset (local assets, manual icon list) */

@font-face {
	font-family: 'Material Design Icons';
	src: url('fonts/materialdesignicons-webfont.woff2?v=7.4.47') format('woff2');
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}

.mdi:before,
.mdi-set {
	display: inline-block;
	font: normal normal normal 24px/1 'Material Design Icons';
	font-size: inherit;
	text-rendering: auto;
	line-height: inherit;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.mdi-spin:before {
	animation: mdi-spin 2s infinite linear;
}

@keyframes mdi-spin {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}

.mdi-account:before {
	content: '\F0004';
}
.mdi-account-edit:before {
	content: '\F06BC';
}
.mdi-alert:before {
	content: '\F0026';
}
.mdi-alert-circle:before {
	content: '\F0028';
}
.mdi-bank-transfer:before {
	content: '\F0A27';
}
.mdi-barcode:before {
	content: '\F0071';
}
.mdi-barcode-scan:before {
	content: '\F0072';
}
.mdi-briefcase:before {
	content: '\F00D6';
}
.mdi-cached:before {
	content: '\F00E8';
}
.mdi-calendar:before {
	content: '\F00ED';
}
.mdi-cash:before {
	content: '\F0114';
}
.mdi-cash-check:before {
	content: '\F14EE';
}
.mdi-cash-multiple:before {
	content: '\F0116';
}
.mdi-cash-register:before {
	content: '\F0CF4';
}
.mdi-cellphone:before {
	content: '\F011C';
}
.mdi-checkbook:before {
	content: '\F0A9D';
}
.mdi-clock-outline:before {
	content: '\F0150';
}
.mdi-clock-start:before {
	content: '\F0155';
}
.mdi-close:before {
	content: '\F0156';
}
.mdi-close-circle:before {
	content: '\F0159';
}
.mdi-content-save:before {
	content: '\F0193';
}
.mdi-counter:before {
	content: '\F0199';
}
.mdi-credit-card:before {
	content: '\F0FEF';
}
.mdi-credit-card-outline:before {
	content: '\F019B';
}
.mdi-currency-usd:before {
	content: '\F01C1';
}
.mdi-delete:before {
	content: '\F01B4';
}
.mdi-domain:before {
	content: '\F01D7';
}
.mdi-file-document-edit:before {
	content: '\F0DC8';
}
.mdi-flash:before {
	content: '\F0241';
}
.mdi-gift-outline:before {
	content: '\F02A1';
}
.mdi-identifier:before {
	content: '\F0EFE';
}
.mdi-information:before {
	content: '\F02FC';
}
.mdi-keyboard-return:before {
	content: '\F0311';
}
.mdi-loading:before {
	content: '\F0772';
}
.mdi-map-marker:before {
	content: '\F034E';
}
.mdi-open-in-new:before {
	content: '\F03CC';
}
.mdi-plus:before {
	content: '\F0415';
}
.mdi-printer:before {
	content: '\F042A';
}
.mdi-shape:before {
	content: '\F0831';
}
.mdi-tag-outline:before {
	content: '\F04FC';
}
.mdi-tag-text-outline:before {
	content: '\F04FD';
}
.mdi-ticket:before {
	content: '\F0516';
}
.mdi-wallet:before {
	content: '\F0584';
}
.mdi-wifi:before {
	content: '\F05A9';
}
.mdi-magnify:before {
	content: '\F0349';
}
.mdi-minus:before {
	content: '\F0374';
}
