/* One stable layout for employee and administrator catalogs. Keep names in
   their track even when they wrap, instead of wrapping the whole action group. */
.row.catalog-row,
.admin-catalog .row.catalog-row {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:16px;
}
.catalog-row .catalog-name {
  min-width:0;
  font-weight:600;
  line-height:1.3;
  word-break:normal;
  overflow-wrap:anywhere;
}
.catalog-row .row-actions.catalog-actions {
  max-width:none;
  min-width:0;
  display:grid;
  grid-template-columns:auto auto auto;
  align-items:center;
  justify-items:stretch;
  gap:8px;
  margin:0;
}
.catalog-row .catalog-price {
  min-width:112px;
  white-space:nowrap;
  text-align:right;
  font-variant-numeric:tabular-nums;
}
@media(max-width:700px) {
  .row.catalog-row,
  .admin-catalog .row.catalog-row {
    grid-template-columns:minmax(0,1fr) minmax(0,46%);
    gap:12px;
    padding:16px 0;
  }
  .row.catalog-row:first-child { padding-top:0; }
  .catalog-row .row-actions.catalog-actions {
    width:100%;
    grid-template-columns:minmax(0,1fr);
    gap:8px;
  }
  .catalog-row .catalog-price {
    width:100%;
    min-width:0;
    white-space:normal;
    overflow-wrap:normal;
    text-align:center;
    font-size:1rem;
  }
  .catalog-row .catalog-actions button {
    width:100%;
    min-width:0;
    padding-left:6px;
    padding-right:6px;
    justify-content:center;
  }
}
