@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* CSS cho Giao diện Cổng thông tin (Employee Dashboard) */
.wplm-emp-wrapper {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	background: #f4f7fe;
	color: #1e293b;
	padding: 30px;
	border-radius: 16px;
	box-shadow: 0 10px 40px rgba(0,0,0,0.05);
	max-width: 1200px;
	margin: 0 auto;
}

/* Dashboard OTP Login */
.wplm-login-shell {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100dvh;
	padding: 22px;
	background:
		radial-gradient(circle at 50% 42%, rgba(255,255,255,.055), transparent 34%),
		linear-gradient(180deg, #030303 0%, #111 100%);
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: #f5f5f5;
}

.wplm-login-card {
	width: min(325px, 100%);
	padding: 31px 23px 28px;
	border: 1px solid rgba(255,255,255,.11);
	border-radius: 9px;
	background: linear-gradient(135deg, rgba(24,24,24,.92), rgba(18,18,18,.96));
	box-shadow: 0 28px 70px rgba(0,0,0,.42);
}

.wplm-login-brand {
	margin: 0 0 8px;
	color: rgba(255,255,255,.46);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .14em;
	text-align: center;
	text-transform: uppercase;
}

.wplm-login-card h1 {
	margin: 0;
	color: #fff;
	font-size: 27px;
	font-weight: 900;
	line-height: 1.05;
	letter-spacing: -.02em;
	text-align: center;
	text-transform: uppercase;
}

.wplm-login-sub {
	margin: 9px 0 27px;
	color: rgba(255,255,255,.58);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.45;
	text-align: center;
}

.wplm-login-alert {
	margin: -12px 0 18px;
	padding: 10px 12px;
	border-radius: 8px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.45;
}

.wplm-login-alert.error {
	border: 1px solid rgba(248,113,113,.22);
	background: rgba(127,29,29,.22);
	color: #fecaca;
}

.wplm-login-alert.success {
	border: 1px solid rgba(34,197,94,.22);
	background: rgba(20,83,45,.18);
	color: #bbf7d0;
}

.wplm-login-form label {
	display: block;
	margin: 0 0 7px;
	color: rgba(255,255,255,.7);
	font-size: 12px;
	font-weight: 700;
}

.wplm-login-field {
	display: flex;
	align-items: center;
	gap: 10px;
	height: 45px;
	padding: 0 13px;
	border: 1px solid rgba(255,255,255,.13);
	border-radius: 7px;
	background: rgba(11,11,11,.56);
	color: rgba(255,255,255,.64);
	transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.wplm-login-field:focus-within {
	border-color: rgba(255,255,255,.28);
	background: rgba(17,17,17,.8);
	box-shadow: 0 0 0 3px rgba(255,255,255,.045);
}

.wplm-login-field svg {
	flex: 0 0 auto;
	color: rgba(255,255,255,.62);
}

.wplm-login-field input {
	width: 100%;
	min-width: 0;
	border: 0;
	outline: 0;
	background: transparent;
	color: #fff;
	font: inherit;
	font-size: 14px;
	font-weight: 500;
}

.wplm-login-field input::placeholder {
	color: rgba(255,255,255,.36);
}

.wplm-login-field input[readonly] {
	color: rgba(255,255,255,.68);
	cursor: default;
}

.wplm-login-hint {
	margin: 7px 4px 18px;
	color: rgba(255,255,255,.24);
	font-size: 11.5px;
	font-weight: 500;
	line-height: 1.4;
}

.wplm-login-submit {
	width: 100%;
	height: 44px;
	border: 0;
	border-radius: 7px;
	background: #3d3d3d;
	color: rgba(255,255,255,.5);
	font-family: inherit;
	font-size: 14px;
	font-weight: 800;
	cursor: pointer;
	transition: transform .18s ease, background .18s ease, color .18s ease;
}

.wplm-login-submit:hover,
.wplm-login-submit:focus {
	background: #f5f5f5;
	color: #050505;
	transform: translateY(-1px);
}

.wplm-login-resend {
	margin-top: 14px;
	text-align: center;
}

.wplm-login-resend button {
	border: 0;
	background: transparent;
	color: rgba(255,255,255,.56);
	font-family: inherit;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
}

.wplm-login-resend button:hover,
.wplm-login-resend button:focus {
	color: #fff;
	text-decoration: underline;
}

@media (max-width: 420px) {
	.wplm-login-shell {
		padding: 21px;
	}

	.wplm-login-card {
		width: 100%;
	}
}

/* Header */
.wplm-emp-topbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 30px;
}

.wplm-emp-title h1 {
	font-size: 24px;
	font-weight: 700;
	margin: 0 0 4px 0;
	color: #111827;
}

.wplm-emp-title p {
	font-size: 14px;
	color: #6b7280;
	margin: 0;
}

.wplm-btn-new {
	background: #3b82f6;
	color: #fff !important;
	border: none;
	padding: 10px 20px;
	border-radius: 8px;
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
	transition: all 0.2s;
}

.wplm-btn-new:hover {
	background: #2563eb;
	transform: translateY(-2px);
}

/* 4 Cards */
.wplm-metric-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
	margin-bottom: 30px;
}

