/* =========================================================
   Visualise Operator Portal — Front-end styles
   ========================================================= */
.vop-login-wrapper, .vop-app {
	--vop-primary: #0b2f5c;
	--vop-accent: #1a2d50;
	--vop-bg: #f4f6f9;
	--vop-card-bg: #ffffff;
	--vop-border: #e5e9f0;
	--vop-text: #1e293b;
	--vop-muted: #64748b;
	--vop-green: #16a34a;
	--vop-green-bg: #e8f8ee;
	--vop-amber: #d97706;
	--vop-amber-bg: #fef3e2;
	--vop-red: #dc2626;
	--vop-red-bg: #fdeaea;
	--vop-purple: #7c3aed;
	--vop-purple-bg: #f1eafd;
font-family: "Roboto", sans-serif !important;
	color: var(--vop-text);
	box-sizing: border-box;
}
.vop-login-wrapper *:not(.dashicons):not(.dashicons-before), .vop-app *:not(.dashicons):not(.dashicons-before) {
font-family: "Roboto", sans-serif !important;
}
.vop-login-wrapper *, .vop-app * { box-sizing: border-box; }
.vop-login-wrapper input, .vop-login-wrapper select, .vop-login-wrapper textarea, .vop-login-wrapper button,
.vop-app input, .vop-app select, .vop-app textarea, .vop-app button {
/* 	font-family: inherit; */
}

.vop-app .frm_form_field input,
.vop-app .frm_form_field select,
.vop-app .frm_form_field textarea,
.vop-app .frm_form_field button,
.vop-app .frm_form_field .frm_text_input,
.vop-app .frm_form_field .frm_select,
.vop-app .frm_form_field .frm_text_area {
	box-sizing: border-box;
	width: 100% !important;
	max-width: 100% !important;
	display: block !important;
	padding: 12px 14px !important;
	border: 1px solid #d1d5db !important;
	border-radius: 10px !important;
	background: #ffffff !important;
	color: #1e293b !important;
}

.vop-app .frm_form_field .frm_checkbox input[type="checkbox"],
.vop-app .frm_form_field .frm_radio input[type="radio"] {
	width: auto !important;
	margin-right: 8px !important;
}

