/* Marketer Mart — واجهة اللوحات (Kanban + الدبابيس). RTL. */

/* ===== Kanban ===== */
#mm-kanban { display: flex; gap: 16px; overflow-x: auto; padding: 8px 0; }
.mm-col { flex: 0 0 280px; background: #f4f5f7; border-radius: 12px; padding: 12px; }
.mm-col.mm-over { outline: 2px dashed #6366f1; background: #eef0ff; }
.mm-col-head { font: 700 15px/1.4 'Cairo', sans-serif; margin: 0 0 10px; display: flex; justify-content: space-between; }
.mm-count { background: #e2e4ea; border-radius: 999px; padding: 0 8px; font-size: 12px; }
.mm-col-body { min-height: 40px; display: flex; flex-direction: column; gap: 8px; }
.mm-card { background: #fff; border-radius: 10px; padding: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.08); cursor: grab; }
.mm-card:active { cursor: grabbing; }
.mm-card.mm-dragging { opacity: .5; }
.mm-card-title { font: 600 14px/1.5 'Cairo', sans-serif; margin-top: 6px; }
.mm-badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; color: #fff; }
.mm-p-urgent { background: #dc2626; }
.mm-p-high   { background: #ea580c; }
.mm-p-medium { background: #2563eb; }
.mm-p-low    { background: #16a34a; }
.mm-loading, .mm-error { font: 400 14px 'Cairo', sans-serif; padding: 20px; }
.mm-error { color: #dc2626; }

/* ===== Pinboard ===== */
.mm-pinboard { position: relative; display: inline-block; max-width: 100%; }
.mm-pinboard img { display: block; max-width: 100%; height: auto; cursor: crosshair; }
.mm-pin-layer { position: absolute; inset: 0; pointer-events: none; }
.mm-pin {
	position: absolute; transform: translate(50%, -50%); /* المركز على النقطة (RTL: 50% للخلف) */
	width: 28px; height: 28px; border-radius: 999px;
	background: #6366f1; color: #fff; border: 2px solid #fff;
	font: 700 12px 'Cairo', sans-serif; cursor: pointer; pointer-events: auto;
	box-shadow: 0 2px 6px rgba(0,0,0,.3);
}
.mm-pin-done { background: #16a34a; }

/* ===== Wallet ===== */
#mm-wallet { font-family: 'Cairo', sans-serif; max-width: 720px; }
.mm-wallet-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mm-wallet-card { background: #fff; border: 1px solid #eef0f4; border-radius: 12px; padding: 16px; text-align: center; }
.mm-wallet-card .mm-lbl { font-size: 13px; color: #6b7280; }
.mm-wallet-card .mm-val { font-size: 22px; font-weight: 800; margin-top: 6px; }
.mm-wallet-card.mm-c-available .mm-val { color: #16a34a; }
.mm-wallet-card.mm-c-held .mm-val { color: #ea580c; }
.mm-wallet-card.mm-c-total .mm-val { color: #111827; }
.mm-wallet-actions { display: flex; gap: 20px; flex-wrap: wrap; margin: 18px 0; }
.mm-wallet-actions fieldset { border: 1px solid #e5e7eb; border-radius: 10px; padding: 12px; flex: 1 1 260px; }
.mm-wallet-actions legend { font-weight: 700; font-size: 14px; padding: 0 6px; }
.mm-wallet-actions input { width: 60%; padding: 8px; border: 1px solid #d1d5db; border-radius: 8px; }
.mm-wallet-actions button { padding: 8px 16px; border: 0; border-radius: 8px; background: #6366f1; color: #fff; font-weight: 700; cursor: pointer; }
.mm-wallet-actions button:disabled { opacity: .5; cursor: not-allowed; }
.mm-ledger { width: 100%; border-collapse: collapse; margin-top: 10px; }
.mm-ledger th, .mm-ledger td { padding: 8px 10px; text-align: right; border-bottom: 1px solid #f0f1f4; font-size: 14px; }
.mm-ledger th { color: #6b7280; font-weight: 700; }
.mm-credit { color: #16a34a; font-weight: 700; }
.mm-debit  { color: #dc2626; font-weight: 700; }
.mm-date   { color: #9ca3af; font-size: 12px; }
.mm-empty  { color: #9ca3af; text-align: center; padding: 18px; }
.mm-ok    { color: #16a34a; margin-top: 8px; }
.mm-error { color: #dc2626; margin-top: 8px; }
