/* ==========================================================================
   Maritech Referral System — modern theme layer
   --------------------------------------------------------------------------
   This file is additive on top of AdminLTE3/Bootstrap4 + the PHPMaker
   generated stylesheet. It does not change any page markup or app logic —
   only how things look — and is registered as an external stylesheet
   (see ewcfg15.php $STYLESHEET_FILES / header.php) rather than edited
   into a PHPMaker-generated CSS file, so it survives re-generating the
   project from the PHPMaker designer.
   ========================================================================== */

:root {
	/* Brand / data palette (kept consistent with the dashboard charts) */
	--c-primary: #2a78d6;
	--c-primary-dark: #184f95;
	--c-primary-darker: #0d366b;
	--c-primary-light: #eaf2fc;
	--c-accent-orange: #eb6834;
	--c-accent-aqua: #1baf7a;
	--c-accent-yellow: #eda100;
	--c-accent-violet: #4a3aa7;

	--c-status-good: #0ca30c;
	--c-status-warning: #fab219;
	--c-status-serious: #ec835a;
	--c-status-critical: #d03b3b;

	--c-ink: #0b0b0b;
	--c-ink-secondary: #52514e;
	--c-ink-muted: #898781;
	--c-border: rgba(11, 11, 11, 0.10);
	--c-gridline: #e7e6e0;

	--c-surface: #ffffff;
	--c-page-bg: #f4f6fa;
	--c-sidebar-bg: #0d2a4d;
	--c-sidebar-bg-active: #14406f;

	--radius-sm: 6px;
	--radius-md: 10px;
	--radius-lg: 16px;
	--shadow-sm: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
	--shadow-md: 0 6px 16px rgba(16, 24, 40, .08);
	--shadow-lg: 0 12px 32px rgba(16, 24, 40, .14);

	--font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* --------------------------------------------------------------------------
   Base / typography
   -------------------------------------------------------------------------- */
body, .content-wrapper, .card, .btn, .form-control, table {
	font-family: var(--font-sans) !important;
}
body {
	background-color: var(--c-page-bg);
	color: var(--c-ink);
	-webkit-font-smoothing: antialiased;
}
.content-wrapper {
	background-color: var(--c-page-bg) !important;
}
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
	font-family: var(--font-sans) !important;
	font-weight: 600;
	color: var(--c-ink);
}
.content-header h1 {
	font-size: 1.5rem;
	font-weight: 700;
}
.content-header h1 small.text-muted {
	color: var(--c-ink-muted) !important;
	font-weight: 400;
}
a { color: var(--c-primary); }
a:hover { color: var(--c-primary-dark); }

/* --------------------------------------------------------------------------
   Navbar (top bar)
   -------------------------------------------------------------------------- */
.main-header.navbar {
	background: var(--c-surface) !important;
	border-bottom: 1px solid var(--c-border);
	box-shadow: var(--shadow-sm);
}
.main-header.navbar .nav-link {
	color: var(--c-ink-secondary) !important;
}
.main-header.navbar .nav-link:hover {
	color: var(--c-primary) !important;
}

/* --------------------------------------------------------------------------
   Sidebar
   -------------------------------------------------------------------------- */