/* ---------------- Login Page ---------------- */
.vop-login-wrapper { background: var(--vop-bg); min-height: auto; display: flex; flex-direction: column; }
.vop-topbar { background: #38b6ff; color: #fff; padding: 16px 32px; }
.vop-topbar-inner { display: flex; align-items: center; gap: 12px; max-width: 1280px; margin: 0 auto; }
.vop-logo-text { font-size: 20px; font-weight: 800; letter-spacing: 0.5px; }
.vop-logo-img { height: 20px !important; }
.vop-topbar-divider { opacity: 0.4; }
.vop-topbar-tagline { font-size: 12px; letter-spacing: 1.5px; opacity: 0.85; text-transform: uppercase; }

.vop-login-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
   padding: 4% 5% 3%;
}
.vop-login-card {
	display: flex;
	width: 100%;
	max-width: 1280px;
	background: var(--vop-card-bg);
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 20px 50px rgba(11,47,92,0.12);
}
.vop-login-brand-panel {
	flex: 1;
	background: linear-gradient(160deg, var(--vop-primary), #123a70);
	color: #fff;
	padding: 56px 40px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
}
span.vop-logo-text img {
    width: 55%;
}
.vop-brand-shield { width: 100px; height: 100px; border: 2px solid rgba(255,255,255,0.4); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 24px; }
.vop-brand-shield .dashicons { font-size: 43px; width: auto; height: auto; }
.vop-login-brand-panel h1 {
    font-size: 35px;
    margin: 0 0 16px;
    line-height: 1.3;
    width: 260px;
    text-align: center;
}
.vop-brand-divider { width: 40px; height: 3px; background: #4d8fe0; margin-bottom: 20px; border-radius: 2px; }
.vop-login-brand-panel p { color: #ffffff; font-size: 15.5px; line-height: 1.6; max-width: 320px; }

/* Contact Support box in brand panel */
.vop-brand-support-box {
	margin-top: 32px;
	width: 100%;
	max-width: 440px;
	display: flex;
	flex-direction: column;
	align-items: center;
}
.vop-brand-support-box .vop-support-title,
.vop-login-wrapper .vop-support-title {
	font-size: 13.5px;
	text-transform: uppercase;
	letter-spacing: 2px;
	color: #ffffff !important;
	margin: 0px 0px !important;
	padding-bottom: 0px !important;
	padding-top: 0px !important;
	padding-left: 0px !important;
	padding-right: 0px !important;
	font-weight: 700;
	text-align: center;
	position: relative;
}
.vop-brand-support-box .vop-support-title::after,
.vop-support-title::after {
	display: none !important;
	content: none !important;
}
.vop-brand-support-box .vop-brand-divider {
	width: 40px;
	height: 3px;
	background: #4d8fe0;
	margin: 12px auto 20px auto;
	border-radius: 2px;
}
.vop-brand-support-box .vop-support-actions {
	display: flex;
	gap: 16px;
	justify-content: center;
	width: 100%;
}
.vop-brand-support-box .support-card {
	flex: 1 1 0;
	min-width: 155px;
	background: #ffffff;
	color: #0b2f5c;
	padding: 18px 14px;
	border-radius: 14px;
	text-decoration: none;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
}
.vop-brand-support-box .support-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
	color: #0284c7;
}
.vop-brand-support-box .support-card .dashicons {
	font-size: 24px;
	width: 24px;
	height: 24px;
	color: #0284c7;
	margin-bottom: 6px;
}
.vop-brand-support-box .support-card strong {
	font-size: 14px;
	font-weight: 700;
	color: #0f172a;
	margin-bottom: 3px;
}
.vop-brand-support-box .support-card small {
	font-size: 12px;
	color: #64748b;
	word-break: break-all;
}

.vop-login-form-panel { flex: 1; padding: 100px 48px; display: flex; flex-direction: column; justify-content: center; }
.vop-login-form-panel h2 {font-size: 35px;
    margin: 0 0 6px;
    font-weight: 600;
    color: #1a2d50; }
.vop-login-subtext { color: #1a2d50;
    margin: 0 0 24px;
    font-size: 16px;}
.vop-login-form label { display: block; font-weight: 600; font-size: 13.5px; margin-bottom: 6px; margin-top: 16px; }
.vop-login-form label:first-of-type { margin-top: 0; }
.vop-required { color: var(--vop-red); }
.vop-input-icon { position: relative; }
.vop-input-icon .dashicons { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #94a3b8; font-size: 18px; }
.vop-input-icon input {
    width: 100% !important;
    padding: 12px 14px 12px 40px !important;
    border: 1px solid var(--vop-border) !important;
    border-radius: 10px !important;
    font-size: 14.5px;
    background: #fbfcfe;
}
.vop-input-icon input:focus { outline: none; border-color: var(--vop-accent); background: #fff; }

/* Password visibility toggle */
.vop-password-wrapper input {
	padding-right: 45px !important;
}
.vop-toggle-password {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	cursor: pointer;
	padding: 4px;
	color: #94a3b8;
	display: flex;
	align-items: center;
	justify-content: center;
}
.vop-toggle-password:hover {
	color: var(--vop-primary);
}
.vop-toggle-password .dashicons {
	position: static;
	transform: none;
	font-size: 20px;
}

.vop-field-hint { color: #1a2d50; font-size: 13.5px; margin: 6px 0 0; }
.vop-remember { display: flex; align-items: center; gap: 8px; font-weight: 400; font-size: 13.5px; margin-top: 16px; }
.vop-remember input { width: auto; }

.vop-btn-continue {
    width: 100% !important;
    margin-top: 24px;
    background: #1a2d50 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 20px 20px !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.15s !important;
}
.vop-btn-continue:hover { background: #1c9ce6; }

.vop-or-divider { text-align: center; margin: 20px 0; position: relative; color: #94a3b8; font-size: 12.5px; }
.vop-or-divider::before, .vop-or-divider::after { content: ''; display: inline-block; width: 40%; height: 1px; background: var(--vop-border); vertical-align: middle; margin: 0 8px; }

.vop-help-link { display: flex; align-items: center; justify-content: center; gap: 6px; color: #1a2d50; text-decoration: none; font-size: 16px; font-weight: 500; }
button#vopResendBtn:hover {
    background-color: transparent;
    color: #1a2d50 !important;
}
.vop-security-note { margin-top: 24px; color: #1a2d50; font-size: 14px; display: flex; align-items: center; gap: 6px; }

.vop-alert { padding: 12px 14px; border-radius: 8px; font-size: 13.5px; margin-bottom: 16px; }
.vop-alert-error { background: var(--vop-red-bg); color: var(--vop-red); }
.vop-alert-success { background: var(--vop-green-bg); color: var(--vop-green); }
.vop-alert-warning { background: #fff8e6; color: #b45309; border: 1px solid #f0c36d; }

/* Import result summary */
.vop-import-result { line-height: 1.7; }
.vop-import-result .vop-import-counts { display: inline-block; margin-top: 6px; }
.vop-import-failures { margin-bottom: 16px; }
.vop-import-failures h3 { margin-top: 0; }

.vop-login-footer {
	background: #fff;
	border-top: 1px solid var(--vop-border);
	padding: 16px 32px;
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
	color: var(--vop-muted);
	font-size: 13px;
}
.vop-login-footer a { color: var(--vop-accent); text-decoration: none; }

@media (max-width: 720px) {
	.vop-login-card { flex-direction: column; }
	.vop-login-brand-panel { padding: 36px 24px; }
	.vop-login-form-panel { padding: 36px 24px; }
}


/* ---------------- OTP Page ---------------- */
.vop-otp-card .vop-login-brand-panel { }
.vop-otp-input-group { display: flex; gap: 10px; margin-top: 4px; }
.vop-otp-digit {
	width: 48px;
	height: 56px;
	text-align: center;
	font-size: 22px;
	font-weight: 700;
	border: 1px solid var(--vop-border);
	border-radius: 10px;
	background: #fbfcfe;
}
.vop-otp-digit:focus { outline: none; border-color: var(--vop-accent); background: #fff; }
.vop-resend-btn {
      background: none;
    border: none !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 25px auto 6px !important;
    display: flex !important;
    color: #1a2d50 !important;
    padding-bottom: 19px !important;
    font-weight: 500;
}
.vop-resend-btn:hover {
    background: none;
    color: #38b6ff !important;
}
.vop-resend-btn:disabled { opacity: 0.5; cursor: not-allowed; }
#vopResendForm { text-align: center; }

@media (max-width: 480px) {
	.vop-otp-digit { width: 40px; height: 48px; font-size: 18px; }
	.vop-otp-input-group { gap: 6px; }
}

/* ---------------- Simple Dashboard ---------------- */
.vop-app-simple { flex-direction: column; min-height: 100vh; }
.vop-simple-topbar { padding: 0; }
.vop-topbar-inner-simple {
	display: flex;
	align-items: center;
	gap: 12px;
	max-width: 1100px;
	margin: 0 auto;
	padding: 14px 24px;
	width: 100%;
}
.vop-topbar {
    background: #38b6ff !important;
    color: #fff !important;
    padding: 25px 32px !important;
}
.vop-topbar-inner-simple .vop-topbar-right { margin-left: auto; }

.vop-simple-content { max-width: 1100px; margin: 0 auto; width: 100%; padding: 28px 24px; box-sizing: border-box; }

.vop-welcome-banner { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.vop-welcome-banner h2 { margin: 0 0 4px; font-size: 22px; color: var(--vop-primary); }
.vop-muted { color: var(--vop-muted); margin: 0; }
.vop-muted {
    color: #1a2d50;
    margin: 0;
    font-weight: 300;
    line-height: 30px;
    font-size: 16px;
}

.vop-access-code-badge { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--vop-border); border-radius: 12px; padding: 10px 18px; }
.vop-access-code-badge .dashicons { color: var(--vop-accent); font-size: 26px; width: 26px; height: 26px; }
.vop-access-code-badge strong { font-size: 20px; color: var(--vop-primary); }

.vop-card { background: #fff; border: 1px solid var(--vop-border); border-radius: 14px; padding: 20px; margin-bottom: 16px; }
.vop-card h3 {
    color: #1a2d50;
    margin: 0 0 15px;
    font-size: 20px;
}

.vop-profile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.vop-profile-grid strong { display: block; font-size: 14.5px; margin-top: 2px; }

.vop-quicklinks { display: flex; flex-direction: column; gap: 10px; }
.vop-quick-action {
	display: flex; align-items: center; gap: 12px;
	background: var(--vop-bg); border: 1px solid var(--vop-border); border-radius: 10px;
	padding: 12px 14px; text-decoration: none; color: var(--vop-text); font-size: 13.5px;
}
.vop-icon-blue-solid { color: #38b6ff; font-size: 20px !important; }
.vop-icon-green-solid { color: var(--vop-green); font-size: 20px; }
.vop-icon-amber-solid { color: var(--vop-amber); font-size: 20px; }

/* Shared user-menu (also used in simple dashboard header) */
.vop-topbar-right { display: flex; align-items: center; gap: 18px; }
.vop-user-menu { display: flex; align-items: center; gap: 8px; position: relative; cursor: pointer; }
.vop-user-avatar { width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--vop-primary); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.vop-user-info { display: flex; flex-direction: column; line-height: 1.3; }
.vop-user-name { font-size: 13.5px; font-weight: 600; color: #fff; }
.vop-user-role { font-size: 11.5px; color: rgba(255,255,255,0.7); }
.vop-user-caret { color: rgba(255,255,255,0.7); }
.vop-user-dropdown { display: none; position: absolute; right: 0; top: 46px; background: #fff; border: 1px solid var(--vop-border); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,0.12); min-width: 140px; z-index: 30; }
.vop-user-menu.open .vop-user-dropdown { display: block; }
.vop-user-dropdown a { display: flex; align-items: center; gap: 8px; padding: 10px 14px; color: var(--vop-text); text-decoration: none; font-size: 13.5px; }
.vop-user-dropdown a:hover { background: var(--vop-bg); }

.vop-simple-topbar.vop-topbar { background: var(--vop-primary); }

@media (max-width: 640px) {
	.vop-profile-grid { grid-template-columns: 1fr 1fr; }
	.vop-user-info { display: none; }
	.vop-welcome-banner { flex-direction: column; align-items: flex-start; }
}

/* ---------------- Admin Dashboard (added) ---------------- */
.vop-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.vop-stat-card { background: #fff; border: 1px solid var(--vop-border); border-radius: 14px; padding: 18px; display: flex; align-items: center; gap: 14px; }
.vop-stat-icon { width: 65px; height: 65px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.vop-stat-icon .dashicons { font-size: 32px; height:auto !important; width:auto !important; }
.vop-icon-blue { background: #e2ecfb; color: #38b6ff; }
.vop-icon-green { background: var(--vop-green-bg); color: var(--vop-green); }
.vop-icon-amber { background: var(--vop-amber-bg); color: var(--vop-amber); }
.vop-icon-purple { background: var(--vop-purple-bg); color: var(--vop-purple); }
.vop-stat-label {
    display: block;
    font-size: 16px;
    color: #1a2d50;
	font-weight: 400;
}
.vop-stat-value { display: block; font-size: 24px; font-weight: 700;  line-height: 30px;}

.vop-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }

.vop-activity-list { list-style: none; margin: 0; padding: 0; }
.vop-activity-list li {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding: 12px 14px;
	margin-bottom: 10px;
	background: #f8fafc;
	border: 1px solid #eef2f7;
	border-radius: 10px;
	transition: box-shadow 0.15s ease;
}
.vop-activity-list li:hover { box-shadow: 0 3px 12px rgba(16, 24, 40, 0.07); }
.vop-activity-list li:last-child { margin-bottom: 0; }
.vop-activity-list li.vop-muted { background: transparent; border: 1px dashed #cbd5e1; justify-content: center; }
.vop-activity-icon {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: rgba(26, 86, 196, 0.1);
	color: var(--vop-primary, #1a56c4);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.vop-activity-icon .dashicons { font-size: 16px; width: 16px; height: 16px; margin: 0; color: inherit; }
.vop-activity-desc { display: block; font-size: 14px; font-weight: 500; color: #1e293b; line-height: 1.5; }
.vop-activity-time { display: inline-block; margin-top: 3px; font-size: 12px; color: #64748b; }

.vop-card-header-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; flex-wrap: wrap; gap: 10px; }
.vop-card-header-row h3 { margin: 0; }
.vop-tab-link { color: var(--vop-accent); text-decoration: none; font-size: 15px; font-weight: 400; }

.vop-users-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
/* .vop-users-table th { text-align: left; padding: 10px 12px; color: #1a2d50; font-weight: 600; font-size: 16px; border-bottom: 1px solid var(--vop-border); } */
/* .vop-users-table td { padding: 12px; border-bottom: 1px solid var(--vop-border); } */
/* .vop-users-table tr:last-child td { border-bottom: none; } */

/* Responsive horizontal scroll for the User Management table: when the
   viewport is narrower than the table, the container — not the page —
   scrolls. Vertical growth stays natural (no fixed height).
   Both the wrapper div (templates/partials/users-table.php) and the
   legacy containers (#vopUsersTableWrap / Recent Users card) scroll, so
   the fix holds even if only one of the two layers is deployed. */
#vopUsersTableWrap,
.vop-users-table-wrapper,
.vop-recent-users-card {
	overflow-x: auto;
	overflow-y: visible;
	-webkit-overflow-scrolling: touch;
	width: 100%;
	max-width: 100%;
	min-width: 0;
}
#vopUsersTableWrap .vop-users-table,
.vop-users-table-wrapper .vop-users-table,
.vop-recent-users-card .vop-users-table { min-width: 1100px; }
/* The table always starts flush at the container's left edge — no shift,
   negative margin, float or transform that could clip the first column. */
#vopUsersTableWrap .vop-users-table,
.vop-users-table-wrapper .vop-users-table {
	margin: 0;
	float: none;
	position: static;
	transform: none;
}
/* Keep the Actions column usable: room for the icon buttons on one line. */
#vopUsersTableWrap .vop-users-table th:last-child,
#vopUsersTableWrap .vop-users-table td:last-child,
.vop-users-table-wrapper .vop-users-table th:last-child,
.vop-users-table-wrapper .vop-users-table td:last-child {
	min-width: 120px;
	white-space: nowrap;
}

.vop-badge { padding: 5px 15px; border-radius: 6px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.vop-badge-green { background: var(--vop-green-bg); color: var(--vop-green); }
.vop-badge-red { background: var(--vop-red-bg); color: var(--vop-red); }

/* Status dot inside badges: ● Active / ● Inactive */
.vop-badge-green::before,
.vop-badge-red::before {
	content: "\25CF";
	margin-right: 6px;
	font-size: 10px;
	vertical-align: 1px;
}

/* Inactive rows are visually distinct from active ones. */
.vop-users-table tr.vop-user-row-inactive td {
	background: rgba(220, 38, 38, 0.04);
	color: #6b7280;
}
.vop-users-table tr.vop-user-row-inactive td:first-child {
	box-shadow: inset 3px 0 0 var(--vop-red);
}

/* Toggle action button reflects the CURRENT state and offered action:
   Active user → pause (deactivate) icon, Inactive user → play (activate). */
.vop-toggle-status .dashicons { transition: color 0.15s ease; }
.vop-toggle-active .dashicons-controls-pause { color: var(--vop-green); }
.vop-toggle-inactive .dashicons-controls-play { color: var(--vop-red); }
.vop-toggle-status:hover { background: rgba(26, 45, 80, 0.08); }

@media (max-width: 1024px) {
	.vop-stat-grid { grid-template-columns: 1fr 1fr; }
	.vop-grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.vop-stat-grid { grid-template-columns: 1fr; }
	/* Tables without a dedicated scroll wrapper keep the legacy behaviour;
	   the users table scrolls via .vop-users-table-wrapper instead. */
	:not(.vop-users-table-wrapper) > .vop-users-table { display: block; overflow-x: auto; white-space: nowrap; }
}

/* ---------------- Sidebar Dashboard Shell (added) ---------------- */
.vop-app { display: flex; min-height: 100vh; background: var(--vop-bg); }

.vop-sidebar {
	width: 250px;
	background: #1a2d50;
	color: #fff;
	display: flex;
	flex-direction: column;
	position: sticky;
	top: 0;
/* 	height: 100vh; */
	flex-shrink: 0;
	transition: margin-left 0.2s;
}
.vop-sidebar-brand { padding: 22px 20px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.vop-sidebar-logo { display: block; font-size: 20px; font-weight: 800; letter-spacing: 0.5px; }
.vop-sidebar-logo-img { display: block; max-height: 32px; max-width: 100%; }
.vop-sidebar-tagline { display: block; font-size: 10.5px; letter-spacing: 1.5px; opacity: 0.7; text-transform: uppercase; margin-top: 2px; }

.vop-sidebar-nav { flex: 1; padding: 14px 10px; overflow-y: auto; }
.vop-nav-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border-radius: 8px;
	color: #ffffff;
	text-decoration: none;
	font-size: 17px;
	margin-bottom: 8px;
	cursor: pointer;
	background: none;
	border: none;
	width: 100%;
	font-weight:400;
	text-align: left;
}
.vop-nav-item .dashicons { font-size: 28px; width: 25px; height: 35px; }
.vop-nav-item:hover { background: rgba(255,255,255,0.12); color: #fff; }
a.vop-nav-item:focus { color: #fff !important; background: rgba(255, 255, 255, 0.12) !important;
}
.vop-nav-item.active { background: #3aabef; color: #fff; }

.vop-sidebar-footer { padding: 14px; border-top: 1px solid rgba(255,255,255,0.1); }
.vop-help-box { display: flex; gap: 10px; background: rgba(255,255,255,0.06); border-radius: 10px; padding: 12px; font-size: 12.5px; margin-bottom: 8px; }
.vop-help-box a { color: #fff; font-weight: 600; }
.vop-help-box div a:hover { color: #38b6ff;}
.vop-logout-link { color: #ffffff; }

/* Sidebar-shell topbar */
.vop-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.vop-dash-topbar {
	background: #fff;
	border-bottom: 1px solid var(--vop-border);
	padding: 14px 24px;
	display: flex;
	align-items: center;
	gap: 16px;
	position: sticky;
	top: 0;
	z-index: 20;
}
.vop-sidebar-toggle { display: none; background: none; border: none; cursor: pointer; font-size: 20px; }
.vop-page-title {
    font-size: 25px;
    margin: 0;
    flex: 1;
    font-weight: 600;
    color: #1a2d50;
}
.vop-bell-btn {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: #1a2d50 !important;
    padding: 6px 6px;
    border: 1px solid #1a2d50;
    border-radius: 50px;
    line-height: 0;
}
button.vop-bell-btn:hover {
    background: #1a2d50 !important;
	color: #ffffff !important;
}
.vop-bell-badge { position: absolute; top: -4px; right: -6px; background: var(--vop-red); color: #fff; font-size: 10px; border-radius: 50%; width: 16px; height: 16px; display: flex; align-items: center; justify-content: center; }

.vop-user-avatar-dark { width: 34px; height: 34px; border-radius: 50%; background: #1a2d50 !important; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.vop-user-info-dark { display: flex; flex-direction: column; line-height: 1.3; }
.vop-user-name-dark { font-size: 16px; font-weight: 600; color: var(--vop-text); }
.vop-user-role-dark {
    font-size: 14px;
    color: #1a2d50;
}
.vop-user-caret-dark { color: var(--vop-muted); }

/* Content + tabs */
.vop-content { padding: 24px; }
.vop-tab-panel { display: none; }
.vop-tab-panel.active { display: block; }

.vop-welcome-row, .vop-welcome-banner { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; flex-wrap: wrap; gap: 12px; }
.vop-welcome-row h2, .vop-welcome-banner h2 {
    margin: 0 0 4px;
    font-size: 50px;
    font-weight: 700;
    line-height: 55px;
    color: #1a2d50;
}

.vop-grid-3 { display: grid; grid-template-columns: 1.1fr 1.1fr 1fr; gap: 16px; margin-bottom: 20px; }
.vop-grid-main-side { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
/* Let grid children shrink below their content width so wide tables scroll
   inside their wrapper instead of blowing out the column / page. */
.vop-grid-main-side > *, .vop-grid-3 > *, .vop-grid-2 > * { min-width: 0; }
.vop-recent-users-card { margin-top: 4px; }

/* Donut (CSS conic-gradient, no JS dependency) */
.vop-donut-wrap { display: flex; align-items: center; gap: 20px; }
.vop-donut {
	width: 200px;
	height: 200px;
	border-radius: 50%;
	position: relative;
	flex-shrink: 0;
}
.vop-donut-hole {
	position: absolute;
	inset: 26px;
	background: #fff;
	border-radius: 50%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
}
.vop-quick-action:hover {
    background-color: #1a2d50 !important;
/*      border: 1px transparent !important;  */
    color: #ffffff !important;
/*     transform: translateY(-2px); */
    transition: 0.3s;
}
.vop-quick-action span{
	font-size:16px !important;
	text-align:left !important;
}
.vop-donut-hole strong { font-size: 35px; line-height: 1.1; }
.vop-donut-hole span {
    font-size: 16px;
    color: #1a2d50;
}
.vop-legend { list-style: none; margin: 0; padding: 0; flex: 1; }
.vop-legend li {
      display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    margin-bottom: 15px;
    color: #1a2d50;
    background: #e8f8ee;
    padding: 5px 15px;
    border-radius: 28px;
    font-weight: 400;
}
.vop-legend strong { margin-left: auto; color: #1a2d50; font-weight: 400;}
.vop-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.vop-dot-blue { background: #38b6ff; }
.vop-dot-purple { background: #7c3aed; }
.vop-dot-green { background: var(--vop-green); }
.vop-dot-amber { background: var(--vop-amber); }
.vop-view-link { display: inline-block; margin-top: 25px; }

/* Quick actions (sidebar-shell versions reuse .vop-quick-action from Simple Dashboard section above) */
.vop-quick-actions { display: flex; flex-direction: column; gap: 10px; }
.vop-quick-action .dashicons:last-child { margin-left: auto; color: #b8c1cf; }

/* Resource tiles */
.vop-resource-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 14px;
	align-items: stretch;
}
.vop-resource-tile,
button.vop-resource-tile.vop-resource-tile-btn,
a.vop-resource-tile {
	background: var(--vop-bg);
	border: 1px solid var(--vop-border);
	border-radius: 12px;
	padding: 20px;
	text-align: left;
	font-family: inherit;
	cursor: pointer;
	width: 100%;
	display: flex !important;
	flex-direction: column !important;
	align-items: flex-start !important;
	height: 100% !important;
	box-sizing: border-box !important;
}
.vop-resource-tile .vop-resource-cta,
.vop-resource-tile .vop-tab-link,
.vop-resource-tile > span:last-child {
	margin-top: auto !important;
	display: inline-flex !important;
	align-items: center !important;
	gap: 4px;
}
.vop-resource-tile-btn.active { border-color: var(--vop-accent); box-shadow: 0 0 0 3px rgba(56, 182, 255, 0.15); }
.vop-resource-tile-btn.active .dashicons-arrow-down-alt2 { transform: rotate(180deg); }
.vop-resource-tile .dashicons-arrow-down-alt2 { transition: transform 0.15s ease; font-size: 14px; vertical-align: middle; }
.vop-resource-doclist { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--vop-border); }
.vop-doclist-links { list-style: none; margin: 0; padding: 0; }
.vop-doclist-links li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--vop-border); }
.vop-doclist-links li:last-child { border-bottom: none; }
.vop-resource-tile .dashicons { font-size: 24px; color: var(--vop-accent); margin-bottom: 8px; }
.vop-resource-tile strong { display: block; margin-bottom: 4px; font-size: 14.5px; }
.vop-resource-tile p,
.vop-resource-grid p {
	font-size: 13px !important;
	font-weight: 400 !important;
	color: #64748b !important;
	line-height: 1.5 !important;
	margin: 0 0 14px 0 !important;
}

.vop-announcement { padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--vop-border); }
.vop-announcement:last-child { border-bottom: none; margin-bottom: 0; }

/* Table toolbar + row actions */
.vop-table-toolbar { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.vop-table-toolbar input[type="text"] { flex: 1; min-width: 200px; padding: 9px 12px; border: 1px solid var(--vop-border); border-radius: 8px; font-size: 13.5px; }
.vop-table-toolbar select { padding: 9px 12px; border: 1px solid var(--vop-border); border-radius: 8px; font-size: 13.5px; max-width: 100%; }

.vop-row-actions { display: flex; gap: 6px; }
.vop-icon-btn { background: var(--vop-bg); border: 1px solid var(--vop-border); border-radius: 6px; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--vop-muted); }
.vop-icon-btn:hover { background: #eef1f6; }
.vop-icon-btn .dashicons { font-size: 15px; }

.vop-table-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; font-size: 12.5px; }
.vop-pagination { display: flex; gap: 4px; }
.vop-pagination button {
    border: 1px solid var(--vop-border);
    background: #fff;
    width: auto;
    height: auto;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12.5px;
	color:#1a2d50 !important;
}
.vop-pagination button:hover {
background: #1a2d50; color: #fff !important; 
}
.vop-pagination button:focus{
	background: #1a2d50;
	color: #fff !important;
}
.vop-pagination button.active { background: #1a2d50; color: #fff !important; border-color: var(--vop-accent); }

/* Buttons (sidebar-shell) */
.vop-btn-primary, .vop-btn-secondary {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 10px 16px; border-radius: 9px; font-size: 16px; font-weight: 600;
	cursor: pointer; text-decoration: none; border: none;
}
.vop-btn-primary { background: #1a2d50 !important; color: #fff !important; border:none !important; outline:none !important; border-radius:10px !important;padding:1em 2em !important;font-weight:600 !important;}
.vop-btn-primary:hover { background: #1c9ce6 !important; color: #fff !important; }
.vop-btn-secondary { background: #fff; border: 1px solid var(--vop-border); color: var(--vop-text); }
.vop-header-actions { display: flex; gap: 10px; }

/* Modal */
.vop-modal-overlay {
	position: fixed !important;
	inset: 0 !important;
	top: 0 !important;
	left: 0 !important;
	width: 100vw !important;
	height: 100vh !important;
	background: rgba(15, 23, 42, 0.55);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 999999 !important;
	padding: 20px;
	box-sizing: border-box;
	opacity: 0;
	transition: opacity 0.25s ease;
	pointer-events: none;
}
.vop-modal-overlay.open {
	display: flex !important;
	opacity: 1 !important;
	pointer-events: auto !important;
}
.vop-modal {
	background: #fff;
	border-radius: 16px;
	width: min(650px, 100%);
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	position: relative;
	margin: auto;
}
.vop-modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 30px 30px 11px 30px;
	border-bottom: 1px solid var(--vop-border);
}
.vop-modal-header h2,
.vop-modal-header h3 {
	margin: 0;
	font-size: 18px;
}
.vop-modal-close {
	background: none;
	border: none;
	font-size: 22px;
	cursor: pointer;
	color: var(--vop-muted);
	padding: 0;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color 0.15s ease;
}
.vop-modal-close:hover {
	color: var(--vop-text);
}
.vop-modal-body {
	padding: 21px 30px;
}
.vop-modal-body label {
	display: block;
	font-weight: 600;
	font-size: 13px;
	margin: 14px 0 6px;
	color: #15223d;
}
.vop-modal-body label:first-child {
	margin-top: 0;
}
.vop-modal-body input,
.vop-modal-body select {
	width: 100%;
	padding: 0px 15px;
	border: 1px solid #acb6c7 !important;
	border-radius: 8px !important;
	font-size: 15px;
	height: 45px;
	color: #15223d;
	box-sizing: border-box;
}
.vop-modal-footer {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	padding: 16px 22px;
	border-top: 1px solid #acb6c7;
}
.vop-form-error {
	background: var(--vop-red-bg);
	color: var(--vop-red);
	padding: 10px;
	border-radius: 8px;
	font-size: 13px;
	margin-bottom: 12px;
}
.vop-form-row {
	margin-bottom: 12px;
}
.vop-form-actions {
	display: flex;
	gap: 10px;
	justify-content: flex-end;
	margin-top: 20px;
}

/* Modal form grid — 2 columns for desktop, 1 for mobile */
.vop-modal-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-bottom: 16px;
}

.vop-form-field {
	display: flex;
	flex-direction: column;
}

.vop-form-field label {
	font-weight: 600;
	font-size: 13px;
	margin-bottom: 6px;
	color: #15223d;
}

.vop-form-field input,
.vop-form-field select {
	padding: 10px 12px;
	border: 1px solid #acb6c7 !important;
	border-radius: 8px !important;
	font-size: 13.5px;
	box-sizing: border-box;
}

.vop-field-hint {
	font-size: 12px;
	color: #666;
	margin-top: 4px;
}

.vop-form-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 8px 0;
	border-bottom: 1px solid var(--vop-border);
	margin-bottom: 8px;
}

.vop-form-row:last-of-type {
	border-bottom: none;
}

.vop-form-row label {
	font-weight: 600;
	color: #15223d;
	margin: 0;
}

.vop-form-row span {
	color: #666;
}

.vop-form-error {
	background: var(--vop-red-bg);
	color: var(--vop-red);
	padding: 10px;
	border-radius: 8px;
	font-size: 13px;
	margin-bottom: 12px;
}

/* Responsive modal grid */
@media (max-width: 640px) {
	.vop-modal-grid {
		grid-template-columns: 1fr;
	}
}

/* Responsive (sidebar shell) */
@media (max-width: 1024px) {
	.vop-grid-3, .vop-grid-main-side, .vop-resource-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
	.vop-sidebar { position: fixed; left: -260px; z-index: 50; box-shadow: 4px 0 20px rgba(0,0,0,0.15); }
	.vop-sidebar.open { left: 0; }
	.vop-sidebar-toggle { display: block; }
	.vop-grid-3, .vop-grid-2, .vop-grid-main-side, .vop-resource-grid, .vop-stat-grid { grid-template-columns: 1fr; }
	.vop-user-info-dark { display: none; }
	.vop-table-toolbar input, .vop-table-toolbar select { width: 100%; }
}

/* ---------------- Document Upload Form (added) ---------------- */
.vop-upload-card { margin-bottom: 20px; }
.vop-upload-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 14px; }
.vop-upload-form label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 6px; }
.vop-upload-form input[type="text"],
.vop-upload-form input[type="file"],
.vop-upload-form select {
	width: 100%;
	padding: 15px 12px;
	border:1px solid #1a2d50;
	border-radius: 8px;
	font-size: 13.5px;
	background: #fbfcfe;
	box-sizing: border-box;
}
@media (max-width: 640px) {
	.vop-upload-row { grid-template-columns: 1fr; }
}

/* ---------------- Spacing & icon polish to match screenshots (added) ---------------- */
.vop-content { padding: 28px; }
.vop-card { padding: 22px; margin-bottom: 18px; }
.vop-stat-grid { gap: 18px; margin-bottom: 22px; }
.vop-grid-3, .vop-grid-2 { gap: 18px; }
.vop-grid-main-side { gap: 18px; }

/* Give resource tiles the same soft colored icon-box treatment as stat cards / quick actions */
.vop-resource-tile { display: flex; flex-direction: column; align-items: flex-start; }
.vop-resource-icon-box {
	width: 37px;
	height: 37px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 12px;
}
.vop-resource-icon-box .dashicons { font-size: 20px; margin: 0; color: inherit; }
.vop-resource-tile strong { font-size: 14.5px; }
.vop-resource-tile p { margin-bottom: 10px; }

.vop-stat-card { gap: 16px; }
.vop-quick-action { padding: 13px 14px;   box-shadow: 5px 6px 0 #1a2d5024 !important; }

/* ---------------- General UI polish pass (added) ---------------- */

/* Softer depth on cards + stat cards */
.vop-card, .vop-stat-card, .vop-access-code-badge {
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
	transition: box-shadow 0.15s ease;
}
.vop-stat-card:hover { box-shadow: 0 4px 12px rgba(16, 24, 40, 0.07); }

/* Nav items: smoother active/hover transitions */
.vop-nav-item { transition: background 0.15s ease, color 0.15s ease; }

/* Buttons: consistent transitions + subtle press state */
.vop-btn-primary, .vop-btn-secondary, .vop-btn-continue, .vop-btn-logout {
	transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
}
.vop-btn-primary:active, .vop-btn-continue:active { transform: translateY(1px); }
.vop-btn-secondary:hover { background: var(--vop-bg); }

/* Quick actions + resource tiles: gentle hover lift */
.vop-quick-action, .vop-resource-tile {
	transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.vop-quick-action:hover, .vop-resource-tile:hover {
/* 	transform: translateY(-2px); */
	box-shadow: 0 6px 16px rgba(16, 24, 40, 0.08);
	border-color: var(--vop-accent);
/* 	    border: 1px transparent !important; */
}

/* Table row hover for readability */
.vop-users-table tbody tr { transition: background 0.1s ease; }
.vop-users-table tbody tr:hover { background: var(--vop-bg); }

/* Icon buttons: smoother hover */
.vop-icon-btn { transition: background 0.15s ease, color 0.15s ease; }
.vop-icon-btn:hover { color: var(--vop-accent); }
.vop-icon-btn.vop-delete-user:hover, .vop-icon-btn.vop-delete-document:hover { color: var(--vop-red); }

/* Sidebar active state gets a touch more visual weight */
.vop-nav-item.active { box-shadow: inset 3px 0 0 rgba(255,255,255,0.5); }

/* Modal: soften entrance */
.vop-modal { box-shadow: 0 20px 60px rgba(11,47,92,0.25); }

/* Focus states for accessibility + polish, using the accent color */
.vop-btn-primary:focus-visible, .vop-btn-secondary:focus-visible, .vop-btn-continue:focus-visible,
.vop-nav-item:focus-visible, .vop-icon-btn:focus-visible {
	outline: 2px solid var(--vop-accent);
	outline-offset: 2px;
}

/* Consistent input focus ring across upload/table-toolbar/modal fields */
.vop-table-toolbar input:focus, .vop-table-toolbar select:focus,
.vop-modal-body input:focus, .vop-modal-body select:focus,
.vop-upload-form input:focus, .vop-upload-form select:focus {
	outline: none;
	border-color: var(--vop-accent);
	box-shadow: 0 0 0 3px rgba(56, 182, 255, 0.15);
}

/* Badges get a touch more presence */
.vop-badge { letter-spacing: 0.2px; }

/* Scrollbar polish inside sidebar nav (Webkit) */
.vop-sidebar-nav::-webkit-scrollbar { width: 6px; }
.vop-sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 3px; }

/* ---------------- Date Range Selector (added) ---------------- */
.vop-date-range {
	display: flex;
	align-items: center;
	gap: 8px;
	background: #fff;
	border: 1px solid var(--vop-border);
	border-radius: 10px;
	padding: 8px 14px;
	font-size: 13.5px;
	color: var(--vop-text);
}
.vop-date-range .dashicons { font-size: 21px; color: var(--vop-muted); }
.vop-date-range select {
	border: none;
	background: none;
	font-size: 13.5px;
	color: var(--vop-text);
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	padding-right: 4px;
}
.vop-date-range select:focus { outline: none; }

/* ---------------- Glassmorphism + shadows (added) ---------------- */
.vop-app {
	background: linear-gradient(135deg, #eaf6ff 0%, #f4f6f9 45%, #eef2fb 100%);
	background-attachment: fixed;
}

.vop-card, .vop-stat-card, .vop-access-code-badge, .vop-modal, .vop-donut-hole {
/* 	background: rgba(255, 255, 255, 0.68); */
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border: 1px solid rgba(255, 255, 255, 0.6);
	box-shadow: 0 4px 18px rgba(16, 24, 40, 0.06);
}
.vop-stat-card:hover { box-shadow: 0 8px 24px rgba(16, 24, 40, 0.1); }

.vop-sidebar {
	box-shadow: 4px 0 24px rgba(11, 47, 92, 0.15);
}

.vop-dash-topbar {
	background: rgba(255, 255, 255, 0.75);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

/* Fallback for browsers without backdrop-filter support */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	.vop-card, .vop-stat-card, .vop-access-code-badge, .vop-modal, .vop-donut-hole, .vop-dash-topbar {
		background: #ffffff;
	}
}

/* ---------------- Extra responsive polish (added) ---------------- */
@media (max-width: 900px) {
	.vop-grid-3 { grid-template-columns: 1fr 1fr; }
	.vop-grid-main-side { grid-template-columns: 1fr; }
	.vop-grid-3 {
		display: block  !important;
	}
	button#vopSidebarToggle {
		line-height: 0px !important;
	}
	button#vopSidebarToggle span {
		color: #1a2d50 !important;
		font-size: 24px;
	}
	button.vop-btn-primary {
		margin-top: 20px;
	}
	.vop-grid-3, .vop-grid-2, .vop-grid-main-side, .vop-resource-grid, .vop-stat-grid {
		grid-template-columns: 1fr;
		display: block;
	}

	.vop-resource-tile {
		margin-bottom: 15px;
	}
	.vop-stat-card{
		margin-bottom: 15px;
	}
}
@media (max-width: 768px) {
	.vop-content { padding: 18px; }
	.vop-welcome-row, .vop-welcome-banner { flex-direction: column; align-items: flex-start; }
	.vop-date-range { width: 100%; justify-content: space-between; }
	.vop-card-header-row { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
	.vop-login-brand-panel h1 { font-size: 26px; width: auto; }
	.vop-login-form-panel { padding: 28px 20px; }
	.vop-donut-wrap { flex-direction: column; }
	.vop-legend { width: 100%; }
}

table.vop-users-table tr th {
    text-align: left !important;
    font-size: 16px;
    font-weight: 500;
    color: #1a2d50;
}
.vop-quick-action:focus {
    background-color: #1a2d50 !important;
    /* border: 1px transparent !important; */
    color: #ffffff !important;
    /* transform: translateY(-2px); */
    transition: 0.3s;
}
/* ---------------- 2-second sidebar loader (redesigned) ---------------- */
.vop-loader-overlay {
	position: fixed;
	inset: 0;
	background: rgba(11, 30, 50, 0.35);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 99999;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}
.vop-loader-overlay.active {
	opacity: 1;
	visibility: visible;
	pointer-events: all;
	transition: opacity 0.25s ease, visibility 0s linear 0s;
}
.vop-loader-card {
	background: #fff;
	border-radius: 16px;
	padding: 28px 36px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	box-shadow: 0 20px 50px rgba(11, 47, 92, 0.25);
	transform: translateY(8px);
	transition: transform 0.25s ease;
}
.vop-loader-overlay.active .vop-loader-card { transform: translateY(0); }
.vop-loader-spinner {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 4px solid rgba(56, 182, 255, 0.18);
	border-top-color: #38b6ff;
	animation: vop-spin 0.7s linear infinite;
}
.vop-loader-text {
	font-size: 13.5px;
	font-weight: 600;
	color: var(--vop-text, #1e293b);
}
@keyframes vop-spin {
	to { transform: rotate(360deg); }
}

/* ---------------- Recent Users table color scheme polish (added) ---------------- */
.vop-recent-users-card .vop-users-table,
#tab-users .vop-users-table {
	border-radius: 10px;
}
.vop-recent-users-card .vop-users-table thead th,
#tab-users .vop-users-table thead th {
	background: linear-gradient(180deg, #eef7ff, #e4f2ff);
	color: #2563a8;
	font-weight: 700;
	border-bottom: 2px solid rgba(56,182,255,0.25);
}
.vop-recent-users-card .vop-users-table tbody tr:nth-child(even),
#tab-users .vop-users-table tbody tr:nth-child(even) {
	background: #f8fbff;
}
.vop-recent-users-card .vop-users-table tbody tr:hover,
#tab-users .vop-users-table tbody tr:hover {
	background: #eaf6ff;
}
.vop-recent-users-card .vop-users-table td:first-child,
#tab-users .vop-users-table td:first-child {
	font-weight: 600;
	color: var(--vop-primary, #0b2f5c);
	border-left: 3px solid transparent;
}
.vop-recent-users-card .vop-users-table tbody tr:hover td:first-child,
#tab-users .vop-users-table tbody tr:hover td:first-child {
	border-left: 3px solid #38b6ff;
}

/* ---------------------------------- */


.vop-resource-tile,
button.vop-resource-tile.vop-resource-tile-btn,
a.vop-resource-tile {
	display: flex !important;
	flex-direction: column !important;
	align-items: flex-start !important;
	height: 100% !important;
	border: 1px solid #1a2d5030 !important;
	border-radius: 10px !important;
	padding: 21px !important;
	box-shadow: 5px 6px 0 #1a2d5024 !important;
	background: var(--vop-bg, #ffffff) !important;
	text-decoration: none !important;
	color: inherit !important;
	box-sizing: border-box !important;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease !important;
}
.vop-resource-tile:hover,
button.vop-resource-tile:hover,
a.vop-resource-tile:hover,
button.vop-resource-tile.vop-resource-tile-btn:hover,
a.vop-resource-tile.vop-resource-tile-btn:hover {
	border-color: #38b6ff !important;
	box-shadow: 5px 6px 0 #38b6ff !important;
	background: #ffffff !important;
	text-decoration: none !important;
}
.vop-resource-tile:active,
button.vop-resource-tile.vop-resource-tile-btn.active,
button.vop-resource-tile.vop-resource-tile-btn.active:focus,
a.vop-resource-tile:focus {
	border-color: #38b6ff !important;
	box-shadow: 5px 6px 0 #38b6ff !important;
	background: #ffffff !important;
}
.vop-resource-grid strong {
	color: #1a2d50;
	font-size: 16px;
	line-height: 25px;
}
.vop-resource-tile .vop-tab-link,
.vop-resource-tile .vop-resource-cta,
span.vop-tab-link {
	color: #1a56c4 !important;
	font-size: 13px !important;
	font-weight: 500 !important;
	display: inline-flex !important;
	align-items: center !important;
	gap: 6px !important;
	margin-top: auto !important;
	line-height: 1.2 !important;
}
.vop-resource-tile .vop-tab-link .dashicons,
.vop-resource-tile .vop-resource-cta .dashicons,
.vop-resource-tile span.dashicons.dashicons-arrow-down-alt2,
.vop-resource-tile span.dashicons.dashicons-arrow-right-alt2,
.vop-resource-tile span.dashicons.dashicons-external {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 14px !important;
	height: 14px !important;
	font-size: 14px !important;
	line-height: 1 !important;
	margin: 0 !important;
	padding: 0 !important;
	vertical-align: middle !important;
}
.vop-quick-action .dashicons {
    font-size: 25px !important;
    height: auto !important;
    width: auto !important;
}

ul.vop-doclist-links li a {
    color: #1a56c4;
    font-weight: 500;
}

.vop-btn-secondary {
    background: #1a2d50 !important;
    color: #fff !important;
    border: none !important;
    outline: none !important;
    border-radius: 10px !important;
    padding: 1em 2em !important;
    font-weight: 600 !important;
}
.vop-btn-secondary:hover {
    background: #1c9ce6 !important;
    color: #fff !important;
}
button.vop-modal-close {
    border-radius: 50px;
    padding: 20px 12px;
    line-height: 0px;
    font-size: 30px;
    background: #15223d;
    color: #fff;
border: 1px solid #15223d;
}
.vop-modal-body select {
    height: 45px !important;
}
button.vop-modal-close:hover {
    background: transparent;
    color: #15223d;
    border: 1px solid #15223d;
}
.vop-card, .vop-stat-card, .vop-access-code-badge, .vop-modal, .vop-donut-hole {
   
    box-shadow: 5px 6px 0 #1a2d5024 !important;
}
.vop-help-box .dashicons {
    font-size: 28px;
    width: 25px;
    height: 35px;
}

/* =========================================================
   Operator Admin — Users tab & add-user modal additions
   ========================================================= */
.vop-access-code-banner {
	display: flex;
	align-items: center;
	gap: 8px;
	background: var(--vop-purple-bg, #f1eafd);
	border: 1px solid var(--vop-purple, #7c3aed);
	border-radius: 10px;
	padding: 10px 16px;
	margin-bottom: 16px;
	font-size: 14px;
	color: var(--vop-primary, #0b2f5c);
}
.vop-access-code-banner .dashicons {
	color: var(--vop-purple, #7c3aed);
	font-size: 18px;
	width: 18px;
	height: 18px;
}
.vop-access-code-banner strong {
	font-weight: 700;
}

.vop-field-locked {
	background: #f8f9fb !important;
	color: var(--vop-muted, #64748b) !important;
	cursor: not-allowed !important;
	opacity: 0.85;
}

.vop-lock-icon {
	margin-left: 4px;
	font-size: 13px;
}

.vop-oa-stats {
	margin-bottom: 16px;
}

.vop-form-error {
	background: var(--vop-red-bg, #fdeaea);
	border: 1px solid var(--vop-red, #dc2626);
	color: var(--vop-red, #dc2626);
	border-radius: 8px;
	padding: 10px 14px;
	margin-bottom: 12px;
	font-size: 13px;
}

/* =========================================================
   Placeholder tabs (Add or Delete Facility, Large Loss, etc.)
   ========================================================= */
.vop-placeholder-tab {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 48px 24px;
	min-height: 200px;
}

.vop-placeholder-tab .dashicons {
	margin-bottom: 16px;
	opacity: 0.5;
}

.vop-placeholder-tab h3 {
	margin: 0 0 8px;
	font-size: 18px;
	font-weight: 600;
	color: var(--vop-text, #1e293b);
}

.vop-placeholder-tab p {
	margin: 0;
	max-width: 420px;
	font-size: 14px;
	line-height: 1.6;
}

/* =========================================================
   Modal Styles (WP Admin)
   ========================================================= */
/* Coming Soon is strictly click-triggered. Never display it on page load. */
.vop-coming-soon-modal {
	display: none !important;
}
.vop-coming-soon-modal.open {
	display: flex !important;
}

.vop-modal {
	background: #fff;
	border-radius: 8px;
	max-width: 600px;
	width: 90%;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.vop-modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px 24px;
	border-bottom: 1px solid #e5e9f0;
}

.vop-modal-header h2 {
	margin: 0;
	font-size: 20px;
	font-weight: 600;
}

.vop-modal-close {
	background: none;
	border: none;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	color: #64748b;
	padding: 0;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
}

.vop-modal-close:hover {
	background: #f4f6f9;
	color: #1e293b;
}

.vop-modal-body {
	padding: 24px;
}

.vop-modal-body .form-table th {
	width: 140px;
	padding: 15px 10px 15px 0;
}

.vop-modal-body .form-table td {
	padding: 10px 10px;
}

.vop-modal-body .required {
	color: #dc2626;
}

.vop-modal-body .submit {
	padding-top: 20px;
	border-top: 1px solid #e5e9f0;
	margin-top: 20px;
}

.vop-add-new-user-btn {
	margin-left: 8px;
}

/* =========================================================
   Maskable Text Toggle (Access Code/SBOA ID)
   ========================================================= */
.vop-toggle-visibility {
	background: none;
	border: none;
	cursor: pointer;
	padding: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #64748b;
	border-radius: 4px;
	transition: all 0.2s;
}

.vop-toggle-visibility:hover {
	background: rgba(0, 0, 0, 0.05);
	color: var(--vop-primary, #0b2f5c);
}

.vop-toggle-visibility .dashicons {
	font-size: 20px;
	width: 20px;
	height: 20px;
}

.vop-maskable-text {
	font-family: monospace;
	letter-spacing: 2px;
}

/* =========================================================
   SBOA PORTAL - SUBMIT DOCUMENT FORM
   Modern / Clean / Professional
   ========================================================= */

#tab-documents .vop-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 32px 34px;
    box-shadow: 0 8px 25px rgba(18, 45, 80, 0.08);
    border: 1px solid #e7edf4;
}

/* Form heading */
#tab-documents h2 {
    margin: 0 0 10px;
    font-size: 30px;
    line-height: 1.25;
    font-weight: 700;
    color: #19345d;
}

/* Description */
#tab-documents .vop-muted,
#tab-documents .vop-card > p {
    color: #61728b;
    font-size: 15px;
    line-height: 1.6;
}

/* Form grid */
#tab-documents form {
    margin-top: 26px;
}

/* Labels */
#tab-documents label {
    display: block;
    margin-bottom: 9px;
    color: #1c2f4f;
    font-size: 15px;
    font-weight: 600;
}

/* Required star */
#tab-documents label .required,
#tab-documents label .frm_required {
    color: #e34b4b;
}

/* Inputs + Select */
#tab-documents input[type="text"],
#tab-documents input[type="email"],
#tab-documents input[type="number"],
#tab-documents select,
#tab-documents textarea {
    width: 100%;
    min-height: 54px;
    padding: 14px 17px;
    border: 1px solid #cbd6e4;
    border-radius: 10px;
    background: #fbfcfe;
    color: #203554;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    box-sizing: border-box;
    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}

/* Placeholder */
#tab-documents input::placeholder,
#tab-documents textarea::placeholder {
    color: #9aabbd;
}

/* Focus */
#tab-documents input:focus,
#tab-documents select:focus,
#tab-documents textarea:focus {
    border-color: #2d8fd5;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(45, 143, 213, 0.12);
}

/* Form rows */
#tab-documents .vop-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin-bottom: 22px;
}

/* Individual fields */
#tab-documents .vop-form-field {
    margin-bottom: 22px;
}

/* Claim number */
#tab-documents input[name="claim_number"] {
    letter-spacing: .2px;
}

/* File upload area */
#tab-documents input[type="file"] {
    width: 100%;
    min-height: 58px;
    padding: 10px 12px;
    border: 1.5px dashed #b9c8d9;
    border-radius: 10px;
    background: #f8fafc;
    color: #61728b;
    font-size: 14px;
    box-sizing: border-box;
    cursor: pointer;
}

/* File button */
#tab-documents input[type="file"]::file-selector-button {
    margin-right: 12px;
    padding: 10px 16px;
    border: 0;
    border-radius: 7px;
    background: #e8f1f9;
    color: #19345d;
    font-weight: 600;
    cursor: pointer;
}

/* Upload button */
#tab-documents button[type="submit"],
#tab-documents input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 28px;
    border: 0;
    border-radius: 10px;
    background: #19345d;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition:
        background .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

/* Button hover */
#tab-documents button[type="submit"]:hover,
#tab-documents input[type="submit"]:hover {
    background: #244875;
    transform: translateY(-1px);
    box-shadow: 0 7px 18px rgba(25, 52, 93, 0.20);
}

/* Button active */
#tab-documents button[type="submit"]:active,
#tab-documents input[type="submit"]:active {
    transform: translateY(0);
}

/* Success message */
#tab-documents .vop-success {
    margin-bottom: 24px;
    padding: 14px 18px;
    border-radius: 9px;
    border: 1px solid #b9e4c8;
    background: #eefaf2;
    color: #237343;
    font-size: 14px;
    font-weight: 600;
}

/* Error message */
#tab-documents .vop-error {
    margin-bottom: 24px;
    padding: 14px 18px;
    border-radius: 9px;
    border: 1px solid #f1c0c0;
    background: #fff3f3;
    color: #b53636;
    font-size: 14px;
    font-weight: 600;
}

/* Validation error */
#tab-documents input:invalid:not(:placeholder-shown) {
    border-color: #df6b6b;
}

/* Documents list card */
#tab-documents .vop-documents-list {
    margin-top: 28px;
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #e7edf4;
    box-shadow: 0 8px 25px rgba(18, 45, 80, 0.06);
    overflow: hidden;
}

/* Documents list heading */
#tab-documents .vop-documents-list h3 {
    margin: 0;
    padding: 24px 28px;
    color: #19345d;
    font-size: 20px;
    font-weight: 700;
}

/* Document table */
#tab-documents table {
    width: 100%;
    border-collapse: collapse;
}

/* Table header */
#tab-documents th {
    padding: 14px 18px;
    background: #f3f6fa;
    color: #536780;
    font-size: 13px;
    font-weight: 700;
    text-align: left;
    border-bottom: 1px solid #e1e8f0;
}

/* Table cells */
#tab-documents td {
    padding: 16px 18px;
    color: #344966;
    font-size: 14px;
    border-bottom: 1px solid #edf1f5;
}

/* Table hover */
#tab-documents tbody tr:hover {
    background: #f8fbfe;
}

/* Download button */
#tab-documents a.vop-download,
#tab-documents .download-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #edf5fb;
    color: #247bc1;
    text-decoration: none;
    transition: all .2s ease;
}

#tab-documents a.vop-download:hover,
#tab-documents .download-button:hover {
    background: #dcecf8;
    color: #19345d;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

    #tab-documents .vop-card {
        padding: 26px 24px;
    }

    #tab-documents .vop-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    #tab-documents h2 {
        font-size: 26px;
    }
}

@media (max-width: 600px) {

    #tab-documents .vop-card {
        padding: 22px 18px;
        border-radius: 14px;
    }

    #tab-documents h2 {
        font-size: 23px;
    }

    #tab-documents input[type="text"],
    #tab-documents select,
    #tab-documents input[type="file"] {
        min-height: 52px;
    }

    #tab-documents button[type="submit"],
    #tab-documents input[type="submit"] {
        width: 100%;
    }

    #tab-documents table {
        min-width: 650px;
    }

    #tab-documents .vop-documents-list {
        overflow-x: auto;
    }
}
.vop-upload-row.full {
    grid-template-columns: 1fr;
}

/* =========================================================
   Add New User modal — wide 2-column layout
   Scoped to .vop-modal-wide / .vop-modal-grid so the Edit,
   View, and Delete modals keep their existing 512px look.
   ========================================================= */
.vop-modal.vop-modal-wide {
	max-width: 1000px;
	width: 94vw;
	border-radius: 14px;
}

/* Header: comfortable padding, strong title, compact circular close */
.vop-modal-wide .vop-modal-header {
	padding: 16px 28px;
	border-bottom: 1px solid var(--vop-border);
}
.vop-modal-wide .vop-modal-header h3,
.vop-modal-wide .vop-modal-header h2 {
	font-size: 19px;
	font-weight: 700;
	color: #15223d;
}
.vop-modal-wide .vop-modal-close {
	width: 32px;
	height: 32px;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	font-size: 17px;
	line-height: 1;
	background: #1a2d50;
	color: #fff;
	border: 1px solid #1a2d50;
	flex-shrink: 0;
	transition: background 0.15s ease, color 0.15s ease;
}
.vop-modal-wide .vop-modal-close:hover,
.vop-modal-wide .vop-modal-close:focus-visible {
	background: #2a4470;
	color: #fff;
	border-color: #2a4470;
}

/* Body: reduced vertical padding — the grid does the spacing */
.vop-modal-wide .vop-modal-body {
	padding: 18px 28px 8px;
}

/* Responsive 2-column field grid */
.vop-modal-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: 22px;
	row-gap: 14px;
}
.vop-modal-grid .vop-form-field label {
	margin: 0 0 6px;
}
.vop-modal-grid input::placeholder {
	color: #9aa7bb;
}
.vop-modal-grid .vop-field-hint {
	margin: 5px 0 0;
	font-size: 12px;
	line-height: 1.35;
	color: #5b6b84;
}

/* Footer: right-aligned button pair, equal heights */
.vop-modal-wide .vop-modal-footer {
	padding: 14px 28px;
	border-top: 1px solid var(--vop-border);
	gap: 12px;
}
.vop-modal-wide .vop-modal-footer .vop-btn-primary,
.vop-modal-wide .vop-modal-footer .vop-btn-secondary {
	height: 44px;
	padding: 0 26px !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px !important;
	font-size: 14.5px;
}
.vop-modal-wide .vop-modal-footer .vop-btn-secondary {
	background: #fff !important;
	color: #1a2d50 !important;
	border: 1px solid #b9c4d6 !important;
}
.vop-modal-wide .vop-modal-footer .vop-btn-secondary:hover,
.vop-modal-wide .vop-modal-footer .vop-btn-secondary:focus-visible {
	background: #eef3fa !important;
	color: #1a2d50 !important;
	border-color: #1a2d50 !important;
}

/* Tablet / small desktop: keep 2 columns until space really runs out */
@media (max-width: 720px) {
	.vop-modal.vop-modal-wide {
		width: 95vw;
	}
	.vop-modal-grid {
		grid-template-columns: 1fr;
	}
	.vop-modal-wide .vop-modal-header,
	.vop-modal-wide .vop-modal-body,
	.vop-modal-wide .vop-modal-footer {
		padding-left: 20px;
		padding-right: 20px;
	}
}

/* Short viewports only: allow limited body scrolling as a fallback.
   On normal desktop/laptop screens the whole form fits naturally. */
@media (max-height: 700px) {
	.vop-modal.vop-modal-wide .vop-modal-body {
		overflow-y: auto;
		max-height: calc(90vh - 130px);
	}
}

/* =========================================================
   WP Admin — Portal Users screen
   Table action buttons, status pills and the four user
   modals (Add / View / Edit / Delete). All scoped so the
   front-end portal styles are untouched.
   ========================================================= */

/* Actions column: keep View / Edit / Delete on one line */
.vop-users-table .vop-col-actions {
	width: 195px;
}
.vop-row-actions {
	display: flex;
	gap: 8px;
	align-items: center;
	flex-wrap: nowrap;
}
@media (max-width: 960px) {
	.vop-users-table .vop-col-actions {
		width: auto;
	}
	.vop-row-actions {
		flex-wrap: wrap;
	}
}

/* Compact, colour-coded action buttons */
.vop-actions-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 28px;
	padding: 0 12px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	border-radius: 6px;
	border: 1px solid transparent;
	background: transparent;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.vop-actions-btn.view {
	background: #eef3fa;
	color: #1a2d50;
	border-color: #b9c4d6;
}
.vop-actions-btn.view:hover {
	background: #dbe6f4;
	border-color: #1a2d50;
}
.vop-actions-btn.edit {
	background: #fff;
	color: #1a2d50;
	border-color: #1a2d50;
}
.vop-actions-btn.edit:hover {
	background: #1a2d50;
	color: #fff;
}
.vop-actions-btn.delete {
	background: #fff;
	color: #dc2626;
	border-color: #f1b0b0;
}
.vop-actions-btn.delete:hover {
	background: #dc2626;
	color: #fff;
	border-color: #dc2626;
}

/* Status pills */
.vop-status-pill {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 12.5px;
	font-weight: 600;
	white-space: nowrap;
}
.vop-status-pill.vop-status-active {
	color: #15803d;
}
.vop-status-pill.vop-status-inactive {
	color: #b91c1c;
}

/* Modal sizing variants (View / Delete) */
.vop-modal.vop-modal-medium {
	max-width: 720px;
	width: 94vw;
	border-radius: 14px;
}
.vop-modal.vop-modal-compact {
	max-width: 560px;
	width: 94vw;
	border-radius: 14px;
}

.vop-coming-soon-modal .vop-modal {
	position: relative;
	max-width: 480px;
	width: min(92vw, 480px);
	background: #ffffff;
	border-radius: 24px;
	box-shadow: 0 24px 80px rgba(15, 23, 42, 0.28);
	border: 1px solid rgba(148, 163, 184, 0.2);
	padding: 44px 36px 40px;
	text-align: center;
	overflow: visible;
}

.vop-coming-soon-modal .vop-modal-close {
	position: absolute !important;
	top: -14px !important;
	right: -14px !important;
	width: 36px !important;
	height: 36px !important;
	min-width: 36px !important;
	min-height: 36px !important;
	max-width: 36px !important;
	max-height: 36px !important;
	border-radius: 50% !important;
	aspect-ratio: 1 / 1 !important;
	box-sizing: border-box !important;
	padding: 0 !important;
	margin: 0 !important;
	background: #0b2f5c !important;
	color: #ffffff !important;
	font-size: 20px !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	border: 2px solid #ffffff !important;
	cursor: pointer !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	transition: all 0.2s ease !important;
	z-index: 20 !important;
	box-shadow: 0 4px 12px rgba(11, 47, 92, 0.35) !important;
}

.vop-coming-soon-modal .vop-modal-close:hover,
.vop-coming-soon-modal .vop-modal-close:focus-visible {
	background: #ffffff !important;
	color: #0284c7 !important;
	border: 2px solid #0284c7 !important;
	transform: scale(1.08) !important;
	box-shadow: 0 6px 18px rgba(2, 132, 199, 0.4) !important;
}

.vop-coming-soon-img {
	max-width: 210px;
	width: 100%;
	height: auto;
	margin: 0 auto 20px;
	display: block;
}

.vop-coming-soon-heading {
	font-size: 34px;
	font-weight: 800;
	color: #1e293b;
	margin: 0 0 12px 0;
	letter-spacing: -0.5px;
	line-height: 1.2;
}

.vop-coming-soon-desc {
	margin: 0 0 16px 0;
	color: #475569;
	font-size: 16px;
	line-height: 1.5;
}

.vop-coming-soon-divider {
	width: 52px;
	height: 2.5px;
	background: #38b6ff;
	margin: 16px auto 18px;
	border-radius: 2px;
}

.vop-coming-soon-thankyou {
	font-size: 17px;
	font-weight: 800;
	color: #1e293b;
	margin: 0;
}

/* Consistent admin modal chrome */
.vop-admin-modals .vop-modal {
	border-radius: 14px;
	box-shadow: 0 24px 70px rgba(11, 47, 92, 0.28) !important;
}
.vop-admin-modals .vop-modal-header {
	padding: 16px 28px;
	border-bottom: 1px solid #e5e9f0;
}
.vop-admin-modals .vop-modal-header h2 {
	margin: 0;
	font-size: 19px;
	font-weight: 700;
	color: #15223d;
}
.vop-admin-modals .vop-modal-close {
	width: 32px;
	height: 32px;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	font-size: 17px;
	line-height: 1;
	background: #1a2d50;
	color: #fff;
	border: 1px solid #1a2d50;
	flex-shrink: 0;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.vop-admin-modals .vop-modal-close:hover,
.vop-admin-modals .vop-modal-close:focus-visible {
	background: #2a4470;
	color: #fff;
	border-color: #2a4470;
}

/* Grid fields inside Add / Edit modals */
.vop-admin-modals .vop-modal-grid input[type="text"],
.vop-admin-modals .vop-modal-grid input[type="email"],
.vop-admin-modals .vop-modal-grid select {
	width: 100%;
	height: 44px;
	padding: 0 12px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	font-size: 14px;
	color: #15223d;
	background: #fff;
}
.vop-admin-modals .vop-modal-grid input:focus,
.vop-admin-modals .vop-modal-grid select:focus {
	border-color: #1a2d50;
	box-shadow: 0 0 0 3px rgba(26, 45, 80, 0.12);
	outline: none;
}
.vop-admin-modals .vop-modal-grid .vop-form-field > label {
	display: block;
	margin: 0 0 6px;
	font-size: 13.5px;
	font-weight: 600;
	color: #33415c;
}
.vop-admin-modals .vop-modal-grid .required {
	color: #dc2626;
}
.vop-admin-modals .vop-field-checkbox .vop-checkbox-label {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	font-size: 13.5px;
	font-weight: 400;
	color: #33415c;
	margin: 0;
	cursor: pointer;
}
.vop-admin-modals .vop-field-checkbox .vop-checkbox-label input[type="checkbox"] {
	width: auto;
	height: auto;
}

/* Footer buttons (Cancel / Create / Save / Delete) */
.vop-admin-modals .vop-modal-footer {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 12px;
	padding: 14px 28px;
	border-top: 1px solid #e5e9f0;
}
.vop-admin-modals .vop-modal-footer .vop-btn-primary,
.vop-admin-modals .vop-modal-footer .vop-btn-secondary,
.vop-admin-modals .vop-modal-footer .vop-btn-danger {
	margin: 0;
	height: 44px;
	padding: 0 26px !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px !important;
	font-size: 14.5px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.vop-admin-modals .vop-modal-footer .vop-btn-primary {
	background: #1a2d50 !important;
	color: #fff !important;
	border: 1px solid #1a2d50 !important;
}
.vop-admin-modals .vop-modal-footer .vop-btn-primary:hover,
.vop-admin-modals .vop-modal-footer .vop-btn-primary:focus-visible {
	background: #2a4470 !important;
	border-color: #2a4470 !important;
}
.vop-admin-modals .vop-modal-footer .vop-btn-secondary {
	background: #fff !important;
	color: #1a2d50 !important;
	border: 1px solid #b9c4d6 !important;
}
.vop-admin-modals .vop-modal-footer .vop-btn-secondary:hover,
.vop-admin-modals .vop-modal-footer .vop-btn-secondary:focus-visible {
	background: #eef3fa !important;
	color: #1a2d50 !important;
	border-color: #1a2d50 !important;
}
.vop-admin-modals .vop-modal-footer .vop-btn-danger {
	background: #dc2626 !important;
	color: #fff !important;
	border: 1px solid #dc2626 !important;
}
.vop-admin-modals .vop-modal-footer .vop-btn-danger:hover,
.vop-admin-modals .vop-modal-footer .vop-btn-danger:focus-visible {
	background: #b91c1c !important;
	border-color: #b91c1c !important;
}
.vop-admin-modals .vop-modal-footer .vop-btn-primary:disabled,
.vop-admin-modals .vop-modal-footer .vop-btn-danger:disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

/* Inline error shown inside a modal after a failed request */
.vop-modal-inline-error {
	margin: 0 0 14px;
	padding: 10px 14px;
	background: #fef2f2;
	border: 1px solid #fecaca;
	border-radius: 8px;
	color: #b91c1c;
	font-size: 13.5px;
}

/* View modal: clean read-only grid */
.vop-admin-modals .vop-view-table th {
	width: 190px;
	padding: 10px 10px 10px 0;
	text-align: left;
	color: #5b6b84;
	font-weight: 600;
}
.vop-admin-modals .vop-view-table td {
	padding: 10px;
	color: #15223d;
}
.vop-view-inherit-badge {
	display: inline-block;
	margin-left: 8px;
	padding: 2px 9px;
	font-size: 11px;
	font-weight: 600;
	color: #1a2d50;
	background: #eef3fa;
	border: 1px solid #c9d6e8;
	border-radius: 20px;
	white-space: nowrap;
}

/* Delete modal: summary card of the user about to be removed */
.vop-admin-modals .vop-modal-compact .vop-modal-body {
	padding: 20px 28px;
}
.vop-delete-warning {
	margin: 0 0 14px;
	color: #15223d;
	line-height: 1.5;
}
.vop-delete-summary {
	background: #f6f8fb;
	border: 1px solid #e5e9f0;
	border-radius: 10px;
	padding: 4px 16px;
}
.vop-delete-summary-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	padding: 8px 0;
	border-bottom: 1px solid #eef1f5;
	font-size: 13.5px;
}
.vop-delete-summary-row:last-child {
	border-bottom: none;
}
.vop-delete-summary-row span {
	color: #5b6b84;
}
.vop-delete-summary-row strong {
	color: #15223d;
	font-weight: 600;
	overflow-wrap: anywhere;
	text-align: right;
}

/* Success / error notices above the table */
.vop-admin-notice {
	margin: 12px 0 16px;
}

/* Responsive tweaks for the admin modals */
@media (max-width: 720px) {
	.vop-modal.vop-modal-medium,
	.vop-modal.vop-modal-compact {
		width: 95vw;
	}
	.vop-admin-modals .vop-modal-header,
	.vop-admin-modals .vop-modal-footer {
		padding-left: 20px;
		padding-right: 20px;
	}
	.vop-admin-modals .vop-modal-compact .vop-modal-body {
		padding: 16px 20px;
	}
	.vop-admin-modals .vop-view-table th {
		width: 130px;
	}
}

/* ==========================================================================
   Email Notifications — Portal Settings tab (WP Admin)
   ========================================================================== */
.vop-email-settings .vop-email-locked-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	background: #edf6ee;
	border: 1px solid #b7dfc0;
	border-radius: 6px;
	color: #1e7e34;
	font-weight: 600;
}

.vop-email-settings .vop-email-locked-badge .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
	color: #6c7782;
}

