.lwm-wrap {
	max-width: 760px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: #1f2937;
}

.lwm-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 20px 22px;
	margin-bottom: 18px;
	box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.lwm-login-wrap {
	display: flex;
	justify-content: center;
	padding: 40px 16px;
}

.lwm-login-card {
	max-width: 380px;
	width: 100%;
	text-align: center;
}

.lwm-form input[type="email"],
.lwm-form input[type="date"],
.lwm-form textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-size: 14px;
	margin-bottom: 12px;
}

.lwm-btn {
	cursor: pointer;
	border: none;
	border-radius: 8px;
	padding: 10px 16px;
	font-size: 14px;
	font-weight: 600;
	transition: background 0.15s ease;
}

.lwm-btn-primary {
	background: #4f46e5;
	color: #fff;
	width: 100%;
}
.lwm-btn-primary:hover { background: #4338ca; }

.lwm-btn-secondary {
	background: #f3f4f6;
	color: #1f2937;
}
.lwm-btn-secondary:hover { background: #e5e7eb; }

.lwm-btn-link {
	background: transparent;
	color: #6b7280;
	text-decoration: underline;
	padding: 4px 8px;
}

.lwm-btn-icon {
	background: #f3f4f6;
	padding: 6px 12px;
	font-size: 16px;
}

.lwm-message {
	margin-top: 10px;
	font-size: 13px;
	padding: 10px;
	border-radius: 6px;
	background: #f0fdf4;
	color: #166534;
}
.lwm-message.is-error {
	background: #fef2f2;
	color: #991b1b;
}

.lwm-alert {
	font-size: 13px;
	padding: 10px;
	border-radius: 6px;
	margin-bottom: 12px;
}
.lwm-alert-error {
	background: #fef2f2;
	color: #991b1b;
}

.lwm-topbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 4px 18px;
	font-size: 14px;
	color: #4b5563;
}

.lwm-tabs {
	display: flex;
	gap: 6px;
	margin-bottom: 16px;
	border-bottom: 1px solid #e5e7eb;
}

.lwm-tab {
	background: transparent;
	border: none;
	padding: 10px 14px;
	font-size: 14px;
	font-weight: 600;
	color: #6b7280;
	cursor: pointer;
	border-bottom: 2px solid transparent;
}

.lwm-tab.active {
	color: #4f46e5;
	border-bottom-color: #4f46e5;
}

.lwm-cal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 6px;
}

.lwm-cal-header h3 {
	margin: 0;
}

.lwm-cal-legend {
	display: flex;
	gap: 16px;
	font-size: 12px;
	color: #6b7280;
	margin-bottom: 14px;
}

.lwm-dot {
	display: inline-block;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	margin-right: 4px;
}
.lwm-dot-pending { background: #f59e0b; }
.lwm-dot-approved-leave { background: #10b981; }
.lwm-dot-approved-wfh { background: #3b82f6; }

.lwm-cal-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 4px;
}

.lwm-cal-dow {
	text-align: center;
	font-size: 11px;
	font-weight: 600;
	color: #9ca3af;
	padding-bottom: 6px;
}

.lwm-cal-day {
	position: relative;
	aspect-ratio: 1 / 1;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	border-radius: 8px;
	cursor: pointer;
	background: #f9fafb;
	border: 1px solid transparent;
}
.lwm-cal-day:hover { background: #eef2ff; }
.lwm-cal-day.is-empty { visibility: hidden; cursor: default; }
.lwm-cal-day.is-today { border-color: #4f46e5; font-weight: 700; }
.lwm-cal-day.is-selected { background: #4f46e5; color: #fff; }
.lwm-cal-day.in-range { background: #c7d2fe; }

.lwm-cal-day .lwm-cal-marker {
	position: absolute;
	bottom: 4px;
	left: 50%;
	transform: translateX(-50%);
	width: 6px;
	height: 6px;
	border-radius: 50%;
}
.lwm-cal-day .lwm-cal-marker.pending { background: #f59e0b; }
.lwm-cal-day .lwm-cal-marker.approved-leave { background: #10b981; }
.lwm-cal-day .lwm-cal-marker.approved-wfh { background: #3b82f6; }

.lwm-hint {
	font-size: 12px;
	color: #9ca3af;
	margin-top: 12px;
}

.lwm-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.lwm-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 14px;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	font-size: 13px;
	gap: 10px;
	flex-wrap: wrap;
}

.lwm-item-info strong { display: block; margin-bottom: 2px; }
.lwm-item-info span { color: #6b7280; }

.lwm-badge {
	display: inline-block;
	padding: 3px 9px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
}
.lwm-badge-pending { background: #fef3c7; color: #92400e; }
.lwm-badge-approved { background: #d1fae5; color: #065f46; }
.lwm-badge-rejected { background: #fee2e2; color: #991b1b; }
.lwm-badge-cancelled { background: #e5e7eb; color: #4b5563; }

.lwm-item-actions {
	display: flex;
	gap: 6px;
}

.lwm-btn-approve { background: #10b981; color: #fff; padding: 6px 12px; }
.lwm-btn-approve:hover { background: #059669; }
.lwm-btn-reject { background: #ef4444; color: #fff; padding: 6px 12px; }
.lwm-btn-reject:hover { background: #dc2626; }
.lwm-btn-cancel { background: #f3f4f6; color: #374151; padding: 6px 12px; }

.lwm-empty {
	color: #9ca3af;
	font-size: 13px;
	text-align: center;
	padding: 20px 0;
}

.lwm-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(17, 24, 39, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	padding: 16px;
}

.lwm-modal {
	background: #fff;
	border-radius: 12px;
	padding: 24px;
	max-width: 420px;
	width: 100%;
}

.lwm-modal h3 { margin-top: 0; }

.lwm-radio-row {
	display: flex;
	gap: 16px;
	margin-bottom: 12px;
	font-size: 14px;
}

.lwm-date-row {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
}
.lwm-date-row input { margin-bottom: 0; }

.lwm-modal-actions {
	display: flex;
	gap: 10px;
	justify-content: flex-end;
}

.lwm-form label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 6px;
	color: #374151;
}
