/* App-wide neutral background: match dashboard container color */
body,
body.side-scroll {
	background-color: #f4f6fb !important;
}
#page-container,
#main-container {
	background-color: #f4f6fb;
}
#page-header,
#page-header .content-header {
	background-color: #f4f6fb !important;
	box-shadow: none !important;
}

/* Business top header: left cluster stays flush left, right cluster (company +
   actions + user) stays flush right — no middle-floating groups, no gap between
   the action buttons and the user dropdown. */
#page-header .content-header.vs-header-row {
	justify-content: space-between !important;
	gap: 12px;
	flex-wrap: nowrap;
	/* Override Codebase's max-width:1690px + margin:0 auto that centered the
	   header contents and left a large empty band next to the sidebar. */
	max-width: none !important;
	width: 100% !important;
	margin: 0 !important;
	padding-left: 18px !important;
	padding-right: 18px !important;
}
#page-container > #page-header > .content-header.vs-header-row {
	padding-left: 18px !important;
}
#page-header .vs-header-left {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-right: auto;
}
#page-header .vs-header-datetime {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border-radius: 999px;
	background-color: #ffffff;
	border: 1px solid #e5e7eb;
	color: #374151;
	font-size: 13px;
	font-weight: 500;
	white-space: nowrap;
}
#page-header .vs-header-datetime .gi-calendar {
	color: #2563eb;
}
#page-header .vs-header-right {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: nowrap;
	margin-left: auto;
}
#page-header .vs-header-right .vs-header-actions.nav-main-header {
	display: flex !important;
	align-items: center;
	gap: 8px;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none;
}
#page-header .vs-header-right .vs-header-actions.nav-main-header > li {
	display: inline-flex !important;
	align-items: center;
	margin: 0 !important;
	padding: 0 !important;
}
#page-header .vs-header-right .vs-header-actions.nav-main-header > li > .btn,
#page-header .vs-header-right .vs-header-actions.nav-main-header > li > a.btn {
	margin: 0 !important;
}
#page-header .vs-header-user {
	margin: 0 !important;
}

/* Modern user chip: avatar circle + name + chevron */
#page-header .vs-user-chip {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 4px 14px 4px 4px;
	border: 1px solid #e5e7eb;
	background-color: #ffffff;
	border-radius: 999px;
	color: #0f172a;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	transition: box-shadow 0.15s ease, border-color 0.15s ease,
		transform 0.15s ease;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
#page-header .vs-user-chip:hover {
	border-color: #c7d2fe;
	box-shadow: 0 2px 8px rgba(37, 99, 235, 0.12);
}
#page-header .vs-user-chip:focus,
#page-header .vs-user-chip:active {
	outline: none;
	border-color: #6366f1;
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}
#page-header .vs-user-avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: linear-gradient(135deg, #6366f1 0%, #3b82f6 100%);
	color: #ffffff;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	flex-shrink: 0;
}
#page-header .vs-user-name {
	max-width: 160px;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	color: #0f172a;
}
#page-header .vs-user-caret {
	font-size: 12px;
	color: #94a3b8;
	transition: transform 0.15s ease;
}
#page-header .vs-user-chip[aria-expanded="true"] .vs-user-caret {
	transform: rotate(180deg);
	color: #6366f1;
}

/* ============================================================
   Sidebar redesign — modern, clean, high-contrast navigation
   ============================================================ */
#sidebar {
	background-color: #ffffff !important;
	border-right: 1px solid #e5e7eb;
	box-shadow: 0 0 24px rgba(15, 23, 42, 0.03);
}
#sidebar .sidebar-content {
	background-color: #ffffff;
}

/* Brand header */
#sidebar .content-header {
	height: 68px !important;
	border-bottom: 1px solid #eef2f7;
	padding: 0 16px !important;
	background-color: #ffffff;
}
#sidebar .content-header a.font-w700 {
	font-size: 16px;
	letter-spacing: -0.01em;
	color: #0f172a !important;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
#sidebar .content-header .si-fire {
	color: #6366f1 !important;
	font-size: 18px;
}
#sidebar .content-header .text-dual-primary-dark {
	color: #0f172a !important;
}

