/* 工单现代化样式 */
.ticket-page .card {
	border: none;
	border-radius: 12px;
	box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}

.ticket-page .card-title {
	font-weight: 600;
	color: #1e293b;
}

.ticket-actions .btn {
	border-radius: 8px;
	padding: 6px 16px;
	font-weight: 500;
	transition: all 0.2s ease;
}

.ticket-actions .btn-danger {
	background: linear-gradient(135deg, #ef5350, #dc2626);
	border: none;
}

.ticket-actions .btn-danger:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.ticket-reply {
	border: none !important;
	border-radius: 10px !important;
	overflow: hidden;
	box-shadow: 0 1px 6px rgba(15, 23, 42, 0.05);
}

.ticket-reply .post-by {
	background: #f8fafc;
	border-bottom: 1px solid #eef2f7;
}

.ticket-reply.admin .post-by {
	background: #eff6ff;
}

.ticket-reply .message {
	line-height: 1.7;
	color: #334155;
}

.ticket-reply .message img {
	max-width: 100%;
	border-radius: 8px;
	margin: 8px 0;
	cursor: zoom-in;
}

.ticket-attachment-preview {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 10px;
}

.ticket-attachment-preview .att-item {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	max-width: 120px;
}

.ticket-attachment-preview .att-item img {
	width: 100px;
	height: 100px;
	object-fit: cover;
	border-radius: 8px;
	border: 1px solid #e2e8f0;
}

.ticket-attachment-preview .att-item a {
	font-size: 12px;
	color: #4f6ef7;
	margin-top: 4px;
	word-break: break-all;
	text-align: center;
}

.ticket-reply-form .btn-primary {
	background: linear-gradient(135deg, #4f6ef7, #3b5bdb);
	border: none;
	border-radius: 8px;
	font-weight: 500;
}

.ticket-reply-form .btn-light,
.ticket-reply-form .btn-default {
	border-radius: 8px;
	border: 1px solid #d0d7e2;
	color: #64748b;
	background: #fff;
}

.ticket-reply-form .btn-success {
	border-radius: 8px;
	background: linear-gradient(135deg, #22b07d, #16a34a);
	border: none;
}

.ticket-paste-hint {
	font-size: 12px;
	color: #94a3b8;
	margin-top: 6px;
}

.ticket-paste-zone {
	border: 2px dashed #cbd5e1;
	border-radius: 10px;
	padding: 12px;
	background: #f8fafc;
	transition: border-color 0.2s, background 0.2s;
}

.ticket-paste-zone.dragover {
	border-color: #4f6ef7;
	background: #eff6ff;
}

.note-editor.note-frame {
	border-radius: 10px;
	border-color: #e2e8f0;
}

/* WangEditor 工单编辑器 */
.ticket-wangeditor-box {
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
}

.ticket-wangeditor-toolbar {
	border-bottom: 1px solid #eef2f7 !important;
}

.ticket-wangeditor-body {
	overflow-y: auto;
}

.ticket-content {
	line-height: 1.75;
	word-break: break-word;
	color: #334155;
}

.ticket-content p {
	margin-bottom: 8px;
}

.ticket-content img {
	max-width: 100%;
	border-radius: 8px;
	margin: 8px 0;
}

.ticket-content ul,
.ticket-content ol {
	padding-left: 1.5em;
	margin-bottom: 8px;
}

.ticket-content blockquote {
	border-left: 3px solid #4f6ef7;
	padding-left: 12px;
	color: #64748b;
	margin: 8px 0;
}

.ticket-content pre,
.ticket-content code {
	background: #f1f5f9;
	border-radius: 4px;
	padding: 2px 6px;
	font-size: 13px;
}
