/* MK Order Tracker - shared styles */

.mkot-tracker {
	max-width: 560px;
	margin: 20px auto;
	font-family: inherit;
}

.mkot-label {
	display: block;
	font-weight: 600;
	margin-bottom: 8px;
}

.mkot-search-row {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.mkot-search-row input[type="text"] {
	flex: 1 1 220px;
	padding: 10px 12px;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 15px;
}

.mkot-btn {
	background: #2c3e50;
	color: #fff;
	border: none;
	padding: 10px 20px;
	border-radius: 6px;
	font-size: 15px;
	cursor: pointer;
}

.mkot-btn:hover {
	background: #1a252f;
}

.mkot-result {
	margin-top: 20px;
}

.mkot-message {
	padding: 12px 14px;
	border-radius: 6px;
	background: #fdecea;
	color: #611a15;
	border: 1px solid #f5c6cb;
}

.mkot-message.mkot-loading {
	background: #eef2f7;
	color: #333;
	border-color: #dbe3ec;
}

.mkot-order-card {
	border: 1px solid #e2e2e2;
	border-radius: 10px;
	padding: 20px;
	background: #fff;
}

.mkot-order-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 12px;
}

.mkot-order-number {
	font-size: 20px;
	font-weight: 700;
	margin-right: 10px;
}

.mkot-order-customer {
	color: #666;
}

.mkot-current-badge {
	background: #2c3e50;
	color: #fff;
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 600;
}

.mkot-order-items,
.mkot-order-notes {
	margin: 8px 0;
}

.mkot-order-dates {
	display: flex;
	gap: 20px;
	flex-wrap: wrap;
	font-size: 14px;
	color: #444;
	margin: 8px 0 16px;
}

.mkot-timeline {
	list-style: none;
	margin: 20px 0 0;
	padding: 0;
	position: relative;
}

.mkot-timeline-item {
	position: relative;
	padding: 0 0 22px 30px;
	font-size: 15px;
}

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

.mkot-timeline-item::before {
	content: "";
	position: absolute;
	left: 8px;
	top: 18px;
	bottom: -4px;
	width: 2px;
	background: #ddd;
}

.mkot-timeline-item:last-child::before {
	display: none;
}

.mkot-dot {
	position: absolute;
	left: 0;
	top: 2px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff;
	border: 2px solid #ccc;
}

.mkot-timeline-item.mkot-done .mkot-dot {
	background: #2ecc71;
	border-color: #2ecc71;
}

.mkot-timeline-item.mkot-done::before {
	background: #2ecc71;
}

.mkot-timeline-item.mkot-current .mkot-dot {
	background: #2c3e50;
	border-color: #2c3e50;
	box-shadow: 0 0 0 4px rgba(44, 62, 80, 0.15);
}

.mkot-timeline-item.mkot-current .mkot-timeline-label {
	font-weight: 700;
	color: #2c3e50;
}

.mkot-timeline-item.mkot-upcoming .mkot-timeline-label {
	color: #999;
}

/* ---- Admin ---- */

.mkot-badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 600;
	background: #eef2f7;
	color: #333;
}

.mkot-badge-order_received { background: #e8f0fe; color: #1a56db; }
.mkot-badge-under_manufacturing { background: #fff4e5; color: #9a5b00; }
.mkot-badge-quality_check { background: #f3e8ff; color: #6b21a8; }
.mkot-badge-ready_to_dispatch { background: #e6f7ff; color: #0369a1; }
.mkot-badge-dispatched { background: #e6fffa; color: #0f766e; }
.mkot-badge-delivered { background: #eaf7ea; color: #15803d; }

.mkot-delete-link {
	color: #b32d2e;
}