.vop-email-settings .vop-recipient-row {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
}

.vop-email-settings .vop-recipient-row .vop-recipient-input {
	margin: 0;
}

.vop-email-settings .vop-recipient-remove {
	color: #b32d2e;
	border-color: #b32d2e;
}

.vop-email-settings .vop-recipient-remove:hover,
.vop-email-settings .vop-recipient-remove:focus {
	background: #b32d2e;
	border-color: #b32d2e;
	color: #fff;
}

/* ==========================================================================
   SBOA ID locked notice (Operator Dashboard)
   The saved SBOA ID is shown in the header badge; this compact notice
   replaces the old read-only SBOA ID card.
   ========================================================================== */
.vop-sboa-id-notice {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	background: #eef4fb;
	border: 1px solid #c6d8ef;
	border-radius: 10px;
	padding: 12px 16px;
	margin: 0 0 16px;
	font-size: 13.5px;
	line-height: 1.5;
	color: #33415c;
}

.vop-sboa-id-notice .dashicons {
	color: #5b7ba6;
	font-size: 18px;
	width: 18px;
	height: 18px;
	margin-top: 1px;
	flex-shrink: 0;
}

/* ------------------------------------------------------------------ */
/* Activity Log filter bar (admin + operator admin)                    */
/* ------------------------------------------------------------------ */
.vop-activity-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 12px;
}

