/* ============================================================
   CPOVerified — sitewide design system
   Mobile-first fintech look: white canvas, blue accent, soft cards.
   Loaded on every client page (template.php + general_page.php).
   ============================================================ */

:root {
	--cpo-blue: #0866F5;
	--cpo-blue-dark: #0552c9;
	--cpo-blue-soft: #eef4ff;
	--cpo-ink: #0d1117;
	--cpo-muted: #6b7280;
	--cpo-line: #e8ebf0;
	--cpo-soft: #f6f7f9;
	--cpo-radius: 16px;
	--cpo-green: #1a8f52;
	--cpo-red: #c0392b;
}

/* ---------- brand / logo sizing ----------
   Keep the site logo at the same compact size it has on the home page,
   on every dashboard page and for every role (client, admin, supporter). */
.site-logo,
.site-logo-white,
.header .navbar-brand img.site-logo,
.header .navbar-brand img.site-logo-white {
	width: auto !important;
	height: auto !important;
	max-height: 40px;
	max-width: 170px;
	object-fit: contain;
}
.sidebar .logo .large_logo img,
.sidebar .logo .small_logo img,
.sidebar .cpo-side-brand img,
.cpo-appbar-brand img.site-brand-logo,
.cpo-head-brand img.site-brand-logo,
.cpo-nav-brand img.site-brand-logo {
	width: auto !important;
	height: auto !important;
	max-height: 34px;
	max-width: 130px;
	object-fit: contain;
	display: block;
}
.sidebar.mini_sidebar .logo .small_logo img {
	max-width: 28px;
	max-height: 28px;
}

/* ---------- canvas ---------- */
body.cpo-app {
	background: #fff !important;
	color: var(--cpo-ink);
	font-family: 'Poppins', 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	-webkit-font-smoothing: antialiased;
}
body.cpo-app .main_content {
	background: #fff !important;
}
body.cpo-app .crm_body_bg,
body.cpo-app .large_header_bg {
	background: #fff !important;
}

/* the app owns the phone viewport: no site footer, room for the bottom nav */
@media (max-width: 767px) {
	body.cpo-app .footer_part { display: none !important; }
	body.cpo-app .main_content { padding-bottom: 84px !important; }
}