/* Profile / company block */
#sidebar .content-side-user {
	padding: 20px 16px !important;
	background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
	border-bottom: 1px solid #eef2f7;
	text-align: center;
}
#sidebar .content-side-user .vs-side-logo-link {
	display: inline-block;
	padding: 3px;
	border-radius: 50%;
	background: linear-gradient(135deg, #6366f1 0%, #3b82f6 100%);
	line-height: 0;
	text-decoration: none;
}
#sidebar .content-side-user .vs-side-logo {
	display: inline-block;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	overflow: hidden;
	background-color: #ffffff;
	border: 3px solid #ffffff;
	box-sizing: border-box;
	line-height: 0;
}
#sidebar .content-side-user .vs-side-logo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	border-radius: 50%;
	background-color: #ffffff;
	display: block;
}
#sidebar .content-side-user .vs-side-logo-sm {
	width: 32px;
	height: 32px;
	border-width: 2px;
}
#sidebar .content-side-user .list-inline {
	margin-top: 12px !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
	gap: 8px;
	flex-wrap: wrap;
}
#sidebar .content-side-user .list-inline-item {
	margin: 0 !important;
}
#sidebar .content-side-user .list-inline-item b {
	font-size: 14px;
	font-weight: 700;
	color: #0f172a;
	letter-spacing: -0.01em;
}
#sidebar .content-side-user .list-inline-item .link-effect {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background-color: #ffffff;
	border: 1px solid #e5e7eb;
	color: #64748b !important;
	transition: all 0.15s ease;
}
#sidebar .content-side-user .list-inline-item .link-effect:hover {
	background-color: #eef2ff;
	border-color: #c7d2fe;
	color: #6366f1 !important;
}
#sidebar .content-side-user .list-inline-item .link-effect .si {
	font-size: 12px;
}

/* Section headings */
#sidebar .nav-main .nav-main-heading {
	padding: 18px 8px 8px !important;
	margin: 0 !important;
	font-size: 11px !important;
	font-weight: 700 !important;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #94a3b8 !important;
	white-space: nowrap;
}
#sidebar .nav-main .nav-main-heading .sidebar-header-title {
	color: #94a3b8 !important;
}

/* Base menu items — tightened side padding so long labels fit on one line
   without ellipsis. Icon stays absolute-positioned per Codebase, but shifted
   inward to reclaim horizontal space for the label. */
#sidebar .nav-main {
	padding: 6px 4px !important;
	margin: 0 !important;
}
#sidebar .nav-main li {
	margin: 2px 0;
}
#sidebar .nav-main > li > a,
#sidebar .nav-main li > a {
	border-radius: 10px !important;
	color: #475569 !important;
	font-size: 13.5px !important;
	font-weight: 500 !important;
	line-height: 1.3 !important;
	transition: background-color 0.15s ease, color 0.15s ease;
	border: none !important;
	white-space: nowrap !important;
	padding-left: 32px !important;
	padding-right: 12px !important;
}
#sidebar .nav-main a.nav-submenu {
	padding-right: 26px !important;
}
#sidebar .nav-main a > i {
	left: 10px !important;
}
#sidebar .nav-main a.nav-submenu::before {
	right: 8px !important;
}
#sidebar .nav-main a > .sidebar-mini-hide {
	display: inline-block;
	vertical-align: middle;
	white-space: nowrap;
}
#sidebar .nav-main > li > a:hover,
#sidebar .nav-main li > a:hover {
	background-color: #f1f5f9 !important;
	color: #0f172a !important;
}
#sidebar .nav-main a > i {
	color: #64748b !important;
	transition: color 0.15s ease;
}
#sidebar .nav-main a:hover > i {
	color: #6366f1 !important;
}

/* Active / current item */
#sidebar .nav-main > li > a.active,
#sidebar .nav-main li > a.active,
#sidebar .nav-main li.active > a {
	background: linear-gradient(90deg, #eef2ff 0%, #f5f3ff 100%) !important;
	color: #4338ca !important;
	font-weight: 600 !important;
}
#sidebar .nav-main > li > a.active > i,
#sidebar .nav-main li > a.active > i,
#sidebar .nav-main li.active > a > i {
	color: #6366f1 !important;
}

