:root {
	--primary: #7567e8;
	--primary2: #927ff4;
	--green: #28bd78;
	--green2: #48d895;
	--ink: #172033;
	--muted: #718096;
	--bg: #f7f8fc;
	--card: #fff;
	--line: #e9ebf2;
	--danger: #ef6b78;
	--shadow: 0 10px 30px rgba(37,43,72,.08);
	--radius: 20px;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: Inter,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
	padding-bottom: 86px;
}

.app-main {
	min-height: calc(100vh - 68px);
	padding: 24px 0 30px;
}

.topbar {
	height: 68px;
	background: #fff;
	border-bottom: 1px solid var(--line);
	position: sticky;
	top: 0;
	z-index: 1030;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--ink);
	text-decoration: none;
	font-weight: 800;
	font-size: 17px;
}

.brand-mark {
	width: 38px;
	height: 38px;
	border-radius: 13px;
	display: grid;
	place-items: center;
	background: linear-gradient(135deg,var(--primary),var(--primary2));
	color: #fff;
	font-size: 19px;
}

.user-pill {
	background: #f5f6fb;
	border-radius: 30px;
	padding: 5px 12px 5px 6px;
	font-size: 13px;
	font-weight: 700;
}

.avatar-sm {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: #e9e6ff;
	color: var(--primary);
}

.icon-btn {
	width: 38px;
	height: 38px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: #fff;
	color: var(--muted);
	display: grid;
	place-items: center;
	text-decoration: none;
}

.page-title {
	font-size: clamp(23px,3vw,32px);
	font-weight: 850;
	letter-spacing: -.03em;
}

.page-subtitle {
	color: var(--muted);
	font-size: 14px;
}

