/* R81: human-attested Sepidar salesperson identity -- admin settings only. */
.r81-panel{margin:.7rem 0 1rem;padding:1rem;border:1px solid rgba(29,82,77,.16);border-radius:16px;background:var(--surface,#fff)}
.r81-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.8rem;margin-bottom:.7rem}
.r81-header h2{font-size:1.07rem;font-weight:800;color:var(--text,#143d39);margin:0}
.r81-header p{margin:.2rem 0 0;font-size:.8rem;color:var(--text-muted,#6f797a)}
.r81-header button{font:inherit;font-size:.78rem;border-radius:9px;padding:.45rem .7rem;border:1px solid #cddad5;background:#fff;color:#204b41;cursor:pointer}
.r81-feedback{font-size:.77rem;min-height:1.2em;margin:0 0 .45rem;color:#475e5b}
.r81-links{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:.6rem}
.r81-link-card{display:flex;flex-direction:column;gap:.48rem;background:var(--surface,#fff);border:1px solid #dbe5e2;border-radius:11px;padding:.8rem;min-width:0}
.r81-link-card strong{font-size:.85rem;color:var(--text,#173f3a);overflow-wrap:anywhere}
.r81-link-state{font-size:.73rem;line-height:1.4;color:#53766b}
.r81-hint{font-size:.71rem;color:#687879;margin:.1rem 0}
.r81-link-card label{display:flex;flex-direction:column;gap:.2rem;font-size:.77rem;color:#37544e}
.r81-link-card input[type=text]{width:100%;min-width:0;border-radius:9px;border:1px solid #cad7d1;padding:.47rem .6rem;background:#fff;font:inherit;font-size:.78rem;color:#123d34}
.r81-link-card label.r81-check{display:flex;flex-direction:row;align-items:flex-start;gap:.45rem;font-size:.72rem;line-height:1.5}
.r81-check input[type=checkbox]{margin-top:.17rem;flex-shrink:0}
.r81-confirm{border:0;background:#145146;color:#fff;font:inherit;font-weight:750;font-size:.77rem;cursor:pointer;border-radius:8px;padding:.53rem .8rem}
.r81-confirm:disabled{cursor:not-allowed;opacity:.42}
@media(max-width:650px){.r81-panel{padding:.7rem}.r81-links{grid-template-columns:1fr}}


/* R82 -- scoped fixes for the global AFM input {width:100%; min-height:42px}
   cascade. No changes to other settings or checkboxes in the application. */
#afm-r81-seller-mapping.r81-panel {
  width:100%;
  max-width:100%;
  min-width:0;
  margin:.85rem 0 1rem;
  padding:clamp(.75rem,1.4vw,1.15rem);
  overflow:visible;
  box-sizing:border-box;
}
#afm-r81-seller-mapping .r81-header {
  display:flex;
  flex-wrap:wrap;
  gap:.75rem 1.2rem;
  align-items:center;
  justify-content:space-between;
  margin:0 0 .75rem;
  min-width:0;
}
#afm-r81-seller-mapping .r81-header > div {
  min-width:0;
  flex:1 1 320px;
}
#afm-r81-seller-mapping .r81-header h2 {
  font-size:1.05rem;
  line-height:1.65;
}
#afm-r81-seller-mapping .r81-header p {
  line-height:1.85;
  text-wrap:pretty;
  overflow-wrap:anywhere;
}
#afm-r81-seller-mapping .r81-header .r81-refresh {
  flex:0 0 auto;
  min-height:36px;
}
#afm-r81-seller-mapping .r81-links {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,350px),1fr));
  gap:.8rem;
  align-items:stretch;
  width:100%;
  min-width:0;
  direction:rtl;
}
#afm-r81-seller-mapping .r81-link-card {
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:.58rem;
  min-width:0;
  width:100%;
  height:auto;
  padding:.95rem 1rem;
  background:var(--card-bg,#fff);
  border:1px solid var(--line,#dfe6e3);
  border-radius:13px;
  overflow:hidden;
  box-sizing:border-box;
}
#afm-r81-seller-mapping .r81-link-card strong {
  display:block;
  min-width:0;
  max-width:100%;
  font-size:.86rem;
  line-height:1.75;
  overflow-wrap:anywhere;
}
#afm-r81-seller-mapping .r81-link-state {
  align-self:flex-start;
  max-width:100%;
  background:#eef5f2;
  border-radius:100px;
  padding:.27rem .6rem;
  font-size:.73rem;
  line-height:1.6;
}
#afm-r81-seller-mapping .r81-link-card[data-status="complete"] .r81-link-state {
  color:#1a684b;
  background:#e8f7ee;
}
#afm-r81-seller-mapping .r81-link-card[data-status="conflict"] .r81-link-state {
  color:#9b5a20;
  background:#fff5e7;
}
#afm-r81-seller-mapping .r81-link-card .r81-hint {
  width:100%;
  min-width:0;
  margin:.1rem 0;
  line-height:1.8;
  overflow-wrap:anywhere;
  text-align:right;
}
#afm-r81-seller-mapping .r81-link-card label {
  width:100%;
  min-width:0;
  max-width:100%;
  box-sizing:border-box;
}
#afm-r81-seller-mapping .r81-link-card input.r81-reason {
  width:100%;
  max-width:100%;
  min-width:0;
  min-height:40px;
  padding:.55rem .7rem;
  font-size:.77rem;
  text-align:right;
}
#afm-r81-seller-mapping .r81-link-card label.r81-check {
  display:flex !important;
  flex-direction:row !important;
  flex-wrap:nowrap !important;
  align-items:flex-start !important;
  justify-content:flex-start !important;
  width:100%;
  max-width:100%;
  min-width:0;
  margin:0;
  padding:.65rem .65rem;
  gap:.6rem;
  border:1px solid #e2ebe7;
  border-radius:9px;
  background:#f6faf8;
  box-sizing:border-box;
  overflow:hidden;
  cursor:pointer;
  text-align:right;
  line-height:1.75;
}
#afm-r81-seller-mapping .r81-check input[type="checkbox"] {
  display:block;
  flex:0 0 18px !important;
  width:18px !important;
  min-width:18px !important;
  max-width:18px !important;
  height:18px !important;
  min-height:18px !important;
  max-height:18px !important;
  padding:0 !important;
  margin:3px 0 0 0 !important;
  border:1px solid #719a8e;
  border-radius:4px;
  box-shadow:none;
  outline-offset:3px;
  appearance:auto;
  accent-color:#175649;
  cursor:pointer;
}
#afm-r81-seller-mapping .r81-check-text {
  display:block;
  flex:1 1 0;
  min-width:0;
  max-width:100%;
  line-height:1.8;
  overflow-wrap:break-word;
  white-space:normal;
  text-align:right;
  font-size:.75rem;
  font-weight:500;
}
#afm-r81-seller-mapping .r81-link-card button.r81-confirm {
  width:100%;
  min-height:39px;
  height:auto;
  padding:.55rem .55rem;
  font-size:.78rem;
  line-height:1.6;
  white-space:normal;
  overflow-wrap:anywhere;
  margin-top:auto;
}
@media(max-width:700px) {
  #afm-r81-seller-mapping .r81-links {
    grid-template-columns:minmax(0,1fr);
    gap:.6rem;
  }
  #afm-r81-seller-mapping .r81-link-card { padding:.75rem .8rem; }
  #afm-r81-seller-mapping .r81-header button { width:100%; }
}