/* Replace Codebase's `<`/`v` submenu chevrons with a single rotating
   down-arrow using ::after (keep both ::before and ::after tidy) */
#sidebar .nav-main a.nav-submenu::before {
	content: "\f107" !important; /* fa-angle-down */
	right: 15px !important;
	opacity: 1 !important;
	font-size: 12px !important;
	color: #94a3b8 !important;
	transform: rotate(0deg) !important;
	transition: transform 0.2s ease, color 0.2s ease !important;
}
#sidebar .nav-main a.nav-submenu::after {
	content: none !important;
	display: none !important;
}
#sidebar .nav-main li.open > a.nav-submenu::before {
	transform: rotate(180deg) !important;
	color: #6366f1 !important;
	opacity: 1 !important;
}

/* Submenu (nested) — only style the OPEN state so we do not break Codebase's
   collapsed `height: 0; overflow: hidden` (which was showing as stray dashes
   before). */
#sidebar .nav-main li.open > ul {
	background-color: transparent !important;
	padding: 4px 0 4px 12px !important;
	margin: 2px 0 4px 18px !important;
	border-left: 1px dashed #e2e8f0;
}
#sidebar .nav-main li.open > ul li > a {
	display: flex !important;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 7px 8px 7px 12px !important;
	font-size: 13px !important;
	color: #64748b !important;
	font-weight: 500 !important;
	border-radius: 8px !important;
	white-space: normal !important;
}
#sidebar .nav-main li.open > ul li > a:hover {
	background-color: #f8fafc !important;
	color: #0f172a !important;
}
#sidebar .nav-main li.open > ul li > a.active {
	background: #eef2ff !important;
	color: #4338ca !important;
}

/* "+" quick-add pill inside sale/purchase submenu rows.
   Use flex on the parent link (above) so the pill sits inline on the right
   instead of floating below. */
#sidebar .nav-main #menuPlusIcon,
#sidebar .nav-main .pull-right#menuPlusIcon {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	padding: 0 !important;
	margin: 0 !important;
	border-radius: 6px;
	background-color: #eef2ff;
	color: #6366f1 !important;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	flex-shrink: 0;
	float: none !important;
	transition: background-color 0.15s ease, color 0.15s ease;
}
#sidebar .nav-main #menuPlusIcon:hover {
	background-color: #c7d2fe;
}
#sidebar .nav-main #menuPlusIcon a,
#sidebar .nav-main #menuPlusIcon > a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: #6366f1 !important;
	padding: 0 !important;
	margin: 0 !important;
	line-height: 1 !important;
	border-radius: 6px !important;
	background: transparent !important;
}

/* Scrollbar polish inside SimpleBar */
#sidebar .simplebar-scrollbar::before {
	background-color: #cbd5e1;
	border-radius: 4px;
}

/* ============================================================
   Full-width content + modern list/table page redesign
   ============================================================ */

/* Remove Codebase's 1200px max-width cap on the main content area so pages
   like Manage Sale List fill the viewport. */
#page-container.main-content-boxed,
#page-container.main-content-narrow {
	max-width: none !important;
	width: 100% !important;
}
#main-container > .content,
.content {
	max-width: none !important;
	padding: 20px 24px !important;
}

/* Page heading */
.content > .content-header {
	background: transparent !important;
	padding: 0 0 8px 0 !important;
	border: none !important;
	height: auto !important;
	display: block !important;
}
.content-heading {
	font-size: 22px !important;
	font-weight: 700 !important;
	color: #0f172a !important;
	letter-spacing: -0.01em;
	padding-bottom: 0 !important;
	border-bottom: none !important;
	margin: 0 !important;
	display: flex;
	align-items: center;
	gap: 10px;
}
.content-heading > i {
	color: #6366f1;
	font-size: 20px;
}

/* Breadcrumb */
nav.breadcrumb.push {
	background: transparent !important;
	padding: 0 0 16px 0 !important;
	margin: 0 !important;
	font-size: 13px;
}
nav.breadcrumb.push .breadcrumb-item {
	color: #64748b;
}
nav.breadcrumb.push .breadcrumb-item a {
	color: #2563eb;
	text-decoration: none;
}
nav.breadcrumb.push .breadcrumb-item a:hover {
	text-decoration: underline;
}
nav.breadcrumb.push .breadcrumb-item.active {
	color: #0f172a;
	font-weight: 600;
}