.vop-activity-filters label {
	display: block;
	margin-bottom: 4px;
}

.vop-activity-filters select,
.vop-activity-filters input {
	min-width: 150px;
	padding: 8px 10px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	font-size: 13px;
	background: #fff;
	color: #1e293b;
}

.vop-activity-filters input[type="text"] {
	min-width: 110px;
}

.vop-activity-filters button {
	margin-left: 4px;
}

/* ------------------------------------------------------------------ */
/* Toast notifications (portal dashboards)                             */
/* ------------------------------------------------------------------ */
.vop-toast-host {
	position: fixed;
	top: 20px;
	right: 20px;
	z-index: 100000;
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-width: 380px;
}

.vop-toast {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 12px 14px;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-left: 4px solid #16a34a;
	border-radius: 10px;
	box-shadow: 0 8px 24px rgba(16, 24, 40, 0.12);
	animation: vop-toast-in 0.25s ease;
}

.vop-toast .dashicons {
	color: #16a34a;
	font-size: 18px;
	width: 18px;
	height: 18px;
	margin-top: 1px;
	flex-shrink: 0;
}

.vop-toast p {
	margin: 0;
	font-size: 13.5px;
	color: #1e293b;
	line-height: 1.5;
}

.vop-toast-warning {
	border-left-color: #d97706;
}

