/* Mining Rental Manager - Frontend styles
   Mobile-first, RTL-friendly (uses logical properties where practical). */

.mrm-cards-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 12px;
	margin: 16px 0;
}

.mrm-card {
	background: #fff;
	border: 1px solid #e2e2e2;
	border-radius: 8px;
	padding: 14px;
}

.mrm-card h4 {
	margin: 0 0 6px;
	font-size: 12px;
	color: #666;
}

.mrm-card-value {
	font-size: 20px;
	font-weight: 700;
	margin: 0;
}

.mrm-table {
	width: 100%;
	border-collapse: collapse;
	margin: 12px 0;
}

.mrm-table th,
.mrm-table td {
	padding: 8px 10px;
	border-bottom: 1px solid #eee;
	text-align: start;
}

.mrm-plans-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 16px;
}

.mrm-plan-card {
	border: 1px solid #e2e2e2;
	border-radius: 10px;
	padding: 18px;
}

.mrm-plan-price {
	font-size: 22px;
	font-weight: 700;
}

.mrm-disclaimer {
	font-size: 12px;
	color: #777;
	margin-top: 10px;
}

.mrm-success {
	color: #1a7f37;
}

.mrm-error {
	color: #c0392b;
}

.mrm-register-form label,
.mrm-deposit-form label,
.mrm-withdraw-form label,
.mrm-add-wallet-form label,
.mrm-ticket-form label {
	display: block;
	margin-bottom: 10px;
}

.mrm-register-form input,
.mrm-deposit-form select,
.mrm-withdraw-form input,
.mrm-withdraw-form select,
.mrm-add-wallet-form input,
.mrm-ticket-form input,
.mrm-ticket-form select,
.mrm-ticket-form textarea {
	width: 100%;
	max-width: 420px;
	padding: 8px;
	box-sizing: border-box;
}

.mrm-ticket-thread .mrm-ticket-message {
	padding: 10px;
	border-radius: 8px;
	margin-bottom: 8px;
}

.mrm-ticket-thread .mrm-ticket-message.admin {
	background: #eef6ff;
}

.mrm-ticket-thread .mrm-ticket-message.user {
	background: #f5f5f5;
}

/* RTL / Persian support: right-align text and flip table alignment
   automatically when the page direction is RTL. */
[dir="rtl"] .mrm-table th,
[dir="rtl"] .mrm-table td {
	text-align: right;
}

@media (max-width: 600px) {
	.mrm-cards-grid,
	.mrm-plans-grid {
		grid-template-columns: 1fr;
	}

	.mrm-table {
		font-size: 13px;
	}
}