.wplm-metric-card {
	background: #fff;
	border-radius: 12px;
	padding: 20px;
	display: flex;
	align-items: center;
	gap: 15px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.wplm-metric-icon {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
}

.wplm-metric-icon.blue { background: #eff6ff; color: #3b82f6; }
.wplm-metric-icon.orange { background: #fff7ed; color: #f97316; }
.wplm-metric-icon.green { background: #f0fdf4; color: #22c55e; }
.wplm-metric-icon.purple { background: #faf5ff; color: #a855f7; }

.wplm-metric-info h3 {
	margin: 0;
	font-size: 24px;
	font-weight: 700;
	color: #1f2937;
}

.wplm-metric-info p {
	margin: 4px 0 0 0;
	font-size: 13px;
	color: #6b7280;
}

/* Middle Section */
.wplm-middle-grid {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 24px;
	margin-bottom: 30px;
}

@media(max-width: 768px) {
	.wplm-middle-grid { grid-template-columns: 1fr; }
}

.wplm-card {
	background: #fff;
	border-radius: 16px;
	padding: 24px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.wplm-card h2 {
	margin: 0 0 20px 0;
	font-size: 18px;
	font-weight: 700;
	color: #111827;
}

/* Quota Progress */
.wplm-quota-item {
	margin-bottom: 16px;
}

.wplm-quota-header {
	display: flex;
	justify-content: space-between;
	font-size: 14px;
	font-weight: 600;
	color: #374151;
	margin-bottom: 8px;
}

.wplm-quota-bar {
	height: 8px;
	background: #f3f4f6;
	border-radius: 4px;
	overflow: hidden;
}

.wplm-quota-fill {
	height: 100%;
	background: #3b82f6;
	border-radius: 4px;
}

/* Recent Activity */
.wplm-activity-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.wplm-activity-item {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 16px 0;
	border-bottom: 1px solid #f3f4f6;
}

.wplm-activity-item:last-child {
	border-bottom: none;
}

.wplm-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #eff6ff;
	color: #3b82f6;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
	font-size: 14px;
}

.wplm-activity-info h4 {
	margin: 0 0 4px 0;
	font-size: 15px;
	font-weight: 600;
	color: #111827;
}

.wplm-activity-info p {
	margin: 0;
	font-size: 13px;
	color: #6b7280;
}

.wplm-badge {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 600;
	margin-top: 8px;
}

.wplm-badge.approved { background: #dcfce7; color: #166534; }
.wplm-badge.pending { background: #fef9c3; color: #854d0e; }
.wplm-badge.rejected { background: #fee2e2; color: #991b1b; }

/* Calendar styles (Mini) */
.wplm-mini-cal { width: 100%; text-align: center; border-collapse: collapse; }
.wplm-mini-cal th { font-size: 12px; color: #6b7280; padding: 10px; font-weight: 500; }
.wplm-mini-cal td { padding: 10px; font-size: 14px; color: #374151; }
.wplm-mini-cal td.today { background: #eff6ff; color: #3b82f6; font-weight: bold; border-radius: 8px; }
.wplm-mini-cal td.leave { background: #fef9c3; color: #854d0e; border-radius: 8px; }

/* Modal */
.wplm-modal {
	position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 1000000;
	display: flex; align-items: center; justify-content: center;
}
.wplm-modal-overlay {
	position: absolute; top: 0; left: 0; right: 0; bottom: 0;
	background: rgba(17, 24, 39, 0.6); backdrop-filter: blur(4px);
}
.wplm-modal-content {
	background: #fff; width: 100%; max-width: 500px; border-radius: 16px;
	position: relative; z-index: 1; box-shadow: 0 20px 40px -10px rgba(0,0,0,0.15);
}
.wplm-modal-header {
	padding: 20px 24px; border-bottom: 1px solid #f3f4f6;
	display: flex; justify-content: space-between; align-items: center;
}
.wplm-modal-header h3 { margin: 0; font-size: 18px; color: #111827; }
.wplm-modal-close { background: none; border: none; font-size: 24px; color: #9ca3af; cursor: pointer; }
.wplm-modal-body { padding: 24px; max-height: 70vh; overflow-y: auto; }
.wplm-field { margin-bottom: 16px; }
.wplm-field label { display: block; margin-bottom: 8px; font-weight: 500; color: #374151; font-size: 14px; }
.wplm-field input, .wplm-field select, .wplm-field textarea {
	width: 100%; padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 8px; box-sizing: border-box; font-family: inherit;
}
.wplm-modal-footer {
	padding: 16px 24px; background: #f9fafb; border-top: 1px solid #f3f4f6;
	display: flex; justify-content: flex-end; gap: 12px; border-bottom-left-radius: 16px; border-bottom-right-radius: 16px;
}
.wplm-btn-secondary { background: #fff; border: 1px solid #d1d5db; color: #4b5563; padding: 10px 20px; border-radius: 8px; cursor: pointer; }

/* App Layout (Admin Dashboard) */
.wplm-app-layout {
	display: flex;
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100dvh;
	min-height: 0;
	z-index: 999999;
	background: #fff;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	overflow: hidden;
	box-sizing: border-box;
}

.wplm-app-sidebar {
	width: 260px;
	flex: 0 0 260px;
	height: 100%;
	min-height: 0;
	background: #fff;
	border-right: 1px solid #f1f5f9;
	display: flex;
	flex-direction: column;
	padding: 24px 0;
	overflow: visible;
	position: relative;
}

.wplm-app-brand {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 0 16px;
	margin-bottom: 24px;
}

.wplm-app-logo {
	width: 32px;
	height: 32px;
	background: #2563eb;
	color: #fff;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	flex-shrink: 0;
}

.wplm-app-brand-text {
	flex: 1;
	min-width: 0;
}

.wplm-app-brand-text h2 {
	margin: 0;
	font-size: 14px;
	font-weight: 700;
	color: #0f172a;
	line-height: 1.25;
}
.wplm-app-brand-text span {
	font-size: 11px;
	color: #64748b;
	display: block;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.wplm-app-menu {
	list-style: none;
	padding: 0 12px;
	margin: 0;
	flex: 1;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	min-height: 0;
}

.wplm-app-menu li {
	margin-bottom: 4px;
}

.wplm-app-menu a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	border-radius: 8px;
	color: #475569;
	text-decoration: none;
	font-weight: 500;
	font-size: 14px;
	transition: background 0.15s, color 0.15s;
	position: relative;
}

.wplm-app-menu a:hover {
	background: #f8fafc;
	color: #2563eb;
}

.wplm-app-menu a.active {
	background: #eff6ff;
	color: #2563eb;
	font-weight: 600;
}

.wplm-app-menu a.active::before {
	content: '';
	position: absolute;
	left: -12px;
	top: 10%;
	height: 80%;
	width: 4px;
	background: #2563eb;
	border-radius: 0 4px 4px 0;
}

.wplm-app-user {
	padding: 24px;
	border-top: 1px solid #f1f5f9;
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: auto;
}

.wplm-app-user > a {
	flex-shrink: 0;
	display: flex;
	margin-left: 12px;
}

.wplm-app-user-info {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
	flex: 1;
}

.wplm-app-user-info .wplm-avatar {
	flex-shrink: 0;
}

.wplm-app-user-info > div:not(.wplm-avatar) {
	min-width: 0;
	flex: 1;
}

.wplm-app-user-info h4 {
	margin: 0;
	font-size: 14px;
	font-weight: 700;
	color: #0f172a;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.wplm-app-user-info span {
	font-size: 12px;
	color: #64748b;
	display: block;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.wplm-app-main {
	flex: 1 1 auto;
	min-width: 0;
	min-height: 0;
	padding: 0;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	background: #fff;
	display: flex;
	flex-direction: column;
	position: relative;
}

/* Ensure the employee dashboard inside app-main looks good */
.wplm-app-main .wplm-emp-wrapper {
	box-shadow: none;
	padding: 0;
	border-radius: 0;
	max-width: 100%;
}

/* ===== Frontend Calendar ===== */
.wplm-fe-cal { font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }

.wplm-fe-cal-header { margin-bottom: 24px; }

.wplm-fe-cal-controls {
	display: flex; justify-content: space-between; align-items: center;
	flex-wrap: wrap; gap: 16px; margin-bottom: 16px;
}
.wplm-fe-cal-nav { display: flex; align-items: center; gap: 8px; }
.wplm-fe-btn-icon {
	width: 36px; height: 36px; border: 1px solid #e2e8f0; border-radius: 8px;
	background: #fff; display: flex; align-items: center; justify-content: center;
	cursor: pointer; color: #475569; transition: all 0.15s;
}
.wplm-fe-btn-icon:hover { background: #f1f5f9; border-color: #cbd5e1; }
.wplm-fe-cal-month { font-size: 16px; font-weight: 700; color: #0f172a; min-width: 140px; text-align: center; }
.wplm-fe-btn-sm {
	padding: 8px 16px; border: 1px solid #e2e8f0; border-radius: 8px;
	background: #fff; font-size: 13px; font-weight: 500; color: #475569;
	cursor: pointer; transition: all 0.15s;
}
.wplm-fe-btn-sm:hover { background: #f1f5f9; }

.wplm-fe-cal-filter { display: flex; align-items: center; gap: 8px; }
.wplm-fe-cal-filter label { font-size: 13px; font-weight: 500; color: #64748b; }
.wplm-fe-cal-filter select {
	padding: 8px 12px; border: 1px solid #e2e8f0; border-radius: 8px;
	font-size: 13px; background: #fff; color: #334155; min-width: 180px;
}

.wplm-fe-cal-legend {
	display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
	padding: 12px 16px; background: #f8fafc; border-radius: 10px; margin-bottom: 20px;
	font-size: 12px; color: #64748b;
}
.wplm-fe-legend-item { display: flex; align-items: center; gap: 6px; }
.wplm-fe-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex-shrink: 0; }

.wplm-fe-cal-grid {
	display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px;
	background: #e2e8f0; border: 1px solid #e2e8f0; border-radius: 12px; overflow: hidden;
}
.wplm-fe-cal-hdr {
	background: #f1f5f9; padding: 12px 8px; text-align: center;
	font-size: 12px; font-weight: 600; color: #64748b; text-transform: uppercase;
}
.wplm-fe-cal-day {
	background: #fff; padding: 8px 6px; min-height: 90px; cursor: pointer;
	transition: all 0.2s ease; position: relative;
}
.wplm-fe-cal-day:hover { background: #f8fafc; transform: scale(1.02); z-index: 1; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.wplm-fe-cal-day.empty { background: #fafafa; cursor: default; min-height: 90px; }
.wplm-fe-cal-day.empty:hover { transform: none; box-shadow: none; }

/* Today: circle highlight around number */
.wplm-fe-cal-day.today { background: #fff; }
.wplm-fe-cal-day.today .day-num {
	background: #2563eb; color: #fff !important; font-weight: 700;
	width: 28px; height: 28px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	margin-bottom: 4px;
}

.wplm-fe-cal-day.weekend { background: #fffbeb; }
.wplm-fe-cal-day.weekend.today { background: #fff; }
.wplm-fe-cal-day.selected { box-shadow: inset 0 0 0 2px #2563eb; background: #eff6ff; }
.wplm-fe-cal-day.selected:hover { transform: none; }

.wplm-fe-cal-day .day-num {
	display: flex; align-items: center; justify-content: center;
	font-size: 14px; font-weight: 600; color: #334155; margin-bottom: 4px;
	width: 28px; height: 28px;
}
.wplm-fe-cal-day .day-count { display: block; font-size: 11px; color: #2563eb; font-weight: 600; margin-bottom: 4px; }
.wplm-fe-cal-day .day-user {
	display: block; font-size: 11px; color: #475569; padding: 2px 6px;
	margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wplm-fe-cal-day .day-more { display: block; font-size: 10px; color: #94a3b8; padding-left: 6px; }

/* Shift dots in calendar cells */
.wplm-shift-dots { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 2px; }
.wplm-shift-dot {
	width: 8px; height: 8px; border-radius: 50%;
	flex-shrink: 0; transition: transform 0.15s;
}
.wplm-shift-dot:hover { transform: scale(1.5); }

/* Shift pills in calendar cells (desktop) */
.wplm-shift-pill {
	display: flex; align-items: center; gap: 4px;
	font-size: 11px; font-weight: 500; padding: 2px 6px;
	border-radius: 20px; margin-bottom: 2px;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
	transition: all 0.15s;
}
.wplm-shift-pill:hover { filter: brightness(0.95); }
.wplm-shift-pill .pill-bar {
	width: 20px; height: 4px; border-radius: 2px; background: rgba(0,0,0,0.1);
	overflow: hidden; flex-shrink: 0;
}
.wplm-shift-pill .pill-bar-fill {
	height: 100%; border-radius: 2px;
}

.wplm-fe-cal-detail {
	margin-top: 20px; background: #fff; border: 1px solid #e2e8f0;
	border-radius: 12px; padding: 20px;
}
.wplm-fe-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.wplm-fe-table th { text-align: left; padding: 10px 12px; color: #64748b; font-weight: 500; border-bottom: 1px solid #f1f5f9; font-size: 13px; }
.wplm-fe-table td { padding: 10px 12px; border-bottom: 1px solid #f8fafc; color: #334155; }
.wplm-fe-table tr:hover td { background: #f8fafc; }

@media(max-width: 768px) {
	.wplm-fe-cal-controls { flex-direction: column; align-items: flex-start; }
	.wplm-fe-cal-day { min-height: 60px; padding: 6px 4px; }
	.wplm-fe-cal-day:hover { transform: none; box-shadow: none; }
	.wplm-fe-cal-day .day-user { display: none; }
	.wplm-fe-cal-day .day-num { width: 24px; height: 24px; font-size: 12px; }
	.wplm-fe-cal-day.today .day-num { width: 24px; height: 24px; font-size: 12px; }
	.wplm-shift-pill { display: none; }
	.wplm-shift-dots { display: flex; }
}

/* ===== ADMIN DASHBOARD - MOBILE APP DESIGN (Grab-inspired) ===== */

/* Mobile Header (hidden on desktop) */
.wplm-mob-header { display: none; }

@media(max-width: 640px) {
	/* Show mobile header */
	.wplm-mob-header {
		display: block;
		background: linear-gradient(135deg, #1e40af, #3b82f6);
		padding: 20px 20px 24px 20px;
		border-radius: 0 0 24px 24px;
		margin-bottom: 16px;
	}

	.wplm-mob-header-top {
		display: flex;
		justify-content: space-between;
		align-items: center;
	}

	.wplm-mob-greeting {
		font-size: 20px;
		font-weight: 700;
		color: #fff;
	}

	.wplm-mob-username {
		font-size: 13px;
		color: rgba(255,255,255,0.75);
		margin-top: 2px;
		font-weight: 400;
	}

	.wplm-mob-avatar {
		width: 44px; height: 44px;
		border-radius: 50%;
		background: rgba(255,255,255,0.2);
		color: #fff;
		display: flex; align-items: center; justify-content: center;
		font-weight: 700; font-size: 16px;
		border: 2px solid rgba(255,255,255,0.3);
	}

	/* Quick Actions in header */
	.wplm-mob-quick-actions {
		display: flex;
		justify-content: space-between;
		margin-top: 20px;
		gap: 8px;
	}

	.wplm-mob-qa {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 6px;
		text-decoration: none;
		color: rgba(255,255,255,0.8);
		font-size: 11px;
		font-weight: 500;
		flex: 1;
		-webkit-tap-highlight-color: transparent;
		transition: all 0.2s;
	}

	.wplm-mob-qa.active {
		color: #fff;
	}

	.wplm-mob-qa-icon {
		width: 44px; height: 44px;
		border-radius: 14px;
		display: flex; align-items: center; justify-content: center;
		color: #fff;
		transition: all 0.2s;
	}

	.wplm-mob-qa.active .wplm-mob-qa-icon {
		background: rgba(255,255,255,0.3) !important;
		box-shadow: 0 2px 8px rgba(0,0,0,0.1);
	}

	.wplm-mob-qa:active .wplm-mob-qa-icon {
		transform: scale(0.9);
	}
	/* Content sections inside main - add padding (except task wrapper which self-manages) */
	.wplm-app-main > div:not(.wplm-mob-header):not(.wplm-task-wrapper),
	.wplm-app-main > section {
		padding-left: 16px;
		padding-right: 16px;
	}

	/* ===== Calendar Improvements ===== */
	.wplm-fe-cal {
		padding: 0 16px;
	}

	.wplm-fe-cal-header {
		margin-bottom: 16px;
	}

	.wplm-fe-cal-header h2 {
		font-size: 18px;
		font-weight: 700;
		color: #0f172a;
	}

	.wplm-fe-cal-header p {
		font-size: 13px;
		color: #94a3b8;
	}

	.wplm-fe-cal-controls {
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
		gap: 8px;
		margin-bottom: 12px;
		flex-wrap: nowrap;
	}

	.wplm-fe-cal-month {
		font-size: 15px;
		min-width: auto;
	}

	.wplm-fe-btn-sm {
		padding: 6px 12px;
		font-size: 12px;
		border-radius: 20px;
	}

	.wplm-fe-btn-icon {
		width: 32px; height: 32px;
		border-radius: 50%;
	}

	.wplm-fe-cal-filter {
		flex-wrap: wrap;
	}

	.wplm-fe-cal-filter select {
		min-width: 120px;
		font-size: 12px;
		padding: 6px 8px;
		border-radius: 20px;
	}

	.wplm-fe-cal-legend {
		padding: 8px 12px;
		border-radius: 12px;
		margin-bottom: 12px;
		gap: 8px;
		font-size: 11px;
	}

	.wplm-fe-cal-grid {
		border-radius: 16px;
		overflow: hidden;
		box-shadow: 0 2px 12px rgba(0,0,0,0.06);
	}

	.wplm-fe-cal-hdr {
		padding: 8px 2px;
		font-size: 11px;
		background: #f8fafc;
	}

	.wplm-fe-cal-day {
		min-height: 52px;
		padding: 4px 3px;
		font-size: 12px;
	}

	.wplm-fe-cal-day .day-num {
		font-size: 13px;
		margin-bottom: 2px;
	}

	.wplm-fe-cal-day .day-count {
		font-size: 9px;
	}

	.wplm-fe-cal-day .day-user {
		display: none;
	}

	.wplm-fe-cal-day .day-more {
		font-size: 9px;
	}

	.wplm-fe-cal-day.empty {
		min-height: 52px;
	}

	.wplm-fe-cal-detail {
		border-radius: 16px;
		margin-top: 12px;
		padding: 16px;
		box-shadow: 0 2px 12px rgba(0,0,0,0.06);
		border: none;
	}

	/* ===== Slide Panels ===== */
	.wplm-fe-slide-panel,
	.slide-panel {
		max-width: 100% !important;
		width: 100% !important;
		border-radius: 0;
	}

	.wplm-fe-slide-header { padding: 16px 20px; }
	.wplm-fe-slide-body { padding: 16px 20px; }
	.wplm-fe-slide-footer { padding: 12px 20px max(12px, env(safe-area-inset-bottom)); }

	/* ===== Forms ===== */
	.wplm-fe-form-grid {
		grid-template-columns: 1fr !important;
	}

	/* ===== Section Headers ===== */
	.wplm-fe-header {
		flex-direction: column;
		gap: 12px;
		align-items: stretch;
		padding: 0 16px;
	}

	.wplm-fe-header h2 {
		font-size: 18px;
	}

	.wplm-fe-header .wplm-fe-btn {
		width: 100%;
		justify-content: center;
		border-radius: 14px;
		padding: 12px 16px;
	}

	/* ===== Tables ===== */
	.wplm-fe-table {
		display: block;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	/* ===== Cards ===== */
	.wplm-fe-rule-card {
		padding: 14px;
		border-radius: 16px;
		border: none;
		box-shadow: 0 2px 12px rgba(0,0,0,0.06);
	}

	/* ===== Tasks removed — handled in tasks.css ===== */

	/* ===== General Polish ===== */
	.wplm-fe-rules-wrap {
		padding: 0 16px;
	}

	/* ===== Shift Calendar specific ===== */
	.wplm-shift-cal {
		padding: 0 16px;
	}

	.wplm-shift-cal h2 {
		font-size: 18px;
		font-weight: 700;
	}

	.wplm-shift-cal p {
		font-size: 13px;
		color: #94a3b8;
	}
}

/* Admin Dashboard Mobile Bottom Nav */
.wplm-admin-mobile-nav {
	display: none;
	position: fixed !important;
	bottom: 0 !important;
	left: 0 !important;
	right: 0 !important;
	width: 100vw !important;
	max-width: 100vw !important;
	background: rgba(255,255,255,0.97);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border-top: 1px solid rgba(0,0,0,0.06);
	padding: 6px 0 max(8px, env(safe-area-inset-bottom));
	z-index: 1000002;
	box-shadow: none !important;
	box-sizing: border-box;
	margin: 0 !important;
}
/* Hide nav when chat conversation is open on mobile */
.wplm-admin-mobile-nav.chat-active-hidden {
	display: none !important;
}

.wplm-admin-mobile-nav .wplm-amnav-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100% !important;
	padding: 0 4px;
	box-sizing: border-box;
}

.wplm-admin-mobile-nav a {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
	padding: 6px 4px;
	text-decoration: none;
	color: #94a3b8;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0;
	transition: color 0.25s;
	-webkit-tap-highlight-color: transparent;
	position: relative;
	flex: 1;
	text-align: center;
}

.wplm-admin-mobile-nav a.active {
	color: #2563eb;
}

.wplm-admin-mobile-nav a .amnav-icon {
	width: 36px; height: 36px;
	border-radius: 12px;
	display: flex; align-items: center; justify-content: center;
	transition: all 0.25s;
}

.wplm-admin-mobile-nav a .amnav-icon svg {
	width: 22px; height: 22px;
}

.wplm-admin-mobile-nav a.active .amnav-icon {
	background: linear-gradient(135deg, #dbeafe, #bfdbfe);
	color: #2563eb;
	box-shadow: 0 2px 8px rgba(37,99,235,0.15);
}

.wplm-admin-mobile-nav a:active .amnav-icon {
	transform: scale(0.88);
}

/* Mobile hamburger / more menu */
.wplm-admin-mobile-more {
	display: none;
	position: fixed;
	bottom: 72px;
	left: 8px; right: 8px;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 8px 40px rgba(0,0,0,0.15);
	z-index: 1000003;
	padding: 12px;
	animation: wplm-slide-up 0.25s ease-out;
}

.wplm-admin-mobile-more.visible {
	display: block;
}

.wplm-admin-mobile-more-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.3);
	z-index: 1000002;
}

.wplm-admin-mobile-more-overlay.visible {
	display: block;
}

.wplm-admin-more-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 4px;
}

.wplm-admin-more-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 12px 4px;
	border-radius: 12px;
	text-decoration: none;
	color: #475569;
	font-size: 11px;
	font-weight: 600;
	transition: background 0.15s;
	-webkit-tap-highlight-color: transparent;
}

.wplm-admin-more-item:active {
	background: #f1f5f9;
}

.wplm-admin-more-item .more-icon {
	width: 40px; height: 40px;
	border-radius: 12px;
	display: flex; align-items: center; justify-content: center;
	background: #f1f5f9;
	color: #475569;
}

/* ===== Frontend Rules UI ===== */
.wplm-fe-rules-wrap { font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.wplm-fe-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 16px; }
.wplm-fe-empty-state { text-align: center; padding: 60px 20px; background: #f8fafc; border: 2px dashed #e2e8f0; border-radius: 12px; color: #64748b; }
.wplm-fe-rules-list { display: flex; flex-direction: column; gap: 16px; }
.wplm-fe-rule-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 20px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02); transition: all 0.2s; }
.wplm-fe-rule-card:hover { border-color: #cbd5e1; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05); }
.wplm-fe-rule-card.disabled { opacity: 0.6; background: #f8fafc; }
.wplm-fe-rule-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; flex-wrap: wrap; gap: 12px; }
.wplm-fe-rule-title { display: flex; align-items: flex-start; gap: 12px; }
.wplm-fe-rule-icon { width: 40px; height: 40px; border-radius: 10px; background: #f0fdf4; color: #16a34a; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.wplm-fe-rule-title strong { display: block; font-size: 16px; color: #0f172a; margin-bottom: 4px; }
.wplm-fe-rule-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.wplm-fe-badge { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 9999px; }
.wplm-fe-badge.primary { background: #eff6ff; color: #2563eb; }
.wplm-fe-badge.outline { border: 1px solid #e2e8f0; color: #475569; }
.wplm-fe-rule-actions { display: flex; align-items: center; gap: 8px; }
.wplm-fe-rule-desc { font-size: 14px; color: #475569; margin: 0 0 16px 0; }
.wplm-fe-rule-preview { background: #f8fafc; border-radius: 8px; padding: 12px; font-size: 13px; color: #334155; }
.wplm-fe-rule-if, .wplm-fe-rule-then { line-height: 1.6; }
.wplm-fe-rule-then { margin-top: 8px; }
.wplm-fe-chip { display: inline-block; background: #fff; border: 1px solid #cbd5e1; border-radius: 4px; padding: 2px 6px; font-family: monospace; font-size: 12px; color: #0f172a; }
.wplm-fe-chip.action { background: #fdf2f8; border-color: #fbcfe8; color: #be185d; }
.wplm-fe-btn-sm.danger { color: #ef4444; border-color: transparent; }
.wplm-fe-btn-sm.danger:hover { background: #fee2e2; }
.wplm-fe-btn-sm.outline { border: 1px solid #e2e8f0; background: #fff; color: #475569; }

/* Slide Panel */
.wplm-fe-slide-overlay { position: fixed; top:0; left:0; right:0; bottom:0; background: rgba(15,23,42,0.5); z-index: 1000000; opacity: 0; visibility: hidden; transition: all 0.3s; backdrop-filter: blur(2px); }
.wplm-fe-slide-overlay.active { opacity: 1; visibility: visible; }
.slide-overlay { position: fixed; inset: 0; background: rgba(15,23,42,0.5); z-index: 1000000; opacity: 0; visibility: hidden; transition: all 0.3s; backdrop-filter: blur(2px); }
.slide-overlay.active { opacity: 1; visibility: visible; }
.wplm-fe-slide-panel { position: fixed; top:0; right: 0; bottom:0; width: 100%; max-width: 600px; background: #fff; z-index: 1000001; transform: translateX(100%); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); display: flex; flex-direction: column; box-shadow: -10px 0 30px rgba(0,0,0,0.1); }
.slide-panel { position: fixed; top:0; right: 0; bottom:0; width: 100%; max-width: 600px; background: #fff; z-index: 1000001; transform: translateX(100%); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); display: flex; flex-direction: column; box-shadow: -10px 0 30px rgba(0,0,0,0.1); }
.wplm-fe-slide-panel.active { transform: translateX(0); }
.slide-panel.active { transform: translateX(0); }
.wplm-fe-slide-header { padding: 20px 24px; border-bottom: 1px solid #e2e8f0; display: flex; justify-content: space-between; align-items: center; }
.wplm-fe-slide-panel form { display: flex; flex-direction: column; flex: 1; overflow: hidden; }
.wplm-fe-slide-body { padding: 24px; flex: 1; overflow-y: auto; }
.wplm-fe-slide-footer { padding: 16px 24px; border-top: 1px solid #e2e8f0; background: #f8fafc; display: flex; justify-content: flex-end; gap: 12px; flex-shrink: 0; }
.wplm-fe-field { margin-bottom: 16px; }
.wplm-fe-field label { display: block; font-size: 13px; font-weight: 600; color: #334155; margin-bottom: 6px; }
.wplm-fe-field input[type="text"], .wplm-fe-field input[type="number"], .wplm-fe-field select, .wplm-fe-field textarea { width: 100%; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 14px; font-family: inherit; box-sizing: border-box; }
.wplm-fe-field input:focus, .wplm-fe-field select:focus { outline: none; border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,0.1); }
.wplm-fe-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.wplm-fe-divider { height: 1px; background: #e2e8f0; margin: 24px 0; }
.wplm-fe-section-title { font-size: 15px; font-weight: 700; color: #0f172a; margin: 0 0 16px 0; }

.wplm-fe-cond-row, .wplm-fe-appr-row { display: flex; align-items: center; gap: 8px; background: #f8fafc; padding: 8px; border-radius: 8px; border: 1px solid #e2e8f0; margin-bottom: 8px; }
.wplm-fe-cond-row select, .wplm-fe-cond-row input, .wplm-fe-appr-row select { padding: 8px 10px; font-size: 13px; border: 1px solid #cbd5e1; border-radius: 6px; }
.wplm-fe-cond-row .cond-field { flex: 2; }
.wplm-fe-cond-row .cond-operator { flex: 1; }
.wplm-fe-cond-row .cond-value-container { flex: 2; }
.wplm-fe-cond-row .cond-value-container input, .wplm-fe-cond-row .cond-value-container select { width: 100%; box-sizing: border-box; }
.fe-btn-remove { background: transparent; border: none; font-size: 20px; color: #ef4444; cursor: pointer; padding: 0 4px; }
.fe-btn-remove:hover { color: #b91c1c; }
.wplm-fe-appr-row .appr-label { font-size: 13px; font-weight: 600; color: #0369a1; width: 60px; }
.wplm-fe-appr-row .level-approver { flex: 1; }

/* Toggle Switch */
.wplm-fe-toggle { position: relative; display: inline-block; width: 36px; height: 20px; }
.wplm-fe-toggle input { opacity: 0; width: 0; height: 0; }
.wplm-fe-toggle-slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #cbd5e1; transition: .4s; border-radius: 20px; }
.wplm-fe-toggle-slider:before { position: absolute; content: ""; height: 16px; width: 16px; left: 2px; bottom: 2px; background-color: white; transition: .4s; border-radius: 50%; }
.wplm-fe-toggle input:checked + .wplm-fe-toggle-slider { background-color: #22c55e; }
.wplm-fe-toggle input:checked + .wplm-fe-toggle-slider:before { transform: translateX(16px); }

/* Table Styles */
.wplm-fe-table { width: 100%; border-collapse: collapse; text-align: left; }
.wplm-fe-table th { padding: 12px 16px; background: #f8fafc; color: #475569; font-size: 13px; font-weight: 600; border-bottom: 1px solid #e2e8f0; text-transform: uppercase; letter-spacing: 0; }
.wplm-fe-table td { padding: 16px; border-bottom: 1px solid #f1f5f9; font-size: 14px; vertical-align: middle; }
.wplm-fe-table tbody tr:hover { background: #f8fafc; }
.wplm-fe-form-group { margin-bottom: 16px; }
.wplm-fe-form-group label { display: block; font-size: 13px; font-weight: 600; color: #334155; margin-bottom: 6px; }
.wplm-fe-form-group .wplm-fe-input { width: 100%; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 14px; box-sizing: border-box; }
.wplm-fe-form-group .wplm-fe-input:focus { outline: none; border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,0.1); }

/* ===== Frontend Buttons ===== */
.wplm-fe-btn {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 10px 20px; border-radius: 8px; font-size: 14px;
	font-weight: 600; cursor: pointer; transition: all 0.2s;
	border: 1px solid transparent; font-family: inherit;
	text-decoration: none; line-height: 1.4;
}
.wplm-fe-btn.primary {
	background: #2563eb; color: #fff; border-color: #2563eb;
	box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}
.wplm-fe-btn.primary:hover { background: #1d4ed8; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35); }
.wplm-fe-btn.primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.wplm-fe-btn.outline {
	background: #fff; color: #475569; border-color: #e2e8f0;
}
.wplm-fe-btn.outline:hover { background: #f8fafc; border-color: #cbd5e1; color: #334155; }
.wplm-fe-btn.default {
	background: #fff; color: #475569; border-color: #d1d5db;
}
.wplm-fe-btn.default:hover { background: #f9fafb; }
.wplm-fe-btn.danger {
	background: #fef2f2; color: #dc2626; border-color: #fecaca;
}
.wplm-fe-btn.danger:hover { background: #fee2e2; border-color: #fca5a5; color: #b91c1c; }
.wplm-fe-btn.danger:disabled { opacity: 0.6; cursor: not-allowed; }

/* Small Buttons */
.wplm-fe-btn-sm {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 6px 14px; border-radius: 6px; font-size: 13px;
	font-weight: 600; cursor: pointer; transition: all 0.2s;
	border: 1px solid transparent; font-family: inherit; line-height: 1.4;
}
.wplm-fe-btn-sm.outline {
	background: #fff; color: #475569; border-color: #e2e8f0;
}
.wplm-fe-btn-sm.outline:hover { background: #f1f5f9; border-color: #cbd5e1; }
.wplm-fe-btn-sm.danger {
	background: #fef2f2; color: #dc2626; border-color: #fecaca;
}
.wplm-fe-btn-sm.danger:hover { background: #fee2e2; }

/* Badges */
.wplm-fe-badge {
	display: inline-flex; align-items: center; gap: 4px;
	padding: 3px 10px; border-radius: 20px; font-size: 11px;
	font-weight: 700; text-transform: uppercase; letter-spacing: 0;
}
.wplm-fe-badge.primary { background: #eff6ff; color: #2563eb; }
.wplm-fe-badge.success { background: #f0fdf4; color: #16a34a; }
.wplm-fe-badge.outline { background: #f8fafc; color: #64748b; border: 1px solid #e2e8f0; }
.wplm-fe-badge.danger { background: #fef2f2; color: #dc2626; }

/* ===== Frontend Alerts ===== */
.wplm-fe-alert {
	padding: 14px 18px; border-radius: 10px; font-size: 14px; line-height: 1.6;
}
.wplm-fe-alert.info {
	background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe;
}
.wplm-fe-alert.success {
	background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0;
}
.wplm-fe-alert.warning {
	background: #fffbeb; color: #92400e; border: 1px solid #fde68a;
}

/* Panel Close Button */
.fe-btn-close-panel {
	background: none; border: none; color: #94a3b8; cursor: pointer;
	padding: 4px 8px; border-radius: 6px; transition: all 0.15s; font-size: 20px;
	display: flex; align-items: center; justify-content: center; line-height: 1;
}
.fe-btn-close-panel:hover { background: #f1f5f9; color: #475569; }

/* Form Fields */
.wplm-fe-field { margin-bottom: 18px; }
.wplm-fe-field label {
	display: block; font-size: 13px; font-weight: 600;
	color: #334155; margin-bottom: 6px;
}
.wplm-fe-field input[type="text"],
.wplm-fe-field input[type="number"],
.wplm-fe-field input[type="email"],
.wplm-fe-field select,
.wplm-fe-field textarea {
	width: 100%; padding: 10px 12px; border: 1px solid #e2e8f0; border-radius: 8px;
	font-size: 14px; color: #1e293b; background: #fff; box-sizing: border-box;
	font-family: inherit; transition: border-color 0.2s, box-shadow 0.2s;
}
.wplm-fe-field input:focus,
.wplm-fe-field select:focus,
.wplm-fe-field textarea:focus {
	outline: none; border-color: #3b82f6;
	box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

/* ===== Frontend Org Chart (New) ===== */
.wplm-org-card { padding: 24px; }
.wplm-org-card h2 { margin-bottom: 0; }
.wplm-org-card-header {
	display: flex; justify-content: space-between; align-items: flex-start;
	margin-bottom: 24px; flex-wrap: wrap; gap: 16px;
}
.wplm-org-stats { display: flex; gap: 8px; }
.wplm-org-stat-chip {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 6px 14px; background: #eff6ff; color: #2563eb;
	border-radius: 20px; font-size: 13px; font-weight: 600;
}
.wplm-org-tree-container {
	background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
	padding: 40px 24px; border-radius: 16px;
	border: 1px solid #e2e8f0; overflow-x: auto;
	position: relative;
}

/* ====== Horizontal Org Chart ====== */
.wplm-tree, .wplm-tree ul {
	list-style: none; margin: 0; padding: 0;
	display: flex; justify-content: center;
	position: relative;
}
/* Root level — single column center */
.wplm-tree {
	flex-direction: column; align-items: center;
}
/* Children container — horizontal row */
.wplm-tree ul {
	flex-direction: row; align-items: flex-start;
	padding-top: 28px;
}
/* Vertical stem FROM parent node DOWN to children horizontal bar */
.wplm-tree ul::before {
	content: "";
	position: absolute; top: 0; left: 50%;
	transform: translateX(-50%);
	width: 2px; height: 28px;
	background: #93c5fd;
	border-radius: 2px;
}
/* Each li = vertical column */
.wplm-tree li {
	display: flex; flex-direction: column; align-items: center;
	position: relative; padding: 28px 10px 0 10px;
}
/* Root li: no top padding (no parent connector) */
.wplm-tree > li {
	padding-top: 0;
}
/* --- Horizontal bar across siblings --- */
/* Left half: border-top from left edge to center */
.wplm-tree ul > li::before {
	content: "";
	position: absolute; top: 0; left: 0; right: 50%;
	border-top: 2px solid #93c5fd;
	height: 0;
}
/* Right half: border-top from center to right + vertical stem down */
.wplm-tree ul > li::after {
	content: "";
	position: absolute; top: 0; left: 50%; right: 0;
	border-top: 2px solid #93c5fd;
	border-left: 2px solid #93c5fd;
	height: 28px;
}
/* First child: no left horizontal (only right half + stem) */
.wplm-tree ul > li:first-child::before {
	border-top: none;
}
/* Last child: no right horizontal (only left half + stem) */
.wplm-tree ul > li:last-child::after {
	border-top: none;
}
/* Only child: no horizontal bar at all, just vertical stem */
.wplm-tree ul > li:only-child::before {
	border: none;
}
.wplm-tree ul > li:only-child::after {
	border-top: none;
	right: auto; left: 50%;
	transform: translateX(-50%);
	width: 0; border-left: 2px solid #93c5fd;
	height: 28px;
}

/* Node Styles — Elegant Horizontal Card */
.wplm-org-node {
	display: flex; flex-direction: row; align-items: center;
	gap: 10px; text-align: left;
	background: #ffffff; padding: 10px 16px; border-radius: 40px;
	border: 1px solid #e2e8f0; cursor: pointer;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 2px 8px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.03);
	position: relative; z-index: 1;
	white-space: nowrap;
}
.wplm-org-node:hover {
	border-color: #a5b4fc; transform: translateY(-3px) scale(1.02);
	box-shadow: 0 8px 24px -4px rgba(99, 102, 241, 0.18), 0 2px 6px rgba(0,0,0,0.04);
}
.wplm-org-node:active {
	transform: translateY(-1px) scale(1.01);
}
/* Icon — circle avatar */
.wplm-node-icon {
	font-size: 18px; width: 36px; height: 36px; display: flex;
	align-items: center; justify-content: center;
	border-radius: 50%; flex-shrink: 0;
	background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
	box-shadow: 0 2px 6px rgba(59,130,246,0.12);
}
/* Text group (name + badge stacked) */
.wplm-org-node > div { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
/* Node text */
.wplm-node-name {
	font-weight: 600; font-size: 12px; color: #1e293b;
	white-space: nowrap; letter-spacing: 0;
	overflow: hidden; text-overflow: ellipsis;
}
/* Type badge — subtle inline */
.wplm-node-type-badge {
	font-size: 9px; font-weight: 600; text-transform: uppercase;
	letter-spacing: 0; color: #94a3b8; white-space: nowrap;
	padding: 0; background: none; border-radius: 0;
}
/* Employee count pill */
.wplm-node-count {
	font-size: 9px; font-weight: 700; color: #6366f1;
	background: #eef2ff;
	padding: 2px 8px; border-radius: 20px;
	white-space: nowrap; border: 1px solid #e0e7ff;
	margin-left: 4px; flex-shrink: 0;
}

/* --- Per-type color accents --- */
/* Company (root) — larger, golden */
.wplm-tree > li > .wplm-org-node {
	background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
	border-color: #fbbf24; border-width: 2px;
	padding: 12px 20px; border-radius: 40px;
	box-shadow: 0 4px 14px -2px rgba(251, 191, 36, 0.2);
}
.wplm-tree > li > .wplm-org-node .wplm-node-icon {
	background: linear-gradient(135deg, #fde68a, #fbbf24);
	width: 40px; height: 40px; font-size: 20px;
	box-shadow: 0 2px 8px rgba(251,191,36,0.25);
}
.wplm-tree > li > .wplm-org-node .wplm-node-name {
	font-size: 14px; font-weight: 700;
}
.wplm-tree > li > .wplm-org-node .wplm-node-type-badge {
	color: #b45309; font-weight: 700;
}
.wplm-tree > li > .wplm-org-node:hover {
	border-color: #f59e0b;
	box-shadow: 0 10px 28px -4px rgba(245, 158, 11, 0.25);
	transform: translateY(-3px) scale(1.03);
}

/* Responsive: stack vertically on small screens */
@media (max-width: 768px) {
	.wplm-tree ul {
		flex-direction: column; align-items: center;
		padding-top: 0; padding-left: 24px;
	}
	.wplm-tree ul::after { display: none; }
	.wplm-tree ul > li::before {
		top: 50%; left: -24px; width: 24px; height: 3px;
	}
	.wplm-tree li { padding: 6px 0; }
	.wplm-org-node { flex-direction: row; text-align: left; min-width: unset; max-width: unset; }
}

/* Detail Panel */
.wplm-org-detail-hero {
	display: flex; align-items: flex-start; gap: 16px; margin-bottom: 24px;
}
.wplm-org-detail-icon-wrap {
	font-size: 24px; width: 64px; height: 64px; background: #eff6ff;
	border-radius: 16px; display: flex; align-items: center; justify-content: center;
	color: #2563eb; flex-shrink: 0;
}
.wplm-org-detail-main { flex: 1; min-width: 0; }
.wplm-org-detail-main h2 { margin: 0 0 8px 0; font-size: 20px; color: #0f172a; }
.wplm-detail-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.wplm-section-divider { height: 1px; background: #e2e8f0; margin: 0 0 24px 0; }
.wplm-list-title { font-size: 14px; font-weight: 700; color: #475569; margin: 0 0 16px 0; text-transform: uppercase; letter-spacing: 0; }

/* Employee List */
.wplm-org-emp-list { border: 1px solid #e2e8f0; border-radius: 8px; background: #fff; overflow: hidden; }
.wplm-org-emp-item {
	display: flex; align-items: center; gap: 12px; padding: 16px;
	border-bottom: 1px solid #f1f5f9; transition: background 0.2s;
}
.wplm-org-emp-item:last-child { border-bottom: none; }
.wplm-org-emp-item:hover { background: #f8fafc; }
.wplm-mini-avatar {
	width: 40px; height: 40px; border-radius: 50%; background: #e2e8f0;
	color: #475569; display: flex; align-items: center; justify-content: center;
	font-weight: 700; font-size: 14px; flex-shrink: 0;
}
.wplm-emp-meta { min-width: 0; flex: 1; }
.wplm-emp-meta strong { display: block; font-size: 14px; color: #1e293b; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wplm-emp-meta span { display: block; font-size: 13px; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* States */
.wplm-loading-small { padding: 40px; text-align: center; color: #64748b; font-size: 14px; font-style: italic; }
.wplm-empty-mini { padding: 40px; text-align: center; color: #64748b; font-size: 14px; }
.wplm-fe-empty-state { text-align: center; padding: 60px 20px; }
.wplm-empty-icon { font-size: 48px; margin-bottom: 16px; opacity: 0.5; }
.wplm-fe-empty-state h3 { font-size: 18px; color: #334155; margin: 0 0 8px 0; }
.wplm-fe-empty-state p { color: #64748b; margin: 0; font-size: 14px; }

/* Form Elements */
.wplm-fe-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.required { color: #ef4444; }

/* ====== CHAT MODULE ====== */
.wplm-chat-layout {
	display: flex; border-radius: 16px; overflow: hidden;
	border: 1px solid #e2e8f0; background: #fff;
	height: calc(100vh - 230px); min-height: 480px;
}

/* --- Sidebar --- */
.wplm-chat-sidebar {
	width: 300px; min-width: 260px; border-right: 1px solid #e2e8f0;
	display: flex; flex-direction: column; background: #f8fafc;
}
.wplm-chat-search {
	padding: 12px; border-bottom: 1px solid #e2e8f0;
}
.wplm-chat-search input {
	width: 100%; padding: 8px 14px; border: 1px solid #e2e8f0;
	border-radius: 20px; font-size: 13px; background: #fff;
	outline: none; transition: border-color 0.2s;
}
.wplm-chat-search input:focus { border-color: #93c5fd; }
.wplm-chat-group-list {
	list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1;
}
.wplm-chat-group-item {
	display: flex; align-items: center; gap: 12px;
	padding: 12px 16px; cursor: pointer;
	border-bottom: 1px solid #f1f5f9;
	transition: background 0.15s;
}
.wplm-chat-group-item:hover { background: #eff6ff; }
.wplm-chat-group-item.active { background: #dbeafe; border-left: 3px solid #3b82f6; }
.wplm-chat-group-avatar {
	width: 40px; height: 40px; border-radius: 50%;
	background: linear-gradient(135deg, #3b82f6, #6366f1);
	color: #fff; display: flex; align-items: center; justify-content: center;
	font-weight: 700; font-size: 16px; flex-shrink: 0;
}
.wplm-chat-group-info { flex: 1; min-width: 0; }
.wplm-chat-group-info h4 {
	font-size: 13px; font-weight: 600; color: #1e293b; margin: 0;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wplm-chat-group-info p {
	font-size: 12px; color: #94a3b8; margin: 2px 0 0 0;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wplm-chat-group-info p.empty { font-style: italic; }
.wplm-chat-badge {
	background: #ef4444; color: #fff; font-size: 10px; font-weight: 700;
	padding: 2px 7px; border-radius: 10px; flex-shrink: 0;
	min-width: 18px; text-align: center;
}
.wplm-chat-empty {
	padding: 40px 20px; text-align: center; color: #94a3b8;
	font-size: 13px; list-style: none;
}

/* --- Main Chat Area --- */
.wplm-chat-main {
	flex: 1; display: flex; flex-direction: column; min-width: 0;
}
.wplm-chat-placeholder {
	flex: 1; display: flex; flex-direction: column;
	align-items: center; justify-content: center; color: #94a3b8;
}
.wplm-chat-placeholder div { font-size: 48px; margin-bottom: 12px; }
.wplm-chat-placeholder h3 { margin: 0 0 4px 0; color: #64748b; font-size: 16px; }
.wplm-chat-placeholder p { margin: 0; font-size: 13px; }

/* Header */
.wplm-chat-header {
	padding: 12px 20px; border-bottom: 1px solid #e2e8f0;
	display: flex; align-items: center; justify-content: space-between;
	background: #fff;
}
.wplm-chat-back { display: none; }
.wplm-chat-header-info h3 { margin: 0; font-size: 15px; color: #1e293b; }
.wplm-chat-header-info span { font-size: 12px; color: #94a3b8; }
.wplm-chat-header-actions { display: flex; gap: 6px; }

/* Messages */
.wplm-chat-messages {
	flex: 1; overflow-y: auto; padding: 20px;
	display: flex; flex-direction: column; gap: 6px;
	background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}
.wplm-chat-loading { text-align: center; color: #94a3b8; padding: 40px; }

/* Message Bubble (Messenger Style) */
.wplm-msg {
	display: flex;
	gap: 8px;
	max-width: 85%;
	margin-bottom: 2px; /* Close grouping */
	align-items: flex-end;
}

.wplm-msg.mine {
	margin-left: auto;
	flex-direction: row-reverse;
}

.wplm-msg-avatar {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #f1f5f9;
	color: #64748b;
	font-size: 10px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	margin-bottom: 2px;
}

.wplm-msg-body {
	display: flex;
	flex-direction: column;
	max-width: 100%;
}

.wplm-msg-name {
	font-size: 11px;
	color: #8e8e8e;
	margin: 0 0 2px 12px;
	font-weight: 500;
}

.wplm-msg.mine .wplm-msg-name {
	display: none; /* Messenger doesn't show your own name */
}

.wplm-msg-bubble {
	padding: 8px 12px;
	border-radius: 18px;
	font-size: 14px;
	line-height: 1.4;
	word-break: break-word;
	background: #e4e6eb; /* Messenger gray */
	color: #050505;
	border: none;
	position: relative;
}

.wplm-msg.mine .wplm-msg-bubble {
	background: linear-gradient(135deg, #0084ff, #0078ff);
	color: #fff;
	border-radius: 18px 18px 4px 18px;
}

.wplm-msg:not(.mine) .wplm-msg-bubble {
	border-radius: 18px 18px 18px 4px;
}

.wplm-msg-time-center {
	width: 100%;
	text-align: center;
	font-size: 11px;
	color: #8e8e8e;
	margin: 16px 0 8px 0;
	font-weight: 500;
	clear: both;
}

.wplm-msg-delete {
	background: none; border: none; color: #cbd5e1; cursor: pointer;
	font-size: 14px; line-height: 1; padding: 0 2px;
	opacity: 0; transition: opacity 0.15s;
}

.wplm-msg:hover .wplm-msg-delete { opacity: 1; }
.wplm-msg-delete:hover { color: #ef4444; }

/* Input */
.wplm-chat-input {
	padding: 12px 16px; border-top: 1px solid #e2e8f0; background: #fff;
}
.wplm-chat-input form {
	display: flex; gap: 8px; align-items: center;
}
.wplm-chat-input input {
	flex: 1; padding: 10px 16px; border: 1px solid #e2e8f0;
	border-radius: 24px; font-size: 13px; outline: none;
	transition: border-color 0.2s;
}
.wplm-chat-input input:focus { border-color: #3b82f6; }
.wplm-chat-input .wplm-fe-btn { border-radius: 24px; padding: 10px 20px; }

/* --- Member Picker --- */
.wplm-chat-member-picker {
	max-height: 240px; overflow-y: auto; border: 1px solid #e2e8f0;
	border-radius: 8px; padding: 4px;
}
.wplm-dept-group {
	margin-bottom: 4px;
}
.wplm-dept-header {
	display: flex !important; flex-direction: row !important; align-items: center !important;
	gap: 8px; padding: 8px 10px; background: #f1f5f9; border-radius: 6px;
	cursor: pointer; font-weight: 600; font-size: 13px; color: #334155;
	margin-bottom: 2px; position: sticky; top: 0; z-index: 1;
}
.wplm-dept-header:hover { background: #e2e8f0; }
.wplm-dept-header input[type="checkbox"] { margin: 0 !important; accent-color: #3b82f6; width: 16px; height: 16px; flex-shrink: 0; }
.wplm-dept-name { flex: 1; }
.wplm-dept-count { font-size: 11px; color: #94a3b8; font-weight: 400; }
.wplm-dept-group .wplm-member-option { padding-left: 20px; }
.wplm-member-option {
	display: flex !important; flex-direction: row !important; align-items: center !important;
	gap: 10px; padding: 8px 10px; border-radius: 6px; cursor: pointer;
	transition: background 0.15s; width: 100%;
}
.wplm-member-option:hover { background: #f1f5f9; }
.wplm-member-option input[type="checkbox"] { margin: 0 !important; accent-color: #3b82f6; width: 16px; height: 16px; flex-shrink: 0; }
.wplm-member-avatar {
	width: 32px; height: 32px; border-radius: 50%;
	background: #eff6ff; color: #3b82f6; font-size: 11px; font-weight: 700;
	display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.wplm-member-name { font-size: 13px; color: #334155; }

/* Members list in panel */
.wplm-chat-members-list { list-style: none; margin: 0; padding: 0; }
.wplm-chat-member-item {
	display: flex; align-items: center; gap: 12px;
	padding: 10px 0; border-bottom: 1px solid #f1f5f9;
}
.wplm-chat-member-avatar {
	width: 36px; height: 36px; border-radius: 50%;
	background: linear-gradient(135deg, #eff6ff, #dbeafe);
	color: #3b82f6; font-weight: 700; font-size: 14px;
	display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.wplm-chat-member-info { flex: 1; min-width: 0; }
.wplm-chat-member-info strong { font-size: 13px; color: #1e293b; }
.wplm-chat-member-info small { color: #94a3b8; font-size: 12px; }
.wplm-chat-role-tag {
	background: #dbeafe; color: #2563eb; font-size: 10px;
	padding: 1px 6px; border-radius: 4px; font-weight: 600;
	margin-left: 6px;
}

/* Sidebar badge */
.wplm-chat-menu-badge {
	background: #ef4444; color: #fff; font-size: 10px; font-weight: 700;
	padding: 1px 6px; border-radius: 10px; margin-left: auto;
	min-width: 16px; text-align: center;
}

/* --- Attachment UI --- */
.wplm-chat-attach-btn {
	background: none; border: none; font-size: 20px; cursor: pointer;
	padding: 8px; border-radius: 50%; transition: all 0.2s;
	line-height: 1; flex-shrink: 0;
	color: #94a3b8;
	display: flex; align-items: center; justify-content: center;
}
.wplm-chat-attach-btn:hover { background: #f1f5f9; color: #2563eb; }
.wplm-chat-attach-btn svg { display: block; }
.wplm-chat-attach-preview {
	display: flex; align-items: center; gap: 8px;
	padding: 6px 14px; background: #eff6ff; border-radius: 8px;
	margin-bottom: 8px; font-size: 12px; color: #3b82f6;
}
.wplm-chat-attach-preview span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wplm-chat-attach-remove {
	background: none; border: none; font-size: 16px; cursor: pointer;
	color: #94a3b8; padding: 0 4px; line-height: 1;
}
.wplm-chat-attach-remove:hover { color: #ef4444; }
/* Inline image in bubble */
.wplm-msg-img {
	max-width: 240px; max-height: 200px; border-radius: 8px;
	display: block; margin-bottom: 4px; cursor: pointer;
}
.wplm-msg.mine .wplm-msg-img { margin-left: auto; }
/* File link in bubble */
.wplm-msg-file {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 6px 12px; background: rgba(0,0,0,0.04); border-radius: 8px;
	font-size: 12px; color: #3b82f6; text-decoration: none;
	margin-bottom: 4px;
}
.wplm-msg.mine .wplm-msg-file { background: rgba(255,255,255,0.15); color: #fff; }
.wplm-msg-file:hover { text-decoration: underline; }

/* --- Voice Recording UI --- */
.wplm-chat-voice-preview {
	display: flex; align-items: center; gap: 10px;
	padding: 8px 14px; background: #fef2f2; border-radius: 8px;
	margin-bottom: 8px; border: 1px solid #fecaca;
}
.wplm-voice-indicator {
	font-size: 18px;
	animation: wplm-pulse 1s ease-in-out infinite;
}
@keyframes wplm-pulse {
	0%, 100% { opacity: 1; transform: scale(1); }
	50% { opacity: 0.5; transform: scale(1.2); }
}
#fe-chat-voice-timer {
	font-size: 14px; font-weight: 600; color: #dc2626;
	font-variant-numeric: tabular-nums; min-width: 36px;
}
/* Voice message in bubble */
.wplm-msg-voice {
	display: flex; align-items: center; gap: 12px;
	min-width: 160px; padding: 4px 0;
}
.wplm-voice-play {
	width: 32px; height: 32px; border-radius: 50%;
	background: rgba(255,255,255,0.2);
	display: flex; align-items: center; justify-content: center;
	cursor: pointer; font-size: 12px; transition: all 0.2s;
}
.wplm-msg.mine .wplm-voice-play { background: rgba(255,255,255,0.25); color: #fff; }
.wplm-msg:not(.mine) .wplm-voice-play { background: #e2e8f0; color: #2563eb; }

.wplm-voice-wave {
	display: flex; align-items: flex-end; gap: 3px; height: 16px; flex: 1;
}
.wplm-voice-wave span {
	width: 3px; height: 40%; border-radius: 2px;
	background: currentColor; opacity: 0.5;
}
.wplm-voice-wave.active span {
	animation: wplm-wave-anim 0.8s ease-in-out infinite alternate;
}
.wplm-voice-wave span:nth-child(2) { animation-delay: 0.1s; height: 70%; }
.wplm-voice-wave span:nth-child(3) { animation-delay: 0.2s; height: 50%; }
.wplm-voice-wave span:nth-child(4) { animation-delay: 0.3s; height: 85%; }

@keyframes wplm-wave-anim {
	from { height: 20%; }
	to { height: 100%; }
}

.wplm-msg-text { margin-top: 4px; }
.wplm-msg-bubble { overflow: hidden; }
.wplm-msg.mine .wplm-msg-voice audio {
	filter: brightness(2) contrast(0.8);
}

/* Responsive */
@media (max-width: 768px) {
	.wplm-chat-layout { flex-direction: column; height: calc(100vh - 180px); }
	.wplm-chat-sidebar { width: 100%; min-width: unset; max-height: 200px; border-right: none; border-bottom: 1px solid #e2e8f0; }
}

/* =============================================
   MOBILE APP DESIGN - Employee Dashboard
   Inspired by Grab App UI
   ============================================= */

/* Bottom Navigation Bar */
.wplm-mobile-nav {
	display: none;
	position: fixed;
	bottom: 0; left: 0; right: 0;
	background: #fff;
	border-top: 1px solid #f1f5f9;
	padding: 6px 0 max(6px, env(safe-area-inset-bottom));
	z-index: 999999;
	box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
}

.wplm-mobile-nav-inner {
	display: flex;
	justify-content: space-around;
	align-items: center;
	max-width: 500px;
	margin: 0 auto;
}

.wplm-mobile-nav a {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	padding: 6px 12px;
	border-radius: 12px;
	text-decoration: none;
	color: #94a3b8;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0;
	transition: all 0.2s;
	-webkit-tap-highlight-color: transparent;
}

.wplm-mobile-nav a.active {
	color: #3b82f6;
}

.wplm-mobile-nav a.active .wplm-mnav-icon {
	background: linear-gradient(135deg, #eff6ff, #dbeafe);
	color: #3b82f6;
}

.wplm-mnav-icon {
	width: 36px; height: 36px;
	border-radius: 12px;
	display: flex; align-items: center; justify-content: center;
	transition: all 0.25s;
}

.wplm-mobile-nav a:active .wplm-mnav-icon {
	transform: scale(0.9);
}

/* Mobile Greeting Header */
.wplm-mobile-greeting {
	display: none;
	padding: 20px 0 8px 0;
}

.wplm-mobile-greeting h2 {
	margin: 0 0 2px 0;
	font-size: 22px;
	font-weight: 700;
	color: #0f172a;
}

.wplm-mobile-greeting p {
	margin: 0;
	font-size: 13px;
	color: #94a3b8;
	font-weight: 400;
}

.wplm-mobile-greeting-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.wplm-mobile-avatar-lg {
	width: 44px; height: 44px;
	border-radius: 50%;
	background: linear-gradient(135deg, #3b82f6, #8b5cf6);
	color: #fff;
	display: flex; align-items: center; justify-content: center;
	font-weight: 700; font-size: 16px;
	box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Mobile Quick Actions */
.wplm-mobile-actions {
	display: none;
	gap: 12px;
	margin: 16px 0;
}

.wplm-mobile-action-btn {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	background: #fff;
	border: none;
	border-radius: 16px;
	padding: 16px 8px;
	box-shadow: 0 2px 12px rgba(0,0,0,0.04);
	cursor: pointer;
	transition: all 0.2s;
	-webkit-tap-highlight-color: transparent;
}

.wplm-mobile-action-btn:active {
	transform: scale(0.96);
	box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}

.wplm-mobile-action-icon {
	width: 48px; height: 48px;
	border-radius: 14px;
	display: flex; align-items: center; justify-content: center;
}

.wplm-mobile-action-icon.blue { background: linear-gradient(135deg, #eff6ff, #dbeafe); color: #3b82f6; }
.wplm-mobile-action-icon.orange { background: linear-gradient(135deg, #fff7ed, #fed7aa); color: #f97316; }
.wplm-mobile-action-icon.green { background: linear-gradient(135deg, #f0fdf4, #bbf7d0); color: #22c55e; }
.wplm-mobile-action-icon.purple { background: linear-gradient(135deg, #faf5ff, #e9d5ff); color: #a855f7; }

.wplm-mobile-action-btn span {
	font-size: 12px;
	font-weight: 600;
	color: #475569;
}

/* Section Title for Mobile */
.wplm-mobile-section-title {
	display: none;
	justify-content: space-between;
	align-items: center;
	margin: 20px 0 12px 0;
}

.wplm-mobile-section-title h3 {
	margin: 0;
	font-size: 17px;
	font-weight: 700;
	color: #0f172a;
}

.wplm-mobile-section-title a {
	font-size: 13px;
	color: #3b82f6;
	text-decoration: none;
	font-weight: 600;
}

/* ===== MOBILE MEDIA QUERY ===== */
@media (max-width: 640px) {

	/* Show mobile-only elements */
	.wplm-mobile-nav { display: block; }
	.wplm-mobile-greeting { display: block; }
	.wplm-mobile-actions { display: flex; }
	.wplm-mobile-section-title { display: flex; }

	/* Hide desktop elements on mobile */
	.wplm-emp-topbar { display: none; }

	/* Overall wrapper - app-like feel */
	.wplm-emp-wrapper {
		background: #f8fafc;
		padding: 16px 16px 100px 16px;
		border-radius: 0;
		box-shadow: none;
		min-height: 100vh;
		box-sizing: border-box;
	}

	/* Metric Cards - 2x2 compact grid */
	.wplm-metric-grid {
		grid-template-columns: 1fr 1fr;
		gap: 10px;
		margin-bottom: 0;
	}

	.wplm-metric-card {
		border-radius: 16px;
		padding: 14px;
		gap: 10px;
		flex-direction: column;
		align-items: flex-start;
		box-shadow: 0 2px 12px rgba(0,0,0,0.04);
		position: relative;
		overflow: hidden;
	}

	.wplm-metric-card::after {
		content: '';
		position: absolute;
		top: -20px; right: -20px;
		width: 60px; height: 60px;
		border-radius: 50%;
		opacity: 0.08;
	}

	.wplm-metric-card:nth-child(1)::after { background: #3b82f6; }
	.wplm-metric-card:nth-child(2)::after { background: #f97316; }
	.wplm-metric-card:nth-child(3)::after { background: #22c55e; }
	.wplm-metric-card:nth-child(4)::after { background: #a855f7; }

	.wplm-metric-icon {
		width: 36px; height: 36px;
		border-radius: 10px;
		font-size: 16px;
	}

	.wplm-metric-info h3 {
		font-size: 22px;
		font-weight: 800;
	}

	.wplm-metric-info p {
		font-size: 11px;
		font-weight: 500;
		color: #94a3b8;
		text-transform: uppercase;
		letter-spacing: 0;
	}

	/* Middle Grid - stack vertically */
	.wplm-middle-grid {
		grid-template-columns: 1fr;
		gap: 16px;
		margin-bottom: 16px;
	}

	/* Cards */
	.wplm-card {
		border-radius: 16px;
		padding: 16px;
		box-shadow: 0 2px 12px rgba(0,0,0,0.04);
	}

	.wplm-card h2 {
		font-size: 16px;
		margin: 0 0 14px 0;
	}

	/* Mini Calendar compact */
	.wplm-mini-cal th { padding: 6px; font-size: 11px; }
	.wplm-mini-cal td { padding: 8px 4px; font-size: 13px; }
	.wplm-mini-cal td.today { border-radius: 10px; }
	.wplm-mini-cal td.leave { border-radius: 10px; }

	/* Quota Progress */
	.wplm-quota-item { margin-bottom: 14px; }
	.wplm-quota-header { font-size: 13px; }
	.wplm-quota-bar { height: 6px; border-radius: 3px; }
	.wplm-quota-fill { border-radius: 3px; }

	/* Activity List - Grab-style cards */
	.wplm-activity-list {
		display: flex;
		flex-direction: column;
		gap: 10px;
	}

	.wplm-activity-item {
		background: #fff;
		border-radius: 14px;
		padding: 14px;
		border-bottom: none;
		gap: 12px;
		box-shadow: 0 1px 8px rgba(0,0,0,0.04);
		transition: transform 0.15s;
	}

	.wplm-activity-item:active {
		transform: scale(0.98);
	}

	.wplm-activity-item:last-child {
		border-bottom: none;
	}

	.wplm-avatar {
		width: 36px; height: 36px;
		font-size: 12px;
		border-radius: 10px;
		flex-shrink: 0;
	}

	.wplm-activity-info h4 {
		font-size: 13px;
		font-weight: 600;
	}

	.wplm-badge {
		font-size: 11px;
		padding: 3px 8px;
		border-radius: 8px;
		margin-top: 4px;
	}

	/* Leave request card - Recent Activity parent */
	.wplm-card:last-child {
		background: transparent;
		box-shadow: none;
		padding: 0;
	}

	.wplm-card:last-child h2 {
		padding: 0 4px;
	}

	/* Modal - full screen on mobile */
	.wplm-modal {
		align-items: flex-end;
	}

	.wplm-modal-content {
		max-width: 100%;
		border-radius: 20px 20px 0 0;
		max-height: 92vh;
		animation: wplm-slide-up 0.3s ease-out;
	}

	.wplm-modal-header {
		padding: 16px 20px;
	}

	.wplm-modal-header h3 {
		font-size: 17px;
	}

	.wplm-modal-body {
		padding: 16px 20px;
	}

	.wplm-modal-footer {
		padding: 12px 20px max(12px, env(safe-area-inset-bottom));
	}

	.wplm-field input,
	.wplm-field select,
	.wplm-field textarea {
		padding: 12px 14px;
		border-radius: 12px;
		font-size: 15px;
		border-color: #e2e8f0;
	}

	.wplm-field input:focus,
	.wplm-field select:focus,
	.wplm-field textarea:focus {
		border-color: #3b82f6;
		box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
		outline: none;
	}

	.wplm-field label {
		font-size: 13px;
		font-weight: 600;
		color: #475569;
	}

	.wplm-btn-new {
		width: 100%;
		justify-content: center;
		padding: 14px 20px;
		border-radius: 14px;
		font-size: 15px;
		box-shadow: 0 4px 16px rgba(59, 130, 246, 0.25);
	}

	.wplm-btn-secondary {
		padding: 14px 20px;
		border-radius: 14px;
		font-size: 15px;
	}

	/* FAB Button for mobile */
	.wplm-mobile-fab {
		display: flex !important;
	}
}

@keyframes wplm-slide-up {
	from { transform: translateY(100%); }
	to { transform: translateY(0); }
}

/* FAB (Floating Action Button) */
.wplm-mobile-fab {
	display: none;
	position: fixed;
	bottom: 88px;
	right: 20px;
	width: 56px; height: 56px;
	border-radius: 16px;
	background: linear-gradient(135deg, #3b82f6, #2563eb);
	color: #fff;
	border: none;
	align-items: center;
	justify-content: center;
	box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
	z-index: 999998;
	cursor: pointer;
	transition: all 0.2s;
	-webkit-tap-highlight-color: transparent;
}

.wplm-mobile-fab:active {
	transform: scale(0.9);
}

.wplm-mobile-fab svg {
	width: 24px; height: 24px;
}

.wplm-mode-fab {
	position: fixed;
	right: 24px;
	bottom: 86px;
	z-index: 1000001;
	width: 56px;
	height: 56px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: linear-gradient(135deg, #3b82f6, #2563eb);
	color: #fff;
	display: flex !important;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 20px rgba(37, 99, 235, 0.35);
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	-webkit-tap-highlight-color: transparent;
}

.wplm-mode-fab:hover {
	transform: scale(1.08);
	box-shadow: 0 6px 28px rgba(37, 99, 235, 0.45);
}

.wplm-mode-fab:active {
	transform: scale(0.95);
}

.wplm-mode-fab svg {
	width: 24px;
	height: 24px;
	flex-shrink: 0;
}

.wplm-mode-fab--stacked {
	bottom: 150px;
}

@media (max-width: 768px) {
	.wplm-mode-fab {
		right: 16px;
		bottom: calc(var(--wplm-mobile-nav-reserve, 72px) + 78px);
		width: 56px;
		height: 56px;
		border-radius: 50%;
		box-shadow: 0 4px 20px rgba(37, 99, 235, 0.35) !important;
	}

	.wplm-mode-fab:hover {
		box-shadow: none !important;
	}

	.wplm-mode-fab--stacked {
		bottom: calc(var(--wplm-mobile-nav-reserve, 72px) + 146px);
	}
}

.wplm-fab-draggable {
	touch-action: none;
	user-select: none;
	-webkit-user-select: none;
	will-change: left, top;
}

.wplm-fab-draggable.is-dragging {
	cursor: grabbing !important;
	transition: none !important;
}

/* Smooth page transitions */
.wplm-emp-wrapper * {
	-webkit-tap-highlight-color: transparent;
}

/* iOS-style safe area */
@supports (padding: env(safe-area-inset-bottom)) {
	.wplm-mobile-nav {
		padding-bottom: calc(6px + env(safe-area-inset-bottom));
	}
}
@media (max-width: 640px) {
	/* Canonical mobile app shell. Only the app wrapper is fixed; content scrolls in .wplm-app-main. */
	html.wplm-app-mode,
	html.wplm-app-mode body {
		width: 100%;
		min-height: 100%;
		margin: 0;
		padding: 0;
		background: #f8fafc;
		overscroll-behavior: none;
	}

	html.wplm-app-mode body {
		overflow-x: hidden;
	}

	html.wplm-app-mode #page,
	html.wplm-app-mode .site,
	html.wplm-app-mode #content,
	html.wplm-app-mode #primary,
	html.wplm-app-mode #main {
		min-height: 100%;
		margin: 0 !important;
		padding: 0 !important;
		background: #f8fafc !important;
	}

	html.wplm-app-mode .wplm-app-layout {
		position: fixed !important;
		inset: 0 !important;
		display: flex !important;
		flex-direction: column !important;
		width: 100% !important;
		height: 100dvh !important;
		min-height: 0 !important;
		padding: 0 !important;
		background: #f8fafc !important;
		overflow: hidden !important;
		z-index: 999999 !important;
	}

	html.wplm-app-mode .wplm-app-sidebar,
	html.wplm-app-mode .wplm-sidebar-hover-zone,
	html.wplm-app-mode .wplm-notion-desktop-header {
		display: none !important;
	}

	html.wplm-app-mode .wplm-app-main {
		flex: 1 1 auto !important;
		min-width: 0 !important;
		min-height: 0 !important;
		padding: 0 0 72px 0 !important;
		background: #f8fafc !important;
		overflow-y: auto !important;
		-webkit-overflow-scrolling: touch;
		overscroll-behavior: contain;
	}

	html.wplm-app-mode .wplm-app-main .wplm-emp-wrapper,
	html.wplm-app-mode .wplm-app-main .wplm-task-wrapper {
		width: 100%;
		max-width: 100% !important;
		margin: 0 !important;
		box-sizing: border-box;
	}

	html.wplm-app-mode .wplm-app-main .wplm-emp-wrapper {
		padding: 16px !important;
		background: #f8fafc !important;
	}

	html.wplm-app-mode .wplm-app-main .wplm-chat-wrapper {
		flex: 1 1 auto;
		min-height: 0;
		padding: 0 !important;
		display: flex;
		flex-direction: column;
	}

	html.wplm-app-mode .wplm-app-main > div:not(.wplm-mob-header):not(.wplm-task-wrapper):not(.wplm-chat-wrapper),
	html.wplm-app-mode .wplm-app-main > section {
		padding-left: 16px;
		padding-right: 16px;
	}

	html.wplm-app-mode .wplm-app-main > .wplm-chat-wrapper {
		padding-left: 0 !important;
		padding-right: 0 !important;
	}

	.wplm-admin-mobile-nav {
		display: flex !important;
		position: fixed !important;
		left: 0 !important;
		right: 0 !important;
		bottom: 0 !important;
		width: 100% !important;
		max-width: 100% !important;
		z-index: 1000002 !important;
		background: rgba(255,255,255,0.97);
		border-top: 1px solid rgba(0,0,0,0.06);
		padding: 6px 0 max(8px, env(safe-area-inset-bottom));
		box-shadow: none !important;
		box-sizing: border-box;
	}

	.wplm-admin-mobile-nav.chat-active-hidden {
		display: none !important;
	}

	.wplm-admin-mobile-nav .wplm-amnav-inner {
		display: flex;
		width: 100% !important;
		padding: 0 4px;
		box-sizing: border-box;
	}

	.wplm-admin-mobile-nav a {
		flex: 1 1 0;
		min-width: 0;
	}

	html.wplm-app-mode .wplm-chat-layout {
		display: flex;
		flex-direction: column;
		height: calc(100dvh - 72px) !important;
		min-height: 0 !important;
		margin: 0 !important;
		border: none !important;
		border-radius: 0 !important;
		box-shadow: none !important;
		background: #fff !important;
		overflow: hidden !important;
		position: relative;
	}

	html.wplm-app-mode .mobile-chat-open.wplm-chat-layout {
		position: fixed !important;
		inset: 0 !important;
		width: 100% !important;
		height: 100dvh !important;
		z-index: 2000000 !important;
	}

	.wplm-chat-sidebar,
	.wplm-chat-main {
		height: 100%;
		min-height: 0;
	}

	.wplm-chat-sidebar {
		display: flex;
		flex-direction: column;
		width: 100% !important;
		min-width: 0 !important;
		border: none !important;
		background: #fff !important;
		overflow: hidden !important;
	}

	.wplm-chat-group-list {
		flex: 1;
		min-height: 0;
		overflow-y: auto !important;
		-webkit-overflow-scrolling: touch;
	}

	.wplm-chat-main {
		position: absolute;
		inset: 0;
		display: flex !important;
		flex-direction: column;
		width: 100%;
		background: #fff !important;
		border: none !important;
		transform: translateX(100%);
		transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
		z-index: 10;
	}

	.mobile-chat-open .wplm-chat-main {
		transform: translateX(0);
	}

	.wplm-chat-back {
		display: flex !important;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		color: #2563eb;
		margin-right: 4px;
		flex-shrink: 0;
	}

	.wplm-chat-header {
		padding: max(12px, env(safe-area-inset-top)) 12px 10px 12px;
		background: #fff;
		border-bottom: 1px solid #f1f5f9;
		flex-shrink: 0;
	}

	.wplm-chat-messages {
		flex: 1;
		min-height: 0;
		overflow-y: auto !important;
		-webkit-overflow-scrolling: touch;
		padding: 16px 12px;
		background: #fff;
	}

	.wplm-msg { max-width: 85%; }

	.wplm-msg-bubble {
		padding: 10px 16px;
		font-size: 14px;
		border-radius: 18px;
		box-shadow: 0 1px 2px rgba(0,0,0,0.05);
		background: #f1f5f9;
		border: none;
	}

	.wplm-msg.mine .wplm-msg-bubble {
		background: linear-gradient(135deg, #3b82f6, #2563eb);
		color: #fff;
		border-radius: 18px 18px 4px 18px;
	}

	.wplm-chat-input {
		position: relative;
		display: flex;
		flex-shrink: 0;
		padding: 10px 12px max(12px, env(safe-area-inset-bottom));
		background: #fff;
		border-top: 1px solid #f1f5f9;
		z-index: 100;
	}

	.wplm-chat-input form {
		gap: 6px;
		width: 100%;
	}

	.wplm-chat-input input,
	.wplm-chat-search input,
	.wplm-fe-field input,
	.wplm-fe-field select,
	.wplm-fe-field textarea {
		font-size: 16px !important;
		touch-action: manipulation;
	}

	.wplm-chat-input input {
		height: 42px;
		border-radius: 24px;
		background: #f1f5f9;
		border: 1px solid #e2e8f0;
		padding: 0 16px;
	}

	.wplm-chat-input .wplm-fe-btn {
		width: 42px;
		height: 42px;
		padding: 0;
		justify-content: center;
		border-radius: 50%;
	}
}

/* ===== NOTIFICATION SYSTEM ===== */

.wplm-notif-bell {
	position: relative;
	background: none;
	border: none;
	color: #64748b;
	cursor: pointer;
	width: 28px;
	height: 28px;
	padding: 0;
	border-radius: 6px;
	transition: all 0.2s;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-left: auto;
	flex-shrink: 0;
}
.wplm-notif-bell svg {
	width: 20px !important;
	height: 20px !important;
}
.wplm-notif-bell:hover {
	background: #f1f5f9;
	color: #2563eb;
}

.wplm-notif-badge {
	position: absolute;
	top: -2px; right: -2px;
	background: #ef4444;
	color: #fff;
	font-size: 8px;
	font-weight: 700;
	min-width: 14px; height: 14px;
	border-radius: 7px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 4px;
	line-height: 1;
	box-shadow: 0 2px 6px rgba(239,68,68,0.4);
	animation: wplm-badge-pulse 2s ease-in-out infinite;
}
@keyframes wplm-badge-pulse {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.1); }
}

.wplm-notif-overlay {
	position: fixed;
	top: 0; left: 0; right: 0; bottom: 0;
	background: rgba(15,23,42,0.3);
	backdrop-filter: blur(2px);
	z-index: 1000010;
	opacity: 0; visibility: hidden;
	transition: all 0.3s ease;
}
.wplm-notif-overlay.open { opacity: 1; visibility: visible; }

.wplm-notif-panel {
	position: fixed;
	top: 0; right: -400px;
	width: 380px; max-width: 100vw; height: 100vh;
	background: #fff;
	z-index: 1000011;
	display: flex; flex-direction: column;
	box-shadow: -8px 0 30px rgba(0,0,0,0.12);
	transition: right 0.35s cubic-bezier(0.4,0,0.2,1);
}
.wplm-notif-panel.open { right: 0; }

.wplm-notif-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px 24px;
	border-bottom: 1px solid #f1f5f9;
	flex-shrink: 0;
}
.wplm-notif-header h3 { margin: 0; font-size: 18px; font-weight: 700; color: #0f172a; }

.wplm-notif-mark-all {
	background: none; border: 1px solid #e2e8f0;
	color: #64748b; font-size: 12px; font-weight: 500;
	padding: 6px 12px; border-radius: 6px;
	cursor: pointer; display: flex; align-items: center; gap: 4px;
	transition: all 0.2s;
}
.wplm-notif-mark-all:hover { background: #f8fafc; border-color: #cbd5e1; color: #2563eb; }

.wplm-notif-close {
	background: none; border: none; font-size: 28px;
	color: #94a3b8; cursor: pointer; padding: 0 4px; line-height: 1;
}
.wplm-notif-close:hover { color: #ef4444; }

.wplm-notif-list { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }

.wplm-notif-empty { text-align: center; padding: 60px 24px; color: #94a3b8; font-size: 14px; }

.wplm-notif-item {
	display: flex; gap: 12px; padding: 16px 24px;
	border-bottom: 1px solid #f8fafc; cursor: pointer; transition: background 0.2s;
}
.wplm-notif-item:hover { background: #f8fafc; }
.wplm-notif-item.unread { background: #eff6ff; border-left: 3px solid #2563eb; }
.wplm-notif-item.unread:hover { background: #dbeafe; }

.wplm-notif-icon {
	font-size: 24px; flex-shrink: 0;
	width: 40px; height: 40px;
	display: flex; align-items: center; justify-content: center;
	background: #f1f5f9; border-radius: 10px;
}
.wplm-notif-item.unread .wplm-notif-icon { background: #dbeafe; }

.wplm-notif-content { flex: 1; min-width: 0; }

.wplm-notif-title { font-size: 14px; font-weight: 600; color: #1e293b; line-height: 1.4; margin-bottom: 2px; }

.wplm-notif-msg {
	font-size: 13px; color: #64748b; line-height: 1.4; margin-bottom: 4px;
	display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.wplm-notif-time { font-size: 11px; color: #94a3b8; font-weight: 500; }

@media (max-width: 640px) {
	.wplm-notif-panel { width: 100vw; right: -100vw; }

	.wplm-notif-bell {
		position: fixed; top: 22px; right: 70px; z-index: 999999;
		background: rgba(255,255,255,0.25); color: #fff;
		border-radius: 50%; width: 40px; height: 40px; padding: 0;
		backdrop-filter: blur(4px);
	}
	.wplm-notif-bell:hover { background: rgba(255,255,255,0.35); color: #fff; }
	.wplm-notif-badge { top: 0; right: 0; }
}

/* ===== TOGGLE SWITCH ===== */
.wplm-toggle-row {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px 0;
	border-bottom: 1px solid #f1f5f9;
}
.wplm-toggle-row:last-child { border-bottom: none; }

.wplm-switch {
	position: relative;
	display: inline-block;
	width: 48px; height: 26px;
	flex-shrink: 0;
}
.wplm-switch input { opacity: 0; width: 0; height: 0; }
.wplm-slider {
	position: absolute;
	cursor: pointer;
	top: 0; left: 0; right: 0; bottom: 0;
	background: #cbd5e1;
	border-radius: 26px;
	transition: 0.3s;
}
.wplm-slider::before {
	content: '';
	position: absolute;
	height: 20px; width: 20px;
	left: 3px; bottom: 3px;
	background: #fff;
	border-radius: 50%;
	transition: 0.3s;
	box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.wplm-switch input:checked + .wplm-slider { background: #2563eb; }
.wplm-switch input:checked + .wplm-slider::before { transform: translateX(22px); }

/* Email settings form */
.wplm-email-fields { transition: opacity 0.3s; }
.wplm-notif-toggles { transition: opacity 0.3s; }

/* Task Management styles → see assets/css/tasks.css */

/* ── Sleek Collapsible Sidebar ── */
.wplm-sidebar-toggle-btn {
	width: 28px;
	height: 28px;
	background: transparent;
	border: none;
	border-radius: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: #64748b;
	transition: background 0.15s, color 0.15s;
	outline: none;
	padding: 0;
	margin-left: 4px;
	flex-shrink: 0;
}
.wplm-sidebar-toggle-btn:hover {
	background: #f1f5f9;
	color: #0f172a;
}

/* Double chevron display control */
.wplm-sidebar-toggle-btn .wplm-chevron-left {
	display: block;
}
.wplm-sidebar-toggle-btn .wplm-chevron-right {
	display: none;
}

/* Collapsed layout transitions (INSTANT, NO DELAY) */
.wplm-app-layout.sidebar-collapsed .wplm-app-sidebar {
	width: 72px !important;
	transition: none !important;
}

.wplm-app-layout.sidebar-collapsed .wplm-sidebar-toggle-btn .wplm-chevron-left {
	display: none !important;
}
.wplm-app-layout.sidebar-collapsed .wplm-sidebar-toggle-btn .wplm-chevron-right {
	display: block !important;
}

/* Centering logo header vertically when collapsed */
.wplm-app-layout.sidebar-collapsed .wplm-app-brand {
	padding: 0 !important;
	margin-bottom: 24px !important;
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	gap: 12px !important;
}
.wplm-app-layout.sidebar-collapsed .wplm-sidebar-toggle-btn {
	margin-left: 0 !important;
	margin-top: 4px !important;
}

/* Hide brand text & notif bell when collapsed */
.wplm-app-layout.sidebar-collapsed .wplm-app-brand-text,
.wplm-app-layout.sidebar-collapsed .wplm-notif-bell {
	display: none !important;
}

/* Collapsed menu padding */
.wplm-app-layout.sidebar-collapsed .wplm-app-menu {
	padding: 0 8px !important;
}

/* Collapsed menu items spacing - large & centered! */
.wplm-app-layout.sidebar-collapsed .wplm-app-menu a {
	padding: 12px 0 !important;
	justify-content: center !important;
	margin: 0 !important;
	width: 100% !important;
	font-size: 0 !important; /* Hide text label */
	position: relative;
	border-radius: 8px !important;
}

/* Larger menu icons */
.wplm-app-layout.sidebar-collapsed .wplm-app-menu svg {
	margin-right: 0 !important;
	width: 24px !important;
	height: 24px !important;
}

/* Collapsed active vertical pill - perfectly aligned */
.wplm-app-layout.sidebar-collapsed .wplm-app-menu a.active::before {
	content: '' !important;
	position: absolute !important;
	left: -8px !important;
	top: 50% !important;
	transform: translateY(-50%) !important;
	height: 24px !important;
	width: 4px !important;
	background: #2563eb !important;
	border-radius: 0 4px 4px 0 !important;
}

/* Collapsed menu badge */
.wplm-app-layout.sidebar-collapsed .wplm-chat-menu-badge {
	position: absolute;
	top: 4px;
	right: 4px;
	margin: 0 !important;
	transform: scale(0.85);
}

/* Collapsed user panel styling */
.wplm-app-layout.sidebar-collapsed .wplm-app-user {
	padding: 12px 0 !important;
	justify-content: center !important;
	margin: 0 8px !important;
}
.wplm-app-layout.sidebar-collapsed .wplm-app-user-info div,
.wplm-app-layout.sidebar-collapsed .wplm-app-user a[title="Đăng xuất"] {
	display: none !important;
}
.wplm-app-layout.sidebar-collapsed .wplm-avatar {
	margin: 0 !important;
}

/* Instant content adjustments */
.wplm-app-main {
	transition: none !important;
}

/* ==========================================================================
   NOTION-STYLE CORE INTERFACE OVERRIDES
   ========================================================================== */

/* Layout & Main Area Reset */
.wplm-app-main {
	background: #ffffff !important;
	padding: 0 !important; /* Managed by children and headers */
	display: flex;
	flex-direction: column;
	position: relative;
}

/* Notion Desktop Header */
.wplm-notion-desktop-header {
	height: 45px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 16px;
	border-bottom: 1px solid rgba(55, 53, 47, 0.08);
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	position: sticky;
	top: 0;
	z-index: 999;
}

.wplm-notion-header-left {
	display: flex;
	align-items: center;
	overflow: hidden;
}

.wplm-notion-breadcrumb {
	display: flex;
	align-items: center;
	cursor: pointer;
	padding: 4px 8px;
	border-radius: 4px;
	transition: background 0.15s ease;
	user-select: none;
}

.wplm-notion-breadcrumb:hover {
	background-color: rgba(55, 53, 47, 0.08);
}

.wplm-notion-emoji {
	font-size: 18px;
	margin-right: 8px;
	line-height: 1;
}

.wplm-notion-breadcrumb-title {
	font-weight: 500;
	color: #37352f;
	font-size: 14px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.wplm-notion-header-right {
	display: flex;
	align-items: center;
	gap: 12px;
}

.wplm-notion-status {
	font-size: 12px;
	color: rgba(55, 53, 47, 0.65);
	white-space: nowrap;
}

.wplm-notion-action-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 4px;
	cursor: pointer;
	color: rgba(55, 53, 47, 0.65);
	background: none;
	border: none;
	padding: 0;
	transition: background 0.15s ease, color 0.15s ease;
}

.wplm-notion-action-btn:hover {
	background-color: rgba(55, 53, 47, 0.08);
	color: #37352f;
}

.wplm-notion-action-btn svg {
	width: 18px;
	height: 18px;
}

/* Notion Sidebar Overrides */
.wplm-app-sidebar {
	background-color: #fbfbfa !important;
	border-right: 1px solid rgba(55, 53, 47, 0.09) !important;
	padding: 0 0 16px 0 !important;
}

/* Brand area modeled as Notion Workspace Switcher */
.wplm-app-brand {
	padding: 0 14px !important;
	margin-bottom: 16px !important;
	gap: 10px !important;
}

.wplm-app-logo {
	width: 22px !important;
	height: 22px !important;
	background-color: #37352f !important;
	color: #ffffff !important;
	border-radius: 5px !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	font-weight: 700 !important;
	font-size: 13.5px !important;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
	position: relative !important;
	flex-shrink: 0 !important;
}

.wplm-app-logo-dot {
	position: absolute !important;
	top: -2.5px !important;
	right: -2.5px !important;
	width: 7px !important;
	height: 7px !important;
	background-color: #eb5757 !important;
	border-radius: 50% !important;
	border: 1.5px solid #fbfbfa !important;
	z-index: 2 !important;
}

.wplm-app-brand-text h2 {
	font-size: 13px !important;
	font-weight: 600 !important;
	color: #37352f !important;
	line-height: 1.3 !important;
}

.wplm-app-brand-text span {
	font-size: 10px !important;
	color: rgba(55, 53, 47, 0.65) !important;
	text-transform: uppercase;
	letter-spacing: 0;
}

/* Bell & Toggle inside brand area style updates */
.wplm-notif-bell {
	color: rgba(55, 53, 47, 0.65) !important;
	background: none !important;
	border-radius: 4px !important;
	padding: 4px !important;
	transition: background 0.15s ease !important;
}
.wplm-notif-bell:hover {
	background-color: rgba(55, 53, 47, 0.08) !important;
	color: #37352f !important;
}

.wplm-sidebar-toggle-btn {
	color: rgba(55, 53, 47, 0.4) !important;
	background: none !important;
	border-radius: 4px !important;
	padding: 4px !important;
	border: none !important;
	transition: background 0.15s ease, color 0.15s ease !important;
}

.wplm-sidebar-toggle-btn:hover {
	background-color: rgba(55, 53, 47, 0.08) !important;
	color: #37352f !important;
}

/* Sidebar Menu Items */
.wplm-app-menu {
	padding: 0 8px !important;
}

.wplm-app-menu li {
	margin-bottom: 2px !important;
}

.wplm-app-menu a {
	padding: 6px 12px !important;
	font-size: 13.5px !important;
	color: rgba(55, 53, 47, 0.85) !important;
	background: transparent !important;
	border-radius: 4px !important;
	font-weight: 500 !important;
	gap: 10px !important;
	transition: background 0.15s ease !important;
	white-space: nowrap !important; /* prevent menu item text from wrapping to two lines */
	overflow: hidden !important; /* hide overflowing text */
	text-overflow: ellipsis !important; /* truncate with ellipsis */
}

.wplm-app-menu a:hover {
	background: rgba(55, 53, 47, 0.08) !important;
	color: #37352f !important;
}

.wplm-app-menu a.active {
	background: rgba(55, 53, 47, 0.08) !important;
	color: #37352f !important;
	font-weight: 600 !important;
}

/* Remove original bright active left border indicator */
.wplm-app-menu a.active::before {
	display: none !important;
}

/* Left side icons styling inside sidebar menu */
.wplm-app-menu a svg {
	color: rgba(55, 53, 47, 0.55) !important;
	width: 18px !important;
	height: 18px !important;
	transition: color 0.15s ease;
	flex-shrink: 0 !important; /* prevent menu icons from shrinking */
}

.wplm-app-menu a:hover svg,
.wplm-app-menu a.active svg {
	color: #37352f !important;
}

/* User Footer update */
.wplm-app-user {
	border-top: 1px solid rgba(55, 53, 47, 0.09) !important;
	padding: 16px 14px !important;
	background: transparent !important;
}

.wplm-app-user-info h4 {
	color: #37352f !important;
	font-size: 13.5px !important;
	font-weight: 600 !important;
}

.wplm-app-user-info span {
	color: rgba(55, 53, 47, 0.65) !important;
	font-size: 11px !important;
}

/* Content Area inside Notion main content wrapper */
@media (min-width: 641px) {
	.wplm-app-main .wplm-emp-wrapper {
		max-width: 960px;
		margin: 0 auto;
		padding: 32px 40px !important;
		background: #ffffff !important;
		box-shadow: none !important;
	}
}

/* Hide original topbar in dashboard tabs on desktop to let Notion header shine */
@media (min-width: 641px) {
	.wplm-emp-topbar {
		display: none !important;
	}
	
	/* Adjust workspace container margin and scroll */
	#ws-container {
		margin-top: 0 !important;
	}
	
	/* Custom Notion scrollbar for sidebar */
	.wplm-app-menu::-webkit-scrollbar {
		width: 4px;
	}
	.wplm-app-menu::-webkit-scrollbar-thumb {
		background: rgba(55, 53, 47, 0.15);
		border-radius: 4px;
	}
}

/* Google Sheet embed wrapper responsive styling */
.ws-google-editor {
	display: flex;
	flex-direction: column;
	height: calc(100vh - 45px) !important;
}

.ws-google-frame {
	flex: 1;
	border: none;
	width: 100%;
}

/* ==========================================================================
   ADVANCED NOTION COLLAPSIBLE & HOVER-PEEK INTERACTION OVERRIDES
   ========================================================================== */

/* Hover Expand / Peek zone */
.wplm-sidebar-hover-zone {
	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	bottom: 0 !important;
	width: 14px !important;
	z-index: 99999999 !important;
	background: rgba(0, 0, 0, 0.01) !important;
	cursor: ew-resize;
	pointer-events: auto !important;
}

/* Base Sidebar transition settings */
.wplm-app-sidebar {
	transition: width 0.22s cubic-bezier(0.4, 0, 0.2, 1), 
	            transform 0.22s cubic-bezier(0.4, 0, 0.2, 1), 
	            opacity 0.2s ease, 
	            box-shadow 0.2s ease !important;
}

/* Sidebar Toggle button behavior (Hidden by default, shown on sidebar hover) */
.wplm-sidebar-toggle-btn {
	opacity: 0 !important;
	transition: opacity 0.15s ease, background 0.15s ease, color 0.15s ease !important;
}

.wplm-app-sidebar:hover .wplm-sidebar-toggle-btn {
	opacity: 1 !important;
}

/* When sidebar is collapsed */
.wplm-app-layout.sidebar-collapsed .wplm-app-sidebar {
	width: 0 !important;
	min-width: 0 !important;
	max-width: 0 !important;
	flex: 0 0 0 !important;
	opacity: 0 !important;
	pointer-events: none !important;
	transform: translateX(-100%);
	overflow: hidden !important;
}

.wplm-app-layout.sidebar-collapsed .wplm-app-main {
	flex: 1 1 100% !important;
}

.wplm-app-layout.sidebar-collapsed .wplm-notion-desktop-header {
	padding-left: 8px !important;
}

/* Hover-peek behavior: Slide in sidebar as a floating panel overlay */
.wplm-app-layout.sidebar-collapsed .wplm-sidebar-hover-zone:hover + .wplm-app-sidebar,
.wplm-app-layout.sidebar-collapsed .wplm-app-sidebar:hover {
	transform: translateX(0) !important;
	width: 240px !important;
	min-width: 240px !important;
	max-width: 240px !important;
	flex: 0 0 240px !important;
	opacity: 1 !important;
	position: absolute !important;
	left: 0 !important;
	top: 0 !important;
	bottom: 0 !important;
	height: 100vh !important;
	z-index: 10001 !important;
	box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12) !important;
	pointer-events: auto !important;
	overflow: hidden !important;
}

/* Revert the narrow icon-only styles for collapsed sidebar so it looks full & perfect during peeking */
.wplm-app-layout.sidebar-collapsed .wplm-app-sidebar:hover .wplm-app-brand-text,
.wplm-app-layout.sidebar-collapsed .wplm-sidebar-hover-zone:hover + .wplm-app-sidebar .wplm-app-brand-text,
.wplm-app-layout.sidebar-collapsed .wplm-app-sidebar:hover .wplm-notif-bell,
.wplm-app-layout.sidebar-collapsed .wplm-sidebar-hover-zone:hover + .wplm-app-sidebar .wplm-notif-bell,
.wplm-app-layout.sidebar-collapsed .wplm-app-sidebar:hover .wplm-app-user-info div,
.wplm-app-layout.sidebar-collapsed .wplm-sidebar-hover-zone:hover + .wplm-app-sidebar .wplm-app-user-info div,
.wplm-app-layout.sidebar-collapsed .wplm-app-sidebar:hover .wplm-app-user a[title="Đăng xuất"],
.wplm-app-layout.sidebar-collapsed .wplm-sidebar-hover-zone:hover + .wplm-app-sidebar .wplm-app-user a[title="Đăng xuất"] {
	display: flex !important;
}

.wplm-app-layout.sidebar-collapsed .wplm-app-sidebar:hover .wplm-app-menu a,
.wplm-app-layout.sidebar-collapsed .wplm-sidebar-hover-zone:hover + .wplm-app-sidebar .wplm-app-menu a {
	font-size: 13.5px !important;
	padding: 6px 12px !important;
	justify-content: flex-start !important;
}

.wplm-app-layout.sidebar-collapsed .wplm-app-sidebar:hover .wplm-app-menu svg,
.wplm-app-layout.sidebar-collapsed .wplm-sidebar-hover-zone:hover + .wplm-app-sidebar .wplm-app-menu svg {
	width: 18px !important;
	height: 18px !important;
}

.wplm-app-layout.sidebar-collapsed .wplm-app-sidebar:hover .wplm-app-user,
.wplm-app-layout.sidebar-collapsed .wplm-sidebar-hover-zone:hover + .wplm-app-sidebar .wplm-app-user {
	padding: 16px 14px !important;
	justify-content: space-between !important;
	margin: 0 !important;
}

.wplm-app-layout.sidebar-collapsed .wplm-app-sidebar:hover .wplm-app-brand,
.wplm-app-layout.sidebar-collapsed .wplm-sidebar-hover-zone:hover + .wplm-app-sidebar .wplm-app-brand {
	display: flex !important;
	flex-direction: row !important; /* force horizontal layout during hover-peeking */
	align-items: center !important;
	gap: 8px !important;
	padding: 6px 8px !important;
	border-radius: 6px !important;
	cursor: pointer !important;
	transition: background 0.15s ease !important;
	width: 100% !important;
	overflow: hidden !important;
	margin-bottom: 0 !important;
	padding-right: 68px !important; /* maintain separation in hover peek state */
	box-sizing: border-box !important;
}

/* Notion Sidebar Expand Toggle button inside the desktop header */
.wplm-notion-sidebar-expand-btn {
	display: none !important;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 4px;
	background: none;
	border: none;
	color: rgba(55, 53, 47, 0.45);
	cursor: pointer;
	margin-right: 8px;
	transition: background 0.15s ease, color 0.15s ease;
	padding: 0;
}

.wplm-notion-sidebar-expand-btn:hover {
	background-color: rgba(55, 53, 47, 0.08);
	color: #37352f;
}

.wplm-notion-sidebar-expand-btn svg {
	width: 18px;
	height: 18px;
}

.wplm-app-layout.sidebar-collapsed .wplm-notion-sidebar-expand-btn {
	display: flex !important;
}

/* ==========================================================================
   FINAL HIGH-POLISH NOTION INTERFACE OVERRIDES
   ========================================================================== */

/* Apply Premium Google Inter Font globally to the application layout */
.wplm-app-layout, 
.wplm-app-layout * {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

/* Premium Workspace Switcher Layout with Absolute Floating Actions */
.wplm-app-brand-container {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	padding: 0 12px !important;
	height: 58px !important;
	min-height: 58px !important;
	margin-bottom: 8px !important;
	position: relative !important;
	width: 100% !important;
	box-sizing: border-box !important;
	border-bottom: 1px solid rgba(55, 53, 47, 0.04) !important;
}

.wplm-app-brand {
	display: flex !important;
	align-items: center !important;
	gap: 8px !important;
	padding: 6px 8px !important;
	border-radius: 6px !important;
	cursor: pointer !important;
	transition: background 0.15s ease !important;
	width: 100% !important;
	overflow: hidden !important;
	margin-bottom: 0 !important;
	padding-right: 68px !important; /* prevent title text and chevron from colliding with absolute actions */
	box-sizing: border-box !important;
}

.wplm-app-brand:hover {
	background-color: rgba(55, 53, 47, 0.08) !important;
}

.wplm-app-brand-text {
	overflow: hidden !important;
	white-space: nowrap !important;
	text-overflow: ellipsis !important;
	display: flex !important;
	flex-direction: column !important;
	justify-content: center !important;
	text-align: left !important;
	min-width: 0 !important; /* enable flexbox content truncation */
	flex-shrink: 1 !important; /* allow the text container to shrink when space is restricted */
}

.wplm-app-brand-text h2 {
	font-size: 12.5px !important;
	font-weight: 600 !important;
	color: #37352f !important;
	margin: 0 !important;
	white-space: nowrap !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
	line-height: 1.25 !important;
}

.wplm-app-brand-text span {
	font-size: 10.5px !important;
	color: rgba(55, 53, 47, 0.45) !important;
	text-transform: none !important;
	letter-spacing: 0px !important;
	margin-top: 1px !important;
	white-space: nowrap !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
	display: block !important;
}

.wplm-notion-switcher-chevron {
	color: rgba(55, 53, 47, 0.3) !important;
	margin-left: 4px !important;
	flex-shrink: 0 !important;
}

/* Floating Actions on the top right */
.wplm-brand-actions {
	position: absolute !important;
	right: 12px !important;
	top: 12px !important; /* aligns with content top spacing */
	bottom: 0 !important;
	display: inline-flex !important;
	align-items: center !important;
	gap: 4px !important;
	z-index: 10 !important;
}

.wplm-brand-actions .wplm-notif-bell,
.wplm-brand-actions .wplm-sidebar-toggle-btn {
	width: 24px !important;
	height: 24px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 0 !important;
	border-radius: 4px !important;
	background: #fbfbfa !important; /* matches sidebar bg to overlay switcher gracefully */
	border: none !important;
	color: rgba(55, 53, 47, 0.45) !important;
	cursor: pointer !important;
	transition: background 0.15s ease, color 0.15s ease, opacity 0.15s ease !important;
}

.wplm-brand-actions .wplm-notif-bell:hover,
.wplm-brand-actions .wplm-sidebar-toggle-btn:hover {
	background-color: rgba(55, 53, 47, 0.08) !important;
	color: #37352f !important;
}

/* Toggle button is hidden by default and only slides in when sidebar is hovered */
.wplm-brand-actions .wplm-sidebar-toggle-btn {
	opacity: 0 !important;
	pointer-events: none !important;
}

.wplm-app-sidebar:hover .wplm-brand-actions .wplm-sidebar-toggle-btn {
	opacity: 1 !important;
	pointer-events: auto !important;
}

/* Match main header and sidebar header heights perfectly */
.wplm-notion-desktop-header {
	height: 58px !important;
	min-height: 58px !important;
	padding: 0 16px !important;
	box-sizing: border-box !important;
}

/* Format the active tab outline SVG in the breadcrumb */
.wplm-notion-icon-svg {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	margin-right: 8px !important;
}

.wplm-notion-icon-svg svg {
	width: 18px !important;
	height: 18px !important;
	color: rgba(55, 53, 47, 0.6) !important;
	display: block !important;
}

/* Sidebar Toggle Chevron direction correction during Hover Peek overlay state */
.wplm-app-layout.sidebar-collapsed .wplm-app-sidebar:hover .wplm-sidebar-toggle-btn .wplm-chevron-left,
.wplm-app-layout.sidebar-collapsed .wplm-sidebar-hover-zone:hover + .wplm-app-sidebar .wplm-sidebar-toggle-btn .wplm-chevron-left {
	display: block !important;
}

.wplm-app-layout.sidebar-collapsed .wplm-app-sidebar:hover .wplm-sidebar-toggle-btn .wplm-chevron-right,
.wplm-app-layout.sidebar-collapsed .wplm-sidebar-hover-zone:hover + .wplm-app-sidebar .wplm-sidebar-toggle-btn .wplm-chevron-right {
	display: none !important;
}

/* Sidebar Drag-to-Resize Handle with wide hover target zone */
.wplm-sidebar-resize-handle {
	position: absolute !important;
	top: 0 !important;
	bottom: 0 !important;
	right: -3px !important;
	width: 6px !important;
	cursor: col-resize !important;
	z-index: 10002 !important;
	transition: background 0.15s ease !important;
	background: transparent !important;
}

.wplm-sidebar-resize-handle::after {
	content: "" !important;
	position: absolute !important;
	top: 0 !important;
	bottom: 0 !important;
	left: -4px !important;
	right: -4px !important;
	cursor: col-resize !important;
}

.wplm-sidebar-resize-handle:hover,
.wplm-sidebar-resize-handle.active {
	background: rgba(55, 53, 47, 0.12) !important;
}

/* Hide the handle completely when sidebar is collapsed */
.wplm-app-layout.sidebar-collapsed .wplm-sidebar-resize-handle {
	display: none !important;
}

/* ======================================
   NOTION-STYLE SIDEBAR TABS NAVIGATION
   ====================================== */

/* Tab bar container below brand */
.wplm-sidebar-tabs {
	display: flex !important;
	align-items: center !important;
	gap: 0 !important;
	padding: 0 8px !important;
	margin-bottom: 4px !important;
	border-bottom: 1px solid rgba(55, 53, 47, 0.09) !important;
	flex-shrink: 0 !important;
	max-width: 100% !important;
	box-sizing: border-box !important;
	overflow-x: auto !important;
	overflow-y: hidden !important;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.wplm-sidebar-tabs::-webkit-scrollbar {
	display: none;
}

/* Individual tab button */
.wplm-sidebar-tab {
	display: flex !important;
	align-items: center !important;
	gap: 6px !important;
	padding: 7px 10px !important;
	font-size: 12.5px !important;
	font-weight: 500 !important;
	color: rgba(55, 53, 47, 0.5) !important;
	background: transparent !important;
	border: none !important;
	border-bottom: 2px solid transparent !important;
	cursor: pointer !important;
	transition: color 0.15s ease, border-color 0.15s ease !important;
	white-space: nowrap !important;
	position: relative !important;
	margin-bottom: -1px !important;
	font-family: inherit !important;
	line-height: 1 !important;
	flex: 0 0 auto !important;
}

.wplm-sidebar-tab:hover {
	color: rgba(55, 53, 47, 0.85) !important;
}

.wplm-sidebar-tab.active {
	color: #37352f !important;
	font-weight: 600 !important;
	border-bottom-color: #37352f !important;
}

.wplm-sidebar-tab svg {
	width: 16px !important;
	height: 16px !important;
	flex-shrink: 0 !important;
}

/* Tab badge (for inbox/notifications) */
.wplm-sidebar-tab-badge {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	min-width: 18px !important;
	height: 18px !important;
	padding: 0 5px !important;
	border-radius: 10px !important;
	background: #eb5757 !important;
	color: #fff !important;
	font-size: 10px !important;
	font-weight: 700 !important;
	line-height: 1 !important;
}

/* Search tab (icon only, pushed to right) */
.wplm-sidebar-tab-search {
	margin-left: auto !important;
	padding: 7px 8px !important;
}

/* Tab content panels */
.wplm-sidebar-tab-content {
	flex: 1 !important;
	overflow-y: auto !important;
	overflow-x: hidden !important;
	min-height: 0 !important;
}

.wplm-sidebar-tab-panel {
	display: none !important;
}

.wplm-sidebar-tab-panel.active {
	display: block !important;
}

/* --- Inbox/Notification Panel --- */
.wplm-sidebar-inbox-panel {
	padding: 0 !important;
}

.wplm-sidebar-inbox-toolbar {
	display: flex !important;
	align-items: center !important;
	gap: 2px !important;
	padding: 6px 12px !important;
	border-bottom: 1px solid rgba(55, 53, 47, 0.06) !important;
}

.wplm-sidebar-inbox-toolbar button {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 28px !important;
	height: 28px !important;
	border-radius: 4px !important;
	border: none !important;
	background: transparent !important;
	color: rgba(55, 53, 47, 0.5) !important;
	cursor: pointer !important;
	transition: background 0.12s, color 0.12s !important;
}

.wplm-sidebar-inbox-toolbar button:hover {
	background: rgba(55, 53, 47, 0.08) !important;
	color: #37352f !important;
}

.wplm-sidebar-inbox-toolbar button.active {
	background: rgba(55, 53, 47, 0.08) !important;
	color: #37352f !important;
}

.wplm-sidebar-inbox-label {
	font-size: 11px !important;
	font-weight: 600 !important;
	color: rgba(55, 53, 47, 0.5) !important;
	text-transform: uppercase !important;
	letter-spacing: 0 !important;
	padding: 10px 14px 4px !important;
}

.wplm-sidebar-inbox-item {
	display: flex !important;
	align-items: flex-start !important;
	gap: 10px !important;
	padding: 10px 14px !important;
	cursor: pointer !important;
	transition: background 0.12s ease !important;
	border-bottom: 1px solid rgba(55, 53, 47, 0.04) !important;
	text-decoration: none !important;
	color: inherit !important;
}

.wplm-sidebar-inbox-item:hover {
	background: rgba(55, 53, 47, 0.04) !important;
	text-decoration: none !important;
}

.wplm-sidebar-inbox-item:focus,
.wplm-sidebar-inbox-item:active,
.wplm-sidebar-inbox-item:visited,
.wplm-sidebar-inbox-item *,
.wplm-sidebar-inbox-item:hover * {
	text-decoration: none !important;
}

.wplm-sidebar-inbox-item.unread {
	background: rgba(35, 131, 226, 0.04) !important;
}

.wplm-sidebar-inbox-avatar {
	width: 28px !important;
	height: 28px !important;
	border-radius: 50% !important;
	background: #e3e2e0 !important;
	color: #37352f !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	font-size: 11px !important;
	font-weight: 700 !important;
	flex-shrink: 0 !important;
}

.wplm-sidebar-inbox-body {
	flex: 1 !important;
	min-width: 0 !important;
}

.wplm-sidebar-inbox-title {
	font-size: 13px !important;
	font-weight: 500 !important;
	color: #37352f !important;
	white-space: nowrap !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
	line-height: 1.4 !important;
}

.wplm-sidebar-inbox-desc {
	font-size: 11.5px !important;
	color: rgba(55, 53, 47, 0.5) !important;
	white-space: nowrap !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
	margin-top: 2px !important;
}

.wplm-sidebar-inbox-time {
	font-size: 11px !important;
	color: rgba(55, 53, 47, 0.4) !important;
	flex-shrink: 0 !important;
	padding-top: 2px !important;
}

.wplm-sidebar-inbox-dot {
	width: 7px !important;
	height: 7px !important;
	border-radius: 50% !important;
	background: #2383e2 !important;
	flex-shrink: 0 !important;
	margin-top: 6px !important;
}

.wplm-sidebar-inbox-empty {
	text-align: center !important;
	padding: 40px 20px !important;
	color: rgba(55, 53, 47, 0.4) !important;
	font-size: 13px !important;
}

.wplm-sidebar-inbox-empty svg {
	display: block !important;
	margin: 0 auto 12px !important;
	color: rgba(55, 53, 47, 0.2) !important;
}

/* --- Search Panel --- */
.wplm-sidebar-search-panel {
	padding: 12px !important;
}

.wplm-sidebar-search-input {
	width: 100% !important;
	padding: 8px 12px 8px 36px !important;
	border: 1px solid rgba(55, 53, 47, 0.16) !important;
	border-radius: 6px !important;
	font-size: 13px !important;
	color: #37352f !important;
	background: rgba(55, 53, 47, 0.04) !important;
	outline: none !important;
	box-sizing: border-box !important;
	font-family: inherit !important;
	transition: border-color 0.15s, background 0.15s !important;
}

.wplm-sidebar-search-input:focus {
	border-color: #2383e2 !important;
	background: #fff !important;
	box-shadow: 0 0 0 3px rgba(35, 131, 226, 0.12) !important;
}

.wplm-sidebar-search-wrapper {
	position: relative !important;
}

.wplm-sidebar-search-wrapper svg {
	position: absolute !important;
	left: 10px !important;
	top: 50% !important;
	transform: translateY(-50%) !important;
	color: rgba(55, 53, 47, 0.4) !important;
	pointer-events: none !important;
}

.wplm-sidebar-search-results {
	margin-top: 12px !important;
}

.wplm-sidebar-search-results a {
	display: flex !important;
	align-items: center !important;
	gap: 8px !important;
	padding: 6px 10px !important;
	border-radius: 4px !important;
	color: rgba(55, 53, 47, 0.85) !important;
	font-size: 13px !important;
	text-decoration: none !important;
	transition: background 0.12s !important;
}

.wplm-sidebar-search-results a:hover {
	background: rgba(55, 53, 47, 0.08) !important;
}

.wplm-sidebar-search-results a svg {
	position: static !important;
	transform: none !important;
	width: 16px !important;
	height: 16px !important;
	color: rgba(55, 53, 47, 0.45) !important;
	flex-shrink: 0 !important;
}

/* --- Chat Panel (quick preview) --- */
.wplm-sidebar-chat-panel {
	padding: 0 !important;
}

.wplm-sidebar-chat-item {
	display: flex !important;
	align-items: center !important;
	gap: 10px !important;
	padding: 10px 14px !important;
	cursor: pointer !important;
	transition: background 0.12s ease !important;
	border-bottom: 1px solid rgba(55, 53, 47, 0.04) !important;
	text-decoration: none !important;
}

.wplm-sidebar-chat-item:hover {
	background: rgba(55, 53, 47, 0.04) !important;
}

.wplm-sidebar-chat-avatar {
	width: 32px !important;
	height: 32px !important;
	border-radius: 50% !important;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
	color: #fff !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	flex-shrink: 0 !important;
}

.wplm-sidebar-chat-body {
	flex: 1 !important;
	min-width: 0 !important;
}

.wplm-sidebar-chat-name {
	font-size: 13px !important;
	font-weight: 600 !important;
	color: #37352f !important;
}

.wplm-sidebar-chat-preview {
	font-size: 11.5px !important;
	color: rgba(55, 53, 47, 0.5) !important;
	white-space: nowrap !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
	margin-top: 1px !important;
}

/* --- Hide sidebar tabs in collapsed mode --- */
.wplm-app-layout.sidebar-collapsed .wplm-sidebar-tabs {
	display: none !important;
}

.wplm-app-layout.sidebar-collapsed .wplm-sidebar-tab-content {
	display: none !important;
}

/* --- Show tabs content on hover peek --- */
.wplm-app-layout.sidebar-collapsed .wplm-app-sidebar:hover .wplm-sidebar-tabs,
.wplm-app-layout.sidebar-collapsed .wplm-sidebar-hover-zone:hover + .wplm-app-sidebar .wplm-sidebar-tabs {
	display: flex !important;
}

.wplm-app-layout.sidebar-collapsed .wplm-app-sidebar:hover .wplm-sidebar-tab-content,
.wplm-app-layout.sidebar-collapsed .wplm-sidebar-hover-zone:hover + .wplm-app-sidebar .wplm-sidebar-tab-content {
	display: block !important;
}

/* --- Narrow Sidebar Mode styling --- */
.wplm-sidebar-narrow .wplm-sidebar-tab span {
	display: none !important;
}

.wplm-sidebar-narrow .wplm-sidebar-tab {
	padding: 8px 10px !important;
	gap: 0 !important;
	justify-content: center !important;
}

.wplm-sidebar-narrow .wplm-sidebar-tabs {
	justify-content: space-between !important;
	padding: 0 4px !important;
}

/* --- Sidebar Activity Notifications --- */
.wplm-sidebar-activity-item {
	cursor: pointer !important;
	transition: background 0.15s ease !important;
	border-bottom: 1px solid rgba(55, 53, 47, 0.04) !important;
}

.wplm-sidebar-activity-item:hover {
	background: rgba(55, 53, 47, 0.04) !important;
}

.wplm-sidebar-activity-unread {
	background: rgba(35, 131, 226, 0.04) !important;
	border-left: 3px solid #2383e2 !important;
}

.wplm-sidebar-activity-unread .wplm-sidebar-inbox-title {
	font-weight: 700 !important;
	color: #37352f !important;
}

.wplm-sidebar-inbox-time {
	font-size: 11px !important;
	color: rgba(55, 53, 47, 0.4) !important;
	margin-top: 2px !important;
}

.wplm-sidebar-inbox-toolbar {
	display: flex !important;
	align-items: center !important;
	padding: 8px 14px !important;
	border-bottom: 1px solid rgba(55, 53, 47, 0.06) !important;
	gap: 6px !important;
}

.wplm-sidebar-inbox-toolbar span {
	white-space: nowrap !important;
	flex-shrink: 0 !important;
}

#wplm-sidebar-mark-all-read {
	white-space: nowrap !important;
	flex-shrink: 0 !important;
	transition: color 0.15s ease !important;
}

#wplm-sidebar-mark-all-read:hover {
	color: #2383e2 !important;
}

.wplm-sidebar-activity-tabs {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	gap: 4px !important;
	padding: 8px 10px !important;
	border-bottom: 1px solid rgba(55, 53, 47, 0.06) !important;
	background: #fff !important;
}

.wplm-sidebar-activity-tab {
	min-width: 0 !important;
	height: 30px !important;
	padding: 0 6px !important;
	border: 1px solid transparent !important;
	border-radius: 6px !important;
	background: transparent !important;
	color: rgba(55, 53, 47, 0.58) !important;
	font-size: 11.5px !important;
	font-weight: 600 !important;
	line-height: 1 !important;
	white-space: nowrap !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
	cursor: pointer !important;
}

.wplm-sidebar-activity-tab:hover {
	background: rgba(55, 53, 47, 0.06) !important;
	color: #37352f !important;
}

.wplm-sidebar-activity-tab.active {
	background: rgba(35, 131, 226, 0.1) !important;
	border-color: rgba(35, 131, 226, 0.16) !important;
	color: #2383e2 !important;
}

.wplm-mobile-activity-bell,
.wplm-mobile-activity-overlay,
.wplm-mobile-activity-sheet {
	display: none;
}

.wplm-mobile-activity-badge {
	position: absolute;
	top: -4px;
	right: -4px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 999px;
	background: #ef4444;
	color: #fff;
	border: 2px solid #fff;
	font-size: 10px;
	font-weight: 700;
	line-height: 16px;
	box-sizing: border-box;
}

@media (max-width: 640px) {
	.wplm-mobile-activity-bell {
		display: inline-flex !important;
		position: fixed !important;
		right: 18px !important;
		bottom: calc(88px + env(safe-area-inset-bottom)) !important;
		width: 52px !important;
		height: 52px !important;
		align-items: center !important;
		justify-content: center !important;
		border: 1px solid rgba(35, 131, 226, 0.18) !important;
		border-radius: 50% !important;
		background: #2383e2 !important;
		color: #fff !important;
		box-shadow: 0 10px 24px rgba(35, 131, 226, 0.3) !important;
		z-index: 1000004 !important;
		cursor: pointer !important;
		-webkit-tap-highlight-color: transparent !important;
	}

	body.wplm-mobile-activity-open .wplm-mobile-activity-bell {
		display: none !important;
	}

	.wplm-mobile-activity-overlay.open {
		display: block !important;
		position: fixed !important;
		inset: 0 !important;
		background: rgba(15, 23, 42, 0.34) !important;
		z-index: 1000005 !important;
	}

	.wplm-mobile-activity-sheet {
		position: fixed !important;
		left: 0 !important;
		right: 0 !important;
		bottom: 0 !important;
		display: flex !important;
		flex-direction: column !important;
		height: min(76dvh, 640px) !important;
		max-height: calc(100dvh - 24px) !important;
		background: #fff !important;
		border-radius: 18px 18px 0 0 !important;
		box-shadow: 0 -18px 46px rgba(15, 23, 42, 0.18) !important;
		transform: translateY(105%) !important;
		transition: transform 0.22s ease !important;
		z-index: 1000006 !important;
		overflow: hidden !important;
	}

	.wplm-mobile-activity-sheet.open {
		transform: translateY(0) !important;
	}

	.wplm-mobile-activity-header {
		display: flex !important;
		align-items: flex-start !important;
		justify-content: space-between !important;
		gap: 12px !important;
		padding: 16px 18px 12px !important;
		border-bottom: 1px solid rgba(55, 53, 47, 0.08) !important;
	}

	.wplm-mobile-activity-header h3 {
		margin: 0 !important;
		font-size: 17px !important;
		font-weight: 700 !important;
		color: #37352f !important;
		line-height: 1.25 !important;
	}

	.wplm-mobile-activity-header p {
		margin: 3px 0 0 !important;
		font-size: 12px !important;
		color: rgba(55, 53, 47, 0.52) !important;
	}

	.wplm-mobile-activity-actions {
		display: flex !important;
		align-items: center !important;
		gap: 6px !important;
	}

	.wplm-mobile-activity-mark-all,
	.wplm-mobile-activity-close {
		display: inline-flex !important;
		align-items: center !important;
		justify-content: center !important;
		width: 34px !important;
		height: 34px !important;
		border: 0 !important;
		border-radius: 8px !important;
		background: rgba(55, 53, 47, 0.06) !important;
		color: rgba(55, 53, 47, 0.66) !important;
		cursor: pointer !important;
	}

	.wplm-mobile-activity-close {
		font-size: 22px !important;
		line-height: 1 !important;
	}

	.wplm-mobile-activity-tabs {
		padding: 8px 12px !important;
	}

	.wplm-mobile-activity-list {
		flex: 1 1 auto !important;
		min-height: 0 !important;
		overflow-y: auto !important;
		-webkit-overflow-scrolling: touch !important;
		padding-bottom: max(14px, env(safe-area-inset-bottom)) !important;
		background: #fff !important;
	}
}

/* Narrow sidebar: hide badge text but keep dot */
.wplm-sidebar-narrow .wplm-sidebar-tab-badge {
	min-width: 8px !important;
	height: 8px !important;
	padding: 0 !important;
	font-size: 0 !important;
	border-radius: 50% !important;
	position: absolute !important;
	top: 4px !important;
	right: 4px !important;
}

/* Custom layout for attendance tabs on desktop */
@media (min-width: 641px) {
	.wplm-attendance-topbar {
		padding: 0 0 16px 0 !important;
		border-bottom: 1px solid rgba(55, 53, 47, 0.08) !important;
		margin-bottom: 20px !important;
		justify-content: flex-start !important;
	}
	.wplm-attendance-title-area {
		display: none !important;
	}
}

/* ===== Full Width Workspace Option (Notion-style) ===== */
#wplm-app-layout.wplm-full-width .wplm-app-main .wplm-emp-wrapper,
#wplm-app-layout.wplm-full-width .wplm-app-main .wplm-task-wrapper {
	max-width: 100% !important;
	margin: 0 !important;
}

/* Standard Width Mode (when .wplm-full-width is not on .wplm-app-layout) */
#wplm-app-layout:not(.wplm-full-width) .wplm-app-main .wplm-emp-wrapper {
	max-width: 1200px !important;
	margin: 0 auto !important;
}

#wplm-app-layout.wplm-full-width .wplm-app-main .wplm-attendance-wrapper,
#wplm-app-layout:not(.wplm-full-width) .wplm-app-main .wplm-attendance-wrapper {
	width: 100% !important;
	max-width: none !important;
	min-height: calc(100dvh - 106px);
	margin: 0 !important;
	padding: 0 !important;
	background: #fff !important;
	box-sizing: border-box;
}

@media (min-width: 641px) {
	.wplm-attendance-wrapper #att-emp-view,
	.wplm-attendance-wrapper #att-admin-view,
	.wplm-attendance-wrapper #att-report-view {
		width: 100%;
		max-width: none;
		box-sizing: border-box;
	}

	.wplm-attendance-wrapper .wplm-attendance-sheet-wrap .att-sheet-table {
		min-width: 100%;
	}
}

.wplm-attendance-wrapper .wplm-attendance-sheet-wrap {
	border: 1px solid #dde5f0 !important;
	border-radius: 16px !important;
	background: #fff !important;
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06) !important;
	overflow: auto !important;
}

.wplm-attendance-wrapper .wplm-attendance-sheet-wrap .att-sheet-table {
	width: 100% !important;
	min-width: 1160px;
	border-collapse: separate !important;
	border-spacing: 0 !important;
	table-layout: fixed;
	background: #fff;
	font-size: 13px !important;
}

.wplm-attendance-wrapper .wplm-attendance-sheet-wrap .att-sheet-table th,
.wplm-attendance-wrapper .wplm-attendance-sheet-wrap .att-sheet-table td {
	border-bottom: 1px solid #edf2f7 !important;
	padding: 9px 10px !important;
	text-align: center !important;
	vertical-align: middle !important;
}

.wplm-attendance-wrapper .wplm-attendance-sheet-wrap .att-sheet-table th {
	position: sticky;
	top: 0;
	z-index: 2;
	background: #f8fafc !important;
	color: #667085 !important;
	font-size: 11.5px !important;
	font-weight: 700 !important;
	letter-spacing: 0 !important;
	text-transform: uppercase !important;
}

.wplm-attendance-wrapper .wplm-attendance-sheet-wrap .att-sheet-table thead tr:first-child th:first-child,
.wplm-attendance-wrapper .wplm-attendance-sheet-wrap .att-sheet-table tbody td:first-child {
	width: 132px !important;
	text-align: left !important;
	white-space: nowrap;
}

.wplm-attendance-wrapper .wplm-attendance-sheet-wrap .att-sheet-table thead tr:first-child th:nth-child(2),
.wplm-attendance-wrapper .wplm-attendance-sheet-wrap .att-sheet-table tbody td:nth-child(2) {
	width: 52px !important;
}

.wplm-attendance-wrapper .wplm-attendance-sheet-wrap .att-sheet-table thead tr:first-child th:last-child,
.wplm-attendance-wrapper .wplm-attendance-sheet-wrap .att-sheet-table tbody td:last-child {
	width: 220px !important;
}

.wplm-attendance-wrapper .wplm-attendance-sheet-wrap .att-sheet-table thead tr:first-child th {
	height: 36px;
	border-bottom: 1px solid #dbe3ef !important;
}

.wplm-attendance-wrapper .wplm-attendance-sheet-wrap .att-sheet-table thead tr:nth-child(2) th {
	top: 55px;
	height: 30px;
	background: #fbfdff !important;
	font-size: 11px !important;
}

.wplm-attendance-wrapper .wplm-attendance-sheet-wrap .att-sheet-table th.col-s1,
.wplm-attendance-wrapper .wplm-attendance-sheet-wrap .att-sheet-table td.col-s1 {
	background-color: #f8fbff;
}

.wplm-attendance-wrapper .wplm-attendance-sheet-wrap .att-sheet-table th.col-s2,
.wplm-attendance-wrapper .wplm-attendance-sheet-wrap .att-sheet-table td.col-s2 {
	background-color: #f9fefb;
}

.wplm-attendance-wrapper .wplm-attendance-sheet-wrap .att-sheet-table th.col-s3,
.wplm-attendance-wrapper .wplm-attendance-sheet-wrap .att-sheet-table td.col-s3 {
	background-color: #fffaf5;
}

.wplm-attendance-wrapper .wplm-attendance-sheet-wrap .att-sheet-table tbody tr {
	transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.wplm-attendance-wrapper .wplm-attendance-sheet-wrap .att-sheet-table tbody tr:hover {
	background-color: #f8fafc !important;
	box-shadow: inset 3px 0 0 #93c5fd;
}

.wplm-attendance-wrapper .wplm-attendance-sheet-wrap .att-sheet-table tbody tr:hover td {
	background-color: #f8fafc !important;
}

.wplm-attendance-wrapper .wplm-attendance-sheet-wrap .att-sheet-table tbody tr.weekend {
	background-color: #f8fafc !important;
}

.wplm-attendance-wrapper .wplm-attendance-sheet-wrap .att-sheet-table tbody tr.weekend td {
	background-color: #f8fafc !important;
}

.wplm-attendance-wrapper .wplm-attendance-sheet-wrap .att-sheet-table tbody tr[data-missing="1"] {
	background: #fff7f7 !important;
	box-shadow: inset 4px 0 0 #f87171;
}

.wplm-attendance-wrapper .wplm-attendance-sheet-wrap .att-sheet-table tbody tr[data-missing="1"] td {
	background-color: #fff7f7 !important;
}

.wplm-attendance-wrapper .wplm-attendance-sheet-wrap .att-sheet-table tbody tr[data-missing="1"]:hover {
	background: #fff1f2 !important;
}

.wplm-attendance-wrapper .wplm-attendance-sheet-wrap .att-sheet-table tbody tr[data-missing="1"]:hover td {
	background-color: #fff1f2 !important;
}

.wplm-attendance-wrapper .wplm-attendance-sheet-wrap .att-sheet-table tbody tr[data-missing="1"] td:first-child::after {
	content: "Thiếu";
	display: inline-flex;
	align-items: center;
	height: 18px;
	margin-left: 6px;
	padding: 0 7px;
	border-radius: 999px;
	background: #fee2e2;
	color: #b91c1c;
	font-size: 10px;
	font-weight: 700;
	vertical-align: middle;
}

.wplm-attendance-wrapper .wplm-attendance-sheet-wrap .att-sheet-table .open-day-config {
	color: #2563eb !important;
	font-weight: 700 !important;
	line-height: 1.35;
	white-space: nowrap;
}

.wplm-attendance-wrapper .wplm-attendance-sheet-wrap .att-sheet-table input {
	width: 100% !important;
	min-height: 34px;
	border: 1px solid transparent !important;
	border-radius: 9px !important;
	background: transparent;
	color: #0f172a;
	font-size: 13px !important;
	font-weight: 500;
	text-align: center !important;
	outline: none !important;
	transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
	box-sizing: border-box;
}

.wplm-attendance-wrapper .wplm-attendance-sheet-wrap .att-sheet-table input:hover:not(:focus) {
	background: rgba(241, 245, 249, 0.85) !important;
	border-color: #e2e8f0 !important;
}

.wplm-attendance-wrapper .wplm-attendance-sheet-wrap .att-sheet-table input.is-missing-checkin {
	background: #fef9c3 !important;
	border-color: #fde68a !important;
	color: #92400e !important;
}

.wplm-attendance-wrapper .wplm-attendance-sheet-wrap .att-sheet-table input:focus {
	background: #fff !important;
	border-color: #3b82f6 !important;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.14) !important;
}

.wplm-attendance-wrapper .wplm-attendance-sheet-wrap .att-sheet-table input::placeholder {
	color: #cbd5e1 !important;
	font-style: italic;
	opacity: 1;
}

.wplm-attendance-wrapper .wplm-attendance-sheet-wrap .att-sheet-table .calc-col input,
.wplm-attendance-wrapper .wplm-attendance-sheet-wrap .att-sheet-table .calc-hours,
.wplm-attendance-wrapper .wplm-attendance-sheet-wrap .att-sheet-table .calc-cong {
	background: #f0fdf4 !important;
	color: #047857 !important;
	font-weight: 700 !important;
}

.wplm-attendance-wrapper .wplm-attendance-sheet-wrap .att-sheet-table .calc-late,
.wplm-attendance-wrapper .wplm-attendance-sheet-wrap .att-sheet-table .calc-late-tier1,
.wplm-attendance-wrapper .wplm-attendance-sheet-wrap .att-sheet-table .calc-late-tier2 {
	color: #dc2626 !important;
}

.wplm-attendance-wrapper .wplm-attendance-sheet-wrap .att-sheet-table .calc-ot {
	color: #2563eb !important;
}

.wplm-attendance-wrapper .wplm-attendance-sheet-wrap .att-sheet-table .note {
	text-align: left !important;
	padding-left: 12px !important;
}

.wplm-attendance-wrapper .wplm-attendance-sheet-wrap .att-sheet-table tfoot td {
	position: sticky;
	bottom: 0;
	z-index: 1;
	background: #f8fafc !important;
	border-top: 1px solid #dbe3ef !important;
	font-weight: 700 !important;
}

/* Transition for smooth width toggle */
.wplm-app-main .wplm-emp-wrapper,
.wplm-app-main .wplm-task-wrapper {
	transition: max-width 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Adjust main content padding in full width mode for better spacing */
@media (min-width: 641px) {
	#wplm-app-layout.wplm-full-width .wplm-app-main {
		padding: 24px !important;
	}
}

/* Toggle SVGs inside width button */
#wplm-app-layout.wplm-full-width .wplm-toggle-width-btn .wplm-icon-expand {
	display: none !important;
}
#wplm-app-layout.wplm-full-width .wplm-toggle-width-btn .wplm-icon-collapse {
	display: block !important;
}
#wplm-app-layout:not(.wplm-full-width) .wplm-toggle-width-btn .wplm-icon-expand {
	display: block !important;
}
#wplm-app-layout:not(.wplm-full-width) .wplm-toggle-width-btn .wplm-icon-collapse {
	display: none !important;
}

/* Rotate / scale microanimation on button hover/click */
.wplm-toggle-width-btn svg {
	width: 16px;
	height: 16px;
	transition: transform 0.2s ease;
}
.wplm-toggle-width-btn:active svg {
	transform: scale(0.85);
}

/* Typography scale normalization for the Notion-style app shell */
.wplm-app-layout {
	--wplm-type-title: 20px;
	--wplm-type-section: 18px;
	--wplm-type-subsection: 16px;
	--wplm-type-body: 14px;
	--wplm-type-sidebar: 13.5px;
	--wplm-type-control: 13px;
	--wplm-type-label: 12px;
	--wplm-type-caption: 11px;
	font-size: var(--wplm-type-body);
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

.wplm-app-layout .wplm-app-sidebar {
	font-size: var(--wplm-type-sidebar);
	line-height: 1.4;
}

.wplm-app-layout .wplm-app-main {
	font-size: var(--wplm-type-body) !important;
	line-height: 1.5;
	color: #37352f;
}

.wplm-app-layout .wplm-notion-breadcrumb-title {
	font-size: var(--wplm-type-body) !important;
	line-height: 1.35 !important;
}

.wplm-app-layout .wplm-notion-status {
	font-size: var(--wplm-type-label) !important;
	line-height: 1.35 !important;
}

.wplm-app-layout .wplm-app-menu a,
.wplm-app-layout.sidebar-collapsed .wplm-app-sidebar:hover .wplm-app-menu a,
.wplm-app-layout.sidebar-collapsed .wplm-sidebar-hover-zone:hover + .wplm-app-sidebar .wplm-app-menu a {
	font-size: var(--wplm-type-sidebar) !important;
	line-height: 1.35 !important;
}

.wplm-app-layout .wplm-app-user-info h4 {
	font-size: var(--wplm-type-sidebar) !important;
	line-height: 1.35 !important;
}

.wplm-app-layout .wplm-sidebar-tab {
	font-size: 12.5px !important;
	line-height: 1.2 !important;
}

.wplm-app-layout .wplm-sidebar-inbox-title,
.wplm-app-layout .wplm-sidebar-search-results a,
.wplm-app-layout .wplm-sidebar-chat-name,
.wplm-app-layout .wplm-sidebar-search-input {
	font-size: var(--wplm-type-control) !important;
	line-height: 1.4 !important;
}

.wplm-app-layout .wplm-sidebar-inbox-desc,
.wplm-app-layout .wplm-sidebar-chat-preview,
.wplm-app-layout .wplm-sidebar-inbox-time,
.wplm-app-layout .wplm-app-user-info span {
	font-size: var(--wplm-type-caption) !important;
	line-height: 1.35 !important;
}

@media (min-width: 641px) {
	.wplm-app-layout .wplm-app-main h1 {
		font-size: var(--wplm-type-title) !important;
		line-height: 1.3 !important;
		letter-spacing: 0 !important;
	}

	.wplm-app-layout .wplm-app-main h2 {
		font-size: var(--wplm-type-section) !important;
		line-height: 1.35 !important;
		letter-spacing: 0 !important;
	}

	.wplm-app-layout .wplm-app-main h3 {
		font-size: var(--wplm-type-subsection) !important;
		line-height: 1.35 !important;
		letter-spacing: 0 !important;
	}

	.wplm-app-layout .wplm-metric-info h3 {
		font-size: 24px !important;
		line-height: 1.2 !important;
	}

	.wplm-app-layout .wplm-app-main p,
	.wplm-app-layout .wplm-app-main li {
		line-height: 1.55 !important;
	}

	.wplm-app-layout .wplm-app-main input:not([type="checkbox"]):not([type="radio"]),
	.wplm-app-layout .wplm-app-main select,
	.wplm-app-layout .wplm-app-main textarea {
		font-size: var(--wplm-type-control) !important;
		line-height: 1.4 !important;
	}

	.wplm-app-layout .wplm-app-main .wplm-fe-btn,
	.wplm-app-layout .wplm-app-main .wplm-btn-new,
	.wplm-app-layout .wplm-app-main button[class*="btn"]:not([class*="close"]):not(.fe-rule-close):not(.wplm-modal-close):not(.wplm-ann-modal-x):not(.wplm-reads-close):not(.wplm-pwd-toggle),
	.wplm-app-layout .wplm-app-main button[id^="btn-"]:not([id*="close"]) {
		font-size: var(--wplm-type-control) !important;
		line-height: 1.35 !important;
	}

	.wplm-app-layout .wplm-app-main table:not(#rep-custom-ws-table) {
		font-size: var(--wplm-type-control) !important;
		line-height: 1.45 !important;
	}

	.wplm-app-layout .wplm-app-main table:not(#rep-custom-ws-table) th {
		font-size: var(--wplm-type-label) !important;
		line-height: 1.35 !important;
		letter-spacing: 0 !important;
	}

	.wplm-app-layout .wplm-app-main table:not(#rep-custom-ws-table) td {
		font-size: var(--wplm-type-control) !important;
		line-height: 1.45 !important;
	}

	.wplm-app-layout .wplm-app-main .wplm-fe-section-title,
	.wplm-app-layout .wplm-app-main .wplm-cal-list-title,
	.wplm-app-layout .wplm-app-main .wplm-create-sheet-title,
	.wplm-app-layout .wplm-app-main .wplm-ann-title {
		font-size: var(--wplm-type-subsection) !important;
		line-height: 1.35 !important;
		letter-spacing: 0 !important;
	}

	.wplm-app-layout .wplm-app-main .wplm-cal-title,
	.wplm-app-layout .wplm-app-main .wplm-ann-topbar-title {
		font-size: var(--wplm-type-section) !important;
		line-height: 1.35 !important;
		letter-spacing: 0 !important;
	}
}

/* ==========================================================================
   CHAT - NOTION MINIMAL REFRESH
   ========================================================================== */
@media (min-width: 769px) {
	.wplm-app-layout .wplm-app-main > .wplm-chat-wrapper {
		flex: 1 1 auto !important;
		width: 100% !important;
		max-width: none !important;
		min-height: 0 !important;
		margin: 0 !important;
		padding: 0 !important;
		border-radius: 0 !important;
		box-shadow: none !important;
		background: #ffffff !important;
		display: flex !important;
		flex-direction: column !important;
	}

	.wplm-app-layout .wplm-chat-wrapper .wplm-chat-layout {
		flex: 1 1 auto !important;
		width: 100% !important;
		height: calc(100dvh - 58px) !important;
		min-height: 0 !important;
		margin: 0 !important;
		border: none !important;
		border-radius: 0 !important;
		box-shadow: none !important;
		background: #ffffff !important;
		overflow: hidden !important;
	}

	.wplm-app-layout .wplm-chat-wrapper .wplm-chat-sidebar {
		width: 320px !important;
		min-width: 320px !important;
		background: #fbfbfa !important;
		border-right: 1px solid rgba(55, 53, 47, 0.09) !important;
	}

	.wplm-app-layout .wplm-chat-wrapper .wplm-chat-search {
		padding: 10px 12px !important;
		border-bottom: 1px solid rgba(55, 53, 47, 0.09) !important;
		background: #fbfbfa !important;
	}

	.wplm-app-layout .wplm-chat-wrapper .wplm-chat-search input {
		height: 34px !important;
		padding: 0 10px !important;
		border: 1px solid rgba(55, 53, 47, 0.12) !important;
		border-radius: 6px !important;
		background: rgba(55, 53, 47, 0.04) !important;
		color: #37352f !important;
		font-size: 13px !important;
		box-shadow: none !important;
	}

	.wplm-app-layout .wplm-chat-wrapper .wplm-chat-search input:focus {
		border-color: rgba(35, 131, 226, 0.45) !important;
		background: #ffffff !important;
		box-shadow: 0 0 0 2px rgba(35, 131, 226, 0.12) !important;
	}

	.wplm-app-layout .wplm-chat-wrapper .wplm-chat-group-list {
		padding: 6px 8px !important;
		background: #fbfbfa !important;
	}

	.wplm-app-layout .wplm-chat-wrapper .wplm-chat-group-item {
		gap: 10px !important;
		margin: 1px 0 !important;
		padding: 7px 8px !important;
		border: none !important;
		border-radius: 5px !important;
		background: transparent !important;
		transition: background 0.12s ease !important;
	}

	.wplm-app-layout .wplm-chat-wrapper .wplm-chat-group-item:hover {
		background: rgba(55, 53, 47, 0.06) !important;
	}

	.wplm-app-layout .wplm-chat-wrapper .wplm-chat-group-item.active {
		background: rgba(55, 53, 47, 0.08) !important;
		border-left: none !important;
	}

	.wplm-app-layout .wplm-chat-wrapper .wplm-chat-group-avatar {
		width: 28px !important;
		height: 28px !important;
		border-radius: 6px !important;
		background: #e3e2e0 !important;
		color: #37352f !important;
		font-size: 12px !important;
		font-weight: 600 !important;
		box-shadow: none !important;
	}

	.wplm-app-layout .wplm-chat-wrapper .wplm-chat-group-info h4 {
		color: #37352f !important;
		font-size: 13.5px !important;
		font-weight: 500 !important;
		line-height: 1.35 !important;
	}

	.wplm-app-layout .wplm-chat-wrapper .wplm-chat-group-info p {
		margin-top: 1px !important;
		color: rgba(55, 53, 47, 0.45) !important;
		font-size: 12px !important;
		line-height: 1.35 !important;
	}

	.wplm-app-layout .wplm-chat-wrapper .wplm-chat-badge {
		min-width: 16px !important;
		height: 16px !important;
		padding: 0 5px !important;
		border-radius: 999px !important;
		background: #eb5757 !important;
		font-size: 10px !important;
		line-height: 16px !important;
		box-shadow: none !important;
	}

	.wplm-app-layout .wplm-chat-wrapper .wplm-chat-empty {
		padding: 24px 12px !important;
		color: rgba(55, 53, 47, 0.45) !important;
		font-size: 13px !important;
	}

	.wplm-app-layout .wplm-chat-wrapper .wplm-chat-main {
		background: #ffffff !important;
	}

	.wplm-app-layout .wplm-chat-wrapper .wplm-chat-placeholder {
		padding: 24px !important;
		color: rgba(55, 53, 47, 0.45) !important;
		text-align: center !important;
	}

	.wplm-app-layout .wplm-chat-wrapper .wplm-chat-placeholder div {
		display: none !important;
	}

	.wplm-app-layout .wplm-chat-wrapper .wplm-chat-placeholder h3 {
		margin: 0 0 4px 0 !important;
		color: #37352f !important;
		font-size: 16px !important;
		font-weight: 600 !important;
		line-height: 1.35 !important;
	}

	.wplm-app-layout .wplm-chat-wrapper .wplm-chat-placeholder p {
		max-width: 280px !important;
		margin: 0 auto !important;
		color: rgba(55, 53, 47, 0.45) !important;
		font-size: 13px !important;
		line-height: 1.45 !important;
		white-space: normal !important;
	}

	.wplm-app-layout .wplm-chat-wrapper .wplm-chat-header {
		min-height: 46px !important;
		padding: 0 14px !important;
		border-bottom: 1px solid rgba(55, 53, 47, 0.09) !important;
		background: rgba(255, 255, 255, 0.95) !important;
		backdrop-filter: blur(8px) !important;
		-webkit-backdrop-filter: blur(8px) !important;
	}

	.wplm-app-layout .wplm-chat-wrapper .wplm-chat-header-info h3 {
		color: #37352f !important;
		font-size: 14px !important;
		font-weight: 600 !important;
		line-height: 1.3 !important;
	}

	.wplm-app-layout .wplm-chat-wrapper .wplm-chat-header-info span {
		color: rgba(55, 53, 47, 0.45) !important;
		font-size: 11.5px !important;
		line-height: 1.3 !important;
	}

	.wplm-app-layout .wplm-chat-wrapper .wplm-chat-header-actions .wplm-fe-btn-icon {
		width: 28px !important;
		height: 28px !important;
		border: none !important;
		border-radius: 4px !important;
		background: transparent !important;
		color: rgba(55, 53, 47, 0.55) !important;
		box-shadow: none !important;
		font-size: 14px !important;
	}

	.wplm-app-layout .wplm-chat-wrapper .wplm-chat-header-actions .wplm-fe-btn-icon:hover {
		background: rgba(55, 53, 47, 0.08) !important;
		color: #37352f !important;
	}

	.wplm-app-layout .wplm-chat-wrapper .wplm-chat-messages {
		padding: 18px 24px !important;
		background: #ffffff !important;
		gap: 6px !important;
	}

	.wplm-app-layout .wplm-chat-wrapper .wplm-chat-loading,
	.wplm-app-layout .wplm-chat-wrapper .wplm-msg-time-center {
		color: rgba(55, 53, 47, 0.45) !important;
		font-size: 11.5px !important;
	}

	.wplm-app-layout .wplm-chat-wrapper .wplm-msg-avatar {
		width: 24px !important;
		height: 24px !important;
		background: #e3e2e0 !important;
		color: #37352f !important;
		font-size: 9px !important;
	}

	.wplm-app-layout .wplm-chat-wrapper .wplm-msg-name {
		margin-left: 8px !important;
		color: rgba(55, 53, 47, 0.45) !important;
		font-size: 11px !important;
	}

	.wplm-app-layout .wplm-chat-wrapper .wplm-msg-bubble {
		padding: 7px 10px !important;
		border-radius: 8px !important;
		background: #f1f1ef !important;
		color: #37352f !important;
		box-shadow: none !important;
		font-size: 13.5px !important;
		line-height: 1.45 !important;
	}

	.wplm-app-layout .wplm-chat-wrapper .wplm-msg.mine .wplm-msg-bubble {
		background: #2383e2 !important;
		color: #ffffff !important;
		border-radius: 8px !important;
	}

	.wplm-app-layout .wplm-chat-wrapper .wplm-msg:not(.mine) .wplm-msg-bubble {
		border-radius: 8px !important;
	}

	.wplm-app-layout .wplm-chat-wrapper .wplm-chat-input {
		padding: 10px 14px !important;
		border-top: 1px solid rgba(55, 53, 47, 0.09) !important;
		background: #ffffff !important;
	}

	.wplm-app-layout .wplm-chat-wrapper .wplm-chat-input form {
		gap: 6px !important;
	}

	.wplm-app-layout .wplm-chat-wrapper .wplm-chat-attach-btn {
		width: 32px !important;
		height: 32px !important;
		padding: 0 !important;
		border-radius: 4px !important;
		color: rgba(55, 53, 47, 0.45) !important;
	}

	.wplm-app-layout .wplm-chat-wrapper .wplm-chat-attach-btn:hover {
		background: rgba(55, 53, 47, 0.08) !important;
		color: #37352f !important;
	}

	.wplm-app-layout .wplm-chat-wrapper .wplm-chat-input input[type="text"] {
		height: 34px !important;
		padding: 0 10px !important;
		border: 1px solid rgba(55, 53, 47, 0.12) !important;
		border-radius: 6px !important;
		background: rgba(55, 53, 47, 0.04) !important;
		color: #37352f !important;
		font-size: 13px !important;
		box-shadow: none !important;
	}

	.wplm-app-layout .wplm-chat-wrapper .wplm-chat-input input[type="text"]:focus {
		border-color: rgba(35, 131, 226, 0.45) !important;
		background: #ffffff !important;
		box-shadow: 0 0 0 2px rgba(35, 131, 226, 0.12) !important;
	}

	.wplm-app-layout .wplm-chat-wrapper .wplm-chat-input .wplm-fe-btn.primary {
		width: 34px !important;
		height: 34px !important;
		min-width: 34px !important;
		padding: 0 !important;
		border-radius: 6px !important;
		border-color: #37352f !important;
		background: #37352f !important;
		box-shadow: none !important;
		transform: none !important;
	}

	.wplm-app-layout .wplm-chat-wrapper .wplm-chat-input .wplm-fe-btn.primary:hover {
		background: #2f2d29 !important;
		border-color: #2f2d29 !important;
		box-shadow: none !important;
	}
}

.wplm-chat-wrapper .wplm-chat-header-actions .wplm-fe-btn-icon svg,
.wplm-chat-wrapper .wplm-chat-attach-btn svg,
.wplm-chat-wrapper .wplm-chat-input .wplm-fe-btn svg,
.wplm-chat-wrapper .wplm-voice-indicator svg {
	display: block;
	width: 18px;
	height: 18px;
	stroke-width: 1.75;
}

.wplm-chat-wrapper .wplm-chat-header-actions .wplm-fe-btn-icon {
	color: rgba(55, 53, 47, 0.5) !important;
}

.wplm-chat-wrapper .wplm-chat-header-actions .wplm-fe-btn-icon:hover {
	color: #37352f !important;
}

.wplm-chat-wrapper #fe-btn-delete-group:hover {
	color: #d44c47 !important;
}

.wplm-chat-wrapper .wplm-voice-indicator {
	width: 18px;
	height: 18px;
	color: #d44c47;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	animation: none;
	flex-shrink: 0;
}

.wplm-sidebar-chat-avatar {
	background: #e3e2e0 !important;
	color: #37352f !important;
	border-radius: 6px !important;
	box-shadow: none !important;
}

.wplm-sidebar-chat-avatar svg {
	display: block;
	width: 16px;
	height: 16px;
	stroke-width: 1.75;
}

/* Full-page Notion chat workspace */
@media (min-width: 641px) {
	#wplm-app-layout .wplm-app-main {
		position: relative !important;
	}

	#wplm-app-layout .wplm-app-main > .wplm-chat-wrapper,
	#wplm-app-layout.wplm-full-width .wplm-app-main > .wplm-chat-wrapper,
	#wplm-app-layout:not(.wplm-full-width) .wplm-app-main > .wplm-chat-wrapper {
		position: absolute !important;
		inset: 58px 0 0 0 !important;
		width: auto !important;
		max-width: none !important;
		min-width: 0 !important;
		height: auto !important;
		min-height: 0 !important;
		margin: 0 !important;
		padding: 0 !important;
		border: 0 !important;
		border-radius: 0 !important;
		box-shadow: none !important;
		background: #ffffff !important;
		display: flex !important;
		flex-direction: column !important;
		overflow: hidden !important;
		box-sizing: border-box !important;
	}

	#wplm-app-layout .wplm-chat-wrapper .wplm-chat-layout {
		flex: 1 1 auto !important;
		width: 100% !important;
		max-width: none !important;
		height: 100% !important;
		min-height: 0 !important;
		margin: 0 !important;
		border: none !important;
		border-radius: 0 !important;
		box-shadow: none !important;
	}

	#wplm-app-layout .wplm-chat-wrapper .wplm-chat-sidebar {
		width: clamp(320px, 24vw, 400px) !important;
		min-width: clamp(320px, 24vw, 400px) !important;
		max-width: clamp(320px, 24vw, 400px) !important;
		flex: 0 0 clamp(320px, 24vw, 400px) !important;
	}

	#wplm-app-layout .wplm-chat-wrapper .wplm-chat-search {
		box-sizing: border-box !important;
		overflow: visible !important;
	}

	#wplm-app-layout .wplm-chat-wrapper .wplm-chat-search input,
	#wplm-app-layout .wplm-chat-wrapper .wplm-chat-search input[type="text"] {
		display: block !important;
		width: 100% !important;
		max-width: 100% !important;
		margin: 0 !important;
		box-sizing: border-box !important;
	}
}

/* Notion-flat chat member panel */
#fe-chat-members-overlay.wplm-fe-slide-overlay {
	background: rgba(15, 15, 15, 0.28) !important;
	backdrop-filter: none !important;
	-webkit-backdrop-filter: none !important;
}

#fe-chat-members-panel.wplm-fe-slide-panel {
	max-width: 640px !important;
	background: #ffffff !important;
	border-left: 1px solid rgba(55, 53, 47, 0.12) !important;
	box-shadow: none !important;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
	color: #37352f !important;
}

#fe-chat-members-panel,
#fe-chat-members-panel * {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
	letter-spacing: 0 !important;
}

#fe-chat-members-panel .wplm-fe-slide-header {
	height: 58px !important;
	min-height: 58px !important;
	padding: 0 24px !important;
	border-bottom: 1px solid rgba(55, 53, 47, 0.09) !important;
	background: #ffffff !important;
	box-sizing: border-box !important;
}

#fe-chat-members-panel .wplm-fe-slide-header h3 {
	margin: 0 !important;
	color: #37352f !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	line-height: 1.3 !important;
}

#fe-chat-members-panel .fe-btn-close-panel {
	width: 28px !important;
	height: 28px !important;
	padding: 0 !important;
	border-radius: 4px !important;
	color: rgba(55, 53, 47, 0.45) !important;
	background: transparent !important;
	font-size: 22px !important;
	font-weight: 400 !important;
	line-height: 1 !important;
}

#fe-chat-members-panel .fe-btn-close-panel:hover {
	background: rgba(55, 53, 47, 0.08) !important;
	color: #37352f !important;
}

#fe-chat-members-panel .wplm-fe-slide-body {
	padding: 22px 24px !important;
	background: #ffffff !important;
}

#fe-chat-members-panel .wplm-chat-members-list {
	margin: 0 0 18px 0 !important;
	padding: 0 !important;
}

#fe-chat-members-panel .wplm-chat-member-item {
	padding: 10px 0 !important;
	gap: 10px !important;
	border-bottom: 1px solid rgba(55, 53, 47, 0.08) !important;
}

#fe-chat-members-panel .wplm-chat-member-avatar {
	width: 30px !important;
	height: 30px !important;
	border-radius: 6px !important;
	background: #f1f1ef !important;
	color: rgba(55, 53, 47, 0.75) !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	box-shadow: none !important;
}

#fe-chat-members-panel .wplm-chat-member-info strong {
	display: inline-flex !important;
	align-items: center !important;
	gap: 6px !important;
	margin: 0 !important;
	color: #37352f !important;
	font-size: 13.5px !important;
	font-weight: 500 !important;
	line-height: 1.35 !important;
}

#fe-chat-members-panel .wplm-chat-member-info small {
	display: block !important;
	margin-top: 2px !important;
	color: rgba(55, 53, 47, 0.5) !important;
	font-size: 12.5px !important;
	line-height: 1.35 !important;
}

#fe-chat-members-panel .wplm-chat-role-tag {
	background: rgba(35, 131, 226, 0.1) !important;
	color: #2383e2 !important;
	border-radius: 4px !important;
	padding: 1px 6px !important;
	font-size: 10.5px !important;
	font-weight: 600 !important;
	text-transform: none !important;
}

#fe-chat-members-panel .wplm-fe-btn-sm.danger {
	background: transparent !important;
	border: 1px solid rgba(235, 87, 87, 0.25) !important;
	color: #d44c47 !important;
	border-radius: 4px !important;
	padding: 5px 10px !important;
	font-size: 12.5px !important;
	font-weight: 500 !important;
	box-shadow: none !important;
}

#fe-chat-members-panel .wplm-fe-btn-sm.danger:hover {
	background: rgba(235, 87, 87, 0.08) !important;
	border-color: rgba(235, 87, 87, 0.35) !important;
}

#fe-chat-members-panel .wplm-fe-field {
	margin: 18px 0 0 0 !important;
	padding-top: 16px !important;
	border-top: 1px solid rgba(55, 53, 47, 0.1) !important;
}

#fe-chat-members-panel .wplm-fe-field label {
	margin-bottom: 8px !important;
	color: rgba(55, 53, 47, 0.7) !important;
	font-size: 12.5px !important;
	font-weight: 500 !important;
}

#fe-chat-members-panel #fe-chat-add-member-select {
	height: 36px !important;
	padding: 0 10px !important;
	border: 1px solid rgba(55, 53, 47, 0.16) !important;
	border-radius: 4px !important;
	background: #ffffff !important;
	color: #37352f !important;
	font-size: 13px !important;
	box-shadow: none !important;
}

#fe-chat-members-panel #fe-chat-add-member-select:focus {
	outline: none !important;
	border-color: rgba(35, 131, 226, 0.45) !important;
	box-shadow: 0 0 0 2px rgba(35, 131, 226, 0.12) !important;
}

#fe-chat-members-panel #fe-btn-add-chat-member {
	height: 36px !important;
	padding: 0 14px !important;
	border: 1px solid rgba(55, 53, 47, 0.16) !important;
	border-radius: 4px !important;
	background: #f7f7f5 !important;
	color: #37352f !important;
	box-shadow: none !important;
	font-size: 13px !important;
	font-weight: 500 !important;
	transform: none !important;
}

#fe-chat-members-panel #fe-btn-add-chat-member:hover {
	background: rgba(55, 53, 47, 0.08) !important;
	border-color: rgba(55, 53, 47, 0.18) !important;
	box-shadow: none !important;
}

/* Notion-style mobile navigation and more menu */
@media (max-width: 640px) {
	.wplm-admin-mobile-nav,
	.wplm-admin-mobile-nav *,
	.wplm-admin-mobile-more,
	.wplm-admin-mobile-more * {
		font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
		letter-spacing: 0 !important;
	}

	.wplm-admin-mobile-more-overlay.visible {
		background: rgba(15, 15, 15, 0.28) !important;
		backdrop-filter: none !important;
		-webkit-backdrop-filter: none !important;
	}

	.wplm-admin-mobile-more {
		left: 20px !important;
		right: 20px !important;
		bottom: calc(78px + env(safe-area-inset-bottom)) !important;
		padding: 22px 18px 20px !important;
		background: #ffffff !important;
		border: 1px solid rgba(55, 53, 47, 0.10) !important;
		border-radius: 14px !important;
		box-shadow: 0 10px 30px rgba(15, 15, 15, 0.16) !important;
	}

	.wplm-admin-more-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
		gap: 18px 10px !important;
	}

	.wplm-admin-more-item {
		min-width: 0 !important;
		gap: 7px !important;
		padding: 2px 0 !important;
		border-radius: 6px !important;
		color: #37352f !important;
		font-size: 11.5px !important;
		font-weight: 500 !important;
		line-height: 1.25 !important;
		text-align: center !important;
	}

	.wplm-admin-more-item:active {
		background: rgba(55, 53, 47, 0.06) !important;
	}

	.wplm-admin-more-item .more-icon {
		width: 42px !important;
		height: 42px !important;
		border-radius: 12px !important;
		background: #f1f1ef !important;
		color: rgba(55, 53, 47, 0.72) !important;
		box-shadow: none !important;
	}

	.wplm-admin-more-item .more-icon svg {
		width: 19px !important;
		height: 19px !important;
		stroke-width: 2 !important;
	}

	.wplm-admin-mobile-nav {
		background: rgba(255, 255, 255, 0.96) !important;
		border-top: 1px solid rgba(55, 53, 47, 0.09) !important;
		box-shadow: none !important;
	}

	.wplm-admin-mobile-nav a {
		color: rgba(55, 53, 47, 0.58) !important;
		font-size: 10.5px !important;
		font-weight: 500 !important;
		line-height: 1.2 !important;
	}

	.wplm-admin-mobile-nav a.active {
		color: #37352f !important;
	}

	.wplm-admin-mobile-nav a .amnav-icon {
		width: 34px !important;
		height: 34px !important;
		border-radius: 10px !important;
		background: transparent !important;
		box-shadow: none !important;
		color: inherit !important;
	}

	.wplm-admin-mobile-nav a.active .amnav-icon {
		background: rgba(35, 131, 226, 0.10) !important;
		color: #2383e2 !important;
		box-shadow: none !important;
	}

	.wplm-admin-mobile-nav a .amnav-icon svg {
		width: 21px !important;
		height: 21px !important;
		stroke-width: 2 !important;
	}
}

/* Notion header type scale lock */
.wplm-app-layout .wplm-notion-breadcrumb-title {
	font-size: 14px !important;
	font-weight: 500 !important;
	line-height: 1.35 !important;
	color: #37352f !important;
}

.wplm-app-layout .wplm-notion-status {
	font-size: 12px !important;
	font-weight: 400 !important;
	line-height: 1.35 !important;
	color: rgba(55, 53, 47, 0.55) !important;
}

/* Notion-style payroll full-page layout */
#wplm-app-layout .wplm-app-main .wplm-payroll-page {
	width: 100% !important;
	max-width: none !important;
	min-height: calc(100dvh - 58px) !important;
	margin: 0 !important;
	padding: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	background: #ffffff !important;
	color: #37352f !important;
}

#wplm-app-layout .wplm-payroll-page,
#wplm-app-layout .wplm-payroll-page * {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
	letter-spacing: 0 !important;
}

@media (min-width: 1025px) {
	#wplm-app-layout .wplm-payroll-page > div:first-of-type {
		padding: 54px clamp(40px, 5vw, 88px) 32px !important;
		border-bottom: 1px solid rgba(55, 53, 47, 0.09) !important;
		background: #ffffff !important;
	}

	#wplm-app-layout .wplm-payroll-page > div:first-of-type > div:first-child {
		gap: 14px !important;
	}

	#wplm-app-layout .wplm-payroll-page > div:first-of-type > div:first-child > div:first-child {
		width: 42px !important;
		height: 42px !important;
		padding: 0 !important;
		border-radius: 9px !important;
		background: rgba(255, 185, 0, 0.16) !important;
		box-shadow: none !important;
	}

	#wplm-app-layout .wplm-payroll-page h1 {
		margin: 0 0 4px !important;
		color: #37352f !important;
		font-size: 22px !important;
		font-weight: 700 !important;
		line-height: 1.25 !important;
	}

	#wplm-app-layout .wplm-payroll-page p {
		color: rgba(55, 53, 47, 0.58) !important;
		font-size: 14px !important;
		font-weight: 400 !important;
		line-height: 1.4 !important;
	}

	#wplm-app-layout .wplm-payroll-header-back {
		width: 34px !important;
		height: 34px !important;
		flex-basis: 34px !important;
		border: 1px solid rgba(55, 53, 47, 0.14) !important;
		border-radius: 7px !important;
		background: #ffffff !important;
		color: rgba(55, 53, 47, 0.72) !important;
		box-shadow: none !important;
	}

	#wplm-app-layout .wplm-payroll-header-back:hover {
		background: rgba(55, 53, 47, 0.06) !important;
		border-color: rgba(55, 53, 47, 0.18) !important;
		color: #37352f !important;
	}

	#wplm-app-layout .wplm-payroll-page > div:nth-of-type(2) {
		padding: 30px clamp(40px, 5vw, 88px) 52px !important;
		background: #ffffff !important;
	}

	#wplm-app-layout .wplm-payroll-page > div:nth-of-type(2) > div:first-child {
		gap: 8px !important;
		margin: 0 0 28px !important;
		align-items: center !important;
	}

	#wplm-app-layout .wplm-payroll-page > div:nth-of-type(2) > div:first-child > div {
		height: 36px !important;
		padding: 0 10px !important;
		border: 1px solid rgba(55, 53, 47, 0.16) !important;
		border-radius: 6px !important;
		background: #ffffff !important;
		box-shadow: none !important;
	}

	#wplm-app-layout .wplm-payroll-page select {
		color: #37352f !important;
		font-size: 14px !important;
		font-weight: 400 !important;
		line-height: 1.35 !important;
	}

	#wplm-app-layout .wplm-payroll-page #save-status {
		min-height: 20px !important;
		padding-left: 4px !important;
		color: rgba(55, 53, 47, 0.55) !important;
		font-size: 12.5px !important;
		font-weight: 500 !important;
	}

	#wplm-app-layout .wplm-payroll-page #emp-cards-list {
		display: flex !important;
		align-items: flex-start !important;
		gap: 28px !important;
		margin: 0 0 28px !important;
	}

	#wplm-app-layout .wplm-payroll-page #emp-cards-list > div[style*="text-transform:uppercase"] {
		flex: 0 0 100% !important;
		margin: 18px 0 6px !important;
		color: rgba(55, 53, 47, 0.55) !important;
		font-size: 11px !important;
		font-weight: 600 !important;
		line-height: 1.35 !important;
		text-transform: uppercase !important;
	}

	#wplm-app-layout .wplm-payroll-page .emp-card-pill {
		min-height: 30px !important;
		padding: 0 10px !important;
		border-radius: 999px !important;
		font-size: 13px !important;
		font-weight: 600 !important;
		line-height: 1 !important;
		white-space: nowrap !important;
	}

	#wplm-app-layout .wplm-payroll-page .emp-card-pill:hover {
		filter: brightness(0.97);
		transform: translateY(-1px);
	}

	#wplm-app-layout .wplm-payroll-page .emp-card-pill svg {
		width: 13px !important;
		height: 13px !important;
	}

	#wplm-app-layout .wplm-payroll-page #pr-monthly-body {
		width: 100% !important;
		max-width: none !important;
	}

	#wplm-app-layout .wplm-payroll-page #pr-monthly-body > div[style*="grid-template-columns:1fr 1fr"] {
		display: grid !important;
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 16px !important;
		width: 100% !important;
		max-width: none !important;
	}

	#wplm-app-layout .wplm-payroll-page #pr-monthly-body > div[style*="grid-template-columns:1fr 1fr"] > div {
		border: 1px solid rgba(55, 53, 47, 0.12) !important;
		border-radius: 8px !important;
		box-shadow: none !important;
	}
}

@media (max-width: 1024px) {
	body.wplm-payroll-mobile-open .wplm-payroll-page {
		width: 100% !important;
		max-width: none !important;
		min-height: 100dvh !important;
		margin: 0 !important;
		padding: 0 !important;
		background: #ffffff !important;
	}

	body.wplm-payroll-mobile-open .wplm-payroll-page > div:first-of-type {
		padding: 18px 18px 20px !important;
		background: #ffffff !important;
		border-bottom: 1px solid rgba(55, 53, 47, 0.09) !important;
	}

	body.wplm-payroll-mobile-open .wplm-payroll-page > div:first-of-type h1 {
		margin: 0 0 4px !important;
		font-size: 20px !important;
		font-weight: 700 !important;
		line-height: 1.25 !important;
		color: #37352f !important;
	}

body.wplm-payroll-mobile-open .wplm-payroll-page > div:first-of-type p {
		max-width: none !important;
		font-size: 13px !important;
		line-height: 1.4 !important;
		color: rgba(55, 53, 47, 0.58) !important;
	}
}

/* Payroll must ignore the app shell's standard content width. */
#wplm-app-layout.wplm-payroll-tab .wplm-app-main {
	padding: 0 !important;
}

#wplm-app-layout.wplm-payroll-tab.wplm-full-width .wplm-app-main .wplm-emp-wrapper.wplm-payroll-page,
#wplm-app-layout.wplm-payroll-tab:not(.wplm-full-width) .wplm-app-main .wplm-emp-wrapper.wplm-payroll-page {
	width: 100% !important;
	max-width: none !important;
	min-width: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
}

@media (min-width: 1025px) {
	#wplm-app-layout.wplm-payroll-tab .wplm-payroll-page > div:first-of-type {
		display: none !important;
	}

	#wplm-app-layout.wplm-payroll-tab .wplm-payroll-page > div:first-of-type,
	#wplm-app-layout.wplm-payroll-tab .wplm-payroll-page > div:nth-of-type(2) {
		width: 100% !important;
		max-width: none !important;
		box-sizing: border-box !important;
	}

	#wplm-app-layout.wplm-payroll-tab .wplm-payroll-page > div:nth-of-type(2) {
		padding: 56px 36px 36px !important;
	}

	#wplm-app-layout.wplm-payroll-tab .wplm-payroll-page #emp-cards-list {
		gap: 26px 30px !important;
		align-items: flex-start !important;
	}

	#wplm-app-layout.wplm-payroll-tab .wplm-payroll-page #emp-cards-list .role-group {
		min-width: 150px !important;
		max-width: 300px !important;
	}
}

/* Payroll compact desktop polish */
@media (min-width: 1025px) {
	#wplm-app-layout.wplm-payroll-tab .wplm-payroll-page .wplm-payroll-content {
		padding: 44px 36px 34px !important;
	}

	#wplm-app-layout.wplm-payroll-tab .wplm-payroll-page .wplm-payroll-filter {
		margin-bottom: 48px !important;
		gap: 10px !important;
	}

	#wplm-app-layout.wplm-payroll-tab .wplm-payroll-page #emp-cards-list {
		gap: 22px 36px !important;
		margin: 0 0 54px !important;
		justify-content: flex-start !important;
		align-items: flex-start !important;
	}

	#wplm-app-layout.wplm-payroll-tab .wplm-payroll-page #emp-cards-list .role-group {
		flex: 0 0 auto !important;
		min-width: 118px !important;
		max-width: 280px !important;
	}

	#wplm-app-layout.wplm-payroll-tab .wplm-payroll-page #pr-monthly-body > div {
		padding-top: 8px !important;
		color: rgba(55, 53, 47, 0.45) !important;
		font-size: 14px !important;
	}
}

/* Attendance month config: simpler Notion-style controls */
#att-config-panel-wrapper {
	background: #fff !important;
	border: 1px solid rgba(55, 53, 47, 0.10) !important;
	border-radius: 8px !important;
	box-shadow: none !important;
	padding: 14px 16px !important;
}

#toggle-att-config {
	gap: 12px !important;
	align-items: flex-start !important;
}

#toggle-att-config h4 {
	margin: 0 !important;
	color: #37352f !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	line-height: 1.35 !important;
}

#toggle-att-config h4 > svg {
	display: none !important;
}

#lbl-config-month {
	color: #37352f !important;
	font-weight: 600 !important;
}

#lbl-config-badge {
	background: rgba(55, 53, 47, 0.06) !important;
	border: 1px solid rgba(55, 53, 47, 0.08) !important;
	color: rgba(55, 53, 47, 0.62) !important;
	border-radius: 4px !important;
	font-size: 10.5px !important;
	font-weight: 500 !important;
	padding: 1px 5px !important;
}

.wplm-att-config-employee {
	display: block !important;
	margin-top: 4px !important;
	color: #37352f !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	line-height: 1.35 !important;
}

#att-config-icon {
	color: rgba(55, 53, 47, 0.58) !important;
	font-size: 12px !important;
	font-weight: 500 !important;
	line-height: 1.35 !important;
	white-space: nowrap !important;
}

#att-config-content {
	margin-top: 12px !important;
	padding-top: 14px !important;
	border-top: 1px solid rgba(55, 53, 47, 0.09) !important;
}

#att-config-content > div:first-child {
	gap: 12px !important;
	margin-bottom: 12px !important;
}

#att-config-content > div:first-child > div {
	background: #fff !important;
	border: 1px solid rgba(55, 53, 47, 0.09) !important;
	border-radius: 8px !important;
	padding: 12px !important;
	box-shadow: none !important;
}

#att-config-content > div:first-child > div > div:first-child,
#att-config-content #lbl-mc-hpw,
#att-config-content label {
	color: #37352f !important;
	font-size: 12px !important;
	font-weight: 500 !important;
}

#att-config-content input:not([type="checkbox"]),
#att-config-content select {
	background: #fff !important;
	border: 1px solid rgba(55, 53, 47, 0.16) !important;
	border-radius: 6px !important;
	color: #37352f !important;
	font-size: 13px !important;
	box-shadow: none !important;
}

#att-config-content input[type="time"] {
	width: 92px !important;
	padding: 5px 6px !important;
}

#att-config-content > div:first-child > div:first-child > div:nth-child(2) {
	display: grid !important;
	gap: 10px !important;
}

#att-config-content > div:first-child > div:first-child > div:nth-child(2) > div {
	display: grid !important;
	grid-template-columns: 68px minmax(0, 1fr) 10px minmax(0, 1fr) !important;
	align-items: center !important;
	column-gap: 8px !important;
}

#att-config-content > div:first-child > div:first-child > div:nth-child(2) label {
	width: auto !important;
	min-width: 0 !important;
	margin: 0 !important;
	white-space: nowrap !important;
}

#att-config-content > div:first-child > div:first-child > div:nth-child(2) input[type="time"] {
	width: 100% !important;
	min-width: 0 !important;
	box-sizing: border-box !important;
}

#att-config-content > div:first-child > div:first-child > div:nth-child(2) span {
	text-align: center !important;
}

#att-config-content input[type="checkbox"] {
	accent-color: #37352f !important;
}

#att-config-content > div:last-child {
	justify-content: flex-end !important;
	gap: 8px !important;
}

#btn-save-mc-month,
#btn-save-mc-all {
	min-height: 30px !important;
	padding: 0 11px !important;
	border-radius: 6px !important;
	border: 1px solid rgba(55, 53, 47, 0.14) !important;
	background: #fff !important;
	color: #37352f !important;
	box-shadow: none !important;
	font-size: 12.5px !important;
	font-weight: 500 !important;
}

#btn-save-mc-month {
	background: rgba(55, 53, 47, 0.06) !important;
}

@media (max-width: 640px) {
	#att-config-panel-wrapper {
		padding: 14px 12px !important;
	}

	#att-config-content > div:first-child {
		grid-template-columns: 1fr !important;
	}

	#att-config-content > div:first-child > div:first-child > div:nth-child(2) > div {
		grid-template-columns: 60px minmax(0, 1fr) 8px minmax(0, 1fr) !important;
		column-gap: 6px !important;
	}

	#att-config-content > div:last-child {
		display: grid !important;
		grid-template-columns: 1fr 1fr !important;
	}

	#btn-save-mc-month,
	#btn-save-mc-all {
		width: 100% !important;
	}
}

/* Attendance management month deductions */
.wplm-att-admin-deductions {
	background: #fff !important;
	border: 1px solid rgba(55, 53, 47, 0.10) !important;
	border-radius: 8px !important;
	box-shadow: none !important;
	padding: 12px !important;
	margin: 0 0 14px 0 !important;
}

.wplm-att-admin-deductions-grid {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	gap: 10px !important;
}

.wplm-att-admin-deductions label {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 10px !important;
	margin: 0 !important;
	min-width: 0 !important;
}

.wplm-att-admin-deductions span {
	color: #37352f !important;
	font-size: 12.5px !important;
	font-weight: 500 !important;
	line-height: 1.35 !important;
	white-space: nowrap !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
}

.wplm-att-admin-deductions .rep-money-input {
	width: 128px !important;
	height: 34px !important;
	padding: 0 10px !important;
	border: 1px solid rgba(55, 53, 47, 0.16) !important;
	border-radius: 6px !important;
	background: #fff !important;
	color: #37352f !important;
	font-size: 13px !important;
	font-weight: 500 !important;
	text-align: right !important;
	font-variant-numeric: tabular-nums !important;
	box-shadow: none !important;
	box-sizing: border-box !important;
}

.wplm-att-admin-deductions .rep-money-input:focus {
	outline: none !important;
	border-color: rgba(35, 131, 226, 0.45) !important;
	box-shadow: 0 0 0 2px rgba(35, 131, 226, 0.10) !important;
}

@media (max-width: 1180px) and (min-width: 641px) {
	.wplm-att-admin-deductions-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 640px) {
	.wplm-att-admin-deductions {
		padding: 12px !important;
	}

	.wplm-att-admin-deductions-grid {
		grid-template-columns: 1fr !important;
		gap: 12px !important;
	}

	.wplm-att-admin-deductions .rep-money-input {
		width: 142px !important;
	}
}

/* Attendance report quick input: simple Notion-style panel */
#att-rep-input-panel {
	background: #fff !important;
	border: 1px solid rgba(55, 53, 47, 0.10) !important;
	border-radius: 8px !important;
	box-shadow: none !important;
	padding: 16px !important;
}

.wplm-report-quick-head {
	display: flex !important;
	align-items: flex-start !important;
	justify-content: space-between !important;
	gap: 12px !important;
	margin-bottom: 16px !important;
}

.wplm-report-quick-title {
	color: #37352f !important;
	font-size: 18px !important;
	font-weight: 700 !important;
	line-height: 1.25 !important;
}

.wplm-report-quick-subtitle {
	margin-top: 2px !important;
	color: rgba(55, 53, 47, 0.58) !important;
	font-size: 12px !important;
	font-weight: 400 !important;
	line-height: 1.35 !important;
}

#att-rep-form > div:first-child {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	gap: 14px 16px !important;
	margin-bottom: 16px !important;
}

#att-rep-form > div:first-child > div {
	min-width: 0 !important;
}

#att-rep-form label {
	color: #37352f !important;
	font-size: 12px !important;
	font-weight: 500 !important;
	line-height: 1.35 !important;
	margin-bottom: 5px !important;
	white-space: nowrap !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
}

#att-rep-form label span {
	color: rgba(55, 53, 47, 0.45) !important;
	font-size: 11px !important;
	font-weight: 400 !important;
}

#att-rep-form input[type="number"],
#att-rep-form input[type="text"] {
	height: 36px !important;
	padding: 0 10px !important;
	border: 1px solid rgba(55, 53, 47, 0.16) !important;
	border-radius: 6px !important;
	background: #fff !important;
	color: #37352f !important;
	font-size: 13px !important;
	box-shadow: none !important;
}

#att-rep-form input[type="number"]::placeholder,
#att-rep-form input[type="text"]::placeholder {
	color: rgba(55, 53, 47, 0.42) !important;
}

#att-rep-form input[type="number"]:focus,
#att-rep-form input[type="text"]:focus {
	border-color: rgba(35, 131, 226, 0.45) !important;
	box-shadow: 0 0 0 2px rgba(35, 131, 226, 0.10) !important;
}

#att-rep-form .rep-money-input {
	text-align: right !important;
	font-variant-numeric: tabular-nums !important;
}

#att-rep-form > div:last-child {
	display: flex !important;
	justify-content: flex-end !important;
	gap: 8px !important;
	margin-top: 2px !important;
}

#btn-rep-clear,
#btn-rep-save {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	min-height: 30px !important;
	padding: 0 11px !important;
	border-radius: 6px !important;
	box-shadow: none !important;
	font-size: 12.5px !important;
	font-weight: 500 !important;
	line-height: 1 !important;
}

#btn-rep-clear {
	background: #fff !important;
	color: rgba(55, 53, 47, 0.68) !important;
	border: 1px solid rgba(55, 53, 47, 0.14) !important;
}

#btn-rep-save {
	background: rgba(55, 53, 47, 0.90) !important;
	color: #fff !important;
	border: 1px solid rgba(55, 53, 47, 0.90) !important;
}

@media (max-width: 1180px) and (min-width: 641px) {
	#att-rep-form > div:first-child {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 640px) {
	#att-rep-input-panel {
		padding: 14px 12px !important;
	}

	.wplm-report-quick-head {
		display: block !important;
		margin-bottom: 14px !important;
	}

	#att-rep-form > div:first-child {
		grid-template-columns: 1fr !important;
		gap: 12px !important;
	}

	#att-rep-form > div:last-child {
		display: grid !important;
		grid-template-columns: repeat(2, minmax(0, 140px)) !important;
		justify-content: center !important;
	}

	#btn-rep-clear,
	#btn-rep-save {
		width: auto !important;
	}
}

/* Attendance report workspace: simple Notion-style panel */
#att-rep-workspace-panel {
	background: #fff !important;
	border: 1px solid rgba(55, 53, 47, 0.10) !important;
	border-radius: 8px !important;
	box-shadow: none !important;
	padding: 16px !important;
}

.wplm-report-workspace-head {
	margin-bottom: 14px !important;
}

.wplm-report-workspace-title {
	color: #37352f !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	line-height: 1.35 !important;
}

.wplm-report-workspace-subtitle {
	margin-top: 2px !important;
	color: rgba(55, 53, 47, 0.58) !important;
	font-size: 12px !important;
	font-weight: 400 !important;
	line-height: 1.35 !important;
}

.wplm-report-sheet-box,
#rep-custom-workspace-wrapper {
	background: #fff !important;
	border: 1px solid rgba(55, 53, 47, 0.10) !important;
	border-radius: 8px !important;
	box-shadow: none !important;
	padding: 12px !important;
}

.wplm-report-sheet-box {
	margin-bottom: 12px !important;
}

.wplm-report-sheet-box label {
	color: #37352f !important;
	font-size: 12px !important;
	font-weight: 500 !important;
	line-height: 1.35 !important;
	margin-bottom: 7px !important;
}

.wplm-report-sheet-box > div {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) auto !important;
	gap: 8px !important;
}

#inp-rep-sheet-url {
	height: 36px !important;
	min-width: 0 !important;
	padding: 0 10px !important;
	border: 1px solid rgba(55, 53, 47, 0.16) !important;
	border-radius: 6px !important;
	color: #37352f !important;
	font-size: 13px !important;
	box-shadow: none !important;
}

#btn-rep-save-sheet-url,
#btn-rep-ws-add-row,
#btn-rep-ws-add-col,
#btn-rep-ws-save {
	min-height: 30px !important;
	padding: 0 10px !important;
	border-radius: 6px !important;
	border: 1px solid rgba(55, 53, 47, 0.14) !important;
	background: #fff !important;
	color: #37352f !important;
	box-shadow: none !important;
	font-size: 12.5px !important;
	font-weight: 500 !important;
	line-height: 1 !important;
}

#btn-rep-save-sheet-url,
#btn-rep-ws-save {
	background: rgba(55, 53, 47, 0.90) !important;
	border-color: rgba(55, 53, 47, 0.90) !important;
	color: #fff !important;
}

.wplm-report-sheet-box p {
	color: rgba(55, 53, 47, 0.50) !important;
	font-size: 11.5px !important;
	line-height: 1.45 !important;
	margin-top: 6px !important;
}

.wplm-report-workspace-toolbar {
	gap: 8px !important;
	margin-bottom: 12px !important;
}

.wplm-report-workspace-section-title {
	color: #37352f !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	line-height: 1.35 !important;
}

.wplm-report-workspace-toolbar > div {
	display: flex !important;
	flex-wrap: wrap !important;
	gap: 6px !important;
}

#rep-custom-workspace-wrapper > div:last-child {
	border: 1px solid rgba(55, 53, 47, 0.10) !important;
	border-radius: 6px !important;
	overflow: auto !important;
}

#rep-custom-ws-table {
	font-size: 12.5px !important;
	min-width: 520px !important;
}

#rep-custom-ws-table th,
#rep-custom-ws-table td {
	border-color: rgba(55, 53, 47, 0.10) !important;
	color: #37352f !important;
}

#rep-custom-ws-table th {
	background: rgba(55, 53, 47, 0.04) !important;
	font-weight: 500 !important;
}

#rep-custom-ws-table td {
	height: 32px !important;
	padding: 6px 8px !important;
}

@media (max-width: 640px) {
	#att-rep-workspace-panel {
		padding: 14px 12px !important;
	}

	.wplm-report-sheet-box > div {
		grid-template-columns: 1fr !important;
	}

	#btn-rep-save-sheet-url {
		width: 100% !important;
	}

	.wplm-report-workspace-toolbar {
		display: block !important;
	}

	.wplm-report-workspace-toolbar > div {
		display: grid !important;
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
		margin-top: 10px !important;
	}

	#btn-rep-ws-add-row,
	#btn-rep-ws-add-col,
	#btn-rep-ws-save {
		width: 100% !important;
		padding: 0 6px !important;
		font-size: 12px !important;
	}
}

/* Accounts: Notion-style database view */
.wplm-accounts-page {
	background: #fff !important;
	color: #37352f !important;
	box-shadow: none !important;
	border-radius: 0 !important;
	padding: 24px 20px 56px !important;
	width: 100% !important;
	max-width: none !important;
	box-sizing: border-box !important;
}

#wplm-app-layout .wplm-app-main .wplm-accounts-page,
#wplm-app-layout:not(.wplm-full-width) .wplm-app-main .wplm-accounts-page {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
}

.wplm-accounts-page .wplm-emp-topbar,
.wplm-accounts-page .wplm-metric-grid {
	display: none !important;
}

.wplm-accounts-database {
	background: #fff !important;
	border: 1px solid rgba(55, 53, 47, 0.12) !important;
	border-radius: 8px !important;
	box-shadow: none !important;
	overflow: hidden !important;
	width: 100% !important;
	box-sizing: border-box !important;
}

.wplm-accounts-table-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 14px 16px;
	border-bottom: 1px solid rgba(55, 53, 47, 0.10);
	background: #fff;
}

.wplm-accounts-table-heading {
	flex: 1 1 340px;
	min-width: 280px;
}

.wplm-accounts-table-heading h2 {
	margin: 0 !important;
	color: #37352f !important;
	font-size: 18px !important;
	font-weight: 600 !important;
	line-height: 1.3 !important;
}

.wplm-accounts-pills {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 6px;
	width: min(100%, 320px);
	margin-top: 8px;
}

.wplm-accounts-pills span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 24px;
	padding: 0 8px;
	border-radius: 5px;
	background: rgba(55, 53, 47, 0.06);
	color: rgba(55, 53, 47, 0.70);
	font-size: 12px;
	font-weight: 500;
	line-height: 1;
	white-space: nowrap;
}

.wplm-accounts-pills span:nth-child(2) {
	background: #edf7ef;
	color: #2d6a3f;
}

.wplm-accounts-pills span:nth-child(3) {
	background: #fbf3db;
	color: #835c1d;
}

.wplm-accounts-pills span:nth-child(4) {
	background: #f4eeee;
	color: #7d4b4b;
}

.wplm-accounts-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	flex-wrap: wrap;
	margin-left: auto;
}

