/* assets/css/custom.css */
.password-mask { font-family: 'password'; }
.copy-btn { cursor: pointer; }
.card-kpi { border-radius: 1rem; }
.table td { vertical-align: middle; }
.badge-tag { background:#eef; color:#224; margin-right:.25rem; }

:root {
	--vm-bg: #0c0f16;
	--vm-surface: #121725;
	--vm-surface-2: #1a2133;
	--vm-border: #27304a;
	--vm-border-soft: #202942;
	--vm-text: #e5ebff;
	--vm-muted: #8f9bbd;
	--vm-accent: #4d7cfe;
	--vm-accent-2: #355fdf;
	--vm-green: #23cd7e;
	--vm-red: #ff5979;
	--vm-amber: #f6ac32;
	--vm-shell-radius: 14px;
	--vm-shell-pad-x: 10px;
	--vm-shell-pad-y: 14px;
	--vm-auth-width: 500px;
	--vm-auth-width-wide: 560px;
}

.vm-page {
	color: var(--vm-text);
	font-family: 'DM Sans', sans-serif;
}

.vm-page-bg {
	background:
		radial-gradient(900px 500px at -10% -20%, rgba(77, 124, 254, 0.2), transparent 60%),
		radial-gradient(700px 380px at 110% -20%, rgba(0, 194, 184, 0.16), transparent 60%),
		var(--vm-bg);
	min-height: calc(100vh - 56px);
	border-radius: var(--vm-shell-radius) !important;
	padding: var(--vm-shell-pad-y) var(--vm-shell-pad-x) !important;
}

.vm-page a {
	color: #9cb4ff;
}

.vm-page a:hover {
	color: #c6d4ff;
}

.vm-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 14px;
}

.vm-title {
	margin: 0;
	color: var(--vm-text);
	font-family: 'DM Mono', monospace;
	font-size: 1.14rem;
	letter-spacing: .03em;
}

.vm-subtitle {
	color: var(--vm-muted);
	font-size: .84rem;
	margin-top: 4px;
}

.vm-card {
	background: linear-gradient(180deg, rgba(21, 27, 41, .97), rgba(18, 23, 37, .97));
	border: 1px solid var(--vm-border);
	border-radius: var(--vm-shell-radius);
	box-shadow: 0 18px 40px rgba(0, 0, 0, .34);
}

.vm-card .card-body {
	padding: 1.15rem;
}

.vm-sec {
	margin-bottom: 1.25rem;
}

.vm-sec:last-child {
	margin-bottom: 0;
}

.vm-sec-title {
	margin: 0 0 .8rem;
	color: #a6b2d6;
	font-family: 'DM Mono', monospace;
	font-size: .69rem;
	letter-spacing: .13em;
	text-transform: uppercase;
	padding-bottom: .55rem;
	border-bottom: 1px solid var(--vm-border-soft);
}

.vm-label {
	color: #a9b5d8;
	font-family: 'DM Mono', monospace;
	font-size: .73rem;
	letter-spacing: .03em;
	margin-bottom: .45rem;
}

.vm-label .req {
	color: #7da3ff;
}

.vm-page .form-control,
.vm-page .form-select,
.vm-page textarea.form-control {
	background: #090d17;
	border: 1px solid var(--vm-border);
	color: var(--vm-text);
	border-radius: 9px;
	font-size: .9rem;
}

.vm-page .form-control::placeholder,
.vm-page textarea.form-control::placeholder {
	color: #5f6c93;
}

.vm-page .form-control:focus,
.vm-page .form-select:focus,
.vm-page textarea.form-control:focus {
	background: #090d17;
	color: var(--vm-text);
	border-color: var(--vm-accent);
	box-shadow: 0 0 0 .2rem rgba(77, 124, 254, .18);
}

.vm-page .form-text {
	color: #7d8ab1;
}

.vm-btn-primary,
.vm-btn-secondary,
.vm-btn-danger,
.vm-btn-ghost {
	border-radius: 10px;
	font-size: .86rem;
	padding: .5rem .9rem;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	text-decoration: none;
	border: 1px solid transparent;
	transition: all .15s ease;
}

