/* ---------- Front-end form ---------- */
.tr-form-wrap {
	max-width: 560px;
	margin: 0 auto;
	font-size: 15px;
}

.tr-form .tr-field {
	margin-bottom: 18px;
}

.tr-form label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
}

.tr-form input[type="email"],
.tr-form input[type="text"],
.tr-form input[type="file"] {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ccd0d4;
	border-radius: 4px;
	box-sizing: border-box;
	font-size: 15px;
}

.tr-form .tr-radio-inline {
	display: inline-block;
	font-weight: 400;
	margin-right: 20px;
}

.tr-required {
	color: #d63638;
}

.tr-hint {
	display: block;
	font-size: 12px;
	color: #666;
	margin-top: 4px;
}

.tr-submit-btn {
	background: #2271b1;
	color: #fff;
	border: none;
	padding: 12px 28px;
	border-radius: 4px;
	font-size: 15px;
	cursor: pointer;
}

.tr-submit-btn:hover {
	background: #135e96;
}

.tr-notice {
	padding: 12px 16px;
	border-radius: 4px;
	margin-bottom: 20px;
	font-size: 14px;
}

.tr-notice-success {
	background: #edfaef;
	border: 1px solid #00a32a;
	color: #0a5c1f;
}

.tr-notice-error {
	background: #fcf0f1;
	border: 1px solid #d63638;
	color: #8a1f1f;
}

/* ---------- Admin ---------- */
.tr-stat-cards {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 20px 0;
}

.tr-stat-card {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	padding: 16px 20px;
	min-width: 140px;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.tr-stat-number {
	display: block;
	font-size: 26px;
	font-weight: 700;
	line-height: 1.2;
}

.tr-stat-label {
	display: block;
	font-size: 12px;
	color: #646970;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.tr-badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	color: #fff;
	background: #8c8f94;
}

.tr-badge-pending { background: #dba617; }
.tr-badge-incomplete { background: #d63638; }
.tr-badge-accepted { background: #2271b1; }
.tr-badge-in-process { background: #996800; }
.tr-badge-complete { background: #00a32a; }

.tr-detail-grid {
	display: flex;
	gap: 24px;
	margin-top: 20px;
	align-items: flex-start;
}

.tr-detail-main {
	flex: 2;
	min-width: 0;
}

.tr-detail-side {
	flex: 1;
	min-width: 280px;
}

.tr-detail-table th {
	width: 200px;
	text-align: left;
	background: #f6f7f7;
	padding: 10px 14px;
}

.tr-detail-table td {
	padding: 10px 14px;
}

.tr-panel {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	padding: 18px 20px;
}

.tr-panel h2 {
	margin-top: 0;
}

.tr-or {
	text-align: center;
	font-weight: 600;
	color: #999;
	margin: 10px 0;
}

.tr-btn-accept {
	width: 100%;
}

.tr-btn-incomplete {
	width: 100%;
	border-color: #d63638 !important;
	color: #d63638 !important;
}

@media (max-width: 782px) {
	.tr-detail-grid {
		flex-direction: column;
	}
}

/* ---------- v1.1 additions ---------- */
.tr-stat-card.tr-stat-highlight {
	border-left: 4px solid #2271b1;
}

.tr-stat-card.tr-stat-warning {
	border-left: 4px solid #d63638;
}

.tr-avg-tables {
	display: flex;
	gap: 20px;
	flex-wrap: wrap;
	margin: 16px 0 30px;
}

.tr-avg-table-wrap {
	flex: 1;
	min-width: 320px;
}

.tr-avg-table-wrap h3 {
	margin-bottom: 8px;
}

.tr-active-table th,
.tr-active-table td {
	padding: 8px 10px;
}

.tr-row-overdue {
	background: #fcf0f1;
}

.tr-history-panel {
	margin-top: 20px;
}

.tr-history-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.tr-history-list li {
	border-bottom: 1px solid #f0f0f1;
	padding: 12px 0;
}

.tr-history-list li:last-child {
	border-bottom: none;
}

.tr-history-meta {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 6px;
}

.tr-history-date {
	font-size: 12px;
	color: #646970;
}

.tr-history-note {
	margin: 0;
	white-space: pre-line;
}

/* ---------- v1.2 additions ---------- */
.tr-delete-link {
	color: #d63638;
}