.wplm-accounts-page .wplm-fe-btn,
#fe-create-account-panel .wplm-fe-btn,
#fe-add-existing-panel .wplm-fe-btn,
#fe-edit-account-panel .wplm-fe-btn {
	min-height: 32px !important;
	padding: 0 11px !important;
	border-radius: 6px !important;
	box-shadow: none !important;
	font-size: 13px !important;
	font-weight: 500 !important;
	line-height: 1 !important;
	gap: 7px !important;
	transform: none !important;
}

.wplm-accounts-page .wplm-fe-btn.primary,
#fe-create-account-panel .wplm-fe-btn.primary,
#fe-add-existing-panel .wplm-fe-btn.primary,
#fe-edit-account-panel .wplm-fe-btn.primary {
	background: #2383e2 !important;
	border: 1px solid #2383e2 !important;
	color: #fff !important;
}

.wplm-accounts-page .wplm-fe-btn.primary:hover,
#fe-create-account-panel .wplm-fe-btn.primary:hover,
#fe-add-existing-panel .wplm-fe-btn.primary:hover,
#fe-edit-account-panel .wplm-fe-btn.primary:hover {
	background: #1f73c7 !important;
	border-color: #1f73c7 !important;
	box-shadow: none !important;
}

.wplm-accounts-page .wplm-fe-btn.outline,
.wplm-accounts-page .wplm-fe-btn.default,
#fe-create-account-panel .wplm-fe-btn.default,
#fe-add-existing-panel .wplm-fe-btn.default,
#fe-edit-account-panel .wplm-fe-btn.default {
	background: #fff !important;
	border: 1px solid rgba(55, 53, 47, 0.16) !important;
	color: #37352f !important;
}