.vm-btn-primary {
	background: var(--vm-accent);
	color: #fff;
	box-shadow: 0 10px 26px rgba(77, 124, 254, .22);
}

.vm-btn-primary:hover {
	color: #fff;
	background: var(--vm-accent-2);
	transform: translateY(-1px);
}

.vm-btn-secondary {
	background: var(--vm-surface-2);
	border-color: var(--vm-border);
	color: #b8c4e7;
}

.vm-btn-secondary:hover {
	color: #fff;
	border-color: #3a4667;
}

.vm-btn-danger {
	background: rgba(255, 89, 121, .12);
	border-color: rgba(255, 89, 121, .28);
	color: var(--vm-red);
}

.vm-btn-danger:hover {
	color: #ffd4dc;
	background: rgba(255, 89, 121, .2);
}

.vm-btn-ghost {
	background: transparent;
	border-color: var(--vm-border);
	color: #9aa8cf;
}

.vm-btn-ghost:hover {
	color: #fff;
	border-color: #3a4667;
}

.vm-inline-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.vm-pill {
	display: inline-flex;
	align-items: center;
	border-radius: 999px;
	padding: 4px 10px;
	font-size: .66rem;
	font-family: 'DM Mono', monospace;
	letter-spacing: .05em;
	border: 1px solid;
}

.vm-pill.active {
	color: var(--vm-green);
	border-color: rgba(35, 205, 126, .32);
	background: rgba(35, 205, 126, .11);
}

.vm-pill.inactive {
	color: var(--vm-red);
	border-color: rgba(255, 89, 121, .32);
	background: rgba(255, 89, 121, .11);
}

.vm-chip {
	display: inline-flex;
	align-items: center;
	border-radius: 7px;
	border: 1px solid rgba(77, 124, 254, .28);
	background: rgba(77, 124, 254, .12);
	color: #9cb4ff;
	font-family: 'DM Mono', monospace;
	font-size: .66rem;
	padding: 3px 8px;
	margin-right: 6px;
	margin-bottom: 6px;
}

.vm-table-wrap {
	border: 1px solid var(--vm-border);
	border-radius: 12px;
	overflow: hidden;
}

.vm-table {
	margin: 0;
}

.vm-table > :not(caption) > * > * {
	background: transparent;
	color: var(--vm-text);
	border-bottom-color: var(--vm-border-soft);
}

.vm-table thead th {
	font-size: .67rem;
	font-family: 'DM Mono', monospace;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: #98a7d0;
	background: #1b2337;
	border-bottom: 1px solid var(--vm-border);
}

.vm-table tbody tr:hover td {
	background: rgba(77, 124, 254, .05);
}

.vm-muted {
	color: var(--vm-muted);
}

.vm-secret {
	font-family: 'DM Mono', monospace;
	color: #99a5ca;
	letter-spacing: 1px;
}

.vm-xbtn {
	width: 27px;
	height: 27px;
	border-radius: 7px;
	border: 1px solid var(--vm-border);
	background: #1a2235;
	color: #9aa9cf;
	padding: 0;
}

.vm-xbtn:hover {
	color: #fff;
	border-color: #3a4667;
}

.vm-pass-wrap {
	position: relative;
}

.vm-pass-actions {
	position: absolute;
	top: 50%;
	right: 7px;
	transform: translateY(-50%);
	display: flex;
	gap: 4px;
}

.vm-pass-actions .vm-xbtn {
	width: 28px;
	height: 28px;
}

.vm-pass-meter {
	height: 4px;
	background: #20283f;
	border-radius: 4px;
	margin-top: 7px;
	overflow: hidden;
}

.vm-pass-meter-fill {
	height: 100%;
	width: 0;
	border-radius: inherit;
	transition: width .2s ease, background .2s ease;
}

.vm-pass-meter-label {
	margin-top: 5px;
	font-size: .67rem;
	color: #8b98bf;
	font-family: 'DM Mono', monospace;
}

.vm-auth-body {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background:
		radial-gradient(900px 500px at -10% -20%, rgba(77, 124, 254, 0.24), transparent 60%),
		radial-gradient(700px 420px at 120% 120%, rgba(0, 194, 184, 0.18), transparent 60%),
		var(--vm-bg);
}