.main-sidebar {
	background: linear-gradient(180deg, var(--c-sidebar-bg) 0%, #0a2140 100%) !important;
	box-shadow: var(--shadow-md);
}
.main-sidebar .brand-link {
	border-bottom: 1px solid rgba(255, 255, 255, .08);
	background: rgba(0, 0, 0, .12);
}
.nav-sidebar > .nav-item > .nav-link {
	border-radius: var(--radius-sm);
	margin: 2px 8px;
	width: calc(100% - 16px);
	color: rgba(255, 255, 255, .85);
	transition: background-color .15s ease, color .15s ease;
}
.nav-sidebar > .nav-item > .nav-link:hover {
	background-color: rgba(255, 255, 255, .08);
	color: #fff;
}
.nav-sidebar > .nav-item > .nav-link.active,
.nav-sidebar > .nav-item > .nav-link.active:hover {
	background-color: var(--c-sidebar-bg-active);
	color: #fff;
	box-shadow: var(--shadow-sm);
}
.nav-sidebar .nav-icon {
	color: rgba(255, 255, 255, .65);
}
.nav-sidebar > .nav-item > .nav-link.active .nav-icon,
.nav-sidebar > .nav-item > .nav-link:hover .nav-icon {
	color: #fff;
}

/* --------------------------------------------------------------------------
   Cards / panels / grids
   -------------------------------------------------------------------------- */
.card {
	border: 1px solid var(--c-border);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-sm);
}
.card-header {
	border-top-left-radius: var(--radius-lg) !important;
	border-top-right-radius: var(--radius-lg) !important;
	background-color: var(--c-surface);
	border-bottom: 1px solid var(--c-border);
}
.ew-grid {
	border: 1px solid var(--c-border) !important;
	border-radius: var(--radius-md);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
}
.ew-grid .ew-grid-content {
	border: 0 !important;
}
.ew-grid .ew-grid-upper-panel,
.ew-grid .ew-grid-lower-panel {
	background-color: var(--c-surface);
	border-color: var(--c-border) !important;
}
.ew-grid .ew-table > thead > tr > th,
.ew-grid .ew-table > thead > tr > td {
	background-color: var(--c-primary-darker) !important;
	background-image: none !important;
	color: #fff !important;
	border-color: var(--c-primary-dark) !important;
	font-weight: 600;
	text-transform: uppercase;
	font-size: .72rem;
	letter-spacing: .04em;
}
.ew-grid .ew-table > tbody > tr > td {
	border-color: var(--c-gridline) !important;
	vertical-align: middle;
}
.ew-grid .ew-table .ew-table-row {
	background-color: var(--c-surface) !important;
}
.ew-grid .ew-table .ew-table-alt-row {
	background-color: #f8fafc !important;
}
.ew-grid .ew-table tbody tr:hover td {
	background-color: var(--c-primary-light) !important;
}

/* Make wide grids scroll horizontally inside their own card instead of
   pushing the page wider (mobile friendliness) */
