/* مكتب المحقق — الأساس البصري المشترك */
@font-face { font-family: "Cairo"; font-weight: 400; font-display: swap; src: url("fonts/cairo-arabic-400-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFC, U+200C-200E; }
@font-face { font-family: "Cairo"; font-weight: 700; font-display: swap; src: url("fonts/cairo-arabic-700-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFC, U+200C-200E; }
@font-face { font-family: "Cairo"; font-weight: 400; font-display: swap; src: url("fonts/cairo-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2010-2027, U+2030-205E; }
@font-face { font-family: "Cairo"; font-weight: 700; font-display: swap; src: url("fonts/cairo-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2010-2027, U+2030-205E; }
:root {
  --desk: #12161e; --desk-2: #1a202b; --line: #2c3442; --ink: #ebebeb; --muted: #9aa3b2; --amber: #e8c478;
  --paper: #f4efe4; --paper-ink: #1d1c1a; --paper-muted: #6b665c; --paper-line: #d9d1c0; --stamp: #8a2f2a;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--desk); color: var(--ink); font-family: "Cairo", system-ui, Tahoma, sans-serif; line-height: 1.85; }
a { color: var(--amber); }
.wrap { max-width: 640px; margin: 0 auto; padding: 16px 14px 48px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 2px 14px; }
.topbar .code { font-weight: 700; color: var(--amber); letter-spacing: .02em; }
.topbar .meta { color: var(--muted); font-size: .9rem; }
.review-note { margin: 18px 2px 0; color: var(--muted); font-size: .85rem; border-top: 1px dashed var(--line); padding-top: 12px; }
/* ورقة رسمية */
.paper { background: var(--paper); color: var(--paper-ink); border-radius: 4px; padding: 22px 18px 26px; box-shadow: 0 10px 30px rgba(0,0,0,.45); color-scheme: light; }
.paper .letterhead { display: flex; align-items: flex-end; justify-content: space-between; border-bottom: 2px solid var(--paper-ink); padding-bottom: 10px; margin-bottom: 14px; }
.paper .letterhead .office { font-weight: 700; font-size: 1.25rem; }
.paper .letterhead .fileno { font-size: .9rem; color: var(--paper-muted); }
.paper h1 { font-size: 1.15rem; text-align: center; margin: 4px 0 14px; letter-spacing: .01em; }
.paper p { margin: 0 0 .7em; text-align: start; }
.paper .label { font-weight: 700; }
.paper ol, .paper ul { margin: .2em 0 .8em; padding-inline-start: 1.3em; }
.paper li { margin-bottom: .45em; }
/* قائمة مراجعة */
.list { list-style: none; padding: 0; margin: 10px 0; }
.list li { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; background: var(--desk-2); }
.list a, .list span.row { display: flex; justify-content: space-between; gap: 10px; padding: 12px 14px; text-decoration: none; color: var(--ink); }
.list .sym { color: var(--amber); font-weight: 700; min-width: 3.2em; }
.list .todo { color: var(--muted); }
h1.page { font-size: 1.3rem; margin: 6px 2px 4px; color: var(--amber); }
p.lead { margin: 0 2px 10px; color: var(--muted); }
/* المخطط */
.map-card { background: #0f131a; border: 1px solid var(--line); border-radius: 12px; padding: 8px; }
.map-card svg { width: 100%; height: auto; display: block; }
.caption { color: var(--muted); font-size: .9rem; margin: 10px 2px 0; }
/* الإفادات */
.statement .who { font-weight: 700; margin-bottom: 1em; }
.statement .quote { margin: 0 0 1em; padding-inline-start: .8em; border-inline-start: 3px solid var(--paper-line); }
/* المحادثة: واجهة عامة بلا شعار أي تطبيق */
.chat { background: #0e1218; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.chat-head { background: #1b2230; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.chat-title { font-weight: 700; font-size: 1.05rem; } .chat-sub { color: var(--muted); font-size: .85rem; }
.chat-body { padding: 14px 12px 18px; display: flex; flex-direction: column; gap: 10px; }
.chat-day { align-self: center; background: #222a38; color: var(--muted); font-size: .8125rem; padding: 2px 12px; border-radius: 999px; }
.msg { align-self: flex-start; max-width: 84%; background: #1f2734; border-radius: 4px 14px 14px 14px; padding: 8px 12px 6px; }
.msg-who { font-weight: 700; font-size: .85rem; line-height: 1.5; }
.chat-text { line-height: 1.7; }
.chat-img { display: block; width: 100%; max-width: 216px; height: auto; border-radius: 10px; margin: 4px 0 6px; }
.msg-time { color: var(--muted); font-size: .8125rem; text-align: end; line-height: 1.4; direction: ltr; }
/* الإيصال الحراري */
.receipt-wrap { display: flex; justify-content: center; padding: 10px 0 6px; }
.receipt { width: 290px; background: #fbfaf7; color: #222; padding: 20px 16px 26px; font-size: .95rem; line-height: 1.7; transform: rotate(-1.2deg); box-shadow: 0 8px 22px rgba(0,0,0,.5); color-scheme: light;
  background-image: linear-gradient(100deg, rgba(0,0,0,.035) 0 8%, transparent 14% 46%, rgba(0,0,0,.03) 52%, transparent 60% 88%, rgba(0,0,0,.04));
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom/12px 100%; mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom/12px 100%; }
.r-store { text-align: center; font-weight: 700; font-size: 1.15rem; } .r-meta { text-align: center; color: #555; font-size: .88rem; }
.r-table { width: 100%; border-collapse: collapse; margin: 12px 0 8px; border-top: 1px dashed #888; border-bottom: 1px dashed #888; font-variant-numeric: tabular-nums; }
.r-table th { font-weight: 700; font-size: .8125rem; padding: 6px 2px; text-align: start; } .r-table td { padding: 4px 2px; font-size: .9rem; }
.r-table th:not(:first-child), .r-table td:not(:first-child) { text-align: center; }
.r-total { display: flex; justify-content: space-between; font-weight: 700; padding: 4px 2px; } .r-pay { text-align: center; margin-top: 8px; color: #444; }
/* سجل الكاميرا */
.camlog { background: #070a0d; border: 1px solid #1f3a2a; border-radius: 10px; overflow: hidden; color: #cfe9d6; }
.cam-head { display: flex; justify-content: space-between; gap: 8px; background: #0c1711; color: #7fd69a; font-size: .85rem; font-weight: 700; padding: 8px 12px; border-bottom: 1px solid #1f3a2a; }
.cam-intro { margin: 0; padding: 12px; font-size: .9rem; color: #a9c7b2; border-bottom: 1px solid #16261c; }
.cam-table { width: 100%; border-collapse: collapse; font-size: .92rem; } .cam-table th { text-align: start; color: #7fd69a; font-size: .8125rem; padding: 8px 12px; border-bottom: 1px solid #1f3a2a; }
.cam-table td { padding: 11px 12px; border-bottom: 1px solid #111c15; vertical-align: top; line-height: 1.75; }
.cam-table td.t { white-space: nowrap; color: #e8c478; font-family: ui-monospace, "Courier New", monospace, "Cairo"; font-variant-numeric: tabular-nums; width: 1%; }
/* سجل المكالمات */
.calllog { background: #0e1218; border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px 12px; margin-bottom: 14px; }
.call-day { color: var(--muted); font-size: .85rem; margin-bottom: 6px; }
.call-row { display: flex; align-items: center; gap: 12px; } .call-icon { width: 38px; height: 38px; border-radius: 50%; background: #1f2734; color: #7fd69a; display: grid; place-items: center; font-size: 1.2rem; }
.call-main { flex: 1; } .call-name { font-weight: 700; } .call-sub, .call-time { color: var(--muted); font-size: .85rem; }
/* رسائل خاصة */
.chat.dm { margin-top: 14px; } .msg.mine { align-self: flex-end; background: #2a3550; border-radius: 14px 4px 14px 14px; } .dm .msg-who { color: var(--amber); }
/* صورة داخل محضر، وشريط خالد */
.fig { margin: 10px 0 14px; } .fig img { width: 100%; height: auto; display: block; border: 1px solid var(--paper-line); } .fig figcaption { font-size: .82rem; color: var(--paper-muted); margin-top: 4px; }
.strip { margin-top: 16px; background: var(--desk-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.strip h2 { font-size: .98rem; margin: 0 0 2px; color: var(--amber); } .strip-time { color: var(--muted); font-size: .85rem; margin-bottom: 8px; direction: ltr; text-align: end; }
.strip-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .strip figure { margin: 0; } .strip svg { width: 100%; height: auto; display: block; } .strip figcaption { font-size: .82rem; text-align: center; margin-top: 2px; }
/* صورة دليل */
.photo { margin: 0; background: #0e1218; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.photo img { width: 100%; height: auto; display: block; } .photo figcaption { padding: 10px 14px 12px; color: var(--ink); font-size: .92rem; }
