/* هوية 10 Concept فوق نظام منصاتنا: الحبر كحلي، والتمييز أزرق الشعار */
:root { --ink: #10264f; --ink2: #1b3a73; --copper: #043884; --copper-l: #c8d6ef; --navy: #043884; --bg: #f5f7fa; --sunk: #eef1f6; --line: #e2e7ef; --line2: #ccd5e3; }
.top { background: rgba(245, 247, 250, .9); }
.brand { text-decoration: none; color: var(--ink); }
.slogo { width: 34px; height: 31px; object-fit: contain; }
.blogo { width: 120px; height: auto; }
.hide-m { }
@media (max-width: 640px) { .hide-m { display: none; } .wrap { padding: 12px; } .top { padding: 8px 12px; } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; text-align: start; display: grid; gap: 2px; transition: border-color .15s; }
.stat:hover, .stat.on { border-color: var(--navy); }
.stat b { font-family: var(--display); font-size: 24px; font-weight: 600; color: var(--ink); }
.stat span { color: var(--muted); font-size: 12.5px; }
@media (max-width: 640px) { .stats { grid-template-columns: 1fr 1fr; } }

.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.toolbar input[type=search] { width: auto; flex: 1; min-width: 180px; }
.list { display: grid; gap: 0; }
.item { display: grid; grid-template-columns: 112px 1fr auto; gap: 4px 14px; align-items: center; padding: 12px 6px; border-bottom: 1px solid var(--sunk); cursor: pointer; text-decoration: none; color: inherit; }
.item:hover { background: #fafbfd; }
.item .no { font-family: ui-monospace, Menlo, monospace; font-size: 12px; color: var(--muted); direction: ltr; text-align: right; }
.item .t { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .s { color: var(--muted); font-size: 12.5px; grid-column: 2; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .r { grid-row: 1 / span 2; grid-column: 3; display: grid; justify-items: end; gap: 3px; }
@media (max-width: 640px) { .item { grid-template-columns: 1fr auto; } .item .no { grid-column: 1; } .item .t { grid-column: 1; } .item .s { grid-column: 1; } .item .r { grid-column: 2; grid-row: 1 / span 3; } }

.st { display: inline-flex; align-items: center; gap: 5px; padding: 1px 9px; border-radius: 20px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.st::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st.draft { background: #f0f2f5; color: #6b7585; }
.st.sent { background: #fff4e5; color: #b4690e; }
.st.viewed { background: #e9f0fb; color: #1d56b0; }
.st.signed { background: #e6f5ec; color: #1f7a48; }
.st.declined { background: #fdecea; color: #b2362b; }
.st.cancelled { background: #f0f0f0; color: #8b8b8b; text-decoration: line-through; }
.kind { font-size: 11.5px; color: var(--navy); background: #e9eff9; border-radius: 6px; padding: 0 7px; }

.split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: 16px; align-items: start; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; } }
.form { display: grid; gap: 12px; }
textarea.body { min-height: 260px; line-height: 1.9; }
.vars { display: flex; flex-wrap: wrap; gap: 5px; }
.vars code { background: var(--sunk); border-radius: 5px; padding: 0 6px; font-size: 12px; cursor: pointer; font-family: inherit; }
.vars code:hover { background: #dfe6f2; }

.drop { border: 1.5px dashed var(--line2); border-radius: 12px; padding: 16px; text-align: center; color: var(--muted); cursor: pointer; transition: border-color .15s, background .15s; }
.drop.over, .drop:hover { border-color: var(--navy); background: #f5f8fd; color: var(--navy); }
.files { display: grid; gap: 8px; margin-top: 10px; }
.fr { display: grid; grid-template-columns: 54px 1fr auto; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px; background: #fff; }
.fr .th { width: 54px; height: 42px; border-radius: 6px; background: var(--sunk) center/cover no-repeat; display: grid; place-items: center; font-size: 10px; font-weight: 700; color: var(--navy); }
.fr .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.fr .nm small { display: block; color: var(--muted); font-size: 11.5px; }
.fr .ac { display: flex; gap: 2px; }
.fr.pending { opacity: .6; }
.bar-prog { height: 3px; background: var(--sunk); border-radius: 3px; overflow: hidden; margin-top: 3px; }
.bar-prog i { display: block; height: 100%; background: var(--navy); width: 0; transition: width .2s; }

.side { display: grid; gap: 16px; }
.linkbox { display: flex; gap: 6px; align-items: center; background: var(--sunk); border-radius: 8px; padding: 6px 6px 6px 10px; }
.linkbox code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: ltr; font-size: 12px; }
.tl { display: grid; gap: 0; font-size: 13px; }
.tl div { display: grid; grid-template-columns: 14px 1fr; gap: 8px; padding: 5px 0; }
.tl div::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--line2); margin-top: 7px; }
.tl div.ok::before { background: var(--ok); } .tl div.bad::before { background: var(--s4); }
.tl small { color: var(--muted); }
.sigimg { max-width: 220px; max-height: 90px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 4px; }
.declined-box { background: #fdecea; border: 1px solid #f3c9c3; color: #8c2a20; border-radius: 10px; padding: 10px 12px; white-space: pre-wrap; }
.result-list { display: grid; gap: 6px; }
.banner a { color: inherit; }
.msgcard { border: 1px solid var(--line); border-radius: 10px; padding: 12px; display: grid; gap: 10px; }
.msgcard h4 { font-size: 13.5px; display: flex; gap: 8px; align-items: center; }
.reset { font-size: 11.5px; color: var(--muted); text-decoration: underline; cursor: pointer; border: 0; background: none; }
.tplrow { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--sunk); }
.badge-ok { color: var(--ok); font-weight: 600; } .badge-wait { color: #b4690e; font-weight: 600; } .badge-bad { color: var(--s4); font-weight: 600; }
.chk-row { display: flex; gap: 16px; flex-wrap: wrap; }