.wplm-accounts-page .wplm-fe-btn.outline:hover,
.wplm-accounts-page .wplm-fe-btn.default:hover,
#fe-create-account-panel .wplm-fe-btn.default:hover,
#fe-add-existing-panel .wplm-fe-btn.default:hover,
#fe-edit-account-panel .wplm-fe-btn.default:hover {
	background: rgba(55, 53, 47, 0.04) !important;
	border-color: rgba(55, 53, 47, 0.20) !important;
}

.wplm-accounts-page .wplm-fe-btn.danger {
	background: #fff !important;
	border: 1px solid #fecaca !important;
	color: #b91c1c !important;
}

.wplm-accounts-page .wplm-fe-btn.danger:not(:disabled):hover {
	background: #fee2e2 !important;
	border-color: #fca5a5 !important;
}

.wplm-accounts-page .wplm-fe-btn:disabled {
	opacity: 0.52 !important;
	cursor: not-allowed !important;
}

.wplm-accounts-search-wrap {
	position: relative;
	display: flex;
	align-items: center;
	width: min(240px, 100%);
	color: rgba(55, 53, 47, 0.46);
}

.wplm-accounts-search-wrap svg {
	position: absolute;
	left: 10px;
	pointer-events: none;
}

.wplm-accounts-search-wrap .wplm-fe-input {
	width: 100% !important;
	height: 32px !important;
	min-height: 32px !important;
	padding: 0 10px 0 32px !important;
	border: 1px solid rgba(55, 53, 47, 0.16) !important;
	border-radius: 6px !important;
	background: #fff !important;
	color: #37352f !important;
	box-shadow: none !important;
	font-size: 13px !important;
}

