/* Platby z banky, the cell Stav dokladu of a waiting payment (the owner, 1. 12. 2026: nothing glued together, one axis, the fields
   only after a click): the state on its own line, under it the pictures of the actions in one row that never move; a picture opens
   its panel under them (the choice of the invoice with a magnifier that opens the search, or the choice of what the payment is). */
html.sd .pay-open {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
html.sd .pay-acts {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
html.sd .pay-acts > [aria-expanded='true'] {
  box-shadow: 0 0 0 2px var(--sd-action-blue-line);
}
html.sd .pay-panel {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  box-sizing: border-box;
  width: min(100%, 340px);
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  text-align: left;
}
html.sd .pay-panel[hidden] {
  display: none;
}
html.sd .pay-panel .pay-line {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
}
html.sd .pay-panel .pay-line > select,
html.sd .pay-panel > select,
html.sd .pay-panel > .pay-search {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
}
html.sd .pay-panel > .btn {
  align-self: flex-start;
}
/* on the phone the card of the row puts the cell under its label: the cell is the whole width */
@media (max-width: 640px) {
  html.sd td:has(> .pay-open) {
    text-align: left;
  }
  html.sd .pay-open {
    align-items: flex-start;
    width: 100%;
  }
  html.sd .pay-panel {
    width: 100%;
  }
}

/* the choice of what the payment is and its tick stand on one row (the owner, 1. 12. 2026: "proč dolů zase") */
html.sd .pay-panel:not([data-pair-form]) {
  flex-direction: row;
  align-items: center;
}
html.sd .pay-panel:not([data-pair-form]) > select {
  flex: 1 1 auto;
  min-width: 0;
}
html.sd .pay-panel:not([data-pair-form]) > .btn {
  align-self: center;
  flex: none;
}