/* Block cards */
.content .block {
	background-color: #ffffff !important;
	border-radius: 12px !important;
	border: 1px solid #e5e7eb !important;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03) !important;
	margin-bottom: 20px !important;
}
.content .block .block {
	border: none !important;
	box-shadow: none !important;
	background: transparent !important;
	margin: 0 !important;
}
.content .block .block-content {
	padding: 20px !important;
}
.block-title {
	font-size: 15px !important;
	font-weight: 700 !important;
	color: #0f172a !important;
	margin: 0 0 12px 0 !important;
	letter-spacing: -0.01em;
}

/* Filter row / inputs */
.content .form-control {
	border-radius: 8px !important;
	border: 1px solid #e2e8f0 !important;
	background-color: #ffffff !important;
	color: #0f172a !important;
	font-size: 13.5px !important;
	padding: 8px 12px !important;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.content .form-control:focus {
	border-color: #6366f1 !important;
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15) !important;
	outline: none !important;
}

/* Excel export / print quick-action tiles */
.js-appear-enabled.text-center,
button.js-appear-enabled.text-center {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	padding: 10px 14px;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	background-color: #ffffff;
	transition: border-color 0.15s ease, box-shadow 0.15s ease,
		transform 0.15s ease;
	cursor: pointer;
	font-family: inherit;
}
.js-appear-enabled.text-center:hover:not(:disabled) {
	border-color: #10b981;
	box-shadow: 0 2px 8px rgba(16, 185, 129, 0.12);
	transform: translateY(-1px);
}
.js-appear-enabled.text-center:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}
.js-appear-enabled.text-center:focus {
	outline: none;
	border-color: #10b981;
	box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}
.js-appear-enabled.text-center .fa-file-excel-o,
.js-appear-enabled.text-center .fa-spinner {
	font-size: 22px;
	color: #10b981;
}
.js-appear-enabled.text-center .font-size-sm {
	color: #64748b;
	font-size: 12px;
	font-weight: 600;
}

/* Paid / Unpaid / Total KPI cards — modernize the mint/blue/orange trio */
.blockAreaList {
	width: 260px !important;
	display: inline-block;
	margin: 0 8px 0 0 !important;
	vertical-align: middle;
}
.blockAreaListIcon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	margin: 0 6px;
	padding: 0 !important;
	top: 0 !important;
	color: #64748b;
	background-color: #f1f5f9;
	border-radius: 50%;
	font-size: 12px;
	vertical-align: middle;
}
div#paidArea,
div#unpaidArea,
div#unpaidAreaRed,
div#unpaidAreaGreen,
div#totalArea {
	position: relative;
	padding: 16px 18px !important;
	border-radius: 12px !important;
	border: 1px solid transparent;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
	overflow: hidden;
}
div#paidArea::before,
div#unpaidArea::before,
div#unpaidAreaRed::before,
div#unpaidAreaGreen::before,
div#totalArea::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 4px;
	border-radius: 2px 0 0 2px;
}
div#paidArea {
	background: linear-gradient(135deg, #ecfdf5 0%, #ffffff 100%) !important;
	border-color: #a7f3d0;
}
div#paidArea::before {
	background: #10b981;
}
div#unpaidArea {
	background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%) !important;
	border-color: #bfdbfe;
}
div#unpaidArea::before {
	background: #3b82f6;
}
div#unpaidAreaRed {
	background: linear-gradient(135deg, #fef2f2 0%, #ffffff 100%) !important;
	border-color: #fecaca;
}
div#unpaidAreaRed::before {
	background: #ef4444;
}
div#unpaidAreaGreen {
	background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%) !important;
	border-color: #bbf7d0;
}
div#unpaidAreaGreen::before {
	background: #22c55e;
}
div#totalArea {
	background: linear-gradient(135deg, #fff7ed 0%, #ffffff 100%) !important;
	border-color: #fed7aa;
}
div#totalArea::before {
	background: #f97316;
}
div#paidArea .text-muted,
div#unpaidArea .text-muted,
div#unpaidAreaRed .text-muted,
div#unpaidAreaGreen .text-muted,
div#totalArea .text-muted {
	color: #64748b !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}