.wplm-accounts-search-wrap .wplm-fe-input:focus {
	border-color: rgba(35, 131, 226, 0.45) !important;
	box-shadow: 0 0 0 2px rgba(35, 131, 226, 0.10) !important;
	outline: none !important;
}

.wplm-accounts-database > div[style*="overflow-x"] {
	width: 100% !important;
	max-width: 100% !important;
	overflow-x: auto !important;
}

.wplm-accounts-table {
	width: 100% !important;
	table-layout: fixed;
	border-collapse: collapse !important;
}

.wplm-accounts-table th,
.wplm-accounts-table td {
	box-sizing: border-box !important;
	border-bottom: 1px solid rgba(55, 53, 47, 0.09) !important;
	color: #37352f !important;
	vertical-align: middle !important;
}

.wplm-accounts-table th {
	height: 34px !important;
	padding: 8px 12px !important;
	background: rgba(55, 53, 47, 0.035) !important;
	color: rgba(55, 53, 47, 0.62) !important;
	font-size: 11.5px !important;
	font-weight: 600 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
}

.wplm-accounts-table td {
	height: 58px !important;
	padding: 10px 12px !important;
	background: #fff !important;
	font-size: 13px !important;
	line-height: 1.35 !important;
}

.wplm-accounts-table tbody tr:hover td {
	background: rgba(55, 53, 47, 0.035) !important;
}

