@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");
:root {
	--primary: #2563eb;
	--primary-d: #1d4ed8;
	--primary-l: #dbeafe;
	--success: #10b981;
	--warning: #f59e0b;
	--danger: #ef4444;
	--bg: #f0f4f8;
	--surface: #fff;
	--surface-2: #f8fafc;
	--border: #e2e8f0;
	--text: #0f172a;
	--muted: #64748b;
	--light: #94a3b8;
	--sh-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
	--sh: 0 4px 16px rgba(0, 0, 0, 0.07);
	--r: 16px;
	--r-sm: 10px;
	--font: "Plus Jakarta Sans", sans-serif;
}
* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}
body {
	font-family: var(--font);
	background: var(--bg);
	color: var(--text);
}
.topbar {
	background: var(--surface);
	border-bottom: 1px solid var(--border);
	padding: 0 1rem;
	height: 58px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	position: sticky;
	top: 0;
	z-index: 100;
}
.topbar-brand {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	text-decoration: none;
}
.topbar-logo {
	width: 36px;
	height: 36px;
	background: linear-gradient(135deg, var(--primary), #3b82f6);
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 800;
	color: #fff;
}
.topbar-name {
	font-weight: 800;
	color: var(--text);
}
.icon-btn {
	width: 36px;
	height: 36px;
	border-radius: 9px;
	border: 1px solid var(--border);
	background: var(--surface-2);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}
.page-wrap {
	padding: 1rem;
	max-width: 640px;
	margin: 0 auto;
}
.page-title {
	font-size: 1.2rem;
	font-weight: 800;
}
.stats-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.7rem;
	margin-bottom: 1rem;
}
.stat-card {
	background: var(--surface);
	border-radius: var(--r);
	padding: 1rem;
	border: 1px solid var(--border);
}
.stat-value {
	font-size: 1.2rem;
	font-weight: 800;
}
.form-card {
	background: var(--surface);
	border-radius: var(--r);
	border: 1px solid var(--border);
	padding: 1rem;
	margin-bottom: 0.875rem;
}
.form-section-title {
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--primary);
	margin-bottom: 0.75rem;
}
.form-control,
.form-select {
	width: 100%;
	padding: 0.6rem 0.8rem;
	border-radius: var(--r-sm);
	border: 1.5px solid var(--border);
}
.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.6rem 1rem;
	border-radius: var(--r-sm);
	font-weight: 600;
	cursor: pointer;
	border: none;
}
.btn-primary {
	background: var(--primary);
	color: #fff;
}
.btn-outline {
	background: transparent;
	border: 1.5px solid var(--primary);
	color: var(--primary);
}
.btn-danger {
	background: var(--danger);
	color: #fff;
}
.btn-wa {
	background: #25d366;
	color: #fff;
}
.btn-block {
	width: 100%;
}
.order-card {
	background: var(--surface);
	border-radius: var(--r);
	padding: 0.8rem;
	margin-bottom: 0.6rem;
	border: 1px solid var(--border);
	cursor: pointer;
}
.badge-success {
	background: #d1fae5;
	color: #065f46;
	padding: 0.2rem 0.6rem;
	border-radius: 20px;
	font-size: 0.7rem;
	font-weight: 700;
}
.badge-warning {
	background: #fef3c7;
	color: #92400e;
}
.badge-danger {
	background: #fee2e2;
	color: #991b1b;
}
.empty-state {
	text-align: center;
	padding: 2rem;
	color: var(--muted);
}
.loading-overlay {
	position: fixed;
	inset: 0;
	background: rgba(255, 255, 255, 0.7);
	backdrop-filter: blur(3px);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 9999;
}
.loading-overlay.show {
	display: flex;
}
.spinner {
	width: 38px;
	height: 38px;
	border: 3px solid var(--border);
	border-top-color: var(--primary);
	border-radius: 50%;
	animation: spin 0.7s linear infinite;
}
@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}
.toast-container {
	position: fixed;
	top: 1rem;
	left: 50%;
	transform: translateX(-50%);
	z-index: 10000;
}
.toast {
	background: var(--text);
	color: white;
	padding: 0.6rem 1rem;
	border-radius: var(--r-sm);
	margin-bottom: 0.5rem;
}
.login-page {
	min-height: 100vh;
	background: linear-gradient(135deg, #1e40af, #2563eb);
	display: flex;
	align-items: center;
	justify-content: center;
}
.login-card {
	background: var(--surface);
	border-radius: var(--r);
	padding: 2rem;
	width: 100%;
	max-width: 360px;
}
.brand-logo {
	width: 60px;
	height: 60px;
	background: linear-gradient(135deg, var(--primary), #3b82f6);
	border-radius: 17px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
	font-weight: 800;
	color: white;
	margin: 0 auto 0.8rem;
}
.pin-display {
	display: flex;
	justify-content: center;
	gap: 0.7rem;
	margin: 1.5rem 0;
}
.pin-dot {
	width: 15px;
	height: 15px;
	border-radius: 50%;
	border: 2px solid var(--border);
}
.pin-dot.filled {
	background: var(--primary);
	border-color: var(--primary);
}
.pin-keypad {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0.55rem;
}
.pin-key {
	background: var(--surface-2);
	border: 1.5px solid var(--border);
	border-radius: var(--r-sm);
	padding: 0.8rem;
	font-size: 1.2rem;
	font-weight: 600;
	cursor: pointer;
	text-align: center;
}
.text-danger {
	color: var(--danger);
}
.text-success {
	color: var(--success);
}
.list-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0.5rem;
	background: var(--surface-2);
	border-radius: 8px;
	margin-bottom: 0.5rem;
}
.form-row {
	display: flex;
	gap: 0.5rem;
	margin-bottom: 0.5rem;
}
@media print {
	.no-print {
		display: none !important;
	}
	body {
		background: white;
	}
	.invoice-wrap {
		box-shadow: none;
	}
}
