/* تصميم التقارير — يشتغل بالتطبيق (فاتح/داكن) وبالطباعة */
.rep{--c:var(--acc,#6d4aff);--c-soft:color-mix(in srgb,var(--c) 16%,transparent);--good:#15803d;--bad:#b91c1c}
.rep-hd{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:14px}
.rep-hd .seg{margin:0}
.rs{margin-bottom:14px}
.card{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:16px}
.card h3{margin:0 0 2px;font-size:16px}
.hint{color:var(--muted);font-size:12px;margin:0 0 12px}
.none{color:var(--muted);font-size:13px;text-align:center;padding:14px 0;margin:0}
.demo{background:#fef3c7;color:#78350f;border:1px solid #fcd34d;border-radius:12px;padding:10px 14px;font-size:13px;margin-bottom:14px}
.kpis{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.kpi{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:12px 14px;display:flex;flex-direction:column;gap:2px;min-width:0}
.kpi-l{color:var(--muted);font-size:12px}
.kpi-v{font-size:22px;font-variant-numeric:tabular-nums;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.kpi-s{color:var(--muted);font-size:11px}
.dl{font-size:12px;font-weight:600}.dl.up{color:var(--good)}.dl.down{color:var(--bad)}.dl.flat{color:var(--muted);font-weight:400}
/* الرسم الخطي */
.chart{position:relative}
.chart svg{width:100%;height:auto;display:block;overflow:visible;touch-action:pan-y;direction:ltr}
.chart .gl{stroke:var(--line);stroke-width:1}
.chart .ax{fill:var(--muted);font-size:11px;font-family:inherit}
.chart .area{fill:var(--c-soft)}
.chart .ln{fill:none;stroke:var(--c);stroke-width:2;stroke-linejoin:round;stroke-linecap:round}
.chart .ln.part{stroke-dasharray:4 4;opacity:.7}
.chart .vl{stroke:var(--muted);stroke-width:1;stroke-dasharray:3 3}
.chart .hov{fill:var(--c);stroke:var(--card);stroke-width:2}
.tip{position:absolute;top:-6px;width:150px;background:var(--fg);color:var(--bg);font-size:12px;padding:8px 10px;border-radius:10px;pointer-events:none;opacity:0;transition:opacity .15s;z-index:2;line-height:1.5}
/* القمع */
.funnel{display:flex;flex-direction:column;gap:8px}
.fn{display:grid;grid-template-columns:96px 1fr 92px;align-items:center;gap:10px;font-size:13px}
.fn-t,.br-t{height:12px;background:var(--bg);border-radius:6px;overflow:hidden}
.fn-t i,.br-t i,.mini i{display:block;height:100%;background:var(--c);border-radius:6px}
.fn-v{display:flex;flex-direction:column;line-height:1.2}.fn-v small{color:var(--muted);font-size:11px}
/* أعمدة أفقية */
.bars{display:flex;flex-direction:column;gap:9px}
.br{display:grid;grid-template-columns:minmax(70px,38%) 1fr auto;align-items:center;gap:10px;font-size:13px}
.br-k{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;unicode-bidi:plaintext;text-align:right}
.tbl .pn b{unicode-bidi:plaintext;text-align:right}
.br-v small,.fn-v small,.dl{unicode-bidi:isolate}
.br-t{height:10px}
.br-v{font-variant-numeric:tabular-nums;white-space:nowrap}.br-v small{color:var(--muted)}
/* الجدول */
.tbl-w{overflow-x:auto;margin:0 -4px}
.tbl{width:100%;border-collapse:collapse;font-size:13px;font-variant-numeric:tabular-nums}
.tbl th{color:var(--muted);font-weight:500;font-size:12px;text-align:right;padding:8px 6px;border-bottom:1px solid var(--line);white-space:nowrap}
.tbl td{padding:9px 6px;border-bottom:1px solid var(--line);vertical-align:middle;white-space:nowrap}
.tbl tr:last-child td{border:0}
.tbl .pn{white-space:normal;min-width:150px}.tbl .pn b{display:block;font-weight:600;line-height:1.3}.tbl .pn small{color:var(--muted);font-size:11px}
.mini{display:block;height:4px;background:var(--bg);border-radius:2px;margin-top:4px;overflow:hidden}
.rate{display:inline-block;padding:1px 8px;border-radius:99px;background:var(--bg);font-size:12px}
.rate.good{background:#dcfce7;color:#14532d}.rate.low{background:#fee2e2;color:#7f1d1d}
.tbl.stores tbody tr{cursor:pointer}.tbl.stores tbody tr:hover{background:var(--bg)}
.muted{color:var(--muted)}
/* الساعات */
.hours{display:grid;grid-template-columns:repeat(24,1fr);gap:3px;height:120px;align-items:end;direction:ltr}
.hb{height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:4px}
.hb i{display:block;width:100%;background:var(--c);border-radius:3px 3px 0 0}
.hb small{font-size:10px;color:var(--muted);height:12px}
.hb:hover i{opacity:.75}
.ins ul{margin:8px 0 0;padding-inline-start:20px;display:flex;flex-direction:column;gap:8px;font-size:14px}
.two-col{display:grid;grid-template-columns:1fr;gap:0 14px}
@media(min-width:760px){.kpis{grid-template-columns:repeat(4,1fr)}.two-col{grid-template-columns:1fr 1fr}}