.vm-auth-topbar {
	width: min(var(--vm-auth-width), 100%);
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	margin-bottom: 14px;
	padding: 10px 12px;
	border-radius: 12px;
	border: 1px solid var(--vm-border);
	background: rgba(18, 23, 37, .88);
	backdrop-filter: blur(10px);
	box-shadow: 0 10px 26px rgba(0, 0, 0, .28);
	font-family: 'DM Sans', sans-serif;
}

.vm-auth-topbar.is-wide {
	width: min(var(--vm-auth-width-wide), 100%);
}

.vm-auth-brand {
	color: var(--vm-text);
	text-decoration: none;
	font-family: 'DM Mono', monospace;
	font-size: .8rem;
	letter-spacing: .06em;
}

.vm-auth-brand:hover {
	color: #fff;
}

.vm-auth-links {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.vm-auth-link {
	color: #aab6d8;
	text-decoration: none;
	border: 1px solid var(--vm-border);
	background: var(--vm-surface-2);
	border-radius: 999px;
	padding: 5px 12px;
	font-size: .78rem;
	transition: all .15s ease;
}

.vm-auth-link:hover {
	color: #fff;
	border-color: #3a4667;
}

.vm-auth-link.active {
	color: #dce6ff;
	border-color: rgba(77, 124, 254, .34);
	background: rgba(77, 124, 254, .14);
}

.vm-auth-card {
	width: 100%;
	max-width: var(--vm-auth-width);
}

.vm-auth-card.is-wide {
	max-width: var(--vm-auth-width-wide);
}

@media (max-width: 560px) {
	.vm-auth-topbar {
		flex-direction: column;
		align-items: stretch;
	}

	.vm-auth-links {
		justify-content: space-between;
	}

	.vm-auth-link {
		text-align: center;
		flex: 1;
	}
}

.vm-alert {
	background: rgba(255, 89, 121, .15);
	border: 1px solid rgba(255, 89, 121, .32);
	color: #ffd4dc;
	border-radius: 10px;
	padding: .65rem .8rem;
	font-size: .85rem;
}

@media (max-width: 767px) {
	.vm-head {
		flex-direction: column;
		align-items: stretch;
	}
}

body.vm-app-body {
	background: var(--vm-bg);
}

.vm-topbar {
	position: sticky;
	top: 0;
	z-index: 1020;
	background: rgba(11, 15, 25, .92);
	border-bottom: 1px solid var(--vm-border);
	backdrop-filter: blur(12px);
}

.vm-topbar .navbar-brand {
	color: var(--vm-text);
	font-family: 'DM Mono', monospace;
	font-size: .86rem;
	letter-spacing: .05em;
}

.vm-topbar .navbar-brand:hover {
	color: #fff;
}

.vm-topbar .nav-link {
	color: #aab6d8;
	border-radius: 7px;
	font-size: .84rem;
	padding: .4rem .65rem;
}

.vm-topbar .nav-link:hover,
.vm-topbar .nav-link.active {
	color: #fff;
	background: rgba(77, 124, 254, .12);
}

.vm-user-chip {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 4px 9px;
	border: 1px solid var(--vm-border);
	border-radius: 999px;
	color: #c1cdea;
	background: rgba(26, 33, 51, .85);
	font-size: .78rem;
}

.vm-role-pill {
	display: inline-flex;
	align-items: center;
	border: 1px solid rgba(246, 172, 50, .32);
	background: rgba(246, 172, 50, .13);
	color: var(--vm-amber);
	border-radius: 999px;
	padding: 2px 7px;
	font-size: .64rem;
	text-transform: uppercase;
	letter-spacing: .06em;
	font-family: 'DM Mono', monospace;
}

.vm-container {
	max-width: 1480px;
}

.vm-footer {
	border-top: 1px solid var(--vm-border);
	background: rgba(11, 15, 25, .85);
	padding: 10px 0;
	margin-top: 18px;
}

.vm-footer-text {
	display: block;
	text-align: center;
	color: var(--vm-muted);
	font-family: 'DM Mono', monospace;
	font-size: .72rem;
	letter-spacing: .05em;
}

.vm-auth-footer {
	margin-top: 14px;
	text-align: center;
	color: var(--vm-muted);
	font-family: 'DM Mono', monospace;
	font-size: .72rem;
	letter-spacing: .05em;
}

/* ── Modern Split Login ─────────────────────────────────────── */
body.vm-login-page {
	min-height: 100vh;
	margin: 0;
	background: var(--vm-bg);
	font-family: 'DM Sans', sans-serif;
}

.vm-login-split {
	display: flex;
	min-height: 100vh;
}

/* Left branding panel */
.vm-login-left {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 48px 56px;
	background:
		radial-gradient(ellipse 80% 60% at 10% 80%, rgba(77,124,254,.18) 0%, transparent 60%),
		radial-gradient(ellipse 60% 50% at 90% 10%, rgba(0,194,184,.14) 0%, transparent 60%),
		var(--vm-surface);
	border-right: 1px solid var(--vm-border);
	position: relative;
	overflow: hidden;
}

.vm-login-left::after {
	content: '';
	position: absolute;
	inset: 0;
	background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%234d7cfe' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
	pointer-events: none;
}

.vm-login-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: 'DM Mono', monospace;
	font-size: .92rem;
	color: var(--vm-text);
	letter-spacing: .05em;
	text-decoration: none;
	position: relative;
	z-index: 1;
}