.vop-toast-warning .dashicons {
	color: #d97706;
}

.vop-toast-close {
	background: none;
	border: none;
	color: #94a3b8;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
	padding: 2px;
	margin-left: auto;
}

.vop-toast-close:hover {
	color: #475569;
}

.vop-toast-hide {
	opacity: 0;
	transform: translateY(-6px);
	transition: opacity 0.25s ease, transform 0.25s ease;
}

@keyframes vop-toast-in {
	from { opacity: 0; transform: translateY(-8px); }
	to { opacity: 1; transform: translateY(0); }
}

/* Claim Number split input */
.vop-claim-number-split {
	display: flex;
	align-items: center;
	gap: 8px;
}
.vop-claim-number-split input {
	width: 100px;
	text-align: center;
	font-family: monospace;
	font-size: 16px;
	letter-spacing: 2px;
}
.vop-claim-separator {
	font-size: 20px;
	font-weight: bold;
	color: #64748b;
}

/* ---- Quick Action form close button ---- */
.vop-qa-close {
	background: none;
	border: none;
	cursor: pointer;
	color: #64748b;
	padding: 4px;
	border-radius: 4px;
	line-height: 1;
	transition: color 0.15s, background 0.15s;
}
.vop-qa-close:hover {
	color: #ef4444;
	background: #fef2f2;
}
.vop-qa-close .dashicons {
	font-size: 20px;
	width: 20px;
	height: 20px;
}

