/* מערכת החתמת לקוח — העלאה, הצבת חתימות, והפקת לינק. */
.giCustSign{
  min-height: calc(100vh - 92px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 8px 4px 24px;
  color: #0f172a;
  max-width: 100%;
  overflow-x: hidden;
}
.giCustSign__home{
  max-width: none;
  margin: 8px 0 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}
.giCustSign__card{
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .06);
  overflow: hidden;
}
.giCustSign__head{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 0;
  border-bottom: 1px solid rgba(15, 23, 42, .08);
  border-radius: 0;
  padding: 16px 18px;
  box-shadow: none;
  margin: 0;
}
.giCustSign__headMain{ min-width: 0; }
.giCustSign__headActions{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.giCustSign__count{
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, .08);
  color: #475569;
  font-size: 12px;
  font-weight: 800;
}
.giCustSign__title{
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .01em;
  margin: 0;
  color: #0F2748;
  line-height: 1.2;
}
.giCustSign__sub{
  margin: 4px 0 0;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}
.giCustSign__toolbar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(15, 23, 42, .08);
}
.giCustSign__search{
  flex: 1;
  min-width: 0;
}
.giCustSign__search input{
  width: 100%;
  font: inherit;
  font-weight: 700;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
  color: #0f172a;
}
.giCustSign__filters{
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.giCustSign__filter{
  appearance: none;
  border: 1px solid rgba(15, 23, 42, .1);
  background: #fff;
  color: #17355d;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  border-radius: 999px;
  padding: 7px 12px;
  cursor: pointer;
}
.giCustSign__filter.is-on{
  background: #0F2748;
  border-color: #0F2748;
  color: #fff;
}
.giCustSign__steps{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  grid-column: 1 / -1;
  margin-top: 4px;
}
.giCustSign__step{
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 999px;
  padding: 6px 10px 6px 12px;
  font-size: 12px;
  font-weight: 800;
  color: #17355d;
}
.giCustSign__step b{
  width: 20px;
  height: 20px;
  border-radius: 99px;
  display: grid;
  place-items: center;
  background: #dbe7fb;
  color: #3870ED;
  font-size: 11px;
}
.giCustSign__step.is-on{
  background: #0F2748;
  color: #fff;
  border-color: #0F2748;
}
.giCustSign__step.is-on b{
  background: #3870ED;
  color: #fff;
}
.giCustSign__step.is-done b{
  background: #3870ED;
  color: #fff;
}
.giCustSign__upload{
  appearance: none;
  border: 0;
  background: #0F2748;
  color: #fff;
  font: inherit;
  font-weight: 800;
  border-radius: 12px;
  padding: 13px 18px;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(15, 39, 72, .18);
}
.giCustSign__upload:hover{ background: #17355d; }
.giCustSign__stage{
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: stretch;
}
@media (max-width: 900px){
  .giCustSign__head,
  .giCustSign__toolbar{ flex-direction: column; align-items: stretch; }
  .giCustSign__headActions{ justify-content: flex-start; }
  .giCustSign__thead,
  .giCustSign__queueRow{
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr);
  }
}
.giCustSign__recent{
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.giCustSign__recent h2{
  margin: 0;
  font-size: 16px;
}
.giCustSign__linkRow{
  display: flex;
  gap: 8px;
  align-items: center;
  background: #f8fafc;
  border-radius: 12px;
  padding: 10px 12px;
}
.giCustSign__linkRow div{ min-width: 0; flex: 1; }
.giCustSign__linkRow strong{ display: block; }
.giCustSign__linkRow span{
  display: block;
  color: #64748b;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  direction: ltr;
  text-align: right;
}
.giCustSign__modal{
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 40;
  padding: 18px;
}
.giCustSign__dialog{
  width: min(480px, 100%);
  background: #fff;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, .2);
}
.giCustSign__dialog h2{ margin: 0 0 8px; font-size: 22px; color: #0F2748; }
.giCustSign__dialog p{ margin: 0 0 14px; color: #475569; font-weight: 700; }
.giCustSign__dialogKicker{
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  color: #3870ED;
  margin: 0 0 6px;
}
.giCustSign__field{ display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; font-weight: 700; }
.giCustSign__field input{
  font: inherit;
  font-weight: 600;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 12px;
}
.giCustSign__actions{ display: flex; gap: 8px; justify-content: flex-start; }
.giCustSign__ghost, .giCustSign__copy{
  appearance: none;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #0f172a;
  font: inherit;
  font-weight: 700;
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
}
.giCustSign__editor{
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 110px);
}
.giCustSign__bar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 14px;
  padding: 12px 14px;
  position: sticky;
  top: 0;
  z-index: 5;
}
.giCustSign__bar strong{ display: block; }
.giCustSign__bar span{ color: #64748b; font-size: 13px; }
.giCustSign__barKicker{
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  color: #3870ED;
  margin: 0 0 4px;
}
.giCustSign__pages{
  position: relative;
  height: calc(100vh - 230px);
  min-height: 420px;
}
.giCustSign__viewer{
  position: absolute;
  inset: 0;
  overflow: auto;
  direction: ltr;
}
.giCustSign__page{
  position: relative;
  margin: 0 auto 12px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .12);
}
.giCustSign__mark{
  position: absolute;
  border: 2px dashed #3870ED;
  background: rgba(56, 112, 237, .16);
  color: #1e3a8a;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  touch-action: none;
  box-sizing: border-box;
}
.giCustSign__mark button{
  position: absolute;
  top: -10px;
  left: -10px;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 999px;
  background: #b91c1c;
  color: #fff;
  cursor: pointer;
  line-height: 22px;
  font-weight: 800;
}
.giCustSign__dock{
  position: sticky;
  bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
}
.giCustSign__place{
  align-self: flex-start;
}
.giCustSign__dock button[disabled]{ opacity: .45; cursor: default; }
.giCustSign__phone{
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}
.giCustSign__sendRow{
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}
@media (max-width: 780px){
  .giCustSign__sendRow{ grid-template-columns: 1fr; }
}
.giCustSign__phone input{
  direction: ltr;
  text-align: left;
  min-width: 180px;
}
.giCustSign__error{
  color: #b91c1c;
  font-weight: 700;
  margin: 8px 0 0;
}
.giCustSign__ready{
  margin-top: 8px;
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 12px;
  padding: 12px;
}
.giCustSign__url{
  direction: ltr;
  unicode-bidi: isolate;
  text-align: right;
  background: #fff;
  border: 1px solid #86efac;
  border-radius: 8px;
  padding: 8px 10px;
  margin: 8px 0;
  color: #1d4ed8;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.4;
  word-break: break-all;
}
.giCustSign__note{ color: #475569; margin: 0; }
.giCustSign__locked{
  margin: 8px 0 0;
  color: #b91c1c;
  font-weight: 800;
  font-size: 18px;
}
.giCustSign__check{
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0 0 14px;
  font-weight: 700;
}
.giCustSign__hits{ display: flex; flex-direction: column; gap: 6px; width: 100%; }
.giCustSign__hit{
  appearance: none;
  text-align: right;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  font: inherit;
}
.giCustSign__hit strong{ display: block; }
.giCustSign__hit span{ color: #64748b; font-size: 13px; }
.giCustSign__picked{ margin: 0; font-weight: 800; color: #166534; }
.giCustSign__queue{
  margin-top: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  max-height: calc(100vh - 280px);
  overflow: auto;
}
.giCustSign__queueTitle{
  margin: 0;
  padding: 12px 18px 0;
  font-size: 13px;
  font-weight: 800;
  color: #64748b;
}
.giCustSign__thead,
.giCustSign__queueRow{
  display: grid;
  grid-template-columns: minmax(120px, 1.1fr) minmax(140px, 1.6fr) 96px 128px;
  gap: 8px;
  align-items: center;
}
.giCustSign__thead{
  padding: 10px 18px;
  margin-top: 8px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  background: #f8fafc;
  border-top: 1px solid rgba(15, 23, 42, .08);
  border-bottom: 1px solid rgba(15, 23, 42, .08);
}
.giCustSign__queueRow{
  appearance: none;
  width: 100%;
  text-align: right;
  border: 0;
  border-bottom: 1px solid rgba(15, 23, 42, .06);
  border-inline-start: 3px solid transparent;
  background: #fff;
  border-radius: 0;
  padding: 12px 18px;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.giCustSign__queueRow:hover{ background: #f8fafc; }
.giCustSign__queueRow.is-selected{
  background: #eff6ff;
  border-inline-start-color: #3870ED;
}
.giCustSign__queueRow strong{ display: block; color: #0f172a; }
.giCustSign__queueRow span, .giCustSign__queueRow p{ margin: 0; color: #475569; }
.giCustSign__progress{ font-weight: 800; color: #0f172a; }
.giCustSign__queue .giCustSign__note{ padding: 16px 18px; }
.giCustSign__chip{
  display: inline-flex;
  align-items: center;
  justify-self: start;
  margin-top: 0;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 800;
}
.giCustSign__chip.is-wait{ background: #fff6e0; color: #8a5a00; }
.giCustSign__chip.is-open{ background: #eaf1ff; color: #1d4ed8; }
.giCustSign__chip.is-ok{ background: #e9f8ef; color: #166534; }
.giCustSign__detail{
  background: #fff;
  border: 0;
  border-top: 1px solid rgba(15, 23, 42, .08);
  border-radius: 0;
  padding: 16px 18px 18px;
  box-shadow: none;
  min-height: 0;
}
.giCustSign__detail h2, .giCustSign__detailEmpty h2{
  margin: 0 0 10px;
  font-size: 16px;
  color: #0F2748;
}
.giCustSign__detail .giCustSign__steps{ margin-bottom: 12px; }
.giCustSign__meta{
  margin: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px 22px;
}
.giCustSign__meta div{
  display: flex;
  gap: 8px;
  align-items: baseline;
}
.giCustSign__meta dt{
  margin: 0;
  color: #64748b;
  font-weight: 700;
  font-size: 13px;
}
.giCustSign__meta dd{
  margin: 0;
  font-weight: 700;
}
.giCustSign__queueActions{ display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.giCustSign__sent{ margin-top: 6px; color: #166534; font-weight: 700; }