.vm-login-brand i {
	font-size: 1.35rem;
	color: var(--vm-accent);
}

.vm-login-brand:hover { color: #fff; }

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

.vm-login-hero h2 {
	font-size: 2.3rem;
	font-weight: 700;
	color: var(--vm-text);
	line-height: 1.2;
	margin-bottom: .9rem;
}

.vm-login-hero h2 span {
	background: linear-gradient(90deg, var(--vm-accent), #00c2b8);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.vm-login-hero p {
	color: var(--vm-muted);
	font-size: .97rem;
	line-height: 1.65;
	max-width: 340px;
}

.vm-login-features {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
	position: relative;
	z-index: 1;
}

.vm-login-features li {
	display: flex;
	align-items: center;
	gap: 13px;
	color: #a6b4d8;
	font-size: .88rem;
}

.vm-login-features li .vm-lf-icon {
	width: 34px;
	height: 34px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 9px;
	background: rgba(77,124,254,.13);
	border: 1px solid rgba(77,124,254,.22);
	color: var(--vm-accent);
	font-size: .8rem;
}

.vm-login-foot {
	color: #3e4d72;
	font-size: .75rem;
	font-family: 'DM Mono', monospace;
	position: relative;
	z-index: 1;
}

/* Right form panel */
.vm-login-right {
	width: 500px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 48px 40px;
	background: var(--vm-bg);
}

.vm-login-form-wrap {
	width: 100%;
	max-width: 380px;
}

.vm-login-form-header {
	text-align: center;
	margin-bottom: 2rem;
}

.vm-login-form-icon {
	width: 62px;
	height: 62px;
	border-radius: 18px;
	background: linear-gradient(135deg, rgba(77,124,254,.22), rgba(0,194,184,.14));
	border: 1px solid rgba(77,124,254,.3);
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 1.25rem;
	font-size: 1.5rem;
	color: var(--vm-accent);
	box-shadow: 0 8px 28px rgba(77,124,254,.22);
}

.vm-login-form-header h1 {
	font-size: 1.55rem;
	font-weight: 700;
	color: var(--vm-text);
	margin-bottom: .35rem;
}

.vm-login-form-header p {
	color: var(--vm-muted);
	font-size: .86rem;
}

.vm-login-field {
	margin-bottom: 1.2rem;
}

.vm-login-field label {
	display: block;
	color: #a9b5d8;
	font-size: .75rem;
	font-family: 'DM Mono', monospace;
	letter-spacing: .04em;
	margin-bottom: .45rem;
}

.vm-login-input-wrap {
	position: relative;
}

.vm-login-input-wrap .vm-li-icon {
	position: absolute;
	left: 13px;
	top: 50%;
	transform: translateY(-50%);
	color: #4a5578;
	font-size: .82rem;
	pointer-events: none;
	z-index: 1;
}

.vm-login-input-wrap input {
	width: 100%;
	background: rgba(9,13,23,.9);
	border: 1px solid var(--vm-border);
	color: var(--vm-text);
	border-radius: 10px;
	padding: .72rem .9rem .72rem 2.5rem;
	font-size: .9rem;
	font-family: 'DM Sans', sans-serif;
	transition: border-color .15s, box-shadow .15s;
	outline: none;
	box-sizing: border-box;
}

.vm-login-input-wrap input::placeholder {
	color: #3a4567;
}

.vm-login-input-wrap input:focus {
	border-color: var(--vm-accent);
	box-shadow: 0 0 0 3px rgba(77,124,254,.15);
	background: #090d17;
}

.vm-login-submit {
	width: 100%;
	padding: .78rem 1.25rem;
	background: var(--vm-accent);
	color: #fff;
	border: none;
	border-radius: 10px;
	font-size: .95rem;
	font-weight: 600;
	font-family: 'DM Sans', sans-serif;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-top: .25rem;
	box-shadow: 0 8px 24px rgba(77,124,254,.28);
	transition: all .2s ease;
}

.vm-login-submit:hover {
	background: var(--vm-accent-2);
	transform: translateY(-1px);
	box-shadow: 0 12px 32px rgba(77,124,254,.4);
}

.vm-login-submit:active {
	transform: translateY(0);
}

.vm-login-divider {
	height: 1px;
	background: var(--vm-border-soft);
	margin: 1.5rem 0;
}

.vm-login-foot-note {
	text-align: center;
	color: #3e4d72;
	font-size: .73rem;
	font-family: 'DM Mono', monospace;
	margin-top: 1.5rem;
}

@media (max-width: 860px) {
	.vm-login-left { display: none; }
	.vm-login-right {
		width: 100%;
		padding: 36px 24px;
	}
}
/* ────────────────────────────────────────────────────────────── */

/* Dashboard/index shared classes */
.idx-wrap {
	color: var(--vm-text);
	font-family: 'DM Sans', sans-serif;
}

.idx-title {
	font-family: 'DM Mono', monospace;
	font-size: 1.15rem;
	letter-spacing: 0.02em;
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
}

.idx-subtitle {
	color: var(--vm-muted);
	font-size: .86rem;
}

.idx-count-pill {
	border: 1px solid var(--vm-border);
	background: var(--vm-surface-2);
	border-radius: 999px;
	color: #afbadb;
	font-family: 'DM Mono', monospace;
	font-size: .68rem;
	padding: 4px 10px;
	margin-left: 8px;
}

.idx-btn-primary,
.idx-btn-secondary {
	border-radius: 10px;
	padding: 8px 14px;
	font-size: .9rem;
	border: 1px solid transparent;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	transition: all .15s ease;
}

.idx-btn-primary {
	background: var(--vm-accent);
	color: #fff;
	box-shadow: 0 12px 26px rgba(77, 124, 254, .22);
}

.idx-btn-primary:hover {
	background: var(--vm-accent-2);
	color: #fff;
	transform: translateY(-1px);
}

.idx-btn-secondary {
	background: var(--vm-surface-2);
	color: #afbadb;
	border-color: var(--vm-border);
}

.idx-btn-secondary:hover {
	color: #fff;
	border-color: #3a4667;
}

.idx-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
	margin-top: 14px;
}

.idx-stat {
	background: linear-gradient(180deg, rgba(23, 27, 39, .98), rgba(19, 22, 31, .98));
	border: 1px solid var(--vm-border);
	border-radius: 12px;
	padding: 14px 16px;
}

.idx-stat-label {
	font-size: .75rem;
	color: var(--vm-muted);
	text-transform: uppercase;
	letter-spacing: .06em;
}

.idx-stat-value {
	font-family: 'DM Mono', monospace;
	font-size: 1.45rem;
	margin-top: 6px;
}

.idx-chip {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--vm-border);
	background: var(--vm-surface-2);
	color: #afbadb;
	border-radius: 7px;
	padding: 2px 8px;
	font-size: .68rem;
	font-family: 'DM Mono', monospace;
	margin-right: 6px;
	margin-top: 6px;
}