div#paidArea .font-size-h5,
div#unpaidArea .font-size-h5,
div#unpaidAreaRed .font-size-h5,
div#unpaidAreaGreen .font-size-h5,
div#totalArea .font-size-h5 {
	color: #0f172a !important;
	font-size: 20px !important;
	font-weight: 700 !important;
	margin-top: 4px;
}

/* Buttons — Add Sale / Add Purchase primary CTAs */
.content .btn-primary,
.content .btn.btn-primary {
	background: linear-gradient(135deg, #6366f1 0%, #3b82f6 100%) !important;
	border: none !important;
	color: #ffffff !important;
	border-radius: 8px !important;
	padding: 8px 16px !important;
	font-weight: 600 !important;
	font-size: 13.5px !important;
	box-shadow: 0 1px 3px rgba(59, 130, 246, 0.25);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.content .btn-primary:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
}

/* Table modernization */
.content table.table,
.content .dataTable {
	border-collapse: separate !important;
	border-spacing: 0;
	width: 100% !important;
}
.content table.table thead th,
.content .dataTable thead th {
	background-color: #f8fafc !important;
	color: #475569 !important;
	font-weight: 700 !important;
	font-size: 12px !important;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	border-top: 1px solid #e5e7eb !important;
	border-bottom: 1px solid #e5e7eb !important;
	padding: 12px 14px !important;
}
.content table.table tbody td,
.content .dataTable tbody td {
	padding: 12px 14px !important;
	border-top: 1px solid #f1f5f9 !important;
	color: #334155;
	font-size: 13px;
	vertical-align: middle;
}
.content table.table tbody tr:hover,
.content .dataTable tbody tr:hover {
	background-color: #f8fafc !important;
}

/* Rows per page / pagination footer */
.mdb-datatable-info,
.dataTables_info,
.dataTables_length {
	color: #64748b !important;
	font-size: 13px !important;
}
select.custom-select,
.mdb-datatable select,
.dataTables_length select {
	border-radius: 8px !important;
	border: 1px solid #e2e8f0 !important;
	padding: 6px 32px 6px 12px !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	color: #0f172a !important;
	background-color: #ffffff !important;
	min-width: 68px !important;
	width: auto !important;
	height: auto !important;
	line-height: 1.4 !important;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>") !important;
	background-repeat: no-repeat !important;
	background-position: right 10px center !important;
	background-size: 12px 12px !important;
	appearance: none !important;
	-webkit-appearance: none !important;
	-moz-appearance: none !important;
}
select.custom-select:focus,
.mdb-datatable select:focus,
.dataTables_length select:focus {
	border-color: #6366f1 !important;
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15) !important;
	outline: none !important;
}

/* ============================================================
   Login page: keep the ORIGINAL split layout (hero + white form
   panel on right) but with fixed background and modern form fields.
   ============================================================ */
.vs-login-wrapper {
	min-height: 100vh;
	background: #f4f6fb;
}
.vs-login-bg {
	min-height: 100vh;
	background-size: cover !important;
	background-position: center center !important;
	background-repeat: no-repeat !important;
	background-attachment: fixed !important;
	position: relative;
}
.vs-login-row {
	min-height: 100vh;
	background: rgba(15, 23, 42, 0.55);
}
.vs-login-hero-legacy {
	min-height: 100vh;
	color: #ffffff;
}
.vs-login-hero-legacy p {
	color: #ffffff !important;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

/* Form column becomes transparent so the background image shows through;
   the form itself sits inside a floating white card. */
.vs-login-formcol {
	background-color: transparent !important;
	min-height: 100vh;
	padding: 24px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center;
}
.vs-login-form-wrap {
	width: 100%;
	max-width: 440px;
	margin: 0 auto;
	padding: 36px 32px !important;
	background: #ffffff;
	border-radius: 16px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25),
		0 2px 6px rgba(0, 0, 0, 0.08);
}
.vs-login-logo-link img {
	max-width: 180px;
	max-height: 64px;
	object-fit: contain;
}
.vs-login-h1 {
	color: #0f172a !important;
	letter-spacing: -0.01em;
	font-size: 22px !important;
}
.vs-login-h2 {
	color: #64748b !important;
	font-size: 14px !important;
}

