@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Sora:wght@500;600;700&display=swap');

:root {
	--bg: #121722;
	--panel: #1a2232;
	--ink: #e8edf6;
	--muted: #9aa7bd;
	--line: #263246;
	--accent: #6da6ff;
	--accent-2: #37d6b6;
	--danger: #ff7b6b;
	--warning: #f6c453;
	--shadow: 0 18px 38px rgba(0, 0, 0, 0.45);
	--radius: 12px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
	margin: 0;
	color: var(--ink);
	font-family: 'Manrope', 'Segoe UI', sans-serif;
	background: radial-gradient(900px 400px at 15% -10%, #1d2536 0%, transparent 60%),
						radial-gradient(700px 320px at 100% 0%, #1a2130 0%, transparent 55%),
						var(--bg);
	font-size: 18px;
	line-height: 1.55;
}

body.login-page {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.login-wrap {
	width: min(100%, 840px);
}

.login-wrap .card {
	width: 100%;
}

.login-head {
	display: grid;
	gap: 4px;
	text-align: center;
}

.login-card .card-body {
	padding: 20px;
}

.login-form {
	display: grid;
	gap: 12px;
}

.login-pin-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 240px;
	gap: 14px;
	align-items: stretch;
}

.login-panel {
	display: grid;
	gap: 12px;
	padding: 14px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: #141b2a;
}

.login-submit {
	width: 100%;
	min-height: 46px;
}

.login-submit.btn {
	font-size: 29px;
}

.login-numpad {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
}


.login-key {
	padding: 10px 8px;
	min-height: 64px;
	font-size: 25px;
	font-weight: 700;
}

.login-key-action {
	font-size: 15px;
}

@media (max-width: 700px) {
	.login-pin-layout {
		grid-template-columns: 1fr;
	}

	.login-wrap {
		width: min(100%, 560px);
	}
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.app-shell { display: flex; min-height: 100vh; }
.sidebar {
	width: 240px;
	background: #161e2b;
	border-right: 1px solid var(--line);
	padding: 18px 14px;
	position: sticky;
	top: 0;
	height: 100vh;
	overflow-y: auto;
}
.sidebar-top { display: flex; justify-content: center; margin-bottom: 12px; }
.sidebar-logo img { width: 40px; height: 40px; display: block; }
.sidebar-nav { display: grid; gap: 6px; }
.nav-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 11px 12px;
	border-radius: 10px;
	color: var(--ink);
	font-weight: 600;
}
.nav-item:hover { background: #1f2a3d; text-decoration: none; }
.nav-item.active { background: #21304a; color: #cfe0ff; }
.nav-ico { width: 18px; height: 18px; fill: currentColor; }
.nav-label { font-size: 16px; }

.sidebar-overlay {
	position: fixed;
	inset: 0;
	background: rgba(16, 24, 40, 0.35);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

.main { flex: 1; display: flex; flex-direction: column; }
.topbar {
	position: sticky;
	top: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 22px;
	background: rgba(20, 26, 38, 0.9);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 34px; height: 34px; }
.brand-title { font-family: 'Sora', sans-serif; font-weight: 600; letter-spacing: 0.2px; font-size: 18px; }
.brand-sub { color: var(--muted); font-size: 15px; letter-spacing: 0.8px; }
.topbar-center {
	color: var(--muted);
	font-size: 17px;
	display: grid;
	gap: 2px;
	justify-items: center;
}
.topbar-user {
	font-size: 13px;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: #b9c7de;
}
.topbar-role { color: var(--muted); }
.agent-name { font-weight: 600; color: var(--ink); }
.topbar-right { display: flex; align-items: center; gap: 10px; }

.icon-btn {
	border: 1px solid var(--line);
	background: #161e2b;
	border-radius: 10px;
	padding: 8px 10px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.icon-btn:hover { background: #1f2a3d; }
.menu { display: block; width: 16px; height: 2px; background: var(--ink); position: relative; }
.menu::before, .menu::after { content: ''; position: absolute; left: 0; width: 16px; height: 2px; background: var(--ink); }
.menu::before { top: -5px; }
.menu::after { top: 5px; }

.logout { font-weight: 700; }

.content { padding: 20px 20px 36px; }

.card, .panel, .dash-card, .chart-card, .pay-card, .modal-card {
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}
.card.pad, .panel, .dash-card, .pay-card { padding: 18px; }
.card-body { padding: 18px; }
.panel-head { font-family: 'Sora', sans-serif; font-weight: 600; margin-bottom: 12px; font-size: 20px; }
.panel-body { display: grid; gap: 12px; }

.toast {
	padding: 10px 12px;
	border-radius: 10px;
	font-weight: 600;
	border: 1px solid #2b3850;
	background: #1a2232;
}
.toast.ok { background: #0f2a25; border-color: #1f4b43; color: #5eead4; }
.toast.danger { background: #2a1416; border-color: #3a1d20; color: var(--danger); }

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	border: 1px solid transparent;
	padding: 9px 16px;
	border-radius: 10px;
	font-weight: 700;
	font-size: 16px;
	cursor: pointer;
	background: #161e2b;
	color: var(--ink);
}
.btn:hover { filter: brightness(0.98); text-decoration: none; }
.btn-primary, .btn-blue { background: var(--accent); color: #0b1220; }
.btn-green { background: var(--accent-2); color: #081312; }
.btn-gold { background: #f59e0b; color: #1c1302; }
.btn-xs { padding: 4px 8px; font-size: 12px; }

.form-control, .in, .sel, select, input, textarea {
	width: 100%;
	padding: 10px 12px;
	border-radius: 10px;
	border: 1px solid var(--line);
	background: #141b2a;
	font-family: inherit;
	font-size: 18px;
	color: var(--ink);
}
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 0.9; }
label { font-weight: 600; font-size: 17px; }
.mfield { display: grid; gap: 6px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

.tabs { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.tab {
	padding: 6px 12px;
	border-radius: 999px;
	border: 1px solid var(--line);
	background: #161e2b;
	font-weight: 700;
	cursor: pointer;
}
.tab.active { background: #21304a; color: #cfe0ff; border-color: #2b3a55; }

.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th, .tbl td { padding: 12px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.tbl thead th {
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
	background: #141b2a;
}
.tbl tbody tr { transition: background 0.15s ease; }
.tbl tbody tr:hover { background: #192232; }
.tbl .row-sel { background: #1e2a40; }
.table-wrap { overflow-x: auto; }
.pill {
	display: inline-flex;
	align-items: center;
	padding: 3px 8px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	border: 1px solid var(--line);
	background: #141b2a;
}
.pill.paid { background: #0f2a25; border-color: #1f4b43; color: #5eead4; }
.pill.unpaid { background: #2a1416; border-color: #3a1d20; color: var(--danger); }

.dash-wrap { display: grid; gap: 16px; }
.dash-head { font-family: 'Sora', sans-serif; font-weight: 600; font-size: 21px; margin-bottom: 10px; }
.dash-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.stat {
	display: flex;
	gap: 12px;
	align-items: center;
	padding: 14px;
	border-radius: 14px;
	background: linear-gradient(180deg, #1c2638, #161e2b 65%);
	border: 1px solid #2a3750;
}
.stat-ico {
	width: 38px;
	height: 38px;
	border-radius: 12px;
	background: #1a2538;
	border: 1px solid #2c3a55;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #e8f0ff;
	position: relative;
}
.stat-ico::before {
	content: '';
	width: 18px;
	height: 18px;
	background: currentColor;
	mask-repeat: no-repeat;
	mask-position: center;
	mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	-webkit-mask-position: center;
	-webkit-mask-size: contain;
}
.stat-ico.sales {
	background: #1d2b45;
	color: #b9d2ff;
}
.stat-ico.sales::before {
	mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M4 19h16v2H4zm2-4h3v3H6zm4-6h3v9h-3zm4-3h3v12h-3z'/></svg>");
	-webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M4 19h16v2H4zm2-4h3v3H6zm4-6h3v9h-3zm4-3h3v12h-3z'/></svg>");
}
.stat-ico.payments {
	background: #1b2f33;
	color: #8ff1da;
}
.stat-ico.payments::before {
	mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M3 7h18v10H3zm2 3v4h8v-4zm10 0h4v1h-4zm0 3h3v1h-3z'/></svg>");
	-webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M3 7h18v10H3zm2 3v4h8v-4zm10 0h4v1h-4zm0 3h3v1h-3z'/></svg>");
}
.stat-ico.customers {
	background: #2b263a;
	color: #d6c0ff;
}
.stat-ico.customers::before {
	mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M16 11a4 4 0 1 0-4-4 4 4 0 0 0 4 4zm-8 0a3 3 0 1 0-3-3 3 3 0 0 0 3 3zm8 2c-3.33 0-8 1.67-8 5v1h16v-1c0-3.33-4.67-5-8-5zm-8 0c-.62 0-1.29.05-2 .15 1.67 1.08 3 2.65 3 4.85v1H2v-1c0-2.67 2.67-4 6-4z'/></svg>");
	-webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M16 11a4 4 0 1 0-4-4 4 4 0 0 0 4 4zm-8 0a3 3 0 1 0-3-3 3 3 0 0 0 3 3zm8 2c-3.33 0-8 1.67-8 5v1h16v-1c0-3.33-4.67-5-8-5zm-8 0c-.62 0-1.29.05-2 .15 1.67 1.08 3 2.65 3 4.85v1H2v-1c0-2.67 2.67-4 6-4z'/></svg>");
}
.stat-ico.plans {
	background: #2a2c3d;
	color: #ffe08a;
}
.stat-ico.plans::before {
	mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M6 2h12l4 7-10 13L2 9zm6 5a2 2 0 1 0 2 2 2 2 0 0 0-2-2z'/></svg>");
	-webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M6 2h12l4 7-10 13L2 9zm6 5a2 2 0 1 0 2 2 2 2 0 0 0-2-2z'/></svg>");
}
.stat-label { color: #c6d2e6; font-size: 15px; }
.stat-value { font-weight: 700; font-size: 20px; }
.dash-charts { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; }
.chart-card { padding: 12px; }
.chart-title { font-weight: 700; margin-bottom: 6px; }
.dash-table { margin-top: 10px; }
.dash-subhead { font-weight: 700; margin-bottom: 8px; }

.sales-grid { display: grid; grid-template-columns: 1.1fr 1.3fr; gap: 16px; }
.sales-grid.single { grid-template-columns: 1fr; }
.search-row { margin-bottom: 6px; }
.search {
	position: relative;
	background: #111827;
	border: 1px solid #243149;
	border-radius: 12px;
	padding: 6px;
}
.search input {
	border: 0;
	background: transparent;
	padding: 10px 12px 10px 38px;
	font-size: 16px;
}
.search .search-ico { left: 16px; }

.sales-grid .tabs { margin-top: 6px; }
.sales-grid .tabs .tab {
	background: #141b2a;
	border-color: #2a3750;
	color: #cfe0ff;
	font-size: 13px;
	letter-spacing: 0.03em;
}
.sales-grid .tabs .tab.active {
	background: linear-gradient(120deg, #2a3b55, #1e2a40);
	border-color: #3a4d70;
	color: #eaf1ff;
}
.plan-list { display: grid; gap: 10px; }
.plan-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 12px;
}
.plan-card {
	border: 1px solid #283449;
	padding: 14px;
	border-radius: 14px;
	background: linear-gradient(180deg, #172134, #121a29 60%);
	display: grid;
	gap: 4px;
	text-align: center;
	box-shadow: 0 12px 22px rgba(0, 0, 0, 0.35);
}
.plan-ico {
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: #21304a;
	margin: 0 auto 4px;
	border: 1px solid #2c3a55;
}
.plan-name { font-weight: 700; font-size: 16px; }
.plan-price { font-weight: 700; color: #9fc0ff; font-size: 16px; }
.plan-desc { color: #b8c5da; font-size: 14px; }
.plan-card .muted { color: #a9b9d4; }
.plan-btn { margin-top: 6px; }
.sale-summary { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px dashed var(--line); border-radius: 12px; }
.summary-ico { width: 40px; height: 40px; border-radius: 12px; background: #21304a; }
.summary-title { font-weight: 700; font-size: 18px; }
.summary-price { margin-left: auto; font-weight: 700; font-size: 23px; }

.checkout { display: grid; gap: 12px; }
.subhead { font-weight: 700; margin: 14px 0 8px; }
.bottom-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: start; }
.trow { display: flex; justify-content: space-between; gap: 10px; font-size: 17px; }
.due { color: var(--accent); font-weight: 800; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }

.check {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 10px;
	border-radius: 10px;
	border: 1px solid var(--line);
	background: #141b2a;
	width: fit-content;
}
.check input {
	width: 16px;
	height: 16px;
	margin: 0;
}

.radio-list {
	display: grid;
	gap: 8px;
	padding: 8px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: #141b2a;
}
.radio {
	display: grid;
	grid-template-columns: 16px 1fr;
	align-items: center;
	gap: 10px;
	padding: 8px 10px;
	border-radius: 10px;
	border: 1px solid transparent;
	background: #161e2b;
}
.radio input { margin: 0; }
.radio:hover { border-color: #2b3850; }

.method-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}
.method {
	border: 1px solid var(--line);
	background: #161e2b;
	color: var(--ink);
	padding: 10px 12px;
	border-radius: 10px;
	font-weight: 700;
	text-align: center;
	cursor: pointer;
}
.method.active {
	border-color: #2b3a55;
	background: #21304a;
	color: #cfe0ff;
}

.inst-box {
	margin-top: 8px;
	padding: 10px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: #141b2a;
}
.inst-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}
.inst-label { font-weight: 600; }

.bottom-bar {
	border-top: 1px solid var(--line);
	padding-top: 12px;
}
.totals {
	background: #141b2a;
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 10px 12px;
}

.pay-wrap { display: grid; gap: 12px; }
.pay-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pay-title { font-family: 'Sora', sans-serif; font-weight: 600; font-size: 21px; }
.pay-body { display: grid; gap: 14px; }
.pay-tools {
	display: grid;
	grid-template-columns: minmax(260px, 1fr) auto;
	gap: 12px;
	align-items: end;
}
.pay-search { position: relative; }
.pay-search input { min-width: 260px; }
.pay-filters {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	align-items: end;
	justify-content: flex-end;
}
.pay-filters .sel { min-width: 190px; }
.pay-filters .btn { height: 44px; }
.pay-search .search-ico, .search-ico {
	position: absolute;
	left: 12px;
	top: 50%;
	width: 14px;
	height: 14px;
	border: 2px solid #3a4660;
	border-radius: 50%;
	transform: translateY(-50%);
}
.pay-search .search-ico::after, .search-ico::after {
	content: '';
	position: absolute;
	width: 7px;
	height: 2px;
	background: #3a4660;
	right: -5px;
	bottom: -2px;
	transform: rotate(45deg);
	border-radius: 2px;
}
.pay-search input { padding-left: 32px; }
.pay-table {
	border: 1px solid var(--line);
	border-radius: 12px;
	overflow: hidden;
	background: #141b2a;
}
.tbl.tbl-pay { font-size: 15px; }
.tbl.tbl-pay thead th {
	color: var(--ink);
	opacity: 0.78;
	font-weight: 800;
	font-size: 12px;
}
.tbl.tbl-pay td { font-weight: 600; }

.pay-actions { display: flex; flex-direction: column; gap: 6px; }
.act { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.act {
	border-radius: 8px;
	border: 1px solid var(--line);
	padding: 6px 8px;
	background: #141b2a;
	color: var(--ink);
	font-size: 13px;
	line-height: 1.25;
}
.act:hover { background: #1a2232; text-decoration: none; }
.ico {
	width: 16px;
	height: 16px;
	display: inline-block;
	background: currentColor;
	mask-repeat: no-repeat;
	mask-position: center;
	mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	-webkit-mask-position: center;
	-webkit-mask-size: contain;
}
.ico.edit {
	mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M4 20h4l10.5-10.5-4-4L4 16v4zm14.7-11.3a1 1 0 0 0 0-1.4l-2-2a1 1 0 0 0-1.4 0l-1.5 1.5 4 4 1.9-1.9z'/></svg>");
	-webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M4 20h4l10.5-10.5-4-4L4 16v4zm14.7-11.3a1 1 0 0 0 0-1.4l-2-2a1 1 0 0 0-1.4 0l-1.5 1.5 4 4 1.9-1.9z'/></svg>");
}
.ico.eye {
	mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M12 5c-5 0-9.27 3.11-11 7 1.73 3.89 6 7 11 7s9.27-3.11 11-7c-1.73-3.89-6-7-11-7zm0 11a4 4 0 1 1 0-8 4 4 0 0 1 0 8z'/></svg>");
	-webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M12 5c-5 0-9.27 3.11-11 7 1.73 3.89 6 7 11 7s9.27-3.11 11-7c-1.73-3.89-6-7-11-7zm0 11a4 4 0 1 1 0-8 4 4 0 0 1 0 8z'/></svg>");
}

.pay-foot {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: stretch;
	border-top: 1px solid var(--line);
	padding-top: 12px;
}
.daily {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px;
	border-radius: 12px;
	border: 1px solid var(--line);
	background: #141b2a;
	flex: 1 1 260px;
}
.daily-ico {
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: #1a2538;
	border: 1px solid #2c3a55;
}
.daily-label {
	color: var(--muted);
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-weight: 800;
}
.daily-value { font-weight: 800; font-size: 19px; }

/* Audit trail */
.audit-page .page-title {
	margin-bottom: 10px;
}

.audit-card {
	display: grid;
	gap: 16px;
	padding: 20px;
}

.audit-filters {
	row-gap: 14px;
	column-gap: 14px;
}

.audit-filters .mfield span {
	font-size: 14px;
	letter-spacing: 0.02em;
}

.audit-filter-actions {
	padding-top: 2px;
}

.audit-table-wrap {
	border: 1px solid var(--line);
	border-radius: 12px;
	overflow: auto;
	background: #141b2a;
}

.tbl.tbl-audit {
	min-width: 980px;
	font-size: 14px;
}

.tbl.tbl-audit th,
.tbl.tbl-audit td {
	padding: 14px 14px;
	vertical-align: top;
	line-height: 1.45;
}

.tbl.tbl-audit thead th {
	font-size: 11px;
	letter-spacing: 0.1em;
	font-weight: 800;
	background: #172033;
	position: sticky;
	top: 0;
	z-index: 1;
}

.tbl.tbl-audit tbody td:nth-child(1) {
	min-width: 168px;
	white-space: nowrap;
}

.tbl.tbl-audit tbody td:nth-child(2) {
	min-width: 150px;
}

.tbl.tbl-audit tbody td:nth-child(3) {
	min-width: 120px;
}

.tbl.tbl-audit tbody td:nth-child(4) {
	min-width: 220px;
}

.audit-user-role {
	font-size: 11px;
	margin-top: 2px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.audit-details-cell {
	min-width: 360px;
	max-width: 560px;
	white-space: normal;
	word-break: break-word;
	color: #c7d3e8;
}

@media (max-width: 900px) {
	.pay-tools { grid-template-columns: 1fr; }
	.pay-filters { justify-content: flex-start; }
}

/* Customer management */
.cust-wrap { display: grid; gap: 16px; }
.cust-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
	gap: 16px;
	align-items: start;
}
.cust-panel {
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: 14px;
	box-shadow: var(--shadow);
	overflow: hidden;
}
.cust-head {
	padding: 16px 18px;
	font-family: 'Sora', sans-serif;
	font-weight: 600;
	font-size: 19px;
	border-bottom: 1px solid var(--line);
	background: linear-gradient(120deg, rgba(31, 48, 74, 0.7), rgba(26, 34, 50, 0.2));
}
.cust-body { padding: 16px 18px 18px; display: grid; gap: 12px; }
.cust-tools {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}
.cust-search { position: relative; flex: 1 1 360px; }
.cust-search input {
	padding-left: 36px;
	background: #111827;
	border-color: #243149;
}
.cust-table { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.rowlink { color: var(--ink); font-weight: 600; }
.rowlink:hover { color: #cfe0ff; text-decoration: none; }

.cust-profile-head {
	display: grid;
	grid-template-columns: 44px 1fr;
	gap: 12px;
	align-items: center;
}
.avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: radial-gradient(circle at 30% 30%, #2a3b55, #141b2a);
	border: 1px solid var(--line);
}
.cust-name { font-weight: 700; font-size: 18px; }

.cust-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.ctab {
	padding: 6px 12px;
	border-radius: 999px;
	border: 1px solid var(--line);
	background: #161e2b;
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 0.02em;
}
.ctab.active { background: #21304a; color: #cfe0ff; border-color: #2b3a55; }

.cust-form { display: grid; gap: 8px; }
.label { font-weight: 600; font-size: 14px; color: var(--muted); }
.cust-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cust-notes .ta {
	width: 100%;
	padding: 10px 12px;
	border-radius: 10px;
	border: 1px solid var(--line);
	background: #141b2a;
	color: var(--ink);
	font-family: inherit;
}

.modal { position: fixed; inset: 0; display: none; place-items: center; z-index: 20; }
.modal[aria-hidden="false"] { display: grid; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.55); }
.modal-card { position: relative; width: min(520px, 92vw); padding: 14px; }
.modal-card.receipt-modal { width: min(980px, 94vw); }
.modal-card.photo-modal {
	width: min(96vw, 1300px);
	padding: 10px;
	background: transparent;
	border: 0;
	box-shadow: none;
	display: grid;
	place-items: center;
}
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.modal-title { font-weight: 700; }
.modal-x {
	width: 38px;
	height: 38px;
	display: inline-grid;
	place-items: center;
	background: #161e2b;
	border: 1px solid var(--line);
	border-radius: 10px;
	color: var(--ink);
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}
.modal-x:hover { background: #1f2a3d; }
.modal-x:active { transform: translateY(1px); }
.modal-body { display: grid; gap: 10px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; }

.page { display: grid; gap: 12px; }
.page-title { font-family: 'Sora', sans-serif; font-weight: 600; font-size: 21px; }
.muted { color: var(--muted); }

.alert { padding: 10px 12px; border-radius: 10px; border: 1px solid #3a1d20; background: #2a1416; color: var(--danger); }

.d-flex { display: flex; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.row { display: flex; flex-wrap: wrap; margin: -6px; }
.row > * { padding: 6px; }
.col-md-4 { width: 100%; }
.g-3 { gap: 12px; }
.h3 { font-size: 23px; margin: 0 0 12px; font-family: 'Sora', sans-serif; }
.small { font-size: 16px; }
.fw-semibold { font-weight: 600; }
.text-muted { color: var(--muted); }

@media (min-width: 900px) {
	.col-md-4 { width: 33.333%; }
}

@media (max-width: 900px) {
	.sidebar {
		position: fixed;
		left: 0;
		top: 0;
		transform: translateX(-110%);
		transition: transform 0.2s ease;
		z-index: 10;
	}
	body.sidebar-open .sidebar { transform: translateX(0); }
	body.sidebar-open .sidebar-overlay { opacity: 1; pointer-events: auto; }
	.dash-stats, .dash-charts, .sales-grid, .grid2, .split, .bottom-bar { grid-template-columns: 1fr; }
	.main { width: 100%; }
}

@media (max-width: 1100px) {
	.cust-grid { grid-template-columns: 1fr; }
}