.wplm-accounts-table tbody tr.is-selected td {
	background: #eff6ff !important;
}

.wplm-accounts-table .wplm-account-select-col,
.wplm-accounts-table .wplm-account-select-cell {
	width: 42px !important;
	min-width: 42px !important;
	text-align: center !important;
	padding-left: 10px !important;
	padding-right: 6px !important;
}

.wplm-accounts-table input[type="checkbox"] {
	width: 16px !important;
	height: 16px !important;
	accent-color: #2383e2;
	cursor: pointer;
}

.wplm-accounts-table th:nth-child(2) { width: 25%; }
.wplm-accounts-table th:nth-child(3) { width: 15%; }
.wplm-accounts-table th:nth-child(4) { width: 12%; }
.wplm-accounts-table th:nth-child(5) { width: 13%; }
.wplm-accounts-table th:nth-child(6) { width: 10%; }
.wplm-accounts-table th:nth-child(7) { width: 11%; }
.wplm-accounts-table th:nth-child(8),
.wplm-accounts-table td:nth-child(8),
.wplm-accounts-table .wplm-account-actions-col,
.wplm-accounts-table .wplm-account-actions-cell {
	width: 132px !important;
	min-width: 132px !important;
	padding-left: 8px !important;
	padding-right: 10px !important;
}