.idx-panel {
	margin-top: 14px;
	border: 1px solid var(--vm-border);
	border-radius: 14px;
	background: var(--vm-surface);
	overflow: hidden;
}

.idx-toolbar {
	padding: 14px;
	border-bottom: 1px solid var(--vm-border);
	background: var(--vm-surface-2);
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	align-items: center;
}

.idx-input,
.idx-select {
	border: 1px solid var(--vm-border);
	background: #090d17;
	color: var(--vm-text);
	border-radius: 8px;
	padding: 8px 10px;
	font-size: .85rem;
	outline: none;
}

.idx-input:focus,
.idx-select:focus {
	border-color: var(--vm-accent);
	box-shadow: 0 0 0 3px rgba(77, 124, 254, 0.14);
}

.idx-search {
	margin-left: auto;
	min-width: 240px;
}

.idx-table-wrap {
	overflow: auto;
}

.idx-table {
	width: 100%;
	border-collapse: collapse;
	min-width: 960px;
}

.idx-table thead th {
	background: #202533;
	color: #96a2c6;
	font-family: 'DM Mono', monospace;
	font-size: .68rem;
	text-transform: uppercase;
	letter-spacing: .07em;
	border-bottom: 1px solid var(--vm-border);
	padding: 12px 12px;
	white-space: nowrap;
}