/* Form fields — modern rounded style */
.vs-login-form-legacy {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-top: 8px;
}
.vs-login-form-legacy .vs-fg {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.vs-login-form-legacy .vs-fg label {
	font-size: 13px;
	font-weight: 600;
	color: #334155;
	margin: 0;
}
.vs-login-form-legacy .vs-input {
	width: 100%;
	padding: 11px 14px;
	font-size: 14px;
	color: #0f172a;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	outline: none;
	font-family: inherit;
	box-sizing: border-box;
	line-height: 1.4;
	height: 44px;
}
.vs-login-form-legacy .vs-input::placeholder {
	color: #94a3b8;
}
.vs-login-form-legacy .vs-input:focus {
	border-color: #6366f1;
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}
.vs-login-form-legacy .vs-select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	padding-right: 40px;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 14px 14px;
	cursor: pointer;
}

/* Phone row: country selector + number input inside one border */
.vs-login-form-legacy .vs-phone-row {
	position: relative;
	display: flex;
	align-items: stretch;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	background: #ffffff;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	height: 44px;
}
.vs-login-form-legacy .vs-phone-row:focus-within {
	border-color: #6366f1;
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}
.vs-login-form-legacy .vs-phone-row .vs-input {
	border: none !important;
	border-radius: 0 10px 10px 0 !important;
	box-shadow: none !important;
	flex: 1;
	min-width: 0;
	height: auto;
}
.vs-login-form-legacy .vs-country-selector {
	position: relative;
	display: flex !important;
	align-items: center;
	padding: 0 10px !important;
	border-right: 1px solid #e2e8f0 !important;
	border-bottom: none !important;
	background: #f8fafc !important;
	border-radius: 10px 0 0 10px;
	cursor: pointer;
	width: auto !important;
	height: 100% !important;
	min-height: 42px;
	font-size: 13px !important;
}
.vs-login-form-legacy .vs-country-selector .iti__flag,
.vs-login-form-legacy .vs-country-selector div#itiFlagImg {
	display: inline-flex !important;
	align-items: center;
	line-height: 0;
}
.vs-login-form-legacy .vs-country-selector li#iti-item-in {
	width: auto !important;
}
.vs-login-form-legacy .vs-country-selector .iti__selected-flag {
	display: flex !important;
	align-items: center;
	gap: 6px;
	padding: 0 6px;
	height: 100%;
	background: transparent !important;
	font-size: 13px;
	color: #0f172a;
	font-weight: 600;
	position: static !important;
}
.vs-login-form-legacy .vs-country-selector .iti__flag img {
	width: 20px;
	height: 14px;
	object-fit: cover;
	border-radius: 2px;
}
.vs-login-form-legacy .vs-country-selector .iti__arrow i {
	font-size: 10px;
	color: #94a3b8;
}