.wplm-account-row-actions {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: flex-start !important;
	gap: 6px !important;
	flex-wrap: nowrap !important;
	min-width: max-content;
}

.wplm-accounts-table .wplm-avatar {
	width: 34px !important;
	height: 34px !important;
	border-radius: 8px !important;
	background: #f1f5f9 !important;
	color: #2563eb !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	flex: 0 0 34px;
}

.wplm-accounts-table td:first-child > div,
.wplm-accounts-table td:first-child > div > div:last-child {
	min-width: 0;
}

.wplm-accounts-table strong {
	display: block;
	max-width: 100%;
	color: #37352f !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	line-height: 1.25 !important;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.wplm-accounts-table span {
	line-height: 1.25 !important;
}

.wplm-accounts-table td:first-child span {
	display: block;
	max-width: 100%;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.wplm-accounts-table code {
	display: inline-flex;
	max-width: 100%;
	padding: 2px 6px !important;
	border: 1px solid rgba(55, 53, 47, 0.08);
	border-radius: 4px !important;
	background: rgba(55, 53, 47, 0.06) !important;
	color: #37352f !important;
	font-family: inherit !important;
	font-size: 12.5px !important;
	font-weight: 500;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.wplm-accounts-table .wplm-badge {
	margin: 0 !important;
	padding: 3px 7px !important;
	border-radius: 5px !important;
	font-size: 12px !important;
	font-weight: 500 !important;
	line-height: 1.2 !important;
}

.wplm-accounts-table .wplm-badge.approved {
	background: #edf7ef !important;
	color: #276738 !important;
}

.wplm-accounts-table .wplm-badge.rejected {
	background: #fbe4e4 !important;
	color: #9f2d2d !important;
}

.wplm-accounts-table .wplm-fe-btn-sm {
	width: 30px !important;
	height: 30px !important;
	padding: 0 !important;
	border-radius: 6px !important;
	border: 1px solid rgba(55, 53, 47, 0.14) !important;
	background: #fff !important;
	color: rgba(55, 53, 47, 0.72) !important;
	box-shadow: none !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
}

.wplm-accounts-table .wplm-fe-btn-sm:hover {
	background: rgba(55, 53, 47, 0.05) !important;
	color: #37352f !important;
	border-color: rgba(55, 53, 47, 0.18) !important;
}

.wplm-accounts-table .wplm-fe-btn-sm.danger:hover {
	background: #fbe4e4 !important;
	color: #9f2d2d !important;
	border-color: #f3b7b7 !important;
}

#fe-create-account-overlay.wplm-fe-slide-overlay,
#fe-add-existing-overlay.wplm-fe-slide-overlay,
#fe-edit-account-overlay.wplm-fe-slide-overlay {
	background: rgba(15, 15, 15, 0.18) !important;
	backdrop-filter: none !important;
}

#fe-create-account-panel.wplm-fe-slide-panel,
#fe-add-existing-panel.wplm-fe-slide-panel,
#fe-edit-account-panel.wplm-fe-slide-panel {
	width: min(520px, calc(100vw - 24px)) !important;
	max-width: 100vw !important;
	background: #fff !important;
	border-left: 1px solid rgba(55, 53, 47, 0.12) !important;
	border-radius: 0 !important;
	box-shadow: -14px 0 36px rgba(15, 23, 42, 0.10) !important;
	color: #37352f !important;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

#fe-create-account-panel .wplm-fe-slide-header,
#fe-add-existing-panel .wplm-fe-slide-header,
#fe-edit-account-panel .wplm-fe-slide-header {
	min-height: 64px !important;
	padding: 18px 24px !important;
	border-bottom: 1px solid rgba(55, 53, 47, 0.10) !important;
	background: #fff !important;
}

