* { box-sizing: border-box; }
body { margin: 0; font-family: "Segoe UI", Arial, "Noto Sans Hebrew", sans-serif; background: #f3f5f9; color: #1d2433;
       font-size: 17px; line-height: 1.5; }
a { color: #1f4fa3; }
header.top { background: #1f3f7a; color: #fff; padding: 10px 16px; display: flex; flex-wrap: wrap; gap: 8px 18px;
             align-items: center; justify-content: space-between; }
header.top a { color: #fff; text-decoration: none; }
header.top .brand { font-weight: 700; font-size: 18px; }
header.top nav { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 15px; }
main { max-width: 760px; margin: 0 auto; padding: 14px; }
main.wide { max-width: 1100px; }
.card { background: #fff; border-radius: 12px; padding: 16px; margin-bottom: 14px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
h1 { font-size: 22px; margin: 0 0 8px; }
h2 { font-size: 19px; margin: 0 0 10px; }
h3 { font-size: 17px; margin: 14px 0 6px; }
.muted { color: #667085; font-size: 15px; }
.small { font-size: 14px; }
label.f { display: block; margin: 12px 0 4px; font-weight: 600; }
label.f .hint { font-weight: 400; color: #667085; font-size: 14px; }
input[type=text], input[type=tel], input[type=email], input[type=date], input[type=number], input[type=password],
input[type=file], select, textarea {
  width: 100%; font-size: 17px; padding: 11px 12px; border: 1px solid #c5ccd8; border-radius: 9px; background: #fff;
  font-family: inherit; }
input:focus, select:focus { outline: 2px solid #4b7bd6; border-color: #4b7bd6; }
.ltr { direction: ltr; text-align: left; unicode-bidi: plaintext; }
input.ltr { text-align: right; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 520px) { .row { grid-template-columns: 1fr; } }
.opts { display: flex; flex-direction: column; gap: 6px; }
.opts.inline { flex-direction: row; flex-wrap: wrap; gap: 6px; }
.opt { display: flex; align-items: flex-start; gap: 10px; padding: 11px 12px; border: 1px solid #d5dbe5; border-radius: 10px;
       background: #fff; cursor: pointer; }
.opts.inline .opt { flex: 1 1 120px; }
.opt input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; }
.opt:has(input:checked) { border-color: #2f62c4; background: #eef3fd; }
.sub { margin: 8px 30px 4px 0; padding: 10px 12px; border-right: 3px solid #c9d6f2; background: #f8faff; border-radius: 6px; }
button, .btn { display: inline-block; font-size: 17px; font-weight: 600; padding: 12px 20px; border-radius: 10px;
               border: 0; background: #2f62c4; color: #fff; cursor: pointer; text-decoration: none; font-family: inherit; }
button.secondary, .btn.secondary { background: #e7ecf5; color: #1d2433; }
button.danger { background: #c4372f; }
button.link { background: none; color: #1f4fa3; padding: 4px; font-weight: 400; text-decoration: underline; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.actions button, .actions .btn { flex: 1 1 auto; text-align: center; }
.flash { background: #fdecea; color: #8a1f17; padding: 10px 14px; border-radius: 9px; }
.ok-box { background: #e8f6ec; color: #165c2a; padding: 10px 14px; border-radius: 9px; }
.warn { background: #fff6dd; color: #6b4e00; padding: 10px 14px; border-radius: 9px; }
.dev { background: #fff3c4; color: #5c4500; padding: 6px 12px; font-size: 14px; text-align: center; }
.errors { background: #fdecea; color: #8a1f17; padding: 10px 14px 10px 10px; border-radius: 9px; margin-bottom: 12px; }
.errors ul { margin: 4px 0 0; padding-right: 20px; }
.steps { display: flex; gap: 4px; margin: 4px 0 14px; }
.steps a, .steps span { flex: 1; height: 6px; border-radius: 3px; background: #d5dbe5; }
.steps .done { background: #4caf6a; }
.steps .cur { background: #2f62c4; }
.stepname { font-size: 14px; color: #667085; margin-bottom: 4px; }
table.list { width: 100%; border-collapse: collapse; font-size: 15px; }
table.list th, table.list td { text-align: right; padding: 8px 6px; border-bottom: 1px solid #e4e8ef; vertical-align: top; }
table.list th { background: #f0f3f8; font-weight: 600; }
.tbl-wrap { overflow-x: auto; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 13px; background: #e7ecf5; }
.badge.signed { background: #dff3e4; color: #165c2a; }
.badge.in_progress { background: #fff1cc; color: #6b4e00; }
.child { border: 1px solid #d5dbe5; border-radius: 10px; padding: 4px 12px 12px; margin-bottom: 10px; background: #fbfcfe; }
.child-head { display: flex; justify-content: space-between; align-items: center; }
#pad { width: 100%; height: 180px; border: 2px dashed #9aaccc; border-radius: 10px; background: #fff; touch-action: none; }
.pdfview { background: #e6e9ef; padding: 6px; border-radius: 8px; max-height: 70vh; overflow-y: auto; }
.pdfpage { width: 100%; display: block; margin-bottom: 6px; background: #fff; }
dl.sum { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; margin: 0; font-size: 15px; }
dl.sum dt { color: #667085; }
dl.sum dd { margin: 0; }
.att { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid #eef0f4; }
.kpis { display: flex; gap: 10px; flex-wrap: wrap; }
.kpi { flex: 1 1 140px; background: #fff; border-radius: 10px; padding: 10px 14px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.kpi b { font-size: 24px; display: block; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; }
.filters > * { flex: 1 1 160px; }
code.link { display: block; direction: ltr; text-align: left; background: #f0f3f8; padding: 8px; border-radius: 6px;
            word-break: break-all; font-size: 13px; }
.gbtn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 12px 16px;
        border: 1px solid #c9ced8; border-radius: 10px; background: #fff; color: #1d2433; font-weight: 600;
        font-size: 17px; text-decoration: none; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.gbtn:hover { background: #f7f8fa; }
.or { display: flex; align-items: center; gap: 10px; color: #667085; font-size: 14px; margin: 16px 0 4px; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid #dfe3ea; }
