/* ---------- عمومی ---------- */
.sw-front {
	direction: rtl;
	text-align: right;
	font-family: Tahoma, Arial, sans-serif;
	max-width: 520px;
	margin: 0 auto;
}
.sw-front input[type="text"],
.sw-front input[type="email"],
.sw-front input[type="date"],
.sw-front textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font-size: 14px;
	margin-top: 4px;
}
.sw-front label { font-weight: bold; display: block; margin-top: 12px; }
.sw-check-row { display: flex; gap: 8px; margin-top: 6px; }
.sw-btn {
	display: inline-block;
	background: #2563eb;
	color: #fff !important;
	border: none;
	padding: 10px 20px;
	border-radius: 6px;
	cursor: pointer;
	font-size: 14px;
	text-decoration: none;
}
.sw-btn:hover { background: #1d4ed8; }
.sw-btn-outline { background: #fff; color: #2563eb !important; border: 1px solid #2563eb; }

.sw-alert { padding: 12px 16px; border-radius: 6px; margin-top: 16px; }
.sw-alert-error { background: #fee2e2; color: #991b1b; }
.sw-alert-success { background: #dcfce7; color: #166534; }

.sw-badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: bold;
}
.sw-badge-active { background: #dcfce7; color: #166534; }
.sw-badge-expired { background: #fef3c7; color: #92400e; }
.sw-badge-void { background: #fee2e2; color: #991b1b; }
.sw-badge-claim-pending { background: #fef3c7; color: #92400e; }
.sw-badge-claim-in_progress { background: #dbeafe; color: #1e40af; }
.sw-badge-claim-resolved { background: #dcfce7; color: #166534; }
.sw-badge-claim-rejected { background: #fee2e2; color: #991b1b; }

.sw-result {
	margin-top: 20px;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 20px;
	background: #fff;
}
.sw-result-header { display: flex; justify-content: space-between; align-items: center; }
.sw-result-table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.sw-result-table th, .sw-result-table td {
	text-align: right;
	padding: 8px 6px;
	border-bottom: 1px solid #f1f5f9;
	font-size: 14px;
}
.sw-result-table th { color: #6b7280; width: 40%; }
.sw-terms { margin-top: 14px; font-size: 13px; color: #374151; }
.sw-qr-wrap { text-align: center; margin-top: 16px; }
.sw-actions { display: flex; gap: 10px; margin-top: 16px; justify-content: center; flex-wrap: wrap; }
.sw-note { font-size: 13px; color: #6b7280; }

/* ---------- حالت چاپ ---------- */
@media print {
	body * { visibility: hidden; }
	.sw-print-area, .sw-print-area * { visibility: visible; }
	.sw-print-area { position: absolute; top: 0; right: 0; left: 0; }
	.sw-no-print { display: none !important; }
}

/* ---------- پیشخوان مدیریت ---------- */
.sw-wrap .sw-table { margin-top: 16px; }
.sw-wrap .sw-table td, .sw-wrap .sw-table th { padding: 10px; }
.sw-widget-stats { margin: 0; }
.sw-widget-stats li { padding: 4px 0; }

.sw-claim-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 16px 18px;
	margin-bottom: 14px;
}
.sw-claim-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.sw-claim-form { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.sw-form .form-table th { width: 220px; }
