.tlm-wrap {
	max-width: 1100px;
	margin: 0 auto;
	padding: 16px;
}

.tlm-card {
	background: #ffffff;
	border: 1px solid #dfe4ea;
	border-radius: 14px;
	padding: 20px;
	margin-bottom: 18px;
	box-shadow: 0 8px 22px rgba(16, 37, 63, 0.07);
}

.tlm-machine {
	border: 1px solid #ebeff3;
	padding: 16px;
	border-radius: 12px;
	margin: 14px 0;
	background: #ffffff;
}

.tlm-step-status {
	background: linear-gradient(135deg, #f4f8ff 0%, #f7fdf9 100%);
	border: 1px solid #d7e4ff;
	border-radius: 12px;
	padding: 14px;
	margin-bottom: 12px;
}

.tlm-step-kicker {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #3568bf;
	margin: 0 0 4px;
}

.tlm-step-status h4 {
	margin: 0 0 6px;
	font-size: 20px;
	line-height: 1.25;
}

.tlm-step-status p {
	margin: 0;
}

.tlm-step-eta {
	margin-top: 6px !important;
	font-weight: 600;
	color: #1459c5;
}

.tlm-step-next {
	margin-top: 6px !important;
	font-weight: 600;
}

.tlm-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 12px;
}

.tlm-grid p {
	margin: 0;
	padding: 10px 12px;
	background: #f8fafc;
	border: 1px solid #e8eef5;
	border-radius: 10px;
}

.tlm-form-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 12px;
}

.tlm-form-grid label {
	display: flex;
	flex-direction: column;
	font-size: 14px;
	gap: 6px;
}

.tlm-form-grid input,
.tlm-form-grid select,
.tlm-form-grid textarea,
.tlm-filter-form input,
.tlm-filter-form select {
	padding: 8px 10px;
	border: 1px solid #cbd2d9;
	border-radius: 6px;
	width: 100%;
	box-sizing: border-box;
}

.tlm-full {
	grid-column: 1 / -1;
}

.tlm-form-grid button,
.tlm-filter-form button {
	background: #1459c5;
	color: #fff;
	border: 0;
	border-radius: 6px;
	padding: 10px 14px;
	cursor: pointer;
}

.tlm-delete-btn {
	background: #b42318;
	color: #fff;
	border: 0;
	border-radius: 6px;
	padding: 6px 10px;
	cursor: pointer;
	font-size: 13px;
}

.tlm-filter-form {
	display: flex;
	gap: 10px;
	align-items: center;
	flex-wrap: wrap;
	margin-top: 10px;
}

.tlm-progress-label {
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 6px;
}

.tlm-progress-bar {
	height: 12px;
	background: #eaf0f6;
	border-radius: 6px;
	overflow: hidden;
	border: 1px solid #dce6f0;
}

.tlm-progress-bar span {
	height: 100%;
	display: block;
	background: linear-gradient(90deg, #165dc7 0%, #1f86e5 55%, #21b97b 100%);
}

.tlm-timeline {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 12px 0;
}

.tlm-timeline span {
	font-size: 12px;
	border: 1px solid #bed0e8;
	padding: 5px 10px;
	border-radius: 30px;
	background: #eef4fb;
}

.tlm-timeline .is-done {
	background: #e8f6ee;
	border-color: #9bd3b0;
}

.tlm-timeline .is-current {
	background: #e7efff;
	border-color: #96b6f6;
	font-weight: 600;
}

.tlm-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin: 12px 0;
}

.tlm-action-item {
	display: flex;
	flex-direction: column;
	gap: 6px;
	max-width: 260px;
}

.tlm-actions a {
	display: inline-block;
	padding: 10px 12px;
	border-radius: 8px;
	background: #0f4ea7;
	color: #ffffff;
	font-weight: 600;
	text-decoration: none;
	transition: transform 0.15s ease, opacity 0.15s ease;
}

.tlm-actions a:hover {
	opacity: 0.92;
	transform: translateY(-1px);
}

.tlm-action-item small {
	color: #4f6074;
	font-size: 12px;
	line-height: 1.35;
}

.tlm-notice {
	padding: 10px;
	border-radius: 8px;
	background: #f2f4f7;
	border-left: 4px solid #aab7c6;
}

.tlm-notice.success {
	background: #e8f8ef;
	border-left-color: #3ca269;
}

.tlm-summary-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 10px;
}

.tlm-table-wrap {
	overflow-x: auto;
}

.tlm-table {
	width: 100%;
	border-collapse: collapse;
}

.tlm-table th,
.tlm-table td {
	padding: 10px;
	border-bottom: 1px solid #e8edf2;
	text-align: left;
	font-size: 14px;
}

.tlm-photo-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
	gap: 8px;
	margin-top: 8px;
}

.tlm-photo-grid img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 8px;
	border: 1px solid #d9e5f2;
}

.tlm-customer-wrap {
	max-width: 980px;
}

.tlm-customer-shell {
	background: linear-gradient(180deg, #ffffff 0%, #fdfefe 100%);
}

.tlm-customer-intro {
	margin: 0 0 10px;
	color: #4f5f73;
}

.tlm-customer-machine {
	box-shadow: 0 8px 18px rgba(31, 54, 86, 0.05);
}

@media (max-width: 640px) {
	.tlm-wrap {
		padding: 8px;
	}

	.tlm-card {
		padding: 12px;
		border-radius: 12px;
		margin-bottom: 12px;
	}

	.tlm-card h2 {
		font-size: 20px;
		margin: 0 0 8px;
	}

	.tlm-machine {
		padding: 12px;
		border-radius: 10px;
		margin: 10px 0;
	}

	.tlm-step-status h4 {
		font-size: 17px;
	}

	.tlm-step-status {
		padding: 10px;
		border-radius: 10px;
	}

	.tlm-step-status p {
		font-size: 14px;
		line-height: 1.4;
	}

	.tlm-grid {
		grid-template-columns: 1fr;
		gap: 8px;
	}

	.tlm-grid p {
		padding: 8px 10px;
		font-size: 13px;
	}

	.tlm-progress {
		margin-top: 8px;
	}

	.tlm-progress-label {
		font-size: 12px;
	}

	.tlm-progress-bar {
		height: 10px;
	}

	.tlm-timeline {
		margin: 8px 0;
	}

	.tlm-timeline span {
		font-size: 11px;
		padding: 4px 8px;
	}

	.tlm-notes {
		font-size: 14px;
		line-height: 1.45;
	}

	.tlm-actions {
		gap: 8px;
		margin: 10px 0;
	}

	.tlm-action-item {
		max-width: 100%;
		width: 100%;
	}

	.tlm-actions a {
		width: 100%;
		text-align: center;
		padding: 9px 10px;
		font-size: 14px;
		border-radius: 7px;
	}

	.tlm-notice {
		font-size: 13px;
		padding: 9px;
	}

	.tlm-photo-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 6px;
	}
}

.tlm-checkboxes {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.tlm-checkboxes label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