/* ---------- scrollbar (legacy pink thumb, grey track) ---------- */
body.cpo-app::-webkit-scrollbar,
body.cpo-app *::-webkit-scrollbar { width: 8px; height: 8px; }
body.cpo-app::-webkit-scrollbar-track,
body.cpo-app *::-webkit-scrollbar-track { background-color: var(--cpo-soft); }
body.cpo-app::-webkit-scrollbar-thumb,
body.cpo-app *::-webkit-scrollbar-thumb { background-color: #cbd2dc; border-radius: 8px; }
body.cpo-app::-webkit-scrollbar-thumb:hover,
body.cpo-app *::-webkit-scrollbar-thumb:hover { background-color: #aab3c0; }

/* ---------- legacy top bar, restyled ---------- */
body.cpo-app .header_iner {
	background: #fff !important;
	border-bottom: 1px solid var(--cpo-line);
	box-shadow: none !important;
	padding: 10px 14px !important;
	margin-bottom: 0 !important;
}
/* on phones the CPO app bar replaces the legacy top bar */
@media (max-width: 991px) {
	body.cpo-app .header_iner { display: none !important; }
	body.cpo-app .main_content { padding-top: 0 !important; }
}
body.cpo-app .header_iner .profile_info > img {
	width: 36px; height: 36px;
	border-radius: 50%;
	border: 1px solid var(--cpo-line);
}
body.cpo-app .header_iner .sidebar_icon i {
	font-size: 20px;
	color: var(--cpo-ink);
}
/* sidebar collapse toggle, retinted from the legacy pink */
body.cpo-app .switch_toggle .slider,
body.cpo-app .switch_toggle .slider:before { border-color: var(--cpo-line) !important; }
body.cpo-app .switch_toggle .slider:before { background: #fff; }
body.cpo-app .switch_toggle input:checked + .slider { border-color: var(--cpo-blue) !important; }
body.cpo-app .switch_toggle input:checked + .slider:before {
	border-color: var(--cpo-blue) !important;
	background: var(--cpo-blue);
}
body.cpo-app .header_iner .switch_toggle { opacity: .8; }
body.cpo-app .header_iner .switch_toggle:hover { opacity: 1; }
/* custom (non-CPO) toggles elsewhere inherit the same accent */
body.cpo-app .custom-switch-indicator { background: #e6e9ee !important; }
body.cpo-app .custom-switch-input:checked ~ .custom-switch-indicator { background: var(--cpo-blue) !important; }

/* ---------- app bar (mobile brand header) ---------- */
.cpo-appbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 16px 10px;
	background: #fff;
}
.cpo-appbar-brand {
	display: inline-flex;
	align-items: center;
	font-size: 1.3rem;
	font-weight: 800;
	letter-spacing: -.02em;
	color: var(--cpo-ink);
	line-height: 1.1;
	text-decoration: none;
}
.cpo-appbar-brand:hover { color: var(--cpo-ink); text-decoration: none; }
.cpo-appbar-brand img.site-brand-logo { max-height: 30px; max-width: 120px; width: auto; height: auto; object-fit: contain; display: block; }
.cpo-appbar-sub {
	font-size: .78rem;
	color: var(--cpo-muted);
	margin-top: 2px;
}
.cpo-appbar-actions { display: flex; gap: 10px; }

.cpo-icon-btn {
	width: 42px; height: 42px;
	border-radius: 50%;
	border: 1px solid var(--cpo-line);
	background: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--cpo-ink);
	position: relative;
	transition: border-color .15s ease, box-shadow .15s ease, color .15s ease;
}
.cpo-icon-btn:hover {
	border-color: #cfd6e2;
	box-shadow: 0 2px 10px rgba(13,17,23,.06);
	color: var(--cpo-blue);
	text-decoration: none;
}
.cpo-icon-btn svg { width: 19px; height: 19px; }
.cpo-icon-btn .cpo-dot {
	position: absolute; top: 9px; right: 10px;
	width: 7px; height: 7px; border-radius: 50%;
	background: #ef4444; border: 1.5px solid #fff;
}

/* ---------- page heading ---------- */
.cpo-page-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin: 4px 0 18px;
}
.cpo-page-title {
	font-size: 1.35rem;
	font-weight: 800;
	letter-spacing: -.02em;
	margin: 0;
	color: var(--cpo-ink);
	line-height: 1.2;
}
.cpo-page-sub {
	font-size: .84rem;
	color: var(--cpo-muted);
	margin: 4px 0 0;
	line-height: 1.45;
}
.cpo-page-actions { display: flex; gap: 8px; flex: 0 0 auto; }

/* ---------- balance / hero card ---------- */
.cpo-hero {
	background: var(--cpo-soft);
	border: 1px solid var(--cpo-line);
	border-radius: 20px;
	padding: 18px;
	margin-bottom: 22px;
}
.cpo-hero-top {
	display: flex; align-items: center; justify-content: space-between;
	margin-bottom: 6px;
}
.cpo-hero-label { font-size: .82rem; color: var(--cpo-muted); font-weight: 500; }
.cpo-hero-amount {
	font-size: 2rem;
	font-weight: 800;
	letter-spacing: -.03em;
	line-height: 1.15;
	margin-bottom: 14px;
	word-break: break-all;
}
.cpo-hero-actions { display: flex; gap: 10px; }

/* ---------- pills / chips ---------- */
.cpo-pill {
	font-size: .68rem; font-weight: 700; letter-spacing: .06em;
	color: var(--cpo-blue);
	background: #e8f0fe;
	border-radius: 999px;
	padding: 4px 10px;
}
.cpo-chips {
	display: flex; gap: 8px;
	overflow-x: auto;
	padding: 2px 2px 6px;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}
.cpo-chips::-webkit-scrollbar { display: none; }
.cpo-chip {
	flex: 0 0 auto;
	border: 1px solid var(--cpo-line);
	background: #fff;
	border-radius: 999px;
	padding: 8px 14px;
	font-size: .8rem;
	font-weight: 600;
	color: var(--cpo-ink);
	white-space: nowrap;
	text-decoration: none;
	transition: all .15s ease;
}
.cpo-chip:hover { border-color: #c9d8f7; color: var(--cpo-blue); text-decoration: none; }
.cpo-chip.active { background: var(--cpo-blue); border-color: var(--cpo-blue); color: #fff; }
.cpo-chip.active:hover { color: #fff; }
.cpo-chip span { color: var(--cpo-muted); font-weight: 500; }
.cpo-chip.active span { color: rgba(255,255,255,.8); }

/* ---------- buttons ---------- */
.cpo-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	border-radius: 12px;
	padding: 12px 18px;
	font-size: .9rem;
	font-weight: 600;
	border: 1px solid transparent;
	transition: background .15s ease, border-color .15s ease, color .15s ease, transform .1s ease;
	text-decoration: none;
	cursor: pointer;
}
.cpo-btn:active { transform: scale(.99); }
.cpo-btn-primary { background: var(--cpo-blue); color: #fff; }
.cpo-btn-primary:hover { background: var(--cpo-blue-dark); color: #fff; text-decoration: none; }
.cpo-btn-ghost { background: #fff; border-color: var(--cpo-line); color: var(--cpo-ink); }
.cpo-btn-ghost:hover { border-color: #cfd6e2; color: var(--cpo-ink); text-decoration: none; }
.cpo-btn-soft { background: var(--cpo-blue-soft); color: var(--cpo-blue); }
.cpo-btn-soft:hover { background: var(--cpo-blue); color: #fff; text-decoration: none; }
.cpo-btn-sm { padding: 8px 14px; font-size: .8rem; border-radius: 10px; }
.cpo-btn-block { width: 100%; }

/* ---------- cards / grids ---------- */
.cpo-card {
	background: #fff;
	border: 1px solid var(--cpo-line);
	border-radius: 14px;
	padding: 16px;
	transition: border-color .15s ease, box-shadow .15s ease, transform .1s ease;
}
.cpo-card:hover { border-color: #c9d8f7; box-shadow: 0 6px 18px rgba(8,102,245,.08); }

.cpo-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}
@media (min-width: 768px) {
	.cpo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
	.cpo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* product card (logs / numbers) */
.cpo-prod {
	background: #fff;
	border: 1px solid var(--cpo-line);
	border-radius: 14px;
	padding: 14px;
	display: flex;
	flex-direction: column;
	height: 100%;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.cpo-prod:hover { border-color: #c9d8f7; box-shadow: 0 6px 18px rgba(8,102,245,.08); }
.cpo-prod-tag {
	display: inline-flex; align-items: center; gap: 5px;
	font-size: .66rem; font-weight: 700; letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--cpo-blue);
	background: var(--cpo-blue-soft);
	border-radius: 999px;
	padding: 3px 9px;
	margin-bottom: 9px;
	align-self: flex-start;
}
.cpo-prod-name {
	font-size: .86rem; font-weight: 600; line-height: 1.4;
	color: var(--cpo-ink);
	margin-bottom: 10px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 3.5em;
}
.cpo-prod-meta {
	display: flex; align-items: baseline; justify-content: space-between;
	gap: 8px; margin-top: auto; margin-bottom: 10px;
}
.cpo-prod-price { font-size: 1rem; font-weight: 800; color: var(--cpo-ink); }
.cpo-prod-price small { font-size: .66rem; font-weight: 500; color: var(--cpo-muted); }
.cpo-prod-stock { font-size: .68rem; font-weight: 600; color: var(--cpo-green); }
.cpo-prod-stock.out { color: var(--cpo-red); }

/* ---------- section headings ---------- */
.cpo-section { margin-bottom: 26px; }
.cpo-section-head {
	display: flex; align-items: center; justify-content: space-between;
	margin-bottom: 12px;
}
.cpo-section-title {
	font-size: 1rem; font-weight: 700; margin: 0; color: var(--cpo-ink);
}
.cpo-section-link {
	font-size: .8rem; font-weight: 600; color: var(--cpo-blue);
	display: inline-flex; align-items: center; gap: 4px;
	text-decoration: none;
}
.cpo-section-link:hover { color: var(--cpo-blue-dark); text-decoration: none; }

/* ---------- stats strip ---------- */
.cpo-stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
	margin-bottom: 24px;
}
.cpo-stat {
	background: #fff;
	border: 1px solid var(--cpo-line);
	border-radius: 12px;
	padding: 11px 8px;
	text-align: center;
	text-decoration: none;
	transition: border-color .15s ease;
}
.cpo-stat:hover { border-color: #c9d8f7; text-decoration: none; }
.cpo-stat b { display: block; font-size: 1.02rem; font-weight: 800; line-height: 1.2; color: var(--cpo-ink); }
.cpo-stat span { font-size: .64rem; color: var(--cpo-muted); font-weight: 500; }

/* ---------- forms ---------- */
body.cpo-app .form-control,
body.cpo-app .custom-select,
body.cpo-app select.form-control {
	border: 1px solid var(--cpo-line) !important;
	border-radius: 12px !important;
	background: #fff !important;
	color: var(--cpo-ink) !important;
	font-size: .9rem;
	padding: 11px 14px;
	height: auto;
	box-shadow: none !important;
}
body.cpo-app .form-control:focus,
body.cpo-app select.form-control:focus {
	border-color: var(--cpo-blue) !important;
	box-shadow: 0 0 0 3px rgba(8,102,245,.12) !important;
}
body.cpo-app .form-group label {
	font-size: .8rem;
	font-weight: 600;
	color: var(--cpo-ink);
	margin-bottom: 6px;
}

/* ---------- legacy cards, restyled ---------- */
body.cpo-app .white_card,
body.cpo-app .white_box {
	background: #fff !important;
	border: 1px solid var(--cpo-line) !important;
	border-radius: 14px !important;
	box-shadow: none !important;
}
body.cpo-app .white_card_header {
	border-bottom: 1px solid var(--cpo-line) !important;
	padding: 14px 16px !important;
}
body.cpo-app .white_card_header .card-title,
body.cpo-app .content-header-title h4 {
	font-size: .95rem !important;
	font-weight: 700 !important;
	color: var(--cpo-ink) !important;
	margin: 0 !important;
}
body.cpo-app .page-title {
	font-size: 1.35rem !important;
	font-weight: 800 !important;
	letter-spacing: -.02em;
	color: var(--cpo-ink) !important;
	margin: 0 !important;
}
body.cpo-app .page-header {
	border-bottom: 0 !important;
	margin-bottom: 14px !important;
	padding-bottom: 0 !important;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
}
body.cpo-app .page-header .page-title span { display: none; }

/* legacy buttons */
body.cpo-app .btn {
	border-radius: 10px;
	font-weight: 600;
	font-size: .85rem;
	box-shadow: none !important;
}
body.cpo-app .btn-outline-info {
	border-color: var(--cpo-line);
	color: var(--cpo-ink);
	background: #fff;
}
body.cpo-app .btn-outline-info:hover {
	border-color: #c9d8f7;
	color: var(--cpo-blue);
	background: var(--cpo-blue-soft);
}
body.cpo-app .btn-info,
body.cpo-app .btn-primary {
	background: var(--cpo-blue) !important;
	border-color: var(--cpo-blue) !important;
	color: #fff !important;
}
body.cpo-app .btn-info:hover,
body.cpo-app .btn-primary:hover { background: var(--cpo-blue-dark) !important; }

/* tables */
body.cpo-app .table thead th {
	border-bottom: 1px solid var(--cpo-line) !important;
	font-size: .74rem;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--cpo-muted) !important;
	font-weight: 700;
}
body.cpo-app .table td { border-top: 1px solid var(--cpo-line) !important; vertical-align: middle; }

/* alerts */
body.cpo-app .alert { border-radius: 12px; border: 1px solid var(--cpo-line); }

/* ---------- floating support ---------- */
.cpo-support {
	position: fixed;
	right: 18px;
	bottom: 88px;
	width: 54px; height: 54px;
	border-radius: 50%;
	background: var(--cpo-blue);
	color: #fff;
	display: inline-flex; align-items: center; justify-content: center;
	box-shadow: 0 8px 24px rgba(8,102,245,.38), 0 0 0 6px rgba(8,102,245,.10);
	z-index: 1040;
	transition: transform .15s ease, background .15s ease;
	text-decoration: none;
}
.cpo-support:hover { background: var(--cpo-blue-dark); color: #fff; transform: translateY(-2px); text-decoration: none; }
.cpo-support svg { width: 24px; height: 24px; }

/* ---------- bottom nav ---------- */
.cpo-bottomnav {
	position: fixed;
	left: 0; right: 0; bottom: 0;
	background: #fff;
	border-top: 1px solid var(--cpo-line);
	display: flex;
	z-index: 1035;
	padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
	box-shadow: 0 -4px 20px rgba(13,17,23,.05);
}
.cpo-bottomnav a {
	flex: 1 1 0;
	display: flex; flex-direction: column; align-items: center; gap: 3px;
	padding: 6px 2px;
	color: var(--cpo-muted);
	font-size: .64rem;
	font-weight: 600;
	border-radius: 10px;
	transition: color .15s ease;
	text-decoration: none;
}
.cpo-bottomnav a svg { width: 21px; height: 21px; stroke-width: 1.8; }
.cpo-bottomnav a:hover { color: var(--cpo-blue); text-decoration: none; }
.cpo-bottomnav a.active { color: var(--cpo-blue); }
.cpo-bottomnav a.active svg { stroke-width: 2.2; }

@media (min-width: 768px) {
	.cpo-bottomnav { display: none; }
	.cpo-support { bottom: 28px; }
}

/* ---------- desktop width ---------- */
@media (min-width: 1200px) {
	body.cpo-app .main_content .container,
	body.cpo-app .main_content .container-fluid > .row > .col-lg-12 {
		max-width: 1080px;
		margin-left: auto;
		margin-right: auto;
	}
}

/* ============================================================
   Legacy theme leftovers — forced onto the CPO palette
   ============================================================ */

/* pink outline buttons (.btn_2) and the plain .btn_1 variant */
body.cpo-app .btn_2,
body.cpo-app .btn_1 {
	color: var(--cpo-blue) !important;
	border: 1px solid var(--cpo-blue) !important;
	background: #fff !important;
	border-radius: 10px !important;
	font-weight: 600 !important;
	font-size: .85rem !important;
	padding: 11px 20px !important;
	line-height: 1.2 !important;
	box-shadow: none !important;
	transition: background .15s ease, color .15s ease;
}
body.cpo-app .btn_2:hover,
body.cpo-app .btn_1:hover,
body.cpo-app .btn_2:focus,
body.cpo-app .btn_1:focus {
	background: var(--cpo-blue) !important;
	border-color: var(--cpo-blue) !important;
	color: #fff !important;
}
body.cpo-app .btn_2.w-100,
body.cpo-app .btn_1.w-100 { width: 100% !important; }

/* filled variants that still carry the old red */
body.cpo-app .btn-default,
body.cpo-app .btn-submit,
body.cpo-app .btn-gradient {
	background: var(--cpo-blue) !important;
	border-color: var(--cpo-blue) !important;
	color: #fff !important;
	border-radius: 10px !important;
	font-weight: 600 !important;
}
body.cpo-app .btn-default:hover,
body.cpo-app .btn-submit:hover,
body.cpo-app .btn-gradient:hover {
	background: var(--cpo-blue-dark) !important;
	border-color: var(--cpo-blue-dark) !important;
}
body.cpo-app .btn-secondary {
	background: var(--cpo-soft) !important;
	border-color: var(--cpo-line) !important;
	color: var(--cpo-ink) !important;
}
body.cpo-app .btn-gray,
body.cpo-app .btn-gray-dark { border-radius: 10px !important; }

/* outline-primary / outline-danger re-tinted */
body.cpo-app .btn-outline-primary {
	color: var(--cpo-blue) !important;
	border-color: var(--cpo-blue) !important;
	background: #fff !important;
}
body.cpo-app .btn-outline-primary:hover {
	background: var(--cpo-blue) !important;
	color: #fff !important;
}

/* legacy red text helpers — these are hint notes, not errors */
body.cpo-app .text-red,
body.cpo-app .tex-red { color: var(--cpo-muted) !important; }
body.cpo-app .text-danger,
body.cpo-app .alert-danger { color: var(--cpo-red) !important; }

/* status chips stay semantic but lose the neon look */
body.cpo-app .badge { border-radius: 7px; font-weight: 600; }

/* ---------- sidebar: kill the pink header block ---------- */
body.cpo-app .sidebar .logo {
	background: #fff !important;
	border-bottom: 1px solid var(--cpo-line);
	padding: 20px 24px !important;
	margin-bottom: 12px !important;
}
body.cpo-app .sidebar {
	box-shadow: 0 8px 30px rgba(13,17,23,.06) !important;
	border-right: 1px solid var(--cpo-line);
}
body.cpo-app .sidebar .logo .large_logo img,
body.cpo-app .sidebar .logo .small_logo img {
	filter: none;
	/* the logo may be any aspect ratio (often near-square) — cap both axes */
	width: auto !important;
	height: auto !important;
	max-width: 130px;
	max-height: 34px;
	object-fit: contain;
	display: block;
}
body.cpo-app .sidebar.mini_sidebar .logo .small_logo img {
	max-width: 28px;
	max-height: 28px;
}
/* the logo asset is a white/light mark — show it only if it reads on white */
body.cpo-app #sidebar_menu > li > a.active,
body.cpo-app #sidebar_menu > li > a:hover { color: var(--cpo-blue) !important; }
body.cpo-app #sidebar_menu .nav_icon_small i,
body.cpo-app #sidebar_menu > li > a i { color: inherit; }

/* ---------- desktop search field (red border -> blue) ---------- */
body.cpo-app .search_inner .search_field,
body.cpo-app .serach_field-area .search_inner input {
	border-color: var(--cpo-line) !important;
}
body.cpo-app .search_field {
	border: 1px solid var(--cpo-line) !important;
	border-radius: 12px !important;
	background: #fff !important;
}
body.cpo-app .search_field input {
	border: 0 !important;
	background: transparent !important;
	font-size: .85rem;
	color: var(--cpo-ink) !important;
}
body.cpo-app .serach_button .ti-search { color: var(--cpo-muted) !important; }
/* circle wrapper behind the magnifier is legacy pink */
body.cpo-app .header_iner .header_right .header_notification_warp li .serach_button {
	background: var(--cpo-soft) !important;
	border: 1px solid var(--cpo-line);
	transition: background-color .15s ease, color .15s ease;
}
body.cpo-app .header_iner .header_right .header_notification_warp li .serach_button:hover {
	background: #eef1f6 !important;
}
body.cpo-app .header_iner .header_right .header_notification_warp li .serach_button i {
	color: var(--cpo-ink) !important;
}

/* ---------- empty states ---------- */
body.cpo-app .no-data,
body.cpo-app .empty-state,
body.cpo-app .text-center > img[src*="empty"] { opacity: .9; }
body.cpo-app .no-data .title,
body.cpo-app .empty-state .title {
	font-size: .9rem;
	color: var(--cpo-muted);
}

/* ---------- misc legacy wrappers ---------- */
body.cpo-app .white_card_body { padding: 16px !important; }
body.cpo-app .title_bar,
body.cpo-app .content-header { border-bottom: 0 !important; }
body.cpo-app .modal-content { border-radius: 16px; border: 1px solid var(--cpo-line); }
body.cpo-app .nav-tabs .nav-link { border-radius: 9px 9px 0 0; }
body.cpo-app .list-inline-item .nav-link.btn {
	border: 1px solid var(--cpo-line) !important;
	border-radius: 999px !important;
	padding: 5px 13px !important;
	font-size: .78rem !important;
	color: var(--cpo-muted) !important;
	background: #fff !important;
	margin-bottom: 6px;
}
body.cpo-app .list-inline-item .nav-link.btn.btn-info {
	background: var(--cpo-blue) !important;
	border-color: var(--cpo-blue) !important;
	color: #fff !important;
}

/* mobile: keep long legacy tables from breaking the viewport */
@media (max-width: 767px) {
	body.cpo-app .white_card { border-radius: 14px !important; }
	body.cpo-app .page-title { font-size: 1.2rem !important; }
	body.cpo-app .table-responsive { -webkit-overflow-scrolling: touch; }
}

/* sidebar brand (text fallback when the configured logo can't load) */
body.cpo-app .sidebar .cpo-side-brand {
	align-items: center;
	text-decoration: none;
}
/* keep the shell's logo swap: one brand at a time, small logo only when collapsed */
body.cpo-app .sidebar .logo .large_logo.cpo-side-brand { display: inline-flex; }
body.cpo-app .sidebar .logo .small_logo.cpo-side-brand { display: none; }
body.cpo-app .sidebar.mini_sidebar .logo .large_logo.cpo-side-brand { display: none; }
body.cpo-app .sidebar.mini_sidebar .logo .small_logo.cpo-side-brand { display: inline-flex; }
body.cpo-app .sidebar .cpo-side-brand span {
	font-size: 1.15rem;
	font-weight: 800;
	letter-spacing: -.02em;
	color: var(--cpo-ink);
	line-height: 1.15;
}

/* ---------- shared empty-data block ---------- */
body.cpo-app .data-empty {
	padding: 34px 16px 40px;
}
body.cpo-app .data-empty .content .img {
	max-width: 120px;
	height: auto;
	margin: 0 auto 10px;
	display: block;
	opacity: .55;
	filter: grayscale(1);
}
body.cpo-app .data-empty .title {
	font-size: .87rem;
	color: var(--cpo-muted);
	font-weight: 500;
}

/* page-head action cluster: wrap cleanly on phones */
.cpo-page-actions {
	flex-wrap: wrap;
	align-items: center;
}
.cpo-page-actions .form-control,
.cpo-page-actions select {
	min-width: 0;
	width: auto;
	flex: 1 1 auto;
	font-size: .82rem;
	padding: 9px 12px;
}
.cpo-page-actions .cpo-btn-primary,
.cpo-page-actions .btn {
	flex: 0 0 auto;
	white-space: nowrap;
	padding: 9px 14px;
	font-size: .82rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
@media (max-width: 575px) {
	.cpo-page-head {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
	}
	.cpo-page-actions { justify-content: stretch; }
	.cpo-page-actions .form-control,
	.cpo-page-actions select { flex: 1 1 100%; }
	.cpo-page-actions .cpo-btn-primary,
	.cpo-page-actions .btn { flex: 1 1 100%; }
}