/* Quick Action active state */
.vop-quick-action-btn.active {
	border-color: #3b82f6;
	background: #eff6ff;
}

/* =========================================================
   Admin Documents Management table — horizontal scroll
   ========================================================= */
#vopAdminDocsTableWrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}
#vopAdminDocsTable {
	min-width: 1400px;
}
#vopAdminDocsTable th,
#vopAdminDocsTable td {
	white-space: nowrap;
	font-size: 13px;
	padding: 8px 10px;
}
#vopAdminDocsTable td small {
	color: var(--vop-muted);
}

/* ---------------- Dashboard polish (activity round) ---------------- */
/* Never allow horizontal page overflow from wide cards/tables. */
.vop-main { min-width: 0; }

/* Equal card heights + clean alignment in the Dashboard overview grid. */
.vop-grid-3 { align-items: stretch; }
.vop-grid-3 > .vop-card { display: flex; flex-direction: column; min-width: 0; height: 100%; }
.vop-grid-3 .vop-activity-list { flex: 1 1 auto; }
.vop-grid-3 .vop-view-link { margin-top: auto; padding-top: 14px; }

/* Stat cards stretch to equal heights in the grid. */
.vop-stat-grid { align-items: stretch; }
.vop-stat-card { height: 100%; }

/* Stat grid wraps to 2 columns before collapsing to 1 on phones. */
@media (max-width: 1100px) {
	.vop-stat-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Donut + legend stack earlier so the card never clips on mid widths. */
@media (max-width: 1300px) {
	.vop-grid-3 .vop-donut-wrap { flex-direction: column; align-items: flex-start; }
	.vop-grid-3 .vop-legend { width: 100%; }
}

/* When the overview grid stacks, keep spacing between cards. */
@media (max-width: 900px) {
	.vop-grid-3 > .vop-card { margin-bottom: 16px; height: auto; }
	.vop-grid-3 > .vop-card:last-child { margin-bottom: 0; }
}

/* Quick Actions column aligns with its siblings. */
.vop-quick-actions { justify-content: flex-start; }

/* Activity filter bar wraps cleanly without overlapping controls. */
.vop-activity-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.vop-activity-filters select,
.vop-activity-filters input { max-width: 100%; }

/* =========================================================================
   Admin Settings - Compact Subtabs & Collapsible Item Cards
   ========================================================================= */
.vop-admin-settings-wrap {
	max-width: 1050px;
	margin-top: 15px;
}

.vop-subtabs-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 20px 0 24px;
	border-bottom: 2px solid #e2e8f0;
	padding-bottom: 14px;
}