#fe-create-account-panel .wplm-fe-slide-header h3,
#fe-add-existing-panel .wplm-fe-slide-header h3,
#fe-edit-account-panel .wplm-fe-slide-header h3 {
	margin: 0 !important;
	color: #37352f !important;
	font-family: inherit !important;
	font-size: 17px !important;
	font-weight: 650 !important;
	line-height: 1.3 !important;
	letter-spacing: 0 !important;
}

#fe-create-account-panel .fe-btn-close-panel,
#fe-add-existing-panel .fe-btn-close-panel,
#fe-edit-account-panel .fe-btn-close-panel {
	width: 28px !important;
	height: 28px !important;
	border-radius: 6px !important;
	background: transparent !important;
	border: 0 !important;
	color: rgba(55, 53, 47, 0.58) !important;
}

#fe-create-account-panel .fe-btn-close-panel:hover,
#fe-add-existing-panel .fe-btn-close-panel:hover,
#fe-edit-account-panel .fe-btn-close-panel:hover {
	background: rgba(55, 53, 47, 0.06) !important;
	color: #37352f !important;
}

#fe-create-account-panel .wplm-fe-slide-body,
#fe-add-existing-panel .wplm-fe-slide-body,
#fe-edit-account-panel .wplm-fe-slide-body {
	padding: 20px 24px 24px !important;
	background: #fff !important;
}

#fe-create-account-panel .wplm-fe-alert,
#fe-add-existing-panel .wplm-fe-alert {
	display: none !important;
}

#fe-create-account-panel .wplm-fe-form-grid,
#fe-add-existing-panel .wplm-fe-form-grid,
#fe-edit-account-panel .wplm-fe-form-grid {
	display: grid !important;
	grid-template-columns: 1fr !important;
	gap: 0 !important;
}

#fe-create-account-panel .wplm-fe-section-title,
#fe-add-existing-panel .wplm-fe-section-title,
#fe-edit-account-panel .wplm-fe-section-title {
	margin: 12px 0 12px !important;
	padding: 0 !important;
	border: 0 !important;
	color: rgba(55, 53, 47, 0.64) !important;
	font-family: inherit !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
}

#fe-create-account-panel .wplm-fe-divider,
#fe-edit-account-panel .wplm-fe-divider {
	height: 1px !important;
	margin: 18px 0 !important;
	background: rgba(55, 53, 47, 0.10) !important;
	border: 0 !important;
}

#fe-create-account-panel .wplm-fe-form-group,
#fe-add-existing-panel .wplm-fe-form-group,
#fe-edit-account-panel .wplm-fe-form-group {
	margin-bottom: 14px !important;
}

#fe-create-account-panel .wplm-fe-form-group label,
#fe-add-existing-panel .wplm-fe-form-group label,
#fe-edit-account-panel .wplm-fe-form-group label {
	margin: 0 0 6px !important;
	color: rgba(55, 53, 47, 0.72) !important;
	font-family: inherit !important;
	font-size: 13px !important;
	font-weight: 500 !important;
	line-height: 1.35 !important;
}

#fe-create-account-panel .wplm-fe-form-group > span,
#fe-edit-account-panel .wplm-fe-form-group > span {
	display: none !important;
}

#fe-create-account-panel .wplm-fe-input,
#fe-add-existing-panel .wplm-fe-input,
#fe-edit-account-panel .wplm-fe-input {
	width: 100% !important;
	min-height: 40px !important;
	padding: 8px 12px !important;
	border: 1px solid rgba(55, 53, 47, 0.14) !important;
	border-radius: 6px !important;
	background: #fff !important;
	color: #37352f !important;
	box-shadow: none !important;
	font-family: inherit !important;
	font-size: 14px !important;
	line-height: 1.35 !important;
	transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease !important;
}

#fe-create-account-panel .wplm-fe-input:hover,
#fe-add-existing-panel .wplm-fe-input:hover,
#fe-edit-account-panel .wplm-fe-input:hover {
	background: rgba(55, 53, 47, 0.025) !important;
	border-color: rgba(55, 53, 47, 0.20) !important;
}

#fe-create-account-panel .wplm-fe-input:focus,
#fe-add-existing-panel .wplm-fe-input:focus,
#fe-edit-account-panel .wplm-fe-input:focus {
	border-color: rgba(35, 131, 226, 0.45) !important;
	box-shadow: 0 0 0 2px rgba(35, 131, 226, 0.10) !important;
	background: #fff !important;
	outline: none !important;
}

#fe-new-password {
	padding-right: 72px !important;
}

#fe-new-password + #fe-btn-gen-pass {
	top: 50% !important;
	right: 6px !important;
	min-height: 28px !important;
	padding: 0 10px !important;
	border-radius: 5px !important;
	background: rgba(55, 53, 47, 0.06) !important;
	border: 1px solid transparent !important;
	color: #37352f !important;
	font-size: 12px !important;
	font-weight: 500 !important;
	line-height: 1 !important;
	transform: translateY(-50%) !important;
	box-shadow: none !important;
}

#fe-new-password + #fe-btn-gen-pass:hover {
	background: rgba(55, 53, 47, 0.10) !important;
}

#fe-create-account-panel .wplm-fe-slide-footer,
#fe-add-existing-panel .wplm-fe-slide-footer,
#fe-edit-account-panel .wplm-fe-slide-footer {
	padding: 14px 24px !important;
	border-top: 1px solid rgba(55, 53, 47, 0.10) !important;
	background: #fff !important;
	justify-content: flex-end !important;
	gap: 8px !important;
}

#fe-create-account-panel .wplm-fe-slide-footer .wplm-fe-btn,
#fe-add-existing-panel .wplm-fe-slide-footer .wplm-fe-btn,
#fe-edit-account-panel .wplm-fe-slide-footer .wplm-fe-btn {
	min-height: 38px !important;
	padding: 0 18px !important;
	font-size: 13.5px !important;
}

@media (max-width: 900px) {
	.wplm-accounts-page {
		padding: 24px 22px 44px !important;
	}

	.wplm-accounts-table-toolbar {
		display: grid;
		grid-template-columns: 1fr;
	}

	.wplm-accounts-actions {
		justify-content: flex-start;
	}

	.wplm-accounts-search-wrap {
		width: 100%;
	}

	.wplm-accounts-table {
		min-width: 760px;
		table-layout: auto;
	}
}