.ew-grid .ew-grid-middle-panel {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
	border-radius: var(--radius-sm);
	font-weight: 500;
	padding: .4375rem .9rem;
}
.btn-primary, .btn.ew-btn {
	background-color: var(--c-primary);
	border-color: var(--c-primary);
}
.btn-primary:hover, .btn.ew-btn:hover {
	background-color: var(--c-primary-dark);
	border-color: var(--c-primary-dark);
}
.btn-default {
	background-color: var(--c-surface);
	border-color: var(--c-border);
	color: var(--c-ink-secondary);
}
.btn-default:hover {
	background-color: var(--c-page-bg);
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.form-control, .custom-select {
	border-radius: var(--radius-sm);
	border-color: var(--c-border);
}
.form-control:focus, .custom-select:focus {
	border-color: var(--c-primary);
	box-shadow: 0 0 0 .2rem rgba(42, 120, 214, .15);
}
.ew-label label {
	font-weight: 600;
	color: var(--c-ink-secondary);
}

/* --------------------------------------------------------------------------
   Login page — full-screen split-panel sign-in

   The login page is still generated inside the normal app shell (sidebar +
   navbar), which is empty and pointless for an anonymous visitor. login.php
   tags <body class="mtc-login-page"> (and .hold-transition:has(.mtc-login)
   is a no-JS fallback) so we can hide that chrome here and hand the whole
   viewport to a centred two-panel card: brand story on the left, form on
   the right.
   -------------------------------------------------------------------------- */
body.mtc-login-page .main-header,
body.mtc-login-page .main-sidebar,
body.mtc-login-page .content-header,
body.mtc-login-page .main-footer,
.hold-transition:has(.mtc-login) .main-header,
.hold-transition:has(.mtc-login) .main-sidebar,
.hold-transition:has(.mtc-login) .content-header,
.hold-transition:has(.mtc-login) .main-footer {
	display: none !important;
}
body.mtc-login-page,
body.mtc-login-page .wrapper,
body.login-page,
.hold-transition:has(.ew-login-box) {
	min-height: 100vh;
	background: radial-gradient(1100px 560px at 12% 8%, rgba(42, 120, 214, .30), transparent 60%),
	            linear-gradient(135deg, var(--c-primary-darker) 0%, var(--c-sidebar-bg) 55%, #071a33 100%);
}
body.mtc-login-page .content-wrapper,
.hold-transition:has(.mtc-login) .content-wrapper {
	margin: 0 !important;
	min-height: 100vh !important;
	background: transparent !important;
}
body.mtc-login-page .content,
.hold-transition:has(.mtc-login) .content {
	width: 100%;
	min-height: 100vh;
	padding: 4vh 1rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
body.mtc-login-page .content > .container-fluid,
.hold-transition:has(.mtc-login) .content > .container-fluid {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}
body.mtc-login-page #ew-page-header,
body.mtc-login-page .ew-message-dialog {
	width: 100%;
	max-width: 940px;
	margin: 0 auto 1rem;
}
body.mtc-login-page .ew-message-dialog:empty { display: none; }

/* Outer card: brand panel + form panel side by side */
.ew-login-box.mtc-login {
	width: 100%;
	max-width: 940px;
	margin: auto;
	display: flex;
	background: var(--c-surface);
	border-radius: var(--radius-lg);
	box-shadow: 0 24px 70px rgba(3, 12, 28, .5);
	overflow: hidden;
}

/* Left: brand / value panel */
.mtc-login-aside {
	flex: 1 1 44%;
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 3.25rem 2.5rem;
	color: #fff;
	background: linear-gradient(160deg, var(--c-primary) 0%, var(--c-primary-dark) 45%, var(--c-primary-darker) 100%);
}
.mtc-login-aside::after {
	content: "";
	position: absolute;
	right: -90px;
	bottom: -90px;
	width: 240px;
	height: 240px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .08);
}
.mtc-login-aside > * { position: relative; z-index: 1; }
.mtc-login-logo {
	width: 58px;
	height: 58px;
	object-fit: contain;
	padding: 9px;
	margin-bottom: 1.5rem;
	background: rgba(255, 255, 255, .15);
	border-radius: 14px;
}
.mtc-login-headline {
	margin: 0 0 .8rem;
	font-size: 1.65rem;
	font-weight: 700;
	line-height: 1.25;
	color: #fff;
}
.mtc-login-subtitle {
	margin: 0 0 1.75rem;
	font-size: .94rem;
	line-height: 1.55;
	color: rgba(255, 255, 255, .82);
}
.mtc-login-features {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: .75rem;
}
.mtc-login-features li {
	display: flex;
	align-items: center;
	gap: .65rem;
	font-size: .9rem;
	color: rgba(255, 255, 255, .92);
}
.mtc-login-features li i {
	flex: 0 0 auto;
	width: 28px;
	height: 28px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: .8rem;
	background: rgba(255, 255, 255, .16);
	border-radius: 50%;
}

/* Right: the actual form */
.mtc-login-main {
	flex: 1 1 56%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 3.25rem 2.75rem;
}
.mtc-login .login-logo { display: none; }
.mtc-login .card {
	margin: 0;
	border: 0 !important;
	box-shadow: none !important;
	background: transparent !important;
}
.mtc-login .card-body { padding: 0; }
.mtc-login .login-box-msg {
	padding: 0;
	margin: 0 0 1.5rem;
	font-size: 1.35rem;
	font-weight: 700;
	text-align: left;
	color: var(--c-ink);
}
.mtc-login .mtc-field { margin-bottom: 1rem; }
.mtc-login .mtc-input-group { position: relative; }
.mtc-login .mtc-input-icon {
	position: absolute;
	top: 50%;
	left: 14px;
	transform: translateY(-50%);
	font-size: .95rem;
	color: var(--c-ink-muted);
	pointer-events: none;
}
.mtc-login .form-control {
	height: auto;
	padding: .72rem .9rem .72rem 2.5rem;
	background: #f7f9fc;
	border: 1px solid var(--c-border);
	border-radius: var(--radius-sm);
}
.mtc-login .form-control:focus {
	background: #fff;
	border-color: var(--c-primary);
	box-shadow: 0 0 0 .2rem rgba(42, 120, 214, .15);
}
.mtc-login .btn-primary.ew-btn {
	width: 100%;
	margin-top: .5rem;
	padding: .72rem;
	font-size: .95rem;
	font-weight: 600;
	border-radius: var(--radius-sm);
}
.mtc-login .social-auth-links { margin-top: 1.5rem; }
.mtc-login .social-auth-links > p {
	margin: 0 0 .75rem;
	font-size: .78rem;
	text-transform: uppercase;
	letter-spacing: .04em;
	text-align: center;
	color: var(--c-ink-muted);
}
.mtc-login .social-auth-links .btn { margin-bottom: .5rem; }
.mtc-login-foot {
	margin: 1.75rem 0 0;
	font-size: .76rem;
	text-align: center;
	color: var(--c-ink-muted);
}

@media (max-width: 767.98px) {
	.ew-login-box.mtc-login {
		flex-direction: column;
		max-width: 430px;
	}
	.mtc-login-aside { padding: 2.25rem 1.9rem; }
	.mtc-login-headline { font-size: 1.4rem; }
	.mtc-login-subtitle { margin-bottom: 1.25rem; }
	.mtc-login-main { padding: 2.25rem 1.9rem; }
}

/* --------------------------------------------------------------------------
   Misc polish
   -------------------------------------------------------------------------- */
.badge { border-radius: 999px; font-weight: 500; }
.alert { border-radius: var(--radius-md); border: 0; }
.pagination .page-link { border-radius: var(--radius-sm); margin: 0 2px; border-color: var(--c-border); }
.pagination .page-item.active .page-link { background-color: var(--c-primary); border-color: var(--c-primary); }

/* --------------------------------------------------------------------------
   Mobile-friendliness
   -------------------------------------------------------------------------- */
@media (max-width: 767.98px) {
	.content-header h1 { font-size: 1.25rem; }
	.card-body { padding: 1rem; }
	.btn { padding: .5rem 1rem; } /* bigger touch target */
	.ew-login-box:not(.mtc-login) { margin-top: 4vh; width: 92% !important; max-width: 400px; }
	.ew-toolbar .ew-action-option .btn { margin-bottom: .5rem; }
}

/* ==========================================================================
   Intelligence dashboard widgets
   ========================================================================== */
.mtc-dash-kpis {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 1rem;
	margin-bottom: 1.25rem;
}
.mtc-stat-tile {
	background: var(--c-surface);
	border: 1px solid var(--c-border);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-sm);
	padding: 1.1rem 1.25rem;
}
.mtc-stat-tile .mtc-stat-label {
	font-size: .78rem;
	color: var(--c-ink-secondary);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .03em;
	margin-bottom: .35rem;
}
.mtc-stat-tile .mtc-stat-value {
	font-size: 1.9rem;
	font-weight: 700;
	color: var(--c-ink);
	line-height: 1.1;
}
.mtc-stat-tile .mtc-stat-value.mtc-accent-critical { color: var(--c-status-critical); }
.mtc-stat-tile .mtc-stat-value.mtc-accent-primary { color: var(--c-primary); }

.mtc-dash-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
	gap: 1.25rem;
	align-items: start;
}
.mtc-card {
	background: var(--c-surface);
	border: 1px solid var(--c-border);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-sm);
	padding: 1.25rem 1.4rem;
}
.mtc-card-full { grid-column: 1 / -1; }
.mtc-card h2 {
	font-size: 1rem;
	font-weight: 700;
	margin: 0 0 .1rem;
}
.mtc-card .mtc-card-sub {
	font-size: .8rem;
	color: var(--c-ink-muted);
	margin-bottom: 1rem;
}