.vop-subtab-btn {
	background: #ffffff;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	padding: 9px 18px;
	font-size: 13.5px;
	font-weight: 600;
	color: #475569;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	transition: all 0.2s ease;
	outline: none;
}

.vop-subtab-btn:hover {
	background: #f8fafc;
	color: #0b2f5c;
	border-color: #94a3b8;
}

.vop-subtab-btn.active {
	background: #0b2f5c;
	color: #ffffff;
	border-color: #0b2f5c;
	box-shadow: 0 2px 6px rgba(11,47,92,0.18);
}

.vop-subtab-count {
	background: rgba(0,0,0,0.08);
	color: inherit;
	border-radius: 12px;
	padding: 2px 8px;
	font-size: 11.5px;
	font-weight: 700;
}
.vop-subtab-btn.active .vop-subtab-count {
	background: rgba(255,255,255,0.25);
	color: #ffffff;
}

.vop-subtab-pane {
	display: none;
}
.vop-subtab-pane.active {
	display: block;
}

.vop-subtab-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 16px;
	padding-bottom: 8px;
}

.vop-subtab-header h3 {
	margin: 0;
	font-size: 16px;
	color: #0b2f5c;
	display: flex;
	align-items: center;
	gap: 8px;
}

.vop-card-toggle-all {
	font-size: 12.5px;
	color: #0284c7;
	background: #f0f9ff;
	border: 1px solid #bae6fd;
	border-radius: 6px;
	cursor: pointer;
	font-weight: 600;
	padding: 5px 12px;
	margin-left: 6px;
	transition: all 0.2s ease;
}
.vop-card-toggle-all:hover {
	background: #0284c7;
	color: #ffffff;
	border-color: #0284c7;
}

/* Accordion Item Card */
.vop-item-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	margin-bottom: 10px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	overflow: hidden;
}

.vop-item-card:hover {
	border-color: #cbd5e1;
}

.vop-item-card.is-open {
	border-color: #93c5fd;
	box-shadow: 0 2px 8px rgba(56,182,255,0.08);
}

.vop-item-card-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 18px;
	background: #f8fafc;
	cursor: pointer;
	user-select: none;
	border-left: 4px solid transparent;
	transition: background-color 0.2s ease;
}

.vop-item-card.is-open .vop-item-card-header {
	background: #f0f7ff;
	border-left-color: #38b6ff;
	border-bottom: 1px solid #e2e8f0;
}

.vop-item-card-title {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14.5px;
	font-weight: 600;
	color: #1e293b;
}

.vop-item-card-title .dashicons {
	color: #0b2f5c;
	font-size: 19px;
	width: 19px;
	height: 19px;
}

.vop-item-card-meta {
	display: flex;
	align-items: center;
	gap: 10px;
}

.vop-badge {
	display: inline-flex;
	align-items: center;
	padding: 3px 9px;
	border-radius: 6px;
	font-size: 11.5px;
	font-weight: 600;
	line-height: 1.2;
}
.vop-badge-blue {
	background: #e0f2fe;
	color: #0369a1;
	border: 1px solid #bae6fd;
}
.vop-badge-purple {
	background: #f3e8ff;
	color: #7e22ce;
	border: 1px solid #e9d5ff;
}
.vop-badge-green {
	background: #dcfce7;
	color: #15803d;
	border: 1px solid #bbf7d0;
}
.vop-badge-amber {
	background: #fef3c7;
	color: #b45309;
	border: 1px solid #fde68a;
}
.vop-badge-gray {
	background: #f1f5f9;
	color: #475569;
	border: 1px solid #e2e8f0;
}

.vop-item-toggle-icon {
	color: #94a3b8;
	font-size: 16px;
	width: 16px;
	height: 16px;
	transition: transform 0.2s ease;
}
.vop-item-card.is-open .vop-item-toggle-icon {
	transform: rotate(180deg);
}

.vop-item-card-body {
	display: none;
	padding: 18px 20px;
	background: #ffffff;
}
.vop-item-card.is-open .vop-item-card-body {
	display: block;
}

/* Compact Grid within Card Body */
.vop-form-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 14px 20px;
}
.vop-form-grid .vop-grid-full {
	grid-column: span 2;
}

.vop-form-field-group {
	display: flex;
	flex-direction: column;
	gap: 5px;
}
.vop-form-field-group label {
	font-size: 12.5px;
	font-weight: 600;
	color: #334155;
}
.vop-form-field-group input[type="text"],
.vop-form-field-group input[type="url"],
.vop-form-field-group select,
.vop-form-field-group textarea {
	width: 100% !important;
	max-width: 100% !important;
	border: 1px solid #cbd5e1 !important;
	border-radius: 6px !important;
	padding: 7px 10px !important;
	font-size: 13px !important;
	box-sizing: border-box !important;
}
.vop-form-field-group textarea {
	font-family: Consolas, Monaco, monospace;
	font-size: 12.5px !important;
}
.vop-form-field-group .description {
	font-size: 11.5px;
	color: #64748b;
	margin: 2px 0 0;
	line-height: 1.3;
}
.vop-checkbox-label {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 13px;
	font-weight: 500;
	color: #334155;
	margin-top: 4px;
	cursor: pointer;
}

/* ---------------- Modern Admin Settings Shell & Cards ---------------- */
.vop-admin-settings-wrap {
	max-width: 1080px;
	margin: 20px 20px 40px 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.vop-settings-header {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 24px;
	padding-bottom: 16px;
	border-bottom: 1px solid #e2e8f0;
}

.vop-settings-header-icon {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	background: #0b2f5c;
	color: #38b6ff;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	box-shadow: 0 4px 12px rgba(11, 47, 92, 0.15);
}

.vop-settings-header-icon .dashicons {
	font-size: 26px;
	width: 26px;
	height: 26px;
}

.vop-settings-header h1 {
	margin: 0;
	font-size: 22px;
	font-weight: 700;
	color: #0f172a;
	line-height: 1.2;
}

.vop-settings-header-subtitle {
	margin: 4px 0 0;
	font-size: 13.5px;
	color: #64748b;
}

/* Modern Tab Navigation Pills */
.vop-admin-tabs-nav.nav-tab-wrapper {
	border-bottom: 2px solid #e2e8f0 !important;
	padding-bottom: 0 !important;
	margin: 0 0 24px 0 !important;
	display: flex !important;
	flex-wrap: wrap !important;
	gap: 8px !important;
}

.vop-admin-tabs-nav .nav-tab {
	background: #ffffff !important;
	border: 1px solid #cbd5e1 !important;
	border-bottom: none !important;
	border-radius: 8px 8px 0 0 !important;
	padding: 10px 18px !important;
	font-size: 13.5px !important;
	font-weight: 600 !important;
	color: #475569 !important;
	display: inline-flex !important;
	align-items: center !important;
	gap: 8px !important;
	margin: 0 !important;
	transition: all 0.15s ease !important;
	box-shadow: none !important;
}

.vop-admin-tabs-nav .nav-tab:hover {
	background: #f8fafc !important;
	color: #0b2f5c !important;
	border-color: #94a3b8 !important;
}

.vop-admin-tabs-nav .nav-tab-active,
.vop-admin-tabs-nav .nav-tab-active:hover {
	background: #0b2f5c !important;
	color: #ffffff !important;
	border-color: #0b2f5c !important;
	box-shadow: 0 2px 8px rgba(11, 47, 92, 0.16) !important;
}

.vop-admin-tabs-nav .nav-tab .dashicons {
	font-size: 17px;
	width: 17px;
	height: 17px;
	color: inherit;
}

/* Section Cards */
.vop-admin-section-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 24px;
	margin-bottom: 24px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.vop-section-card-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 8px;
	padding-bottom: 12px;
	border-bottom: 1px solid #f1f5f9;
}

.vop-section-title {
	display: flex;
	align-items: center;
	gap: 10px;
}

.vop-section-title .dashicons {
	color: #0b2f5c;
	font-size: 20px;
	width: 20px;
	height: 20px;
}

.vop-section-title h3 {
	margin: 0;
	font-size: 16.5px;
	font-weight: 700;
	color: #0b2f5c;
}