.surface {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.hero {
	padding: 28px;
	background: linear-gradient(135deg,#fff,#f7f5ff);
	overflow: hidden;
	position: relative;
}

.hero:after {
	content: "";
	position: absolute;
	width: 220px;
	height: 220px;
	border-radius: 50%;
	background: #eeeaff;
	right: -80px;
	top: -100px;
}

.hero-content {
	position: relative;
	z-index: 1;
}

.action-card {
	border: 0;
	border-radius: 24px;
	color: #fff;
	text-decoration: none;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	min-height: 205px;
	padding: 25px;
	box-shadow: 0 14px 28px rgba(65,55,160,.16);
	transition: .2s transform,.2s box-shadow;
}

.action-card:hover {
	color: #fff;
	transform: translateY(-3px);
	box-shadow: 0 18px 35px rgba(65,55,160,.22);
}

.action-stock {
	background: linear-gradient(145deg,#8273ec,#6a5bd4);
}

.action-sale {
	background: linear-gradient(145deg,#43cc8b,#22b873);
}

.action-icon {
	width: 56px;
	height: 56px;
	border-radius: 17px;
	background: rgba(255,255,255,.2);
	display: grid;
	place-items: center;
	font-size: 28px;
}

.action-title {
	font-size: 27px;
	font-weight: 850;
	margin-top: 22px;
}

.action-text {
	opacity: .9;
	font-size: 13px;
}

.circle-arrow {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #fff;
	color: var(--primary);
	display: grid;
	place-items: center;
	font-size: 20px;
    aspect-ratio:1;
}

.stat-card {
	padding: 18px 20px;
}

.stat-icon {
	width: 42px;
	height: 42px;
	border-radius: 14px;
	display: grid;
	place-items: center;
	background: #f0efff;
	color: var(--primary);
	font-size: 20px;
}

.stat-value {
	font-size: 24px;
	font-weight: 850;
}

.stat-label {
	font-size: 12px;
	color: var(--muted);
}

.section-card {
	padding: 20px;
}

.section-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
}

.section-title {
	font-size: 17px;
	font-weight: 800;
}

.soft-input {
	background: #f7f8fc;
	border: 1px solid transparent;
	border-radius: 13px;
	padding: .72rem .9rem;
}

.soft-input:focus {
	background: #fff;
	border-color: #c9c3ff;
	box-shadow: 0 0 0 .2rem rgba(117,103,232,.1);
}

.btn-primary {
	--bs-btn-bg: var(--primary);
	--bs-btn-border-color: var(--primary);
	--bs-btn-hover-bg: #6254d7;
	--bs-btn-hover-border-color: #6254d7;
	border-radius: 12px;
	font-weight: 750;
}

.btn-success {
	--bs-btn-bg: var(--green);
	--bs-btn-border-color: var(--green);
	--bs-btn-hover-bg: #1eaa68;
	--bs-btn-hover-border-color: #1eaa68;
	border-radius: 12px;
	font-weight: 750;
}

.btn-soft {
	background: #f1efff;
	color: var(--primary);
	border: 0;
	border-radius: 12px;
	font-weight: 750;
}

.bottom-nav {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(255,255,255,.96);
	backdrop-filter: blur(14px);
	border-top: 1px solid var(--line);
	z-index: 1040;
}

.bottom-nav-inner {
	max-width: 900px;
	margin: auto;
	display: flex;
	justify-content: space-around;
	padding: 8px 10px;
}

.nav-item {
	color: #8790a4;
	text-decoration: none;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
	font-size: 10px;
	font-weight: 700;
	padding: 6px 12px;
	border-radius: 14px;
	min-width: 70px;
}

.nav-item i {
	font-size: 20px;
}

.nav-item.active {
	color: var(--primary);
	background: #f1efff;
}

.nav-sale.active {
	background: #e9fff4;
	color: #1ca96a;
}

.search-wrap {
	position: relative;
}

.search-menu {
	position: absolute;
	left: 0;
	right: 0;
	top: calc(100% + 7px);
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 15px;
	box-shadow: 0 16px 35px rgba(32,38,66,.13);
	z-index: 20;
	max-height: 330px;
	overflow: auto;
}

.search-item {
	padding: 12px 14px;
	border-bottom: 1px solid #f0f1f5;
	cursor: pointer;
}

.search-item:hover {
	background: #f8f7ff;
}

.product-card {
	border: 1px solid var(--line);
	border-radius: 17px;
	background: #fff;
	padding: 14px;
	cursor: pointer;
	height: 100%;
	transition: .15s;
}

.product-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow);
	border-color: #d8d2ff;
}

.product-thumb {
	height: 92px;
	border-radius: 13px;
	background: linear-gradient(135deg,#f3f1ff,#eefbf5);
	display: grid;
	place-items: center;
	color: var(--primary);
	font-size: 32px;
	margin-bottom: 11px;
}

.product-name {
	font-size: 13px;
	font-weight: 800;
}

.product-price {
	font-weight: 850;
	color: var(--green);
	margin-top: 4px;
}

.pos-layout {
	display: grid;
	grid-template-columns: minmax(0,1fr) 390px;
	gap: 18px;
}

.cart-panel {
	position: sticky;
	top: 86px;
	height: calc(100vh - 110px);
	display: flex;
	flex-direction: column;
}

.cart-items {
	flex: 1;
	overflow: auto;
}

.cart-row {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 8px;
	padding: 12px 0;
	border-bottom: 1px solid #f0f1f5;
}

.qty-control {
	display: flex;
	align-items: center;
	gap: 6px;
}

.qty-control button {
	width: 28px;
	height: 28px;
	border: 0;
	border-radius: 8px;
	background: #f0efff;
	color: var(--primary);
}

.total-box {
	background: #f7f8fc;
	border-radius: 16px;
	padding: 15px;
}

.total-big {
	font-size: 31px;
	font-weight: 900;
	color: var(--green);
}

.table-card {
	overflow: hidden;
}

.table thead th {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: #8992a5;
	background: #fafaff;
	border-bottom: 1px solid var(--line);
}

.table td {
	vertical-align: middle;
}

.badge-soft {
	background: #eeeaff;
	color: var(--primary);
	font-weight: 750;
}

.stock-low {
	color: #e59421;
	font-weight: 800;
}

.stock-ok {
	color: #1da86b;
	font-weight: 800;
}

.empty-state {
	text-align: center;
	padding: 55px 20px;
	color: var(--muted);
}

.empty-icon {
	width: 64px;
	height: 64px;
	border-radius: 20px;
	background: #f1efff;
	color: var(--primary);
	display: grid;
	place-items: center;
	margin: 0 auto 15px;
	font-size: 28px;
}

.form-label {
	font-size: 12px;
	font-weight: 800;
	color: #5f687b;
}

.modal-content {
	border: 0;
	border-radius: 22px;
	box-shadow: 0 25px 70px rgba(22,28,52,.18);
}

.toast {
	border: 0;
	border-radius: 14px;
	box-shadow: var(--shadow);
}

@media(max-width:991.98px) {
	.pos-layout {
		grid-template-columns: 1fr;
	}

	.cart-panel {
		position: static;
		height: auto;
	}

	.cart-items {
		max-height: 340px;
	}

	.action-card {
		min-height: 180px;
	}

	.product-thumb {
		height: 80px;
	}
}

@media(max-width:575.98px) {
	.app-main {
		padding-top: 15px;
	}

	.hero {
		padding: 21px;
	}

	.action-card {
		min-height: 155px;
		padding: 19px;
	}

	.action-title {
		font-size: 21px;
		margin-top: 14px;
	}

	.action-icon {
		width: 46px;
		height: 46px;
		font-size: 22px;
	}

	.stat-value {
		font-size: 20px;
	}

	.section-card {
		padding: 15px;
	}

	.bottom-nav-inner {
		padding-left: 3px;
		padding-right: 3px;
	}

	.nav-item {
		min-width: 58px;
		padding: 6px 5px;
	}

	.nav-item span {
		font-size: 9px;
	}

	.nav-item i {
		font-size: 18px;
	}

	.brand {
		font-size: 14px;
	}

	.brand-mark {
		width: 34px;
		height: 34px;
	}

	.table-responsive {
		border-radius: 16px;
	}

	.desktop-only {
		display: none!important;
	}
}

.progress-thin {
	height: 9px;
}

.report-bar {
	width: var(--bar-width,0%);
	background: var(--primary);
}

.login-page {
	min-height: 100vh;
	display: grid;
	place-items: center;
	padding: 20px;
	background: linear-gradient(135deg,#f4f1ff,#f0fff7);
}

.login-card {
	width: min(420px,100%);
	padding: 32px;
}

.login-card .brand-mark {
	width: 58px;
	height: 58px;
	font-size: 27px;
}

.tip-icon {
	background: #eeeaff;
	color: var(--primary);
}