* { box-sizing: border-box; }
body { margin: 0; background: #f5f5f7; color: #1d1d1f; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; direction: rtl; text-align: right; }
.top { background: #000; color: #fff; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; }
.logo { font-weight: 700; letter-spacing: 4px; font-size: 18px; }
.top a { color: #bbb; text-decoration: none; font-size: 14px; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 24px 16px 60px; }
.card { background: #fff; border-radius: 18px; padding: 24px; box-shadow: 0 1px 3px rgba(0,0,0,.06); margin-bottom: 20px; }
h1 { font-size: 26px; margin: 0 0 6px; }
h2 { font-size: 19px; margin: 0 0 16px; }
.muted { color: #6e6e73; font-size: 14px; }
label { display: block; font-size: 13px; color: #6e6e73; margin-bottom: 6px; }
input[type=text], input[type=email], input[type=tel], input[type=password] { width: 100%; padding: 11px 14px; border: 1px solid #d2d2d7; border-radius: 12px; font-size: 15px; font-family: inherit; background: #fff; }
input:focus { outline: none; border-color: #0071e3; box-shadow: 0 0 0 3px rgba(0,113,227,.15); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.btn { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 999px; padding: 11px 22px; font-size: 15px; cursor: pointer; font-family: inherit; text-decoration: none; background: #000; color: #fff; }
.btn:disabled { opacity: .4; cursor: default; }
.btn.light { background: #f0f0f2; color: #1d1d1f; }
.btn.green { background: #25d366; color: #fff; }
.btn.sm { padding: 7px 13px; font-size: 13px; }
.btn.danger { background: #fff0f0; color: #c00; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: right; color: #6e6e73; font-weight: 500; padding: 10px 8px; border-bottom: 1px solid #e5e5ea; white-space: nowrap; }
td { padding: 12px 8px; border-bottom: 1px solid #f0f0f2; vertical-align: middle; }
.actions { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.b-created { background: #f0f0f2; color: #555; }
.b-sent { background: #e8f1fd; color: #0060c0; }
.b-viewed { background: #fff6e0; color: #a06800; }
.b-signed { background: #e4f8ea; color: #0b7a34; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.filters button { border: 1px solid #d2d2d7; background: #fff; border-radius: 999px; padding: 6px 14px; cursor: pointer; font-family: inherit; font-size: 13px; }
.filters button.on { background: #000; color: #fff; border-color: #000; }
.picker { position: relative; display: inline-block; margin-top: 10px; cursor: crosshair; border: 1px solid #e5e5ea; border-radius: 8px; overflow: hidden; max-width: 100%; }
.picker canvas { display: block; max-width: 100%; height: auto; }
.sigbox { position: absolute; border: 2px dashed #0071e3; background: rgba(0,113,227,.1); border-radius: 6px; pointer-events: none; display: flex; align-items: center; justify-content: center; color: #0071e3; font-size: 12px; font-weight: 600; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: #1d1d1f; color: #fff; padding: 12px 22px; border-radius: 999px; font-size: 14px; opacity: 0; transition: opacity .25s; pointer-events: none; z-index: 10; }
.toast.show { opacity: 1; }
.pages canvas { display: block; width: 100%; height: auto; margin: 0 auto 12px; border-radius: 6px; box-shadow: 0 1px 6px rgba(0,0,0,.12); background: #fff; }
.pad { width: 100%; height: 200px; border: 1px solid #d2d2d7; border-radius: 14px; background: #fff; touch-action: none; display: block; cursor: crosshair; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; margin: 14px 0; color: #1d1d1f; }
.center { text-align: center; }
.empty { text-align: center; padding: 40px; color: #6e6e73; }
@media (max-width: 700px) { .hide-sm { display: none; } td, th { padding: 10px 4px; } }
