/* The identity editors and the late-change window (spec 004, FR-074 to FR-076): the category cascade, the lines of the window
   and the error line, in a bottom sheet. Parts a token gap apart; nothing touches the text around it. Values are tokens. */
.msheet.edit .cascade {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-gap);
}

.msheet.edit .oneline,
.msheet.edit .tw-error {
  margin: 0;
}

.msheet.edit .cwin {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.msheet.edit .cwin:empty {
  display: none;
}

.msheet.edit .cwin b {
  color: var(--app-ink);
}

/* «انقل صوره إلى منتج آخر» (screens/review_move.js): the photos to pick, the products to move them to */
.msheet.edit .pstrip {
  display: flex;
  gap: var(--spacing-sm);
  padding-block-end: var(--spacing-xs);
  overflow-x: auto;
}

.msheet.edit .mvimg {
  flex: none;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 2px solid var(--app-line-strong);
  border-radius: var(--radius-thumb);
  background-color: var(--app-raise);
  overflow: hidden;
  cursor: pointer;
}

.msheet.edit .mvimg[aria-pressed="true"] {
  border-color: var(--app-btn);
}

.msheet.edit .mvimg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.msheet.edit .glist {
  display: flex;
  flex-direction: column;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--app-line-strong);
  border-radius: var(--radius-md);
  background-color: var(--app-surface);
}

.msheet.edit .mrow {
  gap: var(--spacing-row);
  min-height: 56px;
  padding: var(--spacing-sm) var(--spacing-row);
  border: 0;
  border-inline-start: 4px solid transparent;
  background-color: transparent;
  color: var(--app-ink);
  font-family: inherit;
  font-weight: 800;
  text-align: start;
  cursor: pointer;
}

.msheet.edit .mrow[aria-pressed="true"] {
  border-inline-start-color: var(--app-btn);
  background-color: var(--app-raise);
}

.msheet.edit .pth40 {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
}

.msheet.edit .pth40 svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.2;
}

.msheet.edit .vh {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  overflow: hidden;
  clip-path: inset(50%);
}

/* «دمج المكرر» (screens/review_merge.js): who stays and who is merged in, each with its photo and its lines */
.msheet.edit .hubl {
  margin: 0;
  padding: 0;
}

.msheet.edit .pli {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-row);
}

.msheet.edit .pli .pt {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--spacing-xs);
  min-width: 0;
}

.msheet.edit .pli .pt small {
  color: var(--app-ink-soft);
  font-size: var(--font-size-meta);
  line-height: 1.7;
}

.msheet.edit .lnk {
  align-self: flex-start; /* its look is styles/report.css `.lnk` */
}

.msheet.edit .field > select,
.msheet.edit .field > input,
.msheet.edit .tw-field input,
.msheet.edit .tw-field textarea {
  box-sizing: border-box;
  width: 100%;
}
