.mltp-tracker-wrap {
	max-width: 520px;
	margin: 0 auto;
	font-family: inherit;
}

.mltp-tracker-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 28px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.mltp-tracker-card h3 {
	margin: 0 0 6px;
	font-size: 20px;
}

.mltp-sub {
	color: #6b7280;
	font-size: 14px;
	margin: 0 0 20px;
}

.mltp-field {
	margin-bottom: 16px;
}

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

.mltp-field input[type='text'] {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font-size: 14px;
	box-sizing: border-box;
}

.mltp-field input[type='text']:focus {
	outline: none;
	border-color: #4f46e5;
	box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.mltp-btn {
	background: #4f46e5;
	color: #fff;
	border: none;
	padding: 11px 22px;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.mltp-btn:hover { background: #4338ca; }
.mltp-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.mltp-spinner {
	display: inline-block;
	width: 16px;
	height: 16px;
	margin-left: 10px;
	border: 2px solid #c7d2fe;
	border-top-color: #4f46e5;
	border-radius: 50%;
	animation: mltp-spin 0.7s linear infinite;
	vertical-align: middle;
}

@keyframes mltp-spin {
	to { transform: rotate(360deg); }
}

.mltp-message {
	margin-top: 16px;
	padding: 10px 14px;
	border-radius: 6px;
	font-size: 14px;
}

.mltp-message.mltp-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.mltp-message.mltp-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }

.mltp-result {
	margin-top: 20px;
	border-top: 1px solid #e5e7eb;
	padding-top: 18px;
}

.mltp-result-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 12px;
}

.mltp-result-app-number {
	font-weight: 700;
	font-size: 15px;
}

.mltp-result-status {
	padding: 4px 12px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 700;
	background: #f3f4f6;
}

.mltp-status-pending { background: #fff3cd; color: #8a6d00; }
.mltp-status-under-review { background: #dbeafe; color: #1e40af; }
.mltp-status-approved { background: #dcfce7; color: #166534; }
.mltp-status-rejected { background: #fde2e1; color: #a3251f; }
.mltp-status-disbursed { background: #e0e7ff; color: #3730a3; }
.mltp-status-closed { background: #e5e7eb; color: #374151; }

.mltp-result-table {
	width: 100%;
	border-collapse: collapse;
}

.mltp-result-table th {
	text-align: left;
	padding: 8px 0;
	font-size: 13px;
	color: #6b7280;
	width: 40%;
	vertical-align: top;
}

.mltp-result-table td {
	padding: 8px 0;
	font-size: 14px;
	color: #111827;
}

.mltp-multi {
	margin-top: 20px;
	border-top: 1px solid #e5e7eb;
	padding-top: 18px;
}

.mltp-multi-intro {
	font-size: 13px;
	color: #6b7280;
	margin: 0 0 12px;
}

.mltp-multi-item {
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 12px 14px;
	margin-bottom: 10px;
}

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

.mltp-multi-app-number {
	font-weight: 700;
	font-size: 14px;
}

.mltp-multi-status {
	padding: 3px 10px;
	border-radius: 12px;
	font-size: 11px;
	font-weight: 700;
	background: #f3f4f6;
}

.mltp-multi-item-body {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	font-size: 13px;
	color: #4b5563;
}

.mltp-multi-item-body span:empty {
	display: none;
}

.mltp-multi-toggle {
	margin-top: 10px;
	background: none;
	border: none;
	color: #4f46e5;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
	padding: 0;
}

.mltp-multi-toggle:hover {
	text-decoration: underline;
}

.mltp-multi-item .mltp-timeline-wrap {
	margin-top: 12px;
	border-top: 1px solid #f3f4f6;
	padding-top: 12px;
}

/* Processing-stage progress pills (button style) */

.mltp-stages-wrap {
	margin-top: 22px;
}

.mltp-multi-item .mltp-stages-wrap {
	margin-top: 0;
	margin-bottom: 4px;
}

.mltp-stages {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.mltp-stage-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 14px;
	border-radius: 999px;
	font-size: 12.5px;
	font-weight: 600;
	border: 1px solid transparent;
	line-height: 1.2;
}

.mltp-stage-pill.mltp-stage-pending {
	background: #f3f4f6;
	color: #9ca3af;
	border-color: #e5e7eb;
}

.mltp-stage-pill.mltp-stage-done {
	background: #ecfdf5;
	color: #047857;
	border-color: #a7f3d0;
}

.mltp-stage-check {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 15px;
	height: 15px;
	border-radius: 50%;
	background: #10b981;
	color: #fff;
	font-size: 10px;
	line-height: 1;
}

/* Status progress timeline */

.mltp-timeline-wrap {
	margin-top: 22px;
	border-top: 1px solid #e5e7eb;
	padding-top: 16px;
}

.mltp-timeline-title {
	margin: 0 0 14px;
	font-size: 14px;
	font-weight: 700;
	color: #374151;
}

.mltp-timeline {
	list-style: none;
	margin: 0;
	padding: 0;
}

.mltp-timeline-item {
	position: relative;
	display: flex;
	gap: 12px;
	padding-bottom: 20px;
	padding-left: 2px;
}

.mltp-timeline-item:last-child {
	padding-bottom: 0;
}

/* Connecting vertical line between dots, drawn on the item itself so it
   stops naturally after the last entry. */
.mltp-timeline-item:not(:last-child)::before {
	content: '';
	position: absolute;
	left: 5px;
	top: 16px;
	bottom: -4px;
	width: 2px;
	background: #e5e7eb;
}

.mltp-timeline-dot {
	flex: 0 0 auto;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	margin-top: 3px;
	background: #d1d5db;
	box-shadow: 0 0 0 3px #fff;
	z-index: 1;
}

.mltp-timeline-current .mltp-timeline-dot {
	width: 14px;
	height: 14px;
	margin-top: 2px;
	box-shadow: 0 0 0 3px #fff, 0 0 0 5px rgba(79, 70, 229, 0.25);
}

.mltp-timeline-body {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.mltp-timeline-status {
	font-size: 13.5px;
	font-weight: 700;
	color: #111827;
}

.mltp-timeline-current .mltp-timeline-status {
	color: #4338ca;
}

.mltp-timeline-datetime {
	font-size: 12px;
	color: #6b7280;
}

.mltp-timeline-remarks {
	font-size: 12.5px;
	color: #4b5563;
	font-style: italic;
	margin-top: 2px;
}

/* Reuse the same status colour palette for the timeline dots. */
.mltp-timeline-dot.mltp-status-pending { background: #f2c200; }
.mltp-timeline-dot.mltp-status-under-review { background: #3b82f6; }
.mltp-timeline-dot.mltp-status-approved { background: #22c55e; }
.mltp-timeline-dot.mltp-status-rejected { background: #ef4444; }
.mltp-timeline-dot.mltp-status-disbursed { background: #6366f1; }
.mltp-timeline-dot.mltp-status-closed { background: #9ca3af; }
