/* ============================================================
   layout.css — چیدمان کلی محتوای اصلی صفحات داخلی پنل
   شامل: ناحیه محتوای اصلی، فوتر، و قالب صفحات مدیریتی
   (مثل صفحه مدیریت کاربران) با کارت‌های بخش‌بندی‌شده
   ============================================================ */

.main-content {
    flex: 1;
    min-width: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
.main-inner {
    padding: 16px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* ── فوتر مشترک ───────────────────────────────────────────── */
.footer {
    text-align: center;
    padding: 14px 16px 18px;
    border-top: 1px solid var(--border);
    font-size: .73rem;
    color: var(--text-muted);
    background: var(--surface);
    margin-top: auto;
}
.footer a { color: var(--accent); text-decoration: none; font-weight: 600; }

/* ── قالب صفحات مدیریتی تمام‌عرض (مثل مدیریت کاربران) ────── */
.page-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 72px 16px 40px;
}
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}
.page-title { font-size: 1.25rem; font-weight: 800; display: flex; align-items: center; gap: 8px; }

.section-card {
    background: var(--surface);
    border-radius: 16px;
    border: 1.5px solid var(--border);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    overflow: hidden;
}
.sc-head {
    padding: 13px 18px;
    display: flex; align-items: center; justify-content: space-between;
    border-bottom: 1.5px solid var(--border);
    background: var(--surface-alt);
}
.sc-title { font-weight: 800; font-size: .93rem; display: flex; align-items: center; gap: 7px; }
.sc-body  { padding: 16px 18px; }

/* ── قالب صفحات باریک با کارت‌های وسط‌چین (پروفایل/تنظیمات) ── */
.narrow-wrap { max-width: 700px; margin: 0 auto; }
.narrow-wrap.narrower { max-width: 500px; }
