.mocs-panel-app {
	max-width: 480px;
	margin: 0 auto;
	font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
	direction: rtl;
	transition: max-width 0.2s ease;
}
.mocs-panel-app.mocs-wide { max-width: 1180px; }

.mocs-portal-logo-wrap {
	display: flex; align-items: center; justify-content: center; gap: 10px;
	padding: 18px 0 6px;
}
.mocs-portal-logo { width: 60px; height: 60px; object-fit: contain; }
.mocs-portal-logo-text { font-size: 17px; font-weight: 800; color: #1c2c86; }

.mocs-panel-loading { text-align: center; padding: 40px 0; color: #777; }

.mocs-panel-header {
	background: linear-gradient(160deg, #2438a8 0%, #1c2c86 55%, #141f60 100%);
	color: #fff;
	padding: 18px 20px;
	border-radius: 14px 14px 0 0;
}
.mocs-panel-header h2 { margin: 0; font-size: 17px; }
.mocs-panel-session-name { font-size: 13px; opacity: 0.9; margin-top: 4px; }
.mocs-admin-badge { background: #c3d92e; color: #141f60; padding: 2px 8px; border-radius: 20px; font-size: 10px; font-weight: 700; }

.mocs-panel-body { background: #f4f5fb; padding: 16px; border-radius: 0 0 14px 14px; }

.mocs-card { background: #fff; border: 1px solid #e1e4f5; border-radius: 12px; padding: 16px; margin-bottom: 12px; }
.mocs-card h3 { margin: 0 0 10px; font-size: 15px; color: #1c2c86; }
.mocs-card p { margin: 4px 0; font-size: 13px; color: #555; }

.mocs-field { margin-bottom: 12px; }
.mocs-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; color: #333; }
.mocs-field input, .mocs-field select {
	width: 100%; padding: 10px 12px; border: 1px solid #e1e4f5; border-radius: 8px; font-family: inherit; font-size: 14px;
}

.mocs-btn { display: inline-flex; align-items: center; justify-content: center; width: 100%; padding: 12px; border: none; border-radius: 9px; font-family: inherit; font-weight: 700; font-size: 14px; cursor: pointer; margin-top: 6px; }
.mocs-btn-primary { background: linear-gradient(180deg, #d4e94a 0%, #a8bc1f 100%); color: #141f60; }
.mocs-btn-secondary { background: #eef0fc; color: #1c2c86; }
.mocs-btn-outline { background: #fff; color: #1c2c86; border: 1px solid #1c2c86; }
.mocs-btn-sm { padding: 8px; font-size: 12.5px; width: auto; flex: 1; }

.mocs-row-btns { display: flex; gap: 8px; margin-top: 10px; }
.mocs-logout-btn { margin-top: 16px; }

.mocs-hint { font-size: 12.5px; color: #777; background: #eef0fc; border-radius: 8px; padding: 10px 12px; }
.mocs-error { font-size: 12.5px; color: #c0392b; background: #fdecea; border-radius: 8px; padding: 10px 12px; margin-bottom: 10px; }
.mocs-success { font-size: 12.5px; color: #2a8a3e; background: #e9f7ec; border-radius: 8px; padding: 10px 12px; margin-bottom: 10px; }
.mocs-loading { text-align: center; padding: 20px; color: #777; font-size: 13px; }

.mocs-admin-switcher { margin-bottom: 12px; }
.mocs-admin-switcher select { width: 100%; padding: 10px; border-radius: 9px; border: 1px solid #c3d92e; background: #fbfde6; font-family: inherit; }

.mocs-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.mocs-tab-btn { flex: 1; padding: 10px; border: none; border-radius: 9px; background: #eef0fc; color: #1c2c86; font-family: inherit; font-weight: 700; font-size: 13px; cursor: pointer; }
.mocs-tab-btn.active { background: #1c2c86; color: #fff; }

.mocs-badge { display: inline-block; padding: 2px 8px; border-radius: 20px; font-size: 10.5px; font-weight: 700; }
.mocs-badge-pending { background: #fdf3d9; color: #b8860b; }
.mocs-badge-done { background: #e9f7ec; color: #2a8a3e; }
.mocs-badge-cancelled { background: #fdecea; color: #c0392b; }
.mocs-badge-used { background: #eceef5; color: #555; }

.mocs-section-title { margin: 18px 4px 10px; color: #1c2c86; font-size: 15px; }

.mocs-qr-wrap { position: relative; border-radius: 12px; overflow: hidden; background: #000; aspect-ratio: 1; margin-bottom: 10px; }
.mocs-qr-wrap video { width: 100%; height: 100%; object-fit: cover; }
.mocs-qr-frame { position: absolute; inset: 15%; border: 3px solid #c3d92e; border-radius: 10px; }

/* ==================== پرتال یکپارچه: تب‌های بالای صفحه ==================== */
.mocs-portal-tabs {
	display: flex; gap: 8px; background: #fff; border: 1px solid #e1e4f5; border-radius: 14px;
	padding: 6px; margin-bottom: 16px; max-width: 700px;
}
.mocs-portal-tab {
	flex: 1; padding: 10px 8px; border: none; border-radius: 10px; background: transparent;
	color: #1c2c86; font-family: inherit; font-weight: 700; font-size: 13px; cursor: pointer;
}
.mocs-portal-tab.active { background: #c3d92e; color: #141f60; }
.mocs-center-text { text-align: center; }

/* ==================== داشبورد مدیریت (سایدبار + محتوا) ==================== */
.mocs-admin-wrap { display: flex; min-height: 640px; background: #f7f8fb; border: 1px solid #e1e4f5; border-radius: 18px; overflow: hidden; }
.mocs-admin-sidebar { width: 210px; background: #1c2c86; display: flex; flex-direction: column; padding: 20px 12px; gap: 4px; flex-shrink: 0; }
.mocs-admin-sidebar-title { color: #fff; font-size: 14.5px; font-weight: 800; padding: 0 10px 18px; }
.mocs-admin-nav-item { padding: 11px 12px; border-radius: 10px; font-size: 13px; font-weight: 600; cursor: pointer; color: #b8c0e8; }
.mocs-admin-nav-item.active { color: #fff; background: #2438a8; }
.mocs-admin-content { flex: 1; padding: 26px 30px; display: flex; flex-direction: column; gap: 22px; overflow: auto; }
.mocs-admin-content h2 { font-size: 18px; font-weight: 800; color: #1c2c86; margin: 0; }
.mocs-admin-content .mocs-subdate { font-size: 12px; color: #777; margin-top: 2px; }

.mocs-kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.mocs-kpi-card { background: #fff; border: 1px solid #e1e4f5; border-radius: 14px; padding: 16px; }
.mocs-kpi-value { font-size: 20px; font-weight: 800; color: #1c2c86; margin-top: 6px; }
.mocs-kpi-label { font-size: 11.5px; color: #777; font-weight: 600; }

.mocs-table-wrap { background: #fff; border: 1px solid #e1e4f5; border-radius: 14px; overflow: hidden; }
.mocs-admin-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.mocs-admin-table th { background: #f4f5fb; color: #777; font-size: 11.5px; font-weight: 700; padding: 12px 14px; text-align: right; }
.mocs-admin-table td { padding: 12px 14px; border-top: 1px solid #e1e4f5; color: #222; }

.mocs-branch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mocs-branch-card { background: #fff; border: 1px solid #e1e4f5; border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.mocs-branch-card h4 { margin: 0; font-size: 14px; font-weight: 700; color: #1c2c86; }
.mocs-branch-card p { margin: 0; font-size: 12px; color: #777; }
.mocs-branch-rating { font-size: 12px; font-weight: 700; color: #b8860b; }

.mocs-revenue-chart { background: #fff; border: 1px solid #e1e4f5; border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.mocs-revenue-bars { display: flex; align-items: flex-end; gap: 12px; height: 160px; }
.mocs-revenue-bar-col { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; }
.mocs-revenue-bar { width: 100%; background: linear-gradient(180deg, #c3d92e 0%, #a8bc1f 100%); border-radius: 6px 6px 0 0; }

@media (max-width: 720px) {
	.mocs-admin-wrap { flex-direction: column; }
	.mocs-admin-sidebar { width: 100%; flex-direction: row; overflow-x: auto; padding: 10px; }
	.mocs-kpi-grid { grid-template-columns: repeat(2, 1fr); }
	.mocs-branch-grid { grid-template-columns: 1fr; }
	.mocs-admin-table { font-size: 11px; }
}

/* ==================== تأیید/پیشنهاد زمان مراجعه (اتوسرویس) ==================== */
.mocs-hidden { display: none !important; }

.mocs-propose-form {
	margin-top: 10px;
	padding: 12px;
	background: #f8f9fd;
	border: 1px solid #e1e4f5;
	border-radius: 10px;
}

.mocs-mini-calendar-wrap { position: relative; }

.mocs-propose-date-input { cursor: pointer; background: #fff; }

.mocs-mini-calendar {
	position: absolute;
	z-index: 20;
	top: 100%;
	right: 0;
	left: 0;
	margin-top: 4px;
	background: #fff;
	border: 1px solid #d7dbf2;
	border-radius: 10px;
	box-shadow: 0 8px 24px rgba(28, 44, 134, 0.14);
	padding: 10px;
}

.mocs-mini-cal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-size: 13px; font-weight: 700; color: #1c2c86; }
.mocs-mini-cal-header button { border: none; background: #eef0fc; color: #1c2c86; width: 26px; height: 26px; border-radius: 6px; cursor: pointer; font-size: 14px; }

.mocs-mini-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.mocs-mini-cal-wd { font-size: 10.5px; color: #999; padding: 4px 0; }
.mocs-mini-cal-day { font-size: 12px; padding: 6px 0; border-radius: 6px; cursor: pointer; }
.mocs-mini-cal-day:hover { background: #eef0fc; }
.mocs-mini-cal-disabled { color: #ccc; cursor: not-allowed; pointer-events: none; }
.mocs-mini-cal-empty {}
