.operations-page .login { flex-wrap: wrap; }
.operations-page .login label { margin: 0; }
#order-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: end;
  gap: 12px;
}
#order-filters label { margin: 0; }
#order-filters label > * { margin-top: 6px; }
#orders { display: grid; gap: 14px; }
.execution-card { margin: 0; min-width: 0; }
.execution-card-top, .execution-card-footer, .execution-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.execution-card-top, .execution-card-footer { justify-content: space-between; }
.execution-card-top h3 { margin: 0; font-size: 1.125rem; }
.execution-type, .execution-status {
  padding: 4px 9px;
  border-radius: 6px;
  background: #ebf3ed;
  color: #234e36;
  font-size: .875rem;
}
.execution-type { background: #f1f3ef; color: #415849; }
.execution-items { list-style: none; padding: 0; margin: 12px 0; }
.execution-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid #e7ece2;
  overflow-wrap: anywhere;
}
.execution-thumb {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  background: #eef2ed;
  border-radius: 8px;
  color: #536958;
  font-size: .8125rem;
  overflow: hidden;
}
.execution-thumb > * { grid-area: 1 / 1; }
.execution-thumb img { width: 100%; height: 100%; object-fit: cover; }
.execution-item-spec { color: #52665a; font-size: .875rem; margin-top: 3px; }
.execution-item-quantity { font-weight: 700; }
.execution-card-footer small { overflow-wrap: anywhere; }
#more-orders { margin-top: 14px; }
#order-dialog { width: min(670px, 95vw); max-height: 90vh; }
#order-dialog form { text-align: right; }
#order-dialog p { white-space: pre-wrap; overflow-wrap: anywhere; }
#detail-status:empty { display: none; }
.purchase-monitor { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; }
.purchase-monitor small { flex-basis: 100%; }
.purchase-monitor > div { flex: 1; font-weight: 700; }
@media (max-width: 640px) {
  #order-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #order-filters label { min-width: 0; }
  .operations-page .login { display: grid; }
  .operations-page button, .operations-page input, .operations-page select {
    min-height: 44px;
    font-size: 16px;
  }
  .execution-links a { display: inline-flex; align-items: center; min-height: 44px; }
  #order-dialog { max-height: 90dvh; }
  .operations-page .panel { padding: 16px; }
}
