/* ============================================================
   منصة قياس التحول الرقمي — التصميم العام (RTL)
   ============================================================ */
@font-face { font-family: 'Tajawal'; font-weight: 300; font-display: swap;
  src: url('../fonts/tajawal-300-arabic.woff2') format('woff2'); unicode-range: U+0600-06FF, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: 'Tajawal'; font-weight: 300; font-display: swap;
  src: url('../fonts/tajawal-300-latin.woff2') format('woff2'); unicode-range: U+0000-00FF; }
@font-face { font-family: 'Tajawal'; font-weight: 400; font-display: swap;
  src: url('../fonts/tajawal-400-arabic.woff2') format('woff2'); unicode-range: U+0600-06FF, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: 'Tajawal'; font-weight: 400; font-display: swap;
  src: url('../fonts/tajawal-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF; }
@font-face { font-family: 'Tajawal'; font-weight: 500; font-display: swap;
  src: url('../fonts/tajawal-500-arabic.woff2') format('woff2'); unicode-range: U+0600-06FF, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: 'Tajawal'; font-weight: 500; font-display: swap;
  src: url('../fonts/tajawal-500-latin.woff2') format('woff2'); unicode-range: U+0000-00FF; }
@font-face { font-family: 'Tajawal'; font-weight: 700; font-display: swap;
  src: url('../fonts/tajawal-700-arabic.woff2') format('woff2'); unicode-range: U+0600-06FF, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: 'Tajawal'; font-weight: 700; font-display: swap;
  src: url('../fonts/tajawal-700-latin.woff2') format('woff2'); unicode-range: U+0000-00FF; }
@font-face { font-family: 'Tajawal'; font-weight: 800; font-display: swap;
  src: url('../fonts/tajawal-800-arabic.woff2') format('woff2'); unicode-range: U+0600-06FF, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: 'Tajawal'; font-weight: 800; font-display: swap;
  src: url('../fonts/tajawal-800-latin.woff2') format('woff2'); unicode-range: U+0000-00FF; }

:root {
  --primary: #0A1F44;
  --secondary: #00B4A6;
  --bg: #f2f5f9;
  --card: #ffffff;
  --text: #1c2b41;
  --muted: #7b8794;
  --border: #e3e8ef;
  --success: #16a34a;
  --success-bg: #e8f7ee;
  --danger: #dc2626;
  --danger-bg: #fdecec;
  --warning: #d97706;
  --warning-bg: #fdf3e3;
  --info: #2563eb;
  --info-bg: #eaf1fd;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(10, 31, 68, .08);
  --sidebar-w: 262px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; }
body {
  font-family: 'Tajawal', 'Segoe UI', Tahoma, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--secondary); }
img { max-width: 100%; }

/* ---------- الهيكل ---------- */
.app { display: flex; min-height: 100vh; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.content { flex: 1; padding: 22px; max-width: 1500px; width: 100%; margin: 0 auto; }
.content-public { max-width: 900px; margin: 0 auto; padding: 30px 20px; }

/* ---------- القائمة الجانبية ---------- */
.sidebar {
  width: var(--sidebar-w);
  background: var(--primary);
  color: #fff;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  flex-shrink: 0;
  z-index: 50;
}
.sidebar-brand { display: flex; align-items: center; gap: 12px; padding: 18px 16px; border-bottom: 1px solid rgba(255,255,255,.12); }
.sidebar-brand img { width: 44px; height: 44px; object-fit: contain; background: #fff; border-radius: 10px; padding: 4px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.35; }
.brand-text strong { font-size: .95rem; font-weight: 700; }
.brand-text small { color: rgba(255,255,255,.65); font-size: .75rem; }
.sidebar-nav { flex: 1; padding: 12px 10px; }
.nav-item {
  display: flex; align-items: center; gap: 11px;
  color: rgba(255,255,255,.82);
  padding: 10px 12px; border-radius: 9px; margin-bottom: 2px;
  font-size: .92rem; font-weight: 500;
  transition: background .15s, color .15s;
}
.nav-item:hover { background: rgba(255,255,255,.09); color: #fff; }
.nav-item.active { background: var(--secondary); color: #fff; font-weight: 700; }
.nav-item .ic { flex-shrink: 0; opacity: .9; }
.nav-sep { height: 1px; background: rgba(255,255,255,.12); margin: 10px 6px; }
.sidebar-footer { padding: 12px 16px; font-size: .75rem; color: rgba(255,255,255,.5); border-top: 1px solid rgba(255,255,255,.12); }

/* ---------- الشريط العلوي ---------- */
.topbar {
  display: flex; align-items: center; gap: 14px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 10px 22px;
  position: sticky; top: 0; z-index: 40;
}
.menu-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--primary); padding: 4px; }
.topbar-search {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
  padding: 7px 12px; flex: 1; max-width: 420px; color: var(--muted);
}
.topbar-search input { border: none; background: none; outline: none; flex: 1; font-family: inherit; font-size: .9rem; color: var(--text); }
.topbar-actions { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.topbar-icon { position: relative; display: inline-flex; padding: 8px; border-radius: 9px; color: var(--primary); }
.topbar-icon:hover { background: var(--bg); }
.badge-count {
  position: absolute; top: 1px; inset-inline-start: 1px;
  background: var(--danger); color: #fff; font-size: .62rem; font-weight: 700;
  border-radius: 999px; padding: 0 5px; min-width: 17px; height: 17px;
  display: flex; align-items: center; justify-content: center;
}
.user-menu { display: flex; align-items: center; gap: 4px; }
.user-chip { display: flex; align-items: center; gap: 9px; padding: 5px 10px; border-radius: 10px; }
.user-chip:hover { background: var(--bg); }
.avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: .95rem;
}
.user-name { font-weight: 600; font-size: .88rem; }

/* ---------- ترويسة الصفحة ---------- */
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h1 { font-size: 1.45rem; font-weight: 800; color: var(--primary); }
.page-subtitle { color: var(--muted); font-size: .88rem; margin-top: 2px; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- البطاقات ---------- */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 18px; }
.card-body { padding: 18px; }
.card-header { padding: 14px 18px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.card-header h2, .card-header h3 { font-size: 1.02rem; font-weight: 700; color: var(--primary); display: flex; align-items: center; gap: 8px; }

/* بطاقات الإحصاءات */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; display: flex; align-items: center; gap: 13px; box-shadow: var(--shadow);
}
.stat-icon {
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.stat-icon.t-primary { background: rgba(10,31,68,.09); color: var(--primary); }
.stat-icon.t-secondary { background: rgba(0,180,166,.13); color: var(--secondary); }
.stat-icon.t-success { background: var(--success-bg); color: var(--success); }
.stat-icon.t-danger { background: var(--danger-bg); color: var(--danger); }
.stat-icon.t-warning { background: var(--warning-bg); color: var(--warning); }
.stat-icon.t-info { background: var(--info-bg); color: var(--info); }
.stat-body { min-width: 0; }
.stat-value { font-size: 1.45rem; font-weight: 800; color: var(--primary); line-height: 1.2; }
.stat-label { color: var(--muted); font-size: .82rem; font-weight: 500; }
a.stat-card:hover { border-color: var(--secondary); }

/* ---------- الأزرار ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid transparent; border-radius: 9px;
  padding: 8px 16px; font-family: inherit; font-size: .88rem; font-weight: 600;
  cursor: pointer; transition: all .15s; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: #13305f; color: #fff; }
.btn-secondary { background: var(--secondary); color: #fff; }
.btn-secondary:hover { background: #009c90; color: #fff; }
.btn-outline { background: transparent; border-color: var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--secondary); color: var(--secondary); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #b91c1c; color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #12813b; color: #fff; }
.btn-sm { padding: 4px 10px; font-size: .8rem; border-radius: 7px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.inline-form { display: inline-block; }

/* ---------- الجداول ---------- */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.table th {
  text-align: right; background: #f8fafc; color: var(--muted);
  font-weight: 700; font-size: .8rem; padding: 10px 13px;
  border-bottom: 1px solid var(--border); white-space: nowrap;
}
.table td { padding: 10px 13px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr:hover { background: #f8fafc; }
.table tbody tr:last-child td { border-bottom: none; }
.table .row-title { font-weight: 700; color: var(--primary); }
.table .actions-cell { white-space: nowrap; display: flex; gap: 5px; align-items: center; }

/* ---------- الشارات ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; white-space: nowrap;
}
.b-success { background: var(--success-bg); color: var(--success); }
.b-danger { background: var(--danger-bg); color: var(--danger); }
.b-warning { background: var(--warning-bg); color: var(--warning); }
.b-info { background: var(--info-bg); color: var(--info); }
.b-muted { background: #eef1f5; color: var(--muted); }
.b-primary { background: rgba(10,31,68,.09); color: var(--primary); }
.b-secondary { background: rgba(0,180,166,.13); color: #00877c; }
.code-chip { font-family: inherit; background: rgba(0,180,166,.1); color: #00776d; border-radius: 6px; padding: 1px 8px; font-weight: 700; font-size: .8rem; white-space: nowrap; }

/* ---------- أشرطة التقدم ---------- */
.progress {
  position: relative; background: #e9edf3; border-radius: 999px;
  height: 18px; min-width: 90px; overflow: hidden;
}
.progress-fill { height: 100%; border-radius: 999px; transition: width .4s; }
.pb-success { background: var(--success); }
.pb-info { background: var(--secondary); }
.pb-warning { background: var(--warning); }
.pb-low { background: #94a3b8; }
.progress-text {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: .7rem; font-weight: 700; color: var(--primary);
}
.progress-lg { height: 26px; }
.progress-lg .progress-text { font-size: .8rem; }

/* ---------- النماذج ---------- */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 5px; margin-bottom: 13px; }
.form-group label { font-weight: 700; font-size: .85rem; color: var(--primary); }
.form-group .hint { color: var(--muted); font-size: .76rem; }
.req-star { color: var(--danger); }
input[type=text], input[type=email], input[type=password], input[type=number],
input[type=date], input[type=time], input[type=search], input[type=url], select, textarea {
  font-family: inherit; font-size: .9rem; color: var(--text);
  border: 1px solid var(--border); border-radius: 9px;
  padding: 9px 12px; background: #fff; width: 100%;
  transition: border-color .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--secondary); box-shadow: 0 0 0 3px rgba(0,180,166,.13); }
textarea { resize: vertical; min-height: 90px; }
.checkbox-line { display: flex; align-items: center; gap: 8px; font-size: .88rem; }
.checkbox-line input { width: auto; }
.form-actions { display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; }

/* ---------- التنبيهات ---------- */
.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 14px; font-size: .9rem; font-weight: 500; border: 1px solid transparent; }
.alert-success { background: var(--success-bg); color: #14713a; border-color: #bfe8cd; }
.alert-danger, .alert-error { background: var(--danger-bg); color: #a82424; border-color: #f5c6c6; }
.alert-warning { background: var(--warning-bg); color: #a05a06; border-color: #f3ddb5; }
.alert-info { background: var(--info-bg); color: #1d4fbb; border-color: #c4d7f8; }

/* ---------- التبويبات ---------- */
.tabs { display: flex; gap: 2px; border-bottom: 2px solid var(--border); margin-bottom: 18px; overflow-x: auto; }
.tab {
  padding: 10px 16px; font-weight: 600; font-size: .9rem; color: var(--muted);
  border-bottom: 2.5px solid transparent; margin-bottom: -2px; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 7px;
}
.tab:hover { color: var(--primary); }
.tab.active { color: var(--secondary); border-bottom-color: var(--secondary); font-weight: 700; }
.tab .tab-count { background: #eef1f5; color: var(--muted); border-radius: 999px; font-size: .7rem; padding: 0 7px; font-weight: 700; }
.tab.active .tab-count { background: rgba(0,180,166,.13); color: var(--secondary); }

/* ---------- الحالات الفارغة ---------- */
.empty-state { text-align: center; padding: 45px 20px; color: var(--muted); }
.empty-state .ic { opacity: .35; margin-bottom: 10px; }
.empty-state h3 { color: var(--text); margin-bottom: 6px; font-size: 1.05rem; }
.empty-state p { font-size: .87rem; margin-bottom: 14px; }

/* ---------- الترقيم ---------- */
.pagination { display: flex; align-items: center; gap: 6px; padding: 14px 0; flex-wrap: wrap; }
.page-link {
  padding: 5px 12px; border: 1px solid var(--border); border-radius: 8px;
  font-size: .85rem; font-weight: 600; background: #fff;
}
.page-link.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.page-info { color: var(--muted); font-size: .8rem; margin-inline-start: 8px; }

/* ---------- بطاقات المناظير ---------- */
.persp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.persp-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 11px;
  transition: transform .15s, border-color .15s; position: relative; overflow: hidden;
}
.persp-card::before { content: ''; position: absolute; top: 0; right: 0; left: 0; height: 4px; background: var(--pc, var(--secondary)); }
.persp-card:hover { transform: translateY(-2px); border-color: var(--secondary); }
.persp-head { display: flex; align-items: center; gap: 12px; }
.persp-icon {
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
  background: color-mix(in srgb, var(--pc, var(--secondary)) 14%, #fff);
  color: var(--pc, var(--secondary));
  display: flex; align-items: center; justify-content: center;
}
.persp-title { font-weight: 800; color: var(--primary); font-size: 1rem; line-height: 1.4; }
.persp-desc { color: var(--muted); font-size: .82rem; min-height: 38px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.persp-meta { display: flex; gap: 14px; color: var(--muted); font-size: .8rem; font-weight: 600; }

/* ---------- النص المنسق (متطلبات/أدلة) ---------- */
.rt-subheader {
  background: rgba(10,31,68,.06); color: var(--primary); font-weight: 700; font-size: .85rem;
  border-inline-start: 3px solid var(--secondary); border-radius: 7px;
  padding: 7px 12px; margin: 13px 0 8px;
}
.rt-item { display: flex; gap: 9px; margin-bottom: 7px; font-size: .9rem; }
.rt-num {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 7px;
  background: rgba(0,180,166,.12); color: #00776d; font-weight: 700; font-size: .78rem;
  display: flex; align-items: center; justify-content: center; margin-top: 2px;
}
.rt-subitem { display: flex; gap: 8px; margin: 4px 34px 4px 0; font-size: .87rem; color: #33455e; }
.rt-sub {
  flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%;
  background: #eef1f5; color: var(--muted); font-weight: 700; font-size: .72rem;
  display: flex; align-items: center; justify-content: center; margin-top: 2px;
}
.rt-bullet { margin-bottom: 5px; font-size: .87rem; }
.rt-p { margin-bottom: 7px; font-size: .9rem; }

/* ---------- عناصر متفرقة ---------- */
.muted { color: var(--muted); }
.small { font-size: .8rem; }
.fw-bold { font-weight: 700; }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: 8px; }
.flex { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.w-100 { width: 100%; }

.filters-bar {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 16px; margin-bottom: 16px;
}
.filters-bar .form-group { margin-bottom: 0; min-width: 150px; flex: 1; max-width: 220px; }
.filters-bar .form-group.grow { max-width: none; }

.detail-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 3px 20px; }
.detail-item { display: flex; gap: 8px; padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: .89rem; }
.detail-item .dt { color: var(--muted); font-weight: 600; min-width: 115px; flex-shrink: 0; }
.detail-item .dd { font-weight: 600; color: var(--text); }

.timeline { position: relative; padding-inline-start: 22px; }
.timeline::before { content: ''; position: absolute; inset-inline-start: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.tl-item { position: relative; padding-bottom: 16px; }
.tl-item::before {
  content: ''; position: absolute; inset-inline-start: -20.5px; top: 6px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--secondary); border: 2px solid #fff; box-shadow: 0 0 0 2px var(--secondary);
}
.tl-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: .85rem; }
.tl-user { font-weight: 700; color: var(--primary); }
.tl-time { color: var(--muted); font-size: .76rem; }
.tl-body { font-size: .87rem; color: #33455e; margin-top: 3px; }

.avatar-sm {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  color: #fff; font-weight: 700; font-size: .78rem;
  display: inline-flex; align-items: center; justify-content: center;
}
.user-cell { display: flex; align-items: center; gap: 8px; }

/* ---------- الرسوم البيانية ---------- */
.chart-box { position: relative; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; font-size: .8rem; }
.legend-item { display: flex; align-items: center; gap: 6px; font-weight: 600; color: var(--muted); }
.legend-dot { width: 11px; height: 11px; border-radius: 4px; }

.bar-row { display: grid; grid-template-columns: minmax(130px, 220px) 1fr 52px; gap: 10px; align-items: center; margin-bottom: 9px; font-size: .85rem; }
.bar-row .bar-label { font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-row .bar-track { background: #e9edf3; border-radius: 999px; height: 13px; overflow: hidden; }
.bar-row .bar-fill { height: 100%; border-radius: 999px; background: var(--secondary); }
.bar-row .bar-val { font-weight: 700; color: var(--primary); font-size: .8rem; }

/* ---------- صفحات الدخول ---------- */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px;
  background: linear-gradient(135deg, var(--primary) 0%, #12315e 55%, #0e5e57 100%); }
.auth-card { background: #fff; border-radius: 18px; box-shadow: 0 20px 60px rgba(0,0,0,.25); width: 100%; max-width: 420px; padding: 34px 30px; }
.auth-logo { text-align: center; margin-bottom: 20px; }
.auth-logo img { width: 84px; height: 84px; object-fit: contain; }
.auth-logo h1 { font-size: 1.2rem; color: var(--primary); font-weight: 800; margin-top: 10px; }
.auth-logo p { color: var(--muted); font-size: .82rem; }
.auth-footer { text-align: center; margin-top: 18px; font-size: .8rem; color: var(--muted); }
.auth-footer a { font-weight: 600; }

/* ---------- الإشعارات ---------- */
.notif-item { display: flex; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--border); align-items: flex-start; }
.notif-item.unread { background: rgba(0,180,166,.05); }
.notif-item:last-child { border-bottom: none; }
.notif-icon { flex-shrink: 0; width: 38px; height: 38px; border-radius: 10px; background: var(--info-bg); color: var(--info); display: flex; align-items: center; justify-content: center; }
.notif-body { flex: 1; min-width: 0; }
.notif-title { font-weight: 700; font-size: .89rem; color: var(--primary); }
.notif-text { color: var(--muted); font-size: .82rem; }
.notif-time { color: var(--muted); font-size: .73rem; white-space: nowrap; }

/* ---------- الطباعة ---------- */
@media print {
  .sidebar, .topbar, .page-actions, .filters-bar, .pagination, .btn, .tabs, .no-print { display: none !important; }
  .content { padding: 0; max-width: none; }
  .card { border: 1px solid #ccc; box-shadow: none; break-inside: avoid; }
  body { background: #fff; }
  .print-header { display: flex !important; align-items: center; gap: 14px; border-bottom: 2px solid var(--primary); padding-bottom: 12px; margin-bottom: 16px; }
}
.print-header { display: none; }
.print-header img { width: 60px; height: 60px; object-fit: contain; }

/* ---------- التجاوب ---------- */
.sidebar-overlay { display: none; }
@media (max-width: 992px) {
  .sidebar {
    position: fixed; inset-inline-start: 0; top: 0; bottom: 0;
    transform: translateX(100%); transition: transform .25s ease;
  }
  [dir="rtl"] .sidebar { transform: translateX(100%); }
  .sidebar.open { transform: translateX(0) !important; }
  .sidebar-overlay.show { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 45; }
  .menu-toggle { display: inline-flex; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .content { padding: 14px; }
  .topbar { padding: 10px 14px; }
  .user-name { display: none; }
  .topbar-search { max-width: none; }
  html { font-size: 14px; }
  .bar-row { grid-template-columns: minmax(90px, 130px) 1fr 46px; }
}
@media (max-width: 560px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-value { font-size: 1.15rem; }
  .persp-grid { grid-template-columns: 1fr; }
  .page-head h1 { font-size: 1.2rem; }
  .filters-bar .form-group { max-width: none; min-width: 45%; }
}