/* Horizontal bar rows (leaderboard, pipeline, course popularity) */
.mtc-barlist { display: flex; flex-direction: column; gap: .65rem; }
.mtc-barrow { display: grid; grid-template-columns: 130px 1fr 52px; align-items: center; gap: .6rem; }
.mtc-barrow .mtc-bar-label {
	font-size: .82rem;
	color: var(--c-ink-secondary);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.mtc-barrow .mtc-bar-track {
	background: var(--c-page-bg);
	border-radius: 999px;
	height: 14px;
	overflow: hidden;
}
.mtc-barrow .mtc-bar-fill {
	height: 100%;
	border-radius: 999px;
	background: var(--c-primary);
}
.mtc-barrow .mtc-bar-value {
	font-size: .82rem;
	font-weight: 700;
	color: var(--c-ink);
	text-align: right;
	font-variant-numeric: tabular-nums;
}

/* Trend line chart (SVG) */
.mtc-trend-svg { width: 100%; height: auto; }
.mtc-trend-line { fill: none; stroke: var(--c-primary); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mtc-trend-area { fill: var(--c-primary); opacity: .08; }
.mtc-trend-dot { fill: var(--c-primary); stroke: var(--c-surface); stroke-width: 2; }
.mtc-trend-grid { stroke: var(--c-gridline); stroke-width: 1; }
.mtc-trend-label { fill: var(--c-ink-muted); font-size: 10px; font-family: var(--font-sans); }
.mtc-trend-value-label { fill: var(--c-ink); font-size: 11px; font-weight: 700; font-family: var(--font-sans); }

/* Duplicate-attempt watch list */
.mtc-watch-list { display: flex; flex-direction: column; gap: .6rem; }
.mtc-watch-row {
	display: flex;
	align-items: flex-start;
	gap: .75rem;
	padding: .65rem .75rem;
	border-radius: var(--radius-md);
	background: var(--c-page-bg);
	border: 1px solid var(--c-border);
}
.mtc-watch-badge {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: .3rem;
	font-size: .68rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .03em;
	color: #fff;
	background: var(--c-status-critical);
	border-radius: 999px;
	padding: .2rem .55rem;
	white-space: nowrap;
}
.mtc-watch-body { font-size: .82rem; color: var(--c-ink-secondary); }
.mtc-watch-body strong { color: var(--c-ink); }
.mtc-watch-meta { font-size: .72rem; color: var(--c-ink-muted); margin-top: .15rem; }
.mtc-empty-state {
	color: var(--c-ink-muted);
	font-size: .85rem;
	padding: 1.5rem;
	text-align: center;
}

@media (max-width: 575.98px) {
	.mtc-barrow { grid-template-columns: 96px 1fr 40px; }
	.mtc-dash-grid { grid-template-columns: 1fr; }
}

/* Suspicious duplicate-name flag -- deliberately the loudest thing on the page when it has
   something to show: solid red, top of the dashboard, impossible to miss. Sits in a calm
   "all clear" state (not red) when there's nothing to flag, so red always means "look now". */
.mtc-suspicious-card {
	border-radius: var(--radius-lg);
	padding: 1.1rem 1.4rem;
	margin-bottom: 1.25rem;
	box-shadow: var(--shadow-md);
}
.mtc-suspicious-card.mtc-suspicious-alert {
	background: var(--c-status-critical);
	color: #fff;
	border: 2px solid #a92424;
	animation: mtc-suspicious-pulse 2.4s ease-in-out infinite;
}
.mtc-suspicious-card.mtc-suspicious-clear {
	background: var(--c-surface);
	border: 1px solid var(--c-border);
	color: var(--c-ink-secondary);
}
.mtc-suspicious-head {
	display: flex;
	align-items: center;
	gap: .55rem;
	font-size: 1.05rem;
	font-weight: 700;
}
.mtc-suspicious-card.mtc-suspicious-alert .mtc-suspicious-head { font-size: 1.15rem; }
.mtc-suspicious-sub {
	margin-top: .35rem;
	font-size: .85rem;
	opacity: .95;
}
.mtc-suspicious-clear-body {
	margin-top: .35rem;
	font-size: .85rem;
}
.mtc-suspicious-list {
	display: flex;
	flex-direction: column;
	gap: .75rem;
	margin-top: 1rem;
}
.mtc-suspicious-row {
	background: rgba(255, 255, 255, .14);
	border: 1px solid rgba(255, 255, 255, .35);
	border-radius: var(--radius-md);
	padding: .75rem .9rem;
}
.mtc-suspicious-reason {
	font-weight: 700;
	font-size: .78rem;
	text-transform: uppercase;
	letter-spacing: .03em;
	margin-bottom: .5rem;
	display: flex;
	align-items: center;
	gap: .4rem;
}
/* Stacked, not side-by-side -- the panel lives in a narrow right-hand column now */
.mtc-suspicious-pair {
	display: flex;
	flex-direction: column;
	gap: .4rem;
}
.mtc-suspicious-entry { font-size: .85rem; }
.mtc-suspicious-entry strong { font-size: .92rem; }
.mtc-suspicious-meta { font-size: .71rem; opacity: .85; margin-top: .1rem; }
.mtc-suspicious-vs {
	font-size: .68rem;
	font-weight: 700;
	opacity: .75;
	text-transform: uppercase;
	letter-spacing: .05em;
}

@keyframes mtc-suspicious-pulse {
	0%, 100% { box-shadow: var(--shadow-md), 0 0 0 0 rgba(208, 59, 59, .5); }
	50% { box-shadow: var(--shadow-md), 0 0 0 8px rgba(208, 59, 59, 0); }
}

/* Row header: reason label on the left, resolve/share actions on the right
   (actions only render in the markup for Admin/Superadmin, so this is purely layout) */
.mtc-suspicious-row-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .5rem;
	margin-bottom: .5rem;
}
.mtc-suspicious-row-head .mtc-suspicious-reason { margin-bottom: 0; }
.mtc-suspicious-actions {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: .3rem;
}
.mtc-suspicious-resolve-form { margin: 0; display: inline-flex; }
.mtc-suspicious-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .18);
	border: 1px solid rgba(255, 255, 255, .35);
	color: #fff;
	font-size: .8rem;
	cursor: pointer;
	transition: background-color .15s ease, transform .1s ease;
}
.mtc-suspicious-btn:hover {
	background: rgba(255, 255, 255, .32);
	color: #fff;
	transform: translateY(-1px);
}
.mtc-suspicious-btn.mtc-resolve-btn {
	background: rgba(255, 255, 255, .92);
	color: var(--c-status-critical);
	border-color: #fff;
}
.mtc-suspicious-btn.mtc-resolve-btn:hover { background: #fff; }

/* Bulk-resolve toolbar + per-row select checkbox (Admin/Superadmin only). The panel is red
   in its alert state, so these controls are styled for a dark background. */
.mtc-suspicious-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .75rem;
	margin-top: 1rem;
	padding: .55rem .7rem;
	background: rgba(255, 255, 255, .12);
	border: 1px solid rgba(255, 255, 255, .3);
	border-radius: var(--radius-md);
}
.mtc-suspicious-selall {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	margin: 0;
	font-size: .78rem;
	font-weight: 600;
	color: #fff;
	cursor: pointer;
	white-space: nowrap;
}
.mtc-suspicious-selall input { cursor: pointer; }
.mtc-suspicious-bulk-btn {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	padding: .4rem .8rem;
	font-size: .78rem;
	font-weight: 700;
	color: var(--c-status-critical);
	background: #fff;
	border: 1px solid #fff;
	border-radius: 999px;
	cursor: pointer;
	transition: transform .1s ease, box-shadow .15s ease;
}
.mtc-suspicious-bulk-btn:hover {
	box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
	transform: translateY(-1px);
}
.mtc-suspicious-check {
	width: 15px;
	height: 15px;
	margin-right: .1rem;
	vertical-align: -2px;
	cursor: pointer;
	accent-color: #fff;
	flex: 0 0 auto;
}