.vop-section-desc {
	margin: 0 0 20px 0;
	font-size: 13px;
	color: #64748b;
	line-height: 1.4;
}

.vop-subsection-heading {
	margin: 20px 0 12px 0;
	font-size: 14.5px;
	font-weight: 700;
	color: #1e293b;
	display: flex;
	align-items: center;
	gap: 8px;
}
.vop-subsection-heading .dashicons {
	color: #0b2f5c;
	font-size: 18px;
	width: 18px;
	height: 18px;
}

/* Info Alert Box */
.vop-info-box {
	display: flex;
	gap: 12px;
	background: #eff6ff;
	border: 1px solid #bfdbfe;
	border-radius: 8px;
	padding: 12px 16px;
	font-size: 13px;
	color: #1e40af;
	margin-bottom: 20px;
	line-height: 1.45;
}

.vop-info-box .dashicons {
	font-size: 20px;
	width: 20px;
	height: 20px;
	color: #2563eb;
	flex-shrink: 0;
	margin-top: 1px;
}

/* Color & Media Inputs */
.vop-media-input-group {
	display: flex;
	gap: 10px;
	align-items: center;
}
.vop-media-input-group input {
	flex: 1;
}

.vop-password-field-wrap {
	position: relative;
	display: flex;
	align-items: center;
}
.vop-password-field-wrap input {
	padding-right: 38px !important;
}
.vop-field-toggle-pwd {
	position: absolute;
	right: 8px;
	background: none;
	border: none;
	cursor: pointer;
	color: #64748b;
	padding: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.vop-field-toggle-pwd:hover {
	color: #0b2f5c;
}

/* Role Permission Matrix Table */
.vop-role-matrix-table {
	width: 100%;
	border-collapse: collapse;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	overflow: hidden;
	margin-bottom: 16px;
}
.vop-role-matrix-table th {
	background: #f8fafc;
	padding: 12px 16px;
	font-size: 13px;
	font-weight: 700;
	color: #334155;
	border-bottom: 1px solid #e2e8f0;
}
.vop-role-matrix-table td {
	padding: 12px 16px;
	border-bottom: 1px solid #f1f5f9;
	vertical-align: middle;
	font-size: 13.5px;
}
.vop-role-matrix-table tr:hover td {
	background: #f8fafc;
}
.vop-tab-name-cell {
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.vop-tab-name-cell strong {
	color: #1e293b;
	font-size: 13.5px;
}
.vop-tab-name-cell code {
	color: #64748b;
	background: #f1f5f9;
	font-size: 11px;
	padding: 2px 6px;
	border-radius: 4px;
	width: fit-content;
}

/* Master Toggle Box */
.vop-master-toggle-box {
	background: #f0f7ff;
	border: 1px solid #bae6fd;
	border-radius: 8px;
	padding: 14px 18px;
	margin-bottom: 18px;
}

/* Tile Toggle Cards Grid (Tab Visibility Tab) */
.vop-tile-toggle-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px 16px;
}
@media (max-width: 782px) {
	.vop-tile-toggle-grid {
		grid-template-columns: 1fr;
	}
}

.vop-tile-toggle-card {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 14px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.15s ease;
	user-select: none;
}
.vop-tile-toggle-card:hover {
	border-color: #cbd5e1;
	background: #f1f5f9;
}
.vop-tile-toggle-card.is-active {
	background: #f0fdf4;
	border-color: #bbf7d0;
}
.vop-tile-toggle-left {
	display: flex;
	align-items: center;
	gap: 9px;
}
.vop-tile-toggle-left .dashicons {
	color: #0b2f5c;
	font-size: 18px;
	width: 18px;
	height: 18px;
}
.vop-tile-toggle-card.is-active .vop-tile-toggle-left .dashicons {
	color: #15803d;
}
.vop-tile-toggle-label {
	font-size: 13px;
	font-weight: 600;
	color: #334155;
}

/* Locked Notification Banner */
.vop-notification-row-locked {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 12px 16px;
	margin-bottom: 16px;
}
.vop-locked-left {
	display: flex;
	align-items: center;
	gap: 12px;
}
.vop-locked-left .dashicons {
	font-size: 24px;
	width: 24px;
	height: 24px;
	color: #0b2f5c;
}
.vop-locked-left strong {
	color: #1e293b;
	font-size: 13.5px;
}

/* Email Recipients Repeater */
.vop-recipient-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	max-width: 600px;
}
.vop-recipient-row {
	display: flex;
	align-items: center;
	gap: 8px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	padding: 6px 10px;
}
.vop-recipient-row .vop-recipient-input {
	flex: 1;
	border: 1px solid #cbd5e1 !important;
	border-radius: 4px !important;
	padding: 6px 10px !important;
	font-size: 13px !important;
}
.vop-recipient-remove {
	color: #dc2626 !important;
	border-color: #fca5a5 !important;
}
.vop-recipient-remove:hover {
	background: #fef2f2 !important;
	border-color: #dc2626 !important;
	color: #b91c1c !important;
}

.vop-btn-export {
	display: inline-flex !important;
	align-items: center !important;
	gap: 6px !important;
	padding: 8px 16px !important;
	font-size: 13.5px !important;
	font-weight: 600 !important;
}

/* ==========================================================================
   PORTAL USERS & ADMIN MENUS MODERN STYLING
   ========================================================================== */

/* Overview Metrics Grid (Portal Users Screen) */
.vop-stats-overview-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	margin-bottom: 24px;
}
@media (max-width: 1024px) {
	.vop-stats-overview-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 600px) {
	.vop-stats-overview-grid {
		grid-template-columns: 1fr;
	}
}

.vop-stat-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 18px 20px;
	display: flex;
	align-items: center;
	gap: 16px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.vop-stat-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.vop-stat-icon {
	width: 46px;
	height: 46px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.vop-stat-icon .dashicons {
	font-size: 24px;
	width: 24px;
	height: 24px;
}
.vop-stat-icon-navy {
	background: #e6f0fa;
	color: #0b2f5c;
}
.vop-stat-icon-green {
	background: #dcfce7;
	color: #15803d;
}
.vop-stat-icon-purple {
	background: #f3e8ff;
	color: #7e22ce;
}
.vop-stat-icon-blue {
	background: #e0f2fe;
	color: #0284c7;
}

.vop-stat-info {
	display: flex;
	flex-direction: column;
}
.vop-stat-number {
	font-size: 24px;
	font-weight: 700;
	color: #0f172a;
	line-height: 1.15;
}
.vop-stat-title {
	font-size: 13px;
	font-weight: 500;
	color: #64748b;
	margin-top: 3px;
}

/* User Avatar Dot */
.vop-user-avatar-dot {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: #0b2f5c;
	color: #ffffff;
	font-size: 12px;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	letter-spacing: 0.5px;
}

/* Status Pills */
.vop-status-pill {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 3px 10px;
	border-radius: 20px;
	font-size: 11.5px;
	font-weight: 600;
	white-space: nowrap;
}
.vop-status-active {
	background: #dcfce7;
	color: #166534;
	border: 1px solid #bbf7d0;
}
.vop-status-inactive {
	background: #fee2e2;
	color: #991b1b;
	border: 1px solid #fecaca;
}

/* Badges */
.vop-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 3px 9px;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
}
.vop-badge-purple {
	background: #f3e8ff;
	color: #7e22ce;
	border: 1px solid #e9d5ff;
}
.vop-badge-blue {
	background: #e0f2fe;
	color: #0369a1;
	border: 1px solid #bae6fd;
}
.vop-badge-green {
	background: #dcfce7;
	color: #15803d;
	border: 1px solid #bbf7d0;
}
.vop-badge-gray {
	background: #f1f5f9;
	color: #475569;
	border: 1px solid #e2e8f0;
}

/* Row Action Buttons */
.vop-row-actions {
	display: flex;
	gap: 6px;
	align-items: center;
}
.vop-actions-btn {
	padding: 4px 10px;
	font-size: 12px;
	font-weight: 600;
	border-radius: 5px;
	cursor: pointer;
	border: 1px solid transparent;
	transition: all 0.15s ease;
}
.vop-actions-btn.view {
	background: #f1f5f9;
	color: #334155;
	border-color: #cbd5e1;
}
.vop-actions-btn.view:hover {
	background: #e2e8f0;
	color: #0f172a;
}
.vop-actions-btn.edit {
	background: #eff6ff;
	color: #1d4ed8;
	border-color: #bfdbfe;
}
.vop-actions-btn.edit:hover {
	background: #dbeafe;
	color: #1e40af;
}
.vop-actions-btn.delete {
	background: #fef2f2;
	color: #b91c1c;
	border-color: #fecaca;
}
.vop-actions-btn.delete:hover {
	background: #fee2e2;
	color: #991b1b;
}

/* Styled Admin Table */
.vop-styled-admin-table {
	border-collapse: separate !important;
	border-spacing: 0;
	width: 100%;
}
.vop-styled-admin-table thead th {
	background: #f8fafc !important;
	color: #334155 !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.5px !important;
	padding: 12px 14px !important;
	border-bottom: 1px solid #e2e8f0 !important;
	border-top: none !important;
}
.vop-styled-admin-table tbody td {
	padding: 12px 14px !important;
	vertical-align: middle !important;
	font-size: 13px !important;
	border-bottom: 1px solid #f1f5f9 !important;
}
.vop-styled-admin-table tbody tr:hover td {
	background: #f8fafc !important;
}
.vop-styled-admin-table code {
	background: #f1f5f9;
	color: #0b2f5c;
	padding: 2px 6px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 600;
}

/* ==========================================================================
   PORTAL DOCUMENTS METABOXES & CPT SCREEN STYLING
   ========================================================================== */

/* Document Upload Audit Card */
.vop-upload-audit-card {
	padding: 4px 0;
}
.vop-audit-notice {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	padding: 8px 10px;
	margin-bottom: 14px;
	font-size: 12px;
	color: #64748b;
	line-height: 1.4;
}
.vop-audit-notice .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
	color: #0b2f5c;
	flex-shrink: 0;
	margin-top: 1px;
}
.vop-audit-grid {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.vop-audit-item {
	display: flex;
	flex-direction: column;
	gap: 3px;
	padding-bottom: 10px;
	border-bottom: 1px solid #f1f5f9;
}
.vop-audit-item:last-child {
	border-bottom: none;
	padding-bottom: 0;
}
.vop-audit-label {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #64748b;
}
.vop-audit-label .dashicons {
	font-size: 14px;
	width: 14px;
	height: 14px;
	color: #0b2f5c;
}
.vop-audit-val {
	font-size: 13px;
	font-weight: 600;
	color: #1e293b;
	padding-left: 20px;
}
.vop-audit-val a {
	color: #0284c7;
	text-decoration: none;
}
.vop-audit-val a:hover {
	text-decoration: underline;
}
.vop-audit-legacy-warn {
	display: flex;
	align-items: center;
	gap: 8px;
	background: #fffbeb;
	border: 1px solid #fef3c7;
	border-radius: 6px;
	padding: 8px 10px;
	margin-top: 12px;
	font-size: 12px;
	color: #92400e;
}
.vop-audit-legacy-warn .dashicons {
	color: #d97706;
	font-size: 16px;
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

/* Document Meta Form Controls */
.vop-doc-meta-container {
	padding: 6px 0;
}
.vop-doc-toggle-box {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 14px 16px;
	transition: background 0.15s ease, border-color 0.15s ease;
}
.vop-doc-toggle-box:hover {
	background: #f1f5f9;
	border-color: #cbd5e1;
}

/* ==========================================================================
   WP ADMIN CPT LIST TABLES (Documents & Announcements)
   ========================================================================== */
.post-type-vop_document .wp-list-table,
.post-type-vop_announcement .wp-list-table,
.taxonomy-vop_doc_category .wp-list-table {
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid #e2e8f0 !important;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.post-type-vop_document .wp-list-table thead th,
.post-type-vop_announcement .wp-list-table thead th,
.taxonomy-vop_doc_category .wp-list-table thead th {
	background: #f8fafc;
	color: #334155;
	font-weight: 700;
}
.post-type-vop_document .wp-list-table tbody tr:hover,
.post-type-vop_announcement .wp-list-table tbody tr:hover,
.taxonomy-vop_doc_category .wp-list-table tbody tr:hover {
	background: #f8fafc;
}
.post-type-vop_document .wp-list-table code,
.post-type-vop_announcement .wp-list-table code {
	background: #f1f5f9;
	color: #0b2f5c;
	padding: 2px 6px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 600;
}
