:root { --bg:#f6f7f9; --fg:#1d232b; --muted:#6b7480; --card:#fff; --line:#dfe3e8; --ok:#2f8f5b; --bad:#c2453d; --other:#a7b0bb; --acc:#2d5ea8; }
@media (prefers-color-scheme: dark) { :root { --bg:#14181d; --fg:#e4e8ec; --muted:#8c96a1; --card:#1c2128; --line:#2d343c; --ok:#4fb57f; --bad:#e2665e; --other:#5d6670; --acc:#7aa7ec; } }
* { box-sizing: border-box; }
body { margin:0; font:14px/1.45 system-ui, -apple-system, "Segoe UI", "Noto Sans", "Noto Sans Arabic", sans-serif; background:var(--bg); color:var(--fg); }
header.top { display:flex; align-items:center; gap:24px; padding:10px 20px; background:var(--card); border-bottom:1px solid var(--line); }
.brand { font-weight:700; }
nav a { margin-right:14px; color:var(--acc); text-decoration:none; }
.logout { margin-left:auto; display:flex; gap:10px; align-items:center; }
.who { color:var(--muted); }
main { padding:20px; max-width:1500px; margin:0 auto; }
h1 { font-size:20px; margin:0 0 14px; } h2 { font-size:15px; margin:0 0 10px; }
.card { background:var(--card); border:1px solid var(--line); border-radius:8px; padding:16px; margin-bottom:16px; }
.narrow { max-width:420px; margin:40px auto; display:flex; flex-direction:column; gap:12px; }
label { display:flex; flex-direction:column; gap:4px; font-size:12px; color:var(--muted); }
input, select { font:inherit; padding:6px 8px; border:1px solid var(--line); border-radius:6px; background:var(--bg); color:var(--fg); }
button, .button { font:inherit; padding:7px 14px; border:0; border-radius:6px; background:var(--acc); color:#fff; cursor:pointer; text-decoration:none; display:inline-block; }
button.small { padding:3px 8px; font-size:12px; }
.error { background:#fbe9e7; color:#8a2a22; padding:10px 14px; border-radius:6px; }
.notice { border-color:var(--acc); }
.filters { display:grid; grid-template-columns:repeat(auto-fill, minmax(180px, 1fr)); gap:12px; align-items:end; }
.filters .wide { grid-column:span 2; } .filters .actions { display:flex; gap:10px; }
table { width:100%; border-collapse:collapse; background:var(--card); }
th, td { text-align:left; padding:6px 8px; border-bottom:1px solid var(--line); vertical-align:top; }
th { font-size:12px; color:var(--muted); font-weight:600; }
.results td.text { max-width:520px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.num { text-align:right; font-variant-numeric:tabular-nums; } .mono { font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.nowrap { white-space:nowrap; } .small { font-size:12px; } .muted { color:var(--muted); } .big { font-size:20px; }
.kpis { display:flex; gap:12px; flex-wrap:wrap; margin-bottom:16px; }
.kpi { background:var(--card); border:1px solid var(--line); border-radius:8px; padding:12px 16px; min-width:150px; }
.kpi span { display:block; font-size:12px; color:var(--muted); } .kpi b { font-size:22px; }
.kpi.ok b { color:var(--ok); } .kpi.bad b { color:var(--bad); }
.cols { display:grid; grid-template-columns:repeat(auto-fit, minmax(420px, 1fr)); gap:16px; }
.row { display:flex; align-items:center; justify-content:space-between; }
.tabs a { padding:5px 10px; border-radius:6px; } .tabs a.on { background:var(--acc); color:#fff; }
svg.chart { width:100%; height:auto; } svg .grid { stroke:var(--line); } svg .axis { fill:var(--muted); font-size:10px; }
svg .s-ok, .legend .s-ok { fill:var(--ok); background:var(--ok); } svg .s-bad, .legend .s-bad { fill:var(--bad); background:var(--bad); }
svg .s-other, .legend .s-other { fill:var(--other); background:var(--other); }
.legend i { display:inline-block; width:10px; height:10px; margin:0 4px 0 12px; }
.st { padding:1px 6px; border-radius:4px; font-size:12px; background:var(--line); }
.st-delivrd { background:#dff3e7; color:#1d6b42; } .st-rejectd, .st-gw_rejected, .st-undeliv { background:#fbe3e1; color:#8a2a22; }
pre.msg { white-space:pre-wrap; word-break:break-word; font-size:15px; margin:0; unicode-bidi:plaintext; }
.kv th { width:200px; } form.inline { display:inline; } td.actions { white-space:nowrap; }
.qr svg { width:220px; height:220px; background:#fff; padding:8px; }
