/* "חוזה" — contract tab, editor and the contract document (shared with /sign/) */
.b--ct{background:#fff8ec;color:#7a4b10;border-color:#e9cfa5}
.card__acts .b--ct{font-weight:800}
.card[data-id] .b--ct.is-ok{background:var(--sand);color:var(--navy);border-color:var(--sand)}
.ct-wait{background:#fff8ec;border:1.5px solid #ecd6b0;border-radius:14px;padding:10px 12px;margin:10px 0}
.ct-wait b{display:block;margin-bottom:6px;color:#7a4b10}
.ct-wait .chips .b{white-space:normal;max-width:100%;text-align:start;line-height:1.35}   /* v2.9.6: a long customer name wraps instead of widening the page */
.ct-law{font-size:.875rem;color:#6b4a12;background:#fff8ec;border-radius:10px;padding:8px 10px;margin:12px 0}
.ct-flag{display:block;font-size:.875rem;font-weight:700;color:#b54708;margin-top:2px}
.ct-flag--ok{color:var(--ok)}
.ct-top h2{flex:1;min-width:0;font-size:1.1rem;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ct-saved{font-size:.875rem;color:var(--muted);flex-basis:100%}
.ct-saved.ok{color:var(--ok)}.ct-saved.bad{color:var(--bad)}
.ct-sync{background:#fff4e5;border:1.5px solid #f5c27a;border-radius:14px;padding:12px;margin:8px 0}
.ct-sync b{color:#93370d}.ct-sync p{margin:4px 0 8px;font-size:.9rem}
.ct-signed{background:#ecfdf3;border:1.5px solid #abefc6;border-radius:14px;padding:12px;margin:8px 0;color:#05603a}
.ct-acts{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0 4px}
.ct-acts .b{flex:1 1 160px}
.ct-fs{border:0;margin:0;padding:0;min-width:0}
.ct-fs[disabled] input,.ct-fs[disabled] textarea,.ct-fs[disabled] select{background:var(--ox-sunk,#f6f7f9)}
.fld--wide{grid-column:1/-1}
.ct-qitems{margin:0 0 10px;padding:0 18px 0 0;font-size:.92rem}
.ct-qitems li{margin-bottom:4px}
.ct-dl{display:grid;grid-template-columns:1fr 1fr;gap:4px 16px;margin:6px 0 10px;background:var(--sand-3);padding:10px 12px;border-radius:8px}
.ct-dl div{display:flex;gap:6px;min-width:0}.ct-dl dt{color:var(--muted);flex:none}.ct-dl dd{margin:0;font-weight:600}
.ct-dl--sm{font-size:.92rem}
.ct-x{border:1px solid var(--line);border-radius:12px;padding:8px;margin-bottom:8px;display:grid;gap:6px;background:#fcfcfd}
.ct-x__n{display:grid;grid-template-columns:1fr 1fr 1.3fr auto;gap:6px}
.ct-x__n input{padding:8px}
.ct-x__p{font-size:.88rem;color:var(--muted)}
.ct-x__p select{width:auto;min-height:36px;padding:4px 8px;display:inline-block}
.ct-x__tot{font-weight:700;color:var(--navy)}
.ct-range{display:grid;grid-template-columns:1fr 1fr 1.3fr;gap:8px;margin-top:8px}
.seg__b{border:0;background:transparent;border-radius:9px;padding:8px 4px;font-weight:700;color:var(--muted);min-height:40px;cursor:pointer;font-size:.9rem}
.seg__b.is-on{background:var(--ox-paper,#fff);color:var(--navy);box-shadow:0 1px 4px rgba(0,0,0,.12)}
.ct-cl{border:1px solid var(--line);border-radius:12px;padding:10px;margin-bottom:10px;background:var(--ox-paper,#fff)}
.ct-cl.is-off{opacity:.55}
.ct-cl__h{display:flex;gap:8px;align-items:center;margin-bottom:6px}
.ct-cl__h input[data-cl=title]{font-weight:800;color:var(--navy)}
.ct-cl__on{display:flex;align-items:center;gap:4px;font-size:.875rem;white-space:nowrap;color:var(--muted)}
.ct-cl__on input{width:22px;height:22px;min-height:0}
.ct-cl textarea{min-height:96px;font-size:.95rem;line-height:1.5}
.ct-cl__a{margin-top:6px}
.ct-sigpanel h3{margin:0 0 8px}
.ct-sigrow{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.ct-sigrow>div{display:grid;gap:6px;align-content:start;background:var(--sand-3);border-radius:12px;padding:10px}
.ct-sigrow img{max-height:70px;width:auto;max-width:100%;background:var(--ox-paper,#fff);border-radius:8px;padding:4px}
.ct-mysig{display:grid;gap:6px;justify-items:start}
.ct-mysig img{max-height:70px;width:auto;background:var(--ox-paper,#fff);border:1px solid var(--line);border-radius:8px;padding:4px}
.ct-link{word-break:break-all;background:var(--sand-3);border-radius:10px;padding:10px;font-size:.88rem;text-align:left}
.sigpad{position:relative;height:190px;border:2px dashed var(--ox-line,#b9c4d4);border-radius:14px;background:var(--ox-paper,#fff);margin-bottom:8px}
.sigpad canvas{position:absolute;inset:0;width:100%;height:100%;display:block;touch-action:none;cursor:crosshair}
.sigpad__x{position:absolute;bottom:34px;right:16px;left:16px;border-bottom:1.5px solid var(--ox-line,#c7d0dc);color:#98a2b3;font-size:.875rem;pointer-events:none;padding-bottom:2px}
/* the document */
.doc--ct{font-size:.95rem;line-height:1.55}
.doc--ct .doc__h h1{font-size:1.45rem}
.doc--ct h2{font-size:1.02rem;margin:16px 0 6px;color:var(--navy)}
.doc--ct h3{font-size:.95rem;margin:0 0 4px;color:var(--navy)}
.ct-n{display:inline-block;min-width:1.4em}
.ct-parties{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:10px 0}
.ct-party{background:var(--sand-3);border-radius:8px;padding:10px 12px}
.ct-party dl{margin:0;display:grid;gap:2px}
.ct-party div{display:flex;gap:6px}.ct-party dt{color:var(--muted);flex:none}.ct-party dd{margin:0;font-weight:600}
.ct-intro{margin:10px 0}
.ct-sec p{margin:0 0 6px}
.ct-qnotes{font-size:.9rem;color:var(--ox-mute,#344054)}
.ct-ex small{color:var(--muted)}
.ct-signs{margin-top:22px}
.ct-agree{font-weight:700;margin:0 0 10px}
.ct-sigs{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.ct-sigbox p{margin:4px 0;display:flex;gap:6px;align-items:baseline}
.ct-sigbox span{color:var(--muted)}
.ct-sigline{height:82px;padding-bottom:4px;border-bottom:1.5px solid var(--ox-mute,#344054);display:flex;align-items:flex-end;justify-content:center;margin:4px 0 6px}
.ct-sigline img{max-height:72px;max-width:100%;width:auto}
.ct-blank{flex:1;border-bottom:1px dotted #98a2b3;min-width:80px;height:1em}
.ct-stamp{margin:12px 0 0;font-size:.85rem;color:#05603a;background:#ecfdf3;border-radius:8px;padding:6px 10px}
.doc--x.doc--ct{font-size:14.5px}
.doc--x .ct-parties,.doc--x .ct-dl{grid-template-columns:1fr 1fr}
@media (max-width:420px){
  .ct-parties,.ct-dl{grid-template-columns:1fr}
  .ct-sigs{gap:14px}
  .ct-x__n{grid-template-columns:1fr 1fr 1fr auto}
  .ct-range{grid-template-columns:1fr 1fr}
  .ct-range .fld:last-child{grid-column:1/-1}
}
@media print{.ct-stamp{background:none}}

/* signature: draw with a finger, or type the name (accessible alternative) */
.sigmode{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:0 0 8px}
.sigmode__b{min-height:46px;border:2px solid var(--ox-pri,#0d2f5e);background:var(--ox-paper,#fff);color:var(--ox-pri,#0d2f5e);border-radius:12px;font:inherit;font-weight:700;cursor:pointer;padding:6px 8px}
.sigmode__b[aria-pressed="true"]{background:var(--ox-pri,#0d2f5e);color:#fff}
.sigmode__p[hidden]{display:none}
.sigtyped{min-height:84px;display:flex;align-items:center;justify-content:center;border:2px dashed var(--ox-line,#b9c4d4);border-radius:14px;background:var(--ox-paper,#fff);margin:6px 0 8px;padding:6px 10px;font:italic 600 2rem/1.2 "IBM Plex Sans Hebrew","Segoe UI",Arial,sans-serif;color:var(--ox-pri,#0d2f5e);text-decoration:underline;text-decoration-color:rgba(13,47,94,.45);text-underline-offset:10px;overflow:hidden;word-break:break-word;text-align:center}
.sig__ok{font-weight:700}
.ct-typed{margin:2px 0 0;font-size:.8rem;color:var(--ox-mute,#5b6576)}
small.ct-typed{display:block}

/* v2.9.38 (the UX review): a11y.css gives every .sigpad__x position:relative (a tap frame) – the hint then sat over the "ציור באצבע" button; back inside the pad */
.sigpad .sigpad__x{position:absolute}
.sigpad .sigpad__x::after{content:none}
.ct-intro bdi{white-space:nowrap}
