/* ShahrVam v617 — scoped search in "شماره‌های تخصیص‌یافته من". */
body[data-page="sales-operations"] .sm617-expert-header-tools{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  min-width:0;
  margin-inline-start:auto;
}
body[data-page="sales-operations"] .sm617-expert-search{
  width:min(290px,32vw);
  min-width:210px;
  height:36px;
  display:flex;
  align-items:center;
  gap:7px;
  padding:0 10px;
  border:1px solid var(--ui-border,var(--tiam-surface-border));
  border-radius:var(--ui-radius,10px);
  background:var(--ui-surface,var(--tiam-surface-surface));
  color:var(--ui-muted,#64748b);
}
body[data-page="sales-operations"] .sm617-expert-search:focus-within{
  border-color:var(--ui-focus,#3b82f6);
  box-shadow:0 0 0 2px color-mix(in srgb,var(--ui-focus,#3b82f6) 14%,transparent);
}
body[data-page="sales-operations"] .sm617-expert-search-icon{
  display:grid;
  place-items:center;
  flex:0 0 auto;
}
body[data-page="sales-operations"] .sm617-expert-search-icon svg{
  width:16px;
  height:16px;
}
body[data-page="sales-operations"] .sm617-expert-search input{
  width:100%;
  min-width:0;
  height:100%;
  padding:0;
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
  background:transparent!important;
  color:var(--ui-text,#0f172a);
  font:inherit;
  font-size:11.5px;
}
body[data-page="sales-operations"] .sm617-expert-search input::placeholder{
  color:var(--ui-muted,#64748b);
  opacity:.85;
}
body[data-page="sales-operations"] .sm617-expert-search>button{
  width:22px;
  height:22px;
  min-width:22px;
  display:grid;
  place-items:center;
  padding:0;
  border:0;
  border-radius:50%;
  background:var(--ui-surface-alt,#f1f5f9);
  color:var(--ui-muted,#64748b);
  cursor:pointer;
  font-size:17px;
  line-height:1;
}
body[data-page="sales-operations"] .sm617-expert-search>button:hover{
  color:var(--ui-text,#0f172a);
  background:var(--ui-border,#e2e8f0);
}
@media (max-width:900px){
  body[data-page="sales-operations"] .sm148-expert-workbench>header{
    align-items:flex-start;
  }
  body[data-page="sales-operations"] .sm617-expert-header-tools{
    width:min(100%,430px);
    flex-wrap:wrap;
  }
  body[data-page="sales-operations"] .sm617-expert-search{
    width:100%;
    min-width:0;
    flex:1 1 230px;
  }
}
@media (max-width:620px){
  body[data-page="sales-operations"] .sm148-expert-workbench>header{
    flex-direction:column;
  }
  body[data-page="sales-operations"] .sm617-expert-header-tools{
    width:100%;
    justify-content:space-between;
  }
  body[data-page="sales-operations"] .sm617-expert-search{
    flex:1 1 100%;
  }
}


/* v618 — returned payment correction visibility + edit affordance */
.sm618-needs-correction{box-shadow:inset -4px 0 0 #b42318;background:rgba(180,35,24,.035)}
.sm618-status-correction{border-color:#ef4444!important;color:#b42318!important;background:#fff1f2!important;font-weight:800!important}
.sm618-correction-info{display:flex;flex-direction:column;gap:3px;margin-top:6px;padding:7px 9px;border:1px solid #fecaca;border-radius:9px;background:#fff1f2;color:#991b1b;max-width:320px}
.sm618-correction-info b{font-size:12px}.sm618-correction-info span{font-size:11px;line-height:1.65}.sm618-correction-info small{font-size:10px;color:#7f1d1d}
.sm618-edit-invoice{border-color:#fca5a5!important;background:#fff1f2!important;color:#b91c1c!important}
.sm618-edit-invoice:hover{background:#fee2e2!important}
.so-v618-return-note,.pv-v618-return{border:1px solid #fecaca;background:#fff1f2;color:#991b1b;border-radius:10px;padding:8px 10px;margin-top:8px}
.so-v618-return-source,.so-v618-row-return em{display:block;margin-top:4px;font-style:normal;font-size:11px;color:#7f1d1d}
.so-v618-row-return{display:block;color:#b91c1c;margin-top:5px;line-height:1.6}.so-v618-row-return b{font-weight:800}
.so-v618-return-reason small{display:block;margin-top:5px;color:#7f1d1d}
.pv-v618-return{display:flex;gap:8px;align-items:flex-start;flex-wrap:wrap}.pv-v618-return b{font-weight:900}.pv-v618-return small{width:100%;display:block}