/* Country dropdown list — proper styling so items don't get truncated */
.vs-login-form-legacy .vs-country-selector .iti__country-list {
	position: absolute !important;
	top: 100% !important;
	left: 0 !important;
	right: auto !important;
	bottom: auto !important;
	margin-top: 6px !important;
	width: 260px !important;
	max-height: 260px !important;
	overflow-y: auto !important;
	background: #ffffff !important;
	border: 1px solid #e2e8f0 !important;
	border-radius: 10px !important;
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12) !important;
	padding: 6px !important;
	list-style: none !important;
	z-index: 1000 !important;
	white-space: normal !important;
}
/* Force downward-open even if legacy dropup class is present */
.vs-login-form-legacy .vs-country-selector .iti__country-list.iti__country-list--dropup {
	top: 100% !important;
	bottom: auto !important;
	margin-top: 6px !important;
	margin-bottom: 0 !important;
}
.vs-login-form-legacy .vs-country-selector .iti__country {
	display: flex !important;
	align-items: center;
	gap: 10px;
	padding: 8px 10px !important;
	border-radius: 8px;
	cursor: pointer;
	font-size: 13px;
	color: #0f172a;
	transition: background-color 0.12s ease;
	white-space: nowrap;
}
.vs-login-form-legacy .vs-country-selector .iti__country:hover {
	background-color: #eef2ff;
}
.vs-login-form-legacy .vs-country-selector .iti__country .iti__flag-box {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
}
.vs-login-form-legacy .vs-country-selector .iti__country .iti__flag img {
	width: 22px;
	height: 15px;
	object-fit: cover;
	border-radius: 2px;
}
.vs-login-form-legacy .vs-country-selector .iti__country .iti__country-name {
	flex: 1;
	color: #0f172a;
	font-weight: 500;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.vs-login-form-legacy .vs-country-selector .iti__country .iti__dial-code {
	color: #64748b;
	font-weight: 600;
	font-size: 12.5px;
	flex-shrink: 0;
	white-space: nowrap;
}
/* Scrollbar polish for the country list */
.vs-login-form-legacy .vs-country-selector .iti__country-list::-webkit-scrollbar {
	width: 6px;
}
.vs-login-form-legacy .vs-country-selector .iti__country-list::-webkit-scrollbar-thumb {
	background: #cbd5e1;
	border-radius: 4px;
}

.vs-login-form-legacy .vs-error {
	color: #dc2626;
	font-size: 12px;
	font-weight: 500;
	margin-top: 2px;
}

/* Sign-in button + secondary links */
.vs-login-form-legacy .vs-fg-actions {
	margin-top: 8px;
	gap: 16px;
}
.vs-login-form-legacy .vs-login-btn {
	padding: 12px 18px;
	font-size: 14px;
	font-weight: 600;
	color: #ffffff;
	background: linear-gradient(135deg, #4f46e5 0%, #6366f1 50%, #3b82f6 100%);
	border: none;
	border-radius: 10px;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
	transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: inherit;
	width: 100%;
}
.vs-login-form-legacy .vs-login-btn:hover:not(:disabled) {
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(99, 102, 241, 0.32);
}
.vs-login-form-legacy .vs-login-btn:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}
.vs-login-form-legacy .vs-login-btn i {
	font-size: 14px;
}
.vs-login-form-legacy .vs-login-links {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 24px;
	flex-wrap: wrap;
	padding-top: 12px;
	border-top: 1px solid #f1f5f9;
}
.vs-login-form-legacy .vs-login-links a {
	color: #64748b;
	font-size: 13px;
	font-weight: 500;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	transition: color 0.15s ease;
}
.vs-login-form-legacy .vs-login-links a:hover {
	color: #4f46e5;
}

/* Ensure body/main-container overrides do not shrink the login screen */
body.vs-login-active,
body:has(.vs-login-wrapper) {
	background: transparent !important;
}

/* Mobile: hide hero, keep form card centered on the same overlay */
@media (max-width: 767px) {
	.vs-login-hero-legacy {
		display: none !important;
	}
	.vs-login-formcol {
		padding: 20px !important;
	}
	.vs-login-form-wrap {
		max-width: 420px;
		padding: 28px 22px !important;
	}
}

/* Pagination footer row: "Rows per page: [10] Total: N" — add breathing room
   between the three cells and pull it away from the block edge. */
.content .block-content .d-flex.justify-content-end {
	gap: 16px;
	color: #64748b;
	font-size: 13px;
	font-weight: 500;
	padding: 12px 4px 4px 0;
}
.content .block-content [role="status"] {
	color: #475569;
	font-size: 13px;
	font-weight: 500;
	white-space: nowrap;
	padding: 0 2px;
}

/* Block content bottom padding so pagination rows are not flush against the
   block's border. */
.content .block .block-content:last-child {
	padding-bottom: 24px !important;
}

/* Push the entire floated pagination container inward from the card's right
   edge. The outer container is a bare <div> with inline style — match via
   attribute selector on both "float: right" and "float:right" variants. */
.content .block div[style*="float: right"],
.content .block div[style*="float:right"] {
	margin-right: 24px !important;
}

/* Extra breathing room for the last "Total: N" cell inside the pagination
   row so the number is not visually touching the card edge. */
.content .block .d-flex.justify-content-end > div:last-child,
.content .block .d-flex.justify-content-end [role="status"]:last-child {
	padding-right: 8px !important;