/* Confirmation / error line after a resolve action. Own background so it reads on both the
   red (alert) and white (clear) card states. */
.mtc-resolved-note {
	margin: 0 0 1rem;
	padding: .6rem .8rem;
	font-size: .82rem;
	font-weight: 600;
	border-radius: var(--radius-md);
	border: 1px solid transparent;
}
.mtc-resolved-note-ok {
	color: #0a5f2c;
	background: #e4f6ea;
	border-color: #b6e3c4;
}
.mtc-resolved-note-warn {
	color: #7a1f1f;
	background: #fdecec;
	border-color: #f3c4c4;
}

/* --------------------------------------------------------------------------
   Dashboard two-column layout: main widgets on the left, suspicious-entry
   panel pinned to the right with its own scrollbar once it outgrows the
   viewport, so a long fraud list never pushes the rest of the page down.
   -------------------------------------------------------------------------- */
.mtc-dash-layout {
	display: grid;
	grid-template-columns: 1fr 380px;
	gap: 1.25rem;
	align-items: start;
}
.mtc-dash-main { min-width: 0; }
.mtc-dash-side {
	position: sticky;
	top: 1rem;
}
.mtc-dash-side .mtc-suspicious-card {
	max-height: calc(100vh - 2rem);
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

@media (max-width: 991.98px) {
	.mtc-dash-layout { grid-template-columns: 1fr; }
	.mtc-dash-side { position: static; order: -1; } /* show the flag panel first on mobile/tablet */
	.mtc-dash-side .mtc-suspicious-card { max-height: 60vh; }
}