.idx-table tbody td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--vm-border);
	font-size: .86rem;
	vertical-align: middle;
}

.idx-table tbody tr:hover td {
	background: rgba(77, 124, 254, 0.04);
}

.idx-title-cell {
	max-width: 280px;
}

.idx-title-main {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: #f0f3ff;
	font-weight: 500;
}

.idx-title-sub {
	color: var(--vm-muted);
	font-size: .72rem;
	font-family: 'DM Mono', monospace;
}

.idx-pill {
	display: inline-flex;
	align-items: center;
	border: 1px solid;
	border-radius: 7px;
	padding: 3px 8px;
	font-size: .68rem;
	font-family: 'DM Mono', monospace;
	white-space: nowrap;
}

.idx-pill.software { color: #a78bfa; border-color: rgba(167, 139, 250, .32); background: rgba(167, 139, 250, .11); }
.idx-pill.hardware { color: #f59e0b; border-color: rgba(245, 158, 11, .32); background: rgba(245, 158, 11, .11); }
.idx-pill.portal { color: #4ade80; border-color: rgba(74, 222, 128, .32); background: rgba(74, 222, 128, .11); }
.idx-pill.cctv { color: #38bdf8; border-color: rgba(56, 189, 248, .32); background: rgba(56, 189, 248, .11); }

.idx-status {
	border-radius: 999px;
	padding: 4px 10px;
	font-family: 'DM Mono', monospace;
	font-size: .67rem;
	border: 1px solid;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.idx-status::before {
	content: '';
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: currentColor;
}

.idx-status.active {
	color: var(--vm-green);
	border-color: rgba(35, 205, 126, .3);
	background: rgba(35, 205, 126, .12);
}

.idx-status.inactive {
	color: var(--vm-red);
	border-color: rgba(255, 89, 121, .3);
	background: rgba(255, 89, 121, .12);
}

.idx-secret {
	font-family: 'DM Mono', monospace;
	letter-spacing: 1px;
	color: #98a3c6;
	margin-right: 6px;
}

.idx-xbtn {
	border: 1px solid var(--vm-border);
	background: var(--vm-surface-2);
	color: #9ca8cb;
	width: 26px;
	height: 26px;
	border-radius: 6px;
	font-size: .72rem;
	padding: 0;
}

.idx-xbtn:hover {
	color: #fff;
	border-color: #3a4667;
}

.idx-rbtn {
	width: 28px;
	height: 28px;
	border-radius: 7px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	border: 1px solid;
	margin-right: 4px;
	font-size: .78rem;
}

.idx-rbtn.view { color: var(--vm-accent); border-color: rgba(77, 124, 254, .3); background: rgba(77, 124, 254, .1); }
.idx-rbtn.edit { color: var(--vm-amber); border-color: rgba(246, 172, 50, .3); background: rgba(246, 172, 50, .1); }
.idx-rbtn.del { color: var(--vm-red); border-color: rgba(255, 89, 121, .3); background: rgba(255, 89, 121, .1); }

.idx-empty {
	text-align: center;
	padding: 42px 16px;
	color: var(--vm-muted);
	display: none;
}

@media (max-width: 992px) {
	.idx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.idx-search { margin-left: 0; min-width: 200px; }
}

@media (max-width: 576px) {
	.idx-grid { grid-template-columns: 1fr; }
	.idx-btn-primary,
	.idx-btn-secondary { width: 100%; justify-content: center; }
}

.vm-topbar .navbar-toggler {
	border-color: var(--vm-border);
	box-shadow: none;
}

.vm-topbar .navbar-toggler:focus {
	box-shadow: 0 0 0 .2rem rgba(77, 124, 254, .2);
}

.vm-topbar .navbar-toggler-icon {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba%28229,235,255,0.92%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* DataTables dark integration */
.vm-page .dataTables_wrapper {
	color: var(--vm-text);
	font-size: .86rem;
}

.vm-page .dataTables_wrapper .dataTables_length,
.vm-page .dataTables_wrapper .dataTables_filter,
.vm-page .dataTables_wrapper .dataTables_info,
.vm-page .dataTables_wrapper .dataTables_processing,
.vm-page .dataTables_wrapper .dataTables_paginate {
	color: var(--vm-muted);
	margin-top: .55rem;
	margin-bottom: .2rem;
}

.vm-page .dataTables_wrapper .dataTables_filter input,
.vm-page .dataTables_wrapper .dataTables_length select {
	background: #090d17;
	border: 1px solid var(--vm-border);
	color: var(--vm-text);
	border-radius: 8px;
	padding: .28rem .55rem;
	margin-left: .35rem;
}

.vm-page .dataTables_wrapper .dataTables_filter input:focus,
.vm-page .dataTables_wrapper .dataTables_length select:focus {
	outline: none;
	border-color: var(--vm-accent);
	box-shadow: 0 0 0 .2rem rgba(77, 124, 254, .16);
}

.vm-page .dt-buttons {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 8px;
}

.vm-page .dt-button,
.vm-page button.dt-button,
.vm-page div.dt-button,
.vm-page a.dt-button {
	background: var(--vm-surface-2) !important;
	border: 1px solid var(--vm-border) !important;
	color: #b8c4e7 !important;
	border-radius: 8px !important;
	padding: .34rem .7rem !important;
	font-size: .78rem !important;
	text-shadow: none !important;
	box-shadow: none !important;
	transition: all .15s ease !important;
}

.vm-page .dt-button:hover,
.vm-page button.dt-button:hover,
.vm-page div.dt-button:hover,
.vm-page a.dt-button:hover {
	background: #242f48 !important;
	color: #fff !important;
	border-color: #3b496c !important;
}

.vm-page .dataTables_wrapper .dataTables_paginate .paginate_button {
	background: transparent !important;
	border: 1px solid var(--vm-border) !important;
	color: #aebbe0 !important;
	border-radius: 7px !important;
	margin-left: 4px;
	padding: .2rem .55rem !important;
}

.vm-page .dataTables_wrapper .dataTables_paginate .paginate_button.current,
.vm-page .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
	background: rgba(77, 124, 254, .16) !important;
	border-color: rgba(77, 124, 254, .38) !important;
	color: #d6e1ff !important;
}

.vm-page .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
	background: #242f48 !important;
	border-color: #3b496c !important;
	color: #fff !important;
}

.vm-page .dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.vm-page .dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
	opacity: .45;
	background: transparent !important;
	color: #7b88ae !important;
	border-color: var(--vm-border) !important;
}

.vm-page table.dataTable.no-footer {
	border-bottom-color: var(--vm-border-soft) !important;
}

.vm-page table.dataTable thead th,
.vm-page table.dataTable thead td {
	border-bottom-color: var(--vm-border) !important;
}